/* Components styled after the Tessera frontend's modus components, one section per component, using the
   tokens in tokens.css. Class strings referenced are from frontend/src/components/modus. */

html, body { height: 100%; }
body { font-size: 14px; line-height: 1.5; display: flex; overflow: hidden; }
a { color: var(--color-foreground); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 20px; font-weight: 500; line-height: 28px; margin: 0; color: var(--color-foreground); }  /* FeatureHeader */
h2 { font-size: 16px; font-weight: 500; line-height: 1.5; margin: 0 0 4px; color: var(--color-card-foreground); }  /* CardTitle */
h3 { font-size: 14px; font-weight: 500; margin: 0 0 4px; color: var(--color-foreground); }
p { margin: 0 0 10px; }
strong { font-weight: 500; color: var(--color-foreground); }
.muted { color: var(--color-muted-foreground); }
.small { font-size: 13px; }
.tiny { font-size: 12px; color: var(--color-muted-foreground); }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }
form { margin: 0; }

/* App shell: the 72px rail and the content card -------------------------------------------------- */
.rail {
  width: 72px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 16px 8px; background: var(--color-tessera-primary-0);
}
.rail-top, .rail-bottom { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rail-top { gap: 16px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--logo); }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: auto; display: block; }
.brand .word { font-size: 9px; font-weight: 600; letter-spacing: 0.22em; padding-left: 0.22em; line-height: 1; color: var(--color-foreground); }
.rail-item {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; font: inherit; color: var(--color-foreground); text-decoration: none;
}
.rail-item:hover { text-decoration: none; }
.rail-item .tile { width: 32px; height: 32px; border-radius: var(--radius-lg); display: grid; place-items: center; position: relative; transition: background-color 0.15s; }
.rail-item .tile svg { width: 18px; height: 18px; opacity: 0.7; transition: opacity 0.15s; }
.rail-item:hover .tile { background: color-mix(in oklab, var(--color-foreground) 6%, transparent); }
.rail-item.on .tile { background: color-mix(in oklab, var(--color-foreground) 10%, transparent); }
.rail-item.on .tile svg, .rail-item:hover .tile svg { opacity: 1; }
.rail-item .label { font-size: 11px; line-height: 1; color: color-mix(in oklab, var(--color-foreground) 55%, transparent); }
.rail-item.on .label { color: var(--color-foreground); }
.rail-item .dot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--color-tessera-primary-0); }
.dot.on { background: var(--color-badge-success); }
.dot.off { background: var(--color-badge-warning); }
.rail-item:focus-visible .tile, .avatar:focus-visible { outline: 1px solid var(--color-ring); outline-offset: 2px; }

/* Avatar (modus Avatar, size-8, filled with the Tessera accent as in the frontend sidebar) */
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--color-tessera-secondary-1);
  color: #ffffff; font-size: 14px; font-weight: 500; user-select: none; border: 0; padding: 0; font-family: inherit;
}

/* DropdownMenu (menu-styles.ts: rounded-lg border p-2 shadow; items h-8 13px rounded-md, hover primary/10) */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu .pop {
  position: absolute; left: calc(100% + 10px); bottom: 0; width: 248px; z-index: 30; padding: 8px;
  background: var(--color-popover); color: var(--color-popover-foreground);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-menu);
}
.menu .who { padding: 4px 16px 8px; margin: 0 -8px 4px; border-bottom: 1px solid var(--color-border); }
.menu .who .name { color: var(--color-foreground); font-size: 13px; font-weight: 500; }
.menu .item {
  display: flex; width: 100%; height: 32px; align-items: center; gap: 8px; padding: 0 8px; border-radius: var(--radius-md);
  background: none; border: 0; color: var(--color-foreground); font: inherit; font-size: 13px; line-height: 1.428571; text-align: left;
}
.menu .item:hover, .menu .item:focus-visible { background: color-mix(in oklab, var(--color-primary) 10%, transparent); color: var(--color-accent-foreground); text-decoration: none; }
.menu .item:focus-visible { outline: 2px solid var(--color-ring); outline-offset: -2px; }
.menu .item svg { width: 16px; height: 16px; opacity: 0.7; }

main.content {
  flex: 1; min-width: 0; margin: 8px 8px 8px 0; overflow: hidden; display: flex; position: relative;
  background: var(--color-tessera-foreground-0); border: 1px solid var(--color-input); border-radius: var(--radius-xl);
}
.main-col { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.page { flex: 1; min-width: 0; min-height: 0; overflow: auto; padding: 24px 24px 56px; }

/* Page header bar (frontend PageLayout header: min-h-12, border-b white/10, px-2 + content px-2) */
.topbar { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--color-border); }
.topbar .crumbs { flex: 1; min-width: 0; margin: 0; flex-wrap: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.vsep { width: 1px; height: 20px; background: var(--color-border); margin: 0 4px; }
/* Icon button (Button variant="outline" size="icon-sm": 32px, rounded-lg, border foreground/25) */
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; flex: none; padding: 0; border-radius: var(--radius-lg);
  border: 1px solid color-mix(in oklab, var(--color-foreground) 25%, transparent); background: transparent; color: var(--color-foreground);
  transition: border-color 0.15s, background-color 0.15s;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { border-color: color-mix(in oklab, var(--color-foreground) 45%, transparent); text-decoration: none; }
.icon-btn:focus-visible { outline: 1px solid var(--color-ring); outline-offset: 2px; }
.icon-btn.ghost { border-color: transparent; }
.icon-btn.ghost:hover { border-color: transparent; background: color-mix(in oklab, var(--color-foreground) 8%, transparent); }
.icon-btn.ghost svg { opacity: 0.7; }
.icon-btn.ghost:hover svg { opacity: 1; }
th.actions, td.actions { width: 48px; text-align: right; padding-right: 12px; }
td.actions { padding-block: 4px; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.agent-btn svg { width: 14px; height: 14px; color: var(--color-tlai-blue); }
.agent-btn[aria-pressed='true'] { background-color: color-mix(in oklab, var(--color-foreground) 10%, transparent); }
.icon-btn[aria-pressed='true'] { background: color-mix(in oklab, var(--color-foreground) 8%, transparent); }
.page form.card, .page .narrow { max-width: 920px; }
.page.wide { max-width: none; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head p { color: var(--color-muted-foreground); margin: 4px 0 0; }

/* Breadcrumb (modus Breadcrumb: text-sm white/60, chevron separators, gap-2.5) */
.crumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; color: color-mix(in oklab, var(--color-foreground) 60%, transparent); }
.crumbs a, .crumbs .current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 16px; }
.crumbs .current { color: color-mix(in oklab, var(--color-foreground) 80%, transparent); flex-shrink: 0.5; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--color-foreground); text-decoration: none; }
.crumbs .chev { width: 16px; height: 16px; color: var(--color-muted-foreground); flex: none; }

/* Card (ui/base Card: bg-card, ring-1 foreground/10, rounded-xl, py-6 px-6) ------------------------- */
.card {
  background: var(--color-card); color: var(--color-card-foreground); border-radius: var(--radius-xl); padding: 24px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-foreground) 10%, transparent), 0 1px 2px 0 rgb(0 0 0 / 0.05);
  margin-bottom: 16px;
}
.card.flat { background: transparent; box-shadow: 0 0 0 1px var(--color-border); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } .rail .label { display: none; } }
.center { text-align: center; }
hr.sep { border: 0; height: 1px; background: var(--color-border); margin: 16px 0; }  /* Separator */

/* Button (button-styles.ts) ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; user-select: none;
  height: 36px; padding: 0 12px; border-radius: var(--radius-lg); border: 1px solid transparent; background-clip: padding-box;
  font: inherit; font-size: 14px; font-weight: 400; line-height: 20px; text-decoration: none; transition: background-color 0.15s, border-color 0.15s;
  /* variant="secondary" */
  border-color: color-mix(in oklab, var(--color-foreground) 25%, transparent);
  background-color: color-mix(in oklab, var(--color-foreground) 5%, transparent); color: var(--color-foreground);
}
.btn:hover { background-color: color-mix(in oklab, var(--color-foreground) 10%, transparent); text-decoration: none; }
.btn:active { background-color: color-mix(in oklab, var(--color-foreground) 15%, transparent); }
.btn:focus-visible { outline: 1px solid var(--color-ring); outline-offset: 2px; }
.btn svg { width: 1em; height: 1em; flex: none; pointer-events: none; }
.btn.primary { border: 0; background-color: var(--button-default); color: var(--button-default-foreground); }
.btn.primary:hover { background-color: color-mix(in oklab, var(--button-default) 90%, transparent); }
.btn.primary:active { background-color: color-mix(in oklab, var(--button-default) 80%, transparent); }
.btn.outline { background-color: transparent; }
.btn.outline:hover { background-color: transparent; border-color: color-mix(in oklab, var(--color-foreground) 45%, transparent); }
.btn.ghost { border: 0; background-color: transparent; }
.btn.ghost:hover { background-color: color-mix(in oklab, var(--color-foreground) 6%, transparent); }
.btn.danger { border-color: transparent; background-color: color-mix(in oklab, var(--color-destructive) 20%, transparent); color: var(--color-destructive); }
.btn.danger:hover { background-color: color-mix(in oklab, var(--color-destructive) 30%, transparent); }
.btn.danger:focus-visible { outline-color: var(--color-destructive); }
.btn.small { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.xs { height: 24px; padding: 0 8px; gap: 4px; font-size: 12px; border-radius: var(--radius-md); }
.btn[disabled], .btn.disabled { opacity: 0.5; pointer-events: none; }
/* Button variant="link" */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--color-muted-foreground); text-decoration: none; text-underline-offset: 4px; }
.linkbtn:hover { color: var(--color-foreground); text-decoration: underline; }

