/* Shared operational theme. Screen only: exported and printed schedules retain their palette. */
@media screen {
:root{--ink:#183747;--muted:#607785;--line:#dce5e9;--teal:#087e87;--navy:#153947;background:#f3f6f8;color:var(--ink)}
body{font-size:14px;line-height:1.45}
body>main{padding-inline:clamp(14px,2.4vw,36px)}
main>header{padding-bottom:0}.top-brand img{width:100px;max-height:62px;object-fit:contain}.top-brand strong{font-size:19px}
main>.top-navigation{border-radius:10px;padding:5px 7px;gap:3px;margin-bottom:20px;scrollbar-width:thin}
.top-navigation button{border-radius:7px;padding:10px 11px;font-size:13px;white-space:nowrap}
.top-navigation button:hover{background:#ffffff16}.top-navigation button.active{background:#ffffff21;box-shadow:inset 0 -3px #68ccd0}
.heading{margin:22px 0 16px;gap:12px}h1{font-size:27px;letter-spacing:-.7px;margin-bottom:5px}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:16px}p{color:var(--muted)}
.panel,.stat{border-color:var(--line);border-radius:12px;box-shadow:0 2px 7px #18374704}
.stats{margin:16px 0;gap:12px}.stat{padding:15px 18px}.stat label{font-size:10px;letter-spacing:.08em;font-weight:700}.stat strong{font-size:27px;margin:6px 0 2px;font-variant-numeric:tabular-nums}.stat small{font-size:11px}
.notice{padding:10px 14px;margin:14px 0;border-radius:9px;font-size:12px}.toolbar,.periodbar{padding:12px 16px;gap:8px}.periodbar{background:#f8fafb}.periodbar span{padding:8px 4px}
button,input,select,textarea{border-radius:7px;min-height:36px}button{padding:8px 12px;font-weight:600}input,select,textarea{padding:8px 10px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #49acb5;outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.5}.primary{box-shadow:0 2px 3px #087e8714}
table{font-variant-numeric:tabular-nums}th{padding:11px 16px;color:#536d7a;background:#f4f7f9;font-weight:700}td{padding:11px 16px}.dashflighttable td,.dashflighttable th{padding:10px 14px}tbody tr:hover>td{box-shadow:inset 0 0 0 9999px #163c4805}.tablefoot,.dashfoot{padding:11px 16px}
.dashgrid{gap:14px;margin:16px 0}.dashcontrols{margin:16px 0;gap:9px}.dashservice{padding:12px 0}.dashpanel{padding:16px}.dashperiod{font-size:18px}.latest-legend{padding:11px 14px;border-radius:9px}.latest-legend p{margin:4px 0}
dialog{padding:22px;border:1px solid var(--line);border-radius:14px;max-height:90dvh;overflow:auto;box-shadow:0 24px 80px #102e3b30}dialog::backdrop{background:#102e3b66}dialog h2{font-size:22px}form .grid{gap:12px;margin:16px 0}.dialogactions{gap:8px;margin-top:16px;flex-wrap:wrap}
.update-steps{gap:10px;margin:14px 0}.update-steps>div,.update-steps>button{padding:12px 14px}.update-option>summary{padding:14px 16px}.reviewmeta{padding:14px 16px}.bottom{margin-top:18px}
.agent-draft-picker{scrollbar-width:thin;scrollbar-color:#bdcfd6 transparent}.agent-draft-picker button{border-radius:8px}.agent-draft-picker button[aria-pressed=true]{background:#edf8f8;border-color:#16919a}.agent-inbox-heading h2{font-size:19px}
@media(min-width:960px){body:not([data-role="Manager"]) main>#stationBar{left:250px}}
@media(max-width:680px){.heading{align-items:stretch}.heading .actions{flex-wrap:wrap}.stats{gap:8px}.stat{padding:12px}.stat strong{font-size:24px}h1{font-size:24px}.top-brand img{width:92px}.toolbar input,#search{width:100%}dialog{padding:16px}form .grid{grid-template-columns:1fr}.top-navigation button{min-height:42px}.agent-draft-picker button{min-height:72px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
}

.flight-delete{color:#b42318;border-color:#edc0bd;background:#fff5f4}.flight-delete:hover{background:#ffe6e3}#deleteSavedFlight{margin-right:auto}

/* Compact flight editor: labels and controls never stretch to fill neighbouring help text. */
@media screen {
#edit{width:720px;max-width:calc(100vw - 28px);max-height:88dvh;padding:22px 24px 0;border-top:4px solid var(--teal);color:var(--ink);scrollbar-width:thin}
#edit h2{font-size:21px;line-height:1.25;margin:0 0 6px;letter-spacing:-.4px}
#editSource{font-size:11px;line-height:1.45;overflow-wrap:anywhere;color:var(--muted);padding-bottom:12px;border-bottom:1px solid var(--line)}
#visitForm>.grid{gap:12px 18px;margin:14px 0;align-items:start}
#visitForm .grid>label{display:flex;flex-direction:column;justify-content:flex-start;gap:5px;font-size:12px;font-weight:600;min-width:0}
#visitForm .grid input,#visitForm .grid select,#visitForm .modeLabel select{height:38px;min-height:38px;width:100%;padding:7px 10px;font-size:13px;font-weight:400;border-radius:7px;background:#fbfcfd}
#visitForm .grid small{font-size:10.5px;font-weight:400;line-height:1.4;color:#70858f}
#visitForm input:focus-visible,#visitForm select:focus-visible{outline:2px solid #49acb5;outline-offset:1px;background:white}
#visitForm>.checklabel{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.5;padding:10px 12px;background:#f1f7f8;border:1px solid #dfebee;border-radius:8px;margin:12px 0}
#visitForm>.checklabel input{flex:none;min-height:0;width:15px;height:15px;margin:1px 0;accent-color:var(--teal)}
#visitForm>.dialogactions{position:sticky;bottom:0;z-index:2;background:white;border-top:1px solid var(--line);padding:12px 0;margin-top:14px;gap:8px;box-shadow:0 -8px 16px #ffffffed}
#visitForm>.dialogactions button{min-height:36px;padding:8px 13px;font-size:12px;border-radius:7px}
#visitForm #repeatControls .grid{align-items:start}
@media(max-width:560px){#edit{padding:16px 16px 0;max-height:92dvh}#visitForm>.grid{grid-template-columns:1fr 1fr;gap:10px}#visitForm>.grid>label:first-child,#visitForm>.grid>label:has([name="pair"]),#visitForm>.grid>label:has([name="source"]){grid-column:1/-1}#visitForm>.dialogactions button{padding-inline:10px}}
}

@media screen{#flightMovementField{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:600;background:#f1f7f8;border-radius:8px;padding:10px 12px;margin-top:12px}#flightMovementField[hidden]{display:none}#flightMovementField select{flex:1;min-width:0;font-size:13px;height:36px;padding:6px 10px}#visitForm label[hidden]{display:none!important}}

/* Compact flight editor: keep routine edits in view. */
@media screen{
#edit{width:760px;padding:18px 22px 0}
#editSource{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-bottom:9px;margin-bottom:0}
#flightMovementField{margin-top:10px;padding:7px 10px}
#visitForm>.grid{margin:11px 0;gap:10px 14px}
#visitForm>.flight-times{grid-template-columns:repeat(4,minmax(0,1fr));padding:11px 12px;background:#f4f8fa;border:1px solid #e4edf0;border-radius:9px}
#visitForm>.flight-times label{font-size:11px}
#visitForm .grid small{display:none}
#visitForm .grid label:focus-within small{display:block}
#flightMoreDetails{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}
#flightMoreDetails summary{cursor:pointer;font-size:12px;font-weight:650;color:var(--ink);padding:3px 0}
#flightMoreDetails summary span{font-weight:400;color:var(--muted);font-size:10.5px;margin-left:8px}
#flightMoreDetails .grid{margin:10px 0;gap:10px 14px}
#flightMoreDetails label:has([name="source"]){grid-column:1/-1}
#visitForm>.checklabel{margin:11px 0;padding:8px 10px}
#visitForm>.dialogactions{margin-top:10px;padding:10px 0}
@media(max-width:560px){
#edit{padding:15px 14px 0}
#visitForm>.flight-times{grid-template-columns:1fr 1fr}
#visitForm>.flight-times>label:first-child{grid-column:auto}
#flightMoreDetails summary span{display:block;margin:4px 0 0 15px}
}
}

@media screen{
#visitForm>.flight-primary{grid-template-columns:minmax(0,1.35fr) minmax(78px,.45fr) minmax(0,1fr)}
#manualFlightCode{text-transform:uppercase;font-weight:650!important}
#flightCodePreview{font-size:11px;color:var(--teal);padding:0 2px 3px;min-height:16px}
#flightCodePreview.invalid{color:#a65c14}
@media(max-width:560px){#visitForm>.flight-primary{grid-template-columns:90px minmax(0,1fr)}#visitForm>.flight-primary>label:first-child{grid-column:1/-1}#visitForm>.flight-primary>label:has([name="pair"]){grid-column:auto}}
}

.flight-deletion-dialog{width:850px;max-width:95vw}.flight-delete-list{max-height:40vh;overflow:auto;margin:12px 0;border:1px solid var(--line);border-radius:8px}.flight-delete-list th{position:sticky;top:0;background:#f1f7f8}.flight-delete-list td{padding:8px 12px;font-size:12px}.flight-delete-list input[type=checkbox]{width:18px;height:18px;min-height:0}.flight-delete-summary{max-height:35vh;overflow:auto}.flight-delete-confirm{width:540px;max-width:95vw}.flight-delete-summary p{margin:5px 0;font-size:12px}

.flight-deletion-dialog .formgrid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:12px}.flight-deletion-dialog .formgrid label{display:flex;flex-direction:column;gap:5px}.flight-deletion-dialog .formgrid input,.flight-deletion-dialog .formgrid select{width:100%;min-width:0}.flight-deletion-dialog .actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}@media(max-width:650px){.flight-deletion-dialog .formgrid{grid-template-columns:1fr 1fr}}

#editUpdateFlights{background:#285b9a;color:#fff;border-color:#285b9a}#editUpdateFlights:hover{background:#204a7e;border-color:#204a7e}.group-edit-times{margin-top:14px}

.history-entry{padding:16px 0;border-bottom:1px solid var(--line)}.history-details{margin-top:10px}.history-details summary{cursor:pointer;color:#285b9a;font-weight:650}.history-flights{max-height:420px;overflow:auto;margin-top:10px}.history-flights section{padding:12px;background:#f5f9fb;border-radius:8px;margin-bottom:10px}.history-flights table{margin-top:8px;font-size:12px}.history-flights td,.history-flights th{padding:7px 10px;overflow-wrap:anywhere}.history-source{font-size:12px;color:#637d89}

/* RX one-sided station-stop presentation; service remains Transit for statistics. */
tr.rx-station-stop>td,.visit.rx-station-stop{background:#f2cfee!important;color:#1f4e79}
.rx-station-stop b{font-weight:700}.station-stop-stars{color:#f00;font-weight:700}
.flight-marker-station-stop,.rx-stop-legend span{background:#f2cfee;border:1px solid #b87eb0}
.rx-stop-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}.rx-stop-legend span{width:24px;height:14px;border-radius:3px}

/* Unified compact workspace. Flight colours and printed exports stay untouched. */
@media screen {
body{background:#f3f6f9;color:#183747}
main .heading{margin:18px 0 12px;align-items:center}
main h1{font-size:25px;line-height:1.2;letter-spacing:-.65px}
main h2{line-height:1.3;margin-top:0;margin-bottom:8px}
#subtitle{font-size:13px}
#workspaceNotice{margin:10px 0 14px;padding:7px 12px;background:transparent;border:0;border-left:3px solid #ccdfe4;border-radius:0;font-size:11px;color:#637c88}
#plannerConnection{margin:10px 0 12px;padding:0;border:1px solid #dbe5eb;border-radius:9px;background:#fff;color:#40616d;font-size:12px}
#plannerConnection summary{cursor:pointer;padding:9px 13px;font-weight:650;list-style-position:inside}
#plannerConnection[open]{padding-bottom:12px}
#plannerConnection[open] summary{border-bottom:1px solid #e7eef2;margin-bottom:10px}
#plannerConnection>p{margin:6px 13px;font-size:12px}
#plannerConnection>input{margin-left:13px;margin-right:7px;font-size:12px}
#plannerConnection>button{font-size:12px}
#plannerConnection>[role=status]:empty{display:none}
main>.top-navigation{margin-bottom:16px;border-radius:10px;box-shadow:0 3px 8px #163c4812}
.top-navigation button{font-weight:500;color:#d4e4e9}
.top-navigation button.active{color:white;font-weight:650;background:#ffffff20}
.top-navigation button:not(.active):focus:not(:focus-visible){box-shadow:none;background:transparent}
#stats:empty{display:none}
main #stats{margin:12px 0;gap:10px}
main .stat{padding:12px 15px;border-radius:10px;box-shadow:none}
main .stat strong{font-size:25px;line-height:1.2;margin:5px 0}
main .stat small{font-size:11px;color:#617985}
main .panel{box-shadow:0 2px 8px #193b4805}
main .toolbar,main .periodbar{padding:10px 14px;gap:8px}
main .toolbar .actions{flex-wrap:wrap}
main .toolbar input,main .toolbar select{min-width:0}
main td{padding:9px 14px}main th{padding:10px 14px;font-size:10px}
main td p,main td small{font-size:11px;line-height:1.45}
main td button{font-size:12px;padding:7px 10px;min-height:32px}
main .table-wrap{scrollbar-width:thin;scrollbar-color:#b7cbd4 #f5f8fa}
body[data-view=master] #content>.panel>.table-wrap,body[data-view=review] #content>.panel>.table-wrap,body[data-view=customers] #content .table-wrap{max-height:65vh;overscroll-behavior:contain}
body[data-view=master] #content>.panel>.table-wrap th,body[data-view=review] #content>.panel>.table-wrap th,body[data-view=customers] #content .table-wrap th{position:sticky;top:0;z-index:1;background:#f2f6f8;box-shadow:0 1px #dce5e9}
main .dashgrid{gap:12px;margin:12px 0}main .dashcontrols{margin:12px 0}
main .dashservice{padding:10px 0}main .dashpanel{padding:14px 16px}
main .update-steps{margin:10px 0 18px;gap:8px}
main .update-steps>div,main .update-steps>button{padding:10px 12px;border-radius:9px}
main .update-alt-title{font-size:17px;margin:18px 0 10px}
main .update-option{margin:10px 0}
main .update-option>summary{padding:12px 15px;font-size:13px;cursor:pointer}
main .update-option[open]>summary{background:#f3f8fa;border-bottom:1px solid #dce5e9}
#updateQueue{margin-top:16px}#updateQueue td:first-child{white-space:normal;min-width:220px;overflow-wrap:anywhere}
#updateQueue td:last-child{white-space:normal;min-width:190px}#updateQueue td:last-child button{margin:3px 4px 3px 0}
main .agent-review-layout{padding:14px;gap:8px 14px}
main .agent-draft-picker button{padding:9px 11px;gap:3px;border-radius:8px;min-height:64px}
main .agent-draft-picker button strong{font-size:13px}main .agent-draft-picker span{font-size:11px}
main .history-entry{padding:13px 15px;border-left:3px solid #d4e5ea;margin:10px 0;background:#fbfcfd;border-radius:0 8px 8px 0}
main .history-entry>small{font-size:11px;color:#68818e}
main .detected-heading{padding:16px 18px}main .detected-heading p{font-size:12px;max-width:85ch}
main .detected-arrivals td:last-child{white-space:normal;min-width:170px}main .detected-arrivals td button{margin:3px 0}
main .manager-grid{gap:14px}main .manager-section{margin-top:14px}
main .bottom{margin-top:18px;padding:12px 0;border-top:1px solid #dfe8ed}
@media(max-width:700px){
 main .heading{align-items:flex-start;flex-wrap:wrap}main h1{font-size:23px}
 main #stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 main .actions{flex-wrap:wrap}main .toolbar>*{max-width:100%}
 main .update-steps{grid-template-columns:1fr}main .update-steps>div,main .update-steps>button{padding:9px 12px}
 #plannerConnection>button{margin:6px 13px}
 main .bottom{gap:10px;flex-wrap:wrap}main .table-wrap{max-width:100%}
 main .toolbar button,main .top-navigation button{min-height:42px}
}
}

/* Lightweight aviation masthead: clear brand, station and account groups. */
@media screen{
 body>main{--masthead-height:88px;background:transparent}
 main>header{position:relative;min-height:88px;padding:14px 16px;border:1px solid #e2eaee;border-radius:16px;background:linear-gradient(112deg,#fff 15%,#f1f7fa 100%);margin-top:10px;box-shadow:0 3px 12px #193d5005}
 main>header:before{content:"";position:absolute;inset:0 18px auto;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#cc191f 8%,#193d50 45%,#65adb9 85%,transparent)}
 main>header:after{content:"";position:absolute;right:12%;top:8px;width:230px;height:65px;border-top:1px dashed #b6d2dc;border-radius:50%;transform:rotate(-9deg);opacity:.45;pointer-events:none}
 .top-brand{position:relative;z-index:1;gap:17px;flex-shrink:0}
 .top-brand img{width:104px;height:56px;max-height:56px;object-fit:contain;background:white;border-radius:6px;padding:3px}
 .top-brand strong{font-size:20px;font-weight:750;letter-spacing:-.6px;color:#183b4d;line-height:1.2}
 .top-brand strong:after{content:"OPERATIONS";display:block;font-size:9px;font-weight:600;letter-spacing:2.5px;color:#74909d;margin-top:5px}
 main>#stationBar{z-index:2;gap:14px;flex-wrap:nowrap;min-width:0}
 main>#stationBar .station-identity{min-width:0;flex:0 1 205px;gap:0}
 main>#stationBar .station-choice{width:100%;padding:7px 12px;border:1px solid #d5e4eb;border-radius:10px;background:#ffffffdb;box-shadow:0 2px 6px #183b4b04}
 main>#stationBar .station-choice .station-eyebrow{display:block;font-size:8px;letter-spacing:1.4px;color:#708b98}
 main>#stationBar .station-choice select{max-width:100%;min-height:24px;font-size:13px;padding-right:22px}
 main>#stationBar .station-account{border:0;padding:0 4px;gap:7px;flex-shrink:0;margin:0}
 main>#stationBar .station-account>svg{width:19px;height:19px;color:#6794a5}
 main>#stationBar .station-account strong{font-size:11px;margin:0;color:#456574}
 main>#stationBar .station-actions{width:auto;min-width:0;margin-left:auto;padding:0;border:0;gap:8px}
 main>#stationBar .station-status{max-width:190px;padding:6px 9px;background:#ffffffa8;border-radius:20px}
 main>#stationBar #stationSyncStatus{font-size:10px}
 main>#stationBar .station-refresh{width:32px;min-height:32px;border-radius:50%;background:#fff}
 main>#stationBar .station-signout{min-height:32px;padding:6px 9px;font-size:11px;white-space:nowrap}
 main>#stationBar .station-action-divider{display:none}
 main>.top-navigation{border-radius:12px;background:linear-gradient(100deg,#143647,#1c4757);box-shadow:0 4px 10px #153b4910}
}
@media screen and (min-width:1200px){
 body:not([data-role="Manager"]) main>#stationBar{left:308px;right:40px;top:10px;min-height:88px;padding:12px 0}
}
@media screen and (max-width:1199px){
 body:not([data-role="Manager"]) main>#stationBar{position:relative;inset:auto;min-height:64px;margin:0 0 12px;padding:8px 0;border:0;border-bottom:1px solid #e1eaee}
 main>#stationBar .station-actions{width:auto}
}
@media screen and (max-width:640px){
 main>header{min-height:76px;padding:10px 12px}
 .top-brand img{width:94px;height:50px}.top-brand strong{font-size:18px}
 main>#stationBar{flex-wrap:wrap;gap:8px}
 main>#stationBar .station-identity{flex:1 1 160px}
 main>#stationBar .station-account{margin-left:auto}
 main>#stationBar .station-actions{flex:1 1 100%;width:100%}
 main>#stationBar .station-status{margin-right:auto;max-width:none}
}

@media screen{
 .top-brand{gap:10px}
 .flight-wordmark{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
 .top-brand .flight-wordmark img{width:160px;height:53px;max-height:53px;object-fit:contain;padding:0;background:transparent;border-radius:0}
 .flight-wordmark small{font-size:8px;font-weight:600;letter-spacing:2.4px;color:#74909d;margin:-7px 0 0 7px}
}
@media screen and (min-width:1200px){body:not([data-role="Manager"]) main>#stationBar{left:340px}}
@media screen and (max-width:640px){.top-brand .flight-wordmark img{width:140px;height:47px}.flight-wordmark small{font-size:7px}}
@media screen{
 main>header{background-image:url('assets/header-routes.svg?v=2'),linear-gradient(112deg,#fff 15%,#f1f7fa 100%);background-position:right center,center;background-size:auto 160px,cover;background-repeat:no-repeat}
 main>header:after{display:none}
 main>.top-navigation{justify-content:center;justify-content:safe center}
}
@media screen and (max-width:1199px){main>.top-navigation{justify-content:flex-start}}

/* Compact operational dashboard, with unchanged chart scales and service colors. */
@media screen {
body[data-view="dashboard"] #stats{gap:10px;margin:12px 0}
body[data-view="dashboard"] #stats .stat{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px;padding:12px 16px;min-height:76px;border-top:3px solid #507d91;background:linear-gradient(120deg,#fff,#f8fbfc)}
body[data-view="dashboard"] #stats .stat label{font-size:10px;letter-spacing:.07em}
body[data-view="dashboard"] #stats .stat strong{grid-column:2;grid-row:1 / 3;font-size:30px;line-height:1.1;margin:0}
body[data-view="dashboard"] #stats .stat small{font-size:10px;line-height:1.35}
body[data-view="dashboard"] #stats .stat:nth-child(2){border-top-color:#15948a}
body[data-view="dashboard"] #stats .stat:nth-child(3){border-top-color:#d45b64}
body[data-view="dashboard"] #stats .stat:nth-child(3) strong{color:#b33c48}
body[data-view="dashboard"] main .dashcontrols{padding:9px 12px;margin:10px 0;background:#fff;border:1px solid #dce5e9;border-radius:12px;align-items:center;gap:8px}
body[data-view="dashboard"] .dashcontrols label{display:flex;align-items:center;gap:8px;font-size:11px}
body[data-view="dashboard"] .dashcontrols label:last-child{margin-left:auto}
body[data-view="dashboard"] .dashcontrols input,body[data-view="dashboard"] .dashcontrols select{min-height:34px;font-size:12px;padding:6px 9px}
body[data-view="dashboard"] .dashcontrols button{min-height:34px;padding:6px 11px;font-size:12px}
body[data-view="dashboard"] .dashswitch{padding:3px;border-radius:8px}
body[data-view="dashboard"] .dashperiod{font-size:17px;margin:13px 0 3px;letter-spacing:-.3px}
body[data-view="dashboard"] .dashhint{font-size:10px;margin:5px 0 9px}
body[data-view="dashboard"] main .dashgrid{gap:12px;margin:10px 0;grid-template-columns:minmax(0,2fr) minmax(270px,1fr)}
body[data-view="dashboard"] main .dashpanel{padding:14px 16px}
body[data-view="dashboard"] .dashpanel h2{font-size:15px;margin:0 0 3px}
body[data-view="dashboard"] .dashpanel>p:not(.dashhint){font-size:11px;margin:0 0 8px}
body[data-view="dashboard"] .dashchart{height:194px;margin:8px 0 6px;gap:8px}
body[data-view="dashboard"] .dashbar{height:194px;gap:6px;border-radius:7px}
body[data-view="dashboard"] .dashbar.selected{background:#edf7f7;box-shadow:inset 0 -2px #07828b}
body[data-view="dashboard"] .dashkey{gap:8px 16px;flex-wrap:wrap;margin:8px 0;font-size:10px}
body[data-view="dashboard"] main .dashservice{padding:10px 0}
body[data-view="dashboard"] .dashservice .line{font-size:12px;margin-bottom:6px}
body[data-view="dashboard"] .dashservice .track{height:6px}
}
@media screen and (max-width:800px){
body[data-view="dashboard"] main .dashgrid{grid-template-columns:1fr}
body[data-view="dashboard"] .dashcontrols label:last-child{margin-left:0;flex:1 1 100%}
body[data-view="dashboard"] .dashcontrols label:last-child select{flex:1;min-width:0}
body[data-view="dashboard"] #stats{grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-view="dashboard"] #stats .stat{padding:10px;gap:3px 6px}
body[data-view="dashboard"] #stats .stat strong{font-size:25px}
}

/* Saudi local clock: fixed digit widths prevent layout movement each second. */
@media screen{
 main>#stationBar .header-clock{display:flex;align-items:center;justify-content:center;gap:10px;margin-inline:auto;padding:9px 12px;border:1px solid #cce7e8;border-radius:12px;background:linear-gradient(110deg,#f2faf9e8,#e6f5f4e8);white-space:nowrap;flex:0 0 auto;color:#173d50}
 .header-clock>svg{width:23px;height:23px;color:#14988e;flex-shrink:0}
 .header-clock time{font-size:25px;line-height:1.1;font-weight:750;letter-spacing:.3px;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";min-width:5ch;text-align:center}
 .header-clock-calendar{display:flex;flex-direction:column;gap:3px;padding-left:12px;border-left:1px solid #a8dcd9}
 .header-clock-date{font-size:12px;line-height:1.2}
 .header-clock-calendar small{font-size:8px;letter-spacing:1.4px;font-weight:700;color:#168f87}
}
@media screen and (min-width:1200px) and (max-width:1450px){
 main>#stationBar{gap:9px}
 main>#stationBar .station-identity{flex-basis:175px}
 main>#stationBar .header-clock{gap:7px;padding:9px}
 .header-clock time{font-size:20px}
 .header-clock>svg{width:19px;height:19px}
 .header-clock-calendar{padding-left:8px}
 .header-clock-date{font-size:10px}
 .header-clock-calendar small{font-size:7px;letter-spacing:.8px}
 main>#stationBar .station-status{max-width:135px}
}
@media screen and (max-width:1199px){main>#stationBar{flex-wrap:wrap}.header-clock time{font-size:22px}}
@media screen and (max-width:640px){
 main>#stationBar .header-clock{order:3;flex:1 1 100%;margin:0;padding:8px 12px}
 main>#stationBar .station-actions{order:4}
 .header-clock time{font-size:24px}
}
@media print{.header-clock{display:none!important}}

.customer-register .aircraft-badges{display:flex;flex-wrap:wrap;align-items:center;gap:5px 6px;max-width:260px}
.customer-register .aircraft-type-badge{display:inline-flex;align-items:center;justify-content:center;padding:3px 9px;border:1px solid #acd5dc;border-radius:999px;background:#eaf7f8;color:#20495b;font-size:11px;font-weight:650;line-height:1.35;white-space:nowrap;letter-spacing:.1px}

.save-feedback{width:min(470px,calc(100vw - 32px));padding:26px;border-radius:16px;border:1px solid #d7e5e9;color:#183747;box-shadow:0 24px 80px #102e3b30}
.save-feedback-heading{display:flex;align-items:center;gap:14px}.save-feedback-heading h2{margin:0;font-size:23px;line-height:1.2}
.save-feedback-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;font-size:25px;font-weight:700}
.save-feedback[data-state=saving] .save-feedback-icon{border:4px solid #d5eeee;border-top-color:#087e87;animation:save-spin 1s linear infinite}
.save-feedback[data-state=success] .save-feedback-icon{color:#fff;background:#219653;box-shadow:0 0 0 5px #e2f5e8}
.save-feedback[data-state=error] .save-feedback-icon{color:#fff;background:#bd3939}
.save-feedback-message{font-size:14px;line-height:1.6;margin:20px 0;color:#527080;overflow-wrap:anywhere}
.save-feedback[data-state=success] .save-feedback-message{padding:13px;border-radius:9px;background:#edf8ef;color:#267340}
.save-feedback-track{height:7px;overflow:hidden;background:#e7eff2;border-radius:9px;margin:22px 0 8px}.save-feedback-track span{display:block;width:35%;height:100%;border-radius:9px;background:#087e87;animation:save-progress 1.4s ease-in-out infinite alternate}
.save-feedback .dialogactions{justify-content:flex-end;margin-top:22px}
@keyframes save-spin{to{transform:rotate(360deg)}}@keyframes save-progress{to{transform:translateX(185%)}}
@media(prefers-reduced-motion:reduce){.save-feedback-icon,.save-feedback-track span{animation:none!important}}

/* Compact selected-flight editor with a persistent action footer. */
.flight-group-editor{width:820px;max-height:90vh;overflow:auto;padding:22px;border-top:4px solid #087e88;color:#173a49}
.flight-group-editor h2{font-size:23px;margin:0 0 6px}.flight-group-editor .group-edit-intro{font-size:13px;margin:0 0 16px;color:#627e8c}
.flight-group-editor .group-edit-section{min-width:0;border:1px solid #dce7eb;border-radius:12px;padding:12px;margin:0 0 12px;background:#f8fbfc}
.flight-group-editor legend{font-size:12px;font-weight:700;color:#285565;padding:0 6px}
.flight-group-editor .formgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.flight-group-editor .group-edit-identity{grid-template-columns:140px 1fr}.flight-group-editor .group-edit-times{margin-top:0}
.flight-group-editor .formgrid label{font-size:12px;font-weight:600;gap:5px}.flight-group-editor .formgrid input,.flight-group-editor .formgrid select{height:39px;min-height:39px;padding:8px 10px;font-size:13px;border-radius:8px;background:#fff}
.flight-group-editor .group-edit-help{font-size:11px;line-height:1.5;color:#637e8a;margin:8px 0 0}.flight-group-editor details{font-size:12px;margin:8px 0}.flight-group-editor [data-summary]{font-size:12px;line-height:1.5;color:#087681;margin:8px 0}.flight-group-editor [data-summary]:empty,.flight-group-editor [data-error]:empty{display:none}
.flight-group-editor .checklabel{font-size:12px;margin:12px 0;display:flex;align-items:center;gap:8px}.flight-group-editor .checklabel input{width:16px;height:16px;min-height:16px;margin:0}.flight-group-editor [data-error]{font-size:12px;color:#b42318}
.flight-group-editor .dialogactions{position:sticky;bottom:-22px;margin:12px -22px -22px;padding:12px 22px;background:#fff;border-top:1px solid #dce7eb;z-index:1}.flight-group-editor .dialogactions button{font-size:13px;min-height:38px;padding:8px 16px}
@media(max-width:650px){.flight-group-editor{padding:16px;max-height:92vh}.flight-group-editor .formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.flight-group-editor .group-edit-identity{grid-template-columns:100px 1fr}.flight-group-editor .dialogactions{bottom:-16px;margin:12px -16px -16px;padding:12px 16px}}

/* Brief feedback that never delays navigation or shared saves. */
@keyframes flightdesk-confirm{from{transform:scale(.8);opacity:.4}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:no-preference){
 .save-feedback[data-state=success] .save-feedback-icon{animation:flightdesk-confirm 220ms ease-out both}
 .station-status[data-state=saved]{animation:flightdesk-confirm 180ms ease-out}
 button{transition:background-color 140ms ease,border-color 140ms ease,box-shadow 140ms ease}
}

/* Consistent, readable controls and quieter page hierarchy. Screen-only. */
@media screen {
 body{font-size:1rem;--muted:#536e7c}
 main h1{font-size:1.65rem;letter-spacing:-.035em}
 main h2{font-size:1.125rem}
 #subtitle{font-size:.875rem;color:#536e7c;max-width:80ch}
 main .heading{margin:18px 0 10px}
 #workspaceNotice{font-size:.75rem;margin:5px 0 12px;padding:4px 10px}
 main .top-navigation button{font-size:.875rem;padding:9px 10px;min-height:40px}
 main .top-navigation{gap:2px}
 main .stat{cursor:default}
 main .stat label,body[data-view=dashboard] #stats .stat label{font-size:.75rem;letter-spacing:.05em}
 main .stat small,body[data-view=dashboard] #stats .stat small{font-size:.75rem}
 main table{font-size:.875rem}
 main th{font-size:.75rem;letter-spacing:.04em}
 main td b,main td button,main .badge,main .flag{font-size:.875rem}
 main td p,main td small,main .tablefoot,main .dashfoot{font-size:.75rem;color:#536e7c}
 main td{padding:8px 12px}
 main .toolbar,main .periodbar{gap:10px;padding:12px 14px}
 main .periodbar label,main .toolbar label,.history-toolbar label{font-size:.875rem;display:grid;gap:5px;color:#435f6e}
 main input,main select,main button{font-size:.875rem;min-height:38px}
 main select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23536e7c' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
 main .periodbar>span{margin-left:auto;font-size:.875rem;color:#234f60}
 .schedule-toolbar{align-items:end}
 .schedule-filters{flex:1 1 550px;align-items:center;flex-wrap:wrap}
 .schedule-filters #search{flex:1 1 210px;max-width:320px}
 .layout-switch{gap:4px;background:#eef4f6;padding:4px;border-radius:9px;align-items:center;flex-wrap:wrap}
 .layout-switch button{border-color:transparent;box-shadow:none;background:transparent;min-height:34px}
 .layout-switch button.primary{background:white;color:#086c77;border-color:#d8e5e9;box-shadow:0 1px 3px #18374712}
 .layout-switch #printBtn{border-left:1px solid #cfdee4;border-radius:0}
 .quiet-button{color:#096d77;background:#f0f8f8}
 .schedule-guide{border:1px solid #d6e5e9;background:#f7fbfc;border-radius:10px;margin:10px 0;font-size:.875rem}
 .schedule-guide summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;font-weight:650;list-style:none}
 .schedule-guide summary:before{content:'+';color:#087e87}.schedule-guide[open] summary:before{content:'−'}
 .schedule-guide summary>span:first-child{margin-right:auto}
 .guide-latest{font-size:.75rem;font-weight:500;color:#536e7c}
 .schedule-guide>div{padding:0 14px 12px}.schedule-guide p{margin:5px 0;font-size:.875rem}
 .updates-workspace{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(0,1.6fr);gap:18px;align-items:start}
 .updates-workspace>section{min-width:0}
 .updates-workspace .update-alt-title{margin:0 0 10px}
 .updates-workspace #updateQueue{margin-top:0}
 .updates-workspace .dash-empty{padding:28px 18px}
 .updates-workspace .update-footnote{font-size:.75rem;padding:10px 14px;border-top:1px solid #e4ecef}
 main .update-steps>div,main .update-steps>button{background:#fff;border-color:#dce5e9;text-align:left;padding:10px 14px}
 main .update-steps b{font-size:.875rem;color:#234e5e}main .update-steps span{font-size:.75rem;color:#536e7c}
 main .update-option>summary{font-size:.875rem;padding:12px 14px}
 main .history-entry{border-left:3px solid #77b4bc;margin:10px 0;padding:12px 14px;background:#f7fafb}
 main .history-entry>small{font-size:.75rem}
 .history-toolbar{flex-wrap:wrap;align-items:end;padding:10px 0 14px;border-bottom:1px solid #e1eaee}
 .history-toolbar>label:first-child{flex:1 1 240px}.history-toolbar input{width:100%}
 main .customer-register .toolbar{justify-content:flex-start}
 #customerSearch{margin-left:auto;width:280px;max-width:100%}
 .customer-register .aircraft-type-badge{font-size:.75rem;padding:3px 8px}
 main .agent-inbox-heading{gap:12px;align-items:center;flex-wrap:wrap}
 main .agent-draft-picker button strong{font-size:.875rem}main .agent-draft-picker span{font-size:.75rem}
 body[data-view=dashboard] .dashcontrols label,body[data-view=dashboard] .dashcontrols input,body[data-view=dashboard] .dashcontrols select,body[data-view=dashboard] .dashcontrols button{font-size:.875rem}
 body[data-view=dashboard] .dashpanel h2{font-size:1.125rem}
 body[data-view=dashboard] .dashpanel>p:not(.dashhint),body[data-view=dashboard] .dashhint,body[data-view=dashboard] .dashkey{font-size:.75rem}
 body[data-view=dashboard] .dashservice .line{font-size:.875rem}
 dialog label,#visitForm .grid>label,#visitForm>.flight-times label,.flight-group-editor .formgrid label{font-size:.875rem}
 #visitForm .grid input,#visitForm .grid select,#visitForm .modeLabel select,.flight-group-editor .formgrid input,.flight-group-editor .formgrid select{font-size:.875rem;min-height:38px}
 #visitForm>.checklabel,#visitForm>.dialogactions button,.flight-group-editor .checklabel,.flight-group-editor .dialogactions button,#flightMovementField,#flightMovementField select{font-size:.875rem}
 #editSource,#flightCodePreview,.flight-group-editor .group-edit-help,#flightMoreDetails summary span{font-size:.75rem}
 #flightMoreDetails summary,.flight-group-editor legend{font-size:.875rem}
 main>#stationBar .station-status{flex:0 1 190px;max-width:190px;min-width:0;white-space:normal;line-height:1.3}
 main>#stationBar #stationSyncStatus{font-size:.75rem;overflow-wrap:anywhere}
 main>#stationBar .station-signout{font-size:.875rem}
 .skip-link{position:fixed;left:16px;top:-70px;background:#153947;color:white;padding:12px 18px;z-index:100;border-radius:8px}.skip-link:focus{top:12px}
 @media(max-width:1100px){.updates-workspace{grid-template-columns:1fr}.updates-workspace .update-alt-title{margin-top:4px}.top-navigation{justify-content:flex-start!important}}
 @media(max-width:700px){main .toolbar,main .periodbar{padding:10px}.layout-switch{width:100%}.schedule-filters{flex-basis:100%}.schedule-filters #search{max-width:none;width:100%}.guide-latest{display:block;text-align:right}.history-toolbar label{width:100%}#customerSearch{margin-left:0;width:100%}main .periodbar>span{width:100%;margin:0}.updates-workspace{gap:12px}}
}

@media screen {
 .updates-workspace>section:first-child>.dashpanel>.actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .updates-workspace>section:first-child>.dashpanel>.actions button{white-space:nowrap;padding-inline:8px}
 body:is([data-view=review],[data-view=master]) #stats .stat{display:grid;grid-template-columns:1fr auto;gap:3px 10px;align-items:center;min-height:72px;padding:12px 14px}
 body:is([data-view=review],[data-view=master]) #stats .stat strong{grid-column:2;grid-row:1 / 3;margin:0}
 main .change-detail{white-space:normal;max-width:270px;line-height:1.4}
 @media(max-width:700px){body:is([data-view=review],[data-view=master]) #stats .stat{display:block}body:is([data-view=review],[data-view=master]) #stats .stat strong{margin:5px 0}}
}

@media screen and (max-width:700px){main .update-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}main .update-steps>div,main .update-steps>button{padding:10px 8px;min-width:0}main .update-steps b{font-size:.875rem}main .update-steps span{font-size:.75rem;line-height:1.4}}

/* Station directory: one card per workspace, account roles kept together. */
@media screen {
 .station-directory{max-width:1400px;margin:18px auto}
 .station-directory-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
 .station-directory-heading h2{display:flex;align-items:center;gap:10px;margin:0 0 5px;font-size:1.125rem}
 .station-directory-heading p{font-size:.875rem}
 .station-count{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:8px;color:#087680;background:#e2f1f2;font-size:.875rem}
 .station-directory-note{color:#607b89;font-size:.75rem}
 .station-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
 main .station-card{padding:0;background:#fff;border:1px solid #d9e5ea;border-radius:14px;overflow:hidden;box-shadow:0 3px 12px #173a4805}
 main .station-card.is-current{border-color:#75b4bc;box-shadow:0 0 0 1px #75b4bc20}
 .station-card-heading{display:flex;gap:12px;align-items:center;padding:18px;background:linear-gradient(110deg,#f7fafb,#fff)}
 .station-code-tile{display:grid;place-items:center;width:49px;height:49px;flex:none;border:1px solid #d4e4e9;border-radius:12px;font-size:1rem;font-weight:750;letter-spacing:.06em;color:#1c4d60;background:#eaf2f5}
 .is-current .station-code-tile{background:#153e4d;border-color:#153e4d;color:#fff}
 .station-card-heading h2{font-size:1.125rem;margin:0 0 3px;overflow-wrap:anywhere}
 .station-card-meta{font-size:.75rem;color:#607b89}
 .station-current-label{font-size:.75rem;font-weight:600;color:#087680;background:#e2f3f1;padding:4px 8px;border-radius:20px;margin-left:auto}
 .station-credentials{display:grid;grid-template-columns:1fr 1fr;padding:16px 18px;gap:14px;border-top:1px solid #edf2f4}
 .station-credentials>div{min-width:0}.station-credentials>div+div{padding-left:14px;border-left:1px solid #e5edef}
 .station-role-label{display:block;color:#087680;font-size:.875rem;font-weight:650;margin-bottom:7px}.station-role-viewer{color:#527080}
 .station-credentials strong{display:block;font-size:.875rem;letter-spacing:.02em;color:#1c3d4c;overflow-wrap:anywhere}
 .station-credentials small{display:block;font-size:.75rem;line-height:1.5;color:#607b89;margin-top:5px}
 .station-contact{display:flex;flex-direction:column;gap:3px;padding:11px 18px;border-top:1px solid #edf2f4;background:#fbfcfd;font-size:.875rem;overflow-wrap:anywhere}
 .station-contact>span:first-child{font-size:.75rem;color:#607b89}
 .station-manager-note{display:flex;align-items:center;gap:14px;margin:18px 0;padding:15px 18px;background:#eaf2f6;border:1px solid #d7e5ec;border-radius:12px}
 .station-manager-icon{display:grid;place-items:center;width:38px;height:38px;background:#fff;border-radius:10px;color:#3a7188;flex:none}.station-manager-icon svg{width:23px;height:23px}
 .station-manager-note h2{font-size:.875rem;margin:0 0 3px}.station-manager-note p{font-size:.875rem}
 .station-account-name{margin-left:auto;font-weight:650;font-size:.875rem;color:#345f72;letter-spacing:.03em}
 .station-add summary{display:flex;align-items:center;gap:12px;padding:16px 18px;cursor:pointer;list-style:none;font-size:.875rem;font-weight:650}
 .station-add summary::-webkit-details-marker{display:none}.station-add summary small{display:block;font-size:.75rem;font-weight:400;color:#607b89;margin-top:3px}
 .station-add-plus{font-size:24px;font-weight:400;display:grid;place-items:center;width:32px;height:32px;background:#edf6f6;color:#087680;border-radius:8px;flex:none}
 .station-add[open] .station-add-plus{transform:rotate(45deg)}
 #addStationForm{border-top:1px solid #e4ecef;padding:16px 18px}
 .station-add-fields{display:grid;grid-template-columns:140px minmax(200px,1fr) auto;gap:14px;align-items:end;max-width:850px}
 .station-add-fields label{display:grid;gap:6px;font-size:.875rem;color:#435f6e}.station-add-fields input{width:100%;min-width:0}.station-add-fields input[name=code]{text-transform:uppercase}
 #addStationError:empty{display:none}#addStationError{margin-top:10px;color:#b42318}
 @media(max-width:1100px){.station-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @media(max-width:650px){.station-card-grid{grid-template-columns:1fr}.station-directory-note{display:none}.station-manager-note{flex-wrap:wrap}.station-account-name{margin-left:52px}.station-add-fields{grid-template-columns:100px 1fr}.station-add-fields button{grid-column:1/-1}.station-directory{margin-top:12px}}
}

#flightWeekdayInfo{margin:12px 0;padding:10px 12px;border:1px solid #d5e2e7;border-radius:10px}#flightWeekdayInfo legend{font-size:14px;font-weight:700;color:#244858}#flightWeekdayInfo .weekday-info-options{display:flex;flex-wrap:wrap;gap:6px}#flightWeekdayInfo .weekday-info-options label{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #d5e2e7;border-radius:7px;font-size:14px;cursor:pointer;margin:0}#flightWeekdayInfo input{width:16px;height:16px;margin:0;accent-color:#087f8c}#flightWeekdayInfo label:has(input:checked){background:#e4f5f5;border-color:#087f8c;color:#135263}#flightWeekdayInfo small{display:block;margin-top:7px;font-size:12px}

.flight-group-editor .weekday-info-options{display:flex;flex-wrap:wrap;gap:6px}.flight-group-editor .weekday-info-options label{display:flex;align-items:center;gap:6px;border:1px solid #d5e2e7;border-radius:7px;padding:8px 10px;cursor:pointer}.flight-group-editor .weekday-info-options input{width:16px;height:16px;margin:0;accent-color:#087f8c}.flight-group-editor .weekday-info-options label:has(input:checked){background:#e4f5f5;border-color:#087f8c}

/* Focused airline-source review workspace. */
@media screen {
#content:has(.schedule-editor){display:flex;flex-direction:column;gap:12px}
#content:has(.schedule-editor)>*{min-width:0;margin-block:0!important}
main:has(.schedule-editor):not(:has(.update-approval)) #stats{display:none}
main:has(.schedule-editor) .hero{margin-bottom:12px}
.review-file-header{padding:18px 20px!important;border-top:3px solid #11858d}
.review-file-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.review-file-header h2{font-size:20px;margin:14px 0 4px;overflow-wrap:anywhere}
.review-file-header>p{margin:0 0 12px;color:#536d7b}
.review-steps{display:flex;gap:6px;list-style:none;margin:0;padding:0;color:#647b87;font-size:14px}
.review-steps li{padding:6px 12px;border-radius:20px;background:#f2f6f8}
.review-steps [aria-current]{background:#dff2f2;color:#076970;font-weight:700}
.review-file-header .station-review-notice{display:flex;align-items:center;gap:12px;padding:9px 12px;margin:10px 0;font-size:14px;border:0;background:#eef6f7}
.review-source-details summary,.review-reading-mode summary,.review-attachments>summary,.review-manual-correction>summary,.source-help>summary{cursor:pointer;font-size:14px;color:#355968;font-weight:600}
.review-source-details .email-message{max-height:320px;overflow:auto;margin-top:12px}
.review-reading-mode{align-self:flex-start}
.review-reading-mode .actions{margin-top:8px}
.review-attachments{padding:12px 16px!important;background:#f8fafb;order:8}
.review-attachments>summary{display:list-item}
.review-attachments>summary span{font-size:13px;color:#607785;margin-left:8px}
.review-attachments h3{margin-top:16px}
.schedule-editor{padding:20px!important}
.schedule-editor>h2{font-size:18px;margin:0 0 4px}
.schedule-editor>p{font-size:14px;margin:6px 0 12px}
.schedule-editor .review-settings{display:grid;grid-template-columns:1.2fr 1fr 1.25fr;gap:12px;margin:16px 0 10px}
.schedule-editor label{font-size:14px;font-weight:600;color:#496473}
.schedule-editor select,.schedule-editor input:not([type=checkbox]){min-height:38px;padding:8px 10px;font-size:14px;border-radius:8px}
.schedule-editor select:disabled{opacity:1;color:#08717a;background:#eef7f7;border-color:#b9dfe0}
.schedule-editor>.notice{padding:10px 12px;font-size:14px;margin:8px 0;border-radius:8px}
.schedule-editor>.checklabel{display:flex;align-items:center;gap:8px;font-size:14px;margin:12px 0 18px;font-weight:400}
.source-review-table{border:1px solid #dce6eb;border-radius:12px;overflow:hidden;margin:16px 0;background:#fff}
.source-table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 16px}
.source-table-toolbar h3{margin:0;font-size:17px}.source-table-toolbar p{margin:4px 0 0;font-size:14px;color:#607785}
.source-search{display:grid;gap:4px;width:260px;max-width:100%}
.source-table-meta{display:flex;justify-content:space-between;gap:12px;background:#f2f7f9;padding:8px 16px;color:#536d7b;font-size:13px}
.source-table-scroll{max-height:480px;overflow:auto;scrollbar-width:thin}
.attachment-edit-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}
.attachment-edit-table th{position:sticky;top:0;z-index:1;background:#eaf2f5;color:#264b5d;padding:10px 8px;font-size:13px;text-transform:none;letter-spacing:0;white-space:nowrap}
.attachment-edit-table td{padding:6px!important;border-bottom:1px solid #e8eff2;vertical-align:top}
.attachment-edit-table tr:nth-child(odd) td{background:#f9fbfc}
.attachment-edit-table input{width:100%;min-width:70px;max-width:150px;background:#fff;box-sizing:border-box}
.attachment-edit-table input[type=date]{min-width:132px}
.attachment-edit-table td:first-child input{min-width:100px;font-weight:700;color:#194453}
.source-cell-hint{display:block;font-size:12px;line-height:1.4;color:#08727a;margin-top:3px;white-space:nowrap;min-height:0}
.source-cell-hint:empty{display:none}
.source-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #e2ebee;font-size:13px;color:#536d7b}
.source-pagination>div{display:flex;align-items:center;gap:10px}
.source-pagination button{padding:6px 10px;font-size:13px;min-height:32px}
.source-help{padding:10px 16px;border-top:1px solid #e2ebee;background:#fafcfd}
.source-help p{font-size:14px}.source-empty{padding:20px}
.review-manual-correction{padding:12px 0;border-bottom:1px solid #e2ebee;margin:12px 0}
.review-manual-correction>p{font-size:14px}
.review-preview-action{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0 0;margin-top:12px}
.review-preview-action>span{font-size:14px;color:#607785}
.review-preview-action button{padding:11px 22px}
#content:has(.schedule-editor)>.review-saved-history{order:9}
@media(max-width:850px){.schedule-editor .review-settings{grid-template-columns:1fr}.review-file-top{flex-wrap:wrap}.review-steps{order:3;width:100%;justify-content:center}.source-table-toolbar{align-items:stretch;flex-direction:column}.source-search{width:100%}.source-table-meta,.source-pagination,.review-preview-action{flex-wrap:wrap}.review-file-header .station-review-notice{align-items:flex-start;flex-direction:column;gap:3px}.review-preview-action button{width:100%}}
}
@media screen {
.review-file-header{padding:12px 16px!important}
.review-file-header h2{margin-top:10px;font-size:19px}
.review-file-header .station-review-notice{margin:8px 0;padding:6px 10px}
.review-file-header>p{margin-bottom:6px;font-size:14px}
.review-reading-mode{order:7}
.schedule-editor{padding:16px!important}
.schedule-editor>h2+p{display:none}
.schedule-editor .review-settings{margin-top:12px}
.review-repeat-settings{margin:10px 0;font-size:14px}
.review-repeat-settings summary{cursor:pointer;color:#355968;font-weight:600}
.review-repeat-settings .checklabel{display:flex;gap:8px;margin:12px 0}
.source-table-scroll{max-height:400px}
}
@media screen {.attachment-edit-table input.source-date{min-width:132px}}
/* Each proposed visit keeps the flight number beside its sector and clock. */
/* Compact linked station visit. Routes wrap together on small screens. */
.proposal-pair-cell{min-width:300px;vertical-align:middle}
.proposal-pair-cell>strong{display:block;color:#183d4d;font-size:15px;white-space:nowrap;margin-bottom:5px}
.proposal-routes{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;color:#456674}
.proposal-route{white-space:nowrap}
.proposal-route b{color:#087b83;font-variant-numeric:tabular-nums}
.proposal-next-date{display:inline-block;margin-left:6px;color:#8a551a}
.proposal-visit-date{white-space:nowrap;font-variant-numeric:tabular-nums}
.proposal-leg-empty{color:#637985;font-size:12px}
.proposal-legend{font-size:14px;color:#526f7d}

/* Keep all edit matches in one scrollable list, with controls in view. */
.flight-edit-picker[open]{display:flex;flex-direction:column;max-height:90dvh;overflow:hidden}
.flight-edit-picker>h2,.flight-edit-picker>p,.flight-edit-picker>.formgrid,.flight-edit-picker>.actions,.flight-edit-picker>.dialogactions{flex-shrink:0}
.flight-edit-picker .flight-delete-list{flex:1 1 auto;min-height:100px;max-height:48dvh;overscroll-behavior:contain}
.flight-edit-picker .flight-delete-list th{z-index:1}
@media(max-height:600px){.flight-edit-picker[open]{overflow:auto}.flight-edit-picker .flight-delete-list{flex:none;height:35dvh}}

.source-selection-bar{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:12px;background:#f1f7f8;border-radius:10px;margin:12px 0}.source-selection-bar label{display:flex;align-items:center;gap:8px;margin:0}.source-selection-bar input,[data-source-select]{width:18px;height:18px;accent-color:#087e87}.source-selection-bar button{margin-left:auto}.source-delete-list{max-height:145px;overflow:auto;padding-left:24px;font-size:14px;overflow-wrap:anywhere}.source-delete-protection{padding:12px;background:#edf8ef;color:#267340;border-radius:8px;font-weight:600}.source-delete-feedback .save-feedback-message{white-space:pre-line}
