/* admin/css/20-shell-and-kit.css: The shell (rail, top bar, view as, entrance) and the page kit (kit.js): sections, lists, links, facts.
   The admin stylesheet is these files in numeric order, linked from admin.html; a later file overrides an earlier one, so keep the order. */
/* ---------- figures: a number with its word under it, no box ---------- */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:var(--r);background:var(--card);overflow:hidden}
/* a figure is never cut to "$88,6...": the cell is a size container and the number scales to it */
.kpi{padding:20px 22px;min-width:0;border-left:1px solid var(--line);container-type:inline-size}
.kpi:first-child{border-left:0}
.k-label{font-size:14px;font-weight:500;color:var(--slate)}
.k-val{font-family:var(--display);font-size:min(34px,15cqi);font-weight:700;letter-spacing:-.025em;margin:12px 0 12px;line-height:1.05;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.k-val.sm{font-size:21px;white-space:normal}
.k-sub{font-size:13.5px;color:var(--mist)}
.k-sub.up{color:var(--t-moss)} .k-sub.down{color:var(--t-rose)}
.kpi[data-tone=moss] .k-val,.kpi[data-tone=mint] .k-val{color:var(--t-moss)}
.kpi[data-tone=rose] .k-val{color:var(--t-rose)}
.team-strip,.pay-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0;border:1px solid var(--line);border-radius:var(--r);background:var(--card);overflow:hidden}
.team-strip .kpi,.pay-strip .kpi{flex:none}
.pay-strip{margin-bottom:16px}
.nums.cap{max-width:760px}
.n-val.warn{color:var(--wheat)}
/* a notice: one line of news with the one button that answers it */
.notice{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--card)}
.notice.is-warn{border-color:rgba(227,161,48,.45)} .notice.is-bad{border-color:rgba(232,138,124,.5)}
.notice-ico{flex:none;width:34px;height:34px;border-radius:8px;display:grid;place-items:center;border:1px solid var(--line);color:var(--wheat)}
.notice.is-bad .notice-ico{color:var(--t-rose)}
.notice-ico .ic{width:17px;height:17px}
.notice-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.notice-body b{font-size:14.5px;font-weight:600}
.notice-body span{font-size:13px;color:var(--slate);line-height:1.45}
.notice .btn{flex:none}
@media(max-width:680px){.notice{flex-wrap:wrap} .notice .btn{width:100%;justify-content:center;min-height:44px}}
.fold-body>.kpis,.fold-body>.team-strip{border:0;border-radius:0;background:none}
.fold-body>.kpis .kpi:first-child,.fold-body>.team-strip .kpi:first-child{padding-left:0}

/* ---------- the shell ---------- */
.gate{min-height:100svh;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
/* the sign in sits on the site's own hero photograph, held dark the way the
   site holds it behind its headline: the first screen anyone on the team
   sees is Two Guys, not a box on a blank page (2026-10-12) */
.gate{position:relative;isolation:isolate}
.gate::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(11,21,16,.72),rgba(11,21,16,.86) 55%,var(--g0)),
    radial-gradient(900px 560px at 85% 0%,rgba(232,86,15,.14),transparent 62%),
    image-set(url(/assets/img/hero-1800.webp) type("image/webp"),url(/assets/img/hero-1800.jpg) type("image/jpeg")) center 30%/cover no-repeat}
@media(max-width:700px){.gate::before{background:linear-gradient(180deg,rgba(11,21,16,.7),rgba(11,21,16,.88) 55%,var(--g0)),
    image-set(url(/assets/img/hero-mobile.webp) type("image/webp"),url(/assets/img/hero-mobile.jpg) type("image/jpeg")) center 20%/cover no-repeat}}
