/* MIP's shared look (20261017bo): the original night-and-amber colours on every page, readable from across a
   room, with every block standing clear of the page. Text sharp (20261017bq): pure white and a light grey at a
   medium weight, so every letter is a solid stroke rather than a thin, soft one; scroll bars in the page's colours.

   One theme, dark. Every text colour below holds at least 7:1 against every surface it sits on; no text anywhere
   is smaller than 16px. Panels sit above the page on a lighter surface with a lit top edge, a header band and an
   amber label; amber marks what can be pressed and where you are. The pages' own sheets use these names
   (--t-...) and add only what is theirs. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/atkinson-hyperlegible-next.woff2") format("woff2-variations"),
       url("/assets/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* type: Atkinson Hyperlegible Next, made by the Braille Institute for low-vision readers -- 0 and O, 1, l and
     I told apart at a glance, which is what a screen of prices needs */
  --t-font: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --t-fs-min: 16px;      /* the smallest text anywhere: notes, table details */
  --t-fs-small: 17px;    /* labels, table cells */
  --t-fs-body: 18px;     /* reading text */
  --t-fs-lead: 20px;     /* a section's one-line explanation */
  --t-fs-h3: 22px;
  --t-fs-h2: 26px;       /* a panel's title */
  --t-fs-h1: clamp(32px, 3.2vw, 42px);  /* a page's title */
  --t-fs-figure: clamp(32px, 2.8vw, 42px); /* the figures a page is about */

  /* the original colours: night, panels a step above it, amber */
  --t-page: #08090d;
  --t-surface: #101116;        /* a panel */
  --t-surface-2: #14151b;      /* a panel's header band; every other table row */
  --t-surface-3: #1b1c24;      /* a table's header; a row under the pointer; a control's track */
  --t-ink: #ffffff;            /* text: pure white (it was #f4f3f7, a shade dimmer: 20261017bq) */
  --t-ink-2: #d0cfd8;          /* the second voice -- notes, dates, units: a light grey (it was #b8b7c0) */
  --t-line: #2a2c37;
  --t-line-strong: #686a76;    /* a field's or an outlined button's edge: 3:1 against what is behind it */
  --t-brand: #f2a93b;          /* the MIP ring; filled buttons; what is selected */
  --t-brand-line: #f2a93b;
  --t-on-brand: #08090d;
  --t-accent: #f2a93b;         /* amber as text: the labels over the titles */
  --t-accent-bg: #2c2319;
  --t-accent-line: #8a6326;
  --t-accent-row: #1e1a18;     /* a table row picked out in amber: every text colour still 7:1 on it */
  --t-good: #28d89b;           /* profit, income, net up, healthy */
  --t-good-bg: #10292a;
  --t-good-line: #1f8a63;
  --t-good-fill: #28d89b;
  --t-bad: #f38893;            /* loss, expense, error: the original red, a shade lighter to read at 7:1 */
  --t-bad-bg: #1d161c;
  --t-bad-line: #b34f5b;
  --t-bad-fill: #ef6574;
  --t-info: #82aefc;           /* links, neutral information */
  --t-info-strong: #b9d2ff;    /* 20261203r62: small blue status words, sharper than links (the About page's names) */
  --t-info-bg: #171d2c;
  --t-info-line: #4467b4;
  --t-info-fill: #5f8df7;
  /* 20261203r62: purple text sharper -- a lighter violet, 11:1 and more on every surface (it was #b29cf0, 7.4:1 on its
     own chip): the user, "for the purple colors in text, they are not sharp and visible at all". The fill is the same. */
  --t-violet: #d6c9ff;
  --t-violet-bg: #1b1829;
  --t-violet-line: #6c50c4;
  --t-violet-fill: #8562e7;
  --t-bar: #08090d;            /* the top bar, solid; see-through over the page as --t-bar-glass */
  --t-bar-glass: rgba(8, 9, 13, .94);
  --t-bar-ink: #ffffff;
  --t-bar-ink-2: #d0cfd8;
  --t-bar-line: #272831;
  --t-bar-accent: #f2a93b;
  --t-board: #101116;          /* what the charts from TradingView sit on */
  --t-board-ink: #ffffff;
  --t-board-line: #2a2c37;
  --t-board-ink-2: #d0cfd8;
  --t-board-good: #28d89b;
  --t-board-bad: #f38893;
  --t-chart-1: #f2a93b;        /* canvas lines (pages/theme.rs draws with the same): 3:1 against the panel */
  --t-chart-2: #5f8df7;
  --t-danger-fill: #ff7480;    /* the buttons that stop everything or go live: night on bright red */
  --t-on-danger: #08090d;
  --t-inverse: #ffffff;        /* tooltips: light on the night */
  --t-on-inverse: #08090d;
  --t-focus: #f2a93b;
  /* a panel above the page: a lit top edge, a dark rim, a long soft shadow */
  --t-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(0, 0, 0, .4), 0 22px 44px -24px rgba(0, 0, 0, .95);
  /* a table's header: an amber band, as the dashboard's tables first had it */
  --t-th-bg: linear-gradient(180deg, rgba(242, 169, 59, .1), rgba(242, 169, 59, .03)), var(--t-surface-2);
  --t-th-line: rgba(242, 169, 59, .45);
  --t-radius: 12px;
  --t-radius-sm: 8px;
}

