:root {
  --brand: #18181B; --brand-600: #27272A; --brand-700: #09090B; --brand-50: #F4F5F7; --brand-100: #E5E7EB; --brand-300: #9CA3AF; --brand-ring: rgba(24,24,27,.10);
  --gold: #18181B; --gold-600: #18181B; --gold-700: #111827; --gold-50: #F4F5F7; --gold-100: #E5E7EB; --gold-ring: rgba(24,24,27,.10);
  --bg: #FFFFFF; --card: #FFFFFF; --line: #ECEEF2; --line-2: #F3F4F6; --hover: #F8F9FB;
  --text: #111827; --text-2: #4B5563; --muted: #8C919B; --input: #DCDEE3;
  --ok: #12B76A; --ok-bg: #ECFDF3; --ok-fg: #067647;
  --warn: #D97706; --warn-bg: #FFFBEB; --warn-fg: #B45309;
  --err: #E5484D; --err-bg: #FEF2F2; --err-fg: #B42318;
  --info: #2563EB; --info-bg: #EFF6FF; --info-fg: #1D4ED8;
  --violet-bg: #F4F3FF; --violet-fg: #5925DC;
  --radius: 14px; --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(16,24,40,.04);
  --shadow-sm: 0 2px 8px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.03);
  --shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px -8px rgba(16,24,40,.06);
  --shadow-lg: 0 24px 48px -12px rgba(16,24,40,.18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
::selection { background: var(--brand-100); }
svg.i { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }

/* ===== 登录 ===== */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 1fr); background: #fff; }
.login-brand { margin: 16px; border-radius: 28px; background: radial-gradient(120% 90% at 0% 0%, var(--brand-300) 0%, var(--brand) 42%, var(--brand-700) 100%);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-brand::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 60%); }
.login-brand.has-img { background: var(--brand-700) var(--login-img) center/cover no-repeat; }
.login-brand.has-img::before { background-image: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.05) 35%, rgba(0,0,0,.62)); background-size: auto; mask-image: none; }
.login-brand > * { position: relative; z-index: 1; }
.login-brand .logo { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.login-brand .logo span { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-brand .logo span img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.login-brand h2 { font-size: 40px; line-height: 1.25; margin-bottom: 16px; letter-spacing: -.5px; white-space: pre-line; }
.login-brand p { opacity: .8; font-size: 16px; }
.login-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.login-feats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 16px; }
.login-feats b { display: block; font-size: 15px; margin-bottom: 4px; }
.login-feats span { font-size: 12px; opacity: .75; }
.login-foot { display: flex; gap: 16px; flex-wrap: wrap; opacity: .65; font-size: 12px; }
.login-foot a { color: inherit; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { font-size: 28px; margin-bottom: 8px; }
.login-box .sub { color: var(--muted); margin-bottom: 28px; }
.login-box .field { margin-bottom: 16px; }
.login-box input { height: 46px !important; border-radius: 12px !important; }
.login-box .btn.primary { width: 100%; height: 46px; font-size: 15px; margin-top: 8px; border-radius: 12px; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row img { height: 46px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; background: #F4F6F8; }
.dev-banner { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid #FEDF89; border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 18px; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-brand { display: none; } }
/* 登录验证（短信验证码，js/mfa.js） */
/* 平台账号页「后台登录验证」的四步 */
.ls-step { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.ls-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); color: var(--text-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.ls-step.done .ls-num { background: var(--ok-bg); color: var(--ok-fg); }
.ls-body { flex: 1; min-width: 0; }
.ls-title { font-weight: 600; margin-bottom: 8px; }
.sms-row { display: flex; gap: 10px; }
.sms-row input { flex: 1; min-width: 0; }
.sms-row .btn { flex: none; min-width: 112px; }
.login-box .sms-row .btn { height: 46px; border-radius: 12px; }
.login-box input.otp-input, .modal input.otp-input { font-size: 22px; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
input.otp-input::placeholder { font-size: 15px; letter-spacing: 0; }
.modal input.otp-input { height: 44px; }
.mfa-trust { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); margin: -4px 0 8px; cursor: pointer; }
.mfa-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; }
.mfa-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.mfa-state.ok { color: var(--ok-fg); } .mfa-state.warn { color: var(--warn-fg); }
button.pill { border: none; cursor: pointer; }

/* ===== 框架 ===== */
#app-view { display: flex; min-height: 100vh; }
.sidebar { width: 244px; flex-shrink: 0; background: #FFFFFF; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sb-brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #27272A, #18181B); border: 1px solid var(--gold-100); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; overflow: hidden; font-weight: 700; box-shadow: var(--shadow-xs); }
.mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sb-brand b { display: block; font-size: 15px; line-height: 1.3; letter-spacing: .02em; max-width: 164px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-brand small { color: var(--muted); font-size: 11.5px; letter-spacing: .03em; }
.store-switch { padding: 8px 16px 8px; }
.store-switch label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.store-switch select { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--hover); }
#nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
#nav .group { color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; padding: 14px 10px 6px; }
#nav button.group { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; font-family: inherit; }
#nav button.group:hover { color: var(--text-2); }
#nav button.group .chev { width: 14px; height: 14px; margin-left: auto; transition: transform .15s; }
#nav button.group.closed .chev { transform: rotate(-90deg); }
#nav .nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--err); }
#nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; margin: 2px 0; border-radius: 11px; color: var(--text-2); font-weight: 500; text-decoration: none; transition: background .14s, color .14s; }
#nav a svg.i { color: #A19D94; transition: color .14s; }
#nav a:hover { background: var(--hover); color: var(--text); }
#nav a:hover svg.i { color: var(--text-2); }
#nav a.active { background: var(--gold-50); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
#nav a.active svg.i { color: var(--gold-600); }
#nav a .label { flex: 1; }
.nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sb-foot { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 8px; }
.alert-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.alert-toggle .t { flex: 1; font-weight: 500; }
.alert-toggle .t small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.alert-toggle.on { border-color: var(--brand-100); background: var(--brand-50); }
/* 语音播报开关（新单提醒开着时显示在它下面） */
.voice-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 0 12px; margin-top: -2px; font-size: 13px; color: var(--text-2); }
.voice-row .switch { min-height: 30px; gap: 8px; }
.voice-row .switch .track { width: 32px; height: 18px; }
.voice-row .switch .track::after { width: 14px; height: 14px; }
.voice-row .switch input:checked + .track::after { transform: translateX(14px); }
.user-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; border: none; background: none; cursor: pointer; text-align: left; }
.user-btn:hover { background: var(--line-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-300), var(--brand)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-btn .t { flex: 1; min-width: 0; }
.user-btn .t b { display: block; font-size: 13px; }
.user-btn .t small { color: var(--muted); font-size: 12px; }
.menu-pop { position: absolute; bottom: 64px; left: 10px; right: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: none; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.menu-pop button:hover { background: var(--line-2); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* 收起 / 展开菜单（顶栏左边的按钮）；收起后菜单只留图标，鼠标停在图标上显示菜单名 */
.nav-toggle { width: 34px; height: 34px; margin-left: -8px; border: 0; border-radius: 10px; background: none; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-toggle:hover { background: var(--line-2); color: var(--text); }
.nav-mini .sidebar { width: 68px; }
.nav-mini .sb-brand { justify-content: center; padding: 18px 0 12px; }
.nav-mini .sb-brand .grow, .nav-mini .store-switch, .nav-mini .voice-row, .nav-mini #nav .group, .nav-mini #nav a .label, .nav-mini .alert-toggle .t, .nav-mini .user-btn .t { display: none; }
.nav-mini #nav { padding: 4px 10px 16px; scrollbar-width: none; }
.nav-mini #nav > .group-items ~ .group-items { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav-mini #nav a { position: relative; justify-content: center; padding: 0; height: 42px; }
.nav-mini #nav a svg.i { width: 20px; height: 20px; }
.nav-mini #nav a .nav-badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
.nav-mini .sb-foot { padding: 10px 8px; }
.nav-mini .alert-toggle, .nav-mini .user-btn { justify-content: center; padding: 8px 0; }
.nav-mini .menu-pop { left: 8px; right: auto; width: 160px; }
.topbar { height: 60px; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 28px; gap: 12px; position: sticky; top: 0; z-index: 20; }
.topbar .crumb { font-weight: 600; letter-spacing: .01em; }
.topbar .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--line-2); color: var(--text-2); font-size: 12px; font-weight: 500; }
.pill.dev { background: var(--warn-bg); color: var(--warn-fg); }
.pill.ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill.warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill.err { background: var(--err-bg); color: var(--err-fg); }
.content { padding: 26px 28px 36px; max-width: 1460px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 23px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }
.page-head .desc { color: var(--muted); margin-top: 4px; font-size: 13.5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* 普通块布局（REVIEW-01）：原来是 flex，文字里夹着 <b> / <a> 时每一段都成了一列，一换行就断成竖条 */
.notice-bar { display: block; padding: 12px 15px; border-radius: 12px; background: var(--info-bg); color: var(--info-fg); border: 1px solid #DBEAFE; margin-bottom: 16px; font-size: 13px; line-height: 1.6; }
.notice-bar > svg.i:first-child { vertical-align: -4px; margin-right: 8px; }
.notice-bar.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: #FDE68A; }
.notice-bar.err { background: var(--err-bg); color: var(--err-fg); border-color: #FECACA; }

/* ===== 卡片与网格 ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 15px 22px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 18px 20px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.stat:hover { border-color: var(--gold-100); box-shadow: var(--shadow-sm); }
.stat .k { color: var(--text-2); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 28px; font-weight: 700; margin-top: 8px; letter-spacing: -.6px; line-height: 1.15; }
.stat .v small { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stat .ico { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-50); color: var(--gold-600); border: 1px solid var(--gold-100); }
.stat .ico svg.i { width: 16px; height: 16px; }

/* ===== 按钮与表单 ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--input); background: #fff; color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-xs); transition: background .12s, border-color .12s; text-decoration: none !important; }
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: #18181B; border-color: #18181B; color: #fff; box-shadow: 0 2px 6px rgba(24,24,27,.14); }
.btn.primary:hover { background: #2D2D32; border-color: #2D2D32; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-600); border-color: var(--gold-600); }
.btn.danger { color: var(--err-fg); border-color: #FECACA; }
.btn.danger:hover { background: var(--err-bg); }
.btn.solid-danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.ghost { border-color: transparent; box-shadow: none; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 31px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn svg.i { width: 16px; height: 16px; }
.link-btn { border: none; background: none; color: var(--gold-600); cursor: pointer; padding: 0; font-weight: 500; }
.link-btn:hover { color: var(--gold-700); text-decoration: underline; }
.link-btn.danger { color: var(--err-fg); }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input:not([type]), select, textarea {
  width: 100%; height: 38px; border: 1px solid var(--input); border-radius: 10px; padding: 0 12px; background: #fff; outline: none; box-shadow: var(--shadow-xs); transition: border-color .14s, box-shadow .14s; }
textarea { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--line-2); color: var(--muted); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: -3px; }
input[type=color] { width: 44px; height: 38px; border: 1px solid var(--input); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.form { display: grid; gap: 14px; }
.form.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field > label:not(.switch) { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field > label .req { color: var(--err); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.input-group { display: flex; align-items: stretch; }
.input-group > span { display: flex; align-items: center; flex-shrink: 0; white-space: nowrap; padding: 0 10px; border: 1px solid var(--input); background: var(--line-2); color: var(--text-2); font-size: 13px; }
.input-group > span:first-child { border-radius: 10px 0 0 10px; border-right: none; }
.input-group > span:last-child { border-radius: 0 10px 10px 0; border-left: none; }
.input-group > input { border-radius: 0; }
.input-group > input:first-child { border-radius: 10px 0 0 10px; }
.input-group > input:last-child { border-radius: 0 10px 10px 0; }
.input-group > span:first-child + input:last-child { border-radius: 0 10px 10px 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; min-height: 38px; align-items: center; }
.checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; min-height: 38px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: #D0D5DD; position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--brand-ring); }
.segment { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.segment a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; text-decoration: none; white-space: nowrap; }
.segment a.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.segment button { border: none; background: none; height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.segment button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.segment button .n { margin-left: 4px; font-size: 12px; color: var(--muted); }
.segment button.on .n { color: var(--brand); }
/* 精简版：同一菜单下的几个页面，在页面顶部切换（路由统一加）。下划线标签，和页面里的分段按钮区分开 */
.page-tabs { border-bottom: 1px solid var(--line); margin-top: -6px; }
.page-tabs.mb16 { margin-bottom: 20px; }
.page-tabs .segment { flex-wrap: wrap; max-width: 100%; background: none; padding: 0; gap: 4px 28px; border-radius: 0; }
.page-tabs .segment a, .page-tabs .segment button { position: relative; height: 44px; padding: 0 2px; border-radius: 0; font-size: 14.5px; color: var(--text-2); background: none; box-shadow: none; }
.page-tabs .segment a:hover, .page-tabs .segment button:hover { color: var(--text); }
.page-tabs .segment a.on, .page-tabs .segment button.on { background: none; box-shadow: none; color: var(--text); font-weight: 600; }
.page-tabs .segment a.on::after, .page-tabs .segment button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--gold); }
.segment a .n { margin-left: 4px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--err-fg, #d4380d); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
/* 规则页分组 Tab（REVIEW-01） */
.rule-tabs { display: grid; gap: 8px; }
.rule-tab-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rule-tab-row .g { width: 64px; flex-shrink: 0; font-size: 12px; color: var(--muted); }
.rule-tab-row .segment { flex-wrap: wrap; max-width: 100%; }

/* 图片上传 */
.img-field { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.img-box { width: 88px; height: 88px; border-radius: 12px; border: 1px dashed var(--input); background: var(--hover); display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; position: relative; overflow: hidden; flex-shrink: 0; }
.img-box:hover { border-color: var(--brand); color: var(--brand); }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.img-box.contain img { object-fit: contain; background: #fff; }
.img-box .del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(17,24,39,.65); color: #fff; border: none; cursor: pointer; display: none; align-items: center; justify-content: center; font-size: 14px; line-height: 1; }
.img-box:hover .del { display: flex; }
.img-box.wide { width: 176px; }
.img-box .uploading { position: absolute; inset: 0; background: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-2); }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .02em; background: var(--hover); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: none; }
table.t tr:hover td { background: #F9FAFB; }
table.t td.r, table.t th.r { text-align: right; }
table.t .ops { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; align-items: center; }
.ops-inline { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; flex-wrap: nowrap; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--line-2); flex-shrink: 0; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty svg.i { width: 36px; height: 36px; color: #D0D5DD; margin-bottom: 8px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.toolbar input, .toolbar select { width: auto; height: 34px; }
.toolbar .search { width: 220px; }
.pager { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; color: var(--text-2); font-size: 13px; }
.pager:empty { display: none; }
.pager .pg-total { margin-right: 6px; }
.pager .pg-n { min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager .pg-n:hover { border-color: var(--brand-300); color: var(--brand-700); }
.pager .pg-n.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; cursor: default; }
.pager .pg-gap { color: var(--muted); padding: 0 2px; }
.pager .pg-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.pager .pg-jump input { width: 48px; height: 30px; padding: 0 6px; border: 1px solid var(--input); border-radius: 8px; text-align: center; }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--text-2); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok-fg); }
.tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.tag.err { background: var(--err-bg); color: var(--err-fg); }
.tag.info { background: var(--info-bg); color: var(--info-fg); }
.tag.violet { background: var(--violet-bg); color: var(--violet-fg); }
.tag.brand { background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-100); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); }

/* ===== 弹窗 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(16,24,40,.45); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; display: flex; flex-direction: column; max-height: 88vh; animation: pop .18s; }
.modal > .modal-body { flex: 1; min-height: 0; overflow-y: auto; }
.modal > .modal-head, .modal > .modal-foot { flex-shrink: 0; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 12px; }
.modal-head h3 { font-size: 17px; flex: 1; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: none; background: none; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--line-2); color: var(--text); }
.modal-body { padding: 6px 22px 18px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--hover); border-radius: 0 0 18px 18px; }
.drawer-mask { position: fixed; inset: 0; background: rgba(16,24,40,.35); z-index: 90; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: #fff; z-index: 91; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s; }
.drawer .modal-body { flex: 1; overflow-y: auto; padding-top: 12px; }
.drawer .modal-foot { border-radius: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }

#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; pointer-events: none; }
.toast { background: #111827; color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; animation: pop .18s; max-width: 520px; }
.toast.err { background: var(--err-fg); }
.toast.ok { background: #067647; }
#alerts { position: fixed; right: 20px; bottom: 20px; z-index: 250; display: grid; gap: 10px; width: 340px; }
/* 开着带底栏的弹窗 / 订单详情抽屉时，新单卡片抬到底栏上面，不挡「出餐」「已取餐」等按钮（2026-10-20） */
body:has(.modal-foot) #alerts { bottom: 100px; }
.alert-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px; animation: pop .2s; }
.alert-card b { display: block; margin-bottom: 4px; }
.alert-card .row { margin-top: 10px; justify-content: flex-end; }

/* ===== 订单看板 ===== */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1200px) { .board { grid-template-columns: repeat(2, minmax(240px, 1fr)); } }
.board-col { position: relative; background: #F6F7F9; border: 1px solid var(--line); border-radius: 14px; padding: 0 10px 10px; min-height: 220px; overflow: hidden; }
.board-col::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--muted); }
.board-col.c-warn::before { background: var(--warn); }
.board-col.c-info::before { background: var(--info); }
.board-col.c-ok::before { background: var(--ok); }
.board-col.c-violet::before { background: #7A5AF8; }
.bc-head { display: flex; align-items: center; gap: 8px; padding: 15px 6px 12px; font-size: 14px; }
.bc-n { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--line); color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bc-n.on { background: #fff; color: var(--text); box-shadow: var(--shadow-xs); }
.c-warn .bc-n.on { background: var(--warn); color: #fff; }
.bc-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 14px; color: var(--muted); font-size: 12.5px; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; }
.bc-empty svg.i { width: 26px; height: 26px; color: #D0D5DD; }
.board-find { position: relative; display: flex; align-items: center; }
.board-find svg.i { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.board-find input { width: 210px; height: 36px; padding-left: 32px; }
/* 每列单独滚动、列头固定（REVIEW-01：原来单多时整页被一列拉得很长，其他列看不到） */
.board-col .board-body { max-height: max(360px, calc(100vh - 290px)); overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.board-col .bc-more { padding: 8px 4px 2px; text-align: center; font-size: 12px; color: var(--text-2); }
.board-col > h4 { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 14px; }
.board-col > h4 .n { margin-left: auto; background: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; color: var(--text-2); }
.ocard { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-xs); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ocard:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.ocard.late { border-color: #FDA29B; box-shadow: 0 0 0 3px var(--err-bg); }
.ocard .no { font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.oc-top { display: flex; align-items: center; gap: 6px; }
.oc-age { font-size: 12px; color: var(--muted); white-space: nowrap; }
.oc-age.late { color: var(--err-fg); font-weight: 600; }
.oc-flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--warn-fg); background: var(--warn-bg); padding: 2px 8px; border-radius: 6px; }
.oc-flag svg.i { width: 13px; height: 13px; }
.oc-addr { display: flex; gap: 6px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; line-height: 1.5; }
.oc-addr svg.i { width: 14px; height: 14px; margin-top: 2px; color: var(--muted); }
.ocard .items { margin: 10px 0; padding: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); display: grid; gap: 4px; font-size: 13.5px; color: var(--text); }
.ocard .items div { display: flex; gap: 6px; }
.ocard .items .q { margin-left: auto; color: var(--text); font-weight: 600; }
.ocard .spec { color: var(--muted); font-size: 12px; }
.ocard .remark { background: var(--warn-bg); color: var(--warn-fg); border-radius: 8px; padding: 6px 8px; font-size: 12px; margin-bottom: 8px; }
.ocard .foot { display: flex; align-items: center; gap: 8px; }
.ocard .foot .btn { min-width: 72px; }
.ocard.new { animation: glow 1.2s ease 3; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px var(--brand-ring); border-color: var(--brand); } }
.big-no { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px 12px; font-size: 13px; }
.kv > div:nth-child(odd) { color: var(--muted); }
.timeline { display: grid; gap: 10px; }
.timeline .it { display: flex; gap: 10px; font-size: 13px; }
.timeline .it .d { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-300); margin-top: 6px; flex-shrink: 0; }
.money-list { display: grid; gap: 6px; font-size: 13px; }
.money-list div { display: flex; justify-content: space-between; }
.money-list .total { font-weight: 700; font-size: 15px; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }

/* ===== 装修 ===== */
.deco { display: grid; grid-template-columns: 260px 390px minmax(320px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1250px) { .deco { grid-template-columns: 240px 360px minmax(280px, 1fr); } }
/* 小屏笔记本（1366×768 开 125% 缩放只有约 1093px）：属性面板挪到下面一整行，免得出现横向滚动条（REVIEW-01） */
@media (max-width: 1200px) { .deco { grid-template-columns: 240px 375px; } .deco > :nth-child(3) { grid-column: 1 / -1; } }
.deco-list .mod { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.deco-list .mod:hover { background: var(--line-2); }
.deco-list .mod.on { background: var(--gold-50); border-color: var(--gold-100); }
.deco-list .mod.off .name { color: var(--muted); text-decoration: line-through; }
.deco-list .mod .name { flex: 1; font-weight: 500; }
.deco-list .mod .ops { display: flex; gap: 2px; opacity: .55; }
.deco-list .mod:hover .ops, .deco-list .mod.on .ops { opacity: 1; }
.icon-btn { width: 26px; height: 26px; border-radius: 7px; border: none; background: none; cursor: pointer; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #fff; color: var(--text); }
.icon-btn svg.i { width: 15px; height: 15px; }
.phone { width: 375px; border-radius: 36px; background: #111; padding: 12px; box-shadow: var(--shadow-lg); position: sticky; top: 72px; }
.phone-screen { border-radius: 26px; overflow: hidden; background: #F7F8FA; height: 720px; overflow-y: auto; position: relative; }
.phone-screen::-webkit-scrollbar { width: 0; }
.pv-mod { position: relative; cursor: pointer; }
.pv-mod.on::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--brand); border-radius: 6px; pointer-events: none; }
.pv-mod.hidden { opacity: .35; }
.list-editor .li { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--hover); }
.list-editor .li-head { display: flex; align-items: center; margin-bottom: 8px; font-weight: 600; font-size: 13px; gap: 4px; }
.list-editor .li-head span { flex: 1; }

/* 规格编辑器 */
.spec-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--hover); }
.spec-group .opts { display: grid; gap: 6px; margin-top: 8px; }
.spec-group .opt { display: grid; grid-template-columns: 1fr 100px 110px 50px 30px; gap: 8px; align-items: center; }
.spec-group .opt input { height: 34px; }
.hours-row { display: grid; grid-template-columns: 1fr 120px 20px 120px 30px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours-row .days { display: flex; gap: 4px; flex-wrap: wrap; }
.hours-row .days label { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 30px; border-radius: 8px; border: 1px solid var(--input); cursor: pointer; font-size: 12px; user-select: none; }
.hours-row .days input { display: none; }
.hours-row .days input:checked + span { color: #fff; }
.hours-row .days label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }

.chart { position: relative; width: 100%; height: 220px; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart-y { position: absolute; left: 2px; transform: translateY(-115%); font-size: 10px; line-height: 1; color: #B6BCC6; pointer-events: none; }
.chart-x { position: absolute; bottom: 2px; transform: translateX(-50%); font-size: 11px; line-height: 1; color: #9CA3AF; white-space: nowrap; pointer-events: none; }
.bar-list { display: grid; gap: 10px; }
.bar-list .b { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.bar-list .b .track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar-list .b .track i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.merchant-card { padding: 18px 20px; }
.merchant-card + .merchant-card { margin-top: 14px; }
.merchant-card .head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.merchant-card .logo { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; overflow: hidden; flex-shrink: 0; }
.merchant-card .logo img { width: 100%; height: 100%; object-fit: contain; }
.merchant-card .stores { display: grid; gap: 8px; margin-top: 14px; }
.merchant-card .store-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--hover); flex-wrap: wrap; }
.cred { background: var(--hover); border: 1px dashed var(--input); border-radius: 12px; padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.8; }
.qr-img { width: 220px; height: 220px; border-radius: 12px; border: 1px solid var(--line); }
/* 门店码 / 桌码批量生成 */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; max-height: 420px; overflow-y: auto; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.qr-card .qr-img { width: 150px; height: 150px; border: 0; }
.qr-grid.page { max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.verify-input { font-size: 28px; height: 60px !important; text-align: center; letter-spacing: 6px; font-weight: 700; }
.verify-input::placeholder { font-size: 16px; letter-spacing: 1px; font-weight: 400; }
kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--input); border-bottom-width: 2px; border-radius: 6px; font-size: 11px; background: #fff; color: var(--text-2); }

@media print { body * { visibility: hidden; } }

/* ---------------- 收银台 ---------------- */
.content.wide { max-width: none; padding: 16px 20px; }
.pos { display: flex; flex-direction: column; height: calc(100vh - 56px - 32px); min-height: 560px; gap: 12px; }
.pos-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-right: 8px; }
.pos-title svg.i { color: var(--brand); width: 20px; height: 20px; }
.pos-today { margin-left: auto; color: var(--text-2); font-size: 13px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.pos-today b { color: var(--text); margin: 0 2px; }
.pos-today .sep { width: 1px; height: 14px; background: var(--line); margin: 0 10px; }
.pos-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 132px minmax(0, 1fr) 380px; gap: 12px; }
.pos-cats, .pos-goods, .pos-ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-height: 0; }
.pos-cats { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.pos-cats button { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; padding: 8px 10px; border: none; background: none; border-radius: 10px; cursor: pointer; color: var(--text-2); font-weight: 500; text-align: left; }
.pos-cats button span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.pos-cats button small { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.pos-cats button:hover { background: var(--line-2); }
.pos-cats button.on { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.pos-goods { display: flex; flex-direction: column; overflow: hidden; }
.pos-search { position: relative; display: flex; align-items: center; padding: 12px; border-bottom: 1px solid var(--line-2); }
.pos-search > svg.i { position: absolute; left: 24px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.pos-search input { width: 100%; height: 40px; padding: 0 36px 0 36px; border: 1px solid var(--input); border-radius: 10px; font-size: 14px; }
.pos-clear { position: absolute; right: 18px; width: 28px; height: 28px; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.pos-clear:hover { background: var(--line-2); }
.pos-grid { flex: 1; overflow-y: auto; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; align-content: start; }
.pos-grid .empty { grid-column: 1 / -1; }
.pos-sku { display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; transition: border-color .12s, box-shadow .12s, transform .06s; }
.pos-sku:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.pos-sku:active { transform: scale(.98); }
.pos-sku.off { cursor: not-allowed; opacity: .55; }
.pos-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted); }
/* 图片绝对定位铺满：竖图不会把卡片撑高，所有卡片一样高 */
.pos-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pos-so { position: absolute; inset: 0; background: rgba(16,24,40,.45); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.pos-sku-name { padding: 8px 10px 2px; font-weight: 600; font-size: 13.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: calc(13.5px * 1.35 * 2 + 10px); }
.pos-sku-foot { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 10px; }
.pos-sku-foot b { color: var(--brand-700); }
.pos-sku-foot small { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.pos-ticket { display: flex; flex-direction: column; padding: 12px; gap: 10px; overflow: hidden; }
.pos-scene { display: flex; }
.pos-scene button { flex: 1; height: 34px; }
.pos-msearch { position: relative; display: flex; align-items: center; gap: 8px; }
.pos-msearch > svg.i { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.pos-msearch input { flex: 1; min-width: 0; height: 36px; padding: 0 10px 0 32px; border: 1px solid var(--input); border-radius: 10px; }
.pos-mcard { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); }
.pos-mcard .grow { min-width: 0; }
.pos-mnote { display: block; margin-top: 6px; padding: 7px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-fg); font-size: 12px; line-height: 1.5; }
.pos-mnote svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.pos-mcard .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-mavatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pos-lines { flex: 1; min-height: 80px; overflow-y: auto; margin: 0 -12px; padding: 0 12px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pos-empty { padding: 32px 8px; }
.pos-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pos-line:last-child { border-bottom: none; }
.pos-line .grow { min-width: 0; }
.pos-line.bad .pos-lname { color: var(--err-fg); text-decoration: line-through; }
.pos-lname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-lspec { color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-lbad { color: var(--err-fg); font-size: 12px; margin-top: 2px; }
.pos-step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pos-step button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--input); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.pos-step button:hover { border-color: var(--brand); color: var(--brand); }
.pos-step button svg.i { width: 14px; height: 14px; }
.pos-step span { min-width: 20px; text-align: center; font-weight: 600; }
.pos-extra { display: flex; gap: 8px; }
.pos-extra input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--input); border-radius: 10px; }
.pos-extra #pos-table { flex: 0 0 110px; }
.pos-coupon:empty { display: none; }
.pos-coupon label { display: flex; align-items: center; gap: 8px; color: var(--brand-700); }
.pos-coupon select { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: 10px; padding: 0 8px; color: var(--text); }
.pos-srow { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; padding: 2px 0; }
.pos-srow.minus span:last-child { color: var(--err-fg); }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; margin-top: 4px; border-top: 1px dashed var(--line); }
.pos-total b { font-size: 26px; color: var(--brand-700); letter-spacing: -.5px; }
.pos-qerr { color: var(--err-fg); background: var(--err-bg); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.pos-actions { display: flex; gap: 8px; }
.pos-actions .btn.lg { flex: 1; height: 48px; font-size: 16px; }
.pos-actions .btn:first-child { height: 48px; }
/* 规格选择 */
.spec-g { margin-bottom: 16px; }
.spec-gh { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.spec-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-o { min-height: 36px; padding: 0 14px; border: 1px solid var(--input); background: #fff; border-radius: 10px; cursor: pointer; color: var(--text); }
.spec-o small { color: var(--muted); }
.spec-o.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.spec-o:disabled { cursor: not-allowed; opacity: .45; text-decoration: line-through; }
.spec-qty { display: flex; align-items: center; gap: 10px; }
.spec-qty b { min-width: 24px; text-align: center; font-size: 16px; }
.modal-foot .grow { flex: 1; }
/* 结账 */
.co-amount { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 12px; background: var(--brand-50); margin-bottom: 14px; }
.co-amount b { font-size: 30px; color: var(--brand-700); }
.co-pay { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.co-pay button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; color: var(--text-2); }
.co-pay button svg.i { width: 22px; height: 22px; }
.co-pay button.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.co-pay button:disabled { cursor: not-allowed; opacity: .4; }
.co-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.co-change { margin-top: 12px; font-size: 15px; }
.co-change b { font-size: 22px; color: var(--brand-700); }
.co-err { color: var(--err-fg); font-weight: 600; }
.co-code { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--input); border-radius: 10px; font-size: 20px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.co-code::placeholder { font-size: 14px; letter-spacing: 0; }
.co-code:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.co-wait { display: grid; justify-items: center; gap: 10px; padding: 26px 8px 14px; text-align: center; }
.co-wait b { font-size: 16px; }
.co-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-deliver { margin-top: 14px; }
.co-done { text-align: center; padding: 8px 0 4px; display: grid; gap: 6px; }
.co-no { font-size: 56px; font-weight: 800; letter-spacing: 2px; color: var(--text); line-height: 1.1; }
.co-chg { font-size: 22px; font-weight: 700; color: var(--brand-700); }
.co-sumtop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.co-sumtop div { background: var(--line-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.co-sumtop span { color: var(--muted); font-size: 12px; }
@media (max-width: 1180px) {
  .pos-body { grid-template-columns: 108px minmax(0, 1fr) 330px; }
  .pos-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}

/* ---------------- 工作台 ---------------- */
.wb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wb > * { min-width: 0; }
.wb-hero { display: flex; align-items: center; gap: 24px; padding: 22px 24px; flex-wrap: wrap; background: linear-gradient(115deg, var(--brand-50) 0%, #fff 60%); }
.wb-hello { flex: 1; min-width: 240px; }
.wb-hello h1 { font-size: 24px; margin: 4px 0 10px; letter-spacing: -.3px; }
.pill .dot { width: 7px; height: 7px; }
.wb-quick { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; color: var(--text); text-decoration: none !important; text-align: left; font: inherit; transition: border-color .12s, box-shadow .12s, transform .08s; }
.qa:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.qa:active { transform: translateY(1px); }
.qa-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.qa-ic svg.i { width: 18px; height: 18px; }
.qa b { font-size: 14px; }
.qa small { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 1100px) { .wb-quick { grid-template-columns: repeat(2, minmax(120px, 1fr)); width: 100%; } }
.wb-alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--info-bg); color: var(--info-fg); text-decoration: none !important; font-size: 13.5px; }
.wb-alert.warn { background: var(--warn-bg); color: var(--warn-fg); }
.wb-alert.err { background: var(--err-bg); color: var(--err-fg); }
.wb-alert > span:not(.go) { flex: 1; }
.wb-alert .go { font-weight: 600; white-space: nowrap; }
.wb-flow { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; }
.wb-step { position: relative; display: grid; gap: 2px; padding: 12px 18px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.wb-step + .wb-step::before { content: ''; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.wb-step:hover { background: var(--hover); }
.wb-step .k { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.wb-step b { font-size: 30px; font-weight: 700; line-height: 1.2; color: #D0D5DD; }
.wb-step.on b { color: var(--text); }
.wb-step.warn.on b { color: var(--warn-fg); }
.wb-step small { color: var(--muted); font-size: 12px; }
.dot.info { background: var(--info); } .dot.violet { background: #7A5AF8; }
@media (max-width: 900px) { .wb-flow { grid-template-columns: repeat(2, 1fr); } }
.wb-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; }
.wb-row.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .wb-row, .wb-row.even { grid-template-columns: 1fr; } }
.wb-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 0; color: var(--muted); font-size: 13px; }
.wb-empty svg.i { width: 28px; height: 28px; color: #D0D5DD; }
.mix-bar { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.mix-bar i { display: block; height: 100%; }
.mix-list { display: grid; gap: 12px; margin-top: 18px; }
.mix-list > div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.mix-list .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.mix-list .pct { width: 44px; text-align: right; color: var(--text-2); }
.rank { display: grid; gap: 12px; }
.rk { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.rk-n { width: 22px; height: 22px; border-radius: 7px; background: var(--line-2); color: var(--text-2); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rk-n.top { background: var(--brand); color: #fff; }
.rk .track { height: 4px; border-radius: 999px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.rk .track i { display: block; height: 100%; border-radius: 999px; background: var(--brand-300); }
.wb-orders { display: grid; }
.wo { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.wo:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.wo:hover { background: var(--hover); }
.wo-no { font-size: 18px; font-weight: 800; min-width: 52px; letter-spacing: -.3px; }
.wo .grow { min-width: 0; font-size: 13.5px; }
.wo-r { display: grid; justify-items: end; gap: 4px; flex-shrink: 0; }
.chart-v { position: absolute; transform: translate(-50%, -135%); font-size: 11px; font-weight: 600; color: var(--brand-700); white-space: nowrap; pointer-events: none; }

/* ---------------- 核销框 ---------------- */
.vf-in { position: relative; }
.vf-in > svg.i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: var(--muted); pointer-events: none; }
.vf-in .verify-input { padding-left: 52px; padding-right: 52px; }
.vf-res { margin-top: 14px; border-radius: 14px; padding: 14px 16px; border: 1px solid; animation: pop .18s; }
.vf-res.ok { background: var(--ok-bg); border-color: #ABEFC6; }
.vf-res.err { background: var(--err-bg); border-color: #FECDCA; color: var(--err-fg); }
.vf-top { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.vf-top svg.i { width: 20px; height: 20px; stroke-width: 2.4; }
.vf-res.ok .vf-top { color: var(--ok-fg); }
.vf-top .muted { margin-left: auto; }
.vf-main { display: flex; align-items: center; gap: 14px; margin: 12px 0 10px; }
.vf-no { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; color: var(--text); }
.vf-items { display: grid; gap: 4px; background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.vf-items > div { display: flex; justify-content: space-between; gap: 10px; }
.vf-remark { margin-top: 8px; background: var(--warn-bg); color: var(--warn-fg); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.vf-hist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }

/* 摄像头扫码框（到店核销扫码，js/camscan.js） */
.mscan { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; margin-bottom: 12px; }
.mscan video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mscan::after { content: ''; position: absolute; left: 12%; right: 12%; top: 38%; height: 24%; border: 2px solid rgba(255,255,255,.85); border-radius: 10px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.mscan.qr::after { left: 24%; right: 24%; top: 16%; height: 68%; border-radius: 16px; border-width: 2.5px; }
.mscan-stat { position: absolute; left: 8px; top: 8px; z-index: 1; padding: 2px 8px; border-radius: 8px; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; }
.mscan-torch { position: absolute; right: 8px; top: 8px; z-index: 2; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 4px 10px; cursor: pointer; }
.mscan-tip { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #fff; font-size: 13px; z-index: 1; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.mscan-btn { width: 100%; height: 48px; margin-bottom: 12px; }
.scan-act-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 12px; }
.scan-act-row .mscan-btn { margin-bottom: 0; height: 44px; }
.scan-act-row .btn { height: 44px; }

/* ---------------- 前台迎宾核销 / 预定增强样式 ---------------- */
.checkin-card { padding: 18px 22px; background: #FFFFFF; border-color: var(--line); }
.checkin-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.checkin-head h2 { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: .01em; }
.checkin-head h2 svg.i { color: var(--gold-600); }
.checkin-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.checkin-input-wrap { position: relative; flex: 1; min-width: 240px; }
.checkin-input-wrap > svg.i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.checkin-input-wrap input { height: 42px; padding-left: 38px; padding-right: 36px; font-size: 14px; border-radius: 11px; }
.checkin-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.checkin-clear:hover { background: var(--line-2); color: var(--text); }
.checkin-bar .btn { height: 42px; padding: 0 16px; border-radius: 11px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 12px; cursor: pointer; }
.live-pill:hover { border-color: var(--gold); color: var(--text); }
.live-pill.on { border-color: var(--gold-100); background: var(--gold-50); color: var(--gold-700); }
.live-pill svg.i { width: 14px; height: 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(18,183,106,.18); }

/* 场次筛选卡片（方案 B：渐变环形上座仪表盘 + 柔光渐变面 + 选中黑金反转） */
.slot-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.slot-sec-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot-sec-title h3 { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.01em; margin: 0; }
.slot-date-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--hover); border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--text-2); }
.slot-sum-chip { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 9px; border-radius: 6px; background: #F4F4F5; font-size: 12px; color: var(--text-2); }
.slot-sum-chip b { color: var(--text); font-weight: 700; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(202px, 1fr)); gap: 12px; }
.slot-card { position: relative; text-align: left; font: inherit; width: 100%; padding: 14px 16px 12px; border: 1px solid #E7EAEF; border-radius: 16px; background: linear-gradient(160deg, #FFFFFF 55%, #F8FAFC 100%); cursor: pointer; overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.03); transition: border-color .2s cubic-bezier(.22,1,.36,1), box-shadow .22s cubic-bezier(.22,1,.36,1), transform .18s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
.slot-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg, #1F2026 0%, #111114 100%); opacity: 0; pointer-events: none; transition: opacity .22s cubic-bezier(.22,1,.36,1); }
.slot-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.slot-card:hover { border-color: #CBD5E1; box-shadow: 0 8px 20px rgba(15,23,42,.07); transform: translateY(-2px); opacity: 1; }
.slot-card:active { transform: translateY(0) scale(.992); transition-duration: .08s; }
.slot-card.is-tight { background: linear-gradient(160deg, #FFFFFF 45%, #FFFBF2 100%); border-color: #FDE6C4; }
.slot-card.is-tight:not(.on):hover { border-color: #F59E0B; }
.slot-card.is-full { background: linear-gradient(160deg, #FFFFFF 45%, #FEF2F2 100%); border-color: #FECACA; }
.slot-card.is-ended, .slot-card.is-closed { background: #F8F9FB; border-color: #ECEEF2; box-shadow: none; opacity: .82; }
.slot-card.is-ended:not(.on):hover, .slot-card.is-closed:not(.on):hover { background: #FFFFFF; opacity: 1; }
.slot-card.on { border-color: #18181B; color: #FFFFFF; box-shadow: 0 12px 26px rgba(17,17,19,.20), 0 0 0 2px rgba(24,24,27,.10); opacity: 1; }
.slot-card.on::before { opacity: 1; }
.slot-card.on:hover { border-color: #27272A; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17,17,19,.26); }

.slot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-name { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s ease; }
.slot-ico { width: 13px; height: 13px; flex: none; opacity: .85; }
.slot-card.on .slot-name { color: rgba(255,255,255,.70); }

.slot-badges { position: relative; flex: none; display: inline-grid; place-items: center end; }
.slot-badges .slot-badge { grid-area: 1 / 1; transition: opacity .18s ease, transform .18s ease; }
.slot-badge { flex: none; display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 1; }
.slot-badge.open { background: #ECFDF5; color: #047857; }
.slot-badge.tight { background: #FEF3C7; color: #B45309; }
.slot-badge.full { background: #FEE2E2; color: #DC2626; }
.slot-badge.ended { background: #E5E7EB; color: #6B7280; }
.slot-badge.closed { background: #FEF2F2; color: #B91C1C; }
.slot-badge.active { background: linear-gradient(135deg, #F59E0B, #D97706); color: #FFFFFF; }
.slot-badge-on { opacity: 0; transform: scale(.92); pointer-events: none; }
.slot-card.on .slot-badge-st { opacity: 0; transform: scale(.92); pointer-events: none; }
.slot-card.on .slot-badge-on { opacity: 1; transform: scale(1); }

.slot-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-info { min-width: 0; }
.slot-time { font-size: 19px; font-weight: 800; letter-spacing: -.025em; color: var(--text); line-height: 1.15; white-space: nowrap; transition: color .2s ease; }
.slot-time small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; transition: color .2s ease; }
.slot-card.is-ended .slot-time, .slot-card.is-closed .slot-time { color: var(--text-2); }
.slot-card.on .slot-time { color: #FFFFFF; }
.slot-card.on .slot-time small { color: rgba(255,255,255,.55); }

.slot-meta { font-size: 12px; color: var(--muted); margin-top: 6px; white-space: nowrap; transition: color .2s ease; }
.slot-meta b { color: var(--text); font-weight: 700; transition: color .2s ease; }
.slot-card.is-tight .slot-meta b { color: #C2410C; }
.slot-card.is-full .slot-meta b { color: #DC2626; }
.slot-card.is-ended .slot-meta b { color: var(--text-2); }
.slot-card.on .slot-meta { color: rgba(255,255,255,.65); }
.slot-card.on .slot-meta b { color: #FCD34D; }

.slot-ring { position: relative; width: 52px; height: 52px; flex: none; }
.slot-ring svg { width: 100%; height: 100%; display: block; }
.slot-ring-tr { stroke: #EEF0F4; transition: stroke .22s ease; }
.slot-ring-arc { transition: opacity .22s ease; }
.slot-ring-arc-on { opacity: 0; transition: opacity .22s ease; }
.slot-card.on .slot-ring-arc { opacity: 0; }
.slot-card.on .slot-ring-arc-on { opacity: 1; }
.slot-card.is-tight .slot-ring-tr { stroke: #FDE6C4; }
.slot-card.on .slot-ring-tr { stroke: rgba(255,255,255,.14); }
.slot-ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; pointer-events: none; }
.slot-ring-val b { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -.02em; transition: color .2s ease; }
.slot-ring-val b.full-v { color: #DC2626; font-size: 13px; }
.slot-ring-val b.muted { color: var(--muted); font-size: 13px; }
.slot-ring-val span { font-size: 9px; color: var(--muted); margin-top: 2px; transition: color .2s ease; }
.slot-card.is-ended .slot-ring-val b { font-size: 12.5px; color: var(--text-2); }
.slot-card.on .slot-ring-val b { color: #FFFFFF; }
.slot-card.on .slot-ring-val span { color: rgba(255,255,255,.55); }

.slot-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid rgba(15,23,42,.06); font-size: 11.5px; transition: border-color .2s ease; }
.slot-card.on .slot-foot { border-top-color: rgba(255,255,255,.12); }
.slot-kv { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); white-space: nowrap; transition: color .2s ease; }
.slot-kv i { width: 6px; height: 6px; border-radius: 50%; background: #D1D5DB; flex: none; transition: background .2s ease; }
.slot-kv b { font-weight: 700; color: inherit; }
.slot-kv.has-todo { color: #B45309; font-weight: 600; }
.slot-kv.has-todo i { background: #F59E0B; }
.slot-kv.has-ok { color: #047857; font-weight: 600; }
.slot-kv.has-ok i { background: #10B981; }
.slot-card.on .slot-kv { color: rgba(255,255,255,.60); }
.slot-card.on .slot-kv i { background: rgba(255,255,255,.28); }
.slot-card.on .slot-kv.has-todo { color: #FCD34D; }
.slot-card.on .slot-kv.has-todo i { background: #FBBF24; }
.slot-card.on .slot-kv.has-ok { color: #6EE7B7; }
.slot-card.on .slot-kv.has-ok i { background: #34D399; }
#bd-list-wrap { transition: opacity .15s ease; }
#bd-list-wrap.is-updating { opacity: .55; pointer-events: none; }

/* 快捷日期胶囊 */
.date-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.date-pill { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all .14s; }
.date-pill:hover { border-color: var(--gold); color: var(--text); }
.date-pill.on { background: #18181B; border-color: #18181B; color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(24,24,27,.14); }

/* ---------------- 交互月历排班组件（席位与店休） ---------------- */
.cal-wkbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: #FFFFFF; border-color: var(--line); }
.cal-wkbar-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.cal-wkbar-title svg.i { color: var(--gold-600); }
.wk-pills { display: flex; gap: 7px; flex-wrap: wrap; }
.wk-pill { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; height: 44px; padding: 0 10px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: all .14s; user-select: none; }
.wk-pill b { font-size: 13px; line-height: 1.2; color: var(--text); }
.wk-pill small { font-size: 10.5px; line-height: 1.2; color: var(--ok-fg); font-weight: 500; }
.wk-pill:hover { border-color: var(--gold); }
.wk-pill.closed { border-style: dashed; border-color: #F4B4B6; background: #FFF5F5; }
.wk-pill.closed b { color: var(--err-fg); }
.wk-pill.closed small { color: var(--err-fg); }
.wk-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wk-preset { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text-2); font-size: 12px; cursor: pointer; transition: all .12s; }
.wk-preset:hover { border-color: var(--gold); color: var(--text); background: var(--gold-50); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) 368px; gap: 18px; align-items: start; }
@media (max-width: 1120px) { .cal-layout { grid-template-columns: 1fr; } }
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.cal-month-nav { display: inline-flex; align-items: center; gap: 6px; }
.cal-month-lbl { font-size: 17px; font-weight: 700; min-width: 112px; text-align: center; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.cal-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cal-body { padding: 14px 18px 18px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.cal-dow div { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.cal-dow div.wknd { color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-blank { min-height: 86px; border-radius: 12px; background: #F9FAFB; }
.cal-cell { position: relative; min-height: 86px; padding: 9px 10px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; transition: all .14s; font: inherit; }
.cal-cell:hover { border-color: #18181B; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.cal-cell.is-past { opacity: .55; background: #FAFAFB; }
.cal-cell.is-closed { background: #FFF7F7; border-color: #FECACA; }
.cal-cell.is-full { background: #FFFDF5; border-color: #FDE68A; }
.cal-cell.is-selected { border-color: #18181B; box-shadow: 0 0 0 3px rgba(24,24,27,.10); z-index: 1; }
.cal-cell.is-picked { border-color: #18181B; background: #F4F5F7; box-shadow: 0 0 0 2px rgba(24,24,27,.10); }
.cal-cell-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.cal-day-num { font-size: 15px; font-weight: 700; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 999px; }
.cal-cell.is-today .cal-day-num { background: #18181B; color: #fff; padding: 0 6px; font-size: 13px; }
.cal-cell.is-closed .cal-day-num { color: var(--err-fg); }
.cal-cell.is-today.is-closed .cal-day-num { color: #fff; background: var(--err); }
.cal-badge { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 6px; line-height: 1.5; white-space: nowrap; }
.cal-badge.open { background: var(--ok-bg); color: var(--ok-fg); }
.cal-badge.closed { background: var(--err-bg); color: var(--err-fg); }
.cal-badge.full { background: var(--warn-bg); color: var(--warn-fg); }
.cal-ov-dot { position: absolute; right: 7px; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--info); }
.cal-pick-chk { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--input); display: inline-flex; align-items: center; justify-content: center; background: #fff; font-size: 11px; color: #fff; }
.cal-cell.is-picked .cal-pick-chk { border-color: #18181B; background: #18181B; }
.cal-cell-sub { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-cell.is-closed .cal-cell-sub { color: var(--err-fg); opacity: .85; }
.cal-mini-bar { height: 3px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.cal-mini-bar i { display: block; height: 100%; border-radius: 999px; background: #18181B; }
.cal-mini-bar.full i { background: var(--warn); }
.cal-batch-bar { margin-top: 14px; padding: 12px 16px; border-radius: 13px; background: #18181B; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.cal-batch-bar .btn { height: 32px; font-size: 12.5px; }
.cal-batch-bar .btn.gold { background: #12B76A; border-color: #12B76A; color: #fff; }
.cal-batch-bar .btn.gold:hover { background: #059669; border-color: #059669; }
.cal-batch-bar .btn.ghost-dark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.cal-batch-bar .btn.ghost-dark:hover { background: rgba(255,255,255,.2); }

/* 右侧当日排班详情面板 */
.cal-inspector { position: sticky; top: 76px; }
.cal-ins-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2); background: #FFFFFF; border-radius: var(--radius) var(--radius) 0 0; }
.cal-ins-date { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.2px; }
.cal-ins-body { padding: 16px 20px 20px; display: grid; gap: 14px; }
.cal-ins-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--hover); border: 1px solid var(--line); }
.cal-slot-list { display: grid; gap: 8px; }
.cal-slot-row { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; gap: 8px; transition: border-color .14s; }
.cal-slot-row.closed { background: var(--hover); opacity: .75; }
.cal-slot-row.overridden { border-color: #CBD5E1; background: #F8FAFC; }
.cal-slot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-slot-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cal-stepper { display: inline-flex; align-items: center; gap: 5px; }
.cal-stepper input { width: 58px; height: 30px; text-align: center; padding: 0 6px; font-weight: 600; }
.cal-stepper .step-btn { width: 28px; height: 30px; padding: 0; }
.cal-badge.past { background: var(--line-2); color: var(--muted); }

/* ---------------- 预定规则分组卡片与可视化场次编辑器 ---------------- */
.cfg-stack { display: grid; gap: 18px; max-width: 980px; }
.cfg-sec-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); }
.cfg-sec-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--gold-50); color: var(--gold-600); border: 1px solid var(--gold-100); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cfg-sec-ico svg.i { width: 16px; height: 16px; }
.cfg-sec-head h3 { font-size: 15px; font-weight: 600; }
.cfg-sec-head .sub { font-size: 12.5px; color: var(--muted); }
.slot-edit-list { display: grid; gap: 8px; }
.slot-edit-row { display: grid; grid-template-columns: 112px 14px 112px 1fr 112px 34px; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--hover); }
.slot-edit-row input { height: 34px; }
.slot-edit-sep { text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .slot-edit-row { grid-template-columns: 1fr 14px 1fr; }
  .slot-edit-row .se-name { grid-column: 1 / -1; }
  .slot-edit-row .se-seats { grid-column: 1 / 3; }
  .cal-cell { min-height: 70px; padding: 6px; }
  .cal-blank { min-height: 70px; }
  .cal-cell-sub { font-size: 10.5px; }
  .cal-badge { display: none; }
}

/* 彩色服务备注标签（过敏红 / 生日金 / 商务蓝） */
.rmk-tags { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rmk-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--text-2); line-height: 1.4; }
.rmk-tag.danger { background: var(--err-bg); color: var(--err-fg); border: 1px solid #FECDCA; font-weight: 600; }
.rmk-tag.gold { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid #FEDF89; font-weight: 600; }
.rmk-tag.info { background: var(--info-bg); color: var(--info-fg); border: 1px solid #B2DDFF; font-weight: 600; }

/* 一键拨号 & 复制电话 */
.tel-wrap { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tel-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.tel-link:hover { color: var(--brand-700); text-decoration: underline; }
.tel-link svg.i { width: 13px; height: 13px; color: var(--gold-600); flex-shrink: 0; }
.tel-copy { border: 0; background: none; color: var(--muted); font-size: 11px; cursor: pointer; padding: 1px 5px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.tel-copy:hover { background: var(--line-2); color: var(--text); }

/* 扫码核销确认弹窗预览卡 */
.checkin-preview { margin-top: 12px; border: 1.5px solid var(--brand-300); border-radius: 14px; background: #fff; padding: 16px; animation: pop .16s; }
.checkin-preview.ok { border-color: #ABEFC6; background: var(--ok-bg); }
.checkin-preview.warn { border-color: #FEDF89; background: var(--warn-bg); }
.checkin-preview.err { border-color: #FECDCA; background: var(--err-bg); }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cp-guest { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-ppl { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; }
.cp-when { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.cp-meta { margin-top: 6px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.cp-rmk { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--hover); border: 1px solid var(--line); }
.cp-banner { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; }
.cp-banner.ok { background: var(--ok-bg); color: var(--ok-fg); }
.cp-banner.warn { background: var(--warn-bg); color: var(--warn-fg); }
.cp-banner.err { background: var(--err-bg); color: var(--err-fg); }
.cp-acts { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.cp-acts .btn.lg { flex: 1; min-width: 180px; }
.lookup-list { margin-top: 12px; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.lookup-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; width: 100%; font: inherit; }
.lookup-item:hover { border-color: var(--brand-300); background: var(--hover); }

/* 桌面端表格 vs 手机端触控卡片 */
.mobile-only { display: none; }
.mcards { display: grid; gap: 10px; padding: 10px 12px 12px; }
.mcard { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; display: grid; gap: 10px; box-shadow: var(--shadow-xs); }
.mcard.review { border-color: #FEDF89; background: #FFFDF7; }
.mcard.late { border-color: #FECDCA; background: #FFF9F8; }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mcard-time { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mcard-ppl { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--gold-50); color: var(--gold-700); border: 1px solid var(--gold-100); font-size: 12.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.mcard-mid { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.mcard-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.mcard-ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.mcard-ops .btn { height: 40px; font-size: 14px; border-radius: 10px; }
.mcard-ops .btn.span2 { grid-column: 1 / -1; }

/* 手机上打开电脑版后台时的提示条（app.js phoneHint） */
.phone-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; background: var(--brand-50); color: var(--brand-700); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.phone-hint .row { gap: 12px; }

/* ---------------- 手机端 & iPad 响应式适配 ---------------- */
.nav-backdrop { position: fixed; inset: 0; background: rgba(16, 24, 40, .42); z-index: 55; animation: fade .15s; }
.wb-quick.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; position: sticky; top: 72px; }
.phone-wrap .phone { position: static; }
.pv-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; box-shadow: var(--shadow-xs); }
.pv-switch button { border: 0; background: none; height: 28px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.pv-switch button.on { background: #18181B; color: #fff; font-weight: 600; }

/* iPad 竖屏与小平板（<= 900px）：侧边栏改为左侧滑出抽屉 */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px !important; z-index: 60; transform: translateX(-100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); box-shadow: none; }
  #app-view.nav-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
  #app-view.nav-mini .sidebar { width: 260px !important; }
  #app-view.nav-mini .sb-brand { justify-content: flex-start; padding: 18px 18px 12px; }
  #app-view.nav-mini .sb-brand .grow,
  #app-view.nav-mini .store-switch,
  #app-view.nav-mini #nav .group,
  #app-view.nav-mini #nav a .label,
  #app-view.nav-mini .user-btn .t { display: block; }
  #app-view.nav-mini #nav a { justify-content: flex-start; padding: 0 12px; height: 38px; }
  #app-view.nav-mini .user-btn { justify-content: flex-start; padding: 8px; }
  #app-view.nav-mini .menu-pop { left: 10px; right: 10px; width: auto; }
  .topbar { padding: 0 16px; gap: 10px; }
  .content { padding: 16px; }
  .form.cols2 { grid-template-columns: 1fr; }
  .deco { grid-template-columns: 1fr; }
  .phone-wrap { position: static; }
  .hours-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .hours-row .days { width: 100%; }
  .hours-row input[type=time] { flex: 1; min-width: 110px; }
  .wb-hero { padding: 16px 18px; gap: 16px; }
  .wb-quick, .wb-quick.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .grid.g2 { grid-template-columns: 1fr; }
}

/* 手机端（<= 640px） */
@media (max-width: 640px) {
  .topbar { height: 52px; padding: 0 12px; gap: 8px; }
  .topbar .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 14px; }
  #top-pills { display: none; }
  #top-actions .btn { height: 30px; padding: 0 10px; font-size: 12px; }
  .content { padding: 12px; }
  .page-head { gap: 10px; margin-bottom: 14px; }
  .page-head h1 { font-size: 19px; }
  .page-head .desc { font-size: 12.5px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .page-tabs .segment { flex-wrap: nowrap; overflow-x: auto; gap: 4px 20px; scrollbar-width: none; }
  .page-tabs .segment::-webkit-scrollbar { display: none; }
  .card-head { flex-wrap: wrap; padding: 12px 14px; gap: 8px; }
  .card-pad { padding: 14px; }
  .grid { gap: 10px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .stat { padding: 14px; }
  .stat .v { font-size: 22px; }
  .wb-hero { padding: 14px; gap: 14px; }
  .wb-hello { min-width: 0; width: 100%; }
  .wb-hello h1 { font-size: 20px; }
  .wb-quick.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wb-quick.cols3 .qa { padding: 10px; align-items: center; text-align: center; }
  .wb-quick.cols3 .qa-ic { margin-bottom: 6px; width: 30px; height: 30px; }
  .wb-quick.cols3 .qa b { font-size: 13px; }
  .wb-quick.cols3 .qa small { display: none; }
  .toolbar { padding: 10px 12px; gap: 8px; }
  .toolbar .search { width: 100%; flex: 1 1 100%; }
  .toolbar input[type=date], .toolbar select { flex: 1 1 130px; min-width: 0; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table.t { min-width: 640px; }
  table.t th, table.t td { padding: 10px 10px; font-size: 13px; }
  .kv { grid-template-columns: 76px 1fr; gap: 6px 10px; }
  .modal-mask { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 16px; }
  .modal-head { padding: 14px 16px 10px; }
  .modal-body { padding: 6px 16px 14px; }
  .modal-foot { padding: 12px 16px; border-radius: 0 0 16px 16px; }
  .phone { width: 100%; max-width: 340px; padding: 10px; border-radius: 30px; }
  .phone-screen { height: 610px; border-radius: 22px; }
  .login-panel { padding: 24px 20px; }
  .login-box h1 { font-size: 24px; }
  .pager { justify-content: center; padding: 10px 12px; }
  .hide-xs { display: none; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .checkin-card { padding: 14px; }
  .checkin-input-wrap { min-width: 100%; }
  .checkin-bar .btn { flex: 1; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .slot-card { padding: 11px 11px 10px; border-radius: 13px; }
  .slot-body { gap: 8px; }
  .slot-top { gap: 4px; }
  .slot-name { font-size: 11px; gap: 3px; }
  .slot-ico { width: 11px; height: 11px; }
  .slot-badge { height: 19px; padding: 0 6px; font-size: 10px; }
  .slot-time { font-size: 15.5px; }
  .slot-time small { display: block; margin: 2px 0 0; font-size: 10.5px; }
  .slot-meta { font-size: 10.5px; margin-top: 4px; }
  .slot-ring { width: 42px; height: 42px; }
  .slot-ring-val b { font-size: 12px; }
  .slot-ring-val span { font-size: 8px; }
  .slot-foot { padding-top: 7px; font-size: 10.5px; gap: 4px; }
  .slot-kv { gap: 3px; }
  .slot-kv i { width: 5px; height: 5px; }
  .date-pills { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .date-pills::-webkit-scrollbar { display: none; }
  .tel-copy { display: none; }
}
