@font-face {
  font-family: Onest;
  src: url(Onest.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url(inter-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url(inter-cyrillic.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* AirCareer semantic tokens, copied from src/app/globals.css for this buildless preview. */
:root {
  color-scheme: light;
  --color-primary: #246fb8;
  --color-primary-hover: #1d5e9f;
  --color-primary-strong: #294f81;
  --color-primary-soft: #eaf3fc;
  /* Reserved for flagship AI automation & AI-tailored highlights */
  --color-ai: #176963;
  --color-ai-hover: #11544f;
  --color-ai-strong: #124d49;
  --color-ai-soft: #eaf4f3;
  --color-ai-border: #c2ddd9;
  --color-canvas: #fbfaf7;
  --color-surface: #fffdfb;
  --color-surface-subtle: #fbfbf9;
  --color-surface-muted: #f7f2eb;
  --color-hover: #e6edf4;
  --color-hover-soft: #eef3f8;
  --color-ink: #282825;
  --color-ink-secondary: #4f4b45;
  --color-ink-muted: #746e68;
  --color-border: #e4ddd3;
  --color-border-subtle: #eee6dc;
  --color-border-strong: #d8cbbb;
  --color-focus: #5688ba;
  --color-success-dark: #2c6a43;
  --color-success-bg: #eef7f1;
  --color-error-dark: #b91c1c;
  --color-warning-text: #9c5a16;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-overlay: 16px;
  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-ease: cubic-bezier(.32, .4, .2, 1);
  --control-height: 44px;
  --gutter: 32px;
  --profile-rail-width: 168px;
  --workspace-gap: 32px;
  font: 15px/1.5 Onest, system-ui, sans-serif;
  background: var(--color-canvas);
  color: var(--color-ink);
}

[data-font="inter"] { font-family: Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4, strong { font-weight: 550; }
p, small { color: var(--color-ink-muted); }
a { color: var(--color-primary-strong); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input:not([type="checkbox"], [type="radio"]), select, textarea {
  min-width: 0;
  height: var(--control-height);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  padding-inline: 12px;
  transition: background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
button.primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
button.quiet, button.text-button {
  background: transparent;
  border-color: transparent;
}
button.text-button { color: var(--color-primary-strong); }
button:disabled { opacity: .5; cursor: default; }
button:active:not(:disabled) { border-color: var(--color-border-strong); }
::selection {
  background: color-mix(in srgb, var(--color-primary) 16%, var(--color-primary-soft));
  color: var(--color-primary-strong);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Shared calm thin scrollbar across AirCareer scroll surfaces */
* {
  scrollbar-width: thin;
  scrollbar-color: rgb(40 40 37 / 18%) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgb(40 40 37 / 18%);
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgb(40 40 37 / 34%);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
input:not([aria-invalid="true"], [type="checkbox"], [type="radio"]):focus,
select:focus, textarea:focus { border-color: var(--color-focus); }
input[aria-invalid="true"] { border-color: var(--color-error-dark); }
input:not([type="checkbox"], [type="radio"]), select, textarea { width: 100%; }
input[type="number"] { appearance: textfield; font-variant-numeric: tabular-nums; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
textarea { min-height: 96px; padding-block: 12px; resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-defs, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  background: var(--color-surface);
  padding: 12px;
}
.skip:focus { top: 12px; }

.app-header {
  display: grid;
  grid-template-columns: var(--profile-rail-width) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px var(--workspace-gap);
  min-height: 72px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
}
.brand { display: flex; min-width: 0; width: fit-content; }
.brand img { width: 148px; height: auto; }
.main-nav {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card);
}
.main-nav button, .main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding-inline: 12px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-ink-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}
.main-nav > :is(a, button):not([aria-current="page"], [aria-pressed="true"]):hover {
  background: var(--color-hover);
  color: var(--color-ink);
}
.main-nav > :is(a[aria-current="page"], button[aria-pressed="true"]) {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}
.main-nav .icon { display: none; }
.header-account {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}
.usage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 8px 12px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease);
}
.usage:hover { border-color: var(--color-border-strong); background: var(--color-hover-soft); }
.usage-gauge { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--color-border); stroke-width: 2.5; }
.usage-gauge-value { stroke: var(--color-primary); transform: rotate(-90deg); transform-origin: center; }
.usage-copy { display: grid; gap: 2px; line-height: 1.05; }
.usage-label { color: var(--color-ink-secondary); font-size: 11px; }
.usage-remaining { color: var(--color-ink); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.account-menu { display: none; position: relative; z-index: 3; }
.account-menu[open] .account-chevron { transform: rotate(-90deg); }
.account-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 44px;
  padding-inline: 8px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface-subtle);
  color: var(--color-ink-secondary);
  cursor: pointer;
  list-style: none;
  text-decoration: none;
}
.account-chevron { width: 12px; height: 12px; transform: rotate(90deg); transition: transform var(--motion-fast) var(--motion-ease); }
.account-trigger::-webkit-details-marker { display: none; }
.account-menu[open] .account-trigger, .account-trigger:hover {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}
.account-links {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 2px;
  min-width: 208px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 4px 12px rgb(40 40 37 / 8%);
}
.account-links > :is(a, button) {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-height: var(--control-height);
  padding-inline: 12px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}
.account-links > :is(a, button):hover { background: var(--color-primary-soft); color: var(--color-primary-strong); }
.account-links > a[aria-current="page"] {
  color: var(--color-primary-strong);
  background: var(--color-primary-soft);
}
.account-links-label { padding: 4px 12px; color: var(--color-ink-muted); font-size: 12px; font-weight: 550; }
.account-links .account-lab { margin-top: 4px; border-top: 1px solid var(--color-border-subtle); border-radius: 0 0 var(--radius-control) var(--radius-control); }

.preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--color-focus);
  background: var(--color-primary-soft);
  font-size: 12px;
}
.preview-label { color: var(--color-primary-strong); font-weight: 600; white-space: nowrap; }
.preview-kit { white-space: nowrap; }
#preview-toggle { display: none; }
.preview-settings { display: contents; }
.preview-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-left: auto;
}
.preview-options select { width: 96px; height: 36px; padding-inline: 10px; font-size: 13px; }
.preview-options .text-button { height: 36px; padding-inline: 8px; }
.long-toggle { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }

main { padding-inline: var(--gutter); padding-bottom: 32px; }
.profile-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.profile-intro h1, .page-title { font-size: 32px; font-weight: 550; line-height: 1.2; }
.profile-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-top: 20px;
  color: var(--color-ink-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.profile-summary strong { color: var(--color-ink); font-weight: 650; }
.profile-summary span::before { content: "·"; margin-right: 12px; color: var(--color-ink-muted); }
.profile-workspace {
  display: grid;
  grid-template-columns: var(--profile-rail-width) minmax(0, 1fr);
  align-items: start;
  gap: var(--workspace-gap);
  padding-top: 16px;
}
.sections { display: grid; gap: 4px; }
.section-short { display: none; }
.sections a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  color: var(--color-ink-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  transition: color var(--motion-fast) var(--motion-ease);
}
.sections a[aria-current="page"] { color: var(--color-primary-strong); font-weight: 650; }
[data-layout="tabs"] .profile-workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
[data-layout="tabs"] .sections {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
}
[data-layout="tabs"] .sections a { border-radius: 0; }
[data-layout="tabs"] .sections .icon { display: none; }
[data-layout="tabs"] .sections[data-selection]:not([data-selection-ready]) > a[aria-current="page"] {
  background: transparent;
  box-shadow: inset 0 -2px var(--color-primary);
}
[data-layout="tabs"] .sections[data-selection-ready]::before {
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: var(--color-primary);
  transform: translate(var(--selection-x), calc(var(--selection-y) + var(--selection-height) - 1px));
}

.content { min-width: 0; }
.content > section { max-width: 960px; }
.content > #panel-help { max-width: 720px; }
#panel-help .section-head { margin-bottom: 16px; }
#panel-help .section-head h2 { margin-bottom: 0; }
.section-head { margin-bottom: 24px; }
.section-head h2, .section-title { font-size: 28px; font-weight: 650; line-height: 1.2; margin-bottom: 4px; }
.section-head p { font-size: 14px; }
.support-layout { display: grid; gap: 12px; }
.support-form { container-type: inline-size; }
.support-label { display: block; margin-bottom: 8px; color: var(--color-ink); font-size: 13px; font-weight: 550; }
.support-label span { color: var(--color-ink-muted); font-weight: 400; }
.support-topics, .support-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-topics button { gap: 6px; padding-inline: 8px; color: var(--color-ink-secondary); }
.support-topics .icon { width: 15px; height: 15px; }
.support-topics [data-topic="something_broke"] .icon { color: var(--color-error-dark); }
.support-topics [data-topic="idea"] .icon { color: var(--color-warning-text); }
.support-topics [data-topic="question"] .icon { color: var(--color-primary); }
.support-topics [data-topic="billing"] .icon { color: var(--color-success-dark); }
.support-topics button[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}
.support-form label { margin-top: 20px; }
.support-form textarea { display: block; min-height: 96px; max-height: 220px; resize: none; field-sizing: content; background: var(--color-surface-subtle); }
.support-form textarea::placeholder { color: var(--color-ink-muted); }
.support-form .error { margin-top: 8px; font-size: 13px; }
.support-actions { margin-top: 12px; align-items: center; justify-content: flex-end; }
.support-note { margin-right: auto; color: var(--color-ink-muted); font-size: 13px; }
.support-form[data-reply] { padding: 12px; }
.support-form[data-reply] textarea { min-height: 52px; padding-block: 8px; }
.support-form[data-reply] .support-actions { margin-top: 8px; flex-wrap: nowrap; }
.support-form[data-reply] :is(.support-note, #support-attach span) { display: none; }
.support-form[data-reply] #support-attach { width: 44px; flex: none; padding: 0; }
#support-reply-topic { width: auto; min-width: 0; margin-right: auto; padding-inline: 8px; border-color: transparent; background: transparent; color: var(--color-ink-secondary); font-size: 13px; }
#support-reply-topic:hover { background: var(--color-primary-soft); color: var(--color-primary-strong); }
.support-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-ink-muted);
  font-size: 13px;
}
.support-email-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.support-email-actions { display: inline-flex; align-items: center; min-width: 0; }
#support-copy {
  flex: 0 0 44px;
  justify-content: flex-start;
  padding-inline: 4px 0;
  border: 0;
  background: transparent;
  color: var(--color-ink-muted);
}
#support-copy:is(:hover, :active) { background: transparent; color: var(--color-ink); }
#support-copy:has(use[href="#support-copied"]) { color: var(--color-success-dark); }
.support-uploads, .support-thread { list-style: none; padding: 0; }
.support-uploads { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
.support-uploads li { position: relative; }
.support-uploads img { display: block; width: 72px; height: 56px; object-fit: cover; border: 1px solid var(--color-border); border-radius: var(--radius-control); }
.support-uploads button { position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; padding: 0; }
.support-thread { display: grid; justify-items: end; gap: 12px; margin: 0 0 16px; }
.support-thread > li { max-width: min(85%, 640px); }
.support-thread .support-bubble { padding: 12px; border-radius: var(--radius-card); background: var(--color-primary-soft); color: var(--color-ink); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-bubble strong { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; color: var(--color-primary-strong); font-size: 12px; }
.support-bubble .icon { width: 12px; height: 12px; }
.support-thread small { display: block; margin-top: 4px; text-align: end; font-size: 12px; }
@media (min-width: 640px) {
  .support-topics button { height: 36px; padding-inline: 12px; }
  .support-form textarea { min-height: 112px; }
}
@container (width < 460px) {
  .support-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-topics button { justify-content: start; min-height: 44px; height: auto; padding-block: 4px; text-align: start; white-space: normal; }
}
@media (max-width: 639px) {
  .support-note { order: 1; flex-basis: 100%; margin-top: 4px; }
}
.group {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}
.group + .group, .group + .demo-save, .demo-save + .group { margin-top: 16px; }
.group-heading:has(+ *) { margin-bottom: 16px; }
.group > .group-heading:has(+ :not(.hint)) {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.group-heading h3, .group-title { font-size: 18px; font-weight: 650; line-height: 1.35; }
.group-heading p { margin-top: 4px; font-size: 13px; }
.group-heading:has(+ .hint) { margin-bottom: 4px; }
.group-heading + .setting { padding-top: 0; }
.application-profile { margin-bottom: 20px; }
.application-profile > .group-heading { margin-bottom: 12px; }
.application-profile > .group { padding-block: 4px 16px; }
.profile-readiness h4 { font-size: 16px; }
.settings-list { margin: 0; padding: 0; list-style: none; }
.settings-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border-subtle);
}
.settings-list a { display: flex; align-items: center; min-height: 44px; padding-block: 4px; font-size: 14px; }
.task-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: var(--radius-control);
  background: var(--color-success-bg);
  font-size: 12px;
  font-weight: 550;
  color: var(--color-success-dark);
}
.task-state[data-incomplete] { color: #7a4a15; background: #fbf1df; }
.candidate-facts { margin-top: 4px; border-top: 1px solid var(--color-border); }
.candidate-facts .save-row { margin-top: 12px; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.mode-grid legend { font-size: 14px; font-weight: 650; }
.mode-scale {
  --mode-progress: 0;
  position: relative;
  margin-top: 12px;
  isolation: isolate;
}
.mode-track {
  position: absolute;
  inset: 8px 8px auto;
  height: 28px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-surface-muted);
  box-shadow: inset 0 0 0 1px var(--color-border);
  pointer-events: none;
}
.mode-track::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-primary);
  transform: translateX(calc((100% - 28px) * (var(--mode-progress) - 1)));
}
.mode-travel {
  position: absolute;
  inset: 14px 14px auto;
  transform: translateX(calc(100% * var(--mode-progress)));
  pointer-events: none;
}
.mode-track::before, .mode-travel {
  transition: transform var(--motion-base) var(--motion-ease);
}
.mode-travel::before {
  content: "";
  position: absolute;
  inset: -11px auto auto -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(25 54 87 / 34%);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease);
}
.mode-scale[data-dragging] .mode-track::before,
.mode-scale[data-dragging] .mode-travel { transition-duration: 0ms; }
.mode-scale[data-dragging] .mode-travel::before {
  transform: scale(.88);
  box-shadow: 0 1px 2px rgb(25 54 87 / 28%);
}
.mode-scale:has(input:focus-visible) .mode-track {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}
.mode-scale input[type="range"] {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
}
.mode-scale input[type="range"]:active { cursor: grabbing; }
.mode-ticks { display: flex; justify-content: space-between; }
.mode-ticks button {
  position: relative;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink-secondary);
  font-size: 12px;
}
.mode-ticks button::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -25px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ink-muted);
  pointer-events: none;
}
.mode-ticks button[data-reached] { color: var(--color-primary-strong); }
.mode-ticks button[data-reached]::before { background: rgb(255 255 255 / 60%); }
.mode-ticks button[data-current] { font-weight: 750; }
.mode-scale[data-dragging] .mode-ticks button[data-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.mode-explanation { padding-top: 8px; border-top: 1px solid var(--color-border-subtle); }
.mode-explanation p { color: var(--color-ink-secondary); font-size: 13px; }
.mode-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-ink-secondary);
  font-size: 13px;
}
.mode-note strong { color: var(--color-ink); font-weight: 650; }
#apply-modes .save-row { margin-top: 16px; }
.group > .switch-row:only-child { padding-block: 0; }
.setting, .switch-row, .usage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.setting, .switch-row { min-height: 56px; padding-block: 12px; }
.setting:last-child, .switch-row:last-child, .usage-row:last-child { padding-bottom: 0; }
.setting > div, .setting > span { min-width: 0; }
.setting button { flex: none; }
.setting.email-row { padding-top: 0; }
.email-row h3 { font-size: 16px; font-weight: 650; }
.setting h4, .setting strong, .switch-row, .usage-row h4 { font-size: 14px; }
.setting p, .setting small, .switch-row small, .usage-row p {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}
.setting + .setting, .setting + details, details + .setting, details + details,
.switch-row + .switch-row { border-top: 1px solid var(--color-border-subtle); }
.value, .current-email, .setting p, .setting small { overflow-wrap: anywhere; }
.setting p.value { color: var(--color-ink); font-size: 15px; }
.setting .hint, .hint, .quiet-meta, .fixed-state { color: var(--color-ink-muted); font-size: 12px; }
.quiet-meta, .fixed-state { text-align: right; white-space: nowrap; }
.related {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-subtle);
  color: var(--color-ink-muted);
}
.related .icon { margin-top: 2px; }
.related p { font-size: 13px; }
.session-row { display: flex; justify-content: flex-end; margin-block: 16px; }

