.panel-h { display: flex; align-items: center; 
justify-content: space-between; padding: 14px 
12px 6px 18px; } .panel-h h2 { font-size: 
1.45em; letter-spacing: -.015em; } .ph-actions { 
display: flex; gap: 2px; } .list { flex: 1; 
overflow-y: auto; min-height: 0; 
overscroll-behavior: contain; } .row { display: 
flex; align-items: center; gap: 12px; padding: 
10px 16px; width: 100%; text-align: left; 
cursor: pointer; border-radius: 0; transition: 
background .12s; } .row:hover { background: 
var(--surface-2); } .row.active { background: 
var(--accent-soft); } .row-t { flex: 1; 
min-width: 0; display: flex; flex-direction: 
column; } .row-t b { font-weight: 650; overflow: 
hidden; text-overflow: ellipsis; white-space: 
nowrap; } .row-t small { color: var(--muted); 
overflow: hidden; text-overflow: ellipsis; 
white-space: nowrap; } .row-l1, .row-l2 { 
display: flex; align-items: center; 
justify-content: space-between; gap: 8px; 
min-width: 0; } .row-l1 time { color: 
var(--muted); font-size: .76em; flex: none; } 
.row-l2 small { flex: 1; } .row-ind { display: 
flex; align-items: center; gap: 6px; color: 
var(--muted); flex: none; } .chat-row.unread 
.row-l1 time { color: var(--accent-deep); 
font-weight: 700; } .chat-row.unread .row-l2 
small { color: var(--ink); } .typing { color: 
var(--ok); font-weight: 600; } .row-ic { width: 
40px; height: 40px; border-radius: 12px; 
background: var(--surface-2); display: grid; 
place-items: center; color: var(--accent-deep); 
flex: none; } .row-ic.big { width: 50px; height: 
50px; border-radius: 50%; background: 
var(--accent-soft); } .chips { display: flex; 
gap: 6px; padding: 4px 12px 8px; overflow-x: 
auto; scrollbar-width: none; } .chip { padding: 
6px 14px; border-radius: 999px; background: 
var(--surface-2); color: var(--muted); 
font-weight: 600; font-size: .88em; white-space: 
nowrap; } .chip.on { background: 
var(--accent-soft); color: var(--accent-deep); } 
.empty-s { padding: 48px 28px; text-align: 
center; color: var(--muted); display: flex; 
flex-direction: column; align-items: center; 
gap: 10px; } .empty-s p { color: var(--ink); 
font-weight: 600; } .shell.offline .nav-logo { 
background: var(--muted); } .shell.offline 
.nav-logo::after { content: ""; } .main-pane { 
background: var(--bg); min-width: 0; min-height: 
0; display: flex; flex-direction: column; 
position: relative; } .empty-main { margin: 
auto; text-align: center; padding: 24px; 
max-width: 420px; display: flex; flex-direction: 
column; align-items: center; gap: 12px; } 
.em-mark { width: 84px; height: 84px; 
border-radius: 26px; background: var(--accent); 
color: #fff; font-size: 44px; font-weight: 800; 
display: grid; place-items: center; box-shadow: 
0 14px 40px color-mix(in srgb, var(--accent) 
40%, transparent); } .empty-main p { color: 
var(--muted); } .em-num { margin-top: 10px; 
padding: 12px 22px; border-radius: 16px; 
background: var(--surface); box-shadow: 
var(--shadow-s); display: flex; flex-direction: 
column; } .em-num small { color: var(--muted); } 
.em-num b { font-family: var(--mono); font-size: 
1.4em; letter-spacing: .08em; } .page { display: 
/* ===== token ===== */
:root {
  --fs: 1;
  --bg: #f3f1fb; --surface: #ffffff; --surface-2: #edeaf8; --surface-3: #e4e0f4;
  --ink: #17142e; --muted: #6a6686; --line: #e1ddf0;
  --accent: #5b4df0; --accent-ink: #ffffff; --accent-soft: #e6e3ff; --accent-deep: #4338c9;
  --me: #e3dfff; --me-ink: #17142e; --them: #ffffff;
  --ok: #0f9d7a; --danger: #d63553; --danger-soft: #fde8ec; --warn: #b7791f; --warn-bg: #fff4dc;
  --shadow: 0 8px 30px rgba(31, 20, 90, .14); --shadow-s: 0 1px 2px rgba(31, 20, 90, .12);
  --r: 14px; --r-s: 10px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --nav-w: 76px; --panel-w: 392px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f0d20; --surface: #181533; --surface-2: #211d44; --surface-3: #2a2556;
  --ink: #eceaf9; --muted: #9c98bf; --line: #2b2656;
  --accent: #7d70f8; --accent-ink: #0f0d20; --accent-soft: #2c2670; --accent-deep: #a79eff;
  --me: #3a31a6; --me-ink: #f4f2ff; --them: #211d44;
  --ok: #3ad1a8; --danger: #ff6b86; --danger-soft: #3a1c2b; --warn: #f0b64f; --warn-bg: #3a2f14;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5); --shadow-s: 0 1px 2px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { font: 400 calc(15px * var(--fs))/1.45 var(--font); color: var(--ink); background: var(--bg); overflow: hidden; -webkit-font-smoothing: antialiased; }
#app { height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--accent-deep); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: .85em; } .center { text-align: center; } .grow { flex: 1; } .w100 { width: 100%; }
.stack { display: flex; flex-direction: column; gap: 12px; } .row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .row-gap.center { justify-content: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .row-end { display: flex; justify-content: flex-end; gap: 8px; }
.pad { padding: 12px 16px; } .pad-s { padding: 8px 12px; } .m { margin: 12px; }
.ic { flex: none; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ===== kontrol ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; background: var(--surface-2); transition: transform .08s, background .15s; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); } .btn.primary:hover:not(:disabled) { background: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); } .btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn.danger { background: var(--danger); color: #fff; } .btn.danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: .88em; } .btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); flex: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.linkbtn { color: var(--accent-deep); font-weight: 600; padding: 6px 0; text-align: left; } .linkbtn:hover:not(:disabled) { text-decoration: underline; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; } .spinner.s { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: .88em; color: var(--muted); } .field small { color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), textarea, select {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus:not([type=checkbox]):not([type=radio]):not([type=range]), textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.code-in { text-align: center; letter-spacing: .5em; font-size: 1.5em; font-family: var(--mono); font-weight: 700; }
.num-in { font-family: var(--mono); font-size: 1.2em; letter-spacing: .06em; }
.search-in { border-radius: 999px !important; background: var(--surface-2) !important; border-color: transparent !important; padding-left: 16px !important; }
.form-err { color: var(--danger); font-size: .9em; min-height: 1.3em; margin-bottom: 8px; }
.note { padding: 10px 12px; border-radius: var(--r-s); font-size: .9em; background: var(--surface-2); } .note.warn { background: var(--warn-bg); color: var(--warn); }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; flex: none; border: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-s); transition: transform .2s; }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(18px); }
.chk { display: flex; align-items: center; gap: 10px; cursor: pointer; } .chk input { width: 18px; height: 18px; accent-color: var(--accent); }
.chk-box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; }
.on > .chk-box { background: var(--accent); border-color: var(--accent); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; } .seg.wide { display: flex; }
.seg button { flex: 1; display: inline-flex; gap: 6px; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.sec-t { font-weight: 700; font-size: .82em; color: var(--muted); padding: 14px 0 6px; letter-spacing: .02em; } .pad.sec-t { padding: 14px 16px 6px; }
.tag-bot, .tag-ok, .tag-off { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: .68em; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.tag-bot { background: var(--accent); color: var(--accent-ink); } .tag-ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); } .tag-off { background: var(--surface-2); color: var(--muted); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: .78em; font-weight: 700; display: inline-grid; place-items: center; } .badge.mute { background: var(--muted); color: var(--surface); }
.av { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden; flex: none; user-select: none; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.red { color: var(--danger) !important; } .green { color: var(--ok) !important; }

/* ===== toast / modal / menu ===== */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 9999; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: min(90vw, 440px); animation: rise .2s ease-out; font-size: .95em; }
.toast.error { background: var(--danger); color: #fff; } .toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.overlay { position: fixed; inset: 0; background: rgba(12, 8, 40, .5); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; z-index: 1000; animation: fade .15s; } .overlay.out { opacity: 0; transition: opacity .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 20px; width: min(440px, 100%); max-height: min(88dvh, 760px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .18s ease-out; overflow: hidden; }
.modal.wide { width: min(720px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 20px; } .modal-h h3 { font-size: 1.15em; }
.modal-b { padding: 8px 20px 16px; overflow: auto; flex: 1; overscroll-behavior: contain; }
.modal-f { padding: 12px 20px 16px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); }
.modal.drawer { width: min(460px, 100%); height: min(88dvh, 820px); }
.ctx { position: fixed; z-index: 2000; min-width: 190px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; border: 1px solid var(--line); animation: pop .12s ease-out; }
.ctx-i { display: flex; gap: 12px; align-items: center; width: 100%; padding: 9px 12px; border-radius: 9px; text-align: left; } .ctx-i:hover { background: var(--surface-2); } .ctx-i.danger { color: var(--danger); }
.ctx-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.react-bar { display: flex; gap: 2px; padding: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line); } .react-bar button { font-size: 1.4em; width: 38px; height: 38px; border-radius: 50%; } .react-bar button:hover { background: var(--surface-2); transform: scale(1.15); }
.viewer { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 3000; display: grid; place-items: center; } .viewer img { max-width: 96vw; max-height: 92dvh; border-radius: 6px; }
.viewer-x, .viewer-dl { position: fixed; top: 12px; color: #fff; background: rgba(255, 255, 255, .12); } .viewer-x { right: 12px; } .viewer-dl { right: 60px; }

/* ===== boot & auth ===== */
.boot { display: grid; place-items: center; } .boot-mark { width: 72px; height: 72px; border-radius: 22px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 800; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
.boot-err { text-align: center; padding: 20vh 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); height: 100dvh; overflow: auto; }
.auth-brand { background: var(--accent); color: #fff; padding: 56px 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.auth-brand::before { content: "N"; position: absolute; right: -60px; bottom: -150px; font-size: 560px; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .07); pointer-events: none; }
.auth-brand h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; max-width: 12ch; }
.auth-brand p { max-width: 42ch; opacity: .9; font-size: 1.05em; }
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3em; } .wm-n { width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--accent); display: grid; place-items: center; font-size: 1.3em; }
.brand-points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; } .brand-points li { display: flex; gap: 12px; align-items: flex-start; max-width: 44ch; opacity: .95; }
.auth-main { display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(400px, 100%); } .auth-card h2 { font-size: 1.6em; margin: 18px 0 6px; letter-spacing: -.01em; } .auth-card .muted { margin-bottom: 16px; }
.auth-card form { margin-top: 14px; display: block; } .auth-card .btn.block { margin-top: 4px; min-height: 46px; }
.tabs2 { display: flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; } .tabs2 button { flex: 1; min-height: 38px; border-radius: 999px; font-weight: 700; color: var(--muted); } .tabs2 .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
.auth-card .row-between { margin-top: 10px; } .ts-box { margin-top: 12px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .auth-brand { padding: 28px 24px; gap: 10px; } .auth-brand h1 { font-size: 1.7rem; max-width: none; } .auth-brand p, .brand-points { display: none; } .auth-brand::before { font-size: 260px; bottom: -80px; } }

