/* Shared visual and interaction layer for Timetable Studio. */
:root{--bg:#f3f6f4;--paper:#fff;--ink:#172f35;--muted:#657a7c;--line:#dfe8e4;--teal:#126b56;--mint:#e8f4ee;--shadow:0 12px 32px #16362a0b;font-family:Inter,'DM Sans',system-ui,sans-serif;color:var(--ink)}
body{background:linear-gradient(180deg,#f7faf8 0,#f1f5f3 100%);color:var(--ink);line-height:1.55}
.bar{background:#102b33;color:#eff8f3;box-shadow:0 3px 18px #102b331a}.bar button{border-color:#45636a;border-radius:9px}.bar button:hover{background:#1d4147}
.card{border-color:var(--line);border-radius:16px;box-shadow:var(--shadow)}.card h1{font-size:clamp(25px,3vw,34px);line-height:1.18}.card>p:not(.eyebrow){line-height:1.75;color:#617779}.campus,.college,.iprow{border-color:var(--line);border-radius:12px;box-shadow:0 4px 14px #16362a08}.campus{background:#f8fbf9}.iprow{background:white}.notice{border-radius:10px}
h1,h2,h3{font-family:Inter,'Segoe UI',system-ui,sans-serif;letter-spacing:-.035em;color:#17363a}
.sidebar{background:#102b33;color:#eff7f3;border:0;box-shadow:8px 0 28px #14362a0a}
.brand{color:#f3faf6}.brand-symbol{background:#1a5549}.workspace-label{color:#9bb4ae}.workspace-chip{background:#183942;border-color:#31535a;color:#eef8f3}.workspace-chip small,.sidebar-bottom small{color:#aec1bb}.workspace-icon{background:#245046;border-color:#3e6b5e;color:#d0e6d9}.sidebar nav{gap:5px}.nav-item{color:#bdd0ca;border-radius:10px;min-height:44px}.nav-item:hover{background:#1b3c42;color:white}.nav-item.active{background:#205247;color:#effff7}.nav-count{background:#26474b;color:#d6e6df}.sidebar-note{background:#18383a;border-color:#31504c}.sidebar-note h3{color:#e6f3ec}.sidebar-note p{color:#b4c5bc}.sidebar-bottom{color:#e5f2ed}.avatar{background:#dbece2;color:#245441}
main{color:var(--ink)}.topbar{height:68px;background:#ffffffed;border-bottom-color:var(--line);backdrop-filter:blur(12px)}.breadcrumbs{font-size:12px;color:#708385}.breadcrumbs b{color:#243f43}.private-badge{background:#eaf4ee;border-color:#d7e8dd;color:#27644f;border-radius:99px;font-weight:650;padding:6px 10px}
#page-content{padding-top:30px}.page-heading{align-items:flex-start}.page-heading p{max-width:680px;color:#657a7c;font-size:13px}.eyebrow{color:#24715b}.btn{border-radius:9px;min-height:40px;padding:10px 15px;font-weight:650;color:#365657;border-color:#d5e1dc;box-shadow:0 1px 2px #183b2b08}.btn:hover{background:#f1f7f3;border-color:#b9d3c5;color:#145c49}.btn-primary{background:#126b56;border-color:#126b56;color:white;box-shadow:0 5px 12px #126b5626}.btn-primary:hover{background:#0d5948;color:white}.btn-danger{background:#fffafa;color:#a3444d;border-color:#eccfd0}.btn-danger:hover{background:#fff0f1;border-color:#dfaeb2}
.panel,.board,.data-panel,.stat{border-color:var(--line);border-radius:14px;box-shadow:var(--shadow)}.panel{padding:22px}.board{overflow:hidden}.data-panel-header,.board-toolbar{padding:20px 22px}.data-panel-header h2,.panel h2{color:#203e40}.stat{padding:18px 20px}.stat .number{color:#163b39}.stat-label{color:#657b76;font-size:11px}.notice{border-radius:10px;padding:13px 16px;line-height:1.55}.notice.warning{background:#fff7e8;border-color:#f1dfbb;color:#815e24}.setup-tabs{border-bottom-color:#dbe5df;gap:8px}.setup-tab{border-radius:9px 9px 0 0;color:#667c78;padding:13px 16px}.setup-tab.active{background:#eaf4ee;color:#125e4b;border-bottom-color:#126b56}
input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid #cbdad4;border-radius:9px;background:#fff;color:#18383d;min-height:42px;padding:10px 12px}input:focus,select:focus,textarea:focus{outline:3px solid #c2e2d2;outline-offset:1px;border-color:#4a9b79}input[type=checkbox],input[type=radio]{accent-color:#126b56}label,.field-label{color:#334e50}.section-note,.muted{color:#657a7c;line-height:1.7}.primary{min-height:44px;padding:11px 17px}
table{font-size:13px}th{background:#f5f8f6;color:#5c7471;font-size:11px;font-weight:700;letter-spacing:.02em}td{color:#415d5e;padding:14px 18px}tbody tr:hover{background:#f8fbf9}td strong{color:#203f41}.name-avatar{background:#e6f2eb;color:#2b6e54;border-radius:10px;font-weight:700}
.status{font-size:11px;font-weight:650;color:#405b4c;background:#edf3ef;border:1px solid #dfe9e3;border-radius:7px;padding:5px 9px}.status-approved,.status-published,.status-active,.status-resolved,.status-submitted{background:#e7f4eb;color:#1d6542;border-color:#cae5d2}.status-rejected,.status-inactive,.status-declined{background:#fff0ef;color:#8e2930;border-color:#f0d1cf}.status-improvement_required,.status-changes_requested,.status-awaiting_publication,.status-pending,.status-clarification_requested{background:#fff5df;color:#765616;border-color:#efdfb6}.status-in_review,.status-escalated,.status-in_progress,.status-acknowledged{background:#eaf1fb;color:#2c5279;border-color:#d1deef}
.empty-state,.empty{border-radius:12px;background:#f8fbf9;color:#617774}.modal-head,.modal-footer{background:#f8fbf9}.modal-head{border-bottom-color:var(--line)}#editor,#workflow-dialog,dialog{border:1px solid #dce6e1;border-radius:18px;box-shadow:0 28px 90px #0b252e30}#editor::backdrop,#workflow-dialog::backdrop,dialog::backdrop{background:#102a32a8;backdrop-filter:blur(3px)}.modal-footer{border-top:1px solid var(--line)}
#toast{border-radius:12px;background:#163b37;color:#f2fbf6;box-shadow:0 12px 36px #0e282a35;padding:12px 18px}
#admin-toast{position:fixed;z-index:1000;left:50%;bottom:24px;transform:translate(-50%,12px);opacity:0;pointer-events:none;max-width:min(90vw,620px);background:#163b37;color:#f2fbf6;border-radius:12px;padding:12px 18px;box-shadow:0 12px 36px #0e282a35;transition:opacity .18s,transform .18s}#admin-toast.visible{opacity:1;transform:translate(-50%,0)}
button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8dc9ac}button:disabled{filter:saturate(.45)}
@media(max-width:940px){.sidebar{background:#102b33}.nav-item{min-height:42px}.sidebar-note{display:none}#page-content{padding-left:22px;padding-right:22px}}
@media(max-width:640px){.sidebar{padding:10px 12px!important;flex-direction:column!important;align-items:stretch!important;gap:7px}.workspace-label,.workspace-chip,.sidebar-note,.sidebar-bottom{display:none!important}.sidebar>.brand{align-self:flex-start}.sidebar nav{margin:0;overflow-x:auto;scrollbar-width:thin}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:76px;min-height:50px;font-size:10px;padding:6px 8px;white-space:nowrap}.role-nav-label{display:inline!important;font-size:10px}.topbar{height:auto;min-height:58px;padding:9px 12px}.topbar-right{gap:7px}.private-badge{font-size:9px}.breadcrumbs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#page-content{padding:22px 13px 0}.page-heading{gap:10px}.page-heading h1{font-size:25px}.heading-actions{flex-wrap:wrap;gap:7px}.heading-actions .btn{flex:1}.stat{padding:12px;gap:9px}.stat .number{font-size:19px}.panel{padding:16px}.data-panel-header,.board-toolbar{padding:15px}.table-scroll{overscroll-behavior-x:contain}.app-footer{padding:20px 14px}.modal-body{max-height:62vh;overflow:auto}.modal-footer .btn{flex:1}}
@media(max-width:700px){.bar{height:auto;min-height:62px;padding:10px 14px;gap:8px;flex-wrap:wrap}.bar .brand{font-size:14px}.bar #admin-status{font-size:11px}.card{padding:20px}.section-head{display:grid}.campuses{padding-left:9px}.form-row{grid-template-columns:1fr}.actions .btn{flex:1}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Account-level appearance themes */
.sidebar-theme-button{width:100%;justify-content:flex-start;gap:10px;margin-top:10px;background:#183942;border-color:#31535a;color:#e5f2ed}.sidebar-theme-button:hover{background:#205247;color:#fff;border-color:#477465}.sidebar-theme-button span{font-size:18px}
.appearance-choices,.appearance-colors{border:0;padding:0;margin:0 0 18px}.appearance-choices legend,.appearance-colors legend{font-weight:700;margin-bottom:10px}.appearance-choice{display:flex;gap:12px;align-items:flex-start;padding:13px;border:1px solid var(--line);border-radius:10px;margin:8px 0;cursor:pointer}.appearance-choice:has(input:checked){border-color:var(--teal);background:var(--mint)}.appearance-choice input{margin-top:4px}.appearance-choice strong,.appearance-choice small,.appearance-color small{display:block}.appearance-choice small,.appearance-color small{font-size:12px;color:var(--muted);margin-top:3px}.appearance-color{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 14px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.appearance-color input[type=color]{width:52px;height:40px;padding:3px;cursor:pointer}.appearance-color small{grid-column:1/-1}
html[data-theme="custom"]{color-scheme:light;--teal:var(--theme-deep);--ink:#203b38}html[data-theme="custom"] body{background:var(--theme-lighter);color:var(--ink)}html[data-theme="custom"] .btn-primary,html[data-theme="custom"] .brand-symbol,html[data-theme="custom"] .nav-item.active{background:var(--theme-deep);border-color:var(--theme-deep)}html[data-theme="custom"] .setup-tab.active,html[data-theme="custom"] .workspace-icon,html[data-theme="custom"] .appearance-choice:has(input:checked){background:var(--theme-light)}html[data-theme="custom"] .private-badge{background:var(--theme-light);color:var(--theme-deep)}html[data-theme="custom"] .empty-state{background:color-mix(in srgb,var(--theme-lighter),white 38%)}
html[data-theme="dark"]{color-scheme:dark;--bg:#101a1b;--paper:#192526;--ink:#e5efeb;--muted:#a7b9b2;--line:#354846;--teal:#79c4a1;--mint:#263c36;--shadow:0 12px 32px #0005}html[data-theme="dark"] body{background:#101a1b;color:var(--ink)}html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] .data-panel-header h2,html[data-theme="dark"] .panel h2,html[data-theme="dark"] td,html[data-theme="dark"] td strong{color:var(--ink)}html[data-theme="dark"] .topbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .board,html[data-theme="dark"] .data-panel,html[data-theme="dark"] .stat,html[data-theme="dark"] .plan-toolbar,html[data-theme="dark"] .plan-toolbar select,html[data-theme="dark"] .workflow-dialog,html[data-theme="dark"] dialog,html[data-theme="dark"] .modal-head,html[data-theme="dark"] .modal-footer{background:#192526;color:var(--ink);border-color:var(--line)}html[data-theme="dark"] .topbar{background:#192526ed}html[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#122021;color:var(--ink);border-color:#50635e}html[data-theme="dark"] th,html[data-theme="dark"] .empty-state,html[data-theme="dark"] .empty,html[data-theme="dark"] .thread>article,html[data-theme="dark"] .review-decision{background:#202f30;color:#d8e4df;border-color:var(--line)}html[data-theme="dark"] tbody tr:hover{background:#203132}html[data-theme="dark"] .page-heading p,html[data-theme="dark"] .section-note,html[data-theme="dark"] .muted,html[data-theme="dark"] .breadcrumbs,html[data-theme="dark"] .load-overview-metrics span{color:#b1c1bb}html[data-theme="dark"] .private-badge,html[data-theme="dark"] .setup-tab.active,html[data-theme="dark"] .appearance-choice:has(input:checked){background:#29473b;color:#e4f4ea;border-color:#426955}html[data-theme="dark"] .btn{background:#203132;color:#e3eeea;border-color:#465a56}html[data-theme="dark"] .btn-primary{background:#28684f;color:#fff;border-color:#28684f}html[data-theme="dark"] .btn-danger{background:#39292a;color:#ffdede}html[data-theme="dark"] .notice.warning{background:#3d3525;color:#f6dfaa;border-color:#665633}html[data-theme="dark"] .status-approved,html[data-theme="dark"] .status-published,html[data-theme="dark"] .status-active,html[data-theme="dark"] .status-resolved,html[data-theme="dark"] .status-submitted{background:#254537;color:#b9efd0;border-color:#3e7056}html[data-theme="dark"] .status-rejected,html[data-theme="dark"] .status-inactive,html[data-theme="dark"] .status-declined{background:#482d31;color:#ffd1d2;border-color:#70464a}html[data-theme="dark"] .status-improvement_required,html[data-theme="dark"] .status-changes_requested,html[data-theme="dark"] .status-awaiting_publication,html[data-theme="dark"] .status-pending,html[data-theme="dark"] .status-clarification_requested{background:#493d24;color:#ffe3a2;border-color:#716039}html[data-theme="dark"] .sidebar-theme-button{background:#203b3d;color:#e6f3ec}html[data-theme="dark"] .account-card{background:#192526}
@media(max-width:640px){.sidebar-theme-button{width:auto;min-width:44px;min-height:44px;align-self:flex-end;margin:0;justify-content:center;padding:8px 11px;font-size:0}.sidebar-theme-button span{font-size:20px}.sidebar-theme-button::after{content:"Theme";font-size:10px}}

/* Keep long role menus scrollable and give small screens the full content width. */
@media(min-width:641px){.sidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}.sidebar nav,.sidebar-note,.sidebar-bottom,.sidebar-theme-button{flex-shrink:0}.sidebar-note{margin-top:auto}.sidebar-bottom{padding-top:18px}}
@media(max-width:640px){.sidebar{position:sticky;top:0;left:auto;width:100%;height:auto;max-height:none;overflow:visible;border-right:0;border-bottom:1px solid var(--line);box-shadow:0 5px 18px #14362a12}.sidebar nav{display:flex;width:100%;flex:0 0 auto;margin:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.sidebar>.brand{flex:0 0 auto}.sidebar-theme-button{flex:0 0 auto}.sidebar-note,.sidebar-bottom{display:none!important}main{margin-left:0!important;min-width:0;width:100%}.topbar{min-width:0}.topbar-left,.topbar-right{min-width:0}}

@media(min-width:641px){.sidebar-theme-button::before{content:"\25d0";font-size:18px;line-height:1}.sidebar-theme-button span{font-size:inherit}}
@media(min-width:641px) and (max-width:940px){.sidebar-theme-button{width:44px;min-width:44px;min-height:44px;align-self:center;justify-content:center;padding:8px;font-size:0;gap:0}.sidebar-theme-button::before{font-size:20px}}
/* Subjects are organized by class to make the creation context explicit. */
.subject-class-list{display:grid;gap:14px}.subject-class{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.subject-class-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;background:#f7f9f5;border-bottom:1px solid var(--line)}.subject-class-header h3,.subject-pending h3{font-size:14px;color:var(--ink)}.subject-class-header span,.subject-pending>p{display:block;margin-top:5px;font-size:10px;color:var(--muted);line-height:1.6}.subject-class .table-scroll{border:0;border-radius:0}.subject-class .table-scroll table{min-width:650px}.subject-class-empty{padding:18px;color:var(--muted);font-size:11px}.subject-pending{margin-top:18px;border:1px solid #ead9a7;border-radius:8px;padding:14px;background:#fffdf5}.subject-pending .table-scroll{margin-top:12px}.subject-pending .table-scroll table{min-width:650px}@media(max-width:640px){.subject-class-header{align-items:flex-start;padding:13px;flex-direction:column}.subject-class-header .btn{width:100%;justify-content:center}.subject-class .table-scroll table,.subject-pending .table-scroll table{min-width:610px}}

.venue-order-field{min-width:0;border:1px solid var(--border,#dbe5e0);border-radius:10px;padding:14px;background:var(--surface,#fff)}.venue-order-field legend{padding:0 5px;font-weight:700;color:var(--ink,#173e3b)}.venue-order-selected,.venue-order-options{display:grid;gap:7px;margin-top:8px}.venue-order-options{border-top:1px solid var(--border,#dbe5e0);padding-top:8px}.venue-order-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:1px solid var(--border,#dbe5e0);border-radius:8px;background:#fff}.venue-order-row label{display:flex;align-items:center;gap:9px;min-width:0;cursor:pointer}.venue-order-row label strong{overflow-wrap:anywhere}.venue-order-actions{display:flex;gap:5px}.venue-order-actions button{width:34px;height:34px;border:1px solid var(--border,#dbe5e0);border-radius:7px;background:#f6f9f7;color:var(--ink,#173e3b);cursor:pointer}.venue-order-actions button:disabled{opacity:.4;cursor:not-allowed}.venue-order-field .section-note{margin:4px 0 8px}.planner-focus-actions{display:flex;gap:8px;align-items:center}.planner-focus-actions .btn{white-space:nowrap}@media(max-width:760px){.planner-focus-actions .btn{font-size:10px;padding:8px 9px}.venue-order-row{align-items:flex-start}.venue-order-actions button{width:32px;height:32px}}
.venue-order-field .capacity-advisory-note{display:flex;align-items:flex-start;gap:9px;margin:10px 0;padding:10px 12px;border:1px solid #e9c36a;background:#fff8e7;color:#704c10}.venue-order-field .capacity-advisory-note strong{white-space:nowrap}.session.capacity-advisory{outline:2px solid #d5a32b;outline-offset:1px}.capacity-marker{display:inline-flex;align-items:center;width:max-content;margin-top:3px;padding:2px 5px;border-radius:4px;background:#fff2c9;color:#694a08;font-size:8px;font-weight:800;line-height:1.2}.master-session .capacity-marker{position:absolute;right:3px;bottom:3px}.capacity-warning-row{background:#fffaf0;border-left:3px solid #d5a32b}

.combined-class-field{border:1px solid var(--line);border-radius:8px;background:#f8faf8;padding:12px}.combined-class-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:8px;max-height:230px;overflow:auto;padding:4px}.combined-class-options .check-label{align-items:flex-start;border:1px solid var(--line);border-radius:7px;background:#fff;padding:9px}.combined-class-options .check-label span{font-size:12px;line-height:1.45}
