:root {
  --accent: #0d7a6b; --accent-2: #14967f; --accent-soft: #d8f0ea;
  --bg: #ffffff; --bg-2: #f2f4f5; --panel: #ffffff; --text: #111b21; --muted: #667781; --line: #e6e9eb;
  --bar: #0d7a6b; --bar-text: #ffffff; --bar-sub: rgba(255,255,255,.82);
  --chat-bg: #efe8de; --in: #ffffff; --out: #d6f5df; --quote-bg: rgba(0,0,0,.05);
  --tick: #8696a0; --tick-read: #34a8eb; --danger: #e5484d; --shadow: 0 1px 1px rgba(11,20,26,.13);
  --sys: rgba(255,255,255,.92); --sys-text: #54656f;
  --app-h: 100dvh;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #21c094; --accent-2: #1aa883; --accent-soft: #103d35;
    --bg: #111b21; --bg-2: #0b141a; --panel: #1b252c; --text: #e9edef; --muted: #8696a0; --line: #26343c;
    --bar: #1f2c34; --bar-text: #e9edef; --bar-sub: #8696a0;
    --chat-bg: #0b141a; --in: #202c33; --out: #075e54; --quote-bg: rgba(0,0,0,.2);
    --tick: #8696a0; --tick-read: #53bdeb; --sys: #182229; --sys-text: #8696a0; --shadow: 0 1px 1px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg-2); color: var(--text); overscroll-behavior: none; }
body { font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input[type=text], input[type=password], input[type=search], textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); outline: none; font-size: 16px;
}
input:focus, textarea:focus { border-color: var(--accent); }
.ic { width: 24px; height: 24px; flex: none; display: block; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ellipsis2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; }
.pad { padding: 16px; }
.pad-x { padding: 10px 14px; }
.clickable { cursor: pointer; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; height: var(--app-h); max-width: 820px; margin: 0 auto; background: var(--bg); overflow: hidden; }
@media (min-width: 821px) { #app { box-shadow: 0 0 0 1px var(--line); } }
.splash { height: 100%; display: grid; place-items: center; }
.splash img { width: 88px; border-radius: 22px; opacity: .9; }
.screen { display: flex; flex-direction: column; height: 100%; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Üst bar */
.topbar { display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 8px 8px; min-height: calc(env(safe-area-inset-top) + 60px); background: var(--bar); color: var(--bar-text); flex: none; z-index: 2; }
.topbar.main { padding-left: 16px; }
.tb-title { flex: 1; min-width: 0; padding: 0 4px; }
.tb-name { font-weight: 600; font-size: 17px; }
.app-name { font-size: 21px; font-weight: 700; letter-spacing: -.2px; }
.tb-sub { font-size: 13px; color: var(--bar-sub); min-height: 16px; }
.tb-sub .typing { color: var(--bar-text); font-style: italic; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; flex: none; color: inherit; }
.icon-btn:active { background: rgba(127,127,127,.18); }
.icon-btn.danger { color: var(--danger); }
.text-btn { padding: 8px 12px; font-weight: 600; color: var(--bar-text); border-radius: 8px; }
.text-btn:active { background: rgba(255,255,255,.15); }
.sheet .text-btn, .preview .text-btn { color: var(--accent); }

/* Avatar */
.avatar { border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; background: var(--muted); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .ic { width: 58%; height: 58%; }
.avatar.accent { background: var(--accent); }

/* Giriş */
.screen.auth { justify-content: center; align-items: center; padding: 24px; background: var(--bg-2); overflow-y: auto; }
.auth-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.auth-card h1 { margin: 4px 0 0; text-align: center; font-size: 26px; }
.auth-card p { margin: 0 0 8px; }
.logo { display: flex; justify-content: center; }
.logo img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 6px 20px rgba(13,122,107,.3); }
.form-error { color: var(--danger); font-size: 14px; min-height: 18px; text-align: center; }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--panel); border-radius: 12px; padding: 12px; margin-top: 12px !important; }
.hint .ic { width: 18px; height: 18px; }

