/* Slavek Desk — lower half of the page: my stocks, the sheet, movers,
   sectors, market news, earnings. Loaded after app.css and components.css. */

/* ---------- shared bits ---------- */

.arw {
  font-variant-numeric: normal;
  /* Optically smaller than the number it marks, but never under the 12px floor. */
  font-size: max(12px, .82em);
  margin-right: 3px;
  position: relative;
  top: -1px;
}

.panel-head .asof { align-self: baseline; }

/* Tickers, range endpoints and the movers' sector line identify a row; they are
   not decoration, so they sit above the muted tier the generic .faint uses. */
.wl-tick, .wl-lo, .wl-hi, .mv-meta { color: var(--text-2); }

/* ---------- My stocks ---------- */

.wl-head { align-items: flex-end; }
.wl-head-left { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.wl-head-right { display: flex; align-items: center; gap: 14px; flex: none; }
.wl-port {
  font-size: var(--fs-15);
  color: var(--text-2);
  font-variant-numeric: tabular-nums lining-nums;
}
.wl-port .up, .wl-port .down { font-weight: 600; }
/* With nothing entered the slot asks for the numbers instead of disappearing:
   the profit-and-loss line is the reason to come back, and it used to be
   invisible until he already knew it existed. */
.wl-port-ask {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
}
.wl-port-ask:hover { color: var(--text); }
.wl-add { min-height: 36px; }
.wl-hint { margin: -8px 0 12px; }
@media (max-width: 899px) {
  .wl-add { min-height: 44px; }
  .wl-port-ask { padding: 4px 0; }
}

.wl-scroll { overflow-x: auto; }
.wl-table { min-width: 100%; }
.wl-table th:first-child, .wl-table td:first-child { padding-left: 0; }
.wl-table th:last-child, .wl-table td:last-child { padding-right: 0; }
.wl-table td { padding-top: 9px; padding-bottom: 9px; }
.wl-table.no-holdings .wl-c-hold { display: none; }
/* Before the open there is no day range to show; a labelled column of em dashes
   reads as broken data. It comes back by itself at 9:30. */
.wl-table.no-range .wl-c-range { display: none; }

.wl-name { min-width: 150px; }
.wl-pick {
  display: block;
  text-align: left;
  max-width: 26ch;
  line-height: 1.3;
}
/* Long fund names would otherwise stack six words deep in a narrow column. */
.wl-co {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-15);
  font-weight: 500;
}
.wl-pick:hover .wl-co { color: var(--brand); }
.wl-tick { display: block; margin-top: 1px; }
.wl-note { display: block; margin-top: 2px; color: var(--text-3); }
.wl-note button {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: inherit;
}
.wl-missing .wl-co { color: var(--text-3); }

/* The canvas must keep its size: the global img/canvas max-width would let a
   tight column squeeze the line down to a smudge. */
.wl-spark { width: 92px; min-width: 92px; }
.wl-spark canvas { width: 92px; height: 26px; max-width: none; }
.wl-price { font-weight: 500; white-space: nowrap; }
.wl-px { display: block; }
/* A fund prices once a day, so its cell carries a second, quieter line. */
.wl-nav {
  display: block;
  margin-top: 1px;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}
.wl-nav .up { color: var(--up); }
.wl-nav .down { color: var(--down); }

.wl-change { white-space: nowrap; }
/* Only the card under 760px needs this word; the table has a header row. */
.wl-chg-lab { display: none; color: var(--text-3); }
.wl-chg-abs { display: inline-block; min-width: 5.5ch; }
.wl-chg-pct { display: inline-block; min-width: 5.5ch; margin-left: 8px; font-weight: 500; }

/* Holdings. "−$46.30" broke after the minus sign in a 54px column, which put
   the sign on its own line above the money it belonged to. */
.wl-c-hold { white-space: nowrap; }

/* Week and year to date */
.wl-c-wk, .wl-c-ytd { width: 1%; white-space: nowrap; }
.wl-week, .wl-ytd { font-weight: 500; min-width: 6ch; }
/* The same two numbers on one line; only the cards under 760px use it. */
.wl-c-perf { display: none; }