/* ===== shell ===== */
.shell { display: grid; grid-template-columns: var(--nav-w) var(--panel-w) minmax(0, 1fr); height: 100dvh; background: var(--surface); }
.nav { background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; }
.nav-logo { width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-bottom: 12px; }
.nav-i { width: 60px; padding: 8px 0 6px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .68em; font-weight: 600; transition: background .15s; }
.nav-i:hover { background: var(--surface-2); } .nav-i.on { color: var(--accent-deep); background: var(--accent-soft); }
.nav-ic { position: relative; display: grid; } .nav-badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.panel { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 18px; } .panel-h h2 { font-size: 1.45em; letter-spacing: -.015em; }
.ph-actions { display: flex; gap: 2px; }
.list { flex: 1; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%; text-align: left; cursor: pointer; border-radius: 0; transition: background .12s; }
.row:hover { background: var(--surface-2); } .row.active { background: var(--accent-soft); }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .row-t b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row-t small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-l1, .row-l2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; } .row-l1 time { color: var(--muted); font-size: .76em; flex: none; } .row-l2 small { flex: 1; }
.row-ind { display: flex; align-items: center; gap: 6px; color: var(--muted); flex: none; }
.chat-row.unread .row-l1 time { color: var(--accent-deep); font-weight: 700; } .chat-row.unread .row-l2 small { color: var(--ink); }
.typing { color: var(--ok); font-weight: 600; }
.row-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-deep); flex: none; } .row-ic.big { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-soft); }
.chips { display: flex; gap: 6px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none; } .chip { padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .88em; white-space: nowrap; } .chip.on { background: var(--accent-soft); color: var(--accent-deep); }
.empty-s { padding: 48px 28px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; } .empty-s p { color: var(--ink); font-weight: 600; }
.shell.offline .nav-logo { background: var(--muted); } .shell.offline .nav-logo::after { content: ""; }
.main-pane { background: var(--bg); min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.empty-main { margin: auto; text-align: center; padding: 24px; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.em-mark { width: 84px; height: 84px; border-radius: 26px; background: var(--accent); color: #fff; font-size: 44px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 40%, transparent); }
.empty-main p { color: var(--muted); } .em-num { margin-top: 10px; padding: 12px 22px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-s); display: flex; flex-direction: column; } .em-num small { color: var(--muted); } .em-num b { font-family: var(--mono); font-size: 1.4em; letter-spacing: .08em; }
.page { display: flex; flex-direction: column; height: 100%; min-height: 0; } .page-h { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); } .page-h h2 { font-size: 1.2em; }
.sp-content { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; max-width: 760px; width: 100%; margin: 0 auto; }
.card { background: var(--surface); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-s); } .card h3 { font-size: 1em; margin-bottom: 10px; }
.card .field:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: var(--app-h, 100dvh); }
  .nav { grid-row: 2; flex-direction: row; justify-content: space-around; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); background: var(--surface); }
  .nav-logo, .nav .grow { display: none; } .nav-i { flex: 1; width: auto; } .nav-badge { right: -8px; }
  .panel { grid-row: 1; border-right: 0; } .main-pane { grid-row: 1; grid-column: 1; position: fixed; left: 0; right: 0; top: var(--app-top, 0px); height: var(--app-h, 100dvh); bottom: auto; z-index: 30; transform: translateX(100%); transition: transform .22s ease; visibility: hidden; }
  .panel { grid-column: 1; }
  .shell[data-view="main"] .main-pane { transform: none; visibility: visible; } .shell[data-view="main"] .nav { display: none; }
  .ch-head { position: sticky; top: 0; }
  .ch-foot { position: sticky; bottom: 0; }
}
@media (min-width: 821px) { .back-btn { display: none !important; } .nav .grow { flex: 1; } }

