/*
 * NextMove Studio UI system
 * Native HTML/CSS implementation of shadcn-style component semantics.
 * Loaded after page styles so the product keeps its existing behavior.
 */

:root {
  --ui-background: #f7f9fc;
  --ui-foreground: #121c27;
  --ui-card: #ffffff;
  --ui-card-foreground: #121c27;
  --ui-popover: #ffffff;
  --ui-muted: #eef3f7;
  --ui-muted-foreground: #5f6f82;
  --ui-primary: #0b5ed7;
  --ui-primary-hover: #084cab;
  --ui-primary-foreground: #ffffff;
  --ui-secondary: #ffffff;
  --ui-secondary-foreground: #1d2b3a;
  --ui-accent: #dff8f7;
  --ui-accent-foreground: #075e62;
  --ui-destructive: #b4233f;
  --ui-destructive-foreground: #ffffff;
  --ui-border: #d7e2ec;
  --ui-input: #b9c9d7;
  --ui-ring: #16c7c8;
  --ui-radius: 8px;
  --ui-shadow-xs: 0 1px 2px rgba(18, 28, 39, 0.05);
  --ui-shadow-sm: 0 8px 24px rgba(18, 28, 39, 0.07);
  --ui-shadow-md: 0 18px 48px rgba(18, 28, 39, 0.1);
}

