
:root {
  --mat-sys-primary: #292b67; --mat-sys-on-primary: #fff; --mat-sys-primary-container: #e0e1ff; --mat-sys-secondary-fixed: #cbd8ff;
  --mat-sys-surface: #fff; --mat-sys-surface-container: #f3f5f8; --mat-sys-on-surface: #1b1f24;
  --mat-sys-on-surface-variant: #5a6472; --mat-sys-outline-variant: #d5dae1;
  --header: #292b67; --navbar: #181945; --hl: #90acfe; --red: #c62828; --amber: #f5b800; --amber-fg: #3d3300; --green: #2e7d32; --none: #6b7380;
  --red-bg: #fde8e8; --amber-bg: #ffe699; --green-bg: #e3f3e4; --none-bg: #eceff3;
  --radius: 8px; font-family: Inter, system-ui, sans-serif; font-size: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) {
  --mat-sys-primary: #b0b3f8; --mat-sys-on-primary: #181945; --mat-sys-primary-container: #323571; --mat-sys-surface: #14181d;
  --mat-sys-surface-container: #1c2229; --mat-sys-on-surface: #e6e9ed; --mat-sys-on-surface-variant: #9aa4b2;
  --mat-sys-outline-variant: #2f3843; --red: #ff8a80; --amber: #f5c518; --amber-fg: #ffe566; --green: #81c784; --none: #9aa4b2;
  --red-bg: #3b1f1f; --amber-bg: #4a3f00; --green-bg: #1d3320; --none-bg: #262d36; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--mat-sys-surface); color: var(--mat-sys-on-surface); }
button { font: inherit; color: inherit; cursor: pointer; }
header { background: var(--header); color: #fff; }
.hb { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.logo { font-weight: 600; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; }
.logo b { background: #fff; color: var(--header); border-radius: 4px; padding: 1px 6px; font-size: 12px; }
nav { display: flex; height: 34px; background: var(--navbar); padding: 0 10px; }
nav button { background: none; border: 0; padding: 0 14px; color: var(--mat-sys-secondary-fixed); border-bottom: 3px solid transparent; }
nav button.on { color: #fff; border-color: var(--hl); }
header .grow { flex: 1; } header .who { margin-left: 8px; } header nav { margin-left: 6px; }
header #q { width: 260px; max-width: 30vw; padding: 5px 10px; border-radius: 16px; border: 0; background: rgba(255,255,255,.15); color: #fff; }
header #q::placeholder { color: #cbd8ff; }
.who { font-size: 12px; white-space: nowrap; color: var(--mat-sys-secondary-fixed); display: flex; gap: 10px; align-items: center; }
.hint { font-size: 12px; color: var(--mat-sys-on-surface-variant); min-height: 16px; } .warn { color: var(--mat-sys-on-surface); font-size: 12px; } .warn:not(:empty)::before { content: '⚠ '; } .who label { display: flex; gap: 4px; align-items: center; cursor: pointer; }
#app { display: grid; grid-template-columns: 250px minmax(0,1fr); height: calc(100vh - 78px); }
#app.pinned { grid-template-columns: 250px minmax(0,1fr) 460px; }

aside { border-right: 1px solid var(--mat-sys-outline-variant); overflow: auto; padding: 8px 0; background: var(--mat-sys-surface-container); }
aside h4 { margin: 8px 14px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--mat-sys-on-surface-variant); }
.node { display: grid; grid-template-columns: 1fr 52px; gap: 6px; align-items: center; padding: 5px 14px; cursor: pointer; border-left: 3px solid transparent; }
.node:hover { background: var(--none-bg); }
.node.on { background: var(--mat-sys-surface); border-color: var(--mat-sys-primary); font-weight: 600; }
.node.l1 { padding-left: 28px; } .node.l2 { padding-left: 42px; }
main { overflow: auto; padding: 12px 20px 80px; }
.drawer-panel { position: fixed; top: 78px; right: 0; bottom: 0; width: min(460px, 92vw); z-index: 4; border-left: 1px solid var(--mat-sys-outline-variant); overflow: auto; padding: 16px 20px 90px; background: var(--mat-sys-surface); box-shadow: -8px 0 24px rgba(0,0,0,.18); animation: slide .15s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.crumbs { color: var(--mat-sys-on-surface-variant); font-size: 12px; }
h1 { font-size: 22px; font-weight: 500; margin: 2px 0 8px; }
h2 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--none-bg); }
.bar i { display: block; } .bar .r { background: var(--red); } .bar .a { background: var(--amber); } .bar .g { background: var(--green); } .bar .n { background: var(--none); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.toolbar .grow { flex: 1; }
select, input[type=text], input[type=date], textarea { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--mat-sys-outline-variant); background: var(--mat-sys-surface); color: inherit; }
.seg button { border: 1px solid var(--mat-sys-outline-variant); background: var(--mat-sys-surface); padding: 5px 10px; }
.seg button:first-child { border-radius: 6px 0 0 6px; } .seg button:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.seg button.on { background: var(--mat-sys-primary); color: var(--mat-sys-on-primary); border-color: var(--mat-sys-primary); }
.chips button { border: 1px solid var(--mat-sys-outline-variant); background: var(--mat-sys-surface); border-radius: 14px; padding: 3px 10px; }
.chips button.on { background: var(--mat-sys-primary); color: var(--mat-sys-on-primary); }
.row { display: grid; grid-template-columns: 34px 1fr 110px 110px 120px; gap: 10px; align-items: center; padding: 7px 8px; border-bottom: 1px solid var(--mat-sys-outline-variant); cursor: pointer; }
.row:hover { background: var(--mat-sys-surface-container); }
.row.head { cursor: default; font-size: 11px; text-transform: uppercase; color: var(--mat-sys-on-surface-variant); letter-spacing: .5px; }
.row.head:hover { background: none; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--mat-sys-primary); color: var(--mat-sys-on-primary); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.av.tech { background: #5b6b7d; } .av.cmp { background: #2f7d6d; } .av.ini { background: #7a4fa0; }
.sub { color: var(--mat-sys-on-surface-variant); font-size: 12px; }
.chip { display: inline-block; border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.red { background: var(--red-bg); color: var(--red); } .chip.amber { background: var(--amber-bg); color: var(--amber-fg); }
.chip.green { background: var(--green-bg); color: var(--green); } .chip.none { background: var(--none-bg); color: var(--none); }
.chip.soft { background: var(--mat-sys-surface-container); color: var(--mat-sys-on-surface-variant); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.card { border: 1px solid var(--mat-sys-outline-variant); border-radius: var(--radius); padding: 10px; cursor: pointer; display: grid; gap: 6px; }
.card:hover { border-color: var(--mat-sys-primary); }
.card .top { display: flex; gap: 10px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0; }
.kpi { border: 1px solid var(--mat-sys-outline-variant); border-radius: var(--radius); padding: 8px 12px; }
.kpi b { font-size: 22px; display: block; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { border: 1px solid var(--mat-sys-outline-variant); border-radius: var(--radius); padding: 4px 12px 10px; }
.item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--mat-sys-outline-variant); cursor: pointer; }
.item:last-child { border: 0; }
.btn { border: 1px solid var(--mat-sys-primary); background: var(--mat-sys-surface); color: var(--mat-sys-primary); border-radius: 6px; padding: 6px 12px; font-weight: 500; }
.btn.fill { background: var(--mat-sys-primary); color: var(--mat-sys-on-primary); }
.btn.link { border: 0; background: none; padding: 0; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.adv { font-family: ui-monospace, monospace; font-size: 12px; background: var(--mat-sys-surface-container); padding: 8px; border-radius: 6px; white-space: pre-wrap; }
#basket { position: fixed; left: 0; right: 0; bottom: 0; background: var(--header); color: #fff; padding: 10px 20px; display: none; align-items: center; gap: 14px; z-index: 5; }
#basket.on { display: flex; } #basket .btn.link { background: none; color: #fff; border: 0; } #basket .btn:not(.link) { background: #fff; color: var(--header); border-color: #fff; }
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; place-items: center; z-index: 10; }
#modal.on { display: grid; }
.dlg { background: var(--mat-sys-surface); border-radius: 12px; width: min(520px, 94vw); max-height: 90vh; overflow: auto; padding: 18px 20px; }
.dlg h3 { margin: 0 0 10px; font-weight: 500; font-size: 18px; }
.field { display: grid; gap: 4px; margin: 10px 0; } .field label { font-weight: 500; font-size: 13px; }
.field .err { color: var(--red); font-size: 12px; }
.sentence { background: var(--mat-sys-surface-container); border-left: 4px solid var(--mat-sys-primary); padding: 10px 12px; border-radius: 4px; margin: 10px 0; }
.diff { font-family: ui-monospace, monospace; font-size: 12px; background: var(--mat-sys-surface-container); padding: 8px; border-radius: 6px; white-space: pre; overflow: auto; }
.diff .m { color: var(--red); } .diff .p { color: var(--green); }
.foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
#toast { position: fixed; top: 56px; right: 16px; background: #263238; color: #fff; padding: 10px 18px; border-radius: 8px; display: none; z-index: 20; }
.ban { background: var(--mat-sys-primary-container); color: var(--mat-sys-on-surface); padding: 6px 12px; border-radius: 6px; margin-bottom: 8px; }
.ban.caution { background: var(--amber-bg); color: var(--amber-fg); }
.tl { border-left: 2px solid var(--mat-sys-outline-variant); margin-left: 6px; padding-left: 12px; }
.tl div { margin: 6px 0; }
@media (max-width: 900px) { #app { grid-template-columns: 1fr; } aside { display: none; } .two, .kpis { grid-template-columns: 1fr 1fr; } .row { grid-template-columns: 34px 1fr 100px; } .row .hide { display: none; } }

header .logo span { white-space: nowrap; } 
.searchbox { position: relative; } header #q { width: 320px; max-width: 28vw; }
#sugg { display: none; position: absolute; top: 34px; left: 0; right: 0; background: var(--mat-sys-surface); color: var(--mat-sys-on-surface); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 30; overflow: hidden; }
#sugg.on { display: block; } .sg { display: flex; gap: 10px; align-items: center; padding: 7px 10px; cursor: pointer; } .sg:hover { background: var(--mat-sys-surface-container); }
#newbtn { padding: 4px 12px; background: #fff; color: var(--header); border-color: #fff; }
.iconbtn { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 50%; width: 26px; height: 26px; padding: 0; }
.user { display: flex; align-items: center; gap: 6px; } .user i { font-style: normal; background: var(--hl); color: var(--navbar); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; } .user small { opacity: .7; }
.scrim { position: fixed; inset: 78px 0 0 0; z-index: 3; background: rgba(0,0,0,.12); }
.drawer-panel.docked { position: static; width: auto; box-shadow: none; animation: none; grid-column: 3; height: 100%; }
.dh { display: flex; justify-content: space-between; align-items: center; }
.row { grid-template-columns: var(--cols); } .row.sel { background: var(--mat-sys-surface-container); }
.sortable { cursor: pointer; user-select: none; } .sortable:hover { color: var(--mat-sys-primary); }
.btn.small { padding: 2px 8px; font-size: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 4px; font-size: 12px; color: var(--mat-sys-on-surface-variant); } .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); } .dot.green { background: var(--green); } .dot.none { background: var(--none); }
.attn { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--mat-sys-outline-variant); cursor: pointer; } .attn:hover { background: var(--mat-sys-surface-container); }
.attn b { min-width: 34px; text-align: center; font-size: 18px; font-weight: 600; color: var(--red); } .attn.ok { cursor: default; opacity: .6; } .attn.ok b { color: var(--green); }
.lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: var(--mat-sys-surface-container); border-radius: var(--radius); padding: 4px 10px 10px; } .lane h3 { font-size: 13px; margin: 8px 0; }
.pcard { background: var(--mat-sys-surface); border: 1px solid var(--mat-sys-outline-variant); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; display: grid; gap: 4px; } .pcard.out { opacity: .5; border-style: dashed; }
.tl.wide { margin-left: 0; max-width: 820px; } .hrow { padding: 8px 0; border-bottom: 1px solid var(--mat-sys-outline-variant); cursor: pointer; }
.av.ini { background: #7a4fa0; }
code { background: var(--mat-sys-surface-container); padding: 0 4px; border-radius: 3px; }
:root[data-theme=dark] { --mat-sys-primary: #b0b3f8; --mat-sys-on-primary: #181945; --mat-sys-primary-container: #323571; --mat-sys-surface: #14181d; --mat-sys-surface-container: #1c2229; --mat-sys-on-surface: #e6e9ed; --mat-sys-on-surface-variant: #9aa4b2; --mat-sys-outline-variant: #2f3843; --red: #ff8a80; --amber: #f5c518; --amber-fg: #ffe566; --green: #81c784; --none: #9aa4b2; --red-bg: #3b1f1f; --amber-bg: #4a3f00; --green-bg: #1d3320; --none-bg: #262d36; }
@media (max-width: 900px) { #app.pinned { grid-template-columns: 1fr; } .drawer-panel.docked { position: fixed; } header #q { width: 160px; } header .logo span { display: none; } }

.seg.quad { display: grid !important; grid-template-columns: 1fr 1fr; } .vc { display: grid; gap: 8px; margin: 8px 0; } .vch { background: var(--header); color: #fff; font-weight: 600; font-size: 12.5px; min-height: 46px; display: flex; align-items: center; padding: 6px 18px 6px 20px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); } .vch.first { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-left: 12px; } .vch.en { clip-path: none; border-radius: 6px; background: var(--navbar); } .vch .sub { color: #dfe3ea; margin-left: 6px; font-weight: 400; } .vcd { margin: 6px 2px 2px; font-size: 11.5px; min-height: 30px; } .ctile { border: 1px solid var(--mat-sys-outline-variant); border-left: 4px solid var(--hl); border-radius: 6px; padding: 7px 9px; margin-top: 8px; cursor: pointer; background: var(--mat-sys-surface); display: grid; gap: 3px; } .ctile:hover, .ctile.on { border-color: var(--mat-sys-primary); } .ctile b { font-size: 13px; line-height: 1.25; } .ctile .sub { font-size: 11.5px; } .vce { margin: 14px 0 6px; } .vcrow, .cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 10px; } .seg.tri { display: flex; } .seg.tri button { flex: 1; padding: 5px 4px; font-size: 12.5px; white-space: nowrap; }
.hm { border-top: 1px solid var(--mat-sys-outline-variant); }
.hm-row { display: grid; grid-template-columns: 190px minmax(0,1fr); border-bottom: 1px solid var(--mat-sys-outline-variant); }
.hm-dom { background: var(--mat-sys-surface-container); font-weight: 600; padding: 10px 12px; }
.hm-tiles { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; }
.tile { width: 168px; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: grid; gap: 2px; align-content: start; border: 1px solid transparent; }
.tile:hover { box-shadow: 0 0 0 2px var(--mat-sys-primary); }
.tile b { font-weight: 600; } .tile .st { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; } .tile .rel { font-size: 12px; font-weight: 600; margin-top: 4px; }
.tile.green, .rc.green { background: var(--green-bg); } .tile.amber, .rc.amber { background: var(--amber-bg); } .tile.red, .rc.red { background: var(--red-bg); } .tile.none, .rc.none { background: var(--none-bg); }
.tile.green .st, .rc.green b { color: var(--green); } .tile.amber .st, .rc.amber b { color: var(--amber-fg); } .tile.red .st, .rc.red b { color: var(--red); }
.tile.planned, .rc.planned { background: var(--mat-sys-surface); border: 1px dashed var(--none); } .tile.retired, .rc.retired { background: var(--mat-sys-surface); border: 1px solid var(--none); } .tile.retired b, .rc.retired b { text-decoration: line-through; }
.dot.planned { background: none; border: 1px dashed var(--none); } .dot.retired { background: none; border: 1px solid var(--none); }
.rm { width: 100%; border-collapse: collapse; } .rm th, .rm td { border: 1px solid var(--mat-sys-outline-variant); padding: 8px 10px; text-align: left; vertical-align: top; }
.rm thead th { background: var(--mat-sys-surface-container); } .rm tbody th { background: var(--mat-sys-surface-container); width: 220px; } .rm .grp { font-weight: 600; color: var(--mat-sys-on-surface-variant); background: var(--mat-sys-surface); }
.rm tr[data-act] { cursor: pointer; } .rm tr.out { opacity: .55; } .rc.chg { box-shadow: inset 0 0 0 2px var(--mat-sys-primary); }
@media (max-width: 900px) { .hm-row { grid-template-columns: 1fr; } }

.whatif-grid { display: grid; grid-template-columns: minmax(0,1fr) 40px minmax(0,1fr); gap: 8px; align-items: start; margin: 8px 0; }
.wcol { border: 1px solid var(--mat-sys-outline-variant); border-radius: var(--radius); padding: 4px 12px 10px; } .wcol h3 { font-size: 13px; margin: 8px 0 2px; } .big { font-size: 28px; font-weight: 500; }
.warrow { font-size: 28px; text-align: center; padding-top: 40px; color: var(--mat-sys-on-surface-variant); }
.wapp { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--mat-sys-outline-variant); font-size: 13px; } .wapp.gone { text-decoration: line-through; opacity: .6; }
@media (max-width: 900px) { .whatif-grid { grid-template-columns: 1fr; } .warrow { display: none; } }

.burger { display: none; }
@media (max-width: 900px) {
  .burger { display: inline-block; } header .logo span, .user small, .who label, .hb .grow { display: none; }
  .hb { gap: 8px; padding: 0 10px; } .searchbox { flex: 1; } header #q { width: 100%; max-width: none; }
  #app.menu aside { display: block; position: fixed; top: 78px; left: 0; bottom: 0; width: min(300px, 88vw); z-index: 6; box-shadow: 8px 0 24px rgba(0,0,0,.25); }
  main { padding: 10px 12px 80px; } .two, .kpis { grid-template-columns: 1fr 1fr; } .toolbar { gap: 6px; }
  .drawer-panel { width: 100vw; } .dlg { padding: 14px; } .row { --cols: 34px minmax(0,1fr) 120px !important; } .row .hide { display: none; }
  .rm th, .rm td { padding: 6px; } .rm tbody th { width: 120px; }
}
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; } #newbtn { padding: 4px 8px; white-space: nowrap; } }

.verrow { display: flex; gap: 12px; align-items: center; margin: 6px 0; }

.capgrid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: 14px; align-items: start; margin-bottom: 4px; }
.going h2 { margin-top: 8px; font-size: 14px; }
@media (max-width: 900px) { .capgrid { grid-template-columns: 1fr; } }


@media (prefers-color-scheme: dark) { :root[data-brand=b]:not([data-theme=light]) { --mat-sys-primary: #8fb3e8; --mat-sys-on-primary: #00224d; --mat-sys-primary-container: #12345f; } }
.mock { font-size: 11px; background: var(--hl); color: var(--navbar); border-radius: 4px; padding: 1px 6px; font-weight: 600; white-space: nowrap; }
#askbtn { padding: 4px 12px; background: transparent; color: #fff; border-color: rgba(255,255,255,.6); white-space: nowrap; }
.ichip { display: inline-block; color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.badge { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.badge.red { color: var(--red); } .badge.amber { color: var(--amber-fg); background: var(--amber-bg); border-color: transparent; white-space: normal; }
.intent { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; }
.icol > h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--mat-sys-on-surface-variant); margin: 4px 0 8px; }
.icard { border: 1px solid var(--mat-sys-outline-variant); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; background: var(--mat-sys-surface); display: grid; gap: 4px; }
.icard:hover { border-color: var(--mat-sys-primary); }
.icard.hl { box-shadow: 0 0 0 2px var(--mat-sys-primary); border-color: var(--mat-sys-primary); }
.icard.dim { opacity: .35; }
.icard.gap { border: 1px dashed var(--red); }
.icard.derived { border-style: dashed; }
.icard .cbar { height: 4px; border-radius: 2px; }
.spark { display: block; }
.dt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dt th, .dt td { padding: 6px 8px; border-bottom: 1px solid var(--mat-sys-outline-variant); text-align: left; vertical-align: top; }
.dt th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--mat-sys-on-surface-variant); font-weight: 600; }
.dt .n { text-align: right; } .dt tr.tot td { font-weight: 600; background: var(--mat-sys-surface-container); }
.dt td.cg { background: var(--green-bg); color: var(--green); } .dt td.ca { background: var(--amber-bg); color: var(--amber-fg); } .dt td.cr { background: var(--red-bg); color: var(--red); }
.tw { overflow-x: auto; }
.gantt { border: 1px solid var(--mat-sys-outline-variant); border-radius: var(--radius); padding: 10px 12px; overflow-x: auto; }
.gl { display: grid; grid-template-columns: 230px minmax(560px, 1fr); align-items: center; }
.gl .gn { font-size: 13px; padding: 6px 8px 6px 0; }
.track { position: relative; height: 28px; border-left: 1px solid var(--mat-sys-outline-variant); }
.gbar { position: absolute; top: 5px; height: 18px; border-radius: 4px; color: #fff; font-size: 11px; padding: 1px 6px; white-space: nowrap; overflow: hidden; cursor: pointer; }
.gbar.blocked { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.45) 0 5px, transparent 5px 10px); }
.gbar.crit { outline: 2px solid var(--red); outline-offset: 1px; }
.gbar.out { opacity: .35; }
.todayline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); }
.axis { position: relative; height: 18px; font-size: 11px; color: var(--mat-sys-on-surface-variant); }
.axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.mx { border-collapse: collapse; }
.mx td, .mx th { border: 1px solid var(--mat-sys-outline-variant); text-align: center; padding: 4px 6px; font-size: 12px; }
.mx th.rh { text-align: left; white-space: nowrap; }
.mx th.ch { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; height: 140px; font-weight: 500; }
.mx td.pre { background: var(--red-bg); color: var(--red); font-weight: 700; }
.dlg.wide { width: min(780px, 96vw); }
.msg { padding: 10px 12px; border-radius: 8px; margin: 8px 0; }
.msg.q { background: var(--mat-sys-primary-container); margin-left: 15%; }
.msg.a { background: var(--mat-sys-surface-container); border-left: 4px solid var(--mat-sys-primary); }
.msg ul { margin: 6px 0; padding-left: 18px; }
.src { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; font-size: 12px; align-items: center; }
.src button { border: 1px solid var(--mat-sys-outline-variant); background: var(--mat-sys-surface); border-radius: 12px; padding: 1px 8px; font-size: 12px; }
.simnote { font-size: 11px; color: var(--mat-sys-on-surface-variant); margin-top: 6px; }
.askrow { display: flex; gap: 8px; margin-top: 10px; } .askrow input { flex: 1; }
.tile .ichip { justify-self: start; }
#newbtn, #askbtn { white-space: nowrap; }
@media (max-width: 1500px) { .user small, .who > label[title^="White"] > span { display: none; } .who { gap: 8px; } }
@media (max-width: 900px) { .intent { grid-template-columns: repeat(4, 220px); } }


