
    :root {
      --black: #050505;
      --ink: #111111;
      --charcoal: #222222;
      --mid: #6b6b6b;
      --line: #d8d8d8;
      --soft: #f4f4f4;
      --lighter: #fafafa;
      --white: #ffffff;
      --shadow: 0 28px 90px rgba(0,0,0,.14);
      --radius-xl: 34px;
      --radius: 22px;
      --radius-sm: 14px;
      --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--font);
      color: var(--ink);
      background:
        radial-gradient(circle at 5% 12%, rgba(0,0,0,.08), transparent 25rem),
        radial-gradient(circle at 95% 18%, rgba(0,0,0,.07), transparent 26rem),
        linear-gradient(135deg, #ffffff 0%, #ececec 52%, #f7f7f7 100%);
    }

    .logo-banner {
      width: 100%;
      background:
        radial-gradient(circle at 92% -10%, rgba(255,255,255,.18), transparent 18rem),
        linear-gradient(135deg, #000, #202020 70%, #080808);
      padding: clamp(24px, 5vw, 54px) clamp(18px, 6vw, 72px);
      border-bottom: 1px solid rgba(255,255,255,.12);
      display: grid;
      place-items: center;
      position: relative;
      overflow: hidden;
    }

    .logo-banner:after {
      content: "";
      position: absolute;
      inset: auto -90px -130px auto;
      width: 280px;
      height: 280px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 999px;
      transform: rotate(22deg);
    }

    .logo-banner img {
      width: min(100%, 920px);
      max-height: 190px;
      height: auto;
      display: block;
      position: relative;
      z-index: 1;
    }

    .page-wrap {
      width: min(980px, calc(100% - 28px));
      margin: clamp(18px, 4vw, 42px) auto 52px;
      display: grid;
      gap: 18px;
    }

    .preview-note {
      display: flex;
      align-items: center;
      gap: 10px;
      background: #111;
      color: #fff;
      border-radius: 999px;
      padding: 12px 16px;
      font-size: 14px;
      line-height: 1.3;
      box-shadow: 0 12px 36px rgba(0,0,0,.14);
      width: fit-content;
      max-width: 100%;
    }

    .form-card {
      background: rgba(255,255,255,.94);
      border: 1px solid rgba(0,0,0,.11);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      backdrop-filter: blur(6px);
    }

    .form-head {
      padding: 28px clamp(22px, 4vw, 42px) 22px;
      border-bottom: 1px solid var(--line);
      background:
        linear-gradient(135deg, rgba(0,0,0,.045), rgba(0,0,0,0)),
        #fff;
    }

    .title-row {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      justify-content: space-between;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .title-left {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      min-width: min(580px, 100%);
    }

    .title-icon {
      width: 50px;
      height: 50px;
      border-radius: 18px;
      background: #111;
      color: #fff;
      display: grid;
      place-items: center;
      box-shadow: 0 14px 30px rgba(0,0,0,.18);
      flex: 0 0 auto;
      font-size: 20px;
    }

    h1 {
      margin: 0;
      font-size: clamp(25px, 3.2vw, 39px);
      letter-spacing: -.045em;
      line-height: 1.05;
    }

    .subhead {
      margin: 8px 0 0;
      color: var(--mid);
      font-size: 15px;
      line-height: 1.45;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      background: var(--soft);
      border-radius: 999px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em;
      color: #333;
    }

    .progress-wrap { display: grid; gap: 10px; }
    .progress-meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      color: #555;
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .progress {
      height: 12px;
      background: #e9e9e9;
      border-radius: 999px;
      overflow: hidden;
      border: 1px solid #ddd;
    }

    .progress-bar {
      width: 0%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #111, #555, #111);
      transition: width .28s ease;
    }

    .section-track {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin-top: 4px;
    }

    .section-chip {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 38px;
      border: 1px solid #d7d7d7;
      border-radius: 999px;
      background: #f5f5f5;
      color: #6a6a6a;
      font-size: 12px;
      font-weight: 850;
      letter-spacing: .045em;
      text-transform: uppercase;
      transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
    }

    .section-chip.active {
      background: #111;
      border-color: #111;
      color: #fff;
      transform: translateY(-1px);
    }

    .section-chip.complete {
      background: #e8e8e8;
      border-color: #bfbfbf;
      color: #222;
    }

    form { margin: 0; }

    .step {
      display: none;
      min-height: 462px;
      padding: clamp(24px, 4.8vw, 54px);
      background:
        radial-gradient(circle at 100% 100%, rgba(0,0,0,.04), transparent 24rem),
        #fff;
    }

    .step.active { display: block; animation: fadeIn .22s ease-out; }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .kicker {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 18px;
      padding: 9px 13px;
      border-radius: 999px;
      border: 1px solid #dedede;
      background: #f3f3f3;
      color: #222;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .question {
      margin: 0 0 20px;
      font-size: clamp(26px, 4.1vw, 44px);
      line-height: .98;
      letter-spacing: -.055em;
      max-width: 820px;
    }

    .mini-question {
      margin: 0 0 14px;
      font-size: 17px;
      font-weight: 900;
      letter-spacing: -.02em;
    }

    .field-grid { display: grid; gap: 14px; max-width: 760px; }
    .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    label.input-label {
      display: grid;
      gap: 8px;
      font-size: 13px;
      font-weight: 900;
      color: #333;
      letter-spacing: .03em;
      text-transform: uppercase;
    }

    .input-wrap { position: relative; }
    .input-wrap i {
      position: absolute;
      left: 17px;
      top: 50%;
      transform: translateY(-50%);
      color: #7a7a7a;
      pointer-events: none;
    }

    input[type="text"], input[type="email"], input[type="tel"], select, textarea {
      width: 100%;
      border: 1.5px solid #cfcfcf;
      background: #fff;
      color: #111;
      border-radius: 18px;
      min-height: 56px;
      padding: 15px 16px;
      font-size: 16px;
      font-family: inherit;
      outline: none;
      transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    }

    .input-wrap input { padding-left: 47px; }
    textarea { min-height: 156px; resize: vertical; line-height: 1.45; }
    input:focus, select:focus, textarea:focus {
      border-color: #111;
      box-shadow: 0 0 0 5px rgba(0,0,0,.08);
    }

    .options { display: grid; gap: 12px; max-width: 860px; }
    .options.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .option-card {
      display: flex;
      gap: 13px;
      align-items: flex-start;
      width: 100%;
      border: 1.5px solid #d6d6d6;
      border-radius: 20px;
      padding: 17px 18px;
      cursor: pointer;
      background: #fff;
      color: #111;
      text-align: left;
      transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
      min-height: 62px;
    }

    .option-card:hover {
      transform: translateY(-1px);
      border-color: #aaa;
      box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

    .option-card input { position: absolute; opacity: 0; pointer-events: none; }
    .option-card .option-icon {
      width: 34px;
      height: 34px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: #f1f1f1;
      color: #111;
      flex: 0 0 auto;
      border: 1px solid #dedede;
    }
    .option-card .option-text { display: grid; gap: 3px; }
    .option-card strong { font-size: 16px; line-height: 1.25; }
    .option-card small { color: #666; line-height: 1.35; font-size: 13px; }
    .option-card:has(input:checked) {
      border-color: #111;
      background: #111;
      color: #fff;
      box-shadow: 0 18px 38px rgba(0,0,0,.18);
    }
    .option-card:has(input:checked) small { color: rgba(255,255,255,.72); }
    .option-card:has(input:checked) .option-icon {
      background: #fff;
      color: #111;
      border-color: #fff;
    }

    .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 880px; }
    .check-card { min-height: 70px; }

    .rating-scale {
      display: grid;
      grid-template-columns: repeat(10, minmax(0, 1fr));
      gap: 9px;
      max-width: 870px;
      margin-top: 10px;
    }
    .rating-button {
      border: 1.5px solid #d6d6d6;
      background: #fff;
      border-radius: 18px;
      padding: 12px 6px;
      min-height: 86px;
      cursor: pointer;
      display: grid;
      place-items: center;
      gap: 5px;
      font-weight: 900;
      color: #222;
      transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
    }
    .rating-button:hover { transform: translateY(-1px); border-color: #999; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
    .rating-button i { font-size: 24px; }
    .rating-button span { font-size: 15px; }
    .rating-button.active { background: #111; color: #fff; border-color: #111; box-shadow: 0 18px 38px rgba(0,0,0,.18); }
    .rating-ends { display: flex; justify-content: space-between; max-width: 870px; color: #777; font-size: 13px; font-weight: 800; margin-top: 12px; }

    .celebration {
      text-align: center;
      display: grid;
      place-items: center;
      min-height: 462px;
      padding: clamp(24px, 4.8vw, 54px);
      background:
        radial-gradient(circle at 20% 20%, rgba(0,0,0,.055), transparent 16rem),
        radial-gradient(circle at 82% 15%, rgba(0,0,0,.045), transparent 18rem),
        #fff;
    }
    .celebration-inner { max-width: 650px; display: grid; justify-items: center; gap: 18px; }
    .celebration-icon {
      width: 96px;
      height: 96px;
      border-radius: 32px;
      background: #111;
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 42px;
      box-shadow: 0 22px 52px rgba(0,0,0,.18);
      transform: rotate(-2deg);
    }
    .celebration h2 {
      margin: 0;
      font-size: clamp(34px, 5vw, 58px);
      line-height: .95;
      letter-spacing: -.06em;
    }
    .celebration p { margin: 0; color: #555; font-size: 18px; line-height: 1.45; }

    .actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-top: 28px;
      flex-wrap: wrap;
    }
    .actions-left, .actions-right { display: flex; gap: 10px; flex-wrap: wrap; }

    button { font-family: inherit; }
    .btn {
      border: 0;
      border-radius: 999px;
      min-height: 50px;
      padding: 0 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      font-weight: 900;
      cursor: pointer;
      transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
      font-size: 15px;
    }
    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: #111; color: #fff; box-shadow: 0 14px 32px rgba(0,0,0,.18); }
    .btn-primary:hover { background: #000; }
    .btn-ghost { background: #f1f1f1; color: #111; border: 1px solid #dedede; }
    .btn-skip { background: transparent; color: #555; border: 1px dashed #bbb; }
    .btn-skip:hover { background: #f6f6f6; color: #111; }

    .error {
      display: none;
      margin-top: 16px;
      padding: 12px 14px;
      border-radius: 14px;
      color: #7a170d;
      background: #fff0ed;
      border: 1px solid #ffd0c7;
      font-weight: 800;
    }
    .error.show { display: block; }

    .conditional-note {
      display: none;
      border: 1px solid #dedede;
      background: #f7f7f7;
      color: #333;
      border-radius: 18px;
      padding: 14px 16px;
      margin-top: 14px;
      font-weight: 800;
    }

    .review-grid { display: grid; gap: 12px; }
    .review-item {
      display: grid;
      gap: 5px;
      border: 1px solid #dedede;
      border-radius: 18px;
      padding: 14px 16px;
      background: #fafafa;
    }
    .review-item strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
    .review-item span { font-size: 16px; line-height: 1.35; color: #111; white-space: pre-wrap; }


    .consent-box {
      display: grid;
      grid-template-columns: 24px 1fr;
      gap: 14px;
      align-items: start;
      margin-top: 22px;
      padding: 18px;
      border: 1px solid #cfcfcf;
      border-radius: 22px;
      background:
        linear-gradient(135deg, rgba(0,0,0,.04), transparent),
        #f7f7f7;
    }
    .consent-box input[type="checkbox"] {
      width: 20px;
      height: 20px;
      margin-top: 2px;
      accent-color: #111;
      cursor: pointer;
    }
    .consent-copy {
      display: grid;
      gap: 7px;
      font-size: 14px;
      line-height: 1.45;
      color: #222;
    }
    .consent-copy strong {
      font-size: 13px;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: #111;
    }
    .consent-copy a { color: #111; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
    .success-card {
      background: rgba(255,255,255,.96);
      border: 1px solid rgba(0,0,0,.11);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow);
      padding: clamp(32px, 6vw, 58px);
      text-align: center;
      overflow: hidden;
      position: relative;
    }
    .success-card:before {
      content: "";
      position: absolute;
      inset: -120px auto auto -120px;
      width: 260px;
      height: 260px;
      border-radius: 999px;
      background: rgba(0,0,0,.06);
    }
    .success-icon {
      width: 82px;
      height: 82px;
      margin: 0 auto 20px;
      border-radius: 28px;
      background: #111;
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 34px;
      box-shadow: 0 20px 48px rgba(0,0,0,.18);
      position: relative;
      z-index: 1;
    }
    .success-card h2 {
      margin: 0 0 14px;
      font-size: clamp(34px, 5vw, 58px);
      line-height: .95;
      letter-spacing: -.06em;
      position: relative;
      z-index: 1;
    }
    .success-card p {
      margin: 0 auto;
      max-width: 720px;
      color: #333;
      font-size: clamp(17px, 2vw, 20px);
      line-height: 1.55;
      position: relative;
      z-index: 1;
    }
    .success-card .note-line {
      margin-top: 18px;
      color: #666;
      font-size: 15px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
    }


    /* Visibility guard: milestone/celebration screens should never appear until active. */
    .step:not(.active) { display: none !important; }
    .step.active:not(.celebration) { display: block !important; }
    .step.active.celebration { display: grid !important; }

    .hidden { display: none !important; }

    @media (max-width: 760px) {
      .page-wrap { width: min(100% - 18px, 980px); margin-top: 12px; }
      .preview-note { border-radius: 18px; align-items: flex-start; }
      .title-row { gap: 12px; }
      .pill { width: 100%; justify-content: center; }
      .step { min-height: 500px; }
      .two-col, .options.compact, .checks { grid-template-columns: 1fr; }
      .rating-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
      .section-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .section-chip { font-size: 11px; min-height: 34px; }
      .question { font-size: clamp(28px, 8.5vw, 40px); }
      .actions { align-items: stretch; }
      .actions-left, .actions-right { width: 100%; }
      .btn { flex: 1; }
      .logo-banner img { max-height: 130px; }
    }
  

/* AVW applicant dashboard */
.avw-dashboard-shell { font-family: var(--font); color: var(--ink); background: linear-gradient(135deg,#fff,#eeeeee); min-height: 100vh; }
.avw-dashboard-wrap { width: min(1120px, calc(100% - 26px)); margin: 22px auto 54px; display: grid; gap: 18px; }
.avw-dashboard-card { background: rgba(255,255,255,.96); border: 1px solid rgba(0,0,0,.12); border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; }
.avw-dashboard-head { padding: 24px; background: #fff; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.avw-dashboard-title { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.avw-dashboard-title h1 { margin: 0; font-size: clamp(26px,4vw,46px); letter-spacing: -.04em; }
.avw-dashboard-title p { margin: 6px 0 0; color: var(--mid); }
.avw-detail-heading { display: flex; align-items: center; gap: 14px; }
.avw-dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.avw-sort-btn { display:inline-flex; align-items:center; gap:8px; border:1px solid #111; color:#111; background:#fff; border-radius:999px; padding:10px 14px; text-decoration:none; font-weight:800; font-size:14px; }
.avw-sort-btn.active, .avw-sort-btn:hover { background:#111; color:#fff; }
.avw-applicant-list { display:grid; gap:0; }
.avw-applicant-row { display:grid; grid-template-columns: minmax(220px,1.35fr) 86px minmax(150px,.85fr) minmax(180px,1fr) 150px; gap:14px; align-items:center; padding:18px 24px; border-bottom:1px solid var(--line); }
.avw-applicant-row:last-child { border-bottom:0; }
.avw-applicant-name { font-size:18px; font-weight:900; color:#111; text-decoration:none; display:flex; align-items:center; gap:10px; min-width: 0; }
.avw-applicant-name:hover { text-decoration:underline; }
.avw-score-pill { justify-self:start; min-width:64px; text-align:center; background:#111; color:#fff; border-radius:999px; padding:9px 12px; font-weight:900; }
.avw-tier { color:#555; font-weight:800; font-size:14px; }
.avw-source-pill { display:inline-flex; align-items:center; gap:7px; justify-content:center; border:1px solid var(--line); background:#f6f6f6; color:#222; border-radius:999px; padding:8px 11px; font-weight:900; font-size:13px; width:max-content; max-width:100%; }
.avw-mobile-meta { display:none; color:#666; font-size:13px; margin-top:5px; }
.avw-sms-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:48px; background:#111; color:#fff!important; text-decoration:none; border-radius:16px; font-weight:900; box-shadow:0 10px 24px rgba(0,0,0,.18); }
.avw-sms-btn:hover { transform: translateY(-1px); }
.avw-detail-grid { display:grid; grid-template-columns: 1fr 1fr; gap:14px; padding:24px; }
.avw-detail-box { border:1px solid var(--line); background:#fff; border-radius:20px; padding:16px; overflow-wrap:anywhere; }
.avw-detail-box strong { display:block; margin-bottom:8px; }
.avw-detail-box.full { grid-column:1/-1; }
.avw-back-link { color:#111; font-weight:900; text-decoration:none; }
.avw-locked { padding:28px; text-align:center; }
.avw-locked i { font-size:38px; margin-bottom:12px; }
.avw-empty { padding:28px; color:#666; }
@media (max-width: 780px) {
  .avw-dashboard-wrap { width: min(100% - 20px, 640px); margin-top: 14px; }
  .avw-dashboard-head { padding: 18px; }
  .avw-dashboard-actions { display:grid; grid-template-columns:1fr 1fr; }
  .avw-sort-btn { justify-content:center; }
  .avw-applicant-row { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .avw-score-pill { position:absolute; right:18px; top:18px; }
  .avw-applicant-row { position:relative; padding-right:92px; }
  .avw-tier, .avw-source-pill { display:none; }
  .avw-mobile-meta { display:block; margin-left:54px; }
  .avw-sms-btn { grid-column:1/-1; width: calc(100% + 74px); margin-top:4px; }
  .avw-detail-grid { grid-template-columns:1fr; padding:18px; }
  .avw-detail-heading { align-items:flex-start; }
}
