/* ============================================================
   wombatan-hr — public surfaces (marketing landing + the
   analytics / analyticsnew tool chrome), built on the Pouch
   design tokens. Indigo primary, Hanken Grotesk, calm & human.
   Marketing classes are prefixed .mk-* ; tool classes .tool-* .
   Shared components (.wb-btn, .wb-field, .wb-card, .wb-alert)
   come from app.css, which these pages also link.
   ============================================================ */

[data-lucide], svg.lucide { stroke-width: 1.75; width: 18px; height: 18px; }

/* ============================================================
   Marketing landing
   ============================================================ */
.mk-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-page);
  /* One restrained, low-opacity indigo glow — calm, not a noisy wash. */
  background-image:
    radial-gradient(120% 80% at 50% -10%, var(--brand-subtle) 0%, transparent 55%);
  position: relative;
}

.mk-wrap {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mk-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2-5);
  margin-bottom: var(--space-10);
  text-decoration: none;
}
.mk-brand:hover { text-decoration: none; }
.mk-brand img { height: 52px; width: auto; }
.mk-brand b {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 26px;
  letter-spacing: var(--ls-tighter);
  color: var(--brand-ink);
}
.mk-brand .dot { color: var(--accent); }

.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  color: var(--indigo-700);
  background: var(--brand-subtle);
  border: 1px solid var(--brand-subtle-2);
  padding: var(--space-1-5) var(--space-3);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}
.mk-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: var(--radius-circle);
  background: var(--brand);
}

.mk-hero h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(2rem, 1.5rem + 2.6vw, var(--text-display-md));
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
  color: var(--text-strong);
  margin: 0 0 var(--space-4);
}
.mk-sub {
  font-size: var(--text-body-lg);
  line-height: var(--lh-body);
  color: var(--text-body);
  max-width: 44ch;
  margin: 0 auto var(--space-8);
}

/* Waitlist card */
.mk-card {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-7);
  text-align: left;
}
.mk-card form { display: flex; flex-direction: column; gap: var(--space-4); }

/* Segmented role control (pure CSS via radios) */
.mk-seg {
  display: flex;
  gap: var(--space-1);
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: var(--space-1);
}
.mk-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mk-seg label {
  flex: 1;
  text-align: center;
  font-size: var(--text-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.mk-seg label:hover { color: var(--text-strong); }
.mk-seg input:checked + label {
  background: var(--surface-card);
  color: var(--indigo-700);
  box-shadow: var(--shadow-xs);
}
.mk-seg input:focus-visible + label { box-shadow: var(--shadow-focus); }

/* Success / error states */
.mk-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-1) var(--space-1);
}
#success-state[hidden], #error-state[hidden] { display: none; }
.mk-state__badge {
  width: 52px; height: 52px;
  border-radius: var(--radius-circle);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-1);
}
.mk-state__badge svg { width: 26px; height: 26px; }
.mk-state__badge--ok { background: var(--success-subtle); color: var(--success); }
.mk-state__badge--err { background: var(--danger-subtle); color: var(--danger); }
.mk-state__title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-h3);
  color: var(--text-strong);
}
.mk-state__msg {
  font-size: var(--text-body-sm);
  line-height: var(--lh-body);
  color: var(--text-muted);
  max-width: 34ch;
}

.mk-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-caption);
  color: var(--text-subtle);
  margin-top: var(--space-4);
}
.mk-privacy svg { width: 13px; height: 13px; }

.mk-foot {
  text-align: center;
  padding: var(--space-6);
  font-size: var(--text-caption);
  color: var(--text-subtle);
}
.mk-foot a { color: var(--text-muted); }

/* Landing CTA + feature grid */
.mk-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.mk-cta .wb-btn { min-width: 240px; }
.mk-cta__row { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.mk-note {
  font-size: var(--text-caption);
  color: var(--text-subtle);
  margin: 0 0 var(--space-10);
}
.mk-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: left;
  margin-top: var(--space-2);
}
.mk-feature {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: var(--space-5);
}
.mk-feature__ic {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
  color: var(--indigo-700);
  margin-bottom: var(--space-3);
}
.mk-feature__ic svg { width: 19px; height: 19px; }
.mk-feature h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--text-h5);
  color: var(--text-strong);
  margin: 0 0 var(--space-1-5);
}
.mk-feature p {
  font-size: var(--text-body-sm);
  line-height: var(--lh-body);
  color: var(--text-muted);
  margin: 0;
}

