/* Brutus presentation. Tokens live in tokens.css, motion in motion.css.
   Desktop first; tablet at 1100px; phones at 700px. Phone geometry keeps the
   44px touch targets, the 44px sticky stage strip and the bottom navigation. */

/* ── Base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.43;
  font-synthesis: none;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--hairline-strong) transparent;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--canvas);
}
::selection {
  background: rgb(10 10 10 / 0.12);
}
h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
a,
input,
select,
textarea,
summary,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
  flex: none;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
.error {
  color: var(--ember) !important;
}
.notice {
  color: var(--ink-2);
}

/* Stage identity: an icon tint, never a fill. */
.stage-to_review {
  --stage: var(--stage-review);
}
.stage-to_apply {
  --stage: var(--stage-apply);
}
.stage-applying {
  --stage: var(--stage-applying);
}
.stage-ready_to_submit {
  --stage: var(--stage-ready);
}
.stage-applied {
  --stage: var(--stage-applied);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.primary,
.subtle-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-h);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
.primary {
  background: var(--ink-soft);
  color: var(--on-ink);
}
.primary:hover:not(:disabled) {
  background: var(--ink-hover);
}
.subtle-button {
  background: var(--fill);
  color: var(--ink);
}
.subtle-button:hover:not(:disabled) {
  background: var(--fill-hover);
}
.danger-button {
  background: var(--ember);
  color: #fff;
}
.danger-button:hover:not(:disabled),
.danger-button:focus-visible {
  background: var(--ember-hover);
}
.primary:disabled,
.subtle-button:disabled,
.danger-button:disabled {
  opacity: 0.45;
}
.primary svg,
.subtle-button svg,
.danger-button svg {
  width: 16px;
  height: 16px;
}
.primary.small {
  min-height: var(--control-h-sm);
  padding: 0 12px;
  font-size: var(--text-meta);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 3px;
}
.text-button:hover:not(:disabled) {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.text-button:disabled {
  opacity: 0.5;
}
.icon-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: var(--control-h);
  height: var(--control-h);
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}
.icon-action:hover:not(:disabled) {
  background: var(--overlay-hover);
  color: var(--ink);
}
.icon-action:disabled {
  opacity: 0.4;
}
.icon-action > span[data-icon] {
  height: 16px;
}
.delete-action:hover:not(:disabled),
.delete-action:focus-visible {
  background: var(--ember-wash);
  color: var(--ember);
}
kbd,
.kbd {
  display: inline-grid;
  place-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-small);
  background: var(--surface-alt);
  color: var(--muted);
  font: 500 11px/1 var(--font-mono);
}

/* Tooltip bubble. Motion is in motion.css. */
.tip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: max-content;
  max-width: 240px;
  padding: 6px 10px;
  border-radius: var(--radius-small);
  background: var(--tt-bg);
  color: var(--tt-fg);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  transform-origin: top right;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 6px 0 rgba(0, 0, 0, 0.05),
    0 4px 42px 0 rgba(0, 0, 0, 0.06);
}

/* Forward-arrow chevron (transitions.dev learn-more). */
.t-learn-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* ── Fields ─────────────────────────────────────────────────────── */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-meta);
  font-weight: 500;
  color: var(--ink-2);
}
/* Field look at zero specificity: any component class can restyle a field
   (the search box, compact filters, the stage select) without fighting it. */
:where(
  label input:not([type="checkbox"]):not([type="file"]),
  label select,
  label textarea,
  .blank-answer input,
  #company-search,
  #prompt-fallback-text
) {
  width: 100%;
  min-height: var(--control-h);
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background-color: var(--fill);
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.43;
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    border-color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
}
:where(label textarea, #prompt-fallback-text) {
  padding: 10px 14px;
  resize: vertical;
}
:where(label select) {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5L8 10.5L12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  cursor: pointer;
}
:where(
  label input:not([type="checkbox"]):not([type="file"]),
  label select,
  label textarea,
  .blank-answer input,
  #company-search,
  #prompt-fallback-text
):where(:hover:not(:focus):not(:disabled)) {
  background-color: var(--fill-hover);
}
:where(
  label input:not([type="checkbox"]):not([type="file"]),
  label select,
  label textarea,
  .blank-answer input,
  #company-search,
  #prompt-fallback-text
):where(:focus) {
  outline: none;
  border-color: var(--hairline-strong);
  background-color: var(--paper);
  box-shadow: var(--ring);
}
:where(label input, label select, label textarea):where(:disabled) {
  opacity: 0.55;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[readonly] {
  color: var(--ink-2);
}
.t-input.is-error,
label .t-input.is-error {
  border-color: var(--ember) !important;
}

/* Checkbox: a native input over a drawn box (transitions.dev checkbox). */
.t-check {
  position: relative;
  display: inline-grid;
  place-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-small);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  color: var(--on-ink);
  pointer-events: none;
}
.t-check svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
:checked + .t-check,
.t-check[aria-checked="true"],
:indeterminate + .t-check {
  background: var(--ink-soft);
  box-shadow: inset 0 0 0 1px var(--ink-soft);
}
:indeterminate + .t-check::after {
  content: "";
  position: absolute;
  inset: 8px 4px;
  border-radius: 1px;
  background: var(--on-ink);
}
:indeterminate + .t-check svg {
  display: none;
}
input:focus-visible + .t-check {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
input:disabled + .t-check {
  opacity: 0.4;
}
.job-check,
.column-check {
  position: relative;
  display: grid;
  place-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
}
.job-check input,
.column-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.job-check:hover .t-check,
.column-check:hover .t-check {
  box-shadow: inset 0 0 0 1px var(--muted);
}
.job-check:hover :checked + .t-check,
.column-check:hover :checked + .t-check {
  box-shadow: inset 0 0 0 1px var(--ink-soft);
}

/* ── App shell ──────────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--page-max);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  flex: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand-tag {
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--hairline-strong);
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 400;
  letter-spacing: 0;
}
.primary-nav {
  margin-left: auto;
}
.primary-nav.t-tabs {
  background: rgb(0 0 0 / 0.045);
}
.nav-item.t-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: var(--text-meta);
  font-weight: 500;
  white-space: nowrap;
}
.nav-item svg {
  width: 16px;
  height: 16px;
}
.primary-nav .t-tabs-pill {
  height: 32px;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.04),
    0 1px 2px rgb(0 0 0 / 0.08);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.profile-status {
  display: none;
}

/* ── Page header ────────────────────────────────────────────────── */
.browse-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 16px;
  flex: none;
}
h1 {
  font-size: var(--text-heading);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
}
h1 > span {
  color: var(--faint);
}
.browse-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-body);
}
.run-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 48%;
  height: 30px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 500;
}
.run-note svg {
  width: 14px;
  height: 14px;
}
.run-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}
.run-note[data-state="success"] .run-dot {
  background: var(--positive);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 0.14);
}
.run-note[data-state="failed"] .run-dot {
  background: var(--ember);
  box-shadow: 0 0 0 3px rgb(231 0 11 / 0.12);
}
#run-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Toolbar ────────────────────────────────────────────────────── */
.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex: none;
}
.search-box,
.compact-filter {
  flex-direction: row;
}
.search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--control-h);
  padding: 0 7px 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
  cursor: text;
  transition:
    border-color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
}
.search-box:hover {
  border-color: var(--hairline-strong);
}
.search-box:focus-within {
  border-color: var(--hairline-strong);
  box-shadow: var(--ring);
}
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 400;
}
.search-box input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  cursor: pointer;
}
.search-kbd {
  transition: opacity var(--duration-quick) var(--ease-smooth-out);
}
.search-box:focus-within .search-kbd {
  opacity: 0;
}
.extra-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.compact-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: var(--control-h);
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-meta);
  font-weight: 500;
  transition:
    border-color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
}
.compact-filter svg {
  width: 15px;
  height: 15px;
}
.compact-filter:hover {
  border-color: var(--hairline-strong);
}
.compact-filter:focus-within {
  border-color: var(--hairline-strong);
  box-shadow: var(--ring);
}
.compact-filter select {
  appearance: none;
  max-width: 150px;
  height: 100%;
  min-height: 0;
  padding: 0 20px 0 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5L8 10.5L12 6.5'/%3E%3C/svg%3E")
    no-repeat right center / 13px;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 500;
  cursor: pointer;
}
#company-toggle {
  max-width: 220px;
  color: var(--muted);
  cursor: pointer;
}
#company-label {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}
#company-toggle [data-icon="caret"] svg {
  width: 13px;
  height: 13px;
}
.filterbar #clear {
  border-color: var(--hairline);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}