summary.setting {
  position: relative;
  isolation: isolate;
  margin-inline: -12px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}
summary.setting strong, .detail-body .switch-row > span:first-child {
  transition: color var(--motion-fast) var(--motion-ease);
}
summary.setting::-webkit-details-marker { display: none; }
summary.setting::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  z-index: -1;
  border-radius: var(--radius-control);
  background: var(--color-surface-muted);
  opacity: 0;
  transition: opacity var(--motion-fast) var(--motion-ease);
}
details[open] > summary::before, summary.setting:focus-visible::before { opacity: 1; }
summary.setting .chevron {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: var(--radius-control);
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  transition: transform var(--motion-fast) var(--motion-ease);
}
details[open] > summary.setting .chevron { transform: rotate(90deg); }
.detail-body { padding-block: 12px 16px; overflow-anchor: none; }
.detail-body :is(input:not([type="checkbox"], [type="radio"]), select, textarea):focus-visible { outline-offset: -3px; }
.detail-body:has(.switch-row) { padding-block: 4px 0; }
html:has(summary.setting:focus) { overflow-anchor: none; }

@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  details:has(> .detail-body)::details-content {
    interpolate-size: allow-keywords;
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition:
      block-size var(--motion-base) var(--motion-ease),
      opacity var(--motion-fast) var(--motion-ease),
      content-visibility var(--motion-base) allow-discrete;
  }

  details[open]:has(> .detail-body)::details-content {
    block-size: auto;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  details[open] > .detail-body :is(.switch-row, .fields > label, .save-row) {
    animation: disclosure-item-in var(--motion-base) var(--motion-ease) both;
  }
}

