/* Relaymigo Design System v1 — see docs/DESIGN_SYSTEM.md */
@font-face { font-family: "Inter"; src: url("../fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  /* brand */
  --navy-950: #070b1d; --navy-900: #0b1026; --navy-800: #121a3a; --navy-700: #1b2550; --navy-600: #2a3670;
  --violet-600: #6a46f5; --violet-500: #7c5cff; --violet-400: #9a82ff; --violet-100: #ece7ff;
  --emerald-600: #0fa36e; --emerald-500: #1fd693; --emerald-100: #dcfaee;
  --amber-500: #f5a524; --rose-500: #f0466a; --sky-500: #33a8ff;
  /* semantic (light) */
  --bg: #f5f6fb; --bg-elev: #ffffff; --bg-sunken: #eceef7; --border: #dfe2ef; --border-strong: #c7cce0;
  --text: #0d1330; --text-muted: #5a6285; --text-faint: #8a91b0;
  --primary: var(--violet-600); --primary-hover: #5733e8; --primary-soft: var(--violet-100); --on-primary: #fff;
  --success: var(--emerald-600); --success-soft: var(--emerald-100);
  --warning: #b86e00; --warning-soft: #fff1d6; --danger: #d32f55; --danger-soft: #ffe3ea;
  --ring: 0 0 0 3px rgba(124, 92, 255, .35);
  --shadow-sm: 0 1px 2px rgba(13, 19, 48, .06); --shadow: 0 2px 6px rgba(13, 19, 48, .06), 0 12px 32px -12px rgba(13, 19, 48, .16);
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px; --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: .8125rem; --step-0: .9375rem; --step-1: 1.0625rem; --step-2: 1.3rem; --step-3: 1.7rem; --step-4: 2.3rem; --step-5: clamp(2.2rem, 5.5vw, 3.8rem);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 64px;
  color-scheme: light;
}
/* category hues */
:root {
  --cat-ASK: #7c5cff; --cat-OFFER: #0fa36e; --cat-OPPORTUNITY: #e08a00; --cat-CONNECT: #2a8cff;
  --cat-MEET: #e0457b; --cat-MISSION: #d9480f; --cat-DISCOVER: #0ea5b7; --cat-CREATE: #a347e6;
}

html[data-theme="dark"] {
  --bg: var(--navy-950); --bg-elev: var(--navy-900); --bg-sunken: #050816; --border: #1f2a55; --border-strong: #2f3c74;
  --text: #eef0ff; --text-muted: #a3abd4; --text-faint: #707aa8;
  --primary: var(--violet-500); --primary-hover: var(--violet-400); --primary-soft: rgba(124, 92, 255, .16);
  --success: var(--emerald-500); --success-soft: rgba(31, 214, 147, .13);
  --warning: #ffbe55; --warning-soft: rgba(245, 165, 36, .14); --danger: #ff6b8b; --danger-soft: rgba(240, 70, 106, .15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: var(--navy-950); --bg-elev: var(--navy-900); --bg-sunken: #050816; --border: #1f2a55; --border-strong: #2f3c74;
    --text: #eef0ff; --text-muted: #a3abd4; --text-faint: #707aa8;
    --primary: var(--violet-500); --primary-hover: var(--violet-400); --primary-soft: rgba(124, 92, 255, .16);
    --success: var(--emerald-500); --success-soft: rgba(31, 214, 147, .13);
    --warning: #ffbe55; --warning-soft: rgba(245, 165, 36, .14); --danger: #ff6b8b; --danger-soft: rgba(240, 70, 106, .15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.55; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
svg[aria-hidden="true"] { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.circle-tile > svg { width: 28px; height: 28px; color: var(--success); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--space-3); letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: var(--step-4); } h2 { font-size: var(--step-3); } h3 { font-size: var(--step-2); } h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: var(--primary-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.muted { color: var(--text-muted); } .faint { color: var(--text-faint); } .small { font-size: var(--step--1); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.tight { gap: var(--space-2); }
.stack > * + * { margin-top: var(--space-4); } .stack-sm > * + * { margin-top: var(--space-2); }
.grow { flex: 1; min-width: 0; }
@media (max-width: 859px) { .hide-mobile { display: none !important; } }
@media (min-width: 860px) { .hide-desktop { display: none !important; } }

/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--space-4); }
.container.narrow { max-width: 720px; } .container.mid { max-width: 920px; }
main { padding: var(--space-5) 0 calc(var(--space-8) + 24px); min-height: 70vh; }
@media (min-width: 860px) { main { padding-bottom: var(--space-8); } }
.layout { display: grid; gap: var(--space-5); }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } .layout.left { grid-template-columns: 240px minmax(0, 1fr); } }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-4); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.topbar .container { height: 100%; display: flex; align-items: center; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand span b { color: var(--primary); font-weight: 700; }
.topnav { display: none; gap: 4px; margin-left: var(--space-4); }
.topnav a { color: var(--text-muted); font-weight: 600; padding: 8px 12px; border-radius: var(--radius-pill); font-size: var(--step--1); }
.topnav a:hover { background: var(--bg-sunken); color: var(--text); text-decoration: none; }
.topnav a.active { color: var(--text); background: var(--bg-sunken); }
@media (min-width: 860px) { .topnav { display: flex; } }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill);
  color: var(--text-muted); background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--bg-sunken); color: var(--text); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.badge-dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose-500);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--bg-elev); }
.badge-dot[data-count="0"] { display: none; }

/* bottom nav (mobile) */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg-elev); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--text-faint); padding: 4px 0; position: relative; }
.bottomnav a:hover { text-decoration: none; }
.bottomnav a.active { color: var(--primary); }
.bottomnav svg { width: 24px; height: 24px; }
.bottomnav .create { margin-top: -22px; }
.bottomnav .create span.fab { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--violet-500), #4f7dff 60%, var(--emerald-500)); box-shadow: 0 8px 20px -6px rgba(124, 92, 255, .7); }
.bottomnav .badge-dot { top: -2px; right: calc(50% - 22px); }
@media (min-width: 860px) { .bottomnav { display: none; } }

/* menu (details/summary) */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 50; animation: pop .16s var(--ease); }
.menu-panel a, .menu-panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text);
  font: inherit; font-size: var(--step--1); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg-sunken); text-decoration: none; }
.menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu-panel .row { padding: 6px 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- buttons */
.btn { --b: var(--bg-elev); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--b); color: var(--text); font: inherit; font-weight: 600;
  font-size: var(--step--1); cursor: pointer; transition: transform .12s var(--ease), background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--text-faint); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); border-color: transparent; color: var(--on-primary); box-shadow: 0 6px 16px -8px rgba(106, 70, 245, .8); }
.btn-primary:hover { background: var(--primary-hover); border-color: transparent; }
.btn-success { background: var(--success); border-color: transparent; color: #fff; }
html[data-theme="dark"] .btn-success { color: #04281b; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg-sunken); color: var(--text); border-color: transparent; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: var(--step-0); }
.btn-block { width: 100%; }
.btn.on { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.btn-gradient { background: linear-gradient(135deg, var(--violet-500), #4f7dff 55%, var(--emerald-500)); color: #fff; border: 0; box-shadow: 0 10px 28px -10px rgba(124, 92, 255, .9); }
.btn-gradient:hover { filter: brightness(1.06); }
.inline-form { display: inline; margin: 0; }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; margin-bottom: var(--space-4); }
.field label, .label { font-weight: 600; font-size: var(--step--1); }
.field .hint { font-size: 12.5px; color: var(--text-faint); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--bg-elev); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input::placeholder { color: var(--text-faint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-actions { display: flex; gap: var(--space-3); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--space-5); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-4); }
legend { font-weight: 600; font-size: var(--step--1); margin-bottom: 8px; padding: 0; }

/* chip selectors */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--bg-sunken);
  color: var(--text-muted); font-size: 12.5px; font-weight: 600; border: 1px solid transparent; }
a.chip:hover { color: var(--text); text-decoration: none; border-color: var(--border-strong); }
.chip.tag::before { content: "#"; opacity: .55; }
.chip-toggle { position: relative; }
.chip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip-toggle span { display: inline-flex; padding: 9px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--bg-elev);
  font-size: var(--step--1); font-weight: 600; cursor: pointer; transition: all .15s var(--ease); }
.chip-toggle input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chip-toggle input:focus-visible + span { box-shadow: var(--ring); }
.chip-add { cursor: pointer; border: 1px dashed var(--border-strong); background: transparent; font: inherit; font-size: 12.5px; }

/* category picker */
.cat-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .cat-picker { grid-template-columns: repeat(4, 1fr); } }
.cat-option input { position: absolute; opacity: 0; }
.cat-option span { display: grid; gap: 2px; padding: 12px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg-elev); cursor: pointer;
  transition: all .15s var(--ease); height: 100%; }
.cat-option span b { display: flex; align-items: center; gap: 8px; font-size: var(--step--1); }
.cat-option span small { color: var(--text-faint); font-size: 11.5px; line-height: 1.35; }
.cat-option input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--bg-elev)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.cat-option input:focus-visible + span { box-shadow: var(--ring); }

/* ---------------------------------------------------------------- surfaces */
.card-surface, .panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel { padding: var(--space-5); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--space-4); }
.panel-title h2, .panel-title h3 { margin: 0; font-size: var(--step-1); }
.panel + .panel { margin-top: var(--space-4); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: var(--space-6) 0 var(--space-4); }
.section-title h2 { margin: 0; font-size: var(--step-2); }
.divider { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; }

/* ---------------------------------------------------------------- ActionCard component */
.acard { --c: var(--primary); position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; overflow: hidden; }
.acard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); }
.acard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--border)); }
.acard-head { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.acard h3 { font-size: var(--step-1); margin: 0; }
.acard h3 a { color: var(--text); }
.acard h3 a::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable */
.acard .body { color: var(--text-muted); font-size: var(--step--1); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.acard-foot { display: flex; align-items: center; gap: var(--space-3); color: var(--text-faint); font-size: 12.5px; flex-wrap: wrap; margin-top: auto; }
.acard-foot .who { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 600; }
.acard .why { position: relative; z-index: 1; font-size: 12px; color: var(--success); background: var(--success-soft); padding: 6px 10px; border-radius: 10px; display: flex; gap: 6px; align-items: flex-start; }
.acard .chips { position: relative; z-index: 1; }
.stat { display: inline-flex; align-items: center; gap: 4px; }
.stat svg { width: 15px; height: 15px; }
.cat-badge { --c: var(--primary); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.cat-badge i { font-style: normal; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600;
  background: var(--bg-sunken); color: var(--text-muted); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-open { color: var(--sky-500); background: color-mix(in srgb, var(--sky-500) 12%, transparent); }
.status-matched, .status-in_progress { color: var(--amber-500); background: color-mix(in srgb, var(--amber-500) 13%, transparent); }
.status-completed, .status-outcome_shared { color: var(--success); background: var(--success-soft); }
.status-closed { color: var(--text-faint); }
[data-cat="ASK"] { --c: var(--cat-ASK); } [data-cat="OFFER"] { --c: var(--cat-OFFER); } [data-cat="OPPORTUNITY"] { --c: var(--cat-OPPORTUNITY); }
[data-cat="CONNECT"] { --c: var(--cat-CONNECT); } [data-cat="MEET"] { --c: var(--cat-MEET); } [data-cat="MISSION"] { --c: var(--cat-MISSION); }
[data-cat="DISCOVER"] { --c: var(--cat-DISCOVER); } [data-cat="CREATE"] { --c: var(--cat-CREATE); }

/* lifecycle tracker */
.lifecycle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: var(--space-4) 0; }
.lifecycle li { list-style: none; text-align: center; font-size: 11px; font-weight: 600; color: var(--text-faint); }
.lifecycle li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--bg-sunken); margin-bottom: 6px; }
.lifecycle li.done { color: var(--success); } .lifecycle li.done::before { background: var(--success); }
.lifecycle li.now { color: var(--primary); } .lifecycle li.now::before { background: linear-gradient(90deg, var(--success), var(--primary)); }
.lifecycle { padding: 0; }
@media (max-width: 520px) { .lifecycle li { font-size: 9.5px; letter-spacing: -.01em; } }

/* ---------------------------------------------------------------- avatars */
.avatar { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, var(--violet-500), var(--sky-500)); color: #fff; font-weight: 700; font-size: calc(var(--s) * .38); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xs { --s: 24px; } .avatar.sm { --s: 30px; } .avatar.lg { --s: 64px; } .avatar.xl { --s: 104px; }

/* ---------------------------------------------------------------- RelayChain visualisation */
.journey { list-style: none; margin: 0; padding: 0; }
.journey ul { list-style: none; margin: 0 0 0 18px; padding: 0 0 0 18px; border-left: 2px dashed var(--border-strong); }
.journey li { position: relative; padding: 8px 0; }
.hop { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-sunken); font-size: var(--step--1); }
.hop .arrow { color: var(--primary); font-weight: 700; }
.hop.success { background: var(--success-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 40%, transparent); }
.hop .note { display: block; color: var(--text-muted); font-style: italic; margin-top: 2px; }
.journey-origin { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 4px; }
.journey-origin .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.journey-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: var(--space-4); }
.journey-stats div { text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--bg-sunken); }
.journey-stats b { display: block; font-size: var(--step-2); }
.journey-stats span { font-size: 11px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ---------------------------------------------------------------- responses / feed */
.response { display: flex; gap: 12px; padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.response:first-child { border-top: 0; }
.response .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); }
.response .meta b { color: var(--text); font-size: var(--step--1); }
.response .text { margin: 4px 0 8px; }
.tag-offer { color: var(--success); background: var(--success-soft); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tag-accepted { white-space: nowrap; color: #fff; background: var(--success); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }

/* ---------------------------------------------------------------- flash */
.flashes { position: fixed; top: calc(var(--nav-h) + 10px); left: 50%; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100% - 24px)); display: grid; gap: 8px; }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); font-size: var(--step--1); font-weight: 500;
  background: var(--bg-elev); border: 1px solid var(--border); animation: pop .22s var(--ease); }