.filterbar #clear:hover {
  border-color: var(--hairline-strong);
}
.mobile-run-status {
  display: none;
}
.company-filter {
  position: relative;
  min-width: 0;
}
.company-picker {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: min(300px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--paper);
  box-shadow: var(--shadow-popover);
}
#company-search {
  border-radius: 12px;
  font-size: var(--text-meta);
}
#company-options {
  max-height: 260px;
  margin-top: 4px;
  overflow-y: auto;
}
#company-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font-size: var(--text-meta);
  text-align: left;
}
#company-options button:hover,
#company-options .is-active {
  background: var(--fill);
  color: var(--ink);
}
#company-options [aria-selected="true"] {
  color: var(--ink);
  font-weight: 500;
}
#company-feedback {
  padding: 6px 10px 4px;
  color: var(--muted);
  font-size: var(--text-caption);
}
#company-feedback:empty {
  display: none;
}

/* ── Stage chips ────────────────────────────────────────────────── */
.browse-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 14px;
  flex: none;
}
.stage-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.stage-filters::-webkit-scrollbar {
  display: none;
}
.stage-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-meta);
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    border-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out),
    transform var(--duration-quick) var(--ease-smooth-out);
}
.stage-filters button svg {
  width: 14px;
  height: 14px;
  color: var(--stage, var(--muted));
}
.stage-filters button:hover {
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.stage-filters button:active {
  transform: scale(var(--scale-medium));
}
.stage-filters button[aria-pressed="true"] {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
  color: var(--on-ink);
  box-shadow: none;
}
.stage-filters button[aria-pressed="true"] svg {
  color: var(--stage, var(--on-ink));
}
/* How many jobs sit in each stage under the other filters. */
.stage-count {
  min-width: 18px;
  margin-right: -5px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out);
}
.stage-count[hidden] {
  display: none;
}
.stage-filters button[aria-pressed="true"] .stage-count {
  background: rgb(255 255 255 / 0.16);
  color: var(--on-ink);
}
.stage-short {
  display: none;
}
.result-count {
  margin-left: auto;
  padding-left: 8px;
  flex: none;
  color: var(--muted);
  font-size: var(--text-meta);
  white-space: nowrap;
}
#count {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mobile-list-tools {
  display: none;
}
.t-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--canvas);
}

/* ── Workspace ──────────────────────────────────────────────────── */
/* A narrow, condensed list beside a wide reader. */
.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  flex: 1;
  min-height: 0;
  padding-bottom: 20px;
}

/* ── List card ──────────────────────────────────────────────────── */
.list-pane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.columns-viewport {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px 0 8px 8px;
  border-bottom: 1px solid var(--hairline);
}
.view-toolbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px 8px 8px;
  border-bottom: 1px solid var(--hairline);
}
.view-switch .t-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  font-size: var(--text-meta);
  font-weight: 500;
}
.view-switch .t-tab svg {
  width: 15px;
  height: 15px;
}
/* Beside the narrow list the switch is icons; the board has room for words. */
.view-switch .tab-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.kanban-view .view-switch .t-tab {
  padding: 4px 12px;
}
.kanban-view .view-switch .tab-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}
.view-switch .t-tabs-pill {
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.04),
    0 1px 2px rgb(0 0 0 / 0.08);
}
#board-coverage {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sections-view #board-coverage {
  display: none;
}
.list-columns {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.list-columns > span {
  display: none;
}
.column-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-caption);
  white-space: nowrap;
}
.column-sort:hover {
  background: var(--overlay-hover);
  color: var(--ink);
}
.column-sort[aria-pressed="true"] {
  color: var(--ink);
}
.column-sort span {
  font-size: 12px;
  letter-spacing: 0;
}
.column-check {
  margin-right: 4px;
}
.feed {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#job-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior-y: contain;
  scroll-padding: 12px;
}
#list-footer {
  display: none;
  grid-column: 1 / -1;
  grid-row: 3;
}
.kanban-view #list-footer:not(:empty) {
  display: block;
}

/* Skeleton rows shown until the first page arrives. */
.feed > .t-skel-skeleton {
  pointer-events: none;
}
.skel-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 56px;
  grid-template-rows: 12px 10px;
  gap: 7px 10px;
  align-items: center;
  padding: 13px 14px 13px 12px;
  border-bottom: 1px solid var(--hairline);
}
.skel-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--fill);
}
.skel-row .skel-mark {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.skel-row .skel-title {
  width: 68%;
}
.skel-row .skel-sub {
  grid-column: 2;
  width: 44%;
}
.skel-row .skel-badge {
  grid-column: 3;
  grid-row: 1;
}
.skel-row:nth-child(2) .skel-title {
  width: 52%;
}
.skel-row:nth-child(3) .skel-title {
  width: 74%;
}
.skel-row:nth-child(4) .skel-sub {
  width: 30%;
}
.skel-row:nth-child(5) .skel-title {
  width: 58%;
}

/* ── Job rows: condensed, two lines ─────────────────────────────── */
.job-row-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  padding: 0 8px 0 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  transition: background-color var(--duration-quick) var(--ease-smooth-out);
}
.job-row-item:last-of-type {
  border-bottom: 0;
}
.job-row-item[data-checked] {
  background: var(--surface-alt);
}
.job-row-item:has(.job-row[aria-pressed="true"]) {
  background: var(--fill);
}
.job-row-item:has(.job-row[aria-pressed="true"])::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ink);
}
.job-row {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, max-content) minmax(0, 1fr) auto;
  grid-template-areas:
    "mark title title stage"
    "mark company loc date";
  align-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 1px;
  width: 100%;
  min-width: 0;
  padding: 9px 6px 9px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.job-row:focus-visible {
  outline-offset: -2px;
  border-radius: var(--radius-nested);
}
.job-identity,
.role-text,
.card-summary {
  display: contents;
}
.company-mark {
  grid-area: mark;
  align-self: center;
  display: grid;
  place-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: none;
  transition: opacity var(--duration-quick) var(--ease-smooth-out);
}
.job-row-item:has(.job-row[aria-pressed="true"]) .company-mark,
.job-row-item[data-checked] .company-mark {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.role-text strong {
  grid-area: title;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 19px;
  letter-spacing: -0.006em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-text small {
  display: none;
  font-size: var(--text-caption);
}
.company-text {
  grid-area: company;
  overflow: hidden;
  color: var(--ink-2);
  font-size: var(--text-meta);
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-text {
  grid-area: loc;
  display: block;
  min-width: 0;
  margin-left: -5px;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-text::before {
  content: "·";
  margin-right: 5px;
  color: var(--faint);
}
.location-text svg {
  display: none;
}
.location-text small {
  font-size: inherit;
}
.location-text small::before {
  content: "·";
  margin: 0 5px;
  color: var(--faint);
}
.date-text {
  display: none;
}
.card-stage {
  grid-area: stage;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: var(--text-caption);
  font-weight: 500;
  white-space: nowrap;
}
.card-stage svg {
  width: 13px;
  height: 13px;
  color: var(--stage);
}
.card-date {
  grid-area: date;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-date svg {
  display: none;
}

/* The avatar doubles as the checkbox: hover, focus, a tick, or an active
   selection swaps the monogram for the box. */
.job-check {
  position: absolute;
  top: 50%;
  left: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  translate: 0 -50%;
}
.job-check .t-check {
  opacity: 0;
  transition:
    opacity var(--duration-quick) var(--ease-smooth-out),
    background var(--check-box) var(--check-ease),
    box-shadow var(--check-box) var(--check-ease);
}
.job-check input:checked + .t-check,
.job-check input:focus-visible + .t-check,
#job-list.is-selecting .job-check .t-check {
  opacity: 1;
}
.job-row-item:has(.job-check input:checked) .company-mark,
.job-row-item:has(.job-check input:focus-visible) .company-mark,
#job-list.is-selecting .company-mark {
  opacity: 0;
}
.card-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
}
.card-actions a {
  display: inline-grid;
  place-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-control);
  color: var(--muted);
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out),
    opacity var(--duration-quick) var(--ease-smooth-out);
}
.card-actions a:hover {
  background: var(--overlay-hover);
  color: var(--ink);
}
.card-actions svg {
  width: 15px;
  height: 15px;
}
.job-row.is-rejected {
  opacity: 0.55;
}
.feed-more.subtle-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-meta);
}
.feed-more.subtle-button:hover:not(:disabled) {
  background: var(--surface-alt);
  color: var(--ink);
}
#list-footer .subtle-button {
  width: auto;
  margin: 0 12px 12px;
}

