:root {
  --bg: #eef7ff;
  --surface: #ffffff;
  --ink: #0b1f4d;
  --muted: #587093;
  --line: #cfe0f4;
  --blue: #1378ee;
  --pink: #e81798;
  --green: #0fa968;
  --yellow: #b87900;
  --red: #cc2f4a;
  --shadow: 0 18px 48px rgba(17, 69, 134, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 247, 255, 0.96)),
    var(--bg);
}

button {
  font: inherit;
}

.attendance-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.attendance-card {
  width: min(460px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.attendance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-link strong,
.brand-link small {
  display: block;
}

.brand-link strong {
  font-size: 1rem;
}

.brand-link small {
  color: var(--muted);
  font-size: 0.78rem;
}

.clock {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: #244679;
  font-size: 0.86rem;
  font-weight: 700;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.status-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.status-pill.is-ready {
  background: #e7f7ef;
  border-color: #bfe9d3;
  color: #08764a;
}

.status-pill.is-warning {
  background: #fff5d8;
  border-color: #f2daa0;
  color: var(--yellow);
}

.status-pill.is-error {
  background: #ffe9ed;
  border-color: #f4b9c3;
  color: var(--red);
}

.camera-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 3px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#06142e, #06142e) padding-box,
    linear-gradient(135deg, var(--blue), var(--pink)) border-box;
}

video,
#faceCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

video {
  object-fit: cover;
  transform: scaleX(-1);
}

#faceCanvas {
  pointer-events: none;
}

.scan-guide {
  position: absolute;
  inset: 14%;
  border: 2px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  pointer-events: none;
}

.main-status {
  min-height: 58px;
  margin: 16px 0;
  color: #213b70;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  background: var(--blue);
}

.danger-button {
  background: var(--red);
}

.result-card {
  display: grid;
  gap: 18px;
  text-align: center;
}

.result-header {
  justify-content: center;
  margin-bottom: 0;
}

.result-header .brand-link {
  justify-content: center;
  text-align: center;
}

.result-body {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 0 4px;
}

.result-title,
.result-name,
.result-message {
  margin: 0;
}

.result-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
}

.result-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-icon.success {
  background: #e7f7ef;
  color: var(--green);
  box-shadow: 0 14px 28px rgba(15, 169, 104, 0.18);
}

.result-icon.warning {
  background: #fff5d8;
  color: var(--yellow);
  box-shadow: 0 14px 28px rgba(184, 121, 0, 0.16);
}

.result-name {
  color: #18376f;
  font-weight: 800;
}

.result-message {
  display: grid;
  gap: 4px;
  color: #213b70;
  line-height: 1.5;
}

.result-message strong,
.result-message span {
  display: block;
}

.result-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.profile-required-modal,
.text-reminder-modal,
.attendance-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 28px);
  background: rgba(12, 23, 52, 0.48);
  backdrop-filter: blur(12px);
}

