/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.32_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.32_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ==========================================================================
   Voxynk — "Lavender Studio" design system
   Light-first lavender paper + deep violet ink, floating bento panels,
   top command bar, bubble conversations. Dark theme via [data-theme=dark].
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f4f1fb;
  --bg-grad: radial-gradient(1200px 700px at 8% -10%, #e6dcff 0%, transparent 60%),
             radial-gradient(900px 600px at 105% 10%, #fbe2f4 0%, transparent 55%),
             radial-gradient(900px 700px at 50% 120%, #dfe4ff 0%, transparent 60%);
  --surface: #ffffff;
  --surface-2: #faf8ff;
  --surface-3: #f1edfb;
  --hover: #f3effc;
  --border: #e8e3f4;
  --border-strong: #d8d0ec;
  --shadow: 0 1px 2px rgba(40, 20, 90, .04), 0 8px 24px -12px rgba(60, 30, 120, .18);
  --shadow-lg: 0 2px 6px rgba(40, 20, 90, .05), 0 24px 60px -24px rgba(60, 30, 120, .35);

  --ink: #1d1534;
  --ink-2: #4a4263;
  --muted: #8a83a3;

  --accent: #6d28d9;
  --accent-2: #c026d3;
  --accent-soft: #efe8ff;
  --accent-ink: #5b21b6;
  --grad: linear-gradient(120deg, #7c3aed 0%, #a855f7 45%, #db2777 100%);
  --grad-soft: linear-gradient(120deg, #efe7ff 0%, #fbe7f6 100%);
  --ring: 0 0 0 4px rgba(124, 58, 237, .18);

  --bubble-other: #ffffff;
  --bubble-mine-ink: #ffffff;

  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #e11d48;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #100c1c;
  --bg-grad: radial-gradient(1200px 700px at 8% -10%, rgba(124, 58, 237, .28) 0%, transparent 60%),
             radial-gradient(900px 600px at 105% 10%, rgba(219, 39, 119, .16) 0%, transparent 55%),
             radial-gradient(900px 700px at 50% 120%, rgba(79, 70, 229, .18) 0%, transparent 60%);
  --surface: #191329;
  --surface-2: #1e1731;
  --surface-3: #261e3d;
  --hover: #241c39;
  --border: #2c2445;
  --border-strong: #3b3159;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --ink: #f2eefc;
  --ink-2: #c8bfe0;
  --muted: #8d84a8;
  --accent: #a78bfa;
  --accent-soft: #2a2047;
  --accent-ink: #c4b5fd;
  --grad-soft: linear-gradient(120deg, #2a2047 0%, #34203f 100%);
  --ring: 0 0 0 4px rgba(167, 139, 250, .22);
  --bubble-other: #221b36;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-grad), var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(168, 85, 247, .28); }
:focus-visible { outline: none; box-shadow: var(--ring); }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: 32px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .9em; }
.row { display: flex; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.spacer { flex: 1 1; }
.center { display: grid; place-items: center; }
.eyebrow { font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------- surfaces */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.card { padding: 24px; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font: 650 14px var(--font); color: var(--ink); cursor: pointer; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border-strong);
  transition: transform .12s ease, background .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .7); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.06); }
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.btn-soft:hover { background: var(--accent-soft); filter: brightness(.97); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.input, .select {
  height: 46px; width: 100%; padding: 0 16px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--ink);
  font: 15px var(--font); transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-2); font: 600 13px var(--font); cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }

.type-picker { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 8px; gap: 8px; }
.type-picker button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); font: 650 14px var(--font); cursor: pointer; text-align: left; }
.type-picker button small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.type-picker button:hover { border-color: var(--border-strong); }
.type-picker button.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--ring); }

