/* FOX Console — light fintech look: #F5F5F5 page, white rounded cards, black pill buttons with a
   white arrow circle on the main actions, deep violet (#2B2644) feature cards, tight headings
   (negative letter-spacing, 600 at most) and a slow marquee of the KISEM tools on the sign-in page.
   Text keeps at least 4.5:1 on the light page; motion stops for people who ask for less. */

/* TT Norms Pro when it is installed on the computer (it is a licensed font); Inter otherwise. */
@font-face{font-family:"TT Norms Pro";src:local("TT Norms Pro"),local("TTNormsPro-Regular"),local("TT Norms Pro Regular");font-weight:400;font-display:swap}
@font-face{font-family:"TT Norms Pro";src:local("TT Norms Pro SemiBold"),local("TTNormsPro-SemiBold"),local("TT Norms Pro Semibold");font-weight:600;font-display:swap}

:root{
  color-scheme: light;
  --bg:#F5F5F5;
  --card:#ffffff;
  --card-solid:#ffffff;
  --violet:#2B2644;            /* feature cards */
  --border:rgba(0,0,0,.08);
  --fill:rgba(0,0,0,.07);
  --fill-2:rgba(0,0,0,.04);
  --label:#000000;
  --label-2:rgba(0,0,0,.62);
  --label-3:rgba(0,0,0,.55);
  --sep:rgba(0,0,0,.09);
  --accent:#000000;            /* actions are black */
  --accent-tint:rgba(0,0,0,.06);
  --on-accent:#ffffff;
  --green:#0b7a45; --green-tint:rgba(11,122,69,.1);
  --orange:#9a5200; --orange-tint:rgba(214,120,0,.12);
  --red:#c4161c; --red-tint:rgba(215,0,21,.08);
  --shadow:0 1px 2px rgba(0,0,0,.03);
  --font:"TT Norms Pro","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --r:20px;
  --arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;font-family:inherit}
