/* Layout only. Shared colors, typography and component skins live in experience.css. */
.major-ui .topbar,.major-ui main { max-width:1660px; }
.major-ui .workspace-strip { position:sticky; top:8px; z-index:25; margin:0 0 24px; }
.major-ui .workspace-info { min-width:0; gap:7px; }
.major-ui .workspace-strip .review-context { flex:1 1 100%; margin-top:12px; padding-top:12px; }
.major-ui .actions { flex-wrap:wrap; }
.major-ui .actions button,.workbench-tool-toggle { white-space:nowrap; }
.view-heading { grid-column:1/-1; }
.view-heading,.workbench-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:82px; padding:0 2px 8px; }
.major-workbench { display:grid; grid-template-columns:238px minmax(0,1fr); align-items:start; gap:26px; }
.major-workbench.hidden { display:none; }
.major-main { min-width:0; display:flex; flex-direction:column; gap:18px; }
.major-main>.panel { margin:0; }
.major-scope { position:sticky; top:calc(var(--workspace-strip-height,120px) + 20px); max-height:calc(100vh - var(--workspace-strip-height,120px) - 40px); overflow:auto; }
.major-scope button { width:100%; display:flex; align-items:center; justify-content:space-between; text-align:left; }
.major-scope details { margin-top:10px; padding-top:7px; }
.major-scope summary { cursor:pointer; padding:9px 8px; }
.major-scope summary span { float:right; }
.major-scope .scope-college>details { margin-left:8px; border:0; padding:0; }
.major-scope .scope-class { display:block; margin:3px 0; padding:10px 10px 10px 13px; white-space:normal; }
.major-scope .scope-grade { white-space:nowrap; }
.scope-class small { display:block; margin-top:4px; }
.scope-class .class-name-text { display:block; line-height:1.65; }
.scope-class .class-name-unit { vertical-align:top; }
.major-search { display:flex; gap:14px; align-items:end; margin-bottom:14px; }
.major-search label { flex:1; margin:0; }
.major-search input { margin-top:7px; }
.major-toolsbar { position:relative; isolation:isolate; --tool-radius:16px; }
.workbench-tool-shell {
  position:absolute; inset:0 auto 0 0; z-index:-1; width:var(--tool-rail,100%); max-width:100%;
  border-radius:var(--tool-radius); pointer-events:none;
}
.major-toolsbar[data-interacted] .workbench-tool-shell { transition:width var(--motion-expand) var(--ease); }
.major-toolsbar:has(> .workbench-tool-content:not([inert])) .workbench-tool-shell { width:100%; }
.workbench-tool-controls { display:flex; width:fit-content; max-width:100%; align-items:center; flex-wrap:wrap; gap:3px; padding:4px; }
.workbench-tool-content {
  display:grid; grid-template-rows:0fr; visibility:hidden;
  clip-path:inset(-100vmax calc(100% - var(--tool-rail,100%)) -100vmax -4px);
  transition:grid-template-rows var(--motion-expand) var(--ease),clip-path var(--motion-expand) var(--ease),visibility 0s linear var(--motion-expand);
}
.major-toolsbar:has(> .workbench-tool-content:not([inert])) > .workbench-tool-content { clip-path:inset(-100vmax 0 -100vmax -4px); }
.workbench-tool-content:not([inert]) { grid-template-rows:1fr; visibility:visible; transition-delay:0s; }
.workbench-tool-clip { min-height:0; overflow:clip; display:flow-root; }
.major-toolsbar .workbench-tool-content:not([inert]):has(:is(.enhanced-select,.duty-dropdown).open) { clip-path:none; }
.workbench-tool-content:not([inert]) .workbench-tool-clip:has(:is(.enhanced-select,.duty-dropdown).open) { overflow:visible; }
@media (prefers-reduced-motion:reduce) {
  .workbench-tool-content,.major-toolsbar[data-interacted] .workbench-tool-shell { transition:none; }
}
.major-ui .major-filters h2 { display:none; }
.major-ui .major-filters .form-grid { gap:12px; }
.major-ui .grade-review-list { gap:0; }
.review-columns,.major-ui .grade-review-card { display:grid; grid-template-columns:28px minmax(145px,1fr) minmax(160px,1.35fr) minmax(220px,1.15fr) 54px; gap:14px; }
.major-ui .grade-review-card { align-items:center; min-height:90px; margin:0; padding:17px 8px; }
.compact-person strong { display:block; }
.compact-person small,.compact-duty small { display:block; margin-top:5px; overflow-wrap:normal; }
.compact-person small { white-space:nowrap; }
.compact-rating { display:grid; grid-template-columns:1.25fr .85fr; gap:8px; }
.major-ui .review-person-slot { scroll-margin-top:calc(var(--workspace-strip-height,120px) + 24px); }
.review-window { display:block!important; gap:0!important; }
.review-window-space { pointer-events:none; }
.review-window-sentinel { height:0; overflow:hidden; outline:none; }
.major-ui .committee-record-card { margin:0; padding:19px 6px; }
.major-ui .committee-record-fields { grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:13px; gap:13px 22px; }
.major-ui .major-workbench .committee-record-field:nth-last-child(-n+2) { display:none; }
.major-ui #historyTable .committee-record-card { grid-template-columns:30px minmax(0,1fr); }
.major-ui .committee-record-actions:empty { display:none; }
.major-ui .dashboard-row { content-visibility:auto; contain-intrinsic-size:auto 84px; }
.major-ui #assessmentQuota { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin:12px 0; padding:12px 14px; }
.major-ui dialog.person-editor:not(.change-confirmation) { width:min(680px,94vw); max-width:680px; height:100dvh; max-height:100dvh; margin:0 0 0 auto; padding:30px; }
.major-ui .person-editor-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.major-ui .person-editor-two,.major-ui .person-editor-wide { grid-column:1/-1; }
.major-ui .person-editor .review-field { min-width:0; }
.major-ui dialog.person-editor .actions { position:sticky; bottom:-30px; padding:18px 0; }
.major-ui .person-editor .actions button { min-width:90px; }
.workspace-center,.export-center { width:min(1050px,94vw); max-width:1050px; padding:28px; }
.center-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.center-head h2 { margin:0; }
.center-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:20px 0; }
.center-stat { padding:16px; }
.center-stat small { display:block; margin-bottom:7px; }
.snapshot-row,.export-record { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 0; }
.snapshot-row small,.export-record small { display:block; margin-top:4px; }
.center-status { padding:12px; margin:14px 0; }
.export-controls { display:flex; gap:20px; flex-wrap:wrap; align-items:center; padding:15px; margin:16px 0; }
.export-range-field { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; min-width:0; max-width:100%; }
.export-range-field>label { margin:0; }
.export-range-field>.enhanced-select { width:max-content; min-width:min(210px,100%); max-width:100%; }
.export-range-field .enhanced-select-menu { width:100%; }
.export-controls .export-notes-option input { width:100%; height:100%; }
.export-preview { max-height:360px; overflow:auto; }
.export-preview th { position:sticky; top:0; }
.export-issues { max-height:140px; overflow:auto; }
.export-center progress { width:100%; height:8px; }
.export-history { margin-top:22px; padding-top:16px; }
.major-ui .startup-indicator { z-index:10; }
@media(max-width:1100px){
 .major-workbench { grid-template-columns:210px minmax(0,1fr); gap:18px; }
 .review-columns { display:none; }
 .major-ui .grade-review-card { grid-template-columns:22px minmax(120px,1fr) minmax(170px,1fr) 54px; }
 .compact-duty { grid-column:2/4; grid-row:2; }
 .major-ui .committee-record-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px){
 .major-workbench { display:block; }
 .major-scope { position:relative; top:0; max-height:220px; margin-bottom:20px; }
 .major-ui .workspace-strip { position:relative; top:auto; }
 .view-heading,.workbench-heading { align-items:start; flex-direction:column; gap:12px; min-height:0; }
 .major-ui .grade-review-card { grid-template-columns:20px minmax(0,1fr) 54px; gap:9px 12px; }
 .compact-rating,.compact-duty { grid-column:2/4; }
 .compact-duty { grid-row:auto; }
 .center-stats { grid-template-columns:1fr; }
 .major-search { flex-wrap:wrap; }
 .workbench-tool-hint { display:none; }
 .major-ui .major-filters .field { grid-column:span 6; }
 .major-ui .person-editor-grid { grid-template-columns:minmax(0,1fr); }
}