/* -------------------------------------------------------- alerts / tags */
.alert { padding: 11px 15px; border-radius: var(--r); font-size: 14px; }
.alert-error { background: #ffe4ea; color: #9f1239; }
.alert-info { background: var(--accent-soft); color: var(--accent-ink); }
:root[data-theme='dark'] .alert-error { background: rgba(225, 29, 72, .16); color: #fda4af; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--accent-soft); color: var(--accent-ink); }
.pill-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

/* --------------------------------------------------------------- avatar */
.avatar { flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-family: var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.glyph { flex: none; display: block; overflow: hidden; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--border-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- modal */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgba(29, 21, 52, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .15s ease; }
.modal { width: 100%; max-width: 460px; padding: 26px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: rise .18s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* --------------------------------------------------------- command palette */
.palette { width: 100%; max-width: 620px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .16s ease; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--border); color: var(--muted); }
.palette-input input { flex: 1 1; height: 60px; border: 0; background: transparent; color: var(--ink); font: 17px var(--font); }
.palette-input input:focus { outline: none; }
.palette-list { max-height: 360px; overflow-y: auto; padding: 8px; }
.palette-section { padding: 10px 12px 4px; }
.palette-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); border: 0; background: transparent; color: var(--ink); font: 550 14.5px var(--font); text-align: left; cursor: pointer; }
.palette-item.sel { background: var(--accent-soft); color: var(--accent-ink); }
.kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; font: 600 11.5px var(--mono); color: var(--muted); background: var(--surface-2); }

/* ------------------------------------------------------------------ logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 20px var(--display); letter-spacing: -0.04em; color: var(--ink); }
.logo:hover { text-decoration: none; color: var(--ink); }

/* ==========================================================================
   Studio shell: floating top bar + stage
   ========================================================================== */
.studio { height: 100vh; display: flex; flex-direction: column; padding: 12px; gap: 12px; }
.topbar { flex: none; height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; z-index: 20; }
.switcher { position: relative; }
.switcher-btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font: 700 14.5px var(--font); cursor: pointer; max-width: 260px; }
.switcher-btn:hover { border-color: var(--border-strong); }
.switcher-btn .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; top: calc(100% + 8px); left: 0; width: 300px; padding: 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: rise .14s ease; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r); border: 0; background: transparent; color: var(--ink); font: 600 14px var(--font); text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item.current { background: var(--hover); text-decoration: none; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.searchbar { flex: 1 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--surface-3); border: 1px solid transparent; color: var(--muted); font: 14px var(--font); cursor: pointer; }
.searchbar:hover { border-color: var(--border-strong); }
.stage { flex: 1 1; min-height: 0; display: flex; gap: 12px; }
.stage-scroll { flex: 1 1; min-height: 0; overflow-y: auto; border-radius: var(--r-xl); }

/* ==========================================================================
   VOX workspace: navigator | conversation | details
   ========================================================================== */
