.application-shell.timeline-page #page-content { display:flex; overflow:hidden; }
.application-shell.timeline-page #page-content > #view-timeline:not([hidden]) { display:flex !important; flex-direction:column; min-width:0; width:100%; min-height:0; }
.application-shell.timeline-page.timeline-map:not(.map-context) #operation-layout { grid-template-rows:minmax(180px,42%) minmax(0,1fr); }
.application-shell.timeline-page.timeline-map:not(.map-context) #map-stage { display:grid; grid-column:1; grid-row:1; visibility:visible; }
.application-shell.timeline-page.timeline-map:not(.map-context) #operations-dock { grid-row:2; grid-column:1; }
.application-shell.timeline-page.timeline-map.context-open:not(.map-context) #context-pane { grid-row:1 / 3; }
.application-shell.timeline-page .dock-heading { display:none; }
#view-timeline { background:#f8fbfc; }
.tl-toolbar { display:flex; justify-content:space-between; gap:12px; padding:17px 20px 10px; flex-wrap:wrap; }
.tl-heading .eyebrow { color:#547986; font-size:10px; letter-spacing:.12em; }
.tl-heading h1 { font-size:21px; color:#224957; margin:5px 0; }
.tl-heading p { margin:0; font-size:12px; color:#657f8b; }
.tl-actions { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
#tl-options { display:none; }
.tl-controls { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; padding:8px 20px 13px; border-bottom:1px solid #d9e5e9; }
.tl-controls > label:not(.tl-check) { display:grid; gap:5px; color:#4b6c79; font-size:11px; }
.tl-controls select { width:auto; min-height:36px; padding:7px 24px 7px 9px; font-size:12px; max-width:225px; }
.tl-zoom { display:flex; gap:4px; }
.tl-zoom .button { min-width:35px; }
.tl-check { display:flex; align-items:center; gap:6px; font-size:12px; min-height:36px; color:#426575; }
.tl-check input { width:16px; height:16px; }
.tl-legend { display:flex; flex-wrap:wrap; gap:7px 15px; padding:10px 20px; font-size:11px; color:#5a7784; }
.tl-legend span { display:flex; align-items:center; gap:5px; }
.tl-legend i { width:14px; height:8px; border-radius:2px; }
.tl-legend .drive,.tl-activity.drive { background:#238594; }
.tl-legend .service,.tl-activity.service { background:#9a6fc0; }
.tl-legend .rest,.tl-activity.rest { background:#5c7fb4; }
.tl-legend .wait,.tl-activity.wait { background:#d3a052; }
#tl-stamp { margin-left:auto; }
#tl-scroll { overflow:auto; flex:1; min-height:100px; position:relative; overscroll-behavior:contain; scrollbar-width:thin; border-top:1px solid #d9e5e9; }
.tl-board { width:calc(var(--tl-label) + var(--tl-time-width)); min-width:100%; }
.tl-time-header { display:flex; height:47px; position:sticky; top:0; z-index:6; background:#eff5f7; border-bottom:1px solid #c9dce2; }
.tl-axis-label { width:var(--tl-label); position:sticky; left:0; flex-shrink:0; z-index:8; background:#eaf2f5; padding:17px 12px; font-size:11px; color:#537584; border-right:1px solid #c9dce2; }
.tl-ticks { position:relative; width:var(--tl-time-width); }
.tl-ticks > span { position:absolute; top:12px; padding-left:7px; border-left:1px solid #c5d8e0; font-size:10px; color:#517180; white-space:nowrap; }
.tl-now-label { position:absolute; top:27px; transform:translateX(-50%); padding:3px 5px; border-radius:3px; font-size:10px; color:#fff; background:#df7041; z-index:9; }
.tl-row { display:flex; min-height:118px; border-bottom:1px solid #dae6ea; }
.tl-row-label { position:sticky; left:0; z-index:4; width:var(--tl-label); min-width:var(--tl-label); padding:12px; background:#fff; border-right:1px solid #d0e0e6; }
.tl-row.selected .tl-row-label { background:#e7f3f4; box-shadow:inset 3px 0 #238594; }
.tl-row-label button { display:grid; width:100%; gap:5px; text-align:left; border:0; background:transparent; padding:0; color:#234e60; }
.tl-row-label strong { font-size:13px; }
.tl-row-label span { font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tl-row-label > small { display:block; margin:8px 0; color:#6a8590; font-size:10px; }
.tl-row-label .tl-link { font-size:11px; color:#237d89; min-height:24px; }
.tl-track { position:relative; min-width:var(--tl-time-width); background:repeating-linear-gradient(to right, transparent 0, transparent calc(var(--tl-grid) - 1px), #e5edf0 calc(var(--tl-grid) - 1px), #e5edf0 var(--tl-grid)); }
.tl-stage { position:absolute; top:13px; height:43px; border:1px dashed #81aeb8; border-left:3px solid #278290; background:#e8f4f5; color:#275c6b; border-radius:4px; text-align:left; overflow:hidden; padding:6px 8px; white-space:nowrap; }
.tl-stage strong,.tl-stage small { display:block; overflow:hidden; text-overflow:ellipsis; }
.tl-stage strong { font-size:11px; }
.tl-stage small { font-size:10px; margin-top:4px; }
.tl-stage.completed { background:#e7edf1; border-style:solid; border-left-color:#819ba7; color:#5e7783; }
.tl-stage.current { background:#d3efee; border-left:4px solid #147e84; }
.tl-activity { position:absolute; top:65px; height:19px; padding:0; border:1px solid #ffffff50; border-radius:2px; min-width:3px; }
.tl-activity.forecast { border:1px dashed #fff; opacity:.7; }
.tl-activity:hover,.tl-stage:hover { filter:brightness(.93); outline:2px solid #174f64; z-index:3; }
.tl-now-line { position:absolute; top:0; bottom:0; width:2px; background:#df7041; pointer-events:none; z-index:3; }
.tl-row-note { position:absolute; bottom:10px; left:8px; font-size:10px; color:#84959e; white-space:nowrap; }
.tl-footnote { margin:0; padding:9px 20px; font-size:10px; line-height:1.5; color:#728a94; border-top:1px solid #dce6eb; }
.tl-error { color:#aa472c; background:#fff0e7; padding:10px; font-size:12px; line-height:1.5; }
#tl-finance-summary { padding:7px 20px; display:flex; gap:8px 16px; flex-wrap:wrap; background:#f1f7ee; font-size:11px; color:#456254; max-height:100px; overflow:auto; }
#tl-finance-summary[hidden] { display:none; }
#tl-finance-summary span { display:grid; gap:5px; }
#tl-finance-summary > small { flex-basis:100%; color:#758675; }
.tl-stage-detail h2 { font-size:19px; color:#234f60; margin:9px 0; }
.tl-stage-detail > p { font-size:12px; color:#66808d; }
.tl-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; margin:23px 0; }
.tl-facts div { min-width:0; }
.tl-facts dt { font-size:11px; color:#78909a; margin-bottom:5px; }
.tl-facts dd { margin:0; font-size:14px; color:#2b5363; }
.tl-facts small { display:block; font-size:10px; margin-top:6px; color:#79909b; }
.tl-cost-editor { margin-top:20px; border:1px solid #d3e1e6; border-radius:5px; padding:12px; }
.tl-cost-editor summary { cursor:pointer; font-size:14px; color:#286271; min-height:36px; }
.tl-cost-editor summary small { display:block; margin:7px 0; font-size:11px; color:#8296a1; }
.tl-finance-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.tl-finance-fields label,.tl-note { display:grid; gap:6px; min-width:0; font-size:12px; color:#527282; }
.tl-finance-fields input,.tl-finance-fields select,.tl-note textarea { width:100%; min-width:0; font-size:14px; }
.tl-note { margin-top:10px; }
.tl-cost-result { padding:12px; font-size:12px; line-height:1.8; color:#28616e; background:#edf7f7; }
.tl-stage-list { display:grid; gap:10px; }
.tl-stage-list button { display:grid; gap:7px; text-align:left; width:100%; padding:15px; border:1px solid #d4e3e7; border-left:3px solid #418c99; border-radius:5px; background:#f6fafb; color:#315c6d; }
.tl-stage-list small,.tl-stage-list span { font-size:11px; color:#6a8692; }
@media(min-width:1001px) { .application-shell.timeline-page.timeline-map.context-open:not(.map-context) #operation-layout { grid-template-columns:minmax(0,1fr) var(--context-width); } }
@media(min-width:761px) and (max-width:1200px) { .application-shell.timeline-page.timeline-map:not(.context-open):not(.map-context) #operation-layout { grid-template-rows:minmax(150px,30%) minmax(0,1fr); } }
@media(max-width:1000px) {
 .application-shell.timeline-page.context-open:not(.map-context) #operations-dock,.application-shell.timeline-page.context-open:not(.map-context) #map-stage { display:none; }
 .application-shell.timeline-page.context-open:not(.map-context) #operation-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
 .application-shell.timeline-page.context-open:not(.map-context) #context-pane { grid-column:1; grid-row:1; }
}
@media(max-width:760px) {
 .application-shell.timeline-page.timeline-map:not(.context-open):not(.map-context) #operation-layout { grid-template-rows:minmax(130px,30%) minmax(0,1fr); }
 .tl-toolbar { padding:10px 10px 4px; gap:5px; }
 .tl-heading h1 { font-size:17px; margin:4px 0; }
 .tl-heading .eyebrow,.tl-heading p { display:none; }
 .tl-toolbar .button { min-height:38px; font-size:11px; padding:6px 9px; }
 .tl-controls { gap:7px; padding:7px 10px; }
 #tl-options { display:inline-flex; }
 #view-timeline:not(.tl-options-open) .tl-range { display:none; }
 .tl-controls > label:first-child { flex-basis:100%; }
 .tl-controls select { max-width:none; width:100%; font-size:16px; min-height:40px; }
 .tl-controls > label:not(.tl-check) { flex:1; }
 .tl-controls > label:first-child { flex:1 0 100%; }
 .tl-controls .tl-check { font-size:11px; min-height:32px; }
 .tl-zoom .button { min-height:40px; }
 .tl-legend { padding:7px 10px; gap:5px 9px; font-size:10px; }
 #tl-stamp,.tl-footnote,.tl-forecast-key { display:none !important; }
 .tl-row-label { padding:11px 8px; }
 .tl-row-label strong { font-size:12px; }
 .tl-row-label > small { font-size:9px; }
 .tl-stage-list button { min-height:75px; }
 .tl-finance-fields input,.tl-finance-fields select,.tl-note textarea { font-size:16px; min-height:42px; }
 #tl-finance-summary { padding:7px 10px; max-height:65px; }
}
@media(max-height:650px) { .application-shell.timeline-page.timeline-map:not(.context-open):not(.map-context) #operation-layout { grid-template-rows:minmax(0,1fr); } .application-shell.timeline-page.timeline-map:not(.context-open):not(.map-context) #map-stage { display:none; } .application-shell.timeline-page.timeline-map:not(.context-open):not(.map-context) #operations-dock { grid-row:1; } .tl-heading { display:none; } .tl-toolbar { padding:5px 10px; } .tl-controls > label:first-child { flex-basis:auto; } }
@media(max-height:650px) and (min-width:761px) { #tl-options { display:inline-flex; } #view-timeline:not(.tl-options-open) .tl-range { display:none; } .tl-footnote { display:none; } .tl-controls { padding:5px 10px; gap:7px; } .tl-controls > label:first-child select { max-width:190px; } #tl-finance-summary { max-height:35px; padding:5px 10px; } #tl-finance-summary > small { display:none; } #tl-finance-summary span { display:block; } .tl-legend { padding:5px 10px; } }
