/* LIA — mobile-first, one-screen layout (no page scroll: only the conversation / panels scroll inside). */
:root { color-scheme: dark; --ink:#f6f7ff; --muted:#9ba3bf; --faint:#7c86a8; --line:rgba(183,198,255,.18); --card:#161b2b; --card2:#1d2338; --purple:#8d64ff; --cyan:#56dcff; --pink:#e7789e; --bg:#090c16; --ok:#8cf0c1; }
* { box-sizing:border-box; }
html, body { height:100%; }
body { margin:0; background:radial-gradient(circle at 50% 30%,#1b2142 0,#0b1020 45%,#080a12 90%); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); overflow:hidden; -webkit-tap-highlight-color:transparent; }
button, select, input, textarea { font:inherit; color:inherit; }
button { cursor:pointer; touch-action:manipulation; }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- frame ---------- */
.phone-shell { height:100dvh; display:grid; place-items:center; padding:12px; }
.app { width:min(100%,430px); height:min(880px,calc(100dvh - 24px)); display:flex; flex-direction:column; gap:8px; overflow:hidden; padding:14px 14px 12px;
  border:1px solid rgba(255,255,255,.08); border-radius:30px; background:linear-gradient(165deg,rgba(16,20,37,.98),rgba(7,9,17,.99)); box-shadow:0 30px 80px rgba(0,0,0,.5); }
@media (max-width:480px) {
  .phone-shell { padding:0; }
  .app { width:100%; height:100dvh; border:0; border-radius:0; padding:max(10px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom)); }
}

/* ---------- top ---------- */
.topbar { display:flex; align-items:center; gap:8px; flex:none; }
.wordmark { font-size:22px; font-weight:850; letter-spacing:4px; color:#bd9aff; text-shadow:0 0 16px #9e67ff; margin-right:auto; }
.wordmark span { color:#e5e8ff; }
.offline-badge { padding:5px 8px; border:1px solid rgba(108,234,185,.3); border-radius:99px; color:var(--ok); background:rgba(65,188,128,.1); font-size:9px; font-weight:800; letter-spacing:.3px; white-space:nowrap; }
.offline-badge.warn { border-color:rgba(255,184,108,.4); color:#ffcf99; background:rgba(188,120,65,.12); }
.icon-btn { display:grid; place-items:center; width:36px; height:36px; flex:none; border:1px solid var(--line); border-radius:50%; background:var(--card); font-size:16px; color:#c3c8dd; }
.icon-btn.sm { width:28px; height:28px; font-size:13px; }
.icon-btn.lg { width:52px; height:52px; font-size:20px; }

.mode-switch { display:flex; gap:3px; padding:3px; flex:none; background:#141827; border:1px solid rgba(255,255,255,.05); border-radius:12px; }
.mode { flex:1; border:0; background:transparent; padding:8px 2px; border-radius:9px; color:var(--muted); font-size:12px; font-weight:600; }
.mode.active { background:linear-gradient(135deg,#7c5bf0,#3a69d6); color:#fff; box-shadow:0 3px 10px rgba(88,75,225,.3); }

.language-row { display:grid; grid-template-columns:1fr 38px 1fr; gap:6px; align-items:center; flex:none; }
.language-select { min-width:0; padding:4px 10px 0; background:var(--card); border:1px solid var(--line); border-radius:13px; }
.lang-caption { display:block; color:var(--faint); font-size:9px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; }
.language-select select { width:100%; height:28px; border:0; background:transparent; outline:0; font-size:14px; font-weight:650; color:#eef0ff; }
.swap { height:38px; border:1px solid var(--line); border-radius:50%; background:var(--card); font-size:16px; color:#c1a6ff; }

.status { flex:none; margin:0; padding:0 4px; color:#a9b4dc; font-size:12px; line-height:16px; min-height:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center; }
.listening .status { color:var(--cyan); }

/* ---------- views ---------- */
.view { flex:1; min-height:0; display:flex; flex-direction:column; gap:8px; }

/* live card */
.live-card { flex:none; padding:10px 12px; border:1px solid rgba(156,177,255,.24); border-radius:18px; background:linear-gradient(145deg,rgba(39,47,72,.9),rgba(20,25,41,.92)); }
.listening .live-card { border-color:rgba(93,225,255,.5); background:linear-gradient(145deg,rgba(30,54,75,.93),rgba(16,26,47,.96)); }
.live-head { display:flex; align-items:center; gap:5px; font-size:11px; color:#aeb7d5; white-space:nowrap; }
.live-head strong { color:#e9edff; font-size:11px; overflow:hidden; text-overflow:ellipsis; }
.arrow { color:var(--faint); }
.speaker-dot { width:8px; height:8px; border-radius:50%; background:var(--pink); flex:none; }
.source-live { padding:2px 5px; border-radius:8px; color:#ffc0d3; background:rgba(231,120,158,.12); font-size:8px; font-weight:800; letter-spacing:.3px; }
.live-caption { color:#81eaff; font-size:8px; font-weight:800; letter-spacing:.3px; }
.live-caption:empty { display:none; }
.strategy { padding:2px 5px; border-radius:8px; font-size:8px; letter-spacing:.3px; color:#b7f5d4; background:rgba(65,188,128,.13); }
.strategy:empty { display:none; }
.head-actions { margin-left:auto; display:flex; gap:4px; }
.original, .translation { margin:6px 0 0; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; }
.original { color:#fbfbff; font-size:16px; font-weight:650; line-height:1.3; -webkit-line-clamp:2; }
.translation { color:#8fdcff; font-size:20px; font-weight:700; line-height:1.28; -webkit-line-clamp:3; min-height:26px; }

/* conversation */
.feed { flex:1; min-height:0; display:flex; flex-direction:column; padding:8px 10px; border:1px solid rgba(147,173,255,.16); border-radius:18px; background:rgba(14,19,34,.72); }
.feed-head { display:flex; justify-content:space-between; align-items:center; gap:8px; flex:none; color:#bfc7e4; font-size:10px; font-weight:850; letter-spacing:.6px; }
.chip { max-width:65%; border:1px solid rgba(168,128,255,.33); border-radius:99px; background:rgba(95,59,158,.2); color:#d8c9ff; padding:4px 10px; font-size:11px; font-weight:600; letter-spacing:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conversation-list { flex:1; min-height:0; overflow-y:auto; margin-top:8px; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
.conversation-empty { margin:18px 8px; color:#8f99ba; font-size:12px; text-align:center; }
.turn { width:90%; margin:0 0 8px; padding:8px 10px; border:1px solid rgba(181,197,255,.14); border-radius:14px 14px 14px 4px; background:linear-gradient(145deg,rgba(52,60,91,.66),rgba(28,35,57,.82)); }
.turn.partner-turn { margin-left:auto; border-radius:14px 14px 4px 14px; background:linear-gradient(145deg,rgba(38,70,99,.62),rgba(22,39,62,.85)); }
.turn-meta { display:flex; justify-content:space-between; gap:8px; color:#9ba7cf; font-size:9px; font-weight:800; letter-spacing:.3px; }
.turn-source { margin:4px 0 6px; color:#f2f4ff; font-size:13px; font-weight:600; line-height:1.35; }
.turn-translation { padding-top:5px; border-top:1px solid rgba(183,198,255,.12); }
.turn-translation span { color:#7caada; font-size:8px; font-weight:800; letter-spacing:.3px; }
.turn-translation p { margin:2px 0 0; color:#8fe2ff; font-size:14px; font-weight:650; line-height:1.35; }

/* input */
.input-row { display:flex; gap:6px; flex:none; }
.input-row input { flex:1; min-width:0; height:40px; padding:0 12px; border:1px solid var(--line); border-radius:12px; background:#151a29; outline:0; font-size:16px; color:#fff; }
.input-row input:focus { border-color:#8773ff; }
.input-row button { border:0; border-radius:12px; background:#7558ee; padding:0 14px; font-size:13px; font-weight:750; }

/* bottom talk bar: two big mic buttons, one per person */
.talk-bar { display:grid; grid-template-columns:auto 1fr 1fr auto; gap:6px; align-items:center; flex:none; }
.talk-bar.auto { grid-template-columns:auto 1fr auto; }
.talk-bar.auto .talk-btn, .talk-bar:not(.auto) .auto-btn { display:none; }
.auto-btn { display:flex; align-items:center; gap:10px; height:60px; padding:0 12px; border:1px solid rgba(168,128,255,.55); border-radius:18px; background:linear-gradient(135deg,rgba(124,91,240,.3),rgba(58,105,214,.22)); text-align:left; }
.auto-btn b { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:50%; font-size:20px; font-weight:400; background:linear-gradient(145deg,#9f80ff,#3a8ad6); }
.auto-btn span { display:grid; min-width:0; } .auto-btn em { font-style:normal; font-size:14px; font-weight:750; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .auto-btn small { font-size:10px; color:#aab4d8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.auto-btn.recording { border-color:#ff8fb0; background:linear-gradient(135deg,rgba(185,50,100,.35),rgba(60,30,80,.4)); }
.auto-btn.recording b { background:linear-gradient(145deg,#ff7197,#b93264); animation:pulse 1s ease-in-out infinite alternate; }
.mode-toggle { width:40px; height:40px; font-size:13px; font-weight:800; color:#d8c9ff; }
.talk-btn { display:flex; align-items:center; gap:6px; height:60px; padding:0 8px; min-width:0; border:1px solid var(--line); border-radius:18px; background:var(--card); text-align:left; }
.talk-btn b { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:50%; font-size:19px; font-weight:400; }
.talk-btn.me b { background:linear-gradient(145deg,#9f80ff,#5542cc); }
.talk-btn.partner b { background:linear-gradient(145deg,#56dcff,#2f7fd6); }
.talk-btn span { display:grid; min-width:0; }
.talk-btn em { font-style:normal; font-size:13px; font-weight:750; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.talk-btn small { font-size:10px; color:var(--faint); }
.talk-btn.active { border-color:rgba(168,128,255,.6); }
.talk-btn.recording { border-color:#ff8fb0; background:linear-gradient(135deg,rgba(185,50,100,.35),rgba(60,30,80,.4)); }
.talk-btn.recording b { background:linear-gradient(145deg,#ff7197,#b93264); animation:pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { transform:scale(1.1); box-shadow:0 0 18px rgba(255,113,151,.7); } }

/* ---------- sign view ---------- */
.camera-box { position:relative; flex:0 1 auto; height:32dvh; min-height:150px; max-height:300px; border-radius:16px; overflow:hidden; background:#0c1020; border:1px solid var(--line); }
.camera-box video, .camera-box canvas { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transform:scaleX(-1); }
.camera-box:not(.on) video, .camera-box:not(.on) canvas, .camera-box:not(.on) .sign-detect { visibility:hidden; }
.camera-box.on .camera-hint { display:none; }
.camera-hint { position:absolute; inset:0; display:grid; place-items:center; margin:0; padding:20px 20px 50px; text-align:center; color:var(--muted); font-size:13px; line-height:1.45; }
.cam-toggle { position:absolute; left:50%; bottom:12px; transform:translateX(-50%); }
.camera-box.on .cam-toggle { left:auto; right:8px; top:8px; bottom:auto; transform:none; padding:5px 10px; font-size:11px; }
.sign-detect { position:absolute; left:8px; right:8px; bottom:8px; display:flex; align-items:center; gap:8px; padding:6px 10px; border-radius:12px; background:rgba(8,10,20,.72); }
.sign-detect span { flex:1; min-width:0; font-size:15px; font-weight:750; color:#d6c6ff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.meter { width:70px; height:6px; border-radius:9px; background:#1d2338; overflow:hidden; }
.meter i { display:block; height:100%; width:0; background:linear-gradient(90deg,#8d64ff,#56dcff); transition:width .08s; }
.pill { border:1px solid rgba(168,128,255,.45); border-radius:99px; background:rgba(95,59,158,.35); padding:8px 14px; font-size:13px; font-weight:650; color:#e2d6ff; }
.sentence { flex:none; min-height:44px; max-height:70px; overflow-y:auto; padding:8px 10px; border-radius:13px; background:#101525; border:1px solid var(--line); font-size:17px; font-weight:700; line-height:1.45; }
.sentence-empty { color:var(--faint); font-size:12px; font-weight:500; }
.word { display:inline-block; padding:1px 7px; margin:1px 0; border-radius:8px; background:rgba(141,100,255,.22); }
.sign-actions { display:grid; grid-template-columns:2fr 1fr 1fr 1.2fr; gap:6px; flex:none; }
.sign-actions button { height:42px; border:1px solid var(--line); border-radius:12px; background:var(--card2); font-size:13px; font-weight:700; }
.sign-actions .primary { background:#7558ee; border-color:#7558ee; }
.subtabs { display:flex; gap:3px; padding:3px; flex:none; background:#141827; border-radius:11px; }
.subtab { flex:1; border:0; background:transparent; padding:7px 2px; border-radius:8px; color:var(--muted); font-size:12px; font-weight:600; }
.subtab.active { background:var(--card2); color:#fff; }
.sign-panel { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.phrases { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.phrases button { min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:12px; background:#1b2135; font-size:13px; text-align:left; line-height:1.25; }
.phrases button:active { background:#7355df; }
#captionPanel { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
#captionPanel[hidden] { display:none !important; }
.big-caption { margin:6px 0 0; font-size:26px; font-weight:750; line-height:1.3; color:#9be8ff; }
.big-caption.outgoing { color:#e2d6ff; }
.big-caption-source { margin:0; color:#8f99ba; font-size:13px; }

/* short screens: shrink the live card and camera */
@media (max-height:700px) {
  .mode { padding:6px 2px; }
  .translation { font-size:18px; -webkit-line-clamp:2; }
  .original { font-size:15px; -webkit-line-clamp:1; }
  .talk-btn, .auto-btn { height:52px; } .talk-btn b, .auto-btn b { width:32px; height:32px; }
  .camera-box { height:26dvh; min-height:120px; }
}

/* ---------- dialogs ---------- */
dialog { color:var(--ink); width:min(calc(100% - 24px),400px); max-height:85dvh; overflow:auto; border:1px solid var(--line); border-radius:20px; background:#171b2c; box-shadow:0 20px 80px #000; padding:18px; }
dialog::backdrop { background:rgba(0,0,0,.55); }
dialog h2 { margin:0 0 6px; font-size:18px; } dialog h3 { font-size:13px; color:#cdd4ec; margin:16px 0 8px; }
dialog p { font-size:13px; color:#b9c1dd; }
.context-options { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin:14px 0; }
.context-options button { padding:11px; border:1px solid var(--line); border-radius:12px; background:#20263b; font-size:13px; }
.context-options button.selected { background:#7355df; }
.glossary-label { display:block; color:#cdd4ec; font-size:12px; font-weight:700; margin-top:8px; }
.glossary-label + textarea { width:100%; margin-top:6px; padding:10px; border:1px solid var(--line); border-radius:11px; background:#101525; color:#eff2ff; resize:vertical; font-size:14px; }
.dialog-note { font-size:11px; color:#9ca6c4; line-height:1.45; }
.dialog-close { border:0; border-radius:9px; background:#7255df; padding:9px 16px; font-size:13px; }
form > .dialog-close { float:right; margin-top:10px; }
.dialog-row { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; margin-top:14px; }
.dialog-row button, .file-button { border:1px solid var(--line); border-radius:9px; background:#20263b; padding:9px 12px; font-size:12px; color:#e6e9ff; cursor:pointer; }
.dialog-row .dialog-close { border:0; background:#7255df; }
.history-list { max-height:50dvh; overflow:auto; font-size:13px; }
.history-list article { padding:10px 0; border-bottom:1px solid var(--line); }
.history-list p { margin:3px 0; }
.history-language { color:#8f9bbb; font-size:9px !important; font-weight:800; letter-spacing:.4px; }
.history-source { color:#f1f3ff !important; font-weight:650; }
.history-target { margin-top:8px !important; }
.history-list .translated { color:#7fcfff !important; font-weight:650; }
.engine-options { display:grid; gap:8px; margin:12px 0; }
.engine-options label { display:grid; grid-template-columns:auto 1fr; column-gap:9px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#20263b; font-size:13px; }
.engine-options small { grid-column:2; color:#9ca6c4; font-size:11px; }
.engine-options input { grid-row:1/3; accent-color:#8d64ff; }
.toggle { display:flex; gap:8px; align-items:center; font-size:13px; color:#cdd4ec; margin:10px 0; }
.engine-status { list-style:none; padding:0; margin:0 0 12px; display:grid; gap:6px; font-size:12px; }
.engine-status li { display:flex; justify-content:space-between; gap:8px; }
.engine-status .ok b { color:var(--ok); } .engine-status .no b { color:var(--muted); }
.engine-status small { color:#8792b8; text-align:right; }
.sign-list { display:grid; gap:6px; max-height:180px; overflow:auto; }
.sign-item { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; background:#20263b; font-size:13px; }
.sign-item span { flex:1; } .sign-item small { color:#8792b8; }
.sign-item button { border:0; border-radius:8px; background:#3a2640; color:#ffb1c8; padding:5px 9px; font-size:11px; }
.teach-progress { min-height:18px; font-size:12px !important; color:var(--ok) !important; }
#teachDialog .input-row input { font-size:15px; }

/* ---------- drawer: conversation history (Gemini-style) ---------- */
.app { position:relative; }
.wordmark { margin-right:auto; }
#menuButton + .wordmark { margin-left:2px; }
.drawer-scrim { position:absolute; inset:0; z-index:20; background:rgba(0,0,0,.5); opacity:0; pointer-events:none; transition:opacity .2s; }
.drawer { position:absolute; top:0; bottom:0; left:0; z-index:21; width:min(84%,340px); display:flex; flex-direction:column; gap:10px; padding:max(14px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));
  background:#12162a; border-right:1px solid var(--line); box-shadow:12px 0 40px rgba(0,0,0,.45); transform:translateX(-105%); transition:transform .22s ease; }
.drawer-open .drawer { transform:none; }
.drawer-open .drawer-scrim { opacity:1; pointer-events:auto; }
.drawer-head { display:flex; align-items:center; min-height:36px; }
.wordmark.sm { font-size:18px; }
#sessionSearch { height:40px; padding:0 14px; border:1px solid var(--line); border-radius:99px; background:#1b2135; color:#fff; font-size:15px; outline:0; }
.drawer-new { height:42px; border:0; border-radius:99px; background:linear-gradient(135deg,#7c5bf0,#3a69d6); font-size:14px; font-weight:700; text-align:left; padding:0 16px; }
.session-list { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; margin:0 -4px; padding:0 4px; }
.session-list h4 { margin:14px 8px 6px; color:var(--faint); font-size:11px; font-weight:800; letter-spacing:.3px; }
.session-item { display:flex; align-items:center; border-radius:12px; }
.session-item.current { background:rgba(141,100,255,.2); }
.session-open { flex:1; min-width:0; display:grid; gap:2px; padding:9px 8px; border:0; background:transparent; text-align:left; }
.session-title { font-size:14px; font-weight:600; color:#eef0ff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.session-open small { font-size:11px; color:var(--faint); }
.session-more { width:34px; height:34px; flex:none; border:0; border-radius:50%; background:transparent; color:var(--muted); font-size:18px; }
.session-item:active, .session-open:active { background:rgba(255,255,255,.04); }
.drawer-empty { color:var(--muted); font-size:13px; text-align:center; margin:30px 10px; line-height:1.5; }
.drawer-foot { margin:0; color:var(--faint); font-size:11px; text-align:center; }
.session-menu { position:absolute; right:14px; z-index:22; display:grid; min-width:170px; padding:6px; border:1px solid var(--line); border-radius:14px; background:#1d2338; box-shadow:0 12px 30px rgba(0,0,0,.5); }
.session-menu button { border:0; background:transparent; text-align:left; padding:10px 12px; border-radius:9px; font-size:14px; }
.session-menu button:active { background:rgba(255,255,255,.06); }
.session-menu .danger { color:#ff9db8; }

.pill-sm { height:26px; padding:0 8px; border:1px solid var(--line); border-radius:99px; background:var(--card2); font-size:10px; font-weight:700; color:#d8def5; }
.feed-head .end-chip { margin-left:auto; margin-right:6px; max-width:none; color:#bff3d8; border-color:rgba(108,234,185,.35); background:rgba(65,188,128,.12); }
.turn-play { display:flex; gap:6px; margin-top:6px; }
.turn-play button { height:24px; padding:0 8px; border:1px solid rgba(183,198,255,.18); border-radius:99px; background:rgba(255,255,255,.04); font-size:10px; font-weight:700; color:#c9d2f0; }
.turn-play button:active { background:rgba(141,100,255,.3); }
.drawer-filter { display:flex; gap:5px; overflow-x:auto; flex:none; scrollbar-width:none; }
.drawer-filter button { flex:none; height:28px; padding:0 11px; border:1px solid var(--line); border-radius:99px; background:transparent; font-size:12px; color:var(--muted); }
.drawer-filter button.active { background:#2a3150; color:#fff; border-color:rgba(168,128,255,.5); }
.mode-chip { font-style:normal; font-size:9px; font-weight:800; padding:1px 6px; border-radius:6px; margin-right:3px; background:rgba(141,100,255,.2); color:#d6c6ff; }
.mode-chip.m-meeting { background:rgba(86,220,255,.15); color:#9be8ff; } .mode-chip.m-travel { background:rgba(108,234,185,.15); color:#aef3d2; } .mode-chip.m-sign { background:rgba(255,184,108,.15); color:#ffd3a3; }

/* ---------- accounts ---------- */
.account-box { display:grid; gap:8px; flex:none; padding-top:8px; border-top:1px solid var(--line); }
.acct { display:flex; align-items:center; gap:10px; }
.avatar { display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:50%; background:linear-gradient(145deg,#9f80ff,#3a8ad6); font-weight:800; }
.acct-info { flex:1; min-width:0; display:grid; } .acct-info b { font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .acct-info small { font-size:11px; color:var(--faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.plan-chip { font-size:10px; font-weight:800; padding:3px 8px; border-radius:99px; background:#2a3150; color:#cfd6f5; } .plan-chip.p-pro { background:rgba(141,100,255,.3); color:#e2d6ff; } .plan-chip.p-business { background:rgba(255,184,108,.25); color:#ffd9ad; }
.quota small { font-size:11px; color:var(--muted); } .quota-bar { height:6px; border-radius:9px; background:#1d2338; overflow:hidden; margin-bottom:4px; } .quota-bar i { display:block; height:100%; background:linear-gradient(90deg,#56dcff,#8d64ff); } .quota-bar i.hot { background:linear-gradient(90deg,#ffb86c,#ff7197); }
.acct-actions { display:flex; gap:6px; } .acct-actions button { flex:1; height:34px; border:1px solid var(--line); border-radius:10px; background:#1d2338; font-size:12px; font-weight:700; }
.auth-screen { position:absolute; inset:0; z-index:30; display:grid; place-items:center; padding:20px; background:linear-gradient(165deg,#101425,#07090f); }
.auth-card { width:100%; max-width:360px; display:grid; gap:10px; }
.auth-card .wordmark { font-size:34px; text-align:center; margin:0 0 4px; }
.auth-sub { margin:0 0 8px; text-align:center; color:var(--muted); font-size:13px; }
.auth-tabs { display:flex; gap:3px; padding:3px; background:#141827; border-radius:12px; } .auth-tabs button { flex:1; border:0; background:transparent; padding:9px; border-radius:9px; color:var(--muted); font-weight:700; } .auth-tabs button.active { background:#2a3150; color:#fff; }
.auth-card input { height:46px; padding:0 14px; border:1px solid var(--line); border-radius:12px; background:#151a29; color:#fff; font-size:16px; outline:0; } .auth-card input:focus { border-color:#8773ff; }
.auth-card .drawer-new { text-align:center; height:46px; }
.auth-error { min-height:18px; margin:0; color:#ff9db8; font-size:13px; }
.auth-guest { border:0; background:transparent; color:var(--muted); font-size:13px; text-decoration:underline; padding:6px; }
.plan-list { display:grid; gap:8px; margin:12px 0; } .plan-card { display:grid; grid-template-columns:1fr auto; gap:6px 10px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:14px; background:#20263b; }
.plan-card.current { border-color:rgba(168,128,255,.6); } .plan-card div { display:grid; } .plan-card small { color:#9ca6c4; font-size:12px; } .plan-card .price { font-weight:800; color:#e2d6ff; }
.plan-card button { grid-column:1 / -1; height:38px; border:0; border-radius:10px; background:linear-gradient(135deg,#7c5bf0,#3a69d6); font-weight:700; }
.admin-search { width:100%; height:40px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:#101525; color:#fff; margin:8px 0; }
.admin-list { display:grid; gap:6px; max-height:50dvh; overflow:auto; } .admin-row { display:grid; grid-template-columns:1fr auto 54px auto; gap:6px; align-items:center; padding:8px; border-radius:10px; background:#20263b; font-size:12px; }
.admin-who { min-width:0; display:grid; } .admin-who b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .admin-who small { color:#9ca6c4; }
.admin-row select, .admin-row input { height:30px; border:1px solid var(--line); border-radius:8px; background:#101525; color:#fff; font-size:12px; } .admin-row button { height:30px; border:0; border-radius:8px; background:#7255df; padding:0 10px; font-size:12px; }
