/* report-type-cards.css — THE report-type card. One design, four apps.
   Tyler 2026-11-14 on the Reports pages: "all report designs need to be
   better. I don't like the VO, and the different cards have some different
   designs." So every Reports page draws its types with THIS file:

     icon + title  →  one-to-two-line description  →  ONE meta line  →  Make one ›

   No company logo tile, no per-type header colours or illustrations, no
   "N parts" — cards differ only by icon, title and text. Every card in a row
   is the same height (grid stretch + the foot pinned to the bottom); nothing
   is clamped or ellipsised. Columns follow the panel's own width (container
   query): 3 wide, 2 middling, 1 on a phone.

   🚨 COPIES — identical bytes, edit one then re-copy all four:
     vo-app-work         apps/Work/report-type-cards.css         (report-review.js mountTypes)
     vo-app-finance      apps/Finance/report-type-cards.css      (finance-report-library.js typeCard)
     vo-app-capacity     apps/Capacity/report-type-cards.css     (cap-simple.js kindCard)
     vo-app-automations  apps/Automations/report-type-cards.css  (automations-reports.js kindCard)

   Markup (each app's JS writes exactly this — the PAGE too, 2026-11-14 eve:
   the four pages had four headers; now one panel, one title, one icon, one
   count chip, one sentence):
     <section class="rtc-page [rtc-auto-dark]">
       <div class="rtc-ph"><span class="rtc-ph-ic"><svg/></span><h2 class="rtc-ph-title">Reports</h2><span class="rtc-ph-count">N</span></div>
       <p class="rtc-ph-sub">Pick one, see it here, then download, print or send it. Nothing is saved.</p>
       <div class="rtc-wrap"><div class="rtc-grid">
         <div class="rtc" role="button" tabindex="0" …app's own data-* hook…>
           <span class="rtc-head"><span class="rtc-ic"><svg viewBox="0 0 24 24">…</svg></span><span class="rtc-title">…</span>[<span class="rtc-sched">Scheduled</span>]</span>
           <span class="rtc-desc">…</span>
           <span class="rtc-foot"><span class="rtc-meta">Any period · Shareable</span><span class="rtc-go">Make one <svg/></span></span>
         </div>
       </div></div>
     </section>
   The section IS the white panel: an app whose own container is already a
   panel strips it for this page (Capacity: .cs-panel--bare).
   A div, NOT a <button>: every app's theme styles buttons (radius, padding,
   fill — Capacity's `.cs-rpt button:not(…)` won by specificity and made the
   card 10px round in one app and 16px in another). Each app wires Enter/Space.
   Floating side buttons (Ask AI / notes / tasks, fixed ~62px from the right):
   an app whose page runs under them sets --rtc-fab-gutter (Work: 66px, its
   --wk-cap-fab-gutter value).
   Accent = the platform theme colour (--wt-theme-primary), the same in every app.
   Dark mode only where the page itself goes dark: :root[data-theme="dark"], or
   the OS setting when the app adds .rtc-auto-dark to the section. */