/* Wider column for the landing (carousel + explainer breathe) */
.mk-wrap--wide { max-width: 1080px; }
.mk-wrap--wide .mk-hero { max-width: 700px; }
.mk-wrap--wide .mk-sub { max-width: 620px; }

/* ============================================================
   One-screen landing — top bar + hero (copy + AI-scores panel)
   + steps strip. Fits ~100vh on desktop; stacks on mobile.
   ============================================================ */
.mk-topbar {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: var(--space-5) var(--space-8);
}
.mk-topbar .mk-brand { margin-bottom: 0; }
.mk-topbar__login {
  font-size: var(--text-body-sm); font-weight: var(--fw-medium);
  color: var(--text-muted); text-decoration: none;
}
.mk-topbar__login:hover { color: var(--text-strong); }

.mk-screen {
  flex: 1; width: 100%; max-width: 1120px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--space-12, var(--space-10));
  padding: var(--space-4) var(--space-8) var(--space-10);
}

.mk-hero2 {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-10); align-items: center;
}
.mk-hero2__copy { text-align: left; }
.mk-hero2__copy .mk-eyebrow { margin-bottom: var(--space-4); }
.mk-hero2__copy h1 {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: var(--lh-tight); letter-spacing: var(--ls-tighter);
  color: var(--text-strong); margin: 0 0 var(--space-4);
}
.mk-hero2__copy .mk-sub { text-align: left; max-width: 46ch; margin: 0 0 var(--space-6); }
.mk-hero2__copy .mk-note { margin: var(--space-3) 0 0; }