body {
  color: var(--ui-foreground);
  background: var(--ui-background);
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.eyebrow,
.section-kicker,
.step-kicker,
.package-type,
.badge {
  letter-spacing: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(22, 199, 200, 0.38);
  outline-offset: 2px;
}

/* Button */

.button,
.workspace-page .button,
.nav-cta,
.social-auth-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: var(--ui-shadow-xs);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.button:hover,
.workspace-page .button:not(:disabled):hover,
.social-auth-button:hover {
  transform: none;
}

.button.primary,
.workspace-page .button-primary,
.nav-cta {
  color: var(--ui-primary-foreground);
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  box-shadow: 0 7px 18px rgba(11, 94, 215, 0.18);
}

.button.primary:hover,
.workspace-page .button-primary:not(:disabled):hover,
.nav-cta:hover,
.nav .nav-cta:hover {
  color: var(--ui-primary-foreground);
  background: var(--ui-primary-hover);
  border-color: var(--ui-primary-hover);
  box-shadow: 0 9px 22px rgba(11, 94, 215, 0.22);
}

.button.secondary,
.workspace-page .button-secondary,
.social-auth-button {
  color: var(--ui-secondary-foreground);
  background: var(--ui-secondary);
  border-color: var(--ui-border);
  box-shadow: var(--ui-shadow-xs);
}

.button.secondary:hover,
.workspace-page .button-secondary:not(:disabled):hover,
.social-auth-button:hover {
  color: var(--ui-foreground);
  background: var(--ui-muted);
  border-color: #afc0cf;
  box-shadow: var(--ui-shadow-xs);
}

.button.dark,
.workspace-page .button-dark {
  color: var(--ui-primary-foreground);
  background: var(--ui-foreground);
  border-color: var(--ui-foreground);
}

.button.dark:hover,
.workspace-page .button-dark:hover {
  color: var(--ui-primary-foreground);
  background: #26384a;
  border-color: #26384a;
}

.workspace-page .button-danger {
  color: var(--ui-destructive-foreground);
  background: var(--ui-destructive);
  border-color: var(--ui-destructive);
}

.button:disabled,
.workspace-page .button:disabled,
.button[aria-disabled="true"],
.workspace-page .button[aria-disabled="true"] {
  box-shadow: none;
  opacity: 0.52;
}

/* Badge */

.badge,
.package-type,
.document-edit-badge,
.kit-practice-status,
.outreach-privacy-signal,
.application-stage-signal,
.generation-readiness-signal,
.kit-readiness-signal,
.application-kit-review-signal {
  width: fit-content;
  border-radius: 999px;
  letter-spacing: 0;
}

.badge,
.package-type {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 9px;
  color: var(--ui-primary);
  background: #edf5ff;
  border: 1px solid #c9ddfb;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

/* Public navigation */

.site-header {
  min-height: 72px;
  padding: 10px max(24px, calc((100% - 1160px) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-top: 3px solid var(--ui-ring);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.brand-logo {
  width: 202px;
  height: auto;
}

.nav {
  gap: 2px;
}

.nav a:not(.nav-cta) {
  min-height: 38px;
  padding: 9px 11px;
  color: var(--ui-muted-foreground);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.nav a:not(.nav-cta):hover {
  color: var(--ui-foreground);
  background: var(--ui-muted);
}

/* Language and currency preferences */

.site-preferences {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.preference-field {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.preference-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  overflow: hidden;
  white-space: nowrap;
}

.preference-select {
  min-height: 38px;
  padding: 7px 26px 7px 9px;
  color: var(--ui-foreground);
  background-color: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  box-shadow: var(--ui-shadow-xs);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.preference-select:hover {
  background-color: var(--ui-muted);
  border-color: #afc0cf;
}

.preference-select--language {
  width: 108px;
}

.preference-select--currency {
  width: 72px;
  font-variant-numeric: tabular-nums;
}

.workspace-header .site-preferences {
  margin-left: auto;
}

.currency-disclosure {
  margin: 10px 0 0;
  color: var(--ui-muted-foreground);
  font-size: 12px;
  line-height: 1.5;
}

.pricing-heading .currency-disclosure {
  grid-column: 1 / -1;
}

/* Hero */

.hero,
.page-hero {
  background-color: var(--ui-background);
  background-image: none;
}

.hero::before,
.hero-visual::before,
.interview-console::after,
.brand-signal-card::after {
  display: none;
}

.hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  min-height: calc(100svh - 230px);
  gap: 64px;
  align-items: center;
  padding: 72px max(24px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid var(--ui-border);
}

.hero h1 {
  max-width: 760px;
  margin: 14px 0 24px;
  font-size: 66px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  letter-spacing: 0;
}

.hero-emphasis {
  width: fit-content;
  padding-bottom: 8px;
  color: var(--ui-primary);
  background: none;
  border-bottom: 5px solid var(--ui-ring);
  -webkit-text-fill-color: currentColor;
}

.hero-copy {
  max-width: 680px;
  color: var(--ui-muted-foreground);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  gap: 10px;
  margin-top: 28px;
}

.hero-proof {
  gap: 0;
  margin-top: 38px;
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
}

.hero-proof div {
  min-height: 84px;
  padding: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-proof div + div {
  border-left: 1px solid var(--ui-border);
}

.hero-proof dt {
  color: var(--ui-foreground);
}

.hero-proof dd {
  color: var(--ui-muted-foreground);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 0;
  align-items: stretch;
  gap: 12px;
  padding: 18px;
  background: #edf3f8;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
}

.brand-signal-card,
.studio-board,
.visual-panel {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  transform: none;
  backdrop-filter: none;
}

.brand-signal-card {
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 16px;
  padding: 14px 16px;
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  box-shadow: var(--ui-shadow-xs);
}

.hero-lockup {
  width: 138px;
}

.brand-signal-card p {
  margin: 0;
  color: var(--ui-muted-foreground);
  font-size: 12px;
  text-align: left;
}

.studio-board {
  gap: 16px;
  padding: 22px;
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  box-shadow: var(--ui-shadow-sm);
}

.board-header {
  padding-bottom: 16px;
}

.board-header span,
.signal-grid span,
.review-line span,
.board-note span {
  letter-spacing: 0;
}

.board-header strong {
  font-size: 19px;
}

.signal-grid div {
  min-height: 94px;
  padding: 16px;
  color: var(--ui-foreground);
  background: var(--ui-muted);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
}

.signal-grid div:last-child {
  color: #075e62;
  background: var(--ui-accent);
  border-color: #a9e6e3;
}

.signal-grid strong {
  font-size: 22px;
}

.review-line i {
  height: 7px;
  background: var(--ui-primary);
}

.board-note {
  padding: 15px;
  background: #f8fafc;
  border-radius: 6px;
}

.board-note strong {
  font-size: 15px;
}

.visual-panel {
  padding: 14px 16px;
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  box-shadow: var(--ui-shadow-xs);
}

.visual-panel strong {
  font-size: 15px;
}

/* Sections and cards */

.section {
  padding: 82px max(24px, calc((100% - 1160px) / 2));
}

.intro,
.method,
.testimonials,
.pricing,
.voice-beta,
.assurance {
  border-top: 1px solid var(--ui-border);
}

.intro {
  align-items: start;
}

.section-heading h2,
.assurance h2,
.intro h2,
.cv-focus h2 {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading > p,
.assurance-copy p,
.intro > p,
.focus-panel p {
  color: var(--ui-muted-foreground);
}

.deliverable-strip {
  padding: 0 max(24px, calc((100% - 1160px) / 2)) 82px;
  background: var(--ui-background);
}

.deliverable-strip div {
  min-height: 116px;
  background: var(--ui-card);
  color: var(--ui-card-foreground);
  border-top: 1px solid var(--ui-border);
  border-bottom: 1px solid var(--ui-border);
}

.deliverable-strip span {
  color: var(--ui-muted-foreground);
}

.deliverable-strip div:first-child {
  border-left: 1px solid var(--ui-border);
  border-radius: 7px 0 0 7px;
}

.deliverable-strip div:last-child {
  border-right: 1px solid var(--ui-border);
  border-radius: 0 7px 7px 0;
}

.focus-panel,
.service-card,
.price-card,
.testimonial-card,
.intake-form,
.form-aside,
.legal-copy,
.access-card,
.session-stage,
.interview-console,
.voice-preview {
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-xs);
}

.service-card,
.price-card,
.testimonial-card {
  padding: 24px;
}

.service-card:hover,
.price-card:hover,
.testimonial-card:hover {
  border-color: #afc0cf;
  box-shadow: var(--ui-shadow-sm);
  transform: none;
}

.service-card,
.price-card {
  display: flex;
  flex-direction: column;
}

.card-index {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ui-primary);
  background: #edf5ff;
  border: 1px solid #c9ddfb;
  border-radius: 6px;
  font-size: 11px;
}

.testimonial-card {
  border-top: 3px solid var(--ui-ring);
}

.quote-mark {
  color: var(--ui-primary);
}

.steps {
  gap: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  overflow: hidden;
}

.steps li {
  min-height: 210px;
  padding: 24px;
  background: var(--ui-card);
  border: 0;
  border-radius: 0;
}

.steps li + li {
  border-left: 1px solid var(--ui-border);
}

.steps span {
  color: var(--ui-primary);
}

.price-card.featured {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 1px var(--ui-primary), var(--ui-shadow-sm);
}

.price-card .package-labels {
  display: flex;
  min-height: 24px;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.price-card .package-labels .badge,
.price-card .package-labels .package-type {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
}

.price-card.featured .package-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 8px;
}

.price-card.featured .package-labels .badge,
.price-card.featured .package-labels .package-type {
  display: block;
  max-width: 100%;
  line-height: 1.2;
}

.price-card .price {
  margin-top: 22px;
}

.price-card ul {
  flex: 1;
}

.price-card .button {
  width: 100%;
  margin-top: 20px;
}

.assurance {
  color: var(--ui-primary-foreground);
  background: var(--ui-foreground);
}

.footer {
  padding: 46px max(24px, calc((100% - 1160px) / 2));
  background: #0d1620;
  border-top: 3px solid var(--ui-ring);
}

/* Page hero and interview tool */

.page-hero {
  padding: 72px max(24px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid var(--ui-border);
}

.page-hero h1,
.page-hero.interview-hero-product h1 {
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  color: var(--ui-muted-foreground);
}

.page-hero.interview-hero-product {
  min-height: calc(100svh - 230px);
  gap: 56px;
  align-items: center;
  background-color: var(--ui-background);
  background-image: none;
}

.interview-console {
  padding: 20px;
  color: var(--ui-primary-foreground);
  background: var(--ui-foreground);
  border-color: #314355;
  box-shadow: var(--ui-shadow-md);
}

.console-grid > div,
.console-question,
.console-report {
  border-radius: 6px;
}

.interview-proof {
  gap: 0;
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  overflow: hidden;
}

.interview-proof > div {
  min-height: 72px;
  background: var(--ui-card);
  border: 0;
  border-radius: 0;
}

.interview-proof > div + div {
  border-left: 1px solid var(--ui-border);
}

.access-panel {
  align-items: start;
  gap: 54px;
}

.access-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.access-steps li {
  display: block;
}

.access-steps span {
  min-height: 26px;
  padding: 5px 9px;
  color: var(--ui-muted-foreground);
  background: var(--ui-muted);
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.access-steps [aria-current="step"] span {
  color: var(--ui-primary);
  background: #edf5ff;
  border-color: #c9ddfb;
}

.access-steps [data-state="complete"] span {
  color: var(--ui-accent-foreground);
  background: var(--ui-accent);
  border-color: #a9e6e3;
}

.access-card {
  padding: 26px;
  box-shadow: var(--ui-shadow-sm);
}

.linkedin-profile-banner {
  padding: 13px;
  background: #f2f7ff;
  border: 1px solid #c9ddfb;
  border-radius: 7px;
  box-shadow: none;
}

.account-indicator {
  border-radius: 7px;
  box-shadow: none;
}

.account-avatar,
.linkedin-profile-avatar {
  border-radius: 50%;
}

.account-avatar-fallback,
.linkedin-profile-avatar-fallback {
  border-radius: 6px;
}

.interview-brief-form {
  padding-top: 22px;
  border-top: 1px solid var(--ui-border);
}

.interview-brief-form input,
.interview-brief-form select,
.access-card input,
.intake-form input,
.intake-form select,
.intake-form textarea {
  min-height: 44px;
  background: var(--ui-card);
  border: 1px solid var(--ui-input);
  border-radius: 6px;
  box-shadow: var(--ui-shadow-xs);
}

.interview-brief-form input:hover,
.interview-brief-form select:hover,
.access-card input:hover,
.intake-form input:hover,
.intake-form select:hover,
.intake-form textarea:hover {
  border-color: #91a6b8;
}

.session-stage {
  padding: 26px;
  box-shadow: var(--ui-shadow-sm);
}

.session-error {
  padding: 11px 13px;
  color: #7c1d32;
  background: #fff1f3;
  border: 1px solid #fac6d1;
  border-radius: 6px;
}

.session-result {
  border-radius: 7px;
}

/* Intake and legal pages */

.form-layout {
  align-items: start;
}

.intake-form,
.form-aside,
.legal-copy {
  box-shadow: var(--ui-shadow-sm);
}

.intake-form fieldset + fieldset {
  border-top-color: var(--ui-border);
}

.choice {
  border-radius: 6px;
}

/* Workspace: shell, sidebar, forms and state components */

.workspace-page {
  --control-radius: 6px;
  color: var(--ui-foreground);
  background: var(--ui-background);
}

.workspace-page .workspace-header {
  min-height: 70px;
  padding: 9px max(20px, calc((100% - 1440px) / 2));
  background: rgba(255, 255, 255, 0.97);
  border-top: 3px solid var(--ui-ring);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: none;
}

.workspace-page .workspace-brand img {
  width: 194px;
}

.account-trigger {
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  box-shadow: var(--ui-shadow-xs);
}

.account-trigger:hover {
  background: var(--ui-muted);
  border-color: #afc0cf;
}

.account-monogram {
  border: 0;
  border-radius: 6px;
  letter-spacing: 0;
}

.sign-in-shell {
  max-width: 1080px;
  min-height: 640px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-md);
}

.sign-in-brand-panel {
  padding: 52px;
  background: var(--ui-muted);
  border-right: 1px solid var(--ui-border);
}

.sign-in-brand-panel::before {
  display: none;
}

.sign-in-signal {
  border-radius: 6px;
  overflow: hidden;
  letter-spacing: 0;
}

.sign-in-form-panel {
  padding: 64px;
}

.sign-in-form-panel h1 {
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0;
}

.social-auth-button {
  min-height: 46px;
}

.email-action-row input,
.workspace-page input:not([type="checkbox"]):not([type="radio"]),
.workspace-page select,
.workspace-page textarea {
  background: var(--ui-card);
  border-color: var(--ui-input);
  border-radius: 6px;
  box-shadow: var(--ui-shadow-xs);
}

.workspace-page input:not([type="checkbox"]):not([type="radio"]):hover,
.workspace-page select:hover,
.workspace-page textarea:hover {
  border-color: #91a6b8;
}

.career-shell {
  grid-template-columns: 276px minmax(0, 1fr);
}

.workflow-sidebar {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ui-foreground);
  border-right: 1px solid #27394a;
}

.workspace-identity h1,
.step-navigation button,
.step-number {
  letter-spacing: 0;
}

.step-navigation button {
  min-height: 62px;
  border-radius: 6px;
}

.step-navigation button[aria-current="step"] {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--ui-ring);
}

.step-navigation button[aria-current="step"] .step-number {
  background: var(--ui-primary);
  box-shadow: none;
}

.workspace-stage {
  padding-inline: clamp(26px, 4vw, 64px);
  background: var(--ui-card);
}

/* Alert */

.workspace-status {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  min-height: 46px;
  margin-top: 18px;
  padding: 11px 13px;
  color: #174d88;
  background: #f2f7ff;
  border: 1px solid #c9ddfb;
  border-left-width: 3px;
  border-radius: 6px;
}

.workspace-status[data-tone="success"] {
  color: #075e62;
  background: var(--ui-accent);
  border-color: #a9e6e3;
}

.workspace-status[data-tone="warning"] {
  color: #754200;
  background: #fff7e6;
  border-color: #f3d296;
}

.workspace-status[data-tone="error"] {
  color: #7c1d32;
  background: #fff1f3;
  border-color: #fac6d1;
}

.form-status:not(:empty),
.import-status:not(:empty) {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
}

.form-status[data-tone="success"],
.import-status[data-tone="success"] {
  color: #075e62;
  background: var(--ui-accent);
  border-color: #a9e6e3;
}

.form-status[data-tone="warning"],
.import-status[data-tone="warning"] {
  color: #754200;
  background: #fff7e6;
  border-color: #f3d296;
}

.form-status[data-tone="error"],
.import-status[data-tone="error"] {
  color: #7c1d32;
  background: #fff1f3;
  border-color: #fac6d1;
}

/* Card */

.application-desk,
.step-panel {
  width: min(100%, 1120px);
}

.application-desk {
  padding-top: 28px;
}

.application-desk-metrics {
  border: 1px solid var(--ui-border);
  border-radius: 7px;
  overflow: hidden;
}

.application-desk-metrics > div {
  background: var(--ui-card);
}

.application-action-card,
.opportunity-intelligence-card,
.profile-refresh-card,
.application-journey,
.application-progress,
.next-best-action,
.application-activity,
.outreach-copilot,
.profile-setup,
.profile-review,
.import-panel,
.source-evidence-check,
.form-section,
.kit-access,
.generation-readiness,
.kit-readiness,
.kit-intelligence,
.application-kit-review,
.kit-feedback,
.document-editor,
.kit-gaps {
  border-radius: var(--ui-radius);
}

.application-action-card,
.opportunity-intelligence-card,
.profile-refresh-card,
.application-journey,
.application-progress,
.next-best-action,
.application-activity,
.outreach-copilot,
.import-panel,
.source-evidence-check,
.kit-access,
.generation-readiness,
.kit-readiness,
.kit-intelligence,
.application-kit-review,
.kit-feedback,
.kit-gaps {
  box-shadow: var(--ui-shadow-xs);
}

.step-panel {
  padding-top: 46px;
}

.step-heading h2 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.step-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ui-border);
}

/* Field */

.form-section {
  padding: 24px;
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-xs);
}

.form-section legend,
.field,
.field > span,
.field b {
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  min-height: 44px;
}

.field textarea {
  min-height: 132px;
}

.field small,
.section-guidance {
  color: var(--ui-muted-foreground);
}

.confirmation-control {
  border: 1px solid #a9e6e3;
  border-left-width: 3px;
  border-radius: 6px;
}

/* Selectable cards */

.profile-method-card {
  border-radius: 7px;
  box-shadow: var(--ui-shadow-xs);
}

.profile-method-card:hover {
  transform: none;
  border-color: #91a6b8;
  box-shadow: var(--ui-shadow-sm);
}

.profile-method-card:has(input:checked) {
  background: #f2f7ff;
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 1px var(--ui-primary);
}

.profile-method-icon {
  border-radius: 6px;
}

/* Tabs */

.document-tabs {
  width: fit-content;
  padding: 3px;
  background: var(--ui-muted);
  border: 1px solid var(--ui-border);
  border-radius: 7px;
}

.document-tabs button {
  min-height: 44px;
  padding: 7px 12px;
  color: var(--ui-muted-foreground);
  background: transparent;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
}

.document-tabs button[aria-selected="true"] {
  color: var(--ui-foreground);
  background: var(--ui-card);
  box-shadow: var(--ui-shadow-xs);
}

/* Dialog */

.workspace-dialog {
  max-width: min(720px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--ui-popover);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: 0 28px 90px rgba(18, 28, 39, 0.22);
}

.workspace-dialog::backdrop {
  background: rgba(18, 28, 39, 0.58);
  backdrop-filter: blur(2px);
}

.workspace-dialog form,
.document-history-shell,
.opportunity-comparison-shell,
.account-dialog > div {
  padding: 24px;
}

.dialog-kicker {
  letter-spacing: 0;
}

/* Empty */

.application-desk-empty,
.kit-empty,
.document-history-empty,
.application-timeline-empty {
  justify-items: center;
  padding: 40px 24px;
  color: var(--ui-muted-foreground);
  background: var(--ui-muted);
  border: 1px dashed #afc0cf;
  border-radius: var(--ui-radius);
  text-align: center;
}

.application-desk-empty strong,
.kit-empty h3 {
  color: var(--ui-foreground);
}

.empty-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ui-primary);
  background: var(--ui-card);
  border: 1px solid #c9ddfb;
  border-radius: 7px;
  font-weight: 900;
}

/* Skeleton / loading */

.workspace-loading {
  background: var(--ui-background);
}

.loading-mark {
  width: 32px;
  height: 32px;
  border-width: 2px;
  border-top-color: var(--ui-primary);
  border-right-color: var(--ui-ring);
}

.generation-track {
  height: 8px;
  overflow: hidden;
  background: var(--ui-muted);
  border-radius: 999px;
}

.generation-track i {
  background: var(--ui-primary);
}

.workspace-access-denied {
  background: var(--ui-background);
}

.access-denied-signal {
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-sm);
}

.access-denied-signal span {
  color: var(--ui-primary);
}

/* Responsive */

@media screen and (max-width: 1120px) {
  .site-header {
    padding-inline: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    gap: 40px;
    padding-inline: 32px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .page-hero.interview-hero-product {
    gap: 36px;
  }

  .page-hero h1,
  .page-hero.interview-hero-product h1 {
    font-size: 50px;
  }

  .career-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media screen and (max-width: 860px) {
  .hero,
  .page-hero.interview-hero-product {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero {
    padding-block: 58px;
  }

  .hero-visual {
    max-width: 680px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .access-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .career-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-sidebar {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    padding: 24px;
  }

  .step-navigation ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .step-navigation li:not(:last-child)::after {
    display: none;
  }

  .step-navigation button {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 8px;
  }

  .step-signal {
    display: none;
  }

  .sidebar-privacy {
    margin-top: 18px;
  }

  .workspace-stage {
    padding-inline: 24px;
  }
}

@media screen and (max-width: 700px) {
  .site-header,
  .workspace-page .workspace-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .brand-logo,
  .workspace-page .workspace-brand img {
    width: 164px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 0;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .nav .site-preferences {
    position: sticky;
    left: 0;
    order: -1;
    margin: 0 8px 0 0;
    padding-right: 8px;
    background: rgba(255, 255, 255, 0.98);
  }

  .preference-select {
    min-height: 40px;
  }

  .preference-select--language {
    width: 118px;
  }

  .preference-select--currency {
    width: 78px;
  }

  .workspace-page .workspace-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .account-indicator {
    min-width: 0;
    margin-left: auto;
  }

  .site-header .account-copy strong,
  .site-header .account-copy span {
    max-width: 104px;
  }

  .nav a:not(.nav-cta) {
    padding-inline: 9px;
  }

  .hero,
  .section,
  .page-hero,
  .footer {
    padding-inline: 20px;
  }

  .hero h1,
  .page-hero h1,
  .page-hero.interview-hero-product h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions,
  .session-controls,
  .document-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .button,
  .session-controls .button {
    width: 100%;
  }

  .hero-proof,
  .interview-proof {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-proof div + div,
  .interview-proof > div + div {
    border-top: 1px solid var(--ui-border);
    border-left: 0;
  }

  .brand-signal-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .signal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-header strong {
    max-width: none;
    text-align: left;
  }

  .deliverable-strip {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 20px;
  }

  .deliverable-strip div,
  .deliverable-strip div:first-child,
  .deliverable-strip div:last-child {
    border: 1px solid var(--ui-border);
    border-radius: 0;
  }

  .deliverable-strip div:first-child {
    border-radius: 7px 7px 0 0;
  }

  .deliverable-strip div:last-child {
    border-radius: 0 0 7px 7px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    min-height: 0;
  }

  .steps li + li {
    border-top: 1px solid var(--ui-border);
    border-left: 0;
  }

  .section-heading h2,
  .assurance h2,
  .intro h2,
  .cv-focus h2 {
    font-size: 34px;
  }

  .sign-in-shell {
    width: min(calc(100% - 24px), 680px);
    margin: 18px auto;
  }

  .sign-in-form-panel {
    padding: 32px 24px;
  }

  .sign-in-form-panel h1 {
    font-size: 38px;
  }

  .email-action-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .email-action-row .button {
    width: 100%;
  }

  .step-navigation ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-stage {
    padding-inline: 16px;
  }

  .application-desk-heading,
  .application-action-queue-heading,
  .step-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .application-desk-heading .button,
  .application-action-queue-heading .button {
    width: 100%;
  }

  .application-desk-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-desk-metrics > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--ui-border);
  }

  .application-desk-metrics > div:nth-child(4) {
    border-top: 1px solid var(--ui-border);
  }

  .step-panel {
    padding-top: 34px;
  }

  .step-heading h2 {
    font-size: 30px;
  }

  .form-section,
  .access-card,
  .session-stage {
    padding: 20px;
  }

  .document-tabs {
    width: 100%;
  }

  .document-tabs button {
    flex: 1;
  }
}

@media screen and (min-width: 701px) and (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 10px;
  }

  .site-header .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 3px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .site-header .nav::-webkit-scrollbar {
    display: none;
  }

  .site-header .nav .site-preferences {
    order: -1;
    margin: 0 8px 0 0;
  }
}

@media screen and (max-width: 430px) {
  .hero h1,
  .page-hero h1,
  .page-hero.interview-hero-product h1 {
    font-size: 36px;
  }

  .section-heading h2,
  .assurance h2,
  .intro h2,
  .cv-focus h2 {
    font-size: 30px;
  }

  .hero-visual,
  .studio-board,
  .access-card,
  .form-section {
    padding: 16px;
  }

  .application-desk-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-desk-metrics > div + div {
    border-top: 1px solid var(--ui-border);
    border-left: 0;
  }

  .account-copy {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .social-auth-button,
  .service-card,
  .price-card,
  .testimonial-card,
  .profile-method-card {
    transition: none;
  }
}
