/* Pilot workspace design v1. Additive presentation; the original stylesheet is retained. */
body.pilot-workspace {
  --ink:#172a3c; --navy:#0d253e; --panel:#183a59; --paper:#f3f5f7;
  --muted:#5e7080; --line:#dfe6ec; --mint:#90e4c5;
  --workspace-accent:#90e4c5; --workspace-soft:#f7f9fa;
  --workspace-green:#187752; --workspace-amber:#a65710; --workspace-brown:#86572e;
  --workspace-blue:#28669d; --workspace-red:#b53945; --workspace-purple:#7049a2;
  color-scheme:light; background:var(--paper); color:var(--ink);
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-text-size-adjust:100%;
}
body.pilot-workspace[data-company-theme=overground] { --workspace-accent:#ed7b21; }
.pilot-workspace button,.pilot-workspace input,.pilot-workspace select,.pilot-workspace textarea { font-family:inherit; }
.pilot-workspace button { cursor:pointer; }
.pilot-workspace button:disabled { cursor:default; opacity:.55; }
.pilot-workspace :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible { outline:3px solid #377dab; outline-offset:3px; }
.pilot-workspace h1,.pilot-workspace h2,.pilot-workspace h3 { font-weight:650; line-height:1.3; letter-spacing:-.025em; }
.pilot-workspace h2 { font-size:18px; }
.pilot-workspace h3 { font-size:16px; }
.pilot-workspace p { line-height:1.6; overflow-wrap:anywhere; }
.pilot-workspace small { font-size:12px; }
.pilot-workspace .app { display:grid; grid-template-columns:224px minmax(0,1fr); min-height:100dvh; }
.pilot-workspace .side { display:flex; position:sticky; top:0; height:100dvh; overflow-y:auto; background:var(--navy); color:white; padding:28px 16px 20px; gap:26px; }
.pilot-workspace .side>.brand { padding:0 4px; gap:10px; font-size:15px; font-weight:650; line-height:1.3; }
.pilot-workspace .side>.brand small { display:block; margin-top:5px; color:#b6c9d8; font-size:11px; letter-spacing:2px; }
.pilot-workspace .mark { width:36px; height:41px; flex-shrink:0; border:1px solid #51738b; border-radius:9px; background:transparent; color:var(--mint); }
.workspace-icon { width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.workspace-company { display:grid; gap:3px; padding:0 10px; border-left:3px solid var(--workspace-accent); margin:0 7px; overflow-wrap:anywhere; }
.workspace-company strong { font-size:13px; font-weight:600; }
.workspace-company small { color:#b6c9d8; }
.pilot-workspace .nav { display:grid; gap:5px; }
.pilot-workspace .nav button { display:flex; gap:12px; align-items:center; min-height:46px; padding:11px 13px; border:0; border-radius:9px; color:#b8cada; background:transparent; font-size:14px; font-weight:500; }
.pilot-workspace .nav button:hover { background:#193850; color:#fff; }
.pilot-workspace .nav button[aria-current=page] { background:#21435b; color:var(--mint); }
.pilot-workspace .nav button:focus-visible { outline-color:var(--mint); }
.pilot-workspace .side-foot { display:flex; gap:10px; align-items:center; margin-top:auto; padding:20px 4px 0; border-top:1px solid #345069; color:#fff; font-size:13px; }
.pilot-workspace .side-foot small { display:block; margin-top:3px; color:#b6c9d8; font-size:11px; }
.workspace-avatar { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; flex-shrink:0; background:#34516a; color:white; font-size:12px; font-weight:650; }
.pilot-workspace .main { width:100%; max-width:1440px; margin:0 auto; padding:34px 36px 48px; overflow:visible; min-width:0; }
.pilot-workspace .top { align-items:flex-start; gap:16px; margin-bottom:20px; }
.pilot-workspace .title h1 { font-size:clamp(25px,2.8vw,32px); font-weight:650; line-height:1.2; letter-spacing:-.035em; }
.pilot-workspace .title p { margin-top:9px; font-size:14px; max-width:60ch; }
.workspace-eyebrow { color:var(--muted); font-size:11px; font-weight:650; letter-spacing:1.6px; margin-bottom:9px; }
.workspace-top-status { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.workspace-top-status .workspace-avatar { display:none; }
.pilot-workspace #save-status { border:1px solid #d1e5dc; background:#eaf7f0; color:#186548; font-size:11px; font-weight:600; border-radius:6px; padding:6px 9px; max-width:180px; }
.pilot-workspace .mobile-nav { display:none!important; }
.pilot-workspace .guide-help-row { margin:0 0 20px; gap:14px; align-items:center; }
.pilot-workspace .guide-help-row button { font-size:12px; }
.pilot-workspace .view>.screen-title,.pilot-workspace #roster>.head>.screen-title,.pilot-workspace .leave-toolbar>.screen-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.pilot-workspace .card { padding:22px; border:1px solid var(--line); border-radius:14px; box-shadow:none; min-width:0; background:white; }
.pilot-workspace .view>.card+.card { margin-top:16px; }
.pilot-workspace .head { gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.pilot-workspace .head h2 { font-size:18px; }
.pilot-workspace :is(.primary,.secondary,.open-file,.diagram-button,.calendar-button) { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:9px; font-size:14px; font-weight:600; white-space:normal; max-width:100%; line-height:1.4; text-align:center; text-decoration:none; }
.pilot-workspace :is(.secondary,.open-file) { background:white; color:var(--ink); }
.pilot-workspace :is(.secondary,.open-file):hover { background:var(--workspace-soft); }
.pilot-workspace .primary { background:var(--navy); border-color:var(--navy); color:white; }
.pilot-workspace .primary:hover { background:#21435b; }
.pilot-workspace .text-btn { color:#28669d; font-size:13px; font-weight:600; min-height:36px; padding:6px 0; }
.pilot-workspace .badge { border-radius:6px; font-size:12px; font-weight:600; }
.pilot-workspace .hero#shift-panel { background:var(--navy); color:#fff; border:0; padding:25px; border-radius:15px; }
.pilot-workspace .hero:after { display:none; }
.pilot-workspace .shift-navigation { margin-bottom:22px; }
.pilot-workspace .shift-navigation button { background:#193a54; color:#e8f3fb; border:1px solid #3b5870; font-size:13px; font-weight:500; border-radius:8px; padding:8px 13px; }
.pilot-workspace .hero .kicker { color:#bdd0de; font-size:13px; font-weight:500; text-transform:none; letter-spacing:0; }
.pilot-workspace .hero .shift { font-size:34px; font-weight:650; letter-spacing:-1px; margin:8px 0; line-height:1.25; }
.pilot-workspace .hero .route { color:#bdd0de; font-size:13px; }
.pilot-workspace .time-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:23px 0 19px; padding:20px 0; border-block:1px solid #345069; }
.pilot-workspace .time { display:flex; flex-direction:column-reverse; gap:6px; }
.pilot-workspace .time strong { font-size:28px; font-weight:550; letter-spacing:-.5px; font-variant-numeric:tabular-nums; }
.pilot-workspace .time span { font-size:12px; color:#bdd0de; }
.pilot-workspace #today-duration { font-size:23px; }
.pilot-workspace .hero .diagram-button { background:var(--mint); color:#153f35; border-color:var(--mint); }
.pilot-workspace .hero :is(.calendar-button,#open-today) { background:transparent; color:#e8f3fb; border-color:#51738b; }
.pilot-workspace .hero .shift-browse-help { color:#b6c9d8; font-size:12px; margin-top:12px; }
.pilot-workspace .hero .shift-actions small { font-size:13px; }
.pilot-workspace #shift-timeline { margin:16px 0; }
.pilot-workspace #shift-timeline h3 { margin-top:0; }
.pilot-workspace .duty-timeline { gap:9px; margin-bottom:0; }
.pilot-workspace .duty-timeline li { padding:12px 14px; background:var(--workspace-soft); border-left-width:3px; font-size:14px; }
.pilot-workspace .duty-timeline strong { font-weight:600; }
.pilot-workspace .duty-timeline small { font-weight:500; }
.pilot-workspace .home-markup-add { border-color:var(--line); border-radius:12px; padding:10px 18px; margin-bottom:16px; }
.pilot-workspace .home-markup-add>summary { font-size:14px; font-weight:600; }
.pilot-workspace .home-markup-add .personal-actions button { flex:0 1 auto; }
.pilot-workspace #roster-help { margin-top:16px; }
.pilot-workspace #roster-help>p:last-child { margin-bottom:0; }
.pilot-workspace #roster-help small { color:var(--muted); }
.pilot-workspace .week { gap:8px; }
.pilot-workspace .pilot-day { background:var(--workspace-soft); border:1px solid transparent; border-radius:10px; padding:12px 4px; }
.pilot-workspace .pilot-day small { color:var(--muted); font-size:12px; }
.pilot-workspace .pilot-day strong { font-size:16px; font-weight:550; margin:6px 0 10px; }
.pilot-workspace .pilot-day span { display:inline-block; font-size:12px; line-height:1.4; padding:3px 5px; border-radius:5px; background:#eaf7f0; color:var(--workspace-green); max-width:100%; overflow-wrap:anywhere; white-space:normal; }
.pilot-workspace .pilot-day.rest { background:var(--workspace-soft); }
.pilot-workspace .pilot-day.rest:not([data-change]) span { color:var(--muted); background:#edf1f4; }
.pilot-workspace .pilot-day[data-change] { background:var(--workspace-soft); }
.pilot-workspace .pilot-day[data-change=sevenDay] span { color:var(--workspace-amber); background:#fff2e3; }
.pilot-workspace .pilot-day[data-change=fortyEightHour] span { color:var(--workspace-brown); background:#f5eee7; }
.pilot-workspace .pilot-day[data-change=rdw] span { color:var(--workspace-red); background:#fff0f1; }
.pilot-workspace .pilot-day[data-change=manual] span { color:var(--workspace-purple); background:#f3edfb; }
.pilot-workspace .pilot-day[data-change=leave] span { color:var(--workspace-blue); background:#edf4fd; }
.pilot-workspace .pilot-day[aria-pressed=true] { background:#edf4fd; outline:2px solid #28669d; outline-offset:0; }
.pilot-workspace .roster-tabs { margin-bottom:18px; }
.pilot-workspace .roster-tabs button { font-size:13px; font-weight:600; border-radius:8px; }
.pilot-workspace .roster-tabs button[aria-selected=true] { background:var(--navy); }
.pilot-workspace .month-nav { gap:12px; }
.pilot-workspace .month-nav button { width:44px; height:44px; font-weight:500; background:var(--workspace-soft); }
.pilot-workspace .month-nav strong { font-size:15px; font-weight:600; min-width:0; }
.pilot-workspace .roster-intro { font-size:13px; margin:0 0 16px; }
.pilot-workspace #roster-duties>.card { margin-bottom:16px; }
.pilot-workspace #roster-duties .table-wrap { overflow:visible; }
.pilot-workspace #roster-duties .table { display:block; min-width:0; width:100%; }
.pilot-workspace #roster-duties .table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.pilot-workspace #roster-body { display:grid; gap:9px; width:100%; }
.pilot-workspace #roster-body tr { display:grid; grid-template-columns:100px minmax(0,1fr) minmax(130px,.65fr); align-items:center; gap:4px 18px; margin:0; padding:14px; border:1px solid var(--line); border-left:4px solid var(--workspace-green); border-radius:11px; background:white; }
.pilot-workspace #roster-body td { display:block; padding:0; border:0!important; text-align:left; white-space:normal; width:auto; font-size:13px; overflow-wrap:anywhere; }
.pilot-workspace #roster-body td:before { display:none; }
.pilot-workspace #roster-body td:nth-child(1) { grid-row:1/3; grid-column:1; font-size:14px; font-weight:600; color:var(--ink); align-self:stretch; display:flex; align-items:center; border-right:1px solid var(--line)!important; padding-right:12px; }
.pilot-workspace #roster-body td:nth-child(2) { grid-row:2; grid-column:2; color:var(--muted); font-size:12px; }
.pilot-workspace #roster-body td:nth-child(3) { grid-row:2; grid-column:3; color:var(--muted); font-size:12px; text-align:right; }
.pilot-workspace #roster-body td:nth-child(4) { grid-row:1; grid-column:2; font-weight:600; font-size:14px; }
.pilot-workspace #roster-body td:nth-child(5) { grid-row:1; grid-column:3; text-align:right; font-variant-numeric:tabular-nums; }
.pilot-workspace #roster-body td:nth-child(2):before { display:inline; content:'Original: '; font:inherit; color:inherit; text-transform:none; letter-spacing:0; }
.pilot-workspace #roster-body tr:not(.pilot-roster-row) { display:block; border-left-color:var(--line); }
.pilot-workspace #roster-body tr:not(.pilot-roster-row) td { display:block; border:0!important; padding:0; font-weight:400; }
.pilot-workspace #roster-body tr[data-change=sevenDay] { border-left-color:var(--workspace-amber); }
.pilot-workspace #roster-body tr[data-change=fortyEightHour] { border-left-color:var(--workspace-brown); }
.pilot-workspace #roster-body tr[data-change=rdw] { border-left-color:var(--workspace-red); }
.pilot-workspace #roster-body tr[data-change=manual] { border-left-color:var(--workspace-purple); }
.pilot-workspace #roster-body tr[data-change=leave] { border-left-color:var(--workspace-blue); }
.pilot-workspace #roster-body tr[data-today-row] { background:#f3faf6; }
.pilot-workspace #roster-body tr:hover { background:var(--workspace-soft); }
.pilot-workspace #roster-body tr:focus-visible { outline:3px solid #377dab; outline-offset:1px; }
.workspace-legend { display:flex; gap:7px; flex-wrap:wrap; margin:16px 0 0; padding:0; list-style:none; }
.workspace-legend li { border-radius:5px; padding:4px 7px; font-size:11px; background:#eaf7f0; color:var(--workspace-green); }
.workspace-legend li:nth-child(2) { background:#fff2e3; color:var(--workspace-amber); }
.workspace-legend li:nth-child(3) { background:#f5eee7; color:var(--workspace-brown); }
.workspace-legend li:nth-child(4) { background:#fff0f1; color:var(--workspace-red); }
.workspace-legend li:nth-child(5) { background:#f3edfb; color:var(--workspace-purple); }
.workspace-legend li:nth-child(6) { background:#edf4fd; color:var(--workspace-blue); }
.pilot-workspace .amended-entry { padding:18px 0; gap:18px; }
.pilot-workspace .amended-entry strong { font-size:14px; font-weight:600; }
.pilot-workspace .amended-entry small { font-size:13px; margin-top:6px; }
.pilot-workspace .pay-panel { margin:16px 0; }
.pilot-workspace .pay-panel .pay-stats { gap:12px; }
.pilot-workspace .pay-stats>div,.pilot-workspace .payslip-total-grid .stat { background:var(--workspace-soft); border:1px solid var(--line); border-radius:11px; padding:17px; }
.pilot-workspace .pay-stats strong,.pilot-workspace .payslip-total-grid strong { color:var(--navy); font-size:25px; font-weight:600; font-variant-numeric:tabular-nums; }
.pilot-workspace .pay-stats span { color:var(--muted); font-size:13px; }
.pilot-workspace .pay-subtotal { background:#edf8f3; border-left:3px solid var(--mint); padding:19px; border-radius:10px; }
.pilot-workspace .pay-subtotal strong { color:#18583f; }
.pilot-workspace .pay-panel :is(summary,.pay-nav strong) { font-weight:600; }
.pilot-workspace .pay-note { color:var(--muted); font-size:13px; }
.pilot-workspace .pay-alert { border-radius:8px; font-size:14px; }
.pilot-workspace .pay-duty { padding:16px 0; }
.pilot-workspace .pay-deductions>div { padding:12px 0; }
.pilot-workspace .leave-toolbar { margin-bottom:18px; }
.pilot-workspace .year-switch button { border:1px solid var(--line); padding:9px 13px; border-radius:8px; font-size:14px; }
.pilot-workspace .year-switch button[aria-pressed=true] { background:var(--navy); }
.pilot-workspace .leave-summary { gap:14px; margin-top:18px; }
.pilot-workspace .leave-balance-card { background:var(--navy); border:0; border-radius:14px; }
.pilot-workspace .leave-balance-card strong { font-size:37px; font-weight:550; }
.pilot-workspace .leave-balance-card>span { color:#bdd0de; font-size:13px; }
.pilot-workspace .leave-metric { border-color:var(--line); border-radius:14px; padding:20px; }
.pilot-workspace .leave-metric strong { color:var(--navy); font-size:28px; font-weight:550; }
.pilot-workspace .leave-metric span { font-size:13px; color:var(--muted); }
.pilot-workspace :is(.leave-entry,.personal-entry) { font-size:14px; }
.pilot-workspace .leave-entry>strong { font-size:14px; font-weight:650; }
.pilot-workspace #notices details { border:1px solid var(--line); border-left-width:4px; padding:18px; margin:16px 0; border-radius:11px; }
.pilot-workspace #notices .notice-case-red { border-left-color:var(--workspace-red); }
.pilot-workspace #notices .notice-case-new { border-left-color:var(--workspace-amber); }
.pilot-workspace #notices .notice-case-general { border-left-color:#648096; }
.pilot-workspace #notices summary { font-size:16px; font-weight:600; }
.pilot-workspace .setup-card { max-width:none; }
.pilot-workspace .setup-grid { gap:18px; }
.pilot-workspace :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]) { min-width:0; max-width:100%; border:1px solid #cbd6df; border-radius:9px; background:white; color:var(--ink); padding:11px 12px; font-size:16px; line-height:1.4; }
.pilot-workspace :is(input,select,textarea):disabled,.pilot-workspace input[readonly] { background:#f1f5f8!important; color:#465b6e; }
.pilot-workspace input[type=file] { width:100%; background:var(--workspace-soft)!important; border-style:dashed!important; padding:14px!important; }
.pilot-workspace input[type=file]::file-selector-button { background:white; border:1px solid #cbd6df; color:var(--navy); border-radius:6px; padding:8px 10px; margin:0 12px 6px 0; font:inherit; font-size:14px; }
.pilot-workspace input:is([type=checkbox],[type=radio]) { accent-color:#28669d; flex-shrink:0; }
.pilot-workspace :is(.setup-grid,.personal-form,.change-form,.pay-fields-form) label { font-size:14px; font-weight:500; gap:7px; }
.pilot-workspace details>summary { cursor:pointer; font-weight:600; min-height:36px; }
.pilot-workspace .backup-tools { padding-top:18px; }
.pilot-workspace #howto .card { margin:16px 0; }
.pilot-workspace #howto details { border-top:1px solid var(--line); padding:14px 0; }
.pilot-workspace #howto details p,.pilot-workspace #howto li { font-size:14px; }
.pilot-workspace #howto li { margin:9px 0; }
.pilot-workspace .access-gate { background:var(--paper); padding:24px; }
.pilot-workspace .access-gate .card { width:min(480px,100%); padding:26px; }
.pilot-workspace .access-gate .brand { background:var(--navy); color:#fff; font-size:17px; font-weight:650; padding:20px; border-radius:11px; }
.pilot-workspace .access-gate h1 { font-size:27px; margin-top:24px; }
.pilot-workspace dialog:not(.diagram-viewer):not(.image-viewer) { color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:17px; padding:25px; box-shadow:0 20px 80px #07182f44; width:min(600px,calc(100vw - 32px)); max-width:calc(100vw - 32px); max-height:calc(100dvh - 40px); overflow:auto; }
.pilot-workspace dialog:not(.diagram-viewer):not(.image-viewer) h2 { font-size:23px; margin:14px 0 18px; padding-right:34px; }
.pilot-workspace dialog:not(.diagram-viewer):not(.image-viewer) p { font-size:14px; }
.pilot-workspace dialog::backdrop { background:#081a2e88; backdrop-filter:blur(3px); }
.pilot-workspace .close-dialog { top:10px; right:10px; width:40px; height:40px; display:grid; place-items:center; border-radius:8px; background:var(--workspace-soft); color:var(--ink); font-weight:400; }
.pilot-workspace :is(#weekly-upload-dialog,#payslip-dialog,#leave-report-dialog) { width:min(760px,calc(100vw - 32px))!important; }
.pilot-workspace #weekly-upload-dialog #close-weekly-upload { display:block; margin-left:auto; }
.pilot-workspace #weekly-upload-dialog h2 { padding-right:0; }
.pilot-workspace #weekly-form { margin:20px 0; gap:17px; }
.pilot-workspace #weekly-form label { display:grid; gap:7px; font-size:14px; font-weight:500; }
.pilot-workspace #weekly-read { justify-self:start; }
.pilot-workspace .diagram-viewer-header,.pilot-workspace .image-viewer header { background:var(--navy); }
.pilot-workspace .diagram-viewer-header h2 { font-size:16px; }
.pilot-workspace .format-note { font-size:13px; }
@media(min-width:1150px) {
  .pilot-workspace #dashboard { max-width:1000px; }
  .pilot-workspace #dashboard .time-row { max-width:720px; }
}
@media(max-width:1050px) {
  .pilot-workspace .app { grid-template-columns:194px minmax(0,1fr); }
  .pilot-workspace .main { padding:28px 22px 40px; }
  .pilot-workspace .side { padding:24px 12px 18px; }
  .pilot-workspace .side>.brand { font-size:14px; }
  .pilot-workspace .pay-leave-grid { grid-template-columns:1fr; }
  .pilot-workspace .leave-summary { grid-template-columns:1fr 1fr; }
  .pilot-workspace #roster-body tr { grid-template-columns:82px minmax(0,1fr); gap:5px 12px; }
  .pilot-workspace #roster-body td:nth-child(1) { grid-row:1/5; }
  .pilot-workspace #roster-body td:nth-child(4) { grid-row:1; }
  .pilot-workspace #roster-body td:nth-child(5) { grid-row:2; grid-column:2; text-align:left; }
  .pilot-workspace #roster-body td:nth-child(2) { grid-row:3; }
  .pilot-workspace #roster-body td:nth-child(3) { grid-row:4; grid-column:2; text-align:left; }
}
@media(max-width:700px) {
  .pilot-workspace .app { display:block; }
  .pilot-workspace .side { position:static; width:100%; height:auto; overflow:visible; padding:20px max(14px,env(safe-area-inset-right)) 14px max(14px,env(safe-area-inset-left)); gap:17px; }
  .pilot-workspace .side>.brand { padding:0; font-size:15px; }
  .pilot-workspace .side>.brand br { display:none; }
  .pilot-workspace .side>.brand small { display:inline; margin-left:7px; }
  .pilot-workspace .mark { width:30px; height:34px; }
  .workspace-company { display:flex; gap:7px 10px; align-items:baseline; flex-wrap:wrap; margin:0 2px; padding-left:8px; }
  .workspace-company strong,.workspace-company small { font-size:12px; }
  .pilot-workspace .nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .pilot-workspace .nav button { display:flex; flex-direction:column; justify-content:center; gap:5px; padding:9px 2px; min-height:61px; font-size:11px; text-align:center; }
  .pilot-workspace .nav button .workspace-icon { width:19px; height:19px; }
  .pilot-workspace .side-foot { display:none; }
  .pilot-workspace .main { padding:25px max(14px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left)); }
  .pilot-workspace .top { gap:14px; margin-bottom:14px; flex-wrap:nowrap; }
  .pilot-workspace .title p { font-size:13px; }
  .workspace-eyebrow { font-size:11px; letter-spacing:1.2px; }
  .workspace-top-status { flex-direction:column-reverse; align-items:flex-end; gap:8px; flex-shrink:0; max-width:95px; }
  .workspace-top-status .workspace-avatar { display:grid; }
  .pilot-workspace #save-status { font-size:10px; padding:4px 6px; }
  .pilot-workspace .card { padding:18px; }
  .pilot-workspace .hero#shift-panel { padding:20px; }
  .pilot-workspace .hero .shift { font-size:30px; }
  .pilot-workspace .time-row { gap:10px; margin:20px 0 16px; padding:18px 0; }
  .pilot-workspace .time strong { font-size:25px; }
  .pilot-workspace #today-duration { font-size:20px; }
  .pilot-workspace .time span { font-size:11px; }
  .pilot-workspace .week { gap:4px; }
  .pilot-workspace .pilot-day { padding:11px 2px; }
  .pilot-workspace .pilot-day small,.pilot-workspace .pilot-day span { font-size:11px; }
  .pilot-workspace .pilot-day strong { font-size:14px; }
  .pilot-workspace .pilot-day span { padding:3px; }
  .pilot-workspace .setup-grid { grid-template-columns:1fr; }
  .pilot-workspace .setup-grid .span-all { grid-column:auto; }
  .pilot-workspace .pay-stats { grid-template-columns:1fr; }
  .pilot-workspace .pay-stats>div { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px; }
  .pilot-workspace .pay-stats span { text-align:right; }
  .pilot-workspace .leave-metric { padding:16px; }
  .pilot-workspace dialog:not(.diagram-viewer):not(.image-viewer) { padding:20px; border-radius:15px; }
  .pilot-workspace dialog:not(.diagram-viewer):not(.image-viewer) h2 { font-size:22px; }
  .pilot-workspace .text-btn { min-height:44px; }
}
@media(max-width:380px) {
  .pilot-workspace .side>.brand { font-size:13px; }
  .pilot-workspace .time strong { font-size:22px; }
  .pilot-workspace #today-duration { font-size:18px; }
  .pilot-workspace .hero#shift-panel { padding:17px; }
  .pilot-workspace .shift-navigation button { padding:8px 9px; font-size:12px; }
  .pilot-workspace .card { padding:15px; }
}
@media(prefers-reduced-motion:reduce) {
  .pilot-workspace * { scroll-behavior:auto!important; transition:none!important; }
}

.pilot-workspace .home-feedback { margin-bottom:16px; padding:14px 18px; }
.pilot-workspace .home-feedback summary { cursor:pointer; font-weight:600; }
.pilot-workspace .home-feedback-content { padding-top:14px; }
.pilot-workspace :is(#feedback-form,#logbook-form) label { display:block; margin:12px 0; }
.pilot-workspace :is(#feedback-form,#logbook-form) textarea { display:block; width:100%; box-sizing:border-box; border:1px solid #b7c6d5; border-radius:8px; padding:10px; margin-top:6px; }

.pilot-workspace #leave-adhoc-chips { margin-top:14px; }
.pilot-workspace #leave-adhoc-chips .leave-chip { background:#eaf3ff; color:#173c65; border:1px solid #bdd6f2; cursor:pointer; font-weight:700; }
.pilot-workspace #leave-adhoc-chips .leave-chip:hover { background:#dcecff; }
.pilot-workspace #leave-adhoc-manage { margin-top:16px; }
.pilot-workspace #leave-adhoc-manage>summary { cursor:pointer; font-weight:600; }

.pilot-workspace details.block-leave-row { display:block; padding:0; margin:0; border:0; border-bottom:1px solid #e1e8ef; border-radius:0; background:transparent; }
.pilot-workspace .block-leave-summary { display:grid; grid-template-columns:minmax(64px,1fr) minmax(0,1.8fr) auto; align-items:center; gap:8px; padding:8px 3px; min-height:44px; box-sizing:border-box; cursor:pointer; font-size:13px; list-style:none; }
.pilot-workspace .block-leave-summary::-webkit-details-marker { display:none; }
.pilot-workspace .block-leave-summary strong { font-size:13px; overflow-wrap:anywhere; }
.pilot-workspace .block-leave-charge { padding:4px 7px; border-radius:7px; background:#eaf3ff; color:#173c65; font-size:12px; font-weight:700; white-space:nowrap; }
.pilot-workspace .block-leave-charge::after { content:' ▾'; }
.pilot-workspace .block-leave-row[open] .block-leave-charge::after { content:' ▴'; }
.pilot-workspace .block-leave-status,.pilot-workspace .block-leave-expanded { margin:0 3px 10px; font-size:12px; color:#526779; }
.pilot-workspace .block-leave-expanded p { margin:6px 0; }
.pilot-workspace .block-leave-expanded button { font-size:12px; padding:7px 10px; margin:4px 4px 0 0; }
.pilot-workspace #leave-block-manage { margin-top:12px; }
.pilot-workspace #leave-block-manage>summary { cursor:pointer; font-size:13px; }
@media(max-width:380px){.pilot-workspace .block-leave-summary { gap:5px; font-size:12px; grid-template-columns:minmax(56px,1fr) minmax(0,1.6fr) auto; }.pilot-workspace .block-leave-summary strong { font-size:12px; }}

.pilot-workspace .block-leave-row[data-season=spring] { --season-ink:#246b42; --season-bg:#edf7ef; --season-pill:#d7eddd; }
.pilot-workspace .block-leave-row[data-season=summer] { --season-ink:#80520b; --season-bg:#fff7e3; --season-pill:#f9e5ae; }
.pilot-workspace .block-leave-row[data-season=winter] { --season-ink:#285b8d; --season-bg:#eef5fc; --season-pill:#d9e8f8; }
.pilot-workspace .block-leave-row[data-season]>.block-leave-summary { border-left:4px solid var(--season-ink); background:var(--season-bg); padding-left:8px; padding-right:6px; border-radius:6px; }
.pilot-workspace .block-leave-row[data-season]>.block-leave-summary strong { color:var(--season-ink); }
.pilot-workspace .block-leave-row[data-season] .block-leave-charge { background:var(--season-pill); color:var(--season-ink); }

.pilot-workspace .roster-week { border:1px solid #dbe5ee; border-radius:10px; margin:10px 0; overflow:hidden; }
.pilot-workspace .roster-week>summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:12px; background:#f2f6fa; }
.pilot-workspace .roster-week>summary strong { font-size:14px; }
.pilot-workspace .roster-week>summary span { font-size:12px; color:#526779; }
.pilot-workspace .roster-week>summary small { background:#d7eddd; color:#246b42; padding:3px 7px; border-radius:6px; }
.pilot-workspace .roster-week[open]>summary { background:#e8f1fa; }
.pilot-workspace .roster-week-body tr[data-today-row] { background:#eaf4ff; }
.pilot-workspace .roster-week-body tr[data-date],.pilot-workspace .roster-week-body tr { cursor:pointer; }
.pilot-workspace .roster-week-body tr:focus-visible { outline:3px solid #377dab; outline-offset:-3px; }
@media(max-width:700px){
 .pilot-workspace .roster-week table,.pilot-workspace .roster-week-body { display:block; width:100%; }
 .pilot-workspace .roster-week thead { display:none; }
 .pilot-workspace .roster-week-body tr { display:grid; grid-template-columns:1fr 1fr; padding:10px 12px; gap:5px 10px; border-bottom:1px solid #e1e8ef; }
 .pilot-workspace .roster-week-body td { display:block; padding:0; border:0; font-size:12px; }
 .pilot-workspace .roster-week-body td:first-child { grid-column:1/-1; font-weight:700; }
 .pilot-workspace .roster-week-body td:not(:first-child)::before { content:attr(data-label); display:block; font-size:10px; color:#526779; }
}
@media(max-width:700px){
 .pilot-workspace .roster-week-body tr { gap:3px 10px; padding:9px 12px; }
 .pilot-workspace .roster-week-body td:first-child { grid-column:1; grid-row:1/3; align-self:center; }
 .pilot-workspace .roster-week-body td:nth-child(2),.pilot-workspace .roster-week-body td:nth-child(3) { display:none; }
 .pilot-workspace .roster-week-body td:nth-child(4),.pilot-workspace .roster-week-body td:nth-child(5) { grid-column:2; }
 .pilot-workspace .roster-week-body td:not(:first-child)::before { display:none; }
 .pilot-workspace .roster-week-body td:nth-child(4) { font-weight:600; }
}
@media(max-width:700px){
 .pilot-workspace .roster-week-body td:first-child::before { display:none; }
 .pilot-workspace .roster-week-body tr { border:0; border-bottom:1px solid #e1e8ef; border-radius:0; margin:0; box-shadow:none; }
}

.pilot-workspace .roster-week-body tr { --day-ink:#24724b; --day-bg:#eff8f2; --day-pill:#dcefe3; background:var(--day-bg); }
.pilot-workspace .roster-week-body tr[data-change=sevenDay],.pilot-workspace .roster-week-body tr[data-change=seventyTwoHour] { --day-ink:#a35b15; --day-bg:#fff4e8; --day-pill:#ffe5c8; }
.pilot-workspace .roster-week-body tr[data-change=fortyEightHour] { --day-ink:#785436; --day-bg:#f6eee7; --day-pill:#eadbcd; }
.pilot-workspace .roster-week-body tr[data-change=rdw] { --day-ink:#a73543; --day-bg:#fff0f1; --day-pill:#f8dce0; }
.pilot-workspace .roster-week-body tr[data-change=manual] { --day-ink:#7049a2; --day-bg:#f4effa; --day-pill:#e7dbf5; }
.pilot-workspace .roster-week-body tr[data-change=leave] { --day-ink:#28669d; --day-bg:#edf4fd; --day-pill:#d9e8f8; }
.pilot-workspace .roster-week-body tr[data-change=rest] { --day-ink:#526779; --day-bg:#f4f6f8; --day-pill:#e5ebf0; }
.pilot-workspace .roster-week-body tr[data-change=review] { --day-ink:#91680c; --day-bg:#fff9df; --day-pill:#f6e9ae; }
.pilot-workspace .roster-week-body tr td:first-child { border-left:4px solid var(--day-ink); padding-left:8px; }
.pilot-workspace .roster-week-body .roster-day-status { display:block; width:fit-content; margin-top:4px; padding:2px 6px; border-radius:5px; color:var(--day-ink); background:var(--day-pill); font-size:10px; font-weight:600; }
.pilot-workspace .roster-week-body tr[data-today-row] { outline:1px solid #377dab; outline-offset:-1px; }
@media(max-width:700px){.pilot-workspace .roster-week-body tr { border-left:4px solid var(--day-ink); }.pilot-workspace .roster-week-body tr td:first-child { border-left:0; padding-left:0; }}

.pilot-workspace #pay .pay-area { padding:0; margin:12px 0; }
.pilot-workspace #pay .pay-area>summary { display:block; padding:14px 16px; min-height:44px; cursor:pointer; list-style:none; }
.pilot-workspace #pay .pay-area>summary::-webkit-details-marker { display:none; }
.pilot-workspace #pay .pay-area>summary strong { font-size:15px; }
.pilot-workspace #pay .pay-area>summary strong::before { content:'▸ '; color:#28669d; }
.pilot-workspace #pay .pay-area[open]>summary strong::before { content:'▾ '; }
.pilot-workspace .pay-area-preview { display:block; margin:6px 0 0 14px; font-size:12px; color:#526779; font-weight:400; }
.pilot-workspace #pay .pay-area>article,.pilot-workspace #pay .pay-area>div { margin:0; padding:0 14px 14px; }
.pilot-workspace #pay .pay-area>summary:focus-visible { outline-offset:-3px; }
.pilot-workspace #pay .pay-leave-grid { display:block; margin:0; }

/* Elizabeth line company branding; duty-status colours retain their meaning. */
body.pilot-workspace[data-company-theme=elizabeth] { --workspace-accent:#6950a1; }
.pilot-workspace[data-company-theme=elizabeth] .mark { color:#d7c5ff; border-color:#9a7dcc; }
.pilot-workspace[data-company-theme=elizabeth] .nav button[aria-current=page] { background:#48346e; color:#fff; }
.pilot-workspace[data-company-theme=elizabeth] .hero .diagram-button { background:#6950a1; border-color:#6950a1; color:#fff; }