/* Alert (modus Alert: rounded-lg border px-4 py-3 text-sm; title font-medium, description muted) ------- */
.banner {
  border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; border: 1px solid var(--color-border);
  background: var(--color-card); color: var(--color-muted-foreground);
}
.banner strong { color: var(--color-card-foreground); font-weight: 500; }
.banner.good {
  border-color: color-mix(in oklab, var(--color-status-success) 40%, transparent);
  background: color-mix(in oklab, var(--color-status-success) 10%, transparent); color: var(--color-badge-success);
}
.banner.warn {
  border-color: color-mix(in oklab, var(--color-tlai-amber) 40%, transparent);
  background: color-mix(in oklab, var(--color-tlai-amber) 10%, transparent); color: var(--color-badge-warning);
}
.banner.good strong, .banner.warn strong { color: inherit; }
.banner.bad { color: color-mix(in oklab, var(--color-destructive) 90%, transparent); }
.banner.bad strong { color: var(--color-destructive); }

/* Badge (variant="tonal": h-6.5 rounded-[4px] px-2 text-xs font-medium, tone/10 fill) ----------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: fit-content; flex-shrink: 0; white-space: nowrap;
  height: 26px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; line-height: 16px;
  color: var(--color-badge-neutral); background: color-mix(in oklab, var(--color-badge-neutral) 10%, transparent);
}
.pill.good { color: var(--color-badge-success); background: color-mix(in oklab, var(--color-badge-success) 10%, transparent); }
.pill.warn { color: var(--color-badge-warning); background: color-mix(in oklab, var(--color-badge-warning) 10%, transparent); }
.pill.bad { color: var(--color-badge-danger); background: color-mix(in oklab, var(--color-badge-danger) 10%, transparent); }
.pill.accent { color: var(--color-badge-info); background: color-mix(in oklab, var(--color-badge-info) 10%, transparent); }

/* Table (DataTable / TableNextBrowse: rounded header bar on the secondary surface, 13px cells,
   inset row dividers, rounded hover fill) ------------------------------------------------------------ */
.table-wrap { background: var(--table-surface); border-radius: var(--radius-lg); overflow: auto; }
.card .table-wrap { background: transparent; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
thead th {
  height: 40px; padding: 0 8px; text-align: left; white-space: nowrap; vertical-align: middle;
  font-size: 13px; font-weight: 500; color: var(--table-foreground); background: var(--table-header-surface);
  border-top: 1px solid var(--table-border); border-bottom: 1px solid var(--table-border);
}
thead th:first-child { padding-left: 16px; border-left: 1px solid var(--table-border); border-radius: 8px 0 0 8px; }
thead th:last-child { border-right: 1px solid var(--table-border); border-radius: 0 8px 8px 0; }
tbody tr {
  background-image: linear-gradient(var(--table-border), var(--table-border));
  background-size: calc(100% - 16px) 1px; background-position: center bottom; background-repeat: no-repeat;
}
tbody tr:last-child { background-image: none; }
td { height: 40px; padding: 10px 8px; vertical-align: top; color: var(--color-foreground); transition: background-color 140ms ease; }
td:first-child { padding-left: 16px; border-radius: 8px 0 0 8px; }
td:last-child { border-radius: 0 8px 8px 0; }
tbody tr:hover td { background-color: var(--table-hover-background); }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.plain thead th { height: 32px; }
table.plain td { height: 36px; padding-block: 8px; }

/* Fields (Label, FormFieldContainer, Input, Textarea, Select trigger) ------------------------------ */
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 400; line-height: 1.25; color: color-mix(in oklab, var(--color-foreground) 80%, transparent); }
.hint { font-size: 12px; font-weight: 400; color: color-mix(in oklab, var(--color-foreground) 60%, transparent); }
.field { margin-bottom: 20px; }
input[type=text], input[type=number], input[type=search], input[type=email], select, textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 14px; color: var(--color-foreground);
  border: 1px solid var(--color-input); border-radius: var(--radius-md); background-color: var(--field-fill);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); outline: none; transition: color 0.15s, box-shadow 0.15s, border-color 0.15s;
}
input[type=text], input[type=number], input[type=search], input[type=email] { height: 36px; padding: 4px 10px; }
textarea { display: block; padding: 8px 10px; min-height: 64px; line-height: 1.5; resize: vertical; field-sizing: content; }
input::placeholder, textarea::placeholder { color: var(--color-muted-foreground); }
input:focus-visible, textarea:focus-visible { border-color: color-mix(in oklab, var(--color-foreground) 50%, transparent); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--color-destructive); }
input:disabled, textarea:disabled, select:disabled { opacity: 0.5; cursor: not-allowed; }
/* Select trigger, size="form": h-9 rounded-lg, input/30 fill that deepens on hover, chevron-down icon */
select {
  height: 36px; padding: 0 32px 0 10px; border-radius: var(--radius-lg); appearance: none; box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
select:hover { background-color: var(--field-fill-hover); }
select:focus-visible { border-color: var(--color-ring); box-shadow: 0 0 0 2px var(--color-ring); }
select option { background: var(--color-popover); color: var(--color-popover-foreground); }

/* Progress (track bg-muted h-1.5 rounded-full, indicator bg-primary) */
.progress { height: 6px; background: var(--color-muted); border-radius: 9999px; overflow: hidden; margin: 8px 0 4px; }
.progress > div { height: 100%; background: var(--color-primary); transition: width 0.4s; }

/* Spinner (lucide Loader2, size-4, animate-spin) */
.spinner {
  width: 16px; height: 16px; display: inline-block; vertical-align: -3px; background: currentColor; animation: spin 1s linear infinite;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toggle (variant="outline" size="sm": h-8 rounded-md border-input, pressed bg-muted) ----------------- */
.verdicts { display: inline-flex; gap: 4px; }
.verdicts button {
  height: 32px; min-width: 32px; padding: 0 8px; border: 1px solid var(--color-input); border-radius: var(--radius-md);
  background: transparent; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); font: inherit; font-size: 13px; font-weight: 500;
  color: var(--color-muted-foreground); transition: color 0.15s, background-color 0.15s;
}
.verdicts button:hover { color: var(--color-foreground); background: var(--color-muted); }
.verdicts button:focus-visible { border-color: var(--color-ring); }
.verdicts button.on { background: var(--color-muted); color: var(--color-foreground); }
/* The pressed verdict keeps its tonal color, as the shortlist's verdict badges do */
.verdicts button.on[data-v="4"], .verdicts button.on[data-v="3"] { color: var(--color-badge-success); background: color-mix(in oklab, var(--color-badge-success) 10%, transparent); border-color: color-mix(in oklab, var(--color-badge-success) 40%, transparent); }
.verdicts button.on[data-v="2"], .verdicts button.on[data-v="1"] { color: var(--color-badge-danger); background: color-mix(in oklab, var(--color-badge-danger) 10%, transparent); border-color: color-mix(in oklab, var(--color-badge-danger) 40%, transparent); }

/* Role page: numbered steps and number tiles -------------------------------------------------------- */
.step { display: grid; grid-template-columns: 32px 1fr auto; gap: 16px; align-items: start; }
.step .num {
  width: 32px; height: 32px; border-radius: var(--radius-lg); display: grid; place-items: center; font-size: 14px; font-weight: 500;
  background: var(--color-muted); color: var(--color-muted-foreground);
}
.step .num.done { background: color-mix(in oklab, var(--color-badge-success) 10%, transparent); color: var(--color-badge-success); }
.step .num.now { background: var(--button-default); color: var(--button-default-foreground); }
.step p { color: var(--color-muted-foreground); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--color-tlai-0); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 12px 16px; }
.kpi .v { font-size: 24px; font-weight: 500; line-height: 32px; color: var(--color-foreground); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 13px; color: var(--color-muted-foreground); }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* A resume laid out as a document (resume_view.render) */
.resume-doc {
  font-size: 14px; line-height: 1.6; color: color-mix(in oklab, var(--color-foreground) 88%, transparent);
  background: var(--color-tlai-0); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px 32px;
}
/* A readable column, like a page, however wide the panel is */
.resume-doc > :not(.resume-zoom) { max-width: 760px; margin-left: auto; margin-right: auto; zoom: var(--resume-zoom, 1); }
/* Zoom: a small control pinned to the resume's top-right corner while it scrolls */
.resume-zoom { position: sticky; top: 0; z-index: 2; height: 0; display: flex; justify-content: flex-end; }
.zoom-pill {
  display: inline-flex; align-items: center; height: 28px; translate: 16px -16px; padding: 0 2px; border-radius: var(--radius-md);
  background: var(--color-popover); border: 1px solid var(--color-border); box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}
