/* Vaulteric Hub — visual identity.
   Matched to vaultericsoftware.com: warm paper ground with soft blue/gold
   glows, ink text, one blue accent, navy for emphasis, Inter headings.
   Deliberately a single light theme. Tokens: see the Vaulteric Hub design system. */

:root {
  color-scheme: light;
  --bg: #f5f0e7;
  --surface: #fcfaf5;
  --surface-alt: #fcfaf5;
  --surface-solid: #fcfaf5;
  --fg: #17221f;
  --muted: #5d6863;
  --muted-2: #5d6863;
  --muted-3: #8a8474;
  --muted-4: #5d6863;
  --line: #d9d3c8;
  --line-strong: #c4bba9;
  --line-input: #8a8474;
  --accent: #2563d9;
  --accent-border: #174cad;
  --accent-bg: #e8f0ff;
  --ok: #1a6b43;
  --ok-bg: #e3f3e9;
  --ok-border: #b7ddc4;
  --trial: #174cad;
  --trial-bg: #e8f0ff;
  --trial-border: #acc2ec;
  --warn: #a5401f;
  --warn-bg: #f6e2da;
  --warn-border: #e6b79f;
  --bad: #8c3f36;
  --bad-bg: #f3e4e0;
  --bad-border: #ddb9b0;
  --unknown: #5d6863;
  --unknown-bg: #ece6da;
  --unknown-border: #d9d3c8;
  --navy: #112960;
  --navy-light: #1a418f;
  --radius: 13px;
  --radius-sm: 5px;
  --radius-lg: 17px;
  --shadow-hard: 4px 4px 0 rgba(18, 49, 114, 0.22);
  --shadow-lift: 0 12px 23px rgba(34, 90, 202, 0.3);
  --shadow-card: 0 10px 24px rgba(77, 73, 64, 0.045);
  --sidebar-w: 236px;
}

* {
  box-sizing: border-box;
}

/* Author `display` rules beat the UA stylesheet's `[hidden] { display: none }`,
   so any element given `display: flex`/`grid` below would ignore its own
   `hidden` attribute. Both the auth pages and the app shell rely on `hidden`
   to keep content out of sight until data is ready — this keeps that working. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(circle at 86% 3%, rgba(198, 219, 255, 0.62), transparent 24rem),
    radial-gradient(circle at 6% 32%, rgba(241, 218, 176, 0.38), transparent 25rem),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Each page has one visible heading. Older shells paired an eyebrow label
   with an H1 that repeated the same idea; keep the semantic H1 and remove the
   visual double-header without changing routing or content structure. */
section[data-view] > .eyebrow,
section[data-view] > .page-head .eyebrow,
.auth-card .eyebrow {
  display: none;
}

.status {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Result lines start empty and are filled in on demand; an empty one must not
   reserve vertical space inside a card or a table cell. */
.status:empty {
  display: none;
}

.subtle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.subtle.small {
  font-size: 0.8rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------------- */
/* Buttons and form controls                                                 */
/* ------------------------------------------------------------------------- */

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.15s ease, background 0.2s ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.06);
}

/* The website's primary button: offset block shadow, 2px lift on hover.
   Only the plain, unclassed button gets it — classed buttons (secondary,
   danger, pills, menu rows) keep their own look. */
button:not([class]) {
  box-shadow: var(--shadow-hard);
}