html {
  background: var(--t-page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--t-page);
  color: var(--t-ink);
  font-family: var(--t-font);
  font-size: var(--t-fs-body);
  /* a medium weight (20261017bq; it was 430): a solid stroke in every letter, so white on the night reads sharp
     rather than thin and soft. Grayscale edges keep each letter crisp; the weight, not the system's smoothing,
     gives it body. */
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* scroll bars in the page's own colours (20261017bq): a slim grey bar on the night, never a bright white one */
html { scrollbar-color: var(--t-line-strong) var(--t-page); }
:where(body *) { scrollbar-width: thin; scrollbar-color: var(--t-line-strong) transparent; }

button, input, select, textarea { font: inherit; }
small { font-size: var(--t-fs-min); }
sub, sup { font-size: var(--t-fs-min); }
b, strong { font-weight: 750; }
code, kbd, samp, pre { font-family: var(--t-mono); }
a { color: var(--t-info); text-underline-offset: 3px; }
::selection { background: var(--t-brand); color: var(--t-on-brand); }
:focus-visible { outline: 3px solid var(--t-focus); outline-offset: 3px; }
[hidden] { display: none !important; }
/* a long word in text -- a setting's name, an address, a key's path -- breaks at the edge of its box rather
   than pushing the page wider than a phone; table cells keep their words whole (their tables scroll) */
:where(p, li, dd, dt, figcaption, blockquote, label, summary, h1, h2, h3, h4, h5, h6) { overflow-wrap: break-word; }

/* what a control looks like when its page says nothing about it: large, outlined, readable -- never the
   browser's small grey default. :where() keeps these at no weight, so any page rule wins. */
:where(button) {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--t-line-strong);
  border-radius: 10px;
  background: var(--t-surface-2);
  color: var(--t-ink);
  font-weight: 700;
  cursor: pointer;
}
:where(button:not(:disabled):hover) { border-color: var(--t-brand); }
:where(button:disabled) { cursor: not-allowed; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea) {
  min-height: 44px;
  padding: 6px 12px;
  border: 2px solid var(--t-line-strong);
  border-radius: 8px;
  background: var(--t-page);
  color: var(--t-ink);
}
:where(textarea) { min-height: 96px; line-height: 1.5; }
:where(input[type="checkbox"], input[type="radio"]) { width: 22px; height: 22px; margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--t-brand); }
::placeholder { color: var(--t-ink-2); opacity: 1; }
:where(h1, h2, h3, h4, h5, h6) { line-height: 1.2; }
:where(h4) { font-size: 20px; }
:where(h5) { font-size: 18px; }
:where(h6) { font-size: 17px; }
:where(table) { border-collapse: collapse; }
/* rows: every other one a shade lighter, the one under the pointer in blue (a page's own row colours win) */
:where(tbody tr:nth-child(even)) { background: rgba(255, 255, 255, .025); }
:where(tbody tr:hover) { background: var(--t-info-bg); }
:where(thead th:first-child) { box-shadow: inset 3px 0 0 var(--t-brand); }
:where(tbody tr:hover td:first-child) { box-shadow: inset 3px 0 0 var(--t-info-fill); }

/* the amber label over a title, as the pages first had it -- now large enough to read */
:where(.overline, .kicker, .eyebrow, .intel-eyebrow, .rel-eyebrow, .edu-eyebrow) {
  display: block;
  margin: 0 0 8px;
  color: var(--t-accent);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .06em;
}


