/* Morabeza PMS — 视觉：大西洋深蓝 + 日光黄 + 珊瑚红；房间画成拱形门（呼应 Logo 与普拉亚老城的拱廊） */
@font-face { font-family: Figtree; src: url(/fonts/figtree-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-600.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --navy: #12355B; --navy-2: #0C2643; --navy-3: #1D4A7A;
  --sun: #F6B93B; --sun-soft: #FDF1D6;
  --coral: #E4572E; --coral-soft: #FCE6DF;
  --teal: #0E9F8E; --teal-soft: #DDF3EF;
  --ink: #18212F; --muted: #5B6B80; --line: #E3E8EF; --line-2: #EEF2F6;
  --bg: #F4F6F9; --surface: #FFFFFF; --surface-2: #F8FAFC;
  --focus: #2F7FD8;
  --radius: 12px; --radius-sm: 8px;
  --rail: 232px;
  --font: Figtree, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E6ECF4; --muted: #9AA9BC; --line: #26364C; --line-2: #1D2B3E;
    --bg: #0B1626; --surface: #112035; --surface-2: #15263D;
    --sun-soft: #3A2F14; --coral-soft: #3D1F17; --teal-soft: #0F332F;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); font-feature-settings: "tnum" 1; }
a { color: var(--navy-3); }
@media (prefers-color-scheme: dark) { a { color: #8DB8EA; } }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3.sub { font-size: .9rem; font-weight: 700; margin: 1rem 0 .5rem; color: var(--muted); }
p { margin: .4rem 0; }
small { font-size: .8em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .lead { font-size: 1.02rem; } .pad { padding: .6rem 0; }
.r { text-align: right; } .nowrap { white-space: nowrap; } .neg { color: var(--coral); }
.due { color: var(--coral); font-weight: 700; } .ok-text { color: var(--teal); } .err-text { color: var(--coral); } .warn-text { color: #B7791F; }
.vip { font-style: normal; font-size: .7rem; font-weight: 800; background: var(--sun); color: var(--navy-2); padding: 1px 6px; border-radius: 99px; vertical-align: middle; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; flex: none; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* ---------------- 外壳：左侧导航（桌面）/ 顶栏 + 底部标签（手机） ---------------- */
#view { margin-left: var(--rail); min-height: 100vh; outline: none; }
body.bare #view { margin-left: 0; }
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: var(--navy-2); color: #DCE6F2; display: flex; flex-direction: column; padding: 18px 12px 14px; z-index: 20; overflow-y: auto; }
.rail .brand { padding: 4px 8px 2px; }
.rail .brand img { display: block; }
.hotel-name { font-size: .78rem; color: #9FB4CD; padding: 2px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bizdate { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; margin: 14px 4px 8px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: .78rem; color: #9FB4CD; }
.bizdate .ic { grid-row: span 2; color: var(--sun); }
.bizdate b { color: #fff; font-size: .92rem; font-weight: 700; }
.rail nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.rail nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #C9D6E6; text-decoration: none; font-weight: 600; font-size: .93rem; }
.rail nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail nav a.on { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--sun); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.rail-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #C9D6E6; padding: 8px 12px; border-radius: 10px; font: inherit; font-size: .88rem; cursor: pointer; text-align: left; }
.rail-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.rail-btn span { display: flex; flex-direction: column; } .rail-btn small { color: #8FA5BF; }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 99px; padding: 3px; margin: 0 4px 6px; }
.lang-switch button { flex: 1; border: 0; background: none; color: inherit; font: inherit; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--sun); color: var(--navy-2); }
.topbar, .tabbar { display: none; }

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  #view { padding-top: 56px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.bare #view { padding: 0; }
  .topbar { display: flex; position: fixed; inset: 0 0 auto 0; height: 56px; padding: 0 12px; padding-top: env(safe-area-inset-top); align-items: center; gap: 10px; background: var(--navy-2); color: #fff; z-index: 20; }
  .brand-sm { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; min-width: 0; flex: 1; }
  .brand-sm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bizdate-sm { font-size: .78rem; background: rgba(255,255,255,.1); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
  .topbar .icon-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); font-weight: 800; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font: inherit; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; }
  .tabbar .on { color: var(--navy-3); }
  .tabbar .ic { width: 22px; height: 22px; }
}
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.more-grid a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 600; }
.more-grid .lang-switch { grid-column: span 2; background: var(--line-2); margin: 6px 0; }
.more-grid .btn { grid-column: span 2; justify-content: flex-start; }

/* ---------------- 页面与面板 ---------------- */
.page { padding: 24px 28px 40px; max-width: 1280px; }
.page.wide { max-width: none; }
.page.narrow { max-width: 720px; }
@media (max-width: 600px) { .page { padding: 16px 14px 32px; } h1 { font-size: 1.35rem; } }
.page-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head .muted { margin: 4px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumb { margin: 0 0 4px; font-size: .85rem; } .crumb a { color: var(--muted); text-decoration: none; } .crumb a:hover { text-decoration: underline; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; min-width: 0; }
.panel > header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel > header h2 { flex: 1; }
.panel > header .count { font-weight: 700; color: var(--muted); }
.panel > header .more { font-size: .85rem; font-weight: 600; text-decoration: none; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
@media (max-width: 1100px) { .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------------- 按钮、标签 ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #C7D2E0; background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-3); }
.btn.danger { color: var(--coral); border-color: #F2C2B3; }
.btn.danger:hover { background: var(--coral-soft); }
.btn.warn { color: #9A6312; border-color: #F0D9A8; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 32px; padding: 4px 10px; font-size: .84rem; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; text-decoration: none; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.sm .ic { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.s-confirmed, .s-reserved { background: #E3ECF8; color: var(--navy-3); }
.s-tentative { background: var(--sun-soft); color: #8A5A00; }
.s-checked_in, .s-in_house { background: var(--teal-soft); color: #0A7468; }
.s-checked_out { background: var(--line-2); color: var(--muted); }
.s-cancelled, .s-no_show { background: var(--coral-soft); color: #B23B17; }
.ef-authorized { background: var(--teal-soft); color: #0A7468; } .ef-pending, .ef-sending { background: var(--sun-soft); color: #8A5A00; }
.ef-rejected, .ef-error { background: var(--coral-soft); color: #B23B17; } .ef-disabled { background: var(--line-2); color: var(--muted); }
.s-fo-vacant { background: var(--teal-soft); color: #0A7468; } .s-fo-occupied { background: #E3ECF8; color: var(--navy-3); }
.s-fo-arriving { background: var(--sun-soft); color: #8A5A00; } .s-fo-due_out { background: var(--coral-soft); color: #B23B17; } .s-fo-ooo { background: var(--line-2); }
.s-hk-clean { background: var(--teal-soft); color: #0A7468; } .s-hk-inspected { background: #D4F0D9; color: #1F7A35; }
.s-hk-dirty { background: var(--coral-soft); color: #B23B17; } .s-hk-cleaning { background: var(--sun-soft); color: #8A5A00; }
.alerts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.alert { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; margin-bottom: 12px; }
.alerts .alert { margin: 0; }
.alert.warn { background: var(--sun-soft); color: #7A4F00; } .alert.err { background: var(--coral-soft); color: #A23413; }

/* ---------------- 概览 ---------------- */
.kpis { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.kpi { padding: 16px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.kpi b { font-size: 1.35rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; font-size: .8rem; color: var(--muted); }
.kpi.big { background: var(--navy); color: #fff; }
.kpi.big span, .kpi.big em { color: #B9CBE0; }
.kpi.big b { font-size: 2.6rem; line-height: 1; color: #fff; } .kpi.big b small { font-size: 1.1rem; color: var(--sun); margin-left: 2px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpi.big { grid-column: span 2; } .kpi:nth-child(odd):not(.big) { border-left: 1px solid var(--line); } .kpi:nth-child(n+2) { border-top: 1px solid var(--line); } .kpi:nth-child(2n) { border-left: 0; } }
.stays { list-style: none; margin: 0; padding: 0; }
.stays li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.stays li:first-child { border-top: 0; }
.stays .who { flex: 1; min-width: 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.stays .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stays .who .vip { align-self: flex-start; margin: 2px 0; }
.stays .who small { color: var(--muted); }
.stays .room { font-weight: 800; min-width: 44px; text-align: center; padding: 3px 8px; border-radius: 8px; background: var(--line-2); }
.stays .room.none { font-weight: 600; font-size: .75rem; color: var(--muted); }
.stays .bal { font-size: .85rem; min-width: 80px; text-align: right; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.bar i { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--navy-3), var(--navy)); border-radius: 17px 17px 4px 4px; }
.bar i.hot { background: linear-gradient(180deg, var(--sun), #E09D12); }
.bar b { position: absolute; top: 0; font-size: .68rem; color: var(--muted); }
.bar span { font-size: .68rem; color: var(--muted); text-align: center; margin-top: 4px; line-height: 1.15; }
.bars.dense { gap: 2px; height: 150px; } .bars.dense i { border-radius: 6px 6px 2px 2px; }
.hk-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hk-door { display: flex; flex-direction: column; align-items: center; padding: 16px 6px 10px; border-radius: 40px 40px 10px 10px; text-decoration: none; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); }
.hk-door b { font-size: 1.5rem; font-weight: 800; }
.hk-door span { font-size: .78rem; color: var(--muted); }
.hk-door.hk-dirty { border-top: 4px solid var(--coral); } .hk-door.hk-cleaning { border-top: 4px solid var(--sun); }
.hk-door.hk-clean { border-top: 4px solid var(--teal); } .hk-door.hk-inspected { border-top: 4px solid #2F9E4B; }
.mix { list-style: none; padding: 0; margin: 0; }
.mix li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; }
.mix i { width: 10px; height: 10px; border-radius: 3px; } .mix em { font-style: normal; color: var(--muted); font-size: .85rem; min-width: 100px; text-align: right; }

/* ---------------- 房态图：拱形门 ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .86rem; }
.chip[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip b { margin-left: 4px; opacity: .7; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 16px; border-radius: 7px 7px 2px 2px; border: 1.5px solid var(--teal); }
.legend .fo-occupied i { background: var(--navy); border-color: var(--navy); } .legend .fo-arriving i { background: var(--sun); border-color: var(--sun); }
.legend .fo-due_out i { background: var(--coral); border-color: var(--coral); } .legend .fo-ooo i { background: repeating-linear-gradient(135deg, #9AA9BC 0 3px, transparent 3px 6px); border-color: #9AA9BC; }
.legend .hk-mark { width: 10px; height: 10px; border-radius: 50%; border: 0; background: var(--coral); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--coral); }
.floor h2 { font-size: .85rem; color: var(--muted); font-weight: 700; margin: 18px 0 8px; }
.doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.door { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; height: 128px; padding: 10px 8px 12px; border-radius: 52px 52px 10px 10px; border: 2px solid var(--teal); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: center; transition: transform .12s; }
.door:hover { transform: translateY(-2px); }
.door .num { font-size: 1.45rem; font-weight: 800; line-height: 1; }
.door .type { font-size: .72rem; font-weight: 700; opacity: .7; }
.door .who { font-size: .74rem; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.1em; }
/* 门楣上的"太阳"：客房清洁状态 */
.door .hk { position: absolute; top: 12px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--surface); }
.door.hk-dirty .hk { background: var(--coral); } .door.hk-cleaning .hk { background: var(--sun); } .door.hk-inspected .hk { background: #2F9E4B; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #2F9E4B; }
.door.fo-occupied { background: var(--navy); border-color: var(--navy); color: #fff; }
.door.fo-arriving { background: var(--sun); border-color: var(--sun); color: var(--navy-2); }
.door.fo-due_out { background: var(--coral); border-color: var(--coral); color: #fff; }
.door.fo-ooo { background: repeating-linear-gradient(135deg, var(--line-2) 0 8px, var(--surface) 8px 16px); border-color: #9AA9BC; color: var(--muted); }
.door.fo-occupied .hk, .door.fo-arriving .hk, .door.fo-due_out .hk { box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
@media (max-width: 600px) { .doors { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 9px; } .door { height: 110px; border-radius: 44px 44px 8px 8px; } .door .num { font-size: 1.2rem; } }
.sheet .sheet-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hk-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hk-btn { padding: 12px 4px; border-radius: 30px 30px 8px 8px; border: 2px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--ink); }
.hk-btn[aria-pressed="true"] { color: #fff; }
.hk-btn.hk-dirty[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); } .hk-btn.hk-cleaning[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--navy-2); }
.hk-btn.hk-clean[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); } .hk-btn.hk-inspected[aria-pressed="true"] { background: #2F9E4B; border-color: #2F9E4B; }
.hk-mini { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); vertical-align: middle; }
.hk-mini.hk-dirty { background: var(--coral); } .hk-mini.hk-cleaning { background: var(--sun); } .hk-mini.hk-inspected { background: #2F9E4B; }

/* 客房清洁（手机） */
.hk-group h2 { font-size: .95rem; margin: 18px 0 8px; display: flex; gap: 8px; } .hk-group h2 b { color: var(--muted); }
.hk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hk-list li { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 12px; padding: 10px 10px 10px 12px; }
.hk-list li.hk-dirty { border-left-color: var(--coral); } .hk-list li.hk-cleaning { border-left-color: var(--sun); } .hk-list li.hk-inspected { border-left-color: #2F9E4B; }
.hk-list .num { font-size: 1.4rem; font-weight: 800; min-width: 56px; }
.hk-list .info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hk-list .info small { color: var(--muted); }
.hk-next { min-height: 46px; padding: 8px 16px; font-size: .95rem; }
.hk-next.hk-cleaning { background: var(--sun); border-color: var(--sun); color: var(--navy-2); }
.hk-next.hk-clean { background: var(--teal); border-color: var(--teal); color: #fff; }
.hk-next.hk-inspected { background: #2F9E4B; border-color: #2F9E4B; color: #fff; }

/* ---------------- 房态日历（时间轴） ---------------- */
.tape { --lbl: 132px; --day: minmax(46px, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.tape-head, .tape-row, .tape-type { display: grid; grid-template-columns: var(--lbl) 1fr; min-width: calc(var(--lbl) + var(--cols) * 24px); }
.tape-head { position: sticky; top: 0; background: var(--surface); z-index: 3; border-bottom: 1px solid var(--line); }
.tape-days, .tape-avail { display: grid; grid-template-columns: repeat(calc(var(--cols) / 2), 1fr); }
.tape-days div { text-align: center; padding: 6px 0; border-left: 1px solid var(--line-2); line-height: 1.1; }
.tape-days small { display: block; font-size: .7rem; color: var(--muted); }
.tape-days b { font-size: .95rem; }
.tape-days .we { background: var(--surface-2); }
.tape-days .today { background: var(--sun-soft); }
.tape-label { position: sticky; left: 0; z-index: 2; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--line); font-size: .88rem; min-height: 40px; }
.tape-type { background: var(--surface-2); border-top: 1px solid var(--line); }
.tape-type .tape-label { background: var(--surface-2); font-weight: 700; }
.tape-type .tape-label i { width: 10px; height: 10px; border-radius: 3px; }
.tape-avail span { text-align: center; font-size: .78rem; font-weight: 700; color: #0A7468; align-self: center; }
.tape-avail span.low { color: #B7791F; } .tape-avail span.full { color: var(--coral); }
.tape-row { border-top: 1px solid var(--line-2); }
.tape-cells { display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: 40px; position: relative; }
.tape-cells .cell { grid-row: 1; border: 0; border-left: 1px solid var(--line-2); background: none; cursor: pointer; padding: 0; }
.tape-cells .cell:hover { background: var(--teal-soft); }
.tape-cells .cell.today { background: rgba(246,185,59,.08); }
.tape-cells .sbar, .tape-cells .blk { grid-row: 1; margin: 6px 1px; border-radius: 14px; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; z-index: 1; height: 28px; }
.tape-cells .sbar { background: #E3ECF8; color: var(--navy-2); border-left: 4px solid var(--ch, var(--navy)); }
.tape-cells .sbar span { overflow: hidden; text-overflow: ellipsis; } .tape-cells .sbar small { opacity: .6; }
.tape-cells .sbar.st-in_house { background: var(--navy); color: #fff; }
.tape-cells .sbar.st-checked_out { background: var(--line-2); color: var(--muted); }
.tape-cells .sbar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tape-cells .blk { background: repeating-linear-gradient(135deg, var(--line) 0 6px, var(--surface-2) 6px 12px); color: var(--muted); }
.tape-cells.stack { grid-auto-rows: 34px; padding: 3px 0; }
.tape-cells.stack .bar { grid-row: auto; margin: 2px 1px; }
.tape-row.unassigned .tape-label span { font-size: .78rem; color: #B7791F; font-weight: 700; }

/* ---------------- 表格、筛选、标签页 ---------------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel .table-wrap { border: 0; border-radius: 0; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th.r, .tbl td.r { text-align: right; white-space: nowrap; }
.tbl tr.clickable { cursor: pointer; } .tbl tr.clickable:hover td { background: var(--surface-2); }
.tbl tr.inactive td { opacity: .55; }
.tbl.compact td, .tbl.compact th { padding: 7px 10px; }
.tbl tfoot td { border-top: 1px solid var(--line); padding: 9px 12px; }
.tbl .bal-row td { font-size: 1rem; }
.tbl.folio tr.voided td { opacity: .5; text-decoration: line-through; }
.tbl.folio tr.voided td small { text-decoration: none; }
.tbl.folio tr.k-payment td { color: #0A7468; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters select, .filters input[type=date] { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; padding: 0 10px; }
.search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 12px; }
.search input { flex: 1; border: 0; background: none; min-height: 38px; font: inherit; color: var(--ink); outline: none; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); }
.tabs b { margin-left: 4px; font-size: .8rem; background: var(--line-2); padding: 1px 7px; border-radius: 99px; }
.tabs.small { border: 0; margin: 0; } .tabs.small button { padding: 6px 10px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 16px 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { width: 44px; height: 44px; stroke-width: 1.2; color: #A9B6C6; }
.loading { display: flex; gap: 6px; justify-content: center; padding: 60px 0; }
.loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--navy-3); animation: blink 1s infinite; }
.loading span:nth-child(2) { animation-delay: .15s; } .loading span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------------- 表单 ---------------- */
.fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.fld > span { font-size: .82rem; font-weight: 700; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; padding: 7px 11px; }
.fld input[type=color] { padding: 3px; height: 40px; }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: transparent; }
.fld input[readonly] { background: var(--surface-2); color: var(--muted); }
.fld small { color: var(--muted); font-size: .78rem; }
.fld input:user-invalid { border-color: var(--coral); }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-form .span2, .grid-form fieldset, .grid-form .tax-box { grid-column: span 2; }
.row2, .row3 { display: grid; gap: 0 12px; } .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .grid-form { grid-template-columns: 1fr; } .grid-form .span2, .grid-form fieldset, .grid-form .tax-box { grid-column: auto; } .row3 { grid-template-columns: 1fr 1fr; } }
.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--navy); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 12px; }
fieldset.checks { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
fieldset legend { font-size: .82rem; font-weight: 700; color: var(--muted); padding: 0 4px; }
.form-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.form-err { color: var(--coral); font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--line-2); padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,53,91,.12); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); }
.seg input:disabled + span { opacity: .4; text-decoration: line-through; }
.tax-box { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px 2px; margin-bottom: 12px; }
.tax-msg { font-size: .82rem; min-height: 1.2em; margin: -6px 0 8px; } .tax-msg.ok { color: var(--teal); } .tax-msg.bad { color: var(--coral); }

/* ---------------- 新建预订 ---------------- */
.newres { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.newres-side { position: sticky; top: 16px; }
@media (max-width: 1000px) { .newres { grid-template-columns: 1fr; } .newres-side { position: static; } }
.search-bar { display: grid; grid-template-columns: 1fr 1fr 90px 90px auto; gap: 10px; align-items: end; }
.search-bar .btn { margin-bottom: 12px; min-height: 40px; }
@media (max-width: 700px) { .search-bar { grid-template-columns: 1fr 1fr; } .search-bar .btn { grid-column: span 2; } }
.offer { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.offer.soldout { opacity: .55; }
.offer header { display: flex; align-items: center; gap: 8px; }
.offer header i { width: 12px; height: 12px; border-radius: 4px; }
.offer h3 { flex: 1; font-size: 1rem; }
.offer .avail { font-size: .8rem; font-weight: 700; color: #0A7468; }
.plans { list-style: none; margin: 6px 0 0; padding: 0; }
.plans li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.plans li > div:first-child { display: flex; flex-direction: column; } .plans small { color: var(--muted); }
.plans .price { text-align: right; display: flex; flex-direction: column; } .plans .price b { font-size: 1.05rem; }
.cart { list-style: none; margin: 8px 0; padding: 0; }
.cart li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.cart li div { display: flex; flex-direction: column; } .cart small { color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 2px solid var(--ink); margin-bottom: 12px; }
.cart-total b { font-size: 1.3rem; font-weight: 800; }
.guest-chip { display: flex; align-items: center; gap: 8px; background: var(--teal-soft); padding: 8px 10px; border-radius: 10px; }
.guest-search { position: relative; margin-bottom: 12px; }
.suggest { position: absolute; z-index: 5; inset: calc(100% + 4px) 0 auto 0; list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(12,38,67,.14); }
.suggest button { width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; }
.suggest button:hover { background: var(--surface-2); } .suggest small { color: var(--muted); }
.guest-card { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.guest-card small { flex-basis: 100%; color: var(--muted); }

/* ---------------- 预订详情 ---------------- */
.res-head h1 { display: flex; align-items: center; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.facts div { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; }
.facts span { font-size: .78rem; color: var(--muted); font-weight: 600; } .facts b { font-size: 1.05rem; } .facts small { color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.stay-rows { list-style: none; padding: 0; margin: 0; }
.stay-rows li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.stay-rows li:first-child { border-top: 0; }
.stay-rows li.st-cancelled, .stay-rows li.st-no_show { opacity: .5; }
.stay-rows .grow { flex: 1; min-width: 200px; display: flex; flex-direction: column; } .stay-rows .grow > small { color: var(--muted); }
.door-mini { width: 58px; height: 66px; flex: none; border-radius: 29px 29px 6px 6px; display: grid; place-items: end center; padding-bottom: 10px; font-weight: 800; font-size: 1.05rem; background: var(--surface-2); border: 2px solid var(--line); }
.door-mini.hk-clean, .door-mini.hk-inspected { border-color: var(--teal); } .door-mini.hk-dirty { border-color: var(--coral); } .door-mini.hk-cleaning { border-color: var(--sun); }
.stay-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
details summary { cursor: pointer; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.nightly { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; font-size: .84rem; }
.nightly li { display: flex; justify-content: space-between; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv.small { font-size: .84rem; }
.note { background: var(--sun-soft); padding: 8px 10px; border-radius: 10px; font-size: .88rem; }
.note.internal { background: var(--line-2); }
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.docs li:first-child { border-top: 0; }
.docs li > a, .docs li > span:first-child { flex: 1; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; }
.docs small { color: var(--muted); }
.timeline { list-style: none; padding: 0 0 0 14px; margin: 0; border-left: 2px solid var(--line); font-size: .86rem; }
.timeline li { position: relative; padding: 0 0 12px 8px; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--navy-3); }
.timeline small { color: var(--muted); }
.folio-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.folio-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; margin-bottom: 12px; }
.prod { display: flex; flex-direction: column; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.prod input { position: absolute; opacity: 0; } .prod small { color: var(--muted); }
.prod:has(input:checked) { border-color: var(--navy); background: #E3ECF8; }
@media (prefers-color-scheme: dark) { .prod:has(input:checked) { background: var(--navy); } }
.methods { display: flex; }

/* ---------------- 开票 / 发票 ---------------- */
.inv-dlg { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .inv-dlg { grid-template-columns: 1fr; } }
.doc-types, .print-opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); }
.opt b { font-weight: 700; } .opt small { grid-column: 2; color: var(--muted); }
.opt .ic { grid-row: span 2; width: 22px; height: 22px; color: var(--navy-3); align-self: center; }
.opt:hover { border-color: var(--navy-3); }
.doc-types .opt input { grid-row: span 2; align-self: center; accent-color: var(--navy); }
.doc-types .opt:has(input:checked) { border-color: var(--navy); background: #E3ECF8; }
@media (prefers-color-scheme: dark) { .doc-types .opt:has(input:checked) { background: var(--navy); } }
.doc-types .opt:has(input:disabled) { opacity: .45; }
.inv-items { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow: auto; }
.inv-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: .88rem; }
.paper { background: #fff; color: #18212F; border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px; max-width: 840px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(12,38,67,.35); margin-bottom: 16px; }
.paper > header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; border-bottom: 3px solid var(--navy); padding-bottom: 14px; }
.paper header div { display: flex; flex-direction: column; } .paper header small { color: #5B6B80; }
.paper .r { text-align: right; }
.paper-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0; }
.paper-parties div { display: flex; flex-direction: column; } .paper-parties small { color: #5B6B80; font-weight: 700; margin-top: 4px; }
.paper .tbl th { background: #F4F6F9; color: #5B6B80; } .paper .tbl td { border-color: #EEF2F6; }
.paper footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.qr-box { flex: 1 1 320px; min-width: 0; display: flex; gap: 12px; align-items: center; font-size: .78rem; color: #5B6B80; }
.qr-box [data-qr] svg { width: 110px; height: 110px; display: block; }
.qr-box b { color: #18212F; word-break: break-all; font-size: .74rem; }
.totals { margin-left: auto; display: grid; grid-template-columns: auto auto; gap: 4px 24px; margin: 0; align-content: start; }
.totals dt { color: #5B6B80; } .totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .big { font-size: 1.25rem; font-weight: 800; color: #18212F; border-top: 2px solid #18212F; padding-top: 6px; }
@media (max-width: 600px) { .paper { padding: 18px; } .paper-parties { grid-template-columns: 1fr; } }
.code { white-space: pre-wrap; word-break: break-all; font-size: .75rem; background: var(--surface-2); padding: 12px; border-radius: 8px; max-height: 60vh; overflow: auto; }

/* ---------------- 渠道 ---------------- */
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 16px; }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.channel.off { opacity: .6; }
.channel header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.channel header i { width: 14px; height: 14px; border-radius: 4px; }
.channel h2 { flex: 1; }
.channel footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ical ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.ical li, .copyline { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; font-size: .8rem; }
.copyline { grid-template-columns: 1fr auto; }
.ical li span { font-weight: 700; min-width: 42px; }
.ical input, .copyline input { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; font-size: .76rem; background: var(--surface-2); color: var(--ink); }
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.help { background: var(--surface-2); }
.tbl.map .fld { margin: 0; } .tbl.map .fld > span { display: none; } .tbl.map td { padding: 6px; }

/* ---------------- 房价日历 ---------------- */
.tbl.rates th, .tbl.rates td { text-align: center; padding: 7px 6px; white-space: nowrap; }
.tbl.rates tbody th { text-align: left; background: var(--surface); position: sticky; left: 0; z-index: 1; color: var(--ink); font-weight: 700; }
.tbl.rates th.plan { font-weight: 600; padding-left: 22px; color: var(--muted); }
.tbl.rates thead th.we { background: var(--sun-soft); }
.tbl.rates .type-row td, .tbl.rates .type-row th { background: var(--surface-2); font-weight: 700; color: #0A7468; }
.tbl.rates .type-row td small { color: var(--muted); font-weight: 400; }
.tbl.rates .type-row td.full { color: var(--coral); }
.tbl.rates td.rate { cursor: pointer; font-weight: 600; }
.tbl.rates td.rate:hover { background: #E3ECF8; }
.tbl.rates td.rate small { display: block; font-size: .68rem; color: var(--muted); font-weight: 400; }
.tbl.rates td.ovr { color: var(--navy-3); box-shadow: inset 0 -3px 0 var(--sun); }
.tbl.rates td.closed { background: var(--coral-soft); color: #B23B17; }
@media (prefers-color-scheme: dark) { .tbl.rates td.ovr { color: #8DB8EA; } .tbl.rates td.rate:hover { background: var(--navy); } }

/* ---------------- 设置 ---------------- */
.set-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.set-nav a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.set-nav a:hover { background: var(--surface); }
.set-nav a[aria-current="page"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--sun); border: 1px solid var(--line); }
@media (max-width: 800px) { .set-layout { grid-template-columns: 1fr; } .set-nav { flex-direction: row; overflow-x: auto; position: static; } .set-nav a { white-space: nowrap; } }
.room-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.door-admin { display: flex; flex-direction: column; align-items: center; padding: 14px 4px 8px; border-radius: 40px 40px 8px 8px; border: 1.5px solid var(--line); background: var(--surface-2); font: inherit; color: var(--ink); cursor: pointer; }
.door-admin b { font-size: 1.1rem; } .door-admin small { color: var(--muted); font-size: .72rem; }
.door-admin.inactive { opacity: .45; border-style: dashed; }
.door-admin:hover { border-color: var(--navy-3); }
.room-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 50vh; overflow: auto; padding: 2px; }
.door-pick { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 4px 8px; border-radius: 40px 40px 8px 8px; border: 2px solid var(--line); cursor: pointer; }
.door-pick input { position: absolute; opacity: 0; }
.door-pick b { font-size: 1.1rem; } .door-pick small, .door-pick em { font-size: .72rem; color: var(--muted); font-style: normal; }
.door-pick.upgrade { border-style: dashed; }
.door-pick:has(input:checked) { border-color: var(--navy); background: #E3ECF8; }
@media (prefers-color-scheme: dark) { .door-pick:has(input:checked) { background: var(--navy); } }
.door-pick:has(input:focus-visible) { outline: 3px solid var(--focus); }
.roles { margin-top: 14px; }

/* ---------------- 夜审 ---------------- */
.audit-date { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.audit-date span { color: var(--muted); font-weight: 600; } .audit-date b { font-size: 1.6rem; font-weight: 800; } .audit-date em { font-style: normal; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.checklist li span { flex: 1; }
.checklist li.ok .ic { color: var(--teal); } .checklist li.warn .ic { color: var(--coral); }

/* ---------------- 登录 ---------------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--navy-2); color: #C9D6E6; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art p { max-width: 380px; font-size: 1.1rem; line-height: 1.5; z-index: 1; }
.arches { position: absolute; left: 48px; right: 48px; bottom: 22%; display: flex; gap: 18px; align-items: flex-end; }
.arches i { flex: 1; height: 170px; border-radius: 120px 120px 0 0; border: 3px solid rgba(255,255,255,.13); border-bottom: 0; }
.arches i:nth-child(3) { border-color: rgba(246,185,59,.55); height: 200px; }
.arches::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 10px; background: radial-gradient(circle at 8px -2px, transparent 7px, var(--coral) 7.5px 9.5px, transparent 10px) 0 0 / 18px 10px repeat-x; opacity: .7; }
.login-card { align-self: center; justify-self: center; width: min(400px, 100% - 32px); padding: 36px 0; }
.login-card h1 { margin-top: 18px; }
.login-card .lang-switch { margin: 22px 0 0; background: var(--line-2); }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ---------------- 弹窗、提示 ---------------- */
dialog.modal { border: 0; padding: 0; border-radius: 16px; width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(6,20,38,.35); }
dialog.modal.wide { width: min(860px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(8,22,40,.5); backdrop-filter: blur(2px); }
dialog.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
dialog.modal header { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
dialog.modal header h2 { flex: 1; font-size: 1.15rem; }
dialog.modal .modal-body { padding: 4px 18px 12px; overflow: auto; }
dialog.modal footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line-2); }
@media (max-width: 600px) { dialog.modal { margin: auto auto 0; border-radius: 16px 16px 0 0; width: 100vw; max-width: 100vw; } dialog.modal footer .btn { flex: 1; } }
#toasts { position: fixed; z-index: 100; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 900px) { #toasts { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); align-items: stretch; } }
.toast { display: flex; gap: 8px; align-items: center; background: var(--navy-2); color: #fff; padding: 11px 14px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(6,20,38,.3); animation: tin .2s ease-out; max-width: 460px; }
.toast.ok .ic { color: #6EE0C9; } .toast.err { background: #8E2A10; }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.offline-bar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 99; background: var(--sun); color: var(--navy-2); text-align: center; font-weight: 700; padding: 4px; font-size: .85rem; }
body.offline .offline-bar { display: block; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .rail, .topbar, .tabbar, .page-head .actions, #toasts { display: none !important; } #view { margin: 0; padding: 0; } .paper { box-shadow: none; border: 0; } }

/* ---------------- 多酒店：入口、注册、订阅、平台 ---------------- */
.cid-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(246,185,59,.18); color: var(--sun); font-size: .72rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.sub-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--radius); background: var(--sun-soft); color: var(--ink); text-decoration: none; font-weight: 600; }
.sub-banner span { flex: 1; } .sub-banner b { color: var(--navy-3); white-space: nowrap; }
.sub-banner.err { background: var(--coral-soft); } .sub-banner.err b { color: var(--coral); }
.login-card .links { margin: 14px 0 0; text-align: center; font-weight: 600; } .login-card .links.small { margin-top: 18px; font-size: .84rem; } .login-card .links.small a { color: var(--muted); }
.login-card .or { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--muted); font-size: .84rem; }
.login-card .or::before, .login-card .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-card .btn.block .ic { margin-right: 6px; }
.google-box { display: flex; justify-content: center; min-height: 44px; margin-top: 12px; }
.google-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; } .google-panel p { margin: 0; flex: 1; min-width: 200px; } .google-panel .google-box { margin: 0; }
.hotel-chip { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.hotel-chip div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .hotel-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hotel-chip small { color: var(--muted); font-weight: 600; }
.hotel-chip a { font-size: .85rem; font-weight: 700; }
.done-box { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--teal-soft); margin-bottom: 12px; font-weight: 600; } .done-box .ic { color: var(--teal); flex: none; }
.register { padding-bottom: 48px; margin: 0 auto; }
[hidden] { display: none !important; }
.reg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 8px; }
.reg-head .lang-switch { background: var(--line-2); margin: 0; }
.register h2.sec { font-size: 1rem; margin: 6px 0 12px; color: var(--navy-3); }
.register h2.sec:not(:first-child) { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.geo { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px 12px; margin: 0 0 12px; }
.geo legend { font-weight: 700; font-size: .88rem; padding: 0 4px; }
.geo-acts { display: flex; align-items: center; gap: 14px; } .geo-acts .ic { margin-right: 4px; }
.map-box { margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.cid-big { display: flex; flex-direction: column; align-items: center; padding: 18px; margin-bottom: 10px; border-radius: 14px; background: var(--navy); color: #fff; }
.cid-big span { font-weight: 700; color: var(--sun); letter-spacing: .12em; font-size: .8rem; } .cid-big b { font-size: 2.8rem; line-height: 1.1; letter-spacing: .06em; }
.cid-line { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 14px; border-radius: 10px; background: var(--sun-soft); font-weight: 600; } .cid-line b { font-size: 1.2rem; margin-left: auto; }
.hotel-pick { display: grid; gap: 8px; } .hotel-pick .opt input { grid-row: span 2; align-self: center; accent-color: var(--navy); }
.sub-status { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 20px 22px; margin-bottom: 16px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.sub-status > div { display: flex; flex-direction: column; gap: 2px; }
.sub-status span { font-size: .82rem; font-weight: 700; color: var(--sun); text-transform: uppercase; letter-spacing: .06em; }
.sub-status b { font-size: 1.9rem; line-height: 1.15; } .sub-status em { font-style: normal; color: #B9CBE0; font-size: .9rem; }
.sub-status .price { text-align: right; } .sub-status .price b { font-size: 1.4rem; }
.sub-status.soon { background: linear-gradient(120deg, var(--navy), #6B4B0F); } .sub-status.expired { background: #8E2A10; } .sub-status.expired span { color: #FFD3C4; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.plan-card input { position: absolute; opacity: 0; } .plan-card b { font-weight: 700; } .plan-card strong { font-size: 1.3rem; } .plan-card small { color: var(--teal); font-weight: 700; }
.plan-card:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(47,127,216,.18); } .plan-card:has(input:focus-visible) { outline: 2px solid var(--focus); }
.pay-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; } .pay-row p { margin: 0; } .pay-row .ic { margin-right: 6px; }
.s-sub-paid, .s-plat-paid, .s-plat-active { background: var(--teal-soft); color: var(--teal); }
.s-sub-pending, .s-plat-trial { background: var(--sun-soft); color: #8A5A00; }
.s-sub-failed, .s-plat-expired, .s-plat-suspended { background: var(--coral-soft); color: var(--coral); }
.s-sub-cancelled { background: var(--line-2); color: var(--muted); }
.warn-text { color: var(--coral); font-style: normal; font-weight: 600; }
body.bare .plat { min-height: 100vh; }
.plat-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 20px; background: var(--navy-2); color: #fff; }
.plat-bar .tag { padding: 2px 8px; border-radius: 99px; background: var(--sun); color: var(--navy-2); font-weight: 800; font-size: .75rem; }
.plat-bar nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.plat-bar nav a { color: #C9D6E6; text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 99px; } .plat-bar nav a[aria-current] { background: rgba(255,255,255,.12); color: #fff; }
.plat-bar .lang-switch { margin: 0; flex: none; } .plat-bar .lang-switch button { white-space: nowrap; } .plat-bar .btn.ghost { color: #fff; }
.plat .page { max-width: 1280px; margin: 0 auto; }
.plat-kpis { margin-top: 4px; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--surface-2); }
@media (max-width: 600px) { .plat-bar img { width: 120px; } .sub-status .price { text-align: left; } }
.modal-body .kv { margin-bottom: 14px; }