@keyframes disclosure-item-in {
  from { opacity: 0; transform: translateY(-3px); }
}

.switch-row { cursor: pointer; }
.switch-row:has(.fixed-state) { cursor: default; }
input[role="switch"] {
  appearance: none;
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  background: var(--color-surface-muted);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--motion-ease),
    border-color var(--motion-fast) var(--motion-ease);
}
input[role="switch"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-ink-muted);
  transition: transform var(--motion-base) var(--motion-ease),
    background-color var(--motion-fast) var(--motion-ease);
}
input[role="switch"]:checked {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
input[role="switch"]:checked::before { background: white; transform: translateX(16px); }
input[role="switch"]:active::before { transform: scaleX(1.14); }
input[role="switch"]:checked:active::before { transform: translateX(16px) scaleX(1.14); }

.checkbox {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--color-ink-muted);
  border-radius: 5px;
  background: var(--color-surface);
  color: white;
  cursor: pointer;
}
.checkbox:is(:checked, :indeterminate) {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.checkbox:checked:not(:indeterminate)::before {
  content: "";
  width: 9px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.checkbox:indeterminate::before {
  content: "";
  width: 8px;
  border-block-start: 2px solid currentColor;
  border-radius: 2px;
}
.checkbox:disabled { opacity: .55; cursor: default; }
@media (hover: hover) {
  label:hover .checkbox:enabled { border-color: var(--color-primary-hover); }
  label:hover .checkbox:enabled:is(:checked, :indeterminate) { background: var(--color-primary-hover); }
}
@media (forced-colors: active) {
  .checkbox { appearance: auto; }
  .checkbox::before { display: none; }
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}
.fields:has(+ .setting) { padding-bottom: 16px; }
.fields + .setting { border-top: 1px solid var(--color-border-subtle); }
.fields > label, .fields > .field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
}
.fields > .full { grid-column: 1 / -1; }
.hint { font-weight: 400; }

.matching-resume .setting {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 0;
}
.matching-resume h3 { font-size: 16px; font-weight: 650; }
.matching-resume p { overflow-wrap: anywhere; }
.matching-resume-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  background: var(--color-surface-subtle);
  color: var(--color-primary-strong);
}
.matching-resume-icon .icon { width: 20px; height: 20px; }