.zoom-pill button { height: 24px; min-width: 24px; padding: 0 6px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-foreground); font: inherit; font-size: 13px; cursor: pointer; }
.zoom-pill button:hover { background: color-mix(in oklab, var(--color-foreground) 8%, transparent); }
.zoom-pill .zoom-level { min-width: 44px; font-size: 12px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.resume-doc .r-headline { margin-top: 0; margin-bottom: 4px; font-size: 15px; font-weight: 500; color: var(--color-foreground); }
.resume-doc .r-contact { font-size: 13px; color: var(--color-muted-foreground); margin-bottom: 4px; }
.resume-doc h4 {
  margin-top: 28px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--color-border);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted-foreground);
}
.resume-doc h4:first-child { margin-top: 0; }
.resume-doc .r-entry { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; margin-bottom: 4px; }
.resume-doc h4 + .r-entry { margin-top: 0; }
.resume-doc .r-what { min-width: 0; }
.resume-doc .r-what strong { font-size: 15px; font-weight: 600; color: var(--color-foreground); }
.resume-doc .r-org { margin-left: 8px; color: var(--color-foreground); }
.resume-doc .r-org::before { content: '·'; margin-right: 8px; color: var(--color-muted-foreground); }
.resume-doc .r-when { flex: none; max-width: 45%; text-align: right; font-size: 13px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.resume-doc p { margin-top: 0; margin-bottom: 8px; }
.resume-doc .line { display: flex; justify-content: space-between; gap: 16px; margin-top: 2px; margin-bottom: 2px; }
.resume-doc .line > span:first-child { flex: 1; min-width: 0; }
.resume-doc .line .aside { flex: 0 1 auto; max-width: 45%; text-align: right; color: var(--color-muted-foreground); font-size: 13px; }
.resume-doc ul { margin-top: 4px; margin-bottom: 10px; padding-left: 18px; }
.resume-doc li { margin: 3px 0; padding-left: 2px; }
.resume-doc li::marker { color: var(--color-muted-foreground); }
.resume-doc .r-skills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; margin-bottom: 12px; }
.resume-doc .r-key { font-size: 12px; color: var(--color-muted-foreground); margin-right: 4px; }
.resume-doc .r-chip { padding: 1px 8px; border-radius: var(--radius-sm); font-size: 12px; line-height: 20px; color: var(--color-foreground); background: color-mix(in oklab, var(--color-foreground) 7%, transparent); }
.resume-doc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--color-foreground) 35%, transparent); }

/* Profile links beside an applicant's name: icon-only ghost buttons */
.name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-links { display: inline-flex; gap: 2px; }
.icon-link {
  width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: var(--radius-md); color: var(--color-foreground);
  transition: background-color 0.15s;
}
.icon-link svg { width: 16px; height: 16px; opacity: 0.7; transition: opacity 0.15s; }
.icon-link:hover { background: color-mix(in oklab, var(--color-foreground) 8%, transparent); }
.icon-link:hover svg { opacity: 1; }
.icon-link svg.brand-logo { opacity: 1; border-radius: 3px; }  /* a brand mark keeps its own colors */
.icon-link:focus-visible { outline: 1px solid var(--color-ring); outline-offset: 2px; }

/* A repeatable group inside a card (criteria, knockouts, red flags) */
.rowcard { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; background: var(--color-tlai-0); }
.rowcard .head { margin-bottom: 12px; align-items: center; }
/* Collapsible */
details > summary { font-weight: 500; color: var(--color-foreground); }

/* Sign in */
.login { max-width: 400px; margin: 14vh auto 0; }
.login .brand { margin-bottom: 20px; }
.login .brand svg { width: 34px; }
.login .brand .word { font-size: 11px; }

/* Yes / No (tonal, like the destructive button) */
.btn.yes, .btn.no { border-color: transparent; min-width: 72px; font-weight: 500; }
.btn.yes { background-color: color-mix(in oklab, var(--color-badge-success) 16%, transparent); color: var(--color-badge-success); }
.btn.yes:hover { background-color: color-mix(in oklab, var(--color-badge-success) 26%, transparent); }
.btn.no { background-color: color-mix(in oklab, var(--color-badge-danger) 16%, transparent); color: var(--color-badge-danger); }
.btn.no:hover { background-color: color-mix(in oklab, var(--color-badge-danger) 26%, transparent); }
.btn.icon { width: 24px; padding: 0; }

/* Hiring manager review: progress toward the sample, one segment per applicant */
.tally { display: flex; align-items: center; gap: 16px; padding: 10px 16px; flex-wrap: wrap; }
.tally-count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted-foreground); white-space: nowrap; }
.tally-count strong { font-size: 16px; font-weight: 500; color: var(--color-foreground); font-variant-numeric: tabular-nums; }
.tally-legend { display: flex; gap: 14px; font-size: 13px; color: var(--color-muted-foreground); white-space: nowrap; }
.tally-legend .key { display: inline-flex; align-items: center; gap: 6px; }
.tally-legend .key::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--key); }
.tally-legend strong { color: var(--color-foreground); font-weight: 500; font-variant-numeric: tabular-nums; }
.key.yes, .seg.yes { --key: var(--color-badge-success); }
.key.no, .seg.no { --key: var(--color-badge-danger); }
.key.wait, .seg.wait { --key: color-mix(in oklab, var(--color-foreground) 28%, transparent); }
.tally-bar { display: flex; gap: 2px; flex: 1; min-width: 160px; }
.seg { flex: 1; height: 6px; border-radius: 2px; background: var(--key, color-mix(in oklab, var(--color-foreground) 8%, transparent)); position: relative; }
.seg.goal::after { content: ''; position: absolute; right: -2px; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--color-muted-foreground); }
.tally-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted-foreground); white-space: nowrap; cursor: default; }
.tally-note.ok { color: var(--color-badge-success); }
.tally-note svg { width: 14px; height: 14px; flex: none; }
/* Narrow pages: the bar takes its own line under the numbers */
@container (max-width: 820px) { .tally-bar { order: 5; flex-basis: 100%; } }

/* A page that fits the window: the last card takes the remaining height and scrolls inside */
.page.fill { display: flex; flex-direction: column; overflow: auto; padding-bottom: 24px; }
.page.fill > * { flex: none; }
.page.fill > .fill-card, .page.fill > .review-card { flex: 1; min-height: 0; margin-bottom: 0; }
.fill-card { display: flex; flex-direction: column; }
.table-wrap.scroll { flex: 1; min-height: 0; overflow: auto; }
.table-wrap.scroll thead th { position: sticky; top: 0; z-index: 1; transition: box-shadow 0.2s; }
/* Scroll shadows: under the header once rows pass beneath it, and a fade at the bottom while more rows follow */
.table-wrap.scroll.scrolled thead th { box-shadow: 0 6px 8px -6px rgb(0 0 0 / 0.45); }
.table-wrap.scroll::after {
  content: ''; position: sticky; left: 0; bottom: 0; display: block; height: 40px; margin-top: -40px; pointer-events: none;
  opacity: 0; transition: opacity 0.2s; background: linear-gradient(transparent, color-mix(in oklab, var(--color-card) 80%, rgb(0 0 0 / 0.35)));
}
:root[data-theme='light'] .table-wrap.scroll::after { background: linear-gradient(transparent, color-mix(in oklab, var(--color-card) 85%, rgb(0 0 0 / 0.12))); }
:root[data-theme='light'] .table-wrap.scroll.scrolled thead th { box-shadow: 0 6px 8px -6px rgb(0 0 0 / 0.15); }
.table-wrap.scroll.more::after { opacity: 1; }
/* Long text in a table cell: two lines, with More to read the rest */
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.clamp.open { display: block; }
.clamp-toggle { margin-top: 2px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--color-foreground); cursor: pointer; }
.clamp-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Too small to fit: the review page (its card stacks below 1100px) and very short windows scroll instead */
@media (max-width: 1100px) {
  .page.fill:has(> .review-card) { overflow: auto; display: block; }
  .page.fill > .review-card { min-height: 560px; }
}
@media (max-height: 640px) {
  .page.fill { overflow: auto; display: block; }
  .page.fill > .fill-card, .page.fill > .review-card { min-height: 560px; }
}