.rtc-page {
  --rtc-a: var(--rtc-accent, var(--wt-theme-primary, #004b7c));
  --rtc-bg: #fff;
  --rtc-line: #e3e8ef;
  --rtc-ink: #0f172a;
  --rtc-ink2: #475569;
  --rtc-ink3: #64748b;
  --rtc-tile: color-mix(in srgb, var(--rtc-a) 9%, #fff);
  --rtc-go: var(--rtc-a);
  display: block;
  min-width: 0;
  margin: 0 var(--rtc-fab-gutter, 0px) 0 0;
  padding: 22px 24px 24px;
  border: 1px solid var(--rtc-line);
  border-radius: 18px;
  background: var(--rtc-bg);
  color: var(--rtc-ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 30px -24px rgba(15, 23, 42, .25);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  text-align: left;
}
/* not every app resets box-sizing (Capacity doesn't: a 176px min-height became 218px there) */
.rtc-page, .rtc-page *, .rtc-page *::before, .rtc-page *::after { box-sizing: border-box; }
.rtc-ph { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rtc-ph-ic {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rtc-tile); color: var(--rtc-a);
}
.rtc-ph-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* the platform's display face (vo-polish --vp-display), stated here so the four apps agree:
   three of them get it from `.wt-page-bg h2`, Automations has no such rule */
.rtc-page .rtc-ph-title { margin: 0; font-family: 'Montserrat', 'Poppins', 'Segoe UI', system-ui, sans-serif; font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: var(--rtc-ink); }
.rtc-ph-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--rtc-tile); color: var(--rtc-go);
  font-size: 12px; font-weight: 700; line-height: 1;
}
.rtc-ph-sub { margin: 6px 0 20px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--rtc-ink2); }
.rtc-wrap { container-type: inline-size; width: 100%; }
.rtc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  align-content: start;   /* a tall panel must not stretch the rows */
}
@container (max-width: 900px) { .rtc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 560px) { .rtc-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.rtc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 176px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--rtc-line);
  border-radius: 14px;
  background: var(--rtc-bg);
  color: var(--rtc-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s cubic-bezier(.22, 1, .36, 1);
  -webkit-tap-highlight-color: transparent;
}
.rtc:hover {
  border-color: color-mix(in srgb, var(--rtc-a) 38%, var(--rtc-line));
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}
.rtc:active { transform: translateY(0) scale(.99); transition-duration: .08s; }
.rtc:focus { outline: none; }
.rtc:focus-visible {
  outline: 2px solid var(--rtc-a);
  outline-offset: 2px;
  border-color: color-mix(in srgb, var(--rtc-a) 50%, var(--rtc-line));
}
.rtc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rtc-ic {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rtc-tile);
  color: var(--rtc-a);
  transition: background .18s ease, color .18s ease;
}
.rtc-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rtc:hover .rtc-ic, .rtc:focus-visible .rtc-ic { background: var(--rtc-a); color: #fff; }
.rtc-title {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--rtc-ink);
  overflow-wrap: anywhere;
}
.rtc-desc {
  display: block;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--rtc-ink2);
  overflow-wrap: anywhere;
}
.rtc-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rtc-desc + .rtc-foot { margin-top: auto; }
.rtc-meta {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--rtc-ink3);
}
.rtc-sched {
  flex: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rtc-tile);
  color: var(--rtc-go);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.rtc-sched::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rtc-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--rtc-go);
  white-space: nowrap;
}
.rtc-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s cubic-bezier(.22, 1, .36, 1); }
.rtc:hover .rtc-go svg, .rtc:focus-visible .rtc-go svg { transform: translateX(3px); }

/* loading: the same box, no words */
.rtc.is-skel { cursor: default; pointer-events: none; }
.rtc.is-skel .rtc-ic, .rtc-skl { background: color-mix(in srgb, var(--rtc-ink3) 14%, transparent); }
.rtc-skl { display: block; height: 12px; border-radius: 6px; margin-top: 12px; width: 92%; }
.rtc-skl.is-short { width: 58%; }

/* dark — only where the page itself goes dark */
:root[data-theme="dark"] .rtc-page {
  --rtc-bg: #141b24; --rtc-line: #263041; --rtc-ink: #e6edf5; --rtc-ink2: #b4bfcd; --rtc-ink3: #8b97a8;
  --rtc-tile: color-mix(in srgb, var(--rtc-a) 26%, #141b24);
  --rtc-go: color-mix(in srgb, var(--rtc-a) 45%, #fff);
}
:root[data-theme="dark"] .rtc-ic, :root[data-theme="dark"] .rtc-ph-ic { color: var(--rtc-go); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rtc-page.rtc-auto-dark {
    --rtc-bg: #141b24; --rtc-line: #263041; --rtc-ink: #e6edf5; --rtc-ink2: #b4bfcd; --rtc-ink3: #8b97a8;
    --rtc-tile: color-mix(in srgb, var(--rtc-a) 26%, #141b24);
    --rtc-go: color-mix(in srgb, var(--rtc-a) 45%, #fff);
  }
  :root:not([data-theme="light"]) .rtc-auto-dark .rtc-ic, :root:not([data-theme="light"]) .rtc-auto-dark .rtc-ph-ic { color: var(--rtc-go); }
  :root:not([data-theme="light"]) .rtc-auto-dark .rtc:hover .rtc-ic, :root:not([data-theme="light"]) .rtc-auto-dark .rtc:focus-visible .rtc-ic { color: #fff; }
}
:root[data-theme="dark"] .rtc:hover .rtc-ic, :root[data-theme="dark"] .rtc:focus-visible .rtc-ic { color: #fff; }
@media (max-width: 600px) { .rtc-page { padding: 16px 14px 18px; border-radius: 16px; } }

@media (prefers-reduced-motion: reduce) { .rtc, .rtc-ic, .rtc-go svg { transition: none; } .rtc:hover { transform: none; } }