.flash.success { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
.flash.success::before { content: "✓"; color: var(--success); font-weight: 700; }
.flash.error { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.flash.error::before { content: "!"; color: var(--danger); font-weight: 700; }
.flash.warning::before { content: "•"; color: var(--warning); font-weight: 700; }
.flash button { margin-left: auto; background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 18px; line-height: 1; }
.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); background: var(--warning-soft);
  color: var(--text); font-size: var(--step--1); margin-bottom: var(--space-4); }
.banner.info { background: var(--primary-soft); }

/* ---------------------------------------------------------------- empty / error states */
.empty { text-align: center; padding: var(--space-6) var(--space-4); color: var(--text-muted); border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty .glyph { width: 52px; height: 52px; margin: 0 auto var(--space-3); border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.empty p { margin-bottom: var(--space-3); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: var(--space-5); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: var(--step--1); }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-color: var(--primary); }
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--space-4); scrollbar-width: none; }
.filter-bar a { flex: none; }
.filter-bar a.chip.on { background: var(--primary); color: #fff; }

/* ---------------------------------------------------------------- page header / hero */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.page-head h1 { margin: 0; font-size: var(--step-3); }
.page-head p { margin: 4px 0 0; color: var(--text-muted); }
.hero { position: relative; overflow: hidden; padding: var(--space-8) 0 var(--space-7); background: radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 255, .28), transparent 60%),
  radial-gradient(800px 500px at -10% 110%, rgba(31, 214, 147, .18), transparent 60%), var(--navy-950); color: #eef0ff; }
.hero h1 { font-size: var(--step-5); letter-spacing: -.035em; max-width: 14ch; margin-bottom: var(--space-4); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--violet-400), var(--emerald-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: var(--step-1); color: #b8bfe6; max-width: 52ch; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; font-weight: 600; color: #cfd5ff; margin-bottom: var(--space-5); }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500); box-shadow: 0 0 0 4px rgba(31, 214, 147, .2); }
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero .btn:not(.btn-gradient) { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .2); }
.relay-visual { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.relay-visual svg { width: 100%; height: 100%; }
.relay-visual .pulse { animation: pulse 3s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
.relay-visual .flow { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .5; transform: scale(1.12); } }
@keyframes flow { to { stroke-dashoffset: -28; } }
.steps { display: grid; gap: var(--space-4); counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--border); counter-increment: s; position: relative; }
.step::before { content: counter(s, decimal-leading-zero); font-weight: 700; font-size: var(--step--1); color: var(--primary); display: block; margin-bottom: var(--space-3); }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--text-muted); font-size: var(--step--1); margin: 0; }
.band { padding: var(--space-7) 0; }
.band.alt { background: var(--bg-elev); border-block: 1px solid var(--border); }
.cta-band { border-radius: var(--radius-lg); padding: var(--space-7) var(--space-5); text-align: center; color: #fff;
  background: radial-gradient(600px 300px at 20% 0%, rgba(31, 214, 147, .35), transparent 60%), linear-gradient(135deg, var(--navy-800), #24166e); }
.cta-band h2 { font-size: var(--step-4); } .cta-band p { color: #c6cbf0; }

/* ---------------------------------------------------------------- stats / metrics */
.metric { padding: var(--space-4); border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); }
.metric b { display: block; font-size: var(--step-3); letter-spacing: -.03em; }
.metric span { font-size: 12px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.metric.hl { background: linear-gradient(135deg, var(--primary-soft), var(--success-soft)); border-color: transparent; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { padding: 12px 8px; border-radius: 12px; background: var(--bg-sunken); text-align: center; }
.mini-stats b { display: block; font-size: var(--step-2); }
.mini-stats span { font-size: 11px; color: var(--text-faint); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11px; color: var(--text-faint); }
.bars i { display: block; width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--violet-500), var(--emerald-500)); min-height: 3px; }
/* height buckets for bars (no inline styles under CSP) */
.h0 { height: 2%; } .h1 { height: 10%; } .h2 { height: 20%; } .h3 { height: 30%; } .h4 { height: 40%; } .h5 { height: 50%; }
.h6 { height: 60%; } .h7 { height: 70%; } .h8 { height: 80%; } .h9 { height: 90%; } .h10 { height: 100%; }

/* ---------------------------------------------------------------- list items */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.list > li:first-child { border-top: 0; }
.list .title { font-weight: 600; color: var(--text); }
.list .sub { font-size: 12.5px; color: var(--text-muted); }
.list .unread { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); margin: 0 calc(var(--space-3) * -1); padding-inline: var(--space-3); border-radius: 12px; }
.circle-tile { display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text); transition: transform .18s var(--ease), box-shadow .18s; }
.circle-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.circle-mark { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: conic-gradient(from 210deg, var(--violet-500), var(--sky-500), var(--emerald-500), var(--violet-500)); }
.circle-mark.lg { width: 72px; height: 72px; border-radius: 22px; font-size: 1.6rem; }
.circle-tile p { color: var(--text-muted); font-size: var(--step--1); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- messaging */
.chat { display: grid; height: calc(100vh - var(--nav-h) - 150px); min-height: 420px; }
@media (min-width: 860px) { .chat { grid-template-columns: 300px 1fr; height: calc(100vh - var(--nav-h) - 80px); } }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; display: none; }
@media (min-width: 860px) { .chat-list { display: block; } }
.chat-list a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; color: var(--text); border-bottom: 1px solid var(--border); }
.chat-list a:hover, .chat-list a.active { background: var(--bg-sunken); text-decoration: none; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: min(78%, 520px); padding: 9px 13px; border-radius: 18px; background: var(--bg-sunken); font-size: var(--step--1); align-self: flex-start; word-wrap: break-word; }
.bubble.mine { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.bubble:not(.mine) { border-bottom-left-radius: 6px; }
.bubble .who { display: block; font-size: 11px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.bubble time { display: block; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-compose .input { min-height: 44px; border-radius: var(--radius-pill); }
.unread-pill { margin-left: auto; min-width: 22px; height: 22px; border-radius: 11px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }

/* ---------------------------------------------------------------- profile */
.profile-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-elev); border: 1px solid var(--border); }
.profile-hero .cover { height: 120px; background: radial-gradient(500px 200px at 80% 0%, rgba(31, 214, 147, .45), transparent 60%), linear-gradient(120deg, var(--navy-800), #3a1fb0); }
.profile-hero .inner { padding: 0 var(--space-5) var(--space-5); margin-top: -52px; }
.profile-hero .avatar { border: 4px solid var(--bg-elev); }

/* ---------------------------------------------------------------- story */
.story-hero { border-radius: var(--radius-lg); padding: var(--space-7) var(--space-5); color: #fff; text-align: center;
  background: radial-gradient(500px 260px at 50% 0%, rgba(31, 214, 147, .35), transparent 70%), linear-gradient(140deg, var(--navy-900), #2c1a8c); }
.story-hero h1 { font-size: var(--step-4); max-width: 22ch; margin: var(--space-3) auto; }
.story-hero .muted { color: #c6cbf0; }
.story-hero .row { justify-content: center; margin-top: var(--space-5); }
.story-hero .circle-mark { margin: 0 auto; }
.prose { font-size: var(--step-1); line-height: 1.7; }

/* ---------------------------------------------------------------- onboarding */
.progress { display: flex; gap: 6px; margin-bottom: var(--space-5); }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--bg-sunken); }
.progress i.on { background: linear-gradient(90deg, var(--violet-500), var(--emerald-500)); }
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: var(--space-6) var(--space-4); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .panel { padding: var(--space-6); }
.footer { border-top: 1px solid var(--border); padding: var(--space-6) 0 calc(var(--space-8) + 20px); color: var(--text-faint); font-size: var(--step--1); }
@media (min-width: 860px) { .footer { padding-bottom: var(--space-6); } }
.footer a { color: var(--text-muted); }

/* ---------------------------------------------------------------- tables (admin) */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }
.side-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text-muted); font-weight: 600; font-size: var(--step--1); }
.side-nav a.active, .side-nav a:hover { background: var(--bg-sunken); color: var(--text); text-decoration: none; }

details.disclose > summary { cursor: pointer; font-weight: 600; color: var(--text-muted); font-size: var(--step--1); }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.kbd { font-family: ui-monospace, monospace; font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--bg-sunken); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.why-box { font-size: var(--step--1); color: var(--success); background: var(--success-soft); padding: 10px 12px; border-radius: 12px; }
.waitlist-box { max-width: 460px; margin: var(--space-5) auto 0; text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: var(--space-5); }
.waitlist-box .input { background: rgba(7,11,29,.6); color: #fff; border-color: rgba(255,255,255,.25); }
.waitlist-box label, .waitlist-box .check span { color: #dfe3ff; }
.hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}

/* ===================================================================== Relaymigo 2.0 components */
.kicker{font-size:var(--step--1);font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--primary);margin:0 0 var(--space-2)}
.section-head{max-width:760px;margin:0 auto var(--space-6)}.section-head.center{text-align:center}.section-head h2{font-size:var(--step-4);line-height:1.15;margin:0 0 var(--space-3)}
.center{text-align:center}.tiny{font-size:.75rem}.faint{color:var(--text-faint)}.wrap{flex-wrap:wrap}.mt-8{margin-top:var(--space-8)}.mb-0{margin-bottom:0}
.split{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-7);align-items:center}
@media (max-width:900px){.split{grid-template-columns:1fr;gap:var(--space-5)}}