/* Table toolbar (DataTable toolbar: search with an icon, a segmented filter, a count) and sortable headers */
.table-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; flex: none; }
input.table-search {
  width: 280px; height: 32px; padding-left: 32px; font-size: 13px; border-radius: var(--radius-lg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center; background-size: 16px;
}
.segmented { display: inline-flex; height: 32px; padding: 2px; gap: 2px; border-radius: var(--radius-lg); background: color-mix(in oklab, var(--color-foreground) 4%, transparent); }
.segmented button {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--radius-md); border: 1px solid transparent;
  background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--color-muted-foreground);
}
.segmented button:hover { color: var(--color-foreground); }
.segmented button.on { color: var(--color-foreground); background: var(--field-fill); border-color: var(--color-input); }
.segmented .count { font-size: 12px; font-weight: 400; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
#reviewed-count { margin-left: auto; }
th .sort {
  display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit;
}
th .sort::after { content: ''; width: 12px; height: 12px; opacity: 0; background: currentColor; transition: opacity 0.15s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
th .sort:hover::after { opacity: 0.5; }
th[aria-sort='ascending'] .sort::after, th[aria-sort='descending'] .sort::after { opacity: 1; }
th[aria-sort='ascending'] .sort::after { transform: rotate(180deg); }
th .sort:focus-visible { outline: 1px solid var(--color-ring); outline-offset: 2px; border-radius: 4px; }
td.nowrap, .nowrap { white-space: nowrap; }

/* Tabs (modus Tabs variant="line": plain triggers, the active one underlined, a divider across the full width) */
.tabs { display: flex; align-items: stretch; gap: 4px; height: 40px; border-bottom: 1px solid var(--color-border); }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  font-size: 14px; font-weight: 500; color: var(--color-muted-foreground); text-decoration: none; transition: color 0.15s;
}
.tab:hover { color: var(--color-foreground); text-decoration: none; }
.tab.on { color: var(--color-foreground); }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 1px; background: var(--color-foreground); }
.tab:focus-visible { outline: 1px solid var(--color-ring); outline-offset: -4px; border-radius: var(--radius-md); }
.tab .count { font-size: 12px; font-weight: 400; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
/* On the review page the tabs share a row with actions; the divider runs under both */
.review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.review-toolbar .tabs { border-bottom: 0; }
.review-toolbar .row { flex-wrap: nowrap; }
/* Narrow page: the toolbar's actions keep their icons and move their labels to tooltips */
@media (max-width: 1240px) {
  .review-toolbar .btn .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .review-toolbar .btn { width: 32px; padding: 0; }
}

/* Dialog (modus Dialog: border white/20, rounded-xl, p-6, dimmed and blurred backdrop) */
.dialog {
  width: min(560px, calc(100% - 2rem)); max-height: min(640px, calc(100vh - 4rem)); padding: 24px; border: 1px solid color-mix(in oklab, var(--color-foreground) 20%, transparent);
  border-radius: var(--radius-xl); background: var(--color-popover); color: var(--color-popover-foreground); box-shadow: var(--shadow-menu);
}
.dialog[open] { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.dialog::backdrop { background: rgb(0 0 0 / 0.5); backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { margin: 0; font-size: 18px; }
.dialog p { margin: 0; }
.dialog-results { flex: 1; min-height: 120px; overflow: auto; }
.dialog-results td { padding-left: 4px; }
.dialog.wide { width: min(880px, calc(100% - 2rem)); max-height: min(760px, calc(100vh - 4rem)); }
.dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.dialog-foot .tiny { margin-right: auto; }
table.import td { vertical-align: middle; padding-block: 6px; }
table.import td:first-child { width: 28px; padding-left: 8px; }
table.import .who { white-space: nowrap; }
table.import .dd-trigger { height: 32px; width: 76px; font-size: 13px; }
table.import .why { width: 55%; }
table.import .why input { height: 32px; font-size: 13px; }
table.import tr.off td:not(:first-child) { opacity: 0.45; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--button-default); }

/* Option groups in dialogs (modus RadioGroup as cards) */
.dialog-form { display: flex; flex-direction: column; gap: 16px; min-height: 0; flex: 1; }
.dialog-body { display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: color-mix(in oklab, var(--color-foreground) 80%, transparent); }
.choice {
  display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px; border: 1px solid var(--color-input); border-radius: var(--radius-lg);
  font-size: 14px; color: var(--color-foreground); line-height: 1.4; cursor: pointer;
}
.choice:has(input:checked) { border-color: color-mix(in oklab, var(--color-foreground) 50%, transparent); background: color-mix(in oklab, var(--color-foreground) 4%, transparent); }
.choice input[type=radio] { margin-top: 2px; accent-color: var(--button-default); flex: none; }
.choice > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.choice strong { font-weight: 500; }
.choice .hint { font-size: 13px; }
.inline-fields { display: flex; gap: 8px; align-items: center; }
.inline-fields input { width: 110px; height: 32px; }
.inline-fields .dd-trigger { width: auto; height: 32px; font-size: 13px; }
.field.inline-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
.field.inline-label label { margin: 0 0 4px; }
.field.inline-label .hint { margin: 0; font-size: 13px; }
.field.inline-label input { width: 110px; height: 32px; }
.estimate { padding: 12px 14px; border-radius: var(--radius-lg); background: var(--color-tlai-0); border: 1px solid var(--color-border); font-size: 14px; line-height: 1.5; }
.estimate strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.estimate .hint { display: block; margin-top: 2px; font-size: 12px; }
.danger-zone, .settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.danger-zone .hint, .settings-row .hint { margin: 2px 0 0; font-size: 13px; color: var(--color-muted-foreground); }
.settings-row form { flex: none; }
.settings-row .btn svg { width: 14px; height: 14px; }
.danger-zone .row.nowrap { flex-wrap: nowrap; flex: none; }
.btn.armed { border-color: transparent; background-color: color-mix(in oklab, var(--color-destructive) 20%, transparent); color: var(--color-destructive); }
.btn.danger-solid { border-color: transparent; background-color: var(--color-destructive); color: #fff; }
.btn.danger-solid:hover { background-color: color-mix(in oklab, var(--color-destructive) 88%, black); }
.page-tabs { margin-bottom: 20px; }
/* Role page: tabs with the stage line beside them, sharing one divider */
.tabs-row { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--color-border); flex: none; }
.tabs-row .tabs { border-bottom: 0; }
#history-count { margin-left: auto; }
.head .btn svg { width: 16px; height: 16px; }

/* Hiring manager review: the resume beside the decision */
.review-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch; }
.review-resume { display: flex; flex-direction: column; min-height: 0; }
.review-resume > .row { flex: none; margin-bottom: 12px; }
.review-resume h2 { margin: 2px 0 0; }
.review-resume .resume-doc { flex: 1; min-height: 0; overflow: auto; }
.review-decide { display: flex; flex-direction: column; gap: 12px; align-self: start; }
.review-decide label, .review-decide .hint { margin: 0; }
.review-decide { max-height: 100%; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; }  /* a scrollbar appearing would narrow the text and reflow it */
.review-decide textarea { flex: none; min-height: 88px; resize: none; }  /* the three-line placeholder fits; content-sizing would shrink it */
hr.faint { flex: none; width: 100%; height: 1px; margin: 6px 0; border: 0; background: var(--color-border); }  /* flex: none, or the scrolling panel squeezes it to 0px */
/* Resume check: Claude's quick read under the decision */
.analysis { display: flex; flex-direction: column; gap: 10px; }
.analysis h3 { margin: 0; font-size: 14px; font-weight: 500; color: var(--color-foreground); }
.analysis-summary { margin: 0; font-size: 13px; line-height: 1.55; color: color-mix(in oklab, var(--color-foreground) 88%, transparent); }
/* The authenticity call: a tinted card that leads */
.verdict-card {
  --tone: var(--color-badge-neutral);
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--tone) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 28%, transparent);
}
.verdict-card.good { --tone: var(--color-badge-success); }
.verdict-card.warn { --tone: var(--color-badge-warning); }
.verdict-card.bad { --tone: var(--color-badge-danger); }
.verdict-card svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--tone); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.verdict-card strong { display: block; font-size: 13px; font-weight: 600; color: var(--tone); }
.verdict-card p { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: color-mix(in oklab, var(--color-foreground) 75%, transparent); }
/* Strengths and concerns, each a softly tinted group */
.flag-group {
  --tone: var(--color-badge-success);
  padding: 10px 12px; border-radius: var(--radius-lg); background: color-mix(in oklab, var(--tone) 5%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 14%, transparent);
}
.flag-group.bad { --tone: var(--color-badge-danger); }
.flag-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tone); }
.flag-count { padding: 0 6px; border-radius: 999px; font-size: 11px; line-height: 16px; letter-spacing: 0; background: color-mix(in oklab, var(--tone) 16%, transparent); }
.flag-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.flag-group li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: color-mix(in oklab, var(--color-foreground) 90%, transparent); }
.flag-group li svg { flex: none; width: 14px; height: 14px; margin-top: 2px; fill: none; stroke: var(--tone); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.analysis { gap: 12px; }
#analysis-body { display: flex; flex-direction: column; gap: 12px; }  /* the verdict, summary and groups each get room */
.btn.ext svg { width: 13px; height: 13px; opacity: 0.7; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label-row .btn svg { width: 12px; height: 12px; color: var(--color-tlai-blue); }
.review-decide .row .btn { flex: 1; }
.review-inline { padding: 16px; }
@media (max-width: 1100px) { .review-card { grid-template-columns: 1fr; } }

/* Assistant: a chat panel beside a role's pages */
.assistant {
  /* Its own card beside the page, docked at every screen size; it narrows rather than covering the page. Opening
     and closing animate its width while the contents keep their open width and slide, so nothing reflows. */
  --assistant-w: min(var(--assistant-width, clamp(300px, 27vw, 420px)), calc(100vw - 512px));
  width: var(--assistant-w); flex-shrink: 0; display: flex; min-height: 0; margin: 8px 8px 8px 0; position: relative; overflow: hidden;
  background: var(--color-chat-page-background); border: 1px solid var(--color-input); border-radius: var(--radius-xl);
  transition: width 0.38s cubic-bezier(0.32, 0.72, 0, 1), margin-right 0.38s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease, border-color 0.2s;
}
.assistant-body {
  display: flex; flex-direction: column; min-height: 0; flex: none; width: 100%; min-width: var(--assistant-w);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}
.assistant-closed .assistant { width: 0; margin-right: 0; opacity: 0; border-color: transparent; pointer-events: none; }
.assistant-closed .assistant-body { transform: translateX(32px); }
.resizing .assistant, .no-anim .assistant, .no-anim .assistant-body, .no-anim .launch { transition: none !important; }
/* Drag handle: the 8px gap between the page and the card, grip centered in it */
.assistant-resize { position: relative; flex: none; width: 8px; margin: 20px 0; cursor: col-resize; touch-action: none; }
body:has(> .assistant) main.content { margin-right: 0; }  /* the handle is the gap */
.assistant-closed .assistant-resize { pointer-events: none; }
.assistant-closed .assistant-resize::after { opacity: 0 !important; }
.assistant-resize::after {
  content: ''; position: absolute; top: 50%; left: 2px; width: 4px; height: 40px; margin-top: -20px; border-radius: 2px;
  background: color-mix(in oklab, var(--color-foreground) 30%, transparent); opacity: 0; transition: opacity 0.15s;
}
.assistant-resize:hover::after, .assistant-resize:focus-visible::after, .resizing .assistant-resize::after { opacity: 1; }
.assistant-resize:focus-visible { outline: none; }
.resizing, .resizing * { cursor: col-resize !important; user-select: none; }
.assistant-head { flex: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--color-border); }
.assistant-head { gap: 8px; padding-left: 8px; }
.assistant-head > .row { flex: none; flex-wrap: nowrap; gap: 2px; }  /* the buttons stay on one line; the title shrinks instead */
.chat-switch {
  display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; padding: 0 8px; border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--color-foreground); font: inherit; font-weight: 500; cursor: pointer;
}
.chat-switch:hover, .chat-switch:focus-visible { background: color-mix(in oklab, var(--color-foreground) 6%, transparent); outline: none; }
.chat-switch > svg:first-child { flex: none; width: 16px; height: 16px; color: var(--color-tlai-blue); }
.chat-switch .chev { flex: none; width: 14px; height: 14px; opacity: 0.6; }
.chat-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Chat history: the person's chats here, newest first */
.popover-card.chat-history { width: 300px; max-height: min(420px, 70vh); overflow-y: auto; }
.chat-history .chat-new { margin-bottom: 4px; }
.chat-history .chat-list { padding-top: 4px; border-top: 1px solid var(--color-border); }
.chat-list { display: flex; flex-direction: column; gap: 2px; }
.chat-list .hint { padding: 8px 10px; margin: 0; }
.chat-row { position: relative; display: flex; align-items: center; border-radius: var(--radius-md); }
.chat-row:hover, .chat-row.on { background: color-mix(in oklab, var(--color-primary) 8%, transparent); }
.chat-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border: 0; background: transparent; color: var(--color-popover-foreground); font: inherit; text-align: left; cursor: pointer; }
.chat-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row.on .chat-name { font-weight: 500; }
.chat-when { font-size: 11px; color: var(--color-muted-foreground); }
.chat-delete { flex: none; display: grid; place-items: center; min-width: 24px; height: 24px; margin-right: 6px; padding: 0 4px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-muted-foreground); font-size: 11px; cursor: pointer; opacity: 0; }
.chat-row:hover .chat-delete, .chat-delete:focus-visible, .chat-delete.armed { opacity: 1; }
.chat-delete:hover { color: var(--color-destructive); background: color-mix(in oklab, var(--color-destructive) 12%, transparent); }
.chat-delete svg { width: 12px; height: 12px; }
.chat-delete.armed { color: var(--color-destructive); }
.assistant-head .btn svg { width: 14px; height: 14px; }
.assistant-log { flex: 1; min-height: 0; overflow: hidden auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.assistant-empty p { color: var(--color-chat-muted-foreground); margin-bottom: 8px; }
.suggestion {
  display: block; width: 100%; text-align: left; margin-bottom: 6px; padding: 8px 12px; font: inherit; font-size: 13px;
  color: var(--color-foreground); background: transparent; border: 1px solid var(--color-chat-page-card-border); border-radius: var(--radius-lg);
}
.suggestion:hover { background: color-mix(in oklab, var(--color-foreground) 6%, transparent); }
.msg { line-height: 1.55; overflow-wrap: anywhere; }
.msg p { margin: 0 0 8px; }
.msg p:last-child, .msg ul:last-child, .msg ol:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 0 0 8px; padding-left: 20px; }
.msg li { margin-bottom: 2px; }
.msg code { font-family: var(--font-mono); font-size: 12.5px; }
.msg a { text-decoration: underline; text-underline-offset: 3px; }
.msg.from-user { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 12px; background: var(--color-chat-page-card); color: var(--color-foreground); white-space: pre-wrap; }
.msg.from-assistant { position: relative; color: var(--color-foreground); padding-right: 4px; }
.msg h3, .msg h4, .msg h5 { margin: 14px 0 6px; font-weight: 600; color: var(--color-foreground); line-height: 1.35; }
.msg h3 { font-size: 15px; } .msg h4 { font-size: 14px; } .msg h5 { font-size: 13px; color: var(--color-chat-muted-foreground); }
.msg > :first-child { margin-top: 0; }
.msg li > ul, .msg li > ol { margin: 4px 0 4px; }
.msg li::marker { color: var(--color-chat-muted-foreground); }
.msg ol > li::marker { font-variant-numeric: tabular-nums; }
.msg blockquote { margin: 0 0 8px; padding: 2px 0 2px 12px; border-left: 2px solid var(--color-border); color: var(--color-chat-muted-foreground); }
.msg pre { margin: 0 0 8px; padding: 10px 12px; overflow-x: auto; border-radius: var(--radius-md); background: color-mix(in oklab, var(--color-foreground) 5%, transparent); }
.msg pre code { font-size: 12px; line-height: 1.5; }
.msg :not(pre) > code { padding: 1px 5px; border-radius: 4px; background: color-mix(in oklab, var(--color-foreground) 7%, transparent); }
.msg hr { margin: 12px 0; border: 0; height: 1px; background: var(--color-border); }
.msg .md-table { margin: 0 0 8px; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.msg .md-table table { font-size: 12.5px; }
.msg .md-table th, .msg .md-table td { padding: 6px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.msg .md-table th { height: auto; font-weight: 500; background: color-mix(in oklab, var(--color-foreground) 4%, transparent); border-top: 0; border-left: 0; border-right: 0; border-radius: 0; }
.msg .md-table tr:last-child td { border-bottom: 0; }
.msg strong { font-weight: 600; }
/* Copy a reply */
.msg-copy { position: absolute; right: -4px; bottom: -22px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-chat-muted-foreground); cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.msg.from-assistant:hover .msg-copy, .msg-copy:focus-visible { opacity: 1; }
.msg-copy:hover { color: var(--color-foreground); background: color-mix(in oklab, var(--color-foreground) 7%, transparent); }
.msg-copy svg { width: 13px; height: 13px; }
.msg.from-assistant:has(+ .msg) { margin-bottom: 14px; }  /* room for the copy button */
/* The reply streaming in */
.msg.streaming .msg-copy { display: none; }
/* New words fade in quickly; a pulsing mark ends the text while it's still being written */
.fade-word { animation: word-in 0.22s ease-out both; }
@keyframes word-in { from { opacity: 0; } to { opacity: 1; } }
.stream-mark { display: inline-flex; width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; color: var(--color-tlai-blue); animation: mark-pulse 1.2s ease-in-out infinite; }
.stream-mark svg { width: 13px; height: 13px; }
@keyframes mark-pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); } 50% { opacity: 1; transform: scale(1.05) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .fade-word { animation: none; } .stream-mark { animation: none; } }
/* The steps the agent took: one line that opens */
.msg.steps { font-size: 12px; color: var(--color-chat-muted-foreground); }
.msg.steps summary { display: inline-flex; max-width: 100%; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: 999px; cursor: pointer; list-style: none; background: color-mix(in oklab, var(--color-foreground) 5%, transparent); }
.msg.steps summary::-webkit-details-marker { display: none; }
.msg.steps summary::before { content: ''; flex: none; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: -45deg; transition: rotate 0.15s; margin: 0 2px; }
.msg.steps[open] summary::before { rotate: 45deg; }
.msg.steps summary:hover { color: var(--color-foreground); }
.steps-label { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-failed { color: var(--color-destructive); }
.msg.steps ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 4px; }
.msg.steps li { display: flex; gap: 6px; align-items: flex-start; }
.msg.steps li svg { flex: none; width: 12px; height: 12px; margin-top: 2px; color: var(--color-badge-success); }
.msg.steps li.failed svg { color: var(--color-destructive); }
.shimmer {
  background: linear-gradient(90deg, var(--color-chat-muted-foreground) 30%, var(--color-foreground) 50%, var(--color-chat-muted-foreground) 70%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.msg.from-action { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--color-chat-muted-foreground); }
.msg.from-action::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: var(--color-chat-muted-foreground); }
.msg.working { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-chat-muted-foreground); }
.msg.error { font-size: 13px; color: var(--color-destructive); }
.composer {
  margin: 0 12px 12px; display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 12px;
  background: var(--color-chat-page-composer); border: 1px solid var(--color-chat-page-card-border); border-radius: 16px;
}
.composer:focus-within { border-color: color-mix(in oklab, var(--color-foreground) 30%, transparent); }
.composer { flex-wrap: wrap; padding-left: 6px; }
.composer.dragging { border-color: var(--color-badge-info); background: color-mix(in oklab, var(--color-badge-info) 6%, var(--color-chat-page-composer)); }
.composer-files { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 4px; }
.attach { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--color-muted-foreground); cursor: pointer; }
.attach:hover { color: var(--color-foreground); background: color-mix(in oklab, var(--color-foreground) 7%, transparent); }
.attach svg { width: 16px; height: 16px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 4px 0 8px; border-radius: 8px; font-size: 12px; background: color-mix(in oklab, var(--color-foreground) 6%, transparent); color: var(--color-foreground); }
.file-chip > svg { width: 14px; height: 14px; flex: none; color: var(--color-muted-foreground); }
.file-chip .file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.file-chip .file-size { color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.file-chip .spinner { width: 12px; height: 12px; }
.file-chip.failed { color: var(--color-destructive); background: color-mix(in oklab, var(--color-destructive) 10%, transparent); }
.file-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--color-muted-foreground); cursor: pointer; }
.file-chip button:hover { color: var(--color-foreground); background: color-mix(in oklab, var(--color-foreground) 8%, transparent); }
.file-chip button svg { width: 12px; height: 12px; }
.msg.from-user .msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; white-space: normal; }
.msg.from-user .msg-files:last-child { margin-bottom: 0; }
.msg.from-user .file-chip { background: color-mix(in oklab, var(--color-foreground) 8%, transparent); padding-right: 8px; }
.composer textarea { flex: 1; min-height: 24px; max-height: 180px; padding: 4px 0; border: 0; background: transparent; box-shadow: none; resize: none; line-height: 1.5; }
.composer textarea:focus-visible { border: 0; }
.send { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--button-default); color: var(--button-default-foreground); }
.send svg { width: 16px; height: 16px; }
.send:disabled { opacity: 0.35; }

