/* radar — Paper.
   The surface the Screener comp was drawn on, poured onto the whole app: warm
   paper, ink type, hairline rules and one deep green. This sheet is a skin, not
   a layout - every screen keeps the structure it was built with and changes
   only its material and its type. It loads last, so it wins against the weather
   sheet's own colours; the token block is the part every screen inherits. */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin.woff2") format("woff2");
}

/* The ground. The weather sheet paints the body with a navy gradient that no
   token reaches, so the paper is stated here rather than inherited. */
body {
  color-scheme: light;
  background: #f4efe4;
  background-image: none;
  color: #211f1a;
}

body ::selection {
  background: #3f6b4a;
  color: #fffdf8;
}

:root {
  --sans: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--sans);
  --display: "Source Serif 4", Georgia, serif;

  --bg: #f4efe4;
  --bg-2: #fffdf8;
  --rail: #fbf7ee;
  --card: #fffdf8;
  --card-2: #fffdf8;
  --field: #fffdf8;
  --field-2: #fbf7ee;

  --line: #e3d9c8;
  --line-soft: #ece4d6;
  --line-strong: #d2c3ac;

  --ink: #211f1a;
  --ink-2: #4f4a42;
  --ink-3: #6b6255;
  --ink-4: #8a8070;

  --accent: #3f6b4a;
  --accent-2: #325639;
  --on-accent: #fffdf8;
  --marker: #3f6b4a;

  --on-marker: #fffdf8;
  --peri: #6b6255;
  --accent-soft: rgba(63, 107, 74, .10);
  --accent-line: rgba(63, 107, 74, .28);

  --up: #2c6a48;
  --down: #a8451f;
  --up-soft: rgba(44, 106, 72, .10);
  --down-soft: rgba(168, 69, 31, .10);

  --radius: 8px;
  --radius-sm: 7px;
  --radius-xs: 5px;
  --shadow: none;

  --shadow-pop: 0 12px 28px rgba(33, 31, 26, .14);

  --hover: rgba(33, 31, 26, .045);
  --inset-line: #e3d9c8;
  --scrim: rgba(33, 31, 26, .32);
  --scroll: #cfc3ae;

  --lime: #211f1a;
  --lime-dim: #8a8070;


  --brand: #3f6b4a;


  --ch-up: #2c6a48;
  --ch-down: #a8451f;
  --ch-brand: #3f6b4a;
  --ch-axis: #6b6255;
  --ch-plate: #fffdf8;
  --ch-grid: rgba(33, 31, 26, .08);
  --ch-grid-2: rgba(33, 31, 26, .12);
  --ch-frame: rgba(33, 31, 26, .15);
  --ch-cross: #8a8070;
  --ch-note: #4f4a42;
  --ch-vol: #ddd2bd;
  --ch-vol-hi: #8fa88f;
  --ch-vol-plate: #f8f3e8;
  --ch-chip: #fffdf8;
  --ch-chip-line: #e3d9c8;
  --ch-up-fill: rgba(44, 106, 72, .12);
  --ch-down-fill: rgba(168, 69, 31, .12);

  --cmp-1: #3f6b4a;
  --cmp-2: #2c6a48;
  --cmp-3: #a8451f;
  --cmp-4: #8a8070;

  background: var(--bg);
  color: var(--ink);
}

/* ------------------------------------------------------------------ shell --- */
#shell ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#shell ::-webkit-scrollbar-track {
  background: transparent;
}

#shell ::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 99px;
  background: var(--line-strong);
  background-clip: padding-box;
}

#shell :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- topbar --- */
#shell .topbar {
  background: var(--rail);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

#shell .brand-word {
  color: var(--ink);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.025em;
}

#shell .brand-mark,
#shell .topbar-brand .brand-mark {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-2);
  box-shadow: none;
}

#shell .topbar .rail-tab,
#shell .topbar .rail-tools > summary {
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  box-shadow: none;
}

#shell .topbar .rail-tab:hover,
#shell .topbar .rail-tools > summary:hover {
  background: var(--hover);
  color: var(--ink);
}

#shell .topbar .rail-tab[aria-pressed="true"],
#shell .topbar .rail-tab[aria-current="page"],
#shell .topbar .rail-tools[open] > summary {
  background: var(--ink);
  color: var(--bg-2);
  box-shadow: none;
}

#shell .topbar .rail-tab[aria-current="page"]::after {
  display: none;
}

