@charset "UTF-8";
/* The guest palette, typography and card treatment shared by both staff portals. */
.studio-body{--paper:#f6f3ec;--cream:#f6f3ec;--ink:#153d34;--ink-2:#37594a;--muted:#7a7d76;--line:#e4e1d8;--pine:#1b493e;--pine-dark:#153d34;--serif:"Noto Serif SC","Songti SC","SimSun",serif;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.65}
.studio-body h1,.studio-body h2,.studio-body h3{font-family:var(--serif);font-weight:600}
.studio-body button,.studio-body a.primary,.studio-body a.secondary{min-height:44px}
.studio-body button:focus-visible,.studio-body a:focus-visible{outline:3px solid #73998a;outline-offset:3px}
.studio-body input,.studio-body select,.studio-body textarea{min-width:0;background:#fffdf7;border-color:#d8d8ce;border-radius:9px;font-size:16px;color:var(--ink)}
.studio-body input:not([type=checkbox]):not([type=radio]),.studio-body select{min-height:48px}
.studio-body .primary{background:var(--pine);color:#fff;border:1px solid var(--pine);border-radius:12px}
.studio-body .secondary{background:#fffcf6;border:1px solid var(--line);color:var(--ink);border-radius:12px}
.studio-body .ghost{color:var(--ink)}
.studio-shell{grid-template-columns:224px minmax(0,1fr);max-width:1600px;margin:auto}
.studio-sidebar{background:#f9f7f0;color:var(--ink);border-right:1px solid var(--line);padding:28px 18px}
.studio-sidebar .brand-mark,.access-card .brand-mark{width:38px;height:38px;border:1.6px solid var(--ink);border-radius:50%;background:transparent;color:var(--ink);font:28px var(--serif)}
.studio-sidebar .brand-copy strong{font:600 21px var(--serif)}
.studio-sidebar .brand-copy small{display:block;color:var(--muted);font-size:9px;letter-spacing:1.2px}
.studio-sidebar .brand-copy{display:block}.studio-sidebar footer span{display:inline}.studio-nav span{display:block}.studio-nav button{justify-content:flex-start}
.studio-nav{margin-top:34px;gap:8px}
.studio-nav button{color:var(--muted);font-size:14px;padding:12px;border-radius:12px}
.studio-nav button.active,.studio-nav button:hover{color:var(--ink);background:#e6eddf}
.studio-nav button.active{font-weight:600}
.studio-sidebar footer{border-top:1px solid var(--line);padding-top:14px}
.studio-sidebar footer a,.studio-sidebar footer button{color:var(--muted);font-size:13px}
.studio-main{padding:28px clamp(20px,3vw,48px) 60px}
.studio-topbar{flex-wrap:wrap;gap:12px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.studio-topbar h1{font-size:29px;line-height:1.35}
.studio-topbar .eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--muted)}
.profile-chip{background:#ffffff55;border-color:var(--line)}
.profile-avatar{color:var(--ink);background:#e2e8dc}
.welcome-card{min-height:185px;padding:26px;background:var(--paper) url("mobile/assets/hero.webp") center bottom/cover no-repeat;border:1px solid var(--line);border-radius:12px;color:var(--ink);isolation:isolate}
.welcome-card::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,#f6f3ecfa,#f6f3ece8 55%,#f6f3ec40)}
.welcome-card::after{display:none}
.welcome-card h2{max-width:600px;font-size:27px;line-height:1.5;margin:5px 0 8px}
.welcome-card p{color:#6e746c;font-size:13px;max-width:560px}
.welcome-card .eyebrow{color:var(--muted)!important;font-size:10px}
.welcome-card .primary{color:#fff;background:var(--pine)}
.metric-grid{gap:10px;margin:16px 0}
.metric{padding:17px;background:#ffffff55;border-radius:12px}
.metric b{font:600 30px var(--serif);margin:7px 0}
.metric small{font-size:11px;color:var(--muted)}
.panel{padding:22px;background:#ffffff55;border-radius:12px;margin-top:16px;box-shadow:none}
.panel-heading{gap:12px;margin-bottom:16px;align-items:flex-start}
.panel-heading h2,.panel-heading h3{font-size:23px}
.panel-heading .eyebrow{font-size:10px;color:var(--muted);letter-spacing:1px}
.data-row{grid-template-columns:minmax(0,1fr) auto auto;gap:12px;background:#fffcf6;border:1px solid var(--line);border-radius:12px;padding:16px}
.data-row>div,.center-slot>div{min-width:0;overflow-wrap:anywhere}
.data-row strong{font-size:17px;font-family:var(--serif)}
.data-row small{display:block;font-size:12px;margin-top:4px}
.data-row>span{font-size:12px}
.data-row .row-actions{justify-content:flex-end;flex-wrap:wrap}
.row-actions{flex-wrap:wrap;gap:7px}
.row-actions button{border-radius:10px;font-size:12px;padding:8px 11px}
.row-actions .danger-button{color:#97512f;background:#fff8f0;border-color:#dfc9b7}
.booking-group,.booking-card{background:#fffcf6;border-radius:12px}
.booking-group h3{flex-wrap:wrap}
.booking-item{grid-template-columns:minmax(0,1.5fr) 55px minmax(100px,1fr) auto minmax(120px,1fr)}
.booking-tabs{padding:3px;background:#eae7df77;border:1px solid var(--line);border-radius:24px;width:fit-content}
.booking-tabs button{border:0;background:transparent;border-radius:22px;padding:8px 15px}
.booking-filters input{width:155px}
.booking-item-actions{gap:7px}
.booking-item-actions>button,.booking-note-details summary{min-height:44px;display:flex;align-items:center;padding:8px 10px;border-radius:10px}
.booking-item-person,.booking-item-count{min-width:0}
.booking-item-time{font-weight:500;font-size:13px}
.booking-item-course{font:600 17px var(--serif)}
.booking-item-phone{font-size:16px}
.booking-note-details[open] .booking-note-content{max-width:calc(100vw - 64px)}
.editor-layout{grid-template-columns:minmax(0,1fr) 260px}
.preview-card{border-radius:12px;top:20px}
.preview-art{height:170px;background:#e2e8dc;color:#65786a}
.preview-copy{padding:16px}
.editor-form{gap:16px}
.editor-form>label,.form-grid>label{min-width:0}
.form-actions{flex-wrap:wrap;gap:10px}
.switch-label{background:#e9eee3}
.weekday-picker{flex-wrap:wrap}
.weekday-picker label{min-height:44px}
.staff-account{overflow-wrap:anywhere}
.staff-permissions{flex-wrap:wrap}
.staff-permissions label{min-height:44px}
.audit-details{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;font-size:12px}
.activity-panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;max-height:65dvh;overflow-y:auto}
.demo-role{max-width:100%;color:var(--muted);font-size:12px}
.studio-body .modal-panel{background:var(--paper);border-radius:18px;max-height:88dvh;padding:24px;box-shadow:0 20px 60px #12271f22}
.studio-body .modal-panel h2{font-size:25px}
.access-gate{padding:24px;min-height:100dvh;background:var(--paper)}
.access-card{max-width:460px;background:#fffcf6;border:1px solid var(--line);border-radius:18px;box-shadow:none;padding:32px 24px}
.access-card h1{font-size:29px;margin:18px 0 12px}
.access-card .eyebrow{display:block;margin-top:14px;color:var(--muted)}
.access-card p{font-size:14px}
.access-card .primary{width:100%;margin-top:14px}
.staff-bottom-nav,.staff-menu-close,.staff-menu-backdrop{display:none}
@media(max-width:1100px){.editor-layout{grid-template-columns:minmax(0,1fr)}.preview-card{position:static;max-width:400px}.booking-item{grid-template-columns:minmax(0,1fr) auto}.booking-item-actions{grid-column:1/-1;justify-content:flex-start}.data-row{grid-template-columns:minmax(0,1fr) auto}.data-row .row-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:760px){
 .studio-shell{display:block;min-height:100dvh}
 .studio-main{padding:18px 18px calc(100px + env(safe-area-inset-bottom,0px))}
 .studio-topbar{gap:10px;margin-bottom:16px;padding-bottom:14px;align-items:center}
 .studio-topbar>div:first-child{flex:1;min-width:0}
 .studio-topbar h1{font-size:25px}
 .studio-topbar .eyebrow{display:none}
 .profile-chip{padding:5px 8px;max-width:55%;gap:6px}
 .profile-chip strong{font-size:12px}
 .studio-body .profile-chip div:last-child{display:block}
 .profile-avatar{width:28px;height:28px;font-size:13px;flex-shrink:0}
 .profile-chip small{font-size:9px;overflow-wrap:anywhere}
 .activity-wrap{margin:0;width:100%}
 #activityButton{width:100%;text-align:left;background:#ffffff55}
 .activity-panel{position:absolute;left:0;right:auto;width:min(100%,420px);max-width:100%}
 .demo-role{width:100%;display:flex;align-items:center;gap:12px}
 .demo-role select{flex:1;width:auto}
 .welcome-card{min-height:200px;padding:20px;display:block}
 .welcome-card h2{font-size:25px;max-width:300px}
 .welcome-card p{font-size:12px}
 .welcome-card .eyebrow{display:none}
 .welcome-card .primary{margin-top:14px}
 .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .metric{padding:14px}.metric b{font-size:28px}
 .panel{padding:16px}.panel-heading{flex-wrap:wrap}.panel-heading>div{flex:1 1 180px;min-width:0}.panel-heading h2,.panel-heading h3{font-size:22px}.panel-heading .eyebrow{display:none}
 .panel-heading p{font-size:12px;line-height:1.7}
 .panel-heading>.primary,.panel-heading>.secondary{font-size:12px}
 .data-row{padding:14px;grid-template-columns:minmax(0,1fr) auto;gap:10px}
 .data-row>span:not(.status){grid-column:1/-1}.data-row .row-actions{grid-column:1/-1;justify-content:flex-start}
 .studio-body .data-row>span:nth-of-type(2),.studio-body .data-row>span:nth-of-type(3){display:inline-flex}
 .center-slot{display:block}.center-slot .row-actions{margin-top:12px}
 .booking-group{padding:12px}.booking-item{padding:12px 0;gap:10px}.booking-item-phone{font-size:15px}.booking-item-actions{justify-content:flex-start}
 .booking-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.booking-filters label{display:grid;gap:4px;min-width:0;width:100%}.booking-filters input{width:100%}.booking-tabs{max-width:100%}.booking-tabs button{padding:8px 12px}
 .editor-form,.form-grid{grid-template-columns:minmax(0,1fr)}.form-wide{grid-column:1/-1}.form-actions>*{flex:1}.editor-layout{gap:16px}.preview-card{max-width:none}.preview-art{height:130px}
 .staff-account{display:block}.staff-account>button{width:100%;margin-top:12px}.staff-permissions{margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .arrangement-alert{display:block;padding:14px}.arrangement-alert button{margin-top:12px}
 .studio-sidebar{position:fixed;inset:0 auto 0 0;z-index:65;width:min(320px,88vw);height:100dvh;padding:26px 18px;overflow-y:auto;overflow-x:hidden;display:none;flex-direction:column;align-items:stretch;border-right:1px solid var(--line)}
 .studio-sidebar>.brand{display:flex;justify-content:flex-start;padding-right:32px}.studio-sidebar .brand-copy small{display:block}.studio-sidebar footer{display:block;margin-top:24px}.studio-body[data-portal] .studio-nav{display:grid;grid-template-columns:minmax(0,1fr);width:auto;min-width:0;margin-top:24px}.studio-nav button{display:flex;justify-content:flex-start;min-height:48px;font-size:14px;padding:12px}
 .staff-menu-open .studio-sidebar{display:flex}.staff-menu-visible{overflow:hidden}
 .staff-menu-close{display:block;position:absolute;top:16px;right:12px;width:44px;border:0;background:transparent;font-size:26px;color:var(--ink)}
 .staff-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:64;background:#12271f66;border:0;border-radius:0;width:100%;height:100%}
 .staff-bottom-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#f9f7f0f5;border-top:1px solid var(--line);padding:7px 8px calc(7px + env(safe-area-inset-bottom,0px));backdrop-filter:blur(12px)}
 .staff-bottom-nav button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;padding:3px;border:0;border-radius:8px;background:transparent;color:#92948c;font-size:11px}
 .staff-bottom-nav button.active,.staff-bottom-nav button[aria-expanded=true]{color:var(--ink)}
 .staff-bottom-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .studio-body .modal{padding:12px}.studio-body .modal-panel{padding:22px 18px;max-height:90dvh}.studio-body .toast{bottom:100px;max-width:calc(100vw - 32px)}
}
@media(prefers-reduced-motion:reduce){.studio-body *{scroll-behavior:auto!important;transition:none!important}}
.course-editor-back{display:none}
.studio-body .image-item{height:154px}
.studio-body .image-item>img{height:110px}
.studio-body .image-item>span{bottom:49px}
.image-order-controls{position:absolute;left:0;right:0;bottom:0;display:flex;height:44px}
.studio-body .image-order-controls button{position:static;flex:1;width:auto;min-height:44px;height:44px;border-radius:0;background:var(--paper);color:var(--ink);font-size:12px;padding:4px}
.studio-body .image-order-controls button:disabled{opacity:.4;cursor:default}
.course-editor-page .studio-shell{display:block}
.course-editor-page .studio-sidebar,.course-editor-page .staff-bottom-nav,.course-editor-page .staff-menu-backdrop{display:none!important}
.course-editor-page .studio-main{max-width:1200px;margin:0 auto;padding-bottom:40px}
.course-editor-page [data-view-panel]:not([data-view-panel="courses"]),.course-editor-page [data-view-panel="courses"]> :not(#courseEditor){display:none!important}
.course-editor-page .course-editor-back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:14px}
.course-editor-page #courseEditor{margin-top:0}

/* Platform scheduling and overview details. */
.staff-editor-dialog{width:min(940px,calc(100vw - 24px));max-height:90dvh;padding:0;border:0;border-radius:18px;background:var(--paper,#fff);color:inherit;overflow:auto}
.staff-editor-dialog::backdrop{background:rgba(20,35,28,.55)}
.staff-editor-dialog .panel{margin:0}.staff-editor-dialog .error{color:#aa342d}
body:has(.staff-editor-dialog[open]){overflow:hidden}
.metric-link{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;color:inherit;font:inherit;cursor:pointer}
.metric-link:hover,.metric-link:focus-visible{outline:2px solid #386650;outline-offset:2px}.metric-link small{font-size:12px;color:#62756a}
