:root {
  color-scheme: light;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #f3f4f6;
  color: #111;
}

.employee-card {
  width: min(100vw, 375px);
  min-height: max(704px, 100vh);
  min-height: max(704px, 100dvh);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgb(0 0 0 / 12%);
}

.topbar {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 8px 20px 8px 22px;
  gap: 16px;
  background: #fff;
}

.avatar {
  width: 37px;
  height: 38px;
  object-fit: cover;
}

.topbar > strong {
  font-size: 20px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 24px;
  color: #aaa;
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
}

.topbar-actions .more {
  position: relative;
  top: -5px;
  letter-spacing: 2px;
}

.card-body {
  position: relative;
  height: 594px;
  background: #000;
}

.date,
.clock {
  position: absolute;
  top: 34px;
  z-index: 2;
  color: #fff;
  font-size: clamp(26px, 8.27vw, 31px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.date {
  left: 8.53%;
}

.clock {
  right: 10.13%;
  display: grid;
  justify-items: end;
}

.portrait-panel {
  position: absolute;
  top: 90px;
  left: 8%;
  width: 84%;
  height: 345px;
  padding: 47px 2% 0;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #fff;
}

.portrait-panel img {
  display: block;
  width: 100%;
  height: 298px;
  object-fit: cover;
  object-position: center 25%;
}

.identity-panel {
  position: absolute;
  top: 435px;
  left: 8%;
  display: flex;
  justify-content: space-between;
  width: 84%;
  height: 159px;
  padding: 27px 4.8% 0;
  border-top: 6px solid #416fbc;
  background: #fff;
}

.identity-copy {
  display: flex;
  flex-direction: column;
  min-width: 44%;
}

.identity-copy strong {
  font-size: clamp(22px, 6.93vw, 26px);
  line-height: 1.05;
}

.identity-copy span {
  color: #9d9d9d;
  font-size: clamp(17px, 5.33vw, 20px);
}

.identity-copy b {
  margin-top: 43px;
  font-size: clamp(17px, 5.33vw, 20px);
}

.qr {
  width: 38.73%;
  height: 114px;
  object-fit: fill;
}

.bottom-nav {
  display: block;
  width: 100%;
  height: 50px;
  object-fit: fill;
  background: #fff;
}

@media (max-width: 374px) {
  .topbar {
    padding-inline: 5.5%;
    gap: 4%;
  }

  .avatar {
    width: 10%;
    height: auto;
  }

  .topbar-actions {
    gap: 5vw;
    font-size: 9vw;
  }

  .portrait-panel {
    padding-inline: 2%;
  }

  .identity-panel {
    padding-inline: 4.8%;
  }
}
