/* ORYQEL - THE FRAME'S STYLESHEET, EVERY STAFF PAGE (2 Nov 2026, Ship 36 of the speed plan). Until today every page
   carried this text INLINE (engine/webui.py CSS, in PAGE's <style>); now it is this file, asked for as
   /static/frame.css?v=N and kept by the browser a year (webapp/lock.py _keeps) - N is webui.FRAME, raised whenever
   this file or frame.js changes. Public like the brand folder (lock.py PUBLIC_FILES): the login page wears it too.
   engine/webui.py reads this file once at import (webui.CSS): the visitor's own chat page carries the photo viewer's
   styles between the PV-CSS marks word for word, and the suites pin the words here. */

/* ORYQEL. Andy, 18 Sep 2026 - his identity sheet: deep black #000000, off
   white #F7F7F5, Oryqel orange #FF8A00, dark gray #1E1E1E, and Sora. Dark
   first: black with orange, never a white app.

   So the device's own light setting NO LONGER decides anything - that was the
   path by which a Windows laptop set to light turned the whole system white.
   Dark is what everybody gets. Light is still there, in Oryqel's off white and
   never plain white, but only when he picks it on the Dashboard (kept in this
   browser under 'le-theme', applied by four lines in PAGE before anything is
   drawn, so it never flashes the wrong colour).

   The six STATUS colours - green, amber, red, slate, blue, violet - are left
   exactly as they were: they were chosen and approved for meaning, and green
   and blue on a button still mean WhatsApp and email (28 Aug). The brand lives
   in the surfaces, the type, the mark and the orange of the main button.
   color-scheme is in each block so the browser's own furniture - dropdowns,
   scrollbars - follows the theme too. */
