:root{--ink:#153b39;--muted:#6b807d;--brand:#14756b;--pale:#e8f3ef;--line:#dce7e2;--bg:#f3f6f2;--gold:#a66b17}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;padding:10px 14px;min-height:44px}button:hover{border-color:var(--brand)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e3ac48;outline-offset:2px}button.primary{background:var(--brand);color:#fff;border-color:var(--brand)}button.danger{color:#ad4335}button.active{background:var(--ink);color:#fff;border-color:var(--ink)}button:disabled{opacity:.48;cursor:default}h1,h2,h3,p{margin:0}h1{font-size:29px;line-height:1.3;letter-spacing:-1px}h2{font-size:20px}h3{font-size:16px}small,.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--brand)}.shell{max-width:1160px;margin:auto;display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{padding:40px 24px;border-right:1px solid var(--line);position:sticky;top:0;height:100vh}.logo{width:42px;height:42px;border-radius:14px;background:var(--brand);display:grid;place-items:center;color:#fff;font-size:23px;margin-bottom:12px}.sidebar h2{margin-bottom:28px}.sidebar button{display:block;width:100%;text-align:left;border:0;margin-bottom:8px;background:transparent}.sidebar button.active{background:var(--pale);color:var(--brand)}.sidebar small{display:block;margin-top:40px}.main{min-width:0;padding:25px 36px 80px}.account-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:28px}.account-meta{min-width:0}.account-meta b{display:block;font-size:14px;overflow-wrap:anywhere}.account-actions{display:flex;align-items:center;gap:8px}.account-actions button{font-size:12px;white-space:nowrap}.head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.head p{margin-top:7px;color:var(--muted);font-size:13px}.row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;margin:14px 0}.hero{background:var(--ink);color:#fff;border:0;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:180px;height:180px;border:30px solid #ffffff09;border-radius:50%;right:-65px;top:-70px;pointer-events:none}.hero small{color:#b5d1c9}.hero strong{font-size:36px;line-height:1.2;display:block}.hero button{background:#ffffff15;color:#fff;border-color:#ffffff25}.tag{display:inline-block;font-size:11px;background:var(--pale);color:var(--brand);border-radius:7px;padding:3px 8px;white-space:nowrap}.tag.pending{background:#fcf0da;color:#966212}.tag.bad{background:#fbe9e5;color:#a7473a}.tabs{display:flex;gap:7px;overflow-x:auto;padding:1px 0 8px;flex-wrap:nowrap}.tabs button{white-space:nowrap}.room-note{font-size:12px;color:var(--muted);margin:9px 0 17px}.legend{font-size:11px;margin:12px 0}.dot{width:8px;height:8px;border-radius:3px;display:inline-block;background:#fff;border:1px solid #bfd1c8;margin-right:3px}.dot.busy{background:var(--brand)}.dot.pending{background:#e4b056}.dot.past{background:#e3e8e5}.timeline{height:490px;overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff;position:relative;scroll-behavior:auto}.grid{display:grid;grid-template-columns:48px repeat(7,minmax(42px,1fr));min-width:355px}.day{position:sticky;top:0;background:#edf4ef;text-align:center;z-index:2;padding:10px 0;font-size:11px;border-bottom:1px solid var(--line)}.day b{display:block;font-size:14px}.hour{font-size:10px;text-align:center;height:28px;color:var(--muted);border-bottom:1px solid #f0f3f0;padding-top:3px}.slot{height:28px;min-height:28px;border-radius:0;padding:0;margin:0;border:0;border-bottom:1px solid #e6eee8;border-left:1px solid #e6eee8;font-size:9px;background:#fff;overflow:hidden;white-space:nowrap}.slot.busy{background:#217b70;color:#fff;border-color:#ffffff24}.slot.pending{background:#fcf0da;color:#8d651f}.slot.past{background:#eef0ee;color:#9aa7a2}.slot:disabled{opacity:1}.slot:hover{box-shadow:inset 0 0 0 2px #e3ac48}.hint{font-size:12px;padding:12px 14px;background:#edf3ee;border-radius:11px;margin:14px 0;color:#5c746c}.warning{background:#fcf0da;color:#98661c}.error{background:#fbe9e5;color:#9d4136}.error:empty{display:none}.listitem{padding:17px 0;border-bottom:1px solid var(--line)}.listitem:last-child{border:0}.time{font-size:19px;font-weight:650;letter-spacing:-.5px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.actions button{font-size:13px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{font-size:12px;color:var(--muted);display:block}input,select,textarea{width:100%;min-width:0;background:#fff;color:var(--ink);border:1px solid #d2e0d9;border-radius:10px;padding:11px;margin-top:6px;min-height:44px}input[readonly]{background:#f3f6f2}textarea{resize:vertical;min-height:85px}.full{grid-column:1/-1}.menu{display:grid;grid-template-columns:1fr 1fr;gap:12px}.menu button{text-align:left;padding:18px}.menu button b{display:block}.menu button small{font-size:11px}.empty{text-align:center;padding:45px 12px;color:var(--muted)}.bottom{display:none}.toast{position:fixed;bottom:88px;left:50%;transform:translateX(-50%);background:#173c37;color:#fff;padding:12px 20px;border-radius:12px;z-index:20;max-width:90%;box-shadow:0 5px 30px #16352f25}.toast:empty{display:none}dialog{border:0;border-radius:22px;width:min(92vw,560px);max-height:85vh;padding:24px;color:var(--ink);box-shadow:0 24px 70px #10342e33}dialog::backdrop{background:#133c3866;backdrop-filter:blur(3px)}dialog h2{margin-bottom:14px}.detail{display:grid;grid-template-columns:90px 1fr;gap:10px;margin:18px 0;font-size:14px}.detail dt{color:var(--muted)}.detail dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.compact{font-size:12px}.link{color:var(--brand);text-decoration:none}.filters{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filtercount{font-size:12px;color:var(--muted);margin-top:14px}.check{display:flex;align-items:center;gap:10px}.check input{width:20px;min-height:20px;margin:0}.rule{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px;gap:14px}.rule:last-child{border:0}.rule b{text-align:right}.roomnumber{width:34px;height:34px;background:var(--pale);border-radius:10px;display:grid;place-items:center;font-weight:700}.footer-note{font-size:11px;color:var(--muted);margin:22px 0}.auth{max-width:480px;padding:50px 20px 80px;margin:auto}.auth .logo{width:54px;height:54px}.auth h1{margin:12px 0}.auth .card{margin-top:25px}.auth button.primary{width:100%;margin-top:18px}.auth label{margin-top:13px}.loading{text-align:center;color:var(--muted);padding:90px 20px}.auth-error,.form-error{margin-top:12px}.table-scroll{overflow-x:auto}.stage-list{padding-left:20px;font-size:13px;color:var(--muted)}.stage-list li{margin:10px 0}.nowrap{white-space:nowrap}.inline-refresh{padding:6px 10px;min-height:36px}.form-actions{display:flex;gap:8px;margin-top:16px}.form-actions>.primary{flex:1}a{color:var(--brand)}
@media(max-width:700px){.shell{display:block}.sidebar{display:none}.main{padding:14px 17px 105px}.account-bar{margin-bottom:23px;padding-bottom:11px}.account-actions{gap:5px}.account-actions button{padding:8px 10px}.head{margin-bottom:18px}h1{font-size:26px}.head>.primary{font-size:12px;padding:8px 11px}.card{padding:17px;border-radius:16px}.hero{margin-top:0}.hero strong{font-size:31px}.bottom{display:flex;position:fixed;bottom:0;left:0;right:0;background:#ffffffed;backdrop-filter:blur(18px);border-top:1px solid var(--line);padding:8px 6px calc(8px + env(safe-area-inset-bottom));z-index:9;justify-content:space-around}.bottom button{border:0;background:transparent;padding:3px;min-width:52px;font-size:10px;border-radius:9px}.bottom button span{display:block;font-size:21px;line-height:26px}.bottom button.active{color:var(--brand);background:var(--pale)}.fields{gap:12px}.timeline{height:440px;margin-left:-2px;margin-right:-2px}.grid{min-width:325px;grid-template-columns:42px repeat(7,minmax(40px,1fr))}.slot{font-size:8px}.menu button{padding:16px 13px}.hint{font-size:11px}.time{font-size:17px}.auth{padding-top:30px}.jump-row{gap:6px}.jump-row button{padding:8px 10px;font-size:12px}}
.backup-filename{overflow-wrap:anywhere;margin:8px 0}.backup-card h3{font-size:15px}.backup-card .hint{overflow-wrap:anywhere}
.connection-banner{position:sticky;top:0;z-index:15;background:#fcf0da;color:#795519;padding:12px 18px;font-size:12px;border-bottom:1px solid #ead2a7}.connection-banner[hidden]{display:none}.notification-message{margin-top:14px;border-top:1px solid var(--line);padding-top:12px;font-size:12px}.notification-message summary{cursor:pointer;color:var(--brand);min-height:32px}.notification-message p{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);border-radius:10px;padding:12px;margin-top:8px}.notification-card .hint{overflow-wrap:anywhere}.pwa-panel .primary{font-size:12px;padding:9px 12px}.pwa-panel small{font-size:12px}
@media print{.sidebar,.bottom,.account-bar,button{display:none}.shell{display:block}.main{padding:0}.timeline{height:auto}}