/* the top bar: the same on every page -- the night, see-through, with the amber ring */
.mip-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px 28px;
  min-height: 76px;
  padding: 10px clamp(16px, 3vw, 40px);
  background: var(--t-bar-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: var(--t-bar-ink);
  border-bottom: 1px solid var(--t-bar-line);
}
.mip-top .mip-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--t-bar-ink);
  text-decoration: none;
}
.mip-top .mip-brand i {
  width: 26px;
  height: 26px;
  border: 6px solid var(--t-bar-accent);
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 0 22px rgba(242, 169, 59, .38);
}
.mip-top .mip-brand b { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
/* 20261027dn: the logo uploaded in the admin Settings tab, in the ring's place on every page (the server puts it in) */
.mip-logo {
  display: block;
  flex: 0 0 auto;
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  border-radius: 6px;
}
.mip-top .mip-brand span {
  padding-left: 12px;
  border-left: 2px solid var(--t-bar-line);
  color: var(--t-bar-ink-2);
  font-size: 18px;
  font-weight: 600;
}
.mip-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  min-width: 0;
}
.mip-top .mip-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--t-radius-sm);
  color: var(--t-bar-ink-2);
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.mip-top .mip-nav a:hover { color: var(--t-bar-ink); background: rgba(255, 255, 255, .07); }
.mip-top .mip-nav a[aria-current="page"], .mip-top .mip-nav a[aria-current="true"], .mip-top .mip-nav a.active {
  color: var(--t-bar-ink);
  background: rgba(242, 169, 59, .1);
  box-shadow: inset 0 -3px 0 var(--t-bar-accent);
  border-radius: var(--t-radius-sm) var(--t-radius-sm) 0 0;
}
.mip-top-end {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
  color: var(--t-bar-ink-2);
  font-size: 17px;
}
.mip-top .mip-top-end a { color: var(--t-bar-ink); font-weight: 650; }

.mip-top .status-pill, .mip-top .mip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #33343f;
  border-radius: 999px;
  background: var(--t-surface-2);
  color: var(--t-bar-ink);
  font-size: 17px;
  font-weight: 600;
}
.mip-top .status-pill i, .mip-top .mip-pill i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--t-bar-accent);
}
.mip-top .status-pill.ok i, .mip-top .mip-pill.ok i { background: var(--t-good-fill); box-shadow: 0 0 10px var(--t-good-fill); }
.mip-top .mip-clock { color: var(--t-bar-ink-2); font-size: 17px; }
.mip-top .mip-top-button {
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--t-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--t-bar-ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.mip-top .mip-top-button:hover { border-color: var(--t-brand); color: var(--t-brand); }

/* a page's sections: plain names to jump to, under its title */
.mip-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}
.mip-sections a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--t-line-strong);
  border-radius: 999px;
  background: var(--t-surface);
  color: var(--t-ink);
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
}
.mip-sections a:hover, .mip-sections a.active { border-color: var(--t-brand); color: var(--t-accent); }

/* what only an administrator changes, as everyone else sees it: whole and readable, marked, not dimmed */
.mip-locked {
  outline: 2px dashed var(--t-line-strong);
  outline-offset: 4px;
  border-radius: var(--t-radius-sm);
  cursor: not-allowed;
}
.mip-view-only {
  margin: 8px 0;
  color: var(--t-ink-2);
  font-size: 17px;
}
.mip-view-only a { color: var(--t-info); font-weight: 700; }

/* a pill is a short label -- a state, a count, a role: it keeps to one line whatever room its row leaves it
   (20261017bp), so "Gathering baseline" never stacks into two; the heads it sits in wrap instead, putting it
   under the title when the row is short (on a phone, one longer than the whole row wraps) */
:where(.pill, .status-pill, .state-pill, .count-pill, .mini-pill, .mip-pill, .intel-pill, .rel-pill, .edu-pill,
       .fiat-pill, .go-live__pill, .severity) {
  white-space: nowrap;
}

