:root {
  color-scheme: dark;
  --bg: #0c0913;
  --bg-raised: #130e20;
  --panel: rgba(29, 22, 44, 0.9);
  --panel-solid: #1d162c;
  --panel-soft: rgba(255, 255, 255, 0.045);
  --ink: #fffaf3;
  --muted: #b9b0c6;
  --muted-deep: #81788d;
  --pink: #f25ab5;
  --purple: #8757ee;
  --purple-bright: #a376ff;
  --mint: #5ce7bd;
  --orange: #ffb45f;
  --red: #ff718b;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --shadow: 0 28px 75px rgba(0, 0, 0, 0.32);
  --header-height: 72px;
  --sidebar-width: 290px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 52% -20%, rgba(111, 63, 201, 0.27), transparent 35rem), linear-gradient(180deg, #120d1e, var(--bg) 35%); }
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; border-radius: 10px; color: #120d1c; background: var(--mint); font-weight: 850; transform: translateY(-160%); transition: transform 140ms ease; }
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; z-index: -1; width: 34rem; height: 34rem; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.ambient-one { top: -19rem; right: -13rem; background: rgba(135, 87, 238, 0.18); }
.ambient-two { bottom: -24rem; left: 12%; background: rgba(242, 90, 181, 0.08); }

:focus-visible { outline: 3px solid rgba(92, 231, 189, 0.86); outline-offset: 3px; }
.surface { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(34, 26, 51, 0.94), rgba(23, 17, 35, 0.96)); box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.035); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: 1.08rem; font-weight: 900; letter-spacing: -0.035em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { margin-left: 3px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--muted-deep); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #c7bdd0; font-size: 0.67rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.eyebrow > span { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px rgba(92, 231, 189, 0.72); }