/* hero */
.hero2{background:radial-gradient(1200px 600px at 85% 10%,rgba(124,92,255,.35),transparent 60%),radial-gradient(800px 500px at 0% 100%,rgba(31,214,147,.14),transparent 60%),var(--navy-950);color:#eef0ff;padding:clamp(56px,9vw,120px) 0 clamp(48px,7vw,96px)}
.hero2-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:var(--space-7);align-items:center}
.hero2 h1{font-size:var(--step-5);line-height:1.05;letter-spacing:-.025em;margin:var(--space-4) 0}
.hero2 h1 em{font-style:normal;background:linear-gradient(90deg,#9a82ff,#1fd693);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero2 .lead{font-size:var(--step-1);color:#c4cae8;max-width:560px;line-height:1.6}
.hero2 .eyebrow{display:inline-flex;gap:8px;align-items:center;padding:6px 12px;border:1px solid #2a3670;border-radius:var(--radius-pill);font-size:var(--step--1);color:#c4cae8}
.hero2 .eyebrow i{width:8px;height:8px;border-radius:50%;background:var(--emerald-500)}
.btn-on-dark{background:transparent;color:#eef0ff;border:1px solid #3a4785}.btn-on-dark:hover{background:rgba(255,255,255,.06)}
.trust-row{display:flex;flex-wrap:wrap;gap:var(--space-5);list-style:none;padding:0;margin:var(--space-6) 0 0;color:#a3abd4;font-size:var(--step--1)}
.trust-row li{display:flex;gap:6px;align-items:center}.trust-row svg{width:16px;height:16px;color:var(--emerald-500)}
.hero-cards{display:grid;gap:var(--space-4);perspective:900px}
.demo-card{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));border:1px solid #2a3670;border-left:4px solid var(--hue);border-radius:var(--radius);padding:var(--space-4) var(--space-5);backdrop-filter:blur(6px);animation:floatIn .7s var(--ease) both}
.demo-card:nth-child(2){margin-left:var(--space-6);animation-delay:.12s}.demo-card:nth-child(3){animation-delay:.24s}
.demo-card h3{font-size:var(--step-1);margin:var(--space-2) 0 var(--space-1);color:#fff}.demo-card .muted{color:#a3abd4}
.demo-tag{position:absolute;top:10px;right:12px;font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;color:#a3abd4;border:1px solid #3a4785;border-radius:var(--radius-pill);padding:2px 8px}
@keyframes floatIn{from{opacity:0;transform:translateY(14px) rotateX(8deg)}to{opacity:1;transform:none}}
@media (max-width:900px){.hero2-grid{grid-template-columns:1fr}.demo-card:nth-child(2){margin-left:0}}

.intent-pill{display:inline-flex;gap:6px;align-items:center;font-size:var(--step--1);font-weight:600;color:var(--hue);background:color-mix(in srgb,var(--hue) 14%,transparent);padding:3px 10px;border-radius:var(--radius-pill)}
.intent-pill svg{width:14px;height:14px}
.intent-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--space-3)}
@media (max-width:1100px){.intent-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width:640px){.intent-grid{grid-template-columns:repeat(2,1fr)}}
.intent-tile{display:flex;flex-direction:column;gap:6px;padding:var(--space-4);border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-elev);color:var(--text);text-decoration:none;transition:transform .2s var(--ease),box-shadow .2s,border-color .2s}
.intent-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--hue)}
.intent-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--hue) 16%,transparent);color:var(--hue)}.intent-ico svg{width:20px;height:20px}

/* RelayChain demo */
.tabs.center{justify-content:center;flex-wrap:wrap}.tab.on{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.relaydemo-panel{display:none;max-width:720px;margin:var(--space-5) auto 0}.relaydemo-panel.on{display:block}
.demo-label{display:inline-flex;gap:6px;align-items:center;font-size:var(--step--1);color:var(--text-muted);background:var(--bg-sunken);border-radius:var(--radius-pill);padding:4px 12px;margin:0 0 var(--space-4)}.demo-label svg{width:14px;height:14px}
.chain{position:relative;display:grid;gap:var(--space-3);padding-left:var(--space-2)}
.chain-card{background:var(--bg-elev);border:1px solid var(--border);border-left:4px solid var(--hue);border-radius:var(--radius);padding:var(--space-4);display:grid;gap:6px;box-shadow:var(--shadow-sm)}
.chain-hop,.chain-outcome{display:flex;gap:var(--space-3);align-items:flex-start;padding:var(--space-3) var(--space-4);margin-left:var(--space-5);border-left:2px dashed var(--border-strong);opacity:.15;transform:translateX(-6px);transition:opacity .45s var(--ease),transform .45s var(--ease)}
.chain-hop.shown,.chain-outcome.shown{opacity:1;transform:none}
.hop-dot{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:var(--step--1);background:var(--primary-soft);color:var(--primary)}
.hop-dot.match{background:var(--success);color:#fff}.hop-dot svg{width:16px;height:16px}
.chain-outcome{border-left-color:var(--success);color:var(--success);font-weight:600;align-items:center}.chain-outcome svg{width:20px;height:20px}

/* SmartMatch demo */
.match-demo{background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-5);box-shadow:var(--shadow)}
.match-row{display:flex;gap:var(--space-3);align-items:center;padding:var(--space-3);border-radius:var(--radius-sm);transition:background .3s,opacity .3s,order .3s}
.match-row.dim{opacity:.45}.match-row.hit{background:color-mix(in srgb,var(--hue) 8%,transparent)}
.intent-dot{width:10px;height:10px;border-radius:50%;background:var(--hue);flex:none}
.match-score{min-width:44px;text-align:center;font-weight:700;font-size:var(--step--1);padding:4px 8px;border-radius:var(--radius-pill);background:var(--bg-sunken);color:var(--text-muted)}
.match-row.hit .match-score{background:var(--success);color:#fff}

/* benefits, pricing, faq, contact */
.benefit-card,.contact-card{background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-6)}
.benefit-card h3{display:flex;gap:10px;align-items:center}.benefit-card h3 svg{width:22px;height:22px;color:var(--primary)}
.ticks{list-style:none;padding:0;margin:var(--space-4) 0;display:grid;gap:10px}
.ticks li{position:relative;padding-left:26px;line-height:1.45}.ticks li::before{content:"";position:absolute;left:0;top:.35em;width:16px;height:16px;border-radius:50%;background:var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230fa36e' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat}
.billing-toggle{display:inline-flex;gap:4px;padding:4px;border-radius:var(--radius-pill);background:var(--bg-sunken);margin-top:var(--space-3)}
.billing-toggle button{border:0;background:transparent;padding:8px 16px;border-radius:var(--radius-pill);font:inherit;font-weight:600;color:var(--text-muted);cursor:pointer}
.billing-toggle button.on{background:var(--bg-elev);color:var(--text);box-shadow:var(--shadow-sm)}.billing-toggle .save{color:var(--success);font-size:.75rem}
.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-4);align-items:stretch}
@media (max-width:960px){.pricing{grid-template-columns:1fr;max-width:480px;margin:0 auto}}
.plan{position:relative;display:flex;flex-direction:column;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--space-6)}
.plan .ticks{flex:1}.plan.featured{border:2px solid var(--primary);box-shadow:0 20px 50px -20px rgba(106,70,245,.45)}
.plan.soon{background:var(--bg-sunken)}.plan h3{margin:0;display:flex;gap:8px;align-items:center}
.price{margin:var(--space-3) 0 var(--space-1)}.price b{font-size:var(--step-4);letter-spacing:-.02em}.price span{color:var(--text-muted)}
.plan-flag{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:var(--primary);color:#fff;font-size:.72rem;font-weight:700;padding:4px 12px;border-radius:var(--radius-pill);white-space:nowrap}
.soon-pill{font-size:.7rem;font-weight:700;padding:2px 8px;border-radius:var(--radius-pill);background:var(--warning-soft);color:var(--warning);text-transform:uppercase;letter-spacing:.04em}
.pro-badge{display:inline-block;font-size:.68rem;font-weight:800;letter-spacing:.08em;padding:2px 8px;border-radius:6px;color:#fff;background:linear-gradient(90deg,var(--violet-600),var(--emerald-600))}.pro-badge.lg{font-size:.9rem;padding:4px 12px}
.faq details{background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);padding:var(--space-4) var(--space-5);margin-bottom:var(--space-3)}
.faq summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:var(--space-3)}.faq summary::after{content:"+";color:var(--primary);font-size:1.3em;line-height:1}
.faq details[open] summary::after{content:"–"}.faq .prose{margin-top:var(--space-3)}
.banner.warn{background:var(--warning-soft);color:var(--warning);display:flex;gap:8px;align-items:center}.banner.warn svg{width:18px;height:18px}

/* content tiles */
.content-tile{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-5);background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);text-decoration:none;transition:box-shadow .2s,transform .2s var(--ease)}
a.content-tile:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.content-tile h3{margin:0;font-size:var(--step-1)}.content-tile p{margin:0}
.official-badge{align-self:flex-start;display:inline-flex;gap:6px;align-items:center;font-size:.72rem;font-weight:700;color:var(--primary);background:var(--primary-soft);padding:3px 10px;border-radius:var(--radius-pill)}
.official-badge.res{color:var(--sky-500);background:color-mix(in srgb,var(--sky-500) 12%,transparent)}.official-badge.demo{color:var(--warning);background:var(--warning-soft)}
.official-badge svg{width:13px;height:13px}.link-list{padding-left:1.2em;display:grid;gap:6px}