/* ── Sections: the list split into stage sections, Asana-style ────── */
.stage-section {
  border-bottom: 1px solid var(--hairline);
}
.stage-section:last-of-type {
  border-bottom: 0;
}
.section-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--frost);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 600;
  text-align: left;
  transition: background-color var(--duration-quick) var(--ease-smooth-out);
}
.stage-section[data-open="false"] .section-head {
  border-bottom-color: transparent;
}
.section-head:hover {
  background: var(--surface-alt);
}
.section-head > svg {
  width: 15px;
  height: 15px;
  color: var(--stage);
}
.section-head .t-acc-chevron {
  color: var(--muted);
}
.section-head .lane-count {
  margin-left: auto;
}
.section-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-section.is-drop-target .section-head {
  background: var(--fill);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.section-rows .lane-empty {
  margin: 0;
  padding: 12px 14px 12px 50px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: var(--text-caption);
  text-align: left;
}
.sections-view .card-stage {
  display: none;
}
/* Pointing at a section row floats the same icon actions as a board card. */
.sections-view .card-tools {
  position: absolute;
  grid-area: auto;
  top: 50%;
  right: 40px;
  z-index: 3;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-popover);
  opacity: 0;
  pointer-events: none;
  translate: 0 -50%;
  scale: var(--scale-medium);
  transition:
    opacity var(--duration-quick) var(--ease-smooth-out),
    scale var(--duration-quick) var(--ease-smooth-out);
}
.sections-view .card-tools .card-reject {
  margin-left: 0;
}
.sections-view .job-row-item:hover .card-tools,
.sections-view .job-row-item:focus-within .card-tools {
  opacity: 1;
  pointer-events: auto;
  scale: 1;
}
.t-acc-chevron svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Empty states. */
.empty-list,
.empty-detail {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 280px;
  padding: 40px 28px;
  text-align: center;
}
.empty-mark {
  display: grid;
  place-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--fill);
  color: var(--ink-2);
}
.empty-mark svg {
  width: 22px;
  height: 22px;
}
.empty-list h2,
.empty-detail h2 {
  font-size: var(--text-subheading);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.empty-list p,
.empty-detail p {
  max-width: 320px;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.55;
}
.empty-list .primary,
.empty-detail .subtle-button {
  margin-top: 10px;
}

/* Selection: a floating capsule over the end of the list. */
.selection-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: var(--ink-soft);
  color: var(--on-ink);
  box-shadow: var(--shadow-popover);
  animation: rise-in var(--duration-fast) var(--ease-smooth-out);
}
.selection-count {
  margin-right: 6px;
  font-size: var(--text-meta);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: var(--on-ink);
  font-size: var(--text-meta);
  font-weight: 500;
  white-space: nowrap;
}
.pill-action:hover,
.pill-action:focus-visible {
  background: rgb(255 255 255 / 0.18);
}
.pill-action svg {
  width: 15px;
  height: 15px;
}
.pill-danger {
  color: #ff8a8a;
}
.pill-danger:hover,
.pill-danger:focus-visible {
  background: var(--ember);
  color: #fff;
}
.pill-ghost {
  background: transparent;
  color: #a3a3a3;
}
.pill-action:focus-visible {
  outline-color: var(--on-ink);
}
.list-pane:has(.selection-bar:not([hidden])) #job-list {
  padding-bottom: 72px;
}

/* ── Kanban ─────────────────────────────────────────────────────── */
/* The board always has the full width; a job opens in a bottom sheet. */
.kanban-view .workspace,
.kanban-view .workspace.has-selection {
  grid-template-columns: minmax(0, 1fr);
}
.kanban-view .workspace:not(.has-selection) .details {
  display: none;
}
.kanban-view .columns-viewport {
  display: none;
}
.kanban-view .view-toolbar {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding: 8px 12px;
}
.kanban-view #job-list {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  overflow: auto;
  touch-action: pan-x pan-y pinch-zoom;
}
.kanban-column {
  display: flex;
  flex: 1 0 264px;
  flex-direction: column;
  gap: 6px;
  max-width: 380px;
  min-height: 160px;
  padding: 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--surface-alt);
  transition:
    border-color var(--duration-quick) var(--ease-smooth-out),
    background-color var(--duration-quick) var(--ease-smooth-out);
}
.kanban-column.is-drop-target {
  border-color: var(--ink);
  background: var(--fill);
}
.kanban-column h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin: 0;
  padding: 0 4px 0 8px;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0;
}
.kanban-column h2 svg {
  width: 15px;
  height: 15px;
  color: var(--stage);
}
.lane-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 48px;
}
/* A card is two lines: title, then company. Open and move sit at the side. */
.kanban-view .job-row-item {
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-areas:
    "row link"
    "tracking tracking"
    "tools tools";
  align-items: start;
  column-gap: 2px;
  padding: 8px 6px 8px 8px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  cursor: grab;
  transition:
    border-color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
}
.kanban-view .job-row-item:last-of-type {
  border-bottom: 1px solid var(--hairline);
}
.kanban-view .job-row-item:active {
  cursor: grabbing;
}
.kanban-view .job-row-item[data-checked],
.kanban-view .job-row-item:has(.job-row[aria-pressed="true"]) {
  background: var(--paper);
}
.kanban-view .job-row-item:has(.job-row[aria-pressed="true"]) {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.kanban-view .job-row-item:has(.job-row[aria-pressed="true"])::before {
  display: none;
}
.kanban-view .job-row {
  grid-area: row;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "mark title"
    "mark company";
  align-content: start;
  column-gap: 9px;
  row-gap: 1px;
  min-height: 0;
  padding: 0;
}
.kanban-view .company-mark {
  align-self: start;
}
.kanban-view .role-text strong {
  display: -webkit-box;
  font-size: var(--text-meta);
  line-height: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.kanban-view .company-text {
  font-size: var(--text-caption);
  line-height: 17px;
}
.kanban-view .location-text,
.kanban-view .card-stage,
.kanban-view .card-date {
  display: none;
}
.kanban-view .job-check {
  top: 4px;
  left: 4px;
  translate: none;
}
.kanban-view .card-actions {
  grid-area: link;
  grid-column: auto;
  grid-row: auto;
}
/* Icon actions under the card: advance, stage menu, reject. */
.card-tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}
.card-tool {
  display: inline-grid;
  place-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out),
    transform var(--duration-quick) var(--ease-smooth-out);
}
.card-tool svg {
  width: 15px;
  height: 15px;
}
.card-tool:hover:not(:disabled) {
  background: var(--overlay-hover);
  color: var(--ink);
}
.card-tool:active:not(:disabled) {
  transform: scale(var(--scale-medium));
}
.card-tool:disabled {
  opacity: 0.4;
}
.card-advance svg {
  color: var(--stage);
}
.card-reject {
  margin-left: auto;
}
.card-reject:hover:not(:disabled) {
  background: var(--ember-wash);
  color: var(--ember);
}
/* The stage menu: a small button showing the current stage, with a native
   select laid over it so the choice list stays the platform's own. */