/* ===== chat ===== */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--bg); } .chat-loading { margin: auto; }
.ch-head { display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 8px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 2; }
.ch-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; padding: 2px 8px; border-radius: 12px; } .ch-who:hover { background: var(--surface-2); }
.ch-text { min-width: 0; display: flex; flex-direction: column; } .ch-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-sub { font-size: .8em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.2em; } .ch-sub.live { color: var(--ok); font-weight: 600; } .ch-sub.online { color: var(--ok); }
.ch-actions { display: flex; flex: none; }
.ch-search { background: var(--surface); border-bottom: 1px solid var(--line); } .ch-search-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 16px; } .ch-search-row input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.sr-list { max-height: 36dvh; overflow-y: auto; } .sr-i { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left; padding: 8px 16px; border-top: 1px solid var(--line); } .sr-i:hover { background: var(--surface-2); } .sr-i span { grid-column: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sr-i time { grid-column: 2; grid-row: 1; color: var(--muted); font-size: .8em; }
.ch-body { flex: 1; min-height: 0; position: relative; display: flex; }
.ch-msgs { flex: 1; overflow-y: auto; padding: 10px 0 12px; overscroll-behavior: contain; scroll-behavior: auto; background-color: var(--bg); }
.ch-inner { display: flex; flex-direction: column; gap: 2px; padding: 0 clamp(8px, 4vw, 56px); max-width: 980px; margin: 0 auto; }
:root[data-wp="dots"] .ch-msgs { background-image: radial-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1.2px, transparent 1.4px); background-size: 22px 22px; }
:root[data-wp="grid"] .ch-msgs { background-image: linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px); background-size: 28px 28px; }
:root[data-wp="aurora"] .ch-msgs { background-image: radial-gradient(60% 50% at 15% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), radial-gradient(50% 45% at 90% 85%, color-mix(in srgb, #e0457b 18%, transparent), transparent); }
:root[data-wp="dusk"] .ch-msgs { background-image: linear-gradient(170deg, color-mix(in srgb, #e08a1e 14%, transparent), color-mix(in srgb, var(--accent) 20%, transparent)); }
:root[data-wp="mint"] .ch-msgs { background-image: linear-gradient(160deg, color-mix(in srgb, #0f9d8a 16%, transparent), color-mix(in srgb, #2f80ed 12%, transparent)); }
.jump { position: absolute; right: 16px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 3; } .jump-n { position: absolute; top: -8px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; } .jump-n:empty { display: none; }
.day { display: flex; justify-content: center; margin: 12px 0 6px; } .day span { background: var(--surface); color: var(--muted); font-size: .76em; font-weight: 600; padding: 4px 12px; border-radius: 999px; box-shadow: var(--shadow-s); }
.unread-div { display: flex; justify-content: center; margin: 10px 0; } .unread-div span { background: var(--accent-soft); color: var(--accent-deep); font-size: .78em; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.sys { display: flex; justify-content: center; margin: 8px 0; } .sys span { background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); font-size: .78em; padding: 5px 12px; border-radius: 10px; max-width: 86%; text-align: center; box-shadow: var(--shadow-s); }
.sys.call span { display: inline-flex; gap: 8px; align-items: center; } .sys.call.missed span { color: var(--danger); } .sys.call time { opacity: .7; }
.msg { display: flex; flex-direction: column; max-width: min(78%, 560px); margin-top: 6px; position: relative; } .msg.grouped { margin-top: 1px; }
.msg.me { align-self: flex-end; align-items: flex-end; } .msg.them { align-self: flex-start; align-items: flex-start; }
.msg.flash .bub { animation: flash 1.2s; } @keyframes flash { 20%, 60% { box-shadow: 0 0 0 3px var(--accent); } }
.bub { position: relative; padding: 7px 11px 5px; border-radius: 18px; box-shadow: var(--shadow-s); min-width: 70px; max-width: 100%; word-break: break-word; overflow-wrap: anywhere; }
.msg.me .bub { background: var(--me); color: var(--me-ink); border-bottom-right-radius: 6px; } .msg.them .bub { background: var(--them); border-bottom-left-radius: 6px; }
.msg.me.grouped .bub { border-top-right-radius: 6px; } .msg.them.grouped .bub { border-top-left-radius: 6px; }
.msg.pending .bub { opacity: .7; }
.bub.sticker { background: transparent !important; box-shadow: none; padding: 0; } .bub.sticker .meta { background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 999px; padding: 1px 8px; margin-top: 2px; float: none; display: inline-flex; }
.stk { width: min(170px, 46vw); height: auto; display: block; }
.bub.deleted { opacity: .8; } .txt { white-space: pre-wrap; } .txt.del { color: var(--muted); font-style: italic; display: flex; gap: 6px; align-items: center; }
.sender { font-weight: 700; font-size: .84em; margin-bottom: 2px; }
.fwd { display: flex; gap: 4px; align-items: center; font-size: .78em; color: var(--muted); font-style: italic; margin-bottom: 3px; }
.quote { display: flex; flex-direction: column; text-align: left; width: 100%; padding: 6px 10px; margin-bottom: 5px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); border-left: 4px solid var(--qc, var(--accent)); font-size: .88em; } .quote b { color: var(--qc, var(--accent)); } .quote span { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.quote.status-q { --qc: var(--accent); }
.mc { display: flex; flex-direction: column; gap: 4px; } .media { max-width: min(300px, 62vw); max-height: 340px; border-radius: 12px; display: block; cursor: zoom-in; object-fit: cover; background: var(--surface-2); } video.media { cursor: default; }
.mc .txt { padding: 0 2px; }
.meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: .68em; color: var(--muted); margin-top: 1px; user-select: none; } .msg.me .meta { color: color-mix(in srgb, var(--me-ink) 62%, transparent); }
.edited { font-style: italic; }
.tick { display: inline-flex; } .tick.read { color: #35b8ff; } :root[data-theme="dark"] .tick.read { color: #6fd0ff; } .tick.pending { opacity: .7; }
.chev { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--muted); } @media (hover: hover) { .bub:hover .chev { display: grid; } }
.reacts { display: flex; gap: 4px; margin: -8px 8px 0; z-index: 1; flex-wrap: wrap; } .msg.me .reacts { justify-content: flex-end; }
.react { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-s); font-size: .85em; border: 1.5px solid transparent; } .react i { font-style: normal; font-size: .8em; color: var(--muted); } .react.mine { border-color: var(--accent); background: var(--accent-soft); }
.file { display: flex; align-items: center; gap: 12px; padding: 4px 2px; text-decoration: none; color: inherit; min-width: 220px; } .file-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; } .file-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .file-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .file-t small { color: var(--muted); }
.vn { display: flex; align-items: center; gap: 10px; min-width: min(250px, 60vw); padding: 2px 0; } .vn-play { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 32px; cursor: pointer; } .wave i { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, currentColor 30%, transparent); } .wave i.on { background: var(--accent); }
.vn-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .74em; } .vn-spd { padding: 0 6px; border-radius: 8px; background: color-mix(in srgb, currentColor 14%, transparent); font-weight: 700; font-size: 1em; }
.upl { display: flex; align-items: center; gap: 10px; min-width: 200px; } .upl-t { flex: 1; min-width: 0; } .upl-t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9em; } .upl-bar { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: 6px; } .upl-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* footer / composer */
.ch-foot { background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); position: relative; }
.composer { display: flex; align-items: flex-end; gap: 4px; padding: 8px 10px; max-width: 980px; margin: 0 auto; }
.inp-wrap { flex: 1; background: var(--surface-2); border-radius: 22px; padding: 2px 6px; display: flex; }
.inp { border: 0 !important; background: transparent !important; box-shadow: none !important; resize: none; min-height: 40px !important; max-height: 150px; padding: 9px 8px !important; line-height: 1.4; }
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; transition: transform .1s; } .send-btn:active { transform: scale(.92); }
.reply-bar { display: flex; align-items: center; padding: 8px 10px 0 14px; gap: 8px; max-width: 980px; margin: 0 auto; } .rb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--qc, var(--accent)); } .rb-body b { color: var(--qc, var(--accent)); font-size: .85em; } .rb-body span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rb-body.edit { --qc: var(--warn); }
.ro { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 16px; color: var(--muted); text-align: center; flex-wrap: wrap; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--warn-bg); color: var(--warn); font-size: .9em; } .banner-a { display: flex; gap: 6px; flex-wrap: wrap; }
.rec-bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px; max-width: 980px; margin: 0 auto; } .rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: pulse 1s infinite; } .rec-t { font-family: var(--mono); font-weight: 700; } .rec-hint { flex: 1; color: var(--muted); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; } .thumbs img, .thumbs video { height: 180px; max-width: 100%; border-radius: 12px; object-fit: cover; flex: none; background: #000; }
.media-modal .thumbs:only-child { justify-content: center; }
.sticker-panel { border-top: 1px solid var(--line); height: min(300px, 42dvh); display: flex; flex-direction: column; } .panel-wrap { max-width: 980px; margin: 0 auto; }
.sp-tabs { display: flex; gap: 4px; padding: 6px 10px; } .sp-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); } .sp-tabs button.on { background: var(--accent-soft); color: var(--accent-deep); }
.sp-body { flex: 1; overflow-y: auto; padding: 0 10px 10px; } .sp-cat { font-size: .78em; font-weight: 700; color: var(--muted); padding: 8px 4px 2px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); } .emoji-grid button { font-size: 1.6em; height: 42px; border-radius: 10px; } .emoji-grid button:hover { background: var(--surface-2); }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; } .stk-i, .stk-new { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; padding: 6px; } .stk-i:hover { background: var(--surface-2); } .stk-i img { max-width: 100%; max-height: 100%; }
.stk-new { border: 2px dashed var(--line); color: var(--muted); font-size: .78em; gap: 2px; align-content: center; } .stk-new:hover { border-color: var(--accent); color: var(--accent-deep); }
.stk-empty { text-align: center; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* pembuat stiker */
.sm-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; } .sm-stage { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface-3) 0% 50%) 0 0/20px 20px; }
.sm-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; } .sm-canvas.erase { cursor: crosshair; }
.sm-empty { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; text-align: center; padding: 24px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--muted); }
.sm-tools { display: flex; flex-direction: column; gap: 12px; } .fld-row { display: flex; align-items: center; gap: 10px; } .fld-row > span { width: 62px; font-size: .88em; color: var(--muted); flex: none; }
@media (max-width: 640px) { .sm-grid { grid-template-columns: 1fr; } }
.drop { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; width: 100%; min-height: 200px; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); } .drop:hover { border-color: var(--accent); }