@media (max-width: 1599px) {
  .mip-top .mip-brand span { display: none; }
  /* the eight links beside the brand on a laptop (World markets the eighth, 20261019ce), with room for the name
     signed in as on the right as before */
  .mip-top .mip-nav a { padding: 0 10px; }
}
@media (max-width: 1439px) {
  .mip-top .mip-nav a { padding: 0 8px; font-size: 17px; }
}
@media (max-width: 1279px) {
  .mip-top { flex-wrap: wrap; }
  .mip-nav { order: 3; flex-basis: 100%; }
  /* the eight links in one row on a tablet (768 wide), not seven and one */
  .mip-top .mip-nav a { padding: 0 8px; font-size: 17px; }
  .mip-nav { gap: 4px 2px; }
}
@media (max-width: 480px) {
  /* a phone: a pill longer than the whole row wraps rather than run off the screen */
  :where(.pill, .status-pill, .state-pill, .count-pill, .mini-pill, .mip-pill, .intel-pill, .rel-pill, .edu-pill,
         .fiat-pill, .go-live__pill, .severity) { white-space: normal; }
}
@media (max-width: 760px) {
  .mip-top { position: static; gap: 8px 12px; padding: 10px 16px; }
  .mip-nav { gap: 2px; margin: 0 -6px; }
  .mip-top .mip-nav a { min-height: 44px; padding: 0 10px; font-size: 17px; }
  .mip-top-end { gap: 8px; }
  .mip-sections a { min-height: 40px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* a reader without JavaScript -- a crawler, a link preview, an assistant fetching the page -- is told why the page is
   empty, before anything else (20261018ca): it read "Waiting for API" as a fault */
.mip-noscript{margin:0;padding:14px clamp(16px,3vw,40px);border-bottom:1px solid var(--t-accent-line);background:var(--t-accent-bg);color:var(--t-ink);font-size:var(--t-fs-body);font-weight:600}
/* The credit on every page's footer (20261018bz): the year, the rights, who made it -- a link to his
   site -- and how to reach him. */
.mip-credit{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.mip-credit a.mip-dev-link{color:var(--t-accent);font-weight:700;text-decoration:underline;text-underline-offset:3px;border:0}
.mip-dev-contact{display:inline-flex;flex-wrap:wrap;gap:8px}
.mip-dev-contact a{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--t-line-strong);border-radius:999px;color:var(--t-ink);font-size:16px;font-weight:600;text-decoration:none}
.mip-credit a.mip-dev-link:hover{color:var(--t-brand)}
.mip-dev-contact a:hover{border-color:var(--t-brand);color:var(--t-brand)}
.mip-credit a:focus-visible{outline:2px solid var(--t-brand);outline-offset:3px}
/* WhatsApp and Call (20261019cc): two buttons that stand out, each with its sign drawn sharp at any size -- WhatsApp
   green with a chat bubble, Call purple with a handset, night letters on each (8:1 and more). The signs are plain
   shapes drawn for MIP, not any company's logo. */
.mip-dev-contact a[href^="https://wa.me/"], .mip-dev-contact a[href^="tel:"]{gap:8px;min-height:42px;padding:0 18px 0 14px;border:2px solid transparent;color:var(--t-page);font-size:17px;font-weight:800;line-height:1;text-decoration:none}
.mip-dev-contact a[href^="https://wa.me/"]{--mip-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4.5 3h15a2.5 2.5 0 0 1 2.5 2.5v9a2.5 2.5 0 0 1-2.5 2.5H11l-5.2 4.2c-.5.4-1.3 0-1.3-.6V17a2.5 2.5 0 0 1-2.5-2.5v-9A2.5 2.5 0 0 1 4.5 3zM8 8.6a1.4 1.4 0 1 0 0 2.8a1.4 1.4 0 1 0 0-2.8zM12 8.6a1.4 1.4 0 1 0 0 2.8a1.4 1.4 0 1 0 0-2.8zM16 8.6a1.4 1.4 0 1 0 0 2.8a1.4 1.4 0 1 0 0-2.8z'/%3E%3C/svg%3E");border-color:#62efbf;background:var(--t-good-fill);box-shadow:0 0 0 1px rgba(0,0,0,.45),0 8px 22px -10px rgba(40,216,155,.9)}
.mip-dev-contact a[href^="tel:"]{--mip-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.2 2.6c.6-.5 1.5-.4 2 .2l2.1 2.7c.4.6.4 1.4-.1 1.9L9.9 8.7c1 2.3 2.9 4.2 5.2 5.2l1.3-1.3c.5-.5 1.3-.6 1.9-.1l2.7 2.1c.6.5.7 1.4.2 2l-1.6 1.9c-.7.8-1.8 1.2-2.8 1C10.4 18.4 5.6 13.6 4.4 7.2c-.2-1 .2-2.1 1-2.8z'/%3E%3C/svg%3E");border-color:#d6c9ff;background:var(--t-violet);box-shadow:0 0 0 1px rgba(0,0,0,.45),0 8px 22px -10px rgba(178,156,240,.9)}
.mip-dev-contact a[href^="https://wa.me/"]::before, .mip-dev-contact a[href^="tel:"]::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:var(--mip-icon) center/contain no-repeat;mask:var(--mip-icon) center/contain no-repeat}
.mip-dev-contact a[href^="https://wa.me/"]:hover{border-color:var(--t-ink);background:#52e6b2;color:var(--t-page)}
.mip-dev-contact a[href^="tel:"]:hover{border-color:var(--t-ink);background:#c6b6f7;color:var(--t-page)}
.mip-dev-contact a[href^="https://wa.me/"]:focus-visible, .mip-dev-contact a[href^="tel:"]:focus-visible{outline:3px solid var(--t-ink);outline-offset:3px}
/* Email (20261027dn): the support address set in the admin Settings tab -- amber, with an envelope drawn for MIP */
.mip-dev-contact a[href^="mailto:"]{--mip-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm.6 2.2V8l7.4 5.2L19.4 8v-.8L12 12.4z'/%3E%3C/svg%3E");gap:8px;min-height:42px;padding:0 18px 0 14px;border:2px solid #ffd79a;background:var(--t-brand);color:var(--t-page);font-size:17px;font-weight:800;line-height:1;text-decoration:none;box-shadow:0 0 0 1px rgba(0,0,0,.45),0 8px 22px -10px rgba(242,169,59,.9)}
.mip-dev-contact a[href^="mailto:"]::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:var(--mip-icon) center/contain no-repeat;mask:var(--mip-icon) center/contain no-repeat}
.mip-dev-contact a[href^="mailto:"]:hover{border-color:var(--t-ink);background:#ffc46b;color:var(--t-page)}
.mip-dev-contact a[href^="mailto:"]:focus-visible{outline:3px solid var(--t-ink);outline-offset:3px}

/* Small graphics on every page (20261019cc; pages/viz.rs): a bar filling toward its goal -- gold while short of it,
   green once there -- so what is still learning shows how far it has come; a share; a bar either side of zero, green
   to the right for a gain and red to the left for a loss; a dot on a scale (a skill score from -1 to +1 with 0 in
   the middle, how often right against a coin's toss, a reading against its zones); a ring; two parts side by side,
   green then red (profit against losses); a 95% range against zero, green once even its low is above it; and columns
   from a zero line, up green and down red. Each carries its own words for a screen reader. */
.viz-bar{position:relative;display:block;min-width:72px;height:10px;margin-top:8px;border-radius:99px;background:var(--t-surface-3);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);overflow:hidden}
.viz-bar>i{position:absolute;top:0;bottom:0;left:0;width:var(--p,0%);border-radius:inherit;background:linear-gradient(90deg,var(--t-accent-line),var(--t-brand))}
.viz-bar.full>i{background:linear-gradient(90deg,var(--t-good-line),var(--t-good-fill))}
.viz-bar.violet>i{background:linear-gradient(90deg,var(--t-violet-line),var(--t-violet))}
.viz-bar.bad>i{background:linear-gradient(90deg,var(--t-bad-line),var(--t-bad-fill))}
.viz-signed{position:relative;display:block;min-width:72px;height:10px;margin-top:8px;border-radius:99px;background:var(--t-surface-3)}
.viz-signed::after{content:"";position:absolute;top:-3px;bottom:-3px;left:50%;width:2px;margin-left:-1px;border-radius:1px;background:var(--t-line-strong)}
.viz-signed>i{position:absolute;top:0;bottom:0;width:var(--p,0%)}
.viz-signed.up>i{left:50%;border-radius:0 99px 99px 0;background:var(--t-good-fill)}
.viz-signed.down>i{right:50%;border-radius:99px 0 0 99px;background:var(--t-bad-fill)}
.viz-scale, .viz-zones{position:relative;display:block;min-width:96px;height:10px;margin:12px 8px 6px;border-radius:99px}
.viz-scale{background:linear-gradient(90deg,var(--t-bad-line),var(--t-surface-3) 50%,var(--t-good-line))}
.viz-scale::after{content:"";position:absolute;top:-4px;bottom:-4px;left:50%;width:2px;margin-left:-1px;background:var(--t-ink-2)}
.viz-zones{background:linear-gradient(90deg,var(--t-good-line) 0 var(--lo),var(--t-violet-line) var(--lo) var(--hi),var(--t-bad-line) var(--hi) 100%)}
.viz-scale>i, .viz-zones>i{position:absolute;z-index:1;top:50%;left:var(--p,50%);width:18px;height:18px;margin:-9px 0 0 -9px;border:3px solid var(--t-page);border-radius:50%;background:var(--t-violet);box-shadow:0 0 0 1px rgba(255,255,255,.3)}
.viz-scale.up>i, .viz-zones.low>i{background:var(--t-good-fill)}
.viz-scale.down>i, .viz-zones.high>i{background:var(--t-bad-fill)}
.viz-ring{--ring:var(--t-brand);display:inline-grid;flex:none;place-content:center;width:76px;height:76px;border-radius:50%;background:radial-gradient(circle at center,var(--t-surface) 57%,transparent 58%),conic-gradient(var(--ring) var(--p,0%),var(--t-surface-3) 0)}
.viz-ring.full{--ring:var(--t-good-fill)}
.viz-ring.violet{--ring:var(--t-violet)}
.viz-ring.bad{--ring:var(--t-bad-fill)}
.viz-ring b{font-size:18px;font-weight:800;line-height:1}
.viz-split{display:flex;min-width:72px;height:10px;margin-top:8px;border-radius:99px;background:var(--t-surface-3);overflow:hidden}
.viz-split>i{flex:none;width:var(--p,0%)}
.viz-split>i.up{background:var(--t-good-fill)}
.viz-split>i.down{background:var(--t-bad-fill)}
.viz-split>i.up+i.down{box-shadow:inset 2px 0 0 var(--t-page)}
.viz-range{position:relative;display:block;min-width:96px;height:10px;margin-top:8px;border-radius:99px;background:var(--t-surface-3)}
.viz-range::after{content:"";position:absolute;top:-3px;bottom:-3px;left:50%;width:2px;margin-left:-1px;border-radius:1px;background:var(--t-ink-2)}
.viz-range>i{position:absolute;top:0;bottom:0;left:var(--a,50%);width:var(--w,0%);border-radius:99px;background:var(--t-violet)}
.viz-range.up>i{background:var(--t-good-fill)}
.viz-range.down>i{background:var(--t-bad-fill)}
.viz-columns{position:relative;display:flex;align-items:stretch;gap:3px;height:120px;margin-top:12px;padding:0 1px}
.viz-columns::before{content:"";position:absolute;left:0;right:0;top:min(var(--zero,100%),calc(100% - 1px));height:1px;background:var(--t-line-strong)}
.viz-columns>span{position:relative;flex:1 1 0;min-width:2px;max-width:40px}
.viz-columns>span>i{position:absolute;left:0;right:0;top:var(--top);height:var(--h);border-radius:2px}
.viz-columns>span.up>i{background:var(--t-good-fill)}
.viz-columns>span.down>i{background:var(--t-bad-fill)}
.viz-columns>span:hover>i{filter:brightness(1.3)}

/* What the candles say (20261022cm), on the Charts page and in the labs' "What to do now" (pages/reading_view.rs): the
   lean of what came next (up green, down red), the price map -- ceilings red over the price, floors green under it,
   the slow average violet, the price amber, a stop dashed red -- and the price's motion */
.lean-chip{display:inline-flex;align-items:center;padding:4px 12px;border:1px solid var(--t-line-strong);border-radius:999px;font-size:16px;font-weight:750;white-space:nowrap}
.lean-chip.is-up{border-color:var(--t-good-line);background:var(--t-good-bg);color:var(--t-good)}
.lean-chip.is-down{border-color:var(--t-bad-line);background:var(--t-bad-bg);color:var(--t-bad)}
.lean-chip.is-none{border-color:var(--t-violet-line);background:var(--t-violet-bg);color:var(--t-violet)}
.lean-chip.is-few{color:var(--t-ink-2)}
.price-map{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.price-map li{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"label price away" "note note note";gap:2px 10px;padding:8px 10px 8px 12px;border-left:4px solid var(--t-line-strong);border-radius:6px;background:var(--t-surface-2)}
.price-map .pm-label{grid-area:label;color:var(--t-ink-2);font-size:16px}
.price-map .pm-price{grid-area:price;text-align:right;font-variant-numeric:tabular-nums}
.price-map .pm-away{grid-area:away;min-width:4.5em;text-align:right;color:var(--t-ink-2);font-size:16px;font-variant-numeric:tabular-nums}
.price-map .pm-note{grid-area:note;color:var(--t-ink-2);font-size:16px}
.price-map .pm-note:empty{display:none}
.price-map .is-ceiling{border-left-color:var(--t-bad-fill)}
.price-map .is-ceiling .pm-label{color:var(--t-bad)}
.price-map .is-floor{border-left-color:var(--t-good-fill)}
.price-map .is-floor .pm-label{color:var(--t-good)}
.price-map .is-now{border-left-color:var(--t-brand);background:var(--t-accent-bg)}
.price-map .is-now .pm-label, .price-map .is-now .pm-price{color:var(--t-accent)}
.price-map .is-average{border-left-color:var(--t-violet-fill)}
.price-map .is-average .pm-label{color:var(--t-violet)}
.price-map .is-stop{border-left:4px dashed var(--t-bad-line)}
.motion{display:grid;gap:10px;margin:0}
.motion div{display:grid;gap:4px}
.motion dt{color:var(--t-ink-2);font-size:16px;font-weight:750}
.motion dd{display:grid;gap:6px;margin:0}
.motion-words{font-size:16px;line-height:1.5}
.next-gauges{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px}
@media (max-width: 760px){ .next-gauges{grid-template-columns:1fr} }
/* lines over the same days (20261022cm, viz::lines): the rules followed against the index fund, each from 1.00 */
.viz-lines{display:block;width:100%;height:180px;overflow:visible}
.viz-lines polyline{fill:none;stroke-width:2.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.viz-lines .gold{stroke:var(--t-brand)}
.viz-lines .violet{stroke:var(--t-violet)}
.viz-lines .good{stroke:var(--t-good-fill)}
.viz-lines .bad{stroke:var(--t-bad-fill)}
.viz-lines .base{stroke:var(--t-line-strong);stroke-width:1;stroke-dasharray:5 5;vector-effect:non-scaling-stroke}
/* What to do now (20261022cm, pages/trade_brief.rs): the labs' first panel -- each coin's call from the analysts whose
   records show skill (lean up green, lean down red, split violet, stand aside amber), what to do, the desk, and the
   coin's map and motion; for a superadmin what to trust across MIP */
.brief-panel{margin-bottom:20px}
.brief-body{display:grid;gap:16px;padding:18px 20px 20px}
.brief-wait, .brief-how, .brief-note{margin:0;color:var(--t-ink-2);font-size:17px;line-height:1.55}
.brief-headline{margin:0;font-size:21px;font-weight:800;line-height:1.4}
.brief-state.is-ok{border-color:var(--t-good-line);color:var(--t-good)}
.brief-state.is-error{border-color:var(--t-bad-line);color:var(--t-bad)}
.brief-trust{display:grid;gap:10px}
.brief-edge{margin:0;padding:10px 14px;border-left:4px solid var(--t-brand);border-radius:6px;background:var(--t-accent-bg);color:var(--t-ink);font-size:18px;line-height:1.5}
.brief-edge.is-proven{border-left-color:var(--t-good-fill);background:var(--t-good-bg)}
.brief-trust-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 280px), 1fr));gap:12px}
.brief-trust-grid section{padding:12px 14px;border:1px solid var(--t-line);border-top:4px solid var(--t-line-strong);border-radius:10px;background:var(--t-surface-2)}
.brief-trust-grid section.is-trust{border-top-color:var(--t-good-fill)}
.brief-trust-grid section.is-learning{border-top-color:var(--t-brand)}
.brief-trust-grid section.is-ignore{border-top-color:var(--t-bad-fill)}
.brief-trust-grid h3{display:flex;justify-content:space-between;margin:0 0 8px;font-size:18px}
.brief-trust-grid ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.brief-trust-grid li{display:grid;gap:2px;font-size:16px;line-height:1.45}
.brief-trust-grid li span{color:var(--t-ink-2)}
.brief-trust-grid p{margin:0;color:var(--t-ink-2);font-size:16px}
.brief-more{color:var(--t-ink-2)}
.brief-coins{display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 420px), 1fr));gap:16px;align-items:start}
/* 20261028dx: packed as a wall (pages/wall.rs): one-pixel rows, each card its own height in the column it is given --
   no card stretched to the tallest of its row, no lone card on a row of empty places */