.mk-vis {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
  padding: var(--space-5);
}
.mk-vis__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.mk-vis__title { font-family: var(--font-display); font-weight: var(--fw-bold); color: var(--text-strong); font-size: var(--text-body-lg); }
.mk-vis__chip {
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  font-size: var(--text-caption); color: var(--indigo-700);
  background: var(--brand-subtle); border: 1px solid var(--brand-subtle-2);
  border-radius: var(--radius-pill); padding: var(--space-1) var(--space-2-5);
}
.mk-vis__chip svg { width: 12px; height: 12px; }
.mk-vis__rows { display: flex; flex-direction: column; gap: var(--space-2-5); }
.mk-vis__row {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--surface-sunken); border-radius: var(--radius-lg, 12px);
  padding: var(--space-2-5) var(--space-3);
}
.mk-vis__defs { position: absolute; width: 0; height: 0; }
.mk-vis__face { width: 34px; height: 34px; flex: none; }
.mk-vis__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1-5); }
.mk-vis__name { font-size: var(--text-body-sm); font-weight: var(--fw-semibold); color: var(--text-strong); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Score bar = light track + colored fill sized to the score, so the row reads as a
   real ranked candidate, not an unfilled (still-loading) skeleton. */
.mk-vis__bar { width: 100%; height: 6px; border-radius: var(--radius-pill); background: var(--border-subtle); overflow: hidden; }
.mk-vis__fill { display: block; height: 100%; border-radius: var(--radius-pill); }
.mk-vis__score { font-size: var(--text-caption); font-weight: var(--fw-bold); padding: var(--space-1) var(--space-2-5); border-radius: var(--radius-pill); white-space: nowrap; }

.mk-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  list-style: none; margin: 0; padding: 0; width: 100%;
}
.mk-step {
  display: flex; flex-direction: column; gap: var(--space-1-5);
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 12px); padding: var(--space-5); text-align: left;
}
.mk-step__ico {
  width: 34px; height: 34px; border-radius: var(--radius-md, 8px);
  background: var(--brand-subtle); color: var(--indigo-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-1);
}
.mk-step__ico svg { width: 18px; height: 18px; }
.mk-step__txt { display: flex; flex-direction: column; gap: var(--space-1-5); min-width: 0; }
.mk-step b { font-size: var(--text-body-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.mk-step span { font-size: var(--text-caption); color: var(--text-muted); }

@media (max-width: 900px) {
  .mk-screen { justify-content: flex-start; gap: var(--space-8); padding: var(--space-6) var(--space-5) var(--space-9); }
  .mk-hero2 { grid-template-columns: 1fr; gap: var(--space-7); }
  .mk-hero2__copy { text-align: center; }
  .mk-hero2__copy .mk-sub { text-align: center; margin-left: auto; margin-right: auto; }
  .mk-steps { grid-template-columns: repeat(2, 1fr); }
  .mk-topbar { padding: var(--space-4) var(--space-5); }
}
@media (max-width: 460px) {
  /* One per row, but as a compact horizontal row (icon left, text right) so the
     card fills its width and reads as a finished list item — not a tall, mostly
     empty block that looks like a loading skeleton. */
  .mk-steps { grid-template-columns: 1fr; gap: var(--space-3); }
  .mk-step { flex-direction: row; align-items: center; gap: var(--space-3-5, 14px); padding: var(--space-4); }
  .mk-step__ico { margin-bottom: 0; flex: none; }
}

/* Landing "how it works" carousel */
.mk-how { margin-top: var(--space-14); width: 100%; }
.mk-how__title {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0 0 var(--space-7);
}
.mk-carousel { position: relative; }
.mk-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-xl);
}
.mk-carousel__viewport::-webkit-scrollbar { display: none; }
.mk-carousel__track { display: flex; }
.mk-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--space-1) var(--space-4);
}
.mk-slide__art { width: 100%; max-width: 560px; margin-bottom: var(--space-6); }
.mk-slide__art img { width: 100%; height: auto; display: block; border-radius: var(--radius-xl); }
.mk-slide__step {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--indigo-700);
  margin-bottom: var(--space-2);
}
.mk-slide h3 {
  font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--text-h2, 1.5rem); color: var(--text-strong);
  margin: 0 0 var(--space-2);
}
.mk-slide p {
  font-size: var(--text-body-lg); line-height: var(--lh-body);
  color: var(--text-muted); max-width: 46ch; margin: 0;
}
.mk-carousel__arrow {
  position: absolute; top: 33%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: var(--radius-circle);
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm, var(--shadow-xs)); color: var(--text-strong);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.mk-carousel__arrow:hover { background: var(--surface-sunken); }
.mk-carousel__arrow--prev { left: -10px; }
.mk-carousel__arrow--next { right: -10px; }
.mk-carousel__arrow:disabled { opacity: 0; pointer-events: none; }
.mk-carousel__dots { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-5); }
.mk-carousel__dot {
  width: 8px; height: 8px; border-radius: var(--radius-circle);
  background: var(--border-default, #C7CDDD); border: 0; padding: 0; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out);
}
.mk-carousel__dot.is-active { background: var(--brand); width: 22px; border-radius: var(--radius-pill); }
@media (max-width: 520px) {
  .mk-carousel__arrow { display: none; }
}
/* Desktop: drop the carousel — show all 4 steps as a grid of cards so the
   width is used and the whole process is visible at a glance. The carousel
   (one slide + swipe) stays only on narrow screens. */
@media (min-width: 760px) {
  .mk-carousel__viewport { overflow: visible; scroll-snap-type: none; border-radius: 0; }
  .mk-carousel__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    align-items: stretch;
  }
  .mk-slide {
    padding: var(--space-6) var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
  }
  /* Compact, centered cards so the whole step (art + title + text) fits without
     a tall illustration pushing the copy below the fold. */
  .mk-slide__art { max-width: 168px; margin-bottom: var(--space-4); }
  .mk-slide h3 { font-size: 1.15rem; }
  .mk-slide p { font-size: var(--text-body-sm); max-width: none; }
  .mk-carousel__arrow, .mk-carousel__dots { display: none; }
}