.navigator { width: 280px; flex: none; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.nav-hero { position: relative; padding: 18px; }
.nav-hero .cover { position: absolute; inset: 0 0 auto 0; height: 78px; }
.nav-hero > *:not(.cover) { position: relative; }
.nav-body { flex: 1 1; overflow-y: auto; padding: 4px 10px 14px; }
.section-h { width: 100%; display: flex; align-items: center; gap: 6px; padding: 14px 8px 6px; border: 0; background: transparent; color: var(--muted); font: 750 11.5px var(--font); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.section-h svg { transition: transform .15s ease; }
.section-h.closed svg { transform: rotate(-90deg); }
.stream { width: 100%; display: flex; align-items: center; gap: 11px; padding: 7px 10px; margin: 2px 0; border-radius: var(--r); border: 0; background: transparent; color: var(--ink-2); font: 600 14.5px var(--font); text-align: left; cursor: pointer; }
.stream:hover { background: var(--hover); color: var(--ink); }
.stream .ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.stream.active { background: var(--accent-soft); color: var(--accent-ink); }
.stream.active .ico { background: var(--grad); color: #fff; }
.stream-row { position: relative; }
.stream-row .stream { padding-right: 40px; }
.item-menu-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .12s, background .12s; }
.stream-row:hover .item-menu-btn, .item-menu-btn:focus-visible, .item-menu-btn.open { opacity: 1; }
.item-menu-btn:hover, .item-menu-btn.open { background: var(--surface-3); color: var(--ink); }
@media (hover: none) { .item-menu-btn { opacity: .7; } }
.section-row .section-h { padding-right: 40px; }
.invite-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.invite-row { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); }
.invite-row.fresh { border-color: var(--accent); background: var(--accent-soft); }
.choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-weight: 600; }
.choice:hover { border-color: var(--border-strong); }
.choice.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.choice input { accent-color: var(--accent); margin: 0; }
.stream .name { flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.conversation { flex: 1 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.conv-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.conv-head .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; }
.conv-body { flex: 1 1; overflow-y: auto; padding: 22px clamp(14px, 3vw, 40px) 10px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); }
.timeline { width: 100%; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.day-pill { align-self: center; margin: 14px 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 650; color: var(--muted); }
.bundle { display: flex; gap: 10px; align-items: flex-end; margin: 10px 0 6px; max-width: 78%; }
.bundle.mine { align-self: flex-end; flex-direction: row-reverse; }
.bundle-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bundle.mine .bundle-body { align-items: flex-end; }
.bundle-name { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 0 12px 2px; }
.bubble { padding: 9px 14px; border-radius: 20px; background: var(--bubble-other); border: 1px solid var(--border); color: var(--ink); white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 2px rgba(40, 20, 90, .04); }
.bundle:not(.mine) .bubble:last-child { border-bottom-left-radius: 6px; }
.bundle.mine .bubble { background: var(--grad); border-color: transparent; color: var(--bubble-mine-ink); }
.bundle.mine .bubble:last-child { border-bottom-right-radius: 6px; }
.bundle-time { font-size: 11px; color: var(--muted); padding: 0 12px; }

/* messages: tools, quotes, reactions, edit */
.msg { position: relative; display: flex; flex-direction: column; gap: 3px; max-width: 100%; border-radius: 22px; transition: background .4s; }
.bundle.mine .msg { align-items: flex-end; }
.msg.flash .bubble { box-shadow: 0 0 0 3px var(--accent); }
.msg-tools { position: absolute; top: -16px; right: 8px; z-index: 5; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .12s; }
.bundle.mine .msg-tools { right: auto; left: 8px; }
.msg:hover .msg-tools, .msg.show-tools .msg-tools, .msg-tools:focus-within { opacity: 1; pointer-events: auto; }
.msg-tools button { width: 30px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.msg-tools button:hover { background: var(--hover); color: var(--accent-ink); }
.msg-tools button.danger:hover { color: var(--bad); }
.emoji-bar { position: absolute; top: calc(100% + 4px); right: 0; display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.bundle.mine .emoji-bar { right: auto; left: 0; }
.emoji-bar button { width: 34px; height: 34px; font-size: 19px; }
.quote { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border: 0; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font: 12.5px var(--font); text-align: left; cursor: pointer; overflow: hidden; }
.quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.edited { font-size: 11px; opacity: .7; }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; }
.react-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font: 600 12.5px var(--font); cursor: pointer; }
.react-chip.mine { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.edit-box { display: flex; flex-direction: column; gap: 4px; min-width: min(420px, 70vw); }
.edit-box input { height: 42px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--accent); box-shadow: var(--ring); background: var(--surface); color: var(--ink); font: 15px var(--font); }
.edit-box input:focus { outline: none; }
.composer-reply { display: flex; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }
.composer-reply span { flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.typing { height: 20px; padding: 4px 22px 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.presence { position: relative; flex: none; }
.presence::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 2.5px var(--surface); }
.presence.on::after { background: var(--ok); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--muted); }
.live .dot.ok { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.conv-empty { margin: auto; max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 0; }

.composer-wrap { flex: none; padding: 12px clamp(14px, 3vw, 40px) 6px; background: var(--surface-2); }
.composer { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); transition: box-shadow .2s, border-color .15s; }
.composer:focus-within { border-color: var(--accent); box-shadow: var(--ring), var(--shadow); }
.composer input { flex: 1 1; min-width: 0; height: 42px; border: 0; background: transparent; color: var(--ink); font: 15px var(--font); }
.composer input:focus, .composer input:focus-visible { outline: none; box-shadow: none; }
.composer input::placeholder { color: var(--muted); }
.composer .btn-icon { width: 42px; height: 42px; }

.member-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.member { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 40px 6px 8px; border-radius: var(--r); }
.member:hover .item-menu-btn { opacity: 1; }
.member:hover { background: var(--hover); }
.member-name { font-weight: 650; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-action { width: 30px; height: 30px; opacity: 0; color: var(--muted); }
.member:hover .member-action, .member-action:focus-visible { opacity: 1; }
.member-action:hover { color: var(--bad); }
@media (hover: none) { .member-action { opacity: 1; } }
.btn-danger { background: var(--bad); border-color: transparent; color: #fff; }
.btn-danger:hover { background: var(--bad); filter: brightness(1.08); }
.textarea { height: auto; padding: 12px 16px; resize: vertical; min-height: 84px; line-height: 1.45; }
.danger-zone { margin-top: 6px; padding: 16px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); background: color-mix(in srgb, var(--bad) 6%, transparent); }
.details-close { display: none; }
.details { width: 300px; flex: none; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.detail-block { display: flex; flex-direction: column; gap: 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; }
.stat { padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.stat strong { display: block; font: 800 20px var(--display); }
.stat span { font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   Home (bento)
   ========================================================================== */
.home { max-width: 1180px; margin: 0 auto; padding: 18px 6px 40px; display: flex; flex-direction: column; gap: 18px; }
.home-hero { position: relative; overflow: hidden; padding: 34px; display: flex; align-items: flex-end; gap: 24px; min-height: 190px; }
.home-hero .art { position: absolute; right: -40px; top: -60px; width: 420px; height: 320px; opacity: .9; pointer-events: none; }
.home-hero > *:not(.art) { position: relative; }
.bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-gap: 16px; gap: 16px; }
.tile { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .15s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink); }
.tile .cover { height: 120px; }
.tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.tile-new { align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 236px; padding: 20px; border-style: dashed; border-width: 2px; background: transparent; box-shadow: none; }
.tile-new .plus { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(124, 58, 237, .8); }

/* ==========================================================================
   Landing + auth
   ========================================================================== */
.landing { min-height: 100vh; display: flex; flex-direction: column; padding: 14px; gap: 14px; }
.hero { flex: 1 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; grid-gap: 40px; gap: 40px; padding: 30px clamp(16px, 5vw, 70px); max-width: 1280px; width: 100%; margin: 0 auto; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 850; letter-spacing: -0.05em; line-height: .98; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 540px; }
.preview { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 6px; transform: rotate(1.5deg); }
.preview .bundle { max-width: 88%; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 14px; gap: 14px; max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 clamp(16px, 5vw, 70px) 40px; }
.feature { padding: 20px; }
.feature .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; }
.auth-wrap { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.auth-art { position: relative; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; color: #fff; background: var(--grad); min-height: 560px; overflow: hidden; }
.auth-art .art { position: absolute; inset: 0; opacity: .5; }
.auth-art > *:not(.art) { position: relative; }
.auth-art h2 { font-size: 34px; font-weight: 850; letter-spacing: -0.04em; line-height: 1.05; }
.auth-art .logo { color: #fff; }
.auth-form { padding: 40px clamp(22px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1 1; height: 1px; background: var(--border); }

/* ==========================================================================
   Responsive
   ========================================================================== */
.only-narrow { display: none; }
.only-medium { display: none; }
@media (max-width: 1180px) {
  .only-medium { display: inline-flex; }
  .details { display: none; }
  .details.open { display: flex; position: fixed; z-index: 45; top: 86px; right: 12px; bottom: 12px; width: min(320px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); animation: rise .16s ease; }
  .details-close { display: inline-flex; align-self: flex-end; margin: -8px -8px -10px 0; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .preview { display: none; }
  .features { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; max-width: 460px; }
  .auth-art { display: none; }
  .searchbar .hint { display: none; }
}
@media (max-width: 820px) {
  .studio { padding: 8px; gap: 8px; }
  .navigator { position: fixed; z-index: 40; top: 86px; bottom: 8px; left: 8px; width: min(300px, calc(100vw - 16px)); transform: translateX(-110%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .navigator.open { transform: none; }
  .only-narrow { display: inline-flex; }
  .bundle { max-width: 92%; }
  .topbar { padding: 0 8px 0 12px; }
  .logo span { display: none; }
  .searchbar { flex: none; width: 42px; padding: 0; justify-content: center; margin: 0; }
  .searchbar .label, .searchbar .spacer { display: none; }
  .topbar .theme-btn { display: none; }
  .topbar .hub-label { display: none; }
  .topbar .spacer-narrow { flex: 1 1; }
  .switcher-btn { max-width: 46vw; }
}

/* ==========================================================================
   Mentions, attachments, unread, hub
   ========================================================================== */
.mention { display: inline-block; padding: 0 5px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.mention.me { background: color-mix(in srgb, var(--warn) 28%, transparent); color: var(--ink); }
.bundle.mine .bubble .mention { background: rgba(255,255,255,.22); color: #fff; }
.msg.mentions-me .bubble { box-shadow: inset 3px 0 0 var(--warn); }
.msg-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.msg-tools button.on { color: var(--accent-ink); background: var(--accent-soft); }
.saved-flag { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }

.attachments { display: flex; flex-direction: column; gap: 6px; max-width: min(420px, 100%); }
.bundle.mine .attachments { align-items: flex-end; }
.gallery { display: grid; grid-gap: 4px; gap: 4px; border-radius: 18px; overflow: hidden; width: min(420px, 100%); }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2, .gallery.n4 { grid-template-columns: 1fr 1fr; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.gallery a { display: block; background: var(--surface-3); }
.gallery img { display: block; width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.gallery.n2 img, .gallery.n3 img, .gallery.n4 img { aspect-ratio: 1; }
.file-card { display: flex; align-items: center; gap: 10px; width: min(320px, 100%); padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.file-card:hover { border-color: var(--accent); text-decoration: none; }
.file-ico, .upload-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); }
.file-name { display: block; font-weight: 650; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.upload-tray { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; }
.upload { position: relative; flex: none; display: flex; align-items: center; gap: 8px; width: 210px; padding: 6px 28px 6px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.upload img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.upload-meta { min-width: 0; display: flex; flex-direction: column; }
.upload-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad); transition: width .2s; }
.upload.failed { border-color: var(--bad); }
.upload-x { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--ink-2); cursor: pointer; }

.mention-pop { position: absolute; bottom: calc(100% + 6px); left: 14px; width: 260px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 20; }
.drop-zone { position: absolute; inset: 12px; z-index: 30; display: grid; place-items: center; align-content: center; grid-gap: 8px; gap: 8px; border: 2px dashed var(--accent); border-radius: var(--r-xl); background: color-mix(in srgb, var(--accent-soft) 88%, transparent); color: var(--accent-ink); pointer-events: none; }
.conversation { position: relative; }
.unread-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; color: var(--bad); font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.unread-divider::before, .unread-divider::after { content: ''; flex: 1 1; height: 1px; background: color-mix(in srgb, var(--bad) 45%, transparent); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 650; font-size: 14px; box-shadow: var(--shadow-lg); animation: rise .18s ease; }
.chip-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* unread badges */
.badge { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; font: 750 11px var(--font); background: var(--surface-3); color: var(--ink-2); flex: none; }
.badge.mention { background: var(--bad); color: #fff; }
.stream.has-unread .name { color: var(--ink); font-weight: 750; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.topbar .hub-btn { position: relative; }
.topbar .hub-btn .badge { position: absolute; top: 2px; right: 0; height: 18px; min-width: 18px; font-size: 10px; box-shadow: 0 0 0 2px var(--surface); }

/* hub */
.hub { max-width: 980px; margin: 0 auto; padding: 18px 6px 40px; display: flex; flex-direction: column; gap: 16px; }
.hub-head { padding: 26px 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-3); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 650 14px var(--font); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }
.feed { display: flex; flex-direction: column; gap: 10px; }
.feed-item { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.feed-item.unread { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: inset 4px 0 0 var(--accent), var(--shadow); }
.feed-place { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.feed-place strong { color: var(--ink-2); }
.feed-text { color: var(--ink); white-space: pre-wrap; word-wrap: break-word; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.task-row.done .task-title { text-decoration: line-through; color: var(--muted); }
.check { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--border-strong); background: var(--surface); color: transparent; cursor: pointer; }
.check.on { background: var(--grad); border-color: transparent; color: #fff; }
.task-title { font-weight: 650; }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.due.overdue { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.due.today { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--ink); }
.group-title { padding: 6px 4px 0; }

[hidden] { display: none !important; }

/* ==========================================================================
   Pages (markdown), threads, search, catch-up
   ========================================================================== */
.md { color: var(--ink); font-size: 15.5px; line-height: 1.65; word-wrap: break-word; }
.md > * + * { margin-top: .75em; }
.md h1 { font-size: 28px; margin-top: .2em; }
.md h2 { font-size: 21px; margin-top: 1.2em; }
.md h3 { font-size: 17px; margin-top: 1em; }
.md p { margin: 0; }
.md ul, .md ol { margin: 0; padding-left: 1.4em; }
.md li + li { margin-top: .25em; }
.md .md-task { list-style: none; margin-left: -1.4em; display: flex; gap: 8px; align-items: flex-start; }
.md .md-task input { margin-top: .35em; accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.md .md-task .done { text-decoration: line-through; color: var(--muted); }
.md blockquote { margin: 0; padding: 8px 14px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--surface-3); }
.md code { font: .9em var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--surface-3); }
.md pre { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-3); overflow-x: auto; }
.md pre code { padding: 0; background: none; }
.md hr { border: 0; border-top: 1px solid var(--border); }
.md a { text-decoration: underline; text-underline-offset: 3px; }
.page-body { background: var(--surface); }
.page-wrap { width: 100%; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.page-meta { padding-bottom: 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.page-editor { display: flex; flex-direction: column; gap: 8px; }
.md-toolbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.md-toolbar button { min-width: 34px; height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); font: 700 13px var(--font); cursor: pointer; }
.md-toolbar button:hover { border-color: var(--accent); color: var(--accent-ink); }
.page-split { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.page-textarea { min-height: 420px; font: 14px/1.6 var(--mono); resize: vertical; }
.page-preview { padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: var(--r); overflow: auto; max-height: 70vh; }
@media (max-width: 1000px) { .page-split { grid-template-columns: 1fr; } .page-preview { display: none; } }

.thread-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--accent-ink); font: 12.5px var(--font); cursor: pointer; }
.thread-link:hover { border-color: var(--accent); }
.thread-link span { color: var(--muted); }
.thread-panel { width: 380px; flex: none; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.thread-head { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.thread-body { flex: 1 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.thread-root { padding: 10px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.thread-item { display: flex; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.thread-item:hover { background: var(--hover); }
.thread-item .thread-del { opacity: 0; }
.thread-item:hover .thread-del { opacity: 1; }
.thread-text { color: var(--ink); white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.thread-sep { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.thread-sep::before, .thread-sep::after { content: ''; flex: 1 1; height: 1px; background: var(--border); }
.thread-composer { padding: 10px 12px 12px; border-top: 1px solid var(--border); }
.thread-composer .composer { box-shadow: none; }
@media (max-width: 1180px) { .thread-panel { position: fixed; z-index: 46; top: 86px; right: 12px; bottom: 12px; width: min(400px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); } }

.filter { width: auto; height: 34px; padding: 0 34px 0 12px; font-size: 13px; border-radius: 999px; background-position: calc(100% - 18px) 14px, calc(100% - 13px) 14px; }
.search-hit { color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .2s; }
.search-hit:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.snippet mark { background: color-mix(in srgb, var(--warn) 35%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }

.catchup { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.people-stack { display: flex; }
.people-stack > * + * { margin-left: -8px; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1.5px rgba(0,0,0,.05); }
.hl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); }
.hl:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.hl-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.catchup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-gap: 16px; gap: 16px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); grid-gap: 8px; gap: 8px; }
.file-tile { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); text-align: center; }
.file-tile img { width: 100%; height: 64px; object-fit: cover; border-radius: 8px; }
.file-tile .file-ico { width: 100%; height: 64px; }
.file-tile .file-name { width: 100%; font-size: 11.5px; }
.file-tile:hover { border-color: var(--accent); text-decoration: none; }

.search-hit .feed-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   Polls, presa visione, decisions, composer menu, mute
   ========================================================================== */
.poll { width: min(440px, 100%); padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(40,20,90,.04); }
.poll-head { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); }
.poll-head strong { color: var(--ink); font-size: 15px; }
.poll-options { display: flex; flex-direction: column; gap: 6px; }
.poll-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); font: 600 14px var(--font); text-align: left; cursor: pointer; overflow: hidden; }
.poll-option:disabled { cursor: default; }
.poll-option:not(:disabled):hover { border-color: var(--accent); }
.poll-option.mine { border-color: var(--accent); }
.poll-option.winner { border-color: var(--ok); }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); transition: width .3s ease; z-index: 0; }
.poll-option > *:not(.poll-bar) { position: relative; z-index: 1; }
.poll-check { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: #fff; }
.poll-check.square { border-radius: 5px; }
.poll-option.mine .poll-check { background: var(--accent); border-color: var(--accent); }
.poll-label { flex: 1 1; min-width: 0; }
.poll-voters { display: flex; }
.poll-voters > * + * { margin-left: -6px; }
.poll-pct { font-size: 12.5px; color: var(--ink-2); min-width: 36px; text-align: right; }

.bubble.official { border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); box-shadow: inset 4px 0 0 var(--warn); }
.bundle.mine .bubble.official { box-shadow: inset -4px 0 0 #fbbf24; }
.ack-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ack-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 20%, transparent); }
.ack-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.ack-progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ack-progress span { display: block; height: 100%; background: var(--grad); }
.ack-cols { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 16px; gap: 16px; max-height: 320px; overflow-y: auto; }
.decision-badge, .imported-tag { display: inline-flex; align-items: center; gap: 4px; width: -moz-fit-content; width: fit-content; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.decision-badge { background: color-mix(in srgb, var(--ok) 16%, transparent); color: color-mix(in srgb, var(--ok) 70%, var(--ink)); }
.imported-tag { background: var(--surface-3); color: var(--muted); }
.decision-list { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.decision { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.decision-dot { position: absolute; left: -29px; top: 16px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 4px var(--surface); }
.composer-menu { position: absolute; bottom: calc(100% + 6px); left: 0; width: 290px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 25; animation: rise .14s ease; }
.item-menu-btn.static { position: static; transform: none; opacity: 1; width: 38px; height: 38px; }
.stream.is-muted .name { color: var(--muted); }
.data-zone { margin-top: 6px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 600px) { .ack-cols { grid-template-columns: 1fr; } }

.steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); font-size: 14px; }
.steps li { padding-left: 4px; }
.steps a { text-decoration: underline; }
.cmd { display: block; margin: 6px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface-3); font: 12.5px var(--mono); color: var(--ink); overflow-x: auto; white-space: nowrap; }
.drop-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; padding: 22px; border: 2px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); }

/* ------------------------------------------------------------------ voice */
.stream-row:has(.voice-roster) .item-menu-btn { top: 24px; }
.voice-count { height: 20px; padding: 0 7px; font-size: 11px; gap: 3px; background: var(--accent-soft); color: var(--accent-ink); }
.voice-roster { display: flex; flex-direction: column; gap: 2px; padding: 0 6px 6px 52px; }
.voice-person { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 9px; font-size: 13px; color: var(--ink-2); }
.voice-person:hover { background: var(--hover); }
.voice-person .name { flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-chip { font: 800 9.5px/1 var(--font); letter-spacing: .06em; padding: 3px 5px; border-radius: 5px; background: #e11d48; color: #fff; }

.voice-lobby { flex: 1 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 20px; text-align: center; }
.lobby-orb { width: 96px; height: 96px; border-radius: 34px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 22px 44px -18px rgba(124,58,237,.8); animation: orb 3.2s ease-in-out infinite; }
@keyframes orb { 50% { transform: translateY(-4px) scale(1.03); box-shadow: 0 28px 54px -18px rgba(219,39,119,.7); } }
.lobby-people { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 560px; }
.lobby-person { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 84px; }

.voice-stage { --stage-bg: #120d22; position: relative; flex: 1 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: radial-gradient(120% 90% at 50% 0%, #2a1b4f 0%, var(--stage-bg) 60%); color: #f4f0ff; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.voice-stage:-webkit-full-screen { border-radius: 0; padding: 18px; }
.voice-stage:fullscreen { border-radius: 0; padding: 18px; }
.stage-grid { flex: 1 1; min-height: 0; display: grid; grid-gap: 12px; gap: 12px; align-content: center; }
.stage-spot { flex: 1 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.stage-spot > .vtile { flex: 1 1; min-height: 0; aspect-ratio: auto; }
.filmstrip { display: flex; gap: 10px; overflow-x: auto; flex: none; padding-bottom: 2px; }
.filmstrip .vtile { width: 190px; flex: none; }
.vtile { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #1d1536; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: box-shadow .15s; min-width: 0; }
.vtile.speaking { box-shadow: inset 0 0 0 3px #a78bfa, 0 0 0 3px rgba(167,139,250,.25); }
.vtile.screen { background: #000; }
.vtile-video { width: 100%; height: 100%; display: block; background: #000; }
.vtile-avatar { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2c2152, #1d1536 70%); }
.vtile-avatar .ring { border-radius: 50%; padding: 4px; transition: box-shadow .15s; }
.vtile-avatar .ring.on { box-shadow: 0 0 0 3px #a78bfa, 0 0 26px 6px rgba(167,139,250,.45); }
.vtile-label { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(10,6,22,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 650 12.5px var(--font); }
.vtile-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtile-hand { position: absolute; top: 10px; left: 10px; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: #fbbf24; color: #3b2300; animation: wave-hand 1.2s ease-in-out infinite; }
@keyframes wave-hand { 50% { transform: rotate(-12deg); } }
.vtile-pin { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 11px; border: 0; display: grid; place-items: center; background: rgba(10,6,22,.55); color: #fff; cursor: pointer; opacity: 0; transition: opacity .12s; }
.vtile:hover .vtile-pin, .vtile-pin:focus-visible { opacity: 1; }
@media (hover: none) { .vtile-pin { opacity: .8; } }

.dock { align-self: center; display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 22px; background: rgba(20,13,40,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -18px #000, inset 0 0 0 1px rgba(255,255,255,.08); flex-wrap: wrap; justify-content: center; max-width: 100%; }
.dock-btn { height: 46px; min-width: 46px; padding: 0 12px; border-radius: 15px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.08); color: #f4f0ff; font: 700 14px var(--font); cursor: pointer; transition: background .12s, transform .08s; }
.dock-btn:hover { background: rgba(255,255,255,.16); }
.dock-btn:active { transform: scale(.96); }
.dock-btn.on { background: #f4f0ff; color: #2a1b4f; }
.dock-btn.danger { background: #e11d48; color: #fff; }
.dock-btn.danger:hover { background: #be123c; }
.dock-btn.sm { height: 36px; min-width: 36px; padding: 0 9px; border-radius: 12px; background: var(--surface-3); color: var(--ink); }
.dock-btn.sm.danger { background: #e11d48; color: #fff; }
.dock-sep { width: 1px; height: 26px; background: rgba(255,255,255,.14); margin: 0 4px; }
.dock-anchor { position: relative; }
.dock-pop { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 10px; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg, 0 18px 40px -16px rgba(0,0,0,.5)); min-width: 240px; display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.dock-pop.row { flex-direction: row; min-width: 0; }
.react-btn { width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; font-size: 22px; cursor: pointer; }
.react-btn:hover { background: var(--hover); transform: scale(1.12); }

.stage-banner { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); color: #f4f0ff; font: 650 13px var(--font); }
.stage-banner.action { background: #f4f0ff; color: #2a1b4f; cursor: pointer; }
.stage-banner.bad { background: #e11d48; color: #fff; cursor: pointer; }
.hand-queue { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 16px; background: rgba(20,13,40,.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 2; max-width: 220px; }
.hand-queue .eyebrow { color: #fbbf24; display: inline-flex; gap: 5px; align-items: center; }
.reactions-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.float-react { position: absolute; bottom: 90px; font-size: 40px; display: flex; flex-direction: column; align-items: center; animation: float-up 3.2s ease-out forwards; }
.float-react small { font: 700 11px var(--font); color: #fff; background: rgba(10,6,22,.6); padding: 2px 7px; border-radius: 99px; }
@keyframes float-up { 0% { transform: translateY(20px) scale(.6); opacity: 0; } 12% { transform: translateY(0) scale(1.1); opacity: 1; } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }

.call-bar { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 20px; background: var(--surface); box-shadow: 0 20px 40px -18px rgba(76,29,149,.55), 0 0 0 1px var(--border); max-width: calc(100vw - 32px); }
.call-dot { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.2); animation: pulse-dot 1.6s ease-in-out infinite; flex: none; }
.call-dot.warn { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 7px rgba(16,185,129,.08); } }
.call-where { display: flex; flex-direction: column; min-width: 0; margin-right: 6px; line-height: 1.2; }
.call-where strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .dock-btn { height: 42px; min-width: 42px; padding: 0 10px; }
  .dock-btn.wide span { display: none; }
  .filmstrip .vtile { width: 130px; }
  .hand-queue { top: auto; bottom: 90px; right: 10px; }
}

/* ---------------------------------------------------------------- security */
.sec-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.sec-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.sec-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); }
.recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--surface-3); font-size: 15px; text-align: center; }

