:root{--navy:#12324a;--navy2:#1d4b67;--teal:#0f766e;--teal-dark:#0b5f59;--bg:#f3f6f8;--panel:#fff;--ink:#17242d;--muted:#667784;--line:#dbe4ea;--danger:#a63737;--warning:#9a5b00;--radius:14px}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI','Microsoft YaHei',sans-serif;line-height:1.55}
a{color:var(--teal-dark);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{margin:0 0 .55rem;line-height:1.2;color:var(--navy)}
h1{font-size:clamp(1.55rem,2.3vw,2.15rem);letter-spacing:-.02em}h2{font-size:1.18rem}h3{font-size:1rem}
p{margin:.35rem 0 .8rem}
.topbar{background:linear-gradient(115deg,var(--navy),var(--navy2));color:#fff;box-shadow:0 2px 16px rgba(10,30,45,.16)}
.topbar-inner{max-width:1180px;margin:0 auto;padding:.7rem 1.2rem;display:flex;align-items:center;gap:1.2rem;min-height:58px}
.brand{color:#fff;font-weight:750;letter-spacing:.02em;white-space:nowrap}.brand span{font-weight:400;opacity:.78;font-size:.9rem;margin-left:.3rem}
.nav{display:flex;gap:.2rem;flex-wrap:wrap;flex:1}.nav a{color:#e9f2f7;padding:.38rem .55rem;border-radius:8px;font-size:.92rem}.nav a:hover{background:rgba(255,255,255,.12);text-decoration:none}
.userbox{display:flex;gap:.65rem;align-items:center;color:#e9f2f7;font-size:.9rem;white-space:nowrap}.userbox>a{color:#e9f2f7}.link-button{background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:.25rem}.link-button:hover{text-decoration:underline}
.account-form>div{margin-bottom:1rem}.account-form .actions{margin-bottom:0}
.container{max-width:1180px;margin:0 auto;padding:1.5rem 1.2rem 2.4rem}.footer{text-align:center;color:var(--muted);font-size:.82rem;padding:1.2rem}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 4px 18px rgba(17,50,74,.045);padding:1.25rem;margin:0 0 1.05rem}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin:.2rem 0 1.1rem}.page-head p{margin-bottom:0}.head-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:.76rem;color:var(--teal)!important;font-weight:700;margin-bottom:.15rem}
.muted{color:var(--muted)}.small{font-size:.86rem}.preline{white-space:pre-line}.notes{min-height:2.5rem;color:#425662;font-size:.92rem}
.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:9px;padding:.58rem .9rem;font:inherit;font-weight:650;cursor:pointer;background:#e7eef2;color:var(--navy);min-height:38px}
.btn:hover{text-decoration:none;filter:brightness(.97)}.btn.primary{background:var(--teal);color:#fff}.btn.primary:hover{background:var(--teal-dark)}.btn.ghost{background:#fff;border-color:var(--line);color:var(--navy)}.btn.danger{background:#fff0f0;color:var(--danger);border-color:#edcaca}.btn.small{padding:.38rem .6rem;min-height:32px;font-size:.86rem}
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:1rem}.instrument-card{margin:0}.card-top{display:flex;justify-content:space-between;gap:.5rem;align-items:center}.code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.82rem;background:#edf3f6;color:#385365;border-radius:999px;padding:.17rem .55rem}
.chip{display:inline-flex;align-items:center;border-radius:999px;padding:.2rem .55rem;font-size:.78rem;font-weight:650;background:#edf2f5;color:#425662;white-space:nowrap}.chip.big{font-size:.9rem;padding:.35rem .7rem}.status-pending{background:#fff1d6;color:#875000}.status-approved{background:#d9f3ee;color:#0b5f59}.status-rejected,.status-cancelled{background:#f4e6e6;color:#873232}.status-completed{background:#e5ebf7;color:#35518a}.status-disabled,.status-expired{background:#e9edf0;color:#53616b}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8rem;margin-bottom:1rem}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:1rem 1.1rem;color:var(--ink);display:flex;flex-direction:column;gap:.15rem}.metric strong{font-size:1.7rem;color:var(--navy)}.metric span{color:var(--muted);font-size:.9rem}.metric:hover{text-decoration:none;border-color:#a9c9c5}
.section-title{display:flex;justify-content:space-between;align-items:baseline;gap:.8rem;margin-bottom:.75rem}.section-title h2{margin:0}.admin-attention{border-left:4px solid var(--teal)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.plain-list{list-style:none;padding:0;margin:0}.plain-list li{padding:.32rem 0;border-bottom:1px solid #edf1f3}.plain-list li:last-child{border-bottom:0}.empty{text-align:center;padding:2rem;color:var(--muted)}
.booking-stack{display:grid;gap:.45rem}.booking-line{display:grid;grid-template-columns:1.2fr 1.3fr auto;gap:.8rem;padding:.65rem .7rem;border-radius:8px;background:#f8fafb;color:var(--ink)}.booking-line:hover{background:#eef5f5;text-decoration:none}
.tabs{display:flex;gap:.4rem;margin-bottom:.8rem;flex-wrap:wrap}.tabs a{padding:.5rem .75rem;border-radius:9px;background:#e8eef2;color:#3d5564;font-weight:650}.tabs a.active{background:var(--navy);color:#fff}.tabs span{opacity:.7;font-size:.82rem}
.filter-bar{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.9rem}.filter-bar input,.filter-bar select{background:#fff;border:1px solid var(--line);border-radius:9px;padding:.52rem .65rem;font:inherit;min-height:38px}.filter-bar input[type=search]{min-width:240px;flex:1}
.list-panel{padding:.55rem}.booking-row{display:flex;justify-content:space-between;gap:1rem;padding:.9rem;border-bottom:1px solid #e9eef1}.booking-row:last-child{border-bottom:0}.booking-main{min-width:0}.booking-title{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;font-size:1.02rem}.booking-title a{font-weight:700}.booking-main p{margin:.22rem 0;font-size:.92rem}.booking-actions{display:flex;align-items:flex-start;gap:.45rem;flex-wrap:wrap}
.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem}.detail-grid div{display:flex;flex-direction:column;gap:.15rem}.detail-grid strong{font-size:1.05rem}.actions-panel{display:flex;flex-direction:column;gap:.7rem}.reason-form{display:grid;gap:.4rem;max-width:620px}.reason-form textarea{width:100%}
.button-row{display:flex;gap:.55rem;flex-wrap:wrap}.inline{display:inline}.breadcrumb{font-size:.88rem;color:var(--muted);margin-bottom:.65rem}.day-nav{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}.date-form{display:flex;gap:.35rem}
.slot-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:.35rem;margin:.8rem 0}.slot{border:1px solid #d6e2e7;background:#f9fcfc;border-radius:8px;padding:.42rem .25rem;min-height:54px;font:inherit;cursor:pointer;color:#264754;display:flex;flex-direction:column;align-items:center;justify-content:center}.slot:hover:not(:disabled){border-color:var(--teal);background:#eaf7f4}.slot.busy{background:#f4e8e8;border-color:#e4c9c9;color:#814040;cursor:not-allowed}.slot.elapsed{background:#eef1f3;border-color:#d7dee2;color:#7b878f;cursor:not-allowed}.slot.is-start,.slot.is-selected{background:#d8f1ec;border-color:var(--teal);color:#0b5f59}.slot.is-start{outline:2px solid var(--teal);outline-offset:1px}.slot-time{font-variant-numeric:tabular-nums;font-size:.78rem;white-space:nowrap}.slot-note{font-size:.68rem;margin-top:.1rem}.legend{display:flex;gap:1rem;flex-wrap:wrap;font-size:.83rem;color:var(--muted)}.dot{display:inline-block;width:.62rem;height:.62rem;border-radius:50%;margin-right:.25rem}.dot.free{background:#f9fcfc;border:1px solid #cbdadd}.dot.busy{background:#d8b6b6}.dot.elapsed{background:#cfd8dd}.dot.chosen{background:var(--teal)}
.selection-box{display:flex;gap:1.2rem;align-items:center;justify-content:space-between;background:#f7fafb;border:1px solid var(--line);border-radius:10px;padding:.65rem .8rem;flex-wrap:wrap;margin-bottom:.7rem}.selection-box div{display:flex;flex-direction:column;gap:.1rem}.selection-box strong{font-size:.96rem}.form-error{color:var(--danger);font-weight:650}
.stack-form{max-width:700px}.stack-form p{margin:0 0 .9rem}.stack-form label{display:block;font-weight:650;margin-bottom:.25rem}.stack-form input:not([type=checkbox]),.stack-form select,.stack-form textarea{width:100%;border:1px solid #cad8df;border-radius:8px;padding:.58rem .65rem;font:inherit;background:#fff}.stack-form input[type=checkbox]{width:auto;margin-right:.35rem}.stack-form ul{list-style:none;padding:0;margin:.25rem 0}.stack-form li{padding:.2rem 0}.helptext{display:block;color:var(--muted);font-size:.79rem;margin-top:.2rem}.errorlist{list-style:none;padding:0;margin:.3rem 0;color:var(--danger);font-size:.9rem}.warning{background:#fff4dd;border:1px solid #eed9ae;color:#6f4b00;padding:.65rem .75rem;border-radius:9px}
.auth-panel{max-width:560px;margin:2rem auto}.auth-panel.wide{max-width:760px}.auth-panel .btn{margin-top:.3rem}
.flash-stack{margin-bottom:.9rem}.flash{padding:.72rem .85rem;border-radius:9px;background:#e5f3ef;color:#14584e;border:1px solid #b9ddd5;margin-bottom:.45rem}.flash.error{background:#f8e6e6;color:#7e2d2d;border-color:#e6c1c1}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.91rem}th,td{padding:.62rem .55rem;text-align:left;border-bottom:1px solid #e8eef1;vertical-align:top}th{color:#49606e;font-size:.79rem;text-transform:uppercase;letter-spacing:.04em}td.actions{display:flex;gap:.35rem;flex-wrap:wrap}.pagination{display:flex;gap:.8rem;justify-content:center;align-items:center;margin:1rem 0;color:var(--muted)}.pagination a{background:#fff;border:1px solid var(--line);border-radius:8px;padding:.35rem .6rem}
:focus-visible{outline:3px solid #67b8ad;outline-offset:2px}[hidden]{display:none!important}
@media(max-width:760px){.topbar-inner{align-items:flex-start;flex-wrap:wrap;gap:.45rem}.nav{order:3;width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:.15rem}.userbox{margin-left:auto}.container{padding:1rem .8rem 2rem}.page-head{display:block}.head-actions,.day-nav{margin-top:.7rem}.two-col{grid-template-columns:1fr}.slot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.booking-row{display:block}.booking-actions{margin-top:.55rem}.booking-line{grid-template-columns:1fr}.filter-bar input[type=search]{min-width:0;width:100%}.auth-panel{margin:1rem auto}.panel{padding:1rem}.brand span{display:none}}
@media(max-width:390px){html{font-size:15px}.slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.btn{padding:.52rem .7rem}.nav a{font-size:.86rem}}
/* Native review: compact navigation stays horizontal; touch targets stay usable. */
.nav{min-width:0}.nav a{white-space:nowrap}.slot-time{font-variant-numeric:tabular-nums;white-space:nowrap}
.date-form{min-width:0}.date-form input{min-width:0;max-width:100%;font:inherit;border:1px solid var(--line);border-radius:8px;padding:.38rem .5rem;background:#fff}
.stack-form input,.stack-form select,.stack-form textarea{max-width:100%}.userbox>span{max-width:180px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){
  .topbar-inner{min-width:0}.nav{flex:0 0 100%;gap:.25rem;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
  .nav a{flex:0 0 auto;min-height:42px;display:flex;align-items:center;padding:.5rem .65rem}
  .userbox{min-width:0}.userbox>span{max-width:38vw}.userbox .link-button{min-height:42px}
  .day-nav{gap:.4rem}.date-form{flex:1 1 170px}.date-form input{flex:1}
  .section-title{align-items:flex-start;flex-wrap:wrap}.slot{min-height:54px}.slot-time{font-size:.86rem}
  .stack-form input:not([type=checkbox]),.stack-form select,.stack-form textarea{font-size:16px}
  .stack-form button[type=submit]{min-height:44px}.selection-box{gap:.7rem}.selection-box strong{overflow-wrap:anywhere}
}
@media(max-width:600px){.slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-bar .btn{min-height:42px}}
@media(max-width:340px){.slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand{font-size:.95rem}}

/* Direct-booking display names; native review of DeepSeek ART5 CSS. */
.slot{min-height:5.5rem;touch-action:manipulation}
.slot-booker{display:block;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.25;font-weight:700;margin-top:.2rem}
.slot-note{white-space:normal;overflow-wrap:anywhere;line-height:1.25}
