:root {
  color-scheme:light; --ink:#15243c; --muted:#586880; --line:#e2e8f0; --canvas:#f4f7fb;
  --white:#fff; --navy:#111f36; --blue:#244b88; --teal:#006f62; --teal-bright:#20a995;
  --light-teal:#e1f6f0; --amber:#9b5315; --light-amber:#fff0dc; --sky:#2f61aa; --light-blue:#e8f0fc;
  --radius:14px; --shadow:0 1px 3px #18385a09,0 3px 12px #1a375905;
  font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif; color:var(--ink); background:var(--canvas);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100vh;font-size:16px}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer} button:disabled{cursor:not-allowed;opacity:.6}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #157bce;outline-offset:3px}
button svg, a svg, span svg{display:block;flex:none}
.skip{position:fixed;z-index:10;left:16px;top:-100px;background:white;padding:10px}
.skip:focus{top:10px}
.shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}
.sidebar{height:100dvh;position:sticky;top:0;background:var(--navy);color:#c7d3e4;display:flex;flex-direction:column;padding:24px 15px 17px}
.brand{display:flex;gap:11px;align-items:center;padding:3px 7px 26px;border-bottom:1px solid #ffffff19;margin-bottom:22px}
.brand-icon{display:block;width:38px;height:38px;flex:0 0 38px}
.brand strong,.sidebar-caption strong{display:block;color:#f5f9ff;font-weight:700;font-size:14px;white-space:nowrap}
.brand small,.sidebar-caption small{display:block;margin-top:4px;color:#a3b4cd;font-size:12px}
.brand-credit{color:#b2ede4;white-space:nowrap}
@media(max-width:970px) and (min-width:761px){.brand-credit{display:block;margin-top:2px}.brand-credit>span{display:none}}
.nav-label{font-size:11px;letter-spacing:.12em;color:#a4b5cc;font-weight:700;padding:0 12px;margin:4px 0 11px}
.nav-label.second{margin-top:29px}
.sidebar nav a{display:flex;gap:12px;align-items:center;min-height:45px;padding:9px 12px;margin:4px 0;font-size:14px;border-radius:8px;color:#cbd7e8}
.sidebar nav a:hover{background:#ffffff10;color:#fff}
.sidebar nav a[aria-current=page]{background:#253b54;color:#effbff;font-weight:650;box-shadow:inset 3px 0 #44dec2}
.sidebar nav a[aria-current=page] svg{color:#61e4cd}
.sidebar-bottom{margin-top:auto;padding:16px 7px 2px;border-top:1px solid #ffffff1a}
.sidebar-caption{display:flex;gap:10px;align-items:center}
.sidebar-caption>span{display:grid;place-items:center;width:35px;height:35px;border-radius:8px;background:#263953;color:#b9cce3}
.sidebar-caption strong{font-size:13px}.workspace{min-width:0}
.topbar{height:65px;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 30px;border-bottom:1px solid var(--line)}
.breadcrumb,.top-actions{display:flex;align-items:center;gap:12px}
.breadcrumb{font-size:14px;color:var(--muted)}.breadcrumb strong{color:var(--ink);font-weight:650}
.crumb-divider{color:#8290a4}.avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;color:#14594e;background:#dff3ee;font-weight:700;font-size:13px}
.mode-button{display:flex;align-items:center;gap:7px;color:#70481e;background:#fff7e7;border:1px solid #f1dfbd;border-radius:20px;padding:6px 10px;font-size:12px;font-weight:700;white-space:nowrap}
.mode-button.live{background:#e9f8f4;color:#006659;border-color:#ccebe3}
main{max-width:1600px;margin:0 auto;padding:27px 30px 32px}
main:focus{outline:none}
.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(27px,3vw,37px);line-height:1.14;letter-spacing:-.042em;font-weight:750}
.subtitle{margin-top:7px;color:var(--muted);font-size:14px;line-height:1.55}
.heading-actions,.buttons{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.btn,.small-icon{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:8px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:14px;font-weight:650;white-space:nowrap}
.btn:hover,.small-icon:hover{background:#eaf0f8;border-color:#c5d2e3}
.btn.primary{color:#fff;border-color:#08776a;background:#08776a}.btn.primary:hover{background:#006659}
.btn.subtle{border-color:transparent;background:none;color:#176c62;padding:5px 7px}
.btn.subtle:hover{background:#eaf7f3}.small-icon{padding:5px;min-height:32px;width:32px}
.menu-button{display:none}
.filter-panel{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0;padding:10px 12px;margin-bottom:16px;background:white;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}
.filter-title{display:flex;gap:6px;align-items:center;font-size:14px;font-weight:650;padding-right:3px}
.field, .select-wrap select{width:100%;min-height:37px;border:1px solid #d8e0eb;background:#fff;color:var(--ink);border-radius:7px;padding:7px 10px;font-size:14px}
.select-wrap{position:relative;min-width:0;display:inline-flex;align-items:center;color:#65758d}
.select-wrap select{appearance:none;min-width:131px;max-width:100%;padding-right:31px;cursor:pointer}
.select-wrap>svg{position:absolute;right:9px;pointer-events:none}
.filter-panel>.quiet{margin-left:auto}
.quiet{font-size:13px;color:var(--muted)}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:15px}
.card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);min-width:0}
.kpi{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto auto;gap:5px 6px;text-align:left;color:var(--ink);padding:14px 15px 13px;transition:border-color .15s,box-shadow .15s}
.kpi:hover{border-color:#79beb4;box-shadow:0 2px 8px #137b6e1c}
.kpi .tile-icon{grid-column:2;grid-row:1/3}
.tile-icon,.square-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;color:#2d5e9e;background:#e9f1ff}
.tile-icon.active,.square-icon.teal{color:#007466;background:#e4f7f0}
.tile-icon.ready{color:#1f6483;background:#e4f4fb}.tile-icon.blocked{color:#a15a14;background:#fff0db}
.kpi-label{font-size:14px;font-weight:650;line-height:1.27}
.kpi-value{font-size:32px;letter-spacing:-.05em;font-weight:750;line-height:1.1}
.kpi-meta{grid-column:1/-1;color:var(--muted);font-size:12px;white-space:nowrap}
.dashboard-kpis .kpi{grid-template-rows:auto auto 1fr}
.dashboard-kpis .kpi-meta{white-space:normal}
.dashboard-kpis .with-actions{grid-template-rows:auto auto 1fr auto}
.dashboard-kpis .with-actions:hover{border-color:var(--line);box-shadow:var(--shadow)}
.kpi-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,115px),1fr));gap:6px;margin-top:4px;padding-top:8px;border-top:1px solid var(--line);--action-bg:#edf5fc;--action-line:#d6e6f7;--action-ink:#234e81}
.kpi-actions.blocked{--action-bg:#fff7eb;--action-line:#f3dfc3;--action-ink:#824511}
.kpi-actions .btn{min-height:34px;min-width:0;gap:5px;padding:5px 6px;font-size:.8125rem;line-height:1.2;white-space:normal;color:var(--action-ink);background:var(--action-bg);border-color:var(--action-line)}
.kpi-actions .btn:hover{border-color:var(--action-ink)}
.viz-grid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:14px;margin-bottom:15px}
.panel{padding:17px 18px}
.panel-head,.table-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:14px}
.panel-head h2,.table-head h2,.card h2,.drawer h2{font-size:18px;letter-spacing:-.023em;line-height:1.3;font-weight:730}
.panel-head p,.table-head p{margin-top:4px;font-size:13px;color:var(--muted);line-height:1.4}
.legend{display:flex;flex-wrap:wrap;gap:7px 13px;align-items:center;font-size:12px;color:var(--muted);margin:0 0 12px}
.legend span{display:flex;align-items:center;gap:5px}
.dot{width:8px;height:8px;border-radius:3px;background:#d8e2ef;display:inline-block;flex:none}
.dot.active,.seg.active,.dot.complete,.seg.complete{background:#21a491}
.dot.ready,.seg.ready,.dot.transit,.seg.transit{background:#5784c4}
.dot.blocked,.seg.blocked,.dot.pending,.seg.pending{background:#e6a352}
.branch-status-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.branch-status{--status-ink:#12685d;--status-bg:#f0faf7;--status-border:#cee7df;display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 8px;border:1px solid var(--status-border);border-radius:7px;background:var(--status-bg);color:var(--ink);transition:border-color .15s,box-shadow .15s}
.branch-status.ready{--status-ink:#285e9c;--status-bg:#f1f6fc;--status-border:#d7e4f5}
.branch-status.blocked{--status-ink:#925116;--status-bg:#fff8ed;--status-border:#f4e2c9}
.branch-status:hover{border-color:var(--status-ink);box-shadow:0 2px 7px #18385a14}
.branch-status-label{display:flex;align-items:center;gap:5px;font-size:.8125rem;font-weight:650;line-height:1.2}
.branch-status-label .dot{width:6px;height:6px}
.branch-status-count{color:var(--status-ink);font-size:.75rem;font-weight:650;line-height:1.2;font-variant-numeric:tabular-nums}
.charts{display:grid;gap:5px}
.chart-row{display:grid;grid-template-columns:58px minmax(40px,1fr) 28px;gap:10px;width:100%;min-height:28px;align-items:center;background:none;border:0;text-align:left;color:var(--ink);padding:2px 4px;border-radius:5px;font-size:13px}
.chart-row:hover{background:#f0f5fa}
.chart-row .row-name{font-weight:650;display:flex;gap:7px;align-items:center;white-space:nowrap}
.chart-row .row-name svg{color:#61738b}
.chart-row .bar{height:9px;width:100%;overflow:hidden;border-radius:10px;display:flex;background:#ecf0f5}
.seg{height:100%;display:block}
.row-count{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.chart-row.material{grid-template-columns:minmax(119px,41%) minmax(30px,1fr) 23px;min-height:26px}
.caption{color:var(--muted);font-size:12px;margin-top:10px}
.table-card{overflow:hidden}
.table-head{margin:0;padding:15px 17px}
.table-scroll{overflow:auto;min-width:0}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{padding:10px 13px;border-bottom:1px solid #e8edf4;white-space:nowrap}
th{background:#f6f8fc;color:#4d5d75;font-size:13px;font-weight:650}
td{font-size:14px;color:#26364f}
tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#f8fbfd}
.site-list-scroll table{border-collapse:separate;border-spacing:0}
.site-list-scroll{max-height:min(62dvh,660px);scroll-padding-top:42px}
.site-list-scroll :is(th,td):first-child{position:sticky;inset-inline-start:0;z-index:1;box-shadow:2px 0 0 #dce5ef}
.site-list-scroll thead th{position:sticky;top:0;z-index:2}
.site-list-scroll thead th:first-child{z-index:3}
.site-list-scroll td:first-child{background:#fff}
.site-list-scroll tr:hover td:first-child{background:#f8fbfd}
.site-list-scroll:focus-visible{outline:2px solid #157bce;outline-offset:-2px}
.site-list-swipe-hint{display:none}
.site-link{font:inherit;color:#166d62;border:0;background:none;padding:0;font-weight:750}
.site-link:hover{text-decoration:underline}
.tag{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:4px 8px;font-size:12px;font-weight:700;line-height:1.25}
.tag.active,.tag.complete{color:#087062;background:var(--light-teal)}
.tag.ready,.tag.transit{color:#245a9d;background:var(--light-blue)}
.tag.blocked,.tag.pending{color:#905114;background:var(--light-amber)}
.tag.na{color:#617086;background:#edf1f5}
.tag .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.dates{font-variant-numeric:tabular-nums}
.overdue{color:#a04418;font-weight:700}
.searchbox{position:relative;display:flex;align-items:center;flex:1;min-width:180px}
.searchbox>svg{position:absolute;left:10px;color:#65758d;pointer-events:none}
.searchbox input{padding-left:35px}
.filter-stack{margin-bottom:13px}.filter-stack .filter-panel{margin-bottom:8px}
.filter-chip{display:inline-flex;gap:7px;align-items:center;border-radius:20px;color:#176c62;background:#e8f5f0;padding:4px 8px 4px 11px;font-size:13px;font-weight:650}
.filter-chip button{border:0;background:none;padding:4px;color:inherit}
.footer-table{display:flex;align-items:center;justify-content:space-between;padding:11px 16px;border-top:1px solid var(--line);gap:10px}
.page-buttons{display:flex;align-items:center;gap:6px}
.empty{padding:30px 18px;text-align:center;color:var(--muted);font-size:14px}
.empty h3{color:var(--ink);font-size:17px;margin-bottom:6px}
.empty .buttons{justify-content:center;margin-top:13px}
.banner{padding:10px 13px;margin-bottom:13px;border:1px solid #e9d4ac;background:#fff8e7;border-radius:8px;color:#744c23;display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.5}
.banner.danger{color:#942d25;border-color:#f1d0ca;background:#fff1ed}
.banner.good{color:#0b655a;border-color:#ccebe3;background:#e9f8f4}
.import-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.56fr);gap:14px;align-items:start}
.import-box{padding:19px}
.import-box h2{margin-bottom:7px}
.import-box p,.steps li{color:var(--muted);font-size:14px;line-height:1.58}
.steps{padding-left:20px;margin:12px 0 18px;display:grid;gap:8px}
.drop{display:grid;place-items:center;text-align:center;background:#f7fbfb;border:1px dashed #93bcb8;border-radius:11px;padding:25px 14px;margin:14px 0 12px;color:var(--ink)}
.drop.over{background:#e3f7f1;border-color:#00766a}
.drop .square-icon{margin-bottom:9px}.drop strong{font-size:15px}.drop small{font-size:13px;margin:6px 0 12px;color:var(--muted)}
.drop input{max-width:100%;font-size:13px}.drop input::file-selector-button{font:inherit;color:#154f47;background:#fff;border:1px solid #b8d4cd;border-radius:7px;padding:7px 9px;cursor:pointer;margin-right:8px}
.inspection{margin-top:14px}.inspection .banner{margin:0 0 12px}
.column-field{display:flex;flex-direction:column;gap:5px;color:#42536a;font-size:14px;font-weight:650}
.column-field .field{font-weight:400}
.select-wrap.wide,.wide select{width:100%}
.drawer{border:0;position:fixed;inset:0 0 0 auto;margin:0;width:min(850px,100vw);height:100%;max-width:100vw;max-height:100%;padding:0;color:var(--ink);box-shadow:-12px 0 45px #10264328}
.drawer::backdrop{background:#0d1b35a0}
.drawer-head{position:sticky;top:0;z-index:1;background:#fff;border-bottom:1px solid var(--line);padding:18px 22px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.drawer-body{padding:19px 22px;min-height:calc(100% - 140px)}
.drawer-body p{line-height:1.5}.drawer-body h3{font-size:16px;margin:18px 0 9px}
.drawer-foot{position:sticky;bottom:0;display:flex;justify-content:flex-end;align-items:center;gap:8px;background:#fff;border-top:1px solid var(--line);padding:11px 22px}
.site-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.site-meta>div{border:1px solid var(--line);border-radius:8px;padding:9px;min-width:0}
.site-meta span{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.site-meta strong{font-size:14px;overflow-wrap:anywhere}
.guide-link{display:flex;align-items:flex-start;gap:6px;width:fit-content;max-width:100%;font-size:14px;color:#006f62;font-weight:700;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.guide-link:hover,.guide-shortcut:hover{color:#004b43}
.guide-link+.guide-link{margin-top:4px}
.guide-upload{padding:14px;margin:18px 0}
.guide-upload h3{margin-top:0}
.guide-upload-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:10px}
.guide-upload-fields input,.guide-upload-fields select{width:100%;min-width:0}
.guide-other-sites{grid-column:1/-1}
.guide-other-sites textarea{resize:vertical}
.guide-other-sites .quiet{margin-top:4px}
.guide-pending{margin-top:8px}
.guide-result{white-space:pre-line}
.guide-result:empty{display:none}
.guide-page-form{max-width:1120px}
.guide-page-fields{min-width:0;margin:0;padding:0;border:0}
.guide-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.guide-page-grid>section{display:grid;align-content:start;min-width:0;gap:12px;padding:20px}
.guide-page-document{border-inline-start:1px solid var(--line)}
.guide-page-form .column-field :is(input,select,textarea){min-width:0}
.guide-page-document input[type="file"]{padding:5px;font-size:14px}
.guide-page-document input[type="file"]::file-selector-button{
  border:0;border-radius:5px;margin-inline-end:8px;padding:5px 8px;
  background:#e7f3ef;color:#065c52;cursor:pointer
}
.guide-page-tabs{display:flex;border-bottom:1px solid var(--line)}
.guide-page-tabs button{
  flex:1;min-height:39px;border:0;border-bottom:2px solid transparent;background:none;
  padding:5px 7px;color:var(--muted);font-size:14px;font-weight:650
}
.guide-page-tabs button[aria-pressed="true"]{color:#075f55;border-bottom-color:#08776a}
.guide-target-pane{display:grid;gap:8px}
.guide-target-pane .searchbox{min-width:0}
.guide-target-pane textarea{resize:vertical}
.guide-sites-scroll{max-height:200px;overflow:auto;min-width:0;border:1px solid var(--line);border-radius:8px}
.guide-site-choice{
  display:flex;align-items:center;gap:10px;min-height:39px;padding:5px 10px;
  border-bottom:1px solid var(--line);font-size:14px;cursor:pointer
}
.guide-site-choice:last-child{border-bottom:0}
.guide-site-choice:has(input:checked){background:#eff8f5}
.guide-site-choice input{width:16px;height:16px;margin:0;flex:none;accent-color:#08776a}
.guide-site-choice strong{min-width:0;overflow-wrap:anywhere}
.guide-site-choice span{margin-inline-start:auto;color:var(--muted)}
.guide-sites-empty{padding:10px}
.guide-selection-line{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.guide-selection-line .btn{min-height:30px;flex:none;font-size:13px}
.guide-selection-line p{align-self:center;overflow-wrap:anywhere}
.guide-page-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 20px}
.guide-page-result{margin:0 20px 16px;font-size:14px;color:#065c52;overflow-wrap:anywhere}
.guide-page-result.error-text{color:#933d2e}
@media(max-width:760px){
  .guide-page-grid{grid-template-columns:minmax(0,1fr)}
  .guide-page-grid>section{padding:14px}
  .guide-page-document{border-inline-start:0;border-top:1px solid var(--line)}
  .guide-page-footer{padding:12px 14px}
  .guide-page-footer .btn{width:100%;min-height:44px}
  .guide-page-result{margin-inline:14px}
}
.guide-unlinked{display:block;margin-top:4px;color:var(--muted);font-size:12px}
.guide-shortcut{display:inline-flex;align-items:center;gap:3px;margin-left:7px;font-size:12px;color:#006f62}
@media(max-width:760px){
  .site-list-swipe-hint{display:block;padding:6px 12px;background:#edf3f8;color:#415674;font-size:13px}
  .site-list-scroll table{width:max-content;min-width:100%}
  .site-list-scroll :is(th,td){padding-inline:9px}
  .site-list-scroll :is(th,td):first-child{min-width:104px;padding-inline:8px}
  .site-list-scroll td:first-child{padding-block:4px}
  .site-row-actions{
    display:flex;flex-direction:column;align-items:flex-start;gap:2px;
    width:max-content;max-width:104px
  }
  .site-row-actions .site-link{max-width:100%;min-height:34px;text-align:start;font-size:13px}
  .site-row-actions .site-link:not(.guide-shortcut){white-space:normal;overflow-wrap:anywhere}
  .site-row-actions .guide-shortcut{
    min-height:30px;margin:0;padding:4px 7px;border-radius:6px;background:#edf7f3;
    font-size:12px;white-space:normal
  }
  #site-results .small-icon{min-height:44px;width:44px}
  .site-list-filters .filter-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:9px}
  .site-list-filters .select-wrap:has(> #status),.site-list-filters .searchbox{grid-column:1/-1;min-width:0}
  .site-list-filters :is(select,.searchbox input){min-width:0;min-height:42px;font-size:16px}
  .site-list-filters select{text-overflow:ellipsis}
}
.material-cards{display:grid;gap:8px}
.material-edit{border:1px solid var(--line);border-radius:9px;padding:10px 11px}
.material-edit legend{font-size:14px;font-weight:740;padding:0 5px}
.material-inputs{display:grid;grid-template-columns:1.1fr .6fr 1fr 1fr;gap:8px}
.material-inputs .detail{grid-column:1/-1}
.note{white-space:pre-wrap;overflow-wrap:anywhere}
td.break{white-space:normal;min-width:160px;overflow-wrap:anywhere}
.toast{position:fixed;z-index:4;bottom:20px;right:20px;max-width:min(400px,calc(100vw - 40px));padding:11px 14px;border-radius:8px;color:#fff;background:#174e47;box-shadow:0 6px 25px #10264330;font-size:14px}
.toast.bad{background:#8e3828}
.loading{display:flex;align-items:center;gap:10px;color:var(--muted);padding:42px 0}
.loading span{width:20px;height:20px;border:2px solid #adcccb;border-top-color:#00766a;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0s!important;transition:none!important}}
@media(max-width:1180px){.shell{grid-template-columns:221px minmax(0,1fr)}main{padding-inline:22px}.topbar{padding-inline:22px}.kpi{padding-inline:12px}.panel{padding-inline:13px}.brand{gap:8px;padding-inline:4px}}
@media(max-width:970px){.shell{grid-template-columns:188px minmax(0,1fr)}.sidebar{padding-inline:11px}.brand-icon{width:32px;height:32px;flex-basis:32px}.brand strong{font-size:12px}.sidebar nav a{font-size:13px;gap:8px}.sidebar-caption strong{font-size:11px}.kpi-meta{white-space:normal}.chart-row.material{grid-template-columns:128px minmax(21px,1fr) 18px;gap:5px}.legend{gap:6px 9px}.import-layout{grid-template-columns:1fr}.heading{flex-wrap:wrap}}
@media(max-width:760px){.shell{display:block}.sidebar{height:auto;display:none;position:static}.sidebar.open{display:block}.sidebar-bottom{display:none}.menu-button{display:inline-flex}.topbar{height:55px;padding-inline:15px}.crumb-parent,.crumb-divider{display:none}main{padding:18px 14px}.heading{margin-bottom:14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.viz-grid{grid-template-columns:1fr;gap:10px}.heading-actions{gap:5px}.btn{font-size:13px}.filter-panel>.quiet{display:none}.filter-title{display:none}.site-meta,.material-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}.drawer-body,.drawer-head,.drawer-foot{padding-inline:12px}}
.summary-card{overflow:hidden}
.summary-status{margin:-7px 0 13px}
.summary-heading{align-items:center;flex-wrap:wrap;gap:12px}
.summary-jumps{display:flex;gap:6px;flex-wrap:wrap}
.summary-jumps .btn{min-height:32px;padding:5px 9px;font-size:13px;background:#f5f8fc}
.summary-jumps .btn:hover{background:#e5edf8}
.summary-scroll{max-height:min(64vh,670px);overscroll-behavior:contain;border-top:1px solid var(--line)}
.summary-scroll:focus-visible{outline:2px solid #157bce;outline-offset:-2px}
.summary-table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.summary-table th,.summary-table td{border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;text-align:center;padding:7px 8px}
.summary-table thead{position:sticky;top:0;z-index:3}
.summary-table thead th{white-space:normal}
.summary-table .summary-bands th{height:35px;color:#fff;background:#213b58;font-size:13px;font-weight:730}
.summary-table .summary-bands .materials{background:#176959}
.summary-table .summary-bands .activation{background:#355a8d}
.summary-table .summary-columns th{height:59px;min-width:80px;max-width:130px;font-size:13px;line-height:1.22;background:#edf3fa}
.summary-table .summary-columns th.summary-note-cell{min-width:195px;max-width:230px;background:#f2f5f9}
.summary-table .summary-columns th.positive{background:#dbf2eb;color:#115e54}
.summary-table .summary-columns th.warning{background:#ffeddd;color:#834321}
.summary-table .summary-columns th.activated{background:#e2ecfa;color:#25497a}
.summary-table .summary-columns th.notice{background:#e6efff;color:#244d83}
.summary-table .summary-columns th.primary-count{background:#2a4a6c;color:#fff}
.summary-table .summary-sticky{position:sticky;left:0;min-width:93px;text-align:left;padding-left:13px;z-index:2;background:#f7f9fd;box-shadow:2px 0 0 #dce5ef}
.summary-table .summary-bands .summary-sticky{z-index:5;background:#192e49;color:#fff}
.summary-table .summary-total>*{background:#e8eef8;font-weight:750;border-bottom:2px solid #bacbde}
.summary-table .summary-total .summary-sticky{z-index:4;background:#dbe7f7;color:#1c3b64}
.summary-table tbody tr:nth-child(odd):not(.summary-total)>td{background:#f8fafd}
.summary-table tbody td.positive{background:#f0faf6!important}
.summary-table tbody td.activated{background:#f0f5fc!important}
.summary-table tbody td.primary-count{background:#ebf3fa!important}
.summary-table .summary-total td.positive{background:#d4f0e7!important}
.summary-table .summary-total td.activated{background:#dce8f9!important}
.summary-table .summary-total td.primary-count{background:#d9e8f5!important}
.summary-table .group-start{border-left:1px solid #c3d2e2}
.summary-number,.summary-more{background:transparent;color:#256097;border:0;border-radius:5px;padding:3px 6px;font-weight:750;min-width:30px}
.summary-number:hover,.summary-more:hover{background:#dceafb;text-decoration:underline}
.positive .summary-number{color:#085d53}.positive .summary-number:hover{background:#cceee2}
.warning .summary-number{color:#a1461c}.warning .summary-number:hover{background:#ffebda}
.summary-zero{color:#67788e}
.summary-table td.summary-note-cell{text-align:left;line-height:1.34}
.summary-note-preview{display:flex;align-items:center;gap:6px;width:214px}
.summary-note-preview .site-link{font-size:13px;flex:none}
.summary-note-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#4b5e79}
.summary-more{flex:none;padding:3px 4px;font-size:12px}
.summary-foot{font-size:13px;color:var(--muted);padding:10px 16px;line-height:1.5}
.confirm-note{margin-bottom:12px;color:#42536a}
.portal-loading #menu,.portal-public #menu{display:none}
.portal-public .shell{grid-template-columns:1fr}
.portal-public .sidebar{display:none}
.portal-public .topbar{padding-inline:max(24px,calc((100% - 1240px) / 2))}
.portal-public main{max-width:1270px}
.portal-public .filter-panel .tag{font-size:13px;padding:7px 10px}
.portal-public .kpi{cursor:default}
.portal-public .kpi:hover{border-color:var(--line);box-shadow:var(--shadow)}
.portal-public .cards{margin-top:19px}
.public-table th,.public-table td{padding:12px 15px;font-variant-numeric:tabular-nums}
.public-table tbody th{text-align:left}
.public-table .public-total>*{background:#e3eefb;color:#1c3d67;font-weight:750}
.share-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px;align-items:start}
.share-layout .panel{padding:18px}
.share-layout .panel-head{align-items:flex-start}
.share-settings fieldset{border:0;padding:0;margin:0 0 14px;display:grid;gap:8px}
.share-settings legend{padding:0;margin:1px 0 8px;font-size:14px;font-weight:730}
.share-option{display:flex;gap:9px;align-items:flex-start;cursor:pointer;border:1px solid var(--line);border-radius:8px;padding:10px 11px}
.share-option:has(input:checked){border-color:#81bfb6;background:#f1faf8}
.share-option input{margin:3px 0 0;accent-color:#0b786a}
.share-option strong{display:block;font-size:14px}
.share-option small{display:block;font-size:13px;color:var(--muted);line-height:1.45;margin-top:4px}
.share-link .buttons{margin-top:12px}
@media(max-width:880px){.share-layout{grid-template-columns:1fr}}
@media(max-width:760px){.portal-public .topbar{padding-inline:15px}}
.visitor-badge{white-space:nowrap}
.portal-visitor .top-actions{gap:8px}
.portal-visitor .topbar .btn{min-height:34px;padding:6px 9px;font-size:13px}
.topbar .presence-button{gap:6px;color:#096256;background:#edf8f3;border-color:#cbe9df}
.presence-button:hover{background:#def3eb}
#presence-count{font-variant-numeric:tabular-nums}
.presence-dialog{width:min(460px,calc(100% - 28px));max-height:calc(100% - 28px);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow)}
.presence-dialog::backdrop{background:#10233b66}
.presence-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.presence-heading h2{font-size:1.125rem;margin:0}
.presence-status{font-size:14px;font-weight:650;margin:14px 0 6px}
.presence-list{list-style:none;margin:0;padding:0}
.presence-list li{display:flex;align-items:baseline;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:8px 0;font-size:14px;overflow-wrap:anywhere}
.presence-list small{color:var(--muted);font-size:12px}
.presence-email{display:grid;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.presence-email [role=status]:empty{display:none}
@media(max-width:410px){.portal-visitor .visitor-badge{display:none}}
.cards.arrival-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.arrival-cards .kpi[aria-pressed=true]{border-color:#50aa9f;background:#f1fbf8}
.auth-panel{max-width:460px;margin:clamp(20px,9vh,90px) auto;padding:clamp(20px,5vw,30px)}
.auth-panel h1{font-size:clamp(1.65rem,5vw,2.1rem);margin-top:10px}
.auth-panel .buttons{margin-top:16px}
.auth-form{display:grid;gap:12px;margin-top:16px}
.auth-form .btn{justify-self:start}
.auth-panel .auth-form .btn{justify-self:stretch}
.auth-form [role=alert] .banner{margin:0}
@media(max-width:600px){
  #portal-owner{display:none}
  .topbar .breadcrumb{min-width:0}
  .topbar .breadcrumb strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .topbar .top-actions{flex-shrink:0;gap:6px}
  #portal-sign-out{padding:5px 7px;font-size:12px;min-height:32px}
}
.profile-link{max-width:min(180px,25vw);overflow:hidden;text-overflow:ellipsis;display:block;white-space:nowrap}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.profile-wide{grid-column:1/-1}
.profile-providers,.mail-options{margin-top:16px}
.mail-options{border-top:1px solid var(--border,#dfe6ef);padding-top:14px}
.mail-options h3,.provider-form h3{font-size:1rem}
.mail-options .buttons{margin-top:8px}
.provider-form{border:1px solid var(--border,#dfe6ef);border-radius:12px;padding:14px;min-width:0}
.provider-form .quiet{margin-top:5px}
.provider-form a{text-decoration:underline}
@media(max-width:680px){.profile-grid{grid-template-columns:1fr}.profile-link{max-width:24vw;padding:6px 8px}}

.language-control{position:relative;flex:none}
.language-trigger{
  display:flex;align-items:center;gap:5px;min-height:32px;padding:4px 7px;list-style:none;
  border:1px solid #d8e0eb;border-radius:7px;background:#fff;color:var(--ink);font-size:12px;font-weight:700;cursor:pointer
}
.language-trigger::-webkit-details-marker{display:none}
.language-trigger:focus-visible{outline:2px solid #157bce;outline-offset:2px}
.language-trigger:hover,.language-control[open] .language-trigger{background:#f3f7fb}
.language-chevron{color:var(--muted)}
.language-chevron svg{width:12px;height:12px}
.language-control[open] .language-chevron{transform:rotate(180deg)}
.language-current,.language-options button{display:flex;align-items:center;gap:6px;white-space:nowrap}
.language-options{
  position:absolute;z-index:20;inset-inline-end:0;top:calc(100% + 4px);min-width:100%;padding:3px;
  border:1px solid #d8e0eb;border-radius:8px;background:white;box-shadow:0 4px 12px #18385a20
}
.language-options button{
  width:100%;min-height:31px;padding:4px 7px;border:0;border-radius:5px;background:#fff;
  color:var(--ink);font-size:12px;text-align:start
}
.language-options button[aria-current=true]{background:#e4f2ee;color:#095549;font-weight:700}
.language-options button:hover{background:#eaf1f8}
.language-options button:focus-visible{outline-offset:-2px}
.language-flag{display:inline-block;flex:none;width:17px;height:11px;border-radius:2px;box-shadow:inset 0 0 0 1px #15243c20}
.flag-pe{background:linear-gradient(90deg,#d91023 33.33%,#fff 33.33% 66.67%,#d91023 66.67%)}
.flag-gb{
  background:
    linear-gradient(90deg,transparent 42%,#c8102e 42% 58%,transparent 58%),
    linear-gradient(transparent 38%,#c8102e 38% 62%,transparent 62%),
    linear-gradient(90deg,transparent 36%,#fff 36% 64%,transparent 64%),
    linear-gradient(transparent 29%,#fff 29% 71%,transparent 71%),
    linear-gradient(34deg,transparent 47%,#c8102e 47% 53%,transparent 53%),
    linear-gradient(-34deg,transparent 47%,#c8102e 47% 53%,transparent 53%),
    linear-gradient(34deg,transparent 43%,#fff 43% 57%,transparent 57%),
    linear-gradient(-34deg,transparent 43%,#fff 43% 57%,transparent 57%),
    #012169
}
@media(max-width:760px){
  .topbar{height:auto;min-height:55px;padding-block:7px;gap:6px;flex-wrap:wrap}
  .topbar .top-actions{max-width:100%;gap:6px;flex-wrap:wrap}
}

.progress-views{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0;border-bottom:1px solid var(--line);padding-bottom:7px}
.progress-views a{padding:8px 13px;border-radius:7px;font-size:14px;font-weight:650;color:var(--muted)}
.progress-views a:hover{background:#eaf0f8;color:var(--ink)}
.progress-views a[aria-current="page"]{background:#dcefe9;color:#0a5d51}
.progress-workspace{max-width:none;padding:12px 14px}
.progress-heading{margin:0 0 5px}
.progress-heading h1{font-size:clamp(23px,2.5vw,29px)}
.progress-workspace .progress-views{margin:0 0 7px;padding-bottom:5px}
.progress-workspace .progress-views a{padding:5px 9px;font-size:13px}
.progress-toolbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;border-radius:9px}
.progress-toolbar .btn,.progress-toolbar .field,.progress-toolbar select{
  min-height:32px;padding-block:4px;font-size:13px
}
.progress-toolbar .btn{padding-inline:8px;gap:5px}
.progress-toolbar select{min-width:0}
.progress-toolbar-actions{margin-inline-start:auto;gap:6px}
.progress-search{display:flex;align-items:center;gap:7px;max-width:100%}
.progress-search label{font-size:13px;font-weight:650;white-space:nowrap}
.progress-search-field{position:relative;width:min(145px,40vw)}
.progress-search-field input{padding-inline:27px 29px}
.progress-search-field input::-webkit-search-cancel-button{appearance:none}
.progress-search-field>svg{position:absolute;inset-inline-start:7px;top:8px;pointer-events:none;color:var(--teal)}
.progress-search-field button{display:grid;place-items:center;position:absolute;inset-inline-end:3px;top:3px;width:26px;height:26px;border:0;border-radius:4px;background:transparent;color:var(--muted)}
.progress-search-field button:hover{background:#eaf0f8}
.progress-more{position:relative}
.progress-more summary{cursor:pointer;list-style:none}
.progress-more summary::-webkit-details-marker{display:none}
.progress-more summary:focus-visible{outline:2px solid #157bce;outline-offset:3px}
.progress-more-panel{position:absolute;z-index:9;inset-inline-start:0;top:calc(100% + 5px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:400px;padding:10px}
.progress-more-panel select{max-width:100%}
.progress-more-panel .quiet{grid-column:1/-1}
.progress-workspace .progress-filter-scroll{margin-top:7px}
.progress-workspace .progress-filters{min-width:840px}
.progress-workspace .progress-filters th,.progress-workspace .progress-filters td{padding:3px 6px;font-size:12px}
.progress-workspace .progress-filters select{min-height:27px;padding-block:2px;font-size:13px}
.progress-workspace .progress-results{margin-top:7px}
.progress-workspace .progress-results .table-head{padding:6px 10px}
.progress-workspace .progress-results .table-head h2{font-size:15px}
.progress-workspace .progress-results .table-head p{margin-top:1px}
.progress-workspace .footer-table{padding:4px 10px}
.progress-workspace .summary-foot{padding:5px 10px}
.progress-workspace .progress-table th,.progress-workspace .progress-table td{padding:4px 6px}
.progress-workspace .progress-detail{table-layout:fixed;min-width:1080px}
.progress-workspace .progress-detail thead :is(th,td){min-width:0}
.progress-workspace .progress-detail thead th[rowspan]{width:86px}
.progress-workspace .progress-detail tbody td{white-space:normal;overflow-wrap:anywhere}
.progress-workspace .progress-detail .progress-value{font-size:12px}
.progress-fullscreen .shell{display:block}
.progress-fullscreen :is(.topbar,.sidebar){display:none}
.progress-fullscreen .progress-workspace{padding:6px 8px}
.progress-fullscreen .progress-heading{display:none}
@media (min-width:761px) and (min-height:580px){
  .progress-workspace{height:calc(100dvh - 65px);display:flex;flex-direction:column;overflow:auto}
  .progress-workspace>:not(#progress-readout){flex-shrink:0}
  #progress-readout{display:flex;flex-direction:column;flex:1 1 auto;min-height:245px}
  .progress-workspace .progress-results{display:flex;flex-direction:column;min-height:0}
  .progress-workspace .progress-results>:not(.progress-scroll){flex-shrink:0}
  .progress-workspace .progress-scroll{max-height:none;min-height:0}
  .progress-fullscreen .progress-workspace{height:100dvh}
}
@media(max-width:1000px){
  .progress-more{position:static}
  .progress-more-panel{inset-inline:8px;top:calc(100% + 3px);width:min(400px,calc(100% - 16px))}
}
@media(max-width:600px){
  .progress-toolbar-actions{margin-inline-start:0}
  .progress-toolbar-actions .btn,.progress-toolbar .field,.progress-toolbar select{min-height:36px}
}
.progress-filter-scroll{margin-top:12px}
.progress-filters{min-width:1120px;table-layout:fixed}
.progress-filters th:first-child,.progress-filters thead td:first-child{width:90px}
.progress-filters th,.progress-filters td{padding:8px 9px;border-inline-end:1px solid var(--line)}
.progress-filters thead th,.progress-filters thead td{background:#ecf2f9;white-space:normal}
.progress-filters tbody th{font-size:14px}
.progress-filters .select-wrap,.progress-filters select{width:100%;min-width:0}
.progress-filters select{padding-inline-end:29px;text-overflow:ellipsis}
.progress-filters .is-filtered select{border-color:#7cb8ac;background:#e8f6f1;color:#0a594f;font-weight:650}
.progress-drill{margin:12px 0}
.progress-results{margin-top:12px}
.progress-scroll{max-height:min(66vh,700px);overscroll-behavior:contain;border-top:1px solid var(--line)}
.progress-table{
  --progress-navy:#19354d;
  --progress-navy-alt:#23485e;
  --progress-accent:#255e5c;
  --progress-material:#1c4973;
  --progress-material-bg:#e8f1fb;
  --progress-work:#076355;
  --progress-work-bg:#e2f2ef;
  --progress-muted:#4e5d70;
  --progress-grid:#dde6ed;
  --progress-divider:#b5c9d6;
  width:100%;font-size:14px;border-collapse:separate;border-spacing:0
}
.progress-table thead{position:sticky;top:0;z-index:3}
.progress-table th,.progress-table td{text-align:center;vertical-align:middle}
.progress-table th{white-space:normal}
.progress-table thead th{min-width:88px;padding:8px 9px;background:#edf2f7;color:var(--progress-muted)}
.progress-table thead .progress-group{background:var(--progress-navy);color:white;font-weight:750}
.progress-table thead .progress-group[scope="colgroup"]:nth-child(even){background:var(--progress-navy-alt)}
.progress-table thead .progress-group.progress-primary{background:var(--progress-accent)}
.progress-table thead .progress-metric-material{background:var(--progress-material-bg);color:var(--progress-material)}
.progress-table thead .progress-metric-work{background:var(--progress-work-bg);color:var(--progress-work)}
.progress-table .progress-sticky{position:sticky;left:0;z-index:2;box-shadow:1px 0 0 var(--progress-divider)}
.progress-table thead .progress-sticky{z-index:5}
.progress-table .progress-group-start,.progress-table thead .progress-group:not(:first-child){border-inline-start:2px solid var(--progress-divider)}
.progress-table .progress-metric-work,.progress-table .progress-metric-inactive{border-inline-start:1px solid var(--progress-grid)}
.progress-table tbody tr{--progress-row:#fff}
.progress-summary tbody tr:nth-child(odd),.progress-detail tbody tr:nth-child(even){--progress-row:#f5f8fa}
.progress-table tbody tr:hover{--progress-row:#ecf3f8}
.progress-table tbody tr>:is(th,td){background:var(--progress-row);border-bottom-color:var(--progress-grid)}
.progress-table tbody th,.progress-table .quiet{color:var(--progress-muted)}
.progress-table tbody td{white-space:nowrap}
.progress-table thead .progress-total>*{background:#d8eee9;border-top:1px solid #4c9b8e;border-bottom:1px solid #b5c9d6;font-weight:750}
.progress-table thead .progress-total th{color:var(--progress-material)}
.progress-table .summary-number,.progress-detail .site-link{color:var(--progress-material)}
.progress-table .summary-number:hover{background:var(--progress-material-bg)}
.progress-table .progress-metric-work .summary-number{color:var(--progress-work)}
.progress-table .progress-metric-work .summary-number:hover{background:var(--progress-work-bg)}
.progress-table .progress-value{display:inline-block;padding:2px 6px;border-radius:5px}
.progress-table .progress-value.complete{color:var(--progress-material);background:#e9f1fa;font-weight:650}
.progress-table .progress-value.done{color:var(--progress-work);background:#e1f1ed;font-weight:650}
.progress-table .progress-value.pending{color:#75451a;background:#fff0de;font-weight:650}
.progress-table .progress-value.transit{color:#604519;background:#faefd9;font-weight:650}
.progress-table .progress-value.na,.progress-table .progress-value.unknown{color:var(--progress-muted)}
