:root {
  color-scheme: dark;
  --bg: #090b13;
  --bg-soft: #111522;
  --panel: rgba(20, 25, 40, .78);
  --panel-solid: #151a2a;
  --line: rgba(255, 255, 255, .1);
  --text: #f4f6ff;
  --muted: #9ca5bd;
  --violet: #8d7cff;
  --violet-2: #6653e8;
  --mint: #65dfb1;
  --amber: #ffc86b;
  --rose: #ff7aa8;
  --danger: #ff6e78;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 24px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f7fc;
  --bg-soft: #efedf7;
  --panel: rgba(255, 255, 255, .82);
  --panel-solid: #ffffff;
  --line: rgba(45, 39, 74, .13);
  --text: #201d2f;
  --muted: #69647c;
  --violet: #705de8;
  --violet-2: #5844cf;
  --mint: #16896b;
  --amber: #a86800;
  --rose: #c63b72;
  --danger: #c43f4b;
  --shadow: 0 24px 70px rgba(62, 52, 98, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(91, 69, 196, .19), transparent 34rem),
    radial-gradient(circle at 85% 70%, rgba(50, 151, 126, .12), transparent 32rem),
    var(--bg);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 15% 10%, rgba(118, 93, 232, .15), transparent 34rem),
    radial-gradient(circle at 85% 70%, rgba(42, 181, 143, .11), transparent 32rem),
    var(--bg);
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; }
.brand-logo { width:40px; height:40px; display:inline-grid; place-items:center; flex:0 0 auto; filter:drop-shadow(0 10px 22px rgba(116,97,239,.32)); }
.brand-logo svg { width:100%; height:100%; display:block; }
.boot-logo { width:68px; height:68px; animation:logoFloat 2.8s ease-in-out infinite alternate; }
@keyframes logoFloat { to { transform:translateY(-5px) rotate(2deg); filter:drop-shadow(0 18px 30px rgba(116,97,239,.42)); } }