/* "What is AI scoring" explainer band */
.mk-explain {
  margin-top: var(--space-14);
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
  text-align: left;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl, 24px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
}
.mk-explain__art img { width: 100%; height: auto; display: block; }
.mk-explain__eyebrow {
  font-family: var(--font-mono); font-size: var(--text-caption);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay-600);
}
.mk-explain__body h2 {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: var(--text-h1, 1.875rem); color: var(--text-strong);
  letter-spacing: -0.01em; margin: var(--space-2) 0 var(--space-3);
}
.mk-explain__body p {
  font-size: var(--text-body); line-height: var(--lh-body);
  color: var(--text-body); margin: 0 0 var(--space-4);
}
.mk-explain__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2-5); }
.mk-explain__list li { display: flex; gap: var(--space-2-5); align-items: flex-start; font-size: var(--text-body-sm); color: var(--text-strong); }
.mk-explain__tick {
  flex: none; width: 22px; height: 22px; border-radius: var(--radius-circle);
  background: var(--success-subtle, #E3F5EC); color: var(--success, #23A06E);
  display: flex; align-items: center; justify-content: center;
}
.mk-explain__tick svg { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .mk-explain { grid-template-columns: 1fr; text-align: center; gap: var(--space-6); }
  .mk-explain__list li { text-align: left; }
}

/* Stepped create wizard (/new) */
.mk-wrap--narrow { max-width: 600px; }
.mk-wiz {
  text-align: left;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-7);
}
.mk-wiz__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
}
.mk-wiz__steps { display: flex; gap: var(--space-1-5); }
.mk-wiz__dot {
  width: 28px; height: 4px; border-radius: var(--radius-pill);
  background: var(--border-default, #D3D8E6);
  transition: background var(--dur-fast) var(--ease-out);
}
.mk-wiz__dot.is-active { background: var(--brand); }
.mk-wiz__count { font-size: var(--text-caption); color: var(--text-subtle); }
.mk-wiz__count b { color: var(--text-strong); }
.mk-step h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 0 0 var(--space-2);
}
.mk-step__sub {
  font-size: var(--text-body-sm);
  line-height: var(--lh-body);
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
}
.mk-step__err { font-size: var(--text-caption); color: var(--danger); margin: 0 0 var(--space-2); }
.mk-private {
  display: flex; align-items: flex-start; gap: var(--space-2-5);
  background: var(--brand-subtle, #EEF0FC);
  border: 1px solid var(--brand-subtle-2, #DEE2F9);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-3-5, 14px);
  margin: 0 0 var(--space-4);
  font-size: var(--text-body-sm);
  line-height: var(--lh-body);
  color: var(--indigo-800, #272D7C);
}
.mk-private svg { flex: none; width: 18px; height: 18px; color: var(--brand); margin-top: 1px; }
.mk-private b { color: var(--indigo-900, #20254F); }
.mk-wiz__nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); margin-top: var(--space-6);
}
/* AI criteria rows */
.mk-crit {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.7fr) auto;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}
.mk-crit__del {
  border: 0; background: transparent; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--text-subtle);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.mk-crit__del:hover { color: var(--danger); background: var(--danger-subtle); }
.mk-crit-loading {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-body-sm); color: var(--text-muted);
  padding: var(--space-4) 0;
}
.mk-crit-actions { display: flex; gap: var(--space-2); margin: var(--space-3) 0 var(--space-1); }

/* ============================================================
   Full create wizard — top stepper + live candidate preview.
   One partial (_vacancy_wizard.html) drives BOTH the anonymous
   /new flow and the in-app /app/vacancies/new flow at parity
   with the bot. .mk-wiz--full is the 2-col shell; it keeps the
   .mk-wiz card chrome but drops its padding for the grid.
   ============================================================ */
.mk-wiz--full {
  width: 100%;
  max-width: min(100%, 1180px);
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  overflow: hidden;
}
.mk-wiz__main { min-width: 0; padding: var(--space-7); display: flex; flex-direction: column; }

/* `hidden` must actually hide inside the wizard: author `display` rules on
   .wb-field / .mk-crit-loading / .mk-aibox would otherwise override the UA
   `[hidden]` rule, leaving reveal-on-demand blocks (criteria spinner, the
   pass/fail textareas) permanently visible. */
.mk-wiz [hidden] { display: none !important; }

/* Toggle row (e.g. "send rejections with a delay") */
.mk-switchrow { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-1) 0; }
.mk-switchrow__label { font-size: var(--text-body-sm); color: var(--text-strong); }
.mk-switchrow__label b { font-weight: var(--fw-semibold); }
.mk-switchrow__hint { display: block; font-size: var(--text-caption); color: var(--text-muted); margin-top: 2px; }

/* Top horizontal stepper (replaces the prototype's left rail so one partial
   works inside base_app.html's sidebar shell too). Clickable to jump. */