@font-face{font-family:"Sora";font-style:normal;font-weight:400;font-display:swap;
  src:url("/static/fonts/sora-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Sora";font-style:normal;font-weight:600;font-display:swap;
  src:url("/static/fonts/sora-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Sora";font-style:normal;font-weight:700;font-display:swap;
  src:url("/static/fonts/sora-latin-700-normal.woff2") format("woff2")}
:root,:root[data-theme="dark"]{--bg:#000000;--panel:#1E1E1E;--raise:#2A2A2A;--line:#333333;
--ink:#F7F7F5;--dim:#B3B3AE;--faint:#7E7E78;--grid:#2E2E2E;--track:#161616;
--green:#3ddc84;--amber:#ffb020;--red:#ff5c5c;--slate:#8b93a3;
--blue:#4d9bff;--violet:#b47cff;--accent:#FF8A00;--sea:#141414;
--brand:#FF8A00;--brandink:#000000;
color-scheme:dark}
/* Light - ONLY by his own choice on the Dashboard. Off white, never white. */
:root[data-theme="light"]{--bg:#F7F7F5;--panel:#FFFFFF;--raise:#EEEEEA;
--line:#DEDED8;--ink:#0A0A0A;--dim:#5E5E58;--faint:#8E8E86;
--grid:#E2E2DC;--track:#EDEDE8;--sea:#EAEAE5;
--green:#0e9f57;--amber:#c97a00;--red:#d92c2c;--slate:#7d8593;
--blue:#1668d6;--violet:#7a3fc4;--accent:#E07800;
--brand:#FF8A00;--brandink:#000000;
color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);
font:15px/1.6 "Sora",ui-sans-serif,-apple-system,"Segoe UI",system-ui,sans-serif;
-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
a{color:inherit;text-decoration:none}
.wrap{max-width:1400px;margin:0 auto;padding:20px 18px 80px}

/* top bar */
header{display:flex;align-items:center;gap:18px;flex-wrap:wrap;
padding-bottom:16px;margin-bottom:22px;border-bottom:1px solid var(--line)}
header h1{font-size:17px;font-weight:600;margin:0;letter-spacing:-.01em;
display:flex;align-items:center;gap:10px}
/* The mark. Fixed height, width follows, and flex:none so a long
   company name in the picker beside it cannot squash it. */
.brandmark{height:17px;width:auto;display:block;flex:none}
/* The white wordmark on the dark page, the black one on the light page. */
.brandmark.on-light{display:none}
:root[data-theme="light"] .brandmark.on-dark{display:none}
:root[data-theme="light"] .brandmark.on-light{display:block}
.brandtext{font-weight:700;letter-spacing:.12em}
header .who{font-size:12px;color:var(--faint);letter-spacing:.04em}
nav{display:flex;gap:4px;margin-left:auto;flex-wrap:wrap}
nav a{padding:6px 12px;border-radius:7px;font-size:14px;font-weight:600;color:var(--ink)}
nav a:hover{background:var(--panel);color:var(--ink)}
nav a.on{background:var(--panel);color:var(--ink);font-weight:700;
box-shadow:inset 0 -2px 0 var(--brand)}
/* The line between the four pages of the daily work and the three that are
   settings. A thin rule rather than a gap: a gap in a row that already
   wraps on a narrow window reads as an accident, a line reads as a
   decision. It disappears when the bar wraps, where it would be wrong. */
nav .split{align-self:stretch;width:1px;background:var(--line);margin:4px 8px}
/* The way back. On every page that is not one of the six in the nav bar.
   Browser back works too, but a link you can see beats one you have to
   remember - and on a laptop trackpad it beats one you have to find. */
.back{display:inline-flex;align-items:center;gap:8px;margin:-6px 0 16px;
  padding:7px 13px 7px 11px;border:1px solid var(--line);border-radius:8px;
  background:var(--panel);color:var(--dim);font-size:13.5px;font-weight:500}
.back:hover{color:var(--ink);border-color:var(--dim)}
.back span{font-size:15px;line-height:1}
nav a .pill{display:inline-block;margin-left:6px;background:var(--green);
color:var(--bg);border-radius:20px;padding:0 6px;font-size:11px;font-weight:700}
/* A TAP IS SEEN AT ONCE (8 Oct 2026, the speed check): the tapped link dims, and a thin bar runs along the very top
   of the screen until the next page lands - PAGE's own script at the end of the body sets the two classes. */
a.going{opacity:.55}
.le-going{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:999;opacity:0;
  pointer-events:none;transition:opacity .2s}
html.le-busy .le-going{opacity:1;animation:le-go 1.6s ease-out forwards}
@keyframes le-go{0%{width:0}30%{width:55%}100%{width:92%}}
/* ...and while it waits the page is not pulled past its top or its bottom (6 Nov 2026, Andy's iPhone during New
   campaign's "Checking - up to 30 s...": a big black area over the page) - frame.js __leGoingInit holds the finger too */
html.le-busy,html.le-busy body{overscroll-behavior:none}
/* THE BURGER - Andy, 24 Sep 2026. On a phone the owner's menu wrapped over
   four lines and took the top third of every page. It now folds behind one
   button at the top left. The shape is a details element with the id "menu"
   and a summary as the button, ON PURPOSE: the live refresh at the bottom of
   this template swaps the whole of .wrap every few seconds and puts back only
   the open details that carry an id - so this is the one kind of "open" that
   survives a refresh round mid-use. A class, a checkbox or aria-expanded would
   be wiped. The nav element inside is untouched: the tests read its literal
   opening tag. (No tag is written in angle brackets in these comments: this
   stylesheet is inlined in every page, the login page included, and the tests
   look for the menu's tag in the page text.)
   On a computer nothing changes - the button is not drawn, and the menu is
   simply kept open (the script right after it in the template). */
details.menu{margin-left:auto}
details.menu>summary{display:none;list-style:none;cursor:pointer}
details.menu>summary::-webkit-details-marker{display:none}
/* Belt and braces for a computer with scripts off: browsers that know the
   ::details-content part (Chrome 131+, Safari 18.4+, Firefox 138+) show the
   menu even while the details is closed. Older ones rely on the script.
   Written as "not the phone rule" on purpose, so it is the exact complement
   of the 620px block below - a window 620.5px wide (browser zoom does that)
   must never fall between the two and end up with no menu at all. */
@media not all and (max-width:620px){details.menu::details-content{content-visibility:visible}}
select{background:var(--panel);color:var(--ink);border:1px solid var(--line);
border-radius:7px;padding:6px 10px;font:inherit;font-size:13.5px}

/* the stage bar
   The row of stages stays put at the top, exactly where it was. Each one is a
   button: press it and that stage's leads open underneath, full width. Press
   another and the first closes. The bar itself never moves, so the counts are
   always in the same place on screen. */
.bar{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.tab{display:flex;align-items:center;gap:8px;padding:11px 13px;border-radius:9px;
border:1px solid var(--line);background:var(--panel);cursor:pointer;min-width:0}
.tab:hover{filter:brightness(1.2)}
.tab h2{font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;
font-weight:700;margin:0;color:var(--dim);white-space:nowrap;overflow:hidden;
text-overflow:ellipsis}
.tab .n{margin-left:auto;font-size:13px;color:var(--faint);
font-variant-numeric:tabular-nums}
.tab .car{font-size:10px;color:var(--faint);margin-left:4px}
.dot{width:10px;height:10px;border-radius:50%;flex:0 0 10px;display:inline-block}
.tab.slate h2{color:var(--slate)}.tab.blue h2{color:var(--blue)}
.tab.violet h2{color:var(--violet)}.tab.amber h2{color:var(--amber)}
.tab.green h2{color:var(--green)}.tab.red h2{color:var(--red)}
/* the open one, in its own colour so you never lose which list you are in */
.tab.on{border-width:2px;padding:10px 12px}
.tab.on.slate{border-color:var(--slate);background:color-mix(in srgb,var(--slate) 14%,var(--panel))}
.tab.on.blue{border-color:var(--blue);background:color-mix(in srgb,var(--blue) 16%,var(--panel))}
.tab.on.violet{border-color:var(--violet);background:color-mix(in srgb,var(--violet) 16%,var(--panel))}
.tab.on.amber{border-color:var(--amber);background:color-mix(in srgb,var(--amber) 16%,var(--panel))}
.tab.on.green{border-color:var(--green);background:color-mix(in srgb,var(--green) 16%,var(--panel))}
.tab.on.red{border-color:var(--red);background:color-mix(in srgb,var(--red) 14%,var(--panel))}
.tab.on .n,.tab.on .car{color:inherit}
.tab.on.slate .n{color:var(--slate)}.tab.on.blue .n{color:var(--blue)}
.tab.on.violet .n{color:var(--violet)}.tab.on.amber .n{color:var(--amber)}
.tab.on.green .n{color:var(--green)}.tab.on.red .n{color:var(--red)}

/* the closed-out pair, smaller and underneath - they are not part of the flow */
.bar2{display:flex;gap:9px;margin-top:9px;flex-wrap:wrap}
.bar2 .tab{flex:0 1 260px;padding:8px 12px;opacity:.85}
.bar2 .tab.on{padding:7px 11px;opacity:1}

/* one lead per row, full width */
.rows{margin-top:16px}
.blurb{font-size:12.5px;color:var(--dim);margin:0 0 12px}
.row{display:grid;grid-template-columns:minmax(170px,1.1fr) minmax(0,2fr) 150px;
gap:16px;align-items:start;border:1px solid var(--line);
border-left:4px solid var(--line);border-radius:9px;padding:11px 14px;margin-bottom:7px}
.row:hover{filter:brightness(1.15)}
.row .who .nm{font-weight:600;font-size:14px}
.row .who .org{font-size:12.5px;color:var(--dim)}
.row .mid{font-size:12.5px;color:var(--faint);line-height:1.5}
.row .mid .note{color:var(--dim);font-style:italic;margin-top:4px;display:block}
.emptyrow{color:var(--faint);font-size:13px;font-style:italic;padding:16px 2px}

/* dates. the reply time is loud because it is what you scan for */
.when{font-size:11px;color:var(--faint);line-height:1.55;
font-variant-numeric:tabular-nums;text-align:right}
.when div{display:flex;gap:6px;justify-content:flex-end}
.when b{color:var(--dim);font-weight:600}
.when .hot b,.when .hot{color:var(--green);font-weight:600}

.c-green{border-left-color:var(--green);background:color-mix(in srgb,var(--green) 14%,var(--panel))}
.c-amber{border-left-color:var(--amber);background:color-mix(in srgb,var(--amber) 12%,var(--panel))}
.c-violet{border-left-color:var(--violet);background:color-mix(in srgb,var(--violet) 13%,var(--panel))}
.c-blue{border-left-color:var(--blue);background:color-mix(in srgb,var(--blue) 12%,var(--panel))}
.c-slate{border-left-color:var(--slate);background:color-mix(in srgb,var(--slate) 9%,var(--panel))}
.c-red{border-left-color:var(--red);background:color-mix(in srgb,var(--red) 9%,var(--panel));opacity:.85}
.d-green{background:var(--green)}.d-amber{background:var(--amber)}
.d-violet{background:var(--violet)}.d-blue{background:var(--blue)}
.d-slate{background:var(--slate)}.d-red{background:var(--red)}

.legend{margin-top:26px;padding-top:16px;border-top:1px solid var(--line);
font-size:12px;color:var(--faint);display:flex;gap:20px;flex-wrap:wrap}
.legend span{display:flex;align-items:center;gap:6px}

@media(max-width:900px){.bar{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.row{grid-template-columns:1fr;gap:7px}
.row .when{text-align:left}.row .when div{justify-content:flex-start}}
@media(max-width:520px){.bar{grid-template-columns:1fr}}

/* dashboard */
.needs{background:color-mix(in srgb,var(--green) 13%,var(--panel));
border:1px solid var(--green);border-radius:13px;padding:16px 20px;margin-bottom:12px}
.needs .lab{font-size:11px;letter-spacing:.11em;text-transform:uppercase;
color:var(--green);font-weight:700;margin-bottom:4px}
.needs .nl{display:flex;align-items:center;gap:13px;padding:10px 0;font-size:14.5px;
border-bottom:1px solid color-mix(in srgb,var(--green) 26%,transparent)}
.needs .nl:last-child{border-bottom:0}
.needs .nl b{font-weight:600}
.needs .nl .said{color:var(--dim);font-size:13px}
.needs .nl .t{margin-left:auto;font-size:11.5px;color:var(--green);font-weight:600;
white-space:nowrap;font-variant-numeric:tabular-nums}
.needs .none{font-size:14px;color:var(--dim);padding:6px 0}

.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-bottom:12px}
.kpi{background:var(--panel);border:1px solid var(--line);border-radius:12px;
padding:15px 17px}
.kpi .k{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
color:var(--faint);font-weight:700}
.kpi .v{font-size:29px;font-weight:600;line-height:1.15;margin:5px 0 1px;
font-variant-numeric:tabular-nums}
.kpi .s{font-size:12.5px;color:var(--dim)}
.kpi.mid{display:flex;align-items:center;gap:14px;padding:11px 15px}
.kpi.mid .txt{min-width:0}
/* the ring must not be squeezed by the flex row - it is the point of the tile */
.kpi.mid svg{flex:0 0 104px;width:104px;height:104px}

.grid2{display:grid;grid-template-columns:1.55fr 1fr;gap:12px;margin-bottom:12px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;
padding:15px 18px}
.card h3{margin:0 0 2px;font-size:14px;font-weight:600}
.card .cs{font-size:12.5px;color:var(--dim);margin:0 0 12px}
.card .muted{color:var(--faint);font-size:13px;font-style:italic}
.key{display:flex;gap:18px;font-size:12px;color:var(--dim);margin-top:6px}
.key span{display:flex;align-items:center;gap:7px}
.key i{width:11px;height:3px;border-radius:2px;display:inline-block}

.msgs .m{padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.msgs .m:last-child{border-bottom:0}
.msgs .m .hd{display:flex;gap:9px;align-items:center;margin-bottom:4px}
.msgs .m .hd b{font-size:13px;font-weight:600}
.msgs .m .hd .r{margin-left:auto;font-size:11px;font-weight:700;
letter-spacing:.05em;text-transform:uppercase}
.msgs .m .hd .yes{color:var(--green)}.msgs .m .hd .no{color:var(--faint)}
.msgs .m .tx{color:var(--faint);line-height:1.5;font-size:12.5px}

/* the team - each agent shown as a person, because that is how you talk
   about them: "Nina found it, Elias wrote it, James filed it". */
.person .ph{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.person .pav{width:38px;height:38px;border-radius:50%;flex:0 0 38px;display:grid;
place-items:center;font-size:15px;font-weight:700;color:#0a1020;position:relative;
background:linear-gradient(150deg,var(--blue),var(--violet))}
/* the little mark is the whole of what gender does here - an icon, nothing
   more. It changes nothing an agent writes or is allowed to do. */
.person .pav i{position:absolute;right:-3px;bottom:-3px;width:16px;height:16px;
border-radius:50%;display:grid;place-items:center;font-size:10px;font-style:normal;
border:2px solid var(--panel);color:#0a1020}
.person .pav.g-f i{background:#f0a3c8}
.person .pav.g-m i{background:#7fc4f5}
.person .pav.g-x i{display:none}
.person .pav.g-f{background:linear-gradient(150deg,#d97ab0,var(--violet))}
.person .pav.g-m{background:linear-gradient(150deg,var(--blue),#37c9c0)}
.person h3{margin:0;font-size:15.5px;font-weight:600}
.person .role{font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;
color:var(--faint);font-weight:700;margin-top:1px}
.person .pstate{margin-left:auto;font-size:12.5px;color:var(--dim);text-align:right}
.person.green .pav{background:linear-gradient(150deg,var(--green),#2bb4d6)}

/* james */
.jbtn{display:flex;align-items:center;gap:8px;padding:5px 12px 5px 5px;
border-radius:22px;border:1px solid var(--line);background:var(--panel);
font-size:13px;color:var(--dim);font-weight:600}
.jbtn:hover{border-color:var(--green);color:var(--ink)}
.jav{width:26px;height:26px;border-radius:50%;flex:0 0 26px;display:grid;
place-items:center;font-size:11px;font-weight:700;color:#0a1020;
background:linear-gradient(150deg,var(--green),#2bb4d6)}
/* Talking to the assistant.
   A fixed box that scrolls inside itself, not a page that grows. The page
   used to grow, which pushed the field you type in further down with every
   exchange - so after four questions you were scrolling up and down hunting
   for the place to type. */
.talk{max-width:760px;margin:0 auto;display:flex;flex-direction:column}
.stream{height:min(56vh,520px);overflow-y:auto;padding:2px 2px 4px;
  border:1px solid var(--line);border-radius:13px;background:var(--bg);
  padding:12px 12px 4px;margin-bottom:10px}
.stream::-webkit-scrollbar{width:9px}
.stream::-webkit-scrollbar-thumb{background:var(--line);border-radius:9px}
.chat{max-width:760px;margin:0 auto}
/* Areas: the map card, the cards under it, and the region chip on a row. */
.areas .cs{margin-bottom:6px}
.acards{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));
        gap:10px;margin-top:14px}
.ac{display:block;border:1px solid var(--line);border-radius:10px;
    text-decoration:none;color:inherit;background:var(--bg);overflow:hidden}
.acmap{line-height:0;border-bottom:1px solid var(--line)}
.ac>.t,.ac>.n,.ac>.b,.ac>.o{margin-left:13px;margin-right:13px}
.ac>.t{margin-top:11px}
.ac>.o{margin-bottom:12px}
.ac:hover{border-color:var(--dim)}
.ac.has{border-color:color-mix(in srgb,var(--green) 55%,var(--line))}
.ac .t{font-size:13px;font-weight:600;display:flex;justify-content:space-between;
       align-items:center;gap:6px}
.ac .t .g{font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;
          color:var(--green);font-weight:600}
.ac .n{font-size:26px;font-weight:600;letter-spacing:-.02em;margin:2px 0 4px}
.ac .b{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:11.5px;
       color:var(--faint)}
.ac .o{margin-top:7px;padding-top:7px;border-top:1px solid var(--line);
       font-size:11.5px;color:var(--dim)}
.area{display:inline-block;margin-top:4px;font-size:10.5px;letter-spacing:.05em;
      text-transform:uppercase;color:var(--dim);border:1px solid var(--line);
      border-radius:4px;padding:1px 6px}
.area.unk{color:var(--amber);border-color:color-mix(in srgb,var(--amber) 45%,var(--line))}
/* one sentence and its link: they wrap on a phone, never stand in columns (27 Sep 2026, the Board on his iPhone) */
.filt{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-bottom:12px;
      font-size:13.5px;color:var(--dim)}
.filt a{color:var(--dim);font-size:12.5px}
.areapick{display:inline-block;margin-left:9px}
.areapick select{background:var(--raise);color:var(--ink);
  border:1px solid var(--line);border-radius:6px;padding:2px 6px;
  font-size:12.5px;font-family:inherit;cursor:pointer}
.areapick select:hover{border-color:var(--dim)}
/* The learner's proposals. */
.pill.amber{background:var(--amber)}
h3.sec{font-size:12px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--faint);margin:26px 0 10px;font-weight:600}
.prop{margin-bottom:12px}
.ph{display:flex;align-items:center;gap:9px;margin-bottom:9px;flex-wrap:wrap}
.ph b{font-size:14.5px}
.conf{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;
  border:1px solid var(--line);border-radius:4px;padding:1px 6px;color:var(--dim)}
.conf.green{color:var(--green);border-color:color-mix(in srgb,var(--green) 45%,var(--line))}
.conf.amber{color:var(--amber);border-color:color-mix(in srgb,var(--amber) 45%,var(--line))}
.ph .when{margin-left:auto;font-size:12px;color:var(--faint)}
.pchange{background:var(--bg);border:1px solid var(--line);border-radius:8px;
  padding:11px 13px;margin:0 0 9px;white-space:pre-wrap;font-size:13.5px;
  line-height:1.55;font-family:inherit}
.pev{font-size:13px;color:var(--dim);margin-bottom:11px}
.pact{display:flex;gap:8px;flex-wrap:wrap}
.pact input{flex:1;min-width:180px;background:var(--bg);color:var(--ink);
  border:1px solid var(--line);border-radius:8px;padding:8px 11px;font:inherit;
  font-size:13.5px}
.pact .no{background:transparent;border:1px solid var(--line);color:var(--dim);
  border-radius:8px;padding:8px 14px;font:inherit;font-size:13.5px;cursor:pointer}
.pact .no:hover{color:var(--red);border-color:var(--red)}
.pdone{font-size:12px;letter-spacing:.05em;text-transform:uppercase;
  color:var(--faint)}
.pdone.applied{color:var(--green)}
.why-in{flex:1;min-width:200px;background:var(--bg);color:var(--ink);
  border:1px solid var(--line);border-radius:8px;padding:9px 12px;font:inherit;
  font-size:13.5px}
.why-in:focus{outline:none;border-color:var(--dim)}
.runarea select{background:var(--bg);color:var(--ink);border:1px solid var(--line);
  border-radius:6px;padding:5px 8px;font:inherit;cursor:pointer}
/* District headings inside the green block, and who owns each row. */
.dist{display:flex;align-items:center;gap:9px;margin:14px 0 4px;
  font-size:11px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--dim);font-weight:600}
.dist:first-of-type{margin-top:6px}
.dist a{color:var(--dim)}
.dist a:hover{color:var(--ink)}
.dist span{background:var(--raise);border-radius:20px;padding:0 7px;
  font-size:10.5px;letter-spacing:0}
.needs .rt{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.asg{font-size:11px;letter-spacing:.05em;text-transform:uppercase;
  color:var(--dim)}
.asg.none{color:var(--amber)}

.askrow{display:flex;gap:9px;align-items:stretch}
.askrow .ask{flex:1;margin:0}
.clr{margin:0;flex:0 0 auto}
.clr button{height:100%;padding:0 15px;border:1px solid var(--line);
  border-radius:10px;background:transparent;color:var(--dim);
  font-size:13.5px;cursor:pointer;white-space:nowrap}
.clr button:hover{color:var(--ink);border-color:var(--dim)}
/* What he remembers. Sits under the conversation, always visible, because a
   memory you cannot see is a memory you cannot correct. */
.mem{max-width:760px;margin:16px auto 0;border:1px solid var(--line);
     border-radius:11px;padding:0 16px;background:var(--panel)}
.mem[open]{padding-bottom:14px}
.mem summary{cursor:pointer;padding:12px 0;font-size:13px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--faint);font-weight:600;list-style:none;
  display:flex;align-items:center;gap:8px}
.mem summary::-webkit-details-marker{display:none}
.mem summary::before{content:"▸";font-size:11px;transition:transform .12s;display:inline-block}
.mem[open] summary::before{transform:rotate(90deg)}
.mem summary:hover{color:var(--dim)}
.mem summary .n{background:var(--raise);border-radius:20px;padding:0 7px;
  font-size:11px;letter-spacing:0}
.mem .mk{margin:13px 0 5px;font-size:11px;letter-spacing:.08em;
         text-transform:uppercase;color:var(--faint)}
.mi{display:flex;align-items:center;gap:9px;padding:6px 0;
    border-top:1px solid var(--line);font-size:14px}
.mi span:first-child{flex:1}
.mi .guess{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;
           color:var(--amber);border:1px solid var(--amber);border-radius:4px;
           padding:1px 5px;opacity:.85;flex:0 0 auto}
.mi form{margin:0;flex:0 0 auto}
.mi .x{background:none;border:0;color:var(--faint);font-size:19px;
       line-height:1;cursor:pointer;padding:0 2px}
.mi .x:hover{color:var(--red)}
.bub{border-radius:13px;padding:12px 15px;margin-bottom:9px;font-size:14.5px;
line-height:1.6;max-width:82%;white-space:pre-wrap}
.bub.j{background:var(--panel);border:1px solid var(--line);border-top-left-radius:4px}
.bub.me{background:color-mix(in srgb,var(--green) 16%,var(--panel));
border:1px solid color-mix(in srgb,var(--green) 45%,var(--line));
margin-left:auto;border-top-right-radius:4px}
.bub .nm{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;
color:var(--faint);font-weight:700;margin-bottom:5px}
.ask{display:flex;gap:9px;margin-top:16px}
.ask input{flex:1;background:var(--panel);color:var(--ink);border:1px solid var(--line);
border-radius:10px;padding:12px 15px;font:inherit;font-size:14.5px}
.ask input:focus{outline:none;border-color:var(--green)}
/* Hold-to-talk. Red and pulsing while it is listening, because the one thing
   you must never be unsure about is whether the microphone is live. */
.ask .mic{background:var(--panel);color:var(--dim);border:1px solid var(--line);
border-radius:9px;padding:0 13px;font-size:17px;cursor:pointer;line-height:1;
touch-action:none;user-select:none}
.ask .mic:hover{color:var(--ink);border-color:var(--dim)}
.ask .mic.hot{background:var(--red);border-color:var(--red);color:#fff;
animation:miclive 1.1s ease-in-out infinite}
/* The speaker is a toggle, not a hold - on means "read them to me from now
   on", so it stays lit and it does not pulse. */
.ask #say.hot{background:var(--green);border-color:var(--green);color:#fff;
animation:none}
.bub.j{cursor:pointer}
@keyframes miclive{0%,100%{opacity:1}50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.ask .mic.hot{animation:none}}

@media(max-width:1000px){.kpis{grid-template-columns:1fr 1fr}.grid2{grid-template-columns:1fr}}
@media(max-width:560px){.kpis{grid-template-columns:1fr}}

/* panels, buttons, forms */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:11px;
padding:18px 20px;margin-bottom:14px}
.panel.green{border-left:4px solid var(--green);
background:color-mix(in srgb,var(--green) 8%,var(--panel))}
.panel h3{margin:0 0 3px;font-size:15px;font-weight:600}
.panel .sub{font-size:12.5px;color:var(--dim);margin:0 0 12px}
textarea{width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);
border-radius:8px;padding:12px;font:inherit;font-size:14px;line-height:1.55;
resize:vertical;min-height:120px}
.why{font-size:12.5px;color:var(--faint);font-style:italic;margin:10px 0 0}
.btns{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
button,.btn{background:var(--raise);color:var(--ink);border:1px solid var(--line);
border-radius:8px;padding:9px 16px;font:inherit;font-size:13.5px;font-weight:600;
cursor:pointer}
button:hover,.btn:hover{border-color:var(--dim)}
button.go{background:var(--brand);border-color:var(--brand);color:var(--brandink)}
button.no{color:var(--red)}
button:disabled{opacity:.5;cursor:default}
/* COLOUR MEANS CHANNEL. Andy, 28 Aug 2026, after two identical green buttons
   sat side by side doing entirely different things: blue is email, green is
   WhatsApp. Nothing else may use these two colours on a button, or the rule
   stops being readable at a glance - which is the whole point of it. A button
   that does not send on either channel stays plain. */
button.mail{background:var(--blue);border-color:var(--blue);color:var(--bg)}
button.wa{background:var(--green);border-color:var(--green);color:var(--bg)}
a.wa{display:inline-block;background:var(--green);border:1px solid var(--green);
color:var(--bg);border-radius:8px;padding:9px 16px;font-size:13.5px;
font-weight:600;text-decoration:none}
a.wa:hover{filter:brightness(1.08)}
.btns .cs{align-self:center;color:var(--faint);font-size:12.5px}
.msg{background:var(--raise);border-radius:9px;padding:11px 13px;margin-bottom:8px;
font-size:14px;line-height:1.55;white-space:pre-wrap;border-left:2px solid var(--line)}
.msg.out{border-left-color:var(--accent)}
.msg.in{border-left-color:var(--green)}
.msg .who{font-size:11px;letter-spacing:.06em;text-transform:uppercase;
color:var(--faint);margin-bottom:5px;font-weight:600}
/* THE CONVERSATION, SHAPED LIKE WHATSAPP. Andy, 11 Sep 2026, from the
   approved mockup: the customer on the left in grey, us on the right - Anna
   green, a person in Wati blue-grey - a date pill when the day changes and
   the time under each bubble. Drawn by _chat() in web.py for the service
   page and the lead page alike. Every colour is mixed from the palette, so
   the light theme follows without a block of its own. .msg above is left
   as it was: the "asked" panel, the shadow draft and the memory rows use it.
   Called .thread, not .chat - .chat is James's page (see above) and a shared
   name squeezed this box to his 760px. */
.thread{border:1px solid var(--line);border-radius:12px;padding:12px 12px 4px;
background-color:color-mix(in srgb,var(--bg) 60%,var(--panel));
background-image:radial-gradient(circle at 1px 1px,
color-mix(in srgb,var(--ink) 6%,transparent) 1px,transparent 0);
background-size:18px 18px}
.thread .day{text-align:center;margin:4px 0 10px}
.thread .day span{background:var(--raise);color:var(--dim);font-size:11.5px;
padding:2px 11px;border-radius:999px;border:1px solid var(--line)}
.thread .grp{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:10px}
.thread .grp.out{align-items:flex-end}
.thread .b{max-width:75%;padding:7px 11px 5px;border-radius:14px;margin-bottom:3px;
border:1px solid transparent;font-size:14px;line-height:1.5;white-space:pre-wrap;
overflow-wrap:anywhere}
.thread .b .who{font-size:11px;font-weight:700;letter-spacing:.03em;margin-bottom:2px}
.thread .b .t{font-size:10.5px;color:var(--faint);text-align:right;margin-top:2px}
.thread .b.them{background:var(--raise);border-color:var(--line);border-bottom-left-radius:4px}
.thread .b.them .who{color:var(--blue)}
.thread .b.anna{background:color-mix(in srgb,var(--green) 18%,var(--panel));
border-color:color-mix(in srgb,var(--green) 34%,var(--panel));border-bottom-right-radius:4px}
.thread .b.anna .who{color:var(--green)}
.thread .b.person,.thread .b.us{background:color-mix(in srgb,var(--blue) 15%,var(--raise));
border-color:color-mix(in srgb,var(--blue) 28%,var(--panel));border-bottom-right-radius:4px}
.thread .b.person .who,.thread .b.us .who{color:color-mix(in srgb,var(--blue) 55%,var(--ink))}
.thread .att{display:inline-flex;align-items:center;gap:6px;color:var(--dim);
font-size:12.5px;background:color-mix(in srgb,var(--ink) 6%,transparent);
padding:3px 9px;border-radius:8px}
/* A LOCATION PIN (10 Oct 2026, webapp/bubbles.py): one tap to Google Maps - the chip of a pin they sent, and a Google
   Maps link in their own words. Plainly a link; the address breaks anywhere so a long one never widens the bubble. */
.thread a.att.pin{color:var(--blue);font-weight:700;text-decoration:none}
.thread a.pin{color:var(--blue);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
/* A photo on the web chat - the visitor's, or one we sent - in the thread
   rather than as a chip: the whole point of it is that a person can LOOK at
   it without leaving the page. The small copy is shown; a tap opens the full
   one in the photo viewer below, on top of the page. The link itself still
   serves a click with a key held (a new tab) and a page whose script did not
   run. Never wider than the bubble, never taller than a screen. */
.thread .att-img{display:block;max-width:100%;max-height:320px;width:auto;
border-radius:10px;border:1px solid var(--line);margin:2px 0 4px;cursor:zoom-in}
/* ...and no long-press menu on it: on a phone that menu's "Open" shows the
   bare picture, with no way back from a Home Screen app. */
.thread a{-webkit-touch-callout:none}
.thread .att-gone{display:inline-flex;align-items:center;gap:6px;color:var(--faint);
font-size:12.5px;font-style:italic}
/* A PDF OR A VIDEO A PERSON SENT (3 Oct 2026, webapp/bubbles.py _file_html): the PDF a card with its name and
   size that opens in a new tab; the video playing in the bubble, no wider than it; under either, in small grey,
   what became of it on WhatsApp. */
.thread .att-file{display:flex;align-items:center;gap:9px;margin:2px 0 4px;padding:7px 10px;border-radius:10px;
border:1px solid var(--line);background:color-mix(in srgb,var(--ink) 5%,transparent);color:inherit;
text-decoration:none;font-size:20px;min-width:200px;max-width:100%}
.thread .att-file span{display:block;min-width:0;font-size:13.5px;line-height:1.3}
.thread .att-file b{display:block;font-weight:700;overflow-wrap:anywhere}
.thread .att-file small{display:block;color:var(--dim);font-size:12px}
.thread .att-vid{display:block;width:280px;max-width:100%;max-height:360px;border-radius:10px;
border:1px solid var(--line);margin:2px 0 4px;background:#000}
.thread .att-how{color:var(--dim);font-size:12px;margin-top:2px}
/* THE DOWNLOAD BUTTON (9 Oct 2026, webapp/bubbles.py _dl): under every file and every picture, on every channel - a
   small pill; the card or the picture above it still opens as before. */
.thread .att-dl{display:inline-block;margin:0 0 6px;padding:4px 10px;border-radius:9px;border:1px solid var(--line);
background:color-mix(in srgb,var(--ink) 5%,transparent);color:inherit;font-size:12.5px;font-weight:700;
text-decoration:none;line-height:1.3}
/* A CONTACT CARD THEY SHARED (20 Oct 2026, webapp/bubbles.py _cards_html): the file card's look - the name, then each
   number with its three pills (Call, Copy, + New chat), which wrap on a phone. Copy is a button: the same pill. */
.thread .att-card{align-items:flex-start}
.thread .att-card .att-num{margin-top:6px}
.thread .att-card .att-num b{font-weight:600;font-variant-numeric:tabular-nums}
.thread .att-card .att-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.thread .att-card .att-dl{margin:0;font-family:inherit;cursor:pointer}
/* WHAT WHATSAPP DID NOT PASS ON and A FORWARDED LINE (20 Oct 2026, webapp/bubbles.py): the chip says what it was in
   full words, wrapping; "Forwarded" small and grey on top of the line, as WhatsApp writes it. */
.thread .att.gone{display:block;line-height:1.4;padding:6px 10px}
.thread .fw{color:var(--dim);font-size:12px;font-style:italic;margin:0 0 3px}
/* A LINE CHANGED OR DELETED ON WHATSAPP (20 Oct 2026, D - webapp/bubbles.py): "edited" small and grey under the words,
   a tap shows the earlier words; a deleted one faded, what happened said on top. */
.thread .wa-ed{display:block;color:var(--dim);font-size:12px;font-style:italic;margin-top:3px}
.thread .wa-ed summary{cursor:pointer;list-style:none}
.thread .wa-ed summary::-webkit-details-marker{display:none}
.thread .wa-ed div{font-style:normal;border-left:2px solid var(--line);padding-left:6px;margin-top:3px}
.thread .wa-del{color:var(--dim);font-size:12px;font-style:italic;margin:0 0 3px}
.thread .b[data-del]{opacity:.72}
/* A VOICE NOTE A CUSTOMER SENT (6 Oct 2026, evening): the browser's own player, no wider than the bubble. */
.thread .att-aud{display:block;width:280px;max-width:100%;margin:4px 0 4px}
/* SWIPE-TO-REPLY (26 Sep 2026): the message an answer quotes, on top of it as WhatsApp draws one - a bar in its
   author's colour, the name and two lines of its words (webapp/bubbles.py, _quote). A tap goes to it on Chats. */
.thread .q{display:block;margin:2px 0 5px;padding:4px 8px;border-left:3px solid var(--blue);border-radius:6px;
background:color-mix(in srgb,var(--ink) 7%,transparent);font-size:12.5px;line-height:1.35;white-space:normal}
.thread .q b{display:block;font-size:11.5px;color:var(--blue)}
.thread .q span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
color:var(--dim)}
.thread .q.anna{border-left-color:var(--green)}
.thread .q.anna b{color:var(--green)}
.thread .q.person,.thread .q.us{border-left-color:color-mix(in srgb,var(--blue) 55%,var(--ink))}
.thread .q.person b,.thread .q.us b{color:color-mix(in srgb,var(--blue) 55%,var(--ink))}
.thread .q[data-q]{cursor:pointer}
/* THE PHOTO VIEWER (26 Sep 2026) - its note and its script are in PAGE's
   head. Solid black in both themes, as a phone's own photo viewer is, and
   every part of it hands its touches to that script: only the photo zooms. */
.pv{--pv-ring:var(--brand)}
/*PV-CSS*/.pv{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;overflow:hidden;
background:#000000;overscroll-behavior:contain;cursor:pointer;
-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.pv[hidden]{display:none}
.pv,.pv *{touch-action:none}
.pv img{position:absolute;left:0;top:0;display:block;max-width:none;max-height:none;
margin:0;border:0;cursor:zoom-in}
.pv.pv-in img{cursor:grab}
.pv img.pv-ease{transition:left .2s ease-out,top .2s ease-out,width .2s ease-out,height .2s ease-out}
.pv-x{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));
right:calc(12px + env(safe-area-inset-right,0px));z-index:1;width:44px;height:44px;padding:0;
border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;
background:rgba(0,0,0,.6);color:#F7F7F5;box-shadow:0 0 0 1px rgba(247,247,245,.3);cursor:pointer}
.pv-x:hover{background:rgba(42,42,42,.92)}
.pv-x:focus-visible{outline:2px solid var(--pv-ring,#F7F7F5);outline-offset:2px}
.pv-x svg{display:block;width:22px;height:22px}
/*/PV-CSS*/.flash{background:var(--panel);border:1px solid var(--green);border-left:3px solid var(--green);
border-radius:9px;padding:12px 16px;margin-bottom:16px;font-size:14px}
.flash.bad{border-color:var(--red);border-left-color:var(--red)}
/* THE LINE THAT ANSWERS A PRESS TAKES NO ROOM - ON EVERY STAFF PAGE (5 Oct 2026, Andy: "the last jump ... it's
   important"; Cowork measured it on his laptop: after a send the page came back with this line standing IN the
   page, and everything under the menu was ~80 px lower than before the press - "Chats" at 132 px, then 213).
   The frame draws it (PAGE, data-top), so it is fixed ONCE, here: the line lies OVER the page, in the band
   every page and every login has free - between the menu and the page (PAGE's script puts it there: a
   manager's whole menu stands in the row of the Oryqel mark, so the very top is not free) - a flat bar at the
   right on a computer, across the screen on a phone; and nothing under it is moved by its coming or its going.
   One row of words lies wholly in that band; a long one grows down over the page's first line. Since it lies
   over the page it goes by
   itself after a few seconds, on every page as on Chats (his own rule of 26 Sep: "Any red or green line at the
   top must disappear by itself after a few seconds"), and a click or a tap takes it away at once (PAGE's own
   script; Chats times its lines itself, in its own script). ONLY the frame's own line: a line a page has
   moved into one of its rooms (the Service page) and a result box a page draws itself (Tools) stand in the
   page as they did. */
.wrap>.flash[data-top]{position:fixed;z-index:45;top:4px;right:max(18px,calc(50vw - 682px));
max-width:min(860px,calc(100vw - 36px));margin:0;padding:6px 13px;font-size:13.5px;line-height:1.4;
box-shadow:0 8px 26px rgba(0,0,0,.4);cursor:pointer}   /* flat: one row of words is 33 px, the band is 38 */
.flash.going{opacity:0;transition:opacity .3s}
@media(max-width:620px){.wrap>.flash[data-top]{left:13px;right:13px;max-width:none}}
/* AFTER A DELETE (1 Nov 2026, Ship 33 - Andy's go 21:55): "Elie moved to the Bin", Restore and an X - one row, over the
   page like every line here (it takes no room); it does NOT go by itself (his Q2): X, Restore, or leaving Chats */
.flash-bin{display:flex;align-items:center;gap:10px}
.flash-bin-w{flex:1;min-width:0}
.flash-bin a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.flash-bin form{display:inline;margin:0}
.flash-bin form button{min-height:36px;padding:0 14px;border-radius:9px;font-size:14px;background:var(--bg)}
.flash-bin .flash-x{flex:none;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:transparent;
color:var(--dim);font-size:20px;font-weight:400;line-height:1}
.wrap>.flash.flash-bin[data-top]{padding:4px 4px 4px 13px;cursor:default}
/* AN x IN EVERY SEARCH BOX (Ship 33): while it holds words; one tap empties it (PAGE's script wraps each box in .sx).
   The browsers' own little x is hidden - one x everywhere, the same on his iPhone and on a computer */
.sx{position:relative;display:flex;align-items:center;min-width:0}
.sx>input{flex:1 1 auto;min-width:0;padding-right:40px!important}
.sx>button.sx-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:32px;height:32px;min-height:0;
padding:0;margin:0;border:0;border-radius:50%;background:transparent;font-size:0;cursor:pointer;
-webkit-tap-highlight-color:transparent}
.sx>button.sx-x::before{content:"\00d7";display:block;margin:auto;width:20px;height:20px;line-height:19px;
border-radius:50%;background:var(--raise);color:var(--ink);font-size:16px;font-weight:400;text-align:center}
.sx>input:placeholder-shown+button.sx-x{display:none}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
/* WHERE YOU ARE. Seven steps, one of them yours.
   Grey = not reached. Green = done. Amber = this one is waiting for you.
   Colour is never the only signal - the step that is yours also says so in
   words underneath, because a colour alone is no use to anyone who cannot
   tell these two apart. */
.journey .steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.journey .st{flex:1 1 130px;min-width:130px;background:var(--bg);
border:1px solid var(--line);border-radius:9px;padding:10px 12px}
.journey .st .num{width:21px;height:21px;border-radius:50%;background:var(--line);
color:var(--dim);font-size:12px;font-weight:700;display:flex;
align-items:center;justify-content:center;margin-bottom:7px}
.journey .st .ti{font-size:12.5px;font-weight:600;line-height:1.3;color:var(--dim)}
.journey .st .ct{font-size:11.5px;color:var(--faint);margin-top:3px}
.journey .st.done{border-color:var(--green)}
.journey .st.done .num{background:var(--green);color:var(--panel)}
.journey .st.done .ti{color:var(--ink)}
.journey .st.now{border-color:var(--amber);border-width:2px;
background:color-mix(in srgb, var(--amber) 9%, var(--panel))}
.journey .st.now .num{background:var(--amber);color:var(--panel)}
.journey .st.now .ti{color:var(--ink);font-weight:700}
/* Nav badges. Green outranks everything - it means a person is waiting on a
   person. Violet means someone replied. Amber dot on Run means there is a
   step ready to be pressed. Each also carries a title, so hovering says what
   it is rather than leaving you to guess from a colour. */
nav .pill.green{background:var(--green);color:var(--panel)}
nav .pill.violet{background:var(--violet);color:var(--panel)}
/* A real circle, not a bullet character in a pill - the glyph rendered as a
   smudge and read as a mistake rather than a signal. */
nav .pill.dot{width:8px;height:8px;padding:0;border-radius:50%;
vertical-align:middle;margin-left:7px}
.journey .nextline{background:var(--raise);border-left:3px solid var(--amber);
border-radius:0 8px 8px 0;padding:11px 14px;font-size:13.5px;line-height:1.55}

/* The same three states on the agent cards themselves, so you do not have to
   look back up at the strip to work out which button it meant. The amber card
   also carries the words "do this now" - the colour is the fast signal, the
   words are the reliable one. */
.panel.now{border-color:var(--amber);border-left:4px solid var(--amber)}
.panel.done{border-left:4px solid var(--green)}
.panel.now h3 .pill{vertical-align:middle;margin-left:9px}
/* Top right of the card, level with the agent's name. Pushed there rather
   than placed after the title, where it read as part of the sentence. */
.agenthead .nowtag{margin-left:auto;align-self:flex-start;white-space:nowrap;
font-size:11.5px;padding:3px 9px;letter-spacing:.01em}

/* Who does this job. Large, at the top of the card, so you know whose name
   is on the work before you press the button. */
.agenthead{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.agenthead .av{width:38px;height:38px;border-radius:50%;flex:0 0 auto;
background:var(--accent);color:var(--bg);display:flex;align-items:center;
justify-content:center;font-weight:700;font-size:17px}
.agenthead .an b{display:block;font-size:20px;font-weight:700;line-height:1.15;
letter-spacing:-.01em;color:var(--ink)}
.agenthead .an .rl{font-size:12.5px;color:var(--faint)}
.field{font-size:13px;color:var(--dim);margin-bottom:5px}
.field b{color:var(--ink);font-weight:600}
/* A web address Cecilia found, opened in a new tab so the board stays put.
   break-all because a long source URL must not push the card sideways. */
a.ext{color:var(--blue);text-decoration:underline;text-underline-offset:2px;
text-decoration-thickness:1px;word-break:break-all}
a.ext:hover{text-decoration-thickness:2px}
a.ext::after{content:" \2197";text-decoration:none;font-size:.85em;
opacity:.65;word-break:normal}
pre.log{background:var(--bg);border:1px solid var(--line);border-radius:8px;
padding:13px;font-family:ui-monospace,Menlo,monospace;font-size:12px;line-height:1.6;
white-space:pre-wrap;max-height:420px;overflow:auto;color:var(--dim);margin:0}
.legend{margin-top:26px;padding-top:16px;border-top:1px solid var(--line);
font-size:12px;color:var(--faint);display:flex;gap:20px;flex-wrap:wrap}
.legend span{display:flex;align-items:center;gap:6px}
.running{display:inline-block;width:7px;height:7px;border-radius:50%;
background:var(--amber);margin-right:7px;animation:pulse 1.1s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}
@media(max-width:1000px){.cols{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.cols{grid-template-columns:1fr}.wrap{padding:16px 13px 60px}
/* The phone: the burger. The button goes first in the header row; the menu
   is a panel under the header, on top of the page, so opening it pushes
   nothing down and closing it moves nothing back. */
header{position:relative}
details.menu{order:-1;margin-left:0;flex:none}
details.menu>summary{display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border:1px solid var(--line);border-radius:9px;
  background:var(--panel)}
details.menu>summary i{display:block;width:18px;height:2px;border-radius:1px;
  background:var(--ink);box-shadow:0 -6px 0 var(--ink),0 6px 0 var(--ink)}
details.menu[open]>summary{background:var(--raise);border-color:var(--dim)}
details.menu nav{position:absolute;left:0;right:0;top:100%;z-index:50;margin:0;
  flex-direction:column;gap:2px;padding:8px;background:var(--panel);
  border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;
  box-shadow:0 14px 34px rgba(0,0,0,.45);
  max-height:calc(100vh - 140px);max-height:calc(100dvh - 140px);overflow-y:auto}
details.menu nav a{padding:11px 14px;font-size:16px;border-radius:9px}
/* the rows sit ON the panel colour here, so the page you are on and a hovered
   row need the raised tone to show at all */
details.menu nav a.on,details.menu nav a:hover{background:var(--raise)}
details.menu nav .split{width:auto;height:1px;margin:6px 10px;align-self:auto}
details.menu nav .jbtn{padding:8px 14px 8px 8px}}
/* THE PAGE BEHIND THE OPEN MENU STANDS STILL (25 Oct 2026, Andy's word 07:00: the chat list scrolled and moved under
   his finger while he used the menu). While the burger is open the page is pinned where it was (html.menu-open, the
   script in the header) and a see-through sheet under the panel takes every touch and wheel - the list behind it
   neither scrolls nor moves; a tap on the sheet closes the menu as a tap outside always did. */
html.menu-open body{position:fixed;left:0;right:0;width:100%;overflow:hidden}
/* (25 Oct 2026 07:38, his bug on the first ship: a tap on a menu word opened a CHAT behind the menu - the sheet sat
   under the page's own layers and gave the tap on. Now the sheet is above every page layer and the header - the
   burger and the menu panel inside it - above the sheet; the script below swallows the whole tap on the sheet.
   950 / 951: above every page layer (Chats' own sheets are 60) and still under the photo viewer's 1000 - the one
   thing that must sit over everything (selftest_chats keeps every other z-index under 1000).) */
/* !important: Chats' own stylesheet (static/inbox) gives its header a z-index of 6 - that is what put
   the whole menu panel UNDER the sheet on the Chats page and nowhere else */
html.menu-open header{z-index:951 !important}
.menu-sheet{position:fixed;left:0;top:0;right:0;bottom:0;z-index:950;background:transparent;touch-action:none}
/* THE MENU ON ONE LINE ON A LAPTOP (17 Oct 2026, the small screen fixes): the owner's fifteen items needed about
   1,300 px with the roomy padding and more with the counts beside Service, Board, Inbox - at 1280 px "Log out" fell
   onto a line of its own, and with a count at 1366 too (measured). The menu never has more than about 1,364 px
   (the page is 1,400 at most), so every width above the phone's gets the narrower padding, and up to 1365 px the
   words are one size smaller and closer together - one line at 1280 even with a count beside Board, Inbox,
   Service and Learning at once. Written "header nav a": the readability bump further down sets "nav a" sizes and
   would win over a plainer name. The phone (the burger) is as it was. */
@media(min-width:621px){header nav a{padding:6px 8px}header nav .split{margin:4px 4px}}
@media(min-width:621px) and (max-width:1365px){header nav{gap:2px}header nav a{font-size:14px;padding:6px 7px}}


/* READABILITY BUMP - 25 Aug 2026, at Andy's request. Bigger and bolder for
   the text you actually read all day. One block, at the end, so it wins. */
body{font-size:16px}
.panel h3{font-size:17px;font-weight:700}
.panel .sub{font-size:14.5px;line-height:1.55}
.blurb{font-size:14.5px}
.card h3{font-size:15.5px;font-weight:700}
.card .cs{font-size:13.5px}
.row .who .nm{font-size:15.5px;font-weight:700}
.row .who .org{font-size:13.5px}
.row .mid{font-size:13.5px}
.field{font-size:14.5px}
.pev{font-size:14px}
.kpi .s{font-size:13.5px}
.needs .nl{font-size:15.5px}
select,input,textarea,button{font-size:15px}
nav a{font-size:15px}
header h1{font-size:19px;font-weight:700}
/* The autopilot light. RED and pulsing = manual mode, every send waits for
   a human. GREEN and pulsing = the chain is running by itself right now.
   The rule that governed this from 25 Aug 2026 still holds - it may only
   turn green when a real automatic engine exists behind it, because a green
   lamp with nothing behind it would be a lie on his own board. That engine
   exists as of 27 Aug, so the lamp finally tells the truth in both
   directions. */
.aplight{width:11px;height:11px;border-radius:50%;display:inline-block;
margin-right:7px;background:var(--red);vertical-align:middle;
box-shadow:0 0 6px var(--red);animation:appulse 1.6s ease-in-out infinite}
.aplight.live{background:var(--green);box-shadow:0 0 7px var(--green)}
/* Armed but outside working hours, or the day's cap reached: on, but not
   sending this minute. Amber says both things at once - it is switched on,
   and nothing is going out right now. */
.aplight.idle{background:var(--amber);box-shadow:0 0 6px var(--amber);
animation:none}
@keyframes appulse{0%,100%{opacity:1}50%{opacity:.35}}
.when{font-size:13px}
.when b{color:var(--ink)}
.row .mid{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;
overflow:hidden}
.chan{display:inline-block;margin:4px 0 0 6px;padding:1px 9px;border-radius:12px;
font-size:12.5px;font-weight:700;white-space:nowrap}
.ch-email{color:var(--blue);border:1px solid var(--blue)}
.ch-wa{color:var(--green);border:1px solid var(--green)}
.ch-test{color:var(--slate);border:1px solid var(--slate)}
#bsearch{background:var(--panel);color:var(--ink);border:1px solid var(--line);
border-radius:9px;font:inherit}
/* Light-or-dark picker. Three states in one strip rather than one button
   that toggles, because "Auto" is a real answer - it means follow the
   machine - and a two-way switch cannot say it. */
.themepick{display:inline-flex;gap:0;border:1px solid var(--line);
border-radius:9px;overflow:hidden;background:var(--bg)}
.themepick button{border:0;background:transparent;color:var(--dim);
font:inherit;font-size:14px;font-weight:600;padding:8px 16px;cursor:pointer;
border-right:1px solid var(--line)}
.themepick button:last-child{border-right:0}
.themepick button:hover{background:var(--raise);color:var(--ink)}
.themepick button.on{background:var(--raise);color:var(--ink)}