.gate-card{width:min(420px,100%);padding:32px 30px 28px;background:rgba(19,32,24,.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 2px 6px rgba(0,0,0,.4),0 24px 60px -20px rgba(0,0,0,.7)}
.gate-card h1{font-weight:800;letter-spacing:-.03em}
.gate-card .brand{display:flex;align-items:center;gap:12px;margin-bottom:24px;text-decoration:none;color:inherit}
.gate-card .brand img{height:30px;width:auto}
@media(pointer:coarse){.gate-card .brand{min-height:44px}}
.gate-card h1{font-size:28px;margin:6px 0 6px}
.gate-card .sub{margin-bottom:16px}
.gate-card .field{margin-top:14px}
.gate-card .btn{margin-top:20px;padding:12px}
.gate-err{margin-top:14px;padding:10px 12px;border-radius:var(--r-sm);border:1px solid rgba(232,138,124,.4);color:var(--ink);font-size:13.5px;font-weight:500}
.gate-ok{margin-top:14px;padding:10px 12px;border-radius:var(--r-sm);border:1px solid rgba(111,203,136,.4);color:var(--ink);font-size:13.5px;font-weight:500;line-height:1.5}
.gate-note{margin-top:18px;font-size:13px;color:var(--mist);line-height:1.5}
.gate-note .link-btn{color:var(--slate)}
/* The sign in code. The QR is dark modules on nothing, so it sits on a white
   tile or a phone camera cannot read it off the dark card. */
.mfa-setup{margin:4px 0 2px}
.mfa-qr{display:grid;place-items:center;width:max-content;margin:4px auto 0;padding:12px;background:#fff;border-radius:var(--r-sm)}
.mfa-qr img{display:block;width:184px;height:184px}
.gate-card .mfa-add{margin-top:14px}
.mfa-key-label{margin-top:14px;font-size:13.5px;color:var(--slate);line-height:1.5}
.mfa-key{display:block;margin-top:6px;padding:10px 12px;border:1px solid var(--line-2);border-radius:var(--r-sm);font:600 14px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em;color:var(--ink);word-break:break-all;user-select:all;-webkit-user-select:all}
.gate-card .mfa-code{font:700 24px/1.2 var(--display);letter-spacing:.3em;text-align:center;font-variant-numeric:tabular-nums}
.setup-steps{counter-reset:st;display:flex;flex-direction:column;gap:12px;margin:16px 0 4px;padding:0}
.setup-steps li{list-style:none;display:flex;gap:12px;font-size:14px;color:var(--slate);line-height:1.5}
.setup-steps li::before{counter-increment:st;content:counter(st);font-weight:700;font-size:12.5px;color:var(--ink);border:1px solid var(--line-2);border-radius:6px;min-width:24px;height:24px;display:grid;place-items:center;flex:none}
.setup-steps code{font-size:12.5px;background:rgba(255,255,255,.06);border-radius:4px;padding:1px 5px;color:var(--ink)}

.shell{display:grid;grid-template-columns:var(--rail) minmax(0,1fr);min-height:100svh}
/* THE RAIL SCROLLS WHEN THE WINDOW IS SHORT. Thirteen links in five groups
   want 911px, and the rail is a sticky column exactly the window's height:
   on a laptop window (1440x790, 1366x650) Settings and the name sat below its
   foot, and scrolling the page never reached them. It scrolls on its own now.
   No overscroll-behavior:contain: Chromium applies it to a rail that has
   nothing to scroll as well, so on a tall window the wheel over the rail
   stopped moving the page. The active stroke and a focus ring sit inside its
   14px padding, so the scroll box clips neither across; scroll-padding keeps
   a ring clear of its top and foot when Tab scrolls a link into view. */
#rail{position:sticky;top:0;height:100svh;padding:22px 14px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:2px;border-right:1px solid var(--line);
  overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scroll-padding-block:16px}
#rail .brand{display:flex;align-items:center;gap:10px;padding:4px 10px 24px;text-decoration:none;color:inherit}
#rail .brand img{height:26px;width:auto}
#rail .brand small{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--mist);margin-top:2px;font-weight:600}
.rail-group{font-size:12.5px;font-weight:600;color:var(--mist);padding:18px 12px 6px}
#railLinks>.rail-group:first-child{padding-top:0}
.navlink{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--r-sm);color:var(--slate);font-weight:500;font-size:15px;text-decoration:none;transition:background .15s,color .15s;position:relative}
.navlink .ic{color:var(--mist);transition:color .15s}
@media(hover:hover){.navlink:hover{background:rgba(255,255,255,.04);color:var(--ink)} .navlink:hover .ic{color:var(--ink)}}
.navlink.active{background:rgba(255,255,255,.06);color:var(--ink);font-weight:600}
.navlink.active .ic{color:var(--blaze-hot)}
/* where you are, marked once: a short blaze stroke on the rail, nowhere else */
.navlink.active::before{content:"";position:absolute;left:-14px;top:50%;transform:translateY(-50%);width:3px;height:20px;border-radius:0 3px 3px 0;background:var(--blaze-hot)}
.navlink .badge{margin-left:auto;font-size:11.5px;font-weight:700;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--blaze);color:#fff;display:grid;place-items:center;font-variant-numeric:tabular-nums}
.rail-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px}
.live-pill{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:500;color:var(--mist);padding:6px 12px}
.live-pill .dot{width:7px;height:7px;border-radius:50%;background:#5F7566;flex:none}
.live-pill.on .dot{background:var(--t-moss)}
.live-pill.off .dot{background:var(--t-rose)}
.rail-who{display:flex;flex-direction:column;gap:3px;padding:0 12px;font-size:12.5px;color:var(--mist)}
.rail-who b{font-size:13.5px;color:var(--ink);font-weight:600}
.rail-who span{overflow-wrap:anywhere}
/* a window under about 920px tall: the rail tightens so the whole of it fits
   the 790px a 900px laptop screen leaves the page, and scrolls below that */
@media(min-width:861px) and (max-height:920px){
  #rail{padding-top:12px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  #rail .brand{padding-bottom:12px}
  .rail-group{padding-top:10px;padding-bottom:4px}
  #rail .navlink{padding-top:7px;padding-bottom:7px}
  .rail-foot{gap:6px}
  .live-pill{padding-top:4px;padding-bottom:4px}
}

.main{min-width:0;display:flex;flex-direction:column}
#topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;height:var(--topbar);padding:0 28px;background:rgba(11,21,16,.85);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
/* the page passes UNDER the bar rather than meeting it: a short shade, no line */
#topbar::after{content:"";position:absolute;left:0;right:0;top:100%;height:14px;pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,0))}
#topbar h1{font-size:20px;margin-right:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
/* VIEW AS (lib/viewas.js): whose dashboard this is, and the way back. It
   holds still above the topbar, so a preview is never mistaken for the
   admin's own screens, and it keeps its ember colors in both themes: it is
   part of the shell, not of the page it frames. One line at every width; the
   name gives way first. The name is itself the switcher, which is all a
   phone has room for. */
.viewbar{position:sticky;top:0;z-index:21;display:flex;align-items:center;gap:10px;height:var(--viewbar);padding:0 28px;background:#2B1508;color:#FBE9DD;border-bottom:1px solid rgba(255,106,36,.38)}
.viewbar[hidden]{display:none}
.viewing #topbar{top:var(--viewbar)}
.vb-text{display:flex;align-items:center;gap:9px;align-self:stretch;margin-right:auto;min-width:0;padding:0;background:none;border:0;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.vb-text .ic{color:#FF6A24;flex:none}
.vb-one{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.vb-two{display:none;flex-direction:column;gap:2px;min-width:0;line-height:1.25}
.vb-two b,.vb-two small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vb-two small{font-size:12.5px;color:#F2B894}
.vb-text b{color:#fff;font-weight:700}
.vb-ro{color:#F2B894}
.vb-acts{display:flex;gap:8px;flex:none}
.easy .viewbar .btn{font-size:13px;padding:7px 11px;min-height:36px;border-radius:var(--r-sm)}
@media(pointer:coarse){.easy .viewbar .btn{min-height:44px}}
.vb-switch{background:transparent;border:1px solid rgba(255,255,255,.24);color:#FBE9DD}
@media(hover:hover){.vb-switch:hover{border-color:rgba(255,255,255,.45)} .vb-text:hover b{text-decoration:underline;text-underline-offset:3px}}
.search{position:relative;flex:0 1 280px;min-width:0}
.search .ic{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--mist);pointer-events:none}
.search input{width:100%;height:36px;padding:0 12px 0 36px;border:1px solid var(--line-2);border-radius:var(--r-pill);background:rgba(255,255,255,.03);color:var(--ink);font-size:14px}
.search input:focus{outline:none;border-color:var(--blaze-hot)}
/* the top bar's search has no .input class, so its hint fell to the browser's
   #757575, 4.0:1 on the ground (2026-10-12 review) */
.search input::placeholder{color:var(--mist);opacity:1}
/* the customers, contractors and people that match, under the box */
.q-more{position:absolute;top:calc(100% + 8px);right:0;z-index:30;width:min(400px,calc(100vw - 32px));max-height:min(70vh,520px);overflow:auto;padding:8px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--card);box-shadow:var(--shadow-float)}
.qm-group+.qm-group{margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
.qm-kind{display:block;padding:6px 10px 4px;font-size:12.5px;font-weight:600;color:var(--mist)}
.qm-kind small{font-weight:500;margin-left:4px}
.qm-item{display:flex;flex-direction:column;gap:1px;padding:9px 10px;border-radius:var(--r-sm);color:var(--ink);text-decoration:none;min-height:44px;justify-content:center}
.qm-item b{font-weight:600;font-size:14.5px}
.qm-item span{font-size:13px;color:var(--slate)}
@media(hover:hover){.qm-item:hover{background:rgba(255,255,255,.05)}}
.qm-item:focus-visible{outline:2px solid var(--blaze-hot);outline-offset:-2px}
/* a phone's search box is narrow and off to one side: the list spans the screen under the bar */
@media(max-width:700px){.q-more{position:fixed;top:calc(var(--topbar) + 6px);left:16px;right:16px;width:auto}
  .viewing .q-more{top:calc(var(--topbar) + var(--viewbar) + 6px)}}
@media(pointer:coarse){.search input{height:44px}}
.search kbd{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:11.5px;color:var(--mist);border:1px solid var(--line);border-radius:4px;padding:0 5px;pointer-events:none;font-family:inherit}
/* the page uses the whole width it is given; wide screens get two columns of folds instead of one column and a void (see WIDE below) */
main#view{padding:30px 32px 80px;min-width:0;flex:1;overflow-x:clip;width:100%}
/* List or Board, Business or Website (2026-10-09): two views of one menu item */
.view-switch{padding:22px 32px 0}
.view-switch[hidden]{display:none}
.has-switch main#view{padding-top:18px}
.vs{display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(96px,auto);gap:4px;padding:4px;border:1px solid var(--line);border-radius:var(--r);background:var(--card)}
.vs-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 16px;border-radius:var(--r-sm);color:var(--slate);font-weight:600;font-size:14.5px;text-decoration:none}
@media(hover:hover){.vs-btn:hover{color:var(--ink);background:rgba(255,255,255,.04)}}
.vs-btn.on{background:var(--ink);color:var(--g0)}
.vs-btn:focus-visible{outline:2px solid var(--blaze-hot);outline-offset:2px}
.status-pick .select{min-height:40px;padding-top:7px;padding-bottom:7px;width:auto}
.status-pick .select.on{border-color:var(--ink);color:var(--ink)}
@media(pointer:fine){.status-pick .select{font-size:13.5px;font-weight:600;border-radius:var(--r-pill);padding-left:14px}}
main#view:focus{outline:none}
/* The first screen waits for its data (app.js showApp), so on a slow line the
   view is empty for a moment. It says so only once that moment is long enough
   to wonder about: app.js sets .is-slow after 800ms, in JS rather than an
   animation-delay so reduced motion cannot turn it into a flash, and the line
   eases in, so a load that lands a frame later never shows it at all. */
main#view.is-slow:empty::before{content:"Loading";display:block;padding-top:8px;color:var(--mist);font-size:15px;animation:viewIn .5s ease-in both}
/* THE ENTRANCE. A screen rises a few pixels into place and its panels follow
   one after another, which is the difference between a page that appears and a
   page that arrives. It is a MOUNT effect only: app.js takes the class off
   once it has played, so a re-render never replays it under a reader. */
.view-in{animation:viewIn .2s var(--ease) both}
@keyframes viewIn{from{opacity:0}to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){
  /* a stack dealt into two columns (dealColumns) rises box by box, not as one
     block: the wrapper stays still and each column's boxes follow in turn */
  .view-in .nums,.view-in .kpis,.view-in .toolbar,.view-in .rt-bar,.view-in .board,.view-in .cal-tools,
  .view-in .stack>:not(.dealt),.view-in .dealt-col>*,.view-in .cgrid>*,.view-in .feed-grid>*,.view-in #cuList>*,.view-in #jbList>*,
  .view-in .grid-2>*,.view-in>section>.panel{animation:rise .42s var(--ease) backwards}
  .view-in .stack>*:nth-child(2),.view-in .dealt-col>*:nth-child(2),.view-in .cgrid>*:nth-child(2),.view-in .feed-grid>*:nth-child(2),.view-in .grid-2>*:nth-child(2){animation-delay:.05s}
  .view-in .stack>*:nth-child(3),.view-in .dealt-col>*:nth-child(3),.view-in .cgrid>*:nth-child(3),.view-in .feed-grid>*:nth-child(3){animation-delay:.1s}
  .view-in .stack>*:nth-child(4),.view-in .dealt-col>*:nth-child(4),.view-in .cgrid>*:nth-child(4),.view-in .feed-grid>*:nth-child(4){animation-delay:.14s}
  .view-in .stack>*:nth-child(5),.view-in .dealt-col>*:nth-child(5),.view-in .cgrid>*:nth-child(5),.view-in .feed-grid>*:nth-child(5){animation-delay:.17s}
  .view-in .stack>*:nth-child(n+6),.view-in .dealt-col>*:nth-child(n+6),.view-in .cgrid>*:nth-child(n+6),.view-in .feed-grid>*:nth-child(n+6){animation-delay:.2s}
  .view-in .nums{animation-delay:.02s}
  .view-in .toolbar,.view-in .rt-bar{animation-delay:.06s}
}
#tabbar{display:none}
.only-phone{display:none}
.only-desktop{display:inline-block}

/* ---------- the page kit (the rebuild, 2026-10-09; kit.js) ----------
   Five shapes, each LOOKING like what it is so a page reads as sections and
   not as identical boxes side by side: a page heading on the ground; figures
   on the ground; ONE raised focus card; boxed lists of one line rows; and the
   side column's quieter sections, which sit on the ground with hairlines. */
.pg{display:grid;gap:36px;align-items:start}
@media(min-width:1100px){.pg.pg-two{grid-template-columns:minmax(0,1fr) clamp(320px,30%,440px);gap:40px}}
.pg-main,.pg-side{display:flex;flex-direction:column;gap:36px;min-width:0}
/* figures inside a column are spaced by the column's gap, not their own margin too */
.pg-main>.kstats,.pg-side>.kstats{margin-bottom:0}
.pg-side{gap:30px}
.pg-head{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin-bottom:26px}
.pg-head h2{line-height:1.15;text-wrap:balance}   /* size and weight: the calm grammar block in 70 */
/* the brush stroke (kit.js mark). Drawn still, not animated: Today repaints
   when its data changes, and a stroke that redrew on every repaint would be
   motion with no meaning. */
.kmark{position:relative;display:inline-block;font-style:normal}
.brush{position:absolute;left:-2%;bottom:-.1em;width:104%;height:.22em;overflow:visible;pointer-events:none}
.brush path{fill:none;stroke:var(--blaze);stroke-width:7;stroke-linecap:round}
/* the site's contour rings behind a home page's heading, held soft and faded
   out from their own center so they read as ground, not as a drawing */
.today2>.pg-head::before,.my-home>.pg-head::before{content:"";position:absolute;z-index:-1;pointer-events:none;right:0;top:-70px;width:min(640px,100%);height:340px;
  background-image:repeating-radial-gradient(circle at 70% 30%,transparent 0 28px,rgba(236,168,116,.085) 28px 29.2px);filter:blur(1.4px);
  -webkit-mask-image:radial-gradient(circle at 70% 30%,#000 0%,rgba(0,0,0,.5) 34%,transparent 70%);mask-image:radial-gradient(circle at 70% 30%,#000 0%,rgba(0,0,0,.5) 34%,transparent 70%)}
.pg-head p{margin-top:6px;font-size:15px;color:var(--slate)}
.pg-head-r{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* a section: a heading on the ground, then what it holds */
.sec{display:flex;flex-direction:column;gap:12px;min-width:0}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.sec-head h3{font-family:var(--display);font-size:19px;font-weight:800;letter-spacing:-.02em;display:flex;align-items:baseline;gap:9px}
.sec-n{font-size:15px;color:var(--mist);font-weight:600;font-variant-numeric:tabular-nums}
.sec-head>a,.sec-head>.btn-link{font-size:14px;font-weight:600;color:var(--slate);text-decoration:none;white-space:nowrap}
@media(hover:hover){.sec-head>a:hover{color:var(--ink)}}
.sec-quiet .sec-head h3{font-size:15.5px;color:var(--slate);font-weight:600;font-family:var(--text);letter-spacing:0}
.sec-quiet .sec-n{font-size:14px}

/* figures on the ground: no box, the number is the shape */
.kstats{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px 28px;margin-bottom:34px}
.kstat{display:flex;flex-direction:column;gap:6px;min-width:0;padding:2px 0;background:none;border:0;text-align:left;color:inherit;font:inherit;text-decoration:none;cursor:default;container-type:inline-size}
a.kstat,button.kstat{cursor:pointer}
.kstat b{font-family:var(--display);font-weight:800;font-size:min(36px,17cqi);letter-spacing:-.03em;line-height:1.05;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.kstat b.hot{color:var(--blaze-hot)} .kstat b.good{color:var(--t-moss)} .kstat b.bad{color:var(--t-rose)} .kstat b.dim{color:var(--mist)} .kstat b.warn{color:var(--wheat)}
.kstat span{font-size:14px;color:var(--slate)}
@media(hover:hover){a.kstat:hover span,button.kstat:hover span{color:var(--ink)}}
.kstat:focus-visible{outline:2px solid var(--blaze-hot);outline-offset:4px;border-radius:4px}

/* THE focus card: raised, one per page */
.focus{display:flex;gap:16px 28px;align-items:center;flex-wrap:wrap;padding:22px 24px;border-radius:14px;background:var(--card-2);border:1px solid var(--line-2);box-shadow:0 1px 1px rgba(0,0,0,.25),0 20px 40px -28px rgba(0,0,0,.95)}
.focus-main{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:6px}
/* what kind of card this is, said the way every status is said: a dot and a plain word */
.focus-label{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--slate)}
.focus-label::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--wheat);flex:none}
.focus .focus-h{font-family:var(--display);font-size:22px;font-weight:800;letter-spacing:-.025em;line-height:1.2}
.focus p{color:var(--slate);font-size:15px;max-width:60ch}
.focus-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.focus-acts .btn{min-height:46px;padding:12px 18px;font-size:15px}
.focus-side{flex:none;text-align:right}

/* a boxed list of one line rows */
.klist{border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:hidden}
.kr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px 14px;padding:13px 16px;min-height:62px;border-top:1px solid var(--line)}
.kr:first-child{border-top:0}
.kr-hit{position:absolute;inset:0;z-index:0;background:none;border:0;padding:0;margin:0;cursor:pointer;border-radius:0}
.kr-hit:focus-visible{outline:2px solid var(--blaze-hot);outline-offset:-2px}
@media(hover:hover){.kr:has(.kr-hit):hover{background:rgba(255,255,255,.025)}}
.kr-main{min-width:0;display:flex;flex-direction:column;gap:4px;pointer-events:none}
.kr-main>b{font-weight:600;font-size:16px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:8px}
.kr-main>span{font-size:14px;color:var(--slate);line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.kr-main>span .late{color:var(--t-rose)} .kr-main>span .warn{color:var(--wheat)} .kr-main>span .good{color:var(--t-moss)} .kr-main>span .hot{color:var(--blaze-hot)}
.kr-dot{width:8px;height:8px;border-radius:50%;background:var(--blaze-hot);flex:none}
.kr-dot.warn{background:var(--wheat)} .kr-dot.bad{background:var(--t-rose)} .kr-dot.good{background:var(--t-moss)}
.kr-right{font-variant-numeric:tabular-nums;font-weight:600;font-size:15px;color:var(--ink);white-space:nowrap;text-align:right;position:relative;z-index:1;pointer-events:none}
.kr-right small{display:block;font-weight:500;font-size:13px;color:var(--slate)}
.kr-acts{display:flex;gap:8px;align-items:center;position:relative;z-index:1}
.kr-acts .btn{padding:9px 14px;font-size:14px;min-height:40px}
.kr-chev{color:var(--mist);display:flex;position:relative;z-index:1;pointer-events:none}
.kr-chev .ic{width:16px;height:16px}
.klist-more{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line);font-size:14px;color:var(--slate)}
.klist-more .btn{padding:7px 12px;font-size:13.5px}

/* summary rows that lead somewhere: on the ground in the side column */
.klinks{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.klink{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:12px;padding:13px 2px;min-height:50px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);font:500 15px var(--text);text-align:left;text-decoration:none;cursor:pointer}
.klink-l{min-width:0}
.klink-v{color:var(--slate);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.klink-v.bad{color:var(--t-rose)} .klink-v.good{color:var(--t-moss)} .klink-v.warn{color:var(--wheat)} .klink-v.hot{color:var(--blaze-hot)}
.klink-c{width:16px;height:16px;color:var(--mist)}
@media(hover:hover){.klink:hover{color:#fff} .klink:hover .klink-c{color:var(--ink)}}
.klink:focus-visible{outline:2px solid var(--blaze-hot);outline-offset:-2px}

/* label and value, tap to change */
.kfacts{border:1px solid var(--line);border-radius:12px;background:var(--card);overflow:hidden}
.kfact{display:grid;grid-template-columns:minmax(110px,34%) minmax(0,1fr) 16px;align-items:center;gap:12px;width:100%;padding:13px 16px;min-height:52px;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.kfact:first-child{border-top:0}
.kfact.static{cursor:default;grid-template-columns:minmax(110px,34%) minmax(0,1fr)}
.kfact-l{font-size:14px;color:var(--slate)}
.kfact-v{font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kfact-v.muted{color:var(--mist)} .kfact-v.bad{color:var(--t-rose)} .kfact-v.warn{color:var(--wheat)} .kfact-v.good{color:var(--t-moss)}
.kfact-c{width:16px;height:16px;color:var(--mist)}
@media(hover:hover){button.kfact:hover,a.kfact:hover{background:rgba(255,255,255,.025)}}
.kfact:focus-visible{outline:2px solid var(--blaze-hot);outline-offset:-2px}
.kempty{color:var(--mist);font-size:15px;padding:4px 0}

/* a list with nothing in it is one calm line with the next thing to do */
.kempty-box{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:20px;border:1px dashed var(--line-2);border-radius:12px}
.kempty-box>.ic{width:22px;height:22px;color:var(--t-moss);flex:none}
.kempty-box>div{flex:1 1 220px;display:flex;flex-direction:column;gap:3px}
.kempty-box b{font-size:16px}
.kempty-box span{color:var(--slate);font-size:14px}
/* the goal as one thin bar at the foot of the side column */
.kgoal{display:flex;flex-direction:column;gap:10px;padding:4px 2px;color:var(--ink);text-decoration:none}
.kgoal-top{display:flex;justify-content:space-between;gap:12px;font-size:14.5px}
.kgoal-top b{font-weight:600}
.kgoal-top span{color:var(--slate);font-variant-numeric:tabular-nums}
.kgoal-bar{height:6px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden}
.kgoal-bar i{display:block;height:100%;background:var(--t-moss);border-radius:3px}
@media(hover:hover){.kgoal:hover .kgoal-top b{text-decoration:underline;text-underline-offset:3px}}
/* the options button: a label and a chevron, opening the shared popover */
.opt-btn .opt-chev{width:14px;height:14px;margin-left:2px}

@media(max-width:680px){
  .pg,.pg-main{gap:28px}
  .pg-head h2{font-size:24px}
  .pg-head{margin-bottom:18px}
  .kstats{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin-bottom:26px}
  .kstat b{font-size:min(28px,17cqi)}
  .focus{padding:18px}
  .focus .focus-h{font-size:20px}
  .focus-acts{width:100%}
  .focus-acts .btn{flex:1 1 140px}
  .kr{grid-template-columns:minmax(0,1fr) auto;padding:12px 14px}
  .kr-right{grid-column:2;grid-row:1}
  .kr:has(.kr-right) .kr-acts{grid-column:1/-1;justify-content:flex-start}
  .kr-acts .btn{min-height:44px}
  .kr:has(.kr-right)>.kr-chev{display:none}   /* the value is enough; the arrow wrapped to a line of its own */
  .sec-head{flex-wrap:wrap}
  .kr-main>span{-webkit-line-clamp:4;line-clamp:4}
  .kr-acts .btn:not(.more-btn){padding:9px 12px}
  .kfact{grid-template-columns:minmax(0,1fr) 16px;gap:2px 12px}
  .kfact-l{grid-column:1;font-size:13px}
  .kfact-v{grid-column:1;white-space:normal}
  .kfact-c{grid-column:2;grid-row:1/3}
  .kfact.static{grid-template-columns:1fr}
}

/* ---------- Today ---------- */
.today-head{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
/* Phase 16: My jobs is the project manager's Today, then their job list */
.mine-jobs{margin-top:32px}
.today-head .kicker{font-size:15px;font-weight:500;color:var(--mist)}
.today-head h2{font-size:32px;letter-spacing:-.025em}
.today-head .sub{font-size:15px;margin-top:0}
/* THE NUMBERS. Always at the top, never folded: figures set in the display
   face in one panel, each labelled under itself. A figure that is a problem
   reads rose, money in reads moss, work waiting on the owner reads blaze;
   everything else is ink. Since 2026-09-14 every screen with figures worth
   knowing first opens on this same strip (ui.js `nums`).

   The dividers COLLAPSE: every cell draws its own top and left hairline and
   pulls back a pixel, and the panel clips what hangs outside. So three across,
   four, six, or a half empty wrapped row all divide themselves correctly, and
   no nth-child arithmetic has to be kept in step with a breakpoint (the
   previous eight such rules were wrong the moment a strip had five figures).
   --n is the column count. */
.nums{--n:6;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:0;margin:0 0 26px;
  border:1px solid var(--line);border-top-color:rgba(255,255,255,.14);border-radius:var(--r);
  /* the headline object on the page sits one step above the other panels */
  background:var(--card-2);overflow:hidden;box-shadow:0 1px 1px rgba(0,0,0,.25),0 18px 34px -26px rgba(0,0,0,.9)}
.nums.two{--n:2} .nums.three{--n:3} .nums.four{--n:4} .nums.five{--n:5}
.num-item{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;text-align:left;color:inherit;text-decoration:none;
  padding:22px 24px 20px;background:none;border:0;border-left:1px solid var(--line);border-top:1px solid var(--line);
  margin-left:-1px;margin-top:-1px;border-radius:0;container-type:inline-size}
button.num-item,a.num-item{cursor:pointer;transition:background .15s}
.n-val{font-family:var(--display);font-weight:700;letter-spacing:-.03em;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:min(42px,15cqi)}
.n-val.hot{color:var(--blaze-hot)} .n-val.good{color:var(--t-moss)} .n-val.bad{color:var(--t-rose)} .n-val.dim{color:var(--mist)}
.n-lbl{font-size:15px;font-weight:600;color:var(--ink);line-height:1.3;margin-top:13px}
.n-sub{font-size:13.5px;color:var(--slate);line-height:1.35}
@media(hover:hover){button.num-item:hover{background:rgba(255,255,255,.03)} button.num-item:hover .n-lbl{color:var(--blaze-hot)}}
.today .stack{gap:12px}
.group-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
.group-head h2{font-size:17px}