.mk-stepper { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.mk-stepper__item {
  display: flex; align-items: center; gap: var(--space-2);
  background: none; border: 0; font: inherit; cursor: pointer; color: var(--text-muted);
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mk-stepper__item:hover { background: var(--surface-hover); }
.mk-stepper__ix {
  flex: none; width: 26px; height: 26px; border-radius: var(--radius-circle);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: var(--text-caption); font-weight: var(--fw-semibold);
  background: var(--surface-sunken); color: var(--text-muted);
}
.mk-stepper__ix svg { width: 14px; height: 14px; }
.mk-stepper__label { font-size: var(--text-body-sm); font-weight: var(--fw-semibold); white-space: nowrap; }
.mk-stepper__sep { flex: 1; min-width: var(--space-3); height: 1px; background: var(--border-subtle); }
.mk-stepper__item.is-active { color: var(--indigo-800); }
.mk-stepper__item.is-active .mk-stepper__ix { background: var(--brand); color: #fff; }
.mk-stepper__item.is-done .mk-stepper__ix { background: var(--success-subtle); color: var(--success); }
.mk-stepper__count { display: none; font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-subtle); margin-bottom: var(--space-4); }

.mk-wiz--full .mk-step { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.mk-wiz--full .mk-step[hidden] { display: none; }
.mk-wiz--full .mk-step__sub { margin: 0; }

.mk-ov {
  display: inline-flex; align-items: center; gap: var(--space-1-5);
  font-family: var(--font-mono); font-size: var(--text-overline);
  letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--text-muted);
}
.mk-ov svg { width: 13px; height: 13px; }
.mk-ov--brand { color: var(--indigo-700); }

/* Step 1 — AI rewrite chip + take/keep box, contact warning + strip toggle */
.mk-ai-btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: var(--space-2);
  height: var(--control-h-sm); padding: 0 var(--space-3);
  border: 1px solid var(--brand-subtle-2); border-radius: var(--radius-md);
  background: var(--brand-subtle); color: var(--indigo-700);
  font-family: var(--font-sans); font-size: var(--text-caption); font-weight: var(--fw-semibold);
  cursor: pointer; transition: background var(--dur-fast) var(--ease-out);
}
.mk-ai-btn:hover { background: var(--brand-subtle-2); }
.mk-ai-btn:disabled { opacity: .6; cursor: progress; }
.mk-ai-btn svg { width: 16px; height: 16px; }
.mk-aibox {
  border: 1px solid var(--brand-subtle-2); background: var(--brand-subtle);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.mk-aibox__row { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-caption); font-weight: var(--fw-semibold); color: var(--indigo-800); }
.mk-aibox__row svg { width: 15px; height: 15px; color: var(--brand); }
.mk-aibox__txt { font-size: var(--text-body-sm); line-height: var(--lh-body); color: var(--text-strong); white-space: pre-wrap; }
.mk-aibox .wb-textarea { min-height: 150px; }
.mk-aibox .wb-textarea[readonly] { background: var(--surface-card); }
.mk-aibox__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Step 2 — free-form criteria textarea + AI assist row */
.mk-crit-text { min-height: 150px; }
.mk-crit-assist { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Step 5 — "what to send me" checkbox list + destination cards */
.mk-checks { display: flex; flex-direction: column; gap: var(--space-2-5); }
.mk-check { display: flex; align-items: center; gap: var(--space-2-5); font-size: var(--text-body-sm); color: var(--text-strong); cursor: pointer; }
.mk-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); flex: none; cursor: pointer; }
.mk-check__hint { color: var(--text-muted); font-size: var(--text-caption); }

.mk-warn {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--warning-subtle); border: 1px solid var(--amber-100);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  font-size: var(--text-body-sm); line-height: var(--lh-body); color: var(--amber-700);
}
.mk-warn b { color: var(--amber-700); font-weight: var(--fw-bold); }
.mk-switch {
  flex: none; width: 40px; height: 24px; border-radius: var(--radius-pill);
  background: var(--border-strong); border: 0; padding: 0; position: relative; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.mk-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: var(--radius-circle); background: #fff; box-shadow: var(--shadow-xs);
  transition: left var(--dur-fast) var(--ease-out);
}
.mk-switch.is-on { background: var(--brand); }
.mk-switch.is-on::after { left: 18px; }
.mk-switch:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.mk-strike { color: var(--danger); text-decoration: line-through; }

/* Step 3 — threshold slider (range scoped under .mk-wiz to avoid global restyle) */
.mk-thr__read { display: flex; align-items: baseline; justify-content: center; gap: var(--space-2); padding: var(--space-2) 0; }
.mk-thr__n { font-family: var(--font-mono); font-size: 56px; font-weight: var(--fw-semibold); color: var(--brand); line-height: 1; }
.mk-thr__d { font-size: var(--text-h3); color: var(--text-muted); }
.mk-thr__ends { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-caption); color: var(--text-muted); }
.mk-wiz input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: var(--radius-pill); background: var(--border-default); outline: none; margin: var(--space-2) 0;
}
.mk-wiz input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: var(--radius-circle);
  background: #fff; border: 3px solid var(--brand); cursor: pointer; box-shadow: var(--shadow-xs);
}
.mk-wiz input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: var(--radius-circle);
  background: #fff; border: 3px solid var(--brand); cursor: pointer;
}
.mk-wiz input[type=range]:focus-visible { box-shadow: var(--shadow-focus); }
.mk-callout {
  display: flex; align-items: center; gap: var(--space-2-5);
  background: var(--surface-sunken); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); font-size: var(--text-body-sm);
  line-height: var(--lh-body); color: var(--text-body);
}
.mk-callout svg { flex: none; color: var(--brand); }

