:root { color-scheme: light; font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
* { box-sizing: border-box; }
body { margin:0; background:#edf2f9; color:#162439; }
body:has(dialog[open]) { overflow:hidden; }
#ym-meeting-v04 { --ym-accent:#2563eb; --ym-soft:#edf3ff; --ym-bg:#f7f9fc; --ym-surface:#fff; --ym-text:#162439; --ym-muted:#5b6c80; --ym-line:#e4eaf2; --nav-height:64px; font-size:14px; line-height:1.5; }
[hidden] { display:none!important; }
h1,h2,h3,p { margin:0; } h1 { font-size:23px; letter-spacing:-.025em; line-height:1.3; } h2 { font-size:16px; font-weight:600; } h3 { font-size:15px; font-weight:600; }
button,input,select,textarea { font:inherit; touch-action:manipulation; }
button { min-height:44px; cursor:pointer; border:1px solid var(--ym-line); background:#fff; border-radius:10px; padding:9px 13px; color:inherit; font-weight:500; }
button:disabled { opacity:.48; cursor:default; } button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid #7ca9fc; outline-offset:2px; }
button.selected { border-color:#2563eb; color:#245aca; background:#edf3ff; }
button.primary { background:#2563eb; color:#fff; border-color:#2563eb; }
.full { width:100%; } .muted,.note { color:var(--ym-muted); font-size:12px; } .note { line-height:1.65; margin-top:8px; }
.shell { max-width:760px; margin:auto; min-height:100svh; background:var(--ym-bg); padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom)); }
.top { display:flex; justify-content:space-between; align-items:center; height:58px; padding:10px 16px; background:#fff; border-bottom:1px solid var(--ym-line); }
.top img { object-fit:contain; width:132px; height:auto; }
.badge { color:#305ca1; background:#edf3ff; font-size:11px; border-radius:20px; padding:4px 9px; white-space:nowrap; }
main { padding:10px 16px 4px; outline:none; }
.page-head { display:flex; justify-content:space-between; gap:12px; align-items:center; min-height:40px; margin-bottom:8px; }
.page-head>div { min-width:0; } .page-head button { border:0; background:transparent; color:#416cac; font-size:12px; padding:8px; flex-shrink:0; }
.intro { margin-top:3px; font-size:12px; color:var(--ym-muted); }
.row { display:flex; align-items:center; justify-content:space-between; gap:10px; } .row>h2,.row>div,.row>span { min-width:0; overflow-wrap:anywhere; }
.card { background:#fff; border:1px solid var(--ym-line); border-radius:15px; padding:14px; margin-top:10px; }
.wallet { border:1px solid #dce7ff; background:#edf3ff; border-radius:14px; padding:12px 14px; }
.compact-wallet { display:flex; gap:12px; justify-content:space-between; align-items:center; margin:0 0 10px; min-height:64px; }
.enterprise-label { min-width:0; } .enterprise-label strong { display:block; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.enterprise-label span { display:block; font-size:11px; color:#5b7090; margin-top:3px; }
.wallet-link { padding:0; display:flex; align-items:center; gap:6px; flex-shrink:0; background:transparent; border:0; color:#245aca; }
.wallet-link strong { font-size:28px; line-height:1; } .wallet-link span { font-size:11px; width:24px; line-height:1.2; text-align:left; }
.room-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.room { min-width:0; display:grid; grid-template-columns:20px 1fr; align-items:center; justify-items:center; gap:3px 2px; padding:10px 7px; min-height:70px; border-radius:12px; }
.room svg { width:20px; height:20px; color:#5273ab; } .room strong { font-size:14px; font-weight:600; white-space:nowrap; }
.room span { grid-column:1/-1; font-size:12px; color:#596f8d; } .room.selected { box-shadow:inset 0 0 0 .5px #2563eb; }
.fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
label { display:grid; gap:5px; color:#4b5e77; font-size:12px; margin:10px 0; }
input,select,textarea { width:100%; min-width:0; background:#fff; color:#162439; border:1px solid #d9e3ef; border-radius:9px; min-height:44px; padding:8px 10px; font-size:16px; }
input[type=date],input[type=month],input[type=time] { min-width:0; max-width:100%; }
textarea { min-height:82px; resize:vertical; } input[type=checkbox] { accent-color:#2563eb; min-height:20px; width:20px; flex-shrink:0; margin:1px 0; padding:0; }
.check { display:flex; gap:9px; align-items:flex-start; color:#435773; font-size:13px; line-height:1.55; margin:13px 0 7px; }
.booking-card { padding:12px; } .booking-card label { margin:0; }
.slot-head { display:flex; justify-content:space-between; align-items:center; gap:6px; margin:12px 0 8px; }
.slot-head h2 { font-size:13px; } .slot-head span { color:#65758b; font-size:11px; text-align:right; }
.slots { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.slot { min-height:44px; height:44px; padding:4px; font-size:14px; font-variant-numeric:tabular-nums; }
.slot small { display:block; font-size:10px; line-height:1.1; } .slot:disabled { opacity:1; color:#8b96a7; background:#f4f6f9; border-color:#eef1f6; }
.selection-note { margin-top:8px; min-height:20px; color:#4f6993; font-size:12px; overflow-wrap:anywhere; }
.booking-help { display:flex; justify-content:space-between; gap:8px; align-items:center; color:#63748b; font-size:11px; }
.booking-help button { border:0; color:#416cac; background:transparent; font-size:11px; padding:6px 0; }
nav { position:fixed; z-index:4; bottom:0; left:50%; transform:translateX(-50%); width:min(100%,760px); display:flex; height:calc(var(--nav-height) + env(safe-area-inset-bottom)); padding:5px 12px calc(5px + env(safe-area-inset-bottom)); background:#fffffff5; backdrop-filter:blur(12px); border-top:1px solid var(--ym-line); }
nav button { flex:1; border:0; display:grid; justify-items:center; gap:3px; font-size:11px; background:transparent; color:#65758d; padding:5px 2px; }
nav button svg { width:21px; height:21px; } nav button[aria-current=page] { color:#2563eb; background:#edf3ff; border-radius:11px; }
.booking-dock { position:fixed; z-index:4; bottom:calc(var(--nav-height) + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:min(100%,760px); display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 16px; min-height:76px; background:#fff; border-top:1px solid #e4eaf2; box-shadow:0 -5px 18px #16345604; }
.dock-price { min-width:0; } .dock-price strong { font-size:25px; font-weight:650; line-height:1.1; color:#245aca; } .dock-price span { font-size:12px; }
.dock-summary { display:block; font-size:11px!important; color:#5e7190; margin-top:3px; line-height:1.35; overflow-wrap:anywhere; }
.booking-dock .primary { min-width:116px; min-height:46px; flex-shrink:0; }
.segments { display:flex; gap:4px; padding:4px; border-radius:12px; background:#edf1f7; margin:6px 0 10px; }
.segments button { flex:1; min-width:0; border:0; background:transparent; padding:8px; font-size:13px; }
.segments .selected { background:#fff; box-shadow:0 1px 4px #172f5210; color:#245aca; }
.order-card .row h2 { font-size:15px; } .tag { padding:3px 7px; font-size:11px; border-radius:6px; background:#edf3ff; color:#305c9f; white-space:nowrap; flex-shrink:0; }
.tag.warn { background:#fff1df; color:#855119; } .order-time { font-size:14px; margin-top:8px; font-variant-numeric:tabular-nums; line-height:1.6; } .order-time strong { font-weight:600; }
.order-meta { display:flex; justify-content:space-between; align-items:center; gap:6px; min-height:32px; } .order-meta>span { font-size:12px; color:#63748b; min-width:0; overflow-wrap:anywhere; }
.order-meta button { padding:8px 0 8px 10px; min-height:44px; border:0; color:#416cac; font-size:12px; }
.actions { display:flex; gap:8px; margin-top:7px; flex-wrap:wrap; } .actions button { flex:1; font-size:13px; }
.pager { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:12px 0; } .pager span { font-size:12px; color:#63748b; } .pager button { font-size:12px; }
.empty { text-align:center; padding:28px 14px; color:#526780; } .empty p { font-size:12px; margin:8px 0 18px; } .empty h2 { color:#3b5677; }
.points-summary { display:flex; justify-content:space-around; gap:8px; margin-top:16px; padding:12px 0 4px; border-top:1px solid #e9eef5; text-align:center; }
.points-summary>div { min-width:0; } .points-summary strong { display:block; font-size:25px; line-height:1.3; color:#245aca; } .points-summary strong small { font-size:12px; font-weight:400; color:#7b8ca2; }
.points-summary span { display:block; font-size:12px; color:#63748b; margin-top:3px; } .identity-card .row { align-items:flex-start; } .identity-card h2 { font-size:16px; }
.menu-card { padding:0 14px; } .menu-row { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; min-height:68px; border:0; border-bottom:1px solid #e9eef5; border-radius:0; text-align:left; padding:12px 0; }
.menu-row:last-child { border-bottom:0; } .menu-row strong { font-size:14px; font-weight:500; } .menu-row small { display:block; color:#708097; font-size:11px; margin-top:3px; } .menu-row>span:last-child { color:#8b9ab0; font-size:20px; }
.admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; } .admin-grid button { min-height:62px; text-align:left; padding:14px 12px; font-size:13px; }
.section-bar { font-size:12px; color:#63748b; } .section-bar button { font-size:12px; }
.list-row { padding:12px 0; border-bottom:1px solid #e9eef5; overflow-wrap:anywhere; } .list-row:last-child { border:0; } .list-row small { display:block; font-size:11px; color:#718298; margin-top:2px; }
details { border-bottom:1px solid #e9eef5; padding:12px 0; } summary { cursor:pointer; font-weight:550; min-height:32px; line-height:1.6; } details p { margin:8px 0; font-size:13px; line-height:1.7; color:#52647a; }
.alert { border:1px solid #f2dfbe; background:#fff6e9; color:#825b2c; border-radius:10px; padding:10px 12px; margin:10px 0; font-size:12px; line-height:1.6; }
.error { font-size:13px; line-height:1.6; background:#fff0ec; color:#9b382b; border-radius:10px; padding:10px 12px; overflow-wrap:anywhere; }
.inline-error { margin-bottom:10px; } .inline-error button { width:100%; margin-top:6px; }
dialog { width:min(480px,100%); max-width:100%; max-height:calc(100dvh - 16px); border:1px solid #dce5f2; border-radius:20px 20px 0 0; padding:0; margin:auto auto 0; color:#162439; background:#fff; overscroll-behavior:contain; overflow:auto; }
dialog::backdrop { background:#11234155; backdrop-filter:blur(2px); }
.sheet-head { position:sticky; top:0; z-index:1; display:flex; justify-content:space-between; align-items:center; gap:10px; background:#fff; padding:10px 16px 6px; border-radius:20px 20px 0 0; }
.sheet-head h2 { font-size:18px; min-width:0; } .sheet-head .close { border:0; min-width:44px; padding:8px; font-size:12px; color:#5b6c80; }
.sheet-body { padding:4px 18px calc(16px + env(safe-area-inset-bottom)); }
#modal-error:not(:empty) { padding:4px 18px; }
.confirm-summary { background:#f5f8fe; border:1px solid #e5edfa; border-radius:12px; padding:12px; }
.confirm-summary .row>strong { color:#245aca; font-size:17px; } .confirm-summary .note { margin-top:3px; font-size:11px; }
.key-rules { padding:0 0 0 17px; margin:12px 0; color:#52647a; font-size:12px; line-height:1.8; }
.key-rules li { margin:3px 0; } .draft-note { font-size:11px; margin-top:3px; }
.dialog-actions { position:sticky; bottom:-1px; margin-top:12px; padding:8px 0 0; background:#fff; display:flex; gap:8px; }
.dialog-actions .primary { min-height:46px; flex:1; }
.price-card { border:1px solid var(--ym-line); border-radius:12px; padding:12px; margin-top:10px; } .price-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.price-grid strong { display:block; font-size:20px; color:#245aca; } .price-grid span { display:block; font-size:11px; color:#63748b; margin-top:3px; }
.copy-text { font-size:12px; word-break:break-all; padding:10px; background:#f3f6fb; border-radius:8px; user-select:all; margin-top:10px; }
.qr { text-align:center; } .qr svg { width:230px; max-width:100%; height:auto; } a { color:#2563eb; }
#notice { position:fixed; z-index:10; bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px); left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); border-radius:10px; padding:10px 14px; color:#fff; background:#203853; font-size:13px; display:none; box-shadow:0 5px 20px #16335a22; pointer-events:none; }
.shell[data-page=book] #notice { bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 84px); }
@media(max-width:350px) { main { padding-inline:12px; } .top { padding-inline:12px; } .room { grid-template-columns:1fr; gap:2px; padding:8px 4px; min-height:66px; } .room svg { display:none; } .room strong { font-size:13px; } .room span { font-size:11px; } .fields { gap:8px; } input,select { padding-inline:7px; } .booking-card { padding:10px; } .booking-dock { padding-inline:12px; gap:8px; } .booking-dock .primary { min-width:104px; } .enterprise-label strong { max-width:172px; } }
@media(min-width:700px) { .shell { min-height:100svh; border-inline:1px solid #dfe6f0; } .top { padding-inline:28px; } main { max-width:640px; margin:auto; padding:20px 20px 8px; } .page-head { margin-bottom:14px; } .room { min-height:82px; padding:12px 20px; } .compact-wallet { min-height:74px; margin-bottom:14px; } .booking-card { padding:18px; margin-top:14px; } .slot { height:48px; } .booking-dock { padding-inline:80px; } dialog { margin:auto; border-radius:20px; max-height:calc(100dvh - 40px); } .menu-row { min-height:70px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; } }
.top-tools { display:flex; align-items:center; gap:6px; }
#header-refresh { border:0; background:transparent; font-size:12px; color:#416cac; padding:8px; }
@media(max-height:760px) and (max-width:699px) {
 .shell[data-page=book] .top { height:52px; }
 .shell[data-page=book] main { padding-top:8px; }
 .shell[data-page=book] .page-head { min-height:30px; margin-bottom:6px; }
 .shell[data-page=book] h1 { font-size:21px; }
 .shell[data-page=book] .compact-wallet { min-height:56px; padding:8px 12px; margin-bottom:8px; }
 .shell[data-page=book] .room { min-height:60px; padding-block:7px; }
 .shell[data-page=book] .booking-card { margin-top:8px; padding:10px; }
 .shell[data-page=book] .slot-head { margin-top:8px; margin-bottom:6px; }
 .shell[data-page=book] .slots { grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
 .shell[data-page=book] .slot { font-size:13px; padding-inline:2px; }
 .shell[data-page=book] .selection-note { margin-top:6px; font-size:11px; }
 .shell[data-page=book] .booking-help { gap:4px; }
}
@media(max-height:600px) and (max-width:699px) {
 #ym-meeting-v04 { --nav-height:58px; }
 .shell[data-page=book] .booking-dock { min-height:68px; padding-block:8px; }
 .shell[data-page=book] .booking-help { flex-wrap:wrap; }
 .shell[data-page=book] .booking-help button { margin-left:auto; }
}
/* Reserve exactly the fixed controls' height; no extra empty scroll tail. */
.shell[data-page=book] { padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 76px); }
@media(max-height:600px) and (max-width:699px) {
 .shell[data-page=book] { padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 68px); }
}
/* A landscape phone can use its extra width for the controls. */
@media(min-width:700px) and (max-height:500px) {
 #ym-meeting-v04 { --nav-height:56px; }
 .shell[data-page=book] .top { height:50px; padding-inline:18px; }
 .shell[data-page=book] main { max-width:none; display:grid; grid-template-columns:220px minmax(0,1fr); column-gap:16px; padding:8px 16px; }
 .shell[data-page=book] .page-head { grid-column:1; margin:0; min-height:36px; }
 .shell[data-page=book] h1 { font-size:20px; }
 .shell[data-page=book] .compact-wallet { grid-column:1; min-height:60px; margin:4px 0 8px; padding:8px 10px; }
 .shell[data-page=book] .room-grid { grid-column:1; gap:5px; }
 .shell[data-page=book] .room { display:flex; flex-direction:column; gap:3px; min-height:58px; padding:7px 2px; }
 .shell[data-page=book] .room svg { display:none; }
 .shell[data-page=book] .room strong { font-size:12px; }
 .shell[data-page=book] .room span { font-size:10px; }
 .shell[data-page=book] .booking-card { grid-column:2; grid-row:1/span 3; margin:0; padding:10px; }
 .shell[data-page=book] .slots { grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
 .shell[data-page=book] .slot { height:44px; }
 .shell[data-page=book] .slot-head { margin:7px 0 6px; }
 .shell[data-page=book] .selection-note { margin-top:5px; }
 .shell[data-page=book] .booking-dock { min-height:64px; padding:7px 24px; }
 .shell[data-page=book] { padding-bottom:120px; }
 .shell[data-page=book] .inline-error,.shell[data-page=book] .alert { grid-column:1/-1; }
}