#shell .topbar .ph-search,
#shell .ph-search {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  box-shadow: none;
}

#shell .ph-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

#shell .ph-search input::placeholder {
  color: var(--ink-3);
}

#shell .topbar .search-mark,
#shell .search-mark {
  color: var(--ink-3);
}

#shell .topbar .tb-bell,
#shell .tb-bell {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink-2);
  box-shadow: none;
}

#shell .topbar .tb-bell:hover,
#shell .tb-bell:hover {
  background: var(--bg-2);
  border-color: var(--line-strong);
  color: var(--ink);
}

#shell .rail-badge,
#shell .chip-badge {
  background: var(--down);
  color: #fffdf8;
}

/* ------------------------------------------------------------- masthead ----- */
#shell .market-mast {
  margin-top: 0;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#shell .market-mast::before,
#shell .market-mast::after {
  content: none;
}

#shell .market-mast-copy h2 {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  text-shadow: none;
}

#shell .market-mast-copy h2::after {
  content: none;
}

#shell .market-lede {
  color: var(--ink-2);
  font-weight: 400;
}

/* -------------------------------------------------------------- rail ------- */
#shell .filters-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

#shell .filters-card .facets-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

#shell .filters-title {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

#shell .filters-card .facets-body {
  background: var(--bg-2);
  padding: 0 14px 12px;
  scrollbar-color: var(--line-strong) transparent;
}

#shell .filters-card .filters-reset {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

#shell .filters-card .filters-reset:hover {
  color: var(--ink);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#shell .filters-card .fd-label {
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#shell .filters-card .fd-group,
#shell .filters-card .filter-block {
  border-top: 1px solid var(--line-soft);
}

#shell .filters-card .filter-field-chip,
#shell .filters-card .saveonly,
#shell .filters-card .filter-search,
#shell .filters-card .scope-x {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}

#shell .filters-card .filter-field-chip:hover,
#shell .filters-card .saveonly:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--ink);
}

#shell .filters-card .filter-field-chip.on,
#shell .filters-card .filter-field-chip.open,
#shell .filters-card .filter-field-chip[aria-pressed="true"],
#shell .filters-card .saveonly.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

#shell .filters-card .filter-field-chip .ff-mark {
  background: currentColor;
  opacity: .45;
}

#shell .filters-card .filter-field-chip .ff-value {
  color: var(--accent);
}

#shell #filter-editor-host .filter-editor {
  color: var(--ink-2);
}

#shell .filters-card .filter-editor-host,
#shell .filters-card .filter-editor {
  border-color: var(--line-soft);
}

/* -------------------------------------------------------------- board ----- */
#shell .list-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

#shell .board-body {
  background: var(--bg-2);
  scrollbar-color: var(--line-strong) transparent;
}

#shell .board-body thead th {
  background: #f8f3e8;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: none;
}

#shell .board-body thead th[aria-sort] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

#shell .board-body thead th .caret {
  color: var(--accent);
}

#shell .board-body tbody th {
  /* Row heads are cells, not the market's column cap: the navy plate the table
     head wore sat under every row label as a dark block with dark text. */
  background: transparent;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
}

#shell .board-body tbody td {
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

#shell .board-body tbody td.name {
  color: var(--ink);
  font-weight: 600;
}

#shell .board-body .nm {
  color: var(--ink);
  font-weight: 600;
}

#shell .board-body tbody td.col-buy,
#shell .board-body tbody td.col-sell {
  color: var(--ink);
  font-weight: 600;
}

#shell .board-body tbody td:is(.col-price, .col-margin, .col-volume) {
  color: var(--ink-2);
}

#shell .board-body tbody tr:hover,
#shell .board-body tbody tr:nth-child(-n+3):hover {
  background: rgba(33, 31, 26, .035);
}

#shell .board-body tbody tr:nth-child(1),
#shell .board-body tbody tr:nth-child(2),
#shell .board-body tbody tr:nth-child(3) {
  background: transparent;
}

#shell .board-body tbody td.up,
#shell .board-body .mkt-delta.up {
  color: var(--up);
}

#shell .board-body tbody td.down,
#shell .board-body .mkt-delta.down {
  color: var(--down);
}

#shell .board-body .item-cell .f2p {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
}

#shell .board-body .item-cell .f2p.new {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

#shell .board-body .item-cell .row-spark path {
  stroke: var(--line-strong);
}

#shell .board-body .item-cell .row-spark.up path {
  stroke: var(--up);
}