.tag-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.tag-picker[data-tag-picker="location"] { grid-template-columns: auto 1fr; column-gap: 12px; }
.tag-values, .tag-entry, .tag-help { grid-column: 1 / -1; }
.tag-entry { display: flex; gap: 8px; min-width: 0; align-items: start; }
.tag-values, .tag-options { margin: 0; padding: 0; list-style: none; }
.tag-values { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-values li {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  min-height: 32px;
  padding-left: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface-subtle);
  color: var(--color-primary-strong);
  overflow-wrap: anywhere;
}
.tag-values li span { min-width: 0; padding-block: 4px; }
.tag-values button {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink-muted);
}
.tag-values button .icon { width: 14px; height: 14px; }
.tag-anywhere {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding-inline: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-ink-secondary);
  cursor: pointer;
}
.tag-anywhere input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tag-anywhere:has(input:checked) { color: var(--color-primary-strong); background: var(--color-primary-soft); border-color: var(--color-focus); }
.tag-anywhere:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tag-search { position: relative; min-width: 0; flex: 1; }
.tag-search input { display: block; }
.tag-search input:focus-visible { outline-offset: -2px; }
.tag-search-icon { position: absolute; top: 14px; left: 12px; color: var(--color-ink-muted); pointer-events: none; }
.tag-search-icon + input { padding-left: 36px; }
.tag-search:has(.tag-count) input { padding-right: 52px; }
.tag-count {
  position: absolute;
  inset: 0 12px 0 auto;
  display: grid;
  align-items: center;
  pointer-events: none;
  color: var(--color-ink-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tag-options {
  position: absolute;
  z-index: 4;
  inset: calc(100% + 4px) 0 auto;
  max-height: 248px;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  box-shadow: 0 4px 12px rgb(40 40 37 / 8%);
}
.tag-options li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 12px;
  min-height: 36px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.tag-options li:is(:hover, [aria-selected="true"]) { color: var(--color-primary-strong); background: var(--color-primary-soft); }
.tag-options li small { text-transform: capitalize; }
.tag-help { font-size: 12px; }
.tag-help[data-error] { color: var(--color-error-dark); }

.segmented, .choices {
  --segment-count: 2;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(var(--segment-count), minmax(0, 1fr));
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface-muted);
}
.choices-four { --segment-count: 4; }
.segmented button, .choices label {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 36px;
  padding-inline: 12px;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--color-ink-secondary);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--motion-fast) var(--motion-ease);
}
.segmented button[aria-pressed="true"], .choices label:has(input:checked) { color: var(--color-primary-strong); }
.segmented button { height: 32px; font-size: 12px; }
.choices input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.choices label:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: -2px; }

