
/* Kiosk / 一体机 — portrait touch terminal (aligned with User manual 6.0 style, not PC admin) */

.kiosk-viewport {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  background: #cbd5e1;
  box-sizing: border-box;
}

.kiosk-device-frame {
  /* 固定 1200:1920 比例：高度优先适应屏幕，宽度按比例缩放；窄屏时按宽度反向约束高度 */
  height: min(calc(100vh - 32px), calc((100vw - 32px) * 1920 / 1200));
  width: auto;
  aspect-ratio: 1200 / 1920;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
}

.kiosk-device-screen {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e8f4fc 0%, #f0f9ff 35%, #ffffff 100%);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #0f172a;
}

.kiosk-topbar {
  flex-shrink: 0;
  background: linear-gradient(90deg, #6DB3FA, #4F98F6);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.kiosk-topbar-row {
  padding: 8px 14px;
}

/* Kiosk home — report card full-bleed (no left/right spacing) */
.kiosk-home-page .kiosk-report-panel {
  margin-left: -14px;
  margin-right: -14px;
  border-radius: 0;
}

.kiosk-topbar-row--queue {
  background: rgba(0, 0, 0, 0.12);
  font-weight: 600;
  font-size: 13px;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.kiosk-topbar-row--user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #3A7ED9;
}

.kiosk-user-label em {
  font-style: normal;
  font-weight: 600;
}

.kiosk-topbar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kiosk-chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  min-height: 36px;
}

.kiosk-chip-btn--alt {
  background: rgba(255, 255, 255, 0.28);
}

.kiosk-main {
  flex: 1;
  overflow: auto;
  padding: 16px 14px 24px;
  -webkit-overflow-scrolling: touch;
}

.kiosk-page-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: #3A7ED9;
}

.kiosk-page-lead {
  margin: 0 0 16px;
  font-size: 14px;
  text-align: center;
  color: #64748b;
  line-height: 1.5;
}