#shell .board-body .item-cell .row-spark.down path {
  stroke: var(--down);
}

/* The column picker is the board's one quiet control. On paper it is a ruled
   toolbar rather than a band of empty card, so the table's head still reads as
   the top of the table. */
#shell .board-tools {
  padding: 7px 14px 6px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}

#shell .board-tools .columns-btn {
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

#shell .board-tools .columns-btn:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--ink);
}

#shell .board-tools .columns-count {
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 700;
}

#shell .board-body .star,
#shell .board-body .save-star {
  color: var(--line-strong);
}

#shell .board-body .star[aria-pressed="true"] {
  color: var(--accent);
}

/* -------------------------------------------------------------- pager ----- */
#shell .pager {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 12px;
}

#shell .pager .pg,
#shell .pager button {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  color: var(--ink-2);
  font-weight: 600;
  box-shadow: none;
}

#shell .pager .pg:hover,
#shell .pager button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

#shell .pager .pg[aria-current="page"],
#shell .pager button[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* The sort strip is a ruled band on the sheet, not a plate. */
#shell .sortbar {
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

#shell .sortbar button {
  color: var(--ink-3);
  font-weight: 600;
}

#shell .sortbar button:hover {
  background: var(--hover);
  color: var(--ink);
}

#shell .sortbar button[aria-pressed="true"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

#shell .board-filter {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  color: var(--ink-2);
}

/* --------------------------------------------------------------- phone ---- */
/* A phone reads the same sheet at its own scale: the cards keep the type the
   phone sheet gives them. */
@media (max-width: 620px) {
  #shell .board-body tbody td {
    font-size: var(--text-label);
  }

  #shell .board-body tbody .item-cell .f2p {
    font-size: var(--text-label);
  }
}

/* ------------------------------------------------------- app surfaces ---- */
/* The weather sheet paints its mastheads, buttons and popovers with its own
   navy gradients rather than with tokens, so those surfaces are restated here.
   Same shapes, same sizes: only the material changes. */

#shell .page-mast,
#shell .hub-head,
#shell .iv-head,
#shell .ix-section-head {
  background: transparent;
  background-image: none;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
}

#shell .page-mast::before,
#shell .page-mast::after,
#shell .iv-head::before,
#shell .iv-head::after {
  content: none;
}

#shell .page-mast-title,
#shell .hub-title,
#shell .iv-title h2,
#shell .ix-section-head h2 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
}

#shell .page-mast-lede,
#shell .market-lede,
#shell .iv-sub,
#shell .ix-section-head .ix-note {
  color: var(--ink-2);
}

#shell .page-crumb,
#shell .page-crumb [aria-current="page"] {
  color: var(--ink-3);
}

#shell .page-crumb a {
  color: var(--ink-2);
}

#shell .page-crumb a:hover {
  color: var(--ink);
}

/* Quiet buttons: a hairline box on paper, never a plate. */
#shell .ghost,
#shell .btn,
#shell .abtn,
#shell .iv-btn,
#shell .wl-open,
#shell .wl-add,
#shell .nd-all,
#shell .scope-x,
#shell .saveonly {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  background-image: none;
  color: var(--ink-2);
  font-weight: 600;
  box-shadow: none;
}

#shell .ghost:hover,
#shell .btn:hover,
#shell .abtn:hover,
#shell .iv-btn:hover,
#shell .wl-open:hover,
#shell .wl-add:hover,
#shell .nd-all:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--ink);
}

/* The one action on a screen is the ink plate, the same material as the bar's
   current tab. */
#shell .sbtn,
#shell .abtn.primary,
#shell .btn.primary,
#shell .opt-run,
#shell .nf-btn.primary,
#shell .gbtn.primary {
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  background-image: none;
  color: var(--bg-2);
  font-weight: 600;
  box-shadow: none;
}

#shell .sbtn:hover,
#shell .abtn.primary:hover,
#shell .btn.primary:hover,
#shell .opt-run:hover,
#shell .nf-btn.primary:hover {
  border-color: #000;
  background: #000;
  color: var(--bg-2);
}

#shell .sbtn.danger {
  border-color: var(--down);
  background: transparent;
  color: var(--down);
}

#shell .sbtn.danger:hover {
  background: var(--down-soft);
  color: var(--down);
}

#shell .link {
  color: var(--accent);
  font-weight: 600;
}