button:not([class]):hover:not(:disabled) {
  filter: none;
  background: var(--accent-border);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

button:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

button[disabled] {
  opacity: 0.6;
  cursor: default;
}

button.secondary {
  background: var(--surface-solid);
  color: var(--fg);
  border: 1px solid var(--line-input);
  font-weight: 650;
  box-shadow: none;
}

button.secondary:hover:not(:disabled) {
  filter: none;
  transform: none;
  background: var(--surface-alt);
  border-color: var(--muted-3);
  box-shadow: 0 3px 10px rgba(23, 34, 31, 0.06);
}

button.danger {
  background: transparent;
  color: var(--bad);
  border: 1px solid var(--bad);
  font-weight: 650;
  box-shadow: none;
}

button.danger:hover:not(:disabled) {
  filter: none;
  transform: none;
  background: var(--bad-bg);
  box-shadow: none;
}

button.small {
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  cursor: pointer;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.15s ease, background 0.2s ease;
}

a.button:hover {
  filter: none;
  background: var(--accent-border);
  color: #fff;
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

a.button:active {
  transform: none;
  box-shadow: none;
}

a.button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

a.button.secondary {
  background: var(--surface-solid);
  color: var(--fg);
  border: 1px solid var(--line-input);
  font-weight: 650;
  box-shadow: none;
}

a.button.secondary:hover {
  transform: none;
  background: var(--surface-alt);
  color: var(--fg);
  border-color: var(--muted-3);
  box-shadow: 0 3px 10px rgba(23, 34, 31, 0.06);
}

.link-button {
  background: transparent;
  border: none;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

input,
select {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-input);
  background: var(--surface-solid);
  color: var(--fg);
  width: 100%;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

label.grow,
.row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.row.spread {
  align-items: center;
  justify-content: space-between;
}

.row .grow {
  flex: 1 1 12rem;
}

.choice {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choice legend {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 0.35rem;
}

.choice label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  cursor: pointer;
}

.choice input {
  margin-top: 0.2rem;
  flex: none;
  width: auto;
}

/* ------------------------------------------------------------------------- */
/* Auth pages (sign-in / sign-up)                                            */
/* ------------------------------------------------------------------------- */

body.auth {
  display: flex;
  flex-direction: column;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 3px solid var(--accent);
  border-top-width: 5px;
  border-radius: 2px;
  transform: rotate(45deg);
  flex: none;
}

.auth-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.auth-header .tag {
  margin-left: auto;
  color: var(--muted-4);
  font-size: 12px;
  font-weight: 650;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(22, 33, 58, 0.08);
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 740;
}

.auth-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.signin {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.signin label {
  font-size: 0.85rem;
  color: var(--muted);
}

.signin button[type="submit"] {
  width: 100%;
  margin-top: 6px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: var(--muted-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.alt {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.alt a {
  color: var(--accent);
}

#show-signup {
  display: block;
  margin: 0 auto;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 20px;
  color: var(--muted-3);
  font-size: 11px;
}

.auth-footer a {
  color: var(--muted-3);
}

/* ------------------------------------------------------------------------- */
/* App shell (customer Hub + admin) — sidebar, topbar, content column        */
/* ------------------------------------------------------------------------- */

.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: var(--sidebar-w);
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 4px 18px;
}

.brand-name {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-sub {
  color: var(--muted-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.org-switch {
  position: relative;
  margin-bottom: 16px;
}

.org-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.org-pill:hover {
  border-color: var(--accent-border);
}

.org-pill-caret {
  flex: none;
  color: var(--muted-3);
  font-size: 12px;
}

.org-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  padding: 4px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}

.org-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  font-size: 13px;
}

.org-menu button:hover {
  background: var(--surface);
}

.org-menu .org-menu-role {
  color: var(--muted-3);
  font-size: 11px;
}

.org-menu hr {
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.org-menu .org-menu-add {
  color: var(--accent-border);
}

.org-pill-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.org-pill-text {
  min-width: 0;
}

.org-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent-border);
  font-size: 12px;
  font-weight: 800;
}

.org-pill-name {
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.org-pill-meta {
  margin: 2px 0 0;
  color: var(--muted-3);
  font-size: 10px;
  line-height: 1.4;
}

.plan-badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--trial);
  background: var(--trial-bg);
  border: 1px solid var(--trial-border);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Fill the sidebar so a `.nav-group-foot` (News/Support in the customer Hub,
     Sign out in the admin panel) can `margin-top: auto` itself to the bottom. */
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--fg);
  background: transparent;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.nav-link:hover:not(.active) {
  background: color-mix(in srgb, var(--line) 55%, transparent);
}

.nav-link.active {
  font-weight: 750;
  color: var(--accent-border);
  background: var(--accent-bg);
}

.nav-icon {
  flex: none;
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--muted-4);
}

.nav-link.active .nav-icon {
  color: var(--accent-border);
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-foot .nav-link {
  color: var(--muted);
  font-weight: 600;
}

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-content {
  padding: 40px 48px 64px;
  max-width: 1080px;
  width: 100%;
}

@media (max-width: 860px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    gap: 10px;
  }

  .sidebar-brand {
    padding: 0;
  }

  .org-pill {
    display: none;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sidebar-foot {
    margin-top: 0;
    margin-left: auto;
    padding-top: 0;
    border-top: none;
    flex-direction: row;
  }

  .app-content {
    padding: 24px 20px 48px;
  }
}

/* ------------------------------------------------------------------------- */
/* Dashboard content                                                         */
/* ------------------------------------------------------------------------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.head-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

section[data-view] {
  margin: 0 0 2.5rem;
}

section[data-view] h1 {
  margin: 0 0 28px;
  font-size: 32px;
  font-weight: 740;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

section h2 {
  font-size: 1.05rem;
  margin: 0;
}

/* A banner, not an alert. The licensing service being unreachable is our
   problem to report honestly, not the customer's problem to panic about. */
.banner {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  margin-bottom: 1.5rem;
}

.banner.warn {
  border-color: var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn);
}

.banner.ok {
  border-color: var(--ok-border);
  background: var(--ok-bg);
  color: var(--ok);
}

/* --- loading skeletons -----------------------------------------------------
   Shown immediately on load, in place of the bare "Checking your session…"
   text this used to be, and in place of the sidebar nav while it waits on
   /api/org to know which links a role can even see. Purely decorative — real
   content replaces these elements outright rather than layering on top, so
   there is nothing here for a screen reader to announce. */

/* Restarts every time an element goes display:none -> visible, which is
   exactly what the `hidden` attribute toggle already does for view sections
   (applyRoute) and what a fresh append() does for cards — no JS changes
   needed for either to pick this up. */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

section[data-view] {
  animation: fade-in-up 0.32s ease both;
}

.cards > .card,
.cards > .catalog-card {
  animation: fade-in-up 0.32s ease both;
}

/* A light hand-authored stagger, not a loop — this codebase shows at most a
   handful of cards per grid (3 on the dashboard, rarely more on Products), so
   nth-child is simpler than wiring per-card delays through JS for the same
   result. */
.cards > :nth-child(1) { animation-delay: 0.02s; }
.cards > :nth-child(2) { animation-delay: 0.07s; }
.cards > :nth-child(3) { animation-delay: 0.12s; }
.cards > :nth-child(4) { animation-delay: 0.17s; }
.cards > :nth-child(5) { animation-delay: 0.22s; }

.stat-grid > .stat-tile {
  animation: fade-in-up 0.32s ease both;
}
.stat-grid > :nth-child(1) { animation-delay: 0.02s; }
.stat-grid > :nth-child(2) { animation-delay: 0.06s; }
.stat-grid > :nth-child(3) { animation-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  section[data-view],
  .cards > .card,
  .cards > .catalog-card,
  .stat-grid > .stat-tile,
  .skeleton {
    animation: none;
  }
}

.skeleton {
  background: var(--line);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.skel-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skel-nav-link {
  height: 36px;
  margin: 1px 0;
}

.skel-eyebrow {
  width: 90px;
  height: 11px;
  margin-bottom: 12px;
}

.skel-heading {
  width: 200px;
  height: 26px;
  margin-bottom: 26px;
}

.skel-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.skel-stat {
  height: 84px;
  border-radius: var(--radius);
}

.skel-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}

.skel-card {
  height: 168px;
  border-radius: var(--radius);
}

.banner .link-button {
  margin-left: 0.25rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-tile {
  padding: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-tile:hover {
  box-shadow: 0 10px 26px rgba(23, 34, 31, 0.06);
  transform: translateY(-1px);
}

.stat-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stat-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  color: var(--accent-border);
}

.stat-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 750;
}

.stat-value small {
  color: var(--muted-3);
  font-size: 15px;
  font-weight: 600;
}

.stat-bar-track {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  box-shadow: 0 10px 26px rgba(23, 34, 31, 0.06);
  transform: translateY(-1px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.pill {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill.ok {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-border);
}

.pill.bad {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: var(--bad-border);
}

.pill.warn {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

/* "Status unavailable" must not look like a status. Muted and dashed, so it
   reads as an absence of information rather than a verdict. */
.pill.unknown {
  color: var(--unknown);
  background: var(--unknown-bg);
  border-color: var(--unknown-border);
  border-style: dashed;
}

.fields {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.88rem;
}

.fields .field {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.5rem;
}

.fields dt {
  color: var(--muted);
}

.fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* The subscription state block. A left edge carries the urgency so the copy
   itself can stay calm — `grace` and `locked` are the states where a customer
   is already anxious, and shouting at them in red body text does not help. */
.plan {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.plan.grace,
.plan.locked,
.plan.stopped,
.plan.unknown {
  border-top: none;
  border-left: 3px solid var(--line);
  padding: 0.5rem 0 0.5rem 0.7rem;
  margin-top: 0.3rem;
}

.plan.grace {
  border-left-color: var(--warn);
}

.plan.locked,
.plan.stopped {
  border-left-color: var(--bad);
}

.plan-line {
  margin: 0;
}

/* "Your projects and files are safe" — the reassurance leads, in green,
   because it is the thing the customer most needs to believe and it is true. */
.plan-line.strong {
  font-weight: 700;
  color: var(--ok);
}

.plan-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* "Manage billing" — the actual fix, not just the instruction to go find one.
   A real bordered button, not a subtle text link: in the grace/locked states
   this is the single most important control on the page, and dunning UX
   research is consistent that self-service payment recovery only works when
   it's impossible to miss. */
.plan-billing-manage {
  margin-top: 0.2rem;
}

.plan-manage-billing {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--accent-border);
  background: var(--accent-bg);
  color: var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.plan-manage-billing:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

.plan-manage-billing:disabled {
  opacity: 0.6;
  cursor: default;
}

.plan-billing-status {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: var(--warn);
}

.plan-billing-status:empty {
  display: none;
}

.card-actions {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.catalog-card:hover {
  box-shadow: 0 10px 26px rgba(23, 34, 31, 0.06);
  transform: translateY(-1px);
}

.catalog-card .price {
  margin: 4px 0;
  font-size: 22px;
  font-weight: 750;
}

.catalog-card .price small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 550;
}

.members {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.members th,
.members td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.members th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.members td.right {
  text-align: right;
}

.members tr.muted td {
  color: var(--muted-3);
}

.tag {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}

.invite {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 1rem;
}

.invite h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.news-post {
  padding: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.news-post h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 750;
}

.news-date {
  color: var(--muted-3);
  font-size: 11px;
  margin-bottom: 8px;
}

.news-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
}

.news-post-compact {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.news-post-compact:last-child {
  border-bottom: none;
}

.news-post-compact .news-title {
  font-size: 13px;
  font-weight: 700;
}

.dash-news {
  margin-bottom: 32px;
}

.badge-draft {
  color: var(--unknown);
  background: var(--unknown-bg);
  border: 1px solid var(--unknown-border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-published {
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.news-admin-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-admin-row .row.spread > div:first-child {
  min-width: 0;
}

textarea {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-input);
  background: var(--surface-solid);
  color: var(--fg);
  width: 100%;
  resize: vertical;
  min-height: 6rem;
}

footer {
  color: var(--muted-3);
  font-size: 0.8rem;
}

/* Wide content must scroll inside itself rather than pushing the page sideways. */
@media (max-width: 32rem) {
  .members {
    display: block;
    overflow-x: auto;
  }

  .fields .field {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Support: tickets, live chat, and the first <dialog> in this codebase ---
   The native element handles focus trapping, Escape-to-close, and top-layer
   stacking on its own; this just re-skins its default UA chrome to match the
   warm cream/navy palette instead of the browser's plain white box. */

dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg);
  padding: 1.25rem 1.4rem 1.4rem;
  width: min(30rem, calc(100vw - 2rem));
  box-shadow: 0 20px 48px rgba(23, 34, 31, 0.18);
}

dialog::backdrop {
  background: rgba(23, 34, 31, 0.45);
}

dialog h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}

dialog label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.7rem 0 0.3rem;
}

dialog label:first-of-type {
  margin-top: 0;
}

.section-title {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1.5rem 0 0.6rem;
}

#ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ticket-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ticket-card:hover {
  box-shadow: 0 6px 16px rgba(23, 34, 31, 0.06);
}

.ticket-card .ticket-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.chat-thread, #ticket-thread-messages {
  max-height: min(40vh, 22rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.6rem 0;
}

.msg {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
}

.msg .msg-who {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.msg.mine {
  background: var(--accent-bg);
  border-color: var(--accent-border);
  align-self: flex-end;
}

#chat-form, #ticket-reply-form {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

#chat-form input, #ticket-reply-form input {
  flex: 1;
}

/* ------------------------------------------------------------------------- */
/* Redesign: grouped sidebar nav + the new account views                     */
/* (Account Dashboard import — matches the warm cream/navy palette above.)    */
/* ------------------------------------------------------------------------- */

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.nav-group:last-child {
  margin-bottom: 0;
}

.nav-group-label {
  margin: 2px 0 4px;
  padding: 0 12px;
  color: var(--muted-3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-group-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* A generic content card — the redesign's equivalent of `.catalog-card`, used
   across Subscription / System Status / Security / Analytics / Referrals. */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.panel > .stat-label {
  margin-bottom: 6px;
}

/* Compact list of rows inside a .panel (workspaces, linked installs). */
.ws-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.ws-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.ws-row:first-child {
  border-top: 0;
}

/* S10 paid Studio portfolio uses the existing Hub palette and surfaces. */
.portfolio-context { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.portfolio-plan { border: 1px solid var(--accent-border); border-radius: 5px; padding: 3px 7px; color: var(--accent); background: var(--accent-bg); font-size: 10px; }
.portfolio-page-head h1, .studio-portfolio h2 { overflow-wrap: anywhere; }
.portfolio-page-head .subtle { margin-bottom: 0; }
.portfolio-back { color: var(--muted); text-decoration: none; font-size: 13px; }
.portfolio-back:hover { color: var(--accent); }
.portfolio-refresh-status { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.studio-portfolio { margin-bottom: 28px; }
.portfolio-company-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.portfolio-company-head h2 { margin: 0; font-size: 20px; }
.portfolio-company-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.portfolio-open-app { flex-shrink: 0; color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; }
.portfolio-open-app:hover { text-decoration: underline; }
.portfolio-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.portfolio-project { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 20px; }
.portfolio-project-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.portfolio-project-avatar { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--accent); background: var(--accent-bg); font-size: 14px; font-weight: 700; }
.portfolio-project h3 { margin: 18px 0 6px; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.portfolio-project .portfolio-project-caption { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.portfolio-project-facts { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.portfolio-project-facts dt { margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.portfolio-project-facts dd { margin: 0; font-size: 12px; line-height: 1.5; }
.portfolio-project-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.portfolio-primary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent-border); border-radius: var(--radius-sm); padding: 9px 12px; background: var(--accent); color: white; text-decoration: none; font-size: 12px; font-weight: 600; }
.portfolio-primary:hover { filter: brightness(0.95); }
.portfolio-project-actions button.link-button { padding: 0; font-size: 12px; }
.portfolio-note { margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.6; }
.portfolio-note strong { color: var(--fg); font-weight: 600; }
.portfolio-primary:focus-visible, .portfolio-open-app:focus-visible, .portfolio-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.org-pill-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.org-pill-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-menu button > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.org-menu-role { flex-shrink: 0; }
@media (max-width: 1100px) { .portfolio-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 650px) {
  .portfolio-project-grid { grid-template-columns: minmax(0,1fr); }
  .portfolio-company-head { align-items: flex-start; flex-direction: column; }
  .portfolio-page-head { align-items: flex-start; }
  .portfolio-page-head .head-actions { justify-content: flex-start; }
}

.table-scroll {
  overflow-x: auto;
}

.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.filter-row select {
  min-width: 12rem;
  max-width: 100%;
}

/* Compact dashboard licence card. */
.card.card-compact {
  padding: 14px 16px;
  gap: 0.35rem;
}

.assign-static {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Products: the inline "assign a seat" picker ------------------------- */

.assign {
  position: relative;
}

.assign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.assign-label {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.assign-email {
  font-size: 0.9rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.assign-unassigned {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted-3);
}

.assign-pop {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  width: min(280px, 100%);
  margin-top: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(23, 34, 31, 0.16);
}

.assign-pop-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.assign-pop-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 170px;
  overflow-y: auto;
}

.assign-pop-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  padding: 7px 8px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.assign-pop-item:hover:not(:disabled) {
  filter: none;
  box-shadow: none;
  background: var(--bg);
}

.assign-pop-email {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--fg);
}

.assign-pop-role {
  font-size: 0.72rem;
  color: var(--muted-3);
}

.assign-pop-foot:not(:empty) {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.danger-link {
  color: var(--bad);
}

/* --- Activity Log ------------------------------------------------------- */

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.activity-time {
  flex: none;
  width: 108px;
  padding-top: 2px;
  color: var(--muted-3);
  font-size: 0.78rem;
}

.activity-detail {
  flex: 1;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.activity-actor {
  margin-top: 2px;
  color: var(--muted-3);
  font-size: 0.76rem;
}

/* A fourth pill tone — blue — for informational Activity rows (purchases,
   plan/billing). Same shape as `.pill.ok` etc. above. */
.pill.info {
  color: var(--trial);
  background: var(--trial-bg);
  border-color: var(--trial-border);
}

/* --- System Status ---------------------------------------------------------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.status-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-name {
  font-weight: 650;
}

/* 24-hour history strip — a status.anthropic.com-style row per service. Green
   track with incident/override segments overlaid proportionally to their real
   duration (see renderUptimeBars in hub.js) — not snapped to fixed buckets, so
   a brief blip stays visually brief. */
.uptime-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.uptime-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  align-items: center;
  gap: 12px;
}

.uptime-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uptime-bar {
  position: relative;
  height: 30px;
  border-radius: 2px;
  background: var(--ok);
  overflow: hidden;
}

.uptime-seg {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 3px;
}

.uptime-seg.warn {
  background: var(--warn);
}

.uptime-seg.bad {
  background: var(--bad);
}

.uptime-axis {
  display: flex;
  justify-content: space-between;
  margin-left: calc(9rem + 12px);
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted-3);
}

@media (max-width: 640px) {
  .uptime-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .uptime-axis {
    margin-left: 0;
  }
}

/* --- Subscription --------------------------------------------------------- */

.sub-plan-name {
  margin: 4px 0;
  font-size: 22px;
  font-weight: 750;
}

/* --- Analytics (sample) ------------------------------------------------------ */

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  padding: 12px 4px 0;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}

.bar-fill {
  width: 100%;
  max-width: 28px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}

.bar-label {
  font-size: 10px;
  color: var(--muted-3);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.rating-star {
  width: 44px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Left-hand label in an Analytics breakdown row (event name, build, platform) —
   wider and text-aligned, where .rating-star is a fixed narrow "5★". */
.breakdown-key {
  width: 8.5rem;
  flex: none;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rating-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.security-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.setup-qr {
  display: block;
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0.5rem;
}

.setup-secret,
.recovery-codes {
  display: block;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: 600 0.82rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.small-link {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent-border);
  font-size: 0.8rem;
}

.rating-count {
  width: 32px;
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Referrals (sample) --------------------------------------------------- */

.referral-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

/* On the narrow layout the sidebar is a horizontal strip — flatten the groups
   into it and drop their headings, matching the pre-redesign single-row nav. */
@media (max-width: 860px) {
  .nav-group {
    display: contents;
  }

  .nav-group-label {
    display: none;
  }

  .nav-group-foot {
    border-top: none;
  }
}

/* ------------------------------------------------------------------------- */
/* Workspace picker (sign-in step after the email link / 2FA)                */
/* ------------------------------------------------------------------------- */

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
}

button.pick-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name badge" "meta badge";
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--fg);
}

button.pick-row:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.pick-name {
  grid-area: name;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pick-meta {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.pick-badge {
  grid-area: badge;
  padding: 3px 9px;
  border: 1px solid var(--trial-border);
  border-radius: 999px;
  background: var(--trial-bg);
  color: var(--trial);
  font-size: 0.7rem;
  font-weight: 750;
}