.wl-bar-row {
  display: grid;
  grid-template-columns: auto minmax(44px, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 128px;
}
.wl-bar-row .bar { min-width: 44px; }
.wl-bar-row .bar > i {
  width: 8px; height: 8px; top: -2px;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--bg-2);
}
.wl-c-range, .wl-c-year { width: 1%; }
.wl-c-earn { min-width: 90px; }
.wl-earncell .chip { white-space: nowrap; }

.wl-table tbody tr.is-selected { background: var(--bg-3); }
.wl-table tbody tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--brand); }
.wl-empty { padding-top: 4px; }

@media (max-width: 759px) {
  .wl-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .wl-head-right { width: 100%; justify-content: space-between; }
  .wl-scroll { overflow-x: visible; }
  .wl-table, .wl-table tbody, .wl-table tr, .wl-table td { display: block; }
  .wl-table thead { display: none; }
  .wl-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name  price"
      "spark change"
      "perf  perf"
      "earn  earn"
      "today total";
    align-items: center;
    column-gap: 12px;
    row-gap: 6px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-2);
  }
  .wl-table tbody tr:hover { background: var(--bg-2); }
  .wl-table tbody tr.is-selected { background: var(--bg-3); }
  .wl-table tbody tr.is-selected td:first-child { box-shadow: none; }
  .wl-table tbody tr.is-selected { box-shadow: inset 3px 0 0 var(--brand); }
  .wl-table td { border-bottom: 0; padding: 0; }
  .wl-name { grid-area: name; }
  .wl-pick { max-width: none; }
  .wl-spark { grid-area: spark; }
  .wl-price { grid-area: price; text-align: right; font-size: var(--fs-18); }
  .wl-change { grid-area: change; text-align: right; }
  /* Two percentages two lines apart, only the smaller one labelled, was the
     card's worst moment. Name the day change the way the table header does. */
  .wl-chg-lab { display: inline; }
  .wl-table td.wl-c-range,
  .wl-table td.wl-c-year,
  .wl-table td.wl-c-wk,
  .wl-table td.wl-c-ytd,
  .wl-table td.wl-shares { display: none; }
  .wl-table td.wl-perf { display: block; grid-area: perf; color: var(--text-2); }
  .wl-table td.wl-perf:empty { display: none; }
  .wl-c-earn { grid-area: earn; }
  .wl-table td.wl-c-earn:empty { display: none; }
  /* On a card there is no column heading for a dash to sit under, so the "no
     report due" placeholder would be a mark with nothing to explain it. */
  .wl-table td.wl-c-earn.is-none { display: none; }
  .wl-today { grid-area: today; text-align: left; }
  .wl-total { grid-area: total; text-align: right; }
  .wl-today:not(:empty)::before { content: "Today "; color: var(--text-3); }
  .wl-total:not(:empty)::before { content: "Total "; color: var(--text-3); }
  .wl-table td.wl-today:empty,
  .wl-table td.wl-total:empty { display: none; }
}

/* The table must fit its panel without a scrollbar at 1100px. Give up the
   widest columns first, and only the ones repeated elsewhere on the page: the
   52-week bar and the day range both live in the hero stats too. */
@media (max-width: 1279px) {
  .wl-c-year { display: none; }
  /* One line of NAV copy costs 45px of column; below the widest layout the
     table needs that back more than the fund row needs a single line. */
  .wl-nav { white-space: normal; }
}
@media (max-width: 1259px) {
  .wl-c-range { display: none; }
}
@media (min-width: 760px) and (max-width: 1049px) {
  .wl-c-earn { display: none; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .wl-table .wl-spark { display: none; }
  /* The share count is in the holdings editor; the two P/L columns are what
     the table is for. */
  .wl-table .wl-c-shares { display: none; }
}

/* ---------- Today's movers ---------- */

.mv-sub { margin: -6px 0 10px; }
.mv-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 6px;
}
.mv-tab {
  padding: 8px 1px 9px;
  margin-bottom: -1px;
  font-size: var(--fs-15);
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.mv-tab:hover { color: var(--text); }
.mv-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--brand); }

