.modal .calc-preview{display:flex;justify-content:space-between;gap:16px;align-items:center}
.modal .quick-hours button,.modal .comment-label textarea{background:var(--paper);color:var(--ink);border-color:var(--line)}
.schedule-decision,.schedule-review-row>details{grid-column:1/-1;min-width:0}
.schedule-decision h3{font-size:18px;font-weight:700;margin:0 0 8px}
/* Scoped to the separate preview document. Production shell/CSS is untouched. */

/* Plan/fact: local candidate only; values/scroll of legacy tables are unchanged. */
.schedule-notice,.schedule-review,.schedule-submit-summary{margin:16px 0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);min-width:0}
.schedule-notice p,.schedule-review p{margin:8px 0;color:var(--muted);line-height:1.5}
.schedule-notice summary,.schedule-day-review summary{cursor:pointer;min-height:44px;padding:10px 0}
.schedule-cell-label{display:block;font-size:12px;line-height:1.4;font-weight:500;margin-top:5px;white-space:normal;color:var(--muted)}
.shift-row.schedule-scheduled,.shift-row.schedule-planned,.schedule-review-row.schedule-planned{position:relative;outline:2px solid #287450;outline-offset:-3px;border-radius:8px}
.shift-row.schedule-extra,.schedule-review-row.schedule-extra{outline:2px solid #b44444;outline-offset:-3px;border-radius:8px}
.shift-row.schedule-approved_extra,.shift-row.schedule-changed,.schedule-review-row.schedule-approved_extra{outline:2px solid var(--amber);outline-offset:-3px;border-radius:8px}
.schedule-scheduled .schedule-cell-label,.schedule-planned .schedule-cell-label{color:#287450}
.schedule-extra .schedule-cell-label,.schedule-extra-text{color:#a32e3b!important}
.schedule-warning{padding:18px;margin:14px 0;border:1px solid #b44444;border-radius:12px;background:var(--paper);color:var(--ink)}
.schedule-warning p{font-size:14px;line-height:1.5;color:var(--muted)}
.schedule-warning label,.schedule-decision label{display:grid;gap:7px;font-size:14px;font-weight:600;margin:12px 0}
.schedule-warning input,.schedule-warning select,.schedule-warning textarea,.schedule-decision textarea{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font:inherit}
.schedule-confirm,.schedule-show-all{display:flex!important;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5}
.schedule-confirm input,.schedule-show-all input{width:22px!important;height:22px;min-height:22px;flex:0 0 22px;accent-color:var(--green)}
.schedule-date-label{font-weight:600;color:var(--ink)}
.schedule-review header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.schedule-review h2{margin:5px 0;font-size:22px}
.schedule-legend{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;color:var(--muted);font-size:12px}
.schedule-legend span{padding:6px 9px;border:1px solid var(--line);border-radius:7px}
.schedule-day-review{border-top:1px solid var(--line);padding:8px 0}
.schedule-day-review summary b,.schedule-day-review summary span{display:block;line-height:1.5}
.schedule-day-review summary span{font-size:14px;color:var(--muted)}
.schedule-review-rows{display:grid;gap:8px}
.schedule-review-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px;border:1px solid var(--line);border-radius:10px}
.schedule-review-row b,.schedule-review-row span,.schedule-review-row small{display:block;line-height:1.5;overflow-wrap:anywhere}
.schedule-review-row small{color:var(--muted);font-size:12px}
.schedule-review-row button{flex:0 0 auto}
.schedule-decision{padding:16px;border:2px solid var(--amber);border-radius:12px;margin:12px 0}
.schedule-decision>div{display:flex;flex-wrap:wrap;gap:10px}
.schedule-submit-summary small{color:var(--muted)}
html[data-preview-theme="classic"] .schedule-scheduled .schedule-cell-label,html[data-preview-theme="classic"] .schedule-planned .schedule-cell-label{color:#93d5af}
html[data-preview-theme="classic"] .schedule-extra .schedule-cell-label,html[data-preview-theme="classic"] .schedule-extra-text{color:#f0a3a7!important}
html[data-preview-theme="classic"] .schedule-warning{border-color:#d58686}
@media(max-width:760px){.schedule-review header,.schedule-review-row{display:grid;grid-template-columns:minmax(0,1fr)}.schedule-review header button,.schedule-review-row button{width:100%}.schedule-notice,.schedule-review{padding:14px}.schedule-review h2{font-size:20px}.hours-cell{min-width:0}.modal{max-height:calc(100dvh - 24px);overflow-y:auto}}

:root{--green:#762238;--green-soft:#f0e3e1;--wood:#52202c;--ink:#332825;--muted:#6e6259;--line:#d9cec0;--paper:#fffcf6;--wash:#f2eee5;--amber:#8d692e;--amber-soft:#f5ecda}
html[data-preview-theme="classic"]{--green:#8d3049;--green-soft:#39252b;--wood:#e0c28d;--ink:#f4ece0;--muted:#c5b8a6;--line:#51483b;--paper:#262421;--wash:#191a19;--amber:#d0ad69;--amber-soft:#352e22;color-scheme:dark}
html,body,#root{min-width:0;min-height:100%;height:auto;overflow:visible}
body{background:var(--wash);color:var(--ink)}
.app-shell{width:100%;min-width:0;overflow:visible;background:var(--wash)}
.workspace,.content-area,.admin-view{min-width:0;max-width:100%}
button,input,select,textarea{font-size:16px;min-height:44px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
button{touch-action:manipulation}
.dashboard-card,.staff-card,.password-card,.manager-adjustment-card,.day-card{background:var(--paper);color:var(--ink);border-color:var(--line)}
.admin-tabs,.venue-switch{flex-wrap:wrap}
.admin-tabs button{color:var(--ink)}
.mobile-header{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
.mobile-header button{color:var(--ink)!important}
.mobile-header .avatar{background:var(--green-soft)!important;color:var(--ink)!important}
.primary-btn,.admin-tabs button.active,.venue-switch button.active,.nav-item.active{background:var(--green)!important;color:#fff!important}
.primary-btn{border-color:var(--green)!important}
button.selected{background:var(--green)!important;color:#fff!important}
.secondary-btn{color:var(--green)!important;background:var(--paper)!important;border-color:var(--line)!important}
.toast-error{background:var(--paper)!important;color:var(--ink)!important;border:2px solid #b34b4b!important;max-width:calc(100vw - 24px);white-space:normal;display:flex;gap:12px;align-items:center}
.toast-error button{flex:none;min-width:44px}
.download-ready{position:fixed;bottom:20px;right:20px;z-index:1500;max-width:calc(100vw - 40px);padding:20px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 32px #0003}
.download-ready a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;background:var(--green);color:white;border-radius:10px;margin-right:12px}
.team-modal{max-height:calc(100dvh - 32px);overflow-y:auto}
.stats-modal{max-height:calc(100dvh - 32px);overflow-y:auto}
.saved-history,.saved-salary{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink)}
.saved-history ul{list-style:none;padding:0}.saved-history li{padding:10px 0;border-bottom:1px solid var(--line)}
.saved-history label{display:grid;gap:8px}.saved-history select{width:100%}
.history-month{display:grid;text-align:left;gap:6px;width:100%;background:var(--paper);color:var(--ink);border:0;padding:8px}
.saved-salary strong{display:block;font-size:28px}.saved-salary small{display:block;margin-top:12px;color:var(--muted)}
html[data-preview-theme="classic"] .team-status-card{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] :is(.stats-summary>div,.mini-chart,.modal-head>button){background:var(--paper)!important;color:var(--ink)!important;border:1px solid var(--line)!important}
html[data-preview-theme="classic"] :is(.stats-summary strong,.mini-chart em){color:var(--ink)!important}
html[data-preview-theme="classic"] :is(.stats-summary>div>span,.mini-chart span){color:var(--muted)!important}
html[data-preview-theme="classic"] .stats-summary strong.negative{color:#f1aaa5!important}
html[data-preview-theme="classic"] .stats-summary strong.positive{color:#b5d8b4!important}
html[data-preview-theme="classic"] .mini-chart i{background:var(--line)!important}
html[data-preview-theme="classic"] .mini-chart i b{background:var(--amber)!important}
html[data-preview-theme="classic"] :is(.timesheet-card,.table-head,.shift-row,.shift-row.missing,.summary-bar,.attention-card,.draft-pill,.venue-switch){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] .timesheet-card.locked{opacity:1}
html[data-preview-theme="classic"] .shift-row:hover{background:var(--green-soft)!important}
html[data-preview-theme="classic"] :is(.date-cell b,.more-btn,.employee-heading p){color:var(--ink)!important}
html[data-preview-theme="classic"] :is(.hours-cell,.hours-cell.day-off){background:var(--amber-soft)!important;color:var(--amber)!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] :is(.table-head,.summary-bar small,.summary-bar span,.venue-switch>span){color:var(--muted)!important}
html[data-preview-theme="classic"] :is(.venue-period-control,.venue-toggle,.venue-toggle button:not(.selected)){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] .more-btn{background:transparent!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] :is(.waiting-panel,.unpaid-alert-badge,.venue-filters button,.danger-outline,.modal,.modal-card){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] :is(.secondary-btn,.waiting-panel h2,.waiting-panel button,.unpaid-alert-badge small){color:var(--ink)!important}
html[data-preview-theme="classic"] .copy-list-btn{background:var(--green-soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] :is(.unpaid-hub-card,.birthdays-card){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] :is(.eyebrow,.unpaid-missing-list>span){color:var(--amber)!important}
html[data-preview-theme="classic"] :is(.month-switch button,.half-switch button,.unpaid-alert-badge b,.unpaid-alert-badge span){color:var(--ink)!important}
html[data-preview-theme="classic"] :is(.submit-metric>span,.unpaid-hub-card p,.unpaid-reconcile-form label,.review-card li,.history-event span,.history-event small){color:var(--muted)!important}
html[data-preview-theme="classic"] :is(.venue-filters button.active,.venue-filters button.selected){background:var(--green)!important;color:white!important}
html[data-preview-theme="classic"] :is(.admin-tabs,.venue-filters,.half-switch,.month-switch,.unpaid-review-card,.submission-missing-card,.overview-side-card,.review-card,.unpaid-summary,.submission-overview-card){background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
.sidebar{background:#24211e!important}.sidebar .nav-item{color:#f2e6d2!important}
.submission-overview-card,.review-card,.unpaid-card,.history-card,.settings-card{background:var(--paper)!important;border-color:var(--line)!important}
html[data-preview-theme="classic"] .admin-tabs,html[data-preview-theme="classic"] .venue-switch,html[data-preview-theme="classic"] input,html[data-preview-theme="classic"] select,html[data-preview-theme="classic"] .secondary-btn{background:var(--paper)!important;color:var(--ink)!important;border-color:var(--line)!important}
@media(max-width:1279px){.workspace{margin-left:0!important;width:100%!important}.app-shell{display:block!important}.sidebar{position:static!important;width:100%!important;max-width:none!important;min-height:0!important;padding:12px 16px!important;display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}.sidebar .brand{margin:0!important;max-width:220px}.sidebar .brand img{width:40px;height:40px}.sidebar .brand span{font-size:15px}.sidebar .brand small{display:none}.sidebar .nav-list{display:flex!important;flex-direction:row;flex-wrap:wrap;gap:8px!important;margin:0!important;flex:1}.sidebar .nav-item{width:auto!important;flex:1;white-space:nowrap;padding:10px!important;min-height:44px}.sidebar .profile-card{display:none!important}.admin-heading,.admin-actions{flex-wrap:wrap}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){.sidebar{display:none!important}.overview-grid{grid-template-columns:minmax(0,1fr)!important}.submission-overview-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px}.missing-employees-card,.submission-overview-card>div{min-width:0;max-width:100%}}
@media(max-width:760px){.workspace{padding:16px 12px!important}.dashboard-grid,.password-grid,.unpaid-grid{grid-template-columns:minmax(0,1fr)!important}.admin-heading{align-items:flex-start}.admin-tabs>button{flex:1 1 120px}.period-controls{flex-wrap:wrap}.app-shell{padding-bottom:24px}.table-wrap,.table-scroll{max-width:100%;overflow-x:auto}h1{font-size:30px!important}h2{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Manager overview: show reconciliation only on demand. */
.schedule-review-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;cursor:pointer;list-style:none;border-radius:5px}
.schedule-review-toggle::-webkit-details-marker{display:none}
.schedule-review-toggle strong{display:block;font-size:18px;line-height:1.4;color:var(--ink)}
.schedule-review-toggle small{display:block;margin-top:3px;font-size:13px;line-height:1.45;color:var(--muted)}
.schedule-review-toggle-action{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--amber);flex-shrink:0}
.schedule-review-toggle-action::after{content:'';width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-4px}
.schedule-review-disclosure[open]>.schedule-review-toggle .schedule-review-toggle-action::after{transform:rotate(225deg);margin-top:4px}
.schedule-review-toggle:focus-visible{outline:3px solid var(--amber);outline-offset:4px}
.schedule-review-content{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.schedule-review-content>header>p{margin-top:0;max-width:70ch}
@media(max-width:480px){.schedule-review-toggle{gap:10px}.schedule-review-toggle strong{font-size:17px}.schedule-review-toggle small{font-size:12px}.schedule-review-toggle-action{gap:7px;font-size:13px}}