.board-move {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  height: 28px;
  padding: 0 6px 0 7px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color var(--duration-quick) var(--ease-smooth-out),
    background-color var(--duration-quick) var(--ease-smooth-out);
}
.board-move:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-alt);
}
.board-move:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.board-move > svg {
  width: 14px;
  height: 14px;
}
.board-move > svg:first-child {
  color: var(--stage);
}
.board-move > svg + svg {
  width: 11px;
  height: 11px;
}
.board-move select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
}
/* Dragging: the card left behind dims; the copy under the pointer lifts. */
.kanban-view .job-row-item.is-dragging,
.sections-view .job-row-item.is-dragging {
  opacity: 0.4;
}
.job-row-item.drag-image {
  position: fixed;
  top: -1000px;
  left: -1000px;
  z-index: 1000;
  rotate: 2deg;
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-popover);
  pointer-events: none;
}
/* A rejected card fades and shrinks away before the lane closes the gap. */
@keyframes card-leave {
  to {
    opacity: 0;
    transform: scale(var(--scale-large));
    filter: blur(var(--blur-small));
  }
}
.job-row-item.is-leaving {
  pointer-events: none;
  animation: card-leave var(--duration-fast) var(--ease-smooth-out) forwards;
}
.board-tracking {
  grid-area: tracking;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.lane-empty {
  margin: 0;
  padding: 14px 8px;
  border: 1px dashed var(--hairline-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: var(--text-caption);
  text-align: center;
}
.kanban-view .feed-more.subtle-button {
  flex: 0 0 140px;
  align-self: flex-start;
  min-height: 40px;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-control);
}
.kanban-view #list-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--hairline);
}
.kanban-view #list-footer .subtle-button {
  margin: 0;
}

/* The board's reader: a bottom sheet over a scrim (panel reveal). */
.sheet-scrim {
  display: none;
}
.kanban-view .workspace.has-selection .sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: block;
  background: rgb(10 10 10 / 0.28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity var(--panel-close-dur) var(--panel-ease);
  animation: fade-in var(--panel-open-dur) var(--panel-ease);
}
.kanban-view
  .workspace.has-selection:has(.details[data-open="false"])
  .sheet-scrim {
  opacity: 0;
  pointer-events: none;
}
.kanban-view .workspace.has-selection .details {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 41;
  width: min(940px, calc(100vw - 32px));
  height: min(88dvh, 960px);
  margin: 0 auto;
  border-bottom: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: var(--shadow-dialog);
}
.kanban-view .details::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 3;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 999px;
  background: var(--hairline-strong);
}
.kanban-view .detail-top {
  padding-top: 16px;
}
.back-detail .close-glyph,
.kanban-view .back-detail .back-glyph {
  display: none;
}
.kanban-view .back-detail .close-glyph,
.back-detail .back-glyph {
  display: inline-flex;
}
.kanban-view .back-detail {
  display: inline-flex;
  order: 9;
}

/* Tracking badge: a neutral pill; the glyph carries the colour. */
.tracking-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px 0 6px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: var(--text-caption);
  font-weight: 500;
  white-space: nowrap;
}
.tracking-badge svg {
  width: 13px;
  height: 13px;
}

/* ── Reader ─────────────────────────────────────────────────────── */
.details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.detail-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 60px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  transition: box-shadow var(--duration-fast) var(--ease-smooth-out);
}
.details.is-scrolled .detail-top {
  box-shadow: 0 8px 16px -14px rgb(0 0 0 / 0.35);
}
.back-detail {
  display: none;
}
.detail-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.detail-top .company-mark {
  width: 32px;
  height: 32px;
  font-size: 11px;
}
.sticky-identity {
  display: block;
  min-width: 0;
}
.sticky-identity strong,
.sticky-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-identity strong {
  font-size: var(--text-meta);
  font-weight: 600;
}
.sticky-identity span {
  color: var(--muted);
  font-size: var(--text-caption);
}
.detail-navigation {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: var(--fill);
}
.detail-navigation .icon-action {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink-2);
}
.detail-navigation .icon-action:hover:not(:disabled) {
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}
.detail-navigation .icon-action:disabled {
  opacity: 0.3;
}
.detail-body {
  flex: 1;
  min-height: 0;
  padding: 0 28px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
  scroll-padding: 20px;
}
.detail-body:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--hairline-strong);
}
.review-position {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.review-position span {
  display: none;
  letter-spacing: 0;
  text-transform: none;
}
.details h2 {
  margin: 8px 0 8px;
  font-size: var(--text-heading-sm);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  overflow-wrap: anywhere;
}
.company-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--muted);
  font-size: var(--text-body);
}
.company-line strong {
  color: var(--ink);
  font-weight: 500;
}
.company-line svg {
  width: 15px;
  height: 15px;
}
.company-line > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: var(--text-caption);
  font-weight: 500;
}
.tag svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: var(--text-meta);
}
.detail-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.detail-meta > span svg {
  width: 14px;
  height: 14px;
}
.source-link,
.application-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.source-link:hover,
.application-open:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-alt);
}
.source-link svg,
.application-open svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.sighting-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--hairline);
}
.sighting-dates > div {
  padding: 10px 14px;
  background: var(--paper);
}
.sighting-dates dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-caption);
}
.sighting-dates dt svg {
  width: 13px;
  height: 13px;
}
.sighting-dates dd {
  margin-top: 2px;
  font-size: var(--text-body);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
}
.eyebrow svg {
  width: 14px;
  height: 14px;
}
.match-card {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--surface-alt);
}
.match-card .eyebrow svg {
  color: var(--stage-ready);
}
.match-card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: var(--text-body);
  line-height: 1.6;
}
.evidence {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.55;
}
.evidence strong {
  color: var(--ink);
  font-weight: 500;
}
.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 10px;
  font-size: var(--text-body);
  font-weight: 600;
  letter-spacing: -0.006em;
}
.detail-section h3 svg {
  color: var(--muted);
}
.prose {
  color: var(--ink-2);
  font-size: var(--text-body);
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.job-description {
  white-space: normal;
}
.job-description p,
.job-description ul,
.job-description ol,
.job-description blockquote {
  margin: 0 0 12px;
}
.job-description ul,
.job-description ol {
  padding-left: 20px;
}
.job-description li {
  margin: 4px 0;
}
.job-description li::marker {
  color: var(--faint);
}
.job-description li > ul,
.job-description li > ol {
  margin-bottom: 4px;
}
.job-description :is(h1, h2, h3, h4, h5, h6) {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}
.job-description strong,
.job-description b {
  color: var(--ink);
  font-weight: 600;
}
.job-description pre {
  white-space: pre-wrap;
}
.job-description blockquote {
  padding-left: 12px;
  border-left: 2px solid var(--hairline);
}
.job-description table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.job-description :is(th, td) {
  padding: 6px 8px;
  border: 1px solid var(--hairline);
}
.job-description > :first-child {
  margin-top: 0;
}
.job-description hr {
  border: 0;
  border-top: 1px solid var(--hairline);
}
.posting-verification {
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
}
.posting-verification summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 500;
}
.posting-verification summary:hover {
  color: var(--ink);
}
.posting-verification summary > svg:last-child {
  margin-left: auto;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.posting-verification[open] summary > svg:last-child {
  transform: scaleY(-1);
}
.posting-verification h3 {
  margin: 12px 0 6px;
  font-size: var(--text-meta);
}
.posting-verification .prose {
  color: var(--muted);
  font-size: var(--text-meta);
}

/* Status: one row of three answers that save on tap. */
.tracking-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 7px 7px 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--paper);
}
.tracking-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--text-meta);
  font-weight: 600;
  white-space: nowrap;
}
.tracking-choices {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.tracking-choices button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: var(--text-meta);
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color var(--duration-quick) var(--ease-smooth-out),
    border-color var(--duration-quick) var(--ease-smooth-out),
    color var(--duration-quick) var(--ease-smooth-out),
    transform var(--duration-quick) var(--ease-smooth-out);
}
.tracking-choices button:hover:not(:disabled) {
  border-color: var(--hairline-strong);
  color: var(--ink);
}
.tracking-choices button:active:not(:disabled) {
  transform: scale(var(--scale-medium));
}
.tracking-choices button[aria-pressed="true"] {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
  color: var(--on-ink);
}
.tracking-choices button:disabled {
  cursor: progress;
}