/* Step 4 — segmented pass/fail options (visually-hidden radios) */
.mk-sublabel {
  font-family: var(--font-mono); font-size: var(--text-overline); letter-spacing: var(--ls-overline);
  text-transform: uppercase; font-weight: var(--fw-semibold); color: var(--text-muted);
}
.mk-seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.mk-opt {
  position: relative; display: flex; flex-direction: column; gap: var(--space-1);
  border: 1px solid var(--border-default); background: var(--surface-card);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.mk-opt > input { position: absolute; opacity: 0; pointer-events: none; }
.mk-opt__t { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-body-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.mk-opt__t svg { width: 16px; height: 16px; }
.mk-opt__d { font-size: var(--text-caption); line-height: var(--lh-body); color: var(--text-muted); }
.mk-opt.is-on, .mk-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-subtle); }
.mk-opt.is-on .mk-opt__t, .mk-opt:has(input:checked) .mk-opt__t { color: var(--indigo-800); }
.mk-opt:focus-within { box-shadow: var(--shadow-focus); }

/* Criteria rows gain a leading enable/disable toggle (drop disabled on submit) */
.mk-wiz--full .mk-crit { grid-template-columns: auto minmax(0,1fr) minmax(0,1.6fr) auto; align-items: center; }
.mk-crit__tog {
  flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border: 0; background: none; padding: 0; cursor: pointer; color: var(--success); border-radius: var(--radius-circle);
}
.mk-crit__tog svg { width: 18px; height: 18px; }
.mk-crit.is-off { opacity: .5; }
.mk-crit.is-off .mk-crit__tog { color: var(--text-subtle); }

/* Right pane — candidate's-eye Telegram preview (the privacy proof) */
.mk-preview {
  border-left: 1px solid var(--border-subtle); background: var(--surface-paper);
  padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3);
}
.mk-tg {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2-5); box-shadow: var(--shadow-xs);
}
.mk-tg__head { display: flex; align-items: center; gap: var(--space-2); }
.mk-tg__ava { flex: none; width: 26px; height: 26px; border-radius: var(--radius-circle); background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: var(--text-caption); font-weight: var(--fw-bold); }
.mk-tg__bot { font-size: var(--text-caption); font-weight: var(--fw-semibold); color: var(--text-strong); }
.mk-tg__title { font-size: var(--text-body); font-weight: var(--fw-bold); color: var(--text-strong); word-break: break-word; }
.mk-tg__desc { font-size: var(--text-body-sm); color: var(--text-body); line-height: var(--lh-body); white-space: pre-wrap; word-break: break-word; }
.mk-tg__cta { font-size: var(--text-caption); color: var(--text-muted); border-top: 1px solid var(--border-subtle); padding-top: var(--space-2-5); }
.mk-hidden-note { display: flex; align-items: center; gap: var(--space-2); background: var(--surface-sunken); border-radius: var(--radius-md); padding: var(--space-2-5) var(--space-3); font-size: var(--text-caption); color: var(--text-muted); }
.mk-hidden-note svg { flex: none; width: 14px; height: 14px; }

/* Mobile-only "preview as candidate" button → modal with the same card */
.mk-preview-btn { display: none; align-self: flex-start; margin-top: var(--space-4); }
.mk-modal { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(28,32,51,.45); align-items: center; justify-content: center; padding: var(--space-5); }
.mk-modal.is-open { display: flex; }
.mk-modal__sheet { background: var(--surface-paper); border-radius: var(--radius-xl); padding: var(--space-4); width: 100%; max-width: 360px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--space-3); }
.mk-modal__head { display: flex; align-items: center; justify-content: space-between; }
.mk-modal__x { border: 0; background: none; cursor: pointer; color: var(--text-muted); padding: var(--space-1); border-radius: var(--radius-sm); }
.mk-modal__x:hover { background: var(--surface-hover); color: var(--text-strong); }

/* Collapse to single column (preview → button) early enough that the in-app
   2-col grid never overflows next to the sidebar. */