.profile-required-card {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 22px;
  border: 1px solid rgba(207, 224, 244, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 28px 80px rgba(17, 69, 134, 0.25);
  text-align: center;
}

.attendance-choice-card {
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  padding: 26px 22px;
  border: 1px solid rgba(207, 224, 244, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(17, 69, 134, 0.25);
  text-align: center;
}

.attendance-choice-card h2,
.attendance-choice-card p {
  margin: 0;
}

.attendance-choice-card h2 {
  color: var(--ink);
  font-size: 1.16rem;
}

.attendance-choice-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.attendance-choice-field {
  display: grid;
  gap: 7px;
  color: #244679;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
}

.attendance-choice-field select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.result-header .brand-link {
  width: min(100%, 320px);
  grid-template-columns: auto minmax(0, auto);
  justify-content: center;
  justify-items: center;
}

.result-header .brand-link img {
  border-radius: 999px;
  object-fit: cover;
}

.result-header .brand-link span {
  min-width: 0;
  text-align: center;
}

.result-header .brand-link strong {
  display: block;
  max-width: 230px;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.attendance-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.attendance-choice-status {
  min-height: 20px;
  font-weight: 800;
}

.attendance-choice-status[data-type="error"] {
  color: var(--red);
}

.attendance-choice-status[data-type="success"] {
  color: var(--green);
}

.text-link {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.profile-required-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(19, 120, 238, 0.14), rgba(232, 23, 152, 0.14));
  color: var(--blue);
}

.profile-required-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-required-card h2,
.profile-required-card p {
  margin: 0;
}

.profile-required-card h2 {
  color: var(--ink);
  font-size: 1.08rem;
}

.profile-required-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.profile-required-missing {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(207, 224, 244, 0.9);
  border-radius: 10px;
  background: #f8fbff;
  font-weight: 700;
}

.profile-required-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.text-reminder-card {
  position: relative;
  width: min(94vw, 960px);
  max-height: min(88vh, 740px);
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(215, 226, 255, 0.92);
  border-radius: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(circle at 0% 0%, rgba(82, 76, 255, 0.14), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(232, 23, 152, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 34px 110px rgba(16, 31, 76, 0.32);
  color: #071b52;
}

.integrity-reminder-card {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  text-align: center;
}

.text-reminder-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102, 89, 244, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #3524d8;
  cursor: pointer;
}

.text-reminder-close svg,
.reminder-pill svg,
.integrity-value-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-reminder-close:focus-visible,
.reminder-primary:focus-visible {
  outline: 3px solid rgba(80, 74, 244, 0.45);
  outline-offset: 3px;
}

.reminder-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 10px;
  margin-inline: auto;
  padding: 9px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(82, 76, 255, 0.12), rgba(232, 23, 152, 0.10));
  color: #2620b6;
  font-size: clamp(0.86rem, 2.3vw, 0.98rem);
  font-weight: 800;
}

.integrity-scroll {
  min-height: 0;
  max-height: min(58vh, 520px);
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  overflow-y: auto;
  padding: 0 8px 4px;
  overscroll-behavior: contain;
}

.text-reminder-card h2 {
  max-width: 680px;
  margin: 0 auto;
  color: #06125d;
  font-size: clamp(1.65rem, 4vw, 3rem);
  line-height: 1.12;
}

.text-reminder-card p {
  max-width: 720px;
  margin: 0 auto;
  color: #263f78;
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  line-height: 1.72;
}

.reminder-lead {
  font-weight: 700;
}

.integrity-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.integrity-values article {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(14px, 2vw, 18px);
  border: 1px solid rgba(126, 135, 255, 0.20);
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.90);
}

.integrity-value-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #4058ff, #df27cd);
  color: #fff;
  box-shadow: 0 14px 28px rgba(82, 76, 255, 0.22);
}

.integrity-value-icon svg {
  width: 27px;
  height: 27px;
}

.integrity-values strong {
  color: #06125d;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.integrity-values p {
  font-size: clamp(0.86rem, 2vw, 0.95rem);
  line-height: 1.62;
}

.reminder-note {
  padding: clamp(14px, 2.5vw, 20px);
  border: 1px solid rgba(126, 135, 255, 0.22);
  border-radius: 16px;
  background: rgba(246, 248, 255, 0.94);
  color: #17306c;
  font-size: clamp(0.98rem, 2.3vw, 1.06rem);
  line-height: 1.72;
  text-align: left;
}

.integrity-read-hint {
  color: #586e9e;
  font-size: 0.88rem;
  font-weight: 700;
}

.reminder-primary {
  width: min(100%, 380px);
  min-height: 50px;
  justify-self: center;
  border-radius: 999px;
  background: linear-gradient(100deg, #364df4, #e81798);
  box-shadow: 0 16px 32px rgba(95, 67, 238, 0.28);
  font-size: clamp(0.96rem, 2.4vw, 1.08rem);
}

.reminder-primary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.22);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .text-reminder-card {
    width: min(94vw, 520px);
    max-height: 84vh;
    padding: 26px 18px 22px;
    border-radius: 22px;
  }

  .integrity-scroll {
    max-height: 54vh;
  }

  .integrity-values {
    grid-template-columns: 1fr;
  }

  .text-reminder-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .attendance-shell {
    padding: 10px;
  }

  .attendance-card {
    padding: 14px;
  }

  .attendance-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .clock {
    width: 100%;
    text-align: center;
  }

  .attendance-choice-actions {
    grid-template-columns: 1fr;
  }
}

/* 20260605 attendance choice popup polish. */
.attendance-choice-modal {
  padding: clamp(16px, 4vw, 40px);
  background:
    radial-gradient(circle at 16% 8%, rgba(88, 64, 196, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(29, 42, 83, 0.46), rgba(108, 120, 160, 0.58));
  backdrop-filter: blur(18px);
}

.attendance-choice-card {
  position: relative;
  width: min(92vw, 620px);
  max-height: min(92vh, 800px);
  display: grid;
  justify-items: stretch;
  gap: clamp(16px, 2.5vw, 22px);
  overflow-y: auto;
  padding: clamp(34px, 5vw, 58px) clamp(22px, 5vw, 48px) clamp(28px, 4vw, 44px);
  border: 1px solid rgba(225, 230, 255, 0.92);
  border-radius: clamp(28px, 4vw, 38px);
  background:
    radial-gradient(circle at 50% 13%, rgba(139, 111, 255, 0.14), transparent 28%),
    radial-gradient(circle at 10% 20%, rgba(232, 23, 152, 0.07), transparent 30%),
    rgba(255, 255, 255, 0.985);
  box-shadow: 0 34px 110px rgba(20, 31, 75, 0.30);
  text-align: center;
}

.attendance-choice-card::-webkit-scrollbar {
  width: 7px;
}

.attendance-choice-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(87, 99, 155, 0.28);
}