/* Application and cover-letter cards. */
.application-card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}
.application-card:empty {
  display: none;
}
.application-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.application-card .application-mark {
  display: inline-grid;
  place-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-nested);
  background: var(--fill);
  color: var(--ink-2);
  flex: none;
}
.application-card .application-mark svg {
  width: 17px;
  height: 17px;
}
.progress-filling .application-mark {
  color: var(--stage-applying);
}
.progress-ready_to_submit .application-mark {
  color: var(--stage-ready);
}
.progress-blocked .application-mark {
  color: var(--ember);
}
.cover-letter-card .application-mark {
  color: var(--ink-2);
}
.application-heading {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.application-heading strong {
  font-size: var(--text-body);
  font-weight: 600;
}
.application-heading small {
  color: var(--muted);
  font-size: var(--text-caption);
}
.application-open {
  flex: none;
  margin-left: auto;
}
.application-meter {
  height: 6px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--fill);
}
.application-meter span {
  display: block;
  width: var(--fill);
  height: 100%;
  border-radius: 999px;
  background: var(--ink-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .application-meter span {
    animation: meter-fill var(--duration-very-slow) var(--ease-smooth-out) both
      var(--duration-fast);
  }
}
@keyframes meter-fill {
  from {
    width: 0;
  }
}
.application-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: var(--text-meta);
}
.application-stats b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.application-file {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.application-file svg {
  width: 13px;
  height: 13px;
}
.application-blocker,
.resume-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: var(--text-meta);
  line-height: 1.5;
}
.application-blocker svg,
.resume-warning svg {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--stage-apply);
}
.application-blanks {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.application-blanks h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: var(--text-meta);
  font-weight: 600;
}
.application-blanks h4 svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.answered-count {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: var(--text-caption);
  font-weight: 500;
}
.application-blanks ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.application-blanks li {
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface-alt);
}
@media (prefers-reduced-motion: no-preference) {
  .application-blanks li {
    animation: rise-in var(--duration-slow) var(--ease-smooth-out) both;
    animation-delay: calc(var(--row, 0) * var(--duration-stagger) + 120ms);
  }
}
.blank-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.blank-copy strong {
  font-size: var(--text-meta);
  font-weight: 600;
}
.blank-copy span {
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.5;
}
.blank-answer {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.blank-answer input {
  flex: 1;
  min-width: 0;
  background-color: var(--paper);
  border-color: var(--hairline);
}
.blank-answer input:focus {
  border-color: var(--hairline-strong);
}
.blank-save.subtle-button {
  flex: none;
  width: auto;
  background: var(--ink-soft);
  color: var(--on-ink);
}
.blank-save.subtle-button:hover:not(:disabled) {
  background: var(--ink-hover);
}
.application-blanks li.is-answered {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
}
.application-blanks li.is-answered .blank-copy {
  min-width: 0;
}
.blank-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex: none;
  color: var(--ink-2);
  font-size: var(--text-caption);
  font-weight: 500;
}
.blank-done svg {
  width: 14px;
  height: 14px;
  color: var(--positive);
}
.application-filled {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--text-meta);
}
.application-filled summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--ink-2);
  font-weight: 500;
}
.application-filled summary::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23737373' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5L8 10.5L12 6.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform var(--acc-chevron) var(--acc-ease);
}
.application-filled[open] summary::after {
  transform: scaleY(-1);
}
.application-filled dl {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.application-filled dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
}
.application-filled dt {
  color: var(--muted);
  font-size: var(--text-caption);
  overflow-wrap: anywhere;
}
.application-filled dd {
  color: var(--ink);
  font-size: var(--text-meta);
  overflow-wrap: anywhere;
}
.application-footnote {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: var(--text-caption);
  line-height: 1.55;
}
.cover-letter-text {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--ink-2);
}
.cover-letter-text p {
  margin: 0 0 10px;
  line-height: 1.6;
}
.cover-letter-text p:last-child {
  margin-bottom: 0;
}