@media (max-width: 980px) {
  .mk-wiz--full { grid-template-columns: 1fr; max-width: 640px; }
  .mk-preview { display: none; }
  .mk-preview-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .mk-wiz__main { padding: var(--space-5); }
  .mk-stepper { justify-content: space-between; gap: var(--space-1); }
  .mk-stepper__label, .mk-stepper__sep { display: none; }
  .mk-stepper__count { display: block; }
  .mk-seg2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .mk-features { grid-template-columns: 1fr; }
  .mk-crit { grid-template-columns: minmax(0,1fr) auto; }
  .mk-crit__desc { grid-column: 1 / -1; }
  .mk-wiz--full .mk-crit { grid-template-columns: auto minmax(0,1fr) auto; }
  .mk-wiz--full .mk-crit__desc { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .mk-wrap { padding: var(--space-10) var(--space-4) var(--space-6); }
  .mk-card { padding: var(--space-5); }
  .mk-cta .wb-btn { min-width: 0; width: 100%; }
}

/* ============================================================
   Vacancy EDIT form — reuses the wizard's mk-* field controls
   on a single page (no .mk-wiz shell). Two wizard rules are
   scoped to .mk-wiz, so mirror them here: the range slider, and
   the `[hidden]` enforcement (mk-aibox / mk-crit-loading set
   `display`, which would otherwise beat the UA [hidden] rule and
   leave reveal-on-demand blocks permanently visible).
   ============================================================ */
[data-edit] [hidden] { display: none !important; }
[data-edit] input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: var(--radius-pill); background: var(--border-default); outline: none; margin: var(--space-2) 0;
}
[data-edit] input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: var(--radius-circle);
  background: #fff; border: 3px solid var(--brand); cursor: pointer; box-shadow: var(--shadow-xs);
}
[data-edit] input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: var(--radius-circle);
  background: #fff; border: 3px solid var(--brand); cursor: pointer;
}
[data-edit] input[type=range]:focus-visible { box-shadow: var(--shadow-focus); }

/* ============================================================
   Tool chrome (analytics file-share + analyticsnew AI)
   ============================================================ */
.tool-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: var(--topbar-h);
  padding: 0 var(--space-7);
  background: color-mix(in srgb, var(--surface-page) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}
.tool-top__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2-5);
  text-decoration: none;
}
.tool-top__brand:hover { text-decoration: none; }
.tool-top__brand img { width: 26px; height: 26px; }
.tool-top__brand b {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 18px;
  letter-spacing: var(--ls-tighter);
  color: var(--brand-ink);
}
.tool-top__brand .dot { color: var(--accent); }
.tool-top__brand span.tool-top__sub {
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  letter-spacing: 0;
  padding-left: var(--space-2-5);
  margin-left: var(--space-1);
  border-left: 1px solid var(--border-subtle);
}
.tool-top__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
}
.tool-top__email {
  font-size: var(--text-caption);
  color: var(--text-muted);
}
.tool-top__right form { margin: 0; }

.tool-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.tool-section {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-7);
}
.tool-section > h2 {
  font-size: var(--text-h3);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  margin: 0 0 var(--space-1);
}
.tool-section__sub {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-5);
}
.tool-section__sub:last-of-type { margin-bottom: var(--space-4); }

/* Drag-drop upload zone */
.tool-drop {
  border: 1.5px dashed var(--border-brand);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-6);
  text-align: center;
  cursor: pointer;
  background: var(--brand-subtle);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.tool-drop:hover,
.tool-drop.dragover {
  background: var(--brand-subtle-2);
  border-color: var(--brand);
}
.tool-drop svg {
  width: 40px; height: 40px;
  color: var(--brand);
  margin-bottom: var(--space-3);
}
.tool-drop p {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.tool-drop .tool-drop__hint {
  font-size: var(--text-caption);
  font-weight: var(--fw-regular);
  color: var(--text-muted);
  margin-top: var(--space-1);
}
.tool-fileinput { display: none; }

/* Upload progress */
.tool-progress { margin-top: var(--space-5); display: none; }
.tool-progress.active { display: block; }
.tool-progress__bar {
  width: 100%;
  height: 4px;
  background: var(--surface-sunken);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.tool-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: var(--radius-pill);
  transition: width var(--dur-slow) var(--ease-out);
}
.tool-status {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: var(--space-2);
}
.tool-status.error { color: var(--danger); }
.tool-status.success { color: var(--success); }

/* Uploaded files list */
.tool-list { display: flex; flex-direction: column; }
.tool-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-subtle);
}
.tool-list__item:first-child { border-top: none; }
.tool-list__info { flex: 1; min-width: 0; }
.tool-list__name {
  font-size: var(--text-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  word-break: break-all;
}
.tool-list__meta {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-top: 2px;
}
.tool-list__meta b { font-family: var(--font-mono); color: var(--text-body); font-weight: var(--fw-semibold); }
.tool-list__actions { display: flex; gap: var(--space-2); flex: none; }

/* small inline buttons used inside JS-rendered rows (mirror .wb-btn--sm) */
.tool-ibtn {
  display: inline-flex;
  align-items: center;
  height: var(--control-h-sm);
  padding: 0 var(--space-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.tool-ibtn:hover { background: var(--surface-hover); color: var(--text-strong); }
.tool-ibtn--copy.copied { background: var(--success); color: #fff; border-color: var(--success); }
.tool-ibtn--danger:hover { background: var(--danger-subtle); color: var(--red-700); border-color: var(--red-500); }

.tool-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-body-sm);
}

/* analyticsnew — two file inputs */
.tool-files { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.tool-filefield {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  color: var(--text-body);
  padding: var(--space-2-5);
  border: 1px dashed var(--border-brand);
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
}
.tool-filefield::file-selector-button {
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  color: var(--indigo-700);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: var(--space-1-5) var(--space-3);
  margin-right: var(--space-3);
  cursor: pointer;
}

/* Result card */
.tool-result { display: none; }
.tool-result.active { display: block; }
.tool-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

/* Spinner — calm, no bounce */
.tool-spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--surface-sunken);
  border-top-color: var(--brand);
  border-radius: var(--radius-circle);
  animation: tool-spin 0.8s linear infinite;
  margin: var(--space-3) 0;
}
@keyframes tool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tool-spinner { animation-duration: 1.8s; } }