.attendance-choice-close {
  position: absolute;
  top: clamp(18px, 3vw, 28px);
  right: clamp(18px, 3vw, 28px);
  width: clamp(42px, 7vw, 54px);
  height: clamp(42px, 7vw, 54px);
  display: grid;
  place-items: center;
  border: 2px solid rgba(103, 93, 190, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #5a54b6;
  cursor: pointer;
}

.attendance-choice-close svg,
.attendance-choice-icon svg,
.attendance-select-icon,
.attendance-select-caret,
.attendance-choice-action svg,
.attendance-choice-home svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attendance-choice-close svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.6;
}

.attendance-choice-icon {
  width: clamp(84px, 16vw, 118px);
  height: clamp(84px, 16vw, 118px);
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.72)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(232, 23, 152, 0.12));
  color: #7f3ff3;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.35),
    0 18px 38px rgba(91, 94, 222, 0.18);
}

.attendance-choice-icon svg {
  width: 58%;
  height: 58%;
  stroke-width: 2.2;
  filter: drop-shadow(0 10px 14px rgba(78, 84, 234, 0.25));
}

.attendance-choice-card h2 {
  width: min(100%, 430px);
  justify-self: center;
  color: #101b58;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.attendance-choice-card h2 span {
  color: #8d4cf4;
}

.attendance-choice-card > p {
  width: min(100%, 450px);
  justify-self: center;
  color: #66709a;
  font-size: clamp(1rem, 2.6vw, 1.24rem);
  line-height: 1.55;
}

.attendance-choice-field {
  gap: 10px;
  color: #111d54;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
}

.attendance-select-shell {
  position: relative;
  display: grid;
  align-items: center;
}

.attendance-select-shell select {
  width: 100%;
  min-height: clamp(58px, 10vw, 76px);
  appearance: none;
  padding: 0 clamp(52px, 9vw, 70px) 0 clamp(74px, 12vw, 92px);
  border: 2px solid rgba(148, 116, 246, 0.25);
  border-radius: clamp(16px, 3vw, 22px);
  background: rgba(255, 255, 255, 0.96);
  color: #151f5b;
  box-shadow: 0 12px 30px rgba(62, 85, 173, 0.08);
  font: inherit;
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  font-weight: 800;
}

.attendance-select-icon {
  position: absolute;
  left: clamp(18px, 3.6vw, 28px);
  width: clamp(34px, 6vw, 46px);
  height: clamp(34px, 6vw, 46px);
  padding: 8px;
  border-radius: 12px;
  background: rgba(142, 75, 244, 0.10);
  color: #863ff0;
  stroke-width: 2.4;
  pointer-events: none;
}

.attendance-select-caret {
  position: absolute;
  right: clamp(18px, 3.8vw, 30px);
  width: 24px;
  height: 24px;
  color: #8a3df1;
  stroke-width: 3;
  pointer-events: none;
}

.attendance-choice-actions {
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.3vw, 18px);
}