.mv-list li + li { border-top: 1px solid var(--line); }
.mv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 9px 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
  border-radius: var(--r-btn);
  text-align: left;
}
.mv-row:hover { background: var(--bg-3); }
.mv-row.is-selected { box-shadow: inset 2px 0 0 var(--brand); background: var(--bg-3); }
.mv-id { min-width: 0; }
.mv-name {
  display: block;
  font-size: var(--fs-15);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-meta { display: block; }
.mv-spark { width: 76px; height: 22px; flex: none; }
.mv-price { font-size: var(--fs-15); min-width: 7ch; text-align: right; }
.mv-chg { font-size: var(--fs-15); font-weight: 500; min-width: 7ch; text-align: right; }

@media (max-width: 759px) {
  .mv-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .mv-spark { display: none; }
}

/* ---------- Sectors ---------- */

/* The panel is a column so the map can take whatever height the row gives it,
   instead of leaving a hole under a fixed-height box. */
.sec { display: flex; flex-direction: column; }
.sec-sub { margin: -6px 0 12px; }
.sec-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
}
.sec-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  line-height: 1.2;
  transition: filter var(--t-fast);
}
.sec-tile:hover { filter: brightness(1.12); }
.sec-tile:focus-visible { outline-offset: -3px; }
.sec-t-name {
  font-size: var(--fs-13);
  font-weight: 500;
  line-height: 1.25;
  max-width: 100%;
  opacity: .92;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sec-t-pct { font-size: var(--fs-18); font-weight: 600; white-space: nowrap; }
.sec-tile.is-small { padding: 5px 7px; gap: 0; }
.sec-tile.is-small .sec-t-pct { font-size: var(--fs-13); }
.sec-tile.is-small .sec-t-name,
.sec-tile.is-narrow .sec-t-name { font-size: var(--fs-12); }

/* A wide, shallow tile reads better as one line than as two clipped ones. */
.sec-tile.is-short {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
}
/* The name earns the room; the percent takes what it needs and no more. */
.sec-tile.is-short .sec-t-name { flex: 1 1 auto; }
.sec-tile.is-short .sec-t-pct { flex: 0 0 auto; }
.sec-tile.is-short .sec-t-name {
  -webkit-line-clamp: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.sec-tile.is-short .sec-t-pct { font-size: var(--fs-13); }

/* Shallow and narrow at once: the name still fits above the percent, but only
   with both lines at the small size. Anything less and the tile is anonymous. */
.sec-tile.is-cramped { padding: 4px 7px; gap: 0; }
.sec-tile.is-cramped .sec-t-name {
  -webkit-line-clamp: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
.sec-tile.is-cramped .sec-t-pct { font-size: var(--fs-13); }

/* Narrower than a two-decimal percent: tighten the box, keep the type at the 12px floor. */
.sec-tile.is-tight { padding: 4px 6px; }
.sec-tile.is-tight .sec-t-pct { font-size: var(--fs-12); }

.sec-bars { display: none; }
.sec-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name pct" "track track";
  gap: 4px 12px;
  padding: 9px 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
  border-radius: var(--r-btn);
  text-align: left;
}
.sec-bar-row:hover { background: var(--bg-3); }
.sec-b-name { grid-area: name; font-size: var(--fs-15); font-weight: 500; }
.sec-b-pct { grid-area: pct; font-size: var(--fs-15); font-weight: 500; }
.sec-b-track {
  grid-area: track;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-3);
  overflow: hidden;
}
.sec-b-fill { display: block; height: 100%; border-radius: 3px; background: var(--text-3); }
.sec-b-fill.up { background: var(--up); }
.sec-b-fill.down { background: var(--down); }

.sec-detail {
  margin-top: 12px;
  min-height: 2.6em;
  line-height: 1.45;
  color: var(--text-2);
}
.sec-d-name { font-weight: 600; color: var(--text); }
.sec-mover { white-space: nowrap; }
.sec-mover-n { color: var(--text); }

@media (max-width: 759px) {
  .sec-map { display: none; }
  .sec-bars { display: block; }
  .sec-detail { min-height: 0; }
}

/* A short list should not be stretched to match a tall neighbour. */
#earnings { align-self: start; }

/* ---------- Market news ---------- */

.nw-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.nw-item:first-child { padding-top: 0; }
.nw-item:last-of-type { border-bottom: 0; }
.nw-title {
  font-size: var(--fs-16);
  font-weight: 500;
  line-height: 1.4;
  display: inline-block;
}
.nw-title:hover { color: var(--brand); }
.nw-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.nw-meta > span { display: inline-flex; align-items: center; }
.nw-kind { font-size: var(--fs-12); padding: 1px 7px; }
.nw-src { margin-top: 12px; }

/* ---------- Earnings ---------- */

.er-sub { margin: -6px 0 10px; }
.er-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-areas: "when who" "when eps";
  gap: 2px 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.er-item:first-child { padding-top: 0; }
.er-item:last-child { border-bottom: 0; }
.er-when { grid-area: when; }
.er-date { display: block; font-size: var(--fs-15); font-weight: 500; white-space: nowrap; }
.er-rel { display: block; }
.er-who { grid-area: who; min-width: 0; }
.er-name {
  font-size: var(--fs-15);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.er-tick { display: block; }
.er-eps { grid-area: eps; align-self: end; }

@media (max-width: 759px) {
  .er-item { grid-template-columns: 92px minmax(0, 1fr); }
}

/* ---------- Settings sheet ---------- */

/* Body alone is enough in Chrome, but only while <html> stays visible, and it
   is not enough on iOS. Lock both, and stop a flick inside the sheet from
   handing the rest of its momentum to the page underneath. */
body.sheet-open { overflow: hidden; }
html:has(body.sheet-open) { overflow: hidden; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sheet[hidden] { display: none; }
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, .62);
}
.sheet-panel {
  position: relative;
  width: min(580px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  /* On iOS `vh` is always the *large* viewport — the height with the toolbar
     hidden — so while the toolbar is up (which is its state when the sheet
     opens) 86vh is a good 100px taller than what he can see, and the bottom row
     of buttons sits behind it. `svh` shipped in Safari 15.4, Firefox 101 and
     Chromium 108; the three Safari 15.0–15.3 builds keep the old value, which
     is merely too tall and still scrollable. */
  max-height: min(86svh, 760px);
  overscroll-behavior: contain;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(4, 9, 18, .45);
  padding: 18px 22px 26px;
  animation: sheetIn 180ms ease-out;
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.sheet-head h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-22);
}
.sheet-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.sheet-tab {
  padding: 8px 1px 9px;
  margin-bottom: -1px;
  font-size: var(--fs-15);
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.sheet-tab:hover { color: var(--text); }
.sheet-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--brand); }