/* Action dock. */
.detail-dock {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 12px 16px;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.detail-dock .icon-action {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-color: var(--hairline);
  background: var(--paper);
  color: var(--ink-2);
}
.detail-dock .icon-action:hover:not(:disabled) {
  border-color: var(--hairline-strong);
  background: var(--surface-alt);
}
.detail-dock .apply-action {
  flex: 1;
  width: auto;
  min-width: 0;
  gap: 8px;
  padding: 0 16px;
  border-color: var(--ink-soft);
  background: var(--ink-soft);
  color: var(--on-ink);
}
.detail-dock .apply-action:hover:not(:disabled) {
  border-color: var(--ink-hover);
  background: var(--ink-hover);
  color: var(--on-ink);
}
.detail-dock .review-action {
  border-color: transparent;
  background: var(--fill);
  color: var(--ink);
}
.detail-dock .review-action:hover:not(:disabled) {
  border-color: transparent;
  background: var(--fill-hover);
  color: var(--ink);
}
.action-label {
  overflow: hidden;
  font-size: var(--text-body);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pipeline-control {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  width: 132px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 500;
  transition:
    border-color var(--duration-quick) var(--ease-smooth-out),
    box-shadow var(--duration-quick) var(--ease-smooth-out);
}
.pipeline-control:hover {
  border-color: var(--hairline-strong);
}
.pipeline-control:focus-within {
  border-color: var(--hairline-strong);
  box-shadow: var(--ring);
}
.pipeline-control > svg {
  width: 14px;
  height: 14px;
  color: var(--stage);
}
.stage-caption {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-caret {
  display: flex;
  color: var(--muted);
}
.stage-caret svg {
  width: 13px;
  height: 13px;
}
.pipeline-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
}
.pipeline-control select:disabled {
  cursor: default;
}
.detail-dock .open-job {
  text-decoration: none;
}
.detail-dock .reject-action:hover:not(:disabled),
.detail-dock .reject-action:focus-visible {
  border-color: rgb(231 0 11 / 0.25);
  background: var(--ember-wash);
  color: var(--ember);
}
.detail-dock .reject-action.is-rejected {
  border-color: transparent;
  background: var(--ember-wash);
  color: var(--ember);
}
.detail-dock .tip {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom right;
}
.review-complete .empty-mark {
  color: var(--positive);
}

/* ── Dialogs ────────────────────────────────────────────────────── */
dialog {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-dialog);
  color: var(--ink);
  overscroll-behavior: contain;
}
dialog:focus-visible {
  outline: none;
}
dialog::backdrop {
  background: rgb(10 10 10 / 0.3);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 6px 24px;
}
.dialog-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
}
.dialog-heading h2 svg {
  width: 20px;
  height: 20px;
  color: var(--ink-2);
}
.dialog-intro {
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.5;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px 14px 24px;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.dialog-footer > span {
  max-width: 420px;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.45;
}
/* Sign-in, consent, confirmations. */
#unlock,
#oauth-consent {
  width: min(420px, calc(100vw - 32px));
}
#oauth-consent {
  width: min(460px, calc(100vw - 32px));
}
#unlock::backdrop {
  background: var(--canvas);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.signin-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
}
.signin-content > .brand-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 11px;
}
.signin-content h2 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: var(--tracking-display);
}
.signin-content p {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.55;
}
.signin-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signin-steps {
  margin-top: 4px;
}
#email-login-form,
#email-verify-form,
#unlock-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#unlock .primary {
  min-height: 40px;
}
#unlock small {
  color: var(--muted);
  font-size: var(--text-caption);
}
#sent-to {
  color: var(--ink-2);
}
#signin-code {
  font-size: 22px !important;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#email-message {
  color: var(--muted);
  font-size: var(--text-meta);
}
#email-message:empty {
  display: none;
}
.signin-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#local-access {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: var(--text-meta);
}
#local-access summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
#local-access summary svg {
  width: 14px;
  height: 14px;
}
#unlock-form {
  padding-top: 14px;
}
#unlock-error:empty {
  display: none;
}
#oauth-consent h2 {
  font-size: 24px;
}
.oauth-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-alt);
  font-size: var(--text-meta);
  overflow-wrap: anywhere;
}
.oauth-permissions {
  display: grid;
  gap: 12px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
}
.oauth-permissions li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: var(--text-meta);
  line-height: 1.5;
}
.oauth-permissions svg,
.oauth-account svg {
  width: 17px;
  height: 17px;
  color: var(--ink-2);
}
.oauth-note,
.oauth-destination {
  font-size: var(--text-meta) !important;
  overflow-wrap: anywhere;
}
.oauth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
#oauth-message {
  color: var(--ember) !important;
}
#oauth-message:empty {
  display: none;
}
#oauth-restart {
  font-size: var(--text-meta);
}
#confirm-delete,
#prompt-fallback {
  width: min(420px, calc(100vw - 32px));
}
.confirm-content {
  gap: 12px;
  padding: 28px;
}
.confirm-mark {
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ember-wash);
  color: var(--ember);
}
.confirm-mark svg {
  width: 19px;
  height: 19px;
}
.confirm-content h2 {
  font-size: var(--text-subheading);
  letter-spacing: -0.015em;
}
.confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
#prompt-fallback-text {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}

/* Filters (a sheet on phones; desktop keeps the controls inline). */
#filters-dialog {
  width: min(480px, calc(100vw - 32px));
}
#filters-slot {
  padding: 8px 22px 22px;
}

/* ── Toast ──────────────────────────────────────────────────────── */
#toast {
  position: fixed;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 100;
  width: max-content;
  max-width: min(460px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink-soft);
  color: var(--on-ink);
  box-shadow: var(--shadow-popover);
  font-size: var(--text-meta);
  font-weight: 500;
  line-height: 1.45;
  pointer-events: none;
}

/* ── Hover-capable vs touch ─────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .job-row-item:hover:not(:has(.job-row[aria-pressed="true"])):not(
      [data-checked]
    ) {
    background: var(--surface-alt);
  }
  /* Pointing at a row swaps its avatar for the checkbox and reveals the link. */
  .job-row-item:hover .job-check .t-check {
    opacity: 1;
  }
  .job-row-item:hover .company-mark {
    opacity: 0;
  }
  .card-actions a {
    opacity: 0;
  }
  .job-row-item:hover .card-actions a,
  .job-row-item:focus-within .card-actions a,
  .job-row-item:has(.job-row[aria-pressed="true"]) .card-actions a {
    opacity: 1;
  }
  .kanban-view .job-row-item:hover:not(:has(.job-row[aria-pressed="true"])) {
    border-color: var(--hairline-strong);
    background: var(--paper);
    box-shadow: 0 4px 12px -6px rgb(0 0 0 / 0.14);
  }
}
@media (hover: none), (pointer: coarse) {
  .tip {
    display: none !important;
  }
  .sections-view .card-tools {
    display: none;
  }
  .icon-action {
    min-width: var(--touch);
    min-height: var(--touch);
  }
}

/* ── Tablet ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root {
    --gutter: 20px;
  }
  .brand-tag,
  .extra-filters .mobile-sort {
    display: none;
  }
  .run-note {
    max-width: 52%;
  }
  .workspace,
  .workspace.has-selection {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 12px;
  }
  .detail-body {
    padding-inline: 22px;
  }
  .pipeline-control {
    width: 128px;
  }
  .column-sort {
    padding: 0 5px;
    letter-spacing: 0.02em;
  }
  .view-switch .t-tab {
    padding: 4px 7px;
  }
  .card-stage .stage-label {
    display: none;
  }
  .stage-filters .stage-long {
    display: none;
  }
  .stage-filters .stage-short {
    display: inline;
  }
}
@media (max-width: 900px) and (min-width: 701px) {
  .nav-item.t-tab {
    padding: 0 10px;
  }
  .nav-item.t-tab > span:not([data-icon]) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .browse-heading > div > p {
    display: none;
  }
  .detail-dock .action-label {
    font-size: var(--text-meta);
  }
}
/* Desktop: header and filters keep the centred column; the board alone runs
   edge to edge so more stages fit side by side. */
@media (min-width: 701px) {
  body {
    overflow-x: clip;
  }
  .kanban-view .workspace {
    margin-inline: calc(50% - 50vw);
    padding-inline: var(--gutter);
  }
}
/* Landscape phones and short windows keep the reader usable. */
@media (min-width: 701px) and (max-height: 560px) {
  .topbar {
    height: 48px;
  }
  .browse-heading {
    display: none;
  }
  .filterbar,
  .browse-filters {
    margin-bottom: 8px;
  }
  .workspace {
    padding-bottom: 8px;
  }
  .detail-top {
    min-height: 48px;
    padding-block: 6px;
  }
  .detail-dock {
    padding-block: 6px;
  }
}