/* Landing-page composer: sits at the bottom of the page card; slides away when the assistant opens, back when it closes */
.page.with-launch { padding-bottom: 120px; }
.launch {
  position: absolute; left: 50%; bottom: 24px; z-index: 5; width: min(680px, calc(100% - 48px));
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 8px;
  background: var(--color-chat-page-composer); border: 1px solid var(--color-chat-page-card-border); border-radius: 18px;
  box-shadow: var(--shadow-menu); transform: translate(-50%, 0); opacity: 1;
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease, border-color 0.15s;
  animation: launch-in 0.5s cubic-bezier(0.32, 0.72, 0, 1) backwards;  /* no fill afterwards, so the slide transitions run */
}
.launch:focus-within { border-color: color-mix(in oklab, var(--color-foreground) 30%, transparent); }
.launch.away { transform: translate(-50%, calc(100% + 48px)); opacity: 0; pointer-events: none; }
@keyframes launch-in { from { transform: translate(-50%, calc(100% + 48px)); opacity: 0; } }
.launch-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; border-radius: 10px; flex: none; color: var(--color-foreground); cursor: pointer; }
.launch-btn:hover { background: color-mix(in oklab, var(--color-foreground) 8%, transparent); }
.launch-btn svg { width: 18px; height: 18px; opacity: 0.8; }
.launch-field { position: relative; flex: 1; min-width: 0; height: 32px; }
.launch input[type=text] { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 4px; border: 0; background: transparent; box-shadow: none; font-size: 15px; }
.launch input[type=text]:focus-visible { border: 0; }
.launch-hint { position: absolute; inset: 0 0 0 4px; display: flex; align-items: center; gap: 8px; pointer-events: none; font-size: 15px;
  color: var(--color-chat-muted-foreground); white-space: nowrap; overflow: hidden; transition: opacity 0.2s; }