body { font-family: var(--font, inherit); }
body:not(.arch) .archonly, body:not(.arch) .drawer-panel .actions { display: none !important; }
.tile.cond, .rc.cond { outline: 2px dashed var(--mat-sys-primary); outline-offset: -3px; }
.cv { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.cv span { font-size: 11px; border-radius: 10px; padding: 1px 8px; border: 1px solid var(--mat-sys-outline-variant); }
.cv .y { background: var(--green-bg); color: var(--green); border-color: transparent; }
.cv .n { background: var(--red-bg); color: var(--red); border-color: transparent; }
.cv .u { background: var(--none-bg); color: var(--mat-sys-on-surface-variant); border-color: transparent; }
.brief { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.headline { font-size: 22px; font-weight: 500; margin: 4px 0 2px; text-wrap: balance; }
.ocard { border: 1px solid var(--mat-sys-outline-variant); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.ocard.first { border-color: var(--mat-sys-primary); box-shadow: 0 0 0 1px var(--mat-sys-primary); }
.ocard h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.ocard .wait { background: var(--mat-sys-surface-container); border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.ocard .wait ul { margin: 4px 0; padding-left: 16px; }
.lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--mat-sys-on-surface-variant); margin: 6px 0 2px; }
.dline { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--mat-sys-outline-variant); font-size: 13px; }
.dline:last-child { border: 0; }
.age { white-space: nowrap; align-self: flex-start; } .age.ca { background: var(--amber-bg); color: var(--amber-fg); border-radius: 4px; padding: 0 6px; } .age.cr { background: var(--red-bg); color: var(--red); border-radius: 4px; padding: 0 6px; }
.private { background: #fde8e8; color: #9c0006; border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) { .brief, .ocard { grid-template-columns: 1fr; } }
body.wedit :is(main, aside, .drawer-panel, #modal) :is(h1, h2, h3, h4, p, li, td, th, b, a, label, button, .sub, .lbl, .headline, .subhead, .crumbs, .ban, .sentence, .chip, .badge):hover { outline: 1px dashed var(--hl); outline-offset: 1px; cursor: text; }
#wbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 60; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: min(1100px, 96vw); background: var(--mat-sys-surface, #fff); border: 2px solid var(--hl); border-radius: 10px; padding: 8px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 13px; }
body:not(.arch) #wbar { display: none; }
#wpop { position: fixed; z-index: 61; display: none; background: var(--mat-sys-surface, #fff); border: 1px solid var(--mat-sys-outline-variant); border-radius: 10px; padding: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.3); max-height: 70vh; overflow: auto; }
#wpop textarea, #wpop input[type=text] { width: 100%; box-sizing: border-box; font: inherit; margin: 6px 0; padding: 6px; }
#wpop .foot { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
button.cite { font: inherit; font-size: 12.5px; border: 1px solid var(--mat-sys-outline-variant); background: var(--mat-sys-surface-container, #f1f3f6); border-radius: 10px; padding: 0 7px; margin: 0 1px; cursor: pointer; color: var(--mat-sys-primary); }
.aistat.on { color: var(--green, #1e6b3a); }
#modal .field { margin: 8px 0; }
.subhead { font-size: 14px; margin: 0 0 8px; color: var(--mat-sys-on-surface-variant); max-width: 980px; }
@media (min-width: 901px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }


body { font-family: var(--font, system-ui, sans-serif); font-size: 15px; --hl-strong: color-mix(in srgb, var(--hl) 72%, black); --ms-in: var(--hl-strong); }
body.has-tb main { padding-bottom: 120px; }

header .btn.present { background: var(--hl-strong); border-color: var(--hl-strong); color: #fff; margin-right: 6px; font-weight: 600; white-space: nowrap; }
header .btn.present.on { background: #fff; color: var(--hl-strong); }
#decpill { background: var(--amber); color: #3d3300; border-radius: 10px; padding: 1px 9px; font-weight: 600; cursor: pointer; }

.tile.aw { box-shadow: inset 5px 0 0 var(--amber); }
.tile.aw:hover { box-shadow: inset 5px 0 0 var(--amber), 0 0 0 2px var(--mat-sys-primary); }
.tile.flash { animation: v32flash 1.5s ease-out 1; }
@keyframes v32flash { 0% { box-shadow: 0 0 0 5px var(--hl); transform: scale(1.04); } 100% { box-shadow: 0 0 0 0 transparent; transform: none; } }
th.so, td.so { background: var(--amber-bg); color: var(--amber-fg); }

#timebar { display: none; position: fixed; left: 266px; right: 16px; bottom: 12px; z-index: 5; align-items: center; gap: 16px; padding: 8px 16px; background: var(--mat-sys-surface); border: 1px solid var(--mat-sys-outline-variant); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 20, 60, .18); }
#timebar.on { display: flex; }
#app.pinned ~ #timebar { right: 476px; }
#basket.on ~ #timebar { bottom: 66px; }
.tb-play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--mat-sys-primary); color: #fff; font-size: 16px; flex: none; }
.tb-play.on { background: var(--hl-strong); }
.tb-track { flex: 1 1 300px; min-width: 180px; position: relative; padding: 2px 0 16px; }
.tb-track input { width: 100%; margin: 0; accent-color: var(--hl); height: 22px; cursor: pointer; }
.tb-ticks span { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 11.5px; color: var(--mat-sys-on-surface-variant); white-space: nowrap; }
.tb-ticks span.l { transform: none; } .tb-ticks span.r { transform: translateX(-100%); }
.tb-now { flex: 0 1 auto; display: grid; grid-template-columns: auto auto; gap: 0 14px; align-items: center; min-width: 0; }
.tb-d b { display: block; font-size: 20px; line-height: 1.1; color: var(--mat-sys-primary); white-space: nowrap; }
.tb-d .sub { font-size: 11px; white-space: nowrap; }
.tb-k { display: flex; gap: 12px; font-size: 14px; white-space: nowrap; align-items: center; }
.tb-k b { font-size: 17px; }
.tb-k .dot { margin-right: 3px; }
.tb-tick { grid-column: 1 / 3; font-size: 12px; color: var(--mat-sys-on-surface-variant); max-width: 470px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-dec { flex: none; display: flex; flex-direction: column; gap: 3px; }
.tb-dec .seg button { padding: 4px 10px; }
.tb-dec .seg button.on:last-child { background: var(--amber); color: #3d3300; border-color: var(--amber); }

table.hg { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 13px; }
.hg th { font-weight: 600; font-size: 11.5px; color: var(--mat-sys-on-surface-variant); padding: 4px 1px; text-align: center; cursor: pointer; white-space: nowrap; border-radius: 4px; }
.hg th:hover { background: var(--none-bg); }
.hg th.rl { text-align: left; cursor: default; font-size: 14px; color: var(--mat-sys-on-surface); min-width: 150px; padding-right: 8px; }
.hg th.rl:hover { background: none; }
.hg th.fy { color: var(--mat-sys-primary); }
.hg th.cur { background: var(--mat-sys-primary); color: #fff; }
.hg td.hc { text-align: center; padding: 6px 1px; border-radius: 4px; cursor: pointer; min-width: 38px; line-height: 1.1; }
.hg td.hc b { display: block; font-size: 15px; font-weight: 700; }
.hg td.hc.cur { outline: 3px solid var(--mat-sys-primary); outline-offset: -1px; }
.hg td.hc.fy { box-shadow: inset -3px 0 0 rgba(0, 52, 116, .35); }
.hg td.hc:hover { outline: 2px solid var(--hl); }
.hg td.empty { color: var(--none); background: var(--none-bg); }
.hg .hr { display: inline-block; margin-top: 2px; background: #fff; color: var(--red); border: 1px solid var(--red); border-radius: 8px; padding: 0 4px; font-size: 10.5px; font-weight: 700; }
.hg td.dl { font-size: 12.5px; padding: 0 6px; white-space: nowrap; cursor: default; }
.hg th.dl { cursor: default; }
.hg tr.tot th, .hg tr.tot td.hc { border-top: 2px solid var(--mat-sys-primary); }
.hg tr.tot th.rl { font-weight: 700; }
.hlg .sw { display: inline-block; width: 18px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.08); }

.ms-wrap { border: 1px solid var(--mat-sys-outline-variant); border-radius: var(--radius); padding: 4px; background: var(--mat-sys-surface); }
svg.ms { display: block; width: 100%; max-width: 1440px; margin: 0 auto; height: auto; font-family: inherit; }
.ms .past { fill: var(--none-bg); opacity: .55; }
.ms .grid { stroke: var(--mat-sys-outline-variant); stroke-width: 1; }
.ms .ax { font-size: 11.5px; fill: var(--mat-sys-on-surface-variant); }
.ms line.fy { stroke: #5a6472; stroke-width: 1.2; stroke-dasharray: 5 4; }
.ms line.eos { stroke: var(--amber); stroke-width: 2.5; }
.ms line.today { stroke: var(--mat-sys-primary); stroke-width: 2; }
.ms line.cursor { stroke: var(--hl); stroke-width: 3; }
.ms .cpill { fill: var(--hl-strong); } .ms .cpt { font-size: 11.5px; font-weight: 700; fill: #fff; }
.ms text.vl { font-size: 11.5px; font-weight: 600; fill: var(--mat-sys-on-surface-variant); }
.ms text.vl.today { fill: var(--mat-sys-primary); } .ms text.vl.eos { fill: var(--amber-fg); }
.ms .lbg { fill: var(--mat-sys-surface-container); opacity: .6; }
.ms .lane.out { opacity: .4; }
.ms .ish { font-size: 12px; font-weight: 700; fill: #fff; }
.ms .inm { font-size: 13.5px; font-weight: 600; fill: var(--mat-sys-on-surface); }
.ms .ist { font-size: 11.5px; fill: var(--mat-sys-on-surface-variant); }
.ms .bar { fill-opacity: .28; stroke-width: 1.5; }
.ms .lane.blk .bar, .ms .lane.held .bar { fill-opacity: 1; }
.ms .mk { cursor: pointer; }
.ms .mk text { font-size: 12px; font-weight: 700; }
.ms .mk:hover circle, .ms .mk.on circle { stroke-width: 4; }
.ms .flag path { fill: var(--amber); stroke: #8a6d00; stroke-width: 1; }
.ms .flag text { font-size: 11.5px; font-weight: 600; fill: var(--amber-fg); }

.dm-sel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 10px; margin-bottom: 6px; border-radius: 8px; background: var(--mat-sys-primary-container); }
.dm-sel .grow { flex: 1; }
.dm-wrap { border: 1px solid var(--mat-sys-outline-variant); border-radius: var(--radius); padding: 4px; overflow-x: auto; background: var(--mat-sys-surface); }
svg.dm { display: block; width: 100%; min-width: 920px; max-width: 1280px; margin: 0 auto; height: auto; font-family: inherit; }
.dm .colh { font-size: 12px; font-weight: 700; fill: var(--mat-sys-on-surface-variant); letter-spacing: .5px; text-transform: uppercase; }
.dm .e { fill: none; stroke: #aab3bf; stroke-width: 1.3; stroke-opacity: .75; transition: opacity .15s; }
.dm .e.pre { stroke: #5a6472; stroke-width: 1.9; }
.dm .e.rk { stroke: var(--red); stroke-width: 2.2; stroke-dasharray: 6 4; }
.dm .e.br { stroke: var(--red); stroke-width: 3; }
.dm .e.nb { stroke-width: 2.8; }
.dm .n { cursor: pointer; transition: opacity .15s; }
.dm .n .bx { stroke: var(--mat-sys-outline-variant); stroke-width: 1; }
.dm .n .nm { font-size: 12px; font-weight: 600; fill: var(--mat-sys-on-surface); }
.dm .n .rt { font-size: 10.5px; fill: var(--none); font-style: italic; }
.dm .n.ret .bx { stroke: var(--none); stroke-dasharray: 4 3; }
.dm .n.ret .nm { fill: var(--none); text-decoration: line-through; }
.dm .n .deg { fill: var(--mat-sys-surface); stroke: var(--mat-sys-primary); stroke-width: 1.5; }
.dm .n .deg.big { fill: var(--mat-sys-primary); }
.dm .n .dg { font-size: 11px; font-weight: 700; fill: var(--mat-sys-primary); }
.dm .n .deg.big + .dg { fill: #fff; }
.dm .n .clash circle { fill: var(--amber); stroke: var(--mat-sys-surface); stroke-width: 1.5; }
.dm .n .clash text { font-size: 11px; font-weight: 700; fill: #3d3300; }
.dm .n.on .bx { stroke: var(--mat-sys-primary); stroke-width: 3; }
.dm .n.flash .bx { animation: v32flashs 1.5s ease-out 1; }
@keyframes v32flashs { 0% { stroke: var(--hl); stroke-width: 6; } 100% { stroke-width: 1; } }
svg.dm.sel .n:not(.nb) { opacity: .2; }
svg.dm.sel .e:not(.nb) { opacity: .07; }
.legend .ln { display: inline-block; width: 22px; height: 0; border-top: 2px solid #9aa4b2; margin-right: 5px; vertical-align: middle; }
.legend .ln.p { border-top-color: #5a6472; } .legend .ln.r { border-top: 2px dashed var(--red); }
.legend .clash-k { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); color: #3d3300; font-size: 11px; margin-right: 4px; }
.dm-panels { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; margin-top: 12px; }
select.mv { padding: 2px 4px; font-size: 13px; }
select.mv.planned { background: var(--amber-bg); } select.mv.verified { background: var(--green-bg); }

.story { max-width: 1060px; margin: 6px auto; }
.story .st-h { font-size: 36px; font-weight: 700; color: var(--mat-sys-primary); margin: 4px 0 6px; }
.story .st-lead { font-size: 19px; max-width: 820px; line-height: 1.4; margin: 0 0 6px; }
.st-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.st-tile { border-radius: 10px; padding: 12px 16px 14px; background: var(--mat-sys-surface-container); border-top: 5px solid var(--hl); font-size: 15px; display: grid; gap: 2px; }
.st-tile b { font-size: 40px; line-height: 1.05; color: var(--mat-sys-primary); }
.st-flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.st-flow .s { padding: 10px 14px; border-radius: 8px; background: var(--mat-sys-primary); color: #fff; font-weight: 600; font-size: 15px; }
.st-flow .s.o { background: var(--hl-strong); }
.st-flow .ar { font-size: 24px; color: var(--mat-sys-on-surface-variant); }
.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
aside .node.st span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
aside .node.st { padding-top: 4px; padding-bottom: 4px; grid-template-columns: 1fr; }
.st-cols li { font-size: 16px; line-height: 1.45; margin: 3px 0; }

#prescard { display: none; position: fixed; left: 8px; bottom: 12px; width: 234px; z-index: 7; background: var(--header); color: #fff; border-radius: 12px; padding: 10px 12px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
body.presenting #prescard { display: block; }
#prescard .pc-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #cbd8ff; }
#prescard .pc-top button { border: 0; background: none; color: #cbd8ff; padding: 0 2px; font-size: 14px; }
#prescard .pc-t { display: block; font-size: 17px; line-height: 1.2; margin: 4px 0 6px; }
#prescard .pc-c { font-size: 14px; line-height: 1.38; margin: 0 0 10px; color: #fff; }
#prescard .pc-btns { display: flex; gap: 6px; }
#prescard .pc-btns button { border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; border-radius: 6px; padding: 4px 10px; }
#prescard .pc-btns button.fill { background: var(--hl); border-color: var(--hl); color: var(--navbar); font-weight: 700; flex: 1; }
#prescard .pc-btns button:disabled { opacity: .35; cursor: default; }
.pc-dots { display: flex; gap: 3px; margin-top: 10px; }
.pc-dots i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); cursor: pointer; }
.pc-dots i.done { background: color-mix(in srgb, var(--hl) 55%, transparent); } .pc-dots i.on { background: var(--hl); }
.spot { outline: 3px solid var(--hl) !important; outline-offset: 4px; border-radius: 8px; position: relative; z-index: 3; box-shadow: 0 0 0 9999px rgba(0, 34, 77, .16) !important; }
.spot-o { outline: 3px solid var(--hl) !important; outline-offset: 2px; }
#app.pinned ~ #timebar .tb-tick, #app.pinned ~ #timebar .tb-dec > .sub, #app.pinned ~ #timebar .tb-ticks span:not(.l):not(.r), #app.pinned ~ #timebar .tb-d .sub { display: none; }
#app.pinned ~ #timebar { gap: 10px; padding: 6px 10px; }
@media (max-width: 1280px) { .tb-tick { max-width: 300px; } .tb-k { gap: 8px; } }
@media (min-width: 901px) { .hb > * { flex-shrink: 0; } .hb .logo { flex: 0 1 auto; min-width: 0; } .hb .logo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hb .grow { flex: 1 1 0; min-width: 0; } .hb .searchbox { flex: 0 3 320px; min-width: 140px; } header .hb #q { width: 100%; max-width: none; } }
@media (max-width: 680px) { .hb .searchbox, .hb .user, .hb .who .iconbtn { display: none; } .hb { gap: 6px; } header .hb .btn { padding-left: 8px; padding-right: 8px; } header .btn.present { margin-right: 0; } }
@media (max-width: 479px) { .hb .logo, #askbtn { display: none; } }
@media (max-width: 600px) { header nav { overflow-x: auto; scrollbar-width: none; } header nav::-webkit-scrollbar { display: none; } header nav button { padding-left: 9px; padding-right: 9px; flex-shrink: 0; } }
@media (max-width: 1000px) { .hb .user { display: none; } }
@media (max-width: 960px) { #decpill:not([style*="none"]) + #mockflag { display: none; } }
@media (max-width: 680px) { .hb:has(#decpill:not([style*="none"])) .logo { display: none; } #decpill { font-size: 11px; } }
@media (max-width: 700px) { .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-cols { grid-template-columns: 1fr; } .story .st-h { font-size: 30px; } .story .st-lead { font-size: 17px; } .st-tile b { font-size: 34px; } }