/* Add stock */
.sh-add label { display: block; font-size: var(--fs-15); color: var(--text-2); margin-bottom: 6px; }
.sh-add-row { display: flex; gap: 10px; }
.sh-add-row .input { flex: 1 1 auto; min-width: 0; }
.sh-add-row .btn { flex: none; min-height: 44px; }
.sh-hint { min-height: 1.5em; margin-top: 10px; line-height: 1.5; }
.sh-results { margin-top: 8px; }
.sh-results li + li { border-top: 1px solid var(--line); }
.sh-results button {
  display: block;
  text-align: left;
  padding: 10px 10px;
  margin: 0 -10px;
  width: calc(100% + 20px);
  border-radius: var(--r-btn);
}
.sh-results button:hover { background: var(--bg-3); }
.sh-r-name { display: block; font-size: var(--fs-15); font-weight: 500; }
.sh-r-meta { display: block; }

/* Holdings */
.sh-hold-note { margin-bottom: 14px; line-height: 1.5; }
.sh-h {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name actions" "fields fields";
  gap: 10px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sh-h:last-child { border-bottom: 0; }
.sh-h-name { grid-area: name; min-width: 0; }
.sh-h-co {
  display: block;
  font-size: var(--fs-15);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-h-fields { grid-area: fields; display: flex; gap: 14px; flex-wrap: wrap; }
.sh-h-lab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-13);
  color: var(--text-2);
}
.sh-h-lab .input { width: 130px; min-height: 40px; }
.sh-h-actions { grid-area: actions; display: flex; align-items: center; gap: 6px; }
.sh-h-actions .btn-icon { width: 38px; min-height: 38px; font-size: var(--fs-18); }
.sh-h-move { color: var(--text-2); }
.sh-h-move:hover { color: var(--text); }
.sh-h-actions .btn[disabled] { opacity: .38; cursor: default; }
.sh-h-rm { min-height: 38px; padding: 0 12px; }
.sh-h-rm:hover { color: var(--down); }

