/* =========================================================
   职向 CareerCompass · UI Design System
   ========================================================= */
:root {
  --ink: #0e1526;
  --ink-2: #28324a;
  --ink-3: #4a556d;
  --muted: #6c7791;
  --line: #e7eaf3;
  --line-strong: #d8ddec;
  --bg: #f5f7fc;
  --bg-2: #eef1f9;
  --surface: #ffffff;
  --surface-2: #fafbff;

  --primary: #5b5bf6;
  --primary-deep: #4340d8;
  --primary-soft: #eeedff;
  --violet: #8b5cf6;
  --violet-soft: #f3edff;
  --teal: #10b5a3;
  --teal-soft: #e5f8f5;
  --amber: #f59e0b;
  --amber-soft: #fff5e2;
  --rose: #ef4b6b;
  --rose-soft: #fff0f3;
  --green: #18a874;
  --green-soft: #e8f8f1;

  --gradient: linear-gradient(135deg, #5b5bf6 0%, #8b5cf6 58%, #b785f6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(91, 91, 246, .12), rgba(139, 92, 246, .06));

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-xs: 0 1px 2px rgba(14, 21, 38, .05);
  --shadow-sm: 0 4px 14px -4px rgba(15, 23, 42, .08);
  --shadow-md: 0 16px 40px -18px rgba(23, 31, 56, .22);
  --shadow-lg: 0 32px 70px -30px rgba(23, 31, 56, .3);
  --shadow-primary: 0 18px 36px -14px rgba(91, 91, 246, .5);

  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --nav-h: 72px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(91, 91, 246, .18); }

/* ---------- Layout ---------- */
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1360px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.grow { flex: 1; }
.hide { display: none !important; }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 700;
  color: var(--ink);
}
.h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.22; letter-spacing: -.03em; font-weight: 700; }
.h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; letter-spacing: -.025em; font-weight: 700; }
.h3 { font-size: 1.18rem; line-height: 1.45; letter-spacing: -.015em; font-weight: 650; }
.h4 { font-size: 1rem; line-height: 1.5; font-weight: 650; }
.lead { font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--ink-3); line-height: 1.85; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--gradient);
}
.eyebrow.plain::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 46px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--btn-h); padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink); background: transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background .2s, color .2s, border-color .2s;
}
.btn i { font-size: 13px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:focus-visible { outline: 3px solid rgba(91, 91, 246, .25); outline-offset: 2px; }
.btn-primary {
  color: #fff; background: var(--gradient);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { box-shadow: 0 22px 42px -14px rgba(91, 91, 246, .6); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 16px 30px -16px rgba(14, 21, 38, .6); }
.btn-dark:hover { background: #182136; }
.btn-outline { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #fbfbff; }
.btn-ghost { color: var(--ink-3); }
.btn-ghost:hover { background: rgba(91, 91, 246, .07); color: var(--primary); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: #e4e2ff; }
.btn-danger-soft { background: var(--rose-soft); color: var(--rose); }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-sm { --btn-h: 36px; padding: 0 14px; font-size: 13px; }
.btn-icon { width: var(--btn-h); padding: 0; border-radius: 50%; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px; color: var(--primary);
}
.link-arrow i { transition: transform .25s var(--ease); font-size: 12px; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: var(--bg-2); color: var(--ink-3);
  white-space: nowrap;
}
.badge i { font-size: 10px; }
.badge-primary { background: var(--primary-soft); color: var(--primary-deep); }
.badge-teal { background: var(--teal-soft); color: #0a8f80; }
.badge-amber { background: var(--amber-soft); color: #b57500; }
.badge-rose { background: var(--rose-soft); color: #c92c4c; }
.badge-green { background: var(--green-soft); color: #0b7a54; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .85;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px; font-weight: 500; color: var(--ink-3);
  cursor: pointer; user-select: none;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: #b9b8f8; color: var(--primary); background: #fbfbff; }
.chip.is-active {
  background: var(--primary); border-color: var(--primary);
  color: #fff; box-shadow: 0 8px 18px -10px rgba(91, 91, 246, .8);
}
.chip.is-active i { color: #fff; }
.chip i { font-size: 11px; color: var(--muted); }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 28px; }
.card-pad-lg { padding: 36px; }
.card-hover { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dfe2f5; }
.glass {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: rgba(245, 247, 252, .82);
  border-bottom: 1px solid rgba(231, 234, 243, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  position: relative;
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(14, 21, 38, .5);
  overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: -40% -60% auto auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .9), transparent 70%);
  filter: blur(2px);
}
.brand-mark i { position: relative; z-index: 1; font-size: 17px; }
.brand-name { font-size: 18px; }
.brand-name span { color: var(--primary); }
.brand-sub { font-size: 10px; letter-spacing: .18em; color: var(--muted); font-weight: 600; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-3); transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-ghost-link { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.nav-ghost-link:hover { color: var(--primary); }
.nav-toggle { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero / decorative ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 80px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(91, 91, 246, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 91, 246, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 10%, transparent 75%);
  pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(46px);
  pointer-events: none; opacity: .55;
}
.orb-1 { width: 420px; height: 420px; left: -140px; top: -160px; background: radial-gradient(circle, #c7c4ff, transparent 68%); }
.orb-2 { width: 460px; height: 460px; right: -120px; top: 40px; background: radial-gradient(circle, #dcc9ff, transparent 68%); }
.orb-3 { width: 260px; height: 260px; right: 24%; bottom: -140px; background: radial-gradient(circle, #bfeee8, transparent 68%); }

/* ---------- Hero split (home) ---------- */
.home-hero { position: relative; }
.home-hero .container { position: relative; }
.hero-split {
  display: grid; grid-template-columns: 1.06fr .94fr;
  gap: 64px; align-items: center;
}
.hero-copy .display { max-width: 15em; }
.hero-copy .display .gradient-text { white-space: nowrap; }
.hero-copy .lead { max-width: 32em; margin-top: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px; color: var(--ink-3); font-weight: 500;
}
.meta-pill i { font-size: 11px; color: var(--primary); }
.hero-note {
  display: flex; gap: 9px; align-items: flex-start;
  margin-top: 26px; font-size: 12.5px; color: var(--muted); line-height: 1.65;
  max-width: 34em;
}
.hero-note i { color: var(--teal); margin-top: 3px; }

/* access card */
.access-card {
  position: relative;
  padding: 34px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.access-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(139, 92, 246, .4), rgba(255, 255, 255, 0) 45%, rgba(16, 181, 163, .28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.access-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.access-ico {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 18px;
}
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.code-input-wrap { position: relative; }
.code-input {
  width: 100%; height: 58px;
  padding: 0 52px 0 18px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--mono); font-size: 18px; font-weight: 600;
  letter-spacing: .28em; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}
.code-input::placeholder { font-family: var(--font); font-size: 14px; letter-spacing: .04em; font-weight: 400; color: #a3abbf; }
.code-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(91, 91, 246, .1); }
.code-input.is-error { border-color: var(--rose); background: #fffafb; box-shadow: 0 0 0 4px rgba(239, 75, 107, .08); }
.code-input-icon {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: #a3abbf; font-size: 15px;
}
.form-msg {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 10px; font-size: 12.5px; line-height: 1.55;
  color: var(--rose);
}
.form-msg i { margin-top: 3px; font-size: 11px; }
.access-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; font-size: 11.5px; color: #98a1b6;
}
.access-foot a { color: var(--ink-3); font-weight: 500; }
.access-foot a:hover { color: var(--primary); }
.access-demo {
  margin-top: 20px; padding: 12px 14px;
  background: var(--bg); border-radius: var(--radius-xs);
  font-size: 11.5px; color: var(--muted); line-height: 1.65;
}
.access-demo b { color: var(--ink-2); font-weight: 600; }
.access-demo code {
  font-family: var(--mono); font-size: 11px; color: var(--primary-deep);
  background: #fff; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line);
}
.trust-row { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.avatars { display: flex; }
.avatars span {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -8px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.avatars span:first-child { margin-left: 0; }

/* floating chips on hero */
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 36px -20px rgba(23, 31, 56, .35);
  backdrop-filter: blur(10px);
  font-size: 12px; color: var(--ink-3);
  animation: floaty 7s ease-in-out infinite;
}
.float-card .fc-ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--teal-soft); color: #0a8f80; font-size: 12px;
}
.float-card b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 650; }
.float-a { left: -34px; bottom: 92px; }
.float-b { right: -22px; top: 64px; animation-delay: 1.6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 30px; }
.feature-ico {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: 17px;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 20px;
}
.feature-card:nth-child(2) .feature-ico { background: var(--teal-soft); color: #0a8f80; }
.feature-card:nth-child(3) .feature-ico { background: var(--amber-soft); color: #b57500; }
.feature-card p { color: var(--muted); font-size: 13.5px; line-height: 1.75; margin-top: 9px; }
.feature-tag { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.feature-tag span {
  font-size: 11px; padding: 3px 9px; border-radius: 6px;
  background: var(--bg); color: var(--ink-3);
}

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card { position: relative; padding: 28px 24px; overflow: hidden; }
.step-num {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--primary); margin-bottom: 14px;
}
.step-card::after {
  content: attr(data-step);
  position: absolute; right: 16px; bottom: -16px;
  font-size: 76px; font-weight: 800; letter-spacing: -.06em;
  color: rgba(91, 91, 246, .06);
  line-height: 1;
}
.step-card p { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }

/* ---------- Boundary banner ---------- */
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.boundary {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 26px 30px;
  border-radius: var(--radius-md);
  background: linear-gradient(120deg, #fbfbff, #f4f8ff);
  border: 1px solid #e3e6f8;
}
.boundary-ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: var(--primary); box-shadow: var(--shadow-xs);
}
.boundary h4 { margin-bottom: 4px; }
.boundary p { font-size: 12.5px; color: var(--muted); line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 24px; padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin-top: 14px; max-width: 26em; line-height: 1.8; }
.footer-col h5 { font-size: 12px; letter-spacing: .08em; color: var(--ink); margin-bottom: 14px; font-weight: 650; }
.footer-col a { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: #98a1b6;
}

/* ---------- Inner page shell ---------- */
.page-head {
  padding: 48px 0 10px;
  background:
    radial-gradient(ellipse 50% 120% at 12% 0%, rgba(139, 92, 246, .1), transparent 60%),
    radial-gradient(ellipse 40% 100% at 88% 0%, rgba(16, 181, 163, .09), transparent 60%);
}
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb i { font-size: 9px; opacity: .6; }
.breadcrumb a:hover { color: var(--primary); }
.page-head .lead { max-width: 48em; margin-top: 12px; }
.page-body { padding: 36px 0 80px; }

/* ---------- Form ---------- */
.field { margin-bottom: 22px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.input, .textarea, .select {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 104px; padding: 13px 16px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 91, 246, .09);
}
.input::placeholder, .textarea::placeholder { color: #a3abbf; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%236c7791' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.checkbox {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 13px; color: var(--ink-3); line-height: 1.7; cursor: pointer;
}
.checkbox input {
  appearance: none; flex: none;
  width: 19px; height: 19px; margin: 2px 0 0;
  border: 1.5px solid var(--line-strong); border-radius: 6px;
  background: #fff; cursor: pointer; transition: all .2s;
}
.checkbox input:checked {
  background: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.2l2.6 2.6L9.8 3.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.checkbox a { color: var(--primary); }
.tag-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; min-height: 50px; }
.tag-input .tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 10px 0 12px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary-deep);
  font-size: 12.5px; font-weight: 500;
}
.tag-input .tag button { border: 0; background: none; color: inherit; cursor: pointer; opacity: .6; font-size: 10px; padding: 0; }
.tag-input .tag button:hover { opacity: 1; }
.tag-input input { flex: 1; min-width: 140px; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 13.5px; padding: 0 4px; }

/* ---------- Intro page ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.intro-main { padding: 38px; }
.intro-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.dim-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.dim-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line);
}
.dim-item .di-ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 13px;
  background: var(--primary-soft); color: var(--primary);
}
.dim-item:nth-child(2) .di-ico { background: var(--teal-soft); color: #0a8f80; }
.dim-item:nth-child(3) .di-ico { background: var(--amber-soft); color: #b57500; }
.dim-item:nth-child(4) .di-ico { background: var(--violet-soft); color: var(--violet); }
.dim-item b { font-size: 13px; font-weight: 600; display: block; }
.dim-item p { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.info-list { display: grid; gap: 0; }
.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-bottom: 1px dashed var(--line); font-size: 13px;
}
.info-row:last-child { border-bottom: 0; }
.info-row span:first-child { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.info-row span:first-child i { font-size: 11px; color: var(--primary); }
.info-row b { font-weight: 600; }
.timeline-mini { display: grid; gap: 0; }
.timeline-mini li { position: relative; padding: 0 0 18px 24px; font-size: 12.5px; color: var(--muted); }
.timeline-mini li:last-child { padding-bottom: 0; }
.timeline-mini li::before {
  content: ""; position: absolute; left: 3px; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px rgba(91, 91, 246, .12);
}
.timeline-mini li::after {
  content: ""; position: absolute; left: 6px; top: 18px; bottom: 2px;
  width: 1px; background: var(--line-strong);
}
.timeline-mini li:last-child::after { display: none; }
.timeline-mini b { display: block; color: var(--ink-2); font-weight: 600; font-size: 12.5px; }

/* ---------- Survey ---------- */
.survey-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.survey-nav-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.survey-progress { flex: 1; max-width: 420px; }
.progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--muted); margin-bottom: 6px;
}
.progress-meta b { color: var(--ink); font-weight: 650; }
.progress-track { height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: inherit; background: var(--gradient);
  transition: width .5s var(--ease);
  position: relative;
}
.progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: shimmer 2.4s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.save-state i { font-size: 11px; color: var(--green); }
.save-state.is-saving i { color: var(--amber); }
.survey-layout { display: grid; grid-template-columns: 288px 1fr; gap: 26px; align-items: start; padding: 28px 0 72px; }
.survey-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.side-card { padding: 22px; }
.side-title { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 650; margin-bottom: 14px; text-transform: uppercase; }
.section-list { display: grid; gap: 4px; }
.section-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: 11px;
  font-size: 12.5px; color: var(--ink-3); cursor: pointer;
  transition: background .2s, color .2s;
}
.section-item:hover { background: var(--bg); }
.section-item.is-active { background: var(--primary-soft); color: var(--primary-deep); font-weight: 600; }
.section-item .si-ico {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-size: 11px;
  background: var(--bg-2); color: var(--ink-3);
}
.section-item.is-active .si-ico { background: #fff; color: var(--primary); }
.section-item .si-count { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.section-item.is-active .si-count { color: var(--primary); }
.palette { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.palette button {
  aspect-ratio: 1; border-radius: 7px; border: 1px solid var(--line);
  background: #fff; font-size: 9.5px; color: var(--muted);
  cursor: pointer; font-variant-numeric: tabular-nums; padding: 0;
  transition: all .15s;
}
.palette button:hover { border-color: var(--primary); color: var(--primary); }
.palette button.is-answered { background: var(--teal-soft); border-color: #c5ece6; color: #0a8f80; font-weight: 600; }
.palette button.is-current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 4px 10px -4px rgba(91, 91, 246, .7); }
.palette-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: 10.5px; color: var(--muted); }
.palette-legend span { display: inline-flex; align-items: center; gap: 5px; }
.palette-legend i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.q-panel { padding: 40px 44px; min-height: 520px; display: flex; flex-direction: column; }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.q-index { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.q-index b { color: var(--primary); font-weight: 700; font-size: 14px; }
.q-type { font-size: 11px; color: var(--muted); }
.q-text { font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.55; font-weight: 600; letter-spacing: -.015em; margin-bottom: 8px; }
.q-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; }
.likert { display: grid; gap: 10px; }
.likert-option {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer;
  transition: all .2s var(--ease);
}
.likert-option:hover { border-color: #c3c1fa; background: #fdfdff; transform: translateX(2px); }
.likert-option input { position: absolute; opacity: 0; pointer-events: none; }
.likert-dot {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); position: relative;
  transition: all .2s;
}
.likert-dot::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--primary); transform: scale(0); transition: transform .2s var(--ease);
}
.likert-option .lo-label { font-size: 14px; color: var(--ink-2); }
.likert-option .lo-num { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #a3abbf; }
.likert-option.is-selected {
  border-color: var(--primary); background: linear-gradient(90deg, rgba(91, 91, 246, .06), rgba(139, 92, 246, .02));
  box-shadow: 0 8px 20px -16px rgba(91, 91, 246, .8);
}
.likert-option.is-selected .likert-dot { border-color: var(--primary); }
.likert-option.is-selected .likert-dot::after { transform: scale(1); }
.likert-option.is-selected .lo-label { color: var(--primary-deep); font-weight: 600; }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 32px; }
.q-hint { font-size: 11.5px; color: #98a1b6; display: flex; align-items: center; gap: 6px; }
.q-hint kbd {
  font-family: var(--mono); font-size: 10px; padding: 1px 5px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: #fff;
}
.q-actions { display: flex; gap: 10px; }

/* ---------- Generating ---------- */
.gen-grid { display: grid; grid-template-columns: 1fr 350px; gap: 26px; align-items: start; }
.gen-main { padding: 52px 48px; text-align: center; position: relative; overflow: hidden; }
.gen-main::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  left: 50%; top: -180px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139, 92, 246, .16), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.gen-ring { position: relative; width: 132px; height: 132px; margin: 0 auto 26px; }
.gen-ring svg { transform: rotate(-90deg); }
.gen-ring .ring-bg { fill: none; stroke: var(--bg-2); stroke-width: 8; }
.gen-ring .ring-fill {
  fill: none; stroke: url(#ringGrad); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 358; stroke-dashoffset: 96;
  animation: ringPulse 2.4s ease-in-out infinite;
}
@keyframes ringPulse { 0%, 100% { stroke-dashoffset: 96; } 50% { stroke-dashoffset: 72; } }
.gen-ring .ring-core {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 26px; color: var(--primary);
}
.gen-ring .ring-core i { animation: spinSlow 3.2s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.gen-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.gen-sub { color: var(--muted); font-size: 13px; margin-top: 7px; }
.gen-steps { display: grid; gap: 0; max-width: 420px; margin: 34px auto 0; text-align: left; }
.gen-step { display: flex; align-items: flex-start; gap: 14px; position: relative; padding-bottom: 22px; }
.gen-step:last-child { padding-bottom: 0; }
.gen-step::before {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 1px;
  background: var(--line-strong);
}
.gen-step:last-child::before { display: none; }
.gs-mark {
  flex: none; width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px; border: 1.5px solid var(--line-strong);
  background: #fff; color: #a3abbf; position: relative; z-index: 1;
}
.gen-step.is-done .gs-mark { background: var(--teal); border-color: var(--teal); color: #fff; }
.gen-step.is-done::before { background: #bfe9e2; }
.gen-step.is-active .gs-mark { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px rgba(91, 91, 246, .1); }
.gen-step.is-active .gs-mark i { animation: spinSlow 2s linear infinite; }
.gs-body b { display: block; font-size: 13px; font-weight: 600; }
.gen-step:not(.is-done):not(.is-active) .gs-body b { color: #a3abbf; }
.gs-body span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.gen-note {
  margin-top: 32px; padding: 15px 18px;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); font-size: 11.5px; color: var(--muted);
  line-height: 1.7; text-align: left; display: flex; gap: 10px;
}
.gen-note i { color: var(--primary); margin-top: 3px; }
.gen-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.gen-aside { display: grid; gap: 16px; }
.receipt { padding: 22px; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 12px; border-bottom: 1px dashed var(--line); }
.receipt-row:last-of-type { border-bottom: 0; }
.receipt-row span { color: var(--muted); }
.receipt-row b { font-weight: 600; text-align: right; }
.receipt-code {
  font-family: var(--mono); font-size: 11px; background: var(--bg);
  padding: 2px 6px; border-radius: 5px; letter-spacing: .04em;
}
.state-fail { text-align: center; padding: 12px 0 4px; }
.state-fail .fail-ico {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px;
  display: grid; place-items: center; background: var(--rose-soft); color: var(--rose);
  font-size: 24px;
}
.fail-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Report ---------- */
.report-nav {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
}
.report-nav-inner { height: 64px; display: flex; align-items: center; gap: 20px; }
.report-nav-title { font-size: 13px; font-weight: 600; }
.report-nav-title span { color: var(--muted); font-weight: 400; margin-left: 8px; font-size: 11.5px; }
.report-layout { display: grid; grid-template-columns: 1fr 250px; gap: 32px; align-items: start; padding: 32px 0 80px; }
.report-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.report-toc { padding: 20px; }
.report-toc a {
  display: block; padding: 8px 10px; border-radius: 8px;
  font-size: 12.5px; color: var(--muted); border-left: 2px solid transparent;
  margin-bottom: 2px;
}
.report-toc a:hover, .report-toc a.is-active { color: var(--primary); background: var(--primary-soft); border-left-color: var(--primary); }
.report-hero {
  position: relative; overflow: hidden;
  padding: 40px 44px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #151b31 0%, #232a4d 55%, #3b2f66 100%);
  color: #fff; box-shadow: var(--shadow-md);
}
.report-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 82% 14%, rgba(139, 92, 246, .55), transparent 45%),
    radial-gradient(circle at 12% 100%, rgba(16, 181, 163, .28), transparent 45%);
  pointer-events: none;
}
.report-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
  pointer-events: none;
}
.report-hero > * { position: relative; z-index: 1; }
.report-hero .eyebrow { color: #b9b5ff; }
.report-hero .eyebrow::before { background: linear-gradient(90deg, #b9b5ff, #6ee7d8); }
.report-hero h1 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.25; letter-spacing: -.03em; margin-top: 12px; max-width: 18em; }
.report-hero .hero-summary { color: rgba(255, 255, 255, .76); font-size: 13.5px; line-height: 1.85; margin-top: 16px; max-width: 42em; }
.report-hero .hero-summary strong { color: #fff; font-weight: 600; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags span {
  padding: 5px 12px; border-radius: 999px; font-size: 11.5px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .86);
}
.report-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; font-size: 11px; color: rgba(255, 255, 255, .5); }
.report-meta b { color: rgba(255, 255, 255, .85); font-weight: 500; margin-left: 5px; }
.report-block { margin-top: 24px; padding: 32px 34px; scroll-margin-top: 88px; }
.block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.block-title { display: flex; align-items: center; gap: 11px; }
.block-num {
  font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); border-radius: 6px; padding: 4px 7px; letter-spacing: .04em;
}
.block-title h2 { font-size: 1.16rem; letter-spacing: -.02em; font-weight: 700; }
.block-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.report-grid-2 { display: grid; grid-template-columns: 1.08fr .92fr; gap: 28px; align-items: center; }
.radar-wrap { display: grid; place-items: center; padding: 4px; }
.radar-svg { width: 100%; max-width: 350px; height: auto; overflow: visible; }
.dim-list { display: grid; gap: 14px; }
.dim-row .dim-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.dim-row .dim-name { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.dim-row .dim-name i { font-size: 9px; }
.dim-row .dim-score { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); }
.dim-bar { height: 7px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.dim-bar span {
  display: block; height: 100%; border-radius: inherit;
  background: var(--gradient); width: 0;
  transition: width 1.1s var(--ease);
}
.dim-row:nth-child(2) .dim-bar span { background: linear-gradient(90deg, #10b5a3, #55d6c6); }
.dim-row:nth-child(3) .dim-bar span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.dim-row:nth-child(4) .dim-bar span { background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.dim-note { font-size: 11px; color: var(--muted); margin-top: 3px; }
.insight-box {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--surface-2); border-left: 3px solid var(--primary);
  font-size: 12.5px; color: var(--ink-3); line-height: 1.85;
}
.insight-box b { color: var(--ink); font-weight: 650; }
.direction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.direction-card { padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); }
.direction-card .dc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dc-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 13px; }
.direction-card:nth-child(2) .dc-ico { background: var(--teal-soft); color: #0a8f80; }
.direction-card:nth-child(3) .dc-ico { background: var(--amber-soft); color: #b57500; }
.direction-card h4 { font-size: 14px; font-weight: 650; margin-bottom: 4px; }
.direction-card p { font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.dc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; }
.dc-tags span { font-size: 10px; background: var(--bg); padding: 2px 7px; border-radius: 5px; color: var(--ink-3); }
.dc-score { font-family: var(--mono); font-size: 11px; color: var(--primary); font-weight: 600; }
.jobs { display: grid; gap: 14px; }
.job-card {
  position: relative; display: grid; grid-template-columns: 64px 1fr 118px;
  gap: 18px; align-items: start;
  padding: 22px 22px 22px 18px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.job-card:hover { border-color: #d7d5fb; box-shadow: var(--shadow-sm); }
.job-rank {
  display: grid; place-items: center; gap: 2px;
  width: 60px; height: 64px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.job-rank .rk-label { font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.job-rank .rk-num { font-family: var(--mono); font-size: 21px; font-weight: 700; line-height: 1; color: var(--ink); }
.job-card.is-top .job-rank { background: var(--gradient); border-color: transparent; }
.job-card.is-top .job-rank .rk-num, .job-card.is-top .job-rank .rk-label { color: #fff; }
.job-main h4 { font-size: 15.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-main .job-dir { font-size: 11px; color: var(--muted); margin-top: 2px; }
.job-reason { font-size: 12px; color: var(--ink-3); line-height: 1.75; margin-top: 10px; }
.job-reason b { color: var(--ink); font-weight: 600; }
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.job-tags span { font-size: 10.5px; background: var(--bg); color: var(--ink-3); padding: 3px 8px; border-radius: 5px; }
.job-warn {
  display: flex; gap: 7px; align-items: flex-start;
  margin-top: 10px; padding: 9px 11px; border-radius: 8px;
  background: #fffbf2; font-size: 11px; color: #8a6a22; line-height: 1.65;
}
.job-warn i { margin-top: 2px; font-size: 10px; }
.job-score { text-align: center; }
.score-ring {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 6px;
  display: grid; place-items: center;
  background: conic-gradient(var(--primary) calc(var(--score) * 1%), var(--bg-2) 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.score-ring span { position: relative; z-index: 1; font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: -.04em; }
.score-ring small { position: relative; z-index: 1; font-size: 8px; color: var(--muted); margin-top: -14px; }
.score-label { font-size: 10px; color: var(--muted); letter-spacing: .04em; }
.job-verify { font-size: 10.5px; color: var(--primary); margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }
.job-verify:hover { text-decoration: underline; }
.explore-card {
  margin-top: 16px; display: grid; grid-template-columns: 54px 1fr 100px; gap: 16px;
  align-items: center; padding: 20px 22px;
  border: 1.5px dashed #f1c974; border-radius: var(--radius-md);
  background: linear-gradient(120deg, #fffcf4, #fff9ea);
}
.explore-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; color: var(--amber); font-size: 18px;
  box-shadow: 0 6px 14px -8px rgba(180, 120, 0, .4);
}
.explore-card h4 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.explore-card p { font-size: 11.5px; color: #8a6a22; margin-top: 5px; line-height: 1.7; }
.explore-score { text-align: right; }
.explore-score b { font-family: var(--mono); font-size: 20px; display: block; color: #b57500; line-height: 1.1; }
.explore-score span { font-size: 10px; color: #a98a4a; }
.action-tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg); border-radius: 12px; width: fit-content; margin-bottom: 18px; }
.action-tab {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 9px;
  font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer;
}
.action-tab.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); font-weight: 600; }
.action-list { display: grid; gap: 10px; }
.action-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--line);
}
.action-item .ai-check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  font-size: 9px; color: transparent; cursor: pointer; margin-top: 1px;
}
.action-item.is-done .ai-check { background: var(--green); border-color: var(--green); color: #fff; }
.action-item.is-done b { text-decoration: line-through; color: var(--muted); }
.action-item b { font-size: 12.5px; font-weight: 600; display: block; }
.action-item p { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-top: 2px; }
.action-item .ai-meta { margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; padding-top: 3px; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.method-item { font-size: 12px; color: var(--muted); line-height: 1.7; display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.method-item b { color: var(--ink-2); font-weight: 600; text-align: right; }
.report-disclaimer {
  margin-top: 18px; padding: 16px 18px; border-radius: 12px;
  background: var(--bg); font-size: 11px; color: var(--muted); line-height: 1.8;
}
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pdf-note { font-size: 10.5px; color: var(--muted); margin-top: 10px; text-align: right; }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 21, 38, .46);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-mask.is-open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(480px, 100%); max-height: 88vh; overflow: auto;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 30px;
  transform: translateY(14px) scale(.98);
  transition: transform .3s var(--ease);
}
.modal.is-lg { width: min(640px, 100%); }
.modal-mask.is-open .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.modal-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.modal-sub { font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.modal-close {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; font-size: 12px;
}
.modal-close:hover { background: var(--bg-2); color: var(--ink); }
.modal-body { margin-top: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.warn-box {
  display: flex; gap: 11px; padding: 14px 15px; border-radius: 12px;
  background: var(--amber-soft); color: #8a6a22; font-size: 12px; line-height: 1.7;
}
.warn-box i { margin-top: 3px; font-size: 12px; }
.warn-box.danger { background: var(--rose-soft); color: #c92c4c; }
.warn-box.info { background: var(--primary-soft); color: var(--primary-deep); }
.summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.summary-line:last-child { border-bottom: 0; }
.summary-line span { color: var(--muted); }
.summary-line b { font-weight: 600; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: max-content; max-width: calc(100% - 40px); }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 17px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 12.5px;
  box-shadow: 0 16px 32px -14px rgba(14, 21, 38, .6);
  animation: toastIn .35s var(--ease);
}
.toast i { color: #6ee7d8; font-size: 12px; }
.toast.is-error i { color: #ff8fa3; }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Admin ---------- */
.admin-page { background: #f2f4fa; }
.admin-layout { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-side {
  position: sticky; top: 0; height: 100vh;
  background: #0f1628; color: #fff;
  padding: 26px 18px;
  display: flex; flex-direction: column; gap: 24px;
  overflow: auto;
}
.admin-side .brand-mark { background: rgba(255, 255, 255, .1); }
.admin-side .brand-name { color: #fff; font-size: 17px; white-space: nowrap; }
.admin-side .brand-sub { color: rgba(255, 255, 255, .38); white-space: nowrap; font-size: 9px; letter-spacing: .12em; }
.admin-sec-label { font-size: 10px; letter-spacing: .16em; color: rgba(255, 255, 255, .32); font-weight: 600; margin-bottom: 9px; padding-left: 10px; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav button {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: rgba(255, 255, 255, .62);
  font-family: inherit; font-size: 13px; cursor: pointer; text-align: left;
  transition: background .2s, color .2s;
}
.admin-nav button i { width: 16px; font-size: 13px; }
.admin-nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav button.is-active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; }
.admin-nav button .nav-count {
  margin-left: auto; font-size: 10px; padding: 1px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7);
  font-variant-numeric: tabular-nums;
}
.admin-side-foot { margin-top: auto; }
.admin-user {
  display: flex; align-items: center; gap: 10px;
  padding: 11px; border-radius: 12px; background: rgba(255, 255, 255, .06);
}
.admin-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--gradient); display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.admin-user b { display: block; font-size: 12px; font-weight: 600; }
.admin-user span { font-size: 10px; color: rgba(255, 255, 255, .45); }
.admin-main { min-width: 0; }
.admin-top {
  position: sticky; top: 0; z-index: 30;
  height: 64px; padding: 0 30px;
  display: flex; align-items: center; gap: 18px;
  background: rgba(242, 244, 250, .9);
  border-bottom: 1px solid #e2e6f0;
  backdrop-filter: blur(14px);
}
.admin-crumb { font-size: 12px; color: var(--muted); }
.admin-crumb b { color: var(--ink); font-weight: 600; }
.admin-top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.admin-search {
  display: flex; align-items: center; gap: 8px;
  width: 200px; height: 36px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-size: 12px;
}
.admin-search input { border: 0; outline: 0; background: transparent; width: 100%; font-family: inherit; font-size: 12px; }
.admin-bell { position: relative; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-3); cursor: pointer; }
.admin-bell::after { content: ""; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); border: 1.5px solid #fff; }
.admin-body { padding: 26px 30px 48px; }
.admin-view { display: none; }
.admin-view.is-active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: 1.35rem; letter-spacing: -.025em; font-weight: 700; }
.admin-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { position: relative; padding: 20px; overflow: hidden; }
.stat-card .sc-label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat-card .sc-label i { font-size: 10px; color: var(--primary); }
.stat-card .sc-value { font-size: 27px; font-weight: 700; letter-spacing: -.04em; margin-top: 8px; line-height: 1.1; }
.stat-card .sc-value small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.stat-card .sc-trend { margin-top: 9px; font-size: 10.5px; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.stat-card .sc-trend.down { color: var(--rose); }
.stat-card .sc-trend i { font-size: 8px; }
.sc-spark { position: absolute; right: 16px; bottom: 18px; opacity: .8; }
.admin-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-bottom: 16px; }
.admin-card { padding: 22px; min-width: 0; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.admin-card-head h3 { font-size: 13.5px; font-weight: 650; }
.admin-card-head span { font-size: 11px; color: var(--muted); }
.bar-chart { display: flex; align-items: flex-end; gap: 12px; height: 180px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar-col .bar-val { font-size: 9.5px; color: var(--muted); font-family: var(--mono); }
.bar-shape {
  width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #8b5cf6, #5b5bf6);
  position: relative; transition: height .6s var(--ease);
  min-height: 4px;
}
.bar-col.is-accent .bar-shape { background: linear-gradient(180deg, #55d6c6, #10b5a3); }
.bar-col .bar-day { font-size: 10px; color: var(--muted); }
.funnel { display: grid; gap: 10px; }
.funnel-row { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.funnel-row .f-label { width: 74px; color: var(--muted); flex: none; }
.funnel-track { flex: 1; height: 26px; border-radius: 7px; background: var(--bg); overflow: hidden; }
.funnel-fill {
  height: 100%; border-radius: 7px; display: flex; align-items: center;
  padding-left: 10px; color: #fff; font-size: 10px; font-weight: 600;
  background: var(--gradient);
}
.funnel-row:nth-child(2) .funnel-fill { background: linear-gradient(90deg, #8b5cf6, #b785f6); }
.funnel-row:nth-child(3) .funnel-fill { background: linear-gradient(90deg, #10b5a3, #55d6c6); }
.funnel-row:nth-child(4) .funnel-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.funnel-row .f-num { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-2); flex: none; }
.table-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: flex; gap: 2px; padding: 3px; background: var(--bg); border-radius: 9px; }
.seg button {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 7px;
  font-family: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer;
}
.seg button.is-active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-xs); }
.toolbar-search {
  display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 11px;
  margin-left: auto;
}
.toolbar-search input { border: 0; outline: 0; width: 130px; font-family: inherit; font-size: 11.5px; background: transparent; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; max-width: 100%; }
.table-wrap + .pager { margin-top: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 11.5px; white-space: nowrap; }
table.data th {
  text-align: left; font-weight: 500; color: var(--muted); font-size: 10.5px;
  letter-spacing: .04em; padding: 9px 10px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 11px 10px; border-bottom: 1px solid #f0f2f9; color: var(--ink-3); }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #fafbff; }
table.data td b { color: var(--ink); font-weight: 600; }
.code-cell { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--ink); }
.table-sub { display: block; font-size: 9.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.row-actions { display: flex; gap: 2px; }
.row-btn {
  width: 26px; height: 26px; border-radius: 6px; border: 0; background: transparent;
  color: var(--muted); font-size: 10px; cursor: pointer;
}
.row-btn:hover { background: var(--primary-soft); color: var(--primary); }
.row-btn.danger:hover { background: var(--rose-soft); color: var(--rose); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 11px; color: var(--muted); }
.pager-btns { display: flex; gap: 4px; }
.pager-btns button {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-3); font-size: 10px; cursor: pointer;
}
.pager-btns button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.monitor-list { display: grid; gap: 0; }
.monitor-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 11.5px; }
.monitor-row:last-child { border-bottom: 0; }
.monitor-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--green); }
.monitor-dot.is-run { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .12); }
.monitor-dot.is-fail { background: var(--rose); }
.monitor-id { font-family: var(--mono); font-size: 10px; color: var(--muted); width: 90px; flex: none; }
.monitor-name { flex: 1; }
.monitor-time { color: var(--muted); font-size: 10.5px; }
.version-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.version-row:last-child { border-bottom: 0; }
.version-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--bg); color: var(--ink-3); font-size: 12px;
}
.version-row b { font-size: 12.5px; display: block; font-weight: 600; }
.version-row span { font-size: 10.5px; color: var(--muted); }
.version-status { margin-left: auto; }
.log-filter { margin-bottom: 12px; }
.admin-side-toggle { display: none; }
.admin-overlay { display: none; }

/* ---------- Index gallery ---------- */
.gallery-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 44px;
  background: #0d1424; color: #fff;
}
.gallery-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 78% 18%, rgba(139, 92, 246, .4), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(16, 181, 163, .24), transparent 44%);
}
.gallery-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 40% 30%, #000, transparent 80%);
}
.gallery-hero .container { position: relative; z-index: 1; }
.gallery-hero .eyebrow { color: #b9b5ff; }
.gallery-hero .display { color: #fff; max-width: 17em; }
.gallery-hero .lead { color: rgba(255, 255, 255, .62); max-width: 44em; margin-top: 18px; }
.gallery-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.gallery-meta span {
  font-size: 11.5px; color: rgba(255, 255, 255, .7); padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.gallery-meta span b { color: #fff; font-weight: 600; }
.gallery-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.gallery-tools .gt-label { font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .4); }
.device-switch { display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.device-switch button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; color: rgba(255, 255, 255, .55);
  font-family: inherit; font-size: 11.5px; padding: 7px 14px; border-radius: 8px; cursor: pointer;
}
.device-switch button.is-active { background: #fff; color: var(--ink); font-weight: 600; }
.gallery-section { padding: 50px 0 70px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.preview-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.preview-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.preview-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.preview-num {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.preview-head h3 { font-size: 13.5px; font-weight: 650; }
.preview-head p { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.preview-open {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  font-size: 10.5px; font-weight: 600; color: var(--ink-3);
}
.preview-open:hover { border-color: var(--primary); color: var(--primary); }
.preview-frame { position: relative; background: #f7f9fd; height: 520px; }
.preview-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.preview-nav-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: #f1f4fa; border-bottom: 1px solid var(--line);
}
.preview-nav-bar i.dot { width: 7px; height: 7px; border-radius: 50%; background: #dbe0ec; display: inline-block; }
.preview-nav-bar .url {
  margin-left: 8px; flex: 1; height: 18px; border-radius: 5px;
  background: #fff; border: 1px solid #e8ecf5;
  display: flex; align-items: center; padding: 0 8px;
  font-size: 8.5px; color: #98a1b6; font-family: var(--mono);
}
body.device-mobile .gallery-grid { grid-template-columns: repeat(3, 1fr); }
body.device-mobile .preview-frame { height: 640px; }
body.device-mobile .preview-frame iframe { width: 390px; margin: 0 auto; background: #fff; box-shadow: 0 0 0 1px var(--line); }
  @media (max-width: 720px) {
    body.device-mobile .preview-frame iframe { width: 100%; }
  }
.rule-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.swatch .sw-color { height: 56px; }
.swatch .sw-info { padding: 6px 9px; font-size: 9.5px; color: var(--muted); background: #fff; }
.swatch .sw-info b { display: block; font-size: 10px; color: var(--ink-2); }
.type-spec { display: grid; gap: 11px; margin-top: 20px; }
.type-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.type-row .tr-preview { font-weight: 650; letter-spacing: -.02em; }
.type-row .tr-meta { font-family: var(--mono); font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.rule-cols { display: grid; gap: 28px; }
.rule-block h4 { font-size: 12px; letter-spacing: .06em; color: var(--ink); margin-bottom: 12px; }
.rule-list { display: grid; gap: 7px; font-size: 11.5px; color: var(--muted); }
.rule-list li { display: flex; gap: 8px; }
.rule-list li::before { content: "—"; color: var(--primary); }
.gallery-footer { padding: 30px 0; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-split { gap: 36px; }
  .float-a { left: -10px; }
  .float-b { right: -4px; }
  .report-layout { grid-template-columns: 1fr; }
  .report-side { position: static; grid-template-columns: 1fr 1fr; }
  .report-toc { display: none; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-side { position: static; grid-template-columns: 1fr 1fr; }
  .gen-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .body.device-mobile .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  body.device-mobile .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .container, .container-wide { width: calc(100% - 36px); }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 60px; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy .display { max-width: 20em; }
  .float-card { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .boundary-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-ghost-link { display: none; }
  .survey-layout { grid-template-columns: 1fr; }
  .survey-side {
    position: static;
    grid-template-columns: 1fr;
    order: 2;
  }
  .q-panel { padding: 30px 26px; order: 1; }
  .survey-progress { max-width: none; }
  .report-grid-2 { grid-template-columns: 1fr; }
  .direction-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; left: 0; top: 0; z-index: 60;
    width: 250px; transform: translateX(-100%);
    transition: transform .3s var(--ease);
  }
  .admin-side.is-open { transform: none; }
  .admin-side-toggle { display: inline-grid; }
  .admin-overlay.is-open {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(14, 21, 38, .4);
  }
  .admin-top { padding: 0 18px; }
  .admin-body { padding: 20px 18px 40px; }
  .gallery-grid { grid-template-columns: 1fr; }
  body.device-mobile .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rule-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-side { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container, .container-wide { width: calc(100% - 32px); }
  .display { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .section { padding: 52px 0; }
  .site-nav { height: 64px; }
  :root { --nav-h: 64px; }
  .site-nav .nav-actions .badge { display: none; }
  .admin-top { padding: 0 16px; gap: 10px; }
  .nav-actions .btn span { display: none; }
  .nav-actions .btn { padding: 0 15px; }
  .brand-name { font-size: 16.5px; }
  .access-card { padding: 26px 22px; }
  .cta-panel { padding: 28px 22px !important; }
  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-actions .btn { width: 100%; }
  .hero-meta { gap: 7px; }
  .meta-pill { height: 31px; font-size: 11.5px; padding: 0 11px; }
  .steps-grid { grid-template-columns: 1fr; }
  .boundary { padding: 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .page-head { padding: 30px 0 6px; }
  .page-body { padding: 24px 0 56px; }
  .intro-main { padding: 24px 20px; }
  .dim-grid { grid-template-columns: 1fr; }
  .survey-nav-inner { height: 60px; gap: 12px; }
  .survey-nav .brand-sub, .survey-nav .brand-name { display: none; }
  .save-state span { display: none; }
  .q-panel { padding: 24px 20px; min-height: 460px; }
  .q-foot { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
  .q-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .q-actions .btn-next { grid-column: 1 / -1; }
  .q-hint { justify-content: center; }
  .likert-option { padding: 12px 14px; }
  .likert-option .lo-label { font-size: 13px; }
  .gen-main { padding: 36px 22px; }
  .report-hero { padding: 28px 22px; }
  .report-block { padding: 24px 20px; }
  .report-side { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 46px 1fr; gap: 14px; padding: 18px; }
  .job-rank { width: 44px; height: 52px; border-radius: 11px; }
  .job-rank .rk-num { font-size: 17px; }
  .job-score { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; text-align: left; border-top: 1px dashed var(--line); padding-top: 12px; }
  .score-ring { width: 46px; height: 46px; margin: 0; }
  .score-ring span { font-size: 13px; }
  .score-ring small { display: none; }
  .explore-card { grid-template-columns: 44px 1fr; }
  .explore-score { grid-column: 1 / -1; text-align: left; padding-left: 0; }
  .modal { padding: 24px 20px; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
  .admin-search { display: none; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card .sc-value { font-size: 22px; }
  .sc-spark { display: none; }
  .admin-head h1 { font-size: 1.15rem; }
  .admin-card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .report-nav .brand-sub, .report-nav .brand-name { display: none; }
  .report-nav-title span { display: none; }
  .report-nav-inner { gap: 10px; height: 58px; }
  .report-nav-inner .btn span { display: none; }
  .report-nav-inner .btn { padding: 0 13px; }
  .gallery-hero { padding: 48px 0 34px; }
  body.device-mobile .gallery-grid { grid-template-columns: 1fr; }
  .preview-frame { height: 480px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .gallery-tools { margin-top: 26px; }
}

@media (max-width: 430px) {
  .hero-copy .display { font-size: 2rem; }
  .hero-meta { display: none; }
  .access-demo { display: none; }
  .palette { grid-template-columns: repeat(8, 1fr); }
  .q-text { font-size: 1.15rem; }
}

/* ---------- Motion / print ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn .5s var(--ease) both; }

@media (max-width: 1024px) {
  .report-nav .badge-teal { display: none; }
  .report-nav-title span { display: none; }
  .survey-nav .badge { display: none; }
}
@media (max-width: 840px) {
  .report-nav-title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-nav, .report-nav, .report-side, .site-footer, .report-actions,
  .no-print, .report-toc, .toast-wrap, .modal-mask { display: none !important; }
  body, .report-layout { background: #fff !important; }
  .report-layout { display: block; padding: 0; }
  .report-block { break-inside: avoid; border: 0; padding: 14px 0; box-shadow: none; }
  .report-hero { color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; }
}