/* AI answer — plain + rendered Markdown */
pre.answer {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  line-height: var(--lh-body);
  color: var(--text-body);
  margin: var(--space-3) 0 0;
}
pre.answer.error { background: var(--danger-subtle); color: var(--red-700); }
.answer.md {
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-3) 0 0;
  font-size: var(--text-body-sm);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  word-wrap: break-word;
}
.answer.md h1, .answer.md h2, .answer.md h3, .answer.md h4 { margin: var(--space-4) 0 var(--space-2); line-height: var(--lh-heading); color: var(--text-strong); }
.answer.md h1 { font-size: var(--text-h3); }
.answer.md h2 { font-size: var(--text-h4); }
.answer.md h3 { font-size: var(--text-body); }
.answer.md h1:first-child, .answer.md h2:first-child, .answer.md h3:first-child { margin-top: 0; }
.answer.md p { margin: var(--space-2) 0; }
.answer.md ul, .answer.md ol { margin: var(--space-2) 0; padding-left: var(--space-6); }
.answer.md li { margin: var(--space-1) 0; }
.answer.md strong { font-weight: var(--fw-bold); color: var(--text-strong); }
.answer.md code { font-family: var(--font-mono); background: var(--neutral-100); padding: 1px 5px; border-radius: var(--radius-xs); font-size: 0.92em; }
.answer.md pre { background: var(--neutral-100); padding: var(--space-3); border-radius: var(--radius-md); overflow: auto; }
.answer.md pre code { background: none; padding: 0; }
.answer.md blockquote { border-left: 3px solid var(--border-brand); margin: var(--space-2) 0; padding-left: var(--space-3); color: var(--text-muted); }
.answer.md hr { border: none; border-top: 1px solid var(--border-subtle); margin: var(--space-4) 0; }
.answer.md table { border-collapse: collapse; margin: var(--space-2) 0; font-size: var(--text-caption); }
.answer.md th, .answer.md td { border: 1px solid var(--border-subtle); padding: var(--space-1-5) var(--space-3); }
.answer.md a { color: var(--text-link); }
.hist-answer.md { white-space: normal; }

/* History */
.tool-hist { display: flex; flex-direction: column; }
.tool-hist__item {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-subtle);
}
.tool-hist__item:first-child { border-top: none; }
.tool-hist__meta {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}
.tool-hist__task { font-size: var(--text-body-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.tool-hist__toggle {
  font-size: var(--text-caption);
  font-weight: var(--fw-semibold);
  color: var(--text-link);
  cursor: pointer;
  margin-top: var(--space-1-5);
  display: inline-block;
}
.tool-hist__toggle:hover { text-decoration: underline; }
.hist-answer { white-space: pre-wrap; font-size: var(--text-caption); margin-top: var(--space-2); display: none; }

@media (max-width: 600px) {
  .tool-top { padding: 0 var(--space-4); }
  .tool-top__brand span.tool-top__sub { display: none; }
  .tool-wrap { padding: var(--space-5) var(--space-4) var(--space-12); }
  .tool-section { padding: var(--space-5); }
  .tool-files { grid-template-columns: 1fr; }
}
