/* VitalSheet look (UI rework, Nov 2026). Loaded after each page's own styles.
   Two palettes: "bright" for the home screen and working pages, "reading" for
   anything opened for detail (the venue panel, reports). Blue = fine,
   orange = needs attention, so the one warm colour is where the eye goes. */
:root, :root[data-theme="dark"], :root[data-theme="light"]{
  color-scheme:light;
  --plane:#EAF3FF; --surface:#FFFFFF; --ink:#1B2559; --ink2:#3C4A75; --muted:#55617F;
  --border:transparent; --grid:#E3EEFF; --tint:#E3EEFF; --tint2:#F5F9FF;
  --green:#2456E6; --yellow:#E9A400; --red:#FF8A3D; --insufficient:#C3CEE3;
  --series:#2456E6; --accent:#1E48C8; --attn-ink:#3B1A00;
  --radius:28px; --radius-s:18px; --shadow:0 10px 30px rgba(36,86,230,.08);
}
.reading, .drawer, body.reading{
  --plane:#F1ECE2; --surface:#FBF8F2; --ink:#2A2E35; --ink2:#4A4F58; --muted:#5A5F69;
  --grid:#ECE6DA; --tint:#DCE6EF; --tint2:#F1ECE2;
  --green:#3D6A96; --yellow:#B88A1E; --red:#B06A1A; --insufficient:#B9B4A8;
  --series:#3D6A96; --accent:#2F5F8A; --attn-ink:#7A4408; --shadow:none;
}
body{font-family:Nunito,system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:600;background:var(--plane);color:var(--ink)}
body.reading{background:#F6F2EA}
.reading, .drawer{font-family:"Atkinson Hyperlegible",system-ui,sans-serif;font-weight:400;font-size:1.05rem;line-height:1.6;color:var(--ink)}
.reading h1,.reading h2,.reading h3,.drawer h2,.drawer h3{font-family:Nunito,system-ui,sans-serif;font-weight:900}
h1,h2,h3,.foldsum,.brand h1{font-weight:900}
a{color:inherit}

/* soft cards, no outlines */
.card,.kpi,.tile,.cmpcard,.brief,.rt.loc,details.sec,.box,.panel{border:0!important;border-radius:var(--radius);box-shadow:var(--shadow);background:var(--surface)}
.card{padding:20px}
.kpi{border-radius:22px;padding:16px 18px}
.kpi .v{font-weight:900;font-size:1.6rem} .kpi .k{font-weight:700;color:var(--muted);font-size:.84rem} .kpi .c{font-weight:600}
.brief,.cmpcard,details.sec,.ph{background:var(--tint2);box-shadow:none;border-radius:var(--radius-s)}
.ph{border:0}

/* brand */
.mark{width:42px;height:42px;border-radius:0;background:none;display:block;flex:none}
.mark svg{width:100%;height:100%;display:block;stroke:none}
.brand h1{font-size:1.35rem}
.brand .sub,.sub{color:var(--muted);font-weight:700}

/* pills and buttons */
.hbtn,.modes a.pill,.chip,.rulechip,.jump a,.steps span{border:0!important;border-radius:999px;background:var(--surface);font-weight:800;color:var(--ink)}
.hbtn{padding:10px 16px;font-size:.86rem;min-height:40px}
.hbtn:hover{background:var(--tint)}
.chip,.rulechip,.jump a{background:var(--tint2)}
.modes a.pill.on,.steps span.on{background:var(--series);color:#fff}
button.primary,.btn.primary,input[type=submit]{border-radius:999px}
select,input[type=text],input[type=email],input[type=date],input[type=password],textarea{
  border:2px solid #C9DBFA!important;border-radius:14px!important;background:var(--surface);color:var(--ink);font-family:inherit;font-weight:700;min-height:40px;padding:6px 12px}
.reading select,.reading input,.drawer select,.drawer input{border-color:#D9D1C1!important}
.filters .seg,.viewseg{border:0;border-radius:999px;background:var(--surface);padding:3px;gap:2px}
.filters .seg button,.viewseg button{border:0!important;border-radius:999px;background:transparent;font-weight:800;padding:8px 14px;color:var(--ink2)}
.filters .seg button.active,.viewseg button.active{background:var(--series);color:#fff}
.count{font-weight:700}

/* the three questions */
.three.hero{gap:14px}
.three.hero .q,.three .q{border:0!important;border-radius:22px;padding:18px 20px;box-shadow:none}
.three .q:nth-child(1){background:#E3EEFF} .three .q:nth-child(2){background:#FFF1C7} .three .q:nth-child(3){background:#FFE7D3}
.three .k,.three.hero .k{text-transform:none;letter-spacing:0;font-size:.84rem;font-weight:800;margin-bottom:6px}
.three .q:nth-child(1) .k{color:#1E48C8} .three .q:nth-child(2) .k{color:#6B4A00} .three .q:nth-child(3) .k{color:#8A3B00}
.three.hero .a{font-size:1.05rem;font-weight:800;line-height:1.3;color:#1B2559} .three.hero.open .a.full{font-size:.92rem;font-weight:600;line-height:1.5}
.three.hero .more{font-weight:800;color:#1E48C8;text-decoration:none}
.drawer .three .q:nth-child(1){background:#DCE6EF} .drawer .three .q:nth-child(2){background:#F3E7C8} .drawer .three .q:nth-child(3){background:#F1DFC6}
.drawer .three .k{color:var(--ink2)!important} .drawer .three .a{font-size:1.02rem;line-height:1.6;color:var(--ink)}

/* venue tiles: a soft card, colour carried by the score, orange only when it needs attention */
.grid{gap:14px;grid-template-columns:repeat(auto-fill,minmax(168px,1fr))}
.tile{border-radius:22px;padding:14px 16px}
.tile .tn{font-weight:800;font-size:.9rem} .tile .tr{font-weight:700} .tile .hv{font-weight:900;font-size:1.5rem}
.tile.green .hv{color:var(--green)} .tile.yellow .hv{color:#8A6100}
.tile.red{background:var(--red);color:var(--attn-ink);box-shadow:0 10px 30px rgba(255,138,61,.25)} .tile.red .tr{color:var(--attn-ink)}
.tile:hover{transform:translateY(-2px)}

/* tables and rows */
.rt td,.note,.arow,.alert,table.vitals td,.deliv{border-color:var(--grid)!important}
.rt th,table.vitals th{font-weight:800;color:var(--muted)}
.rt tr.rrow:hover td,.rt.loc tbody tr:hover td{background:var(--tint2)}
.mixbar{height:10px;border-radius:999px} .mixtrack,.bar .bt{height:12px;border-radius:999px} .mixfill,.bar .bf{border-radius:999px}
.abadge,.sev,.pri,.badge,.stale{border-radius:999px;font-weight:800}
.s-high,.sev.high,.pri.high,.sd.sev-high{background:#FF8A3D!important;color:#3B1A00}
.s-critical,.sev.critical,.pri.critical{color:#3B1A00}
.s-medium,.sev.medium,.pri.medium{background:#FFD95A!important;color:#3B2A00}
.up,.delta.up{color:var(--accent)} .down,.delta.down,.pen{color:var(--attn-ink)}
.bar .bv{color:var(--attn-ink)}

/* navigation */
.vsnav{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.vsnav a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;text-decoration:none;font-weight:800;font-size:.9rem;color:var(--ink);background:var(--surface)}
.vsnav a.on{background:var(--series);color:#fff}
.vsnav a:hover{background:var(--tint)} .vsnav a.on:hover{background:var(--series)}

/* the detail panel: calmer colours for reading */
.backdrop{background:rgba(27,37,89,.28)}
.drawer{background:#F6F2EA;border:0;border-radius:var(--radius) 0 0 var(--radius);padding:26px;box-shadow:-12px 0 40px rgba(27,37,89,.18);width:min(780px,96vw)}
.drawer .x{border:0;background:#ECE6DA;width:44px;height:44px}
.drawer h2{font-size:1.7rem;line-height:1.15} .drawer h3{font-size:1.05rem}
.drawer details.sec{background:#FBF8F2} .drawer .brief{background:#FBF8F2}
.drawer table.vitals{font-size:.95rem}
@media(max-width:640px){.drawer{border-radius:0;padding:16px 14px 30px}}

/* region map + ranked list (home) */
.regionmap{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px;max-width:660px;margin:0 auto;width:100%}
.regionmap .st{aspect-ratio:1;border-radius:14px;background:#EDF1F8;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:.78rem;font-weight:700;line-height:1.1;text-decoration:none;border:0;font-family:inherit;padding:0}
.regionmap .st.live{cursor:pointer;font-weight:800} .regionmap .st small{font-size:.72rem}
.h4{background:#2456E6!important;color:#fff!important} .h3{background:#6C9CFF!important;color:#0F1B45!important}
.h2{background:#B7D0FF!important;color:#1B2559!important} .h1{background:#FF8A3D!important;color:#3B1A00!important}
.bubbles{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;padding:10px 0}
.bubbles .bb{border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:.8rem;font-weight:800;line-height:1.15;padding:4px;border:0;font-family:inherit;cursor:pointer}
.ranked{display:flex;flex-direction:column;gap:8px}
.ranked .rr{display:flex;flex-direction:column;gap:6px;padding:8px 12px;border-radius:16px;background:var(--tint2);cursor:pointer;border:0;font-family:inherit;color:inherit;text-align:left;min-height:44px}
.ranked .rr .rh{display:flex;justify-content:space-between;gap:10px;font-weight:800;font-size:.92rem} .ranked .rr .rh small{font-weight:700;color:var(--muted)}
.ranked .rr .rb{height:10px;border-radius:999px;background:var(--tint)} .ranked .rr .rb i{display:block;height:10px;border-radius:999px;background:var(--series)} .ranked .rr .rb i.low{background:#FF8A3D}
.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:.8rem;font-weight:700;color:var(--muted)} .legend span{display:inline-flex;align-items:center;gap:6px} .legend i{width:14px;height:14px;border-radius:5px;display:inline-block}
.ring{position:relative;width:150px;height:150px;flex:none} .ring .rv{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2.7rem;font-weight:900}
.pillchip{display:inline-flex;align-items:center;gap:6px;background:var(--tint);color:var(--accent);border-radius:999px;padding:6px 12px;font-size:.8rem;font-weight:800;text-decoration:none}
.pillchip.line{background:var(--surface);box-shadow:inset 0 0 0 2px var(--series)}
.pillchip.warn{background:#FFE7D3;color:#8A3B00} .pillchip.solid{background:var(--series);color:#fff}

/* home layout */
.wrap{max-width:1360px;padding:24px}
.tophead{flex-wrap:wrap}
.homerow{display:flex;flex-wrap:wrap;gap:18px;margin-top:18px;align-items:stretch}
.healthcard{flex:1 1 300px;display:flex;align-items:center;gap:20px}
.healthcard .hc{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.healthcard .k{font-weight:700;color:var(--muted);font-size:.92rem} .healthcard .hw{font-size:1.6rem;font-weight:900} .healthcard .c{font-size:.78rem;color:var(--muted);font-weight:700}
.herocard{flex:3 1 540px;min-width:0;padding:14px}
.herocard .three.hero{margin:0;height:100%}
.ch{margin:0;font-size:1.2rem;font-weight:900}
.kpistrip{gap:18px;margin-top:18px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.kpi.attn{background:#FF8A3D;color:#3B1A00;box-shadow:0 10px 30px rgba(255,138,61,.25);text-align:left;font-family:inherit;cursor:pointer;border:0}
.kpi.attn .k,.kpi.attn .c{color:#3B1A00} .kpi.attn .k{font-weight:800}
.topbar{margin:0}
.srclist{flex:1 1 130px;display:flex;flex-direction:column;gap:8px;font-size:.92rem;font-weight:700}
.srclist div{display:flex;align-items:center;gap:8px} .srclist span{flex:1}
.sw{width:14px;height:14px;border-radius:5px;display:inline-block} .sw1{background:#2456E6}.sw2{background:#FF8A3D}.sw3{background:#8DB4FF}.sw4{background:#FFC940}.sw5{background:#C3CEE3}
.summary{font-size:1rem;line-height:1.55;font-weight:600}
.filters{margin:22px 0 16px}
.main{gap:18px;grid-template-columns:1fr 300px} @media(max-width:900px){.main{grid-template-columns:1fr}}
details.fold{margin-top:18px!important}
@media(max-width:600px){.wrap{padding:14px} .regionmap{gap:3px} .regionmap .st{border-radius:7px;font-size:.66rem} .regionmap .st small{display:none} .ring{width:104px;height:104px} .ring svg{width:104px;height:104px} .ring .rv{font-size:2rem}}
.ranked{max-height:560px;overflow-y:auto;padding-right:4px}
.three.hero .a{font-size:.98rem}
.tile .spark{margin-top:4px}

/* edit regions */
.reghead,.regrow{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1.5fr 1.2fr;gap:12px;align-items:center}
.reghead{padding:0 14px;font-size:.8rem;font-weight:800;color:var(--muted)}
.regrow{background:var(--tint2);border-radius:18px;padding:10px 14px}
.regrow.check{background:#FFF6EC} .regrow.check input{border-color:#F3C9A4!important} .regrow.manual input{border-color:#2456E6!important}
.regrow .rn{display:flex;flex-direction:column} .regrow .rn small{font-size:.76rem;color:var(--muted);font-weight:700}
.regrow input{width:100%;min-height:44px}
.regrow .rs{display:flex;flex-direction:column;gap:4px;align-items:flex-start} .regrow .rs small{font-size:.76rem;font-weight:800;color:#8A3B00}
.regrow .ra{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.savebtn{min-height:44px;padding:0 18px;border-radius:999px;border:0;background:var(--series);color:#fff;font-family:inherit;font-weight:800;font-size:.86rem;cursor:pointer}
.resetbtn{min-height:44px;padding:0 6px;border:0;background:none;color:var(--accent);font-family:inherit;font-weight:800;font-size:.8rem;cursor:pointer;text-decoration:underline}
button.pillchip{border:0;font-family:inherit;cursor:pointer;min-height:40px}

/* settings, sign-in, admin, onboarding: same buttons and links as the home screen */
.btn,form button[type=submit]:not(.savebtn):not(.resetbtn):not(.xs){border-radius:999px!important;background:var(--series);color:#fff;border:0;font-weight:800;min-height:44px}
.btn.sec{background:var(--surface)!important;color:var(--accent)!important;box-shadow:inset 0 0 0 2px var(--series)}
.btn.sm{min-height:36px}
.gbtn{border-radius:999px!important;border:2px solid #C9DBFA!important;background:var(--surface)!important;font-weight:800;min-height:48px}
.nav{flex-wrap:wrap;gap:8px;align-items:center}
.nav a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:var(--surface);color:var(--ink);font-weight:800;text-decoration:none}
.nav a:hover{background:var(--tint);text-decoration:none}

/* the US map: real state outlines, softened */
.usmap{width:100%;max-width:760px;margin:0 auto;display:block}
.usmap .st{fill:#E4EAF5;stroke:#fff;stroke-width:3.5;stroke-linejoin:round}
.usmap .st.live{cursor:pointer;transition:opacity .12s} .usmap .st.live:hover,.usmap .st.live:focus{opacity:.85;outline:none}
.usmap .st.h4{fill:#2456E6!important} .usmap .st.h3{fill:#6C9CFF!important} .usmap .st.h2{fill:#B7D0FF!important} .usmap .st.h1{fill:#FF8A3D!important}
.usmap .sv{font:900 17px Nunito,sans-serif;text-anchor:middle;pointer-events:none;paint-order:stroke;stroke-width:4px;background:none!important}
.usmap .sv.h4{fill:#fff!important;stroke:#2456E6} .usmap .sv.h3{fill:#0F1B45!important;stroke:#6C9CFF} .usmap .sv.h2{fill:#1B2559!important;stroke:#B7D0FF} .usmap .sv.h1{fill:#3B1A00!important;stroke:#FF8A3D}
@media(max-width:600px){.usmap .sv{font-size:24px} .usmap .st{stroke-width:5}}

/* bubbles on the map: one per group */
.usmap .st.has{fill:#D5DFF3}
.usmap .bub{cursor:pointer;text-decoration:none}
.usmap .bc{stroke:#fff;stroke-width:3;fill:#C3CEE3;transition:transform .12s;transform-box:fill-box;transform-origin:center}
.usmap .bub:hover .bc,.usmap .bub:focus .bc{transform:scale(1.08)}
.usmap .bc.h4{fill:#2456E6} .usmap .bc.h3{fill:#6C9CFF} .usmap .bc.h2{fill:#B7D0FF} .usmap .bc.h1{fill:#FF8A3D}
.usmap .bub .sv{font-size:15px;stroke-width:0}
.ranked a.rr{text-decoration:none} .bubbles a.bb{text-decoration:none;color:inherit}

/* region page (reading colours) */
.rg{max-width:1160px;display:flex;flex-direction:column;gap:26px}
.rgtop{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.backpill{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;background:#ECE6DA;font-family:Nunito,sans-serif;font-weight:800;text-decoration:none;color:var(--ink)}
.rghead{display:flex;flex-wrap:wrap;gap:20px;align-items:center}
.rghead h1{font-size:2.3rem;line-height:1.15;margin:0}
.rgscore{width:92px;height:92px;border-radius:50%;background:#DCE6EF;color:#1F4263;display:flex;align-items:center;justify-content:center;font:900 2.3rem Nunito,sans-serif;flex:none}
.rgscore.low{background:#F1DFC6;color:#7A4408}
.rgplace{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:6px;font-size:.95rem} .rgplace a{font-weight:700;color:var(--accent)}
.rgcols{display:flex;flex-wrap:wrap;gap:32px;align-items:flex-start}
.rgmain{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:30px}
.rgmain section{display:flex;flex-direction:column;gap:12px} .rgmain h2{margin:0;font-size:1.5rem} .rgmain p{margin:0;max-width:66ch}
.rgside{flex:1 1 250px;display:flex;flex-direction:column;gap:14px}
.rgcard{background:#FBF8F2;border-radius:24px;padding:20px}
.rgcard.warn{background:#F1DFC6} .rgcard.warn .v,.rgcard.warn .k,.rgcard.warn .c{color:#7A4408}
.rgside .k{font-size:.95rem;color:var(--muted)} .rgside .v{font:900 2.1rem/1.2 Nunito,sans-serif} .rgside .c{font-size:.98rem;font-weight:700}
.rgcap{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;font-size:.95rem;margin-bottom:8px} .rgcap span{color:var(--muted)}
.lg{display:inline-block;width:18px;height:4px;border-radius:2px;vertical-align:middle;margin:0 6px 0 10px} .lg.a{background:#3D6A96} .lg.b{background:#8A8F99}
.rgrows,.rgsteps{display:flex;flex-direction:column;gap:10px}
.rgrow{background:#FBF8F2;border-radius:18px;padding:12px 18px;display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.rgrow .nm{flex:1 1 150px;font-weight:700} .rgrow .tr{flex:2 1 180px;height:14px;border-radius:999px;background:#ECE6DA} .rgrow .tr i{display:block;height:14px;border-radius:999px;background:#3D6A96;min-width:6px} .rgrow .tr i.bad{background:#B06A1A}
.rgrow .sh{flex:0 0 120px;text-align:right;color:var(--muted);font-size:.95rem} .rgrow .ch{flex:0 0 64px;text-align:right;font-weight:700}
.rgstep{background:#FBF8F2;border-radius:18px;padding:16px 18px;display:flex;gap:14px}
.rgstep .num{flex:none;width:34px;height:34px;border-radius:50%;background:#DCE6EF;color:#1F4263;font:900 1rem Nunito,sans-serif;display:flex;align-items:center;justify-content:center}
.linkbtn{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--accent);text-decoration:underline;cursor:pointer;text-align:left;min-height:0!important;border-radius:0!important}
.rgt{width:100%;min-width:560px;border-collapse:collapse;font-size:1rem}
.rgt th{text-align:left;color:var(--muted);font-size:.9rem;font-weight:700;padding:12px 8px} .rgt td{padding:12px 8px;border-top:2px solid #ECE6DA}
.rgt .n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums} .rgt tbody tr{cursor:pointer} .rgt tbody tr:hover td,.rgt tbody tr:focus td{background:#F1ECE2}
.rgt .hs.red,.rgt .hs.yellow{color:#7A4408}
@media(max-width:600px){.rghead h1{font-size:1.8rem} .rgrow .sh{flex-basis:auto}}

/* alerts: their own short card above the region numbers */
.main{grid-template-columns:1fr!important}
.alertcard{margin-top:18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:0 28px;align-items:start}
.alertcard>h3,.alertcard>.rulechips,.alertcard>.deliv,.alertcard>.moredet,.alertcard>.empty{grid-column:1/-1}
.alertcard>h3{font-size:1.2rem;font-weight:900;margin:0 0 8px;display:flex;justify-content:space-between;align-items:baseline}
.alertcard .moredet[open]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:0 28px}
.alertcard .arow{border-top:0!important;border-radius:14px;padding:9px 10px;font-size:.86rem;transition:background .18s}
.alertcard .arow:hover{background:var(--tint2)}
.alertcard .deliv{border-top:0;margin-top:4px}
.alertcard .more{color:var(--accent);font-weight:800}

/* one shape everywhere: pills */
select{appearance:none;-webkit-appearance:none;border-radius:999px!important;padding:8px 38px 8px 16px!important;min-height:44px;font-weight:800;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%231E48C8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
input[type=text],input[type=email],input[type=date],input[type=password]{border-radius:999px!important;padding:8px 16px!important;min-height:44px}
.regrow input{border-radius:999px!important}
.noteform button,.cmpbar button,button.hbtn{border-radius:999px}

/* smoother movement */
.hbtn,.vsnav a,.pillchip,.nav a,.btn,.savebtn,.tile,.kpi,.ranked .rr,select,input,.chip,.backpill,.gbtn{transition:background-color .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease,border-color .2s ease}
.vsnav a:hover,.pillchip:hover,.ranked .rr:hover,.backpill:hover{transform:translateY(-1px)}
.ranked .rr:hover{background:var(--tint)}
.filters .seg,.viewseg{position:relative;overflow:visible;display:inline-flex;flex-wrap:nowrap}
.filters .seg button,.viewseg button{position:relative;z-index:1;transition:color .25s ease;background:transparent!important}
.seg .thumb,.viewseg .thumb{position:absolute;left:0;top:0;border-radius:999px;background:var(--series);z-index:0;pointer-events:none}
body.thumbs-on .seg .thumb,body.thumbs-on .viewseg .thumb{transition:transform .28s cubic-bezier(.3,.7,.3,1),width .28s cubic-bezier(.3,.7,.3,1),opacity .2s}
.filters .seg button.active,.viewseg button.active{color:#fff}
@keyframes vsInRight{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes vsInLeft{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
@keyframes vsUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.view-table #table{animation:vsInRight .32s ease both}
.main:not(.view-table) #grid{animation:vsInLeft .32s ease both}
.three.hero .a{animation:vsUp .25s ease both}
.drawer{animation:vsInRight .28s ease both} .backdrop{animation:vsFade .2s ease both}
@keyframes vsFade{from{opacity:0}to{opacity:1}}
@media(max-width:700px){.filters .seg{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* reports list: one column per kind of report */
.replist{margin:14px 0 18px}
.repcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-top:12px}
.repcol{background:var(--tint2);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:6px}
.repcol .rk{font-family:Nunito,sans-serif;font-weight:900;font-size:1.02rem} .repcol .rw{font-size:.82rem;color:var(--muted);margin-bottom:4px}
.repcol a{display:flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:var(--surface);text-decoration:none;color:var(--ink);font-size:.9rem;font-weight:700;transition:background-color .2s,color .2s,transform .2s}
.repcol a:hover{transform:translateY(-1px)} .repcol a.on{background:var(--series);color:#fff}
.repcol .rnone{font-size:.88rem;color:var(--muted)} .repcol details{display:flex;flex-direction:column;gap:6px} .repcol details[open]>a{margin-top:6px}
.repcol summary{cursor:pointer;font-size:.86rem;font-weight:700;color:var(--accent);padding:4px 2px}
.replist h2.ch{text-transform:none;letter-spacing:0;font-size:1.2rem;color:var(--ink)}
/* reports list: every column lines up, whatever its schedule text length */
.repcol .rw{min-height:2.7em;line-height:1.35;margin-bottom:6px;display:flex;align-items:flex-start}
.repcol a{white-space:nowrap;justify-content:center;min-height:44px}
.repcol .rnone{min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(0,0,0,.03)}
.repcols{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:stretch}
.repcols{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}

/* number cards: even rows, same height, nothing hanging off the end */
.kpiflow,.kpistrip{display:flex!important;flex-wrap:wrap;gap:18px;align-items:stretch}
.kpiflow>.kpis{display:contents}
.kpiflow .kpi,.kpistrip .kpi{flex:1 1 172px;min-width:0;min-height:138px;display:flex;flex-direction:column;justify-content:flex-start;gap:2px;box-sizing:border-box;margin:0}
.kpiflow .kpi .v,.kpistrip .kpi .v{min-height:2.2rem;display:flex!important;align-items:center;gap:6px;white-space:nowrap;font-size:1.6rem!important;line-height:1.1}
.kpiflow .kpi .k,.kpistrip .kpi .k{font-size:.9rem;font-weight:700;line-height:1.25}
.kpiflow .kpi .d,.kpistrip .kpi .c{font-size:.84rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kpiflow .kpi.wide{flex:1 1 100%!important;min-height:0;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:6px 16px}
.kpiflow .kpi.wide .v{font-size:1.05rem!important;min-height:0;order:2} .kpiflow .kpi.wide .k{order:1;font-weight:800}
.kpiflow .kpi.wide .d{order:3;flex:1 1 320px;display:block;-webkit-line-clamp:unset;overflow:visible}
.kpi .v .dot{flex:none}
/* cards that sit side by side always share a height */
.two,.grid2,.homerow,.topbar,.cmpgrid{align-items:stretch}
.two>.card,.grid2>.card,.grid2>form.card{height:auto;margin:0}
.kpiflow .kpi.wide{order:99}
.kpiflow .kpi .k,.kpistrip .kpi .k{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kpiflow .kpi,.kpistrip .kpi{min-height:146px}

/* report page: one gap everywhere (18px), between every block and inside every grid */
body.reading .wrap>.card,body.reading .wrap>.kpiflow,body.reading .wrap>.two,body.reading .wrap>details.sec,body.reading .wrap>.alldata{margin-top:18px!important;margin-bottom:0!important}
body.reading .two{gap:18px}
body.reading .two>.card{margin:0!important}
body.reading .wrap>h1{margin-top:22px}

/* sign-in, welcome and setup pages: same buttons as everywhere else */
a.btn,button.btn{background:var(--series)!important;color:#fff!important;border-radius:999px!important;font-weight:800;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 20px}
a.btn.sec,button.btn.sec{background:var(--surface)!important;color:var(--accent)!important;box-shadow:inset 0 0 0 2px var(--series)}
body>.card,body>form.card{border-radius:28px;padding:30px 28px}
body>.card a.btn,body>form.card a.btn{display:flex;width:100%}
body>.card h1,body>form.card h1{font-size:1.35rem}

/* every text box is the same pill, whatever page it is on */
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]){
  border:2px solid #C9DBFA!important;border-radius:999px!important;background:var(--surface)!important;color:var(--ink);font-family:inherit;font-weight:700;min-height:44px;padding:8px 16px!important}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(36,86,230,.35);outline-offset:1px}
.reading input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.drawer input:not([type=checkbox]):not([type=radio]):not([type=hidden]){border-color:#D9D1C1!important}
/* one menu on every page */
.nav a.on,.vsnav a.on{background:var(--series)!important;color:#fff!important}
body.reading .vsnav{margin-bottom:4px} body.reading .vsnav a{background:#ECE6DA} body.reading .vsnav a.on{background:#3D6A96!important}
.backpill,.vsnav a,.nav a{font-family:Nunito,system-ui,sans-serif}