.mode-options { margin-top: 8px; }
.mode-choices {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-auto-rows: 1fr;
}
.mode-choices > label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 14px;
  transition: color var(--motion-fast) var(--motion-ease);
}
.mode-choices > label:has(:checked) {
  color: var(--color-primary-strong);
}
.mode-choices > label:has(:focus-visible) {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}
.mode-options input {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--color-ink-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--motion-ease);
}
.mode-options input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: transform var(--motion-fast) var(--motion-ease);
}
.mode-options input:checked { border-color: var(--color-primary); }
.mode-options input:checked::before { transform: scale(1); }
.mode-options input:focus-visible { outline: none; }
.mode-options small { display: block; margin-top: 2px; font-size: 12px; }
.mode-options + .switch-row { margin-top: 12px; border-top: 1px solid var(--color-border-subtle); }

@supports (appearance: base-select) and selector(::picker(select)) {
  select, select::picker(select) { appearance: base-select; }
  select { align-items: center; gap: 8px; cursor: pointer; }
  select::picker-icon {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-inline-start: auto;
    margin-block-start: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    color: var(--color-ink-muted);
    transition: color var(--motion-fast) var(--motion-ease);
  }
  select:open { border-color: var(--color-focus); }
  select:open::picker-icon { color: var(--color-primary-strong); }
  select::picker(select) {
    margin-block: 4px;
    padding: 4px;
    max-height: 256px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    color: var(--color-ink);
    box-shadow: 0 8px 24px rgb(40 40 37 / 12%);
    font: inherit;
    opacity: 0;
    translate: 0 -3px;
    transition:
      opacity var(--motion-fast) var(--motion-ease),
      translate var(--motion-base) var(--motion-ease),
      display var(--motion-base) allow-discrete,
      overlay var(--motion-base) allow-discrete;
  }
  select:open::picker(select) {
    opacity: 1;
    translate: 0 0;
  }
  @starting-style {
    select:open::picker(select) { opacity: 0; translate: 0 -3px; }
  }
  option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    padding: 8px;
    border-radius: var(--radius-control);
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    transition: color var(--motion-fast) var(--motion-ease);
  }
  option::checkmark { display: none; }
  option:checked { background: var(--color-primary-soft); color: var(--color-primary-strong); }
  option:hover:not(:checked) { background: transparent; color: var(--color-primary-strong); }
  option:focus-visible { outline-offset: -2px; }
}