.primary-button, .secondary-button, .danger-button, .oauth-button, .icon-button, .text-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 850; transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, opacity 150ms ease; }
.primary-button { padding: 0 17px; color: #130d1b; background: linear-gradient(110deg, #65e7bd, #afeed8); box-shadow: 0 15px 38px rgba(71, 221, 174, 0.13); }
.secondary-button { padding: 0 15px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.045); }
.danger-button { padding: 0 16px; border: 1px solid rgba(255, 113, 139, 0.35); color: #ffd7df; background: rgba(255, 80, 113, 0.12); }
.primary-button:hover, .secondary-button:hover, .danger-button:hover, .oauth-button:hover { transform: translateY(-1px); }
.secondary-button:hover { border-color: rgba(92, 231, 189, 0.36); background: rgba(92, 231, 189, 0.07); }
.danger-button:hover { border-color: rgba(255, 113, 139, 0.6); background: rgba(255, 80, 113, 0.18); }
button:disabled, a[aria-disabled="true"] { cursor: not-allowed; opacity: 0.46; transform: none !important; }
.full-button { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-button { width: 40px; height: 40px; min-height: 40px; flex: 0 0 auto; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-size: 1.08rem; }
.icon-button:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.075); }
.text-button, .danger-text { min-height: 0; padding: 4px; border: 0; color: var(--mint); background: none; cursor: pointer; font-size: 0.78rem; font-weight: 850; }
.danger-text { color: #ff9aad; }

/* Boot and sign-in */
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 17px; text-align: center; }
.boot-screen img { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 22px 70px rgba(135, 87, 238, 0.34); }
.boot-screen p { color: var(--muted); font-size: 0.84rem; }
.spinner { width: 23px; height: 23px; border: 2px solid rgba(255, 255, 255, 0.16); border-top-color: var(--mint); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.signin-page { width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; }
.signin-header { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.quiet-link { color: var(--muted); font-size: 0.8rem; font-weight: 750; }
.quiet-link:hover { color: var(--ink); }
.signin-main { min-height: calc(100vh - 110px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.75fr); align-items: center; gap: clamp(50px, 9vw, 128px); padding: 54px 0 100px; }
.signin-copy, .signin-card { min-width: 0; }
.signin-copy h1 { max-width: 710px; margin: 17px 0 25px; font-size: clamp(3.4rem, 6.4vw, 6.4rem); line-height: 0.92; letter-spacing: -0.071em; }
.signin-copy h1 em { font-style: normal; background: linear-gradient(105deg, #fff 0%, #f49dce 36%, #a982f4 88%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.signin-lede { max-width: 660px; color: #c5bbcb; font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.67; }
.signin-proof { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.signin-proof li { display: flex; align-items: flex-start; gap: 15px; }
.signin-proof li > span { width: 28px; padding-top: 3px; color: var(--mint); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.08em; }
.signin-proof div { display: grid; gap: 4px; }
.signin-proof strong { font-size: 0.9rem; }
.signin-proof small { color: var(--muted-deep); font-size: 0.76rem; line-height: 1.45; }
.signin-card { position: relative; padding: clamp(28px, 4vw, 43px); border-radius: 26px; overflow: hidden; }
.signin-card::before { content: ""; position: absolute; width: 18rem; height: 18rem; right: -9rem; top: -10rem; border-radius: 50%; background: rgba(135, 87, 238, 0.23); filter: blur(45px); }
.signin-mark { position: relative; width: 54px; height: 54px; margin-bottom: 30px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, 0.05); }
.signin-card h2 { position: relative; margin: 9px 0 13px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.08; letter-spacing: -0.045em; }
.signin-card > p:not(.eyebrow, .signin-note, .signin-error) { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.cross-device-account { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin-top: 19px; padding: 14px 15px; border: 1px solid rgba(92, 231, 189, 0.17); border-radius: 15px; background: linear-gradient(135deg, rgba(92, 231, 189, 0.085), rgba(135, 87, 238, 0.08)); }
.cross-device-account > span { display: flex; align-items: center; gap: 6px; color: var(--mint); }
.cross-device-account svg { width: 27px; height: 27px; padding: 5px; border-radius: 8px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: rgba(92, 231, 189, 0.08); }
.cross-device-account i { color: var(--muted-deep); font-size: 0.63rem; font-style: normal; }
.cross-device-account p { display: grid; gap: 3px; margin: 0; }
.cross-device-account strong { font-size: 0.73rem; }
.cross-device-account small { color: var(--muted-deep); font-size: 0.64rem; line-height: 1.4; }
.signin-actions { display: grid; gap: 11px; margin-top: 27px; }
.oauth-button { min-height: 52px; padding: 0 20px; }
.apple-button { color: #111; background: #fff; }
.apple-logo { position: relative; width: 18px; color: #111; font-size: 0.72rem; }
.apple-logo::after { content: ""; position: absolute; width: 6px; height: 4px; top: -3px; left: 9px; border-radius: 100% 0; background: #111; transform: rotate(-28deg); }
.google-button { border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); }
.google-logo { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #4285f4; background: white; font-size: 0.8rem; font-weight: 950; }
.signin-note { display: flex; gap: 8px; margin: 20px 0 0; color: var(--muted-deep); font-size: 0.7rem; line-height: 1.5; }
.signin-note span { color: var(--mint); }
.signin-error { margin: 16px 0 0; padding: 11px 13px; border: 1px solid rgba(255, 113, 139, 0.28); border-radius: 11px; color: #ffc5d0; background: rgba(255, 80, 113, 0.1); font-size: 0.76rem; }
.legal-links { display: flex; gap: 17px; margin-top: 25px; color: var(--muted-deep); font-size: 0.7rem; font-weight: 700; }
.legal-links a:hover { color: var(--mint); }

/* Shell */
.portal-header { position: sticky; z-index: 40; top: 0; height: var(--header-height); display: flex; align-items: center; gap: 28px; padding: 0 24px; border-bottom: 1px solid var(--line-soft); background: rgba(13, 9, 20, 0.88); backdrop-filter: blur(22px); }
.portal-header .brand { min-width: calc(var(--sidebar-width) - 24px); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.guide-button { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; color: #d8cfdd; background: rgba(255, 255, 255, 0.035); cursor: pointer; }
.guide-button:hover { border-color: rgba(92, 231, 189, 0.32); color: var(--ink); background: rgba(92, 231, 189, 0.07); }
.guide-button > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--mint); background: rgba(92, 231, 189, 0.11); font-size: 0.66rem; font-weight: 950; }
.guide-button b { font-size: 0.68rem; }
.sync-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-deep); font-size: 0.68rem; font-weight: 750; }
.sync-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(92, 231, 189, 0.65); }
.sync-state.is-loading i { border: 1px solid rgba(255, 255, 255, 0.18); border-top-color: var(--mint); background: transparent; animation: spin 700ms linear infinite; }
.sync-state.is-error { color: #ff9aad; }
.sync-state.is-error i { background: var(--red); box-shadow: none; }
.account-button { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 0; border-radius: 12px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.account-button:hover { background: rgba(255, 255, 255, 0.05); }
.account-avatar, .large-avatar { display: grid; place-items: center; border-radius: 50%; color: #150d20; background: linear-gradient(135deg, var(--mint), #a6e9df); font-weight: 950; }
.account-avatar { width: 34px; height: 34px; font-size: 0.77rem; }
.account-button > span:last-child { display: grid; gap: 1px; }
.account-button strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; }
.account-button small { color: var(--muted-deep); font-size: 0.62rem; }
.event-switcher-button { display: none; }
.portal-layout { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.event-sidebar { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); display: flex; flex-direction: column; padding: 24px 18px 18px; border-right: 1px solid var(--line-soft); background: rgba(16, 11, 25, 0.68); overflow-y: auto; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 18px; }
.sidebar-heading p { margin: 0 0 3px; color: var(--muted-deep); font-size: 0.63rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.sidebar-heading h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.03em; }
.create-event-button { width: 100%; margin-bottom: 18px; }
.event-list { display: grid; gap: 7px; }
.event-list-button { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 13px; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.event-list-button:hover { background: rgba(255, 255, 255, 0.035); }
.event-list-button.is-selected { border-color: rgba(135, 87, 238, 0.3); background: linear-gradient(120deg, rgba(135, 87, 238, 0.14), rgba(242, 90, 181, 0.05)); }
.event-list-art { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; color: #d2c5dc; background: linear-gradient(135deg, #3a2855, #21182e); font-size: 0.78rem; font-weight: 900; }
.event-list-art img { width: 100%; height: 100%; object-fit: cover; }
.event-list-copy { min-width: 0; display: grid; gap: 3px; }
.event-list-copy strong, .event-list-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-list-copy strong { font-size: 0.77rem; }
.event-list-copy small { color: var(--muted-deep); font-size: 0.63rem; }
.event-list-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px rgba(92, 231, 189, 0.48); }
.event-list-dot.is-closed { background: #777080; box-shadow: none; }
.event-list-empty { padding: 20px 10px; color: var(--muted-deep); font-size: 0.74rem; line-height: 1.5; text-align: center; }
.sidebar-footer { margin-top: auto; display: flex; align-items: flex-start; gap: 9px; padding: 15px 11px 3px; border-top: 1px solid var(--line-soft); }
.sidebar-footer > span { color: var(--mint); font-size: 0.7rem; }
.sidebar-footer p { margin: 0; display: grid; gap: 4px; }
.sidebar-footer strong { font-size: 0.69rem; }
.sidebar-footer small { color: var(--muted-deep); font-size: 0.62rem; line-height: 1.45; }
.portal-main { min-width: 0; }
.empty-workspace { min-height: calc(100vh - var(--header-height)); display: grid; place-content: center; justify-items: center; padding: 50px 24px; text-align: center; }
.empty-orbit { position: relative; width: 105px; height: 105px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid rgba(135, 87, 238, 0.28); border-radius: 50%; }
.empty-orbit::before, .empty-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: inherit; }
.empty-orbit::before { inset: -18px; }
.empty-orbit::after { inset: -38px; border-color: rgba(255, 255, 255, 0.035); }
.empty-orbit img { width: 53px; height: 53px; border-radius: 14px; }
.empty-workspace h1 { margin: 10px 0 13px; font-size: clamp(2.2rem, 5vw, 4.1rem); letter-spacing: -0.062em; }
.empty-workspace > p:not(.eyebrow) { max-width: 530px; color: var(--muted); line-height: 1.6; }
.empty-workspace .primary-button { margin-top: 16px; }

/* Dashboard */
.event-dashboard { padding-bottom: 80px; }
.event-hero { position: relative; min-height: 176px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.event-artwork-wrap { position: absolute; inset: 0; }
.event-artwork-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 9, 19, 0.94) 0%, rgba(12, 9, 19, 0.76) 52%, rgba(12, 9, 19, 0.4)), linear-gradient(0deg, rgba(12, 9, 19, 0.7), transparent 70%); }
.event-artwork-wrap img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.event-hero-content { position: relative; z-index: 1; min-height: 176px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px clamp(24px, 4vw, 54px); }
.event-title-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.status-pill, .live-indicator, .job-status, .privacy-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 0.64rem; font-weight: 900; }
.status-pill { padding: 5px 9px; color: var(--mint); background: rgba(92, 231, 189, 0.11); }
.status-pill i, .live-indicator i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-pill.is-closed { color: #aaa2b2; background: rgba(255, 255, 255, 0.07); }
.event-code { color: #aaa1b2; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.08em; }
.event-hero h1 { max-width: 740px; margin: 0 0 7px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.058em; }
.event-hero-copy > p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.event-hero-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.more-button { letter-spacing: 0.1em; }
.action-menu { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; width: 205px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: #21192f; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.42); }
.action-menu button { width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; color: var(--ink); background: none; cursor: pointer; text-align: left; font-size: 0.72rem; font-weight: 750; }
.action-menu button:hover { background: rgba(255, 255, 255, 0.06); }
.action-menu button.danger-text { color: #ff9aad; }
.dashboard-tabs { position: sticky; z-index: 20; top: var(--header-height); display: flex; gap: 6px; padding: 0 clamp(24px, 4vw, 54px); border-bottom: 1px solid var(--line-soft); background: rgba(12, 9, 19, 0.9); backdrop-filter: blur(18px); overflow-x: auto; scrollbar-width: none; }
.dashboard-tabs::-webkit-scrollbar { display: none; }
.tab-button { position: relative; min-height: 54px; padding: 0 15px; border: 0; color: var(--muted-deep); background: none; cursor: pointer; white-space: nowrap; font-size: 0.76rem; font-weight: 850; }
.tab-button::after { content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; border-radius: 3px 3px 0 0; background: transparent; }
.tab-button.is-active { color: var(--ink); }
.tab-button.is-active::after { background: var(--mint); box-shadow: 0 0 10px rgba(92, 231, 189, 0.55); }
.tab-button span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 4px; place-items: center; border-radius: 999px; color: #c4b9cb; background: rgba(255, 255, 255, 0.08); font-size: 0.6rem; }
.tab-panel { padding: 29px clamp(24px, 4vw, 54px); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric-card { min-width: 0; display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 4px 13px; padding: 19px; border-radius: 17px; }
.metric-icon { grid-row: 1 / 3; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--mint); background: rgba(92, 231, 189, 0.09); font-size: 0.78rem; font-weight: 950; }
.profile-icon { color: #bc99ff; background: rgba(135, 87, 238, 0.12); font-size: 1rem; }
.matches-icon { color: #ff9dd0; background: rgba(242, 90, 181, 0.11); font-size: 1.1rem; }
.questions-icon { color: #81e7cb; background: rgba(92, 231, 189, 0.11); font-size: 1rem; }
.metric-card div { display: flex; align-items: baseline; gap: 8px; }
.metric-card strong { font-size: 1.65rem; letter-spacing: -0.05em; }
.metric-card small { color: #c7bdcf; font-size: 0.7rem; font-weight: 800; }
.metric-card p { grid-column: 2; margin: 0; color: var(--muted-deep); font-size: 0.65rem; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 18px; align-items: start; }
.card { padding: 22px; border-radius: 19px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card h2 { margin: 0; font-size: 1.08rem; letter-spacing: -0.035em; }
.card h3 { margin-bottom: 16px; font-size: 0.92rem; letter-spacing: -0.025em; }
.card-intro, .card > p:not(.eyebrow, .privacy-copy) { color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.invite-card { grid-row: span 2; }
.live-indicator { padding: 5px 9px; color: var(--mint); background: rgba(92, 231, 189, 0.09); }
.live-indicator.is-closed { color: #aaa2b2; background: rgba(255, 255, 255, 0.07); }
.invite-content { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 22px; }
.qr-preview { position: relative; width: 172px; height: 172px; display: grid; place-items: center; padding: 5px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 16px; background: #fff; cursor: pointer; }
.qr-preview canvas { width: 162px; height: 162px; }
.qr-preview span { position: absolute; inset: auto 7px 7px; padding: 6px; border-radius: 8px; color: white; background: rgba(17, 10, 26, 0.86); opacity: 0; font-size: 0.62rem; font-weight: 850; transition: opacity 140ms ease; }
.qr-preview:hover span, .qr-preview:focus-visible span { opacity: 1; }
.invite-details label { display: block; margin-bottom: 7px; color: #c5bacc; font-size: 0.68rem; font-weight: 800; }
.copy-field { display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: rgba(0, 0, 0, 0.12); }
.copy-field input { width: 100%; min-width: 0; height: 42px; padding: 0 11px; border: 0; outline: 0; color: #c9bfce; background: transparent; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.64rem; }
.copy-field button { padding: 0 13px; border: 0; border-left: 1px solid var(--line); color: var(--mint); background: rgba(92, 231, 189, 0.06); cursor: pointer; font-size: 0.69rem; font-weight: 850; }
.invite-details > p { margin: 11px 0 16px; color: var(--muted-deep); font-size: 0.67rem; line-height: 1.5; }
.invite-details .secondary-button { min-height: 39px; font-size: 0.69rem; }
.lifecycle-card > p, .matching-card > p { margin: 16px 0; color: var(--muted); font-size: 0.75rem; line-height: 1.55; }
.lifecycle-rail { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin: 20px 0 6px; }
.lifecycle-rail span { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); }
.lifecycle-rail .is-complete, .lifecycle-rail .is-current { background: linear-gradient(90deg, var(--mint), #65c8ea); }
.lifecycle-labels { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--muted-deep); font-size: 0.56rem; font-weight: 750; }
.matching-card .primary-button { margin-top: 4px; }
.matching-card > small { display: block; margin-top: 9px; color: var(--muted-deep); font-size: 0.62rem; text-align: center; }
.hold-matching-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 2px 0 16px; padding: 12px 13px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(6, 4, 11, 0.12); cursor: pointer; }
.hold-matching-row > span { display: grid; gap: 3px; }
.hold-matching-row strong { font-size: 0.7rem; }
.hold-matching-row small { color: var(--muted-deep); font-size: 0.6rem; line-height: 1.4; }
.hold-matching-row input { width: 42px; height: 24px; flex: 0 0 auto; appearance: none; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.09); cursor: pointer; }
.hold-matching-row input::before { content: ""; display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #b9afc1; transition: transform .2s ease, background .2s ease; }
.hold-matching-row input:checked { border-color: rgba(163,118,255,.55); background: rgba(135,87,238,.25); }
.hold-matching-row input:checked::before { transform: translateX(18px); background: #d7c5ff; }
.hold-matching-row input:disabled { opacity: .5; cursor: wait; }
.job-status { padding: 5px 8px; color: var(--mint); background: rgba(92, 231, 189, 0.1); }
.job-status.is-failed { color: #ff9aad; background: rgba(255, 80, 113, 0.1); }
.matching-progress { margin: 17px 0; }
.matching-progress div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--muted); font-size: 0.65rem; }
.matching-progress progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.09); }
.matching-progress progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.09); }
.matching-progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--purple), var(--mint)); }
.matching-progress progress::-moz-progress-bar { background: linear-gradient(90deg, var(--purple), var(--mint)); }
.synthetic-tools-card { grid-column: 1 / -1; border-color: rgba(92, 231, 189, 0.24); }
.audience-questions-card { grid-column: 1 / -1; }
.matched-pairs-card { grid-column: 1 / -1; }
.matched-pairs-card > p { margin: 12px 0 16px; }
.matched-pairs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.matched-pair-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(255, 255, 255, 0.03); }
.matched-pair-people { min-width: 0; display: flex; align-items: center; gap: 8px; }
.matched-pair-people strong { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; }
.matched-pair-people span { flex: 0 0 auto; color: var(--mint); font-size: 0.8rem; }
.matched-pair-meta { flex: 0 0 auto; display: grid; justify-items: end; gap: 2px; }
.matched-pair-meta b { color: #d6c5ff; font-size: 0.64rem; }
.matched-pair-meta small { color: var(--muted-deep); font-size: 0.57rem; }
.audience-questions-card > p { margin: 12px 0 16px; }
.audience-questions-list { display: grid; gap: 9px; }
.audience-question-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(255, 255, 255, 0.03); }
.audience-question-row p { margin: 0 0 4px; color: var(--ink); font-size: .78rem; line-height: 1.5; }
.audience-question-row small { color: var(--muted-deep); font-size: .61rem; }
.audience-question-mark { width: 26px; height: 26px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #10251f; background: var(--mint); font-size: .72rem; font-weight: 950; }
.panel-empty.compact { padding: 24px; }
.synthetic-tools-card > p { margin: 12px 0 16px; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.synthetic-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.synthetic-toggle-row > span { display: grid; gap: 4px; }
.synthetic-toggle-row strong { font-size: 0.76rem; }
.synthetic-toggle-row small { color: var(--muted-deep); font-size: 0.64rem; line-height: 1.45; }
.synthetic-toggle-row input { width: 42px; height: 24px; flex: 0 0 auto; appearance: none; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.09); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.synthetic-toggle-row input::before { content: ""; display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #b9afc1; transition: transform .2s ease, background .2s ease; }
.synthetic-toggle-row input:checked { border-color: rgba(92,231,189,.5); background: rgba(92,231,189,.23); }
.synthetic-toggle-row input:checked::before { transform: translateX(18px); background: var(--mint); }
.synthetic-toggle-row input:disabled { opacity: .5; cursor: wait; }
.synthetic-tools-status { margin-bottom: 0 !important; color: #bdb2c5 !important; }
.demo-setup-card { position: relative; grid-column: 1 / -1; overflow: hidden; border-color: rgba(163, 118, 255, 0.3); background: radial-gradient(circle at 92% -15%, rgba(135, 87, 238, 0.24), transparent 19rem), linear-gradient(145deg, rgba(37, 26, 57, 0.97), rgba(21, 16, 34, 0.98)); }
.demo-setup-card::before { content: "DEV"; position: absolute; top: 15px; right: 18px; color: rgba(255, 255, 255, 0.025); font-size: 5rem; font-weight: 950; letter-spacing: -0.08em; line-height: 1; pointer-events: none; }
.demo-setup-card > * { position: relative; }
.demo-setup-heading { align-items: center; }
.demo-setup-badge { display: inline-flex; min-height: 27px; align-items: center; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; color: #c4b9cb; background: rgba(255, 255, 255, 0.055); font-size: 0.62rem; font-weight: 900; white-space: nowrap; }
.demo-setup-card[data-status="queued"] .demo-setup-badge, .demo-setup-card[data-status="running"] .demo-setup-badge { color: #d7c5ff; border-color: rgba(163, 118, 255, 0.25); background: rgba(135, 87, 238, 0.13); }
.demo-setup-card[data-status="ready"] { border-color: rgba(92, 231, 189, 0.34); }
.demo-setup-card[data-status="ready"] .demo-setup-badge { color: var(--mint); border-color: rgba(92, 231, 189, 0.25); background: rgba(92, 231, 189, 0.1); }
.demo-setup-card[data-status="failed"] { border-color: rgba(255, 113, 139, 0.32); }
.demo-setup-card[data-status="failed"] .demo-setup-badge { color: #ffadbc; border-color: rgba(255, 113, 139, 0.24); background: rgba(255, 80, 113, 0.1); }
.demo-setup-card > #demo-setup-description { max-width: 760px; margin: 15px 0 19px; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.demo-setup-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 270px); align-items: end; gap: 24px; }
.demo-setup-readiness { min-width: 0; }
.demo-setup-progress > div { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 7px; color: #c5bbcd; font-size: 0.66rem; }
.demo-setup-progress > div strong { color: var(--mint); }
.demo-setup-progress progress { width: 100%; height: 7px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.09); }
.demo-setup-progress progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.09); }
.demo-setup-progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--purple-bright), var(--mint)); }
.demo-setup-progress progress::-moz-progress-bar { background: linear-gradient(90deg, var(--purple-bright), var(--mint)); }
.demo-setup-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 9px; margin-top: 13px; }
.demo-setup-counts div { display: grid; gap: 2px; padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(6, 4, 11, 0.13); }
.demo-setup-counts strong { font-size: 0.95rem; }
.demo-setup-counts small { color: var(--muted-deep); font-size: 0.58rem; }
.demo-setup-copy { margin: 12px 0 0; color: #bdb2c5; font-size: 0.69rem; line-height: 1.5; }
.demo-setup-card[data-status="failed"] .demo-setup-copy { color: #ffc2cd; }
.demo-setup-actions { display: grid; gap: 9px; }
.demo-setup-actions small { color: var(--muted-deep); font-size: 0.6rem; line-height: 1.45; text-align: center; }
.demo-chat-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 19px; padding: 13px 14px; border: 1px solid rgba(92, 231, 189, 0.14); border-radius: 12px; background: rgba(92, 231, 189, 0.055); }
.demo-chat-note > span { width: 27px; height: 27px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--mint); background: rgba(92, 231, 189, 0.09); font-size: 0.8rem; font-weight: 900; }
.demo-chat-note div { display: grid; gap: 3px; }
.demo-chat-note strong { font-size: 0.68rem; }
.demo-chat-note p { margin: 0; color: #a99fb3; font-size: 0.64rem; line-height: 1.5; }
.readiness-card { grid-column: 1 / -1; }
.setup-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 18px 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--line-soft); }
.setup-summary div { display: grid; gap: 2px; padding: 13px; background: rgba(20, 15, 31, 0.9); }
.setup-summary strong { font-size: 1.08rem; }
.setup-summary small { color: var(--muted-deep); font-size: 0.61rem; }
.readiness-card > p { margin: 0; }

/* Attendees */
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.section-title-row h2 { margin: 5px 0 6px; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -0.045em; }
.section-title-row > div > p:not(.eyebrow) { max-width: 680px; margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.roster-toolbar { display: flex; gap: 12px; padding: 12px; border-radius: 15px 15px 0 0; box-shadow: none; }
.search-field { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted-deep); background: rgba(0, 0, 0, 0.1); }
.search-field input { width: 100%; height: 39px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 0.73rem; }
.search-field input::placeholder { color: #766e80; }
.roster-toolbar select, .field select { min-height: 41px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #21192f; font-size: 0.71rem; }
.attendee-list { border-radius: 0 0 15px 15px; box-shadow: none; overflow: hidden; }
.attendee-row { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(90px, 0.5fr)) 44px; align-items: center; gap: 14px; min-height: 72px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); }
.attendee-row:last-child { border-bottom: 0; }
.attendee-person { min-width: 0; display: flex; align-items: center; gap: 11px; }
.attendee-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: #160e21; background: linear-gradient(135deg, #f0a9d2, #a9ebdb); font-size: 0.72rem; font-weight: 950; }
.attendee-avatar img { width: 100%; height: 100%; object-fit: cover; }
.attendee-person div { min-width: 0; display: grid; gap: 3px; }
.attendee-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.77rem; }
.attendee-person small, .attendee-cell small { color: var(--muted-deep); font-size: 0.61rem; }
.attendee-cell { display: grid; gap: 3px; }
.attendee-cell strong { font-size: 0.7rem; }
.attendee-ready { color: var(--mint); }
.attendee-pending { color: var(--orange); }
.attendee-remove { width: 36px; height: 36px; border: 0; border-radius: 9px; color: #ff9aad; background: transparent; cursor: pointer; }
.attendee-remove:hover { background: rgba(255, 80, 113, 0.1); }
.panel-empty { min-height: 300px; place-content: center; justify-items: center; padding: 35px; color: var(--muted); text-align: center; }
.panel-empty:not([hidden]) { display: grid; }
.panel-empty > span { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; color: var(--mint); background: rgba(92, 231, 189, 0.08); }
.panel-empty h3 { margin-bottom: 8px; color: var(--ink); }
.panel-empty p { max-width: 390px; font-size: 0.75rem; }

/* Analytics and settings */
.analytics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.analytics-stat { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, 0.035); }
.analytics-stat span { display: block; margin-bottom: 8px; color: var(--muted-deep); font-size: 0.62rem; font-weight: 800; }
.analytics-stat strong { font-size: 1.65rem; letter-spacing: -0.045em; }
.analytics-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.privacy-badge { padding: 5px 8px; color: #c1b5ca; background: rgba(255, 255, 255, 0.06); }
.topic-list { display: grid; gap: 16px; margin-top: 20px; }
.topic-item { display: grid; gap: 6px; }
.topic-item > div { display: flex; justify-content: space-between; gap: 15px; }
.topic-item strong { font-size: 0.75rem; }
.topic-item span { color: var(--mint); font-size: 0.68rem; font-weight: 850; }
.topic-item progress { width: 100%; height: 5px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.topic-item progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.08); }
.topic-item progress::-webkit-progress-value { background: linear-gradient(90deg, var(--mint), #67c7e9); }
.topic-item progress::-moz-progress-bar { background: linear-gradient(90deg, var(--mint), #67c7e9); }
.topic-item small { color: var(--muted-deep); font-size: 0.61rem; }
.analytics-empty { padding: 30px 10px; color: var(--muted-deep); font-size: 0.73rem; line-height: 1.55; text-align: center; }
.rating-score { display: flex; align-items: baseline; gap: 8px; margin: 19px 0 8px; }
.rating-score strong { color: var(--orange); font-size: 2.35rem; letter-spacing: -0.06em; }
.rating-score span { color: var(--muted); font-size: 0.72rem; }
.rating-leaders { display: grid; gap: 9px; margin-top: 17px; }
.rating-row { display: grid; grid-template-columns: 22px 35px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding-top: 9px; border-top: 1px solid var(--line-soft); }
.rating-row > span:first-child { color: var(--mint); font-size: 0.65rem; font-weight: 900; }
.rating-row .attendee-avatar { width: 35px; height: 35px; }
.rating-row div { min-width: 0; display: grid; gap: 2px; }
.rating-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7rem; }
.rating-row small { color: var(--muted-deep); font-size: 0.58rem; }
.rating-row > b { color: var(--orange); font-size: 0.72rem; }
.safety-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 20px 0 14px; }
.safety-metrics div { display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); }
.safety-metrics strong { font-size: 1.4rem; }
.safety-metrics small { color: var(--muted-deep); font-size: 0.62rem; }
.privacy-copy { margin: 0; color: var(--muted-deep); font-size: 0.66rem; line-height: 1.5; }
.settings-matching-instructions { margin: 0 0 14px; color: #d4cad9; font-size: 0.73rem; line-height: 1.6; white-space: pre-wrap; }
.export-card small { display: block; margin-top: 14px; color: var(--muted-deep); font-size: 0.61rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-list { margin: 0; }
.settings-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 15px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.settings-list dt { color: var(--muted-deep); font-size: 0.65rem; }
.settings-list dd { margin: 0; color: #d0c6d4; font-size: 0.73rem; line-height: 1.45; overflow-wrap: anywhere; }
.configured-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: configured; }
.configured-list li { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border-radius: 10px; color: #d3cad8; background: rgba(255, 255, 255, 0.035); font-size: 0.7rem; line-height: 1.4; }
.configured-list li::before { content: "✓"; color: var(--mint); font-weight: 900; }
.configured-list.numbered li::before { counter-increment: configured; content: counter(configured) "."; }
.zone-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.zone-list span { padding: 7px 10px; border: 1px solid rgba(92, 231, 189, 0.17); border-radius: 999px; color: #c9f5e8; background: rgba(92, 231, 189, 0.07); font-size: 0.66rem; font-weight: 750; }
.artwork-settings img { width: 100%; max-height: 240px; margin-bottom: 14px; border-radius: 12px; object-fit: cover; }
.artwork-settings .artwork-empty { min-height: 145px; display: grid; place-content: center; margin-bottom: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted-deep); font-size: 0.7rem; }
.danger-zone { border-color: rgba(255, 113, 139, 0.18); }

/* Dialogs and forms */
dialog { color: var(--ink); }
.modal { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 22px; background: #191225; box-shadow: 0 35px 100px rgba(0, 0, 0, 0.63); }
.modal::backdrop { background: rgba(4, 3, 8, 0.75); backdrop-filter: blur(8px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.modal-header h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.04em; }
.modal-close { width: 36px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: #d2c8d7; background: rgba(255, 255, 255, 0.04); cursor: pointer; font-size: 1.25rem; }
.modal-close:hover { background: rgba(255, 255, 255, 0.08); }
.event-editor { width: min(790px, calc(100% - 28px)); }
.event-editor form { max-height: calc(100vh - 34px); display: flex; flex-direction: column; }
.modal-body { overflow-y: auto; }
.editor-body { padding: 0 24px; }
.editor-section { padding: 25px 0; border-bottom: 1px solid var(--line-soft); }
.event-import-panel { display: grid; gap: 17px; padding: 21px; border: 1px solid rgba(126, 99, 255, 0.34); border-radius: 16px; background: linear-gradient(135deg, rgba(126, 99, 255, 0.14), rgba(92, 231, 189, 0.06)); }
.event-import-panel h3 { margin: 0 0 6px; font-size: 1rem; }
.event-import-panel > div:first-child > p:last-child { max-width: 620px; margin: 0; color: var(--muted-deep); font-size: 0.69rem; line-height: 1.55; }
.event-import-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.event-import-controls .secondary-button { min-height: 43px; }
.event-import-status { min-height: 1em; margin: 0; color: var(--mint); font-size: 0.65rem; line-height: 1.4; }
.event-import-status.is-error { color: #ffc4cf; }
.editor-section:last-of-type { border-bottom: 0; }
.editor-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.editor-section-heading > span { width: 27px; height: 27px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--mint); background: rgba(92, 231, 189, 0.09); font-size: 0.58rem; font-weight: 900; }
.editor-section-heading h3 { margin: 0 0 3px; font-size: 0.9rem; }
.editor-section-heading p { margin: 0; color: var(--muted-deep); font-size: 0.66rem; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid > .full { grid-column: 1 / -1; }
.field { position: relative; display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { color: #cbc0d1; font-size: 0.68rem; font-weight: 750; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: rgba(7, 5, 12, 0.22); transition: border-color 140ms ease, box-shadow 140ms ease; }
.field input { height: 43px; padding: 0 11px; }
.field textarea { resize: vertical; min-height: 94px; padding: 10px 11px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(92, 231, 189, 0.55); box-shadow: 0 0 0 3px rgba(92, 231, 189, 0.08); }
.field > small { position: absolute; right: 8px; bottom: 7px; color: var(--muted-deep); font-size: 0.56rem; }
.field textarea + small { bottom: 8px; }
.field textarea#event-form-matching-instructions + small { position: static; justify-self: end; margin-top: -3px; text-align: right; }
.visibility-help { margin: -5px 0 0; color: var(--muted-deep); font-size: 0.62rem; line-height: 1.45; }
.settings-public-link { display: inline-flex; margin-top: 16px; text-decoration: none; }
.dynamic-list { display: grid; gap: 9px; }
.dynamic-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.dynamic-row.profile-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.dynamic-row input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: rgba(7, 5, 12, 0.22); }
.dynamic-row input:focus { border-color: rgba(92, 231, 189, 0.55); }
.row-controls { display: flex; gap: 4px; }
.row-controls button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, 0.035); cursor: pointer; }
.row-controls button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.row-controls .remove-row { color: #ff9aad; }
.profile-key { min-width: 112px; padding: 0 8px; color: var(--muted-deep); font-size: 0.61rem; overflow: hidden; text-overflow: ellipsis; }
.add-row-button { margin-top: 10px; }
.artwork-picker { position: relative; min-height: 190px; display: grid; place-items: center; overflow: hidden; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 14px; background: rgba(0, 0, 0, 0.12); }
.artwork-picker:hover { border-color: rgba(92, 231, 189, 0.4); }
.artwork-picker input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.artwork-placeholder { display: grid; justify-items: center; gap: 6px; color: var(--muted); }
.artwork-placeholder > span { font-size: 1.7rem; color: var(--purple-bright); }
.artwork-placeholder strong { font-size: 0.76rem; }
.artwork-placeholder small { color: var(--muted-deep); font-size: 0.62rem; }
.artwork-picker img { width: 100%; height: 250px; object-fit: cover; }
.artwork-actions { align-items: center; justify-content: space-between; gap: 15px; margin-top: 9px; }
.artwork-actions:not([hidden]) { display: flex; }
.artwork-actions span { min-width: 0; overflow: hidden; color: var(--muted-deep); text-overflow: ellipsis; white-space: nowrap; font-size: 0.64rem; }
.field-error, .form-error { padding: 10px 12px; border: 1px solid rgba(255, 113, 139, 0.25); border-radius: 10px; color: #ffc4cf; background: rgba(255, 80, 113, 0.08); font-size: 0.68rem; line-height: 1.45; }
.form-error { margin: 0 0 22px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line-soft); background: rgba(16, 11, 25, 0.86); }

.qr-modal { width: min(560px, calc(100% - 28px)); overflow-y: auto; background: #fff; }
.qr-print-card { position: relative; display: grid; justify-items: center; padding: 36px; color: #171020; background: radial-gradient(circle at 50% 0, rgba(135, 87, 238, 0.13), transparent 19rem), #fff; text-align: center; }
.qr-print-card .modal-close { position: absolute; top: 14px; right: 14px; color: #30233c; border-color: rgba(23, 16, 32, 0.15); background: rgba(23, 16, 32, 0.04); }
.qr-brand { width: 50px; height: 50px; margin-bottom: 18px; border-radius: 13px; }
.qr-print-card .eyebrow { color: #6e6377; }
.qr-print-card h2 { max-width: 440px; margin: 3px 0 6px; font-size: clamp(1.65rem, 5vw, 2.5rem); letter-spacing: -0.05em; }
.qr-print-card > p:not(.eyebrow, .qr-instruction, .qr-url) { color: #766a7f; font-size: 0.76rem; }
.qr-print-card canvas { width: min(390px, 86vw); height: min(390px, 86vw); margin: 17px 0 8px; image-rendering: pixelated; }
.qr-instruction { margin: 8px 0 5px; font-size: 0.9rem; font-weight: 850; }
.qr-code-label { color: #633bc3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; letter-spacing: 0.12em; }
.qr-url { max-width: 430px; margin: 12px 0 20px; color: #807486; overflow-wrap: anywhere; font: 0.6rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.qr-print-card .secondary-button { color: #33243f; border-color: rgba(23, 16, 32, 0.16); background: rgba(23, 16, 32, 0.04); }
.confirm-modal { width: min(430px, calc(100% - 28px)); }
.confirm-content { display: grid; justify-items: center; padding: 32px; text-align: center; }
.confirm-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 50%; color: #ffc3ce; background: rgba(255, 80, 113, 0.11); font-size: 1.2rem; font-weight: 950; }
.confirm-content h2 { margin-bottom: 9px; font-size: 1.35rem; letter-spacing: -0.04em; }
.confirm-content p { color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.confirm-content .button-row { width: 100%; margin-top: 13px; }
.confirm-content .button-row > * { flex: 1; }
.account-modal { width: min(410px, calc(100% - 28px)); }
.account-content { position: relative; display: grid; justify-items: center; padding: 34px; text-align: center; }
.account-content .modal-close { position: absolute; top: 13px; right: 13px; }
.large-avatar { width: 68px; height: 68px; margin-bottom: 14px; font-size: 1.2rem; }
.account-content h2 { margin: 0 0 4px; font-size: 1.25rem; }
.account-content > p { color: var(--muted-deep); font-size: 0.7rem; }
.account-actions { width: 100%; display: grid; gap: 9px; }
.identity-methods { width: 100%; margin: 16px 0 20px; padding: 16px; border: 1px solid var(--line-soft); border-radius: 13px; text-align: left; }
.identity-methods h3 { margin: 0 0 12px; font-size: 0.75rem; }
.identity-methods > small { display: block; margin-top: 12px; color: var(--muted-deep); font-size: 0.61rem; line-height: 1.45; }
.identity-list { display: grid; gap: 7px; }
.identity-row { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.035); }
.identity-row > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #171020; background: #fff; font-size: 0.67rem; font-weight: 950; }
.identity-row div { display: grid; gap: 2px; }
.identity-row strong { font-size: 0.69rem; text-transform: capitalize; }
.identity-row small { color: var(--muted-deep); font-size: 0.57rem; }
.skeleton-line { display: block; height: 42px; border-radius: 9px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.1s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

.onboarding-modal { width: min(960px, calc(100% - 28px)); }
.onboarding-shell { max-height: calc(100vh - 34px); display: flex; flex-direction: column; }
.onboarding-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); }
.onboarding-header .brand { pointer-events: none; }
.onboarding-header .brand small { color: #a99fb2; }
.onboarding-step-count { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.035); font-size: .64rem; font-weight: 800; white-space: nowrap; }
.onboarding-body { min-height: 0; display: grid; grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr); gap: clamp(26px, 4vw, 48px); padding: clamp(24px, 4vw, 42px); overflow-y: auto; }
.onboarding-visual { position: relative; min-height: 365px; display: grid; place-items: center; overflow: hidden; padding: 25px; border: 1px solid rgba(135, 87, 238, .23); border-radius: 22px; background: radial-gradient(circle at 17% 12%, rgba(92, 231, 189, .13), transparent 15rem), radial-gradient(circle at 95% 88%, rgba(242, 90, 181, .14), transparent 17rem), rgba(8, 6, 13, .46); }
.onboarding-visual::before { content: ""; position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.guide-scene { position: relative; z-index: 1; width: min(100%, 350px); animation: guide-scene-in 220ms ease-out both; }
@keyframes guide-scene-in { from { opacity: 0; transform: translateY(7px) scale(.985); } }
.guide-window-bar { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 14px 14px 0 0; background: rgba(35, 27, 50, .96); }
.guide-window-bar i { width: 6px; height: 6px; border-radius: 50%; background: #756b81; }
.guide-window-bar i:first-child { background: var(--pink); }
.guide-window-bar i:nth-child(2) { background: var(--orange); }
.guide-window-bar i:nth-child(3) { background: var(--mint); }
.guide-window-bar span { margin-left: auto; color: var(--muted-deep); font-size: .57rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.guide-builder-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 15px; border: 1px solid var(--line-soft); border-top: 0; background: rgba(24, 18, 36, .94); }
.guide-builder-row:nth-child(4) { border-radius: 0 0 14px 14px; }
.guide-builder-row span { color: var(--muted); font-size: .67rem; }
.guide-builder-row b { color: #dcd3e1; font-size: .67rem; }
.guide-builder-row.is-strong b { color: var(--mint); }
.guide-device-pair { width: max-content; display: flex; align-items: center; gap: 9px; margin: 17px auto 0; padding: 8px 12px; border: 1px solid rgba(92, 231, 189, .2); border-radius: 999px; color: #c8f5e8; background: rgba(92, 231, 189, .08); font-size: .6rem; font-weight: 850; }
.guide-device-pair i { color: var(--muted-deep); font-style: normal; }
.guide-scene-share { display: grid; grid-template-columns: 116px 1fr; align-items: center; gap: 17px; }
.guide-qr { aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 13px; border-radius: 15px; background: #fff; box-shadow: 0 22px 50px rgba(0,0,0,.26); }
.guide-qr i { border-radius: 2px; background: #191126; }
.guide-qr i:nth-child(2), .guide-qr i:nth-child(4), .guide-qr i:nth-child(8) { background: transparent; }
.guide-qr i:nth-child(5) { box-shadow: inset 0 0 0 5px #fff; }
.guide-share-copy { min-width: 0; display: grid; gap: 7px; }
.guide-share-copy small { color: var(--muted-deep); font-size: .57rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 850; }
.guide-share-copy strong { overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: #d9cfde; background: rgba(255,255,255,.04); font: .57rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.guide-share-copy > span { width: max-content; padding: 6px 9px; border-radius: 999px; color: var(--mint); background: rgba(92,231,189,.1); font-size: .58rem; font-weight: 900; }
.guide-phone { grid-column: 1 / -1; width: min(230px, 82%); min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-self: center; gap: 10px; margin-top: 13px; padding: 13px; border: 1px solid rgba(135,87,238,.25); border-radius: 17px; background: rgba(24,18,36,.92); text-align: center; }
.guide-phone b, .guide-phone strong { font-size: .64rem; }
.guide-phone strong { color: #d7c5ff; }
.guide-phone i { color: var(--mint); font-style: normal; transform: rotate(-90deg); }
.guide-scene-match { display: grid; gap: 17px; }
.guide-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.guide-metrics > span { display: grid; gap: 4px; padding: 15px 9px; border: 1px solid var(--line); border-radius: 13px; background: rgba(27,20,40,.93); text-align: center; }
.guide-metrics strong { color: var(--mint); font-size: 1.3rem; letter-spacing: -.05em; }
.guide-metrics span:nth-child(2) strong { color: #ba9aff; }
.guide-metrics span:nth-child(3) strong { color: #ff98cf; }
.guide-metrics small { color: var(--muted-deep); font-size: .54rem; }
.guide-progress { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.guide-progress span { width: 86%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--mint), #aa8bff); }
.guide-match-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 6px; }
.guide-match-flow span { min-height: 57px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--line-soft); border-radius: 11px; color: #d1c8d6; background: rgba(255,255,255,.035); font-size: .57rem; line-height: 1.35; text-align: center; }
.guide-match-flow i { color: var(--mint); font-style: normal; }
.guide-scene-run { display: grid; gap: 15px; }
.guide-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(23,17,35,.95); }
.guide-tabs span { padding: 9px 4px; border-radius: 8px; color: var(--muted-deep); font-size: .53rem; font-weight: 800; text-align: center; }
.guide-tabs span.is-active { color: #142019; background: var(--mint); }
.guide-outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide-outcomes span { display: grid; gap: 3px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.guide-outcomes strong { font-size: 1.45rem; letter-spacing: -.05em; }
.guide-outcomes small { color: var(--muted-deep); font-size: .57rem; }
.guide-scene-run > p { display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 14px; border: 1px solid rgba(92,231,189,.18); border-radius: 13px; background: rgba(92,231,189,.07); }
.guide-scene-run > p > i { color: var(--mint); font-style: normal; }
.guide-scene-run > p > span { display: grid; gap: 3px; }
.guide-scene-run > p strong { font-size: .66rem; }
.guide-scene-run > p small { color: #9daea9; font-size: .57rem; }
.onboarding-copy { align-self: center; }
.onboarding-copy .eyebrow { margin-bottom: 12px; }
.onboarding-copy .eyebrow b { font: inherit; }
.onboarding-copy h2 { margin: 0 0 13px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: .98; letter-spacing: -.06em; }
.onboarding-copy > p:not(.eyebrow) { margin: 0; color: #c2b8c8; font-size: .84rem; line-height: 1.62; }
.onboarding-copy ul { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.onboarding-copy li { position: relative; padding-left: 22px; color: #d7cedc; font-size: .72rem; line-height: 1.48; }
.onboarding-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 950; }
.onboarding-copy aside { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid rgba(135,87,238,.2); border-radius: 13px; background: rgba(135,87,238,.08); }
.onboarding-copy aside > span { color: #b795ff; font-size: .7rem; }
.onboarding-copy aside p { display: grid; gap: 3px; margin: 0; }
.onboarding-copy aside strong { color: #e3d9ec; font-size: .66rem; }
.onboarding-copy aside small { color: #978ca1; font-size: .61rem; line-height: 1.45; }
.onboarding-error { margin: 0 22px 14px; padding: 10px 12px; border: 1px solid rgba(255,113,139,.26); border-radius: 10px; color: #ffc6d0; background: rgba(255,80,113,.09); font-size: .67rem; }
.onboarding-footer { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 13px 22px; border-top: 1px solid var(--line-soft); background: rgba(13,9,20,.45); }
.onboarding-skip { width: max-content; color: var(--muted); }
.onboarding-progress { display: flex; align-items: center; justify-content: center; gap: 6px; }
.onboarding-progress i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.15); transition: width 150ms ease, background 150ms ease; }
.onboarding-progress i.is-active { width: 21px; border-radius: 999px; background: var(--mint); }
.onboarding-progress i.is-complete { background: rgba(92,231,189,.45); }
.onboarding-actions { display: flex; justify-content: flex-end; gap: 9px; }
.onboarding-actions button { min-width: 90px; }
.mobile-events-modal { width: min(480px, calc(100% - 20px)); }
.mobile-events-content { padding-bottom: 18px; }
.mobile-events-content > .primary-button { width: calc(100% - 36px); margin: 18px; }
.mobile-events-content .event-list { padding: 0 10px; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(370px, calc(100% - 40px)); display: grid; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid rgba(92, 231, 189, 0.25); border-radius: 12px; color: #eafff8; background: rgba(25, 20, 37, 0.97); box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4); animation: toast-in 180ms ease-out; font-size: 0.72rem; line-height: 1.45; }
.toast::before { content: "✓"; color: var(--mint); font-weight: 950; }
.toast.is-error { border-color: rgba(255, 113, 139, 0.3); color: #ffd8df; }
.toast.is-error::before { content: "!"; color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1050px) {
  :root { --sidebar-width: 250px; }
  .portal-header .brand { min-width: calc(var(--sidebar-width) - 24px); }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invite-card { grid-column: 1 / -1; grid-row: auto; }
  .readiness-card { grid-column: 1 / -1; }
  .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --header-height: 64px; }
  .signin-main { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 45px; }
  .signin-copy { text-align: center; }
  .signin-copy .eyebrow { justify-content: center; }
  .signin-copy h1, .signin-lede { margin-right: auto; margin-left: auto; }
  .signin-proof { width: min(500px, 100%); margin-right: auto; margin-left: auto; text-align: left; }
  .signin-card { width: min(500px, 100%); margin: 0 auto; }
  .portal-header { padding: 0 15px; }
  .portal-header .brand { min-width: 0; }
  .portal-header .brand small, .sync-state, .account-button > span:last-child { display: none; }
  .guide-button b { display: none; }
  .guide-button { width: 38px; padding: 0; justify-content: center; }
  .event-switcher-button { min-width: 0; display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.04); }
  .event-switcher-button span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7rem; font-weight: 800; }
  .header-actions { margin-left: 0; gap: 4px; }
  .event-sidebar { display: none; }
  .portal-layout { display: block; }
  .event-hero-content { align-items: flex-end; }
  .event-hero-actions .secondary-button:first-child { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { grid-template-columns: 43px minmax(0, 1fr) auto; }
  .metric-card p { grid-column: 3; align-self: center; text-align: right; }
  .overview-grid, .analytics-columns, .settings-grid { grid-template-columns: 1fr; }
  .demo-setup-body { grid-template-columns: 1fr; }
  .demo-setup-actions { width: min(100%, 360px); }
  .readiness-card { grid-column: auto; }
  .attendee-row { grid-template-columns: minmax(170px, 1fr) repeat(2, minmax(80px, .5fr)) 40px; }
  .attendee-row .joined-cell { display: none; }
}

@media (max-width: 780px) {
  .onboarding-modal { width: min(620px, calc(100% - 20px)); }
  .onboarding-body { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .onboarding-visual { min-height: 245px; }
  .guide-scene { width: min(100%, 390px); }
  .onboarding-copy { align-self: start; }
}

@media (max-width: 600px) {
  .signin-page { width: min(100% - 28px, 520px); }
  .signin-header { height: 70px; }
  .signin-copy h1 { font-size: clamp(2.75rem, 13vw, 3.75rem); }
  .signin-copy h1 em { display: block; }
  .cross-device-account { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .portal-header { gap: 8px; }
  .brand span { display: none; }
  .event-switcher-button span { max-width: 130px; }
  .event-hero-content { min-height: 190px; align-items: flex-start; flex-direction: column; justify-content: flex-end; padding: 25px 18px; }
  .event-hero-actions { width: 100%; justify-content: flex-start; }
  .event-hero-actions .secondary-button { flex: 1; }
  .event-hero-actions .more-button { flex: 0 0 auto; }
  .dashboard-tabs { padding: 0 7px; }
  .tab-panel { padding: 22px 14px; }
  .metric-card { grid-template-columns: 43px minmax(0, 1fr); }
  .metric-card p { grid-column: 2; text-align: left; }
  .card { padding: 18px; }
  .invite-content { grid-template-columns: 1fr; justify-items: center; }
  .invite-details { width: 100%; }
  .setup-summary { grid-template-columns: 1fr; }
  .setup-summary div { grid-template-columns: 42px 1fr; align-items: center; }
  .demo-setup-heading { align-items: flex-start; }
  .demo-setup-card::before { font-size: 4rem; }
  .demo-setup-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-setup-actions { width: 100%; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .section-title-row > button { width: 100%; }
  .roster-toolbar { flex-direction: column; }
  .roster-toolbar select { width: 100%; }
  .attendee-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 13px; }
  .attendee-row .attendee-cell { display: none; }
  .attendee-person small::after { content: attr(data-status); }
  .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-stat { padding: 14px; }
  .analytics-stat strong { font-size: 1.4rem; }
  .matched-pairs-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .event-import-controls { grid-template-columns: 1fr; }
  .editor-body { padding: 0 16px; }
  .modal-header, .modal-footer { padding-right: 16px; padding-left: 16px; }
  .modal-footer > * { flex: 1; }
  .dynamic-row.profile-row { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-key { grid-column: 1 / -1; min-width: 0; padding-bottom: 0; }
  .artwork-picker { min-height: 150px; }
  .artwork-picker img { height: 190px; }
  .qr-print-card { padding: 32px 18px; }
  .qr-print-card .button-row { width: 100%; }
  .qr-print-card .button-row > * { flex: 1 1 130px; }
  .settings-list div { grid-template-columns: 80px minmax(0, 1fr); }
  .onboarding-header { min-height: 60px; padding: 12px 14px; }
  .onboarding-header .brand small { margin-left: 0; padding-left: 8px; }
  .onboarding-step-count { font-size: .58rem; }
  .onboarding-body { gap: 20px; padding: 16px; }
  .onboarding-visual { min-height: 210px; padding: 18px; border-radius: 17px; }
  .guide-window-bar { height: 34px; }
  .guide-builder-row { padding: 12px; }
  .guide-device-pair { margin-top: 11px; }
  .guide-scene-share { grid-template-columns: 90px 1fr; gap: 12px; }
  .guide-phone { min-height: 68px; margin-top: 4px; }
  .guide-metrics > span { padding: 11px 5px; }
  .guide-match-flow span { min-height: 48px; padding: 5px; font-size: .5rem; }
  .guide-outcomes span { padding: 14px; }
  .onboarding-copy h2 { font-size: 2rem; }
  .onboarding-copy > p:not(.eyebrow) { font-size: .77rem; }
  .onboarding-footer { min-height: 100px; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 14px; }
  .onboarding-progress { grid-column: 1 / -1; grid-row: 1; }
  .onboarding-skip { grid-column: 1; grid-row: 2; }
  .onboarding-actions { grid-column: 2; grid-row: 2; }
  .onboarding-actions button { min-width: 68px; padding-right: 11px; padding-left: 11px; }
  .toast-region { right: 14px; bottom: 14px; width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  @page { size: portrait; margin: 0.45in; }
  body > *:not(#qr-modal) { display: none !important; }
  #qr-modal[open] { position: static; width: 100%; max-height: none; display: block; margin: 0; overflow: visible; border: 0; box-shadow: none; }
  #qr-modal::backdrop, .no-print { display: none !important; }
  .qr-print-card { min-height: 9.5in; padding: 0.2in; color: #171020; background: #fff; }
  .qr-print-card canvas { width: 4.6in; height: 4.6in; }
  .qr-url { font-size: 8pt; }
}