/* info & pemilih */
.info { display: flex; flex-direction: column; gap: 2px; } .info-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0 14px; } .info-head h2 { font-size: 1.35em; } .about { color: var(--muted); max-width: 32ch; } .num { font-family: var(--mono); letter-spacing: .06em; }
.info-av { position: relative; } .av-edit { position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; border: 3px solid var(--surface); }
.info-quick { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; } .info-quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 26px; border-radius: 14px; background: var(--surface-2); color: var(--accent-deep); font-weight: 600; font-size: .85em; }
.act-row, .set-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 6px; text-align: left; border-radius: 10px; } button.act-row:hover { background: var(--surface-2); } .act-row.danger { color: var(--danger); }
.act-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--accent-deep); } .act-row.danger .act-ic { background: var(--danger-soft); color: var(--danger); }
.act-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .act-t small { color: var(--muted); } .act-row.tog, .set-row { cursor: default; } label.act-row.tog, label.set-row { cursor: pointer; }
.invite-row { background: var(--surface-2); border-radius: 14px; padding: 12px; margin: 6px 0; display: flex; flex-direction: column; gap: 8px; } .invite-link { display: flex; gap: 8px; align-items: center; color: var(--accent-deep); font-size: .88em; word-break: break-all; }
.mem { display: flex; align-items: center; gap: 12px; padding: 6px 0; } .role { font-size: .75em; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; }
.picker { display: flex; flex-direction: column; gap: 8px; } .pick-list { display: flex; flex-direction: column; max-height: 46dvh; overflow-y: auto; } .pick-i { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 12px; text-align: left; width: 100%; } .pick-i:hover { background: var(--surface-2); } .pick-i.on { background: var(--accent-soft); }
.pick-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pick-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pick-t small { color: var(--muted); }
.user-card { display: flex; gap: 14px; align-items: center; padding: 8px 0 12px; } .lookup { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.invite-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0; }

