:root {
  --red: #e1242a;
  --red-dark: #c91d23;
  --red-soft: #fff1f1;
  --ink: #20212a;
  --text: #4c505c;
  --muted: #8b909c;
  --faint: #a4a8b2;
  --line: #eceef2;
  --soft: #f7f8fa;
  --card: #fff;
  --green: #3fa974;
  --lavender: #8264d6;
  --radius: 12px;
  --shadow: 0 2px 4px #1d233008;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--soft); font-size: 14px; line-height: 1.45; }
button, a, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; }
p { margin: 0; }
[hidden] { display: none !important; }
.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.accent { color: var(--red); }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #262630; font-size: 21px; font-weight: 800; letter-spacing: -1px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--red); color: #fff; font-size: 21px; line-height: 1; font-weight: 800; letter-spacing: -2px; box-shadow: 0 4px 10px #e1242a30; flex: none; }
.brand-dot { color: var(--red); }
.brand-sm { font-size: 17px; }
.brand-sm .brand-mark { width: 25px; height: 25px; font-size: 17px; border-radius: 8px; }

/* type helpers */
.kicker, .workspace-label { font-size: 11px; font-weight: 800; letter-spacing: .09em; color: #9a9eaa; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .09em; font-weight: 800; color: #b4a5a6; margin-bottom: 12px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 10px #e1242a24; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 20px #0002; }
.btn-ghost { background: #fff; border-color: #e6e8ec; color: #5f6470; }
.btn-ghost:hover { border-color: #f0b5b7; color: var(--red); }
.btn-link { background: none; color: #5f6470; }
.btn-link:hover { color: var(--red); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-dark); }
.btn-danger-ghost { background: #fff; border-color: #f3d0d1; color: var(--red); }
.btn-danger-ghost:hover { background: var(--red-soft); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.text-button, .quiet-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 700; text-decoration: none; }
.text-button { color: var(--red); }
.quiet-button { color: #8e929d; }
.quiet-button:hover, .quiet-button.accent { color: var(--red); }
.text-button span, .quiet-button span { font-size: 14px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: #858a96; }
.icon-button:hover { background: var(--soft); color: var(--red); }
.chip-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid #e8e9ed; background: #fff; color: #5f6470; font-size: 11.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.chip-btn:hover { border-color: #f0b5b7; color: var(--red); }
.chip-btn.danger:hover { background: var(--red-soft); }
.chip-btn:disabled { opacity: .5; }

/* cards & badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.badge + .badge { margin-left: 4px; }
.badge-live { background: #edfaf3; color: #34a06c; }
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #46be80; }
.badge-muted { background: #f1f2f5; color: #7f8491; }
.badge-admin { background: #f2eeff; color: var(--lavender); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: 3px; background: #edfaf3; color: #44a979; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 4px 9px; letter-spacing: 0; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #46be80; box-shadow: 0 0 0 3px #46be8022; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #46be8000; } }
.event-type { font-size: 11px; letter-spacing: .06em; color: #a0a3ad; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.type-mark { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; background: #fff0ee; color: var(--red); font-size: 12px; }
.divider { color: #d4d5db; }
.stat-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.stat-icon.coral { background: #fff0ee; color: #e45c5c; }
.stat-icon.lavender { background: #f2eeff; color: var(--lavender); }
.stat-icon.mint { background: #e9f8f1; color: #43a980; }

/* forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: #3a3d47; }
.field input, .field textarea, .field select, .search input, .join-inline input {
  width: 100%; border: 1px solid #e3e5ea; border-radius: 9px; padding: 11px 12px; outline: none; color: var(--ink); background: #fff; font-size: 14px; font-weight: 500; transition: border-color .18s, box-shadow .18s; }
.field textarea { resize: vertical; min-height: 70px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b909c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
.field input:focus, .field textarea:focus, .field select:focus, .search input:focus, .join-inline input:focus { border-color: #e99597; box-shadow: 0 0 0 3px #e1242a14; }
.field em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--red); }
.field small { font-weight: 500; color: var(--faint); font-size: 12px; }
.field.has-error input, .field.has-error textarea { border-color: #ef9fa1; }
.field-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: -6px; }
.field-error { color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.form-alert { padding: 11px 13px; border-radius: 9px; background: var(--red-soft); color: #b8262b; font-size: 13px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; margin-top: 14px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #4a4e59; cursor: pointer; user-select: none; min-height: 42px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: relative; width: 36px; height: 21px; border-radius: 20px; background: #dfe1e6; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s; }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(15px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px #e1242a30; }

/* toast & modals */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; transform: translate(-50%, 16px); max-width: calc(100% - 32px); background: #252630; color: #fff; border-radius: 10px; padding: 12px 17px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 26px #20212a30; opacity: 0; pointer-events: none; transition: .22s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast[data-level=error] { background: #b8262b; }
.modal { width: min(460px, calc(100% - 28px)); border: 0; border-radius: 16px; padding: 28px; box-shadow: 0 24px 80px #1e243035; color: var(--ink); }
.modal::backdrop { background: #1c202966; backdrop-filter: blur(3px); }
.modal form { position: relative; }
.modal h2 { font-size: 23px; margin: 8px 0 8px; }
.modal-text { font-size: 13.5px; color: #80848f; line-height: 1.6; margin: 0 26px 20px 0; }
.modal-close { position: absolute; right: 0; top: -6px; border: 0; background: #f4f4f6; color: #777b85; border-radius: 50%; width: 30px; height: 30px; font-size: 20px; line-height: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.steps { display: grid; gap: 9px; margin: 18px 0 0; }
.steps div { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #f0f1f4; border-radius: 9px; font-size: 13px; font-weight: 600; }
.steps b { color: var(--red); font-size: 12px; letter-spacing: .05em; }

/* auth */
.auth-shell { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 30px 16px; background: radial-gradient(ellipse 50% 50% at 50% 30%, #fff1ee 0, transparent 70%), var(--soft); }
.auth-card { width: min(420px, 100%); padding: 32px; }
.auth-card h1 { font-size: 26px; margin: 8px 0 6px; }
.auth-card > p.muted { margin-bottom: 22px; line-height: 1.55; }
.auth-card .btn-block { margin-top: 6px; }
.auth-foot { color: var(--muted); font-size: 13.5px; }
.auth-foot a { color: var(--red); font-weight: 700; text-decoration: none; }
.error-card { text-align: center; }
.error-code { font-size: 64px; font-weight: 800; letter-spacing: -.06em; color: var(--red); line-height: 1; }
.error-actions { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* participant */
.participant-shell { min-height: 100vh; display: grid; justify-items: center; align-content: start; gap: 22px; padding: 28px 16px 30px; background: radial-gradient(ellipse 70% 40% at 50% 0, #fff1ee 0, transparent 70%), var(--soft); }
.participant-card { width: min(460px, 100%); padding: 28px; }
.participant-card h1 { font-size: 23px; line-height: 1.3; margin: 10px 0 14px; }
.participant-form { display: grid; gap: 14px; }
.participant-form > p { line-height: 1.55; }
.participant-form input { font-size: 16px !important; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #46be80; margin-left: 4px; vertical-align: 1px; box-shadow: 0 0 0 3px #46be8022; }
.status-dot.off, .online-dot.off { background: #c3c6cd; box-shadow: 0 0 0 3px #eceef2; }
.participant-done, .participant-closed { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 10px 0 2px; }
.participant-done strong, .participant-closed strong { font-size: 17px; }
.done-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #edfaf3; color: #34a06c; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.participant-results { margin-top: 20px; padding-top: 18px; border-top: 1px solid #f0f1f4; }
.cloud-small { height: 220px; margin-top: 8px; border-radius: 10px; }
.privacy-note { text-align: center; margin-top: 20px; font-size: 12px; color: var(--faint); }
.privacy-note span { color: var(--red); margin-right: 5px; }
.participant-foot { font-size: 12.5px; color: var(--faint); text-decoration: none; }
.participant-foot:hover { color: var(--red); }
.join-shell { align-content: center; }
.join-lead { margin-bottom: 20px; }
.code-input { font-size: 24px !important; font-weight: 800 !important; letter-spacing: .14em; text-align: center; }

/* cloud */
.cloud { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 48%, #fff8f7 0, #fff 66%); }
.cloud-word { position: absolute; left: 0; top: 0; white-space: nowrap; font-weight: 800; line-height: 1.12; letter-spacing: -.035em; transition: transform .6s cubic-bezier(.2, .8, .2, 1), font-size .6s cubic-bezier(.2, .8, .2, 1), opacity .35s, color .3s; will-change: transform; }
.cloud-word.clickable { cursor: pointer; }
.cloud-word.clickable:hover { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #20212a55; }
.cloud-measure { visibility: hidden; transition: none; pointer-events: none; }
.cloud-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; color: #a7abb4; font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------- app shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; background: #fff; border-right: 1px solid var(--line); padding: 26px 16px 16px; display: flex; flex-direction: column; z-index: 10; overflow-y: auto; }
.sidebar .brand { padding: 0 12px; }
.workspace-label { margin: 38px 12px 11px; font-size: 10.5px; }
.workspace-label + .side-nav + .workspace-label { margin-top: 26px; }
.side-nav { display: grid; gap: 4px; }
.nav-link { height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; text-decoration: none; color: #686c77; font-weight: 600; border-radius: 9px; transition: .18s; }
.nav-link:hover { background: #faf5f5; color: var(--red); }
.nav-link.active { color: var(--red); background: var(--red-soft); }
.sidebar-bottom { margin-top: auto; padding-top: 20px; }
.help-card { position: relative; background: #fff8f6; border: 1px solid #f8e7e3; border-radius: 12px; padding: 16px 14px 14px; margin-bottom: 14px; overflow: hidden; }
.help-orbit { position: absolute; right: 14px; top: 11px; color: #f2c5b8; font-size: 24px; }
.help-card strong { font-size: 13px; }
.help-card p { font-size: 12px; line-height: 1.55; color: #85848a; margin: 7px 0 11px; max-width: 170px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 12px 4px 2px; border-top: 1px solid #f0f1f4; }
.avatar { width: 34px; height: 34px; border-radius: 11px; background: #ffe0dc; color: #b94b4b; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.profile-copy { display: grid; gap: 1px; min-width: 0; }
.profile-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy small { font-size: 11.5px; color: var(--faint); }
.profile-logout { margin-left: auto; }
.main-area { margin-left: 240px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 5; height: 68px; background: #ffffffe6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 44px; }
.breadcrumb { font-size: 13px; color: #a1a5af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { padding: 0 8px; color: #c9cbd1; }
.breadcrumb strong { color: #555a66; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.content-wrap { max-width: 1280px; padding: 32px 44px 48px; margin: 0 auto; }

.welcome-row, .page-head, .session-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.welcome-row h1, .page-head h1 { font-size: 27px; line-height: 1.25; font-weight: 800; }
.page-head h1 { margin-top: 6px; }
.wave { font-size: 18px; color: var(--red); margin-left: 3px; }
.welcome-sub { font-size: 14px; color: #8c909b; margin-top: 6px; }
.date-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid #e8e9ed; border-radius: 8px; background: #fff; color: #777c88; font-size: 12.5px; }

.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.stats-row.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { display: block; min-height: 120px; padding: 16px 17px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; transition: border-color .18s, transform .18s; }
a.stat-card:hover { border-color: #f3c4c5; transform: translateY(-1px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; }
.stat-trend { color: #a0a4ae; font-size: 11.5px; text-align: right; }
.stat-number { display: block; font-size: 27px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.stat-label { font-size: 12.5px; color: #858a96; display: block; margin-top: 6px; }
.spark-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; width: 84px; }
.mini-bars i { flex: 1; background: #f3a0a1; border-radius: 2px 2px 0 0; min-height: 2px; }
.mini-bars i:last-child { background: var(--red); }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; }
.section-heading h2 { font-size: 18px; margin-top: 6px; font-weight: 800; }

.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; }
.cloud-card { min-width: 0; padding: 20px 20px 0; overflow: hidden; display: flex; flex-direction: column; }
.cloud-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cloud-card h3 { font-size: 17px; margin-top: 9px; }
.cloud-card-canvas { height: 300px; margin-top: 6px; }
.cloud-host { height: 440px; flex: 1 0 auto; margin: 0 -20px; }
.cloud-foot { min-height: 54px; border-top: 1px solid #f0f1f4; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.cloud-foot strong { font-weight: 800; }
.share-link { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #ebecef; border-radius: 7px; padding: 6px 10px; background: #fff; color: #6f7480; font-size: 12px; font-weight: 700; text-decoration: none; }
.share-link:hover, .copy-button:hover { color: var(--red); border-color: #f3c4c5; }
.event-side { display: grid; align-content: start; gap: 14px; }
.join-card { padding: 18px; display: grid; }
.join-heading { display: flex; justify-content: space-between; align-items: center; }
.join-heading h3 { margin-top: 4px; font-size: 15px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #47bb80; box-shadow: 0 0 0 4px #edfaf3; }
.join-code-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.join-code { font-weight: 800; letter-spacing: .06em; font-size: 29px; }
.copy-button { display: grid; place-items: center; width: 32px; height: 32px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #8d929e; }
.join-caption { font-size: 12px; color: #969aa5; margin: 4px 0 14px; }
.join-caption b { color: #555a66; }
.join-qr { width: 150px; height: 150px; justify-self: center; margin-bottom: 14px; border-radius: 10px; border: 1px solid var(--line); padding: 4px; background: #fff; }
.activity-card { padding: 18px 18px 14px; }
.activity-number { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 12px; }
.activity-number strong { font-size: 27px; letter-spacing: -.04em; }
.activity-number > span:nth-child(2) { color: #9297a2; font-size: 12.5px; }
.activity-spark { margin-left: auto; font-size: 11.5px; color: #3fa974; font-weight: 700; }
.mini-chart { height: 64px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #eef0f3; }
.mini-chart i { display: block; flex: 1; min-width: 2px; background: #f3a0a1; border-radius: 2px 2px 0 0; transition: height .4s; }
.mini-chart i:last-child { background: var(--red); }
.mini-chart i.zero { background: #eceef2; }
.chart-labels { display: flex; justify-content: space-between; color: #a4a7b0; font-size: 11px; margin-top: 6px; }

.below-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 14px; margin-top: 14px; }
.host-below { grid-template-columns: minmax(0, 1fr) 340px; }
.sessions-card { padding: 16px 18px 6px; }
.lower-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.lower-heading h3 { font-size: 15px; margin-top: 4px; }
.session-row { min-height: 58px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #f1f2f5; text-decoration: none; padding: 8px 4px; transition: background .15s; }
a.session-row:hover { background: #fcfbfb; }
a.session-row:hover .session-arrow { color: var(--red); }
.table-card .session-row { padding: 10px 18px; }
.table-card .session-row:first-child { border-top: 0; }
.session-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; flex: none; background: #fff0ee; color: #de5458; }
.tone-1, .tone-4, .tone-7 { background: #eef2ff; color: #6878c4; }
.tone-2, .tone-5, .tone-8 { background: #e9f8f1; color: #43a980; }
.session-info { display: grid; gap: 3px; min-width: 0; flex: 1; }
.session-info strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-info small { font-size: 12px; color: #a1a5af; }
.session-responses { color: #8c919c; font-size: 12.5px; white-space: nowrap; }
.session-arrow { color: #b0b3bb; font-size: 13px; }
.list-empty { padding: 16px 4px 18px; border-top: 1px solid #f1f2f5; }
.tip-card { position: relative; padding: 18px 17px; overflow: hidden; background: linear-gradient(145deg, #fff 40%, #fff8f6); }
.tip-sun { position: absolute; right: 13px; top: 11px; color: #f3d4c9; font-size: 22px; }
.tip-card h3 { font-size: 15px; line-height: 1.4; margin: 9px 0 6px; max-width: 190px; }
.tip-card p { font-size: 12.5px; line-height: 1.6; color: #9397a1; margin-bottom: 12px; }
.empty-state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 46px 24px; }
.empty-state.flat { border: 0; box-shadow: none; }
.empty-state h3 { font-size: 18px; }
.empty-state p { max-width: 420px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.empty-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: #fff0ee; color: var(--red); font-size: 22px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: #eef0f3; }
.segmented a { padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #737783; text-decoration: none; white-space: nowrap; }
.segmented a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #20212a14; }
.search { position: relative; display: flex; align-items: center; color: var(--faint); }
.search .i { position: absolute; left: 12px; }
.search input { padding: 9px 12px 9px 34px; width: 240px; font-size: 13px; }
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #9a9eaa; font-weight: 800; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fcfcfd; white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid #f2f3f6; vertical-align: middle; color: var(--text); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fdfcfc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline-flex; gap: 5px; }
.table-empty { text-align: center; color: var(--muted); padding: 40px !important; }
.row-muted td { opacity: .6; }
.cell-user { display: flex; align-items: center; gap: 11px; }
.cell-user > span:last-child, .cell-link { display: grid; gap: 2px; }
.cell-user strong, .cell-link strong { color: var(--ink); font-size: 13.5px; }
.cell-user small, .cell-link small { color: var(--faint); font-size: 12px; }
.cell-link { text-decoration: none; max-width: 360px; }
.cell-link:hover strong, .cell-link:hover span { color: var(--red); }
.cell-link strong, .cell-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.answer-text { color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.form-card { padding: 22px; }
.form-card > h3 { font-size: 16px; }
.form-card > p.muted { margin: 6px 0 18px; line-height: 1.55; font-size: 13px; }
.form-card .btn { justify-self: start; }
.chart-card { padding: 18px 18px 14px; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i { width: 100%; max-width: 26px; background: linear-gradient(#ee5b5f, var(--red)); border-radius: 5px 5px 2px 2px; min-height: 3px; }
.bar span { font-size: 10.5px; color: var(--faint); }
.bar-chart.lavender .bar i { background: linear-gradient(#a891ea, var(--lavender)); }
.session-row.static { cursor: default; }

/* host page */
.notice { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: 10px; background: #f2eeff; color: #5d47a8; font-size: 13px; margin-bottom: 18px; }
.session-head h1 { font-size: 26px; line-height: 1.25; margin-top: 10px; max-width: 760px; }
.session-state { display: flex; align-items: center; gap: 10px; }
.host-grid { grid-template-columns: minmax(0, 1fr) 280px; }
.feed-card { padding: 16px 18px 8px; min-width: 0; }
.feed-actions { display: flex; gap: 14px; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 430px; overflow-y: auto; }
.feed-item { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid #f1f2f5; }
.feed-item time { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; width: 38px; flex: none; }
.feed-text { flex: 1; font-weight: 700; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.feed-item.is-hidden .feed-text { color: #b3b6be; text-decoration: line-through; font-weight: 600; }
.feed-empty { padding: 26px 0; text-align: center; color: var(--muted); border-top: 1px solid #f1f2f5; }
.settings-card { padding: 18px; }
.settings-card > h3 { font-size: 15px; margin: 4px 0 14px; }
.danger-zone { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1f2f5; }

/* present */
.page-present { background: #fff; }
.present-shell { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 32px 44px 18px; gap: 10px; }
.present-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.present-head h1 { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.15; margin-top: 12px; letter-spacing: -.04em; max-width: 1000px; }
.present-join { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px #20212a0d; flex: none; }
.present-join-copy { display: grid; gap: 2px; text-align: right; }
.present-join-copy span { font-size: 13px; color: var(--muted); }
.present-join-copy b { color: var(--ink); }
.present-join-copy strong { font-size: 40px; letter-spacing: .05em; line-height: 1.1; }
.present-join img { width: 112px; height: 112px; }
.cloud-present { background: radial-gradient(ellipse at 50% 50%, #fff6f5 0, #fff 64%); }
.present-foot { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.present-foot strong { color: var(--ink); }
.present-controls { margin-left: auto; display: flex; gap: 8px; transition: opacity .4s; }
body.idle .present-controls { opacity: 0; }
body.idle { cursor: none; }

/* panel */
.panel-badge { display: inline-flex; align-items: center; gap: 6px; margin: 14px 12px 0; align-self: flex-start; padding: 4px 9px; border-radius: 20px; background: #f2eeff; color: var(--lavender); font-size: 11px; font-weight: 800; }
.page-panel .nav-link.active { color: var(--lavender); background: #f4f1ff; }
.page-panel .nav-link:hover { color: var(--lavender); background: #f8f6ff; }
.page-panel .workspace-label { margin-top: 28px; }
.words-grid { grid-template-columns: 1fr 1.2fr; }
.word-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.word-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 5px 5px 11px; border-radius: 20px; background: #f4f5f7; font-size: 13px; font-weight: 600; }
.word-chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; color: #9a9eaa; font-size: 16px; line-height: 1; }
.word-chip button:hover { background: var(--red-soft); color: var(--red); }

/* responsive */
@media (max-width: 1180px) {
  .stats-row.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-below { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .sidebar { width: 72px; padding: 22px 10px 14px; align-items: center; }
  .sidebar .brand { padding: 0; }
  .brand-text, .nav-link span, .help-card, .profile-copy, .panel-badge { display: none; }
  .workspace-label { font-size: 0; margin: 26px 0 8px; height: 1px; width: 30px; background: var(--line); }
  .side-nav { width: 100%; }
  .nav-link { justify-content: center; padding: 0; }
  .profile { flex-direction: column; padding: 12px 0 0; }
  .profile-logout { margin: 0; }
  .main-area { margin-left: 72px; }
  .topbar { padding: 0 24px; }
  .content-wrap { padding: 26px 24px 40px; }
  .event-grid, .host-grid, .below-grid { grid-template-columns: 1fr; }
  .event-side { grid-template-columns: 1fr 1fr; }
  .two-col, .words-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .sidebar { inset: auto 0 0 0; width: 100%; height: 62px; flex-direction: row; padding: 0 10px; border-right: 0; border-top: 1px solid var(--line); overflow: visible; }
  .sidebar .brand, .workspace-label, .sidebar-bottom .help-card { display: none; }
  .side-nav { display: flex; width: auto; flex: 1; justify-content: space-around; }
  .sidebar-bottom { margin: 0; padding: 0; }
  .profile { border: 0; padding: 0; flex-direction: row; }
  .profile .avatar { display: none; }
  .main-area { margin-left: 0; padding-bottom: 62px; }
  .topbar { padding: 0 14px; height: 58px; }
  .content-wrap { padding: 20px 14px 30px; }
  .welcome-row h1, .page-head h1 { font-size: 23px; }
  .session-head h1 { font-size: 21px; }
  .stats-row, .stats-row.stats-4 { gap: 8px; }
  .stat-card { min-height: 104px; padding: 13px; }
  .stat-number { font-size: 23px; }
  .event-side { grid-template-columns: 1fr; }
  .cloud-host { height: 340px; }
  .session-responses, .session-row .badge { display: none; }
  .search input { width: 100%; }
  .toolbar, .search { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .present-shell { padding: 18px; height: auto; min-height: 100vh; }
  .present-head { flex-direction: column; }
  .cloud-present { min-height: 60vh; }
  .participant-card, .auth-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
