:root{--bg:#f3f3ef;--white:#fff;--ink:#172431;--muted:#69747d;--light:#e6e8e6;--navy:#1b3552;--blue:#315a87;--red:#a5352b;--amber:#956620;--amberbg:#f9f2e5;--soft:#f7f8f8}
*{box-sizing:border-box}
html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
body{margin:0}button,input{font:inherit}button{cursor:pointer}
.app{display:flex;min-height:100vh}
.sidebar{width:258px;flex-shrink:0;display:flex;flex-direction:column;background:#eaece9;border-right:1px solid #dbe0de;padding:26px 16px 24px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:12px;padding:7px 10px 32px}.brandmark{height:43px;width:43px;min-width:43px;border-radius:14px;display:grid;place-items:center;background:var(--navy);color:white;font-size:24px;font-weight:750;letter-spacing:-.08em}
.brand strong{font-size:20px;letter-spacing:-.65px}.brand small{display:block;font-size:9px;font-weight:750;letter-spacing:1.45px;color:#6d7982;margin-top:4px}
.navhint,.kicker,.eyebrow{font-size:10px;letter-spacing:1.55px;font-weight:760;color:#7d888e}.navhint{margin:14px 15px}
.desktopnav{display:grid;gap:5px}.navlink{width:100%;background:transparent;border:0;display:flex;align-items:center;text-align:left;color:#4e5d68;border-radius:12px;padding:14px 13px;font-size:15px;font-weight:650;gap:13px}.navlink:hover{background:#dfe4e6}.navlink.selected{background:var(--navy);color:white}
.navicon{width:25px;font-size:22px;font-weight:400;text-align:center}.navarrow{margin-left:auto;opacity:.55;font-size:18px}
.sidetip{margin-top:auto;border-top:1px solid #d1d9d9;padding:23px 12px 2px}.sidetip strong{font-size:11px;letter-spacing:1px;color:#6c7780}.sidetip p{line-height:1.55;font-size:12px;color:#53626e}.sidetip span{font-size:11px;color:#869198;line-height:1.5}
.main{flex:1;min-width:0;max-width:1600px;margin:0 auto}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e2de;padding:0 37px}
.topbrand{display:flex;align-items:center;gap:12px}.topbrand .brandmark{display:none}.topbrand b{font-size:17px;letter-spacing:-.45px}.topbrand small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.headright{display:flex;align-items:center;gap:15px}.sourcepill{border:1px solid #d9dcdb;background:white;border-radius:100px;color:#596874;font-size:12px;font-weight:650;padding:9px 13px;white-space:nowrap}.sourcepill i{display:inline-block;width:8px;height:8px;border-radius:100%;background:#c79348;margin-right:6px}.clock{font-size:12px;color:var(--muted)}
main{max-width:1270px;margin:0 auto;padding:36px 38px 65px}.page[hidden],.outage[hidden]{display:none}
.pageheading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:23px;gap:20px}.pageheading h1{font-size:42px;letter-spacing:-1.9px;line-height:1.1;margin:8px 0 8px;font-weight:730}.pageheading p{margin:0;font-size:15px;color:#65727c;line-height:1.5}.headline-meta{font-size:10px;letter-spacing:1.2px;color:#80909a;white-space:nowrap}
.truth-banner{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--amberbg);border:1px solid #eadbbd;border-radius:15px;margin-bottom:20px}.truthdot{width:11px;height:11px;background:#c58f3d;border-radius:50%;flex-shrink:0}.truth-banner strong{display:block;font-size:13px;color:#775523}.truth-banner span:not(.truthdot){display:block;font-size:12px;color:#896f4e;margin-top:3px}
.outage{position:sticky;top:0;background:#a7352f;color:white;padding:15px 18px;z-index:6;font-size:13px;font-weight:750;line-height:1.4}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric{background:white;border:1px solid #e1e4e2;border-radius:17px;padding:19px 18px;min-height:118px;display:flex;flex-direction:column}.metric span{font-size:12px;font-weight:680;color:#5d6a75}.metric strong{font-size:34px;letter-spacing:-1.7px;line-height:1;margin:12px 0 8px}.metric small{font-size:11px;color:#89939a;line-height:1.25}
.two-col{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;margin:16px 0}.panel{background:white;border:1px solid #e0e3e2;border-radius:18px;margin:17px 0;overflow:hidden}.two-col .panel{margin:0}.paneltop{padding:22px 23px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid #eff0ee}.paneltop h2{font-size:18px;letter-spacing:-.5px;margin:6px 0 0}.panelmark{display:grid;place-items:center;border:1px solid #e6e8e6;width:28px;height:28px;border-radius:9px;color:#7b8994;font-weight:800}
.stack{display:grid}.item{display:flex;align-items:flex-start;gap:13px;padding:16px 22px;border-bottom:1px solid #eef0ef}.item:last-child{border-bottom:0}.itembadge{width:30px;height:30px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;background:#e9edf2;color:#44658a;font-weight:800}.itembadge.warn{background:#f8ebdf;color:#b36b30}.itembadge.error{background:#f8e7e5;color:#a93b31}.itembody{flex:1;min-width:0}.item strong{font-size:13px;line-height:1.45;display:block}.item p{font-size:12px;margin:4px 0 0;color:#74818b;line-height:1.45}.itemtime{font-size:11px;white-space:nowrap;color:#89939a}.empty{padding:24px;font-size:13px;color:#7b8790;line-height:1.65}.linkbutton{border:0;background:none;color:#315a87;font-weight:700;font-size:13px;white-space:nowrap}
.work-brief{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:15px;gap:10px}.briefbox{background:var(--soft);border-radius:11px;padding:16px}.briefbox strong{font-size:20px}.briefbox span{display:block;color:#75818b;font-size:12px;margin-top:3px}
.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:22px 0 15px}.searchwrap{flex:1;min-width:260px;height:52px;background:white;border:1px solid #d9dddd;border-radius:14px;display:flex;align-items:center;padding:0 16px;gap:11px}.searchwrap span{font-size:23px;color:#7d8992}.searchwrap input{width:100%;background:none;border:0;outline:0;font-size:15px;color:var(--ink)}
.filters{display:flex;background:#e7eae8;border-radius:13px;padding:4px;gap:3px}.filters button{border:0;background:transparent;padding:12px 14px;border-radius:10px;font-size:12px;font-weight:710;color:#6f7b82;white-space:nowrap}.filters button.active{background:var(--navy);color:white}
.listmeta{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#7e8a92;margin:15px 2px}.worklist{background:white;border:1px solid #dfe3e2;border-radius:18px;overflow:hidden}.workrow{border-bottom:1px solid #e8ebea}.workrow:last-child{border-bottom:0}.workbutton{width:100%;display:flex;gap:14px;align-items:center;text-align:left;padding:15px 18px;background:none;border:0}.workbutton:hover{background:#f8f9f8}.initials{display:grid;place-items:center;border-radius:12px;flex-shrink:0;width:45px;height:45px;background:#eef3f7;border:1px solid #dce5ec;color:#52708f;font-weight:740;font-size:12px}.initials.lab{background:#edf1e9;border-color:#dfe7d9;color:#5a7b5b}.workbody{min-width:0;flex:1}.workbody strong{font-size:15px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workbody small{font-size:12px;color:#84909a;display:block;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workright{display:flex;align-items:center;gap:10px}.statuschip{border-radius:100px;background:#f7f0e6;color:#926623;font-size:11px;font-weight:710;padding:6px 10px;white-space:nowrap}.workchev{font-size:20px;color:#98a0a6}.details{background:#f8f9f8;padding:16px 22px 20px 77px;border-top:1px solid #e8eceb;font-size:12px;color:#61707b;line-height:1.55}.details p{margin:0 0 8px}.details strong{color:#394b59}.details code{word-break:break-word;font-size:11px}.details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.machine-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.machine{background:white;border:1px solid #e0e3e2;border-radius:16px;padding:20px;min-height:132px}.machine .symbol{font-size:22px;color:#315a87}.machine strong{display:block;font-size:17px;margin-top:10px}.machine p{font-size:12px;color:#71808b;line-height:1.45}.notice{background:#fbf2ea;border:1px solid #eedbc6;padding:20px;border-radius:15px;margin:15px 0 20px;color:#725437}.notice strong{font-size:14px}.notice p{margin:8px 0 0;font-size:13px;line-height:1.55}.notice.muted{background:#eef1f3;border-color:#dce3e8;color:#576b7c}
.footer{font-size:11px;color:#98a2a7;text-align:center;padding:25px;border-top:1px solid #e1e4e2}.bottomnav{display:none}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.work-brief{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.sidebar{display:none}.topbar{height:76px;padding:0 20px}.topbrand .brandmark{display:grid;height:41px;width:41px;min-width:41px}.topbrand b{font-size:17px}.topbrand small{font-size:10px}.sourcepill{font-size:11px;padding:8px 10px}.clock{display:none}main{padding:30px 19px 100px}.pageheading h1{font-size:39px}.headline-meta{display:none}.bottomnav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,1fr);background:white;border-top:1px solid #dce1e0;padding:10px 5px calc(env(safe-area-inset-bottom, 8px) + 10px);z-index:10;box-shadow:0 -7px 30px #132a3810}.bottomnav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;font-weight:670;color:#737e87}.bottomnav button span{font-size:23px;line-height:1.1}.bottomnav button.active{color:var(--blue)}}
@media(max-width:540px){main{padding:22px 14px 100px}.topbar{padding:0 14px}.pageheading{margin:12px 2px 20px}.pageheading p{font-size:14px}.metrics{gap:9px}.metric{padding:16px;min-height:112px}.metric strong{font-size:31px}.metric span{font-size:11px}.paneltop{padding:20px 17px 15px}.item{padding:14px 16px}.truth-banner{padding:13px 12px}.work-brief{grid-template-columns:1fr}.toolbar{display:block}.searchwrap{min-width:0}.filters{margin-top:12px;justify-content:space-between}.filters button{flex:1}.listmeta span:last-child{display:none}.workbutton{padding:13px 12px;gap:11px}.workright{gap:6px}.workbody strong{font-size:14px}.workbody small{font-size:11px}.statuschip{font-size:10px;padding:5px 7px}.initials{width:40px;height:40px}.details{padding:15px}.details-grid{grid-template-columns:1fr}.machine-grid{grid-template-columns:1fr}.worklist{border-radius:15px}}

/* Guard against intrinsic min-content overflow on narrow phone viewports. */
html,body,.app{width:100%;max-width:100%;overflow-x:clip}
.main,.page,.pageheading,.pageheading p,.topbar,.truth-banner>div{min-width:0;max-width:100%}
.bottomnav{grid-template-columns:repeat(5,minmax(0,1fr))}
.bottomnav button{min-width:0;overflow:hidden}
@media(max-width:540px){
  .sourcepill{font-size:0;white-space:nowrap;padding:8px 10px}
  .sourcepill::after{content:"Preview";font-size:11px}
  .pageheading p{overflow-wrap:anywhere}
}

.pilot-ledger .itembody { min-width: 0; overflow-wrap: anywhere; }

/* PL-002: compact exceptions precede DC2, including on narrow screens. */
.ops-exceptions { margin-bottom: 12px; }
.ops-exceptions .paneltop { padding: 12px 16px 6px; gap: 8px; flex-wrap: wrap; }
.ops-exceptions .paneltop span { font-size: 11px; color: var(--muted, #666); }
.ops-exceptions ul { margin: 0; padding: 0 16px 12px 32px; font-size: 13px; }
.ops-exceptions li { margin: 5px 0; }
.ops-exceptions small { display: block; font-size: 10px; color: var(--muted, #666); }
#opsHistory, #opsSystems, #opsCommand, #opsToday { overflow-wrap: anywhere; }