.stepper { position: relative; }
.stepper input { padding-right: 84px; }
.stepper:has(.stepper-roll:not([hidden])) > input { color: transparent; }
.stepper-roll {
  position: absolute;
  inset: 1px 84px 1px 13px;
  display: flex;
  align-items: center;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.stepper-digits { display: grid; overflow: clip; }
.stepper-digits > span { grid-area: 1 / 1; }
.stepper-actions {
  position: absolute;
  inset: 4px 4px 4px auto;
  display: flex;
  gap: 2px;
}
.stepper-actions button { width: 34px; height: 100%; padding: 0; font-size: 18px; font-weight: 400; }

.save-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.save-status { margin-right: auto; min-height: 20px; font-size: 13px; }
.save-status:not(:empty) { animation: fade-in var(--motion-fast) var(--motion-ease); }
.save-status[data-state="saved"] { color: var(--color-success-dark); }
.save-status:is([data-state="dirty"], [data-state="saved"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.save-status[data-state="dirty"] { color: #7a4a15; }
.save-status:is([data-state="dirty"], [data-state="saved"])::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.fields + .save-row, .group + .save-row, .switch-row + .save-row { margin-top: 16px; }

#email-form { border-top: 1px solid var(--color-border-subtle); padding-block: 16px; }
#email-form > label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.field-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
.error { color: var(--color-error-dark); font-size: 13px; margin-top: 4px; }
.pending, .success {
  padding: 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-control);
  font-size: 13px;
}
.pending { background: var(--color-primary-soft); }
.pending-copy { display: flex; align-items: flex-start; gap: 8px; color: var(--color-primary-strong); }
.pending-copy > div { min-width: 0; }
.pending-copy .icon { margin-top: 2px; }
.pending h4 { margin-bottom: 4px; font-size: 14px; }
.pending p { color: var(--color-ink-secondary); }
.pending .hint { margin-top: 4px; }
.pending-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.success { color: var(--color-success-dark); background: var(--color-success-bg); }
#notice {
  width: fit-content;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface-muted);
  font-size: 13px;
}
.setting h4.plan-name { font-size: 24px; }
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 550;
  text-align: center;
  text-decoration: none;
}
.action-link:hover { background: var(--color-primary-soft); border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border)); color: var(--color-primary-strong); }
.action-link.primary { border-color: var(--color-primary); background: var(--color-primary); color: white; }
.action-link.primary:hover { background: var(--color-primary-hover); }
.usage-meter + .usage-meter { margin-top: 20px; }
.usage-meter > div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.usage-meter strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.usage-meter progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: var(--color-surface-muted);
  color: var(--color-primary);
}
.usage-meter progress::-webkit-progress-bar { border-radius: 4px; background: var(--color-surface-muted); }
.usage-meter progress::-webkit-progress-value { border-radius: 4px; background: currentColor; }
.usage-meter progress::-moz-progress-bar { border-radius: 4px; background: currentColor; }
.content > .task-view { max-width: 720px; }
.content > #apply-profile-editor { max-width: 800px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-size: 13px; }
.task-view .section-head > p:first-child { margin-bottom: 4px; }
.apply-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.apply-heading .back-link { gap: 8px; margin: 0; text-decoration: none; }
.apply-heading .back-link:hover { text-decoration: underline; }
.arrow-back { transform: rotate(180deg); }
#apply-step-count { color: var(--color-ink-secondary); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.apply-step-nav { margin-bottom: 16px; container-type: inline-size; }
.apply-step-nav ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.apply-step-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 4px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-control);
  color: var(--color-ink-secondary);
  text-align: center;
  text-decoration: none;
  transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease);
}
.apply-step-nav a:hover { background: var(--color-primary-soft); color: var(--color-primary-strong); }
.apply-step-nav a[aria-current="step"] { color: var(--color-primary-strong); background: var(--color-primary-soft); border-color: var(--color-focus); }
.apply-step-number { font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1.2; }
.apply-step-label { font-size: 12px; line-height: 1.25; }
#apply-editor-title { font-size: clamp(19px, 3vw, 24px); line-height: 1.25; font-weight: 650; }
.apply-actions { padding-top: 16px; border-top: 1px solid var(--color-border-subtle); }
.apply-actions #apply-step-status:empty { display: none; }
.apply-actions > :is(a, button) { gap: 8px; }
@container (width < 560px) {
  .apply-step-nav a { min-height: 44px; }
  .apply-step-label { display: none; }
}
.fields > .check-line { display: flex; align-items: center; align-self: end; min-height: 44px; }
.flow-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.flow-field { display: grid; gap: 8px; margin-top: 16px; font-size: 14px; }
.billing-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.billing-facts dt { color: var(--color-ink-muted); font-size: 13px; }
.billing-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 550; }
.billing-notice { padding: 12px; margin-block: 12px; border-radius: var(--radius-control); background: var(--color-surface-muted); color: var(--color-ink-secondary); }
.billing-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.offer-price strong { font-size: 36px; line-height: 1.2; }
.offer-price s { color: var(--color-ink-muted); }
.offer-copy { max-width: 52ch; margin-top: 8px; color: var(--color-ink-secondary); }
button.danger { border-color: var(--color-error-dark); background: var(--color-error-dark); color: white; }
button.danger:not(:disabled):hover { border-color: #991b1b; background: #991b1b; }
.footnote { margin-block: 16px; }

dialog {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-overlay);
  background: var(--color-surface);
  color: var(--color-ink);
}
dialog::backdrop { background: rgb(40 40 37 / 30%); }
dialog[open], dialog[open]::backdrop, #email-form:not([hidden]),
.pending:not([hidden]), .success:not([hidden]), #notice:not([hidden]) {
  animation: fade-in var(--motion-base) var(--motion-ease);
}
@keyframes fade-in { from { opacity: 0; } }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 24px; }
.dialog-heading p { font-size: 13px; }
.font-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.font-comparison h3 { padding-bottom: 8px; border-bottom: 1px solid var(--color-border); font-size: 15px; }
.font-comparison p { margin-block: 16px; color: var(--color-ink-secondary); font-size: 14px; }
.font-comparison .sample-title { color: var(--color-ink); font-size: 24px; }
.sample-onest { font-family: Onest, system-ui, sans-serif; }
.sample-inter { font-family: Inter, system-ui, sans-serif; }
dialog > .hint { margin-top: 16px; }