.kiosk-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.kiosk-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 16px 10px;
  border: none;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.kiosk-tile--primary {
  background: linear-gradient(160deg, #8EC5FC, #4F98F6);
  color: #fff;
  grid-column: span 2;
  min-height: 100px;
}

.kiosk-tile--accent {
  background: linear-gradient(160deg, #34d399, #059669);
  color: #fff;
}

.kiosk-tile--muted {
  opacity: 0.85;
  cursor: default;
}

/* Kiosk home — fixed round action buttons (right-middle, over content) */

.kiosk-fixed-actions {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kiosk-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #fff;
  background: linear-gradient(180deg, #8EC5FC, #4F98F6);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  padding: 0;
}

.kiosk-fab:active {
  transform: scale(0.95);
}

.kiosk-fab:disabled,
.kiosk-fab[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.4);
}

.kiosk-fab:disabled:active {
  transform: none;
}

.kiosk-fab--instant {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

/* 未到预约时间：立即问诊不可点击，整体变灰 */
.kiosk-fab--instant:disabled,
.kiosk-fab--instant[disabled] {
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  color: #f1f5f9;
  opacity: 0.55;
  filter: grayscale(1);
  box-shadow: none;
  cursor: not-allowed;
}
.kiosk-fab--instant:disabled .kiosk-fab-label {
  color: #f1f5f9;
}

.kiosk-fab--wait {
  background: linear-gradient(180deg, #fb923c, #ea580c);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
  text-decoration: none;
}

.kiosk-fab-icon {
  font-size: 18px;
  line-height: 1;
}

.kiosk-fab-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.kiosk-tile-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.kiosk-tile-label {
  font-size: 16px;
  font-weight: 600;
}

.kiosk-tile-hint {
  font-size: 11px;
  margin-top: 4px;
  color: #64748b;
}

.kiosk-demo-hint {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 16px 0 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}

/* 首页内嵌「视频会诊提醒」卡片（样式对齐提醒弹窗） */
.kiosk-inline-reminder {
  margin-top: 14px;
  padding: 14px 16px 16px;
  background: #fff;
  border: 2px solid #f59e0b;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.16);
}

.kiosk-inline-reminder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kiosk-inline-reminder-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #b45309;
}

.kiosk-inline-reminder-body {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.kiosk-inline-reminder-ack {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #8EC5FC, #4F98F6);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* Kiosk home — health report backdrop (mirrors kiosk report screen) */

.kiosk-report-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
  overflow: hidden;
}

.kiosk-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(90deg, #6DB3FA, #4F98F6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.kiosk-report-page {
  min-width: 26px;
  text-align: center;
  padding: 2px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 700;
}

.kiosk-report-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.kiosk-report-info-item {
  display: flex;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.kiosk-report-info-item--full {
  grid-column: span 2;
}

.kiosk-report-info-item .k {
  color: #64748b;
  flex-shrink: 0;
}

.kiosk-report-info-item .v {
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}

.kiosk-report-summary {
  grid-column: span 2;
  margin: 4px 0 0;
  font-size: 12px;
  color: #3A7ED9;
  font-weight: 600;
  background: #eff6ff;
  border-radius: 8px;
  padding: 6px 10px;
}

.kiosk-report-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11.5px;
}

.kiosk-report-table th {
  background: #eaf6fe;
  color: #3A7ED9;
  text-align: left;
  padding: 7px 10px;
  font-weight: 700;
  font-size: 11.5px;
}

.kiosk-report-table td {
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kiosk-report-table th:nth-child(1),
.kiosk-report-table td:nth-child(1) {
  width: 34%;
}

.kiosk-report-table th:nth-child(2),
.kiosk-report-table td:nth-child(2) {
  width: 27%;
}

.kiosk-report-table th:nth-child(4),
.kiosk-report-table td:nth-child(4) {
  width: 17%;
}

.kiosk-report-row td {
  border-bottom: 1px solid #f1f5f9;
}

.kiosk-report-row--alt td {
  background: #f8fafc;
}

.kiosk-report-sec td {
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  padding-top: 6px;
  padding-bottom: 6px;
}

.kiosk-report-val--abnormal {
  color: #dc2626;
  font-weight: 700;
}

.kiosk-report-st {
  font-weight: 600;
}

.kiosk-report-st--normal {
  color: #16a34a;
}

.kiosk-report-st--high,
.kiosk-report-st--low {
  color: #dc2626;
  font-weight: 700;
}

.kiosk-report-st--none {
  color: #94a3b8;
}

.kiosk-report-email {
  display: flex;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #f1f5f9;
}

.kiosk-report-email input {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
}

.kiosk-report-email button {
  flex-shrink: 0;
  border: none;
  border-radius: 9px;
  background: linear-gradient(90deg, #6DB3FA, #4F98F6);
  color: #fff;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* Kiosk home — book / instant modals (inside device screen) */

.kiosk-modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.kiosk-modal[hidden] {
  display: none !important;
}

.kiosk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.kiosk-modal-panel {
  position: relative;
  width: 100%;
  max-height: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kiosk-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.kiosk-modal-head h2 {
  margin: 0;
  font-size: 20px;
  color: #3A7ED9;
}

.kiosk-modal-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.kiosk-modal-x {
  border: none;
  background: #f1f5f9;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  flex-shrink: 0;
}

.kiosk-modal-x:hover {
  background: #e2e8f0;
}

.kiosk-modal-body {
  padding: 14px 16px 16px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.kiosk-field {
  margin-bottom: 12px;
}

/* 科室：label 在左，选择框在其右侧并略低一点 */
.kiosk-field.kiosk-field--row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kiosk-field.kiosk-field--row > label {
  display: inline-block;
  margin-bottom: 0;
  flex-shrink: 0;
  width: auto;
  white-space: nowrap;
}
.kiosk-field.kiosk-field--row > select {
  flex: 1;
  width: auto;
  min-width: 0;
  margin-top: 10px;
}

/* 医生：标签与「已选择」提示同一行，提示靠右后方 */
.kiosk-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.kiosk-field .kiosk-field-head > label {
  display: inline-block;
  margin-bottom: 0;
}

.kiosk-field label {
  display: block;
  font-size: 14px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 5px;
}

.kiosk-field select,
.kiosk-field input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
}

.kiosk-modal-submit {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #8EC5FC, #4F98F6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 -8px 16px rgba(255, 255, 255, 0.92);
}

.kiosk-instant-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
}

.kiosk-instant-doc:last-child {
  margin-bottom: 0;
}

.kiosk-instant-doc-avatar {
  border-radius: 12px;
  flex-shrink: 0;
}

.kiosk-instant-doc-info {
  flex: 1;
  min-width: 0;
}

.kiosk-instant-doc-name {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kiosk-instant-doc-meta {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.kiosk-idle-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}

.kiosk-idle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.kiosk-instant-start {
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb7185, #e11d48);
  color: #fff;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.kiosk-instant-empty {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 26px 10px;
  margin: 0;
  line-height: 1.6;
}

.kiosk-touch-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 52px;
  box-sizing: border-box;
}

.kiosk-touch-btn--primary {
  background: linear-gradient(180deg, #8EC5FC, #4F98F6);
  color: #fff;
}

.kiosk-touch-btn--answer {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  color: #fff;
  min-height: 58px;
  line-height: 58px;
  font-size: 18px;
}

.kiosk-touch-btn--decline {
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #fff;
}

.kiosk-touch-btn--ghost {
  background: #fff;
  color: #3A7ED9;
  border: 2px solid #bae6fd;
  line-height: 48px;
  min-height: 48px;
}

.kiosk-touch-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kiosk-wait-queue-label {
  text-align: center;
  font-size: 15px;
  color: #64748b;
  margin: 24px 0 0;
}

.kiosk-wait-queue-no {
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: #4F98F6;
  margin: 8px 0 16px;
  letter-spacing: 0.02em;
}

.kiosk-wait-pulse {
  text-align: center;
  font-size: 14px;
  color: #3A7ED9;
  animation: kiosk-wait-blink 2s ease-in-out infinite;
}

.kiosk-wait-appt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 6px auto 4px;
  padding: 9px 40px;
  border-radius: 999px;
  background: #eff6ff;
  color: #3A7ED9;
  font-size: 16px;
  line-height: 1.2;
}
.kiosk-wait-appt .k {
  font-weight: 600;
  opacity: 0.8;
}
.kiosk-wait-appt .v {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* 候诊页顶部的「就诊时间」主信息，底色更突出 */
.kiosk-wait-appt--primary {
  margin: 4px auto 8px;
  background: #dbeafe;
  color: #1d4ed8;
}
.kiosk-wait-appt--primary .k,
.kiosk-wait-appt--primary .v {
  font-size: 16px;
}

.kiosk-modal-panel--warn {
  border-top: 4px solid #f59e0b;
}
.kiosk-modal-panel--warn .kiosk-modal-head h2 {
  color: #b45309;
}

@keyframes kiosk-wait-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.kiosk-incoming-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.kiosk-device-screen {
  position: relative;
}

.kiosk-incoming-card,
.kiosk-incoming-page {
  width: 100%;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 28px 20px 32px;
  text-align: center;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.kiosk-incoming-kicker {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kiosk-incoming-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 4px solid #22c55e;
  animation: kiosk-ring-pulse 1.2s ease-in-out infinite;
}

@keyframes kiosk-ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.88;
  }
}

.kiosk-incoming-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
}

.kiosk-incoming-sub {
  font-size: 14px;
  color: #475569;
  margin: 0 0 8px;
  line-height: 1.45;
}

.kiosk-incoming-warn {
  color: #b45309;
  font-size: 13px;
  margin: 8px 0;
  line-height: 1.4;
}

.kiosk-incoming-actions {
  margin-top: 16px;
}

.kiosk-live-page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.kiosk-live-status {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #3A7ED9;
  margin: 0;
}

/* 上方：医生画面（16:9） */
.kiosk-live-video {
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
}

.kiosk-live-video .consult-video-frame {
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 16px;
}

.kiosk-live-video .consult-video-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 下方：自己的画面（16:9，与医生画面一致） */
.kiosk-live-self {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.kiosk-live-self-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.kiosk-live-self-off {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
}
.kiosk-live-self-off[hidden] {
  display: none;
}

.kiosk-live-self-ctrls {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}

.kiosk-live-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.kiosk-live-ctrl.is-off {
  background: rgba(220, 38, 38, 0.92);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fff;
}

.kiosk-live-ctrl-ico {
  font-size: 15px;
  line-height: 1;
}

.kiosk-live-ctrl-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.kiosk-live-ctrl.is-off .kiosk-live-ctrl-img {
  filter: brightness(0) invert(1);
}

/* 底部操作：左侧主题色「增加体检项目」+ 右侧「挂断离开」 */
.kiosk-live-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.kiosk-live-actions .kiosk-touch-btn {
  flex: 1;
  width: auto;
  margin-top: 0;
}

/* 增加体检项目弹层 */
.kiosk-exam-sheet {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.kiosk-exam-sheet[hidden] {
  display: none;
}
.kiosk-exam-sheet .kiosk-modal-backdrop {
  position: absolute;
  inset: 0;
}
.kiosk-exam-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.3);
}
.kiosk-exam-sheet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 4px;
  overflow: auto;
  min-height: 0;
}
.kiosk-exam-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.kiosk-exam-opt input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.kiosk-ended-icon {
  width: 72px;
  height: 72px;
  margin: 40px auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 36px;
  line-height: 72px;
  text-align: center;
  font-weight: 700;
}

/* ——— Doctor queue UI (unchanged helpers) ——— */
.badge-purple {
  background: #ede9fe;
  color: #5b21b6;
}

.queue-card--calling {
  box-shadow: 0 0 0 2px #8b5cf6;
}

.queue-checkin-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}

.queue-checkin-badge--none {
  background: #fef3c7;
  color: #92400e;
}

.queue-exam-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #3A7ED9;
}

.consult-queue-status-banner {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.consult-queue-status-banner--wait {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.consult-queue-status-banner--call {
  background: #f5f3ff;
  border: 1px solid #c4b5fd;
}

.consult-queue-status-banner--active {
  background: #eff6ff;
  border: 1px solid #C9DFFC;
}

.consult-queue-status-banner--done {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.consult-queue-status-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

.settings-prototype-note {
  margin-top: 12px;
  font-style: italic;
}

.device-consult-live-panel {
  margin-top: 16px;
}

.member-consult-page .form-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* — kiosk 预约弹窗 chips — */
.kiosk-modal-panel--tall {
  max-height: 100%;
}

.kiosk-book-chip-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 2px 10px;
  scroll-behavior: smooth;
}

.kiosk-book-chip-scroller::-webkit-scrollbar {
  height: 6px;
}
.kiosk-book-chip-scroller::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 6px;
}

/* 医生 chip：头像 + 名称，垂直居中 */
.kiosk-book-doctor-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 80px;
  padding: 10px 10px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.kiosk-book-doctor-chip:hover {
  border-color: var(--primary);
}

.kiosk-book-doctor-chip.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 152, 246, 0.35);
}

.kiosk-book-doctor-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  flex: 0 0 40px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.kiosk-book-doctor-chip.is-selected .kiosk-book-doctor-name {
  color: #fff;
  font-weight: 600;
}

.kiosk-book-doctor-name {
  font-size: 13px;
  color: var(--text);
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 日期 chip：MM-DD + 星期 */
.kiosk-book-date-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 62px;
  padding: 8px 8px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.kiosk-book-date-chip.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(79, 152, 246, 0.3);
}

.kiosk-book-date-day {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.kiosk-book-date-week {
  font-size: 12px;
  color: var(--text-muted);
}

.kiosk-book-date-chip.is-selected .kiosk-book-date-week {
  color: rgba(255, 255, 255, 0.85);
}

/* 时间段 chip */
.kiosk-book-time-group {
  margin-bottom: 12px;
}

.kiosk-book-time-group-label {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kiosk-book-time-progress {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.kiosk-book-time-row {
  display: grid;
  /* 按屏幕宽度自适应：现在这个宽度每行 4 个正好，能多放就多放并铺满整行 */
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
}

.kiosk-book-time-chip {
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.kiosk-book-time-chip .kiosk-book-time-range {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.kiosk-book-time-chip .kiosk-book-time-seq {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.7;
}

.kiosk-book-time-chip:hover {
  border-color: var(--primary);
}

.kiosk-book-time-chip.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(79, 152, 246, 0.3);
}

.kiosk-book-time-chip.is-selected .kiosk-book-time-range,
.kiosk-book-time-chip.is-selected .kiosk-book-time-seq {
  color: #fff;
  opacity: 1;
}

.kiosk-book-time-chip.is-sold {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.65;
}

.kiosk-book-time-chip.is-sold .kiosk-book-time-range,
.kiosk-book-time-chip.is-sold .kiosk-book-time-seq {
  color: #9ca3af;
  text-decoration: line-through;
  opacity: 1;
}

.kiosk-book-time-chip.is-sold:hover {
  border-color: #e5e7eb;
}

/* 底部提示 */
.kiosk-book-selection-hint {
  margin: 0;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}

.kiosk-book-selection-hint.is-muted {
  color: var(--text-muted);
  font-weight: 400;
}

.kiosk-book-empty {
  padding: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 8px;
}