/* footer */
.footer2{border-top:1px solid var(--border);background:var(--bg-elev);margin-top:var(--space-8);padding:var(--space-7) 0 calc(var(--space-6) + env(safe-area-inset-bottom))}
.footer-cols{display:grid;grid-template-columns:1.6fr repeat(4,1fr);gap:var(--space-6)}
.footer-cols h4{font-size:var(--step--1);text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);margin:0 0 var(--space-3)}
.footer-cols a{display:block;color:var(--text-muted);text-decoration:none;margin-bottom:8px}.footer-cols a:hover{color:var(--primary)}
.footer-brand .brand{margin-bottom:var(--space-3)}.footer-base{display:flex;justify-content:space-between;gap:var(--space-4);margin-top:var(--space-6);padding-top:var(--space-4);border-top:1px solid var(--border)}
@media (max-width:820px){.footer-cols{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.footer-base{flex-direction:column}}
@media (max-width:720px){body:has(.bottomnav) .footer2{padding-bottom:96px}}

/* intent hues (classes, CSP-safe) */
.hue-need_help{--hue:#7c5cff}.hue-can_help{--hue:#0fa36e}.hue-hiring{--hue:#e08a00}.hue-seeking_work{--hue:#2a8cff}.hue-need_customers{--hue:#e0457b}.hue-offer_service{--hue:#0ea5b7}.hue-seeking_partner{--hue:#a347e6}.hue-seeking_mentor{--hue:#d9480f}.hue-building_project{--hue:#6a46f5}.hue-share_opportunity{--hue:#1fa36e}.hue-default{--hue:#7c5cff}
.tab{border:1px solid var(--border);background:var(--bg-elev);color:var(--text-muted);font:inherit;font-weight:600;font-size:var(--step--1);padding:8px 14px;border-radius:var(--radius-pill);cursor:pointer}
.tab:hover{color:var(--text);border-color:var(--border-strong)}.tabs.center{display:flex;gap:8px}
.chip-toggle{cursor:pointer;border:1px solid var(--border);font:inherit}.chip-toggle.on{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.chain-hop,.chain-outcome{opacity:.3}
.chain-card .intent-pill,.demo-card .intent-pill{justify-self:start;align-self:start}.plan .ticks{align-content:start}

/* ---------------- Community Pulse dashboard */
.dash{padding-top:var(--space-5)}
.welcome{display:grid;grid-template-columns:1fr 260px;gap:var(--space-5);background:radial-gradient(700px 300px at 90% 0%,rgba(124,92,255,.45),transparent 70%),radial-gradient(500px 260px at 0% 100%,rgba(31,214,147,.18),transparent 70%),var(--navy-900);color:#eef0ff;border-radius:var(--radius-lg);padding:var(--space-6);margin-bottom:var(--space-5)}
.welcome h1{font-size:var(--step-4);margin:0 0 var(--space-4);letter-spacing:-.02em}.welcome .kicker{color:#9a82ff}
.next-step{display:flex;gap:var(--space-3);align-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius);padding:var(--space-3) var(--space-4)}
.next-step p{color:#c4cae8}.next-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(31,214,147,.18);color:var(--emerald-500);flex:none}.next-ico svg{width:18px;height:18px}
.welcome-side{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;background:rgba(255,255,255,.05);border-radius:var(--radius);padding:var(--space-4)}
.welcome-side .muted{color:#a3abd4}
.ring{position:relative;width:96px;height:96px;margin-bottom:var(--space-2)}.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:var(--step-2)}
.ring-bg{fill:none;stroke:rgba(255,255,255,.12);stroke-width:10}.ring-fg{fill:none;stroke:url(#none);stroke:var(--emerald-500);stroke-width:10;stroke-linecap:round;stroke-dasharray:326.7;transition:stroke-dashoffset .8s var(--ease)}
.ring-0{stroke-dashoffset:326.7}.ring-10{stroke-dashoffset:294.0}.ring-20{stroke-dashoffset:261.4}.ring-30{stroke-dashoffset:228.7}.ring-40{stroke-dashoffset:196.0}.ring-50{stroke-dashoffset:163.3}.ring-60{stroke-dashoffset:130.7}.ring-70{stroke-dashoffset:98.0}.ring-80{stroke-dashoffset:65.3}.ring-90{stroke-dashoffset:32.7}.ring-100{stroke-dashoffset:0.0}
.mini-todo{list-style:none;padding:0;margin:0;display:grid;gap:4px;font-size:var(--step--1)}.mini-todo a{color:#c4cae8}.mini-todo a:hover{color:#fff}
.quick-actions{display:grid;grid-template-columns:repeat(8,1fr);gap:var(--space-3);margin-bottom:var(--space-6)}
@media (max-width:1100px){.quick-actions{grid-template-columns:repeat(4,1fr)}}@media (max-width:520px){.quick-actions{grid-template-columns:repeat(2,1fr)}}
.qa{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:var(--space-4);background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);text-decoration:none;font-weight:600;font-size:var(--step--1);line-height:1.3;transition:transform .2s var(--ease),box-shadow .2s,border-color .2s}
.qa:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:var(--hue)}
.qa-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--hue) 15%,transparent);color:var(--hue)}.qa-ico svg{width:19px;height:19px}
.qa-find_job{--hue:#e08a00}.qa-find_talent{--hue:#2a8cff}.qa-find_customers{--hue:#e0457b}.qa-find_partner{--hue:#a347e6}.qa-offer_skills{--hue:#0fa36e}.qa-find_mentor{--hue:#d9480f}.qa-collaborate{--hue:#6a46f5}.qa-join_circle{--hue:#0ea5b7}
.feed{display:grid;gap:var(--space-4)}
.feed-item{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-5);background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);text-decoration:none}
a.feed-item:hover{box-shadow:var(--shadow)}.feed-item h3{margin:0;font-size:var(--step-1)}.feed-item .list{margin:0}
.mini-stats.four{grid-template-columns:repeat(4,1fr)}.mini-stats.four b{font-size:var(--step-2)}
.first-steps{margin:0;padding-left:1.2em;display:grid;gap:4px}.first-steps li.done{color:var(--success)}.first-steps li.done a{color:var(--success);text-decoration:line-through}
.pro-panel{background:linear-gradient(135deg,color-mix(in srgb,var(--violet-600) 12%,var(--bg-elev)),color-mix(in srgb,var(--emerald-600) 10%,var(--bg-elev)));border-color:color-mix(in srgb,var(--violet-600) 30%,var(--border))}
.pro-panel h3{margin:var(--space-2) 0}
.intent-dot.hue-default{--hue:#7c5cff}
@media (max-width:820px){.welcome{grid-template-columns:1fr}.welcome-side{flex-direction:row;gap:var(--space-4);text-align:left}}
.template-strip{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:var(--space-4)}
.template-strip .chip{text-decoration:none}.template-strip .chip.on{background:var(--primary);color:#fff;border-color:var(--primary)}
.intent-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space-2)}@media (max-width:640px){.intent-picker{grid-template-columns:1fr}}
.intent-option{position:relative;cursor:pointer}.intent-option input{position:absolute;opacity:0}
.intent-option>span{display:grid;grid-template-columns:36px 1fr;column-gap:var(--space-3);align-items:center;padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-elev);transition:border-color .15s,box-shadow .15s}
.intent-option .intent-ico{grid-row:span 2}.intent-option small{color:var(--text-muted);font-size:var(--step--1);line-height:1.35}
.intent-option input:checked+span{border-color:var(--hue);box-shadow:0 0 0 2px color-mix(in srgb,var(--hue) 35%,transparent)}
.intent-option input:focus-visible+span{box-shadow:var(--ring)}
.more-types{margin-top:var(--space-3)}.more-types summary{cursor:pointer;color:var(--primary)}.more-types .cat-picker{margin-top:var(--space-3)}
.panel .list .grow,.feed-item .list .grow{display:flex;flex-direction:column;min-width:0}
.mini-stats.four{grid-template-columns:repeat(2,1fr)}
.tpl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-3)}@media (max-width:760px){.tpl-grid{grid-template-columns:1fr}}
.tpl{display:flex;flex-direction:column;gap:8px;padding:var(--space-3);border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--text);text-decoration:none;font-size:var(--step--1)}
.tpl:hover{border-color:var(--hue)}.tpl .intent-pill{align-self:flex-start}
.acard[class*='hue-']{border-top:3px solid var(--hue)}
.discover-search{background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);padding:var(--space-4);margin-bottom:var(--space-4)}
.search-row{display:flex;gap:var(--space-2);flex-wrap:wrap}.search-row .input{min-width:0}.search-row select.input{flex:0 1 200px}
.adv{margin-top:var(--space-3)}.adv summary{cursor:pointer;color:var(--primary);font-weight:600}
.tabs.scroll-x{overflow-x:auto;white-space:nowrap;scrollbar-width:none}.tabs.scroll-x::-webkit-scrollbar{display:none}
.empty-plus{display:grid;grid-template-columns:1fr 2fr;gap:var(--space-5);align-items:center;padding:var(--space-5);border:1px dashed var(--border-strong);border-radius:var(--radius);background:var(--bg-elev)}
.empty-plus h3{margin-top:0}@media (max-width:820px){.empty-plus{grid-template-columns:1fr}}
.row.tight{gap:6px}
.stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:var(--space-3)}@media (max-width:900px){.stat-grid{grid-template-columns:repeat(2,1fr)}}
.bars{display:flex;align-items:flex-end;gap:4px;height:140px;padding-top:var(--space-4)}
.bars .bar{flex:1;background:linear-gradient(180deg,var(--violet-500),var(--emerald-500));border-radius:4px 4px 0 0;position:relative;min-height:4px}
.bars .bar span{position:absolute;top:-18px;left:50%;transform:translateX(-50%);font-size:.7rem;color:var(--text-muted)}
.bars .h0{height:3%}.bars .h10{height:10%}.bars .h20{height:20%}.bars .h30{height:30%}.bars .h40{height:40%}.bars .h50{height:50%}.bars .h60{height:60%}.bars .h70{height:70%}.bars .h80{height:80%}.bars .h90{height:90%}.bars .h100{height:100%}
.feed-item.announce{border-left:4px solid var(--primary)}
.request-bar{display:flex;gap:var(--space-3);align-items:center;flex-wrap:wrap;background:var(--primary-soft)}
.official-start{display:grid;grid-template-columns:1.4fr 1fr;gap:var(--space-4);margin-bottom:var(--space-5)}@media (max-width:900px){.official-start{grid-template-columns:1fr}}.official-start .panel-title h3{display:flex;gap:8px;align-items:center}

/* ================================================================ Relaymigo ONE design system
   Tokens: midnight #101426 · deep navy #13152E · violet #6941FF / #7549EF · emerald #20C997 · teal #35D5AC
   bg #F3F4FA · text #151830 · muted #646B85 · borders #E2E5F0 */
:root {
  --violet-600: #6941ff; --violet-500: #7549ef; --violet-400: #9a82ff; --violet-100: #ecebff;
  --emerald-600: #12a57b; --emerald-500: #20c997; --teal-500: #35d5ac;
  --navy-950: #0c0f1f; --navy-900: #101426; --navy-800: #13152e; --navy-700: #1d2142; --navy-600: #2a2f57;
  --bg: #f3f4fa; --bg-sunken: #eceef6; --border: #e2e5f0; --border-strong: #cdd2e3;
  --text: #151830; --text-muted: #646b85; --text-faint: #8a90a8;
  --primary: var(--violet-600); --primary-hover: #5a32f0; --primary-soft: var(--violet-100);
  --success: var(--emerald-600); --success-soft: #dcf7ee;
  --shadow: 0 1px 2px rgba(21, 24, 48, .05), 0 10px 28px -14px rgba(21, 24, 48, .18);
  --sidebar-w: 236px;
}
html[data-theme="dark"] { --bg: #0c0f1f; --bg-elev: #13152e; --bg-sunken: #0a0c19; --border: #252a4d; --border-strong: #353b66; --text: #eef0ff; --text-muted: #a5abcc; --primary: #7c62ff; --primary-soft: rgba(124, 98, 255, .16); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] { --bg: #0c0f1f; --bg-elev: #13152e; --bg-sunken: #0a0c19; --border: #252a4d; --border-strong: #353b66; --text: #eef0ff; --text-muted: #a5abcc; --primary: #7c62ff; --primary-soft: rgba(124, 98, 255, .16); } }
.hidden { display: none !important; }
.center-text { text-align: center; }
.mt-2 { margin-top: var(--space-2); } .mt-5 { margin-top: var(--space-5); }
.container.wide { max-width: 1320px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.one-badge { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 6px; color: var(--text); margin-left: 4px; }
.eyebrow, .kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin: 0 0 6px; }
.eyebrow.on-dark { color: #a996ff; }
.page-head { margin-bottom: var(--space-5); align-items: flex-end; gap: var(--space-4); }
.page-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 4px; }
.page-head p { margin: 0; }
.lead { font-size: var(--step-1); color: var(--text-muted); }
.btn-outline { background: var(--bg-elev); border-color: var(--border-strong); color: var(--text); }
.input-sm { min-height: 36px; padding: 6px 10px; font-size: var(--step--1); width: auto; }
.side-h { font-size: var(--step-1); margin: 0 0 var(--space-3); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-500); margin-right: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald-500) 25%, transparent); }
.qi { --c: var(--primary); display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.qi svg { width: 20px; height: 20px; }
.qi.hue-violet { --c: #6941ff; } .qi.hue-emerald { --c: #12a57b; } .qi.hue-sky { --c: #2f6fe8; } .qi.hue-amber { --c: #c9821b; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); }
.checks svg { color: var(--emerald-600); width: 16px; height: 16px; margin-top: 3px; flex: none; }
.rm-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: var(--step--1); max-width: 90vw; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.row.tight { gap: 6px; }

/* ---------------------------------------------------------------- app shell: sidebar */
.sidebar { display: none; }
@media (min-width: 1100px) {
  body.has-sidebar .sidebar { display: flex; flex-direction: column; gap: 2px; position: fixed; top: var(--nav-h); left: 0; bottom: 0; width: var(--sidebar-w);
    padding: var(--space-4) var(--space-3); border-right: 1px solid var(--border); background: var(--bg-elev); overflow-y: auto; z-index: 30; }
  body.has-sidebar main, body.has-sidebar .flashes, body.has-sidebar .footer2 { margin-left: var(--sidebar-w); }
  body.has-sidebar .topnav { display: none; }
}
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin: var(--space-4) 12px var(--space-2); }
.side-group:first-child { margin-top: 0; }
.sidebar a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text-muted); font-weight: 500; }
.sidebar a:hover { background: var(--bg-sunken); color: var(--text); text-decoration: none; }
.sidebar a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.sidebar a svg { width: 19px; height: 19px; }
.sidebar .badge-dot { position: static; margin-left: auto; }
.side-upgrade { margin-top: auto; display: block !important; padding: 14px !important; border: 1px solid var(--border); background: linear-gradient(160deg, var(--primary-soft), transparent) !important; }
.side-upgrade b { display: block; color: var(--text); } .side-upgrade small { color: var(--text-muted); font-size: 12px; line-height: 1.4; display: block; margin-top: 2px; }
.bottomnav a.active { color: var(--primary); }
.bottomnav a.active svg { background: var(--primary-soft); border-radius: 10px; }