.btn { padding: 12px 18px; border-radius: 24px; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { color: var(--accent); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; }
.btn:active { filter: brightness(.92); }

/* Sohbet listesi */
.conv-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; width: 100%; text-align: left; position: relative; }
.conv-item:active { background: var(--bg-2); }
.conv-item.inactive { opacity: .55; }
.conv-av { position: relative; }
.online-dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #25d366; border: 2px solid var(--bg); }
.conv-main { flex: 1; min-width: 0; border-bottom: 1px solid var(--line); padding: 4px 0 12px; margin-bottom: -10px; }
.conv-item:last-child .conv-main { border-bottom: 0; }
.conv-row { display: flex; align-items: center; gap: 6px; }
.conv-name { flex: 1; font-weight: 600; font-size: 16.5px; min-width: 0; display: flex; align-items: center; gap: 6px; }
.conv-time { font-size: 12px; color: var(--muted); flex: none; }
.conv-item.unread .conv-time { color: var(--accent); font-weight: 600; }
.conv-preview { flex: 1; font-size: 14.5px; color: var(--muted); }
.conv-preview .tick { display: inline-block; vertical-align: -2px; margin-right: 3px; }
.conv-preview .typing { color: var(--accent); font-style: italic; }
.badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; flex: none; }
.badge.grey { background: var(--muted); }
.muted-ic { color: var(--muted); }
.muted-ic .ic { width: 17px; height: 17px; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.tag.grey { background: var(--bg-2); color: var(--muted); }
.tag.warn { background: #fff1d6; color: #9a6200; }
@media (prefers-color-scheme: dark) { .tag.warn { background: #3d2e10; color: #f5c26b; } }
.fab { position: absolute; right: 18px; bottom: calc(env(safe-area-inset-bottom) + 20px); width: 58px; height: 58px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.fab:active { transform: scale(.95); }
.empty { text-align: center; padding: 60px 24px; color: var(--text); }
.empty .ic { width: 56px; height: 56px; margin: 0 auto 10px; color: var(--accent); opacity: .6; }
.empty p { margin: 4px 0; }
.empty.small { padding: 24px; color: var(--muted); font-size: 14px; }
.banner { display: flex; align-items: center; gap: 10px; margin: 10px 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: 14px; text-align: left; width: calc(100% - 24px); }
.banner .ic { color: var(--accent); }
.section-title { padding: 16px 16px 6px; font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .4px; }
.search-input { margin: 4px 0; background: var(--bg-2); border-color: transparent; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.chip { background: var(--accent-soft); color: var(--accent); padding: 6px 10px; border-radius: 16px; font-size: 14px; }
.conv-item.check input { width: 22px; height: 22px; accent-color: var(--accent); }

/* Sohbet */
.chat-body { flex: 1; position: relative; min-height: 0; display: flex; }
.chat-bg { background-color: var(--chat-bg); background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 18px 18px; }
@media (prefers-color-scheme: dark) { .chat-bg { background-image: radial-gradient(rgba(255,255,255,.03) 1px, transparent 1px); } }
.messages { padding: 8px 10px 14px; display: flex; flex-direction: column; }
.load-more { text-align: center; color: var(--muted); font-size: 13px; padding: 10px; }
.day-sep, .unread-sep { text-align: center; margin: 10px 0 6px; }
.day-sep span { background: var(--sys); color: var(--sys-text); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; box-shadow: var(--shadow); display: inline-block; }
.unread-sep span { background: var(--sys); color: var(--accent); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 8px; display: inline-block; }
.sys-msg { text-align: center; margin: 6px 0; }
.sys-msg span { background: var(--sys); color: var(--sys-text); font-size: 12.5px; padding: 5px 12px; border-radius: 8px; display: inline-block; max-width: 85%; box-shadow: var(--shadow); }

.msg { display: flex; flex-direction: column; margin-top: 8px; max-width: 82%; position: relative; }
.msg.grouped { margin-top: 2px; }
.msg.in { align-self: flex-start; align-items: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.bubble { background: var(--in); padding: 6px 8px 6px 9px; border-radius: 10px; box-shadow: var(--shadow); position: relative; min-width: 72px; max-width: 100%; user-select: text; -webkit-user-select: text; -webkit-touch-callout: none; }
.msg.out .bubble { background: var(--out); }
.msg.in:not(.grouped) .bubble { border-top-left-radius: 2px; }
.msg.out:not(.grouped) .bubble { border-top-right-radius: 2px; }
.bubble.media { padding: 3px; }
.bubble.media .text { padding: 4px 6px 0; }
.bubble.deleted { color: var(--muted); }
.sender { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 15.5px; }
.text a { color: #027eb5; text-decoration: underline; }
@media (prefers-color-scheme: dark) { .text a { color: #53bdeb; } }
.text::after { content: ""; display: inline-block; width: 64px; }
.msg.out .text::after { width: 80px; }
.meta { float: right; font-size: 11px; color: var(--muted); margin: 6px 0 -4px 8px; display: inline-flex; align-items: center; gap: 3px; position: relative; bottom: 0; }
.bubble .meta { position: absolute; right: 8px; bottom: 4px; float: none; margin: 0; }
.bubble.media .meta { background: rgba(0,0,0,.45); color: #fff; padding: 1px 6px; border-radius: 8px; right: 7px; bottom: 7px; }
.bubble.media:has(.text) .meta { background: none; color: var(--muted); bottom: 4px; right: 8px; }
.bubble.media:has(.text) { padding-bottom: 6px; }
.tick { display: inline-flex; color: var(--tick); }
.tick svg { width: 17px; height: 11px; }
.tick.read { color: var(--tick-read); }
.bubble.media .tick { color: inherit; }
.bubble.media .tick.read { color: var(--tick-read); }

.quote { display: block; text-align: left; width: 100%; background: var(--quote-bg); border-left: 4px solid; border-radius: 6px; padding: 5px 8px; margin-bottom: 4px; font-size: 13.5px; min-width: 0; }
.bubble.media .quote { margin: 0 0 3px; }
.quote-name { font-weight: 600; font-size: 13px; }
.quote-text { color: var(--muted); }

.att-img { display: block; border-radius: 8px; overflow: hidden; max-width: min(300px, 70vw); }
.att-img img { display: block; width: 100%; max-height: 380px; min-height: 80px; min-width: 120px; object-fit: cover; background: rgba(127,127,127,.15); }
.att-video video { display: block; border-radius: 8px; max-width: min(300px, 70vw); max-height: 380px; background: #000; }
.att-file { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: var(--quote-bg); margin-bottom: 4px; min-width: 220px; max-width: 280px; }
.att-file-ic { position: relative; width: 40px; height: 46px; display: grid; place-items: center; color: var(--accent); }
.att-file-ic .ic { width: 40px; height: 46px; }
.att-file-ic small { position: absolute; bottom: 8px; font-size: 8.5px; font-weight: 800; }
.att-file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.att-file-meta small { color: var(--muted); font-size: 12px; }
.att-file > .ic { color: var(--muted); }
.att-audio { display: flex; align-items: center; gap: 10px; min-width: 220px; padding: 4px 2px 14px; }
.ap-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.ap-btn .ic { width: 22px; height: 22px; }
.ap-bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(127,127,127,.3); position: relative; cursor: pointer; }
.ap-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 3px; }
.ap-time { font-size: 12px; color: var(--muted); position: absolute; left: 58px; bottom: 4px; }

.reactions { display: inline-flex; gap: 2px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1px 7px; margin-top: -6px; font-size: 14px; z-index: 1; box-shadow: var(--shadow); position: relative; }
.msg.in .reactions { margin-left: 8px; }
.msg.out .reactions { margin-right: 8px; }
.reactions.mine { border-color: var(--accent); }
.reactions small { font-size: 11px; color: var(--muted); margin-left: 1px; }
.thread-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--panel); border-radius: 12px; padding: 4px 10px; margin-top: 4px; box-shadow: var(--shadow); }
.thread-link .ic { width: 16px; height: 16px; }
.thread-link.new::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.msg.flash .bubble { animation: flash 1.4s; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow); } }
.msg.pending { opacity: .85; }
.pending-name { font-size: 14px; max-width: 220px; }
.progress { height: 4px; background: rgba(127,127,127,.3); border-radius: 2px; margin-top: 6px; overflow: hidden; width: 200px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.down-btn { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; background: var(--panel); color: var(--muted); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.down-btn .badge { position: absolute; top: -8px; right: -2px; }

.thread-parent { padding: 12px 10px 0; display: flex; flex-direction: column; }
.thread-parent .msg { max-width: 92%; }

/* Yazma alanı */
.composer { flex: none; background: var(--chat-bg); padding: 6px 6px calc(env(safe-area-inset-bottom) + 6px); }
.composer-row { display: flex; align-items: flex-end; gap: 6px; }
.input-wrap { flex: 1; display: flex; align-items: flex-end; background: var(--panel); border-radius: 24px; min-height: 48px; padding: 3px 6px 3px 2px; box-shadow: var(--shadow); }
.input-wrap textarea, .input-wrap input { border: 0; background: transparent; resize: none; padding: 11px 6px; max-height: 140px; line-height: 1.35; border-radius: 0; }
.input-wrap .icon-btn { color: var(--muted); }
.send-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; box-shadow: var(--shadow); }
.send-btn:active { transform: scale(.94); }
.send-btn .ic { width: 22px; height: 22px; }
.reply-box { display: flex; align-items: center; gap: 4px; background: var(--panel); border-radius: 14px 14px 0 0; padding: 6px 4px 6px 8px; margin: 0 54px -6px 0; }
.reply-box .quote { margin: 0; flex: 1; }
.reply-box + .composer-row .input-wrap { border-top-left-radius: 0; border-top-right-radius: 0; }
.recording .rec-info { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 24px; height: 48px; padding: 0 16px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes blink { 50% { opacity: .2; } }

/* Katmanlar */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.backdrop.show { opacity: 1; }
.sheet { width: 100%; max-width: 560px; background: var(--panel); border-radius: 18px 18px 0 0; padding: 8px 0 calc(env(safe-area-inset-bottom) + 8px); transform: translateY(30px); transition: transform .2s; max-height: 85vh; overflow-y: auto; }
.sheet.tall { height: 85vh; display: flex; flex-direction: column; }
.backdrop.show .sheet { transform: none; }
.sheet-item { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 22px; font-size: 16px; text-align: left; }
.sheet-item:active { background: var(--bg-2); }
.sheet-item .ic { color: var(--muted); }
.sheet-item.danger, .sheet-item.danger .ic { color: var(--danger); }
.sheet-item.cancel { justify-content: center; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.sheet-title { padding: 10px 22px; font-weight: 600; color: var(--muted); font-size: 14px; }
.sheet-preview { padding: 2px 22px 10px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.emoji-row { display: flex; justify-content: space-around; padding: 6px 10px 10px; }
.emoji-row button { font-size: 30px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.emoji-row button.sel { background: var(--accent-soft); }
.emoji-row button:active { transform: scale(1.2); }
.emoji-row .more { background: var(--bg-2); color: var(--muted); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); padding: 10px; gap: 4px; }
.emoji-grid button { font-size: 28px; aspect-ratio: 1; border-radius: 10px; }
.emoji-grid button:active { background: var(--bg-2); }

.backdrop:has(.dialog) { align-items: center; padding: 20px; }
.dialog { width: 100%; max-width: 400px; background: var(--panel); border-radius: 18px; transform: scale(.96); transition: transform .2s; max-height: 90vh; overflow-y: auto; }
.backdrop.show .dialog { transform: none; }
.dialog-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dialog-body h3 { margin: 0; font-size: 19px; }
.dialog-body p { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font-size: 13px; color: var(--muted); font-weight: 600; }
.cred { background: var(--bg-2); padding: 12px; border-radius: 10px; white-space: pre-wrap; font: 14px/1.5 ui-monospace, Menlo, monospace; margin: 0; user-select: all; -webkit-user-select: all; }

.backdrop:has(.preview) { align-items: stretch; }
.preview { width: 100%; max-width: 820px; background: #0b141a; color: #fff; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 8px calc(env(safe-area-inset-bottom) + 8px); }
.preview-head { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-weight: 600; }
.sheet .preview-head { padding: 4px 8px 8px; border-bottom: 1px solid var(--line); }
.preview-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 10px; }
.preview-list img, .preview-list video { max-width: 100%; max-height: 60vh; border-radius: 8px; }
.preview-list .att-file { background: rgba(255,255,255,.1); color: #fff; }
.preview .input-wrap { background: #2a3942; }
.preview .caption-input { color: #fff; }

.backdrop:has(.viewer) { align-items: stretch; background: #000; }
.viewer { width: 100%; display: flex; flex-direction: column; color: #fff; padding-top: env(safe-area-inset-top); }
.viewer-bar { display: flex; align-items: center; gap: 8px; padding: 8px; }
.viewer-media { flex: 1; display: grid; place-items: center; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: calc(var(--app-h) - 80px); object-fit: contain; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); transform: translate(-50%, 20px); background: #323c42; color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 100; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#conn-banner { position: fixed; top: calc(env(safe-area-inset-top) + 64px); left: 50%; transform: translateX(-50%); background: #f5c26b; color: #3d2e10; font-size: 13px; padding: 4px 12px; border-radius: 12px; z-index: 60; }

/* Profil / ayarlar */
.screen.page .scroll { background: var(--bg-2); }
.profile-head { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 18px; background: var(--panel); margin-bottom: 10px; text-align: center; }
.profile-head h2 { margin: 12px 0 2px; font-size: 22px; }
.profile-head p { margin: 2px 0; }
.avatar-edit { position: relative; }
.avatar-edit .cam { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; border: 3px solid var(--panel); }
.avatar-edit .cam .ic { width: 18px; height: 18px; }
.card { background: var(--panel); margin: 0 0 10px; }
.card.pad p { margin: 6px 0 0; }
.row-btn { display: flex; align-items: center; gap: 18px; width: 100%; padding: 15px 20px; text-align: left; font-size: 16px; }
.row-btn:active { background: var(--bg-2); }
.row-btn .ic { color: var(--muted); }
.row-btn span { flex: 1; }
.row-btn .right { flex: none; }
.row-btn.danger, .row-btn.danger .ic { color: var(--danger); }
.row-btn.accent, .row-btn.accent .ic { color: var(--accent); }
.screen.page .auth-card { margin: 10px auto; }
.screen.page .auth-card h1 { font-size: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; }
.stats div { background: var(--panel); border-radius: 12px; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; }
.stats b { font-size: 18px; color: var(--accent); }
.stats small { font-size: 12px; color: var(--muted); }
.bubble:not(.media):not(:has(.text)) { padding-bottom: 20px; }