#shell input[type="text"],
#shell input[type="email"],
#shell input[type="password"],
#shell input[type="search"],
#shell input[type="number"],
#shell input[type="url"],
#shell textarea,
#shell select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: none;
}

#shell input::placeholder,
#shell textarea::placeholder {
  color: var(--ink-3);
}

#shell input:focus-visible,
#shell textarea:focus-visible,
#shell select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  outline: none;
}

/* Popovers, menus and the auth sheet: one paper card with a soft shadow. */
#shell .suggest,
#shell .rail-menu,
#shell .rail-menu-body,
#shell .notif-drawer,
#shell .items-menu,
#shell .facets.nav-dropdown,
#shell .amodal-box,
#shell .auth-card,
#shell .columns-panel,
#shell .listmenu,
#shell .dialog,
#shell .modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  background-image: none;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}

body #auth-modal .auth-card {
  border-radius: var(--radius) !important;
}

#shell .rail-menu-all,
#shell .rail-menu-all:hover {
  border-top: 1px solid var(--line);
  background: var(--rail);
  color: var(--ink-2);
}

#shell .rail-menu-item:hover,
#shell .rail-skill:hover,
#shell .suggest .sug-row:hover,
#shell .items-menu .items-row:hover,
#shell .listmenu button:hover {
  background: var(--hover);
  border-color: var(--line);
  color: var(--ink);
}

#shell .scrim,
#shell .modal-scrim,
#shell .amodal-scrim {
  background: rgba(33, 31, 26, .32);
}

/* ------------------------------------------------------------ item -------- */
#shell.item-view .il-icon,
#shell.item-view .il-chart,
#shell.item-view .iv-head .ico-lg,
#shell.item-view .iv-head > img,
#shell.item-view .chart-wrap {
  border-color: var(--line);
  background-color: var(--bg-2);
}

#shell.item-view .il-chart,
#shell.item-view .chart-wrap {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
}

#shell.item-view .iv-title h2 {
  color: var(--ink);
  font-weight: 600;
}

#shell.item-view .iv-btn {
  color: var(--ink-2);
}

/* A few of the weather sheet's rules carry an id inside `:has()`, which puts
   them past a plain `#shell .thing`. These are the same decisions stated at
   the weight they need to win. */
#shell #board .itemview.tape .tp-head {
  background: transparent;
  background-image: none;
  border-bottom: 1px solid var(--line-strong);
}

#shell #board .itemview.tape .ico-lg {
  background: var(--bg-2);
  background-image: none;
  border: 1px solid var(--line);
  box-shadow: none;
}

#shell #item-reading-rail .ix-section-head {
  background: var(--bg-2);
  background-image: none;
  border-bottom: 1px solid var(--line);
}

#shell #item-reading-rail .ix-section-head h2 {
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

#shell #item-reading-rail .ix-sec-meta {
  color: var(--ink-3);
}

#shell #opt-run.opt-run {
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg-2);
  font-weight: 600;
}

#shell #opt-run.opt-run .opt-run-long,
#shell #opt-run.opt-run .opt-run-short,
#shell #opt-run.opt-run svg {
  color: var(--bg-2);
  stroke: currentColor;
}

#shell #opt-run.opt-run:hover {
  background: #000;
  border-color: #000;
}

/* The sign-in gate is portalled to the body, outside the shell. */
body #auth-scrim {
  background: rgba(33, 31, 26, .32);
}

body #auth-modal .auth-card,
body .auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  background-image: none;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}

body #auth-modal .auth-card h2,
body #auth-modal .auth-card h1 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
}

body #auth-modal .auth-card p,
body #auth-modal .auth-card .auth-sub {
  color: var(--ink-2);
}

body #auth-modal .auth-card input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: none;
}

body #auth-modal .auth-card .auth-go,
body #auth-modal .auth-card .abtn.primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-2);
  box-shadow: none;
}

body #auth-modal .auth-card .abtn:not(.primary) {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
}

/* The weather sheet forces every primary action to coral with navy type at
   `!important`. On paper the action is the ink plate, so these are the same
   decisions restated at the weight the sheet uses. */
#shell .sbtn:not(.danger),
#shell .calc-plan,
#shell .tp-cta,
#shell .flip-save,
#shell .opt-run,
#shell .toolview button[type="submit"],
.nf-btn.primary,
#auth-go {
  color: var(--bg-2) !important;
  background: var(--ink) !important;
  border: 1px solid var(--ink) !important;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

