  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    /* DEBATELY — Spectrum: soft purple & pink on black, one font (Inter) */
    --void:   #050406;
    --bg2:    #08070A;
    --panel:  #0C0B10;
    --panel2: #100E14;
    --line:   #1B1922;
    --line2:  #29242F;
    --pink:     #F5A9D0;
    --pink-d:   #E87FB8;
    --lilac:    #C6A9F5;
    --lilac-d:  #A784E8;
    --violet:   #A78BFF;
    --violet-d: #7A5FC4;
    --plum:     #8B6FC7;
    --amber:    #FFC98A;
    --dot:      #E87FB8;
    --cyan:     #C6A9F5;
    --cyan-d:   #7A5FC4;
    --magenta:  #F5A9D0;
    --magenta-d:#B86A94;
    --noise:    #8A8492;
    --text:   #F2EFF5;
    --soft:   #C7C2CE;
    --dim:    #8A8492;
    --dim2:   #4E4857;
    --grad-wordmark: linear-gradient(100deg, #FFFFFF 20%, #F5A9D0 55%, #C6A9F5 88%);
    --grad-holo: linear-gradient(135deg, #F5A9D0, #C6A9F5 55%, #A78BFF 95%);
    --radius: 14px;
  }
  html { font-size: 16px; }
  body {
    background: var(--void);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-weight: 300;
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 70% 45% at 50% -8%, rgba(245,169,208,0.08), transparent 62%),
                radial-gradient(ellipse 60% 40% at 85% 5%, rgba(198,169,245,0.06), transparent 60%);
  }
  #auth-screen, #app { position: relative; z-index: 1; }

  .mono { font-family: "Inter", sans-serif; }
  .wordmark {
    font-family: "Inter", sans-serif; font-weight: 800; letter-spacing: -0.045em;
    background: var(--grad-wordmark);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 0 20px rgba(232,127,184,0.22));
  }
  .wordmark .dot { -webkit-text-fill-color: var(--pink-d); color: var(--pink-d); }
  .dot { color: var(--pink-d); }

  #auth-screen {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 32px 20px; gap: 36px;
  }
  .auth-logo { font-size: clamp(46px, 8vw, 82px); line-height: 1; text-align: center; }
  .auth-tag {
    font-size: 14px; color: var(--soft); letter-spacing: 0.01em; text-align: center; margin-top: 18px; font-weight: 400;
  }
  .auth-card {
    width: 100%; max-width: 400px; background: linear-gradient(180deg, var(--bg2), var(--void));
    border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  }
  .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .auth-tab {
    padding: 15px; background: none; border: none; cursor: pointer;
    font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500;
    letter-spacing: 0; color: var(--dim);
    border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
  }
  .auth-tab.active { color: var(--text); border-bottom-color: var(--pink-d); }
  .auth-body { padding: 28px 28px 26px; }
  .field { margin-bottom: 18px; }
  .field label {
    display: block; font-size: 13px; letter-spacing: 0; color: var(--soft); margin-bottom: 9px; font-weight: 400;
  }
  .field input {
    width: 100%; padding: 11px 0; background: transparent;
    border: none; border-bottom: 1px solid var(--line2); border-radius: 0; color: var(--text);
    font-family: "Inter", sans-serif; font-size: 15px; font-weight: 400; outline: none;
    transition: border-color .25s;
  }
  .field input:focus { border-bottom-color: var(--pink-d); }
  .field .hint { font-size: 12px; color: var(--dim2); margin-top: 6px; font-weight: 400; }
  .btn-primary {
    width: 100%; padding: 13px; margin-top: 8px; cursor: pointer;
    background: #fff; border: none; border-radius: 100px; color: #0A0810;
    font-family: "Inter", sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0;
    transition: background .2s, transform .1s;
  }
  .btn-primary:hover { background: var(--soft); }
  .btn-primary:active { transform: translateY(1px); }
  .btn-primary:focus-visible, .auth-tab:focus-visible, .nav-item:focus-visible, .event-pill:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
  .auth-msg {
    margin-top: 15px; font-size: 13px; line-height: 1.6; min-height: 18px; font-weight: 400;
  }
  .auth-msg.err { color: var(--pink-d); }
  .auth-msg.ok { color: var(--lilac); }
  .auth-note {
    max-width: 400px; font-size: 13px; color: var(--dim); line-height: 1.7; text-align: center; font-weight: 400;
  }

  #app { display: none; }
  #app.on { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
  .sidebar {
    background: var(--bg2); border-right: 1px solid var(--line);
    padding: 26px 0; display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100vh;
  }
  .side-logo { font-size: 22px; padding: 0 22px 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
  .nav-label {
    padding: 0 22px; font-size: 12px; letter-spacing: 0.06em; color: var(--dim2); text-transform: uppercase; margin: 10px 0 8px; font-weight: 500;
  }
  .nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 22px;
    background: none; border: none; border-left: 2px solid transparent;
    color: var(--dim); font-family: "Inter", sans-serif; font-size: 14px;
    font-weight: 400; letter-spacing: 0;
    cursor: pointer; text-align: left; width: 100%;
    transition: color .2s, background .2s, border-color .2s;
  }
  .nav-item:hover { color: var(--text); background: rgba(245,169,208,0.04); }
  .nav-item.active { color: var(--text); border-left-color: var(--pink-d); background: linear-gradient(90deg, rgba(245,169,208,0.08), transparent); }
  .nav-item .glyph { font-size: 13px; color: var(--pink-d); width: 16px; }
  .side-spacer { flex: 1; }
  .user-chip { margin: 0 16px 12px; padding: 13px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
  .user-chip .u-name { font-size: 14px; font-weight: 500; letter-spacing: 0; word-break: break-all; }
  .user-chip .u-sub { font-size: 11px; color: var(--dim2); letter-spacing: 0.04em; margin-top: 3px; font-weight: 400; }
  .btn-ghost {
    margin: 0 16px; padding: 10px; background: none; cursor: pointer;
    border: 1px solid var(--line2); border-radius: 100px; color: var(--dim);
    font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: 0; font-weight: 400;
    transition: color .2s, border-color .2s;
  }
  .btn-ghost:hover { color: var(--pink-d); border-color: var(--pink-d); }

  .main { padding: 44px 52px 68px; min-width: 0; }
  .view { display: none; }
  .view.on { display: block; animation: viewIn .25s ease; }
  @keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) {
    .view.on { animation: none; }
    * { transition: none !important; }
  }

  .page-head { margin-bottom: 34px; }
  .page-eyebrow { font-size: 13px; letter-spacing: 0.02em; color: var(--dim); text-transform: none; margin-bottom: 10px; font-weight: 500; }
  .page-title { font-family: "Inter", sans-serif; font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -0.03em; }
  .page-sub { color: var(--soft); font-size: 15px; margin-top: 12px; max-width: 640px; font-weight: 400; }

  .panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 24px;
  }
  .panel-header {
    padding: 18px 24px; border-bottom: 1px solid var(--line);
    display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px;
  }
  .panel-title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; text-transform: none; }
  .panel-sub { font-size: 13px; color: var(--dim); font-weight: 400; }
  .panel-body { padding: 22px 24px; }

  .home-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
  .player-card {
    position: relative; border-radius: 16px; padding: 1px;
    background: var(--grad-holo);
  }
  .player-card.standard { background: linear-gradient(135deg, var(--line2), var(--violet-d)); }
  .player-card-inner {
    background: linear-gradient(170deg, #100E15 0%, #08070A 72%);
    border-radius: 15px; padding: 30px 28px 26px; position: relative; overflow: hidden;
  }
  .player-card-inner::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 90% 45% at 50% -5%, rgba(245,169,208,0.16), transparent 68%);
  }
  .pc-top { display: flex; align-items: center; gap: 22px; position: relative; }
  .pc-ovr { text-align: center; }
  .pc-ovr .n { font-family: "Inter", sans-serif; font-weight: 300; font-size: 62px; line-height: 0.95; letter-spacing: -0.04em;
    background: var(--grad-wordmark); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; }
  .pc-ovr .l { font-size: 11px; letter-spacing: 0.16em; color: var(--dim); font-weight: 500; }
  .pc-id { padding-top: 2px; min-width: 0; }
  .pc-name { font-family: "Inter", sans-serif; font-weight: 500; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; word-break: break-all; }
  .pc-tier { display: inline-block; margin-top: 9px; padding: 4px 12px; border-radius: 100px;
    font-size: 12px; letter-spacing: 0.01em; font-weight: 400; }
  .pc-tier.op { background: rgba(245,169,208,0.12); color: var(--pink); border: 1px solid rgba(245,169,208,0.35); }
  .pc-tier.std { background: rgba(198,169,245,0.1); color: var(--lilac); border: 1px solid rgba(198,169,245,0.35); }
  .pc-events { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
  .pc-event { font-size: 12px; padding: 4px 11px;
    border: 1px solid var(--line2); border-radius: 100px; color: var(--soft); letter-spacing: 0.01em; font-weight: 400; }
  .pc-attrs { margin-top: 26px; position: relative; }
  .attr-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .attr-name { width: 96px; flex-shrink: 0; font-size: 13px; letter-spacing: 0; color: var(--soft); font-weight: 400; }
  .attr-track { flex: 1; height: 3px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
  .attr-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--lilac-d), var(--lilac)); }
  .attr-fill.hot { background: linear-gradient(90deg, var(--pink-d), var(--pink)); }
  .attr-val { width: 30px; text-align: right; font-size: 14px; font-weight: 500; }
  .pc-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 11px; color: var(--dim2); letter-spacing: 0.02em; font-weight: 400;
    display: flex; justify-content: space-between; position: relative; }

  .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .stat-cell { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat-label { font-size: 12px; letter-spacing: 0.01em; text-transform: none; color: var(--dim); margin-bottom: 8px; font-weight: 400; }
  .stat-value { font-family: "Inter", sans-serif; font-weight: 300; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
  .stat-value.c { color: var(--lilac); } .stat-value.m { color: var(--pink); } .stat-value.v { color: var(--violet); } .stat-value.a { color: var(--amber); }
  .stat-sub { font-size: 12px; color: var(--dim2); margin-top: 6px; font-weight: 400; }

  .judge-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
  .judge-name { width: 150px; flex-shrink: 0; font-size: 13px; color: var(--soft); font-weight: 400; }
  .judge-track { flex: 1; height: 16px; background: rgba(255,255,255,0.04); border-radius: 100px; position: relative; overflow: hidden; }
  .judge-fill { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; border-radius: 100px; }
  .judge-fill span { font-size: 11px; color: #14121A; font-weight: 500; }
  .judge-n { width: 40px; text-align: right; font-size: 12px; color: var(--dim2); flex-shrink: 0; font-weight: 400; }

  .form-strip { display: flex; gap: 8px; flex-wrap: wrap; }
  .form-box { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 500; border: 1px solid var(--line2); }
  .form-box.top { background: rgba(198,169,245,0.12); color: var(--lilac); border-color: rgba(198,169,245,0.3); }
  .form-box.mid { background: rgba(167,139,255,0.08); color: var(--violet); }
  .form-box.low { background: rgba(245,169,208,0.1); color: var(--pink); border-color: rgba(245,169,208,0.3); }

  .rfd-statbar { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); margin-bottom: 24px; }
  .rfd-statbar .stat-cell { border-bottom: none; }
  .rfd-statbar .stat-cell:last-child { border-right: none; }
  .empty-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 18px 24px; margin-bottom: 24px; border: 1px solid var(--line2); border-radius: var(--radius);
    background: rgba(245,169,208,0.04);
  }
  .empty-banner .t { font-size: 14px; color: var(--soft); font-weight: 400; }
  .empty-banner .t strong { color: var(--pink); font-weight: 500; }
  .btn-link {
    padding: 9px 18px; cursor: pointer; background: none; border: 1px solid var(--pink-d); border-radius: 100px;
    color: var(--pink); font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400;
    transition: background .2s, color .2s;
  }
  .btn-link:hover { background: var(--pink-d); color: #14121A; }

  .fw-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
  .fw-cell { padding: 20px 20px; border-right: 1px solid var(--line); }
  .fw-cell:last-child { border-right: none; }
  .fw-head { font-size: 15px; font-weight: 500; margin-bottom: 5px; letter-spacing: -0.01em; }
  .fw-rule { font-size: 12px; color: var(--dim); line-height: 1.6; margin-bottom: 14px; font-weight: 400; }
  .fw-tag { display: inline-block; width: 26px; height: 4px; border-radius: 4px; margin-bottom: 12px; }

  .chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 11px; border-radius: 100px; letter-spacing: 0.01em; font-weight: 400; }
  .chip-pre { background: rgba(167,139,255,0.12); color: var(--violet); }
  .chip-det { background: rgba(198,169,245,0.12); color: var(--lilac); }
  .chip-flo { background: rgba(245,169,208,0.12); color: var(--pink); }
  .chip-noi { background: rgba(138,132,146,0.15); color: var(--noise); }
  .chip-par { background: rgba(255,201,138,0.12); color: var(--amber); }

  .ladder-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .ladder-cat { width: 4px; height: 20px; border-radius: 4px; flex-shrink: 0; }
  .ladder-label { width: 200px; flex-shrink: 0; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
  .ladder-track { flex: 1; position: relative; height: 18px; background: rgba(255,255,255,0.04); border-radius: 100px; overflow: hidden; }
  .ladder-skel { position: absolute; inset: 0; border-radius: 100px;
    background: linear-gradient(90deg, rgba(245,169,208,0.06) 0%, rgba(198,169,245,0.14) 50%, rgba(245,169,208,0.06) 100%);
    background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
  @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
  @media (prefers-reduced-motion: reduce) { .ladder-skel { animation: none; } }
  .ladder-baseline { position: absolute; top: 0; bottom: 0; left: 48%; width: 0; border-left: 2px dashed rgba(242,239,245,0.16); }
  .ladder-n { width: 34px; text-align: right; font-size: 12px; color: var(--dim2); flex-shrink: 0; font-weight: 400; }

  .chart-ghost {
    height: 260px; border: 1px solid var(--line2); border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: rgba(255,255,255,0.01);
  }
  .chart-ghost .g-title { font-size: 14px; letter-spacing: 0; color: var(--dim); text-transform: none; font-weight: 500; }
  .chart-ghost .g-sub { font-size: 13px; color: var(--dim2); font-weight: 400; }
  .legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; color: var(--soft); font-weight: 400; }
  .legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .h2h-block { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .h2h-block:last-child { border-bottom: none; }
  .h2h-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .h2h-area { font-size: 14px; font-weight: 500; }
  .h2h-badge { font-size: 11px; background: rgba(245,169,208,0.1); color: var(--pink); padding: 3px 10px; border-radius: 100px; font-weight: 400; }
  .h2h-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
  .h2h-name { width: 170px; flex-shrink: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
  .h2h-track { flex: 1; height: 15px; background: rgba(255,255,255,0.04); border-radius: 100px; overflow: hidden; position: relative; }

  .conclusions { display: grid; grid-template-columns: 1fr 1fr; }
  .c-item { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .c-item:nth-child(2n) { border-right: none; }
  .c-item:nth-last-child(-n+2) { border-bottom: none; }
  .c-num { font-family: "Inter", sans-serif; font-weight: 300; font-size: 28px; color: var(--line2); line-height: 1; margin-bottom: 12px; }
  .c-head { font-size: 15px; font-weight: 500; margin: 8px 0 6px; line-height: 1.4; letter-spacing: -0.01em; }
  .c-body { font-size: 13px; color: var(--dim); line-height: 1.65; font-weight: 400; }

  .event-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
  .event-pill {
    padding: 9px 17px; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 100px;
    color: var(--dim); font-family: "Inter", sans-serif; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 400;
    transition: all .2s;
  }
  .event-pill:hover { color: var(--text); border-color: var(--line2); }
  .event-pill.active { color: #14121A; background: #fff; border-color: #fff; font-weight: 500; }
  .bracket-head { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
  .bracket-name { font-family: "Inter", sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
  .bracket-name.legend { color: var(--amber); } .bracket-name.elite { color: var(--lilac); } .bracket-name.contender { color: var(--violet); }
  .bracket-rule { flex: 1; height: 1px; background: var(--line); }
  .bracket-range { font-size: 12px; color: var(--dim2); letter-spacing: 0.04em; font-weight: 400; }
  .rank-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .rank-table th { text-align: left; padding: 12px 16px; font-size: 12px; letter-spacing: 0.01em; text-transform: none; color: var(--dim2); border-bottom: 1px solid var(--line); font-weight: 500; }
  .rank-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 400; }
  .rank-table tr:last-child td { border-bottom: none; }
  .rank-table tr:hover td { background: rgba(245,169,208,0.04); }
  .rk-pos { color: var(--dim); width: 52px; font-weight: 400; }
  .rk-name { font-weight: 500; letter-spacing: 0; }
  .rk-school { color: var(--dim); font-size: 13px; }
  .rk-pts { color: var(--lilac); text-align: right; font-weight: 400; }
  .rk-ovr { font-family: "Inter", sans-serif; font-weight: 600; text-align: right; width: 64px; }
  .rk-you td { background: linear-gradient(90deg, rgba(245,169,208,0.09), transparent) !important; }
  .rk-badge { font-size: 10px; padding: 2px 8px; border-radius: 100px; margin-left: 8px; letter-spacing: 0.02em; background: rgba(245,169,208,0.14); color: var(--pink); vertical-align: 1px; font-weight: 400; }

  .connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .connect-card { margin-bottom: 0; display: flex; flex-direction: column; }
  .connect-card .panel-body { display: flex; flex-direction: column; flex: 1; }
  .connect-card .btn-primary { margin-top: auto; }
  .conn-desc { font-size: 13px; color: var(--soft); line-height: 1.7; margin-bottom: 18px; font-weight: 400; }
  .conn-badge { font-size: 11px; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 100px; font-weight: 400; }
  .conn-badge.safe { background: rgba(198,169,245,0.1); color: var(--lilac); border: 1px solid rgba(198,169,245,0.3); }
  .conn-badge.warn { background: rgba(255,201,138,0.1); color: var(--amber); border: 1px solid rgba(255,201,138,0.3); }
  .fb-file { width: 100%; margin-bottom: 16px; color: var(--dim); font-size: 12px; font-weight: 400; }
  .fb-file::file-selector-button {
    padding: 9px 15px; margin-right: 12px; cursor: pointer; background: var(--bg2);
    border: 1px solid var(--line2); border-radius: 100px; color: var(--text);
    font-family: "Inter", sans-serif; font-size: 12px; letter-spacing: 0;
  }
  .conn-status {
    margin-top: 22px; padding: 16px 20px; border: 1px solid var(--line2); border-radius: var(--radius);
    background: var(--panel); display: flex; align-items: center; gap: 14px;
    font-size: 13px; line-height: 1.6; font-weight: 400;
  }
  .conn-status.ok { border-color: rgba(198,169,245,0.4); color: var(--lilac); }
  .conn-status.err { border-color: rgba(245,169,208,0.4); color: var(--pink); }
  .conn-spinner {
    width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%;
    border: 2px solid var(--line2); border-top-color: var(--pink-d);
    animation: spin 0.9s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .conn-spinner { animation: none; } }
  .conn-status.ok .conn-spinner, .conn-status.err .conn-spinner { display: none; }

  .fb-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
  .fb-search {
    flex: 2; min-width: 220px; padding: 11px 16px; background: var(--bg2);
    border: 1px solid var(--line); border-radius: 100px; color: var(--text);
    font-family: "Inter", sans-serif; font-size: 14px; outline: none; font-weight: 400;
  }
  .fb-search:focus { border-color: var(--pink-d); }
  .fb-select {
    flex: 1; min-width: 170px; padding: 11px 14px; background: var(--bg2);
    border: 1px solid var(--line); border-radius: 100px; color: var(--text);
    font-family: "Inter", sans-serif; font-size: 13px; outline: none; cursor: pointer; font-weight: 400;
  }
  .fb-select:focus { border-color: var(--pink-d); }
  .fb-group { margin-bottom: 32px; }
  .fb-group-head {
    font-size: 13px; letter-spacing: 0.01em;
    text-transform: none; color: var(--lilac); margin-bottom: 14px;
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-weight: 500;
  }
  .fb-group-head .g-meta { color: var(--dim2); letter-spacing: 0; font-weight: 400; }
  .fb-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
  .fb-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
  .fb-judge { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--lilac); }
  .fb-pill { font-size: 11px; padding: 3px 10px; border-radius: 100px; background: rgba(167,139,255,0.1); color: var(--violet); letter-spacing: 0; font-weight: 400; }
  .fb-meta { margin-left: auto; font-size: 11px; color: var(--dim2); font-weight: 400; }
  .fb-speech-head { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 5px; font-size: 12px; color: var(--dim); font-weight: 400; }
  .fb-speech-head .sp-label { color: var(--violet); }
  .fb-speech-head .sp-topic { font-style: italic; color: var(--amber); }
  .fb-text {
    white-space: pre-wrap; font-size: 14px; line-height: 1.65; color: var(--text);
    background: var(--bg2); border-left: 2px solid var(--pink-d); border-radius: 0 8px 8px 0;
    padding: 12px 16px; margin-top: 4px; font-weight: 400;
  }
  .fb-text mark { background: rgba(255,201,138,0.28); color: var(--amber); border-radius: 3px; padding: 0 3px; }
  .fb-src { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--lilac); text-decoration: none; letter-spacing: 0; font-weight: 400; }
  .fb-src:hover { text-decoration: underline; }
  .fb-none { color: var(--dim2); text-align: center; padding: 50px 0; font-size: 13px; letter-spacing: 0.02em; font-weight: 400; }

  @media (max-width: 1080px) {
    .home-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .fw-grid { grid-template-columns: 1fr 1fr; }
    .fw-cell:nth-child(2) { border-right: none; }
    .fw-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .rfd-statbar { grid-template-columns: 1fr 1fr; }
    .rfd-statbar .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .rfd-statbar .stat-cell:nth-child(2n) { border-right: none; }
    .connect-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 820px) {
    #app.on { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; gap: 8px; border-right: none; border-bottom: 1px solid var(--line); }
    .side-logo { border: none; padding: 0 10px 0 0; margin: 0; font-size: 20px; }
    .nav-label, .side-spacer { display: none; }
    .nav-item { width: auto; padding: 8px 12px; border-left: none; border-bottom: 2px solid transparent; }
    .nav-item.active { border-bottom-color: var(--pink-d); background: none; }
    .user-chip { margin: 0; padding: 7px 11px; }
    .btn-ghost { margin: 0; }
    .main { padding: 28px 18px 56px; }
    .stat-grid, .conclusions { grid-template-columns: 1fr; }
    .c-item { border-right: none !important; }
    .ladder-label { width: 130px; }
    .rk-school { display: none; }
  }

  /* ============ PLAYER CARD V2 ============ */
  .pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 24px; position: relative; }
  .pc-stat { background: var(--panel); padding: 13px 15px; }
  .pc-stat .v { font-size: 24px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
  .pc-stat .v.pk { color: var(--pink); } .pc-stat .v.li { color: var(--lilac); } .pc-stat .v.vi { color: var(--violet); } .pc-stat .v.am { color: var(--amber); }
  .pc-stat .k { font-size: 11px; color: var(--dim); margin-top: 5px; font-weight: 400; }
  .pc-breakdown { margin-top: 20px; position: relative; }
  .pc-bd-title { font-size: 12px; font-weight: 500; color: var(--soft); margin-bottom: 10px; }
  .pc-bd-sub { font-weight: 400; color: var(--dim2); font-size: 11px; }
  .bd-row { display: grid; grid-template-columns: 92px 1fr 40px; gap: 10px; align-items: center; margin-bottom: 8px; }
  .bd-row .n { font-size: 12px; color: var(--dim); font-weight: 400; }
  .bd-row .track { height: 5px; background: rgba(255,255,255,0.05); border-radius: 5px; overflow: hidden; }
  .bd-row .fill { height: 100%; border-radius: 5px; }
  .bd-row .val { font-size: 12px; text-align: right; font-weight: 500; }
  .fineprint { font-size: 11px; color: var(--dim2); margin-top: 10px; font-weight: 400; line-height: 1.6; }

  /* ============ ROUND BLOCKS (My Feedback v2) ============ */
  .round-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
  .round-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
  .round-title { font-size: 15px; font-weight: 500; }
  .round-meta { font-size: 12px; color: var(--dim2); font-weight: 400; }
  .rank-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 100px; }
  .rank-chip.good { background: rgba(198,169,245,0.14); color: var(--lilac); border: 1px solid rgba(198,169,245,0.35); }
  .rank-chip.mid  { background: rgba(167,139,255,0.1); color: var(--violet); border: 1px solid rgba(167,139,255,0.3); }
  .rank-chip.low  { background: rgba(245,169,208,0.12); color: var(--pink); border: 1px solid rgba(245,169,208,0.3); }
  .rank-chip.none { background: rgba(255,255,255,0.03); color: var(--dim); border: 1px dashed var(--line2); cursor: pointer; }
  .rank-chip .edit { cursor: pointer; opacity: .6; }
  .rank-chip input { width: 44px; background: transparent; border: none; border-bottom: 1px solid var(--line2); color: var(--text); font-family: "Inter", sans-serif; font-size: 12px; outline: none; text-align: center; }
  .round-body { padding: 8px 20px 14px; }
  .judge-sub { margin-top: 12px; }
  .judge-sub .jname { font-size: 14px; font-weight: 500; color: var(--lilac); }

  /* ============ ANALYSIS V2 ============ */
  .class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
  .class-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; border-top: 3px solid var(--line2); }
  .class-card.hm-pos { border-top-color: var(--lilac); }
  .class-card.hm-neg { border-top-color: var(--pink); }
  .class-card.prereq { border-top-color: var(--violet); }
  .class-card.noise  { border-top-color: var(--dim2); }
  .class-card h4 { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
  .class-card .cc-sub { font-size: 11px; color: var(--dim); font-weight: 400; margin-bottom: 12px; line-height: 1.5; }
  .class-card .cc-item { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
  .class-card .cc-item:last-child { border-bottom: none; }
  .class-card .cc-item .d { color: var(--dim); font-size: 12px; }
  .class-card .cc-empty { font-size: 12px; color: var(--dim2); font-weight: 400; }
  .bargraph { display: grid; gap: 9px; }
  .bg-row { display: grid; grid-template-columns: 170px 1fr 84px; gap: 12px; align-items: center; }
  .bg-row .n { font-size: 13px; color: var(--soft); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bg-track { height: 16px; background: rgba(255,255,255,0.04); border-radius: 100px; overflow: hidden; display: flex; }
  .bg-fill { height: 100%; }
  .bg-val { font-size: 12px; color: var(--dim); font-weight: 400; text-align: right; }
  .swing-pair { display: flex; align-items: center; gap: 6px; height: 16px; }
  .swing-base { width: 2px; height: 16px; background: var(--dim2); }

  /* ============ FRIENDS ============ */
  .fr-code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .fr-code { font-size: 22px; font-weight: 300; letter-spacing: 0.22em; color: var(--pink); }
  .fr-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
  .fr-name { font-size: 16px; font-weight: 500; }
  .fr-team { font-size: 12px; color: var(--dim); font-weight: 400; }
  .fr-stats { display: flex; gap: 22px; flex-wrap: wrap; }
  .fr-stat { text-align: center; }
  .fr-stat .v { font-size: 20px; font-weight: 300; }
  .fr-stat .k { font-size: 10px; color: var(--dim2); font-weight: 400; }
  .fr-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; }
  .ch-new { display: flex; gap: 12px; flex-wrap: wrap; }
  .ch-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .ch-card .lbl { font-size: 14px; font-weight: 500; }
  .ch-card .opp { font-size: 12px; color: var(--dim); font-weight: 400; }
  .ch-score { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 13px; font-weight: 400; }
  .ch-lead { padding: 3px 11px; border-radius: 100px; font-size: 11px; font-weight: 500; }
  .ch-lead.you { background: rgba(198,169,245,0.14); color: var(--lilac); }
  .ch-lead.them { background: rgba(245,169,208,0.12); color: var(--pink); }
  .ch-lead.tie { background: rgba(255,255,255,0.05); color: var(--dim); }

  /* ============ PREP PLAN ============ */
  .prep-form { display: flex; gap: 12px; flex-wrap: wrap; }
  .prep-focuses { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
  .focus-pill { padding: 8px 16px; border-radius: 100px; border: 1px solid var(--line2); color: var(--dim); font-size: 13px; cursor: pointer; font-weight: 400; transition: all .15s; background: none; font-family: "Inter", sans-serif; }
  .focus-pill.on { background: rgba(245,169,208,0.12); border-color: var(--pink-d); color: var(--pink); }
  .bill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--line2); font-size: 12px; color: var(--soft); margin: 0 6px 6px 0; font-weight: 400; }
  .bill-tag button { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 13px; }
  .prep-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
  .prep-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); }
  .cal-day { background: var(--panel); padding: 12px 12px 14px; min-height: 110px; }
  .cal-day .d-label { font-size: 11px; color: var(--dim); font-weight: 500; margin-bottom: 8px; }
  .cal-day.today .d-label { color: var(--pink); }
  .todo { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; padding: 4px 0; cursor: pointer; color: var(--soft); font-weight: 400; line-height: 1.45; }
  .todo .box { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; border: 1px solid var(--line2); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #14121A; }
  .todo.done { color: var(--dim2); text-decoration: line-through; }
  .todo.done .box { background: var(--lilac); border-color: var(--lilac); }
  .bill-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 400; }
  .bill-row:last-child { border-bottom: none; }
  .bill-row .btn-link { padding: 5px 13px; font-size: 12px; }
  .bill-row.done { color: var(--dim2); }
  .bill-row.done .b-name { text-decoration: line-through; }

  /* ============ TEAM ============ */
  .tm-team { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
  .tm-roster { display: flex; gap: 8px; flex-wrap: wrap; }
  .tm-member { padding: 7px 15px; border-radius: 100px; border: 1px solid var(--line2); font-size: 13px; color: var(--soft); font-weight: 400; background: none; font-family: "Inter", sans-serif; }
  .tm-member.clickable { cursor: pointer; }
  .tm-member.clickable:hover { border-color: var(--pink-d); color: var(--pink); }
  .tm-code { font-size: 16px; letter-spacing: 0.2em; color: var(--pink); font-weight: 400; }
  .tm-drill { border-top: 1px solid var(--line); padding: 18px 22px; }
  .asn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 400; }
  .asn-row:last-child { border-bottom: none; }
  .asn-kind { font-size: 10px; padding: 3px 9px; border-radius: 100px; font-weight: 500; }
  .asn-kind.homework { background: rgba(198,169,245,0.12); color: var(--lilac); }
  .asn-kind.prep { background: rgba(245,169,208,0.12); color: var(--pink); }
  .asn-kind.goal { background: rgba(255,201,138,0.12); color: var(--amber); }
  .asn-new { display: grid; grid-template-columns: 110px 1fr 1fr 130px auto; gap: 10px; margin-top: 14px; }
  @media (max-width: 900px) { .asn-new { grid-template-columns: 1fr 1fr; } }
  .matrix { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; }
  .matrix th, .matrix td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
  .matrix th { color: var(--dim2); font-weight: 500; }
  .mx-done { color: var(--lilac); } .mx-not { color: var(--dim2); }

  /* ============ CONFETTI ============ */
  #confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
  .cf { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: .95;
    animation: cfall linear forwards; }
  @keyframes cfall { to { transform: translateY(105vh) rotate(720deg); opacity: .7; } }
  @media (prefers-reduced-motion: reduce) { .cf { display: none; } }

  /* ============ DELIVERY LAB ============ */
  .dl-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
  .dl-btn { margin: 0; width: auto; padding: 11px 22px; }
  .dl-stage { margin-top: 20px; display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
  #dl-video { width: 100%; border-radius: 12px; background: #000; border: 1px solid var(--line2); aspect-ratio: 4/3; object-fit: cover; }
  .dl-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-content: start; }
  .dl-meter { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
  .dl-meter .m-label { font-size: 11px; color: var(--dim); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
  .dl-meter .m-value { font-size: 26px; font-weight: 300; margin-top: 6px; letter-spacing: -0.02em; }
  .dl-meter .m-value.good { color: var(--lilac); } .dl-meter .m-value.warn { color: var(--pink); } .dl-meter .m-value.note { color: var(--amber); }
  .dl-meter .m-sub { font-size: 11px; color: var(--dim2); margin-top: 4px; font-weight: 400; }
  .dl-feed { margin-top: 16px; max-height: 190px; overflow-y: auto; display: grid; gap: 6px; }
  .dl-ev { display: flex; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 400; padding: 7px 12px; border-radius: 9px; background: var(--bg2); border-left: 2px solid var(--line2); }
  .dl-ev .t { color: var(--dim2); font-size: 11px; min-width: 40px; }
  .dl-ev.good { border-left-color: var(--lilac); } .dl-ev.warn { border-left-color: var(--pink); } .dl-ev.note { border-left-color: var(--amber); }
  .dl-report-top { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
  .dl-sv .sv-n { font-size: 74px; font-weight: 300; letter-spacing: -0.04em; line-height: 1;
    background: var(--grad-wordmark); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .dl-sv .sv-l { font-size: 11px; letter-spacing: 0.2em; color: var(--dim); font-weight: 500; margin-top: 8px; }
  .dl-subscores { flex: 1; min-width: 280px; display: grid; gap: 9px; }
  .dl-seg { border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-top: 10px; }
  .dl-seg .s-head { display: flex; gap: 12px; align-items: baseline; font-size: 13px; font-weight: 500; }
  .dl-seg .s-time { color: var(--dim2); font-size: 12px; font-weight: 400; }
  .dl-seg .s-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

  /* ============ SMOOTH MOTION (site-wide) ============ */
  .nav-item, .btn-primary, .btn-ghost, .btn-link, .event-pill, .focus-pill,
  .tm-member, .rank-chip, .auth-tab, .fb-select, .fb-search, .todo, .sw-btn {
    transition: background .28s ease, color .28s ease, border-color .28s ease,
                box-shadow .28s ease, transform .22s ease, opacity .28s ease;
  }
  .btn-primary:hover { transform: translateY(-1px); }
  .btn-link:hover, .btn-ghost:hover { transform: translateY(-1px); }
  .view.on { animation: viewIn .45s cubic-bezier(.22,.8,.3,1); }
  .panel { transition: border-color .3s ease; }
  .dl-ev-in { animation: evIn .35s cubic-bezier(.22,.8,.3,1); }
  @keyframes evIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .m-value { transition: color .4s ease, opacity .25s ease; }
  .m-value.m-swap { opacity: 0.25; }
  .dl-fill { transition: width .9s cubic-bezier(.22,.8,.3,1); }
  .attr-fill, .bd-row .fill, .judge-fill, .bg-fill { transition: width .7s cubic-bezier(.22,.8,.3,1); }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    .view.on, .dl-ev-in { animation: none; }
    .dl-fill, .attr-fill, .bd-row .fill, .judge-fill, .bg-fill { transition: none; }
  }

  /* ============ LIGHT MODE — Apple-clean ============ */
  body.light {
    --void:   #F5F5F7;
    --bg2:    #FFFFFF;
    --panel:  #FFFFFF;
    --panel2: #FAFAFC;
    --line:   #E8E8ED;
    --line2:  #D9D9E0;
    --text:   #1D1D1F;
    --soft:   #3A3A3E;
    --dim:    #6E6E73;
    --dim2:   #98989D;
    --pink:     #D64A97;
    --pink-d:   #C2337F;
    --lilac:    #7E5BD6;
    --lilac-d:  #6A48BF;
    --violet:   #6E56CF;
    --violet-d: #5B45B0;
    --amber:    #C77618;
    --grad-wordmark: linear-gradient(100deg, #1D1D1F 20%, #C2337F 55%, #6A48BF 88%);
    --grad-holo: linear-gradient(135deg, #D64A97, #7E5BD6 55%, #6E56CF 95%);
  }
  body.light::before {
    background: radial-gradient(ellipse 70% 45% at 50% -8%, rgba(214,74,151,0.06), transparent 62%),
                radial-gradient(ellipse 60% 40% at 85% 5%, rgba(126,91,214,0.05), transparent 60%);
  }
  body.light .panel, body.light .auth-card, body.light .fr-card, body.light .prep-card,
  body.light .tm-team, body.light .round-block, body.light .fb-card, body.light .class-card,
  body.light .dl-meter, body.light .dl-seg, body.light .acard {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  }
  body.light .btn-primary { background: #1D1D1F; color: #fff; }
  body.light .btn-primary:hover { background: #3A3A3E; }
  body.light .event-pill.active { background: #1D1D1F; border-color: #1D1D1F; color: #fff; }
  body.light .player-card-inner { background: linear-gradient(170deg, #FFFFFF 0%, #F7F5FB 72%); }
  body.light .player-card-inner::before { background: radial-gradient(ellipse 90% 45% at 50% -5%, rgba(214,74,151,0.08), transparent 68%); }
  body.light .judge-fill span { color: #fff; }
  body.light #dl-video { background: #EAEAEE; }
  body.light .form-box.top { background: rgba(126,91,214,0.12); }
  body.light .fb-text { background: #FAFAFC; }
  body, .panel, .auth-card, input, select { transition: background .35s ease, color .35s ease, border-color .35s ease; }

  /* ============ ANALYSIS V3: colorblind-safe + interactive ============ */
  .class-card.hm-pos { border-top-color: var(--violet); }
  .class-card.hm-neg { border-top-color: var(--amber); }
  .class-card.prereq { border-top-color: var(--lilac); }
  .clickable { cursor: pointer; }
  .cc-item.clickable:hover, .bg-row.clickable:hover .n { color: var(--violet); }
  .bg-row.clickable { border-radius: 8px; padding: 2px 6px; margin: 0 -6px; transition: background .25s ease; }
  .bg-row.clickable:hover { background: rgba(127,127,127,0.06); }
  .evi-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .evi-row:last-child { border-bottom: none; }
  .evi-glyph { font-size: 13px; margin-top: 2px; }
  .evi-row.praised .evi-glyph { color: var(--violet); }
  .evi-row.critiqued .evi-glyph { color: var(--amber); }
  .evi-row.neutral .evi-glyph { color: var(--dim2); }
  .evi-quote { font-size: 13.5px; font-weight: 400; line-height: 1.6; }
  .evi-meta { font-size: 11.5px; color: var(--dim2); margin-top: 4px; font-weight: 400; }
  .standout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
  .so-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .25s ease, transform .22s ease; }
  .so-card:hover { border-color: var(--violet); transform: translateY(-2px); }
  .so-name { font-size: 16px; font-weight: 500; }
  .so-fam { font-size: 11px; color: var(--dim2); font-weight: 400; margin-top: 2px; }
  .so-stat { font-size: 12.5px; color: var(--soft); font-weight: 400; margin-top: 10px; line-height: 1.5; }
  .so-eff { font-size: 12px; margin-top: 6px; color: var(--dim); font-weight: 400; }

  /* ============ SOCIAL LAYER ============ */
  .badge-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px;
    border: 1px solid rgba(198,169,245,0.4); background: rgba(198,169,245,0.08); color: var(--lilac);
    font-size: 12px; font-weight: 500; margin: 0 8px 8px 0; }
  .feed-item { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .feed-item:last-child { border-bottom: none; }
  .feed-text { flex: 1; font-size: 13.5px; font-weight: 400; line-height: 1.5; }
  .feed-meta { font-size: 11px; color: var(--dim2); font-weight: 400; white-space: nowrap; }
  .prop-btn { background: none; border: 1px solid var(--line2); border-radius: 100px; padding: 5px 13px;
    color: var(--dim); font-family: "Inter", sans-serif; font-size: 12px; cursor: pointer;
    transition: all .25s ease; }
  .prop-btn:hover { border-color: var(--pink-d); color: var(--pink); transform: translateY(-1px); }
  .prop-btn.on { background: rgba(245,169,208,0.14); border-color: var(--pink-d); color: var(--pink); }
  .props-board { padding: 8px 12px; border: 1px dashed var(--line2); border-radius: 10px; margin-bottom: 12px; }
  .rivalry-card { border-color: rgba(255,201,138,0.35); }
  .riv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
  .riv-cell .k { font-size: 11px; color: var(--dim2); font-weight: 400; }
  .riv-vs { font-size: 20px; font-weight: 300; margin-top: 4px; }
  .prof-split { margin-bottom: 16px; }
  .prof-hist { display: flex; gap: 8px; align-items: flex-end; height: 84px; margin: 8px 0 16px; }
  .ph-col { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 34px; }
  .ph-bar { width: 100%; border-radius: 5px 5px 0 0; transition: height .6s cubic-bezier(.22,.8,.3,1); }
  .ph-lbl { font-size: 10px; color: var(--dim2); }
  .prof-strip { display: flex; gap: 4px; margin: 8px 0 14px; }
  .ps-cell { width: 22px; height: 22px; border-radius: 5px; }
  .trend-row { display: flex; gap: 14px; align-items: center; padding: 7px 0; }
  .trend-row .n { font-size: 13px; color: var(--soft); font-weight: 400; min-width: 160px; }
  .rfd-filterbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
  .hm-cell { display: inline-block; min-width: 34px; text-align: center; padding: 5px 8px; border-radius: 7px;
    background: var(--violet); color: #14121A; font-weight: 500; font-size: 12px; }
  .donut-wrap { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
  .donut { width: 170px; height: 170px; transform: rotate(0deg); }
  .donut-legend { display: grid; gap: 8px; }
  .dl-row2 { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 400; }
  .dl-swatch { width: 13px; height: 13px; border-radius: 4px; }
  .gh-detail { padding: 6px 12px 10px; }

  /* ============ COACH SUITE ============ */
  .team-trend { display: flex; gap: 10px; align-items: flex-end; margin: 10px 0 4px; flex-wrap: wrap; }
  .tt-col { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 46px; }
  .tt-bar { width: 100%; border-radius: 6px 6px 0 0; transition: height .6s cubic-bezier(.22,.8,.3,1); }
  .tt-val { font-size: 11px; color: var(--soft); font-weight: 500; }
  .tt-lbl { font-size: 10px; color: var(--dim2); }
  .matrix.lb th { white-space: nowrap; user-select: none; }
  .matrix.lb th.clickable:hover { color: var(--violet); }
  .post-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .post-row:last-child { border-bottom: none; }
  .post-text { font-size: 13.5px; font-weight: 400; line-height: 1.55; }
  .asn-kind.practice { background: rgba(167,139,255,0.12); color: var(--violet); }

  /* ============ PLANS + GROWTH ============ */
  .plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: 18px; }
  .plan-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; display: flex; flex-direction: column; }
  .plan-card.hot { border-color: var(--lilac); box-shadow: 0 0 0 1px rgba(198,169,245,0.25); }
  .pl-tag { position: absolute; top: -10px; left: 22px; font-size: 10px; letter-spacing: 0.14em; font-weight: 600;
    background: var(--lilac); color: #14121A; padding: 3px 12px; border-radius: 100px; }
  .pl-name { font-size: 17px; font-weight: 600; }
  .pl-price { font-size: 26px; font-weight: 300; margin: 10px 0 14px; }
  .pl-price span { font-size: 12px; color: var(--dim2); font-weight: 400; }
  .pl-list { list-style: none; flex: 1; }
  .pl-list li { font-size: 13.5px; color: var(--dim); padding: 5px 0; font-weight: 400; }
  .pl-list li::before { content: "\2713  "; color: var(--lilac); }
  .pl-btn { margin-top: 18px; width: 100%; }
  .plus-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 100px;
    border: 1px dashed rgba(198,169,245,0.5); color: var(--lilac); font-size: 12px; font-weight: 500;
    cursor: pointer; background: none; font-family: "Inter", sans-serif; opacity: .85;
    transition: all .25s ease; }
  .plus-chip:hover { opacity: 1; background: rgba(198,169,245,0.08); transform: translateY(-1px); }
  .onb-strip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 22px; margin-bottom: 22px; }
  .onb-steps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
  .onb-step { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 100px;
    border: 1px solid var(--line2); font-size: 12.5px; color: var(--dim); font-weight: 400; cursor: pointer;
    background: none; font-family: "Inter", sans-serif; transition: all .25s ease; }
  .onb-step.done { border-color: rgba(198,169,245,0.5); color: var(--lilac); }
  .onb-step .b { width: 15px; height: 15px; border-radius: 100px; border: 1px solid var(--line2);
    display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
  .onb-step.done .b { background: var(--lilac); border-color: var(--lilac); color: #14121A; }
  /* wrapped */
  #wrapped { position: fixed; inset: 0; z-index: 1000; background: var(--void); display: flex;
    align-items: center; justify-content: center; cursor: pointer; }
  #wrapped::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,169,208,0.14), transparent 60%),
                radial-gradient(ellipse 60% 45% at 85% 100%, rgba(167,139,255,0.12), transparent 60%); }
  .wr-slide { text-align: center; max-width: 620px; padding: 0 30px; animation: wrIn .6s cubic-bezier(.22,.8,.3,1); position: relative; }
  @keyframes wrIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
  .wr-eyebrow { font-size: 12px; letter-spacing: 0.2em; color: var(--dim); font-weight: 500; }
  .wr-big { font-size: clamp(54px, 11vw, 120px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 18px 0;
    background: var(--grad-wordmark); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .wr-sub { font-size: 16px; color: var(--soft); line-height: 1.7; font-weight: 400; }
  .wr-hint { position: fixed; bottom: 26px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--dim2); font-weight: 400; }
  .wr-dots { display: flex; gap: 7px; justify-content: center; margin-top: 30px; }
  .wr-dot { width: 7px; height: 7px; border-radius: 100px; background: var(--line2); }
  .wr-dot.on { background: var(--pink); }
  .founder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  @media (prefers-reduced-motion: reduce) { .wr-slide { animation: none; } }