@media (hover: hover) {
  .mode-ticks button:hover { color: var(--color-primary-strong); }
  summary.setting:hover::before { opacity: 1; }
  button:not(.primary, .danger, .quiet, [data-selection] > button):hover:not(:disabled) { background: var(--color-hover); }
  button.quiet:not([data-selection] > button):hover:not(:disabled) { background: var(--color-hover); color: var(--color-ink); }
  button.primary:hover { background: var(--color-primary-hover); }
  input:not([type="checkbox"], [type="radio"]):hover, select:hover, textarea:hover {
    border-color: var(--color-border-strong);
  }
  .switch-row:not(.detail-body .switch-row):hover input[role="switch"]:not(:checked) { border-color: var(--color-ink-muted); }
  .switch-row:not(.detail-body .switch-row):hover input[role="switch"]:checked { background: var(--color-primary-hover); }
  [data-selection] > :is(a, button:enabled, label):hover,
  summary.setting:hover strong, .detail-body .switch-row:has(input:enabled):hover > span:first-child {
    color: var(--color-primary-strong);
  }
}

@media (max-width: 1100px) {
  :root { --gutter: 24px; --workspace-gap: 24px; }
}

@media (680px < width <= 1100px) {
  .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 64px;
  }
  .brand img { width: clamp(106px, 15vw, 136px); }
  .main-nav { justify-self: center; gap: 2px; }
  .main-nav button, .main-nav a { padding-inline: 8px; font-size: 12px; }
  .main-nav .desktop-nav-item, .account-shortcut, .usage-label { display: none; }
  .header-account { gap: 6px; }
  .usage { min-height: 36px; padding-inline: 6px 8px; }
  .usage-gauge { width: 18px; height: 18px; }
  .usage-remaining { font-size: 12px; }
  .account-menu { display: block; }
  .account-trigger { height: 36px; min-width: 38px; }
  .app-header:has(.desktop-nav-item[aria-current="page"]) .account-trigger {
    color: var(--color-primary-strong);
    background: var(--color-primary-soft);
  }
}