#shell .sbtn:not(.danger):hover,
#shell .calc-plan:hover,
#shell .tp-cta:hover,
#shell .flip-save:hover,
#shell .opt-run:hover,
#shell .toolview button[type="submit"]:hover,
.nf-btn.primary:hover,
#auth-go:hover {
  color: var(--bg-2) !important;
  background: #000 !important;
  border-color: #000 !important;
}

#shell .sbtn.danger,
#shell .sbtn.danger:hover {
  color: var(--down) !important;
  background: transparent !important;
  border-color: var(--down) !important;
}

@media (max-width: 620px) {
  #shell .board-body tbody tr:hover,
  #shell .board-body tbody tr:nth-child(-n+3):hover {
    background: rgba(33, 31, 26, .035) !important;
  }
}

body #auth-modal .prow a,
body #auth-modal .pdoor {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink-2);
  box-shadow: none;
}

body #auth-modal .prow a:hover,
body #auth-modal .pdoor:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--ink);
}

body #auth-modal .auth-or {
  color: var(--ink-3);
}

body #auth-modal .auth-card .x,
body #auth-modal .auth-card .auth-x {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-2);
}

/* Provider doors on the sign-in card are gradients too. */
body #auth-modal .prow a,
body #auth-modal .pbtn {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  background-image: none;
  color: var(--ink-2);
  box-shadow: none;
}

body #auth-modal .prow a:hover,
body #auth-modal .pbtn:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  background-image: none;
  color: var(--ink);
}

/* The open-item tab in the page head is an amber gradient in the weather
   sheet; on paper the current tab is the tinted hairline the rest of the app
   uses. The Discord door keeps a trace of its own blue so the mark reads. */
#shell .page-head .tb-page.on,
#shell .page-head .tb-page.on:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  background-image: none;
  box-shadow: none;
}

#shell .page-head .tb-page.on .tb-page-open {
  color: var(--ink);
}

body #auth-modal .pbtn.discord,
body #auth-modal .pbtn.discord:hover {
  border-color: rgba(88, 101, 242, .38);
  background: rgba(88, 101, 242, .10);
  background-image: none;
  color: var(--ink);
}

/* Calculator controls that are not the one action are quiet boxes. */
#shell .toolview button:not([type="submit"]):not(.link) {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  background-image: none;
  color: var(--ink-2);
  box-shadow: none;
}

#shell .toolview button:not([type="submit"]):not(.link):hover {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--ink);
}

#shell .calc-reset,
#shell .calc-bar-actions a,
#shell .calc-bar-actions button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  background-image: none;
  color: var(--ink-2);
  box-shadow: none;
}

#shell .calc-reset:hover,
#shell .calc-bar-actions a:hover,
#shell .calc-bar-actions button:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--ink);
}

/* Small labels that the weather sheet writes in its own muted navy ink rather
   than with a token. They are the sheet's third ink on paper now. */
#shell .filter-deck .fb-name,
#shell .pager .pg-info,
#shell .page-crumb .sep,
#shell .tp-tag,
#shell .examine,
#shell .tp-q > span,
#shell .q-pct.flat,
#shell .tp-cell dt,
#shell .calc-head label,
#shell .calc-basis,
#shell .calc-out,
#shell .calc-out > div,
#shell .reading-gate,
#shell .reading-gate p,
#shell .calc-plate .amt em {
  color: var(--ink-3);
  border-color: var(--line);
}

#shell .reading-gate {
  border: 1px solid var(--line);
  background: var(--bg-2);
}


/* The board's sprites sat on navy tiles; on paper the tile is the sheet. */
#shell .item-cell .ico img,
#shell .item-cell .ico {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
}

body #auth-go,
body #auth-modal #auth-go {
  box-shadow: none;
}

/* The item sheet's small labels are written by rules that carry an id inside
   `:has(#board …)`, so these take two ids to sit above them. */
#shell #item-reading-rail .calc-field label,
#shell #item-reading-rail .calc-plate .amt em,
#shell #item-reading-rail .calc-out,
#shell #item-reading-rail .calc-out > div,
#shell #item-reading-rail .calc-out .sum,
#shell #item-reading-rail .calc-basis,
#shell #item-reading-rail .reading-gate,
#shell #item-reading-rail #item-readings-gate p,
#shell #board .tp-perf .tp-cell span {
  color: var(--ink-3);
  border-color: var(--line);
}

#shell #item-reading-rail .reading-gate,
#shell #item-reading-rail #item-readings-gate {
  border: 1px solid var(--line);
  background: var(--bg-2);
}

