    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
    }

    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }

    .shell {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 280px minmax(0, 1fr);
    }

    aside {
      position: sticky;
      top: 0;
      height: 100vh;
      padding: 24px;
      border-right: 1px solid var(--line);
      background: rgba(255,255,255,.72);
      backdrop-filter: blur(18px);
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .mark {
      width: 40px;
      height: 40px;
      border: 1px solid var(--ink);
      display: grid;
      place-items: center;
      background: var(--rose);
      color: var(--white);
      font-weight: 900;
      letter-spacing: 0;
    }

    .brand strong { display: block; font-size: 15px; line-height: 1.05; }
    .brand span { color: var(--muted); font-size: 12px; }

    .price {
      padding: 14px;
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
    }

    .price small {
      display: block;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .price b { font-size: 26px; }


    .aside-foot {
      margin-top: auto;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    main {
      padding: 28px;
    }

    .topbar {
      max-width: 1120px;
      margin: 0 auto 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .progress {
      flex: 1;
      max-width: 540px;
      height: 8px;
      background: rgba(23,23,23,.1);
      border-radius: 999px;
      overflow: hidden;
    }

    .progress > span {
      display: block;
      height: 100%;
      width: 12%;
      background: linear-gradient(90deg, var(--rose), var(--hot), var(--gold));
      transition: width .25s ease;
    }

    .topbar-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .pill {
      min-height: 36px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,.76);
      border-radius: 999px;
      padding: 8px 12px;
      color: var(--muted);
      font-size: 13px;
    }

    .screen {
      display: none;
      max-width: 1120px;
      margin: 0 auto;
      animation: enter .28s cubic-bezier(.2,.8,.2,1);
    }

    .screen.active { display: block; }

    @keyframes enter {
      from { opacity: 0; transform: translateY(10px) scale(.99); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @media (prefers-reduced-motion: reduce) {
      .screen { animation: none; }
    }

    .panel {
      background: rgba(255,255,255,.82);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
      min-height: 680px;
    }

    .hero-copy {
      padding: clamp(28px, 5vw, 64px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 24px;
    }

    .eyebrow {
      color: var(--rose);
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: 12px;
      font-weight: 900;
    }

    h1, h2, h3, p { margin: 0; }
    h1 {
      font-size: clamp(42px, 7vw, 82px);
      line-height: .9;
      letter-spacing: 0;
      max-width: 760px;
    }

    h2 {
      font-size: clamp(28px, 4vw, 48px);
      line-height: 1;
      letter-spacing: 0;
    }

    h3 {
      font-size: 18px;
      line-height: 1.15;
      letter-spacing: 0;
    }

    .lead {
      max-width: 620px;
      color: #3f3937;
      font-size: clamp(17px, 2vw, 21px);
      line-height: 1.45;
    }

    .cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .btn {
      min-height: 44px;
      border: 1px solid var(--ink);
      background: var(--rose);
      color: var(--white);
      border-radius: var(--radius);
      padding: 12px 16px;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      text-decoration: none;
    }

    .btn.secondary {
      background: var(--white);
      color: var(--ink);
    }

    .btn.ghost {
      border-color: var(--line);
      background: transparent;
      color: var(--ink);
    }

    .btn.lime {
      background: var(--white);
      color: var(--rose);
    }

    .visual {
      min-height: 100%;
      background: #2a0718;
      color: var(--white);
      position: relative;
      overflow: hidden;
      display: grid;
      align-items: end;
      padding: 0;
    }

    .visual::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(115deg, rgba(42,7,24,.82), rgba(138,15,61,.35)),
        linear-gradient(0deg, rgba(42,7,24,.88) 0%, rgba(42,7,24,.24) 45%, rgba(42,7,24,.62) 100%);
      filter: saturate(1.15);
      z-index: 1;
      pointer-events: none;
    }

    .visual::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(110deg, transparent 0 18%, rgba(255,255,255,.13) 19% 20%, transparent 21% 100%),
        linear-gradient(74deg, transparent 0 64%, rgba(255,255,255,.1) 65% 66%, transparent 67% 100%);
      mix-blend-mode: screen;
      animation: cameraSweep 5s linear infinite;
      opacity: .48;
      z-index: 2;
      pointer-events: none;
    }

    .hero-video {
      width: 100%;
      height: 100%;
      min-height: 560px;
      object-fit: cover;
      display: block;
      filter: saturate(1.12) contrast(1.08);
    }

    .video-panel {
      position: absolute;
      left: 28px;
      right: 28px;
      bottom: 28px;
      z-index: 3;
      border: 1px solid rgba(255,255,255,.22);
      background: rgba(42,7,24,.58);
      backdrop-filter: blur(14px);
      border-radius: var(--radius);
      padding: 22px;
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 18px;
    }

    .video-panel b {
      display: block;
      font-size: clamp(34px, 5vw, 62px);
      line-height: .9;
      margin-top: 8px;
    }

    @keyframes stageLight {
      from { transform: scale(1); filter: hue-rotate(0deg) saturate(1.15); }
      to { transform: scale(1.06); filter: hue-rotate(-10deg) saturate(1.35); }
    }

    @keyframes cameraSweep {
      from { transform: translateX(-9%); }
      to { transform: translateX(9%); }
    }

    .poster {
      position: relative;
      min-height: 500px;
      border: 1px solid rgba(255,255,255,.22);
      background:
        radial-gradient(circle at 50% 16%, rgba(255,255,255,.45), transparent 16%),
        linear-gradient(135deg, transparent 0 42%, rgba(255,255,255,.18) 42% 43%, transparent 43%),
        linear-gradient(35deg, #2a0718 0%, #8a0f3d 52%, #ff8eb9 100%);
      border-radius: var(--radius);
      overflow: hidden;
      display: grid;
      grid-template-rows: 1fr auto;
      animation: liveFrame 4.5s ease-in-out infinite alternate;
    }

    @keyframes liveFrame {
      from { transform: translateY(0) scale(1); }
      to { transform: translateY(-8px) scale(1.012); }
    }

    .poster::before {
      content: "";
      position: absolute;
      left: 16%;
      right: 16%;
      bottom: 24%;
      height: 48%;
      background:
        linear-gradient(#f4d4bd, #b56458);
      clip-path: polygon(48% 0, 62% 9%, 70% 26%, 67% 48%, 82% 63%, 88% 100%, 12% 100%, 18% 62%, 31% 48%, 28% 27%, 35% 9%);
      opacity: .88;
      z-index: 1;
    }

    .poster::after {
      content: "";
      position: absolute;
      left: 24%;
      right: 24%;
      bottom: 59%;
      height: 20%;
      background: #121212;
      border-radius: 52% 52% 42% 42%;
      transform: rotate(-5deg);
      z-index: 2;
    }

    .poster-caption {
      position: relative;
      z-index: 3;
      padding: 22px;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      align-items: end;
      background: linear-gradient(transparent, rgba(0,0,0,.7));
    }

    .poster-caption b {
      display: block;
      font-size: 34px;
      line-height: .92;
    }

    .score-badge {
      width: 104px;
      height: 104px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.34);
      display: grid;
      place-items: center;
      text-align: center;
      background: rgba(0,0,0,.34);
      backdrop-filter: blur(16px);
      flex: 0 0 auto;
    }

    .score-badge strong { font-size: 28px; }
    .score-badge span { font-size: 11px; color: rgba(255,255,255,.76); }

    .artist-photo {
      width: 132px;
      height: 132px;
      border-radius: 999px;
      border: 4px solid var(--white);
      background:
        radial-gradient(circle at 52% 24%, #ffd7c9 0 17%, transparent 18%),
        radial-gradient(circle at 50% 18%, #271018 0 22%, transparent 23%),
        linear-gradient(140deg, #8a0f3d, #ff8eb9);
      box-shadow: 0 16px 34px rgba(42,7,24,.26);
      position: relative;
      overflow: hidden;
      flex: 0 0 auto;
    }

    .artist-photo::before {
      content: "";
      position: absolute;
      left: 28%;
      right: 28%;
      top: 19%;
      height: 28%;
      background: #2a0718;
      border-radius: 50% 50% 42% 42%;
    }

    .artist-photo::after {
      content: "";
      position: absolute;
      left: 25%;
      right: 25%;
      bottom: 0;
      height: 54%;
      background: linear-gradient(#ffd4c2 0 34%, #2a0718 35% 100%);
      clip-path: polygon(50% 0, 70% 10%, 78% 36%, 66% 52%, 84% 100%, 16% 100%, 34% 52%, 22% 36%, 30% 10%);
    }

    .artist-photo.small {
      width: 74px;
      height: 74px;
      border-width: 3px;
    }

    .artist-photo.has-photo {
      background-size: cover;
      background-position: center;
    }

    .artist-photo.has-photo::before,
    .artist-photo.has-photo::after {
      display: none;
    }

    .photo-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .file-input {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .photo-file-name {
      color: var(--muted);
      font-size: 12px;
    }

    .metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      max-width: 720px;
    }

    .metric {
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
      padding: 14px;
    }

    .metric b { display: block; font-size: 22px; }
    .metric span { color: var(--muted); font-size: 13px; }

    .content {
      padding: clamp(22px, 4vw, 40px);
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 16px;
      margin-bottom: 24px;
    }

    .section-head p {
      color: var(--muted);
      line-height: 1.5;
      max-width: 620px;
    }

    .grid {
      display: grid;
      gap: 14px;
    }

    .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    label {
      display: grid;
      gap: 7px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
    }

    input, select, textarea {
      width: 100%;
      min-height: 46px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 12px;
      background: var(--white);
      color: var(--ink);
      outline: none;
    }

    textarea { min-height: 116px; resize: vertical; }
    input:focus, select:focus, textarea:focus {
      border-color: var(--ink);
      box-shadow: 0 0 0 3px rgba(200,245,96,.55);
    }

    .choice {
      min-height: 92px;
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
      padding: 14px;
      text-align: left;
      display: grid;
      gap: 6px;
      box-shadow: var(--shadow-soft);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .choice:hover {
      transform: translateY(-1px);
      border-color: var(--rose-2);
    }

    .choice.selected {
      border-color: var(--rose);
      background: var(--blush);
      box-shadow: inset 0 0 0 1px var(--rose);
    }

    .choice b { font-size: 15px; }
    .choice span { color: var(--muted); font-size: 13px; line-height: 1.35; }

    .question-stack {
      display: grid;
      gap: 14px;
    }

    .question-card {
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
      padding: 16px;
      display: grid;
      gap: 12px;
    }

    .question-card header {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 16px;
    }

    .question-card header span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    .prompt {
      color: #312c2a;
      line-height: 1.42;
      font-size: 16px;
      font-weight: 750;
    }

    .helper {
      color: var(--muted);
      line-height: 1.42;
      font-size: 13px;
    }

    .mini-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .explain-box {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fffdf8;
      padding: 16px;
      display: grid;
      gap: 10px;
    }

    .explain-box ul {
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      line-height: 1.5;
      font-size: 14px;
    }

    .market-table {
      display: grid;
      gap: 10px;
    }

    .market-row {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 12px;
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
      padding: 14px;
    }

    .market-row b { color: var(--ink); }

    .market-row p {
      color: var(--muted);
      line-height: 1.45;
      font-size: 14px;
    }

    .benchmark-table {
      display: grid;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--white);
    }

    .benchmark-row {
      display: grid;
      grid-template-columns: 1.1fr repeat(4, minmax(95px, .75fr));
      gap: 0;
      border-bottom: 1px solid var(--line);
      align-items: stretch;
    }

    .benchmark-row:last-child { border-bottom: 0; }

    .benchmark-row > div {
      padding: 12px;
      display: grid;
      align-content: center;
      gap: 3px;
      min-height: 58px;
      border-right: 1px solid var(--line);
    }

    .benchmark-row > div:last-child { border-right: 0; }
    .benchmark-row.head {
      background: var(--rose);
      color: var(--white);
      font-weight: 900;
      font-size: 13px;
    }
    .benchmark-row:not(.head) b { font-size: 14px; }
    .benchmark-row span { color: var(--muted); font-size: 12px; }
    .benchmark-row.head span { color: rgba(255,255,255,.72); }

    .footer-actions {
      margin-top: 24px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .platform-list {
      display: grid;
      gap: 10px;
    }

    .platform-row {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr) 92px;
      gap: 10px;
      align-items: center;
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
      padding: 10px;
    }

    .platform-name {
      font-weight: 800;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .status {
      min-height: 30px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-size: 12px;
      font-weight: 800;
      background: #f1eee9;
      color: var(--muted);
    }

    .upload-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .upload {
      min-height: 134px;
      border: 1px dashed #bdb3aa;
      background: rgba(255,255,255,.7);
      border-radius: var(--radius);
      padding: 14px;
      display: grid;
      align-content: space-between;
      gap: 10px;
    }

    .upload b { font-size: 15px; }
    .upload span { color: var(--muted); font-size: 13px; }

    .processing {
      min-height: 620px;
      display: grid;
      place-items: center;
      text-align: center;
      gap: 22px;
    }

    .waiting-brand {
      display: flex;
      justify-content: center;
    }

    .waiting-logo {
      width: 160px;
      height: auto;
      display: block;
    }

    .pulse {
      width: 164px;
      height: 164px;
      border-radius: 999px;
      background:
        conic-gradient(var(--rose) 0 24%, var(--gold) 24% 48%, var(--lime) 48% 78%, var(--cyan) 78% 100%);
      display: grid;
      place-items: center;
      animation: spin 1.4s linear infinite;
    }

    .pulse::after {
      content: "RX";
      width: 122px;
      height: 122px;
      border-radius: 999px;
      background: var(--paper);
      display: grid;
      place-items: center;
      font-size: 30px;
      font-weight: 900;
      color: var(--ink);
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .diagnosis-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      text-align: center;
      margin-top: 20px;
      padding: 28px 20px;
      border-radius: var(--radius);
      background: var(--blush);
      border: 1px solid var(--line);
    }
    .diagnosis-loading[hidden] { display: none; }
    .diagnosis-loading .mini-spinner {
      width: 40px;
      height: 40px;
      border-radius: 999px;
      border: 4px solid var(--line);
      border-top-color: var(--rose-2);
      animation: spin 0.9s linear infinite;
    }
    .diagnosis-loading strong { color: var(--rose); font-size: 16px; }
    .diagnosis-loading span { color: var(--muted); font-size: 13px; }

    .analysis-art {
      width: min(520px, 100%);
      aspect-ratio: 1.4;
      position: relative;
      margin: 0 auto;
      border-radius: var(--radius);
      overflow: hidden;
      background:
        radial-gradient(circle at 50% 42%, rgba(255,255,255,.34), transparent 12%),
        linear-gradient(135deg, #2a0718, #8a0f3d 52%, #ff8eb9);
      border: 1px solid rgba(255,255,255,.44);
      box-shadow: var(--shadow);
    }

    .analysis-art::before,
    .analysis-art::after {
      content: "";
      position: absolute;
      inset: 0;
    }

    .analysis-art::before {
      background:
        linear-gradient(100deg, transparent 0 18%, rgba(255,255,255,.38) 19% 20%, transparent 21%),
        linear-gradient(74deg, transparent 0 58%, rgba(255,255,255,.2) 59% 60%, transparent 61%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 2px, transparent 2px 18px);
      animation: cameraSweep 3.8s linear infinite;
      mix-blend-mode: screen;
    }

    .analysis-art::after {
      width: 34%;
      height: 58%;
      left: 33%;
      top: 22%;
      border-radius: 45% 45% 10% 10%;
      background:
        radial-gradient(circle at 50% 13%, #161014 0 16%, transparent 17%),
        linear-gradient(#ffd3c2 0 35%, #8a0f3d 36% 100%);
      clip-path: polygon(50% 0, 67% 12%, 72% 36%, 64% 48%, 78% 100%, 22% 100%, 36% 48%, 28% 36%, 33% 12%);
      animation: liveFrame 1.6s ease-in-out infinite alternate;
    }

    .analysis-steps {
      display: grid;
      gap: 10px;
      width: min(520px, 100%);
      margin: 0 auto;
    }

    .analysis-step {
      border: 1px solid var(--line);
      background: rgba(255,255,255,.78);
      border-radius: var(--radius);
      padding: 12px 14px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 14px;
    }

    .analysis-step b { color: var(--ink); }

    .result-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
      gap: 18px;
    }

    .result-layout.single {
      grid-template-columns: 1fr;
    }

    .payment-photo-card {
      display: flex;
      flex-direction: column;
      align-self: start;
      border-radius: var(--radius);
      overflow: hidden;
      background: #fff;
      box-shadow: var(--shadow);
      border: 1px solid rgba(239,229,234,.95);
      position: sticky;
      top: 24px;
    }

    .payment-photo {
      width: 100%;
      height: 320px;
      object-fit: cover;
      object-position: top center;
      display: block;
      background: linear-gradient(160deg, #4a0a6e 0%, #7a0d5e 55%, #9d1649 100%);
    }

    .payment-photo-info {
      padding: 26px 28px;
      display: grid;
      gap: 12px;
    }

    .payment-photo-info h2 {
      font-size: clamp(28px, 2.8vw, 36px);
    }

    .payment-photo-info .lead {
      font-size: 15px;
      line-height: 1.5;
      max-width: none;
    }

    .summary-band {
      background: var(--ink);
      color: var(--white);
      padding: clamp(24px, 4vw, 40px);
      border-radius: var(--radius);
      display: grid;
      gap: 22px;
      min-height: 380px;
    }

    .score-ring {
      width: min(100%, 270px);
      aspect-ratio: 1;
      border-radius: 999px;
      background:
        conic-gradient(#ff1490 0 var(--score-pct, 68.2%), #7f5cff var(--score-pct, 68.2%) calc(var(--score-pct, 68.2%) + 8%), rgba(42,7,24,.1) calc(var(--score-pct, 68.2%) + 8%) 100%);
      display: grid;
      place-items: center;
      margin: 0 auto;
      box-shadow: 0 24px 70px rgba(255,20,144,.22);
    }

    .score-inner {
      width: 72%;
      height: 72%;
      border-radius: 999px;
      background: var(--ink);
      display: grid;
      place-items: center;
      text-align: center;
      border: 1px solid rgba(255,255,255,.16);
    }

    .score-inner b { font-size: 56px; line-height: .9; }
    .score-inner span { color: rgba(255,255,255,.7); }

    .diagnosis-list {
      display: grid;
      gap: 10px;
    }

    .score-row {
      display: grid;
      grid-template-columns: 132px minmax(0, 1fr) 44px;
      align-items: center;
      gap: 10px;
      padding: 10px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

    .bar {
      height: 9px;
      background: #ede7df;
      border-radius: 999px;
      overflow: hidden;
    }

    .bar span {
      display: block;
      height: 100%;
      width: var(--w);
      background: var(--rose);
      border-radius: inherit;
    }

    .bar.lime span { background: var(--lime); }
    .bar.gold span { background: var(--gold); }
    .bar.cyan span { background: var(--cyan); }

    .insight {
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
      padding: 16px;
      display: grid;
      gap: 8px;
    }

    .insight p {
      color: var(--muted);
      line-height: 1.45;
      font-size: 14px;
    }

    .tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tag {
      border: 1px solid var(--line);
      background: #f8f4ee;
      border-radius: 999px;
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 800;
      color: #4c4643;
    }

    .timeline {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .timebox {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 16px;
      min-height: 174px;
    }

    .timebox b { display: block; margin-bottom: 10px; }
    .timebox ul {
      margin: 0;
      padding-left: 17px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.5;
    }

    .recommendation {
      border: 1px solid rgba(135,17,62,.16);
      background: linear-gradient(180deg, #fff, #fff7fb);
      color: var(--ink);
      border-radius: var(--radius);
      padding: 18px;
      display: grid;
      gap: 10px;
      box-shadow: 0 24px 60px rgba(54, 12, 32, .08);
    }

    .recommendation h2 {
      color: var(--rose);
    }

    .recommendation p {
      color: #4a3340;
      line-height: 1.45;
    }

    .priority {
      width: max-content;
      background: #1f0712;
      color: var(--white);
      border-radius: 999px;
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 900;
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.42);
      display: none;
      place-items: center;
      padding: 20px;
      z-index: 10;
    }

    .modal-backdrop.open { display: grid; }

    .modal {
      width: min(620px, 100%);
      background: var(--white);
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: var(--shadow);
      display: grid;
      gap: 16px;
    }

    .modal p { color: var(--muted); line-height: 1.5; }

    @media (max-width: 960px) {
      .shell { grid-template-columns: 1fr; }
      aside {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }
      nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
      .step-link {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        font-size: 12px;
      }
      .aside-foot { display: none; }
      main { padding: 18px; }
      .hero, .result-layout, .grid.two, .grid.three, .grid.four {
        grid-template-columns: 1fr;
      }
      .hero { min-height: auto; }
      .visual { min-height: 580px; }
      .upload-grid, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .platform-row { grid-template-columns: 1fr; }
    }

    @media (max-width: 620px) {
      nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .metrics, .upload-grid, .timeline { grid-template-columns: 1fr; }
      .topbar { align-items: stretch; flex-direction: column; }
      .topbar-actions { justify-content: space-between; }
      .section-head { display: grid; }
      .poster-caption { display: grid; }
      .score-row { grid-template-columns: 1fr 1fr; }
      .score-row .bar { grid-column: 1 / -1; grid-row: 2; }
    }
    /* Premium 2026 redesign layer — rosa/roxo, CTA dourado/nude */
    :root {
      --ink: #1f0712;
      --muted: #75616a;
      --soft: #a8959e;
      --line: #efe5ea;
      --paper: #fbf8fa;
      --white: #ffffff;
      --rose: #87113e;
      --rose-2: #b71956;
      --hot: #d72166;
      --blush: #fff0f5;
      --lime: #ffffff;
      --cyan: #f7e7ee;
      --violet: #4a0a25;
      --violet-accent: #6f3fc4;
      --gold: #d8a15c;
      --gold-2: #eccb98;
      --shadow: 0 8px 24px rgba(31, 7, 18, .08);
      --shadow-soft: 0 1px 2px rgba(31, 7, 18, .05), 0 8px 20px rgba(31, 7, 18, .05);
      --radius: 14px;
      --radius-sm: 10px;
      --radius-xs: 8px;
      --max: 1360px;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    html {
      background: var(--paper);
      text-rendering: geometricPrecision;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    body {
      background:
        radial-gradient(circle at top left, rgba(135, 17, 62, .075), transparent 34%),
        linear-gradient(180deg, #fff 0%, var(--paper) 46%, #fff 100%);
      letter-spacing: 0;
      overflow-x: hidden;
    }

    button, input, select, textarea { letter-spacing: 0; }
    button { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
    button:hover { transform: translateY(-1px); }
    button:active { transform: translateY(0); }

    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
      outline: 4px solid rgba(183, 25, 86, .14);
      outline-offset: 2px;
    }

    .shell {
      grid-template-columns: 288px minmax(0, 1fr);
      background: transparent;
    }

    aside {
      padding: 28px 20px;
      border-right: 1px solid rgba(239, 229, 234, .9);
      background: rgba(255, 255, 255, .86);
      backdrop-filter: blur(26px) saturate(1.1);
      gap: 22px;
    }

    .brand {
      gap: 14px;
      padding: 4px 6px 14px;
    }

    .mark {
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 15px;
      background: linear-gradient(145deg, var(--rose), #220611);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 34px rgba(135,17,62,.2);
      font-size: 13px;
    }

    .brand strong {
      font-size: 16px;
      line-height: 1.08;
      letter-spacing: 0;
    }

    .brand span {
      color: var(--soft);
      font-size: 12px;
      font-weight: 600;
    }

    .price {
      padding: 18px;
      border: 1px solid var(--line);
      background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,240,245,.82));
      border-radius: 20px;
      box-shadow: var(--shadow-soft);
    }

    .price small {
      color: var(--muted);
      font-size: 12px;
      font-weight: 650;
    }

    .price b {
      display: block;
      margin: 8px 0 6px;
      font-size: 30px;
      letter-spacing: 0;
    }

    .aside-foot {
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255,255,255,.72);
      color: var(--soft);
    }

    main { padding: 32px; }
    .topbar, .screen { max-width: var(--max); }

    .topbar {
      margin-bottom: 24px;
      padding: 6px 2px;
    }

    .progress {
      position: relative;
      height: 6px;
      background: #eee7eb;
      box-shadow: inset 0 1px 1px rgba(31,7,18,.04);
    }

    .progress > span {
      background: linear-gradient(90deg, var(--rose), var(--rose-2));
      transition: width .38s cubic-bezier(.2,.8,.2,1);
    }

    .progress::after {
      content: "";
      position: absolute;
      inset: 0;
      background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 4px), var(--paper) calc(20% - 4px) 20%);
      pointer-events: none;
    }

    .pill {
      min-height: 38px;
      border-color: rgba(239,229,234,.9);
      background: rgba(255,255,255,.84);
      box-shadow: 0 1px 2px rgba(31,7,18,.04);
      color: var(--muted);
      font-weight: 650;
    }

    .panel {
      position: relative;
      border: 1px solid rgba(255,255,255,.6);
      border-radius: var(--radius);
      background:
        linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,240,246,.28)),
        rgba(255, 235, 243, .32);
      backdrop-filter: blur(22px) saturate(1.3);
      -webkit-backdrop-filter: blur(22px) saturate(1.3);
      box-shadow:
        0 1px 0 rgba(255,255,255,.8) inset,
        0 24px 60px rgba(183, 25, 86, .14),
        0 4px 16px rgba(31, 7, 18, .06);
      overflow: hidden;
    }

    .panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, transparent 32%);
      pointer-events: none;
    }

    .hero {
      grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
      min-height: 720px;
      background: #fff;
    }

    .hero-copy {
      padding: clamp(48px, 7vw, 84px);
      justify-content: center;
      gap: 28px;
    }

    .eyebrow {
      color: var(--rose-2);
      font-size: 12px;
      font-weight: 850;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    h1, h2, h3, p { letter-spacing: 0; }

    h1 {
      max-width: 640px;
      font-size: clamp(46px, 6vw, 78px);
      line-height: .94;
      letter-spacing: -.04em;
      color: #16040c;
    }

    h2 {
      font-size: clamp(32px, 3.4vw, 44px);
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -.025em;
      color: #16040c;
    }

    h3 {
      font-size: 20px;
      color: #16040c;
      letter-spacing: -.015em;
    }

    .lead {
      max-width: 640px;
      color: var(--muted);
      font-size: clamp(18px, 2.1vw, 22px);
      line-height: 1.45;
    }

    .cta-row { gap: 10px; }

    .btn {
      min-height: 56px;
      border: 0;
      border-radius: 12px;
      padding: 16px 26px;
      background: var(--rose-2);
      color: #fff;
      box-shadow: 0 6px 16px rgba(183, 25, 86, .22);
      font-weight: 800;
      font-size: 15px;
      white-space: nowrap;
    }

    .btn:hover {
      background: var(--rose);
      box-shadow: 0 8px 20px rgba(183, 25, 86, .26);
    }

    .btn.secondary,
    .btn.ghost {
      border: 1px solid rgba(239,229,234,.95);
      background: #fff;
      color: #1f0712;
      box-shadow: none;
    }

    .btn.secondary:hover,
    .btn.ghost:hover {
      border-color: #e5d7de;
      background: #fff8fb;
    }

    .btn.lime {
      background: linear-gradient(135deg, #1f0712, var(--rose));
      color: #fff;
    }

    .metrics {
      gap: 12px;
      margin-top: 8px;
    }

    .metric,
    .insight,
    .upload-card,
    .platform-row,
    .mini-card,
    .timeline-card,
    .plan-card,
    .persona-card,
    .service-card,
    .comparison-table {
      border: 1px solid rgba(239,229,234,.92);
      border-radius: 20px;
      background: rgba(255,255,255,.86);
      box-shadow: 0 1px 2px rgba(31,7,18,.04);
    }

    .explain-box {
      border: 0;
      border-top: 1px solid var(--line);
      border-radius: 0;
      background: none;
      box-shadow: none;
    }

    .metric { padding: 18px; }
    .metric b { font-size: 17px; letter-spacing: -.01em; }
    .metric span { color: var(--muted); line-height: 1.38; }

    .visual {
      border-left: 1px solid rgba(239,229,234,.9);
      background: #16040c;
    }

    .hero-video {
      min-height: 720px;
      filter: saturate(1.04) contrast(1.04);
    }

    .visual::before {
      background:
        linear-gradient(180deg, rgba(22,4,12,.06), rgba(22,4,12,.78)),
        linear-gradient(115deg, rgba(22,4,12,.72), rgba(135,17,62,.16));
    }

    .visual::after { display: none; }

    .video-panel {
      left: 24px;
      right: 24px;
      bottom: 24px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 24px;
      background: rgba(255,255,255,.11);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 24px 64px rgba(0,0,0,.22);
    }

    .video-panel b { letter-spacing: -.05em; }

    .score-badge {
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 14px;
      background: #fff;
      color: #1f0712;
      box-shadow: var(--shadow);
      backdrop-filter: none;
    }

    .content {
      padding: clamp(36px, 5.5vw, 72px);
    }

    .section-head {
      gap: 24px;
      margin-bottom: 34px;
      align-items: end;
    }

    .section-head p {
      color: var(--muted);
      line-height: 1.5;
      max-width: 640px;
    }

    .grid,
    .grid.two,
    .grid.three,
    .grid.four {
      gap: 22px;
    }

    label {
      color: #4a3340;
      font-size: 13px;
      font-weight: 760;
      gap: 8px;
    }

    input,
    select,
    textarea {
      min-height: 58px;
      border: 1px solid #eadde4;
      border-radius: 10px;
      background: #fff;
      color: #1f0712;
      padding: 16px 18px;
      font-size: 15px;
      box-shadow: 0 1px 1px rgba(31,7,18,.03);
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

    textarea {
      min-height: 128px;
      line-height: 1.5;
      resize: vertical;
    }

    input:hover,
    select:hover,
    textarea:hover {
      border-color: #decbd4;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: rgba(183, 25, 86, .42);
      box-shadow: 0 0 0 4px rgba(183, 25, 86, .1);
      background: #fff;
    }

    .footer-actions {
      padding-top: 26px;
      margin-top: 28px;
      border-top: 1px solid rgba(239,229,234,.82);
    }

    .tag-row { gap: 8px; }

    .tag {
      min-height: 34px;
      border: 1px solid rgba(239,229,234,.9);
      background: #fff;
      color: var(--muted);
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 750;
    }

    .upload-card,
    .insight,
    .mini-card,
    .timeline-card,
    .plan-card,
    .persona-card,
    .service-card {
      padding: 22px;
    }

    .explain-box {
      padding: 22px 0 0;
    }

    .upload-card:hover,
    .platform-row:hover,
    .insight:hover,
    .mini-card:hover,
    .plan-card:hover,
    .persona-card:hover {
      transform: translateY(-2px);
      border-color: rgba(111, 63, 196, .35);
      box-shadow: var(--shadow-soft);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .summary-band {
      border: 0;
      border-radius: var(--radius);
      background: linear-gradient(135deg, #1f0712, var(--rose-2));
      box-shadow: var(--shadow);
      padding: clamp(36px, 5vw, 64px);
    }

    .summary-band h2 {
      color: #fff;
      max-width: 760px;
    }

    .summary-band .lead { color: rgba(255,255,255,.76); }

    .summary-band .tag {
      background: rgba(255,255,255,.1);
      border-color: rgba(255,255,255,.16);
      color: rgba(255,255,255,.86);
    }

    .artist-photo {
      border-radius: 24px;
      border: 1px solid rgba(255,255,255,.24);
      box-shadow: 0 18px 42px rgba(0,0,0,.12);
    }

    .artist-photo.small { border-radius: 18px; }
    .score-ring { filter: drop-shadow(0 24px 40px rgba(135,17,62,.13)); }

    .score-inner {
      background: #fff;
      border: 1px solid rgba(239,229,234,.9);
      color: #1f0712;
    }

    .score-row {
      min-height: 52px;
      border-bottom-color: rgba(239,229,234,.82);
    }

    .bar {
      height: 9px;
      background: #f1e9ed;
    }

    .bar span {
      background: linear-gradient(90deg, #1f0712, var(--rose-2));
      box-shadow: none;
    }

    .bar.gold span,
    .bar.lime span {
      background: linear-gradient(90deg, var(--rose), #d72166);
    }

    table {
      border-spacing: 0;
      width: 100%;
    }

    th {
      color: var(--soft);
      font-size: 12px;
      font-weight: 850;
      letter-spacing: .04em;
      text-transform: uppercase;
    }

    td, th {
      padding: 14px 12px;
      border-bottom: 1px solid rgba(239,229,234,.82);
    }

    tr:last-child td { border-bottom: 0; }

    .loader-art {
      border-radius: 32px;
      box-shadow: 0 30px 80px rgba(31,7,18,.14);
    }

    .modal-card {
      border-radius: 28px;
      box-shadow: 0 30px 90px rgba(31,7,18,.22);
      border: 1px solid rgba(239,229,234,.95);
    }

    .timebox {
      border: 1px solid rgba(239,229,234,.92);
      border-radius: 22px;
      background: linear-gradient(180deg, #fff, #fff8fb);
      box-shadow: 0 1px 2px rgba(31,7,18,.04);
    }

    .timebox b {
      display: inline-flex;
      min-height: 34px;
      align-items: center;
      border-radius: 999px;
      padding: 7px 12px;
      background: #1f0712;
      color: #fff;
      font-size: 13px;
      margin-bottom: 12px;
    }

    .timebox p {
      color: var(--muted);
      line-height: 1.45;
      margin: 10px 0;
      font-size: 14px;
    }

    .timebox ul { margin-top: 12px; }

    .timebox li {
      margin-bottom: 8px;
      line-height: 1.42;
    }

    @media (max-width: 980px) {
      .shell { display: block; }

      aside {
        position: static;
        height: auto;
        padding: 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
      }

      nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow-x: auto;
        padding-bottom: 2px;
      }

      .step-link { min-width: 130px; }
      main { padding: 18px; }
      .hero { grid-template-columns: 1fr; }
      .hero-copy { padding: 42px 26px; }
      .visual { border-left: 0; min-height: 520px; }
      .hero-video { min-height: 520px; }
    }

    @media (max-width: 620px) {
      main { padding: 14px; }
      .panel { border-radius: 14px; }
      .hero-copy, .content, .summary-band { padding: 28px 20px; }
      h1 { font-size: 42px; }
      h2 { font-size: 28px; }
      .cta-row .btn, .footer-actions .btn { width: 100%; }

      .video-panel {
        left: 16px;
        right: 16px;
        bottom: 16px;
        align-items: start;
      }
    }

    .ai-home {
      position: relative;
      min-height: calc(100vh - 96px);
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 32px;
      background:
        radial-gradient(circle at 18% 8%, rgba(255, 0, 129, .26), transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(82, 74, 255, .28), transparent 28%),
        radial-gradient(circle at 50% 88%, rgba(0, 184, 255, .14), transparent 30%),
        linear-gradient(180deg, #070912 0%, #0b0d18 46%, #080812 100%);
      color: #fff;
      box-shadow: 0 40px 110px rgba(8, 8, 18, .38);
      isolation: isolate;
      background-size: 130% 130%, 135% 135%, 120% 120%, 100% 100%;
      animation: floatingHomeBg 16s ease-in-out infinite alternate;
    }

    .ai-home::before {
      content: "";
      position: absolute;
      inset: -20%;
      background:
        linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.08) 35%, transparent 36% 100%),
        radial-gradient(circle at calc(50% + var(--parallax-x, 0px)) calc(20% + var(--parallax-y, 0px)), rgba(255,255,255,.12), transparent 22%);
      opacity: .65;
      transform: translate3d(calc(var(--parallax-x, 0px) * .25), calc(var(--parallax-y, 0px) * .25), 0) scale(1.02);
      pointer-events: none;
      z-index: 0;
      animation: floatingLight 12s ease-in-out infinite alternate;
    }

    .ai-home::after {
      content: "";
      position: absolute;
      inset: -18%;
      background:
        radial-gradient(circle at 18% 14%, rgba(255, 0, 129, .22), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(116, 62, 255, .24), transparent 30%),
        radial-gradient(circle at 48% 86%, rgba(0, 184, 255, .13), transparent 32%);
      filter: blur(10px) saturate(1.1);
      opacity: .86;
      pointer-events: none;
      z-index: 0;
      mix-blend-mode: screen;
      animation: driftingAurora 18s ease-in-out infinite alternate;
    }

    .ai-home-shell {
      position: relative;
      z-index: 1;
      padding: clamp(24px, 5vw, 58px);
      display: grid;
      gap: 22px;
      animation: homeFade .7s ease both;
    }

    /* ---------- Home v2: paleta interna (rosa/roxo/laranja) ---------- */

    .home-v2 {
      position: absolute;
      inset: 0;
      z-index: 5;
      display: flex;
      flex-direction: column;
      padding: clamp(24px, 4vw, 56px);
      overflow: hidden;
      color: #fff;
      background:
        radial-gradient(circle at 12% 18%, rgba(255,140,61,.5), transparent 38%),
        radial-gradient(circle at 28% 58%, rgba(214,18,122,.42), transparent 42%),
        radial-gradient(circle at 78% 78%, rgba(120,20,200,.46), transparent 46%),
        linear-gradient(160deg, #4a0a6e 0%, #7a0d5e 55%, #b71956 100%);
    }

    .home-v2-grain {
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: .05;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    .home-v2-topline {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    .home-v2-logo {
      height: 92px;
      width: auto;
      filter: brightness(0) invert(1);
    }

    .home-v2-nav {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .home-v2-nav-link {
      display: inline-flex;
      align-items: center;
      min-height: 42px;
      padding: 0 18px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.22);
      background: rgba(255,255,255,.08);
      backdrop-filter: blur(10px);
      color: rgba(255,255,255,.82);
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      cursor: pointer;
      white-space: nowrap;
      transition: background .18s ease, border-color .18s ease, transform .18s ease;
    }

    .home-v2-nav-link:hover {
      background: rgba(255,255,255,.16);
      border-color: rgba(255,255,255,.32);
      transform: translateY(-1px);
    }

    .home-v2-nav-link-solid {
      background: #fff;
      color: #4a0a6e;
      border-color: #fff;
    }

    .home-v2-nav-link-solid:hover {
      background: #ffe9f4;
    }


    .home-v2-hero {
      position: relative;
      flex: 1;
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
      gap: clamp(28px, 4vw, 64px);
      align-items: center;
      padding-top: clamp(28px, 5vw, 64px);
    }

    .home-v2-kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .09em;
      text-transform: uppercase;
      color: #ffd9c2;
      margin-bottom: 18px;
    }

    .home-v2-kicker::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: #ff8c3d;
      box-shadow: 0 0 0 4px rgba(255,140,61,.25);
    }

    .home-v2-h1 {
      margin: 0;
      font-size: clamp(40px, 5.6vw, 74px);
      font-weight: 900;
      line-height: .98;
      letter-spacing: -.03em;
      text-wrap: balance;
      color: #fff;
    }

    .home-v2-h1 em {
      font-style: normal;
      background: linear-gradient(100deg, #ffd9c2 0%, #ff8c3d 45%, #ff5fa8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .home-v2-lede {
      margin: 22px 0 0;
      max-width: 52ch;
      font-size: clamp(16px, 1.6vw, 19px);
      line-height: 1.55;
      color: rgba(255,246,250,.82);
    }

    .home-v2-capture {
      margin-top: 34px;
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .home-v2-capture input {
      flex: 1;
      min-width: 220px;
      min-height: 56px;
      padding: 0 20px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,.22);
      background: rgba(255,255,255,.08);
      backdrop-filter: blur(10px);
      color: #fff;
      font-size: 15px;
    }

    .home-v2-capture input::placeholder { color: rgba(255,255,255,.5); }
    .home-v2-capture input:focus { outline: 2px solid #ff8c3d; outline-offset: 2px; }

    .home-v2-cta {
      min-height: 56px;
      padding: 0 28px;
      border: 0;
      border-radius: 12px;
      background: #b71956;
      color: #fff;
      font-weight: 800;
      font-size: 15px;
      cursor: pointer;
      box-shadow: 0 10px 24px rgba(183,25,86,.4);
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .home-v2-cta:hover {
      background: #d6127a;
      transform: translateY(-1px);
      box-shadow: 0 14px 30px rgba(183,25,86,.46);
    }

    .home-v2-cta:disabled,
    .home-v2-cta.disabled {
      cursor: not-allowed;
      opacity: .46;
      filter: grayscale(.35);
      box-shadow: none;
      transform: none;
      animation: none;
    }

    .home-v2-cta:not(:disabled):not(.disabled) {
      animation: home-v2-cta-pulse 2.2s ease-in-out infinite;
    }

    .home-v2-cta:not(:disabled):not(.disabled):hover {
      animation-play-state: paused;
    }

    @keyframes home-v2-cta-pulse {
      0%, 100% {
        box-shadow: 0 10px 24px rgba(183,25,86,.4), 0 0 0 0 rgba(214,18,122,.5);
      }
      50% {
        box-shadow: 0 10px 24px rgba(183,25,86,.4), 0 0 0 10px rgba(214,18,122,0);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .home-v2-cta:not(:disabled):not(.disabled) { animation: none; }
    }

    .home-v2-fineprint {
      margin-top: 14px;
      font-size: 12.5px;
      color: rgba(255,255,255,.5);
    }

    .home-v2-panel-stack {
      position: relative;
      display: grid;
      gap: 16px;
    }

    .home-v2-glass {
      position: relative;
      border-radius: 18px;
      border: 1px solid rgba(255,255,255,.18);
      background: rgba(255,255,255,.08);
      backdrop-filter: blur(18px) saturate(1.3);
      -webkit-backdrop-filter: blur(18px) saturate(1.3);
      box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 24px 50px rgba(31,7,18,.35);
      padding: 22px 24px;
    }

    .home-v2-glass-headline {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 14px;
    }

    .home-v2-glass-headline b {
      display: block;
      font-size: 34px;
      font-weight: 900;
      letter-spacing: -.02em;
    }

    .home-v2-glass-headline span {
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(255,255,255,.6);
    }

    .home-v2-ring {
      position: relative;
      width: 46px;
      height: 46px;
      border-radius: 999px;
      background: conic-gradient(#ff8c3d calc(var(--ring-pct, 76) * 1%), rgba(255,255,255,.14) calc(var(--ring-pct, 76) * 1%) 100%);
      display: grid;
      place-items: center;
      font-size: 11px;
      font-weight: 900;
    }

    .home-v2-ring::after {
      content: "";
      position: absolute;
      inset: 6px;
      border-radius: 999px;
      background: #4a0a6e;
    }

    .home-v2-ring span {
      position: relative;
      z-index: 1;
    }

    .home-v2-stat-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .home-v2-stat-row .home-v2-glass {
      padding: 16px 14px;
      text-align: center;
    }

    .home-v2-stat-row b {
      display: block;
      font-size: 22px;
      font-weight: 900;
    }

    .home-v2-stat-row span {
      font-size: 11px;
      color: rgba(255,255,255,.6);
      text-transform: uppercase;
      letter-spacing: .06em;
      font-weight: 700;
    }

    .home-v2-glass-label {
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em;
      color: rgba(255,255,255,.6);
    }

    .home-v2-glass-value {
      display: block;
      margin-top: 6px;
      font-size: 17px;
      font-weight: 800;
      transition: opacity .26s ease;
    }

    .home-v2-ticker-wrap {
      position: relative;
      width: 100%;
      margin-top: clamp(28px, 5vw, 52px);
      padding: 16px 0;
      border-top: 1px solid rgba(255,255,255,.14);
      overflow: hidden;
    }

    .home-v2-ticker {
      display: flex;
      gap: 48px;
      width: max-content;
      font-size: 12.5px;
      font-weight: 700;
      letter-spacing: .04em;
      color: rgba(255,255,255,.5);
      animation: home-v2-scroll 30s linear infinite;
    }

    .home-v2-ticker span { white-space: nowrap; }
    .home-v2-ticker span b { color: rgba(255,255,255,.82); font-weight: 700; }
    .home-v2-ticker span::after { content: "•"; margin-left: 48px; color: rgba(255,140,61,.6); }

    @keyframes home-v2-scroll {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    @media (prefers-reduced-motion: reduce) {
      .home-v2-ticker { animation: none; }
    }

    @media (max-width: 860px) {
      .home-v2-hero { grid-template-columns: 1fr; }
    }

    .home-top {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: center;
    }

    .hithub-wordmark {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 28px;
      font-weight: 900;
      letter-spacing: -.04em;
    }

    .hithub-wave {
      width: 66px;
      height: 28px;
      border-radius: 999px;
      background:
        radial-gradient(circle at 18% 50%, #ff067f 0 16%, transparent 17%),
        radial-gradient(circle at 38% 38%, #ff4aa0 0 18%, transparent 19%),
        radial-gradient(circle at 58% 58%, #8738ff 0 18%, transparent 19%),
        radial-gradient(circle at 78% 46%, #00b8ff 0 16%, transparent 17%),
        linear-gradient(90deg, #ff067f, #7a3dff, #00b8ff);
      filter: drop-shadow(0 0 18px rgba(255,0,129,.42));
      animation: pulseGlow 2.6s ease-in-out infinite alternate;
    }

    .hithub-logo-img {
      width: clamp(190px, 28vw, 310px);
      height: auto;
      display: block;
      filter: drop-shadow(0 20px 44px rgba(255, 20, 144, .18));
      animation: riseIn .7s .02s ease both, logoFloat 4.8s ease-in-out .8s infinite alternate;
    }

    .home-greeting {
      color: rgba(255,255,255,.68);
      font-size: 14px;
      font-weight: 700;
    }

    .home-login-link {
      justify-self: center;
      min-height: 40px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 999px;
      padding: 0 16px;
      background: rgba(255,255,255,.045);
      color: rgba(255,255,255,.58);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
      backdrop-filter: blur(18px);
      font-weight: 750;
      font-size: 13px;
      margin-top: 10px;
    }

    .home-footer-access {
      display: grid;
      place-items: center;
      padding-top: 12px;
      animation: riseIn .7s .3s ease both;
    }

    .home-footer-access span {
      color: rgba(255,255,255,.42);
      font-size: 12px;
      margin-bottom: 8px;
    }

    .home-hero-grid {
      display: grid;
      grid-template-columns: minmax(0, .96fr) minmax(360px, 1.04fr);
      gap: 22px;
      align-items: stretch;
    }

    .home-copy {
      display: grid;
      align-content: center;
      gap: 22px;
      min-height: 560px;
    }

    .home-kicker {
      width: fit-content;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 9px 13px;
      background: rgba(255,255,255,.07);
      color: rgba(255,255,255,.78);
      backdrop-filter: blur(18px);
      font-size: 12px;
      font-weight: 850;
      letter-spacing: .08em;
      text-transform: uppercase;
      animation: riseIn .6s .04s ease both;
    }

    .ai-home h1 {
      max-width: 820px;
      color: #fff;
      font-size: clamp(46px, 7vw, 88px);
      line-height: .92;
      letter-spacing: -.06em;
      text-wrap: balance;
      animation: riseIn .7s .1s ease both;
    }

    .ai-home h1 span {
      background: linear-gradient(100deg, #fff 0 38%, #ff1490 58%, #7f5cff 84%, #38d5ff 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .ai-home .lead {
      color: rgba(255,255,255,.68);
      max-width: 660px;
      animation: riseIn .7s .16s ease both;
    }

    .home-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      animation: riseIn .7s .22s ease both;
    }

    .home-primary {
      min-height: 56px;
      border: 0;
      border-radius: 18px;
      padding: 0 24px;
      background: linear-gradient(135deg, #ff047d, #b715ff 58%, #3aa8ff);
      color: #fff;
      box-shadow: 0 24px 64px rgba(255, 4, 125, .28);
    }

    .home-secondary {
      min-height: 56px;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 18px;
      padding: 0 20px;
      background: rgba(255,255,255,.08);
      color: #fff;
      backdrop-filter: blur(18px);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    }

    .home-primary:active,
    .home-secondary:active,
    .home-tab:active,
    .glass-card:active {
      transform: scale(.985);
    }

    .hero-orbit-card {
      position: relative;
      min-height: 560px;
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 30px;
      background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 32px 80px rgba(0,0,0,.28);
      backdrop-filter: blur(24px);
      overflow: hidden;
      animation: riseIn .8s .18s ease both;
    }

    .hero-orbit-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 50% 28%, rgba(255, 0, 129, .22), transparent 24%),
        radial-gradient(circle at 74% 68%, rgba(0, 184, 255, .16), transparent 26%);
      pointer-events: none;
    }

    .radar-wrap {
      position: relative;
      min-height: 410px;
      display: grid;
      place-items: center;
      padding: 28px;
    }

    .radar-svg {
      width: min(100%, 420px);
      filter: drop-shadow(0 0 24px rgba(255, 4, 125, .22));
    }

    .radar-grid {
      fill: none;
      stroke: rgba(255,255,255,.11);
      stroke-width: 1;
    }

    .radar-axis {
      stroke: rgba(255,255,255,.13);
      stroke-width: 1;
    }

    .radar-shape {
      fill: url(#radarFill);
      stroke: #ff1490;
      stroke-width: 4;
      stroke-linejoin: round;
      stroke-dasharray: 900;
      stroke-dashoffset: 900;
      animation: drawRadar 1.5s .45s cubic-bezier(.2,.8,.2,1) forwards;
    }

    .radar-dot {
      fill: #ff58ad;
      filter: drop-shadow(0 0 10px rgba(255,20,144,.8));
      opacity: 0;
      animation: dotIn .35s ease forwards;
    }

    .radar-label {
      fill: rgba(255,255,255,.78);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0;
    }

    .orbit-score {
      position: absolute;
      inset: 50% auto auto 50%;
      transform: translate(-50%, -50%);
      width: 132px;
      height: 132px;
      border-radius: 36px;
      display: grid;
      place-items: center;
      text-align: center;
      background: rgba(7,9,18,.68);
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 18px 42px rgba(0,0,0,.26);
      backdrop-filter: blur(18px);
    }

    .orbit-score b {
      display: block;
      font-size: 42px;
      line-height: .9;
      letter-spacing: -.05em;
    }

    .orbit-score span {
      color: rgba(255,255,255,.6);
      font-size: 12px;
      font-weight: 800;
    }

    .hero-card-footer {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      padding: 0 22px 22px;
    }

    .glass-card {
      border: 1px solid rgba(255,255,255,.11);
      border-radius: 22px;
      padding: 18px;
      background: rgba(255,255,255,.075);
      backdrop-filter: blur(20px);
      transition: transform .22s ease, background .22s ease, border-color .22s ease;
    }

    .glass-card:hover {
      transform: translateY(-4px);
      border-color: rgba(255,255,255,.2);
      background: rgba(255,255,255,.1);
    }

    .glass-card b {
      display: block;
      font-size: 25px;
      line-height: 1;
      letter-spacing: -.04em;
    }

    .glass-card span {
      display: block;
      margin-top: 8px;
      color: rgba(255,255,255,.58);
      font-size: 12px;
      font-weight: 750;
    }

    .home-sections {
      display: grid;
      grid-template-columns: 1.15fr .85fr;
      gap: 18px;
      animation: riseIn .8s .32s ease both;
    }

    .home-stack {
      display: grid;
      gap: 14px;
    }

    .home-section-title {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .home-section-title h3 {
      color: #fff;
      font-size: 20px;
      margin: 0;
    }

    .home-section-title span {
      color: rgba(255,255,255,.48);
      font-size: 12px;
      font-weight: 800;
    }

    .insight-stream {
      display: grid;
      gap: 10px;
    }

    .ai-insight,
    .action-row {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 22px;
      padding: 14px;
      background: rgba(255,255,255,.065);
      transition: transform .22s ease, background .22s ease;
    }

    .ai-insight:hover,
    .action-row:hover {
      transform: translateY(-3px);
      background: rgba(255,255,255,.09);
    }

    .insight-icon {
      width: 38px;
      height: 38px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, rgba(255,4,125,.9), rgba(58,168,255,.8));
      box-shadow: 0 16px 36px rgba(255,4,125,.2);
      color: #fff;
      font-weight: 900;
    }

    .ai-insight b,
    .action-row b {
      display: block;
      color: #fff;
      font-size: 14px;
    }

    .ai-insight p,
    .action-row p {
      margin: 4px 0 0;
      color: rgba(255,255,255,.6);
      font-size: 13px;
      line-height: 1.4;
    }

    .evolution-line {
      position: relative;
      height: 150px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 22px;
      background:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
        rgba(255,255,255,.055);
      background-size: 100% 38px, 25% 100%;
      overflow: hidden;
    }

    .evolution-line svg {
      width: 100%;
      height: 100%;
    }

    .evolution-path {
      fill: none;
      stroke: url(#evolutionStroke);
      stroke-width: 5;
      stroke-linecap: round;
      stroke-dasharray: 560;
      stroke-dashoffset: 560;
      animation: drawLine 1.4s .6s ease forwards;
    }

    .action-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.1);
      color: rgba(255,255,255,.72);
      font-size: 12px;
      font-weight: 850;
      margin-top: 8px;
    }

    .home-bottom-nav {
      position: sticky;
      bottom: 18px;
      z-index: 5;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 6px;
      width: min(560px, 100%);
      margin: 4px auto 0;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 26px;
      padding: 8px;
      background: rgba(7,9,18,.72);
      backdrop-filter: blur(24px);
      box-shadow: 0 24px 60px rgba(0,0,0,.24);
      animation: riseIn .8s .4s ease both;
    }

    .home-tab {
      min-height: 56px;
      border: 0;
      border-radius: 20px;
      background: transparent;
      color: rgba(255,255,255,.58);
      box-shadow: none;
      display: grid;
      gap: 3px;
      place-items: center;
      font-size: 11px;
      font-weight: 850;
    }

    .home-tab svg {
      width: 21px;
      height: 21px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
    }

    .home-tab.active {
      color: #fff;
      background: rgba(255, 4, 125, .18);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
    }

    @keyframes homeFade {
      from { opacity: 0; transform: scale(.985); }
      to { opacity: 1; transform: scale(1); }
    }

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

    @keyframes pulseGlow {
      from { transform: translateY(0) scale(1); filter: drop-shadow(0 0 12px rgba(255,0,129,.35)); }
      to { transform: translateY(-2px) scale(1.04); filter: drop-shadow(0 0 24px rgba(82,74,255,.52)); }
    }

    @keyframes floatingHomeBg {
      0% { background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%; }
      50% { background-position: 8% 4%, 92% 8%, 52% 92%, 0% 0%; }
      100% { background-position: 16% 10%, 84% 12%, 46% 86%, 0% 0%; }
    }

    @keyframes floatingLight {
      from { opacity: .48; transform: translate3d(-10px, -8px, 0) scale(1.02); }
      to { opacity: .78; transform: translate3d(12px, 10px, 0) scale(1.06); }
    }

    @keyframes driftingAurora {
      0% {
        transform: translate3d(-18px, -12px, 0) scale(1.02) rotate(-1deg);
        opacity: .62;
      }
      45% {
        transform: translate3d(16px, 10px, 0) scale(1.06) rotate(1deg);
        opacity: .9;
      }
      100% {
        transform: translate3d(-6px, 22px, 0) scale(1.04) rotate(-.4deg);
        opacity: .76;
      }
    }

    @keyframes logoFloat {
      from { transform: translateY(0); }
      to { transform: translateY(-6px); }
    }

    @keyframes drawRadar {
      to { stroke-dashoffset: 0; }
    }

    @keyframes dotIn {
      to { opacity: 1; }
    }

    @keyframes drawLine {
      to { stroke-dashoffset: 0; }
    }

    @media (max-width: 980px) {
      .home-hero-grid,
      .home-sections {
        grid-template-columns: 1fr;
      }

      .home-copy,
      .hero-orbit-card {
        min-height: auto;
      }
    }

    @media (max-width: 620px) {
      .ai-home {
        border-radius: 0;
        min-height: 100vh;
        overflow: visible;
      }

      .home-v2 {
        position: relative;
        inset: auto;
        min-height: 100vh;
        height: auto;
        overflow-x: hidden;
        overflow-y: visible;
      }

      .ai-home-shell {
        padding: 24px 16px 96px;
      }

      .home-top {
        align-items: start;
      }

      .hithub-wordmark {
        font-size: 24px;
      }

      .ai-home h1 {
        font-size: 44px;
      }

      .hero-card-footer {
        grid-template-columns: 1fr;
      }

      .home-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        width: auto;
      }
    }

    .reference-home .ai-home-shell {
      max-width: 760px;
      margin: 0 auto;
      min-height: calc(100vh - 96px);
      align-content: start;
      padding-top: clamp(26px, 5vw, 54px);
      padding-bottom: 96px;
      text-align: center;
    }

    .reference-home .home-top {
      justify-content: center;
      display: grid;
      gap: 10px;
    }

    .reference-home .hithub-wordmark {
      justify-content: center;
      font-size: clamp(34px, 6vw, 52px);
    }

    .reference-home .hithub-wave {
      width: clamp(74px, 12vw, 112px);
      height: clamp(30px, 5vw, 44px);
    }

    .reference-home .home-greeting {
      font-size: 15px;
    }

    .reference-home .home-hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
      justify-items: center;
    }

    .reference-home .home-copy {
      min-height: auto;
      justify-items: center;
      gap: 12px;
    }

    .reference-home .home-kicker,
    .reference-home .lead,
    .reference-home .home-actions {
      display: none;
    }

    .reference-home h1 {
      max-width: 680px;
      margin: 0;
      font-size: clamp(48px, 8vw, 82px);
      line-height: .96;
    }

    .by-hithub {
      color: rgba(255,255,255,.68);
      font-size: clamp(18px, 2.2vw, 26px);
      font-weight: 750;
      animation: riseIn .7s .18s ease both;
    }

    .reference-home .hero-orbit-card {
      width: min(100%, 650px);
      min-height: 430px;
      border: 0;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
      overflow: visible;
    }

    .reference-home .hero-orbit-card::before {
      display: none;
    }

    .reference-home .radar-wrap {
      min-height: 430px;
      padding: 10px 0 0;
    }

    .reference-home .radar-svg {
      width: min(100%, 560px);
    }

    .reference-home .orbit-score {
      width: 116px;
      height: 116px;
      border-radius: 30px;
      background: rgba(8,10,20,.56);
    }

    .reference-home .hero-card-footer {
      display: none;
    }

    .diagnostic-card {
      width: min(100%, 650px);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 30px;
      padding: clamp(20px, 4vw, 34px);
      background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.052));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 28px 70px rgba(0,0,0,.3);
      backdrop-filter: blur(24px);
      text-align: left;
      animation: riseIn .75s .28s ease both;
    }

    .diagnostic-card h2 {
      margin: 0;
      color: #fff;
      font-size: clamp(28px, 4vw, 42px);
      letter-spacing: -.04em;
    }

    .diagnostic-card p {
      margin: 10px 0 22px;
      color: rgba(255,255,255,.62);
      font-size: clamp(16px, 2vw, 21px);
    }

    .diagnostic-card .home-primary {
      width: 100%;
      min-height: 68px;
      border-radius: 18px;
      font-size: 18px;
    }

    .home-name-field {
      margin: 18px 0 14px;
    }

    .home-name-field label {
      display: grid;
      gap: 9px;
      color: rgba(255,255,255,.72);
      font-size: 13px;
      font-weight: 850;
    }

    .home-name-field input {
      min-height: 62px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      background: rgba(255,255,255,.08);
      color: #fff;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
      backdrop-filter: blur(18px);
      font-size: 18px;
    }

    .home-name-field input::placeholder {
      color: rgba(255,255,255,.38);
    }

    .home-primary:disabled,
    .home-primary.disabled {
      cursor: not-allowed;
      opacity: .46;
      filter: grayscale(.35);
      box-shadow: none;
      transform: none;
    }

    .admin-only {
      display: none !important;
    }

    .home-bottom-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
      margin-top: 18px;
      padding-top: 14px;
    }

    .home-footer-link {
      background: none;
      border: 0;
      color: rgba(255,255,255,.42);
      font-size: 12.5px;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: color .18s ease;
    }

    .home-footer-link:hover {
      color: rgba(255,255,255,.72);
    }

    body.admin-mode .admin-only {
      display: inline-flex !important;
    }

    body.admin-mode .step-link.admin-only {
      display: grid !important;
    }

    .login-options {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }

    .login-options label {
      display: grid;
      gap: 8px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 760;
    }

    .reference-home .home-sections {
      width: min(100%, 650px);
      margin: 0 auto;
      grid-template-columns: 1fr;
    }

    .reference-home .home-bottom-nav {
      width: min(650px, calc(100% - 32px));
    }

    body.home-active .shell {
      display: block;
      min-height: 100vh;
      background: #070912;
    }

    body.home-active aside,
    body.home-active .topbar {
      display: none;
    }

    body.home-active main {
      padding: 0;
      min-height: 100vh;
      background: #070912;
    }

    body.home-active .screen {
      max-width: none;
      min-height: 100vh;
    }

    body.home-active .ai-home {
      min-height: 100vh;
      border-radius: 0;
      border: 0;
    }

    body.content-slim .shell {
      background:
        radial-gradient(circle at 15% 20%, rgba(255,140,0,.55), transparent 38%),
        radial-gradient(circle at 30% 55%, rgba(255,20,145,.45), transparent 42%),
        radial-gradient(circle at 75% 80%, rgba(120,20,200,.5), transparent 46%),
        linear-gradient(160deg, #4a0a6e 0%, #7a0d5e 55%, #9d1649 100%);
    }

    body.content-slim aside {
      display: flex;
      flex-direction: column;
      padding: 28px 24px;
      border-right: 0;
      overflow: hidden;
      color: #fff;
      background: transparent;
    }

    body.content-slim main {
      background: transparent;
    }

    body.content-slim .side-headline h2 {
      font-size: 26px;
    }

    body.content-slim .side-headline p {
      display: none;
    }

    body.content-slim .side-recap {
      margin-top: 18px;
    }

    @media (min-width: 981px) {
      body.content-slim .shell {
        grid-template-columns: minmax(340px, 40%) 1fr;
        background-attachment: fixed;
      }

      body.content-slim aside {
        position: sticky;
        top: 0;
        height: 100vh;
        padding: 48px 40px;
      }

      body.content-slim .side-headline h2 {
        font-size: clamp(30px, 3vw, 40px);
      }

      body.content-slim .side-headline p {
        display: block;
      }
    }

    .side-rings {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .side-brand {
      position: relative;
      margin-bottom: 40px;
    }

    .side-logo {
      width: 150px;
      height: auto;
      filter: brightness(0) invert(1);
    }

    .side-headline {
      position: relative;
      margin-top: auto;
    }

    .side-headline h2 {
      color: #fff;
      font-size: clamp(30px, 3vw, 40px);
      font-weight: 800;
      line-height: 1.12;
    }

    .side-headline h2 span {
      color: #ffb3d9;
    }

    .side-headline p {
      color: rgba(255,255,255,.78);
      font-size: 15px;
      line-height: 1.5;
      max-width: 360px;
      margin-top: 12px;
    }

    .side-recap {
      position: relative;
      margin-top: 28px;
      display: grid;
      gap: 10px;
    }

    .side-recap-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 16px;
      border-radius: 10px;
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(255,255,255,.16);
    }

    .side-recap-row span {
      color: rgba(255,255,255,.62);
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    .side-recap-row b {
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 220px;
    }

    .back-chevron {
      min-height: 40px;
      width: 40px;
      border: 1px solid var(--line);
      background: #fff;
      border-radius: 10px;
      color: var(--ink);
      font-size: 20px;
      line-height: 1;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      visibility: hidden;
    }

    /* ---------- Fase 2: widgets do novo questionário ---------- */

    .field-hint {
      color: var(--muted);
      font-size: 12.5px;
      margin: -4px 0 2px;
    }

    .ranking-group {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 10px;
    }

    .ranking-chip {
      position: relative;
      min-height: 72px;
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
      padding: 14px 14px 14px 42px;
      text-align: left;
      display: grid;
      gap: 4px;
      cursor: pointer;
      box-shadow: var(--shadow-soft);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .ranking-chip:hover {
      transform: translateY(-1px);
      border-color: var(--rose-2);
    }

    .ranking-chip b { font-size: 14px; }
    .ranking-chip span { color: var(--muted); font-size: 12.5px; line-height: 1.3; }

    .ranking-chip .medal {
      position: absolute;
      left: 12px;
      top: 12px;
      width: 20px;
      height: 20px;
      border-radius: 999px;
      background: var(--rose-2);
      color: #fff;
      font-size: 11px;
      font-weight: 800;
      display: grid;
      place-items: center;
      opacity: 0;
    }

    .ranking-chip.picked {
      border-color: var(--rose);
      background: var(--blush);
      box-shadow: inset 0 0 0 1px var(--rose);
    }

    .ranking-chip.picked .medal { opacity: 1; }

    .chip-input-field {
      display: grid;
      gap: 8px;
    }

    .chip-input-row {
      display: flex;
      gap: 8px;
    }

    .chip-input-row input {
      flex: 1;
    }

    .chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .chip-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--blush);
      border: 1px solid var(--rose-2);
      color: var(--rose);
      border-radius: 999px;
      padding: 6px 8px 6px 14px;
      font-size: 13px;
      font-weight: 700;
    }

    .chip-pill button {
      background: none;
      border: 0;
      color: var(--rose);
      font-size: 15px;
      line-height: 1;
      padding: 2px 4px;
    }

    .moodboard-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 10px;
    }

    .grid.two.image-mood-row {
      gap: 72px;
    }

    .image-mood-col h3 {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .image-mood-icon {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
      color: var(--rose);
    }

    .image-mood-col-desired {
      border-left: 1px dashed var(--line);
      padding-left: 24px;
    }

    .image-mood-col-desired .image-mood-icon {
      color: var(--violet-accent);
    }

    .moodboard-grid-row {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    @media (max-width: 900px) {
      .grid.two.image-mood-row { gap: 40px; }
      .image-mood-col-desired {
        border-left: 0;
        border-top: 1px dashed var(--line);
        padding-left: 0;
        padding-top: 18px;
      }
      .moodboard-grid-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .moodboard-card {
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: var(--radius);
      padding: 16px;
      display: grid;
      justify-items: stretch;
      align-items: start;
      gap: 8px;
      text-align: center;
      cursor: pointer;
      box-shadow: var(--shadow-soft);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      min-width: 0;
      overflow: hidden;
    }

    .moodboard-card:hover {
      transform: translateY(-1px);
      border-color: var(--rose-2);
    }

    .moodboard-card svg { width: 32px; height: 32px; color: var(--rose); justify-self: center; }
    .moodboard-card b {
      font-size: 13.5px;
      max-width: 100%;
      white-space: normal;
      overflow-wrap: break-word;
      word-break: break-word;
    }

    .moodboard-card.selected {
      border-color: var(--rose);
      background: var(--blush);
      box-shadow: inset 0 0 0 1px var(--rose);
    }

    .slider-field {
      display: grid;
      gap: 8px;
    }

    .slider-field .slider-row {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .slider-field input[type="range"] {
      flex: 1;
      accent-color: var(--rose);
    }

    .slider-field .slider-value {
      min-width: 34px;
      text-align: center;
      font-weight: 800;
      color: var(--rose);
    }

    /* ---------- Fase 4: barras de métricas do admin ---------- */

    .metric-bar-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 32px;
      align-items: center;
      gap: 10px;
      padding: 6px 0;
      font-size: 13px;
    }

    .metric-bar-label {
      color: var(--ink);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .metric-bar-track {
      height: 10px;
      border-radius: 999px;
      background: var(--line);
      overflow: hidden;
    }

    .metric-bar-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--violet-accent), var(--rose-2), var(--gold));
    }

    .metric-bar-count {
      text-align: right;
      font-weight: 800;
      color: var(--muted);
    }
