/* styles.css —— 视觉基准：0.7 styles.css 原样移植。
   说明：0.7 源文件第 4、5 行（指标卡 .stat-* 与房态图 .day-*/.booking 等规则）为超长单行，
   本文件这两段按 0.7 类名与视觉行为等价重写（像素级不苛求，行为级不降级），其余行逐字保留。 */
:root{font-family:Inter,"Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203332;background:#eaf4ff;font-synthesis:none}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;min-width:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}
.shell{min-height:100vh;display:flex}.sidebar{width:224px;background:#0b3d66;color:#dcecf7;display:flex;flex-direction:column;flex:none}.brand{height:76px;display:flex;align-items:center;gap:11px;padding:0 22px;border-bottom:1px solid #ffffff19}.brand-mark{width:35px;height:35px;border-radius:11px;background:#cfe6fb;color:#0b4a75;display:grid;place-items:center;font-size:20px;font-weight:900;box-shadow:0 5px 18px #06283f4d}.brand strong{display:block;color:#fff;font-size:19px;letter-spacing:1px}.brand small{font-size:10px;color:#9cc2de;letter-spacing:2px}.hotel-select{margin:20px 14px 16px;padding:13px;border:1px solid #ffffff20;border-radius:12px;background:#ffffff0c}.hotel-select small{display:block;color:#9ac7ba;font-size:11px;margin-bottom:5px}.hotel-select b{font-size:13px;color:#fff}.nav-label{padding:14px 24px 8px;font-size:11px;letter-spacing:2px;color:#7fa8c7}.nav-btn{width:calc(100% - 24px);margin:2px 12px;padding:12px 14px;border:0;border-radius:10px;background:transparent;color:#bcd6ea;display:flex;align-items:center;gap:13px;text-align:left;font-size:14px}.nav-btn:hover{background:#ffffff13}.nav-btn.active{background:#d6e9fa;color:#0b4a75;font-weight:700;box-shadow:0 5px 14px #062a442b}.nav-icon{width:20px;text-align:center;font-size:17px}.nav-text-short{display:none}.sidebar-foot{margin-top:auto;padding:20px 22px;border-top:1px solid #ffffff19;color:#98bcd6;font-size:11px;line-height:1.8}.sidebar-foot b{color:#dcecfa}
.main{min-width:0;flex:1}.topbar{height:76px;background:#fff;border-bottom:1px solid #e5ece8;display:flex;align-items:center;justify-content:space-between;padding:0 30px}.crumb{font-size:13px;color:#8ca29b}.crumb strong{color:#163d37}.top-actions{display:flex;align-items:center;gap:12px;font-size:12px;color:#738f85}.avatar{width:32px;height:32px;border-radius:50%;background:#d7eee3;color:#165745;display:grid;place-items:center;font-weight:800}.workspace{padding:28px 30px 36px;max-width:1800px;margin:auto}.page-head{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:24px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:#2b9c72;text-transform:uppercase;margin:0 0 7px}.page-head h1{font-size:28px;letter-spacing:-.5px;margin:0 0 7px;color:#193b34}.subtle{color:#84978e;font-size:13px;margin:0}.head-actions,.toolbar-left,.toolbar-right{display:flex;align-items:center;gap:10px}.btn{border:1px solid #dbe5de;border-radius:9px;background:#fff;color:#33544b;padding:10px 15px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;white-space:nowrap}.btn:hover{border-color:#7ebc9e;background:#f8fcf9}.btn.primary{background:#087c61;border-color:#087c61;color:#fff;box-shadow:0 5px 13px #087c6129}.btn.primary:hover{background:#086b55}.btn.ghost{border-color:transparent;background:transparent}.btn.danger{color:#bf514e;border-color:#f1d4d0}.btn.small{padding:7px 11px;min-height:30px;font-size:12px}.icon-btn{width:38px;height:38px;border:1px solid #dce7e0;background:#fff;border-radius:9px;color:#476e60;font-size:17px}.icon-btn:hover{background:#eaf6ee}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid #e5ece8;border-radius:14px;padding:19px 20px;box-shadow:0 4px 18px #244e3b08;position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;width:75px;height:75px;border-radius:50%;background:#eaf7f0;right:-24px;top:-24px}.stat-top{font-size:12px;color:#7b9184;font-weight:700;display:flex;align-items:center;justify-content:space-between}.stat-icon{font-size:15px;color:#b8cec0}.stat-value{font-size:30px;font-weight:800;color:#1c4635;margin:11px 0 6px;letter-spacing:-.5px}.stat-note{font-size:11px;color:#93a69b}
.panel{background:#fff;border:1px solid #e4ebe6;border-radius:15px;box-shadow:0 5px 22px #244e3b09;overflow:hidden}.panel-toolbar{padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #edf1ee;flex-wrap:wrap}.segmented{display:flex;padding:3px;background:#edf3ef;border-radius:9px}.segmented button{border:0;background:transparent;color:#69847a;font-size:12px;padding:7px 13px;border-radius:7px}.segmented button.active{background:#fff;color:#08684f;font-weight:800;box-shadow:0 2px 7px #213b2616}.date-range{font-size:12px;color:#3c5b50;min-width:154px;text-align:center;font-weight:700}.search{height:38px;width:250px;border:1px solid #dfe9e3;border-radius:9px;padding:0 12px;background:#fff;color:#24453a;outline:none;font-size:12px}.search:focus{border-color:#43a983;box-shadow:0 0 0 3px #43a9831a}.legend{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:12px 20px;border-bottom:1px solid #edf1ee;font-size:11px;color:#738b7e}.legend b{color:#4c665b;margin-right:3px}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:6px}.dot.booked{background:#eaa84c}.dot.inhouse{background:#37a886}.dot.checkout{background:#aab8b1}.dot.blocked{background:#9babc1}.dot.dirty{background:#e3847a}.calendar-wrap{overflow:auto;max-height:615px;position:relative}.calendar{--day-width:91px;--room-width:195px;width:calc(var(--room-width) + 14 * var(--day-width));position:relative}.calendar.single{--day-width:145px;width:calc(var(--room-width) + 7 * var(--day-width))}.calendar-head,.room-row{display:grid;grid-template-columns:var(--room-width) repeat(var(--days),var(--day-width))}.calendar-head{position:sticky;top:0;z-index:4;background:#f8faf8;border-bottom:1px solid #dfe9e2}.corner{position:sticky;left:0;z-index:6;background:#f8faf8;display:flex;align-items:center;padding:0 17px;color:#6e887b;font-size:11px;font-weight:800}.day-head{height:60px;border-left:1px solid #e8ede9;display:flex;flex-direction:column;justify-content:center;padding:0 12px;gap:3px;color:#68806f}.day-head strong{font-size:12px;color:#3d5c4f;display:flex;align-items:center;gap:6px}.day-head>span{font-size:10px}.day-head.today{background:#e7f6ee}.today-badge{background:#0b8968;color:#fff;border-radius:5px;font-size:9px;padding:2px 5px;font-weight:800}.room-group{position:sticky;left:0;z-index:5;background:#f3f7f4;border-top:1px solid #e3ece6;padding:9px 17px;font-size:12px;font-weight:800;color:#41604e}.room-row{position:relative}.room-label{position:sticky;left:0;z-index:3;background:#fff;padding:10px 14px;border-top:1px solid #eef2ef;display:flex;flex-direction:column;gap:5px;min-width:0}.mini-status{font-size:9px;font-weight:800;padding:3px 6px;border-radius:4px;color:#bd6b59;background:#fbe8e2;width:fit-content}.mini-status.clean{color:#2d9066;background:#e3f4e9}.day-cell{height:58px;border-left:1px solid #eef2ef;border-top:1px solid #eef2ef;background:#fbfdfb}.day-cell.today{background:#eaf7f0}.booking{position:absolute;top:9px;height:40px;border-radius:8px;padding:4px 9px;font-size:11px;line-height:1.5;overflow:hidden;z-index:2;border:1px solid transparent;box-shadow:0 2px 8px #24463a1c}.booking b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.booking>span:not(.booking-quick){font-size:10px;opacity:.85;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.booking.booked{background:#fdf3e0;border-color:#eed9ae;color:#8a5b12}.booking.inhouse{background:#ddf3e7;border-color:#b5e2cd;color:#0c6b4d}.booking.blocked{background:#e9eef6;border-color:#ccd8e8;color:#4d6076}.panel-bottom{display:flex;justify-content:space-between;gap:14px;padding:12px 20px;border-top:1px solid #edf1ee;font-size:11px;color:#7d9484;flex-wrap:wrap}.hint{color:#a4b5a9}
.content-panel{padding:20px}.section-title{font-size:16px;color:#25483a;margin:0 0 15px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}.table{width:100%;border-collapse:collapse}.table th{text-align:left;background:#f7faf7;color:#82978a;font-size:11px;font-weight:700;padding:12px 14px}.table td{border-bottom:1px solid #edf1ee;padding:15px 14px;font-size:12px;color:#405c50}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fbfdfa}.pill{font-size:10px;font-weight:800;padding:5px 8px;border-radius:5px;display:inline-block}.pill.booked{color:#aa7021;background:#fff0d5}.pill.inhouse{color:#0c7a5a;background:#daf3e5}.pill.checkout{color:#7b8d82;background:#edf0ed}.pill.blocked{color:#60758c;background:#e7edf5}.pill.dirty{color:#bd6b59;background:#fbe8e2}.pill.clean{color:#2d9066;background:#e3f4e9}.muted{color:#91a298}.link-btn{border:0;background:none;color:#087c61;font-size:12px;font-weight:800;padding:6px}.link-btn:hover{text-decoration:underline}.empty-state{text-align:center;padding:55px 20px;color:#8ca296;font-size:13px}.empty-state span{font-size:30px;display:block;margin-bottom:10px}.chart-row{display:flex;align-items:center;gap:12px;margin:15px 0;font-size:12px}.chart-label{width:85px;color:#5b7364}.chart-bar{flex:1;height:12px;background:#edf4ee;border-radius:30px;overflow:hidden}.chart-fill{height:100%;background:#6fc79d;border-radius:30px}.chart-number{width:60px;text-align:right;font-weight:800;color:#315747}.callout{background:#f1faf4;border:1px solid #d9eddf;color:#4f7863;font-size:12px;border-radius:10px;padding:15px 17px;margin-top:20px;line-height:1.7}
.overlay{position:fixed;inset:0;z-index:20;background:#102f2880;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#fff;border-radius:16px;width:500px;max-width:100%;max-height:92vh;overflow:auto;box-shadow:0 22px 70px #092f2b45}.modal.large{width:570px}.modal-head{padding:22px 24px 17px;border-bottom:1px solid #edf1ee;display:flex;align-items:start;justify-content:space-between}.modal-head h2{font-size:18px;margin:0;color:#193c32}.modal-head p{font-size:11px;color:#8ba098;margin:5px 0 0}.close{border:0;background:#f3f6f3;color:#789082;border-radius:7px;width:28px;height:28px;font-size:18px}.modal-body{padding:22px 24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#5f7869}.field.full{grid-column:1/-1}.field input,.field select{height:40px;border:1px solid #dce8de;border-radius:8px;padding:0 11px;color:#274438;outline:0;background:#fff;font-size:12px;min-width:0}.field input:focus,.field select:focus{border-color:#43a983;box-shadow:0 0 0 3px #43a9831a}.field-error{color:#c55b4a;font-size:11px;margin:0 0 12px}.form-help{font-size:11px;color:#90a296;margin:15px 0 0}.modal-foot{padding:16px 24px;border-top:1px solid #edf1ee;display:flex;justify-content:flex-end;gap:9px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:3px 0 20px}.detail-item small{display:block;color:#93a69a;font-size:10px;margin-bottom:6px}.detail-item strong{font-size:13px;color:#315045}.detail-note{background:#f5f9f5;padding:14px;border-radius:9px;font-size:11px;color:#6f8877;line-height:1.7}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.toast{position:fixed;bottom:25px;right:28px;background:#184d3e;color:#fff;box-shadow:0 10px 30px #16413038;border-radius:9px;padding:12px 18px;font-size:12px;z-index:30}.filter-popover{position:absolute;right:18px;top:59px;z-index:8;background:#fff;border:1px solid #e0e9e2;border-radius:10px;box-shadow:0 12px 34px #1e463228;padding:15px;min-width:200px}.filter-popover h4{font-size:12px;margin:0 0 12px;color:#345e4b}.filter-popover label{display:flex;gap:8px;align-items:center;font-size:12px;color:#60776b;padding:6px 0;cursor:pointer}.filter-popover input{accent-color:#0b8968}
@media(max-width:1150px){.sidebar{width:74px}.brand{padding:0 18px}.brand strong,.brand small,.hotel-select,.nav-label,.nav-btn .nav-text,.sidebar-foot{display:none}.nav-btn{justify-content:center;margin:4px 9px;width:56px}.nav-icon{font-size:19px}.workspace{padding:22px}.topbar{padding:0 22px}.stats{gap:9px}.stat-card{padding:16px}}
.calendar{width:1469px}.calendar.single{width:1210px}
.auth-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#d6f2e0,transparent 35%),#f3f7f4;padding:25px}.auth-card{width:390px;max-width:100%;background:#fff;border:1px solid #dfebe2;border-radius:18px;padding:34px;box-shadow:0 20px 60px #1b594120}.auth-card .brand-mark{margin-bottom:25px}.auth-card h1{font-size:25px;margin:0 0 8px;color:#174536}.auth-card .subtle{margin-bottom:27px}.auth-card .stack-form{gap:17px}.auth-card .btn{width:100%;margin-top:8px}.loading{min-height:100vh;display:grid;place-content:center;text-align:center;color:#477563;line-height:2}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
/* 员工管理（M3-T2）：设置页内 admin 专属区块，复用 .table/.pill/.form-grid 视觉 */
.settings-grid .settings-wide{grid-column:1/-1}.staff-intro{margin:-4px 0 14px}.staff-table-wrap{overflow:auto}.staff-table td{vertical-align:middle}.staff-self{margin-left:6px;font-size:10px;font-weight:800;color:#087c61;background:#e3f4e9;border-radius:5px;padding:3px 6px}.staff-flag{margin-left:6px;font-size:10px;font-weight:800;color:#aa7021;background:#fff0d5;border-radius:5px;padding:3px 6px}.staff-actions{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.staff-error{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fdf1ee;border:1px solid #f3d9d3;border-radius:10px;padding:12px 14px;font-size:12px;color:#b45445;margin:8px 0 16px}.staff-subtitle{font-size:13px;color:#2b5945;margin:26px 0 14px;padding-bottom:8px;border-bottom:1px solid #edf1ee}.staff-form .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.staff-form-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;flex-wrap:wrap}.staff-form-foot .form-help{margin:0}@media(max-width:1400px){.staff-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.inline-form{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.inline-form input,.stack-form input,.stack-form select,.payment-form input,.payment-form select{height:40px;border:1px solid #dce8de;border-radius:8px;padding:0 11px;color:#274438;outline:0;background:#fff;font-size:12px;min-width:0}.inline-form input{flex:1;min-width:145px}.inline-form input[type=number]{flex:0 0 110px}.stack-form{display:flex;flex-direction:column;gap:13px}.stack-form .field input,.stack-form .field select{width:100%}.simple-list{margin-top:20px;border-top:1px solid #edf1ee}.simple-list>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 2px;border-bottom:1px solid #edf1ee;font-size:12px}.simple-list strong{color:#294d3e}.simple-list span{color:#8a9e91}.payment-form{display:grid;grid-template-columns:1fr 110px;gap:8px;margin-top:17px}.payment-form input[name=note]{grid-column:1/-1}.payment-form .btn{grid-column:1/-1}.field-error:not([hidden]){display:block;padding:8px 0}.auth-card .field-error{margin:0}@media(max-width:1150px){.settings-grid{grid-template-columns:1fr}}
.room-label-button{border:0;background:transparent;text-align:left;padding:2px 0;min-width:0;cursor:pointer}.room-label-button:hover strong{color:#087c61;text-decoration:underline}.room-label-button strong,.room-label-button small{display:block}.room-list-item>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.room-list-item small{display:block;flex-basis:100%;color:#8a9e91}.room-modal .modal-body{padding-top:7px}.room-section-title{font-size:13px;color:#2b5945;margin:23px 0 14px;padding-bottom:8px;border-bottom:1px solid #edf1ee}.room-status-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0;padding:8px 0}.room-status-row .muted{display:block;font-size:11px;margin-bottom:4px}.room-status-row strong{font-size:12px;color:#335d48}.room-related{display:flex;flex-direction:column;gap:7px}.room-related button{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e6eee8;background:#f9fcfa;border-radius:8px;padding:10px 12px;color:#365e49;text-align:left;font-size:12px}.room-related button:hover{background:#eef8f0}.room-related small{color:#82998b;font-size:11px}.room-related p{font-size:12px;margin:0 0 12px}
.shell{background:#eaf4ff}.workspace{background:linear-gradient(145deg,#eaf4ff,#f3f9ff 65%)}.auth-page{background:radial-gradient(circle at 18% 18%,#cfe8ff,transparent 36%),#eaf4ff}.panel,.stat-card{border-color:#d8e8f5;box-shadow:0 5px 20px #37648a10}.analytics-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-bottom:22px}.analytics-controls strong{font-size:13px;color:#31546e;min-width:225px;text-align:center}.analytics-controls input{height:38px;border:1px solid #d3e3ef;border-radius:8px;padding:0 10px;color:#31546e;background:#fff}.analytics-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:26px}.analytics-cards .stat-card{padding:17px}.analytics-cards .stat-value{font-size:23px}.analytics-table{overflow:auto;max-height:560px}.analytics-table .table th{position:sticky;top:0;z-index:1}.analytics-table .table td{padding:10px 14px}.analytics-bar{height:10px;min-width:100px;background:#e6f1fb;border-radius:20px;overflow:hidden}.analytics-bar i{display:block;height:100%;background:#55a7e4;border-radius:20px}.analytics-bottom{display:grid;grid-template-columns:2fr 1fr;gap:28px;margin-top:28px}.analytics-bottom .chart-label{width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.analytics-bottom .chart-number{width:48px}.analytics-bottom .chart-row strong{width:90px;text-align:right;color:#31546e}.analytics-bottom .chart-fill{background:#6bb8ed}.analytics-status>div{display:flex;justify-content:space-between;border-bottom:1px solid #e6eef5;padding:12px 3px;font-size:12px;color:#617b8e}.analytics-status strong{color:#2e506a}@media(max-width:1250px){.analytics-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-bottom{grid-template-columns:1fr}}
.booking[draggable="true"]{cursor:grab}.booking.dragging{opacity:.45;cursor:grabbing}.booking-quick{position:absolute;top:3px;right:16px;display:flex;gap:2px;padding:2px;background:#fffffff2;border-radius:5px;opacity:0;pointer-events:none;box-shadow:0 1px 5px #24463a2b}.booking:hover .booking-quick,.booking:focus-within .booking-quick,.booking:focus .booking-quick{opacity:1;pointer-events:auto}.booking-quick button{border:0;background:#fff;color:#165d4b;border-radius:4px;font-size:10px;font-weight:800;padding:3px 4px;cursor:pointer}.booking-quick button:hover{background:#d9f3e8}.booking-quick button[data-action="checkout"]{color:#a84e37}.resize-handle{position:absolute;top:0;bottom:0;width:11px;z-index:4;cursor:ew-resize;touch-action:none}.resize-start{left:0}.resize-end{right:0}.resize-handle:after{content:"";position:absolute;top:13px;bottom:13px;left:4px;width:3px;border-radius:3px;background:#b77c30;opacity:.55}.booking:hover .resize-handle:after,.booking.resizing .resize-handle:after{opacity:1;background:#795015}.booking.resizing{z-index:8;cursor:ew-resize;box-shadow:0 5px 18px #1c3a2b4a}.booking.resize-invalid{border-color:#c84d45;box-shadow:0 0 0 2px #c84d45}.resize-tip{position:fixed;z-index:50;background:#184b3b;color:#fff;border-radius:7px;padding:8px 11px;font-size:12px;font-weight:700;box-shadow:0 5px 16px #123c2d44;pointer-events:none;white-space:nowrap}.resize-tip.invalid{background:#b4483d}.day-cell.drop-target{background:#c9eadd;box-shadow:inset 0 0 0 2px #1e9b71}.day-cell.drop-target.drop-invalid{background:#fbe2dc;box-shadow:inset 0 0 0 2px #d57b68}.edit-summary{align-self:end;display:flex;flex-direction:column;gap:3px;color:#6a8676;font-size:11px}.edit-summary strong{font-size:19px;color:#21543e}.edit-summary small{font-size:10px;color:#8ba598}.booking:focus-visible{outline:3px solid #187eab;outline-offset:2px}

/* —— 响应式：641–1024 平板（移除 920 全局最小宽度后，表格在容器内横滚，页面本身不溢出）—— */
@media(max-width:1024px){
  .workspace{padding:20px 18px 28px}
  .topbar{padding:0 18px}
  .page-head{flex-wrap:wrap;gap:12px}
  .page-head h1{font-size:25px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .panel-toolbar{padding:14px}
  .search{width:220px}
  .table-wrap .table{min-width:680px}
}

/* —— 响应式：≤640 手机 ——
   侧栏 → 底部 Tab（房态/订单/房务/统计/设置）；房态图由 JS 切为单日房间列表；弹窗 → 底部抽屉；
   表单全宽、输入 16px 防 iOS 缩放、可点区域 ≥44px；用 env(safe-area-inset-*) 适配刘海与手势区。 */
@media(max-width:640px){
  .shell{display:block;min-height:100vh;background:#eaf4ff}
  /* 底部 Tab */
  .sidebar{position:fixed;left:0;right:0;bottom:0;z-index:25;width:auto;display:flex;flex-direction:row;align-items:stretch;padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));border-top:1px solid #ffffff1f;box-shadow:0 -8px 24px #06283f33}
  .brand,.hotel-select,.nav-label,.sidebar-foot,.nav-btn.mobile-hide{display:none}
  .nav-btn{flex:1 1 0;width:auto;min-width:0;min-height:54px;margin:0;padding:6px 2px;flex-direction:column;justify-content:center;gap:3px;border-radius:9px;font-size:10px;line-height:1.2;text-align:center}
  .nav-btn .nav-text{display:none}
  .nav-btn .nav-text-short{display:inline}
  .nav-btn .nav-icon{width:auto;font-size:18px;line-height:1}
  .nav-btn.active{background:#d6e9fa;color:#0b4a75;box-shadow:none}
  .main{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  /* 顶栏/工作区 */
  .topbar{height:auto;min-height:54px;position:sticky;top:0;z-index:12;padding:calc(6px + env(safe-area-inset-top,0px)) 12px 6px;gap:8px}
  .crumb{flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-user{display:none}
  .top-actions{flex:none;gap:8px}
  .top-actions .btn.small{min-height:44px;padding:8px 12px}
  .avatar{width:32px;height:32px;flex:none}
  .workspace{padding:12px 12px 20px;max-width:none}
  .page-head{margin-bottom:14px;gap:10px}
  .page-head h1{font-size:22px;margin-bottom:4px}
  .page-head .subtle{font-size:12px}
  .head-actions{width:100%;gap:8px}
  .head-actions .btn{flex:1;min-width:0}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px}
  .stat-card{padding:8px 7px;border-radius:11px}
  .stat-top{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .stat-icon,.stat-note{display:none}
  .stat-value{font-size:19px;margin:4px 0 0;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .stat-value small{font-size:10px}
  .stat-card:after{display:none}
  /* 面板 / 表格（表格只在容器内横滚，不撑破页面） */
  .panel{border-radius:12px}
  .content-panel{padding:14px}
  .section-title{font-size:15px;margin-bottom:10px}
  .table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .table-wrap .table{min-width:640px}
  .table th{padding:10px;font-size:10px}
  .table td{padding:11px 10px;font-size:12px}
  /* 触控尺寸：按钮 ≥44px、输入 ≥16px（避免 iOS 聚焦自动放大） */
  .btn{min-height:44px;padding:10px 14px;font-size:14px}
  .btn.small{min-height:44px;padding:8px 12px;font-size:13px}
  .icon-btn{width:44px;height:44px;min-height:44px}
  .link-btn{min-height:44px;padding:10px 8px}
  .close{width:44px;height:44px;font-size:22px}
  .segmented button{min-height:44px;padding:9px 12px}
  .search{width:100%;height:44px;font-size:16px}
  .field{font-size:12px;gap:6px}
  .field input,.field select{width:100%;height:44px;font-size:16px}
  .inline-form input,.stack-form input,.stack-form select,.payment-form input,.payment-form select,.analytics-controls input{height:44px;font-size:16px}
  .form-grid{grid-template-columns:1fr;gap:12px}
  .form-grid .field.full{grid-column:auto}
  .payment-form{grid-template-columns:1fr;gap:8px}
  .payment-form .btn{grid-column:auto}
  .simple-list>div{flex-wrap:wrap;gap:6px}
  .simple-list span{word-break:break-word}
  .settings-grid{gap:12px}
  .staff-form .form-grid{grid-template-columns:1fr}
  .room-status-row{flex-wrap:wrap;gap:8px}
  .room-status-row .head-actions{width:100%}
  .room-related button{flex-wrap:wrap}
  /* 弹窗 → 底部抽屉 */
  .overlay{align-items:flex-end;justify-content:center;padding:0}
  .modal,.modal.large{width:100%;max-width:none;max-height:92vh;border-radius:18px 18px 0 0;box-shadow:0 -18px 50px #092f2b45}
  .modal-head{padding:16px 16px 12px}
  .modal-head h2{font-size:17px}
  .modal-body{padding:14px 16px}
  .mobile-sheet .modal-body{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .modal-foot{position:sticky;bottom:0;flex-direction:column;gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:#fff}
  .modal-foot .btn{width:100%}
  .detail-grid{grid-template-columns:1fr 1fr;gap:12px}
  .toast{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom,0px));text-align:center}
  .filter-popover{position:fixed;left:12px;right:12px;top:auto;bottom:calc(76px + env(safe-area-inset-bottom,0px));min-width:0}
  /* 登录/改密 */
  .auth-page{min-height:100dvh;padding:16px}
  .auth-card{width:100%;padding:24px}
  .auth-card h1{font-size:22px}
  /* 统计页控件收窄 */
  .analytics-controls{gap:8px;padding-bottom:14px}
  .analytics-controls strong{flex:1 1 100%;min-width:0;text-align:left;font-size:12px}
  .analytics-controls input[type=date]{flex:1;min-width:0}
  .analytics-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .analytics-cards .stat-card{padding:12px}
  .analytics-cards .stat-value{font-size:19px}
  .analytics-bottom{grid-template-columns:1fr;gap:18px}
  .analytics-table{overflow:auto}
  /* 手机端单日房态列表 */
  .mobile-datebar{display:flex;align-items:center;gap:6px;padding:10px;border-bottom:1px solid #edf1ee}
  .mobile-date-step{flex:none;font-size:19px;padding:0}
  .mobile-date-label{flex:1;min-width:0;text-align:center}
  .mobile-date-label strong{display:block;font-size:15px;color:#193b34;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-date-label span{display:block;font-size:11px;color:#84978e;margin-top:2px}
  .mobile-today-btn{flex:none}
  .mobile-search{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #edf1ee}
  .mobile-search .search{flex:1;min-width:0;width:auto}
  .mobile-room-count{flex:none;font-size:11px;color:#84978e;white-space:nowrap}
  .mobile-legend{padding:8px 12px;gap:12px;font-size:10px}
  .mobile-room-group{padding:9px 14px 7px;background:#f3f7f4;border-top:1px solid #e3ece6;font-size:12px;font-weight:800;color:#41604e}
  .mobile-room-group span{font-weight:400;color:#9aac9f}
  .mobile-room-row{display:flex;align-items:center;gap:10px;width:100%;min-height:74px;padding:11px 12px;background:#fff;border:0;border-bottom:1px solid #eef2ef;color:#203332;text-align:left}
  .mobile-room-row:active{background:#f3faf6}
  .m-room-no{flex:none;min-width:46px;font-size:20px;font-weight:800;color:#193b34;letter-spacing:-.3px}
  .m-room-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
  .m-room-meta{font-size:11px;color:#879b90;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .m-room-order{display:-webkit-box;font-size:12px;color:#3c5b50;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-break:break-word}
  .m-room-order b{color:#27483a}
  .m-room-sub{display:block;font-size:10px;color:#93a69b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .m-room-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
  .m-room-chevron{flex:none;color:#b4c5ba;font-size:20px;line-height:1}
  .mobile-calendar .panel-bottom{padding:10px 12px;font-size:10px}
  .pill.available{color:#5f7c6c;background:#edf3ef}
  /* 底部操作面板 */
  .sheet-overlay{align-items:flex-end;padding:0}
  .mobile-sheet{width:100%;max-height:90vh;border-radius:18px 18px 0 0}
  .sheet-grabber{width:40px;height:4px;margin:9px auto 0;border-radius:2px;background:#cbd9d0}
  .sheet-summary{padding:12px;border:1px solid #e2ede6;border-radius:12px;background:#f7fbf8}
  .sheet-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
  .sheet-summary-head .m-room-no{font-size:24px}
  .sheet-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
  .sheet-order{font-size:12px;color:#3c5b50;line-height:1.6;word-break:break-word}
  .sheet-hint{margin:9px 0 0;font-size:11px;line-height:1.6;color:#8a9e91}
  .sheet-actions{display:flex;flex-direction:column;gap:8px;margin-top:14px}
  .sheet-action{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 12px;border:1px solid #e0ebe4;border-radius:12px;background:#fff;color:#274438;text-align:left}
  .sheet-action:active{background:#f4faf6}
  .sheet-action[disabled]{opacity:.5}
  .sheet-icon{flex:none;width:36px;height:36px;border-radius:10px;background:#e8f5ee;color:#087c61;display:grid;place-items:center;font-size:16px;font-weight:800}
  .sheet-action-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
  .sheet-action-text strong{font-size:14px;color:#234638}
  .sheet-action-text small{font-size:11px;color:#8ba098;line-height:1.45;white-space:normal}
  .sheet-action-arrow{flex:none;color:#b4c5ba;font-size:19px}
  .sheet-action.primary{border-color:#087c61;background:#087c61;color:#fff}
  .sheet-action.primary .sheet-icon{background:#ffffff26;color:#fff}
  .sheet-action.primary .sheet-action-text strong{color:#fff}
  .sheet-action.primary .sheet-action-text small{color:#d8efe7}
  .sheet-action.primary .sheet-action-arrow{color:#d8efe7}
  .overlay{background:#102f2899;z-index:40}
}