/* The readings ride in a framed tape panel of their own, so the gate inside it
   was a second frame one pixel inside the first, doubling three of its edges. */
#shell #item-reading-rail .ix-section .reading-gate,
#shell #item-reading-rail .ix-section #item-readings-gate {
  border: 0;
  padding-left: 0;
  padding-right: 0;
}

#shell #board .tp-band-head > span {
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- brand --- */
/* The desk's name reads OSRS then the wordmark, the way the header had it
   before the label was a descriptor. */
#shell .topbar-brand {
  align-items: baseline;
  gap: 9px;
}

#shell .brand-sub {
  order: 0;
  margin: 0;
  color: var(--ink-4);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

#shell .brand-word {
  order: 1;
}

/* --------------------------------------------------------------- fields --- */
/* One box per field. The weather sheet drew a bordered input inside a bordered
   wrapper, which on paper reads as a field inside a field; the wrapper is the
   box and the input is the text it holds. */
#shell .search-wrap,
#shell .search-wrap.ph-search {
  border: 1px solid var(--line);
  background: var(--bg-2);
}

#shell .search-wrap input,
#shell .search-wrap.ph-search input,
#shell .search-wrap #q,
#shell .calc-input-line input,
#shell .calc-input-line select,
#shell .opt-input-wrap input,
#shell .numbox input {
  /* The field frame is the box: a select that carries its own border drew a
     second rounded rectangle inside it. */
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#shell .calc-input-line,
#shell .opt-input-wrap {
  box-shadow: none;
}

#shell .search-wrap:focus-within,
#shell .calc-input-line:focus-within,
#shell .opt-input-wrap:focus-within {
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: none;
}

/* --------------------------------------------------------------- states --- */
/* Hover and focus plates that the weather sheet still painted Marine navy: the
   row star, the search suggestions, the rail menus and the filter chips. */
#shell .star:hover,
#shell .star:focus-visible,
#shell .suggest .sug-row:hover,
#shell .suggest .sug-row[aria-selected="true"],
#shell .items-menu .items-row:hover,
#shell .rail-menu-item:hover,
#shell .rail-skill:hover,
#shell .rail-menu-all:hover,
#shell .filters-card .scope-x:hover,
#shell .filter-editor-x:hover,
#shell .filter-search:focus-within {
  background: var(--hover);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

#shell .filters-card .filter-search:focus-within {
  background: var(--bg-2);
}

/* The search suggestions and the header menus are portalled to <body>, outside
   the shell, so the scoped popover rules above never reached them and they
   still wore the weather sheet's navy frame. */
body .suggest,
body .items-menu,
body .rail-menu,
body .rail-menu-body,
body .notif-drawer,
body .facets.nav-dropdown,
body .amodal-box,
body .columns-panel,
body .listmenu,
body .dialog,
body .modal {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  background-image: none;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}

body .items-menu .items-row:hover,
body .suggest .sug-row:hover,
body .suggest .sug-row[aria-selected="true"],
/* The class the search card and the tools' Item field actually write. Without
   it the marked answer kept the plate's own fill and only its words darkened,
   so arrowing down the list looked like nothing was marked. */
body .suggest .sug:hover,
body .suggest .sug.on,
body .suggest .sug[aria-selected="true"],
body .suggest .sug:focus-visible,
body .rail-menu-item:hover,
body .rail-skill:hover,
body .rail-menu-all,
body .rail-menu-all:hover {
  background: var(--hover);
  border-color: var(--line);
  color: var(--ink);
}

body .items-menu .items-row,
body .suggest .sug-row {
  border-color: transparent;
}

/* The filter editor lives in a host of its own, also outside the shell: it was
   still a navy plate with navy fields and an amber focus ring. */
#filter-editor-host .filter-editor {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 #fff;
  color: var(--ink-2);
}

#filter-editor-host .filter-editor-name {
  color: var(--ink);
}

#filter-editor-host .filter-editor-name em,
#filter-editor-host .filter-editor-hint,
#filter-editor-host .filter-input > span,
#filter-editor-host .filter-editor-clear {
  color: var(--ink-3);
}

#filter-editor-host .filter-input input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
}

#filter-editor-host .filter-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

#filter-editor-host .filter-editor-x {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink-2);
}

#filter-editor-host .filter-editor-x:hover {
  border-color: var(--line-strong);
  background: var(--hover);
  color: var(--ink);
}