.ambient-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.ambient-bg::before, .ambient-bg::after {
  content: ""; position: absolute; border-radius: 999px; filter: blur(60px); opacity: .23;
  animation: drift 14s ease-in-out infinite alternate;
}
.ambient-bg::before { width: 25rem; height: 25rem; background: #6d5af5; top: -10rem; right: 3%; }
.ambient-bg::after { width: 20rem; height: 20rem; background: #21a77e; bottom: -9rem; left: 8%; animation-delay: -5s; }
@keyframes drift { to { transform: translate3d(-60px, 45px, 0) scale(1.08); } }

.topbar {
  position: sticky; top: 0; z-index: 30; height: 76px; display: flex; align-items: center; gap: 24px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: rgba(9, 11, 19, .78); backdrop-filter: blur(22px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 850; letter-spacing: -.03em; }
.brand .brand-logo { width:38px; height:38px; }
.brand-button { padding:0; border:0; color:inherit; background:none; text-align:left; cursor:pointer; }
.top-links { display: flex; gap: 22px; margin-left: auto; align-items: center; color: var(--muted); }
.top-links a:hover { color: white; }
.theme-toggle { min-width: 82px; }
.auth-head, .app-top-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.auth-card .auth-head { margin-bottom:26px; }
.auth-card .auth-head .brand { margin-bottom:0; }

.btn {
  border: 1px solid var(--line); border-radius: 13px; padding: 11px 17px; cursor: pointer;
  background: rgba(255,255,255,.055); font-weight: 750; transition: .2s ease; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.09); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { border-color: transparent; background: linear-gradient(135deg, var(--violet), var(--violet-2)); box-shadow: 0 11px 30px rgba(102,83,232,.28); }
.btn-primary:hover { background: linear-gradient(135deg, #9b8cff, #745fff); }
.btn-mint { color: #071811; background: var(--mint); border-color: transparent; }
.btn-danger { color: #ffdfe4; border-color: rgba(255,110,120,.28); }
.btn-sm { padding: 8px 11px; border-radius: 10px; font-size: 13px; }
.icon-btn { width: 40px; height: 40px; padding: 0; }

.landing { overflow: hidden; }
.hero {
  width: min(1200px, calc(100% - 40px)); margin: 0 auto; min-height: 660px;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding: 64px 0 74px;
}
.eyebrow { color: var(--mint); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 850; }
.hero h1 { font-size: clamp(54px, 7vw, 94px); margin-bottom: 24px; }
.gradient-text { color: transparent; background: linear-gradient(100deg, #fff 5%, #b3a9ff 48%, #65dfb1); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { font-size: 19px; max-width: 630px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.trust-row span::before { content: "✓"; color: var(--mint); margin-right: 7px; }

.hero-visual {
  position: relative; min-height: 500px; padding: 26px; border-radius: 38px;
  background: linear-gradient(145deg, rgba(141,124,255,.16), rgba(18,24,38,.74));
  border: 1px solid rgba(255,255,255,.13); box-shadow: var(--shadow); isolation: isolate;
}
.product-preview { display:flex; flex-direction:column; gap:18px; padding:30px; }
.preview-top, .card-title-row, .workspace-head { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.preview-top h2 { font-size:32px; margin:5px 0 0; }
.online-pill { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; padding:8px 11px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:12px; font-weight:750; }
.online-pill i, .focus-floor-room small i { width:7px; height:7px; border-radius:50%; background:var(--mint); box-shadow:0 0 10px var(--mint); }
.preview-intention { padding:18px; border:1px solid var(--line); border-radius:19px; background:rgba(255,255,255,.045); }
.preview-intention span { display:block; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.1em; font-weight:800; }
.preview-intention strong { display:block; font-size:19px; margin:5px 0 13px; }
.preview-progress { height:5px; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.08); }
.preview-progress i { display:block; width:38%; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--violet),var(--mint)); }
.preview-room-list { display:grid; gap:9px; }
.preview-room { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:17px; background:rgba(10,13,22,.32); }
.preview-room .room-icon { width:40px; height:40px; border-radius:13px; font-size:18px; }
.preview-room strong, .preview-room small { display:block; }
.preview-room small { color:var(--muted); }
.preview-status { color:var(--muted); font-size:11px; border:1px solid var(--line); border-radius:999px; padding:4px 8px; }
.preview-footer { margin-top:auto; display:flex; align-items:center; gap:7px; padding-top:4px; }
.preview-footer > span { padding:6px 9px; border-radius:9px; color:var(--muted); font-size:12px; }
.preview-footer > span.active { color:var(--text); background:rgba(141,124,255,.18); }
.preview-footer .btn { margin-left:auto; }
.moon { position: absolute; width: 110px; height: 110px; right: 40px; top: 35px; border-radius: 50%; background: #f6efc9; box-shadow: 0 0 65px rgba(255,239,176,.32); }
.moon::after { content:""; position:absolute; width:100%; height:100%; border-radius:50%; background:#171a2a; transform:translate(24px,-12px); }
.desk-scene { position: absolute; inset: 0; border-radius: 38px; overflow: hidden; }
.desk-scene::before { content:""; position:absolute; left:8%; right:8%; height:16px; bottom:92px; border-radius:10px; background:#3e2e38; box-shadow: 0 40px 0 #2d222b; }
.desk-scene::after { content:""; position:absolute; width:155px; height:105px; left:23%; bottom:108px; border-radius:10px 10px 3px 3px; background:linear-gradient(145deg,#1c2234,#0e111c); border:4px solid #4c546a; box-shadow:0 0 40px rgba(105,224,179,.18); }
.scene-card {
  position:absolute; left:28px; right:28px; bottom:26px; z-index:2; display:flex; align-items:center; gap:13px;
  color:#f4f6ff; background:rgba(8,10,17,.84); border:1px solid rgba(255,255,255,.12); padding:14px; border-radius:18px; backdrop-filter:blur(12px);
}
.scene-card .pulse { width:10px; height:10px; border-radius:50%; background:var(--mint); box-shadow:0 0 0 7px rgba(101,223,177,.12); }
.scene-card strong { display:block; }
.scene-card small { color:#aeb6ca; }

.section { width:min(1200px, calc(100% - 40px)); margin:0 auto; padding:96px 0; }
.section-head { display:flex; justify-content:space-between; gap:30px; align-items:end; margin-bottom:34px; }
.section-head h2 { font-size:clamp(36px,5vw,58px); margin-bottom:8px; }
.section-head p { max-width:560px; margin-bottom:0; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.bento { display:grid; grid-template-columns:1.2fr .8fr .8fr; gap:18px; }
.card {
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:24px;
  box-shadow:0 14px 45px rgba(0,0,0,.16); backdrop-filter:blur(18px);
}
.card h3 { font-size:22px; }
.feature-card { min-height:230px; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; position:relative; }
.feature-icon { width:50px; height:50px; border-radius:16px; display:grid; place-items:center; background:rgba(141,124,255,.15); color:#c9c2ff; font-size:24px; }
.live-dot { display:inline-flex; align-items:center; gap:7px; color:var(--mint); font-size:12px; font-weight:800; }
.live-dot::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--mint); box-shadow:0 0 12px var(--mint); }
.room-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.room-card { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px; }
.room-icon { width:52px; height:52px; border-radius:17px; display:grid; place-items:center; font-size:23px; background:rgba(141,124,255,.13); }
.room-card h3 { margin:0 0 4px; font-size:18px; }
.room-title-line { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-bottom:4px; }
.room-title-line h3 { margin:0; }
.room-mode { color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:3px 7px; font-size:10px; font-weight:750; }
.room-card p { margin:0; font-size:13px; }
.room-live-row { display:flex; align-items:center; flex-wrap:wrap; gap:7px 11px; margin-top:9px; }
.room-access { color:var(--muted); font-size:10px; font-weight:700; }
.count { text-align:right; font-weight:800; color:var(--mint); }
.count small { display:block; color:var(--muted); font-weight:500; }

.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; align-items:stretch; }
.pricing-grid.pricing-four { grid-template-columns:repeat(4,1fr); }
.price-card { position:relative; display:flex; flex-direction:column; }
.price-card.popular { border-color:rgba(141,124,255,.75); transform:translateY(-10px); background:linear-gradient(155deg,rgba(141,124,255,.18),var(--panel)); }
.popular-tag { position:absolute; top:-13px; left:50%; transform:translateX(-50%); padding:5px 12px; border-radius:999px; background:var(--violet); font-size:11px; font-weight:850; text-transform:uppercase; letter-spacing:.08em; white-space:nowrap; }
.price { font-size:42px; font-weight:900; letter-spacing:-.04em; margin:10px 0; }
.price small { font-size:14px; color:var(--muted); font-weight:500; letter-spacing:0; }
.perk-list { list-style:none; padding:0; margin:18px 0 24px; display:grid; gap:10px; color:var(--muted); }
.perk-list li::before { content:"✓"; color:var(--mint); margin-right:9px; }
.price-card .btn { margin-top:auto; }
.apple-pay { display:inline-flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; margin-top:12px; justify-content:center; }
.annual-note { min-height:49px; margin:-2px 0 7px; padding:9px 11px; border-radius:12px; background:rgba(101,223,177,.08); color:var(--muted); font-size:11px; }
.annual-note strong { display:block; color:var(--mint); font-size:13px; }
.annual-button { margin-top:8px !important; }
.plan-fine-print { max-width:860px; margin:18px auto 0; text-align:center; font-size:12px; }
.social-model-card { margin-top:24px; background:linear-gradient(135deg,rgba(112,93,232,.13),var(--panel)); }
.social-model-card h3 { margin:7px 0 8px; }
.social-model-card p { margin-bottom:0; }

.blog-card { min-height:260px; display:flex; flex-direction:column; cursor:pointer; transition:.22s ease; }
.blog-card:hover { transform:translateY(-5px); border-color:rgba(141,124,255,.38); }
.blog-card .tag { color:var(--violet); font-size:12px; font-weight:850; text-transform:uppercase; letter-spacing:.1em; }
.blog-card h3 { font-size:25px; margin-top:18px; }
.blog-card .read { margin-top:auto; color:var(--text); font-weight:750; }
.step-card { min-height:220px; }
.step-card > span { color:var(--violet); font-size:12px; font-weight:900; letter-spacing:.15em; }
.step-card h3 { margin-top:48px; }

.footer { border-top:1px solid var(--line); width:min(1200px,calc(100% - 40px)); margin:0 auto; padding:38px 0 60px; display:flex; justify-content:space-between; gap:30px; color:var(--muted); }

.auth-shell { min-height:100vh; display:grid; place-items:center; padding:30px; }
.auth-card { width:min(460px,100%); }
.auth-card .brand { margin-bottom:26px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; padding:4px; border-radius:14px; background:rgba(255,255,255,.05); margin-bottom:24px; }
.auth-tabs button { border:0; background:none; padding:10px; border-radius:11px; cursor:pointer; color:var(--muted); }
.auth-tabs button.active { background:rgba(255,255,255,.1); color:white; }
.form { display:grid; gap:15px; }
.field { display:grid; gap:7px; }
.field label { color:#cbd1e1; font-size:13px; font-weight:700; }
.field input, .field textarea, .field select {
  width:100%; color:var(--text); background:#0d111c; border:1px solid var(--line); border-radius:13px;
  padding:12px 13px; outline:none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color:var(--violet); box-shadow:0 0 0 3px rgba(141,124,255,.13); }
.field textarea { min-height:95px; resize:vertical; }
.form-note { font-size:12px; color:var(--muted); }
.check-row { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:13px 0; border-bottom:1px solid var(--line); }
.switch { width:44px; height:24px; position:relative; }
.switch input { opacity:0; width:0; height:0; }
.switch span { position:absolute; inset:0; border-radius:999px; background:#333a4b; cursor:pointer; }
.switch span::after { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; border-radius:50%; background:white; transition:.2s; }
.switch input:checked + span { background:var(--violet); }
.switch input:checked + span::after { transform:translateX(20px); }

.app-layout { min-height:100vh; display:grid; grid-template-columns:250px 1fr; }
.sidebar {
  position:fixed; inset:0 auto 0 0; width:250px; padding:25px 18px; border-right:1px solid var(--line);
  background:rgba(10,12,20,.88); backdrop-filter:blur(24px); z-index:20; display:flex; flex-direction:column;
}
.side-nav { display:grid; gap:5px; margin-top:30px; flex:1; min-height:0; overflow-y:auto; padding-right:3px; }
.side-link {
  display:flex; align-items:center; gap:12px; width:100%; padding:11px 13px; border:0; border-radius:12px;
  background:none; color:var(--muted); cursor:pointer; text-align:left; font-weight:690;
}
.side-link:hover, .side-link.active { color:white; background:rgba(255,255,255,.065); }
.nav-icon { width:22px; text-align:center; }
.side-profile { width:100%; margin-top:14px; padding:18px 0 0; border:0; border-top:1px solid var(--line); display:flex; align-items:center; gap:10px; color:var(--text); background:none; text-align:left; cursor:pointer; }
.side-profile:hover strong { color:var(--mint); }
.avatar { width:38px; height:38px; border-radius:13px; display:grid; place-items:center; color:white; font-weight:900; background:var(--violet); flex:0 0 auto; overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.avatar.has-photo { background:var(--bg-soft) !important; }
.side-profile strong { display:block; max-width:130px; overflow:hidden; text-overflow:ellipsis; }
.side-profile small { color:var(--muted); }

.main { grid-column:2; min-width:0; }
.app-top { height:76px; display:flex; align-items:center; justify-content:space-between; padding:0 30px; border-bottom:1px solid var(--line); position:sticky; top:0; background:rgba(9,11,19,.74); backdrop-filter:blur(20px); z-index:15; }
.app-top h2 { margin:0; font-size:23px; }
.app-content { width:min(1120px,calc(100% - 52px)); margin:0 auto; padding:34px 0 120px; }
.mobile-menu { display:none; }
.page-head { display:flex; align-items:end; justify-content:space-between; gap:22px; margin-bottom:25px; }
.page-head h1 { font-size:42px; margin-bottom:7px; }
.page-head p { margin:0; }
.workspace-head { margin-bottom:22px; }
.workspace-head h1 { font-size:42px; margin:6px 0 0; }
.date-chip { padding:9px 12px; border:1px solid var(--line); border-radius:12px; color:var(--muted); font-size:13px; font-weight:750; }
.start-session-card { display:grid; grid-template-columns:.8fr 1.2fr; align-items:end; gap:38px; padding:30px; margin-bottom:18px; background:linear-gradient(135deg,rgba(112,93,232,.18),var(--panel)); }
.session-copy h2 { font-size:31px; margin:7px 0 9px; }
.session-copy p { margin:0; }
.quick-session { display:grid; grid-template-columns:1fr 115px auto; align-items:end; gap:10px; }
.duration-field { min-width:0; }
.dashboard-layout { display:grid; grid-template-columns:1.35fr .65fr; gap:18px; }
.card-title-row { align-items:start; margin-bottom:17px; }
.card-title-row h3 { margin:5px 0 0; }
.focus-floor-list { display:grid; gap:8px; }
.focus-floor-room { width:100%; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:13px; text-align:left; border:1px solid transparent; border-radius:16px; padding:12px; background:rgba(255,255,255,.035); color:var(--text); cursor:pointer; transition:.2s; }
.focus-floor-room:hover { transform:translateX(3px); border-color:var(--line); background:rgba(141,124,255,.08); }
.focus-floor-room .room-icon { width:43px; height:43px; border-radius:14px; }
.focus-floor-room strong, .focus-floor-room small { display:block; }
.focus-floor-room small { color:var(--muted); margin-top:3px; }
.focus-floor-room small i { display:inline-block; margin-right:6px; }
.focus-floor-room small b { color:var(--muted); }
.room-arrow { color:var(--muted); font-size:19px; }
.goals-link { margin-top:14px; }
.activity-card { padding:20px; }
.mini-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:13px; }
.mini-stats div { padding:10px 8px; border-radius:13px; background:rgba(255,255,255,.035); }
.mini-stats strong, .mini-stats span { display:block; }
.mini-stats strong { font-size:18px; }
.mini-stats span { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.05em; }
.room-info-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px; }
.room-info-grid .card { min-height:190px; }
.room-info-grid h3 { margin-top:18px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.stat { padding:19px; }
.stat .label { color:var(--muted); font-size:12px; font-weight:750; text-transform:uppercase; letter-spacing:.08em; }
.stat .value { font-size:30px; font-weight:900; margin-top:5px; }
.dashboard-grid { display:grid; grid-template-columns:1.35fr .65fr; gap:18px; }
.stack { display:grid; gap:18px; }
.daily-card { min-height:250px; background:linear-gradient(140deg,rgba(141,124,255,.24),rgba(20,25,40,.84)); }
.daily-card blockquote { font-size:27px; line-height:1.25; letter-spacing:-.025em; margin:28px 0; }
.timer-card { text-align:center; }
.timer-display { font-size:64px; font-weight:900; letter-spacing:-.06em; font-variant-numeric:tabular-nums; }
.timer-actions { display:flex; justify-content:center; gap:8px; }
.pills { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:14px; }
.pill { border:1px solid var(--line); background:rgba(255,255,255,.04); padding:7px 10px; border-radius:999px; color:var(--muted); cursor:pointer; font-size:12px; }
.pill.active { color:white; border-color:var(--violet); background:rgba(141,124,255,.13); }

.goal-list { display:grid; gap:8px; }
.goal-row { display:flex; align-items:center; gap:11px; padding:12px; border-radius:13px; background:rgba(255,255,255,.035); }
.goal-row.complete .goal-title { text-decoration:line-through; color:var(--muted); }
.goal-title { flex:1; }
.goal-add { display:flex; gap:8px; margin-top:13px; }
.goal-add input { flex:1; }
.progress { height:8px; border-radius:999px; background:rgba(255,255,255,.07); overflow:hidden; }
.progress span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg,var(--violet),var(--mint)); }

.member-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.member-card { display:grid; gap:16px; text-align:left; }
.member-profile-link { width:100%; display:flex; align-items:center; gap:13px; padding:0; color:var(--text); background:none; border:0; text-align:left; cursor:pointer; }
.member-profile-link:hover strong, .profile-name:hover { color:var(--mint); }
.member-profile-link .avatar { width:58px; height:58px; border-radius:19px; font-size:20px; }
.member-profile-link span:last-child { min-width:0; }
.member-profile-link strong, .member-profile-link small { display:block; }
.member-profile-link strong { font-size:17px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-profile-link small { color:var(--muted); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.member-social { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:10px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.member-social > span { color:var(--muted); font-size:12px; }
.member-social > span strong { color:var(--text); }
.pin-chip { padding:6px 9px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.04); color:var(--text); font-size:12px; font-weight:800; cursor:pointer; }
.pin-chip.active { border-color:rgba(101,223,177,.34); color:var(--mint); background:rgba(101,223,177,.08); }
.member-card .actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; }

.allowance { display:flex; gap:16px; flex-wrap:wrap; }
.allowance > div { flex:1; min-width:160px; padding:14px; border:1px solid var(--line); border-radius:16px; }
.allowance strong { display:block; font-size:26px; }
.owner-badge { display:inline-flex; align-items:center; gap:6px; width:max-content; color:#d9fff3; background:linear-gradient(120deg,rgba(34,179,139,.23),rgba(111,91,232,.24)); border:1px solid rgba(101,223,177,.34); padding:5px 9px; border-radius:999px; font-size:10px; font-weight:900; letter-spacing:.05em; }

.admin-hero { display:grid; grid-template-columns:1fr auto; align-items:center; gap:34px; padding:31px; margin-bottom:16px; background:linear-gradient(135deg,rgba(101,223,177,.12),rgba(112,93,232,.17),var(--panel)); }
.admin-hero h1 { margin:7px 0 9px; font-size:42px; }
.admin-hero p { max-width:650px; margin:0; }
.owner-access-card { min-width:230px; display:grid; gap:7px; padding:18px; border:1px solid rgba(101,223,177,.22); border-radius:18px; background:rgba(8,12,20,.26); }
.owner-access-card strong { font-size:18px; }
.owner-access-card small { color:var(--muted); }
.admin-stat-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:10px; margin-bottom:16px; }
.admin-stat { padding:17px; }
.admin-stat strong, .admin-stat span { display:block; }
.admin-stat strong { font-size:29px; letter-spacing:-.04em; }
.admin-stat span { margin-top:4px; color:var(--muted); font-size:11px; }
.admin-section { padding:0; overflow:hidden; margin-bottom:16px; }
.admin-section-head { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 21px; border-bottom:1px solid var(--line); }
.admin-section-head h2 { margin:5px 0 0; font-size:24px; }
.admin-search { display:flex; gap:7px; }
.admin-search input, .admin-plan-control select { min-height:39px; color:var(--text); background:var(--bg-soft); border:1px solid var(--line); border-radius:11px; padding:8px 10px; outline:none; }
.admin-search input { width:min(260px,42vw); }
.admin-search input:focus, .admin-plan-control select:focus { border-color:var(--violet); box-shadow:0 0 0 3px rgba(141,124,255,.13); }
.admin-member-list { display:grid; }
.admin-member-row { display:grid; grid-template-columns:minmax(240px,1.7fr) .55fr .35fr minmax(235px,1.2fr); align-items:center; gap:16px; padding:16px 21px; border-bottom:1px solid var(--line); }
.admin-member-row:last-child { border-bottom:0; }
.admin-member-identity { min-width:0; display:flex; align-items:center; gap:11px; }
.admin-member-identity > span { min-width:0; }
.admin-member-identity strong, .admin-member-identity small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-member-identity small { color:var(--muted); margin-top:2px; }
.admin-role { display:inline-flex; margin-left:5px; padding:3px 6px; border-radius:999px; color:var(--mint); background:rgba(101,223,177,.09); border:1px solid rgba(101,223,177,.2); font-size:9px; text-transform:uppercase; letter-spacing:.06em; vertical-align:2px; }
.admin-role.owner { color:#fbe5a6; background:rgba(255,200,107,.09); border-color:rgba(255,200,107,.25); }
.admin-cell-label { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.admin-plan-control { display:grid; grid-template-columns:1fr auto; gap:7px; }
.admin-plan-control select { min-width:0; width:100%; }
.admin-lock-note { color:var(--muted); font-size:11px; }
.admin-two-column { display:grid; grid-template-columns:1.2fr .8fr; gap:16px; align-items:start; }
.admin-report-list, .admin-room-list { display:grid; }
.admin-report { padding:19px 21px; border-bottom:1px solid var(--line); }
.admin-report:last-child { border-bottom:0; }
.admin-report-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.admin-report-head time { color:var(--muted); font-size:11px; }
.report-status, .room-state { display:inline-flex; width:max-content; padding:4px 7px; border-radius:999px; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.report-status.open, .report-status.reviewing { color:#2a1900; background:var(--amber); }
.report-status.resolved, .room-state.open { color:#061a13; background:var(--mint); }
.report-status.dismissed, .room-state.closed { color:var(--muted); background:rgba(255,255,255,.08); }
.admin-report > p { margin:13px 0; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; }
.admin-report-people { display:grid; grid-template-columns:1fr 1fr .6fr; gap:10px; }
.admin-report-people span { min-width:0; padding:10px; border-radius:12px; background:rgba(255,255,255,.035); }
.admin-report-people small, .admin-report-people strong, .admin-report-people em { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-report-people small { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.admin-report-people em { color:var(--muted); font-size:10px; font-style:normal; }
.admin-report-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:13px; }
.admin-room-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:11px; padding:15px 18px; border-bottom:1px solid var(--line); }
.admin-room-row:last-child { border-bottom:0; }
.admin-room-row .room-icon { width:41px; height:41px; border-radius:13px; font-size:18px; }
.admin-room-row strong, .admin-room-row small { display:block; }
.admin-room-row small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-footnote { margin:0; padding:13px 18px; border-top:1px solid var(--line); font-size:11px; }
.inbox-list { display:grid; gap:10px; }
.inbox-item { display:flex; gap:12px; align-items:start; padding:14px; border-radius:14px; background:rgba(255,255,255,.035); }
.inbox-item .meta { color:var(--muted); font-size:12px; }
.avatar-button, .profile-name { padding:0; border:0; background:none; color:var(--text); cursor:pointer; font-weight:800; }
.profile-name { font-size:inherit; }

.back-link { margin:0 0 16px; padding:0; border:0; background:none; color:var(--muted); cursor:pointer; font-weight:750; }
.back-link:hover { color:var(--text); }
.profile-loading { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.public-profile { position:relative; overflow:hidden; padding:0; }
.profile-cover { height:180px; position:relative; overflow:hidden; background:linear-gradient(120deg,#5643cb,#8776ff 52%,#46c69c); }
.profile-cover::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 18% 15%,rgba(255,255,255,.3),transparent 28%),linear-gradient(180deg,transparent,rgba(8,10,17,.24)); }
.profile-cover > span { position:absolute; width:180px; height:180px; border:1px solid rgba(255,255,255,.22); border-radius:50%; right:8%; top:-70px; }
.profile-cover > span + span { width:270px; height:270px; right:18%; top:-170px; }
.banner-midnight { background:linear-gradient(125deg,#191c3c,#4d3f91 52%,#1f6f79); }
.banner-aurora { background:radial-gradient(circle at 20% 90%,rgba(255,131,197,.8),transparent 34%),linear-gradient(120deg,#161633,#6558d8 48%,#45d2b0); }
.banner-cherry { background:radial-gradient(circle at 74% 30%,rgba(255,255,255,.3),transparent 10%),linear-gradient(125deg,#63214e,#e44f7b 50%,#ffc3a5); }
.banner-ocean { background:radial-gradient(circle at 75% 20%,rgba(159,245,255,.42),transparent 22%),linear-gradient(125deg,#0f315a,#136f8b 54%,#5cbbbf); }
.banner-sunset { background:linear-gradient(125deg,#6c306d,#ec6b73 48%,#ffc66e); }
.banner-matcha { background:radial-gradient(circle at 20% 10%,rgba(255,255,255,.27),transparent 22%),linear-gradient(125deg,#304a3c,#71966b 54%,#d5c58a); }
.banner-notebook { background-color:#eee7d5; background-image:linear-gradient(rgba(87,123,171,.22) 1px,transparent 1px),linear-gradient(90deg,transparent 39px,rgba(225,95,106,.32) 40px,transparent 41px); background-size:100% 25px,100% 100%; }
.banner-arcade { background-color:#1a153b; background-image:linear-gradient(90deg,rgba(83,225,202,.2) 1px,transparent 1px),linear-gradient(rgba(225,94,255,.19) 1px,transparent 1px),radial-gradient(circle at 80% 35%,#ff4fd8 0 3px,transparent 4px); background-size:25px 25px,25px 25px,100% 100%; }
.featured-achievement { position:absolute; z-index:2; right:20px; bottom:17px; display:flex; align-items:center; gap:8px; padding:7px 11px 7px 7px; border:1px solid rgba(255,255,255,.27); border-radius:999px; color:white; background:rgba(7,9,16,.54); box-shadow:0 12px 28px rgba(0,0,0,.2); backdrop-filter:blur(12px); cursor:pointer; }
.featured-achievement b { width:31px; height:31px; display:grid; place-items:center; border-radius:50%; color:#402a00; background:linear-gradient(145deg,#fff0a4,#ffc04d); }
.featured-achievement span { position:static; width:auto; height:auto; border:0; font-size:10px; font-weight:850; }
.profile-main { display:flex; align-items:end; justify-content:space-between; gap:24px; padding:0 32px 24px; }
.profile-identity { display:flex; align-items:end; gap:18px; min-width:0; }
.profile-avatar { width:116px; height:116px; border-radius:34px; font-size:35px; border:5px solid var(--panel-solid); box-shadow:0 18px 42px rgba(0,0,0,.28); }
.profile-identity .profile-avatar { margin-top:-48px; position:relative; z-index:2; }
.profile-identity h1 { margin:6px 0 5px; font-size:38px; }
.profile-identity p { margin:0; }
.profile-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.profile-stats { display:grid; grid-template-columns:repeat(3,1fr); margin:0 32px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.profile-stats div { padding:20px 18px; }
.profile-stats div + div { border-left:1px solid var(--line); }
.profile-stats strong, .profile-stats span { display:block; }
.profile-stats strong { font-size:23px; }
.profile-stats span { color:var(--muted); font-size:12px; margin-top:2px; }
.profile-about { padding:28px 32px 34px; }
.profile-about p { max-width:720px; margin:10px 0 0; font-size:17px; white-space:pre-wrap; }
.profile-note { display:flex; align-items:center; gap:14px; margin-top:14px; padding:16px 19px; border:1px solid var(--line); border-radius:17px; }
.profile-note span { flex:0 0 auto; color:var(--mint); font-weight:850; }
.profile-note p { margin:0; }

.profile-editor { display:grid; grid-template-columns:320px 1fr; gap:18px; align-items:start; }
.profile-photo-card { display:grid; gap:12px; text-align:center; justify-items:center; }
.profile-photo-preview { padding:8px; }
.profile-photo-card h3 { margin:0; }
.profile-photo-card p { font-size:13px; }
.profile-photo-card .btn { width:100%; }
.safety-copy { color:var(--muted); font-size:11px; }
.banner-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.banner-option { position:relative; display:grid; gap:6px; padding:8px; border:1px solid var(--line); border-radius:14px; cursor:pointer; }
.banner-option:has(input:checked) { border-color:var(--violet); background:rgba(141,124,255,.1); }
.banner-option input { position:absolute; opacity:0; }
.banner-option small { color:var(--muted); text-align:center; }
.banner-swatch { height:48px; overflow:hidden; position:relative; border-radius:9px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.13); }
.banner-swatch::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 20% 15%,rgba(255,255,255,.34),transparent 32%); }

.messages-layout { min-height:660px; display:grid; grid-template-columns:340px minmax(0,1fr); border:1px solid var(--line); border-radius:24px; overflow:hidden; background:var(--panel); box-shadow:var(--shadow); }
.conversation-list { min-width:0; border-right:1px solid var(--line); background:rgba(8,10,17,.18); }
.conversation-title { height:88px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px; border-bottom:1px solid var(--line); }
.conversation-title h1 { margin:3px 0 0; font-size:27px; }
.conversation-scroll { padding:8px; display:grid; gap:4px; max-height:570px; overflow:auto; }
.conversation-row { width:100%; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:11px; padding:11px; border:1px solid transparent; border-radius:15px; color:var(--text); background:none; text-align:left; cursor:pointer; }
.conversation-row:hover, .conversation-row.active { border-color:var(--line); background:rgba(141,124,255,.09); }
.conversation-row > span { min-width:0; }
.conversation-row strong, .conversation-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conversation-row small { color:var(--muted); margin-top:2px; }
.conversation-row i { color:var(--amber); font-size:10px; font-style:normal; font-weight:850; text-transform:uppercase; }
.conversation-empty { margin:10px; padding:26px 12px; }
.message-panel { min-width:0; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; background:rgba(10,13,22,.12); }
.message-head { height:88px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line); }
.message-person { display:flex; align-items:center; gap:11px; min-width:0; padding:0; border:0; background:none; color:var(--text); text-align:left; cursor:pointer; }
.message-person strong, .message-person small { display:block; }
.message-person small { color:var(--muted); }
.message-head-actions, .dm-call-actions { display:flex; align-items:center; gap:7px; }
.dm-call-button { position:relative; color:var(--mint); font-size:17px; }
.dm-call-button.locked { color:var(--muted); }
.dm-call-button.locked::after { content:"✦"; position:absolute; right:-2px; bottom:-2px; width:15px; height:15px; display:grid; place-items:center; border:2px solid var(--panel); border-radius:50%; color:#392700; background:var(--amber); font-size:8px; }
.message-request { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:13px 20px; border-bottom:1px solid rgba(255,200,107,.22); background:rgba(255,200,107,.07); }
.message-request p { margin:2px 0 0; font-size:12px; }
.message-request.waiting { border-bottom-color:var(--line); background:rgba(141,124,255,.07); }
.message-thread { min-height:0; max-height:485px; overflow:auto; padding:24px; display:flex; flex-direction:column; gap:10px; }
.thread-start { margin:auto; text-align:center; }
.thread-start span { display:block; color:var(--mint); font-weight:850; }
.thread-start p { margin:5px 0 0; }
.message-row { display:flex; align-items:center; gap:7px; max-width:78%; }
.message-row.mine { margin-left:auto; flex-direction:row-reverse; }
.message-bubble { min-width:74px; padding:10px 13px 7px; border:1px solid var(--line); border-radius:17px 17px 17px 5px; background:rgba(255,255,255,.06); }
.message-row.mine .message-bubble { border-color:transparent; border-radius:17px 17px 5px 17px; background:linear-gradient(135deg,var(--violet),var(--violet-2)); color:white; }
.message-bubble p { margin:0; color:inherit; white-space:pre-wrap; overflow-wrap:anywhere; }
.message-bubble > span { display:block; margin-top:4px; color:rgba(255,255,255,.64); font-size:9px; text-align:right; }
.message-row.theirs .message-bubble > span { color:var(--muted); }
.message-report { padding:3px; border:0; background:none; color:var(--muted); cursor:pointer; }
.dm-image { display:block; width:min(310px,100%); max-height:360px; object-fit:cover; border-radius:12px; }
.message-bubble audio { display:block; width:min(290px,65vw); height:36px; }
.media-loading { color:var(--muted) !important; font-size:12px; }
.dm-call-event { width:min(440px,90%); align-self:center; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.035); }
.dm-call-event.live { border-color:rgba(78,221,190,.28); background:linear-gradient(135deg,rgba(78,221,190,.08),rgba(141,124,255,.07)); }
.dm-call-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:13px; color:var(--mint); background:rgba(78,221,190,.1); font-size:18px; }
.dm-call-event strong { display:block; font-size:13px; }
.dm-call-event p { margin:2px 0 0; color:var(--muted); font-size:11px; }
.dm-call-event-actions { display:flex; align-items:center; gap:6px; }
.dm-composer { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; gap:7px; align-items:end; padding:14px; border-top:1px solid var(--line); }
.dm-composer textarea { width:100%; min-height:44px; max-height:120px; resize:vertical; padding:11px 13px; color:var(--text); background:var(--bg-soft); border:1px solid var(--line); border-radius:14px; outline:none; }
.dm-composer textarea:focus { border-color:var(--violet); box-shadow:0 0 0 3px rgba(141,124,255,.13); }
.record-button { color:var(--rose); }
.record-button.recording { color:white; background:var(--danger); animation:recordPulse 1s ease-in-out infinite alternate; }
@keyframes recordPulse { to { box-shadow:0 0 0 7px rgba(255,110,120,.14); } }
.message-empty { min-height:650px; display:grid; place-content:center; justify-items:center; text-align:center; padding:30px; }
.message-empty > span { width:64px; height:64px; display:grid; place-items:center; border-radius:21px; color:var(--violet); background:rgba(141,124,255,.12); font-size:27px; }
.message-empty h2 { margin:17px 0 4px; }
.message-empty p { max-width:330px; }
.modal-safety { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.modal-safety p { margin:4px 0 12px; }
.incoming-call { display:grid; justify-items:center; gap:8px; padding:10px 6px 4px; text-align:center; }
.incoming-call-avatar { margin:4px 0 7px; }
.incoming-call h2 { margin:0; }
.incoming-call p { margin:0 0 16px; }
.incoming-call-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; gap:10px; }

.plus-badge { display:inline-flex; align-items:center; gap:6px; color:#1d1402; background:linear-gradient(120deg,#ffe29b,#ffc85c); padding:5px 9px; border-radius:999px; font-size:11px; font-weight:900; }
.private-room { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px; border-radius:16px; background:rgba(255,255,255,.035); }
.empty { padding:42px 20px; text-align:center; border:1px dashed rgba(255,255,255,.15); border-radius:18px; color:var(--muted); }

.meeting-page { position:fixed; inset:0; z-index:100; background:#080a10; display:grid; grid-template-rows:64px 1fr; }
.meeting-head { display:flex; align-items:center; gap:14px; padding:0 18px; border-bottom:1px solid var(--line); }
.meeting-context { flex:1; min-width:0; }
.meeting-context h3 { margin:0; font-size:17px; }
.meeting-context span { display:block; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.meeting-status { color:var(--muted); font-size:12px; }
.rtc-stage { min-height:0; }
.meeting-error { height:100%; display:grid; place-content:center; text-align:center; padding:30px; }

/* Private calls use a quiet, social-style surface instead of the study-room UI. */
.social-incoming {
  position:fixed; inset:0; z-index:260; overflow:hidden; display:grid; place-items:center; padding:24px;
  color:#f8f9ff; text-align:center; background:
    radial-gradient(circle at 50% 30%,rgba(141,124,255,.38),transparent 28rem),
    linear-gradient(155deg,#12162a 0%,#090b13 58%,#101d20 100%);
}
.social-incoming-glow { position:absolute; width:310px; height:310px; border-radius:50%; background:rgba(101,223,177,.12); filter:blur(55px); animation:callGlow 2.8s ease-in-out infinite alternate; }
.social-incoming-card { position:relative; z-index:1; width:min(420px,100%); display:grid; justify-items:center; padding:38px 28px 30px; border:1px solid rgba(255,255,255,.12); border-radius:36px; background:rgba(16,20,34,.72); box-shadow:0 34px 90px rgba(0,0,0,.48); backdrop-filter:blur(24px); }
.call-kicker { color:#c8c1ff; font-size:12px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.incoming-call-avatar { margin:28px 0 20px; }
.incoming-call-avatar .profile-avatar { width:132px; height:132px; border-radius:50%; border:5px solid rgba(255,255,255,.88); box-shadow:0 0 0 12px rgba(141,124,255,.12),0 24px 55px rgba(0,0,0,.35); font-size:38px; animation:incomingPulse 2s ease-in-out infinite; }
.social-incoming-card h2 { margin:0; font-size:34px; }
.social-incoming-card > p { margin:8px 0 34px; color:#aeb6cb; }
.incoming-social-actions { width:240px; display:flex; align-items:start; justify-content:space-between; }
.social-answer { display:grid; justify-items:center; gap:9px; border:0; color:#fff; background:none; cursor:pointer; }
.social-answer > span { width:66px; height:66px; display:grid; place-items:center; border-radius:50%; font-size:29px; box-shadow:0 15px 35px rgba(0,0,0,.28); transition:transform .18s ease,filter .18s ease; }
.social-answer:hover > span { transform:translateY(-2px) scale(1.04); filter:brightness(1.08); }
.social-answer small { color:#d8dced; font-size:12px; font-weight:750; }
.social-answer.decline > span { background:#e75261; }
.social-answer.accept > span { background:#35bf89; }

.social-call-page {
  position:fixed; inset:0; z-index:240; overflow:hidden; isolation:isolate; color:#f7f8ff;
  background:radial-gradient(circle at 50% 28%,#27304c 0%,#121727 42%,#080a11 100%);
}
.social-call-page::after { content:""; position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(180deg,rgba(4,6,12,.67),transparent 26%,transparent 65%,rgba(4,6,12,.78)); }
.native-call-stage { position:absolute; inset:0; z-index:1; overflow:hidden; background:#080a11; }
.remote-call-video { width:100%; height:100%; display:block; object-fit:cover; background:#080a11; }
.remote-call-placeholder { position:absolute; inset:0; opacity:1; visibility:visible; transition:opacity .35s ease,visibility .35s ease; background:radial-gradient(circle at 50% 35%,#293252,#101522 58%,#080a11); }
.media-connected .remote-call-placeholder { opacity:0; visibility:hidden; }
.local-call-card { position:absolute; z-index:4; top:96px; right:clamp(14px,3vw,34px); width:clamp(125px,18vw,220px); aspect-ratio:3/4; overflow:hidden; border:1px solid rgba(255,255,255,.2); border-radius:24px; background:#111524; box-shadow:0 22px 55px rgba(0,0,0,.4); }
.local-call-card video { width:100%; height:100%; display:block; object-fit:cover; transform:scaleX(-1); }
.local-call-card > span { position:absolute; left:10px; bottom:9px; padding:4px 8px; border-radius:999px; color:#fff; background:rgba(5,7,12,.58); backdrop-filter:blur(10px); font-size:10px; font-weight:800; }
.local-call-card.camera-off::before { content:"Camera off"; position:absolute; inset:0; z-index:2; display:grid; place-items:center; color:#c8cfdf; background:radial-gradient(circle at 50% 35%,#27304b,#10131e); font-size:12px; font-weight:800; }
.social-call-top { position:absolute; z-index:5; top:0; left:0; right:0; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px clamp(18px,4vw,48px); }
.social-call-identity { min-width:0; display:flex; align-items:center; gap:12px; padding:8px 12px 8px 8px; border:1px solid rgba(255,255,255,.12); border-radius:999px; background:rgba(7,9,16,.48); box-shadow:0 14px 35px rgba(0,0,0,.2); backdrop-filter:blur(18px); }
.social-call-identity .avatar { width:43px; height:43px; border-radius:50%; }
.social-call-identity strong { display:block; max-width:min(42vw,270px); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:14px; }
.social-call-identity > div > span { display:flex; align-items:center; gap:7px; color:#b8bfd2; font-size:10px; }
.social-call-identity i { width:7px; height:7px; border-radius:50%; background:#ffc86b; box-shadow:0 0 12px rgba(255,200,107,.75); }
.peer-connected .social-call-identity i { background:#65dfb1; box-shadow:0 0 12px rgba(101,223,177,.75); }
.social-call-identity b { font-weight:650; }
#socialCallTimer { padding-left:7px; border-left:1px solid rgba(255,255,255,.2); font-variant-numeric:tabular-nums; }
.social-call-private { flex:0 0 auto; padding:9px 13px; border:1px solid rgba(255,255,255,.12); border-radius:999px; color:#c8cfdf; background:rgba(7,9,16,.48); backdrop-filter:blur(18px); font-size:11px; font-weight:750; }
.social-call-top-actions { display:flex; align-items:center; gap:8px; }
.call-help-button { width:38px; height:38px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.14); border-radius:50%; color:#eef1ff; background:rgba(7,9,16,.48); backdrop-filter:blur(18px); cursor:pointer; font-weight:850; }
.call-sound-gate { position:absolute; z-index:8; left:50%; top:50%; transform:translate(-50%,-50%); padding:13px 18px; border:1px solid rgba(255,255,255,.2); border-radius:999px; color:#fff; background:rgba(10,13,23,.78); box-shadow:0 18px 50px rgba(0,0,0,.35); backdrop-filter:blur(18px); cursor:pointer; font-weight:850; }
.call-sound-gate[hidden] { display:none; }
.call-help-sheet { position:absolute; z-index:9; top:80px; right:clamp(14px,4vw,48px); width:min(390px,calc(100% - 28px)); padding:25px; border:1px solid rgba(255,255,255,.14); border-radius:24px; color:#eef1ff; background:rgba(14,18,31,.94); box-shadow:0 30px 80px rgba(0,0,0,.5); backdrop-filter:blur(24px); }
.call-help-sheet[hidden] { display:none; }
.call-help-sheet > button { position:absolute; top:12px; right:12px; width:34px; height:34px; border:0; border-radius:50%; color:#fff; background:rgba(255,255,255,.08); cursor:pointer; }
.call-help-sheet h2 { margin:8px 26px 14px 0; font-size:24px; }
.call-help-sheet ol { margin:0; padding-left:22px; color:#dce1ef; }
.call-help-sheet li + li { margin-top:8px; }
.call-help-sheet p { margin:18px 0 0; color:#aeb6c9; font-size:12px; }
.social-call-controls { position:absolute; z-index:6; left:50%; bottom:max(30px,env(safe-area-inset-bottom)); transform:translateX(-50%); display:flex; align-items:start; gap:11px; padding:12px 14px; border:1px solid rgba(255,255,255,.14); border-radius:28px; background:rgba(8,10,17,.67); box-shadow:0 24px 55px rgba(0,0,0,.38); backdrop-filter:blur(24px); }
.social-control { width:70px; display:grid; justify-items:center; gap:6px; padding:0; border:0; color:#eef1ff; background:none; cursor:pointer; }
.social-control > span { width:52px; height:52px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.12); border-radius:50%; background:rgba(255,255,255,.13); font-size:20px; transition:transform .18s ease,background .18s ease; }
.social-control:hover > span { transform:translateY(-2px); background:rgba(255,255,255,.2); }
.social-control small { color:#c4cada; font-size:9px; white-space:nowrap; }
.social-control.off > span { color:#fff; background:#e75465; }
.social-control.end > span { background:#e54858; transform:rotate(135deg); font-size:22px; }
.social-control.end:hover > span { transform:translateY(-2px) rotate(135deg); background:#f05665; }
.social-call-safety { position:absolute; z-index:5; left:50%; bottom:126px; transform:translateX(-50%); max-width:calc(100% - 30px); padding:7px 11px; border-radius:999px; color:#cbd1df; background:rgba(7,9,16,.46); backdrop-filter:blur(14px); font-size:10px; white-space:nowrap; }
.audio-call-visual { position:absolute; inset:0; z-index:3; display:grid; place-content:center; justify-items:center; text-align:center; }
.audio-call-visual .social-call-avatar { position:relative; z-index:2; width:158px; height:158px; border-radius:50%; border:5px solid rgba(255,255,255,.87); box-shadow:0 28px 65px rgba(0,0,0,.4); font-size:47px; }
.audio-call-visual h1 { position:relative; z-index:2; margin:28px 0 8px; font-size:clamp(34px,6vw,58px); }
.audio-call-visual p { position:relative; z-index:2; color:#b3bbcf; }
.audio-pulse { position:absolute; left:50%; top:50%; width:220px; height:220px; margin:-150px 0 0 -110px; border:1px solid rgba(141,124,255,.46); border-radius:50%; animation:audioPulse 2.8s ease-out infinite; }
.audio-pulse.two { animation-delay:1.4s; }
@keyframes callGlow { to { transform:scale(1.16); opacity:.7; } }
@keyframes incomingPulse { 50% { transform:scale(1.025); box-shadow:0 0 0 20px rgba(141,124,255,.05),0 24px 55px rgba(0,0,0,.35); } }
@keyframes audioPulse { 0% { transform:scale(.75); opacity:.8; } 100% { transform:scale(2.2); opacity:0; } }

.join-lobby { display:grid; gap:20px; }
.lobby-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:25px; }
.device-panel { min-width:0; }
.video-preview-wrap { position:relative; aspect-ratio:16/10; overflow:hidden; border-radius:20px; background:#080a10; border:1px solid var(--line); }
.video-preview-wrap video { width:100%; height:100%; object-fit:cover; transform:scaleX(-1); }
.video-placeholder { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:5px; color:#d9deeb; background:radial-gradient(circle at 50% 35%,#252b3c,#0a0d15 70%); }
.video-placeholder.hidden { display:none; }
.video-placeholder > span { width:55px; height:55px; display:grid; place-items:center; border-radius:18px; background:rgba(141,124,255,.15); color:#bcb4ff; font-size:25px; }
.video-placeholder small { color:#8992a8; }
.mic-meter { position:absolute; left:14px; right:14px; bottom:12px; height:5px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.13); }
.mic-meter i { display:block; width:4%; height:100%; border-radius:inherit; background:var(--mint); transition:width .08s linear; }
.device-check-btn { width:100%; margin-top:10px; }
.device-status { margin:8px 2px 0; font-size:12px; }
.device-status.error { color:var(--danger); }
.public-room-open { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:10px; margin:13px 0 15px; padding:10px 12px; border:1px solid rgba(101,223,177,.22); border-radius:14px; background:rgba(101,223,177,.07); }
.public-room-open > span { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; color:var(--mint); background:rgba(101,223,177,.11); font-size:22px; }
.public-room-open strong,.public-room-open small { display:block; }
.public-room-open small { margin-top:2px; color:var(--muted); font-size:10px; line-height:1.35; }
.lobby-options h3 { font-size:28px; margin:6px 0; }
.device-switches { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:14px 0; }
.device-switches label { display:grid; grid-template-columns:auto 1fr; column-gap:9px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:14px; cursor:pointer; }
.device-switches input { grid-row:1/3; accent-color:var(--violet); }
.device-switches span { font-weight:800; }
.device-switches small { color:var(--muted); }
.device-selects { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.device-selects select { min-width:0; font-size:12px; }
.lobby-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:17px; border-top:1px solid var(--line); }
.lobby-footer p { margin:0; max-width:430px; font-size:12px; }

.ambient-dock {
  position:fixed; left:calc(50% + 125px); bottom:16px; transform:translateX(-50%); z-index:40;
  display:flex; gap:5px; padding:6px; border-radius:16px; border:1px solid var(--line); background:rgba(13,16,27,.88); backdrop-filter:blur(20px); box-shadow:var(--shadow);
}
.ambient-dock button { border:0; background:none; color:var(--muted); padding:8px 10px; border-radius:10px; cursor:pointer; font-size:12px; }
.ambient-dock button.active { color:white; background:rgba(141,124,255,.19); }

.appearance-card { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.appearance-card h3 { margin:5px 0 7px; }
.appearance-card p { margin:0; }
.theme-choice { display:flex; gap:8px; padding:5px; border:1px solid var(--line); border-radius:16px; background:rgba(127,110,190,.08); }
.theme-choice .btn { min-width:94px; }
.theme-choice .btn.active { color:#fff; border-color:transparent; background:linear-gradient(135deg,var(--violet),var(--violet-2)); }
.advanced-settings { margin-top:18px; }
.advanced-settings h3 { margin:5px 0 7px; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:8px 0; }
html.compact-mode .app-content { padding-top:22px; }
html.compact-mode .card { padding:18px; border-radius:19px; }
html.compact-mode .stat-grid,
html.compact-mode .dashboard-layout,
html.compact-mode .stack { gap:12px; }

html[data-theme="light"] .topbar,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .app-top { background:rgba(248,247,252,.84); }
html[data-theme="light"] .top-links a:hover,
html[data-theme="light"] .side-link:hover,
html[data-theme="light"] .side-link.active,
html[data-theme="light"] .pill.active,
html[data-theme="light"] .ambient-dock button.active { color:var(--text); }
html[data-theme="light"] .gradient-text { background:linear-gradient(100deg,#272235 5%,#705de8 48%,#16896b); -webkit-background-clip:text; background-clip:text; }
html[data-theme="light"] .hero-visual { background:linear-gradient(145deg,rgba(112,93,232,.13),rgba(255,255,255,.78)); }
html[data-theme="light"] .moon::after { background:#ece9f7; }
html[data-theme="light"] .btn { background:rgba(67,53,112,.055); }
html[data-theme="light"] .btn-primary { color:#fff; background:linear-gradient(135deg,var(--violet),var(--violet-2)); }
html[data-theme="light"] .field label { color:#4e4960; }
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .field select { background:#fff; }
html[data-theme="light"] .ambient-dock { background:rgba(255,255,255,.9); }
html[data-theme="light"] .modal { background:#fff; }
html[data-theme="light"] .article-body p { color:#514c62; }
html[data-theme="light"] .empty { border-color:rgba(45,39,74,.18); }
html[data-theme="light"] .toast { background:#fff; }
html[data-theme="light"] .preview-room,
html[data-theme="light"] .focus-floor-room,
html[data-theme="light"] .mini-stats div { background:rgba(64,48,112,.035); }
html[data-theme="light"] .preview-intention { background:rgba(112,93,232,.055); }

.modal-backdrop { position:fixed; inset:0; z-index:200; background:rgba(2,3,7,.76); backdrop-filter:blur(8px); display:grid; place-items:center; padding:22px; }
.modal { width:min(620px,100%); max-height:88vh; overflow:auto; background:#151a29; border:1px solid var(--line); border-radius:26px; padding:26px; box-shadow:var(--shadow); }
.modal-lg { width:min(820px,100%); }
.modal-head { display:flex; align-items:start; justify-content:space-between; gap:18px; margin-bottom:22px; }
.modal-head h2 { margin:0; }
.article-body { font-size:17px; }
.article-body h3 { margin-top:28px; }
.article-body p { color:#c4cad9; }
.toast { position:fixed; right:22px; bottom:22px; z-index:300; max-width:390px; padding:13px 17px; border-radius:13px; background:#20283a; border:1px solid var(--line); box-shadow:var(--shadow); opacity:0; transform:translateY(15px); pointer-events:none; transition:.25s; }
.toast.show { opacity:1; transform:none; }
.toast.error { background:#40212a; border-color:rgba(255,110,120,.35); }
.skeleton { min-height:120px; border-radius:20px; background:linear-gradient(100deg,rgba(255,255,255,.03),rgba(255,255,255,.08),rgba(255,255,255,.03)); background-size:220% 100%; animation:shine 1.5s infinite; }
@keyframes shine { to { background-position:-220% 0; } }

@media (max-width: 980px) {
  .hero { grid-template-columns:1fr; padding-top:48px; }
  .hero-visual { min-height:420px; }
  .bento, .grid-3, .pricing-grid, .pricing-grid.pricing-four { grid-template-columns:1fr 1fr; }
  .price-card.popular { transform:none; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .dashboard-grid { grid-template-columns:1fr; }
  .member-grid { grid-template-columns:1fr 1fr; }
  .start-session-card { grid-template-columns:1fr; gap:20px; }
  .room-info-grid { grid-template-columns:1fr; }
  .profile-editor { grid-template-columns:270px 1fr; }
  .messages-layout { grid-template-columns:285px minmax(0,1fr); }
  .admin-stat-grid { grid-template-columns:repeat(3,1fr); }
  .admin-two-column { grid-template-columns:1fr; }
  .admin-member-row { grid-template-columns:minmax(220px,1.5fr) .55fr .35fr; }
  .admin-member-row > div:last-child { grid-column:1/-1; }
}

@media (max-width: 760px) {
  .top-links a { display:none; }
  .top-links { gap:8px; }
  .topbar { padding:0 18px; }
  .hero { width:min(100% - 28px,1200px); min-height:auto; gap:30px; }
  .hero h1 { font-size:49px; }
  .hero-visual { min-height:360px; }
  .section { width:min(100% - 28px,1200px); padding:68px 0; }
  .section-head { display:block; }
  .bento, .grid-3, .pricing-grid, .pricing-grid.pricing-four, .room-grid { grid-template-columns:1fr; }
  .footer { display:block; }
  .app-layout { display:block; }
  .sidebar { transform:translateX(-100%); transition:.25s; width:270px; }
  .sidebar.open { transform:none; }
  .main { grid-column:auto; }
  .mobile-menu { display:inline-flex; }
  .app-top { padding:0 16px; }
  .app-content { width:min(100% - 28px,1120px); padding-top:24px; }
  .page-head { align-items:start; }
  .page-head h1 { font-size:34px; }
  .stat-grid { grid-template-columns:1fr 1fr; }
  .member-grid { grid-template-columns:1fr; }
  .ambient-dock { left:50%; width:calc(100% - 28px); justify-content:center; }
  .theme-label { display:none; }
  .theme-toggle { min-width:40px; }
  .appearance-card { display:block; }
  .theme-choice { margin-top:18px; }
  .settings-grid { grid-template-columns:1fr; }
  .room-card { grid-template-columns:auto 1fr; }
  .room-card .btn { grid-column:1/-1; }
  .workspace-head { align-items:start; }
  .workspace-head h1 { font-size:34px; }
  .quick-session { grid-template-columns:1fr 110px; }
  .quick-session .btn { grid-column:1/-1; }
  .dashboard-layout { grid-template-columns:1fr; }
  .lobby-grid { grid-template-columns:1fr; }
  .lobby-footer { align-items:stretch; flex-direction:column; }
  .lobby-footer > div { display:grid; grid-template-columns:1fr 1fr; }
  .meeting-status { display:none; }
  .profile-editor { grid-template-columns:1fr; }
  .profile-photo-card { justify-items:start; text-align:left; }
  .profile-photo-card .btn { width:auto; }
  .profile-main { align-items:start; flex-direction:column; padding:0 20px 20px; }
  .profile-identity { align-items:end; }
  .profile-actions { width:100%; justify-content:flex-start; }
  .profile-stats { margin:0 20px; }
  .profile-about { padding:24px 20px 28px; }
  .messages-layout { grid-template-columns:1fr; }
  .conversation-list { border-right:0; border-bottom:1px solid var(--line); }
  .conversation-scroll { max-height:230px; }
  .message-panel { min-height:620px; }
  .message-empty { min-height:420px; }
  .admin-hero { grid-template-columns:1fr; }
  .owner-access-card { min-width:0; }
  .admin-section-head { align-items:stretch; flex-direction:column; }
  .admin-search input { width:100%; }
  .admin-member-row { grid-template-columns:1fr 1fr; }
  .admin-member-identity { grid-column:1/-1; }
  .admin-member-row > div:last-child { grid-column:1/-1; }
  .admin-report-people { grid-template-columns:1fr; }
  .admin-room-row { grid-template-columns:auto minmax(0,1fr) auto; }
  .admin-room-row .btn { grid-column:1/-1; }
}

@media (max-width: 460px) {
  .hero h1 { font-size:42px; }
  .hero-actions .btn { width:100%; }
  .stat-grid { grid-template-columns:1fr; }
  .timer-display { font-size:54px; }
  .page-head { display:block; }
  .page-head .btn { margin-top:14px; }
  .date-chip { display:none; }
  .start-session-card { padding:20px; }
  .quick-session { grid-template-columns:1fr; }
  .quick-session .btn { grid-column:auto; }
  .device-selects { grid-template-columns:1fr; }
  .meeting-head > a { display:none; }
  .profile-cover { height:145px; }
  .profile-identity { align-items:start; flex-direction:column; }
  .profile-identity .profile-avatar { margin-top:-52px; }
  .profile-identity h1 { font-size:32px; }
  .profile-stats { grid-template-columns:1fr; }
  .profile-stats div + div { border-left:0; border-top:1px solid var(--line); }
  .profile-note { align-items:start; flex-direction:column; }
  .dm-composer { grid-template-columns:1fr auto auto; }
  .dm-composer textarea { grid-column:1/-1; }
  .message-row { max-width:92%; }
  .message-head { padding:13px; }
  .message-person .avatar { width:38px; height:38px; }
  .dm-call-event { width:100%; grid-template-columns:auto minmax(0,1fr); }
  .dm-call-event-actions { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; }
  .admin-hero h1 { font-size:34px; }
  .admin-stat-grid { grid-template-columns:1fr 1fr; }
  .admin-search { display:grid; grid-template-columns:1fr auto; }
  .admin-member-row { grid-template-columns:1fr; }
  .admin-member-identity, .admin-member-row > div:last-child { grid-column:auto; }
  .admin-plan-control { grid-template-columns:1fr; }
  .admin-room-row { grid-template-columns:auto minmax(0,1fr); }
  .admin-room-row .room-state { justify-self:start; }
}

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

/* Mellow Commons community experience */
.avatar-wrap { position:relative; display:inline-grid; place-items:center; flex:0 0 auto; }
.avatar-sticker { position:absolute; right:-7px; bottom:-5px; z-index:3; width:20px; height:20px; display:grid; place-items:center; border-radius:50%; background:var(--panel-solid); border:1px solid var(--line); font-size:11px; }
.frame-soft-glow { box-shadow:0 0 0 2px #d8cfff,0 0 22px rgba(171,150,255,.75) !important; }
.frame-notebook { border:3px dashed #ffbd7a !important; box-shadow:0 0 0 3px rgba(255,189,122,.13) !important; }
.frame-mint-ring { border:3px solid #69dfb1 !important; box-shadow:0 0 0 3px rgba(105,223,177,.17) !important; }
.frame-moonlit { border:3px solid #9ba7ff !important; box-shadow:0 0 0 3px #25284f,0 0 24px rgba(120,137,255,.65) !important; }
.frame-garden { border:3px solid #80d49f !important; box-shadow:0 0 0 4px rgba(90,169,115,.23),0 0 22px rgba(108,221,148,.35) !important; }
.frame-aurora { border:3px solid transparent !important; background:linear-gradient(var(--panel-solid),var(--panel-solid)) padding-box,linear-gradient(135deg,#75e3bc,#8d7cff,#ff8eb8) border-box !important; box-shadow:0 0 26px rgba(141,124,255,.5) !important; }

.auth-stage { min-height:100vh; display:grid; grid-template-columns:minmax(300px,1fr) minmax(420px,560px); align-items:center; gap:clamp(32px,7vw,110px); padding:clamp(28px,6vw,90px); position:relative; overflow:hidden; }
.auth-stage::before { content:""; position:absolute; inset:5%; border-radius:52px; background:linear-gradient(145deg,rgba(141,124,255,.12),rgba(101,223,177,.06)); border:1px solid var(--line); z-index:-1; }
.auth-stage-close { position:absolute; top:28px; right:30px; z-index:2; width:42px; height:42px; border-radius:50%; border:1px solid var(--line); background:var(--panel); cursor:pointer; font-size:25px; }
.auth-promise { max-width:620px; padding-left:5vw; }
.auth-promise .brand { margin-bottom:80px; font-size:22px; }
.auth-promise h1 { font-size:clamp(44px,6vw,78px); margin:12px 0 22px; }
.auth-promise > p { font-size:18px; max-width:570px; }
.auth-mini-room { margin-top:40px; max-width:450px; padding:18px; border-radius:22px; border:1px solid var(--line); background:rgba(255,255,255,.045); }
.auth-mini-room strong,.auth-mini-room small { display:block; }
.auth-mini-room small { color:var(--muted); }
.auth-avatar-row { display:flex; margin-bottom:14px; }
.auth-avatar-row i { width:36px; height:36px; margin-right:-8px; border:3px solid var(--bg-soft); border-radius:50%; background:linear-gradient(135deg,#8d7cff,#65dfb1); }
.auth-avatar-row i:nth-child(2){background:linear-gradient(135deg,#ffc86b,#ff7aa8)} .auth-avatar-row i:nth-child(3){background:linear-gradient(135deg,#65dfb1,#4a8cff)} .auth-avatar-row i:nth-child(4){background:linear-gradient(135deg,#d7a5ff,#7c6cff)}
.auth-modal { width:100%; max-height:calc(100vh - 64px); overflow:auto; padding:34px; }
.auth-modal .auth-head h2 { margin:5px 0 0; font-size:30px; }
.google-auth { width:100%; background:var(--panel-solid); padding:13px; }
.google-auth span { font-size:20px; font-weight:900; background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0); color:transparent; background-clip:text; }
.auth-divider { display:flex; align-items:center; gap:12px; color:var(--muted); margin:20px 0; font-size:12px; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.password-field { position:relative; }
.password-field input { padding-right:70px; }
.password-field > button { position:absolute; right:10px; bottom:10px; border:0; color:var(--violet); background:none; cursor:pointer; font-weight:800; }
.text-action,.auth-switch button { padding:0; border:0; color:var(--violet); background:none; cursor:pointer; font-weight:800; }
.text-action { justify-self:start; margin-top:-6px; }
.auth-submit { width:100%; margin-top:4px; }
.auth-switch { text-align:center; margin:14px 0 0; font-size:13px; }

.sidebar .brand { min-height:76px; padding:0 22px; }
.sidebar .brand > span:last-child { line-height:.9; }
.sidebar .brand small { color:var(--muted); font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
.sidebar-streak { margin:auto 14px 18px; padding:14px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.035); display:grid; grid-template-columns:auto 1fr; gap:2px 9px; }
.sidebar-streak span { grid-row:1/3; font-size:22px; }
.sidebar-streak strong { font-size:13px; }
.sidebar-streak small { color:var(--muted); font-size:10px; }
.top-title { display:flex; align-items:center; gap:16px; min-width:0; }
.daily-time { color:var(--muted); font-size:12px; padding-left:16px; border-left:1px solid var(--line); white-space:nowrap; }
.unlock-button { padding:9px 16px; border:2px solid transparent; border-radius:999px; background:linear-gradient(var(--panel-solid),var(--panel-solid)) padding-box,linear-gradient(100deg,#65dfb1,#8d7cff,#ff7aa8) border-box; cursor:pointer; font-weight:850; }
.top-icon { border-radius:50%; font-size:19px; }
.chat-launch { position:relative; width:44px; height:44px; display:grid; place-items:center; padding:0; border:2px solid transparent; border-radius:15px; color:var(--text); background:linear-gradient(var(--panel-solid),var(--panel-solid)) padding-box,linear-gradient(135deg,#65dfb1,#8d7cff 58%,#ff8eb8) border-box; box-shadow:0 8px 24px rgba(112,93,232,.16); cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,filter .18s ease; }
.chat-launch::before { content:""; position:absolute; inset:5px; border-radius:10px; background:linear-gradient(135deg,rgba(101,223,177,.1),rgba(141,124,255,.16)); }
.chat-launch svg { position:relative; z-index:1; width:23px; height:23px; overflow:visible; }
.chat-launch svg path { fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.chat-launch svg circle { fill:currentColor; }
.chat-launch-spark { position:absolute; z-index:2; top:-5px; right:-5px; width:18px; height:18px; display:grid; place-items:center; border:2px solid var(--panel-solid); border-radius:50%; color:#fff; background:linear-gradient(135deg,#8d7cff,#ff7aa8); box-shadow:0 4px 12px rgba(141,124,255,.42); font-size:9px; line-height:1; }
.chat-launch:hover { transform:translateY(-2px) rotate(-1deg); filter:brightness(1.08); box-shadow:0 12px 30px rgba(112,93,232,.25); }
.chat-launch.active { color:#fff; background:linear-gradient(135deg,#6e5be7,#8d7cff) padding-box,linear-gradient(135deg,#65dfb1,#c1b9ff,#ff8eb8) border-box; box-shadow:0 10px 30px rgba(112,93,232,.34); }
.chat-launch:focus-visible { outline:3px solid rgba(101,223,177,.42); outline-offset:3px; }
.top-avatar { width:42px; height:42px; padding:0; border:0; background:none; cursor:pointer; }
.top-avatar .avatar { width:42px; height:42px; border-radius:50%; }
.top-popover-wrap { position:relative; }
.popover { position:absolute; right:0; top:calc(100% + 12px); width:300px; z-index:40; padding:10px; border:1px solid var(--line); border-radius:20px; background:var(--panel-solid); box-shadow:var(--shadow); }
.account-summary { display:flex; align-items:center; gap:11px; padding:10px 10px 16px; margin-bottom:6px; border-bottom:1px solid var(--line); }
.account-summary strong,.account-summary small { display:block; }
.account-summary small { color:var(--muted); }
.popover > button,.quick-chat > button { width:100%; display:flex; align-items:center; gap:11px; padding:11px; border:0; border-radius:12px; background:none; text-align:left; cursor:pointer; }
.popover > button:hover,.quick-chat > button:hover { background:rgba(141,124,255,.1); }
.popover > button.danger { color:var(--danger); border-top:1px solid var(--line); border-radius:0 0 12px 12px; margin-top:5px; }
.quick-chat { width:340px; }
.popover-title { display:flex; align-items:center; justify-content:space-between; padding:7px 9px 12px; border-bottom:1px solid var(--line); }
.popover-title button { border:0; background:none; color:var(--violet); cursor:pointer; }
.quick-chat .avatar { width:34px; height:34px; border-radius:50%; }
.quick-chat button span strong,.quick-chat button span small { display:block; }
.quick-chat button span small { color:var(--muted); }
.channel-shortcut > span { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:rgba(101,223,177,.1); color:var(--mint); }

.community-layout { min-height:720px; display:grid; grid-template-columns:310px minmax(0,1fr); border:1px solid var(--line); border-radius:26px; overflow:hidden; background:var(--panel); }
.community-rail { padding:18px 12px; border-right:1px solid var(--line); background:rgba(255,255,255,.025); overflow:auto; }
.community-heading { display:flex; align-items:center; justify-content:space-between; padding:8px 10px; }
.community-heading h3 { margin:3px 0; font-size:16px; }
.community-heading button { border:0; background:none; cursor:pointer; color:var(--violet); }
.channel-row { width:100%; display:grid; grid-template-columns:34px 1fr; align-items:center; gap:8px; padding:10px; border:0; border-radius:13px; color:var(--text); background:none; text-align:left; cursor:pointer; }
.channel-row > span { width:34px; height:34px; display:grid; place-items:center; border-radius:10px; background:rgba(141,124,255,.1); }
.channel-row strong,.channel-row small { display:block; }
.channel-row small { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.channel-row.active { background:rgba(141,124,255,.14); }
.rail-divider { height:1px; background:var(--line); margin:16px 8px; }
.channel-panel { min-width:0; display:grid; grid-template-rows:auto 1fr auto; }
.channel-panel > header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid var(--line); }
.channel-panel h1 { margin:5px 0 3px; font-size:26px; }
.channel-panel header p { margin:0; }
.channel-scroll { padding:20px 24px; overflow:auto; max-height:590px; }
.channel-message { display:grid; grid-template-columns:auto 1fr; gap:12px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.channel-message .avatar { border-radius:50%; }
.message-meta { display:flex; align-items:baseline; gap:9px; }
.message-meta button { border:0; background:none; padding:0; color:var(--text); font-weight:850; cursor:pointer; }
.message-meta time { color:var(--muted); font-size:10px; }
.channel-message p { color:var(--text); margin:5px 0 0; white-space:pre-wrap; }
.channel-composer { display:grid; grid-template-columns:1fr auto; gap:10px; padding:15px 20px; border-top:1px solid var(--line); }
.channel-composer textarea { resize:none; min-height:52px; padding:13px; border:1px solid var(--line); border-radius:15px; color:var(--text); background:var(--bg-soft); }
.channel-readonly { padding:18px; border-top:1px solid var(--line); color:var(--muted); text-align:center; }

.buddy-search { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.buddy-search input,.feedback-toolbar input { flex:1; min-width:0; padding:12px 14px; border:1px solid var(--line); border-radius:13px; color:var(--text); background:var(--panel); }
.buddy-search span { color:var(--muted); white-space:nowrap; }
.buddy-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.buddy-post { display:flex; flex-direction:column; min-height:330px; }
.buddy-author { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; }
.buddy-author button { border:0; padding:0; background:none; cursor:pointer; }
.buddy-author strong,.buddy-author small { display:block; }
.buddy-author small,.buddy-author time { color:var(--muted); font-size:11px; }
.buddy-post h3 { margin:22px 0 9px; }
.buddy-post > p { color:var(--text); white-space:pre-wrap; }
.buddy-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:auto; padding:14px 0; }
.buddy-tags span { padding:6px 9px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:11px; }

.feedback-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:24px; align-items:start; }
.feedback-intro { padding:28px; border:1px solid rgba(141,124,255,.32); border-radius:22px; background:rgba(141,124,255,.08); }
.feedback-intro h1 { font-size:34px; margin-bottom:10px; }
.feedback-intro p { margin:0; }
.feedback-toolbar { display:flex; gap:10px; align-items:center; margin:18px 0; }
.feedback-toolbar .pills { display:flex; }
.feedback-list { border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--panel); }
.feedback-post { display:grid; grid-template-columns:54px 1fr; gap:14px; padding:22px; border-bottom:1px solid var(--line); }
.feedback-post:last-child { border-bottom:0; }
.feedback-vote { display:grid; justify-items:center; align-content:start; }
.feedback-vote button { width:38px; height:34px; border:1px solid var(--line); border-radius:10px; background:none; cursor:pointer; }
.feedback-vote button.active { color:var(--mint); background:rgba(101,223,177,.12); }
.feedback-title { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.feedback-title h3 { margin:0; }
.feedback-category { flex:0 0 auto; padding:4px 8px; border-radius:999px; background:rgba(255,200,107,.12); color:var(--amber); font-size:10px; }
.feedback-category.bug { background:rgba(255,110,120,.1); color:var(--danger); }
.feedback-post p { color:var(--text); margin:8px 0; }
.feedback-post small { color:var(--muted); }
.feedback-aside { position:sticky; top:96px; display:grid; gap:5px; }
.feedback-aside > button { padding:10px; border:0; border-radius:11px; background:none; text-align:left; cursor:pointer; }
.feedback-aside > button.active { background:rgba(141,124,255,.12); }
.helpful-row { display:grid; grid-template-columns:24px 1fr auto; gap:7px; padding:10px 4px; border-bottom:1px solid var(--line); font-size:12px; }
.helpful-row span { color:var(--violet); font-weight:850; }
.helpful-row small { color:var(--muted); }

.profile-page-grid { display:grid; grid-template-columns:minmax(320px,.8fr) minmax(0,1.45fr); gap:20px; align-items:start; }
.profile-details { min-width:0; }
.profile-tabs { display:grid; grid-template-columns:repeat(3,1fr); margin-bottom:14px; border:1px solid var(--line); border-radius:15px; overflow:hidden; }
.profile-tabs button { padding:13px; border:0; border-right:1px solid var(--line); color:var(--muted); background:var(--panel); cursor:pointer; }
.profile-tabs button:last-child { border-right:0; }
.profile-tabs button.active { color:var(--text); background:rgba(141,124,255,.17); }
.profile-tab-content { min-height:360px; }
.profile-summary-grid,.stat-hero { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.profile-summary-grid article,.stat-hero > div { padding:18px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.03); }
.profile-summary-grid span,.profile-summary-grid strong,.stat-hero span,.stat-hero strong { display:block; }
.profile-summary-grid span,.stat-hero span { color:var(--muted); font-size:11px; }
.profile-summary-grid strong,.stat-hero strong { margin-top:7px; font-size:19px; }
.profile-tab-content .profile-about { padding:28px 0 0; }
.achievement-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.achievement { display:grid; justify-items:center; text-align:center; padding:18px 10px; border:1px solid var(--line); border-radius:18px; color:var(--text); background:none; font:inherit; opacity:.42; }
.achievement span { width:55px; height:55px; display:grid; place-items:center; border-radius:18px; background:var(--bg-soft); font-size:24px; }
.achievement strong { margin-top:9px; }
.achievement small { color:var(--muted); }
.achievement.earned { opacity:1; border-color:rgba(101,223,177,.32); background:rgba(101,223,177,.06); cursor:pointer; transition:transform .18s ease,border-color .18s ease; }
.achievement.earned:hover { transform:translateY(-3px); border-color:rgba(101,223,177,.7); }
.achievement-celebration { position:relative; overflow:hidden; display:grid; justify-items:center; padding:10px 12px 2px; text-align:center; }
.achievement-celebration h2 { margin:7px 0 6px; font-size:32px; }
.achievement-celebration p { max-width:420px; margin:0 0 22px; }
.celebration-badge { width:112px; height:112px; display:grid; place-items:center; margin:2px 0 18px; border:1px solid rgba(255,224,128,.6); border-radius:34px; color:#4b3000; background:linear-gradient(145deg,#fff3ad,#ffc04b); box-shadow:0 20px 60px rgba(255,192,75,.28); font-size:49px; transform:rotate(-4deg); }
.celebration-confetti { position:absolute; left:50%; top:72px; width:1px; height:1px; pointer-events:none; }
.celebration-confetti i { --hue:calc(var(--i) * 31); position:absolute; width:7px; height:12px; border-radius:3px; background:hsl(var(--hue) 80% 65%); transform:rotate(calc(var(--i) * 20deg)) translateY(-12px) scale(0); animation:achievementBurst .85s cubic-bezier(.17,.75,.28,1) calc(var(--i) * 16ms) both; }
@keyframes achievementBurst { to { transform:rotate(calc(var(--i) * 20deg)) translateY(-142px) rotate(140deg) scale(1); opacity:0; } }
.week-chart { height:230px; display:flex; align-items:end; gap:12px; padding:28px 8px 0; border-bottom:1px solid var(--line); }
.week-chart > div { flex:1; height:100%; display:flex; flex-direction:column; justify-content:end; align-items:center; gap:8px; }
.week-chart span { width:min(36px,75%); min-height:5px; border-radius:12px 12px 3px 3px; background:linear-gradient(180deg,var(--violet),var(--mint)); }
.week-chart small { color:var(--muted); font-size:9px; }
.cosmetic-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.cosmetic-option,.sticker-option { position:relative; display:grid; justify-items:center; gap:5px; padding:10px; border:1px solid var(--line); border-radius:14px; cursor:pointer; }
.cosmetic-option:has(input:checked),.sticker-option:has(input:checked) { border-color:var(--violet); background:rgba(141,124,255,.1); }
.cosmetic-option input,.sticker-option input { position:absolute; opacity:0; }
.frame-swatch { width:34px; height:34px; border-radius:11px; background:var(--bg-soft); }
.sticker-grid { display:flex; flex-wrap:wrap; gap:8px; }
.sticker-option span { min-width:34px; text-align:center; }

.meeting-page { grid-template-rows:64px 48px 46px 1fr !important; }
.meeting-tools { display:flex; align-items:center; justify-content:center; gap:7px; padding:6px 12px; border-bottom:1px solid rgba(255,255,255,.1); background:#101420; }
.meeting-tools button { padding:6px 12px; border:1px solid rgba(255,255,255,.1); border-radius:9px; color:#e9ecff; background:rgba(255,255,255,.055); cursor:pointer; }
.meeting-focusbar { display:flex; align-items:center; gap:12px; padding:0 18px; border-bottom:1px solid rgba(255,255,255,.08); color:#e9ecff; background:#0d1019; }
.meeting-focusbar > span:first-child { color:#9ca5bd; font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.meeting-focusbar strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.meeting-timer { margin-left:auto; font-variant-numeric:tabular-nums; color:#65dfb1; }
.meeting-allowance { color:#9ca5bd; font-size:11px; white-space:nowrap; }
.meeting-sticker { position:absolute; z-index:3; right:24px; bottom:24px; width:54px; height:54px; display:grid; place-items:center; border-radius:18px; background:rgba(10,13,22,.84); border:1px solid rgba(255,255,255,.12); font-size:27px; pointer-events:none; }
.meeting-sticker:empty { display:none; }
.meeting-page[data-frame="soft-glow"] .rtc-stage { box-shadow:inset 0 0 0 5px #b7a8ff,inset 0 0 45px rgba(141,124,255,.55); }
.meeting-page[data-frame="notebook"] .rtc-stage { box-shadow:inset 0 0 0 6px #f1bd81,inset 0 0 0 11px #283044; }
.meeting-page[data-frame="mint-ring"] .rtc-stage { box-shadow:inset 0 0 0 6px #65dfb1; }
.meeting-page[data-frame="moonlit"] .rtc-stage { box-shadow:inset 0 0 0 6px #8795ff,inset 0 0 60px rgba(92,104,225,.55); }
.meeting-page[data-frame="garden"] .rtc-stage { box-shadow:inset 0 0 0 6px #6bd795,inset 0 0 55px rgba(66,179,111,.35); }
.meeting-page[data-frame="aurora"] .rtc-stage { box-shadow:inset 0 0 0 6px #8d7cff,inset 0 0 70px rgba(101,223,177,.32),inset 0 0 120px rgba(255,122,168,.2); }

@media (max-width:1000px) {
  .auth-stage { grid-template-columns:1fr; padding:24px; }
  .auth-promise { display:none; }
  .auth-modal { width:min(540px,100%); justify-self:center; }
  .community-layout { grid-template-columns:240px minmax(0,1fr); }
  .feedback-layout,.profile-page-grid { grid-template-columns:1fr; }
  .feedback-aside { position:static; }
  .daily-time { display:none; }
}

@media (max-width:760px) {
  .unlock-button { padding:7px 10px; font-size:11px; }
  .app-top-actions .theme-toggle { display:none; }
  .popover { position:fixed; top:70px; left:14px; right:14px; width:auto; }
  .community-layout { grid-template-columns:1fr; }
  .community-rail { max-height:280px; border-right:0; border-bottom:1px solid var(--line); }
  .channel-panel { min-height:600px; }
  .buddy-grid { grid-template-columns:1fr; }
  .feedback-toolbar { align-items:stretch; flex-wrap:wrap; }
  .feedback-toolbar input { order:3; flex-basis:100%; }
  .profile-summary-grid,.stat-hero,.achievement-grid { grid-template-columns:1fr 1fr; }
  .cosmetic-grid,.banner-grid { grid-template-columns:repeat(3,1fr); }
  .meeting-head { padding:0 8px; gap:7px; }
  .meeting-head .meeting-allowance,.meeting-head > a { display:none; }
  .meeting-tools { justify-content:flex-start; overflow-x:auto; }
  .social-call-top { padding:14px; }
  .social-call-private { display:none; }
  .social-call-controls { bottom:max(18px,env(safe-area-inset-bottom)); gap:5px; padding:10px; width:calc(100% - 24px); justify-content:flex-start; overflow-x:auto; scrollbar-width:none; }
  .social-call-controls::-webkit-scrollbar { display:none; }
  .social-control { width:min(68px,19vw); }
  .social-control > span { width:48px; height:48px; }
  .social-call-safety { bottom:105px; }
  .local-call-card { top:84px; right:14px; width:120px; border-radius:18px; }
  .call-help-sheet { top:70px; right:14px; }
  .audio-call-visual .social-call-avatar { width:130px; height:130px; font-size:39px; }
}

@media (max-width:500px) {
  .auth-stage { padding:12px; align-items:start; }
  .auth-modal { margin-top:44px; padding:22px 18px; max-height:calc(100vh - 60px); }
  .auth-stage-close { top:10px; right:12px; }
  .feedback-post { grid-template-columns:42px 1fr; padding:15px; }
  .feedback-title { display:block; }
  .feedback-category { display:inline-block; margin-top:6px; }
  .profile-summary-grid,.stat-hero,.achievement-grid { grid-template-columns:1fr; }
  .cosmetic-grid,.banner-grid { grid-template-columns:repeat(2,1fr); }
  .social-incoming-card { padding:32px 20px 26px; border-radius:30px; }
  .incoming-call-avatar .profile-avatar { width:112px; height:112px; }
  .social-incoming-card h2 { font-size:29px; }
  .social-call-identity { max-width:calc(100vw - 28px); }
  .social-control small { font-size:8px; }
  .social-control > span { width:46px; height:46px; }
}

@media (prefers-reduced-motion:reduce) {
  .social-incoming-glow,.incoming-call-avatar .profile-avatar,.audio-pulse,.celebration-confetti i { animation:none; }
}

/* 2026 native study-stream experience */
:where(button,a,input,textarea,select):focus-visible { outline:3px solid rgba(101,223,177,.72); outline-offset:3px; }
.nav-toggle { display:inline-flex; flex:0 0 auto; }
.top-title { display:flex; align-items:center; gap:12px; min-width:0; }
.sidebar-brand { min-height:78px; width:100%; }
.sidebar-brand .brand-logo { width:50px; height:50px; }
.brand-name { line-height:.92; }
.sidebar-close,.nav-scrim { display:none; }
.app-layout,.sidebar,.main { transition:grid-template-columns .24s ease,width .24s ease; }
.app-layout.nav-collapsed { grid-template-columns:84px minmax(0,1fr); }
.sidebar.collapsed { width:84px; padding-inline:12px; }
.sidebar.collapsed .sidebar-brand { justify-content:center; padding-inline:0; }
.sidebar.collapsed .sidebar-brand .brand-logo { width:48px; height:48px; }
.sidebar.collapsed .brand-name,.sidebar.collapsed .nav-label,.sidebar.collapsed .sidebar-streak strong,.sidebar.collapsed .sidebar-streak small { display:none; }
.sidebar.collapsed .side-nav { padding:0; }
.sidebar.collapsed .side-link { justify-content:center; padding:12px; }
.sidebar.collapsed .nav-icon { width:auto; font-size:19px; }
.sidebar.collapsed .sidebar-streak { width:54px; min-height:54px; margin-inline:auto; padding:0; display:grid; place-items:center; }
.sidebar.collapsed .sidebar-streak span { grid-row:auto; }
.timer-presets { justify-content:center; margin-top:18px; }
.custom-timer-hero { display:flex; align-items:center; gap:15px; padding:17px; margin-bottom:18px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(135deg,rgba(141,124,255,.12),rgba(101,223,177,.07)); }
.custom-timer-hero > span { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; color:var(--mint); background:rgba(101,223,177,.1); font-size:25px; }
.custom-timer-hero h3,.custom-timer-hero p { margin:0; }
.custom-timer-hero p { margin-top:3px; }
.local-call-card[data-draggable-preview] { cursor:grab; touch-action:none; user-select:none; }
.local-call-card[data-draggable-preview]:active { cursor:grabbing; }
.audio-only:not(.video-upgraded) .local-call-card,.audio-only:not(.video-upgraded) .upgrade-only { display:none; }
.audio-only.video-upgraded .remote-call-placeholder { opacity:0; visibility:hidden; }
.audio-only.video-upgraded .local-call-card { display:block; }

.meeting-page.study-stream { grid-template-rows:72px minmax(0,1fr) !important; isolation:isolate; color:#f7f8ff; background:#070910; }
.study-stream .meeting-head { z-index:8; min-width:0; padding:0 22px; background:rgba(9,12,20,.9); backdrop-filter:blur(20px); }
.stream-room-identity { min-width:0; flex:1; display:flex; align-items:center; gap:14px; }
.stream-room-identity > div { min-width:0; }
.stream-room-identity h3 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stream-live { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; border:1px solid rgba(101,223,177,.25); border-radius:999px; color:#cffff0; background:rgba(39,173,132,.1); font-size:9px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; white-space:nowrap; }
.stream-live i,.rtc-tile footer i { width:6px; height:6px; display:inline-block; border-radius:50%; background:#65dfb1; box-shadow:0 0 0 4px rgba(101,223,177,.12); }
.stream-head-stats { display:flex; align-items:center; gap:14px; color:#aeb6ca; font-size:11px; }
.stream-head-stats strong { color:#fff; }
.stream-open-room { padding:5px 8px; border:1px solid rgba(101,223,177,.2); border-radius:999px; color:#bdf5e3; background:rgba(101,223,177,.08); font-size:9px; font-weight:800; white-space:nowrap; }
.stream-finish { color:#ffdce3; border-color:rgba(255,110,120,.24); }
.rtc-stage { position:relative; min-height:0; overflow:hidden; padding:18px 18px 132px; background:radial-gradient(circle at 15% 10%,rgba(115,94,235,.16),transparent 34%),radial-gradient(circle at 85% 84%,rgba(49,177,137,.12),transparent 32%),#080b12; transition:box-shadow .3s ease; }
.rtc-grid { width:100%; height:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:minmax(0,1fr); gap:12px; margin:auto; }
.rtc-grid[data-count="1"] { grid-template-columns:minmax(280px,980px); place-content:center; }
.rtc-grid[data-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.rtc-grid[data-count="3"],.rtc-grid[data-count="4"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.rtc-tile { position:relative; min-width:0; min-height:0; overflow:hidden; border:1px solid rgba(255,255,255,.11); border-radius:24px; background:linear-gradient(145deg,#1b2133,#0d111d); box-shadow:0 18px 48px rgba(0,0,0,.28); isolation:isolate; animation:tileIn .32s ease both; }
@keyframes tileIn { from { opacity:0; transform:translateY(8px) scale(.985); } }
.rtc-grid[data-count="1"] .rtc-tile { width:min(100%,980px); max-height:calc(100vh - 230px); aspect-ratio:16/9; justify-self:center; }
.rtc-tile video { width:100%; height:100%; display:block; object-fit:cover; background:#0b0e17; transition:filter .35s ease,opacity .3s ease; }
.study-stream[data-mirror="true"] .rtc-tile.local video { transform:scaleX(-1); }
.rtc-tile.effect-warm video { filter:saturate(1.08) sepia(.12) brightness(1.03); }
.rtc-tile.effect-moonlight video { filter:hue-rotate(12deg) saturate(.82) contrast(1.06) brightness(.9); }
.rtc-tile.effect-mono video { filter:grayscale(.88) contrast(1.08); }
.rtc-tile.effect-dreamy video { filter:saturate(1.18) contrast(.9) brightness(1.08); }
.rtc-tile-shade { position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(180deg,transparent 56%,rgba(4,6,12,.78)); }
.rtc-camera-off { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:8px; padding:24px; text-align:center; background:radial-gradient(circle at 50% 35%,rgba(111,91,232,.24),transparent 24rem),linear-gradient(145deg,#171c2d,#0c1019); }
.rtc-camera-off .room-avatar { width:clamp(74px,10vw,118px); height:clamp(74px,10vw,118px); border-radius:34%; border:4px solid rgba(255,255,255,.85); font-size:30px; box-shadow:0 20px 48px rgba(0,0,0,.3); }
.rtc-camera-off strong { margin-top:5px; font-size:18px; }
.rtc-camera-off > span:last-child { max-width:300px; color:#9fa8bd; font-size:12px; }
.rtc-tile:not(.camera-off) .rtc-camera-off { opacity:0; visibility:hidden; }
.rtc-tile.camera-off video { opacity:0; }
.rtc-tile footer { position:absolute; z-index:3; left:0; right:0; bottom:0; display:flex; align-items:end; justify-content:space-between; gap:12px; padding:38px 15px 14px; }
.rtc-tile footer strong,.rtc-tile footer span { display:block; }
.rtc-tile footer strong { font-size:13px; }
.rtc-tile footer strong em { margin-left:4px; color:#bfb7ff; font-size:9px; font-style:normal; text-transform:uppercase; }
.rtc-tile footer > div:first-child span { margin-top:2px; color:#bdc4d5; font-size:9px; }
.rtc-tile footer i { width:5px; height:5px; margin-right:6px; box-shadow:none; }
.rtc-tile-actions { display:flex; align-items:center; gap:7px; }
.rtc-tile-actions button,.rtc-tile-actions > span { width:30px; height:30px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.14); border-radius:10px; color:#dfffee; background:rgba(5,7,12,.55); backdrop-filter:blur(12px); }
.rtc-tile-actions button { cursor:pointer; }
.rtc-tile-actions button:hover { color:#fff0a8; transform:translateY(-2px); }
.room-connecting,.meeting-error { grid-column:1/-1; height:100%; display:grid; place-content:center; justify-items:center; gap:9px; text-align:center; padding:30px; }
.room-connecting .brand-logo { width:64px; height:64px; }
.room-connecting small { color:#9ca5bd; }
.brand-spinner { animation:logoFloat 1.5s ease-in-out infinite alternate; }
.stream-circle-note { position:absolute; z-index:7; top:30px; left:50%; transform:translateX(-50%); width:min(500px,calc(100% - 40px)); padding:10px 14px; border:1px solid rgba(101,223,177,.2); border-radius:15px; color:#eefdf8; text-align:center; background:rgba(8,13,18,.8); box-shadow:0 14px 40px rgba(0,0,0,.3); backdrop-filter:blur(18px); pointer-events:none; }
.stream-circle-note[hidden] { display:none; }
.stream-circle-note strong,.stream-circle-note span { display:block; }
.stream-circle-note strong { font-size:11px; }
.stream-circle-note span { margin-top:2px; color:#aab7b4; font-size:9px; }
.stream-focus-pill { position:absolute; z-index:11; left:50%; bottom:94px; transform:translateX(-50%); width:min(610px,calc(100% - 32px)); min-height:54px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; padding:7px 8px 7px 16px; border:1px solid rgba(255,255,255,.14); border-radius:18px; background:rgba(8,11,18,.8); box-shadow:0 18px 45px rgba(0,0,0,.3); backdrop-filter:blur(22px); }
.stream-focus-pill > span { color:#9da6ba; font-size:9px; font-weight:850; letter-spacing:.09em; text-transform:uppercase; }
.stream-focus-pill > strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stream-focus-pill > button { display:flex; align-items:center; gap:8px; padding:7px 10px; border:0; border-radius:12px; color:#ecfff9; background:rgba(101,223,177,.11); cursor:pointer; }
.stream-focus-pill b { font-variant-numeric:tabular-nums; }
.stream-focus-pill small { color:#aee9d7; font-size:9px; }
.room-control-dock { position:absolute; z-index:12; left:50%; bottom:18px; transform:translateX(-50%); display:flex; align-items:center; gap:4px; padding:7px; border:1px solid rgba(255,255,255,.13); border-radius:21px; background:rgba(9,12,20,.82); box-shadow:0 20px 55px rgba(0,0,0,.36); backdrop-filter:blur(24px); }
.room-control-dock button { width:62px; min-height:54px; display:grid; place-items:center; align-content:center; gap:1px; padding:5px; border:0; border-radius:15px; color:#e9ecf7; background:transparent; cursor:pointer; transition:.18s ease; }
.room-control-dock button:hover { background:rgba(255,255,255,.08); transform:translateY(-2px); }
.room-control-dock button > span { font-size:18px; line-height:1; }
.room-control-dock button > small { color:#aeb5c7; font-size:8px; font-weight:750; }
.room-control-dock button.leave { margin-left:3px; color:#fff; background:#d94f60; }
.room-control-dock button.leave small { color:#fff; }
.room-drawer { position:absolute; z-index:15; top:12px; right:12px; bottom:126px; width:min(360px,calc(100% - 24px)); display:grid; grid-template-rows:auto minmax(0,1fr); border:1px solid rgba(255,255,255,.13); border-radius:22px; background:rgba(13,17,28,.94); box-shadow:0 28px 70px rgba(0,0,0,.45); backdrop-filter:blur(25px); transform:translateX(calc(100% + 30px)); opacity:0; pointer-events:none; transition:.25s ease; }
.room-people-drawer { grid-template-rows:auto auto minmax(0,1fr); }
.room-drawer.open { transform:none; opacity:1; pointer-events:auto; }
.room-drawer header { display:flex; align-items:center; justify-content:space-between; padding:18px; border-bottom:1px solid rgba(255,255,255,.1); }
.room-drawer h3 { margin:4px 0 0; }
.room-drawer header button { width:36px; height:36px; border:1px solid rgba(255,255,255,.1); border-radius:11px; color:#fff; background:rgba(255,255,255,.05); cursor:pointer; }
.room-people-intro { display:grid; gap:2px; margin:10px 10px 0; padding:10px 11px; border:1px solid rgba(101,223,177,.16); border-radius:13px; background:rgba(101,223,177,.06); }
.room-people-intro strong { color:#cffff0; font-size:10px; }
.room-people-intro span { color:#9ca9b6; font-size:9px; line-height:1.4; }
#roomPeopleList { overflow:auto; padding:10px; }
.room-person { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; border-radius:14px; }
.room-person:hover { background:rgba(255,255,255,.04); }
.room-person strong,.room-person small { display:block; }
.room-person small { color:#9ca5bd; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.room-person > i { color:#9ca5bd; font-size:9px; font-style:normal; }
.room-person > i.on { color:#65dfb1; }
.room-chat-drawer { grid-template-rows:auto minmax(0,1fr) auto; }
.room-chat-list { overflow:auto; display:flex; flex-direction:column; gap:8px; padding:13px; }
.room-chat-empty { margin:auto; color:#8e97ab; text-align:center; }
.room-chat-message { max-width:88%; padding:10px 11px; border-radius:14px 14px 14px 4px; background:rgba(255,255,255,.07); }
.room-chat-message.mine { align-self:end; border-radius:14px 14px 4px 14px; background:rgba(115,94,235,.26); }
.room-chat-message strong { font-size:10px; color:#bdb5ff; }
.room-chat-message p { margin:2px 0 0; color:#fff; white-space:pre-wrap; overflow-wrap:anywhere; }
.room-chat-message time { color:#858ea2; font-size:8px; }
.room-chat-drawer form { display:grid; grid-template-columns:1fr 40px; gap:6px; padding:12px; border-top:1px solid rgba(255,255,255,.1); }
.room-chat-drawer input { min-width:0; padding:11px 12px; border:1px solid rgba(255,255,255,.12); border-radius:12px; color:#fff; background:#0c101a; outline:none; }
.room-chat-drawer form button { border:0; border-radius:12px; color:#071811; background:#65dfb1; cursor:pointer; }
.room-celebration { position:absolute; z-index:20; inset:0; display:grid; place-items:center; pointer-events:none; opacity:0; visibility:hidden; transition:.25s; }
.room-celebration.show { opacity:1; visibility:visible; }
.live-boost { display:grid; justify-items:center; max-width:390px; padding:28px; border:1px solid rgba(255,234,154,.42); border-radius:28px; color:#fff; text-align:center; background:rgba(16,17,30,.9); box-shadow:0 24px 80px rgba(0,0,0,.52),0 0 70px rgba(255,209,95,.2); backdrop-filter:blur(24px); animation:boostIn .5s cubic-bezier(.2,.9,.3,1.2); }
.live-boost > span { width:74px; height:74px; display:grid; place-items:center; margin-bottom:13px; border-radius:24px; color:#4b3000; background:linear-gradient(145deg,#fff2a7,#ffc14f); font-size:37px; box-shadow:0 15px 40px rgba(255,193,79,.3); }
.live-boost small { margin-top:4px; color:#c9cfdd; }
@keyframes boostIn { from { opacity:0; transform:scale(.7) rotate(-3deg); } }

.effect-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.effect-option { position:relative; display:grid; justify-items:center; gap:6px; padding:9px; border:1px solid var(--line); border-radius:14px; cursor:pointer; }
.effect-option input { position:absolute; opacity:0; }
.effect-option:has(input:checked) { border-color:var(--violet); background:rgba(141,124,255,.1); }
.effect-option > span { width:100%; aspect-ratio:16/10; border-radius:9px; background:linear-gradient(135deg,#6b5be5,#51cba4); }
.effect-option.effect-warm > span { filter:sepia(.45) saturate(1.2); }
.effect-option.effect-moonlight > span { filter:hue-rotate(25deg) brightness(.7); }
.effect-option.effect-mono > span { filter:grayscale(1); }
.effect-option.effect-dreamy > span { filter:saturate(1.4) brightness(1.15); }
.check-option { min-height:46px; display:flex; align-items:center; gap:9px; align-self:end; padding:10px 12px; border:1px solid var(--line); border-radius:13px; cursor:pointer; }

.message-stack { min-width:0; }
.message-reactions { min-height:0; display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.message-reaction { display:inline-flex; align-items:center; gap:3px; padding:3px 7px; border:1px solid var(--line); border-radius:999px; color:var(--text); background:var(--panel-solid); cursor:pointer; font-size:11px; }
.message-reaction.mine { border-color:rgba(141,124,255,.5); background:rgba(141,124,255,.15); }
.message-reaction span { font-size:9px; }
.message-options { position:absolute; z-index:12; top:calc(100% + 5px); right:0; min-width:185px; overflow:hidden; padding:6px; border:1px solid var(--line); border-radius:15px; background:var(--panel-solid); box-shadow:var(--shadow); }
.message-row.theirs .message-options { left:0; right:auto; }
.message-options > button { width:100%; padding:9px; border:0; border-radius:9px; color:var(--text); background:none; text-align:left; cursor:pointer; }
.message-options > button:hover { background:rgba(255,255,255,.06); }
.message-emoji-row { display:grid; grid-template-columns:repeat(5,1fr); gap:2px; padding-bottom:5px; border-bottom:1px solid var(--line); }
.message-emoji-row button { padding:7px 3px; border:0; border-radius:8px; background:none; cursor:pointer; }
.message-emoji-row button:hover { background:rgba(141,124,255,.12); }
.dm-composer-wrap { position:relative; border-top:1px solid var(--line); }
.dm-composer-wrap .dm-composer { grid-template-columns:minmax(0,1fr) auto auto auto auto; border-top:0; }
.composer-emoji-picker { position:absolute; z-index:10; left:14px; bottom:73px; display:grid; grid-template-columns:repeat(4,42px); gap:4px; padding:7px; border:1px solid var(--line); border-radius:16px; background:var(--panel-solid); box-shadow:var(--shadow); }
.composer-emoji-picker[hidden] { display:none; }
.composer-emoji-picker button { width:42px; height:42px; border:0; border-radius:10px; background:none; cursor:pointer; font-size:19px; }
.composer-emoji-picker button:hover { background:rgba(141,124,255,.12); transform:scale(1.08); }

@media (max-width:900px) {
  .rtc-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rtc-grid[data-count="1"] { grid-template-columns:minmax(250px,1fr); }
  .room-control-dock { width:calc(100% - 24px); overflow-x:auto; justify-content:flex-start; scrollbar-width:none; }
  .room-control-dock::-webkit-scrollbar { display:none; }
  .room-control-dock button { flex:0 0 58px; }
  .stream-head-stats .meeting-allowance { display:none; }
}

@media (max-width:760px) {
  .nav-scrim { position:fixed; inset:0; z-index:19; display:block; border:0; background:rgba(2,4,9,.56); backdrop-filter:blur(3px); }
  .sidebar-close { position:absolute; top:18px; right:13px; width:40px; height:40px; z-index:2; display:grid; place-items:center; border:1px solid var(--line); border-radius:12px; color:var(--text); background:var(--bg-soft); cursor:pointer; }
  .app-layout.nav-collapsed { display:block; }
  .sidebar.collapsed { width:270px; padding:25px 18px; }
  .sidebar.collapsed .sidebar-brand { justify-content:flex-start; padding:0 22px; }
  .sidebar.collapsed .brand-name,.sidebar.collapsed .nav-label,.sidebar.collapsed .sidebar-streak strong,.sidebar.collapsed .sidebar-streak small { display:block; }
  .sidebar.collapsed .side-link { justify-content:flex-start; padding:11px 13px; }
  .sidebar.collapsed .sidebar-streak { width:auto; min-height:0; margin:0 14px 18px; padding:14px; display:grid; place-items:initial; }
  .sidebar.collapsed .sidebar-streak span { grid-row:1/3; }
  .study-stream .meeting-head { padding:0 10px; }
  .stream-live,.stream-head-stats { display:none; }
  .stream-room-identity { gap:8px; }
  .stream-room-identity h3 { font-size:15px; }
  .stream-finish { padding:8px 9px; font-size:11px; }
  .rtc-stage { padding:8px 8px 132px; }
  .rtc-grid { gap:7px; }
  .rtc-tile { border-radius:18px; }
  .rtc-grid[data-count="1"] .rtc-tile { aspect-ratio:auto; max-height:none; }
  .rtc-grid[data-count="3"],.rtc-grid[data-count="5"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rtc-grid[data-count="3"] .rtc-tile:first-child,.rtc-grid[data-count="5"] .rtc-tile:first-child { grid-column:1/-1; }
  .rtc-tile footer { padding:30px 9px 9px; }
  .rtc-tile footer > div:first-child span,.rtc-tile-actions > span { display:none; }
  .rtc-camera-off .room-avatar { width:68px; height:68px; border-radius:24px; }
  .rtc-camera-off > span:last-child { display:none; }
  .stream-focus-pill { bottom:86px; min-height:48px; padding-left:11px; }
  .stream-focus-pill > span { display:none; }
  .room-control-dock { bottom:max(10px,env(safe-area-inset-bottom)); border-radius:18px; }
  .room-drawer { top:8px; right:8px; bottom:120px; width:calc(100% - 16px); }
  .effect-grid { grid-template-columns:repeat(3,1fr); }
  .meeting-sticker { right:14px; bottom:150px; }
  .dm-composer-wrap .dm-composer { grid-template-columns:1fr repeat(4,auto); }
  .dm-composer-wrap .dm-composer textarea { grid-column:1/-1; }
}

@media (max-width:480px) {
  .chat-launch { width:40px; height:40px; border-radius:14px; }
  .rtc-grid { grid-template-columns:1fr; overflow:auto; align-content:start; }
  .rtc-grid[data-count="2"],.rtc-grid[data-count="3"],.rtc-grid[data-count="4"],.rtc-grid[data-count="5"],.rtc-grid[data-count="6"] { grid-template-columns:1fr; }
  .rtc-grid .rtc-tile { min-height:210px; aspect-ratio:4/3; }
  .rtc-grid[data-count="1"] .rtc-tile { height:100%; aspect-ratio:auto; }
  .rtc-grid[data-count="3"] .rtc-tile:first-child,.rtc-grid[data-count="5"] .rtc-tile:first-child { grid-column:auto; }
  .room-control-dock button { flex-basis:54px; }
  .stream-focus-pill > strong { font-size:11px; }
  .effect-grid { grid-template-columns:repeat(2,1fr); }
  .message-options { position:fixed; left:14px !important; right:14px !important; top:auto; bottom:84px; }
}

@media (prefers-reduced-motion:reduce) {
  .boot-logo,.brand-spinner,.rtc-tile,.live-boost { animation:none; }
  .app-layout,.sidebar,.main,.room-drawer,.rtc-tile video,.chat-launch { transition:none; }
}
