/* The rebuilt Alerts page (src/fp/rb/alerts/): the overhaul board's look (design/overhaul-2026-10/09-alerts-pro.html,
   "5 · The Alerts page"), over ./render.js's markup. Loaded after rb.css and rb-sheets.css. Classes rb-al-*.
   Phone: one column, the list first, "Where alerts go" under it (reached from the jump at the top).
   Computer: the list on the left, a 340px column of panels on the right. */
.rb-alerts { padding-bottom: 7.5rem; }
.rb-al { display: block; padding-top: 4px; }
.rb-al-h { font: 700 1.75rem/1.1 var(--head); letter-spacing: -.02em; }
.rb-al-jump { margin: 12px 0 2px; min-height: 44px; }
.rb-al-jump span:first-of-type { flex: 0 1 auto; }

/* a group's head: Today · 2, Earlier, Big moves you'd have been alerted to */
.rb-al-grp { font: 600 .75rem/1.3 var(--body); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; padding: 18px 0 8px; border-bottom: 1px solid var(--line); }

/* one alert: the market's picture, the words, the time; on today's, "Was this alert useful?" under the words */
.rb-al-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 0 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
/* phone: the time (and on today's alerts the two thumbs) sit on their own line above the words, so the words keep the
   row's width at any text size (the one review: at 320 and 200% text a third column squeezed them to a word a line) */
@media (max-width: 899px) {
  .rb-al-row { grid-template-columns: 30px minmax(0, 1fr); }
  .rb-al-row > .rb-pic { grid-row: 1 / span 2; }
  .rb-al-row > .rb-al-rt { grid-column: 2; grid-row: 1; flex-direction: row; align-items: center; justify-content: space-between; }
  .rb-al-row > .rb-al-body { grid-column: 2; grid-row: 2; }
  .rb-al-nod .rb-al-row, .rb-al-ex { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .rb-al-nod .rb-al-row > .rb-al-body, .rb-al-ex > .rb-al-body { grid-row: 1; }
  .rb-al-nod .rb-al-row > .rb-pic, .rb-al-ex > .rb-pic { grid-row: 1; }
}
.rb-al-body { display: grid; gap: 3px; min-width: 0; }
.rb-al-q { font-size: .78125rem; color: var(--muted); overflow-wrap: anywhere; }
.rb-al-ln { font: 500 .90625rem/1.4 var(--body); overflow-wrap: anywhere; }
.rb-al-ln b { font-weight: 600; }
.rb-al-more { color: var(--muted); font-weight: 400; }
.rb-al-why { font-size: .8125rem; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.rb-al-why b { color: var(--fg); font-weight: 600; }
.rb-al-when { white-space: nowrap; }
.rb-al-since { font-size: .78125rem; color: var(--muted); }
.rb-al-since b { color: var(--fg); font-weight: 600; } .rb-al-since b.up { color: var(--up); } .rb-al-since b.dn { color: var(--dn); }
.rb-al-cta { font-size: .8125rem; font-weight: 600; margin-top: 3px; }
a.rb-al-body:hover .rb-al-cta, a.rb-al-body:hover .rb-al-ln { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rb-al-rt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.rb-al-tm { font-size: .78125rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 1px; }
.rb-al-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sig); margin-right: 8px; vertical-align: 2px; }
.rb-al-sub { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.rb-al-jsub { color: var(--muted); font-weight: 500; }
.rb-al-chev { color: var(--faint); font-size: 1.125rem; line-height: 1.2; align-self: center; flex: none; }
a.rb-al-li { flex-wrap: nowrap; }
a.rb-al-li .rb-al-lt { flex: 1 1 0; }
.rb-al-old .rb-al-body { min-height: 40px; align-content: center; }
.rb-al-use { display: flex; gap: 2px; margin-right: -8px; }
.rb-al-yn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); }
.rb-al-yn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.rb-al-yn:hover { color: var(--fg); background: var(--surf2); }
.rb-al-yn[aria-pressed="true"] { color: var(--fg); background: var(--surf2); }
.rb-al-yn[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .25; }

/* alerts set, no device on */
.rb-al-nod { margin-top: 14px; }
.rb-al-nod .rb-note > span { color: var(--fg); }
.rb-al-nod .rb-note b { font-weight: 600; }

/* no alert yet */
.rb-al-empty { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surf); padding: 16px; display: grid; gap: 8px; }
.rb-al-empty h2 { font: 700 1.0625rem var(--head); letter-spacing: -.01em; }
.rb-al-empty > p { font-size: .875rem; color: var(--muted); max-width: 46em; }
.rb-al-next a { color: var(--fg); display: inline-block; padding: 10px 0; margin: -10px 0; }
.rb-al-ex { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin: 4px 0; }
.rb-al-tag { justify-self: start; font: 700 .625rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--sig); }

/* where alerts go: panels of rows */
.rb-al-r { display: grid; gap: 12px; margin-top: 28px; scroll-margin-top: 12px; }
.rb-al-r:focus { outline: none; }
.rb-al-panel { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; background: var(--surf); }
.rb-al-panel h2 { margin: 12px 0 2px; font: 700 .9375rem var(--head); letter-spacing: -.01em; }
.rb-al-li { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 11px 0; min-height: 44px; border-bottom: 1px solid var(--line); font-size: .84375rem; }
.rb-al-panel li:last-child > .rb-al-li, .rb-al-panel li.rb-al-li:last-child, .rb-al-panel > .rb-al-li { border-bottom: 0; }
.rb-al-lt { display: grid; gap: 2px; flex: 1 1 10em; min-width: 0; }
.rb-al-lt b { font-weight: 500; overflow-wrap: anywhere; }
.rb-al-lt span { font-size: .78125rem; color: var(--muted); }
.rb-al-lt .rb-al-on, .rb-al-on { color: var(--up); }
.rb-al-li > .rb-al-on { font-size: .78125rem; flex: none; }
a.rb-al-li:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rb-al-warn { font-size: .8125rem; color: var(--muted); padding: 10px 0 12px; border-top: 1px solid var(--line); }
/* the daily note's switch */
.rb-al-sw { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex: none; font: 600 .78125rem var(--body); color: var(--muted); }
.rb-al-sw i { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--surf2); border: 1px solid var(--line); flex: none; }
.rb-al-sw i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); }
.rb-al-sw[aria-checked="true"] { color: var(--fg); }
.rb-al-sw[aria-checked="true"] i { background: var(--sig); border-color: var(--sig); }
.rb-al-sw[aria-checked="true"] i::after { left: 18px; background: var(--sig-ink); }
.rb-al-calm { display: grid; gap: 2px; padding: 8px 2px; min-height: 44px; align-content: center; font-size: .78125rem; color: var(--muted); }
.rb-al-calm b { font-weight: 600; color: var(--fg); justify-self: start; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rb-al-calm:hover b { text-decoration-color: currentColor; }

@media (min-width: 900px) {
  .rb-al { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 12px; }
  .rb-al-h { font-size: 2rem; }
  .rb-al-jump { display: none; }
  .rb-al-r { margin-top: 6px; }
}
@media (prefers-reduced-motion: no-preference) { .rb-al-yn, .rb-al-sw i, .rb-al-sw i::after { transition: background-color var(--rb-t-fast) var(--rb-ease), left var(--rb-t-fast) var(--rb-ease), border-color var(--rb-t-fast) var(--rb-ease); } }