/* ---------------------------------------------------------------- landing: ecosystem hero (visual 01) */
.eco-wrap { padding: var(--space-5) 0 var(--space-6); }
.eco-hero { display: grid; gap: var(--space-6); align-items: center; background: var(--navy-900); color: #eef0ff; border-radius: 28px; padding: clamp(28px, 5vw, 64px); overflow: hidden; }
@media (min-width: 1000px) { .eco-hero { grid-template-columns: 1fr 1.05fr; } }
.eco-kicker { color: var(--teal-500); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 var(--space-4); }
.eco-hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.04em; color: #fff; margin: 0 0 var(--space-4); }
.eco-hero h1 em { font-style: normal; color: #9b87ff; }
.eco-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #c3c8e6; max-width: 32ch; margin: 0; }
.eco-tags { color: #9aa1c7; font-size: var(--step--1); margin: var(--space-5) 0 var(--space-3); }
.eco-hero .trust-row { color: #aeb4d6; }
.hub { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.hub-lines { position: absolute; inset: 10%; width: 80%; height: 80%; }
.hub-lines circle { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.hub-lines .spokes path { stroke: #7a62ff; stroke-width: 1.4; stroke-dasharray: 5 6; fill: none; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -220; } }
@media (prefers-reduced-motion: reduce) { .hub-lines .spokes path { animation: none; } }
.hub-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 9px var(--navy-900), 0 0 0 11px #7a62ff, 0 20px 60px -10px rgba(105, 65, 255, .6); display: grid; place-content: center; text-align: center; }
.hub-core b { color: #fff; font-size: clamp(.95rem, 2.2vw, 1.35rem); letter-spacing: -.02em; } .hub-core span { color: #d9d2ff; letter-spacing: .3em; font-size: 12px; }
.hub-node { position: absolute; transform: translate(-50%, -50%); background: #1d2142; border: 1px solid #343a66; border-radius: 12px; padding: 9px 14px; text-align: center; min-width: 26%; color: #fff;
  transition: border-color .2s var(--ease), transform .2s var(--ease); }
.hub-node:hover { border-color: #7a62ff; text-decoration: none; transform: translate(-50%, -52%); }
.hub-node b { display: block; font-size: clamp(.78rem, 1.6vw, 1rem); } .hub-node span { display: block; color: #aeb4d6; font-size: clamp(.68rem, 1.3vw, .85rem); }
.n-top { left: 50%; top: 9%; } .n-bot { left: 50%; top: 91%; } .n-l { left: 13%; top: 50%; } .n-r { left: 87%; top: 50%; }
.n-tl { left: 21%; top: 17%; } .n-tr { left: 79%; top: 17%; } .n-bl { left: 21%; top: 83%; } .n-br { left: 79%; top: 83%; }
.journey-strip { list-style: none; margin: var(--space-4) 0 0; padding: 18px 22px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; font-weight: 700; }
.journey-strip li { display: flex; align-items: center; gap: 18px; }
.journey-strip li:not(:last-child)::after { content: "→"; color: var(--text-faint); font-weight: 400; }
/* product areas (visual 02) */
.feat6 { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .feat6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .feat6 { grid-template-columns: repeat(3, 1fr); } }
.feat-card { --tint: #ecebff; --c: #6941ff; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.feat-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-card.f-emerald { --tint: #e3f7f0; --c: #12a57b; } .feat-card.f-sky { --tint: #e8edfb; --c: #6941ff; }
html[data-theme="dark"] .feat-card { --tint: #1b1f40; }
.feat-art { position: relative; height: 110px; background: var(--tint); display: grid; place-items: center; overflow: hidden; }
.feat-ring { position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.feat-ring.r2 { width: 182px; height: 182px; }
.feat-ico { position: relative; width: 58px; height: 58px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--c); box-shadow: 0 6px 16px -8px rgba(21, 24, 48, .3); }
.feat-ico svg { width: 28px; height: 28px; }
.feat-body { padding: 20px 22px 24px; } .feat-body h3 { font-size: 1.2rem; margin: 0 0 8px; } .feat-body p.muted { margin: 0; font-size: var(--step--1); }
.comm-promo { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .comm-promo { grid-template-columns: 1fr 1fr; } }
.meet-hero.promo h3 { color: #fff; font-size: 1.4rem; margin: 0 0 var(--space-4); }
.mh-ctls { display: flex; justify-content: center; gap: 10px; margin: var(--space-4) 0 var(--space-2); }
.mh-ctls span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #262a4e; color: #fff; }
.mh-ctls span.end { background: #d64550; }

/* ---------------------------------------------------------------- pricing (visual 04) */
.period-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; margin: 0 auto var(--space-5); }
.pricing-wrap, .band .period-toggle { display: flex; width: max-content; }
.period-toggle button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.period-toggle button.on { background: var(--primary); color: #fff; }
.save-pill { font-size: 11px; background: var(--success-soft); color: var(--success); padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
.period-toggle button.on .save-pill { background: rgba(255, 255, 255, .2); color: #fff; }
.plans3, .checkout-grid { display: grid; gap: var(--space-4); align-items: stretch; }
@media (min-width: 960px) { .plans3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .checkout-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.plan3 { position: relative; display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px; padding: 28px 26px; }
.plan3.primary { border: 2px solid var(--primary); box-shadow: 0 20px 50px -30px rgba(105, 65, 255, .55); }
.plan-badge { position: absolute; top: 18px; right: 18px; background: var(--primary-soft); color: var(--primary); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; }
.plan3 h3 { font-size: 1.35rem; margin: 0 0 6px; padding-right: 120px; } .plan-tag { color: var(--text-muted); font-size: var(--step--1); min-height: 2.6em; }
.plan-price { margin: var(--space-4) 0 2px; } .plan-price b { font-size: 2.7rem; letter-spacing: -.04em; } .plan-price span { color: var(--text-muted); }
.plan-sub { color: var(--text-muted); font-size: 12.5px; margin-bottom: var(--space-4); }
.plan3 hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-5) 0; width: 100%; }
.plan3 .checks { flex: 1; } .plan-foot { margin: var(--space-5) 0 0; font-size: 12px; color: var(--text-faint); }
.pricing-note { max-width: 860px; margin: var(--space-5) auto 0; padding: 16px 20px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; font-size: 12.5px; color: var(--text-muted); }

/* ---------------------------------------------------------------- communication hub (visual 03) */
.comm { display: grid; gap: var(--space-5); }
@media (min-width: 1200px) { .comm { grid-template-columns: minmax(0, 1fr) 300px; } }
.quick4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: var(--space-4); }
.quick4 > form, .quick4 > details { margin: 0; position: relative; }
.quick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 88px; padding: 12px 6px; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: 16px; font: inherit; font-weight: 600; font-size: 13px; color: var(--text); cursor: pointer; text-align: center; list-style: none; transition: border-color .15s, box-shadow .15s; }
.quick::-webkit-details-marker { display: none; }
.quick:hover { border-color: var(--primary); text-decoration: none; box-shadow: var(--shadow); }
.quick .qi { width: 44px; height: 44px; }
.pop-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 280px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.quick4 > details:nth-child(4) .pop-panel { left: auto; right: 0; }
.meet-hero { background: var(--navy-900); color: #dfe3f7; border-radius: 22px; padding: clamp(20px, 3vw, 28px); margin-bottom: var(--space-4); }
.meet-hero h2 { color: #fff; font-size: 1.55rem; margin: 0 0 6px; } .meet-hero > p { color: #b9bfdf; }
.mh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: var(--space-4) 0 var(--space-3); }
.mh-tile { aspect-ratio: 16 / 8; border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 6px; background: #22264a; border: 1px solid #2f3462; }
.mh-tile.empty { background: transparent; border-style: dashed; color: #8c93bd; }
.mh-tile small { color: #b0b6da; font-size: 12px; } .mh-tile .avatar { background: #3a3f70; color: #fff; }
.mh-plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed #4b5187; }
.mh-note { font-size: 12.5px; color: #9aa1c7; } .mh-usage { color: #9aa1c7; margin: var(--space-3) 0 0; } .mh-usage a { color: #b9a9ff; }
.mh-actions { display: flex; flex-wrap: wrap; gap: 10px; } .mh-actions form { flex: 1; min-width: 200px; } .mh-actions .btn { width: 100%; }
.convlinks { list-style: none; padding: 0; margin: 0; }
.convlinks a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.convlinks a:hover { text-decoration: none; } .convlinks a:hover b { color: var(--primary); }
.convlinks b { display: block; font-size: 14px; } .convlinks small { color: var(--text-muted); font-size: 12.5px; }
.comm-side section { margin-bottom: var(--space-5); }
.up-card { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); margin-bottom: 8px; color: var(--text); }
.up-card:hover { border-color: var(--primary); text-decoration: none; } .up-card.empty { background: var(--bg-sunken); }
.hist { list-style: none; margin: 0; padding: 0; } .hist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hist small { display: block; } .hist time { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.recent { list-style: none; padding: 0; margin: 0; } .recent a { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--text); }
@media (max-width: 640px) { .quick { min-height: 80px; font-size: 12px; } .quick4 { gap: 8px; } .pop-panel { min-width: 240px; } }

/* ---------------------------------------------------------------- meeting room */
.room-page { background: #0b0e1d; color: #e7eaf8; }
.room-page .topbar, .room-page .bottomnav, .room-page .sidebar, .room-page .flashes { display: none !important; }
.room-page main, body.has-sidebar.room-page main { margin-left: 0 !important; padding: 0 !important; min-height: 100dvh; }
.room #room { display: flex; flex-direction: column; min-height: 100dvh; }
.room-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #1f2446; }
.room-title { font-size: 1rem; margin: 0; color: #fff; } .room-sub { margin: 0; font-size: 12px; color: #9aa1c7; }
.room-clock { font-variant-numeric: tabular-nums; font-size: 13px; color: #b6bce0; background: #1a1e3a; padding: 4px 10px; border-radius: 999px; }
.net-quality { font-size: 12px; color: #9aa1c7; } .net-quality[data-quality="good"] { color: #35d5ac; } .net-quality[data-quality="fair"] { color: #f0b94c; } .net-quality[data-quality="poor"] { color: #ff6b7d; }
.pill-lock { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: #f0b94c; } .pill-lock svg { width: 13px; height: 13px; }
.room-notice { margin: 10px auto 0; padding: 10px 14px; border-radius: 12px; background: #1d2246; color: #dfe3f7; font-size: 14px; max-width: 720px; text-align: center; }
.room-notice[data-tone="error"] { background: #4a1d2b; color: #ffd9df; } .room-notice[data-tone="warning"] { background: #4a3a17; color: #ffeac0; }
.lobby { flex: 1; display: grid; place-items: center; padding: 20px; }
.lobby-grid { display: grid; gap: 20px; width: min(1000px, 100%); align-items: center; }
@media (min-width: 860px) { .lobby-grid { grid-template-columns: 1.4fr 1fr; } }
.lobby-card { background: #141834; border: 1px solid #262b55; border-radius: 20px; padding: 24px; width: min(460px, 100%); justify-self: center; color: #e7eaf8; }
.lobby-card h2 { color: #fff; } .lobby-card .muted, .lobby-card .faint, .lobby-card label { color: #a8aed3; }
.lobby-card .input { background: #0f1229; border-color: #2c3260; color: #fff; }
.lobby-facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; }
.preview { position: relative; aspect-ratio: 16 / 9; }
.preview-controls { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.stage { flex: 1; display: grid; grid-template-rows: 1fr auto; min-height: 0; position: relative; }
@media (min-width: 960px) { .stage:has(.side:not(.hidden)) { grid-template-columns: 1fr 340px; } .stage:has(.side:not(.hidden)) .controls { grid-column: 1 / -1; } }
.stage-main { position: relative; min-height: 0; padding: 12px; }
.tiles { display: grid; gap: 10px; height: 100%; grid-template-columns: 1fr; grid-auto-rows: minmax(160px, 1fr); }
.tiles[data-count="2"] { grid-template-columns: 1fr; } @media (min-width: 760px) { .tiles[data-count="2"] { grid-template-columns: 1fr 1fr; } }
.tiles[data-count="3"], .tiles[data-count="4"] { grid-template-columns: 1fr 1fr; }
.tiles[data-count="5"], .tiles[data-count="6"] { grid-template-columns: repeat(2, 1fr); } @media (min-width: 900px) { .tiles[data-count="5"], .tiles[data-count="6"] { grid-template-columns: repeat(3, 1fr); } }
.tiles[data-count="7"], .tiles[data-count="8"], .tiles[data-count="9"] { grid-template-columns: repeat(3, 1fr); }
.tiles:has(.spotlight) { grid-template-columns: 1fr; } @media (min-width: 900px) { .tiles:has(.spotlight) { grid-template-columns: 3fr 1fr; } .tiles .spotlight { grid-row: span 3; } }
.tile { position: relative; background: #1a1e3c; border: 1px solid #262b55; border-radius: 16px; overflow: hidden; min-height: 140px; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #12152b; }
.tile.spotlight video, .tile.sharing video { object-fit: contain; }
.tile.mirror video { transform: scaleX(-1); }
.tile-initials { position: absolute; inset: 0; display: none; place-items: center; }
.tile-initials span { width: 84px; height: 84px; border-radius: 50%; background: #333a72; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; color: #fff; }
.tile.novideo video { visibility: hidden; } .tile.novideo .tile-initials { display: grid; }
.tile-label { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tile-name { background: rgba(10, 12, 28, .55); padding: 3px 8px; border-radius: 8px; }
.tile-flags i { font-style: normal; display: none; margin-left: 4px; }
.tile.muted .f-mic, .tile.hand .f-hand, .tile.sharing .f-share { display: inline; }
.tile.speaking { border-color: #35d5ac; box-shadow: 0 0 0 2px #35d5ac inset; }
.tile[data-quality="poor"] .tile-net::after { content: "Weak connection"; position: absolute; top: 8px; right: 8px; font-size: 11px; background: #4a1d2b; color: #ffd9df; padding: 2px 6px; border-radius: 6px; }
.controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #1f2446; background: #0b0e1d; }
.ctl { position: relative; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #262b52; color: #fff; display: inline-grid; place-items: center; cursor: pointer; list-style: none; }
.ctl::-webkit-details-marker { display: none; }
.ctl:hover { background: #343a6a; } .ctl svg { width: 22px; height: 22px; }
.ctl.off { background: #e9ecf8; color: #b4233a; } .ctl.active { background: var(--primary); }
.ctl .off-i { display: none; } .ctl.off .on-i { display: none; } .ctl.off .off-i { display: inline; }
.ctl:disabled { opacity: .4; cursor: not-allowed; }
.ctl-leave { background: #d64550; width: 62px; border-radius: 999px; } .ctl-leave:hover { background: #e3525d; }
.ctl .badge-dot { top: 0; right: 0; }
#room:not(.is-host) .host-only { display: none !important; }
.react-menu { position: relative; } .react-panel { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; background: #1a1e3c; border: 1px solid #2c3260; border-radius: 999px; padding: 6px; }
.react-panel button { border: 0; background: transparent; font-size: 22px; cursor: pointer; padding: 4px 6px; border-radius: 50%; } .react-panel button:hover { background: #2c3260; }
.reaction-burst { position: absolute; left: 50%; bottom: 20%; font-size: 44px; animation: burst 2.2s var(--ease) forwards; pointer-events: none; z-index: 3; }
@keyframes burst { from { transform: translate(-50%, 0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translate(-50%, -10px) scale(1.1); } to { transform: translate(-50%, -140px) scale(1); opacity: 0; } }
.side { background: #12152d; border-left: 1px solid #1f2446; padding: 14px; overflow-y: auto; color: #e7eaf8; }
@media (max-width: 959px) { .side { position: fixed; inset: auto 0 76px 0; max-height: 65vh; z-index: 40; border-radius: 18px 18px 0 0; border: 1px solid #262b55; } }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.side .icon-btn { color: #cdd2ee; }
.seg { display: inline-flex; gap: 4px; background: #0c0f22; padding: 4px; border-radius: 999px; }
.seg button { border: 0; background: transparent; color: #a8aed3; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.side[data-tab="people"] .seg [data-tab="people"], .side[data-tab="chat"] .seg [data-tab="chat"], .side[data-tab="settings"] .seg [data-tab="settings"] { background: #262b52; color: #fff; }
.side .people li { border-color: #232850; } .side .faint, .side .muted, .side label { color: #9aa1c7; }
.side .input { background: #0f1229; border-color: #2c3260; color: #fff; }
.side .btn-ghost { color: #cdd2ee; } .side .btn-ghost:hover { background: #20254a; }
.waiting-box { background: #1d2246; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.toggle-row { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #262b55; background: transparent; color: #e7eaf8; font: inherit; cursor: pointer; text-align: left; }
.toggle-row::after { content: ""; margin-left: auto; width: 34px; height: 20px; border-radius: 999px; background: #2c3260; box-shadow: inset -14px 0 0 2px #2c3260, inset 0 0 0 2px #2c3260; background: #5c638f; }
.toggle-row[aria-pressed="true"]::after { background: var(--emerald-500); box-shadow: inset 14px 0 0 2px var(--emerald-500), inset 0 0 0 2px var(--emerald-500); background: #fff; }
.toggle-row svg { width: 18px; height: 18px; }
.invite-box { margin-top: 16px; }
.chat-pane .chat-log { list-style: none; padding: 0; margin: 0 0 10px; max-height: 50vh; overflow-y: auto; display: block; }
.chat-pane .chat-log li { padding: 6px 0; } .chat-pane .chat-log p { margin: 2px 0 0; color: #dfe3f7; } .chat-pane .chat-log li.mine b { color: #b9a9ff; }
.calling { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(11, 14, 29, .86); z-index: 4; color: #fff; }
.calling-pulse .avatar { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(105, 65, 255, .6); } 100% { box-shadow: 0 0 0 30px rgba(105, 65, 255, 0); } }
.avatar.xl { --s: 96px; font-size: 2rem; }
.ended { flex: 1; display: grid; place-items: center; padding: 20px; }
.end-btn { margin-left: 6px; }
.incoming-call { position: fixed; right: 16px; bottom: 96px; z-index: 95; width: min(340px, calc(100vw - 32px)); background: var(--navy-900); color: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6); border: 1px solid #2f3462; animation: rise .25s var(--ease); }
.incoming-call p { margin: 0 0 12px; } .incoming-call .row { gap: 10px; } .incoming-call form { flex: 1; } .incoming-call .btn { width: 100%; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
@media (min-width: 860px) { .incoming-call { bottom: 24px; } }

/* ---------------------------------------------------------------- RelayTalk */
.chat { grid-template-columns: 1fr; }
@media (min-width: 860px) { .chat { grid-template-columns: 300px minmax(0, 1fr); } }
@media (min-width: 1280px) { .chat:has(.chat-info) { grid-template-columns: 280px minmax(0, 1fr) 280px; } }
.chat-info { display: none; border-left: 1px solid var(--border); padding: 16px; overflow-y: auto; }
@media (min-width: 1280px) { .chat-info { display: block; } }
.chat-info:target { display: block; position: fixed; inset: var(--nav-h) 0 0 auto; width: min(340px, 100vw); background: var(--bg-elev); z-index: 45; box-shadow: var(--shadow); }
.chat-list-head { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chat-head .title { display: grid; color: var(--text); line-height: 1.25; } .chat-head .title small { font-weight: 400; }
.chat-head .menu-panel form button, .chat-head .menu-panel a { width: 100%; }
.bubble { position: relative; }
.bubble.mine a, .bubble.mine .muted { color: #fff; }
.bubble.deleted { background: transparent; border: 1px dashed var(--border-strong); color: var(--text-muted); }
.bubble.mine.deleted i { color: var(--text-muted); }
.bubble .quote { display: block; border-left: 3px solid currentColor; padding: 2px 8px; margin-bottom: 6px; opacity: .85; font-size: 12.5px; color: inherit; border-radius: 4px; background: rgba(0, 0, 0, .05); }
.bubble .quote b { display: block; font-size: 11.5px; }
.bubble .fwd { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: .75; margin-bottom: 2px; } .bubble .fwd svg { width: 12px; height: 12px; }
.att-img { max-width: min(320px, 100%); max-height: 320px; border-radius: 12px; margin: 2px 0; }
.att-audio { width: min(280px, 70vw); height: 40px; display: block; } .att-video { max-width: min(320px, 100%); border-radius: 12px; }
.att-doc { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .06); color: inherit; }
.att-doc small { display: block; opacity: .75; } .att-doc svg { width: 20px; height: 20px; }
.bubble .meta { display: block; font-size: 10.5px; opacity: .7; margin-top: 3px; } .bubble .seen { font-weight: 600; }
.reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .reacts form { margin: 0; }
.react { border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); border-radius: 999px; padding: 1px 7px; font-size: 12px; cursor: pointer; }
.react.mine { border-color: var(--primary); background: var(--primary-soft); }
.msg-menu { position: absolute; top: 2px; right: -30px; } .bubble.mine .msg-menu { right: auto; left: -30px; }
.msg-menu summary { list-style: none; cursor: pointer; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--text-faint); opacity: 0; }
.msg-menu summary::-webkit-details-marker { display: none; }
.bubble:hover .msg-menu summary, .msg-menu[open] summary, .msg-menu summary:focus-visible { opacity: 1; }
@media (hover: none) { .msg-menu summary { opacity: .6; } }
.msg-menu-panel { position: absolute; z-index: 20; top: 28px; right: 0; width: 260px; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.bubble.mine .msg-menu-panel { right: auto; left: 0; }
.msg-menu-panel > button, .msg-menu-panel form > button.danger { display: flex; gap: 8px; align-items: center; width: 100%; border: 0; background: transparent; font: inherit; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--text); text-align: left; }
.msg-menu-panel > button:hover, .msg-menu-panel button.danger:hover { background: var(--bg-sunken); } .msg-menu-panel .danger { color: var(--danger) !important; }
.react-row { display: flex; justify-content: space-between; } .react-row form { margin: 0; } .react-row button { border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: 8px; padding: 2px 4px; } .react-row button:hover { background: var(--bg-sunken); }
.edit-form { display: grid; gap: 6px; padding: 6px 0; } .edit-form .input { min-height: 36px; }
.msg-sys { align-self: center; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-muted); background: var(--bg-sunken); padding: 4px 12px; border-radius: 999px; margin: 4px 0; }
.msg-sys svg { width: 14px; height: 14px; }
.chat-compose { flex-direction: column; align-items: stretch; }
.compose-row { flex-wrap: nowrap; align-items: flex-end; } .compose-row textarea.input { min-height: 44px; max-height: 160px; resize: none; border-radius: 22px; padding: 11px 16px; }
.file-btn { cursor: pointer; } [data-record].recording { background: var(--danger-soft); color: var(--danger); animation: pulse 1.4s infinite; }
.reply-bar { display: flex; align-items: center; background: var(--bg-sunken); border-left: 3px solid var(--primary); padding: 4px 8px; border-radius: 8px; }
.typing { min-height: 1.2em; margin: 0 16px; }
.pick-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; } .pick { align-items: center; }
.quota { min-width: 200px; } .meter { height: 8px; background: var(--bg-sunken); border-radius: 999px; overflow: hidden; } .meter-fill { display: block; height: 100%; width: 0; background: var(--primary); }

/* ---------------------------------------------------------------- RelayMarket / Events / Spaces */
.filters { display: grid; gap: 8px; margin-bottom: var(--space-5); }
@media (min-width: 760px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; } }
.svc-grid, .ev-grid { display: grid; gap: var(--space-4); }
@media (min-width: 700px) { .svc-grid, .ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; gap: 8px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 18px; color: var(--text); }
.svc-card h3 { font-size: 1.08rem; margin: 4px 0 0; } .svc-card h3 a { color: var(--text); }
.svc-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); text-decoration: none; }
.svc-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.cat-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-muted); }
.cat-chip.ok { background: var(--success-soft); color: var(--success); } .cat-chip svg { width: 13px; height: 13px; }
.price-tag { font-weight: 700; font-size: 13px; white-space: nowrap; }
.svc-detail { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 960px) { .svc-detail { grid-template-columns: minmax(0, 1fr) 340px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: var(--space-4) 0; }
.facts div { background: var(--bg-sunken); border-radius: 12px; padding: 10px 12px; } .facts dt { font-size: 12px; color: var(--text-muted); } .facts dd { margin: 0; font-weight: 600; }
.seg-radio { display: flex; gap: 6px; margin-bottom: 10px; } .seg-radio label { flex: 1; } .seg-radio input { position: absolute; opacity: 0; }
.seg-radio span { display: block; text-align: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.seg-radio input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); } .seg-radio input:focus-visible + span { box-shadow: var(--ring); }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 260px; overflow-y: auto; margin: 0 0 12px; }
.slot input { position: absolute; opacity: 0; } .slot span { display: block; padding: 8px; border: 1px solid var(--border); border-radius: 10px; font-size: 12.5px; text-align: center; cursor: pointer; }
.slot input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; } .slot input:focus-visible + span { box-shadow: var(--ring); }
.inq p { margin-bottom: 10px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .bars li { display: grid; grid-template-columns: 1fr 110px; gap: 10px; align-items: center; }
.bar { display: block; height: 10px; border-radius: 999px; background: var(--primary); width: 0; }
.avail { display: grid; gap: 8px; } .avail-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .avail-row .check { width: 130px; margin: 0; }
.ev-card { display: flex; gap: 14px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.ev-date { display: grid; align-content: center; text-align: center; min-width: 86px; padding: 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; }
.ev-body h3 { font-size: 1.05rem; margin: 6px 0 4px; } .ev-body p { margin: 0; }
.date-badge { min-width: 64px; text-align: center; padding: 6px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 12px; }
.big-num { font-size: 2.4rem; font-weight: 700; margin: 0; letter-spacing: -.03em; } .big-num small { font-size: 1rem; color: var(--text-muted); }
.avatar-stack { display: flex; flex-wrap: wrap; gap: 4px; }
.ws-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: var(--space-3) 0 var(--space-4); } .ws-head h1 { margin: 0; }
.ws-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 1.2rem; }
.ws-mark.lg { width: 56px; height: 56px; font-size: 1.5rem; } .ws-card h3 { margin: 6px 0 0; }
.task-new { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .task-new .input { width: auto; }
.kanban { display: grid; gap: var(--space-4); } @media (min-width: 900px) { .kanban { grid-template-columns: repeat(3, 1fr); } }
.kcol { background: var(--bg-sunken); border-radius: 16px; padding: 12px; min-height: 120px; }
.kcard { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.kcard p { margin: 4px 0; } .kcard details summary { cursor: pointer; color: var(--text-muted); margin-top: 4px; }
.ws-post.ann { border-left: 4px solid var(--primary); } .ws-post p { margin: 6px 0 0; }
.activity { list-style: none; padding: 0; margin: 0; } .activity li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.table { width: 100%; border-collapse: collapse; } .table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: var(--step--1); }
.comm-promo > *, .eco-hero > *, .comm > *, .svc-detail > *, .lobby-grid > * { min-width: 0; }
@media (max-width: 420px) { .one-badge { display: none; } }
.mh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-tile { aspect-ratio: auto; min-height: clamp(84px, 14vw, 128px); }
.comm .page-head, header.page-head:not(.row) { display: block; }
.side .people li > .grow { min-width: 120px; }
.side .people li > .row.tight { width: 100%; justify-content: flex-end; }
.hub svg.hub-lines { width: 80%; height: 80%; vertical-align: top; }
.pricing-head { max-width: none; margin-left: 0; } .pricing-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.04em; margin: 0 0 8px; }
.plans3 + .pricing-note, .period-toggle { } 
.section-head + .period-toggle, .pricing-head + .period-toggle { margin-left: 0; }
.plan3 h3 { padding-right: 0; } .plan3.primary h3 { padding-right: 140px; }
.plan3 .checks { align-content: start; }
.compose-row textarea.input { min-width: 0; width: auto; flex: 1 1 auto; }
.compose-row > * { flex-shrink: 0; }
.chat-head { flex-wrap: wrap; row-gap: 4px; } .chat-head .title { min-width: 0; flex: 1 1 140px; }
.chat-head .title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 859px) {
  .chat-page main { padding: 0 0 70px; } .chat-page .container.wide { padding: 0; }
  .chat-page .panel.chat { border-radius: 0; border-left: 0; border-right: 0; height: calc(100dvh - var(--nav-h) - 70px); }
  .tiles[data-count="2"] { position: relative; grid-template-columns: 1fr; }
  .tiles[data-count="2"] .tile.self { position: absolute; right: 12px; bottom: 12px; width: 34%; max-width: 150px; aspect-ratio: 3 / 4; min-height: 0; z-index: 3; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
  .tiles[data-count="2"] .tile.self .tile-initials span { width: 48px; height: 48px; font-size: 1rem; }
  .tiles[data-count="2"] .tile.self .tile-label { font-size: 11px; }
}
.incoming-call { background: #101426; }

/* ================================================================ ONE premium refinement (approved reference) */
:root { --ink: #171b2e; --paper: #f6f7fa; --line: #e2e5ed; --night: #12172a; --mint: #16a487;
  --violet-600: #6941ef; --primary: #6941ef; --primary-hover: #5430d2; --primary-soft: #efebff;
  --bg: #f6f7fa; --text: #171b2e; --text-muted: #60677b; --border: #e2e5ed; --radius: 15px; --sidebar-w: 224px; --nav-h: 72px; }
body { background: var(--bg); font-size: 14.5px; }
h1 { letter-spacing: -.035em; font-weight: 700; }
.btn { border-radius: 9px; font-weight: 650; }
.btn-primary { box-shadow: 0 3px 8px rgba(105, 65, 239, .18); }
.btn-lg { border-radius: 11px; }
.panel, .card-surface { border-radius: 15px; border-color: var(--border); }
/* shell */
.topbar { background: #fff; border-bottom: 1px solid var(--border); backdrop-filter: none; }
.top-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { font-size: 1.22rem; letter-spacing: -.04em; font-weight: 750; gap: 9px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.publiclinks { display: none; gap: 26px; margin: 0 auto; font-size: 13.5px; font-weight: 550; }
.publiclinks a { color: #565e71; } .publiclinks a:hover { color: var(--ink); text-decoration: none; }
@media (min-width: 860px) { .publiclinks { display: flex; } }
.topbar .actions { margin-left: auto; gap: 10px; }
.crumb { display: none; font-size: 13px; color: var(--text-muted); gap: 8px; align-items: center; }
.crumb a { color: var(--text-muted); } .crumb span { color: #b6bbca; } .crumb b { font-weight: 500; color: var(--text-muted); }
.top-search { display: none; align-items: center; gap: 8px; background: #f5f6f9; border: 1px solid var(--border); padding: 0 11px; border-radius: 9px; width: 240px; height: 40px; color: #737a8c; }
.top-search input { border: 0; background: transparent; font: inherit; font-size: 13px; flex: 1; min-width: 0; color: var(--ink); outline: none; }
.top-search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.top-search kbd { font-size: 11px; color: #9aa0b0; font-family: inherit; }
.top-create { display: none; }
.icon-btn.boxed { border: 1px solid var(--border); border-radius: 10px; background: #fff; width: 40px; height: 40px; }
@media (min-width: 860px) { .top-create, .top-search { display: inline-flex; } }
@media (min-width: 1100px) {
  body.has-sidebar .sidebar { top: 0; padding: 22px 14px 16px; width: var(--sidebar-w); }
  body.has-sidebar .topbar { margin-left: var(--sidebar-w); }
  body.has-sidebar .brand-app { display: none; }
  body.has-sidebar .crumb { display: flex; }
  body.has-sidebar .top-inner { max-width: none; padding: 0 30px; }
}
.side-brand { margin: 0 8px 30px; }
.sidebar .side-group { font-size: 10.5px; letter-spacing: .13em; margin: 0 12px 10px; }
.sidebar a { padding: 10px 12px; border-radius: 9px; font-weight: 550; color: #5c6377; }
.sidebar a.active { background: var(--primary-soft); color: #5836d4; font-weight: 700; }
.side-bottom { margin-top: auto; display: grid; gap: 2px; padding-top: 16px; }
.sidebar .account { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); border-radius: 0; padding: 16px 6px 2px; margin-top: 10px; color: var(--ink); }
.sidebar .account b { display: block; font-size: 13.5px; } .sidebar .account small { display: block; color: var(--text-muted); font-size: 11.5px; font-weight: 400; }
.sidebar .account:hover { background: transparent; }
.side-upgrade { display: none !important; }
.bottomnav { background: #fff; border-top: 1px solid var(--border); }
.bottomnav a { font-size: 11px; gap: 3px; }
.bottomnav a.active { color: var(--primary); font-weight: 700; }
.bottomnav a.active svg { background: none; }
.bottomnav .create { margin-top: 0; }
/* page headers & shared components (reference) */
.page-head h1, .hero-title { font-size: clamp(1.9rem, 3.2vw, 2.35rem); letter-spacing: -.045em; line-height: 1.12; }
.page-head > p, .page-sub { color: var(--text-muted); font-size: 15px; margin-top: 6px; }
.iconbox { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #eeeaff; color: #6941ef; flex: none; }
.iconbox svg { width: 21px; height: 21px; } .iconbox.mint { background: #e0f6ef; color: #16816d; } .iconbox.blue { background: #e8f0ff; color: #3564bb; } .iconbox.gold { background: #fff1dc; color: #976016; }
.iconbox.sm { width: 36px; height: 36px; border-radius: 10px; } .iconbox.sm svg { width: 18px; height: 18px; }
.tagchip { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; background: #eeebff; color: #5435c9; font-size: 11px; font-weight: 700; padding: 5px 9px; letter-spacing: .04em; text-transform: uppercase; }
.dark-panel { background: linear-gradient(135deg, #191b35, #111827); color: #fff; border-radius: 16px; padding: clamp(20px, 3vw, 28px); position: relative; overflow: hidden; }
.dark-panel h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.85rem); letter-spacing: -.035em; margin: 6px 0 8px; line-height: 1.15; }
.dark-panel p { color: #c4c8dc; } .dark-panel .eyebrow { color: #9be2d3; } .dark-panel .tagchip { background: #383052; color: #ded4ff; }
.btn-dark2 { background: #272d45; color: #fff; border: 1px solid #414961; } .btn-dark2:hover { background: #2f3653; border-color: #4b5370; }
.flowline { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.flowline > div { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 10.5px; color: #d6d9e8; }
.flowline .node { width: 44px; height: 44px; border-radius: 13px; background: #292e49; color: #d9d0ff; display: grid; place-items: center; border: 1px solid #4d4c73; }
.flowline .node svg { width: 19px; height: 19px; }
.flowline > span { color: #8e80ce; margin-top: 13px; font-size: 13px; }
.qcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; min-height: 128px; background: #fff; border: 1px solid var(--border); border-radius: 15px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; width: 100%; transition: border-color .15s, box-shadow .15s; }
.qcard:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; }
.qcard b { font-size: 15px; letter-spacing: -.01em; } .qcard small { color: var(--text-muted); font-size: 12.5px; margin-top: -6px; }
.grid4q { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } @media (min-width: 900px) { .grid4q { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.grid4q > form, .grid4q > details { margin: 0; position: relative; }
.grid4q > details > summary { list-style: none; } .grid4q > details > summary::-webkit-details-marker { display: none; }
.steps-list { list-style: none; margin: 0; padding: 0; } .steps-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.steps-list li:last-child { border: 0; } .steps-list b { display: block; font-size: 14.5px; } .steps-list small { color: var(--text-muted); font-size: 12.5px; }
.steps-list li.done b { text-decoration: line-through; color: var(--text-muted); } .steps-list a { color: var(--ink); } .steps-list a:hover b { color: var(--primary); }
.split2 { display: grid; gap: 20px; } @media (min-width: 1000px) { .split2 { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); } }
.preview-note { font-size: 11.5px; color: #767e91; margin-top: 12px; }
.section-gap { margin-top: 26px; } .section-h { font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 14px; }
/* landing (reference 01) */
.landing { background: #fbfbfd; }
.lhero { padding: clamp(24px, 5vw, 64px) 0 10px; }
.lhero-grid { display: grid; gap: clamp(26px, 5vw, 54px); align-items: center; }
@media (min-width: 1000px) { .lhero-grid { grid-template-columns: 1fr 1fr; } }
.lhero-copy > * { min-width: 0; }
.lhero h1 { font-size: clamp(2.7rem, 6.2vw, 4.15rem); line-height: 1.02; letter-spacing: -.055em; margin: 16px 0 20px; color: var(--ink); }
.lhero h1 em { font-style: normal; color: var(--primary); display: block; }
.lhero-lead { font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.65; color: var(--text-muted); max-width: 500px; }
.lhero-ctas { margin: 26px 0 14px; gap: 10px; }
.hero-art { position: relative; overflow: hidden; background: #15192c; border-radius: 24px; padding: clamp(17px, 2.4vw, 25px); color: #fff; box-shadow: 0 20px 60px rgba(32, 36, 58, .16); }
.hero-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 75% 8%, #45317d 0%, transparent 55%); pointer-events: none; }
.hero-art > * { position: relative; }
.arthead { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #d4d7e6; }
.artcard { background: #fff; color: var(--ink); border-radius: 14px; padding: 19px; margin-top: 20px; box-shadow: 0 10px 25px rgba(0, 0, 0, .14); }
.artcard h3 { font-size: 1.18rem; letter-spacing: -.02em; margin: 10px 0 6px; } .artcard p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.artline { display: flex; align-items: center; gap: 12px; margin-top: 18px; } .artline b { display: block; font-size: 14px; } .artline small { color: var(--text-muted); font-size: 12.5px; }
.hero-art .flowline { margin: 24px 0; }
.artfooter { display: flex; align-items: center; gap: 12px; border-top: 1px solid #3c4058; padding-top: 16px; }
.artfooter b { display: block; font-size: 14px; } .artfooter small { color: #aeb6cc; font-size: 12.5px; }
.lstrip { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; color: #626a7d; font-size: 13px; }
@media (min-width: 860px) { .lstrip { display: flex; justify-content: space-between; } }
.lstrip li { display: flex; align-items: center; gap: 8px; } .lstrip svg { color: #6845d9; }
.lh2 { font-size: clamp(1.45rem, 2.6vw, 1.75rem); letter-spacing: -.035em; margin: 6px 0 18px; }
.grid3c { display: grid; gap: 16px; } @media (min-width: 800px) { .grid3c { grid-template-columns: repeat(3, 1fr); } }
.fcard { background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 23px; }
.fcard h3 { font-size: 1.12rem; margin: 14px 0 6px; } .fcard p { color: var(--text-muted); font-size: 13.5px; margin: 0; }
.tour { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .tour { grid-template-columns: repeat(4, 1fr); } }
.tour li { background: var(--primary-soft); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.tour b { color: #4b2fc4; } .tour span { color: #4a4f66; font-size: 13px; }
.eco-secondary { display: grid; gap: 28px; align-items: center; } @media (min-width: 1000px) { .eco-secondary { grid-template-columns: .9fr 1.1fr; } }
.eco-secondary > * { min-width: 0; }
.eco-dark { background: var(--night); border-radius: 22px; padding: 18px; }
.journey-strip.compact { background: transparent; border: 0; padding: 0; justify-content: flex-start; font-size: 13px; gap: 8px 12px; }
.journey-strip.compact li { gap: 12px; }
.homehero { display: grid; gap: 22px; align-items: center; } @media (min-width: 1000px) { .homehero { grid-template-columns: 1.3fr 1fr; } }
.homehero > * { min-width: 0; }
.panel-title h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.divider { margin: var(--space-4) 0; }
.mh-tile.slot .avatar { background: #4b4670; color: #e8e1ff; } .mh-tile { background: #252b44; border: 1px solid #3a405d; border-style: solid; }
.dark-panel .mh-tile small { color: #d5d9e7; }
.copy-link .input { width: 220px; background: #1d2238; border-color: #424a63; color: #fff; }
.devcheck-video { aspect-ratio: 16 / 10; min-height: 220px; }
.quick-pop .pop-panel { z-index: 30; }
/* meeting (reference 04) */
.room-page { background: #111523; }
.room-head { padding: 16px 24px; border-bottom: 0; }
.room-head .room-title { font-size: 1.15rem; letter-spacing: -.02em; }
@media (min-width: 900px) { .room-head .grow { text-align: center; } }
.room-badge { display: inline-flex; align-items: center; gap: 6px; background: #1f4a43; color: #a7e8d6; border: 1px solid #2c5f56; font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 8px; }
.room-badge svg { width: 15px; height: 15px; }
.tile { background: radial-gradient(ellipse at center, #323951, #202538 75%); border-color: #414960; border-radius: 14px; }
.tile.speaking { border: 2px solid #41d3ad; box-shadow: none; }
.tile-initials span { width: 95px; height: 95px; font-size: 2rem; background: #4b4670; color: #e8e1ff; }
.tile:nth-child(2) .tile-initials span { background: #285b59; color: #c6f4e8; } .tile:nth-child(3) .tile-initials span { background: #445779; color: #e1eaff; } .tile:nth-child(4) .tile-initials span { background: #69503c; color: #f7e4c7; }
.tile-name { background: rgba(17, 21, 35, .73); border-radius: 6px; font-size: 12px; }
.side { background: #1b2033; border: 1px solid #343a50; border-radius: 14px; margin: 12px 12px 0 0; }
@media (max-width: 959px) { .side { margin: 0; } }
.controls { gap: 12px; border-top: 0; background: #111523; padding-top: 16px; }
.ctl { width: auto; height: auto; background: transparent; border-radius: 0; display: grid; justify-items: center; gap: 6px; padding: 0; color: #c2c8d9; }
.ctl:hover { background: transparent; } .ctl:hover .ci { background: #343b56; }
.ctl .ci { position: relative; display: grid; place-items: center; width: 48px; height: 48px; background: #2b3249; border: 1px solid #424a63; border-radius: 14px; color: #fff; }
.ctl em { font-style: normal; font-size: 11px; }
.ctl.off .ci { background: #e9ecf8; color: #b4233a; border-color: #e9ecf8; } .ctl.active .ci { background: var(--primary); border-color: var(--primary); }
.ctl-leave { width: auto; border-radius: 0; background: transparent; } .ctl-leave .ci { background: #c73c50; border-color: #c73c50; } .ctl-leave:hover .ci { background: #d84a5e; }
.ctl .badge-dot { top: -4px; right: -4px; }
@media (max-width: 640px) { .controls { gap: 7px; position: sticky; bottom: 0; z-index: 5; } .ctl .ci { width: 42px; height: 42px; border-radius: 12px; } .ctl em { font-size: 9.5px; } }
.preview-controls .ctl em { display: none; }
/* messages (reference 05) */
.inbox2 { display: grid; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; min-height: 560px; }
@media (min-width: 860px) { .inbox2 { grid-template-columns: 300px minmax(0, 1fr); } }
.inbox-list { padding: 18px; border-right: 1px solid var(--border); }
.inbox-search { display: flex; align-items: center; gap: 8px; background: #f5f6f9; border: 1px solid var(--border); border-radius: 9px; padding: 0 11px; height: 40px; margin: 12px 0 10px; color: #737a8c; }
.inbox-search input { border: 0; background: transparent; font: inherit; font-size: 13px; flex: 1; min-width: 0; outline: none; color: var(--ink); }
.inbox-search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.filters2 { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.filters2 a { padding: 5px 9px; border-radius: 6px; font-size: 13px; color: #4f566a; display: inline-flex; gap: 4px; align-items: center; }
.filters2 a.on { background: var(--primary-soft); color: #5435c9; font-weight: 700; } .filters2 a:hover { text-decoration: none; background: var(--bg-sunken); }
.filters2 .unread-pill { margin-left: 2px; }
.convlist { list-style: none; margin: 0 -8px; padding: 0; }
.convlist a { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; color: var(--ink); }
.convlist a:hover { background: var(--bg-sunken); text-decoration: none; }
.convlist b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .convlist small { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convlist .grow { min-width: 0; }
.inbox-main { display: flex; flex-direction: column; }
.inbox-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); } .inbox-head b { display: block; } .inbox-head small { display: block; font-size: 12.5px; }
.inbox-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px 20px; }
.inbox-empty h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 6px 0 0; } .inbox-empty p { max-width: 420px; margin: 0; }
.iconbox.lg { width: 64px; height: 64px; border-radius: 16px; } .iconbox.lg svg { width: 26px; height: 26px; }
.center-row { justify-content: center; }
.inbox-composer { margin: 16px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; color: #737a8c; font-size: 13.5px; }
@media (max-width: 859px) { .inbox-list { border-right: 0; } .inbox-main.has-convs { display: none; } .inbox-composer { display: none; } }
/* pricing (reference 06) */
.priceintro { text-align: center; max-width: 700px; margin: var(--space-6) auto var(--space-5); }
.priceintro h1 { font-size: clamp(2.2rem, 4.4vw, 3.05rem); letter-spacing: -.05em; margin: 10px 0; }
.band .period-toggle, .container > .period-toggle, .period-toggle { display: flex; width: max-content; margin: 0 auto var(--space-5); background: #f0f1f6; border-radius: 10px; padding: 4px; }
.period-toggle button { border-radius: 7px; } .period-toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.plan-badge { background: #eeebff; color: #5435c9; letter-spacing: .06em; font-size: 10.5px; }
.plan3 { border-radius: 15px; padding: 26px; }
.plan3.primary { border-width: 2px; box-shadow: 0 10px 35px rgba(105, 65, 239, .09); }
.plan3 h3 { font-size: 1.45rem; } .plan-price b { font-size: 2.75rem; }
.goodtoknow { margin-top: var(--space-6); } .gtk-grid { display: grid; gap: 15px; } @media (min-width: 760px) { .gtk-grid { grid-template-columns: 1fr 1fr; } }
.gtk-grid .fcard h3 { margin-top: 0; font-size: 1.02rem; }
.pricing-note { border-radius: 12px; }
.section-h.section-gap, h2.section-gap { margin-top: 28px; }
.split2 > .panel + .panel, .split2 > .stack > .panel + .panel { margin-top: 0; }
.split2 > .stack { display: grid; gap: 16px; align-content: start; } .split2 > .stack > * + * { margin-top: 0; }
.sidebar .side-brand { color: var(--ink); font-weight: 750; font-size: 1.25rem; padding: 0 4px; gap: 9px; }
.sidebar .side-brand:hover { background: transparent; }
.brand span b { color: var(--primary); }
@media (min-width: 1000px) { .lhero h1 { font-size: clamp(2.7rem, 4.6vw, 4rem); } }
.mh-tile .avatar { width: 52px; height: 52px; border-radius: 50% !important; border: 0; display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; overflow: hidden; }