.attendance-choice-action {
  min-height: clamp(62px, 10vw, 78px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 22px);
  padding: 10px clamp(18px, 4vw, 28px);
  border: 0;
  border-radius: clamp(16px, 3vw, 22px);
  background: linear-gradient(110deg, #3485f4 0%, #7249f5 52%, #e817c3 100%);
  box-shadow: 0 18px 34px rgba(87, 73, 228, 0.28);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.attendance-choice-overtime {
  background: linear-gradient(110deg, #0ea5e9 0%, #2563eb 46%, #8b5cf6 100%);
}

.attendance-choice-action span {
  width: clamp(42px, 7vw, 56px);
  height: clamp(42px, 7vw, 56px);
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.attendance-choice-action span svg {
  width: 54%;
  height: 54%;
  stroke-width: 2.4;
}

.attendance-choice-action strong {
  min-width: 0;
  color: #fff;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 800;
}

.attendance-choice-arrow {
  width: 28px;
  height: 28px;
  stroke-width: 3;
}

.attendance-choice-status {
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: clamp(16px, 3vw, 22px);
  border-radius: clamp(16px, 3vw, 22px);
  background: rgba(244, 247, 255, 0.92);
  color: #313e71;
  font-size: clamp(0.96rem, 2.6vw, 1.16rem);
  font-weight: 800;
  line-height: 1.55;
  text-align: left;
}

.attendance-choice-status::before {
  content: "";
  width: clamp(42px, 8vw, 58px);
  height: clamp(42px, 8vw, 58px);
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(81, 100, 255, 0.12), rgba(232, 23, 152, 0.10)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237245f3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3Cpath d='M12 3 4 6v6c0 5 3.4 8 8 9 4.6-1 8-4 8-9V6l-8-3Z'/%3E%3C/svg%3E") center / 58% no-repeat;
}

.attendance-choice-status[data-type="error"] {
  background: #fff1f4;
  color: var(--red);
}

.attendance-choice-status[data-type="success"] {
  background: #ecfff5;
  color: var(--green);
}

.attendance-choice-divider {
  position: relative;
  display: block;
  height: 1px;
  margin: 2px 0 0;
  background: linear-gradient(90deg, transparent, rgba(118, 120, 205, 0.26), transparent);
}

.attendance-choice-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3f8df5, #d72bd5);
  transform: translate(-50%, -50%);
}

.attendance-choice-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #2567ef;
  font-size: clamp(1rem, 2.7vw, 1.2rem);
  font-weight: 800;
  text-decoration: none;
}

.attendance-choice-home svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

@media (max-width: 520px) {
  .attendance-choice-card {
    width: min(94vw, 430px);
    max-height: 88vh;
    gap: 14px;
    padding: 58px 18px 26px;
  }

  .attendance-choice-card h2 {
    font-size: clamp(1.72rem, 9vw, 2.35rem);
  }

  .attendance-choice-card > p {
    font-size: 1rem;
  }

  .attendance-choice-action {
    min-height: 62px;
  }

  .attendance-choice-status {
    align-items: flex-start;
    padding: 15px;
    font-size: 0.94rem;
  }
}

/* 20260605 mobile v41: smaller attendance choice and integrity reminders. */
@media (max-width: 760px) {
  .attendance-integrity-modal,
  .attendance-choice-modal {
    padding: 10px;
  }

  .attendance-integrity-modal .text-reminder-card {
    width: min(90vw, 360px);
    max-height: 76vh;
    gap: 10px;
    padding: 40px 14px 16px;
    border-radius: 18px;
  }

  .attendance-integrity-modal .text-reminder-close {
    width: 32px;
    height: 32px;
    top: 9px;
    right: 9px;
  }

  .attendance-integrity-modal .reminder-pill {
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .attendance-integrity-modal .reminder-pill svg {
    width: 15px;
    height: 15px;
  }

  .attendance-integrity-modal .integrity-scroll {
    max-height: 44vh;
    gap: 9px;
    padding: 0 4px 2px;
  }

  .attendance-integrity-modal .text-reminder-card h2 {
    font-size: clamp(1.2rem, 5.8vw, 1.48rem);
    line-height: 1.16;
  }

  .attendance-integrity-modal .text-reminder-card p {
    font-size: 0.76rem;
    line-height: 1.48;
  }

  .attendance-integrity-modal .integrity-values {
    gap: 8px;
  }

  .attendance-integrity-modal .integrity-values article {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 8px;
    padding: 9px;
    text-align: left;
  }

  .attendance-integrity-modal .integrity-value-icon {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .attendance-integrity-modal .integrity-value-icon svg {
    width: 18px;
    height: 18px;
  }

  .attendance-integrity-modal .integrity-values strong {
    font-size: 0.82rem;
  }

  .attendance-integrity-modal .integrity-values p {
    font-size: 0.7rem;
    line-height: 1.36;
  }

  .attendance-integrity-modal .reminder-note {
    padding: 10px;
    border-radius: 12px;
    font-size: 0.76rem;
    line-height: 1.48;
  }

  .attendance-integrity-modal .integrity-read-hint {
    font-size: 0.72rem;
  }

  .attendance-integrity-modal .reminder-primary {
    min-height: 40px;
    font-size: 0.82rem;
  }

  .attendance-choice-card {
    width: min(88vw, 350px);
    max-height: 78vh;
    gap: 9px;
    padding: 42px 14px 16px;
    border-radius: 20px;
  }

  .attendance-choice-close {
    top: 9px;
    right: 9px;
    width: 34px;
    height: 34px;
  }

  .attendance-choice-close svg {
    width: 18px;
    height: 18px;
  }

  .attendance-choice-icon {
    width: 58px;
    height: 58px;
    box-shadow:
      0 0 0 14px rgba(255, 255, 255, 0.28),
      0 12px 24px rgba(91, 94, 222, 0.14);
  }

  .attendance-choice-card h2 {
    width: min(100%, 280px);
    font-size: clamp(1.35rem, 6.5vw, 1.72rem);
    line-height: 1.12;
  }

  .attendance-choice-card > p {
    width: min(100%, 290px);
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .attendance-choice-field {
    gap: 6px;
    font-size: 0.82rem;
  }

  .attendance-select-shell select {
    min-height: 44px;
    padding-left: 52px;
    padding-right: 42px;
    border-radius: 13px;
    font-size: 0.9rem;
  }

  .attendance-select-icon {
    left: 12px;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 9px;
  }

  .attendance-select-caret {
    right: 13px;
    width: 18px;
    height: 18px;
  }

  .attendance-choice-actions {
    gap: 8px;
  }

  .attendance-choice-action {
    min-height: 48px;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 13px;
    box-shadow: 0 12px 22px rgba(87, 73, 228, 0.22);
  }

  .attendance-choice-action span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .attendance-choice-action strong {
    font-size: 0.92rem;
  }

  .attendance-choice-arrow {
    width: 20px;
    height: 20px;
  }

  .attendance-choice-status {
    gap: 9px;
    padding: 10px;
    border-radius: 13px;
    font-size: 0.76rem;
    line-height: 1.38;
  }

  .attendance-choice-status::before {
    width: 34px;
    height: 34px;
  }

  .attendance-choice-divider {
    margin-top: 0;
  }

  .attendance-choice-divider::after {
    width: 9px;
    height: 9px;
  }

  .attendance-choice-home {
    gap: 8px;
    font-size: 0.86rem;
  }

  .attendance-choice-home svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 390px) {
  .attendance-choice-card {
    width: min(90vw, 330px);
    max-height: 76vh;
    gap: 8px;
    padding: 40px 12px 14px;
  }

  .attendance-choice-icon {
    width: 52px;
    height: 52px;
  }

  .attendance-choice-card h2 {
    font-size: 1.34rem;
  }

  .attendance-choice-card > p {
    font-size: 0.74rem;
  }
}

/* 20260607 v56: desktop attendance choice dialog scaled down and warning result clarified. */
@media (min-width: 701px) {
  .attendance-choice-card {
    width: min(90vw, 372px);
    max-height: min(82vh, 560px);
    gap: 10px;
    padding: 42px 24px 22px;
    border-radius: 24px;
  }

  .attendance-choice-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .attendance-choice-close svg {
    width: 18px;
    height: 18px;
  }

  .attendance-choice-icon {
    width: 66px;
    height: 66px;
    box-shadow:
      0 0 0 18px rgba(255, 255, 255, 0.28),
      0 12px 24px rgba(91, 94, 222, 0.14);
  }

  .attendance-choice-card h2 {
    width: min(100%, 300px);
    font-size: 1.85rem;
    line-height: 1.1;
  }

  .attendance-choice-card > p {
    width: min(100%, 310px);
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .attendance-choice-field {
    gap: 6px;
    font-size: 0.88rem;
  }

  .attendance-select-shell select {
    min-height: 46px;
    padding-left: 54px;
    padding-right: 42px;
    border-radius: 13px;
    font-size: 0.9rem;
  }

  .attendance-select-icon {
    left: 12px;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 10px;
  }

  .attendance-select-caret {
    right: 13px;
    width: 18px;
    height: 18px;
  }

  .attendance-choice-actions {
    gap: 8px;
  }

  .attendance-choice-action {
    min-height: 50px;
    gap: 10px;
    padding: 7px 13px;
    border-radius: 13px;
    box-shadow: 0 12px 22px rgba(87, 73, 228, 0.20);
  }

  .attendance-choice-action span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .attendance-choice-action strong {
    font-size: 0.94rem;
  }

  .attendance-choice-arrow {
    width: 20px;
    height: 20px;
  }

  .attendance-choice-status {
    gap: 9px;
    padding: 10px;
    border-radius: 13px;
    font-size: 0.76rem;
    line-height: 1.38;
  }

  .attendance-choice-status::before {
    width: 34px;
    height: 34px;
  }

  .attendance-choice-home {
    font-size: 0.86rem;
  }
}

.result-message span {
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff6df;
  color: #9a5300;
  font-weight: 800;
}