/* ── Phone ──────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  :root {
    --gutter: 16px;
    --nav-safe: min(8px, env(safe-area-inset-bottom));
    --nav-h: calc(52px + var(--nav-safe));
  }
  html,
  body {
    overscroll-behavior-x: none;
  }
  html:has(#app.mobile-review),
  html:has(dialog[open]) {
    overflow: hidden;
  }
  #app {
    height: auto;
    min-height: 100dvh;
    max-width: none;
    padding: env(safe-area-inset-top) var(--gutter) calc(var(--nav-h) + 16px);
  }
  #app input,
  #app select,
  dialog input,
  dialog select,
  dialog textarea,
  .blank-answer input {
    font-size: 16px;
  }
  .topbar {
    height: 56px;
    gap: 8px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-tag {
    display: none;
  }
  .top-actions {
    margin-left: auto;
    flex: none;
  }
  .top-actions .icon-action {
    width: var(--touch);
    min-width: var(--touch);
    height: var(--touch);
    padding: 0;
  }
  .tip {
    display: none !important;
  }

  /* Bottom navigation: frosted paper with a sliding pill. */
  .primary-nav.t-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    height: var(--nav-h);
    margin: 0;
    padding: 4px 8px calc(4px + var(--nav-safe));
    border-top: 1px solid var(--hairline);
    border-radius: 0;
    background: var(--frost);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
  }
  .nav-item.t-tab {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
  }
  .nav-item svg {
    width: 20px;
    height: 20px;
  }
  .primary-nav .t-tabs-pill {
    top: 4px;
    height: 44px;
    border-radius: 14px;
    background: var(--fill);
    box-shadow: none;
  }

  .browse-heading {
    display: none;
  }
  .filterbar {
    margin: 0 0 6px;
  }
  .search-box {
    height: var(--touch);
    padding: 0 8px 0 14px;
  }
  .search-box input::placeholder {
    font-size: var(--text-body);
  }
  .search-kbd {
    display: none;
  }

  /* Only the stage strip sticks. */
  .browse-filters {
    position: sticky;
    top: env(safe-area-inset-top);
    z-index: 20;
    gap: 0;
    height: 44px;
    margin: 0 calc(-1 * var(--gutter)) 6px;
    padding: 0 4px 0 var(--gutter);
    background: var(--frost-canvas);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    backdrop-filter: saturate(1.6) blur(16px);
  }
  .stage-filters {
    gap: 4px;
    height: 44px;
    padding-right: 8px;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 4px;
    touch-action: pan-x pan-y pinch-zoom;
  }
  .stage-filters button,
  .stage-filters button[aria-pressed="true"] {
    position: relative;
    isolation: isolate;
    height: 44px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .stage-filters button::before {
    content: "";
    position: absolute;
    inset: 6px 0;
    z-index: -1;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: var(--paper);
    transition:
      background-color var(--duration-quick) var(--ease-smooth-out),
      border-color var(--duration-quick) var(--ease-smooth-out);
  }
  .stage-filters button[aria-pressed="true"]::before {
    border-color: var(--ink-soft);
    background: var(--ink-soft);
  }
  .stage-filters button:hover {
    border-color: transparent;
  }
  .stage-long,
  .stage-filters .result-count {
    display: none;
  }
  .stage-short {
    display: inline;
  }
  .mobile-list-tools {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
  }
  .mobile-list-tools::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -16px;
    width: 16px;
    background: linear-gradient(90deg, transparent, var(--frost-canvas));
    pointer-events: none;
  }
  .mobile-list-tools > span,
  #filters-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #filters-toggle {
    position: relative;
    display: inline-grid;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
  }
  #filters-toggle svg {
    width: 20px;
    height: 20px;
  }
  #filters-toggle .t-badge {
    top: 9px;
    right: 9px;
  }

  /* Filters sheet. */
  #filters-dialog {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 40px);
    margin: 0;
    overflow: auto;
    border: 0;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
  #filters-dialog::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: var(--hairline-strong);
  }
  #filters-dialog .dialog-heading {
    padding: 14px 16px 4px 22px;
  }
  #filters-dialog h2 {
    font-size: 20px;
  }
  #filters-slot {
    padding: 8px 16px 16px;
  }
  #filters-dialog .extra-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }
  #filters-dialog .compact-filter {
    width: 100%;
    max-width: none;
    height: 48px;
    padding: 0 16px;
    box-shadow: none;
  }
  #filters-dialog .compact-filter select,
  #filters-dialog #company-toggle {
    width: 100%;
    max-width: none;
    font-size: 16px;
  }
  #filters-dialog #company-toggle {
    justify-content: flex-start;
  }
  #filters-dialog #company-toggle [data-icon="caret"] {
    margin-left: auto;
  }
  #filters-dialog .company-filter {
    order: 0;
  }
  #filters-dialog .mobile-sort {
    display: flex;
  }
  #filters-dialog #clear {
    order: 1;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-control);
    box-shadow: none;
    color: var(--ink-2);
  }
  #filters-dialog #clear::after {
    content: "Reset filters";
    margin-left: 6px;
    font-size: var(--text-body);
    font-weight: 500;
  }
  #filters-dialog .mobile-run-status {
    display: block;
    order: 2;
    margin: 2px 4px 0;
    color: var(--muted);
    font-size: var(--text-caption);
    line-height: 1.55;
  }
  #filters-dialog .company-picker {
    right: 0;
    left: 0;
    width: 100%;
    z-index: 5;
  }
  #company-search {
    font-size: 16px;
  }
  #company-options {
    max-height: 200px;
  }
  #company-options button {
    min-height: 44px;
  }
  #filters-dialog .dialog-footer {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom));
    border-top: 0;
  }
  #filters-dialog .dialog-footer > span {
    font-size: var(--text-caption);
  }

  /* Feed: the page scrolls; the list is one card. */
  .workspace,
  .workspace.has-selection {
    display: block;
    flex: none;
    min-height: 0;
    padding: 0;
  }
  .list-pane {
    display: block;
    height: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .view-toolbar,
  .kanban-view .view-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 0 8px;
    border: 0;
  }
  .view-switch.t-tabs {
    display: flex;
    flex: 1;
    background: rgb(0 0 0 / 0.05);
  }
  .view-switch .t-tab,
  .kanban-view .view-switch .t-tab {
    flex: 1;
    justify-content: center;
    height: 36px;
    padding: 0 10px;
  }
  #board-coverage {
    flex-basis: 100%;
    padding: 0 4px;
  }
  .view-switch .t-tabs-pill {
    height: 36px;
  }
  .columns-viewport {
    display: none;
  }
  .feed {
    display: block;
  }
  #job-list {
    width: 100%;
    height: auto;
    overflow: clip;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow-card);
    scrollbar-width: none;
  }
  .feed > .t-skel-skeleton {
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    background: var(--paper);
  }
  .skel-row {
    padding: 14px;
  }
  /* Condensed phone rows: title, then company · location with the stage
     mark and date at the end. The avatar is the 44px selection target. */
  .job-row-item {
    grid-template-columns: minmax(0, 1fr) 40px;
    padding: 0 2px 0 0;
  }
  .job-row {
    grid-template-columns: 32px minmax(0, max-content) minmax(0, 1fr) auto;
    grid-template-areas:
      "mark title title title"
      "mark company loc summary";
    column-gap: 10px;
    row-gap: 2px;
    padding: 10px 4px 10px 14px;
  }
  .company-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .role-text strong {
    display: -webkit-box;
    line-height: 19px;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .location-text small {
    display: none;
  }
  .card-summary {
    grid-area: summary;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-left: 6px;
  }
  .card-stage .stage-label {
    display: none;
  }
  .job-check {
    left: 8px;
    width: 44px;
    height: 44px;
  }
  .card-actions a {
    width: 40px;
    height: 44px;
  }
  .job-row-item:has(.job-row[aria-pressed="true"])::before {
    top: 12px;
    bottom: 12px;
  }
  .feed-more.subtle-button {
    min-height: 52px;
  }
  /* Section headers stick under the stage strip. */
  .section-head {
    top: calc(env(safe-area-inset-top) + 44px);
    height: 44px;
  }
  .section-rows .lane-empty {
    padding-left: 56px;
  }

  /* Selection floats above the navigation. */
  .selection-bar {
    position: fixed;
    right: var(--gutter);
    bottom: calc(var(--nav-h) + 12px);
    left: var(--gutter);
    z-index: 24;
    justify-content: space-between;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 5px 5px 5px 14px;
    gap: 2px;
  }
  .selection-bar .pill-action {
    min-height: 44px;
    padding: 0 10px;
  }
  /* Copy and delete become icons so the bar fits a 320px screen; their
     names stay available to assistive technology. */
  .selection-bar .pill-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .selection-bar #copy-prompt,
  .selection-bar #delete-selected {
    min-width: 44px;
    justify-content: center;
    padding: 0;
  }
  .workspace.has-selection .selection-bar {
    display: none;
  }
  .list-pane:has(.selection-bar:not([hidden])) #job-list {
    padding-bottom: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    .workspace.is-returning .feed {
      animation: page-in-left var(--page-slide-dur) var(--page-slide-ease);
    }
  }

  /* Reader: a full-screen page. */
  .details {
    display: none;
  }
  .workspace.has-selection .details {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .workspace.has-selection .details {
      animation: page-in-right var(--page-slide-dur) var(--page-slide-ease);
    }
  }
  .detail-top {
    gap: 2px;
    min-height: 52px;
    padding: 4px 6px;
  }
  .back-detail {
    display: inline-flex;
  }
  .detail-top .company-mark {
    display: none;
  }
  .detail-identity {
    padding-left: 2px;
  }
  .details .detail-top .icon-action {
    width: var(--touch);
    min-width: var(--touch);
    height: var(--touch);
    padding: 0;
  }
  .detail-navigation {
    gap: 0;
    padding: 0;
    background: transparent;
  }
  .detail-body {
    padding: 0 20px 28px;
  }
  .review-position {
    margin-top: 18px;
  }
  .review-position span {
    display: inline;
    font-size: var(--text-caption);
  }
  .details h2 {
    font-size: 22px;
  }
  .source-link,
  .application-open {
    min-height: var(--touch);
  }
  .board-move select {
    min-height: var(--touch);
    font-size: 16px;
  }
  /* Phone status: the three answers share the row as full-height targets. */
  .tracking-panel {
    padding: 4px;
  }
  .tracking-panel h3 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .tracking-choices {
    flex: 1;
    gap: 4px;
    margin-left: 0;
  }
  .tracking-choices button {
    flex: 1 1 0;
    min-width: 0;
    height: var(--touch);
    padding: 0 6px;
  }
  .details .detail-dock {
    gap: 8px;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  }
  .detail-dock .icon-action {
    width: var(--touch);
    min-width: var(--touch);
    height: var(--touch);
  }
  .detail-dock .apply-action {
    padding: 0 12px;
  }
  .pipeline-control {
    width: 116px;
    height: var(--touch);
    gap: 6px;
    padding: 0 10px;
  }
  .pipeline-control > svg {
    width: 13px;
    height: 13px;
  }
  .board-move select {
    border-color: var(--hairline);
    background-color: var(--paper);
  }
  #filters-dialog .dialog-heading {
    align-items: center;
  }
  .application-head {
    flex-wrap: wrap;
  }
  .application-open {
    margin-left: 46px;
  }
  .blank-answer {
    flex-wrap: wrap;
  }
  .blank-answer .blank-save {
    min-height: var(--touch);
  }
  .application-filled dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .dialog-heading {
    padding: 14px 64px 6px 16px;
  }
  .dialog-heading .eyebrow {
    display: none;
  }
  .dialog-heading h2 {
    margin: 0;
    font-size: 20px;
  }
  .dialog-intro {
    padding: 0 16px 12px;
    font-size: var(--text-meta);
  }
  .dialog-footer {
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  }
  .dialog-footer > span {
    font-size: var(--text-caption);
  }
  .text-button {
    min-height: var(--touch);
  }
  .signin-content {
    padding: 26px;
  }
  .signin-content h2 {
    font-size: 24px;
  }
  .signin-content label input {
    min-height: 48px;
  }
  #unlock .primary {
    min-height: 48px;
  }

  /* Toast clears the navigation. */
  #toast {
    bottom: calc(var(--nav-h) + 12px);
    z-index: 80;
  }

  /* Kanban scrolls sideways inside its card. */
  .kanban-view .workspace,
  .kanban-view .workspace.has-selection {
    display: block;
  }
  .kanban-view #job-list {
    display: flex;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8px;
  }
  .kanban-column {
    flex: 0 0 calc(100vw - 72px);
    max-width: 320px;
    scroll-snap-align: start;
  }
  /* Phone cards: the move control is the side target; open lives in the sheet. */
  .kanban-view .job-row-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "row"
      "tracking"
      "tools";
    padding: 8px;
  }
  .card-tool {
    width: 44px;
    height: 44px;
  }
  /* The stage menu keeps its 44px target but draws the slim desktop pill. */
  .board-move,
  .board-move:hover {
    isolation: isolate;
    height: 44px;
    padding: 0 9px;
    border-color: transparent;
    background: transparent;
  }
  .board-move::before {
    content: "";
    position: absolute;
    inset: 7px 0;
    z-index: -1;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-control);
    background: var(--paper);
  }
  .board-move:focus-within {
    outline: none;
  }
  .board-move:focus-within::before {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
  }
  .kanban-view .card-actions {
    display: none;
  }
  .kanban-view .job-check {
    width: 40px;
    height: 40px;
  }
  .view-switch .tab-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  /* The board's sheet covers most of the screen and keeps its handle. */
  .kanban-view .workspace.has-selection .details {
    inset: auto 0 0 0;
    width: 100%;
    height: calc(100dvh - 40px);
    max-height: none;
    padding-top: 0;
    border: 0;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    box-shadow: var(--shadow-dialog);
    animation: none;
  }
  .kanban-view .detail-top {
    padding-top: 14px;
  }
}
@media (max-width: 360px) {
  :root {
    --gutter: 14px;
  }
  .job-row {
    padding-left: 12px;
    column-gap: 9px;
  }
  .company-mark {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .job-row {
    grid-template-columns: 28px minmax(0, max-content) minmax(0, 1fr);
  }
  .details .detail-dock {
    gap: 6px;
    padding-inline: 10px;
  }
  .pipeline-control {
    width: 96px;
    gap: 5px;
    padding: 0 8px;
  }
  .pipeline-control > svg {
    display: none;
  }
  .detail-dock .apply-action {
    gap: 6px;
    padding: 0 10px;
  }
  .detail-dock .apply-action > svg {
    display: none;
  }
  .action-label {
    font-size: var(--text-meta);
  }
}
@media (max-height: 600px) and (max-width: 700px) {
  .topbar {
    height: 50px;
  }
}
@media (display-mode: standalone) and (max-width: 700px) {
  :root {
    --nav-safe: env(safe-area-inset-bottom);
  }
}

/* ── Icon hues ──────────────────────────────────────────────────── */
/* Colour is carried by glyphs alone; chips and fills stay neutral. */
svg.hue-blue {
  color: var(--icon-blue) !important;
}
svg.hue-sky {
  color: var(--icon-sky) !important;
}
svg.hue-indigo {
  color: var(--icon-indigo) !important;
}
svg.hue-violet {
  color: var(--icon-violet) !important;
}
svg.hue-amber {
  color: var(--icon-amber) !important;
}
svg.hue-orange {
  color: var(--icon-orange) !important;
}
svg.hue-rose {
  color: var(--icon-rose) !important;
}
svg.hue-emerald {
  color: var(--icon-emerald) !important;
}
svg.hue-teal {
  color: var(--icon-teal) !important;
}
svg.hue-linkedin {
  color: var(--icon-linkedin) !important;
}
/* The main action's icon takes the colour of the stage it moves the job to. */
.detail-dock .apply-action[class*="stage-"] svg {
  color: var(--stage);
}