html,body{font-family:var(--font)}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--label);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh}
::selection{background:rgba(43,38,68,.18)}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--label);text-decoration:underline;text-decoration-color:rgba(0,0,0,.25);text-underline-offset:3px}
a:hover{text-decoration-color:currentColor}
h1,h2,h3{font-weight:600;line-height:1.1;letter-spacing:-.03em}
h1{font-size:40px;letter-spacing:-.04em}
h2{font-size:20px;letter-spacing:-.02em}
h3{font-size:16px}
.boot{padding:40px;color:var(--label-2)}
.muted{color:var(--label-2)}
.small{font-size:13px}
.num{font-variant-numeric:tabular-nums}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
svg.ic{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ---------- shell: menu + toolbar + content ---------- */
.shell{display:grid;grid-template-columns:256px 1fr;min-height:100vh}
.shell.collapsed{grid-template-columns:0 1fr}
.side{position:sticky;top:0;height:100vh;overflow:hidden;background:var(--bg);padding:18px 12px;display:flex;flex-direction:column;gap:2px}
.shell.collapsed .side{visibility:hidden;padding:0}
.brand{display:flex;align-items:center;gap:10px;padding:4px 10px 18px;color:var(--label);text-decoration:none}
.brand img{width:32px;height:32px;border-radius:9px;background:#fff}
.brand-mark{width:40px;height:40px;border-radius:12px;background:#fff;display:grid;place-items:center;flex:none;box-shadow:0 0 0 1px var(--border)}
.brand-mark img{width:34px;height:34px;border-radius:0;background:none;object-fit:contain}
.brand b{display:block;font-size:17px;font-weight:600;line-height:1.1;letter-spacing:-.03em}
.brand small{font-size:11.5px;color:var(--label-2)}
.side .group{font-size:11.5px;font-weight:600;color:var(--label-3);padding:16px 12px 6px}
.side a.nav{display:flex;align-items:center;gap:10px;min-height:38px;padding:7px 14px;border-radius:999px;color:rgba(0,0,0,.72);font-size:14.5px;font-weight:500;text-decoration:none;transition:background-color .2s ease,color .2s ease}
.side a.nav:hover{color:#000;background:rgba(0,0,0,.05)}
.side a.nav.on{background:#000;color:#fff;font-weight:600}
.side a.nav:focus-visible{outline:2px solid #000;outline-offset:2px}
.side .side-scroll{overflow-y:auto;min-height:0;flex:1}
.side a.nav.sub{padding-left:34px;min-height:32px;font-size:13.5px}
.side a.nav.sub svg{width:15px;height:15px}

.content{min-width:0;display:flex;flex-direction:column}
.toolbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;min-height:60px;padding:10px 28px;background:rgba(245,245,245,.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.toolbar .title{font-weight:600;font-size:15px;letter-spacing:-.01em}
.toolbar .spacer{flex:1}
.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:999px;border:0;background:none;color:var(--label-2);cursor:pointer}
.icon-btn:hover{background:rgba(0,0,0,.06);color:#000}
.menu-btn{display:inline-flex;align-items:center;gap:8px;border:0;background:#fff;border-radius:999px;padding:4px 14px 4px 4px;cursor:pointer;font-size:14px;font-weight:500;box-shadow:0 0 0 1px var(--border)}
.menu-btn .av{width:28px;height:28px;font-size:11px}
.popover{position:absolute;right:20px;top:58px;background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.12),0 0 0 1px var(--border);padding:6px;min-width:230px;z-index:30}
.popover .who{padding:8px 12px 10px;border-bottom:1px solid var(--sep);margin-bottom:4px}
.popover .who b{display:block}
.popover a,.popover button{display:flex;width:100%;align-items:center;gap:10px;padding:9px 12px;border-radius:10px;border:0;background:none;color:var(--label);text-align:left;cursor:pointer;text-decoration:none;font-size:14px}
.popover a:hover,.popover button:hover{background:rgba(0,0,0,.05)}

.main{padding:20px 28px 64px;max-width:1408px;width:100%}
.head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.head p{margin-top:8px;max-width:640px}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid2 > *,.metrics > *{min-width:0}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}

/* ---------- tab bar (phones) ---------- */
.tabbar{display:none}

/* ---------- segmented control ---------- */
.seg{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#fff;border-radius:999px;padding:3px;gap:2px;box-shadow:0 0 0 1px var(--border)}
.seg button{border:0;background:none;border-radius:999px;padding:6px 16px;font-size:13.5px;font-weight:500;cursor:pointer;color:var(--label-2);min-height:30px;white-space:nowrap}
.seg button[aria-pressed="true"]{background:#000;color:#fff;font-weight:600}
.seg button:focus-visible{outline:2px solid #000;outline-offset:1px}

/* ---------- cards ---------- */
.card{background:var(--card);border-radius:var(--r);padding:22px 24px;box-shadow:var(--shadow)}
.card + .card{margin-top:16px}
.card h2{margin-bottom:6px}
.card .sub{font-size:13.5px;color:var(--label-2);margin-bottom:14px}
.card .cap{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}
.card .cap h2{margin:0}
.section-title{font-size:13px;font-weight:600;color:var(--label-2);margin:32px 4px 12px}

/* Metrics: the first is a violet feature card, like "Always fluid, always pegged." */
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
/* Six cards: one even row on wide screens, two rows of three otherwise (never one left alone). */
.metrics:has(> :nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
@media (min-width:1280px){.metrics:has(> :nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}.metrics:has(> :nth-child(6):last-child) .metric .v{font-size:34px}}
.metric{background:var(--card);border-radius:var(--r);padding:20px 22px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:136px}
.metric:first-child{background:var(--violet);color:#fff}
.metric:first-child .top,.metric:first-child .mnote,.metric:first-child .v small{color:rgba(255,255,255,.66)}
.metric:first-child .top svg{color:#fff}
.metric .top{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--label-2)}
.metric .top svg{width:16px;height:16px}
.metric .v{font-size:38px;font-weight:600;letter-spacing:-.04em;font-variant-numeric:tabular-nums;line-height:1}
.metric .v small{font-size:15px;font-weight:500;color:var(--label-2);margin-left:4px;letter-spacing:-.01em}
.metric .mnote{font-size:13px;color:var(--label-2)}
.metric .mnote.bad{color:var(--red);font-weight:600}
.metric:first-child .mnote.bad{color:#ffb4b8}

/* lists */
.ilist{display:flex;flex-direction:column}
.ilist .it{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 0;border-bottom:1px solid var(--sep)}
.ilist .it:last-child{border-bottom:0}
.ilist .it .main-t{flex:1;min-width:0}
.ilist .it .main-t b{display:block;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ilist .it .main-t span{display:block;font-size:13px;color:var(--label-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ilist .it .trail{font-size:13px;color:var(--label-2);text-align:right;white-space:nowrap}
.av{width:36px;height:36px;border-radius:50%;background:var(--violet);color:#fff;display:grid;place-items:center;font-weight:600;font-size:13px;flex-shrink:0}
.empty{color:var(--label-2);font-size:14px;padding:10px 0}

/* status labels: colour always paired with text */
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.active,.pill.ok{background:var(--green-tint);color:var(--green)}
.pill.hold,.pill.warn{background:var(--orange-tint);color:var(--orange)}
.pill.revoked,.pill.bad{background:var(--red-tint);color:var(--red)}
.pill.soft{background:rgba(0,0,0,.05);color:var(--label-2)}
.pill.tag{background:rgba(0,0,0,.05);color:var(--label);font-family:var(--mono);font-weight:600}
.pill.tag::before,.pill.soft::before{display:none}
.live{display:inline-flex;align-items:center;gap:6px;color:var(--green);font-size:12px;font-weight:600}
.live::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px var(--green-tint)}

/* ---------- tables ---------- */
.scroll{overflow-x:auto;margin:0 -24px;padding:0 24px}
.scroll table{min-width:860px}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:10px 10px;vertical-align:top}
th{font-size:12.5px;font-weight:600;color:var(--label-2);white-space:nowrap;border-bottom:1px solid var(--sep)}
th button{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:4px;border-radius:4px}
th button:hover{color:#000}
th button:focus-visible{outline:2px solid #000;outline-offset:2px}
th[aria-sort] button{color:#000}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums}
th.n button{flex-direction:row-reverse}
tbody tr:nth-child(even) td{background:rgba(0,0,0,.025)}
tbody tr td:first-child{border-radius:10px 0 0 10px}
tbody tr td:last-child{border-radius:0 10px 10px 0}
td select{min-width:140px}

/* ---------- chart ---------- */
.chart{display:grid;grid-template-columns:auto 1fr;gap:0 8px;margin-top:6px}
.chart .yaxis{display:flex;flex-direction:column;justify-content:space-between;height:170px;font-size:11px;color:var(--label-3);text-align:right;font-variant-numeric:tabular-nums}
.chart .plot{position:relative;height:170px;display:flex;align-items:flex-end;gap:6px;border-bottom:1px solid rgba(0,0,0,.2)}
.chart .grid{position:absolute;left:0;right:0;border-top:1px dashed var(--sep)}
.chart .bar{flex:1;display:flex;justify-content:center;height:100%;align-items:flex-end;position:relative;z-index:1}
.chart .bar i{display:block;width:100%;max-width:28px;background:var(--violet);border-radius:8px 8px 0 0}
.chart .bar.today i{background:#000}
.chart .bar:hover i{opacity:.85}
.chart .xaxis{grid-column:2;display:flex;gap:6px;font-size:11px;color:var(--label-3);margin-top:6px}
.chart .xaxis span{flex:1;text-align:center;white-space:nowrap}
.chart-summary{font-size:14px;margin:2px 0 10px}

/* ---------- buttons: black pills; .cta adds the white arrow circle ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;min-height:40px;padding:8px 22px;font-weight:500;font-size:14.5px;cursor:pointer;background:#000;color:#fff;text-decoration:none;transition:background-color .2s ease,color .2s ease}
.btn:hover{background:#1f2937}
.btn:focus-visible{outline:2px solid #000;outline-offset:3px}
.btn.cta{padding:6px 6px 6px 24px;gap:14px}
.btn.cta::after{content:"";flex:none;width:30px;height:30px;border-radius:50%;background:#fff var(--arrow) center/16px no-repeat}
.btn.ghost{background:#fff;color:#000;box-shadow:inset 0 0 0 1px var(--border)}
.btn.ghost:hover{background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}
.btn.small{min-height:32px;padding:5px 14px;font-size:13px}
.btn.danger{background:var(--red-tint);color:var(--red)}
.btn.danger:hover{background:rgba(215,0,21,.14)}
.btn.warn{background:var(--orange-tint);color:var(--orange)}
.btn.warn:hover{background:rgba(214,120,0,.2)}
.btn:disabled{opacity:.4;cursor:not-allowed}

/* ---------- app cards ---------- */
.appgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.appcard{display:flex;flex-direction:column;gap:14px;background:var(--card);border-radius:var(--r);padding:22px;color:var(--label);text-decoration:none;box-shadow:var(--shadow);transition:box-shadow .2s ease}
.appcard:hover{box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.appcard,.appcard:hover,.appcard *{text-decoration:none}
.appcard:focus-visible{outline:2px solid #000;outline-offset:3px}
.appcard .row{flex-wrap:nowrap;align-items:flex-start}
.appcard b{font-size:17px;font-weight:600;letter-spacing:-.02em}
.appicon{border-radius:14px;flex:none;object-fit:contain;background:rgba(0,0,0,.04)}
.appicon.blank{display:inline-flex;align-items:center;justify-content:center;background:var(--violet);color:#fff}
.appnav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.card.company{margin-top:12px}

/* ---------- guide ---------- */
.gsteps{list-style:none;display:flex;flex-direction:column;gap:16px;margin:0}
.gstep{display:flex;gap:14px;align-items:flex-start}
.gstep p{margin-top:2px}
.gnum{flex:none;width:28px;height:28px;border-radius:50%;background:#000;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:13px}

/* ---------- other pages ---------- */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{white-space:nowrap;display:inline-flex;align-items:center;gap:6px;background:#fff;border-radius:999px;padding:5px 12px;font-size:13px;cursor:pointer;user-select:none;box-shadow:inset 0 0 0 1px var(--border)}
.chip input{accent-color:#000;margin:0}
.chip.on{background:#000;color:#fff;box-shadow:none}
.chip.ro{cursor:default}
.chip button{border:0;background:none;cursor:pointer;color:var(--label-2);font-size:15px;line-height:1;padding:0 0 0 2px}
.list > div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--sep)}
.list > div:last-child{border-bottom:0}
.cols{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.task{border-radius:14px;padding:14px;background:rgba(0,0,0,.035)}
.task + .task{margin-top:10px}
.task .t{font-weight:600}
.task .meta{font-size:12.5px;color:var(--label-2);margin:6px 0 10px;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.task.late{box-shadow:inset 3px 0 0 var(--red)}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:6px}

/* ---------- forms & dialogs ---------- */
label.f{display:grid;gap:6px;font-size:13px;font-weight:500;color:var(--label-2)}
label.f + label.f,.fgrid + label.f,label.f + .fgrid{margin-top:14px}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
input[type=text],input[type=password],input[type=date],input[type=tel],select,textarea{border:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14);background:#fff;border-radius:14px;padding:10px 14px;font-weight:400;width:100%;color:#000;min-height:44px}
input:focus,select:focus,textarea:focus{outline:none;box-shadow:inset 0 0 0 2px #000}
textarea{resize:vertical}
.hint{font-size:12.5px;color:var(--label-3);font-weight:400}
.err{background:var(--red-tint);color:var(--red);border-radius:12px;padding:10px 14px;font-size:14px;margin-top:14px}
.note{background:rgba(43,38,68,.07);color:var(--label);border-radius:12px;padding:12px 14px;font-size:13.5px}
dialog{margin:auto;border:0;border-radius:24px;padding:0;width:min(580px,94vw);max-height:90vh;background:#fff;color:#000;box-shadow:0 30px 80px rgba(0,0,0,.18)}
dialog::backdrop{background:rgba(0,0,0,.3);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
dialog form,dialog .body{padding:26px}
dialog h2{margin-bottom:16px;font-size:24px;letter-spacing:-.03em}
dialog .foot{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.secret{font-family:var(--mono);font-size:18px;background:rgba(0,0,0,.05);border-radius:12px;padding:12px 14px;letter-spacing:.04em;user-select:all;word-break:break-all;color:#000}
fieldset{border:0}
fieldset legend{font-size:13px;font-weight:600;color:var(--label-2);margin:14px 0 6px}
select option{background:#fff;color:#000}

/* ---------- sign-in: a violet hero (brand, the tools, the partners) beside the form ---------- */
.gate{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;padding:24px;max-width:1440px;margin:0 auto;align-items:stretch}
.gate-hero{position:relative;border-radius:28px;overflow:hidden;background:var(--violet);color:#fff;padding:40px 44px;display:flex;flex-direction:column;gap:28px;min-height:calc(100vh - 48px)}
.gate-hero::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 85% 0%,rgba(255,255,255,.16),transparent 55%),radial-gradient(ellipse at 0% 100%,rgba(150,130,255,.24),transparent 60%)}
.gate-hero::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(255,196,0,.14),transparent 65%)}
.gate-hero > *{position:relative;z-index:1}
.gate-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gate-lockup{display:flex;align-items:center;gap:14px}
.gate-mark{width:56px;height:56px;border-radius:16px;background:#fff;display:grid;place-items:center;flex:none;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.gate-mark img{width:46px;height:46px;object-fit:contain}
.gate-lockup b{display:block;font-size:22px;font-weight:600;letter-spacing:-.03em;line-height:1.1}
.gate-lockup small{display:block;font-size:13px;color:rgba(255,255,255,.72);margin-top:2px}
.gate-badge{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}
.gate-badge i{width:8px;height:8px;border-radius:50%;background:#3ee08f;box-shadow:0 0 0 3px rgba(62,224,143,.25)}
.gate-copy{margin-top:auto}
.gate-hero h1{font-size:clamp(38px,4.6vw,60px);line-height:1.02;letter-spacing:-.045em;max-width:13ch}
.gate-hero p{color:rgba(255,255,255,.74);font-size:16.5px;line-height:1.6;max-width:46ch;margin-top:16px}
.gate-tools{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px}
.gate-tools li{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px 8px 8px;border-radius:14px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);font-size:13.5px;font-weight:500;line-height:1.2;transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease}
.gate-tools li:hover{background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);transform:translateY(-2px)}
.gate-tools img{width:34px;height:34px;border-radius:9px;object-fit:contain;background:#fff;flex:none}
.gate-tools li.lead{grid-column:1/-1}
.gate-partners{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:22px;border-top:1px solid rgba(255,255,255,.14);margin-top:auto}
.gp-tile{height:52px;min-width:52px;padding:6px;border-radius:12px;background:#fff;display:grid;place-items:center}
.gp-tile.wide{padding:6px 12px}
.gp-tile img{height:40px;width:auto;display:block}
.gate-partners small{flex:1;min-width:200px;font-size:12.5px;line-height:1.45;color:rgba(255,255,255,.7)}
.gate-side{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;padding:12px 0}
.gate .card.gate-card{width:100%;max-width:460px;padding:40px;border-radius:28px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 24px 60px rgba(17,12,46,.08)}
.gate .card h2{font-size:30px;letter-spacing:-.035em;margin-bottom:8px}
.gate-card > .muted{font-size:14.5px;line-height:1.55}
.gate-mobile-brand{display:none;align-items:center;gap:10px;margin-bottom:22px}
.gate-mobile-brand img{width:40px;height:40px;border-radius:12px;background:#fff;box-shadow:0 0 0 1px var(--border);padding:3px;object-fit:contain}
.gate-mobile-brand b{font-size:18px;letter-spacing:-.03em}
.gate form{margin-top:24px}
.gate form .btn.wide{width:100%;margin-top:22px;min-height:50px;font-size:15.5px;justify-content:space-between}
.gate form[aria-busy] .btn.wide{opacity:.75;cursor:progress}
.gate input{min-height:48px}
.pw-wrap{position:relative;display:block}
.pw-wrap input{padding-right:72px}
.pw-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;padding:6px 10px;border-radius:10px;font-size:13px;font-weight:600;color:var(--label-2);cursor:pointer}
.pw-eye:hover{background:rgba(0,0,0,.06);color:#000}
.pw-eye:focus-visible{outline:2px solid #000;outline-offset:1px}
.caps{font-size:12.5px;font-weight:600;color:var(--orange)}
.gate-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}
.check{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;color:var(--label-2);cursor:pointer;user-select:none}
.check input{width:16px;height:16px;accent-color:#000;margin:0}
.forgot{font-size:13.5px;max-width:100%}
.forgot summary{cursor:pointer;list-style:none;font-weight:600;color:#000;text-decoration:underline;text-decoration-color:rgba(0,0,0,.25);text-underline-offset:3px}
.forgot summary::-webkit-details-marker{display:none}
.forgot summary:hover{text-decoration-color:#000}
.forgot p{margin-top:8px;padding:10px 12px;border-radius:12px;background:rgba(43,38,68,.07);color:var(--label);line-height:1.5;font-size:13px}
.gate-secure{display:flex;gap:8px;align-items:flex-start;margin-top:22px;padding-top:18px;border-top:1px solid var(--sep);font-size:12.5px;line-height:1.5;color:var(--label-3)}
.gate-secure svg.ic{width:16px;height:16px;margin-top:1px;color:var(--green)}
.gate-foot{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;font-size:12.5px;color:var(--label-3);text-align:center;max-width:460px}
.gate-foot a{color:var(--label-2)}
.shake{animation:shake .38s ease}
@keyframes shake{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@media (prefers-reduced-motion: reduce){.shake{animation:none}.gate-tools li:hover{transform:none}}
@media (max-height:760px) and (min-width:901px){.gate-hero{padding:30px 36px;gap:20px}.gate-hero h1{font-size:44px}.gate-tools li{min-height:44px}.gate-tools img{width:28px;height:28px}}
@media (max-width:1180px) and (min-width:901px){.gate-tools{grid-template-columns:repeat(3,minmax(0,1fr))}}

.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#000;color:#fff;padding:11px 20px;border-radius:999px;font-size:14px;z-index:99;box-shadow:0 10px 30px rgba(0,0,0,.2)}

/* ---------- audit page: photo grid ---------- */
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.photos figure{margin:0;background:rgba(0,0,0,.035);border-radius:16px;overflow:hidden}
.photos img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:rgba(0,0,0,.06)}
.photos figcaption{padding:10px 12px;font-size:13px;display:grid;gap:2px}
.photos figcaption span,.photos figcaption a{color:var(--label-2);font-size:12px}
.photos figcaption a{color:#000;font-weight:600}

/* ---------- team: profile cards ---------- */
.pcgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}
.pcard{display:flex;flex-direction:column;gap:12px;background:var(--card);border-radius:var(--r);padding:22px}
.pcard.paused{opacity:.7}
.pcard h3{font-size:19px;font-weight:600;line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
.pcard p{margin:0;color:var(--label-2)}
.pcard p b{color:#000;font-weight:600}
.pc-top{display:flex;gap:14px;align-items:center}
.pc-num{flex:none;align-self:flex-start;min-width:28px;height:28px;padding:0 6px;border-radius:999px;background:#000;color:#fff;display:inline-grid;place-items:center;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.pc-pos{font-size:14px;font-weight:500;color:var(--label-2);margin-top:3px}
.pc-photo{flex:none;border-radius:50%;object-fit:cover;background:rgba(0,0,0,.05)}
.pc-photo.blank{display:inline-grid;place-items:center;background:var(--violet);color:#fff;font-weight:600;font-size:22px;letter-spacing:-.02em}
.pc-exp{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.pc-actions{margin-top:auto;padding-top:10px;border-top:1px solid var(--sep);gap:8px}
details.removed{margin-top:24px}
details.removed summary{cursor:pointer;list-style:revert}

@media (prefers-reduced-motion: no-preference){
  .seg button,.chart .bar i{transition:background-color .2s ease,opacity .2s ease}
}

@media (max-width:1100px){.cols{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}}
@media (max-width:900px){.grid3{grid-template-columns:1fr}
  .gate{grid-template-columns:1fr;min-height:auto}
  .gate-hero{min-height:auto;padding:28px;order:2}
  .gate-side{order:1}
  .gate-mobile-brand{display:flex}
  .gate-copy{margin-top:8px}.gate-hero h1{font-size:36px}
  .gate-tools{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}

/* Phones: the menu becomes a tab bar. */
@media (max-width:820px){
  .shell,.shell.collapsed{grid-template-columns:1fr}
  .side,.sidebar-toggle{display:none}
  .toolbar{padding:10px 16px}
  .main{padding:16px 16px 100px}
  .tabbar{display:flex;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:40;background:#000;border-radius:999px;padding:6px}
  .tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:48px;justify-content:center;font-size:10.5px;font-weight:500;color:rgba(255,255,255,.62);text-decoration:none;border-radius:999px}
  .tabbar a svg{width:21px;height:21px}
  .tabbar a.on{color:#000;background:#fff}
  .cols,.fgrid{grid-template-columns:1fr}
  .head .seg{width:100%}
  h1{font-size:32px}
  .gate{padding:12px;gap:12px}
  .gate .card.gate-card{padding:26px 22px}
  .gate .card h2{font-size:26px}
  .gate-hero{padding:22px;border-radius:22px}.gate-top{flex-wrap:wrap}.gate-hero h1{font-size:30px}
  .gate-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.gate-partners small{min-width:0;flex-basis:100%}
}

/* ---------- "Open a tool": what is it for? ---------- */
.pick-list{display:flex;flex-direction:column;gap:8px;margin-top:16px;max-height:46vh;overflow-y:auto}
.pick-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:rgba(0,0,0,.035);border-radius:16px;padding:12px 14px;cursor:pointer;color:#000;transition:background-color .2s ease}
.pick-item:hover{background:rgba(0,0,0,.07)}
.pick-item:focus-visible{outline:2px solid #000;outline-offset:2px}
.pick-t{display:flex;flex-direction:column;min-width:0}
.pick-t b{font-weight:600;letter-spacing:-.01em}
.mini-icon{width:20px;height:20px;border-radius:6px;object-fit:contain;flex:none;background:#fff}
.side a.nav.on .mini-icon{box-shadow:0 0 0 1px rgba(255,255,255,.4)}
.appicon{object-fit:contain;background:#fff;box-shadow:0 0 0 1px var(--border)}

/* ---------- company logo beside a company ---------- */
.logopick{flex:none;width:96px;height:96px;border-radius:50%;cursor:pointer;display:block;background:rgba(0,0,0,.04);box-shadow:inset 0 0 0 2px rgba(0,0,0,.12);overflow:hidden}
.logopick:hover{box-shadow:inset 0 0 0 2px #000}
.logopick-face{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:0;color:var(--label-2,#555)}
.logopick-face b{font-size:28px;line-height:1}.logopick-face small{font-size:12px}
.logopick-face img{width:100%;height:100%;object-fit:contain;background:#fff}
.complogo{flex:none;border-radius:10px;object-fit:contain;background:#fff;box-shadow:0 0 0 1px var(--border)}
.complogo.blank{display:inline-grid;place-items:center;color:var(--label-3);font-size:12px;background:rgba(0,0,0,.04);box-shadow:none}

/* ---------- hover and press feedback across the Console (pointer devices) ---------- */
@media (hover:hover) and (prefers-reduced-motion: no-preference){
  .btn{transition:background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .12s ease}
  .btn:active:not(:disabled){transform:scale(.97)}
  .btn.cta::after{transition:transform .2s ease}
  .btn.cta:hover::after{transform:translateX(3px)}
  .metric,.pcard,.appcard,.photos figure,.task{transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease}
  .metric:hover,.pcard:hover,.photos figure:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(17,12,46,.08)}
  .appcard:hover{transform:translateY(-2px);box-shadow:0 0 0 1px rgba(0,0,0,.14),0 12px 30px rgba(17,12,46,.08)}
  .task:hover{background:rgba(0,0,0,.055)}
  tbody tr{transition:background-color .15s ease}
  tbody tr:hover td{background:rgba(43,38,68,.06)}
  .chip{transition:box-shadow .2s ease,background-color .2s ease}
  .chip:not(.on):not(.ro):hover{box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}
  .menu-btn{transition:box-shadow .2s ease}
  .menu-btn:hover{box-shadow:0 0 0 1px rgba(0,0,0,.3)}
  .seg button:not([aria-pressed="true"]):hover{color:#000;background:rgba(0,0,0,.05)}
  .ilist .it{transition:background-color .15s ease}
  .ilist .it:hover{background:rgba(0,0,0,.025)}
  input[type=text]:hover,input[type=password]:hover,input[type=tel]:hover,input[type=date]:hover,select:hover,textarea:hover{box-shadow:inset 0 0 0 1px rgba(0,0,0,.32)}
  .brand-mark{transition:transform .2s ease}
  .brand:hover .brand-mark{transform:rotate(-6deg)}
}
.btn:focus-visible,.appcard:focus-visible{outline:2px solid #000;outline-offset:3px}

/* ---------- in-between widths: tablets and small laptops ---------- */
@media (max-width:1100px) and (min-width:821px){
  .shell{grid-template-columns:220px 1fr}
  .main{padding:18px 20px 56px}
  .toolbar{padding:10px 20px}
}
@media (max-width:820px){
  .head{align-items:flex-start}
  .head .row{width:100%}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .metric{min-height:118px;padding:16px}
  .metric .v{font-size:30px}
  .pcgrid,.appgrid{grid-template-columns:1fr}
  .pcard .pc-photo{width:56px;height:56px;font-size:18px}
  .pc-top{gap:12px}
  .card{padding:18px}
  .scroll{margin:0 -18px;padding:0 18px}
  dialog form,dialog .body{padding:20px}
  dialog .foot{position:sticky;bottom:-20px;background:#fff;padding:12px 0 4px;margin-top:16px}
  .popover{right:12px;left:12px;min-width:0}
}
@media (max-width:380px){.metrics{grid-template-columns:1fr}.tabbar a{font-size:9.5px}}

/* ---------- an app's overview at one company (App console > View records) ---------- */
.tabseg{margin-top:20px}
.hcharts{display:grid;align-items:start;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px;margin-top:16px}
.hchart .cap{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}
.hbars{display:grid;gap:10px}
.hrow{display:grid;grid-template-columns:minmax(80px,34%) 1fr auto;align-items:center;gap:10px;font-size:13px}
.hl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--label-2)}
.htrack{position:relative;height:14px;background:var(--fill-2);border-radius:999px}
.htrack i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:var(--violet)}
.htrack i.t-good{background:var(--green)}
.htrack i.t-warn{background:#d67800}
.htrack i.t-bad{background:var(--red)}
.htrack i.t-muted{background:rgba(0,0,0,.35)}
.hmark{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:rgba(0,0,0,.55);border-radius:1px}
.hv{min-width:56px;text-align:right;font-weight:600}
.hnote{margin-top:10px}
@media (max-width:520px){.hrow{grid-template-columns:1fr auto}.hl{grid-column:1/-1}.htrack{grid-column:1}}
.list.flags > div{justify-content:flex-start;gap:14px}
.list.flags > div > span:first-child{flex:0 0 auto;min-width:min(200px,40%)}
/* Four figures: two by two on mid-size screens instead of three and one. */
@media (min-width:521px) and (max-width:1180px){.metrics:has(> :nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Donut charts on an app's overview (as in the FOX app): a split of the whole, or a status mix. */
.donuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin-top:16px;align-items:start}
.donut h3{margin-bottom:10px}
.donut-body{display:flex;align-items:center;gap:18px}
.donut-svg{width:148px;height:148px;flex:0 0 148px}
.donut-svg circle{transition:opacity .15s ease}
.donut-svg circle:hover{opacity:.82}
.donut-total{font-size:24px;font-weight:600;fill:var(--label);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.donut-unit{font-size:11.5px;fill:var(--label-3)}
.donut-legend{list-style:none;display:grid;gap:7px;min-width:0;flex:1;font-size:13px}
.donut-legend li{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px}
.donut-legend i{width:10px;height:10px;border-radius:3px}
.donut-legend .dl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--label-2)}
.donut-legend .dv{font-weight:600;white-space:nowrap}
.donut-legend small{font-weight:400;color:var(--label-3)}
@media (max-width:420px){.donut-body{flex-direction:column;align-items:stretch}.donut-svg{margin:0 auto}}
.donuts > .card,.hcharts > .card{margin:0}
.donut-legend .dl{white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.3}
.donut-legend li{align-items:start}
.donut-legend i{margin-top:4px}
.donut-svg{width:132px;height:132px;flex:0 0 132px}
.donuts{grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr))}
.donut-legend .dl{overflow-wrap:break-word}

/* ---------- an audit's page: team, sync problems, data by app ---------- */
.statusgrid{align-items:start;margin:16px 0}
.statusgrid > .card{margin:0}
.tlist,.plist{display:grid;gap:2px}
.trow{display:grid;grid-template-columns:36px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--sep)}
.trow:last-child,.prow:last-child{border-bottom:0}
.trow .av{position:relative}
.trow .av.on::after{content:"";position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 0 2px #fff}
.tmain{display:grid;gap:4px;min-width:0}
.tapp{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.tapp .tname{font-size:13px;font-weight:600;min-width:84px}
.prow{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--sep);align-items:flex-start}
.pmain{display:grid;gap:4px;min-width:0}
.pfix{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:2px}
.appcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px;align-items:start}
.appcards > .card{margin:0}
.appcard h2{font-size:17px}
.appcard .chips{margin:10px 0 0}
.appkpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin:14px 0}
.appkpis > div{display:grid;gap:2px;min-width:0}
.appkpis b{font-size:18px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.appdonut .donut{padding:0;background:none;box-shadow:none;margin:0}
.appdonut .donut h3{font-size:13px;color:var(--label-2);font-weight:600;margin-bottom:6px}
.appdonut .donut-svg{width:104px;height:104px;flex:0 0 104px}
.appflag{margin:10px 0 6px}
@media (max-width:560px){.prow{flex-direction:column}}

/* ---------- the audit process: progress line (lib/stages.js) ---------- */
.pline{list-style:none;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));margin:6px 0 4px;padding:0;counter-reset:none}
.pline .ps{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;min-width:0}
.pline .ps::before{content:"";position:absolute;top:15px;left:calc(-50% + 18px);right:calc(50% + 18px);height:3px;border-radius:2px;background:#e3e1ea}
.pline .ps:first-child::before{display:none}
.pline .ps.done::before,.pline .ps.cur::before,.pline .ps.wait::before,.pline .ps.bad::before{background:#0b7a45}
.pline .pdot{position:relative;z-index:1;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;
  background:#fff;color:var(--label-3);box-shadow:inset 0 0 0 2px #d9d6e3;font-variant-numeric:tabular-nums}
.pline .ps.done .pdot{background:#0b7a45;color:#fff;box-shadow:none}
.pline .ps.cur .pdot{background:#2B2644;color:#fff;box-shadow:0 0 0 5px rgba(43,38,68,.16)}
.pline .ps.wait .pdot{background:#d67800;color:#fff;box-shadow:0 0 0 5px rgba(214,120,0,.18)}
.pline .ps.bad .pdot{background:#c4161c;color:#fff;box-shadow:0 0 0 5px rgba(196,22,28,.14)}
.pline .ps.skip .pdot{background:transparent;color:var(--label-3);box-shadow:inset 0 0 0 2px #d9d6e3;border:0;outline:2px dashed #cfcbd9;outline-offset:-2px}
.pline .ps.skip .plabel{text-decoration:line-through;opacity:.6}
.pline .pcheck{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.pline .plabel{font-size:12px;line-height:1.25;color:var(--label-2);font-weight:500;overflow-wrap:anywhere}
.pline .ps.cur .plabel,.pline .ps.wait .plabel{color:var(--label);font-weight:700}
.pline .pwhen{font-size:11px;color:var(--label-3);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:no-preference){.pline .ps.cur .pdot,.pline .ps.wait .pdot{animation:ppulse 2.4s ease-in-out infinite}}
@keyframes ppulse{50%{box-shadow:0 0 0 8px rgba(43,38,68,.06)}}
.pline.compact .ps::before{top:9px;left:calc(-50% + 11px);right:calc(50% + 11px);height:2px}
.pline.compact .pdot{width:20px;height:20px;font-size:10px}
.pline.compact .pdot .pcheck{width:12px;height:12px}
.pline.compact .ps.cur .pdot,.pline.compact .ps.wait .pdot{box-shadow:0 0 0 3px rgba(43,38,68,.16)}
.pline.compact .plabel{font-size:10.5px}
@media (max-width:760px){
  .pline{grid-template-columns:none;grid-auto-flow:row;gap:0}
  .pline .ps{flex-direction:row;text-align:left;gap:10px;padding:5px 0}
  .pline .ps::before{left:15px;right:auto;top:-12px;width:3px;height:22px}
  .pline .ps:first-child::before{display:none}
  .pline.compact{display:flex;grid-auto-flow:column;overflow:hidden}
  .pline.compact .ps{flex:1;flex-direction:column;padding:0}
  .pline.compact .ps::before{top:9px;left:calc(-50% + 11px);right:calc(50% + 11px);width:auto;height:2px}
  .pline.compact .plabel{display:none}
  .pline.compact .ps.cur .plabel,.pline.compact .ps.wait .plabel{display:block;position:absolute;top:24px;white-space:nowrap}
  .pline.compact{padding-bottom:16px}
}
.progresscard{margin:16px 0}
.progressgrid{margin-top:18px;align-items:start}
.nextbox{border-radius:16px;padding:16px 18px;background:#f6f5fa;display:grid;gap:8px}
.nextbox.ready{background:var(--green-tint)}
.nextbox.wait{background:var(--orange-tint)}
.nextbox b{font-size:17px}
.teambox .trow2{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--sep)}
.teambox .trow2:last-child{border-bottom:0}
.teambox select{max-width:100%}
.av.lead{background:#d67800;color:#fff}
.chip.lead{font-weight:600}
.phist{margin-top:14px}
.phist summary{cursor:pointer;font-weight:600;font-size:13.5px}
.stagecell{min-width:300px}
.stagecell .pline.compact .plabel{display:none}
.stagecell .pline.compact{padding-bottom:0}
/* Overview */
.stagebar{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;margin:4px 0 16px}
.stagebar .sb{display:grid;gap:4px;background:#fff;border-radius:14px;padding:12px 12px 10px;text-decoration:none;color:inherit;border-top:4px solid #e3e1ea;min-width:0;transition:transform .15s ease,box-shadow .15s ease}
.stagebar .sb:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.06)}
.stagebar .sb.has{border-top-color:#2B2644}
.stagebar .sb.s-approval.has{border-top-color:#d67800}
.stagebar .sb.s-completed.has,.stagebar .sb.s-post_audit.has{border-top-color:#0b7a45}
.stagebar .sbn{font-size:11px;color:var(--label-3);font-weight:600}
.stagebar .sbl{font-size:12px;line-height:1.25;color:var(--label-2);min-height:30px}
.stagebar .sbc{font-size:26px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.stagebar .sb:not(.has) .sbc{color:var(--label-3)}
@media (max-width:1100px){.stagebar{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (max-width:560px){.stagebar{grid-template-columns:repeat(3,minmax(0,1fr))}}
.attention{margin-bottom:16px}
.alist{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:6px 18px}
.arow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 0;border-bottom:1px solid var(--sep);text-decoration:none;color:inherit;min-width:0}
.arow b{flex:1 1 140px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.pipetools{justify-content:space-between;gap:12px;margin:0 0 12px;flex-wrap:wrap}
.segn{margin-left:6px;font-size:11px;opacity:.7;font-variant-numeric:tabular-nums}
.pipesearch{min-width:220px;border:0;border-radius:999px;padding:9px 16px;background:#fff;box-shadow:0 0 0 1px var(--border)}
.cocards{display:grid;gap:12px}
.cocards > .card{margin:0}
.corow{display:grid;gap:14px}
.cohead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.coname{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;min-width:0}
.coname b{font-size:17px;letter-spacing:-.01em}
.coteam{display:flex;align-items:center;gap:4px}
.coteam .av{width:30px;height:30px;font-size:11px}
.cofoot{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}
.cofoot .cofacts{margin-left:auto}

/* ---------- tasks (lib/tasks.js) ---------- */
.taskgrid{grid-template-columns:minmax(0,1fr) 340px;align-items:start;margin-top:16px}
@media (max-width:1100px){.taskgrid{grid-template-columns:1fr}}
.tgroups{display:grid;gap:12px}
.tgroups > .card{margin:0}
.tgroup .cap{margin-bottom:4px}
.trowt{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 0;border-top:1px solid var(--sep)}
.trowt.done .ttitle{color:var(--label-3);text-decoration:line-through}
.tstat{width:24px;height:24px;border-radius:50%;border:2px solid #cfcbd9;background:#fff;cursor:pointer;display:grid;place-items:center;padding:0;margin-top:1px}
.tstat.running{border-color:#2B2644;background:conic-gradient(#2B2644 0 50%,#fff 50% 100%)}
.tstat.done{border-color:#0b7a45;background:#0b7a45}
.tstat .pcheck{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.trowt.late .tstat{border-color:var(--red)}
.ttitle{font-weight:600;font-size:14.5px}
.tmeta{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;margin-top:4px}
.lateword{color:var(--red);font-weight:600}
.tprog{display:flex;align-items:center;gap:10px;margin-top:8px}
.tbar{flex:0 1 220px;height:8px;border-radius:999px;background:var(--fill-2);overflow:hidden}
.tbar i{display:block;height:100%;background:#0b7a45;border-radius:999px}
.tact{display:flex;gap:6px}
.workload{margin:0}
.wrow{display:grid;grid-template-columns:36px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--sep)}
.wrow:last-child{border-bottom:0}
.v.bad{color:var(--red)}
@media (max-width:560px){.trowt{grid-template-columns:28px 1fr}.tact{grid-column:2}}

/* Energy Ledger */
.lg-notice{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--card);border-radius:16px;padding:14px 18px;margin-bottom:16px;border-left:4px solid var(--orange)}
.lg-notice.bad{border-left-color:var(--red)}
.lg-notice>div{flex:1 1 280px;min-width:0}
.lg-logo{border-radius:14px}
.lg-gap{margin-top:16px}
.lg-title{font-size:32px}
.lg-solo{max-width:1240px;margin:0 auto;padding:22px 20px 60px}
.lg-tabs{display:flex;gap:4px;background:var(--card);border-radius:999px;padding:4px;margin:0 0 16px;width:fit-content;max-width:100%;overflow-x:auto}
.lg-tabs button{border:0;background:none;border-radius:999px;padding:8px 18px;min-height:40px;cursor:pointer;font-weight:500;color:var(--label-2);white-space:nowrap}
.lg-tabs button.on{background:var(--accent);color:var(--on-accent)}
.lg-tabs button:focus-visible,.lg-link:focus-visible,.lg-pillbtn:focus-visible,.lg-x:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
.lg-card{margin-bottom:16px}
.lg-card>.small.muted{margin-bottom:10px}
.lg-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:16px}
.lg-kpi{background:var(--card);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:2px;min-width:0}
.lg-kpi b{font-size:22px;font-weight:600;letter-spacing:-.02em;overflow-wrap:anywhere}
.lg-finds{display:grid;gap:10px}
.lg-find{display:flex;gap:10px;align-items:flex-start;font-size:14px}
.lg-find .pill{flex:none;min-width:64px;text-align:center}
.lg-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}
.lg-fig{background:var(--card);border-radius:16px;padding:14px 16px;min-width:0}
.lg-fig figcaption{display:flex;justify-content:space-between;gap:8px;align-items:baseline;margin-bottom:6px}
.lg-plot{position:relative}
.lg-chart{width:100%;height:auto;display:block}
.lg-tip{position:absolute;pointer-events:none;background:#111;color:#fff;font-size:12px;padding:6px 9px;border-radius:8px;z-index:2;min-width:120px}
.lg-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--label-2);margin-bottom:4px}
.lg-legend span{display:inline-flex;gap:5px;align-items:center}
.lg-figs{font-size:13px;margin-top:6px}
.lg-figs summary{cursor:pointer;color:var(--label-2)}
.lg-src{margin-top:12px}
.lg-scroll{overflow-x:auto}
.lg-t{border-collapse:collapse;width:100%;font-size:13px}
.lg-t th{font-weight:600;text-align:left;padding:7px 8px;border-bottom:1px solid var(--sep);white-space:nowrap;font-size:12px;color:var(--label-2)}
.lg-t td{padding:5px 8px;border-bottom:1px solid var(--sep);white-space:nowrap}
.lg-t .n{text-align:right;font-variant-numeric:tabular-nums}
.lg-t tfoot td{font-weight:600;border-bottom:0}
.lg-edit td{padding:3px 4px}
.nin{width:82px;min-height:36px;padding:5px 7px;border:1px solid var(--sep);border-radius:8px;background:#fff;text-align:right;font-variant-numeric:tabular-nums}
.nin.wide{width:104px}
.nin.read{background:#fff8e6}
.nin.bad{border-color:var(--red)}
.lg-form .nin{width:100%}
.lg-rates{margin-top:12px}.lg-rates summary{cursor:pointer;font-weight:600}.lg-rates .list{margin-top:8px}
.lg-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
.lg-form.two{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.lg-month{display:flex;gap:3px}
.lg-month select{min-height:36px;border:1px solid var(--sep);border-radius:8px;background:#fff;padding:0 2px}
.lg-acts{display:flex;gap:4px;align-items:center}
.lg-pillbtn{border:0;cursor:pointer;min-height:32px}
.lg-x{border:0;background:none;font-size:18px;line-height:1;width:32px;height:32px;cursor:pointer;color:var(--label-2);border-radius:8px}
.lg-x:hover{background:var(--fill)}
.lg-link{border:0;background:none;padding:6px 0;cursor:pointer;text-decoration:underline;font-size:13px}
.lg-link.danger{color:var(--red)}
.lg-fuels,.lg-lines{display:grid;gap:12px}
.lg-fuel{border:1px solid var(--sep);border-radius:14px;padding:12px 14px;display:grid;gap:8px}
.lg-hint,.lg-warnline{color:var(--orange)}
.lg-big{display:flex;gap:10px;align-items:baseline;margin:2px 0 4px}
.lg-big b{font-size:36px;font-weight:600;letter-spacing:-.03em}
.lg-grid .lg-form{margin-top:12px}
.lg-h3{margin:14px 0 6px}
.lg-notes{padding-left:18px;display:grid;gap:5px}
.lg-check{margin-top:8px;color:var(--label-2)}
.lg-dlg .body{max-height:88vh;overflow:auto}
.lg-dlg.wide{width:min(1060px,96vw);max-width:96vw}
.lg-review{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:10px}
.lg-scan img{width:100%;border-radius:10px;border:1px solid var(--sep);display:block}
.lg-ai{margin-top:12px;display:grid;gap:8px;justify-items:start}
.lg-report{background:var(--card);border-radius:20px;padding:28px}
.lg-report header{border-bottom:2px solid #000;padding-bottom:12px;margin-bottom:16px}
.lg-report h2{font-size:26px;margin:4px 0 8px}
.lg-report section{margin-top:22px}
.lg-report h3{margin-bottom:8px}
.lg-report .lg-kpi{background:var(--bg)}
.lg-report .lg-fig{padding:10px 0}
.lg-rlist{padding-left:18px;display:grid;gap:5px;font-size:14px}
.lg-rt td,.lg-rt th{font-size:11.5px;padding:4px 6px}
.lg-sources p{margin-bottom:4px}
@media (max-width:760px){.lg-review{grid-template-columns:1fr}.lg-title{font-size:26px}.lg-charts{grid-template-columns:1fr}}
.lg-form input:not(.nin),.lg-form select{width:100%;min-height:36px;padding:5px 9px;border:1px solid var(--sep);border-radius:8px;background:#fff}
.lg-form label,.lg-form .f{min-width:0}
.lg-bill-info{width:100%;border-collapse:collapse;font-size:12px;margin-bottom:4px}
.lg-bill-info td{padding:3px 8px 3px 0;white-space:nowrap}
.lg-bill-info .ttl{font-weight:600;font-size:13px;text-align:center;padding-bottom:6px}
.lg-bill{font-size:11px;border:1px solid var(--sep)}
.lg-bill th,.lg-bill td{border:1px solid var(--sep);padding:3px 5px}
.lg-bill th{white-space:normal;min-width:58px;max-width:92px;text-align:center;vertical-align:middle;background:var(--fill-2);color:var(--label);font-size:10.5px;line-height:1.2}
.lg-bill th.grp{background:var(--fill)}
.lg-bill tfoot td{background:var(--fill-2)}
.lg-rhead{border-bottom:2px solid #000;padding-bottom:12px;margin-bottom:16px}
.lg-brand{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.lg-brand img{height:52px;width:auto}
.lg-brand div{display:flex;flex-direction:column}
.lg-brand b{font-size:18px;letter-spacing:.02em}
.lg-part{margin-top:30px}
.lg-parth{font-size:20px;padding-bottom:6px;border-bottom:2px solid #000;margin-bottom:12px}
.lg-subh{font-size:14px;font-weight:600;margin:16px 0 6px}
.lg-rnote{margin-top:4px}
.lg-billpage{margin-top:20px}
.lg-report .lg-charts{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
/* The PDF: A4 portrait with KISEM on every page; only the team's bill table takes a wide page. */
@page{size:A4 portrait;margin:17mm 12mm 14mm;
  @top-left{content:"KISEM, IIT Gandhinagar";font:600 9pt var(--font,sans-serif);color:#000}
  @top-right{font:400 8.5pt sans-serif;color:#444}
  @bottom-left{content:"Energy Ledger, FOX Console";font:400 8pt sans-serif;color:#555}
  @bottom-right{content:"Page " counter(page) " of " counter(pages);font:400 8pt sans-serif;color:#555}}
@page billsheet{size:A3 landscape;margin:15mm 9mm 12mm;
  @top-left{content:"KISEM, IIT Gandhinagar";font:600 9pt sans-serif;color:#000}
  @top-right{font:400 8.5pt sans-serif;color:#444}
  @bottom-left{content:"Energy Ledger, FOX Console";font:400 8pt sans-serif;color:#555}
  @bottom-right{content:"Page " counter(page) " of " counter(pages);font:400 8pt sans-serif;color:#555}}
@media print{
  html,body{background:#fff}
  .shell,.content,.main{display:block!important;padding:0!important;margin:0!important;min-height:0!important;max-width:none!important}
  .noprint,.side,.sidebar,.tabbar,.topbar,.toolbar,.bar,.lg-notice,.lg-tip,.lg-figs{display:none!important}
  main,.main,.content,.lg-solo,.lg-body{margin:0!important;padding:0!important;max-width:none!important;width:auto!important}
  .lg-report{padding:0;border-radius:0;background:#fff;font-size:9.5pt}
  .lg-part{break-before:page;margin-top:0}
  .lg-parth{font-size:15pt}
  .lg-subh{font-size:10.5pt;margin:10pt 0 4pt;break-after:avoid}
  .lg-scroll{overflow:visible}
  .lg-rt{break-inside:auto}
  .lg-rt tr{break-inside:avoid}
  .lg-rt td,.lg-rt th{font-size:7.8pt;padding:2.2pt 4pt;white-space:normal}
  .lg-report .lg-kpis{grid-template-columns:repeat(3,1fr);gap:6pt}
  .lg-report .lg-kpi{padding:6pt 8pt;background:#f4f4f4}
  .lg-report .lg-kpi b{font-size:12pt}
  .lg-report .lg-charts{grid-template-columns:1fr 1fr;gap:6pt}
  .lg-report .lg-fig{break-inside:avoid;padding:4pt 0}
  .lg-billpage{page:billsheet;break-before:page;break-after:page;margin:0}
  .lg-bill{font-size:6.7pt;width:100%}
  .lg-bill th{font-size:6.2pt;min-width:0;max-width:none;padding:2px}
  .lg-bill td{padding:2px;white-space:nowrap}
  .lg-bill-info{font-size:8.5pt}
}

/* ---------- redesign: sidebar, profile menu, footer (FOX Console redesign canvas) ---------- */
.side .grow,.popover .grow{flex:1;min-width:0}
.side-new{display:flex;align-items:center;justify-content:center;gap:8px;height:42px;margin:0 2px 6px;border:0;border-radius:12px;background:#000;color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:background-color .15s ease}
.side-new:hover{background:var(--violet)}
.side-new .ic{width:16px;height:16px;stroke-width:2.4}
.side-new:focus-visible,.nav-toggle:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
.side .nav-row{display:flex;align-items:center;gap:2px}
.side .nav-row a.nav{flex:1;min-width:0}
.nav-toggle{width:38px;height:38px;flex:none;border:0;border-radius:999px;background:transparent;color:#3a3a3a;cursor:pointer;display:grid;place-items:center}
.nav-toggle:hover{background:rgba(0,0,0,.05)}
.nav-toggle .ic{width:16px;height:16px}
.side .nav-kids{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 20px;padding-left:8px;border-left:1px solid #e3e3e3}
.side .nav-kids[hidden]{display:none}
.side .nav-kids a.nav.sub{padding-left:12px}
.side a.nav .ic + .grow + .ic{width:14px;height:14px;opacity:.55}
.side-bottom{padding-top:12px;margin-top:8px;border-top:1px solid var(--sep)}

.menu-btn{padding:4px 12px 4px 4px;gap:10px}
.menu-btn .av{width:32px;height:32px;font-size:12px}
.menu-btn .menu-who{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2}
.menu-btn .menu-who b{font-size:13px;font-weight:600}
.menu-btn .menu-who small{font-size:11px;color:var(--label-2)}
.menu-btn .ic{width:14px;height:14px}
.menu-btn[aria-expanded="true"] .ic{transform:rotate(180deg)}
.popover.profile{width:300px;border-radius:20px;padding:8px;top:60px}
.popover.profile .who{display:flex;gap:12px;align-items:center;padding:12px;border:0;margin:0}
.popover.profile .av.big{width:44px;height:44px;border-radius:14px;font-size:15px}
.popover.profile .who-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.popover.profile .who-t b{font-size:15px}
.popover.profile .mono{font-family:var(--mono)}
.popover.profile .who-tags{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 10px}
.popover.profile .sep{height:1px;background:var(--sep);margin:4px}
.popover.profile a,.popover.profile button{min-height:44px;border-radius:12px;font-weight:500}
.popover.profile .mi-hint{font-size:12px;color:var(--label-2)}
.popover.profile .signout{color:var(--red);font-weight:600}

.site-foot{margin-top:auto;color:var(--violet)}
.site-foot .waves{position:relative;height:110px;overflow:hidden}
.site-foot .wave{position:absolute;left:0;bottom:0;width:200%;height:110px;display:block;will-change:transform}
.site-foot .wave.front{bottom:-1px}
.foot-body{background:#E4E3EC;padding:12px 40px 28px;display:flex;flex-direction:column;gap:36px}
.foot-top{display:flex;flex-wrap:wrap;gap:40px 64px;justify-content:space-between}
.foot-brand{flex:1 1 260px;max-width:360px;display:flex;flex-direction:column;gap:12px}
.foot-brand p{margin:0;font-size:15px;color:#3a3a3a}
.foot-brand p.small{font-size:13px}
.foot-brand a{color:var(--violet)}
.foot-logo{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:17px;font-weight:700;letter-spacing:.02em}
.foot-mark{width:38px;height:38px;border-radius:11px;background:var(--violet);display:grid;place-items:center}
.foot-mark .ic{width:19px;height:19px;stroke:#fff;stroke-width:2.2}
.foot-cols{flex:2 1 420px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:28px 32px}
.fcol{display:flex;flex-direction:column;gap:12px}
.ftitle{font-size:15px;font-weight:600;padding-bottom:4px}
.flink{font-size:14px;color:#3a3a3a;text-decoration:none}
.flink:hover{color:#000;text-decoration:underline;text-underline-offset:3px}
.flink:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
.foot-legal{border-top:1px solid #a9a6bb;padding-top:18px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;font-size:13px;color:#5e5e5e}
@media (max-width:820px){
  .menu-btn .menu-who{display:none}
  .foot-body{padding:12px 20px 110px}
  .popover.profile{right:12px;width:min(300px,calc(100vw - 24px))}
}
@media print{.site-foot{display:none}}
.side .nav-row a.nav{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- redesign: audit tasks pie, plant inventory, tasks timeline ---------- */
.okword{color:var(--green);font-weight:600}
.metric .v.warn{color:var(--orange)}
.tbar.wide{display:block;flex:none;width:100%}
.av.sm{width:28px;height:28px;font-size:11px}
.taskpie{margin-top:16px}
.taskpie .cap a{font-size:13.5px;font-weight:600}
.pie-row{display:flex;gap:28px;align-items:center;flex-wrap:wrap;margin-top:8px}
.pie{width:168px;height:168px;border-radius:50%;flex:none;display:grid;place-items:center}
.pie-hole{width:116px;height:116px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px}
.pie-hole b{font-size:30px;font-weight:600;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.pie-hole span{font-size:12px;color:var(--label-2)}
.pie-side{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:16px}
.pstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pstat{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 8px;padding:12px 14px;border-radius:14px;background:var(--bg)}
.pstat .dot{width:10px;height:10px;border-radius:3px;grid-row:span 2}
.pstat b{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
.pstat span:last-child{font-size:12px;color:var(--label-2);grid-column:2}
.pleft{display:flex;flex-direction:column;gap:6px}
.pleft-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 64px;gap:12px;align-items:center;padding:10px 12px;border-radius:12px;text-decoration:none;color:var(--label);box-shadow:0 0 0 1px var(--border)}
.pleft-row:hover{background:#f7f7f9}
.pleft-row .tbar{flex:none;width:100%}
.pl-t{display:flex;flex-direction:column;min-width:0}
.pl-t b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.inv-grid{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:16px;align-items:start;margin-top:16px}
.inv-head,.inv-cat{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 56px 104px;gap:10px;align-items:center}
.inv-head{padding:6px 12px}
.inv-cat{width:100%;padding:12px;border:0;border-left:3px solid transparent;border-radius:10px;background:#fff;text-align:left;cursor:pointer;font:inherit;color:var(--label)}
.inv-cat:hover{background:#f7f7f9}
.inv-cat.on{background:var(--bg);border-left-color:#000}
.inv-cat .n{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
.inv-cat .pill{justify-self:start}
.inv-edit{display:flex;flex-direction:column;gap:14px}
.inv-count{display:flex;align-items:center;gap:12px}
.stepper{display:inline-flex;align-items:center;gap:4px;border-radius:12px;box-shadow:0 0 0 1px var(--border);padding:3px}
.stepper button{width:38px;height:38px;border:0;border-radius:9px;background:var(--bg);font-size:18px;font-weight:600;cursor:pointer}
.stepper button:hover{background:#e9e9e9}
.stepper .n{min-width:40px;text-align:center;font-weight:600;font-size:16px;font-variant-numeric:tabular-nums}
.inv-types{display:flex;flex-direction:column;gap:8px}
.inv-type{display:grid;grid-template-columns:minmax(0,1.3fr) 100px 90px auto auto;gap:8px;align-items:center}
.inv-type input{height:42px;min-width:0}
.inv-task{margin-top:4px}

.tl-card{margin-top:16px}
.tl-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:6px 0 12px}
.tl-legend{display:flex;gap:6px 16px;flex-wrap:wrap;color:var(--label-2)}
.tl-legend span{display:inline-flex;align-items:center;gap:6px}
.sw{width:12px;height:12px;border-radius:3px;display:inline-block}
.sw.done{background:var(--green)}.sw.run{background:#000}.sw.late{background:#d67800}.sw.todo{border:1px dashed #a3a3a3}.sw.today{background:var(--red);width:3px}
.tl-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.tl-scroll{overflow-x:auto;min-width:0}
.tl-row{display:grid;grid-template-columns:260px minmax(420px,1fr);gap:12px;align-items:center;min-height:52px}
.tl-days{min-height:30px;border-bottom:1px solid var(--sep)}
.tl-track{position:relative;height:100%;min-height:30px;display:grid;grid-template-columns:repeat(21,1fr);align-items:center}
.tl-day{font-size:11.5px;text-align:center;color:var(--label-2);font-variant-numeric:tabular-nums;border-radius:999px;padding:2px 0}
.tl-day.now{background:var(--red);color:#fff;font-weight:700}
.tl-co{display:flex;gap:10px;align-items:center;padding:14px 4px 6px;border-top:1px solid var(--sep);flex-wrap:wrap}
.tl-co a{color:var(--label);text-decoration:none}
.tl-task{width:100%;border:0;background:#fff;border-radius:12px;cursor:pointer;font:inherit;color:var(--label);text-align:left;padding:6px 4px}
.tl-task:hover{background:#f7f7f9}
.tl-task.on{background:rgba(0,0,0,.05)}
.tl-label{display:flex;align-items:center;gap:10px;min-width:0}
.tl-t{display:flex;flex-direction:column;min-width:0}
.tl-t b{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-task .tl-track{display:block;height:30px}
.tl-bar{position:absolute;top:8px;height:14px;border-radius:999px;overflow:hidden;background:#dddae6}
.tl-bar i{display:block;height:100%;background:#000;border-radius:999px}
.tl-bar.done{background:#cfe6d8}.tl-bar.done i{background:var(--green)}
.tl-bar.late{background:#f0d9b5}.tl-bar.late i{background:#d67800}
.tl-bar.todo{background:transparent;box-shadow:inset 0 0 0 1px #a3a3a3}
.tl-now{position:absolute;top:0;bottom:0;width:2px;background:var(--red);opacity:.7}
.tl-pct{position:absolute;right:0;top:8px;font-variant-numeric:tabular-nums;color:var(--label-2)}
.tl-detail{position:sticky;top:76px;display:flex;flex-direction:column;gap:8px}
.tl-detail h2{margin:0;font-size:18px}
.tl-dl{margin:6px 0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tl-dl div{background:var(--bg);border-radius:12px;padding:10px 12px}
.tl-dl dt{font-size:11.5px;color:var(--label-2)}
.tl-dl dd{margin:2px 0 0;font-size:14px;font-weight:600}
@media (max-width:1100px){.tl-grid,.inv-grid{grid-template-columns:minmax(0,1fr)}.tl-detail{position:static}}
@media (max-width:820px){.pstats{grid-template-columns:1fr}.pleft-row{grid-template-columns:minmax(0,1fr) 64px}.pleft-row .tbar{display:none}.inv-type{grid-template-columns:1fr 1fr}.tl-row{grid-template-columns:200px minmax(420px,1fr)}}
.warnword{color:var(--orange);font-weight:600}
/* Energy Ledger: stage banner and the emissions part of Baseline */
.lg-stage{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 4px;padding:12px 16px;border-radius:14px;background:rgba(43,38,68,.07);color:var(--label);text-decoration:none;font-size:13.5px}
.lg-stage:hover{background:rgba(43,38,68,.11)}
.lg-stage .grow{flex:1 1 280px;min-width:0}
.lg-stage .small{font-weight:600}
.lg-sub{margin:28px 0 8px;font-size:20px}
/* PostMan readiness page */
.pm-grid{display:grid;grid-template-columns:minmax(300px,440px) minmax(0,1fr);gap:16px;align-items:start;margin-top:14px}
.pm-list .group{padding:14px 4px 6px}
.pm-sec{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:0;border-left:3px solid transparent;border-radius:10px;background:#fff;font:inherit;color:var(--label);text-align:left;cursor:pointer}
.pm-sec:hover{background:#f7f7f9}
.pm-sec.on{background:var(--bg);border-left-color:#000}
.pm-sec .dot{width:9px;height:9px;border-radius:50%;flex:none}
.pm-sec .grow{flex:1;min-width:0}
.pm-detail{position:sticky;top:76px;display:flex;flex-direction:column;gap:8px}
.pm-src{text-decoration:none;color:var(--label)}
@media (max-width:1000px){.pm-grid{grid-template-columns:minmax(0,1fr)}.pm-detail{position:static}}

/* Plant inventory: lock and Other data */
fieldset.inv-edit{margin:0;min-width:0}
fieldset.inv-edit[disabled]{opacity:.75}
.inv-other{margin-top:16px}
.inv-other h3{margin:4px 0 8px;font-size:15px}
.inv-add{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.inv-add textarea,.inv-add input[type=text]{width:100%}

/* ---------- Audit detail (design: Audit detail): header, stage bar, main column and side cards ---------- */
.auditpage .crumbs{display:flex;gap:6px;align-items:center;color:var(--label-2,#6e6e73);margin-bottom:12px}
.auditpage .crumbs a{color:inherit}
.auditpage .audithead{align-items:center;margin-bottom:14px}
.auditpage .audithead h1{margin:0}
.auditpage .audithead .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.auditpage .auditstages{border-bottom:1px solid var(--sep);padding-bottom:10px;margin-bottom:18px}
.auditcols{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.auditmain{min-width:0}
.auditmain > .card:first-child,.auditmain > .taskpie:first-child{margin-top:0}
.auditside{display:flex;flex-direction:column;gap:16px}
.auditside > .card{margin:0 !important}
.sidecard h2{font-size:16px}
.sidecard .cap{margin-bottom:10px}
.sidecard .kv{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:0 0 8px;font-size:13.5px}
.sidecard .kv dt{color:var(--label-2,#6e6e73)}
.sidecard .kv dd{margin:0;text-align:right;overflow-wrap:anywhere}
.sidecard .minis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.sidecard .mini{background:#f6f5fa;border-radius:12px;padding:10px;display:grid;gap:2px}
.sidecard .mini span{font-size:11.5px;color:var(--label-2,#6e6e73)}
.sidecard .mini b{font-size:14px}
.linkbtn{background:none;border:0;padding:0;font:inherit;font-size:13.5px;font-weight:600;color:inherit;cursor:pointer;text-align:left}
.linkbtn:hover{text-decoration:underline}
.sidecard .teambox .trow2{grid-template-columns:32px minmax(0,1fr) auto;row-gap:6px}
.sidecard .teambox .trow2 > select{grid-column:2}
.sidecard .teambox .trow2 > button{grid-column:3;grid-row:1}
.sidecard .teambox .row select{flex:1 1 140px;min-width:0}
.claudecard{background:#2B2540;color:#fff;border-color:#2B2540}
.claudecard h2,.claudecard b{color:#fff}
.claudecard .sub,.claudecard .muted,.claudecard .small{color:rgba(255,255,255,.72)}
.claudecard .pill.soft{background:rgba(255,255,255,.14);color:#fff}
.claudecard .btn.cta,.claudecard .btn{background:#fff;color:#000;border-color:#fff}
.claudecard .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.claudecard .it{border-color:rgba(255,255,255,.14)}
.endcard{border-color:#f3c9c9}
.endcard h2{color:#c0392b}
@media (max-width:1100px){
  .auditcols{grid-template-columns:minmax(0,1fr)}
  .auditside{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start}
}

/* ---------- App console: plant tour (design: App console · plant tour) ---------- */
.tourpage{margin:-20px -28px 0;display:flex;flex-direction:column}
.tourpage .num{font-variant-numeric:tabular-nums}
.pt-hero,.pt-after{background:#1E1A33;color:#fff;position:relative;overflow:hidden}
.pt-hero::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.09) 1px,transparent 1px);background-size:22px 22px}
.pt-hero .in,.pt-after .in{position:relative;max-width:1320px;margin:0 auto;padding:56px 40px 40px;display:flex;flex-direction:column;gap:26px}
.pt-hero .crumbs{font-size:13px;color:#C9C5D6;display:flex;gap:6px}.pt-hero .crumbs .cur{color:#fff}
.pt-herorow{display:flex;flex-wrap:wrap;gap:24px 56px;align-items:flex-end;justify-content:space-between}
.pt-herotext{flex:1 1 520px;max-width:760px;display:flex;flex-direction:column;gap:16px}
.tourpage .eyebrow{font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#C9C5D6}
.pt-herotext h1{margin:0;font-size:clamp(34px,5vw,58px);line-height:1.02;font-weight:600;letter-spacing:-.04em;text-wrap:balance;color:#fff}
.pt-herotext p{margin:0;font-size:17px;line-height:1.55;color:#DDDAE6;max-width:600px}
.pt-herostats{margin:0;display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));flex:0 1 420px}
.pt-herostats div{padding:0 18px;border-left:1px solid rgba(255,255,255,.18);display:flex;flex-direction:column;gap:4px}
.pt-herostats dd{margin:0;font-size:34px;font-weight:600;letter-spacing:-.03em;line-height:1}
.pt-herostats dt{font-size:12px;color:#C9C5D6;line-height:1.35}
.pt-chips{display:flex;flex-wrap:wrap;gap:8px}
.pt-chips .chip{height:36px;padding:0 14px 0 6px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:8px;transition:background-color .15s,color .15s}
.pt-chips .chip:hover{background:#fff;color:#2B2644}
.pt-chips .chip>span{width:24px;height:24px;border-radius:50%;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.tourpage .cue{font-size:13px;color:#C9C5D6;display:flex;align-items:center;gap:8px;animation:pt-bob 1.8s ease-in-out infinite}
@keyframes pt-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}

.pt-tour{max-width:1320px;width:100%;margin:0 auto;padding:32px 40px 24px;box-sizing:border-box;display:flex;gap:36px;align-items:flex-start}
.pt-stagecol{flex:1.25 1 0;min-width:0;width:100%;display:flex;flex-direction:column;gap:12px;z-index:2;position:sticky;top:76px}
.pt-stage{position:relative;width:100%;aspect-ratio:16/11;border-radius:24px;overflow:hidden;background:linear-gradient(180deg,#2B2644 0%,#231F3B 62%,#1B1830 100%);box-shadow:0 30px 60px -30px rgba(30,26,51,.6)}
.pt-stage>span{position:absolute}
.pt-dots{inset:0;background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);background-size:18px 18px}
.pt-ground{left:0;right:0;top:78%;bottom:0;background:#17142A}
.pt-road{left:0;right:0;top:79.5%;height:1.2%;background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.28) 0 18px,transparent 18px 34px)}
.pt{transition:opacity .45s ease,box-shadow .45s ease,border-color .45s ease;border:2px solid transparent}
.pt.dim{opacity:.28}
.pt.hot{border-color:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.18),0 0 40px rgba(255,255,255,.25)}
.pt-fox{left:9%;right:2%;top:9%;bottom:3%;border:2px dashed rgba(255,255,255,.12) !important;border-radius:18px;box-shadow:none !important}
.pt-stage.all .pt-fox{border-color:rgba(255,255,255,.35) !important}
.pt-stage .pt-fox.hot{border-color:#fff !important}
.pt-pylon{left:3%;width:5%;top:32%;height:46%;border:0;clip-path:polygon(40% 0,60% 0,100% 100%,0 100%);background:repeating-linear-gradient(45deg,#8E88A8 0 2px,transparent 2px 9px),repeating-linear-gradient(-45deg,#8E88A8 0 2px,transparent 2px 9px)}
.pt-wire{left:5.5%;width:18%;top:36%;height:2px;border:0;background-image:repeating-linear-gradient(90deg,#fff 0 10px,transparent 10px 14px);opacity:.55;animation:pt-dash 1.4s linear infinite}
.pt-wire.hot{opacity:1;background-image:repeating-linear-gradient(90deg,#FFD678 0 10px,transparent 10px 14px)}
.pt-wire.dim{opacity:.25}
@keyframes pt-dash{to{background-position:28px 0}}
.pt-xmer{left:11%;width:10%;top:62%;height:16%;border-radius:6px;background:#4A4368 repeating-linear-gradient(90deg,rgba(255,255,255,.12) 0 3px,transparent 3px 8px)}
.pt-bush{width:2.2%;top:57%;height:5%;border:0;border-radius:3px 3px 0 0;background:#6B6390}
.pt-bush1{left:12.5%}.pt-bush2{left:17%}
.pt-pylon.hot,.pt-wire.hot,.pt-bush.hot,.pt-bolt.hot,.pt-roof.hot,.pt-windows.hot,.pt-flame.hot,.pt-chimney.hot,.pt-steam.hot,.pt-tank.hot,.pt-airpipe.hot,.pt-water.hot{border-color:transparent;box-shadow:none}
.pt-pq{left:23%;width:9%;top:50%;height:28%;border-radius:6px 6px 0 0;background:#3A3456}
.pt-bolt{left:25.5%;width:4%;top:56%;height:8%;border:0;clip-path:polygon(55% 0,20% 55%,48% 55%,35% 100%,80% 40%,52% 40%,70% 0);background:#FFC94D}
.pt-hall{left:34%;width:36%;top:44%;height:34%;background:#3A3456}
.pt-roof{left:34%;width:36%;top:37%;height:7.2%;border:0;background-image:linear-gradient(135deg,#4A4368 50%,transparent 50%);background-size:8.33% 100%}
.pt-windows{left:36%;width:32%;top:48%;height:4%;border:0;border-radius:2px;background-image:repeating-linear-gradient(90deg,rgba(255,214,120,.25) 0 22px,transparent 22px 34px)}
.pt-stage.lux .pt-windows{background-image:repeating-linear-gradient(90deg,rgba(255,214,120,.85) 0 22px,transparent 22px 34px)}
.pt-jet{width:4.2%;top:60%;height:15%;border-radius:40% 40% 6px 6px;background:#5B5478}
.pt-motor{width:2.6%;top:68%;height:7%;border-radius:50%;background:#6B6390}
.pt-ahu{left:59%;width:9%;top:30%;height:7%;border-radius:4px;background:#4A4368;background-image:radial-gradient(circle at 25% 50%,#2B2644 0 22%,transparent 24%),radial-gradient(circle at 75% 50%,#2B2644 0 22%,transparent 24%)}
.pt-dry{left:71.5%;width:10.5%;top:54%;height:24%;border-radius:6px 6px 0 0;background:#3A3456 repeating-linear-gradient(0deg,rgba(255,255,255,.08) 0 2px,transparent 2px 10px)}
.pt-boiler{left:84%;width:12%;top:50%;height:28%;border-radius:6px 6px 0 0;background:#3A3456}
.pt-flame{left:87.5%;width:5%;top:56%;height:12%;border:0;border-radius:50% 50% 8px 8px;background:#D67800}
.pt-chimney{left:92%;width:2.6%;top:16%;height:34%;border:0;background:linear-gradient(180deg,#D67800 0 8%,#5B5478 8% 100%)}
.pt-stage .puff{left:91.4%;top:10%;width:3.6%;aspect-ratio:1;border-radius:50%;background:rgba(255,255,255,.35);border:0;animation:pt-smoke 3.6s ease-out infinite}
.pt-stage .puff.d1{left:92.4%;top:11%;width:3%;background:rgba(255,255,255,.3);animation-delay:1.2s}
.pt-stage .puff.d2{left:91%;top:12%;width:2.6%;background:rgba(255,255,255,.28);animation-delay:2.4s}
@keyframes pt-smoke{0%{transform:translateY(0) scale(.6);opacity:.55}100%{transform:translateY(-46px) scale(1.5);opacity:0}}
.pt-steam{left:70%;width:14%;top:47%;height:1.2%;border:0;border-radius:2px;background:#D67800;opacity:.9}
.pt-steam.dim{opacity:.2}
.pt-acmp{left:38%;width:12%;top:83%;height:13%;border-radius:6px;background:#3A3456}
.pt-tank{width:2.6%;top:85%;height:9%;border:0;border-radius:999px;background:#8E88A8}
.pt-tank1{left:39%}.pt-tank2{left:42.2%}
.pt-airpipe{left:44%;width:1%;top:78%;height:5%;border:0;background:#C9C5D6;opacity:.9}
.pt-airpipe.dim{opacity:.2}
.pt-pumphouse{left:53%;width:10%;top:83%;height:13%;border-radius:6px;background:#3A3456}
.pt-water{left:64.5%;width:7%;top:80%;height:16%;border:0;border-radius:50% 50% 10% 10%/20% 20% 10% 10%;background:#5B5478 linear-gradient(180deg,transparent 45%,rgba(201,197,214,.45) 45%)}
.pt-stage .pin{position:absolute;width:32px;height:32px;transform:translate(-50%,-50%);border-radius:12px;border:2px solid rgba(255,255,255,.9);background:rgba(255,255,255,.55);color:#3A3456;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:3;box-shadow:0 4px 12px rgba(0,0,0,.35);padding:0;transition:transform .3s,background-color .3s,width .3s,height .3s}
.pt-stage.all .pin{background:#fff;color:var(--c)}
.pt-stage .pin:hover{transform:translate(-50%,-50%) scale(1.15)}
.pt-stage .pin.on{width:44px;height:44px;background:#fff;color:var(--c);border-color:var(--c);box-shadow:0 0 0 6px rgba(255,255,255,.22),0 10px 24px rgba(0,0,0,.45)}
.pt-stage .pin.on svg{width:22px;height:22px}
.pt-lbl{--tx:-50%;--ty:-40px;--ty-on:-48px;transform:translate(var(--tx),var(--ty));white-space:nowrap;height:24px;padding:0 10px;border-radius:999px;background:#fff;color:#1E1A33;font-size:11px;font-weight:700;display:flex;align-items:center;gap:6px;opacity:0;z-index:4;box-shadow:0 6px 16px rgba(0,0,0,.3);pointer-events:none;transition:opacity .3s,transform .3s}
.pt-lbl.on{opacity:1;transform:translate(var(--tx),var(--ty-on))}
.pt-lbl.r{--tx:calc(-100% + 24px)}.pt-lbl.l{--tx:-24px}.pt-lbl.b{--ty:22px;--ty-on:30px}
.pt-caption{left:3%;top:4%;height:28px;padding:0 12px;border-radius:999px;background:#3B3656;box-shadow:0 0 0 4px #2B2644;color:#fff;font-size:12px;font-weight:600;display:flex;align-items:center;gap:8px;z-index:5}
.pt-caption .dot{width:7px;height:7px;border-radius:50%;background:#4ADE80}
.pt-prog{display:flex;gap:6px;align-items:center}
.pt-proglabel{font-size:12px;font-weight:600;color:#3A3A3A;min-width:52px}
.pt-prog .track{flex:1;height:4px;border-radius:999px;background:#E3E3E3;display:flex;overflow:hidden}
.pt-progbar{width:0;background:#2B2644;border-radius:999px;transition:width .4s ease}

.pt-steps{flex:1 1 0;min-width:0;width:100%;display:flex;flex-direction:column}
.pt-step{min-height:620px;padding:40px 0;display:flex;flex-direction:column;justify-content:center;gap:20px;border-bottom:1px solid #E3E3E3}
.pt-stepno{display:flex;align-items:center;gap:12px}
.pt-stepno .num{font-size:13px;font-weight:700}
.pt-stepno .bar{flex:0 0 40px;height:2px}
.pt-stepno .where{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#5E5E5E}
.pt-title{display:flex;gap:14px;align-items:center}
.pt-title h2{margin:0;font-size:clamp(28px,3vw,38px);font-weight:600;letter-spacing:-.03em;line-height:1}
.pt-badge{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pt-badge.sm{width:40px;height:40px;border-radius:12px}
.pt-meta{display:flex;gap:8px;align-items:center;font-size:13px;color:#5E5E5E;margin-top:4px}
.pt-status{height:22px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.pt-status .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.pt-status.ok{background:#E1F0E8;color:#0B7A45}
.pt-status.warn{background:#F8EBDA;color:#9A5200}
.pt-status.off{background:#EFEFEF;color:#5E5E5E}
.pt-what{margin:0;font-size:17px;line-height:1.55;color:#3A3A3A}
.pt-body{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.pt-phone{flex:0 0 196px;height:360px;border-radius:32px;background:#1E1A33;padding:9px;box-sizing:border-box;box-shadow:0 24px 48px -24px rgba(30,26,51,.6)}
.pt-phone .scr{height:100%;border-radius:24px;background:#fff;overflow:hidden;display:flex;flex-direction:column}
.pt-phone .scrhead{padding:16px 14px 12px;color:#fff;display:flex;flex-direction:column;gap:3px}
.pt-phone .scrhead .sub{font-size:10px;opacity:.8}
.pt-phone .scrhead b{font-size:15px}
.pt-phone .scrbody{padding:10px 12px;display:flex;flex-direction:column;gap:8px;flex:1}
.pt-phone .rd{padding:9px 10px;border-radius:10px;background:#F5F5F5;display:flex;flex-direction:column;gap:2px}
.pt-phone .rd span{font-size:9px;color:#5E5E5E}
.pt-phone .rd b{font-size:15px}
.pt-phone .rd b.amber{color:#9A5200}
.pt-phone .cta{margin-top:auto;height:30px;border-radius:8px;background:#000;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
.pt-facts{flex:1 1 200px;min-width:0;display:flex;flex-direction:column;gap:16px}
.pt-facts>div:first-child{display:flex;flex-direction:column;gap:8px}
.pt-chip{height:28px;padding:0 10px;border-radius:999px;background:#fff;border:1px solid #E3E3E3;font-size:12px;font-weight:500;display:inline-flex;align-items:center}
.pt-nums{margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pt-nums div{padding:10px 12px;border-radius:12px;background:#fff}
.pt-nums dt{font-size:11px;color:#5E5E5E}
.pt-nums dd{margin:2px 0 0;font-size:18px;font-weight:600}
.tourpage .btn.disabled{opacity:.5;cursor:not-allowed}

.pt-after .in{padding:56px 40px;gap:28px}
.pt-afterhead{display:flex;flex-direction:column;gap:10px;max-width:680px}
.pt-afterhead h2{margin:0;font-size:clamp(26px,3vw,36px);font-weight:600;letter-spacing:-.03em;color:#fff}
.pt-after ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px}
.pt-after li{border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);padding:20px;display:flex;flex-direction:column;gap:10px}
.pt-after li .top{display:flex;justify-content:space-between;align-items:center}
.pt-after li .no{font-size:12px;font-weight:700;color:#C9C5D6}
.pt-after li b{font-size:17px;font-weight:600}
.pt-after li .what{font-size:13px;line-height:1.5;color:#DDDAE6}
.pt-after li a{margin-top:auto;font-size:13px;font-weight:600;color:#fff}
.pt-after .linkish{margin-top:auto;background:none;border:0;padding:0;font:inherit;font-size:13px;font-weight:600;color:#fff;text-decoration:underline;cursor:pointer;text-align:left}

.pt-glance{max-width:1320px;width:100%;margin:0 auto;padding:48px 40px 56px;box-sizing:border-box;display:flex;flex-direction:column;gap:18px}
.pt-glance .head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
.pt-glance h2{margin:0;font-size:24px;font-weight:600;letter-spacing:-.02em}
.pt-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr));gap:14px}
.pt-tiles .tile{background:#fff;border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:12px;border:1px solid rgba(0,0,0,.05);transition:transform .2s,box-shadow .2s}
.pt-tiles .tile:hover{transform:translateY(-3px);box-shadow:0 16px 32px -18px rgba(43,38,68,.45)}
.pt-tiles .top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pt-tiles .nm{display:flex;flex-direction:column;gap:2px}
.pt-tiles .nm b{font-size:17px}
.pt-tiles .btns{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:auto}
.pt-tiles .btns .btn{justify-content:center}
@media (max-width:980px){
  .pt-tour{flex-direction:column}
  .pt-stagecol{position:relative;top:0}
  .pt-step{min-height:0}
}
@media (max-width:820px){
  .tourpage{margin:-16px -16px 0}
  .pt-hero .in,.pt-after .in,.pt-tour,.pt-glance{padding-left:16px;padding-right:16px}
  .pt-herostats dd{font-size:26px}
  .pt-phone{flex-basis:100%;max-width:220px}
}
@media (prefers-reduced-motion:reduce){.tourpage .cue,.pt-wire,.pt-stage .puff{animation:none}.pt,.pt-stage .pin,.pt-lbl,.pt-tiles .tile{transition:none}}

/* ---------- Overview (design: Overview) ---------- */
.ovpage{margin:-20px -28px 0;display:flex;flex-direction:column}
.ovpage .num{font-variant-numeric:tabular-nums}
.ov-hero{background:#1E1A33;color:#fff;position:relative;overflow:hidden}
.ov-hero::before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.08) 1px,transparent 1px);background-size:22px 22px}
.ov-hero .wm{position:absolute;right:-20px;top:-40px;font-size:260px;font-weight:800;letter-spacing:-.06em;line-height:1;color:rgba(255,255,255,.04);pointer-events:none}
.ov-hero .in{position:relative;max-width:1320px;margin:0 auto;padding:32px 40px 36px;display:flex;flex-direction:column;gap:26px}
.ov-hero .headrow{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.ov-hero .headrow>div:first-child{display:flex;flex-direction:column;gap:8px}
.ov-hero .hello{font-size:13px;color:#C9C5D6}
.ov-hero h1{margin:0;font-size:clamp(28px,3.4vw,40px);line-height:1.05;font-weight:600;letter-spacing:-.03em;color:#8E88A8}
.ov-hero h1 .w{color:#fff}
.ov-hero p{margin:0;font-size:15px;color:#DDDAE6;max-width:640px}
.ov-hero .btn.onDark{background:#fff;color:#1E1A33}
.ov-hero .btn.ghost.onDark{background:rgba(255,255,255,.08);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.ov-pillars{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:14px}
.ov-pillar{text-decoration:none;color:#fff;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);padding:20px;display:flex;flex-direction:column;gap:16px;transition:transform .2s,background-color .2s}
.ov-pillar:hover{transform:translateY(-3px);background:rgba(255,255,255,.1);color:#fff}
.ov-pillar .top{display:flex;align-items:center;gap:14px}
.ov-pillar .letter{width:48px;height:48px;border-radius:14px;font-size:26px;font-weight:800;display:flex;align-items:center;justify-content:center;letter-spacing:-.04em}
.ov-pillar .top>span:last-child{display:flex;flex-direction:column;gap:2px}
.ov-pillar .top b{font-size:17px;font-weight:600}
.ov-pillar .what{font-size:12px;color:#C9C5D6}
.ov-pillar .big{display:flex;align-items:baseline;gap:10px}
.ov-pillar .big .num{font-size:38px;font-weight:600;letter-spacing:-.03em;line-height:1}
.ov-pillar .big .lbl{font-size:13px;color:#DDDAE6}
.ov-pillar .subs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:14px;border-top:1px solid rgba(255,255,255,.12)}
.ov-pillar .subs>span{display:flex;flex-direction:column;gap:2px;font-size:12px;color:#C9C5D6}
.ov-pillar .subs b{font-size:18px;font-weight:600;color:#fff}
.ov-pillar .subs b.amber{color:#FFC27A}.ov-pillar .subs b.green{color:#7DE0A9}
.ov-pillar .cta{font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px}
.ov-pipewrap{display:flex;flex-direction:column;gap:8px}
.ov-pipewrap .cap{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#C9C5D6;flex-wrap:wrap}
.ov-pipewrap .cap a{color:#fff;font-weight:600;text-decoration:none}
.ov-pipe{display:flex;gap:3px;height:34px}
.ov-pipe .seg{min-width:34px;border:0;border-radius:8px;color:#fff;font:inherit;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;overflow:hidden;cursor:pointer;padding:0 4px}
.ov-pipe .seg.early{background:rgba(255,255,255,.14)}.ov-pipe .seg.mid{background:rgba(142,136,168,.55)}.ov-pipe .seg.late{background:rgba(11,122,69,.75)}
.ov-pipe .seg.s-approval{background:#D67800}
.ov-pipe .seg:hover{filter:brightness(1.2)}
.ov-pipe .seg .sh{opacity:.85}

.ov-body{padding:28px 40px 40px;display:flex;flex-direction:column;gap:18px;max-width:1320px;width:100%;margin:0 auto;box-sizing:border-box}
.ov-bodyhead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.ov-bodyhead h2{margin:0 0 4px;font-size:22px;font-weight:600;letter-spacing:-.02em}
.ov-ptypes{display:flex;gap:8px;flex-wrap:wrap}
.ov-ptype{height:38px;padding:0 14px 0 8px;border-radius:999px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;border:1px solid #D4D4D4;background:#fff;color:#000;display:flex;align-items:center;gap:8px}
.ov-ptype .ic{width:26px;height:26px;border-radius:50%;background:#F5F5F5;color:var(--c);display:flex;align-items:center;justify-content:center}
.ov-ptype .n{font-size:12px;opacity:.7}
.ov-ptype.on{background:var(--c);border-color:var(--c);color:#fff}
.ov-ptype.on .ic{background:rgba(255,255,255,.18);color:#fff}
.ov-stagef{display:flex;gap:8px;align-items:center}.ov-stagef:empty{display:none}
.ov-cols{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.ov-listcard{flex:1 1 300px;min-width:0;max-width:100%;padding:0;overflow:hidden}
.ov-list{max-height:860px;overflow-y:auto}
.ov-co{width:100%;display:flex;flex-direction:column;gap:10px;padding:14px 16px;border:0;border-bottom:1px solid #F0F0F0;border-left:3px solid transparent;background:#fff;font:inherit;text-align:left;cursor:pointer;color:#000}
.ov-co:hover{background:#FAFAFB}
.ov-co.on{background:#F7F6FA;border-left-color:var(--c)}
.ov-co .r1{display:flex;gap:12px;align-items:center;width:100%}
.ov-co .nm{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ov-co .nm b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-co .nm span{font-size:12px;color:#5E5E5E}
.ov-co .alert{width:8px;height:8px;border-radius:50%;background:#D67800;flex-shrink:0}
.ov-co .r2{display:flex;align-items:center;gap:8px;width:100%}
.ov-co .segs{flex:1;display:flex;gap:2px}
.ov-co .segs span{flex:1;height:5px;border-radius:999px}
.ov-co .st{font-size:11px;font-weight:600;color:#3A3A3A;white-space:nowrap}
.ov-ini{border-radius:12px;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ov-list .empty{padding:24px 16px;text-align:center}

.ov-profile{flex:2.4 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
.ov-pcard{padding:0;overflow:hidden}
.ov-phead{padding:22px 24px;display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap;border-bottom:1px solid #EBEBEB}
.ov-phead .ov-ini{border-radius:18px}
.ov-phead .nm{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;gap:8px}
.ov-phead h3{margin:0;font-size:24px;font-weight:600;letter-spacing:-.02em}
.ov-phead .tags{display:flex;gap:6px;flex-wrap:wrap}
.ov-phead .tags span{height:26px;padding:0 10px;border-radius:999px;background:#F5F5F5;font-size:12px;font-weight:500;display:inline-flex;align-items:center;color:#3A3A3A}
.ov-stepper{padding:18px 24px;border-bottom:1px solid #EBEBEB;overflow-x:auto}
.ov-stepper ol{list-style:none;margin:0;padding:0;min-width:620px;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));position:relative}
.ov-stepper ol::before{content:"";position:absolute;left:5.5%;right:5.5%;top:13px;height:2px;background:#E3E3E3}
.ov-step{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.ov-step .mark{width:28px;height:28px;border-radius:50%;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;background:#fff;color:#6B6B6B;box-shadow:inset 0 0 0 1.5px #D4D4D4}
.ov-step .lb{font-size:11px;font-weight:500;color:#5E5E5E}
.ov-step.done .mark{background:#2B2644;color:#fff;box-shadow:none}
.ov-step.cur .mark,.ov-step.wait .mark{background:var(--c);color:#fff;box-shadow:0 0 0 5px rgba(43,38,68,.16)}
.ov-step.wait .mark{background:#D67800;box-shadow:0 0 0 5px rgba(214,120,0,.18)}
.ov-step.bad .mark{background:#c0392b;color:#fff;box-shadow:none}
.ov-step.cur .lb,.ov-step.wait .lb{font-weight:700;color:#000}
.ov-step.skip .lb{color:#A3A3A3}
.ov-facts{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));border-bottom:1px solid #EBEBEB}
.ov-facts div{padding:14px 20px;border-right:1px solid #F0F0F0;display:flex;flex-direction:column;gap:3px}
.ov-facts dt{font-size:12px;color:#5E5E5E}
.ov-facts dd{margin:0;font-size:16px;font-weight:600}
.ov-facts dd.warn{color:#9A5200}.ov-facts dd.ok{color:#0B7A45}
.ov-next{padding:16px 24px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:#F7F6FA}
.ov-next.warn{background:#FBF4EA}
.ov-next .ic{width:38px;height:38px;border-radius:11px;background:var(--c);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ov-next.warn .ic{background:#D67800}
.ov-next .tx{flex:1 1 260px;display:flex;flex-direction:column;gap:2px}
.ov-next .k{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#5E5E5E}
.ov-next b{font-size:15px}
.ov-aphead{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.ov-aphead h3{margin:0;font-size:16px;font-weight:600}
.ov-aps{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:12px}
.ov-ap{text-decoration:none;color:#000;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px;font:inherit;text-align:left;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}
.ov-ap:hover{transform:translateY(-3px);box-shadow:0 14px 28px -16px rgba(43,38,68,.4);border-color:rgba(43,38,68,.35);color:#000}
.ov-ap.locked{opacity:.7;cursor:default}.ov-ap.locked:hover{transform:none;box-shadow:none;border-color:rgba(0,0,0,.06)}
.ov-ap .top{display:flex;justify-content:space-between;align-items:flex-start}
.ov-ap .ic{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.ov-ap .dot{width:9px;height:9px;border-radius:50%;margin-top:4px;background:#8E88A8}
.ov-ap .tx{display:flex;flex-direction:column;gap:3px}
.ov-ap .tx b{font-size:15px}
.ov-ap .st{font-size:12px;line-height:1.4;color:#5E5E5E}
.ov-ap .dot.ok,.ov-ap .bar .ok{background:#0B7A45}.ov-ap .st.ok{color:#0B7A45}
.ov-ap .dot.warn,.ov-ap .bar .warn{background:#D67800}.ov-ap .st.warn{color:#9A5200}
.ov-ap .dot.lock{background:#A3A3A3}.ov-ap .st.lock{color:#6B6B6B}
.ov-ap .bar .todo{background:#8E88A8}
.ov-ap .bar{height:5px;border-radius:999px;background:#EBEBEB;display:flex;overflow:hidden}
.ov-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px}
.ov-team,.ov-feed{display:flex;flex-direction:column;gap:12px;padding:18px 20px}
.ov-feed{gap:4px}
.ov-team .m{display:flex;align-items:center;gap:12px}
.ov-team .m>span:last-child{display:flex;flex-direction:column}
.ov-team .av{position:relative;width:34px;height:34px;border-radius:50%;background:#ECEAF2;color:#2B2644;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ov-team .on{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border-radius:50%;border:2px solid #fff;background:#D4D4D4}
.ov-team .on.yes{background:#0B7A45}
.ov-team .warn-t{color:#9A5200}
.ov-feed .fe{display:flex;gap:12px;padding:8px 0;border-top:1px solid #F0F0F0;font-size:13px;color:#3A3A3A}
.ov-feed .fe:first-of-type{margin-top:6px}
.ov-feed .when{color:#6B6B6B;min-width:76px}
.ov-feed .fe strong{color:#000}
@media (max-width:820px){
  .ovpage{margin:-16px -16px 0}
  .ov-hero .in,.ov-body{padding-left:16px;padding-right:16px}
  .ov-pipe .seg .sh{display:none}
  .pipesearch{min-width:0;width:100%}
}
@media (prefers-reduced-motion:reduce){.ov-pillar,.ov-ap{transition:none}.ov-pillar:hover,.ov-ap:hover{transform:none}}

/* ---------- Full width on wide screens (all pages) ---------- */
/* Ordinary pages: a wider column, centred, so a large screen has no blank strip on one side. */
.main{max-width:1680px;margin-inline:auto}
/* Pages with a dark band (App console, Overview) run edge to edge; their content sets its own width. */
.main:has(> .tourpage),.main:has(> .ovpage){max-width:none;margin-inline:0}
.pt-hero .in,.pt-after .in,.pt-tour,.pt-glance,.ov-hero .in,.ov-body{max-width:1640px}

/* ---------- App console: real logos ---------- */
.tlogo{display:block;border-radius:22%;object-fit:cover;flex-shrink:0;background:#2B2644}
.pt-logo{border-radius:16px;box-shadow:0 6px 16px -8px rgba(30,26,51,.5)}
.pt-tiles .pt-logo{border-radius:13px}
.pt-chips .chip{padding:0 14px 0 4px}
.pt-chips .chip .tlogo{width:26px;height:26px;border-radius:50%}
.pt-chips .chip .cn{font-size:11px;font-weight:700;color:#C9C5D6;min-width:12px}
.pt-chips .chip:hover .cn{color:#2B2644}
.pt-stage .pin{width:36px;height:36px;padding:2px;background:#fff;border-radius:11px}
.pt-stage .pin .tlogo{width:100%;height:100%;border-radius:8px}
.pt-stage:not(.all) .pin:not(.on){opacity:.55}
.pt-stage .pin.on{width:50px;height:50px;padding:3px;opacity:1}
.pt-stage .pin.on .tlogo{width:100%;height:100%}

/* ---------- App console: one app per screen, the map column fills the height ---------- */
.pt-tour{gap:40px}
.pt-step{min-height:calc(100vh - 92px);padding:28px 0}
.pt-stagecol{top:72px;max-height:calc(100vh - 84px);flex:1.15 1 0}
.pt-stage{flex-shrink:0;aspect-ratio:16/11;width:min(100%, calc((100vh - 300px) * 16 / 11));align-self:center}
.pt-now{display:flex;align-items:center;gap:12px;background:#fff;border-radius:16px;padding:10px 12px;border:1px solid rgba(0,0,0,.05);min-height:58px;box-sizing:border-box}
.pt-now .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pt-now .tx b{font-size:15px}
.pt-now .tx span{font-size:12px;color:#5E5E5E}
.pt-now .facts{font-size:12px;color:#3A3A3A;white-space:nowrap}
.pt-nav{flex:1 1 auto;min-height:96px;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;align-content:start;padding:2px;scroll-behavior:smooth;overscroll-behavior:contain}
.pt-navb{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:12px;border:1px solid transparent;background:#fff;font:inherit;text-align:left;cursor:pointer;color:#000;min-width:0;transition:border-color .15s,background-color .15s}
.pt-navb:hover{border-color:#D4D4D4}
.pt-navb.on{border-color:#2B2644;background:#F1EFF7}
.pt-navb .tx{min-width:0;display:flex;flex-direction:column}
.pt-navb b{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt-navb .num{font-size:11px;color:#5E5E5E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:has(.tourpage){scroll-behavior:smooth}
@media (max-width:980px){
  .pt-stagecol{max-height:none}
  .pt-stage{max-height:none;width:100%}
  .pt-nav{display:none}
  .pt-step{min-height:0}
}
@media (prefers-reduced-motion:reduce){html:has(.tourpage){scroll-behavior:auto}.pt-nav{scroll-behavior:auto}}

/* ---------- Overview: left column holds the list and what needs attention ---------- */
.ov-cols{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:20px;align-items:start}
.ov-left{position:sticky;top:76px;display:flex;flex-direction:column;gap:16px;max-height:calc(100vh - 92px);min-width:0}
.ov-listcard{display:flex;flex-direction:column;min-height:0;flex:0 1 auto}
.ov-listcard>.cap,.ov-attn .cap{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px 10px;border-bottom:1px solid #F0F0F0}
.ov-list{max-height:none;overflow-y:auto;min-height:0}
.ov-attn{padding:0 0 8px;overflow:hidden;flex:0 0 auto;display:flex;flex-direction:column}
.ov-attn .cap{padding-bottom:8px}
.ov-attrow{display:flex;gap:10px;align-items:flex-start;width:100%;padding:10px 16px;border:0;background:none;font:inherit;text-align:left;cursor:pointer;color:#000}
.ov-attrow:hover,.ov-attrow.on{background:#FAFAFB}
.ov-attrow .dot{width:8px;height:8px;border-radius:50%;background:#D67800;margin-top:6px;flex-shrink:0}
.ov-attrow .tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.ov-attrow b{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-attrow .tx span{font-size:12px;color:#9A5200}
.ov-attn .ok-t{color:#0B7A45;padding:10px 16px;margin:0}
.ov-profile{min-width:0}
@media (max-width:980px){
  .ov-cols{grid-template-columns:minmax(0,1fr)}
  .ov-left{position:static;max-height:none}
  .ov-list{max-height:420px}
}
/* Task timeline: scroll inside its own box on a phone instead of widening the page. */
.tl-card,.tl-card>div,.tl-grid,.tl-grid>div{min-width:0;max-width:100%}
.tl-scroll{max-width:100%}
/* Segmented switches with many choices scroll sideways on a phone instead of widening the page. */
@media (max-width:820px){.seg{display:flex;max-width:100%;overflow-x:auto;scrollbar-width:none}.seg::-webkit-scrollbar{display:none}.seg button{flex:0 0 auto}}
/* The 30-day activity chart: bars shrink to fit a phone. */
.chart>*,.chart .plot>*{min-width:0}
@media (max-width:820px){.chart .plot{gap:2px}}
/* Phone tab bar and chart dates stay inside the screen. */
.tabbar a{min-width:0;overflow:hidden}
.tabbar a span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chart .xaxis{min-width:0;overflow:hidden}
.chart .xaxis span{min-width:0;overflow:hidden}
@media (max-width:820px){.card.scroll{margin-inline:0}}

/* ---------- App console: the map column always fits beside the last app ---------- */
/* The column is never taller than the last app's screen, so at app 13 it is not pushed up under the
   toolbar. The map takes what is left after the current-app line and the app list. */
.pt-stagecol{max-height:none;height:calc(100vh - 124px);gap:10px}
.pt-stage{width:min(100%, calc((100vh - 400px) * 16 / 11));min-width:min(100%, 360px)}
/* The app list: every stop at once, compact, no scrollbar. */
.pt-nav{flex:0 0 auto;min-height:0;overflow:visible;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:5px;padding:0}
.pt-navb{padding:5px 7px;gap:7px;border-radius:10px;border-color:rgba(0,0,0,.05)}
.pt-navb .tlogo{width:24px;height:24px}
.pt-navb b{font-size:12px;line-height:1.2}
.pt-navb .num{font-size:10.5px;line-height:1.2}
.pt-now{min-height:52px;padding:8px 12px}
@media (max-height:760px){.pt-navb .num{display:none}.pt-now .facts{display:none}}
@media (max-width:980px){.pt-stagecol{height:auto}}

/* ---------- Chat: coming soon ---------- */
.card.soon { max-width: 560px; margin: 24px auto; padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.soon-ic { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(145deg, #8E88A8, #2B2644); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.soon-ic .ic { width: 30px; height: 30px; stroke: #fff; }
.card.soon h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.card.soon p { margin: 0; max-width: 380px; }

/* Overview: period switch in the hero, notes under a fact (design: Overview) */
.ov-heroright{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.ov-period{display:flex;gap:2px;padding:3px;background:rgba(255,255,255,.08);border-radius:12px}
.ov-period button{height:34px;padding:0 14px;border:0;border-radius:9px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;background:transparent;color:#DDDAE6}
.ov-period button[aria-pressed="true"]{background:#fff;color:#1E1A33}
.ov-period button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.ov-facts dd.muted{color:#6B6B6B;font-weight:500}
.ov-facts .fnote{font-size:11px;color:#6B6B6B}
@media (max-width:820px){.ov-heroright{align-items:flex-start}}

/* ---------- Inventory WTEA on the plant inventory page ---------- */
.card.wtea { margin-bottom: 20px; display: flex; flex-direction: column; gap: 14px; }
.wtea-merge { border-radius: 16px; background: #FBF4EA; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.wtea-merge h3 { margin: 0; font-size: 15px; }
.wtea-other { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border-radius: 12px; padding: 10px 12px; }
.wtea-other select { min-height: 36px; border-radius: 10px; max-width: 220px; }
.wtea-secs { display: flex; flex-direction: column; gap: 6px; }
.wtea-sec { border-radius: 14px; background: #FAFAFB; padding: 10px 14px; }
.wtea-sec summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; min-height: 32px; }
.wtea-sec summary::-webkit-details-marker { display: none; }
.wtea-sec .dot { width: 9px; height: 9px; border-radius: 50%; background: #D4D4D4; flex-shrink: 0; }
.wtea-sec .dot.ok { background: #0B7A45; } .wtea-sec .dot.warn { background: #D67800; }
.wtea-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; margin-top: 8px; }
.wtea-item { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px 10px; }
.wtea-item .pill { margin-left: auto; white-space: nowrap; }
.wtea-thumb { width: 48px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #ECEAF2; display: block; }