.launch-hint kbd { font: 500 12px/1 var(--font-sans); padding: 4px 6px; border-radius: 4px; color: var(--color-muted-foreground);
  background: color-mix(in oklab, var(--color-foreground) 8%, transparent); }
/* A thin cursor after the suggestion while it's being written or deleted */
.launch-hint #launch-suggestion { display: inline-flex; align-items: center; min-height: 1.2em; }
.launch-hint.writing #launch-suggestion::after {
  content: ''; width: 1.5px; height: 1.05em; margin-left: 1px; background: var(--color-chat-muted-foreground);
  animation: caret-blink 1.06s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.launch.typing .launch-hint { display: none; }
@media (prefers-reduced-motion: reduce) { .launch, .assistant, .assistant-body { transition-duration: 0.01s !important; animation: none !important; } }

/* A step's status icon and its pop-up (native popover, placed next to the icon by app.js) */
.step-title { display: flex; align-items: center; gap: 6px; }
/* Clickable tonal chip (Badge variant="tonal" as a button) */
.issue-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 8px; margin-left: 4px; border: 0; border-radius: var(--radius-sm);
  font: inherit; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--tone); background: color-mix(in oklab, var(--tone) 12%, transparent);
  transition: background-color 0.15s;
}
.issue-chip.warn { --tone: var(--color-badge-warning); }
.issue-chip.bad { --tone: var(--color-badge-danger); }
.issue-chip.good { --tone: var(--color-badge-success); }
.issue-chip:hover { background: color-mix(in oklab, var(--tone) 20%, transparent); }
.issue-chip:focus-visible { outline: 1px solid var(--color-ring); outline-offset: 2px; }
.issue-chip svg { width: 14px; height: 14px; flex: none; }
.issue-chip .chev { width: 12px; height: 12px; opacity: 0.8; }
.popover-card {
  position: fixed; inset: auto; margin: 0; width: 340px; padding: 16px; display: none; flex-direction: column; gap: 8px;
  background: var(--color-popover); color: var(--color-popover-foreground); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
}
.popover-card:popover-open { display: flex; }
.popover-card p { margin: 0; }
.popover-card .row { margin-top: 4px; }

/* A paused ranking: what happened, the ways forward, and the disagreements (scrolling inside the card) */
.paused { padding: 20px; }
.paused-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex: none; }
.paused h2 { margin: 10px 0 4px; font-size: 16px; }
.paused-head p { margin: 0; }
.issue-chip.static { cursor: default; margin-left: 0; }
.issue-chip.static:hover { background: color-mix(in oklab, var(--tone) 12%, transparent); }
.disagreements-area { position: relative; flex: 1; min-height: 160px; display: flex; flex-direction: column; margin-top: 14px; }
.table-wrap.disagreements { min-height: 0; }
.disagreements-area.selecting .table-wrap table { margin-bottom: 64px; }  /* room so the bar never hides the last row (on the table, so the bottom fade stays at the bottom) */
th.pick-col, td.pick-col { width: 1%; padding-right: 0; }
th.pick-col input, td.pick-col input { display: block; margin: 0; }
tr.picked td { background: color-mix(in oklab, var(--color-foreground) 5%, transparent); }
/* Bulk actions (modus ActionBar): springs up from the bottom of the table while rows are selected */
.bulk-bar {
  position: absolute; left: 50%; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px;
  max-width: calc(100% - 32px); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-tlai-2);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.35), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  translate: -50% 24px; opacity: 0; pointer-events: none; transition: translate 0.15s ease-in, opacity 0.15s ease-in;
}
.bulk-bar.open { translate: -50% 0; opacity: 1; pointer-events: auto; transition: translate 0.5s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.2s ease-out; }
.bulk-count { font-size: 14px; font-weight: 500; color: var(--color-foreground); white-space: nowrap; }
.bulk-sep { width: 1px; height: 20px; flex: none; background: var(--color-border); }
.bulk-bar .btn { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .bulk-bar, .bulk-bar.open { translate: -50% 0; } }
/* Settling each disagreement, and the tally with what to do next */
th.resolve-col, td.resolve-col { width: 1%; white-space: nowrap; }
.resolve-buttons { display: flex; gap: 6px; }
.settled-state { display: flex; align-items: center; gap: 8px; }
.settled-note { max-width: 220px; white-space: normal; }
tr.settled td:not(.resolve-col) { opacity: 0.55; }
.resolve-bar { display: flex; align-items: center; gap: 8px; flex: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); flex-wrap: wrap; }
.resolve-tally { display: flex; flex-direction: column; gap: 2px; margin-right: auto; font-size: 13px; color: var(--color-muted-foreground); }
.resolve-tally strong { color: var(--color-foreground); font-weight: 500; }
.resolve-bar form { margin: 0; }
.resolve-honesty { margin: 8px 0 0; flex: none; }
.check-passed { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; }
/* Short windows: the page stays put */
@media (max-height: 820px) {
  .paused { padding: 16px; }
  .paused h2 { margin-top: 8px; }
  .stepper-item { padding: 8px 12px; }
}
.disagreements td .tiny { margin-top: 4px; }

/* Role page: the three steps in one compact row */
.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: none; }
/* A button with a dropdown for its less common alternative (Check agreement: Re-check | Skip check) */
.split-btn { display: inline-flex; align-items: stretch; }
.split-btn form { margin: 0; display: flex; }
.split-btn form .btn { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-btn .split-toggle { width: 28px; padding: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; box-shadow: inset 1px 0 0 color-mix(in oklab, var(--color-background) 30%, transparent); }
.split-btn .split-toggle svg { width: 14px; height: 14px; }
.popover-card.menu-pop { width: 240px; padding: 4px; gap: 0; }
.menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--color-popover-foreground); font: inherit; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: color-mix(in oklab, var(--color-primary) 10%, transparent); outline: none; }
.menu-item strong { font-size: 13px; font-weight: 500; }
.menu-item .hint { margin: 0; }
.stepper-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--color-card); border-radius: var(--radius-lg); box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-foreground) 10%, transparent);
}
.stepper-item .num {
  width: 28px; height: 28px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 13px; font-weight: 500;
  background: var(--color-muted); color: var(--color-muted-foreground);
}
.stepper-item .num svg { width: 14px; height: 14px; }
.stepper-item.done .num { background: color-mix(in oklab, var(--color-badge-success) 12%, transparent); color: var(--color-badge-success); }
.stepper-item.now .num { background: var(--button-default); color: var(--button-default-foreground); }
/* A step that can't start yet: dashed outline, no fill, faded */
.stepper-item.locked { background: transparent; box-shadow: none; outline: 1px dashed color-mix(in oklab, var(--color-foreground) 20%, transparent); outline-offset: -1px; }
.stepper-item.locked > * { opacity: 0.5; }
.stepper-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stepper-text strong { font-weight: 500; color: var(--color-foreground); }
.stepper-text .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper-text .progress { margin: 4px 0 0; }
.bad-text { color: var(--color-destructive) !important; }
.page.fill { container-type: inline-size; }
@container (max-width: 1180px) { .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 560px) { .stepper { grid-template-columns: 1fr; } }
.shortlist-card .kpis { flex: none; }
.page.fill > .fill-card, .page.fill > .card.fill-card { flex: 1; min-height: 0; margin-bottom: 0; display: flex; flex-direction: column; }

/* Theme toggle shows the mode it switches to */
:root[data-theme='dark'] .if-light, :root[data-theme='light'] .if-dark { display: none; }

/* Shortlist: the dashboard fills the card under the top bar and scrolls inside its own frame */
.page.frame { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
iframe.dashboard { flex: 1; width: 100%; border: 0; background: var(--color-tessera-foreground-0); display: block; }
/* Signed out: no rail, so the card takes all four margins and the sign-in box sits centered */
body:not(:has(.rail)) main.content { margin: 8px; }

/* Dropdown (modus Select): our trigger and menu over a native select kept for the form */
select.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; clip-path: inset(50%); overflow: hidden; pointer-events: none; }
.dd-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; height: 36px; padding: 0 10px;
  border: 1px solid var(--color-input); border-radius: var(--radius-lg); background: var(--field-fill); color: var(--color-foreground);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.dd-trigger:hover, .dd-trigger[aria-expanded=true] { background: var(--field-fill-hover); }