/* Settings */
.sh-field { border: 0; padding: 0; margin: 0 0 22px; }
.sh-field:last-child { margin-bottom: 0; }
.sh-field legend {
  padding: 0;
  font-size: var(--fs-15);
  font-weight: 600;
  margin-bottom: 8px;
}
.sh-radios { display: flex; flex-direction: column; gap: 2px; }
.sh-radios label, .sh-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-size: var(--fs-16);
}
@media (max-width: 899px) {
  .sh-radios label, .sh-check { min-height: 44px; }
  .sh-h-actions .btn-icon { width: 44px; min-height: 44px; }
  .sh-h-rm { min-height: 44px; }
}
.sh-radios input, .sh-check input { accent-color: var(--brand); width: 18px; height: 18px; }
.sh-btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sh-io { margin: 10px 0 0; }
.sh-text { margin-top: 12px; }
.sh-text[hidden] { display: none; }
.sh-text-lab { display: block; font-size: var(--fs-13); color: var(--text-2); margin-bottom: 6px; }
.sh-json {
  display: block;
  min-height: 0;
  padding: 10px 12px;
  font-size: var(--fs-13);
  font-family: var(--font-sans);
  line-height: 1.5;
  resize: vertical;
  white-space: pre;
  overflow: auto;
}
.sh-text-row { margin-top: 10px; }
.sh-reset-row { margin-top: 16px; }
.sh-reset-ask { font-size: var(--fs-15); color: var(--text-2); }
.sh-reset:hover { color: var(--down); border-color: var(--down); }

@media (max-width: 759px) {
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-panel {
    width: 100%;
    /* A bottom sheet that is only as tall as its shortest tab puts the add box
       an inch off the bottom of the screen, where the on-screen keyboard covers
       it — and it jumps between three heights as he moves along the tabs. One
       height for all three: the field lands high enough to type into, and the
       matches have somewhere to appear without the sheet growing under his hand. */
    min-height: 72vh;
    min-height: 72dvh;
    max-height: 92vh;
    /* dvh follows the browser's own bars, so the sheet is not taller than the
       part of the screen he can actually see. vh above is the fallback. */
    max-height: 92dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    /* viewport-fit=cover puts the bottom of the sheet under the home indicator
       on an iPhone; the last row of buttons has to clear it. */
    padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    animation: sheetUp 200ms ease-out;
  }
  @keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
  .sh-h { grid-template-areas: "name actions" "fields fields"; }
  .sh-h-lab .input { width: 120px; }
}

/* ---------- Wide screens: fill the page instead of stranding a column ---------- */

@media (min-width: 1100px) {
  /* Twelve headlines in one narrow strip left a tall hole beside the earnings
     panel. Two columns read the same way and end where the page does. */
  .nw-list {
    columns: 2;
    column-gap: 28px;
  }
  .nw-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }
  /* A column-break can strand a top border, so rule every item the same way. */
  .nw-item:first-child { padding-top: 11px; }
  .nw-item:last-of-type { border-bottom: 1px solid var(--line); }

  /* The board rides beside a much taller hero, so give the sparklines room to
     be read rather than glanced at. */
  .tile { min-height: 132px; }
  .tile-spark { height: 40px; }
}


/* ---------- Touch targets ----------

   Every control this page's reader has to hit with a thumb clears 44px. These
   sit at the end of the file so they outrank the component rules above them
   without needing an !important or a heavier selector. */

@media (max-width: 899px) {
  /* On a phone the row becomes a card and this button is its handle. */
  .wl-pick { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
  .mv-tab, .sheet-tab { padding-top: 12px; padding-bottom: 13px; }
  .sec-bar-row { padding-top: 12px; padding-bottom: 12px; }
  .sh-results button { padding-top: 12px; padding-bottom: 12px; }
  .wl-note button { padding: 4px 0; }
  /* The primitives themselves: 40px is the desk size, not the thumb size. */
  .btn { min-height: 44px; }
  .btn-icon { width: 44px; min-height: 44px; }
}