.brief-coins.is-packed{grid-auto-rows:1px;row-gap:0}
.brief-coins > .brief-coin{min-width:0;margin:0}
.brief-coin{display:grid;align-content:start;gap:10px;padding:16px;border:1px solid var(--t-line);border-radius:12px;background:var(--t-surface-2)}
.brief-coin header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.brief-coin header b{font-size:22px}
.brief-coin header span{color:var(--t-ink-2)}
.brief-coin .brief-price{margin-left:auto;color:var(--t-ink);font-weight:800;font-variant-numeric:tabular-nums}
.brief-coin h4{margin:4px 0 0;color:var(--t-accent);font-size:17px}
.brief-call{margin:0;font-size:18px;line-height:1.5}
.brief-do{display:grid;gap:6px;margin:0;padding-left:20px;font-size:17px;line-height:1.5}
.call-chip{display:inline-flex;align-items:center;padding:4px 12px;border:1px solid var(--t-line-strong);border-radius:999px;font-size:16px;font-weight:800;white-space:nowrap}
.call-chip.is-up{border-color:var(--t-good-line);background:var(--t-good-bg);color:var(--t-good)}
.call-chip.is-down{border-color:var(--t-bad-line);background:var(--t-bad-bg);color:var(--t-bad)}
.call-chip.is-split{border-color:var(--t-violet-line);background:var(--t-violet-bg);color:var(--t-violet)}
.call-chip.is-aside{border-color:var(--t-accent-line);background:var(--t-accent-bg);color:var(--t-accent)}
.call-chip.is-none{color:var(--t-ink-2)}
.brief-desk{border:1px solid var(--t-line);border-radius:10px;background:var(--t-surface)}
.brief-desk > summary{padding:10px 14px;color:var(--t-info);font-size:17px;font-weight:750;cursor:pointer}
.brief-desk ul{display:grid;gap:0;margin:0;padding:0 14px 8px;list-style:none}
.brief-desk li{display:grid;grid-template-columns:minmax(120px, auto) auto 1fr;align-items:baseline;gap:4px 10px;padding:8px 0;border-top:1px solid var(--t-line)}
.brief-desk li p{grid-column:1 / -1;margin:0;color:var(--t-ink-2);font-size:16px;line-height:1.45}
.brief-desk .an-name{font-weight:800}
.brief-desk .an-lean{font-weight:800;white-space:nowrap}
.brief-desk .an-lean.is-up{color:var(--t-good)}
.brief-desk .an-lean.is-down{color:var(--t-bad)}
.brief-desk .an-lean.is-none{color:var(--t-ink-2)}
.brief-desk .an-status{color:var(--t-ink-2);font-size:16px}
.brief-desk li.is-counts .an-status{color:var(--t-good)}
.brief-desk li.is-ignore .an-status{color:var(--t-bad)}
.brief-desk li.is-learning .an-status{color:var(--t-accent)}
.brief-reading{display:grid;gap:10px}
.brief-reading__headline{margin:0;color:var(--t-ink-2);font-size:16px;line-height:1.5}
.brief-reading__grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr));gap:12px}
@media (max-width: 760px){
  .brief-body{padding:14px}
  .brief-desk li{grid-template-columns:1fr auto}
  .brief-desk .an-status{grid-column:1 / -1}
}
/* an amount or a date in a sentence never breaks across two lines (pages/viz.rs kept_whole, 20261023cp) */
.viz-whole{white-space:nowrap}