@media (width > 680px) and (min-height: 320px) {
  [data-layout="sidebar"] .section-rail {
    position: sticky;
    top: 16px;
  }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { padding-top: env(safe-area-inset-top); }
  body > :is(.app-header, .preview-bar, main) {
    padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  }
  :root:has(body > .app-header .main-nav) {
    --bottom-nav-height: calc(76px + env(safe-area-inset-bottom));
    scroll-padding-bottom: var(--bottom-nav-height);
  }
  .app-header { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 64px; }
  .app-header + main { padding-bottom: calc(32px + var(--bottom-nav-height)); }
  .preview-bar { display: block; padding-block: 0; }
  #preview-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary-strong);
  }
  #preview-toggle .icon { transform: rotate(90deg); }
  #preview-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
  #preview-toggle[aria-expanded="false"] + .preview-settings, .preview-settings .preview-label { display: none; }
  .preview-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 12px; }
  .preview-options { margin-left: 0; }
  .preview-options :is(select, .text-button), .preview-options .long-toggle, .preview-options .preview-kit { min-height: 44px; }
  .preview-options .preview-kit { display: inline-flex; align-items: center; }
  .preview-settings .segmented button { height: 44px; }
  input:not([type="checkbox"], [type="radio"], [type="range"]), body select, textarea,
  .preview-options select, #support-reply-topic { font-size: 16px; }
  .fields > label, .fields > .field, .fields legend, .support-label, #email-form > label,
  .support-contact, .support-note, .mode-note, .mode-explanation p { font-size: 14px; }
  .hint, .setting .hint, .tag-help { font-size: 13px; }
  .support-form[data-reply] #support-reply-topic { padding-inline: 4px; }
  .support-uploads button {
    top: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  .support-uploads button span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    background: var(--color-surface);
    font-size: 16px;
    line-height: 1;
  }
  .support-uploads button:not(.primary):hover { background: transparent; }
  .account-menu { display: block; }
  .account-shortcut { display: none; }
  .account-trigger { padding-inline: 8px; }
  .account-links {
    max-block-size: var(--account-menu-height, min(360px, 60dvh));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
  }
  .app-header:has(.main-nav > a[aria-current="page"]) .account-trigger { color: var(--color-primary-strong); }
  .main-nav[data-selection] {
    position: fixed;
    grid-column: 1 / -1;
    grid-row: 2;
    z-index: 2;
    inset: auto max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 0;
    width: calc(100% - max(12px, env(safe-area-inset-left)) - max(12px, env(safe-area-inset-right)));
    max-width: 480px;
    margin-inline: auto;
    padding: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 4px 16px rgb(40 40 37 / 8%);
  }
  .main-nav :is(button, a) {
    flex-direction: column;
    gap: 4px;
    height: 52px;
    padding-inline: 0;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.2;
  }
  .main-nav .icon { display: block; width: 20px; height: 20px; }
  .main-nav .desktop-nav-item { display: none; }
  .main-nav :is(button, a):active {
    background: var(--color-primary-soft);
    color: var(--color-primary-strong);
  }
  .main-nav :is(button, a):focus-visible { outline-offset: -2px; }
  .profile-workspace, [data-layout="tabs"] .profile-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 12px;
  }
  .sections, [data-layout="tabs"] .sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr);
    gap: 0;
    padding-bottom: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .sections a, [data-layout="tabs"] .sections a {
    justify-content: center;
    padding: 4px 2px;
    text-align: center;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .sections .icon { display: none; }
  .tag-anywhere, .tag-values button, .tag-options li { min-height: 44px; }
  .tag-values li { padding-left: 8px; }
  .tag-values button { width: 40px; }
  .tag-values button::after { content: ""; position: absolute; inset: 0 -2px; }
  .section-short { display: inline; }
  @supports (appearance: base-select) {
    option { min-height: 44px; font-size: 16px; }
  }
  .section-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .sections[data-selection]:not([data-selection-ready]) > a[aria-current="page"] {
    background: transparent;
    box-shadow: inset 0 -2px var(--color-primary);
  }
  .sections[data-selection-ready]::before {
    height: 2px;
    border: 0;
    border-radius: 1px;
    background: var(--color-primary);
    transform: translate(var(--selection-x), calc(var(--selection-y) + var(--selection-height) - 1px));
  }
}

@media (max-width: 480px) {
  .brand img { width: clamp(108px, 34vw, 132px); }
  .preview-options { margin-left: 0; gap: 4px 8px; }
  .preview-options > label[for="typeface"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .preview-options .text-button { padding-inline: 4px; }
  .profile-intro { margin-bottom: 16px; padding-block: 12px; }
  .profile-intro h1, .page-title { font-size: 28px; }
  .profile-summary { padding-top: 12px; gap: 2px 8px; }
  .profile-summary strong { flex-basis: 100%; }
  .profile-summary span::before { margin-right: 8px; }
  .profile-summary span:first-of-type::before { display: none; }
  .group { padding: 16px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  [data-apply-step="availability"] { grid-template-columns: minmax(72px, 1fr) minmax(0, 1.6fr); gap: 16px 12px; }
  .choices-four label { padding-inline: 8px; }
  .stepper-roll { font-size: 16px; }
  .setting:not(summary) { flex-wrap: wrap; gap: 8px; }
  .matching-resume .setting { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; }
  .matching-resume .action-link { grid-column: 2; justify-self: start; }
  .setting.email-row { justify-content: flex-start; gap: 12px; }
  .email-row > div { max-width: 100%; }
  .email-row button { margin-left: auto; }
  .field-actions { grid-template-columns: minmax(0, 1fr); }
  .field-actions button { justify-self: start; }
  .save-row .save-status { flex-basis: 100%; }
  .apply-actions .save-status { flex-basis: 100%; }
  .mode-grid, .billing-reasons, .billing-facts { grid-template-columns: minmax(0, 1fr); }
  .font-comparison { grid-template-columns: minmax(0, 1fr); }
}

@media (forced-colors: active) {
  .mode-track { border: 1px solid CanvasText; }
  .mode-travel::before { border: 2px solid Highlight; }
  ::selection { background: Highlight; color: HighlightText; }
  input[role="switch"]:checked::before { background: Highlight; }
  .mode-options input:checked { border-color: Highlight; }
  .mode-options input:checked::before { forced-color-adjust: none; background: Highlight; }
  .choices label:has(:checked), .segmented button[aria-pressed="true"] {
    box-shadow: inset 0 0 0 1px Highlight;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-base: 0ms; }
}