/* status */
.st-ring { border-radius: 50%; display: grid; place-items: center; flex: none; } .st-ring.new { background: conic-gradient(var(--accent), #e0457b, #e08a1e, var(--accent)); } .st-ring.seen { background: var(--surface-3); } .st-ring.none { background: transparent; }
.st-ring > .av { border: 3px solid var(--surface); box-sizing: content-box; } .st-me { position: relative; } .st-plus { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 2px solid var(--surface); }
.stc { display: flex; flex-direction: column; gap: 12px; } .stc-text { min-height: 220px; border: 0 !important; color: #fff; font-size: 1.5em; font-weight: 700; text-align: center; padding: 32px 20px !important; border-radius: 16px !important; } .stc-text::placeholder { color: rgba(255, 255, 255, .6); }
.swatches { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; } .sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; } .sw.on { border-color: var(--ink); }
.stc-prev { max-width: 100%; max-height: 320px; border-radius: 14px; align-self: center; }
.stv { position: fixed; inset: 0; background: #0b0918; z-index: 2500; color: #fff; display: flex; flex-direction: column; }
.stv-stage { position: absolute; inset: 0; display: grid; place-items: center; } .stv-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px 28px; text-align: center; } .stv-text p { font-size: clamp(1.4rem, 4.2vw, 2.4rem); font-weight: 700; line-height: 1.3; white-space: pre-wrap; max-width: 22ch; }
.stv-media { position: absolute; inset: 0; display: grid; place-items: center; } .stv-media img, .stv-media video { max-width: 100%; max-height: 100%; }
.stv-cap { position: absolute; left: 0; right: 0; bottom: 96px; text-align: center; padding: 10px 24px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.stv-top { position: relative; z-index: 3; padding: 10px 12px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); } .stv-bars { display: flex; gap: 4px; margin-bottom: 10px; } .stv-bars .b { flex: 1; height: 3px; background: rgba(255, 255, 255, .3); border-radius: 2px; overflow: hidden; } .stv-bars .b i { display: block; height: 100%; width: 0; background: #fff; } .stv-bars .b.done i { width: 100%; }
.stv-h { display: flex; align-items: center; gap: 10px; } .stv-h .icon-btn { color: #fff; } .stv-who { display: flex; flex-direction: column; line-height: 1.2; } .stv-who small { opacity: .75; }
.stv-nav { position: absolute; top: 80px; bottom: 100px; width: 33%; z-index: 2; } .stv-nav.prev { left: 0; } .stv-nav.next { right: 0; }
.stv-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: center; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.stv-reply { display: flex; gap: 8px; width: min(520px, 100%); } .stv-reply input { background: rgba(255, 255, 255, .15) !important; border-color: transparent !important; color: #fff; border-radius: 999px !important; } .stv-reply input::placeholder { color: rgba(255, 255, 255, .7); }
.stv-quick { display: flex; gap: 6px; } .stv-quick button { font-size: 1.5em; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.stv-views { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .15); font-weight: 600; }

/* panggilan */
.call { position: fixed; inset: 0; z-index: 4000; background: radial-gradient(120% 90% at 50% 0%, #3a2fb0, #120f2e 70%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12vh 24px calc(40px + env(safe-area-inset-bottom)); overflow: hidden; }
.cl-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; pointer-events: none; } .call.has-video .cl-remote { opacity: 1; }
.cl-top { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; } .cl-id { display: flex; flex-direction: column; align-items: center; gap: 10px; } .cl-id h2 { font-size: 1.7em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); } .cl-status { opacity: .85; font-family: var(--mono); letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.call.has-video .cl-top { align-self: flex-start; } .call.has-video .cl-av { display: none; } .call.has-video { padding-top: 24px; } .call.has-video .cl-id { align-items: flex-start; }
.cl-local { position: absolute; right: 16px; top: 16px; width: 110px; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; background: #000; z-index: 3; box-shadow: var(--shadow); transform: scaleX(-1); }
.cl-ctl { position: relative; z-index: 3; display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cl-btn { width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; transition: transform .1s; } .cl-btn:active { transform: scale(.92); } .cl-btn.off { background: #fff; color: #111; }
.cl-btn.red { background: #e5354f; } .cl-btn.green { background: #1fb67f; animation: pulse 1.1s infinite; } .cl-btn.hang svg { transform: rotate(135deg); }

/* pengaturan */
.prof-head { display: flex; justify-content: center; padding: 8px 0; } .big-num { font-family: var(--mono); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 700; letter-spacing: .1em; text-align: center; padding: 14px 8px; margin: 10px 0 12px; background: var(--accent-soft); color: var(--accent-deep); border-radius: 16px; }
.radios { display: flex; flex-direction: column; } .radio { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; cursor: pointer; } .radio input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; } .radio span { display: flex; flex-direction: column; } .radio small { color: var(--muted); }
.wp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .wp { aspect-ratio: 4/3; border-radius: 14px; border: 3px solid transparent; background-color: var(--bg); display: flex; align-items: flex-end; padding: 8px; font-weight: 600; font-size: .85em; box-shadow: inset 0 0 0 1px var(--line); } .wp.on { border-color: var(--accent); }
.wp-dots { background-image: radial-gradient(color-mix(in srgb, var(--accent) 30%, transparent) 1.2px, transparent 1.4px); background-size: 14px 14px; } .wp-plain { background: var(--bg); }
.wp-aurora { background-image: radial-gradient(60% 50% at 15% 10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent), radial-gradient(50% 45% at 90% 85%, color-mix(in srgb, #e0457b 30%, transparent), transparent); }
.wp-dusk { background-image: linear-gradient(170deg, color-mix(in srgb, #e08a1e 25%, transparent), color-mix(in srgb, var(--accent) 35%, transparent)); } .wp-mint { background-image: linear-gradient(160deg, color-mix(in srgb, #0f9d8a 28%, transparent), color-mix(in srgb, #2f80ed 20%, transparent)); }
.wp-grid .wp-grid, .wp-gridx { }
button.wp.wp-grid { background-image: linear-gradient(color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
.bot-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; } .bot-card { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 10px; } .bot-top { display: flex; align-items: center; gap: 12px; } .bot-act { display: flex; flex-wrap: wrap; gap: 8px; }
.pair-code { font-family: var(--mono); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 800; letter-spacing: .14em; padding: 18px 12px; background: var(--accent-soft); color: var(--accent-deep); border-radius: 18px; user-select: all; }
.cmd { width: 100%; text-align: left; } .wait { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); } .ok-big { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto; }
.steps { padding-left: 0; margin: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; } .steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; } .steps li::before { content: counter(s); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; } .steps li > div { grid-column: 2; }
.codebox { border-radius: 12px; background: #15122e; color: #e8e6ff; overflow: hidden; } .code-h { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 6px 14px; background: #1e1a40; font-size: .85em; } .code-h .btn.ghost { color: #d9d5ff; box-shadow: inset 0 0 0 1.5px #3b3570; }
.code { margin: 0; padding: 12px 14px; font: 400 .82em/1.55 var(--mono); overflow: auto; white-space: pre; max-height: 260px; } .code.tall { max-height: 420px; }
.table-wrap { overflow-x: auto; margin-top: 12px; } .tbl { width: 100%; border-collapse: collapse; font-size: .88em; } .tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl th { color: var(--muted); font-size: .85em; }
.rules { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.call-line { display: flex; align-items: center; gap: 4px; }
