@layer hall {
  .v2-growth-card {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin-block: 12px 16px;
    padding: clamp(12px, 3vw, 20px);
    border: 1px solid var(--hair-2);
    border-radius: var(--r-2);
    background: radial-gradient(ellipse at top left, var(--panel-elev), var(--panel-solid) 75%);
    overflow-wrap: anywhere;
  }
  .v2-growth-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font: 700 1.125rem/1.35 var(--serif);
  }
  .v2-growth-title span {
    padding: 3px 9px;
    border: 1px solid #ffac9c70;
    border-radius: var(--r-pill);
    background: #ff907f19;
    color: #ffd8b7;
    font: 700 .75rem/1.4 var(--sans);
  }
  .v2-growth-xp { display: grid; gap: 5px; color: var(--soft); }
  .v2-growth-xp progress {
    appearance: none;
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--veil-2);
    accent-color: var(--go);
  }
  .v2-growth-xp progress::-webkit-progress-bar { border-radius: inherit; background: var(--veil-2); }
  .v2-growth-xp progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, #e078a6, #ffd0a1); }
  .v2-growth-xp progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, #e078a6, #ffd0a1); }
  .v2-growth-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }
  .v2-growth-stats div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3px;
    padding: 8px;
    border-radius: var(--r-1);
    background: var(--veil);
  }
  .v2-growth-stats dt { color: var(--soft); font-size: .75rem; }
  .v2-growth-stats dd { margin: 0; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
  .v2-stamp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .v2-stamp-grid li {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--hair-2);
    border-radius: var(--r-1);
    color: var(--dim);
    font-size: .8125rem;
    line-height: 1.35;
  }
  .v2-stamp-grid li > span { font-size: 1.05rem; }
  .v2-stamp-grid li small { color: var(--soft); font-size: .75rem; }
  .v2-stamp-grid [data-unlocked="true"] {
    border-color: #ffb08780;
    background: linear-gradient(145deg, #ff907f20, #ffce9720);
    color: #ffd8b7;
    box-shadow: 0 0 14px #ff9a801b inset;
  }

  .solo-setup .v2-persona-picker { min-width: 0; margin-block: 0 14px; }
  .v2-persona-picker > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: 8px;
  }
  .v2-persona-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--hair-2);
    border-radius: var(--r-1);
    background: var(--veil);
    color: var(--text);
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  .v2-persona-option span { display: grid; min-width: 0; gap: 2px; }
  .v2-persona-option small { color: var(--soft); font-size: .75rem; line-height: 1.4; }
  .v2-persona-option input { flex: none; margin: 0; accent-color: var(--go); }
  .v2-persona-option:has(:checked) { border-color: var(--gold); background: #ff9ebb1c; }
  .v2-persona-option:has(:focus-visible) { outline: 2px solid var(--go); outline-offset: 2px; }

  #social {
    margin-block: 18px;
    min-width: 0;
    padding: clamp(12px, 3vw, 24px);
    border: 1px solid var(--hair-2);
    border-radius: var(--r-3);
    background: var(--panel-solid);
    overflow-wrap: anywhere;
  }

  #social .social-heading { gap: 8px; }
  #social-title {
    font: 700 clamp(1.25rem, 3vw, 1.625rem)/1.3 var(--serif);
  }

  #social :is(.directory-tools, .social-options, .social-options .field, select) {
    min-width: 0;
    max-width: 100%;
  }
  #social .directory-tools details {
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--hair);
    border-radius: var(--r-1);
    background: var(--veil);
    color: var(--soft);
  }
  #social .directory-tools details[open] { padding-bottom: 10px; }
  #social summary {
    min-height: 44px;
    margin: 0;
    padding-block: 10px;
    cursor: pointer;
  }
  #social :is(select, input:not([type="checkbox"]), .toggle, .button, .text-button),
  #widen-match-form .toggle { min-height: 44px; }
  #social :is(.text-button, .button) { min-width: 44px; max-width: 100%; }
  #social .toggle, #widen-match-form .toggle { cursor: pointer; }

  .online-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
  }
  @media (min-width: 720px) {
    .online-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  .online-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-content: start;
    gap: 12px;
    padding: clamp(12px, 2.5vw, 18px);
    border: 1px solid var(--hair-2);
    border-radius: var(--r-2);
    background: linear-gradient(155deg, var(--panel-elev), var(--panel-strong));
  }
  .online-card h3 {
    margin: 0 0 8px;
    color: var(--text);
    font: 700 1.2rem/1.3 var(--serif);
  }
  .online-card p { margin: 8px 0 0; color: var(--soft); }
  .online-card .online-tags { margin-block: 10px 0; }
  .online-card .online-tags li {
    border-color: var(--hair-2);
    border-radius: var(--r-pill);
    background: var(--veil);
  }
  .online-card-chips, .v2-ready-player-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }
  .v2-hall-role, .online-compatibility, .v2-ready-status {
    padding: 3px 8px;
    border: 1px solid var(--hair-2);
    border-radius: var(--r-pill);
    background: var(--veil);
    color: var(--soft);
    font-size: .75rem;
    line-height: 1.4;
  }
  .v2-hall-role[data-role="controller"] { color: var(--slow); }
  .v2-hall-role[data-role="receiver"] { color: var(--stop); }
  .v2-hall-role[data-role="either"] { color: var(--gold-2); }
  .online-compatibility[data-compatible="true"], .v2-ready-status[data-ready="true"] {
    border-color: var(--hair-2);
    background: var(--veil-2);
    color: var(--mint);
  }
  #social .social-row {
    padding: 12px;
    margin-block: 8px;
    border: 1px solid var(--hair);
    border-radius: var(--r-1);
    background: var(--veil);
  }
  #social .social-row > div { min-width: 0; }
  #social .social-row small { color: var(--soft); }
  #social .social-actions .button {
    padding-inline: 12px;
    text-align: center;
  }
  #social [data-action="play-voice-sample"][aria-pressed="true"] {
    border-color: var(--gold);
    color: var(--gold-2);
  }
  #social .v2-card-block {
    padding-inline: 8px;
    color: var(--soft);
    font-size: .75rem;
  }
  #social .v2-card-block:hover { color: var(--text); }
  .v2-voice-marks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    flex-basis: 100%;
    padding-block-start: 8px;
    border-top: 1px solid var(--hair);
  }
  .v2-voice-marks details { min-width: 0; max-width: 100%; }
  .v2-voice-marks details[open] { flex-basis: 100%; }
  #social .v2-voice-marks summary, .v2-blocks summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 10px;
    color: var(--gold-2);
    cursor: pointer;
  }
  .v2-mark-words, .v2-mark-top {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
  }
  #social .v2-mark-words .button {
    padding: 5px 8px;
    font-size: .8125rem;
    white-space: normal;
  }
  #social .v2-mark-words [aria-pressed="true"] {
    border-color: var(--gold);
    color: var(--gold-2);
  }
  .v2-mark-top { margin: 0; }
  .v2-mark-top li, .v2-mark-mutual {
    padding: 3px 8px;
    border-radius: var(--r-pill);
    background: var(--veil);
    color: var(--soft);
    font-size: .75rem;
  }
  .v2-mark-mutual {
    border: 1px solid var(--gold);
    color: var(--gold-2);
  }
  .v2-blocks ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
  .v2-blocks li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
  .v2-blocks li span { overflow-wrap: anywhere; }
  #settings-form select[name="invitePolicy"] { width: 100%; min-width: 0; }
  [data-blocked-management]:empty { display: none; }
  .v2-local-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 12px;
  }
  #dialog:has(.v2-local-panel) {
    width: min(560px, calc(100% - 28px));
  }
  .v2-local-panel .button, .v2-local-tools .button {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .v2-local-panel [data-tool-status]:empty,
  .v2-local-panel [data-recovery-state]:empty {
    display: none;
  }
  .v2-local-panel [data-tool-status]:not(:empty) {
    color: var(--gold-2);
  }
  .v2-deck-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
  }
  .v2-deck-list > li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .v2-deck-editor-card input {
    flex: 1 1 10rem;
    min-width: 0;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--hair-2);
    border-radius: var(--r-1);
    background: var(--ink-1);
    color: var(--text);
  }
  .v2-deck-editor-card select {
    min-height: 42px;
    max-width: 100%;
  }
  .v2-deck-favorite[aria-pressed="true"] {
    color: var(--gold-2);
    border-color: var(--gold);
  }
  .v2-tool-code {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
  }
  .v2-tool-code .field {
    flex: 1 1 16rem;
    min-width: 0;
    margin-bottom: 0;
  }
  .v2-tool-code input {
    font: 600 .8125rem ui-monospace, monospace;
  }
  #deck-import, #deck-report, #recovery-restore {
    margin-top: 16px;
    padding-top: 4px;
    border-top: 1px solid var(--hair);
  }
  @media (max-width: 440px) {
    .v2-deck-editor-card input {
      flex-basis: 100%;
      order: -1;
    }
  }
  .v2-hall-empty {
    padding: clamp(14px, 4vw, 28px);
    border: 1px solid var(--hair);
    border-radius: var(--r-2);
    background: radial-gradient(ellipse at top left, var(--panel-elev), var(--panel-strong) 75%);
  }
  .v2-hall-empty h3 { margin: 0; font-family: var(--serif); }
  .v2-hall-empty p { margin: 6px 0 14px; color: var(--soft); }

  .inline-voice {
    grid-column: 1 / -1;
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--hair-2);
    border-radius: var(--r-1);
    background: var(--panel-solid);
  }
  .inline-voice-stop {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-pill);
    background: var(--veil-2);
    color: var(--gold-2);
  }
  .inline-voice-stop span {
    width: 11px;
    height: 13px;
    border-inline: 3px solid currentColor;
  }
  .inline-voice progress {
    appearance: none;
    width: 100%;
    height: 6px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--veil-2);
    accent-color: var(--go);
  }
  .inline-voice progress::-webkit-progress-bar { border-radius: inherit; background: var(--veil-2); }
  .inline-voice progress::-webkit-progress-value { border-radius: inherit; background: var(--rose-grad); transition: width .22s linear; }
  .inline-voice progress::-moz-progress-bar { border-radius: inherit; background: var(--rose-grad); }
  .inline-voice-time { color: var(--soft); font-size: .75rem; white-space: nowrap; }

  .v2-ready-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 36rem);
    gap: 8px;
    margin-block: 16px 4px;
    padding: 8px;
    border: 1px solid var(--hair-2);
    border-radius: var(--r-2);
    background: var(--panel-solid);
    text-align: start;
    overflow-wrap: anywhere;
  }
  .v2-ready-player {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    padding: 10px;
    border-radius: var(--r-1);
    background: var(--veil);
  }
  .v2-ready-label, .v2-ready-params dt { color: var(--soft); font-size: .75rem; }
  .v2-ready-player strong { font-family: var(--serif); font-size: 1rem; line-height: 1.35; }
  .v2-ready-params {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 8px 8px 0;
    border-top: 1px solid var(--hair);
  }
  .v2-ready-params dd { margin: 1px 0 0; color: var(--text); font-size: .8125rem; line-height: 1.45; }

  .match-pill { flex-wrap: wrap; justify-content: center; gap: 5px; width: max-content; }
  .match-pill [data-action="pill-widen"] { color: var(--gold-2); }
  #widen-match-form .toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--hair);
    border-radius: var(--r-1);
    background: var(--veil);
  }
  .v2-widen-note { padding-inline-start: 10px; border-inline-start: 2px solid var(--gold); }

  .v2-match-found {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    isolation: isolate;
    width: 100%;
    padding: 24px;
    overflow: hidden;
    background: radial-gradient(ellipse at center, var(--panel-elev), var(--ink-0) 74%);
    color: var(--text);
    animation: match-found-veil 950ms both;
  }
  .v2-match-found-copy {
    display: grid;
    gap: 6px;
    justify-items: center;
    max-width: min(100%, 36rem);
    overflow-wrap: anywhere;
  }
  .v2-match-found-copy strong { font: 700 clamp(2rem, 8vw, 4rem)/1.2 var(--serif); }
  .v2-match-found-copy small { color: var(--gold-2); }
  .v2-match-found-orbs {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    pointer-events: none;
  }
  .v2-match-found-orbs::before, .v2-match-found-orbs::after {
    content: "";
    grid-area: 1 / 1;
    width: min(54vw, 20rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--go), transparent 69%);
    --orb-from: -95%;
    --orb-to: -12%;
    animation: match-found-orb 780ms var(--out) both;
  }
  .v2-match-found-orbs::after {
    --orb-from: 95%;
    --orb-to: 12%;
    background: radial-gradient(circle, var(--slow), transparent 69%);
  }
  @keyframes match-found-orb {
    from { transform: translateX(var(--orb-from)) scale(.82); opacity: .64; }
    to { transform: translateX(var(--orb-to)) scale(1.3); opacity: .27; }
  }
  @keyframes match-found-veil {
    0%, 100% { opacity: 0; }
    14%, 76% { opacity: 1; }
  }
}