.dd-trigger:focus-visible { outline: none; }
.dd-trigger.keyed:focus-visible { border-color: var(--color-ring); box-shadow: 0 0 0 2px var(--color-ring); }
.dd-trigger[aria-invalid=true] { border-color: var(--color-destructive); }
.dd-trigger:disabled { opacity: 0.5; cursor: not-allowed; }
.dd-trigger.placeholder .dd-value { color: var(--color-muted-foreground); }
.dd-value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-trigger svg { width: 16px; height: 16px; flex: none; opacity: 0.6; transition: rotate 0.15s; }
.dd-trigger[aria-expanded=true] svg { rotate: 180deg; }
.dd-menu {
  position: fixed; inset: auto; margin: 0; width: max-content; max-width: min(440px, calc(100vw - 16px)); padding: 6px; overflow-y: auto;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-popover); color: var(--color-popover-foreground);
  box-shadow: var(--shadow-menu); outline: none;
}
.dd-menu:popover-open { animation: dd-in 0.12s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.dd-option {
  position: relative; display: flex; align-items: center; min-height: 32px; padding: 6px 36px 6px 8px; border-radius: var(--radius-md);
  font-size: 13px; line-height: 1.4; cursor: pointer; user-select: none;
}
.dd-option.active { background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.dd-option[aria-selected=true] { font-weight: 500; }
.dd-option[aria-disabled=true] { opacity: 0.5; pointer-events: none; }
.dd-check { position: absolute; right: 8px; display: none; }
.dd-check svg { width: 16px; height: 16px; }
.dd-option[aria-selected=true] .dd-check { display: flex; }

/* Hiring bar: a section rail (SectionNavFrame) beside one section at a time; only the section scrolls */
[hidden] { display: none !important; }
.page.flush { display: flex; padding: 0; overflow: hidden; }
.bar { display: flex; flex: 1; min-width: 0; min-height: 0; }
.section-nav { display: flex; flex-direction: column; gap: 2px; width: 208px; flex: none; overflow-y: auto; padding: 16px 12px; border-right: 1px solid var(--color-border); }
.section-link {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--radius-md); font-size: 13px;
  color: color-mix(in oklab, var(--color-foreground) 85%, transparent); text-decoration: none;
}
.section-link:hover { background: color-mix(in oklab, var(--color-foreground) 4%, transparent); color: var(--color-foreground); text-decoration: none; }
.section-link[aria-current] { background: color-mix(in oklab, var(--color-foreground) 8%, transparent); color: var(--color-foreground); font-weight: 500; }
.section-link:focus-visible { outline: 1px solid var(--color-ring); outline-offset: -1px; }
.section-link > svg { width: 15px; height: 15px; flex: none; opacity: 0.6; }
.section-link[aria-current] > svg, .section-link:hover > svg { opacity: 1; }
.section-link .count { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.error-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-destructive); flex: none; }
.section-entries { list-style: none; margin: 2px 0 6px 17px; padding: 0 0 0 8px; border-left: 1px solid var(--color-border); display: none; }
.section-group:has(> [aria-current]) .section-entries { display: block; }
.section-entries a {
  display: block; padding: 4px 8px; border-radius: var(--radius-sm); font-size: 12px; line-height: 1.4; color: var(--color-muted-foreground);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
.section-entries a:hover, .section-entries a.on { color: var(--color-foreground); text-decoration: none; }
.section-entries a.on { background: color-mix(in oklab, var(--color-foreground) 5%, transparent); }
.section-note { margin: auto 0 0; padding: 10px; border-radius: var(--radius-lg); background: color-mix(in oklab, var(--color-foreground) 3%, transparent); font-size: 12px; line-height: 1.5; color: var(--color-muted-foreground); }
.bar-pane { flex: 1; min-width: 0; overflow-y: auto; scroll-padding-top: 16px; }
.bar-inner { max-width: 760px; margin: 0 auto; padding: 24px 24px 48px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); max-width: 560px; }
.section-head .btn { flex: none; }
.section-head p strong { font-weight: 500; color: var(--color-foreground); }
.bar-section .field label:not(.inline):not(.sub) { font-weight: 500; color: var(--color-foreground); }
.bar-section .field label .hint { font-weight: 400; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.entries { display: flex; flex-direction: column; gap: 12px; }
.entry {
  position: relative; padding: 14px 16px 12px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in oklab, var(--color-foreground) 2.5%, var(--color-card)), var(--color-card) 60%);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-foreground) 10%, transparent), 0 1px 2px 0 rgb(0 0 0 / 0.08);
  transition: box-shadow 0.2s;
}
.entry:hover { box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-foreground) 18%, transparent), 0 4px 12px -4px rgb(0 0 0 / 0.3); }
.entry:focus-within { box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-foreground) 28%, transparent), 0 4px 12px -4px rgb(0 0 0 / 0.3); }
.entry.flash { box-shadow: 0 0 0 1px var(--color-ring), 0 0 0 4px color-mix(in oklab, var(--color-ring) 25%, transparent); }
.entry.invalid { box-shadow: 0 0 0 1px var(--color-destructive); }
.entry-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.entry-remove { opacity: 0; transition: opacity 0.15s; }
.entry:hover .entry-remove, .entry:focus-within .entry-remove, .entry-remove:focus-visible { opacity: 1; }
input[type=text].entry-title {
  flex: 1; min-width: 0; height: 36px; padding: 0 8px; margin-left: -6px; border-color: transparent; background: transparent;
  font-size: 16px; font-weight: 500; line-height: 1.5; color: var(--color-foreground);
}
input[type=text].entry-title:hover { background: var(--field-fill, transparent); }
input[type=text].entry-title:focus-visible { border-color: color-mix(in oklab, var(--color-foreground) 50%, transparent); background: var(--field-fill, transparent); }
/* A criterion's share of the score as a ring */
.share-ring {
  --ring: color-mix(in oklab, var(--color-foreground) 12%, transparent);
  position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(var(--color-foreground) calc(var(--share) * 1%), var(--ring) 0);
}
.share-ring::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--color-card); }
.share-ring span { position: relative; font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.entry-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-lg); }
.entry-icon svg { width: 16px; height: 16px; }
.entry-icon.bad { color: var(--color-badge-danger); background: color-mix(in oklab, var(--color-badge-danger) 12%, transparent); }
.entry-icon.warn { color: var(--color-badge-warning); background: color-mix(in oklab, var(--color-badge-warning) 12%, transparent); }
.entry label.sub { margin: 0 0 2px 46px; font-size: 12px; color: var(--color-muted-foreground); }
/* The description reads as text until you point at it or edit it */
.entry textarea.entry-text {
  width: calc(100% - 38px); min-height: 0; margin-left: 38px; padding: 4px 8px; border-color: transparent; background: transparent; resize: none;
  font-size: 14px; color: color-mix(in oklab, var(--color-foreground) 88%, transparent);
}
.entry textarea.entry-text:hover { background: var(--field-fill, transparent); }
.entry textarea.entry-text:focus-visible { border-color: color-mix(in oklab, var(--color-foreground) 50%, transparent); background: var(--field-fill, transparent); }
.entry-meta { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 46px; flex-wrap: wrap; }
.meta-key { font-size: 12px; color: var(--color-muted-foreground); padding: 0 4px 0 8px; white-space: nowrap; }
.step-input, .chip-select {
  display: inline-flex; align-items: center; height: 28px; margin: 0; border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-foreground) 5%, transparent); font-size: 13px; color: var(--color-foreground);
}
.step-input button {
  width: 24px; height: 28px; border: 0; background: transparent; color: var(--color-muted-foreground); font: inherit; font-size: 14px; cursor: pointer;
}
.step-input button:hover { color: var(--color-foreground); }
.step-input input[type=number] {
  width: 30px; height: 28px; padding: 0; border: 0; background: transparent; text-align: center; font-variant-numeric: tabular-nums;
  appearance: textfield; -moz-appearance: textfield;
}
.step-input input::-webkit-inner-spin-button, .step-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step-input input:focus-visible { outline: 1px solid var(--color-ring); border-radius: var(--radius-sm); }
.chip-select { min-width: 0; max-width: 100%; }
.chip-select .dd-trigger { width: auto; max-width: 340px; height: 28px; padding: 0 6px 0 2px; border: 0; background: transparent; font-size: 13px; }
.chip-select .dd-trigger:hover, .chip-select .dd-trigger[aria-expanded=true] { background: transparent; }
.chip-select .dd-trigger.keyed:focus-visible { border: 0; box-shadow: none; }
.chip-select:has(.dd-trigger.keyed:focus-visible) { box-shadow: 0 0 0 1px var(--color-ring); }
.chip-select:hover { background: color-mix(in oklab, var(--color-foreground) 8%, transparent); }
.weight-bar { display: flex; gap: 2px; height: 6px; margin: -8px 0 20px; }
.weight-bar span { min-width: 4px; border-radius: 2px; background: color-mix(in oklab, var(--color-foreground) 22%, transparent); transition: background 0.15s; }
.weight-bar span.on { background: var(--color-foreground); }
.empty-note { margin: 0; padding: 24px; text-align: center; font-size: 13px; color: var(--color-muted-foreground); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }
.field.verdict label { margin-bottom: 8px; }
.bar-section .field.inline-label { padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.bar-section .field.inline-label:first-of-type { padding-top: 0; }
.suffixed { display: inline-flex; align-items: center; gap: 6px; color: var(--color-muted-foreground); font-size: 13px; }
.suffixed input { width: 80px !important; }
.with-info { display: flex; align-items: center; gap: 6px; }
.info-tip { position: relative; display: inline-flex; color: var(--color-muted-foreground); cursor: help; border-radius: 50%; }
.info-tip svg { width: 14px; height: 14px; }
.info-tip:hover, .info-tip:focus-visible { color: var(--color-foreground); outline: none; }
.info-tip:focus-visible svg { outline: 1px solid var(--color-ring); outline-offset: 1px; border-radius: 50%; }
.info-tip .tip {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 50%; translate: -50% -2px; width: max-content; max-width: 280px;
  padding: 8px 10px; border-radius: var(--radius-md); background: var(--color-popover); color: var(--color-popover-foreground);
  box-shadow: var(--shadow-menu); border: 1px solid var(--color-border); font-size: 12px; line-height: 1.45; font-weight: 400;
  white-space: normal; text-align: left; letter-spacing: normal; margin-left: var(--tip-shift, 0px);
  opacity: 0; pointer-events: none; transition: opacity 0.12s, translate 0.12s;
}
.info-tip:hover .tip, .info-tip:focus-visible .tip, .info-tip.open .tip { opacity: 1; translate: -50% 0; }
.info-tip.open { color: var(--color-foreground); }
.meta-key.with-info { gap: 5px; }
.meta-key .info-tip svg { width: 13px; height: 13px; }
.meta-key .info-tip .tip { left: -8px; translate: 0 -2px; width: 260px; }
.meta-key .info-tip:hover .tip, .meta-key .info-tip:focus-visible .tip { translate: 0 0; }
/* Section header stays put while the entries scroll under it */
.section-top { position: sticky; top: 0; z-index: 5; margin: -24px -24px 0; padding: 24px 24px 4px; background: var(--color-tessera-foreground-0); }
.section-top::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(var(--color-tessera-foreground-0), transparent); pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.bar-pane.scrolled .section-top::after { opacity: 1; }  /* only once content has slid under the header */
.section-top .section-head { margin-bottom: 16px; }
.section-top .weight-bar { margin: -4px 0 12px; }

/* A soft shadow at the bottom of the section while there's more to scroll to */
.pane-fade {
  position: sticky; bottom: 0; height: 48px; margin-top: -48px; pointer-events: none; opacity: 0; transition: opacity 0.2s;
  background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--color-tessera-foreground-0) 70%, rgb(0 0 0 / 0.6)));
}
:root[data-theme='light'] .pane-fade { background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--color-tessera-foreground-0) 85%, rgb(0 0 0 / 0.12))); }
.bar-pane.more .pane-fade { opacity: 1; }
.save-state { white-space: nowrap; }
.save-state.dirty { color: var(--color-badge-warning); }
@media (max-width: 1100px) { .section-nav { width: 168px; } .grid3 { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } * { transition: none !important; } }

