:root {
  --ops-navy: #071c31;
  --ops-blue: #1f6feb;
  --ops-amber: #ffb020;
  --ops-green: #20a779;
}

.live-refresh, .display-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #63758a;
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
}
.live-refresh::before, .display-live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ops-green);
  box-shadow: 0 0 0 4px rgba(32, 167, 121, .14);
}

/* 학생 모바일 대기표 */
.student-body .choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}
.queue-ticket-card { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 24px; }
.queue-ticket-card::before { content: ""; display: block; height: 9px; background: var(--ops-blue); }
.queue-ticket-card[data-state="CALLED"]::before { background: var(--ops-amber); }
.queue-ticket-card[data-state="IN_PROGRESS"]::before { background: var(--ops-green); }
.queue-ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 0; }
.ticket-main { padding: 20px 28px 12px; text-align: center; }
.ticket-label, .ticket-state-label { margin-bottom: 5px; color: var(--muted); font-size: .84rem; font-weight: 850; letter-spacing: .08em; }
.queue-ticket-card .ticket-number { margin: 8px 0 14px; font-size: clamp(4.5rem, 22vw, 8rem); }.ticket-perforation { position: relative; height: 25px; overflow: hidden; }
.ticket-perforation::before, .ticket-perforation::after { content: ""; position: absolute; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--canvas); }
.ticket-perforation::before { left: -13px; }
.ticket-perforation::after { right: -13px; }
.ticket-perforation span { display: block; margin: 13px 19px 0; border-top: 2px dashed #c8d5e2; }
.ticket-call-state { margin: 0 28px; padding: 22px; border-radius: 16px; background: #eef5ff; text-align: center; }
.ticket-call-state h1 { margin-bottom: 7px; color: var(--navy); }
.ticket-call-summary {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 7px;
  white-space: nowrap;
}
.ticket-call-summary h1 { margin: 0; font-size: clamp(1.35rem, 4.8vw, 2rem); }
.ticket-call-divider { color: #91a0af; font-size: 1.25rem; font-weight: 500; }
.ticket-inline-destination {
  color: var(--navy);
  font-size: clamp(1.3rem, 4.5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -.035em;
}
.ticket-inline-destination span { color: inherit; font: inherit; }
.queue-ticket-card[data-state="CALLED"] .ticket-call-state { background: #fff1c9; box-shadow: inset 0 0 0 2px #f2b63e; }
.queue-ticket-card[data-state="CALLED"] .ticket-call-state h1,
.queue-ticket-card[data-state="CALLED"] .ticket-inline-destination { color: #714800; }
.queue-ticket-card[data-state="IN_PROGRESS"] .ticket-call-state { background: #e0f7ef; }
.queue-ticket-card[data-state="IN_PROGRESS"] .ticket-call-state h1,
.queue-ticket-card[data-state="IN_PROGRESS"] .ticket-inline-destination { color: #07634c; }
.ticket-destination { margin: 14px 28px 0; padding: 18px 20px; border-radius: 16px; background: var(--ops-navy); color: white; text-align: center; }
.ticket-destination > span { display: block; color: #b9cee1; font-size: .82rem; font-weight: 750; }
.ticket-destination strong { display: block; margin-top: 2px; font-size: clamp(1.8rem, 8vw, 2.7rem); }
.ticket-destination strong span { display: inline; color: white; font: inherit; }
.ticket-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 22px 28px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.ticket-info-grid .info-row { display: block; padding: 13px 15px; border: 0; background: #f8fafc; }
.ticket-info-grid .info-row dt { font-size: .8rem; }
.ticket-info-grid .info-row dd { margin-top: 2px; text-align: left; font-size: 1.1rem; }
.ticket-buttons { padding: 20px 28px 0; }
.queue-ticket-card .footer-time { padding: 0 28px 22px; }
/* 상담원 업무 화면 */
.staff-current-card { padding: 0; overflow: hidden; }
.staff-current-heading { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; background: var(--ops-navy); color: white; font-size: .9rem; font-weight: 850; }
.staff-current-heading .live-refresh { color: #c4d4e3; }
#currentEmpty, #currentTicket { padding: clamp(24px, 5vw, 38px); }
.staff-current-card.callout { border: 3px solid var(--ops-amber); }
.staff-primary-action { margin-top: 24px; min-height: 66px; font-size: 1.18rem; }
.staff-ticket-number { margin: 18px 0 12px; }
.staff-action-grid .btn { min-height: 62px; font-size: 1.05rem; }
.display-body { background: #061725; }
.display-header-status { display: grid; justify-items: end; gap: 8px; }
.display-live-dot { color: #b7cadd; }
.display-shell { width: min(1600px, calc(100% - 36px)); margin: 20px auto; display: grid; gap: 18px; }
.display-overview, .display-current-panel, .display-history-panel { border: 1px solid #29465f; border-radius: 20px; background: #0a2237; padding: 20px 22px; }
.display-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.display-section-heading h1, .display-section-heading h2 { margin: 2px 0 0; color: white; }
.display-section-kicker { color: #7ebcff; font-size: .78rem; font-weight: 850; letter-spacing: .1em; }
.display-section-heading p { margin: 0; color: #b7cadd; }
.display-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.display-metric { min-height: 104px; padding: 15px 18px; border: 1px solid #31536f; border-radius: 15px; background: #0d2a43; }
.display-metric span { display: block; color: #aac0d2; font-weight: 750; }
.display-metric strong { display: inline-block; margin-top: 2px; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.display-metric small { margin-left: 5px; color: #aac0d2; font-weight: 750; }
.display-metric.called strong { color: #ffd16d; }
.display-metric.progress strong { color: #76e0bd; }.display-current-panel .display-grid { grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); gap: 14px; }
.display-current-panel .display-card { min-height: 150px; grid-template-columns: 150px minmax(220px, 1.3fr) 170px; }
.display-current-panel .display-cell { padding: 17px 18px; }
.display-current-panel .display-seat-badge { width: 84px; }
.display-current-panel .display-ticket { font-size: clamp(3.3rem, 5vw, 5.5rem); }
.history-limit { padding: 5px 11px; border: 1px solid #42647f; border-radius: 999px; color: #bed0df; font-size: .82rem; font-weight: 800; }
.display-history { display: grid; border: 1px solid #31536f; border-radius: 14px; overflow: hidden; }
.display-history-row { display: grid; grid-template-columns: 120px minmax(180px, 1fr) 180px 160px; align-items: center; min-height: 62px; padding: 8px 18px; background: #0d2a43; }
.display-history-row { display: grid; }
.display-history-row + .display-history-row { border-top: 1px solid #31536f; }
.display-history-row time { color: #a9c0d3; font-variant-numeric: tabular-nums; }
.display-history-ticket { font-size: 1.65rem; font-weight: 900; letter-spacing: -.03em; }
.display-history-seat { color: #d9e8f4; font-size: 1.08rem; font-weight: 800; }
.display-history-state { justify-self: end; min-width: 112px; padding: 7px 12px; border-radius: 999px; text-align: center; font-weight: 850; }
.display-history-state.status-CALLED { background: #5d430b; color: #ffd16d; }
.display-history-state.status-IN_PROGRESS { background: #104f40; color: #85e6c6; }
.display-history-state.status-COMPLETED { background: #31485b; color: #d5e1eb; }
.display-history-state.status-NO_SHOW { background: #592d35; color: #ffc3cb; }
.display-empty-compact { padding: 26px; color: #c5d5e2; text-align: center; }
@media (max-width: 900px) {
  .display-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .display-current-panel .display-grid { grid-template-columns: 1fr; }
  .display-history-row { grid-template-columns: 86px 1fr 120px 118px; }
}
@media (max-width: 600px) {
  .queue-ticket-top { padding-inline: 20px; }
  .ticket-main { padding-inline: 20px; }
  .ticket-call-state, .ticket-destination, .ticket-info-grid { margin-left: 20px; margin-right: 20px; }
  .ticket-buttons { padding-inline: 20px; }
  .display-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .display-history-row { grid-template-columns: 70px 1fr 105px; padding: 8px 10px; }
  .display-history-seat { display: none; }
  .display-history-state { min-width: 98px; }
  .staff-current-heading .live-refresh { display: none; }
}

/* 상담원 현장 조작 화면 개선 */
.staff-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 8%, rgba(31, 111, 235, .09), transparent 28rem),
    linear-gradient(180deg, #edf3f9 0%, #f7f9fc 100%);
}
.staff-body .topbar {
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 7px 22px rgba(7, 28, 49, .12);
}
.staff-shell {
  width: min(760px, calc(100% - 28px));
  margin-top: 18px;
  gap: 16px;
}
.staff-app { gap: 16px; }
.staff-summary-card {
  padding: 24px 26px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(16, 42, 67, .09);
}
.staff-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.staff-seat-title { min-width: 0; }
.staff-seat-title .eyebrow {
  max-width: 520px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-seat-title h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.65rem);
}
.staff-seat-status {
  display: grid;
  justify-items: end;
  gap: 5px;
  flex: 0 0 auto;
}
.staff-status-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
}
.staff-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.staff-metric {
  min-height: 82px;
  padding: 13px 16px;
  border: 0;
  background: #f1f5fa;
}
.staff-metric > span {
  color: #5c6f84;
  font-size: .8rem;
  font-weight: 750;
}
.staff-metric div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.staff-metric strong {
  margin-top: 1px;
  font-size: 1.85rem;
}
.staff-metric small {
  color: #5c6f84;
  font-weight: 750;
}
.staff-metric.connection strong {
  color: var(--ops-green);
  font-size: 1.12rem;
}
.staff-current-card {
  border: 1px solid #d8e2ec;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(16, 42, 67, .09);
}
.staff-current-card.callout {
  border: 2px solid var(--ops-amber);
  background: linear-gradient(160deg, #fffdf8 0%, #fff7e6 100%);
}
.staff-current-heading {
  min-height: 54px;
  align-items: center;
  padding: 14px 24px;
  font-size: .92rem;
  letter-spacing: .02em;
}
.staff-empty-state {
  padding: 34px 34px 30px !important;
}
.staff-empty-state h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
}
.staff-empty-state .lead { font-size: .98rem; }
.staff-primary-action {
  min-height: 64px;
  margin-top: 24px;
  border-radius: 14px;
  font-size: 1.16rem;
  box-shadow: 0 9px 20px rgba(31, 111, 235, .18);
}
.staff-ticket-state {
  padding: 30px 30px 24px !important;
}
.staff-current-status { min-height: 32px; }
.staff-ticket-label {
  margin: 22px 0 0;
  color: #6a7a8c;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.staff-ticket-number {
  margin: 4px 0 10px;
  font-size: clamp(5.2rem, 17vw, 7.4rem);
}
.staff-ticket-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  color: #53677a;
}
.staff-ticket-meta > * {
  padding: 0 12px;
  border-right: 1px solid #ccd7e2;
}
.staff-ticket-meta > *:last-child { border-right: 0; }
.staff-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}
.staff-action-grid .btn {
  min-width: 0;
  min-height: 64px;
  padding-inline: 12px;
  border-radius: 14px;
}
#progressActions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-current-card .footer-time {
  min-height: 32px;
  margin: 0;
  padding: 0 24px 16px;
  font-size: .8rem;
}

@media (max-width: 560px) {
  .staff-body .topbar { min-height: 64px; padding-block: 12px; }
  .staff-shell { width: min(100% - 20px, 760px); margin-top: 10px; }
  .staff-summary-card { padding: 20px; }
  .staff-summary-head { align-items: flex-start; gap: 12px; }
  .staff-seat-title h1 { font-size: 2rem; }
  .staff-status-label { display: none; }
  .staff-metrics { margin-top: 14px; }
  .staff-metric { min-height: 74px; padding: 11px 13px; }
  .staff-current-heading { padding-inline: 18px; }
  .staff-empty-state, .staff-ticket-state { padding: 28px 20px 22px !important; }
  .staff-action-grid, #progressActions { grid-template-columns: 1fr; }
  .staff-action-grid .btn { min-height: 58px; }
  .staff-ticket-meta > * { padding-inline: 9px; }
  .staff-current-card .footer-time { padding-inline: 18px; }
}


/* 상담원 4개 현황 지표 */
.staff-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.staff-metric { min-width: 0; }
.staff-metric.completed strong { color: #147d64; }
.staff-metric.performance strong { color: #1769e0; }
.staff-system-state {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
}
.staff-system-state strong {
  margin: 0;
  color: #1769e0;
  font-size: 1rem;
  white-space: nowrap;
}
.staff-system-light {
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: #1f6feb;
  box-shadow: 0 0 0 5px rgba(31, 111, 235, .13);
}
.staff-system-state.is-offline strong { color: #c93645; }
.staff-system-state.is-offline .staff-system-light {
  background: #dc3545;
  box-shadow: 0 0 0 5px rgba(220, 53, 69, .13);
}

@media (max-width: 680px) {
  .staff-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 모바일 현장 운영 보정 */
@media (max-width: 560px) {
  #calledActions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #calledActions #noShowButton { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .student-body .topbar > .top-meta { display: block; }
  .student-body .ticket-call-state { padding-inline: 16px; }
  .student-body .ticket-call-summary { gap: 7px; }
  .student-body .ticket-call-summary h1 { font-size: clamp(1.2rem, 5.4vw, 1.5rem); }
  .student-body .ticket-inline-destination { font-size: clamp(1.18rem, 5.1vw, 1.45rem); }
  .student-body .topbar > .top-meta .status-pill {
    min-height: 28px;
    padding: 4px 10px;
    font-size: .8rem;
  }
}

@supports (padding: env(safe-area-inset-top)) {
  .topbar {
    padding-top: calc(16px + env(safe-area-inset-top));
    padding-right: calc(clamp(16px, 4vw, 34px) + env(safe-area-inset-right));
    padding-bottom: 16px;
    padding-left: calc(clamp(16px, 4vw, 34px) + env(safe-area-inset-left));
  }
  .shell {
    max-width: calc(100% - 28px - env(safe-area-inset-left) - env(safe-area-inset-right));
    margin-bottom: calc(48px + env(safe-area-inset-bottom));
  }
  .staff-body .topbar {
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-right: calc(clamp(16px, 4vw, 34px) + env(safe-area-inset-right));
    padding-bottom: 12px;
    padding-left: calc(clamp(16px, 4vw, 34px) + env(safe-area-inset-left));
  }
  @media (max-width: 560px) {
    .staff-shell {
      max-width: calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
    }
  }
}


/* 모바일 상담원 현황 압축 */
@media (max-width: 560px) {
  .staff-summary-card { padding: 14px 16px; }
  .staff-summary-head { gap: 8px; }
  .staff-seat-title .eyebrow {
    margin-bottom: 1px;
    font-size: .72rem;
  }
  .staff-seat-title h1 { font-size: 1.6rem; }
  .staff-metrics {
    gap: 6px;
    margin-top: 10px;
  }
  .staff-metric {
    min-height: 60px;
    padding: 7px 10px;
  }
  .staff-metric > span { font-size: .74rem; }
  .staff-metric strong { font-size: 1.45rem; }
  .staff-system-state {
    gap: 7px;
    min-height: 28px;
  }
  .staff-system-state strong { font-size: .9rem; }
  .staff-system-light {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
    box-shadow: 0 0 0 4px rgba(31, 111, 235, .13);
  }
  .staff-ticket-state { padding: 20px 20px 18px !important; }
  .staff-ticket-label { margin-top: 14px; }
  .staff-ticket-number { margin-top: 2px; }
  .staff-action-grid { margin-top: 18px; }
}


/* 만족도 설문 기본 화면: 문항과 결과 화면은 추후 확장 */
.survey-shell { max-width: 660px; }
.survey-fieldset { border: 0; padding: 0; margin: 26px 0 22px; }
.survey-fieldset legend { margin-bottom: 10px; font-weight: 850; }
.survey-rating-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.survey-rating-grid > div { position: relative; min-width: 0; }
.survey-rating-grid input { position: absolute; opacity: 0; pointer-events: none; }
.survey-rating-grid label {
  height: 100%;
  min-height: 88px;
  padding: 9px 5px;
  border: 2px solid var(--line);
  border-radius: 13px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: white;
  text-align: center;
  cursor: pointer;
}
.survey-rating-grid label strong { color: var(--navy); font-size: 1.35rem; }
.survey-rating-grid label span { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.survey-rating-grid input:checked + label { border-color: var(--blue); background: #edf5ff; }
.survey-rating-grid input:checked + label strong { color: var(--blue-dark); }
.survey-rating-grid input:focus-visible + label { outline: 3px solid rgba(23, 105, 224, .28); outline-offset: 2px; }
.survey-feedback textarea {
  width: 100%;
  resize: vertical;
  min-height: 108px;
  padding: 12px 13px;
  border: 1px solid #b8c6d4;
  border-radius: 11px;
  color: var(--ink);
  font: inherit;
}
.survey-feedback textarea:focus { border-color: var(--blue); outline: 3px solid rgba(23, 105, 224, .17); }
.survey-counter { margin-top: -4px; color: var(--muted); font-size: .78rem; text-align: right; }
.survey-submit { min-height: 58px; margin-top: 18px; }
.survey-done-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #dff6ee; color: var(--green); font-size: 2rem; font-weight: 900; }
.survey-back-link { display: inline-grid; place-items: center; margin-top: 24px; text-decoration: none; }
@media (max-width: 480px) {
  .survey-rating-grid { gap: 5px; }
  .survey-rating-grid label { min-height: 78px; padding-inline: 2px; }
  .survey-rating-grid label span { font-size: .66rem; }
}


/* 상담 완료 설문 전환 영역 */
.queue-ticket-card[data-state="COMPLETED"] .ticket-call-state {
  padding: 18px 22px 22px;
  background: #eef9f5;
  box-shadow: inset 0 0 0 2px #8bd8be;
}
.ticket-survey-cta {
  min-height: 64px;
  margin-top: 8px;
  border-radius: 14px;
  font-size: 1.08rem;
}
.ticket-survey-cta:disabled {
  cursor: default;
  opacity: 1;
  background: #dff6ee;
  color: #07634c;
}


/* 실제 설문: 모바일 우선 문항 카드와 복수선택 */
.survey-body { background: #eef3f8; }
.survey-body .topbar { gap: 14px; }
.survey-form-card h1 { overflow-wrap: anywhere; }
.survey-public-list { display: grid; gap: 28px; margin-top: 28px; }
.survey-public-question {
  min-width: 0;
  padding-top: 2px;
}
.survey-public-question + .survey-public-question {
  padding-top: 26px;
  border-top: 1px solid #e0e8f0;
}
.survey-public-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  margin-bottom: 13px;
  line-height: 1.45;
}
.survey-public-number {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dcecff;
  color: #135dbb;
  font-weight: 900;
}
.survey-public-heading strong { padding-top: 3px; word-break: keep-all; overflow-wrap: break-word; }
.survey-public-heading small { padding-top: 4px; }
.survey-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.survey-choice-list label {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #cbd7e3;
  border-radius: 11px;
  background: white;
  cursor: pointer;
  line-height: 1.35;
}
.survey-choice-list input { width: 21px; height: 21px; flex: 0 0 auto; accent-color: var(--blue); }
.survey-choice-list label:has(input:checked) { border-color: var(--blue); background: #edf5ff; box-shadow: inset 0 0 0 1px var(--blue); }
.survey-choice-list label:has(input:disabled) { opacity: .46; cursor: default; }
.survey-selection-counter {
  margin: -2px 0 9px;
  color: var(--blue-dark);
  font-size: .83rem;
  font-weight: 800;
  text-align: right;
}
.survey-public-question textarea {
  width: 100%;
  min-height: 116px;
  padding: 13px 14px;
  border: 1px solid #b8c6d4;
  border-radius: 11px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
}
.survey-public-question textarea:focus { border-color: var(--blue); outline: 3px solid rgba(23, 105, 224, .17); }

@media (max-width: 520px) {
  .survey-body .topbar { padding: 17px 18px; }
  .survey-body .brand { font-size: 1rem; }
  .survey-body .top-meta { font-size: .76rem; }
  .survey-shell { width: 100%; padding: 12px; }
  #surveyFormCard { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 18px; }
  #surveyFormCard h1 { font-size: clamp(1.55rem, 7vw, 2rem); line-height: 1.2; word-break: keep-all; overflow-wrap: break-word; }
  #surveyFormCard .lead { font-size: .92rem; line-height: 1.55; }
  .survey-public-list { gap: 24px; margin-top: 24px; }
  .survey-public-question + .survey-public-question { padding-top: 23px; }
  .survey-public-heading { grid-template-columns: 30px minmax(0, 1fr); }
  .survey-public-heading small { grid-column: 2; padding-top: 0; }
  .survey-choice-list { grid-template-columns: 1fr; }
  .survey-choice-list label { min-height: 52px; padding: 12px; }
  .survey-rating-grid { grid-template-columns: 1fr; gap: 7px; }
  .survey-rating-grid label {
    min-height: 54px;
    padding: 8px 12px;
    grid-template-columns: 38px minmax(0, 1fr);
    place-items: center start;
    align-content: center;
    text-align: left;
  }
  .survey-rating-grid label strong {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef3f8;
    font-size: 1rem;
  }
  .survey-rating-grid label span { font-size: .88rem; line-height: 1.3; }
  .survey-submit { position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 4; box-shadow: 0 7px 22px rgba(23, 105, 224, .24); }
}


/* 점수를 선택한 뒤에만 5단계 의미색을 표시 */
.survey-rating-grid input[value="5"]:checked + label {
  border-color: #0b8a68;
  background: #dff6ee;
  box-shadow: inset 0 0 0 1px #0b8a68;
}
.survey-rating-grid input[value="5"]:checked + label strong {
  color: #07634c;
  background: #bcebdc;
}
.survey-rating-grid input[value="4"]:checked + label {
  border-color: #3b9f72;
  background: #edf9f2;
  box-shadow: inset 0 0 0 1px #3b9f72;
}
.survey-rating-grid input[value="4"]:checked + label strong {
  color: #176b4a;
  background: #d0efdc;
}
.survey-rating-grid input[value="3"]:checked + label {
  border-color: #c28a16;
  background: #fff8df;
  box-shadow: inset 0 0 0 1px #c28a16;
}
.survey-rating-grid input[value="3"]:checked + label strong {
  color: #805b0e;
  background: #ffedaa;
}
.survey-rating-grid input[value="2"]:checked + label {
  border-color: #e27b2e;
  background: #fff1e7;
  box-shadow: inset 0 0 0 1px #e27b2e;
}
.survey-rating-grid input[value="2"]:checked + label strong {
  color: #a1480b;
  background: #ffd8bb;
}
.survey-rating-grid input[value="1"]:checked + label {
  border-color: #c93642;
  background: #ffe7e8;
  box-shadow: inset 0 0 0 1px #c93642;
}
.survey-rating-grid input[value="1"]:checked + label strong {
  color: #9f1f2b;
  background: #ffd0d3;
}

.student-finished-card { padding-block: 38px; text-align: center; }
.finished-ticket-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(78vw, 280px);
  margin: 10px auto 18px;
  padding: 16px 24px;
  border: 2px solid #6eafe8;
  border-radius: 20px;
  background: #edf7ff;
  color: #0c4f8a;
  font-size: clamp(2.8rem, 15vw, 4.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.student-finished-card h1 { margin: 8px 0 10px; font-size: clamp(1.55rem, 6vw, 2rem); }
.student-finished-card .lead { max-width: 30rem; margin-inline: auto; }