/* 20261024da: a page opened before MIP was updated says so at its foot: Reload, or Not now to put it away */
.mip-update {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 14px 16px; border: 2px solid var(--t-accent-line); border-radius: 10px;
  background: var(--t-accent-bg); color: var(--t-ink); font-size: 16px; font-weight: 500;
  box-shadow: var(--t-shadow);
}
.mip-update__words { flex: 1 1 260px; }
.mip-update__reload {
  font: inherit; font-weight: 600; padding: 8px 18px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--t-brand); background: var(--t-brand); color: var(--t-on-brand);
}
.mip-update__reload:focus-visible { outline: 3px solid var(--t-ink); outline-offset: 2px; }
.mip-update__later {
  font: inherit; font-weight: 600; padding: 8px 18px; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--t-line-strong); background: transparent; color: var(--t-ink);
}

/* 20261028dt: a mark in its medallion, sharp at any pixel density (pages/profile_hero.rs: a credential, a tool, a
   desk); a link that says where it goes, with its arrow ("read more, with arrow links"); words for a screen reader
   alone. */
.mip-glyph { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mip-medal {
  display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--medal-line);
  border-radius: 14px; color: var(--medal);
  background: radial-gradient(120% 120% at 28% 16%, var(--medal-glow), rgba(255, 255, 255, 0) 58%), linear-gradient(160deg, #1b1c26, #0c0d13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .55), 0 10px 20px -12px var(--medal-glow);
}
.mip-medal.is-gold { --medal: #f2a93b; --medal-line: rgba(242, 169, 59, .62); --medal-glow: rgba(242, 169, 59, .34); }
.mip-medal.is-green { --medal: #28d89b; --medal-line: rgba(40, 216, 155, .56); --medal-glow: rgba(40, 216, 155, .28); }
.mip-medal.is-violet { --medal: #c9b8ff; --medal-line: rgba(178, 156, 240, .62); --medal-glow: rgba(133, 98, 231, .38); }
.mip-medal.is-white { --medal: #ffffff; --medal-line: rgba(255, 255, 255, .46); --medal-glow: rgba(255, 255, 255, .18); }
.mip-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--t-brand); font-size: 17px; font-weight: 700; text-decoration: none; }
.mip-more .mip-glyph { width: 20px; height: 20px; stroke-width: 2.1; transition: transform .18s ease; }
.mip-more:hover span, .mip-more:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
.mip-more:hover .mip-glyph, .mip-more:focus-visible .mip-glyph { transform: translateX(3px); }
.mip-more.is-away:hover .mip-glyph, .mip-more.is-away:focus-visible .mip-glyph { transform: translate(2px, -2px); }
.mip-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .mip-more .mip-glyph { transition: none; } }