/* Usage page: totals, spend per day, and four breakdowns that each scroll inside their card */
.usage-page .head { margin-bottom: 16px; align-items: center; }
.segmented a.seg-link {
  display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: 13px; font-weight: 500; color: var(--color-muted-foreground); text-decoration: none;
}
.segmented a.seg-link:hover { color: var(--color-foreground); }
.segmented a.seg-link.on { color: var(--color-foreground); background: var(--field-fill); border-color: var(--color-input); }
.usage-kpis { margin-bottom: 16px; }
.usage-kpis .kpi .l { display: flex; align-items: center; gap: 6px; }
.usage-kpis .kpi .tiny { margin-top: 2px; }
.usage-chart { padding: 16px 20px 12px; }
.usage-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.usage-chart h2, .usage-card h2 { font-size: 14px; font-weight: 600; margin: 0; }
.chart { position: relative; height: 168px; padding: 0 0 22px 52px; }
.chart-grid { position: absolute; inset: 0 0 22px 52px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-line { position: relative; height: 0; border-top: 1px solid color-mix(in oklab, var(--color-foreground) 7%, transparent); }
.chart-line span { position: absolute; right: calc(100% + 8px); top: -8px; font-size: 11px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-bars { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 2px; }
.chart-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; border-radius: 4px 4px 0 0; outline: none; cursor: default; }
.chart-col:hover, .chart-col:focus-visible { background: color-mix(in oklab, var(--color-foreground) 5%, transparent); }
.chart-bar { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--color-badge-info); opacity: 0.85; }
.chart-col:hover .chart-bar, .chart-col:focus-visible .chart-bar { opacity: 1; }
.chart-x { position: absolute; left: 52px; right: 0; bottom: 0; height: 16px; }
.chart-x span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--color-muted-foreground); white-space: nowrap; }
.chart-tip {
  position: absolute; z-index: 5; min-width: 160px; max-width: 240px; padding: 8px 10px; border-radius: var(--radius-md); pointer-events: none;
  background: var(--color-popover); color: var(--color-popover-foreground); font-size: 12px; line-height: 1.5;
  box-shadow: 0 0 0 1px var(--color-border), 0 8px 24px rgb(0 0 0 / 0.3);
}
.chart-tip strong { display: block; font-weight: 600; }
.chart-tip .row-line { display: flex; justify-content: space-between; gap: 12px; color: var(--color-muted-foreground); }
.chart-tip .row-line b { font-weight: 500; color: var(--color-foreground); font-variant-numeric: tabular-nums; }
.page.fill > .usage-chart { margin-bottom: 16px; }
.page.fill > .usage-grid { flex: 1; min-height: 0; }
.usage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 16px; }
.usage-card { margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; min-height: 0; }
.usage-card h2 { padding: 0 16px 8px; }
.usage-card > p { padding: 0 16px; }
.usage-list { list-style: none; margin: 0; padding: 0 16px 12px; overflow: auto; flex: 1; min-height: 0; scrollbar-gutter: stable; }
.usage-list li { padding: 10px 0; border-top: 1px solid var(--color-border); }
.usage-list li:first-child { border-top: 0; }
.u-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.u-name { min-width: 0; display: flex; flex-direction: column; font-size: 13px; font-weight: 500; }
.u-name a { color: inherit; }
.u-name .tiny { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-usd { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.u-share { height: 4px; margin: 6px 0 4px; border-radius: 2px; background: color-mix(in oklab, var(--color-foreground) 7%, transparent); overflow: hidden; }
.u-share span { display: block; height: 100%; min-width: 2px; border-radius: 2px; background: var(--color-badge-info); }
/* Too narrow or short for four columns under the chart: the page scrolls and each breakdown gets a fixed height */
@container (max-width: 1100px) { .usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; } }
@container (max-width: 640px) { .usage-grid { grid-template-columns: 1fr; } .usage-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1240px), (max-height: 760px) { .usage-page.fill { overflow: auto; display: block; } .usage-page .usage-grid { grid-auto-rows: 300px; } }
.past-run { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; color: var(--color-muted-foreground); border-bottom: 1px solid var(--color-border); }
.past-run svg { width: 16px; height: 16px; flex: none; }
.past-run span { flex: 1; min-width: 0; }
.run-actions { width: 1%; white-space: nowrap; text-align: right; }
td.run-actions { padding-block: 8px; }
td.run-actions .btn + .btn { margin-left: 4px; }
/* A step's name opens its results under the steps; the step showing them is marked */
.step-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 30%, transparent); text-underline-offset: 3px; }
.step-link:hover { text-decoration-color: currentColor; }
.stepper-item.shown { box-shadow: 0 0 0 1px color-mix(in oklab, var(--color-foreground) 28%, transparent); }

.step-info { display: none; }
.stepper-item.squeezed .stepper-text > strong { display: flex; align-items: center; gap: 6px; }
.stepper-item.squeezed .step-info { display: inline-flex; flex: none; }
.stepper-item.squeezed .stepper-text > .tiny { display: none; }
.pill > svg { width: 12px; height: 12px; flex: none; margin-right: 5px; }
.pill > svg.spin { animation: spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .pill > svg.spin { animation: none; } }

/* A ranking in progress: its stages, the funnel of who's being ranked, and the latest scores */
.live-run { padding: 20px; gap: 16px; }
.live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.live-head h2 { font-size: 16px; margin: 0 0 2px; }
.live-meta { margin: 0; font-variant-numeric: tabular-nums; }
.live-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.live-stages li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--color-muted-foreground); background: color-mix(in oklab, var(--color-foreground) 4%, transparent); }
.live-stages li svg { width: 12px; height: 12px; color: var(--color-badge-success); }
.live-stages li .spinner { width: 12px; height: 12px; }
.live-stages li .dot { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklab, var(--color-foreground) 25%, transparent); }
.live-stages li.now { color: var(--color-foreground); background: color-mix(in oklab, var(--color-badge-info) 14%, transparent); }
.live-stages li.later { opacity: 0.7; }
.live-stages .count { font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.live-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.live-block { min-height: 0; display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--radius-lg); box-shadow: 0 0 0 1px var(--color-border); }
.live-block h3 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.live-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.live-funnel { overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.funnel-label { display: flex; justify-content: space-between; font-size: 13px; }
.funnel-label strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.funnel-bar { height: 6px; margin-top: 5px; border-radius: 3px; background: color-mix(in oklab, var(--color-foreground) 7%, transparent); overflow: hidden; }
.funnel-bar span { display: block; height: 100%; border-radius: 3px; background: var(--color-badge-info); }
.funnel-row .tiny { margin: 4px 0 0; }
.funnel-dropped { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--color-border); display: flex; flex-direction: column; gap: 2px; }
.funnel-dropped li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; }
.funnel-check { margin: 0; }
.live-recent { list-style: none; margin: 0; padding: 0; overflow: auto; min-height: 0; }
.live-recent li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 40px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--color-border); font-size: 13px; }
.live-recent li:first-child { border-top: 0; }
.live-recent .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-recent .kind { font-size: 12px; color: var(--color-muted-foreground); }
.live-recent .score { text-align: right; font-variant-numeric: tabular-nums; color: var(--color-muted-foreground); }
.live-recent li.empty { display: block; }
@container (max-width: 760px) { .live-grid { grid-template-columns: 1fr; } }
