/* VayBaba messenger v0.1 */
@font-face { font-family: Inter; src: url(/fonts/inter-400.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-600.woff) format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-800.woff) format('woff'); font-weight: 800; font-display: swap; }

:root {
  --bg: #ffffff; --surface: #f4f5fa; --surface2: #eceef6; --text: #14162b; --muted: #747a95; --line: #e7e9f2;
  --accent: #5b4bff; --accent-2: #3b6cff; --grad: linear-gradient(135deg, #3b6cff 0%, #8a3dff 100%);
  --in: #f0f1f8; --in-text: #14162b; --out-text: #fff; --danger: #e5484d; --ok: #18a058; --read: #7ee0ff;
  --shadow: 0 10px 30px rgba(20, 22, 43, .12); --radius: 18px; --nav-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1120; --surface: #171a2c; --surface2: #20243a; --text: #eef0ff; --muted: #9298b8; --line: #262a42;
  --in: #22263d; --in-text: #eef0ff; --shadow: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1120; --surface: #171a2c; --surface2: #20243a; --text: #eef0ff; --muted: #9298b8; --line: #262a42;
  --in: #22263d; --in-text: #eef0ff; --shadow: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { overflow: hidden; overscroll-behavior: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 18px; height: 18px; }

/* Uygulama ekrana sabit: klavye acilip kapaninca sayfa kaymaz, alt menu hep gorunur */
#app { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.boot { flex: 1; display: grid; place-items: center; }
.boot-logo { width: 56px; height: 56px; border-radius: 18px; background: var(--grad); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.88); opacity: .7; } }

/* ---------- giris ekranlari ---------- */
.auth { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 24px 16px calc(24px + var(--safe-b)); background:
  radial-gradient(900px 500px at 10% -10%, rgba(59, 108, 255, .14), transparent 60%), radial-gradient(700px 500px at 110% 110%, rgba(138, 61, 255, .14), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.brand .mark { width: 46px; height: 46px; border-radius: 15px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.5px; box-shadow: 0 8px 20px rgba(91, 75, 255, .35); }
.brand b { font-size: 21px; letter-spacing: -.3px; }
.brand small { display: block; color: var(--muted); font-size: 13px; }
.lang-select { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; outline: none; }
.auth h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -.4px; }
.auth p.lead { color: var(--muted); margin: 0 0 22px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px 2px; color: var(--muted); }
.input, .textarea, select.input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .15s, background .15s; }
.input:focus, .textarea:focus { border-color: var(--accent); background: var(--bg); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 2px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; background: var(--surface2); transition: transform .08s, filter .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(91, 75, 255, .28); }
.btn.danger { background: rgba(229, 72, 77, .12); color: var(--danger); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .55; pointer-events: none; }
.linkbtn { color: var(--accent); font-weight: 600; padding: 6px 2px; }
.auth .alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.err { background: rgba(229, 72, 77, .1); color: var(--danger); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.okbox { background: rgba(24, 160, 88, .1); color: var(--ok); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.code-input { letter-spacing: 8px; font-size: 22px; text-align: center; font-weight: 600; }
.invite-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); margin-bottom: 18px; }

/* ---------- ana kabuk ---------- */
.shell { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.pane { min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.list-pane { position: relative; }
.chat-pane { display: none; }
.shell.in-chat .list-pane { display: none; }
.shell.in-chat .chat-pane { display: flex; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 380px minmax(0, 1fr); }
  .shell .list-pane, .shell.in-chat .list-pane { display: flex; border-right: 1px solid var(--line); }
  .shell .chat-pane { display: flex; }
  .bottom-nav { position: static !important; }
}
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; min-height: 60px; }
.topbar h2 { font-size: 24px; margin: 0; flex: 1; letter-spacing: -.5px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text); flex: none; position: relative; }
.icon-btn.plain { background: none; }
.icon-btn:active { filter: brightness(.95); }
.search { margin: 0 14px 8px; position: relative; }
.search .input { padding-left: 40px; border-radius: 999px; background: var(--surface); border-color: transparent; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.list-pane .scroll { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 8px); }
@media (min-width: 900px) { .list-pane .scroll { padding-bottom: 8px; } }

.stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 14px 12px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { width: 62px; flex: none; text-align: center; font-size: 12px; color: var(--muted); }
.story .av { margin: 0 auto 5px; }
.story span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story.add .av { background: var(--surface) !important; color: var(--accent); border: 2px dashed var(--line); }

.av { width: 52px; height: 52px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; background-size: cover; background-position: center; user-select: none; }
.av.sm { width: 40px; height: 40px; font-size: 15px; }
.av.xs { width: 30px; height: 30px; font-size: 12px; }
.av.lg { width: 96px; height: 96px; font-size: 34px; }
.av .dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: #2ecc71; border: 2.5px solid var(--bg); }
.av.sm .dot { width: 11px; height: 11px; border-width: 2px; }
.av.group-av { background: var(--grad); }

.row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; width: 100%; text-align: left; border-radius: 0; position: relative; }
.row:hover { background: var(--surface); }
.row.active { background: var(--surface2); }
.row .main { flex: 1; min-width: 0; }
.row .t1 { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.row .t1 .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .time { font-size: 12px; color: var(--muted); font-weight: 400; flex: none; }
.row .t2 { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-top: 2px; }
.row .t2 .prev { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.unread .t2 .prev { color: var(--text); font-weight: 600; }
.row.unread .time { color: var(--accent); font-weight: 600; }
.badge { min-width: 21px; height: 21px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; flex: none; }
.badge.muted { background: var(--muted); }
.typing-txt { color: var(--accent) !important; font-weight: 600; }
.section-h { font-size: 13px; font-weight: 700; color: var(--muted); padding: 14px 16px 6px; text-transform: uppercase; letter-spacing: .4px; }
.empty { text-align: center; color: var(--muted); padding: 40px 24px; }
.empty .big { width: 72px; height: 72px; border-radius: 24px; background: var(--surface); display: grid; place-items: center; margin: 0 auto 14px; color: var(--accent); }
.empty .big svg { width: 34px; height: 34px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

.bottom-nav { position: absolute; left: 0; right: 0; bottom: 0; display: flex; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); z-index: 5; }
.bottom-nav button { flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); position: relative; }
.bottom-nav button.on { color: var(--accent); }
.bottom-nav .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
.fab { position: absolute; right: 18px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(91, 75, 255, .4); z-index: 4; }
@media (min-width: 900px) { .fab { bottom: calc(var(--nav-h) + 16px); } }

/* ---------- sohbet ---------- */
.chat-head { display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-t)) 10px 8px; border-bottom: 1px solid var(--line); min-height: 62px; background: var(--bg); }
.chat-head .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.chat-head .who .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .who .st { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head .who .st.on { color: var(--ok); }
@media (min-width: 900px) { .chat-head .back { display: none; } }
.msgs { flex: 1; overflow-y: auto; padding: 10px 12px 6px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.msgs .spacer { flex: 1; }
.day { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); padding: 4px 12px; border-radius: 999px; margin: 12px 0 8px; }
.sys { align-self: center; font-size: 12.5px; color: var(--muted); background: var(--surface); padding: 5px 12px; border-radius: 12px; margin: 6px 0; text-align: center; max-width: 85%; }
.m { display: flex; align-items: flex-end; gap: 6px; margin-top: 2px; max-width: 100%; }
.m.out { flex-direction: row-reverse; }
.m.gap { margin-top: 10px; }
.m .av.xs { visibility: hidden; }
.m.last-in-group .av.xs { visibility: visible; }
.bubble { max-width: min(78%, 560px); padding: 8px 12px 6px; border-radius: 20px; background: var(--in); color: var(--in-text); position: relative; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, .03); user-select: text; -webkit-user-select: text; }
.m.out .bubble { background: var(--grad); background-attachment: fixed; color: var(--out-text); }
.m.in:not(.last-in-group) .bubble { border-bottom-left-radius: 6px; }
.m.in.first-in-group:not(.last-in-group) .bubble { border-bottom-left-radius: 6px; }
.m.in:not(.first-in-group) .bubble { border-top-left-radius: 6px; }
.m.out:not(.last-in-group) .bubble { border-bottom-right-radius: 6px; }
.m.out:not(.first-in-group) .bubble { border-top-right-radius: 6px; }
.bubble .sender { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 1px; }
.bubble .meta { float: right; margin: 6px 0 -2px 10px; font-size: 11px; opacity: .75; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; line-height: 1; }
.bubble .meta svg { width: 16px; height: 16px; stroke-width: 2.2; }
.bubble .meta .read { color: var(--read); opacity: 1; }
.m.in .bubble .meta .read { color: var(--accent); }
.bubble.deleted { font-style: italic; opacity: .7; }
.bubble.big-emoji { background: none !important; box-shadow: none; font-size: 40px; line-height: 1.15; padding: 2px 4px; color: var(--text) !important; }
.bubble.big-emoji .meta { color: var(--muted); font-size: 11px; }
.bubble a { color: inherit; text-decoration: underline; }
.quote { display: block; border-left: 3px solid currentColor; padding: 4px 8px; margin: 2px 0 6px; border-radius: 8px; background: rgba(127, 127, 160, .14); font-size: 13.5px; opacity: .9; text-align: left; width: 100%; white-space: normal; }
.quote b { display: block; font-size: 12.5px; }
.quote span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m.pending .bubble { opacity: .75; }
.m.failed .bubble { outline: 2px solid var(--danger); }
.m.flash .bubble { animation: flash 1.2s ease; }
@keyframes flash { 30% { transform: scale(1.03); filter: brightness(1.15); } }
.load-more { align-self: center; margin: 6px 0; }
.jump { position: absolute; right: 16px; bottom: 86px; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 3; }
.jump .badge { position: absolute; top: -6px; right: -4px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.notice { margin: 10px 12px 4px; padding: 12px; border-radius: 16px; background: var(--surface); font-size: 14px; text-align: center; }
.notice .acts { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-b)); background: var(--bg); border-top: 1px solid var(--line); }
.composer .box { flex: 1; background: var(--surface); border-radius: 22px; display: flex; flex-direction: column; min-width: 0; }
.composer .replying { display: flex; align-items: center; gap: 8px; padding: 8px 8px 0 14px; font-size: 13px; }
.composer .replying .quote { margin: 0; flex: 1; }
.composer textarea { border: 0; outline: 0; background: none; resize: none; padding: 11px 16px; max-height: 140px; min-height: 44px; line-height: 1.4; width: 100%; }
.send, .mic { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; transition: transform .1s; }
.send:disabled { opacity: .45; }
.send svg { margin-left: 2px; }
.blocked-bar { padding: 14px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); padding-bottom: calc(14px + var(--safe-b)); }
.no-chat { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.no-chat .mark { width: 80px; height: 80px; border-radius: 26px; background: var(--grad); margin: 0 auto 16px; opacity: .9; display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 800; }

/* ---------- sayfa (ayarlar, profil, yonetim) ---------- */
.page { flex: 1; overflow-y: auto; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 20px); }
.page.no-nav { padding-bottom: calc(var(--safe-b) + 20px); }
.card { background: var(--surface); border-radius: var(--radius); margin: 10px 14px; overflow: hidden; }
.card .row:hover { background: var(--surface2); }
.card .row + .row { border-top: 1px solid var(--line); }
.card .pad { padding: 14px; }
.row .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--bg); color: var(--accent); flex: none; }
.row .chev { color: var(--muted); }
.row .val { color: var(--muted); font-size: 14px; }
.row.danger, .row.danger .ic { color: var(--danger); }
.profile-head { text-align: center; padding: 16px 14px 8px; }
.profile-head .av { margin: 0 auto 10px; }
.profile-head h3 { margin: 0; font-size: 21px; }
.profile-head .u { color: var(--muted); }
.profile-head .status { margin-top: 6px; }
.av-edit { position: relative; display: inline-block; }
.av-edit .cam { position: absolute; right: -2px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; border: 3px solid var(--bg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 14px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; }
.chip.on { background: var(--grad); color: #fff; }
.qr { background: #fff; border-radius: 18px; padding: 10px; width: 220px; height: 220px; margin: 6px auto 12px; }
.qr svg { width: 100%; height: 100%; display: block; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; text-align: center; }
.codes span { background: var(--bg); border-radius: 10px; padding: 8px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px; }
.kv div { background: var(--surface); border-radius: 16px; padding: 12px; }
.kv b { display: block; font-size: 22px; }
.kv span { font-size: 12.5px; color: var(--muted); }
.tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--muted); }
.tag.red { background: rgba(229, 72, 77, .14); color: var(--danger); }
.tag.blue { background: rgba(91, 75, 255, .14); color: var(--accent); }
.mini-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px 66px; }
.report { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.report pre { white-space: pre-wrap; background: var(--bg); padding: 8px 10px; border-radius: 10px; margin: 8px 0; font: inherit; max-height: 180px; overflow: auto; }

/* ---------- alt sayfa / menu ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(10, 12, 26, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--bg); width: 100%; max-width: 520px; max-height: 92dvh; border-radius: 26px 26px 0 0; display: flex; flex-direction: column; animation: up .22s cubic-bezier(.2, .8, .2, 1); padding-bottom: var(--safe-b); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 26px; max-height: 86dvh; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto 0; }
.sheet .sh-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.sheet .sh-head h3 { flex: 1; margin: 0; font-size: 18px; }
.sheet .sh-body { overflow-y: auto; padding: 4px 0 14px; }
.sheet .sh-foot { padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.sheet .pad { padding: 0 14px; }
.menu .row { padding: 13px 18px; font-weight: 500; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; }
.row.sel .check { background: var(--grad); border-color: transparent; }
.picked { display: flex; gap: 10px; overflow-x: auto; padding: 4px 14px 10px; }
.picked .story { width: 56px; }

#toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: #1d2036; color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translateX(-50%); }
.offline { background: #e8a317; color: #1d1f2b; text-align: center; font-size: 13px; font-weight: 600; padding: 4px; }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .7s linear infinite; margin: 16px auto; }
@keyframes rot { to { transform: rotate(360deg); } }

/* guncelleme sayfasi */
.upd-step { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--muted); }
.upd-step.done, .upd-step.cur { color: var(--text); }
.upd-step.fail { color: var(--danger); }
.upd-step .dotc { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.upd-step.done .dotc { background: var(--ok); border-color: var(--ok); color: #fff; }
.upd-step.fail .dotc { background: var(--danger); border-color: var(--danger); color: #fff; }
.mini-spin { width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .7s linear infinite; }
.upd-log { white-space: pre-wrap; font-size: 12px; margin: 8px 0 0; max-height: 160px; overflow: auto; }
.upbar { height: 8px; border-radius: 9px; background: var(--surface2); overflow: hidden; margin: 4px 0 12px; }
.upbar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* arama ekrani */
.call { position: fixed; inset: 0; z-index: 80; color: #fff; display: flex; flex-direction: column; background: #0b0d1a; }
.call-bg { position: absolute; inset: 0; background: radial-gradient(700px 500px at 20% 10%, rgba(59,108,255,.45), transparent 60%), radial-gradient(700px 600px at 90% 90%, rgba(138,61,255,.45), transparent 60%), #0b0d1a; }
.call-bg.hidden-bg { display: none; }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.call-local { position: absolute; right: 14px; top: calc(14px + var(--safe-t)); width: 110px; height: 160px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.6); z-index: 3; transform: scaleX(-1); background: #222; }
.call-top { position: relative; z-index: 2; text-align: center; padding: calc(70px + var(--safe-t)) 20px 0; }
.call-top .av { margin: 0 auto 18px; box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 22px rgba(255,255,255,.04); }
.call-top.over-video { padding-top: calc(20px + var(--safe-t)); text-align: left; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.call-name { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.call-status { opacity: .85; margin-top: 4px; font-variant-numeric: tabular-nums; }
.call-diag { position: relative; z-index: 2; margin: 20px 18px 0; padding: 12px 14px; border-radius: 14px; background: rgba(229,72,77,.9); font-size: 14px; }
.call-ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(34px + var(--safe-b)); display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 0 12px; }
.cbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 600; min-width: 64px; }
.cbtn svg { width: 60px; height: 60px; padding: 17px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-sizing: border-box; }
.cbtn.on svg { background: #fff; color: #111; }
.cbtn.red svg { background: #e5484d; }
.cbtn.green svg { background: #18a058; animation: pulse 1.2s ease-in-out infinite; }
.bubble .tr-toggle { display: flex; align-items: center; gap: 4px; margin-top: 4px; padding: 0; border: 0; background: none; color: inherit; opacity: .7; font: inherit; font-size: 11.5px; cursor: pointer; }
.bubble .tr-toggle svg { width: 13px; height: 13px; }
.composer .mic.rec { background: var(--danger); animation: micpulse 1.2s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); } 50% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } }
.composer .send[hidden], .composer .mic[hidden] { display: none; }
/* v0.2.2: iki dugme (gonder / cevir ve gonder), tasma ve yakinlastirma onlemi */
html, body, #app { max-width: 100vw; overflow-x: hidden; }
body { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.composer { min-width: 0; }
.composer .box { min-width: 0; }
.trsend { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--accent); border: 1.5px solid var(--line); transition: transform .1s; }
.trsend:active, .send:active, .mic:active { transform: scale(.92); }
.composer .trsend[hidden] { display: none; }
.bubble .meta .trd svg { width: 12px; height: 12px; opacity: .85; }
@media (max-width: 380px) {
  .composer { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .send, .mic, .trsend { width: 40px; height: 40px; }
  .send svg, .mic svg, .trsend svg { width: 20px; height: 20px; }
}
@media (min-width: 700px) { .send, .mic, .trsend { width: 48px; height: 48px; } }
.call-q { margin-top: 4px; font-size: 11.5px; opacity: .75; font-variant-numeric: tabular-nums; }
/* v0.2.4: emoji seti, panel, tepkiler, anahtar */
.rxe { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.3em; margin: 0 0.04em; transform-origin: 50% 60%; line-height: 0; }
.rxe svg { width: 100%; height: 100%; overflow: visible; display: block; }
.bubble.big-emoji .rxe, .rxe.rxe-big { width: 56px; height: 56px; vertical-align: middle; margin: 0 2px; }
.rxe-bounce { animation: rxBounce 1.4s ease-in-out infinite; }
.rxe-wiggle { animation: rxWiggle 1.6s ease-in-out infinite; }
.rxe-wave { animation: rxWave 1.1s ease-in-out infinite; transform-origin: 70% 90%; }
.rxe-tilt { animation: rxTilt 1.2s ease-in-out infinite; }
.rxe-pulse { animation: rxPulse 1.1s ease-in-out infinite; }
.rxe-shake { animation: rxShake .5s linear infinite; }
.rxe-float { animation: rxFloat 2.4s ease-in-out infinite; }
.rxe-spin { animation: rxSpin 3s linear infinite; transform-origin: 50% 50%; }
.rxe-melt { animation: rxMelt 2s ease-in-out infinite; transform-origin: 50% 100%; }
.rxe-flicker { animation: rxFlicker .8s ease-in-out infinite; transform-origin: 50% 100%; }
.rxe-look { animation: rxLook 2.2s ease-in-out infinite; }
/* kucuk (yazi icindeki) emojiler sakin: hareket sadece buyuk emojide ve tepkilerde */
.bubble:not(.big-emoji) .rxe:not(.rxe-big) { animation: none; }
.bubble:not(.big-emoji):hover .rxe { animation-play-state: running; }
@keyframes rxBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12%); } 60% { transform: translateY(0) scale(1.04, .96); } }
@keyframes rxWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes rxWave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 75% { transform: rotate(14deg); } }
@keyframes rxTilt { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes rxPulse { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.16); } 40% { transform: scale(1); } 60% { transform: scale(1.1); } }
@keyframes rxShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4%); } 75% { transform: translateX(4%); } }
@keyframes rxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9%); } }
@keyframes rxSpin { to { transform: rotate(360deg); } }
@keyframes rxMelt { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.88) scaleX(1.06); } }
@keyframes rxFlicker { 0%, 100% { transform: scale(1) skewX(0); } 30% { transform: scale(1.06, 1.1) skewX(-4deg); } 60% { transform: scale(.96, 1.02) skewX(4deg); } }
@keyframes rxLook { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-7%); } 65% { transform: translateX(7%); } }
@media (prefers-reduced-motion: reduce) { .rxe { animation: none !important; } }
.composer .emo-btn { flex: none; width: 42px; height: 46px; display: grid; place-items: center; }
.composer .emo-btn .rxe { width: 26px; height: 26px; vertical-align: 0; }
.emoji-panel { height: min(300px, 42vh); display: flex; flex-direction: column; border-top: 1px solid var(--line); background: var(--bg); padding-bottom: var(--safe-b); }
.sh-body .emoji-panel { height: 340px; border-top: 0; }
.emoji-top { padding: 8px 10px 4px; }
.emoji-search { padding: 8px 12px; border-radius: 999px; }
.emoji-tabs { display: flex; gap: 4px; padding: 2px 8px 4px; overflow-x: auto; scrollbar-width: none; }
.etab { flex: none; width: 44px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.etab.on { background: var(--surface); color: var(--accent); }
.etab .rxe { width: 24px; height: 24px; vertical-align: 0; }
.emoji-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 2px; padding: 4px 8px 10px; align-content: start; }
.ecell { height: 48px; border-radius: 12px; display: grid; place-items: center; }
.ecell:hover, .ecell:focus-visible { background: var(--surface); }
.ecell:active { transform: scale(.88); }
.ecell .rxe { width: 34px; height: 34px; vertical-align: 0; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; clear: both; }
.react { display: inline-flex; align-items: center; gap: 3px; min-height: 28px; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text); }
.react.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.react .rxe { width: 18px; height: 18px; vertical-align: 0; animation-play-state: running !important; }
.react-pick { display: flex; justify-content: space-between; gap: 4px; padding: 6px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.rp { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.rp.on { outline: 2px solid var(--accent); }
.rp .rxe { width: 30px; height: 30px; vertical-align: 0; }
.rp.more svg { width: 22px; height: 22px; }
.switch { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch.on { background: var(--ok, #22B573); }
.switch.on .knob { transform: translateX(20px); }
.warn-box, .ok-box { display: flex; gap: 10px; align-items: flex-start; margin: 4px 16px 12px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.warn-box { background: rgba(229, 72, 77, .12); color: var(--danger); }
.ok-box { background: rgba(34, 181, 115, .12); color: var(--ok, #15803D); }
.warn-box svg, .ok-box svg { flex: none; margin-top: 1px; }
.bubble .reacts .react .rxe { width: 18px; height: 18px; margin: 0; }
.bubble.big-emoji .reacts { justify-content: flex-end; }
.push-banner { display: flex; align-items: center; gap: 10px; margin: 4px 12px 8px; padding: 12px 12px 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.push-banner > svg { flex: none; color: var(--accent); }
.push-banner .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.35; }
.push-banner .main span { color: var(--muted); }
/* v0.3.0: medya */
.composer .attach-btn { flex: none; width: 38px; height: 46px; display: grid; place-items: center; color: var(--muted); }
.bubble.has-media { padding: 4px; }
.bubble.has-media > :not(.mimg):not(.mvid):not(.maud):not(.mfile):not(.quote):not(.reacts) { margin-left: 8px; margin-right: 8px; }
.bubble.has-media .quote { margin: 2px 2px 6px; }
.bubble.has-media .meta { margin: 4px 8px 2px 10px; }
.mimg { display: block; position: relative; overflow: hidden; border-radius: 14px; background: var(--surface) center / cover no-repeat; padding: 0; max-width: 100%; }
.mimg img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.mimg.loaded img { opacity: 1; }
.mvid { position: relative; }
.mvid video { display: block; border-radius: 14px; background: #000; max-width: 100%; }
.mprog { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.35); overflow: hidden; }
.mfile .mprog, .maud .mprog { position: static; margin: 6px 4px 0; background: var(--line); }
.mprog .bar { height: 100%; background: #fff; transition: width .2s; }
.mfile .mprog .bar, .maud .mprog .bar { background: var(--accent); }
.mfile { display: flex; align-items: center; gap: 10px; min-width: 200px; max-width: 280px; padding: 8px 6px 4px 8px; }
.mfile .fic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.m.out .mfile .fic { background: rgba(255,255,255,.2); color: #fff; }
.mfile .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mfile .main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.mfile .main span { font-size: 12px; opacity: .75; }
.m.out .mfile a { color: #fff; }
.maud { min-width: 220px; padding: 6px 6px 0; }
.vp { display: flex; align-items: center; gap: 10px; }
.vplay { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.m.out .vplay { background: #fff; color: var(--accent); }
.vplay svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.wave { flex: 1; height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; min-width: 120px; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: currentColor; opacity: .35; }
.wave i.on { opacity: 1; }
.vt { flex: none; font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; min-width: 32px; }
.viewer { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.viewer img { max-width: 100%; max-height: calc(100% - 140px); object-fit: contain; }
.viewer .vbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t)) 8px 8px; background: linear-gradient(rgba(0,0,0,.6), transparent); }
.viewer .vbar .icon-btn { color: #fff; }
.viewer .vname { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.viewer .vname small { font-weight: 400; opacity: .7; }
.viewer .vcap { position: absolute; bottom: calc(16px + var(--safe-b)); left: 16px; right: 16px; text-align: center; font-size: 15px; }
.mprev { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.mprev img, .mprev video { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; background: #000; }
.mprev:has(> :only-child) { grid-template-columns: 1fr; }
.mprev .mfile { background: var(--surface); border-radius: 12px; max-width: none; }
.composer .box { position: relative; }
.recbar { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 22px; background: var(--surface); font-variant-numeric: tabular-nums; }
.recbar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: rxPulse 1s infinite; }
.recbar .reclv { flex: 1; height: 24px; display: flex; align-items: center; gap: 2px; justify-content: flex-end; overflow: hidden; }
.recbar .reclv i { width: 3px; border-radius: 2px; background: var(--accent); }
.recbar .hint { font-size: 12px; white-space: nowrap; }
@media (max-width: 380px) { .recbar .hint { display: none; } .composer .attach-btn { width: 32px; } .composer .emo-btn { width: 34px; } }
.composer .mic.rec { background: var(--danger); transform: scale(1.15); }
.bubble.has-media .mcap { padding: 6px 8px 0; }
/* v0.3.1: krediler, isleniyor */
.mprog { display: flex; align-items: center; }
.mprog .bar { flex: none; }
.mprog .plabel { position: absolute; right: 6px; top: -20px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.mfile .mprog, .maud .mprog { position: relative; }
.mfile .mprog .plabel, .maud .mprog .plabel { color: inherit; text-shadow: none; top: -16px; }
.mprog.busy .bar { width: 100% !important; animation: rxBusy 1.2s ease-in-out infinite; }
@keyframes rxBusy { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.hd-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 2px 4px; cursor: pointer; }
.hd-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.hd-row span { display: flex; flex-direction: column; gap: 2px; }
.hd-row small { color: var(--muted); font-size: 12.5px; }
.est { margin-top: 10px; }
.est.err { color: var(--danger); }
.credit-hero { margin: 8px 16px 4px; padding: 22px 20px; border-radius: 22px; background: var(--grad); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.credit-hero .big { font-size: 40px; font-weight: 800; line-height: 1; }
.credit-hero .hint { color: rgba(255,255,255,.85); }
.cbar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; margin-top: 8px; }
.cbar i { display: block; height: 100%; background: #fff; border-radius: 4px; }
.row .val.plus { color: var(--ok, #15803D); font-weight: 700; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.cfield { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.cfield .input { color: var(--text); }
/* v0.3.2: kilitli ses kaydi ve onizleme */
.recbar { gap: 8px; padding: 0 6px 0 4px; }
.recbar .rdel { flex: none; width: 36px; height: 36px; color: var(--danger); }
.recbar .rstop { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--danger); display: grid; place-items: center; }
.recbar .rstop .sq { width: 12px; height: 12px; border-radius: 2px; background: #fff; }
.recbar.preview .vplay { width: 36px; height: 36px; }
.recbar.preview .rsend { width: 36px; height: 36px; }
.recbar.preview .rsend svg { width: 18px; height: 18px; }
.recbar.preview .reclv { justify-content: flex-start; }
.recbar.preview .reclv i { background: var(--muted); }
.composer:has(.recbar.preview) .mic { display: none; }

/* ================= v0.3.3 yeni tasarim: turkuaz koyu / desenli acik ================= */
@font-face { font-family: Rajdhani; src: url(/fonts/rajdhani-500.woff) format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: Rajdhani; src: url(/fonts/rajdhani-600.woff) format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: Rajdhani; src: url(/fonts/rajdhani-700.woff) format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-400.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-600.woff) format('woff'); font-weight: 600; font-display: swap; }
@font-face { font-family: Saira; src: url(/fonts/saira-600.woff) format('woff'); font-weight: 600; font-display: swap; }
:root {
  --f-head: Rajdhani, Saira, system-ui, sans-serif; --f-body: Archivo, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --f-num: Saira, Archivo, system-ui, sans-serif;
  --bg: #F3F8F7; --surface: #FFFFFF; --surface2: #EAF3F2; --text: #0B1F22; --muted: #4D6764; --line: #DDE9E7;
  --accent: #0D9488; --accent-2: #0F766E; --grad: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  --in: #FFFFFF; --in-text: #0B1F22; --in-line: #E3ECEA; --out-text: #FFFFFF; --read: #99F6E4; --on-accent: #FFFFFF;
  --chat-bg: #EAF3F2; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%230D9488' stroke-opacity='.11' stroke-width='1.2'%3E%3Cpath d='M14 22a8 8 0 1 1 6 7.7L16 32v-4.2A8 8 0 0 1 14 22z'/%3E%3Cpath d='M70 18l4 8 9 1-6.5 6 1.6 9-8.1-4.4-8.1 4.4 1.6-9-6.5-6 9-1z'/%3E%3Cpath d='M30 78c4-6 10-6 14 0s10 6 14 0'/%3E%3Ccircle cx='96' cy='80' r='6'/%3E%3Cpath d='M88 104h16M96 96v16'/%3E%3Cpath d='M8 104l6-6 6 6-6 6z'/%3E%3C/g%3E%3C/svg%3E"); --glow: rgba(15, 118, 110, .18);
  --shadow: 0 12px 30px rgba(11, 31, 34, .08);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #071315; --surface: #0F2225; --surface2: #142D31; --text: #E7F5F3; --muted: #93B5B0; --line: rgba(94, 234, 212, .10);
  --accent: #2DD4BF; --accent-2: #14B8A6; --grad: linear-gradient(135deg, #2DD4BF 0%, #17A398 100%);
  --in: rgba(255, 255, 255, .045); --in-text: #E7F5F3; --in-line: rgba(255, 255, 255, .09); --out-text: #03201C; --read: #064E47; --on-accent: #03201C;
  --chat-bg: #0A1A1D; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232DD4BF' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M14 22a8 8 0 1 1 6 7.7L16 32v-4.2A8 8 0 0 1 14 22z'/%3E%3Cpath d='M70 18l4 8 9 1-6.5 6 1.6 9-8.1-4.4-8.1 4.4 1.6-9-6.5-6 9-1z'/%3E%3Cpath d='M30 78c4-6 10-6 14 0s10 6 14 0'/%3E%3Ccircle cx='96' cy='80' r='6'/%3E%3Cpath d='M88 104h16M96 96v16'/%3E%3Cpath d='M8 104l6-6 6 6-6 6z'/%3E%3C/g%3E%3C/svg%3E"); --glow: rgba(45, 212, 191, .18); --shadow: 0 12px 30px rgba(0, 0, 0, .4); } }
:root[data-theme="dark"] {
  --bg: #071315; --surface: #0F2225; --surface2: #142D31; --text: #E7F5F3; --muted: #93B5B0; --line: rgba(94, 234, 212, .10);
  --accent: #2DD4BF; --accent-2: #14B8A6; --grad: linear-gradient(135deg, #2DD4BF 0%, #17A398 100%);
  --in: rgba(255, 255, 255, .045); --in-text: #E7F5F3; --in-line: rgba(255, 255, 255, .09); --out-text: #03201C; --read: #064E47; --on-accent: #03201C;
  --chat-bg: #0A1A1D; --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232DD4BF' stroke-opacity='.07' stroke-width='1.2'%3E%3Cpath d='M14 22a8 8 0 1 1 6 7.7L16 32v-4.2A8 8 0 0 1 14 22z'/%3E%3Cpath d='M70 18l4 8 9 1-6.5 6 1.6 9-8.1-4.4-8.1 4.4 1.6-9-6.5-6 9-1z'/%3E%3Cpath d='M30 78c4-6 10-6 14 0s10 6 14 0'/%3E%3Ccircle cx='96' cy='80' r='6'/%3E%3Cpath d='M88 104h16M96 96v16'/%3E%3Cpath d='M8 104l6-6 6 6-6 6z'/%3E%3C/g%3E%3C/svg%3E"); --glow: rgba(45, 212, 191, .18); --shadow: 0 12px 30px rgba(0, 0, 0, .4); }
html, body { font-family: var(--f-body); font-size: 15px; }
svg.i { stroke-width: 1.5; }
svg.i.s { stroke-width: 1.6; }
.send, .mic, .fab, .badge, .btn.primary, .credit-hero, .vplay, .m.out .bubble { color: var(--on-accent); }
.send svg, .mic svg, .fab svg { stroke-width: 1.7; }
/* baslik */
.topbar { padding-top: calc(16px + var(--safe-t)); }
.topbar h2 { font-family: var(--f-head); font-weight: 500; font-size: 21px; letter-spacing: 5px; text-transform: uppercase; }
.topbar h2 .kick { display: flex; align-items: center; gap: 8px; font-family: var(--f-num); font-weight: 600; font-size: 9.5px; letter-spacing: 4.5px; color: var(--accent); margin-bottom: 6px; padding-left: 30px; background: linear-gradient(var(--accent), var(--accent)) left center / 22px 1px no-repeat; }
.icon-btn { background: transparent; border: 1px solid var(--line); }
.icon-btn.plain { border: 0; }
.search .input { background: var(--surface); border: 1px solid var(--line); font-weight: 400; }
.section-h { font-family: var(--f-head); font-weight: 600; font-size: 12px; letter-spacing: 3px; }
/* liste */
.av { font-family: var(--f-head); font-weight: 700; letter-spacing: .5px; }
.av .dot { background: var(--accent); border-color: var(--bg); }
.story .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
.story.add .av { box-shadow: none; }
.row .t1 { font-family: var(--f-head); font-weight: 600; font-size: 17px; letter-spacing: .8px; }
.row .time { font-family: var(--f-body); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.row .t2 { font-size: 14px; }
.scroll .row:not(.card .row) { padding: 11px 16px; }
.scroll .row:not(.card .row) .main { padding-bottom: 11px; margin-bottom: -11px; border-bottom: 1px solid var(--line); }
.row:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.row.active { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.row.unread .t2 .prev { color: var(--text); font-weight: 400; }
.badge { font-family: var(--f-num); font-weight: 600; background: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); }
/* alt menu: havada duran kapsul */
.bottom-nav { left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); padding-bottom: 0; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow); }
.bottom-nav button { font-family: var(--f-head); font-weight: 500; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.bottom-nav button.on { font-weight: 700; }
.list-pane .scroll { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 28px); }
.page { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 34px); }
.fab { bottom: calc(var(--nav-h) + var(--safe-b) + 26px); border-radius: 50%; box-shadow: 0 10px 26px var(--glow); }
/* sohbet ekrani */
.chat-pane { background: var(--chat-bg) var(--pattern) repeat; background-size: 120px 120px; }
.chat-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-head .who .nm { font-family: var(--f-head); font-weight: 600; font-size: 17px; letter-spacing: 1.6px; text-transform: uppercase; }
.chat-head .who .st.on { color: var(--accent); }
.day { font-family: var(--f-num); font-weight: 600; font-size: 9.5px; letter-spacing: 3.5px; text-transform: uppercase; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.sys { background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.m.gap { margin-top: 14px; }
.bubble { padding: 9px 14px 7px; border-radius: 22px; line-height: 1.45; }
.m.in .bubble:not(.big-emoji) { background: var(--in); border: 1px solid var(--in-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.m.out .bubble:not(.big-emoji) { background: var(--grad); background-attachment: scroll; box-shadow: 0 6px 18px var(--glow); }
.m.in.first-in-group .bubble { border-top-left-radius: 5px; }
.m.out.first-in-group .bubble { border-top-right-radius: 5px; }
.m.in:not(.last-in-group) .bubble, .m.in.first-in-group:not(.last-in-group) .bubble { border-bottom-left-radius: 22px; }
.m.out:not(.last-in-group) .bubble { border-bottom-right-radius: 22px; }
.m.in:not(.first-in-group) .bubble { border-top-left-radius: 22px; }
.m.out:not(.first-in-group) .bubble { border-top-right-radius: 22px; }
.bubble .meta { font-variant-numeric: tabular-nums; font-size: 10.5px; }
.bubble .sender { font-family: var(--f-head); font-weight: 600; letter-spacing: .6px; }
.m.out .quote { background: rgba(0, 0, 0, .08); }
/* mesaj kutusu: havada duran kapsul */
.composer { background: transparent; border-top: 0; padding: 8px 10px calc(10px + var(--safe-b)); }
.composer .box { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.composer textarea { font-weight: 400; }
.send, .mic { box-shadow: 0 8px 20px var(--glow); }
.composer .emo-btn, .composer .attach-btn { color: var(--muted); }
.emoji-panel { background: var(--surface); border-top: 1px solid var(--line); }
.blocked-bar { background: var(--surface); }
/* diger */
.btn.primary { background: var(--grad); box-shadow: 0 8px 22px var(--glow); }
.chip.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-color: var(--accent); }
.auth { background: radial-gradient(900px 500px at 10% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), radial-gradient(700px 500px at 110% 110%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 60%), var(--bg); }
.boot-logo, .no-chat .mark { background: var(--grad); }
.no-chat { background: transparent; }
h1, h2, h3 { font-family: var(--f-head); letter-spacing: .5px; }
.sheet .sh-head h3 { font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 16px; }
.credit-hero .big { font-family: var(--f-head); font-weight: 600; letter-spacing: 1px; }
.vplay { background: var(--accent); }
.m.out .vplay { background: rgba(255, 255, 255, .85); color: var(--accent-2); }
.wave i { background: currentColor; }
.m.out .mfile .fic { color: var(--on-accent); background: rgba(0, 0, 0, .10); }
.m.out .mfile a, .m.out .mfile .main span { color: var(--on-accent); }
.m.out .bubble:not(.big-emoji) { box-shadow: 0 3px 10px var(--glow); }
.m { margin-top: 3px; }
.updbar { display: flex; align-items: center; justify-content: center; gap: 12px; background: #2ad1c0; color: #06201d; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.updbar[hidden] { display: none; }
.updbar button { background: #06201d; color: #2ad1c0; border: 0; border-radius: 999px; padding: 4px 14px; font: inherit; cursor: pointer; }
/* Muzik oynatici */
.mmus { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 320px; padding: 8px 6px 6px 8px; }
.mmus .mcover { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.mmus .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mmus .main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.mmus .main > span { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mmus .mrow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mmus .vplay { width: 34px; height: 34px; }
.mmus .vt { font-size: 11px; opacity: .8; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mseek { flex: 1; min-width: 60px; height: 4px; -webkit-appearance: none; appearance: none; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--line) var(--p, 0%)); outline: none; }
.mseek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
.mseek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 0; }
.mmus .mprog { position: static; margin: 6px 4px 0; background: var(--line); }
/* Grup aramasi */
.gbar { display: flex; align-items: center; gap: 10px; margin: 8px 12px 4px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); font-size: 14px; font-weight: 600; }
.gbar > span { flex: 1; min-width: 0; }
.gbar .i { color: var(--accent); }
.call .gtop { position: relative; z-index: 2; text-align: center; padding: 12px 16px 6px; color: #fff; }
.call .gtop .call-name { font-size: 18px; }
.ggrid { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; gap: 6px; padding: 6px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.ggrid.n2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.ggrid.n3, .ggrid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ggrid.n3 .gtile:first-child { grid-column: 1 / span 2; }
@media (min-aspect-ratio: 4/3) { .ggrid.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; } }
.gtile { position: relative; overflow: hidden; border-radius: 16px; background: #0d2a2e; display: grid; place-items: center; min-height: 0; }
.gtile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gtile.me video { transform: scaleX(-1); }
.gtile video.gaudio { width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gtile .gname { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; font-weight: 600; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtile .gname small { font-weight: 400; opacity: .85; }
.call .gtop { padding-top: calc(12px + var(--safe-t)); }
.ggrid { margin-bottom: calc(118px + var(--safe-b)); }
/* Sesli mesaj cevirisi */
.vtr { margin: 6px 2px 2px; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, currentColor 7%, transparent); font-size: 13.5px; line-height: 1.35; }
.vtr.wait { display: flex; align-items: center; gap: 6px; opacity: .75; font-style: italic; }
.vtr .vtr-h { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; opacity: .8; margin-bottom: 6px; }
.vtr .vtr-t { white-space: pre-wrap; word-break: break-word; }
.vtr .vp + .vtr-t { margin-top: 6px; opacity: .85; }
.vtr.orig { font-style: italic; }
.vtr .i.s { width: 14px; height: 14px; }
/* Efektler */
.fxo { position: fixed; inset: 0; z-index: 300; overflow: hidden; display: grid; place-items: center; cursor: pointer; animation: fxIn .35s ease both; }
.fxo.out { animation: fxOut .4s ease both; }
@keyframes fxIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxOut { to { opacity: 0; } }
.fx-bg { position: absolute; inset: 0; }
.fx-bg.rays { inset: -50%; animation: fxSpin 14s linear infinite; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
.fx-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx-center { position: absolute; left: 50%; top: 42%; width: calc(min(46vw, 260px) * var(--s, 1)); aspect-ratio: 1; transform: translate(-50%, -50%); filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.fx-center svg { width: 100%; height: 100%; display: block; }
.fx-center .fx-emoji { display: grid; place-items: center; width: 100%; height: 100%; font-size: calc(min(36vw, 200px) * var(--s, 1)); line-height: 1; }
.fx-center.a-rise { animation: fxRise 1.1s cubic-bezier(.2,.9,.3,1.3) both, fxFloat 3s ease-in-out 1.1s infinite; }
.fx-center.a-pulse { animation: fxPop .6s ease both, fxPulse 1.2s ease-in-out .6s infinite; }
.fx-center.a-spin { animation: fxPop .6s ease both, fxTurn 2.4s linear .6s infinite; }
.fx-center.a-bounce { animation: fxDrop .9s cubic-bezier(.3,1.6,.5,1) both, fxBounce 1.1s ease-in-out .9s infinite; }
.fx-center.a-zoom { animation: fxZoom 1s ease both; }
@keyframes fxRise { from { transform: translate(-50%, 60vh) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes fxFloat { 50% { transform: translate(-50%, -54%); } }
@keyframes fxPop { from { transform: translate(-50%, -50%) scale(.2); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes fxPulse { 50% { transform: translate(-50%, -50%) scale(1.08); } }
@keyframes fxTurn { from { transform: translate(-50%, -50%) rotateY(0); } to { transform: translate(-50%, -50%) rotateY(360deg); } }
@keyframes fxDrop { from { transform: translate(-50%, -120vh); } to { transform: translate(-50%, -50%); } }
@keyframes fxBounce { 50% { transform: translate(-50%, -58%); } }
@keyframes fxZoom { from { transform: translate(-50%, -50%) scale(3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.fxflame { animation: fxFlicker .3s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes fxFlicker { to { transform: scaleY(.8) translateX(1px); } }
.fx-text { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); text-align: center; font-weight: 900; line-height: 1.1; text-shadow: 0 2px 12px rgba(0,0,0,.45); pointer-events: none; }
.fx-text.with-center { top: auto; bottom: 14%; transform: none; }
.fx-text.glow { text-shadow: 0 0 12px currentColor, 0 0 28px currentColor, 0 2px 8px rgba(0,0,0,.4); }
.fx-text .fx-l.top { font-size: clamp(18px, 5.5vw, 30px); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.fx-text .fx-l.main { font-size: clamp(30px, 10vw, 64px); }
.fx-text .fx-l.bottom { font-size: clamp(16px, 4.6vw, 26px); margin-top: 8px; font-weight: 700; }
.fx-text.t-pop .fx-l { animation: fxPopT .6s cubic-bezier(.2,1.5,.4,1) both; }
.fx-text.t-fade .fx-l { animation: fxFadeT .9s ease both; }
.fx-text.t-slide .fx-l { animation: fxSlideT .7s ease both; }
.fx-text.t-type .fx-l span { opacity: 0; animation: fxType .01s linear forwards; }
.fx-text.t-wave .fx-l span { display: inline-block; animation: fxWave 1.2s ease-in-out both; }
@keyframes fxPopT { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fxFadeT { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fxSlideT { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes fxType { to { opacity: 1; } }
@keyframes fxWave { 0% { opacity: 0; transform: translateY(20px); } 50% { opacity: 1; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
body.fx-shake .shell { animation: fxShake .8s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes fxShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .fx-center, .fx-text .fx-l, .fx-text .fx-l span, .fx-bg.rays { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }
.fx-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 50%; background: #ffd23f; color: #3a2a00; border: 0; padding: 0; cursor: pointer; vertical-align: middle; }
.fx-badge .i { width: 12px; height: 12px; }
.fx-btn.on { color: var(--accent); }
.fx-chip { display: flex; align-items: center; gap: 6px; margin: 0 12px 6px; padding: 4px 6px 4px 12px; border-radius: 999px; background: color-mix(in srgb, #ffd23f 22%, var(--surface)); font-size: 13px; font-weight: 600; width: fit-content; max-width: calc(100% - 24px); }
.fx-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-pick .btn.block { margin-bottom: 8px; }
.fx-tile { display: flex; align-items: center; gap: 4px; border-radius: 12px; background: var(--surface); margin-bottom: 6px; padding-right: 4px; }
.fx-tile .fx-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fx-tile .fx-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, #ffd23f 25%, transparent); color: #c79100; font-size: 18px; flex: none; }
.fx-tile .fx-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.fx-wiz .fxw-hist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.fxw-b { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.35; }
.fxw-b.ai { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; display: flex; gap: 8px; align-items: center; }
.fxw-b.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; margin-left: auto; }
.fx-wiz > .fxw-b.ai { margin: 6px 0; }
.fx-wiz .chips { padding: 4px 0 8px; }
.fxw-in { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.fxw-in .input { flex: 1; min-width: 0; }
.fxw-act { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.spin.sm { width: 16px; height: 16px; border-width: 2px; margin: 0; flex: none; }
.ggrid.n5, .ggrid.n6 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); }
.ggrid.n5 .gtile:first-child { grid-column: 1 / span 2; }
@media (min-aspect-ratio: 4/3) { .ggrid.n5, .ggrid.n6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; } .ggrid.n5 .gtile:first-child { grid-column: auto; } }

/* ================= v0.5 "Hairline kare": ince yazilar, kare koseler, secilebilir renk paketi ================= */
@font-face { font-family: Urbanist; src: url(/fonts/urbanist-var.woff) format('woff'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/manrope-var.woff) format('woff'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Rajdhani; src: url(/fonts/rajdhani-400.woff) format('woff'); font-weight: 400; font-display: swap; }
/* Renk paketleri (telefonun sistem rengi degil, bizim paketlerimiz). --pal: koyu temada, --pal-l: acik temada */
:root { --pal: #3EE0C8; --pal-l: #0B7A6E; }
:root[data-pal="ocean"] { --pal: #5AA9FF; --pal-l: #1F5FAE; }
:root[data-pal="lavender"] { --pal: #A79BFF; --pal-l: #5145C8; }
:root[data-pal="amber"] { --pal: #F5B94A; --pal-l: #8A5A00; }
:root[data-pal="coral"] { --pal: #FF7A6B; --pal-l: #B23A2C; }
:root[data-pal="rose"] { --pal: #FF7FB0; --pal-l: #B42A66; }
:root[data-pal="jade"] { --pal: #7BDC8A; --pal-l: #23793A; }
:root[data-pal="graphite"] { --pal: #C9D1D6; --pal-l: #3B4449; }
:root {
  --f-head: Urbanist, Manrope, system-ui, sans-serif; --f-body: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --f-num: Rajdhani, Manrope, system-ui, sans-serif;
  --r: 7px; --r-s: 4px;
  --bg: #FAFAF8; --surface: #FFFFFF; --surface2: #F1F2EF; --text: #14181B; --muted: #5E686E; --line: #E3E5E1;
  --accent: var(--pal-l); --accent-2: var(--pal-l); --grad: var(--pal-l); --on-accent: #FFFFFF;
  --in: #FFFFFF; --in-text: #14181B; --in-line: #E3E5E1; --out: var(--pal-l); --out-text: #FFFFFF; --out-meta: rgba(255, 255, 255, .82); --read: #FFFFFF;
  --chat-bg: #F6F7F5; --pattern: none; --glow: transparent; --shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #07080A; --surface: #0E1013; --surface2: #15181C; --text: #ECEFF1; --muted: #8B949C; --line: rgba(255, 255, 255, .08);
  --accent: var(--pal); --accent-2: var(--pal); --grad: var(--pal); --on-accent: #06100F;
  --in: #101215; --in-text: #ECEFF1; --in-line: rgba(255, 255, 255, .08); --out: color-mix(in srgb, var(--pal) 17%, #07080A); --out-text: #F2FFFD; --out-meta: var(--pal); --read: var(--pal);
  --chat-bg: #07080A; --pattern: none; --glow: transparent; --shadow: none; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #07080A; --surface: #0E1013; --surface2: #15181C; --text: #ECEFF1; --muted: #8B949C; --line: rgba(255, 255, 255, .08);
  --accent: var(--pal); --accent-2: var(--pal); --grad: var(--pal); --on-accent: #06100F;
  --in: #101215; --in-text: #ECEFF1; --in-line: rgba(255, 255, 255, .08); --out: color-mix(in srgb, var(--pal) 17%, #07080A); --out-text: #F2FFFD; --out-meta: var(--pal); --read: var(--pal);
  --chat-bg: #07080A; --pattern: none; --glow: transparent; --shadow: none; color-scheme: dark; }
html, body { font-family: var(--f-body); font-weight: 400; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 300; letter-spacing: -.015em; text-transform: none; }
b, strong { font-weight: 500; }
svg.i { stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; }
svg.i.s { stroke-width: 1.5; }
/* kare koseler */
.btn, .input, .textarea, select.input, .card, .chip, .icon-btn, .search .input, .badge, .react, .fab, .send, .mic, .composer .box, .bottom-nav, .sheet, .menu, .toast, .jump, .quote, .mimg, .mvid video,
.vplay, .mmus .mcover, .fx-tile, .fx-chip, .fx-badge, .fxw-b, .gbar, .gtile, .gtile .gname, .cbtn, .notice, .vtr, .switch, .switch .knob, .lang-select, .day, .sys, .credit-hero, .warn-box, .ok-box,
.updbar button, .mfile .fic, .recbar, .emoji-panel, .boot-logo, .brand .mark, .av-edit .cam, .call-local, .reacts .react, .kv > div, .mprev img, .mprev video { border-radius: var(--r) !important; }
.sheet { border-radius: var(--r) var(--r) 0 0 !important; }
/* avatarlar: kare ve biraz daha buyuk */
.av { border-radius: var(--r); width: 56px; height: 56px; font-family: var(--f-head); font-weight: 400; letter-spacing: 0; font-size: 19px; }
.av.sm { width: 44px; height: 44px; font-size: 16px; }
.av.xs { width: 34px; height: 34px; font-size: 13px; }
.av.lg { width: 112px; height: 112px; font-size: 38px; font-weight: 300; }
.av .dot { border-radius: 0; width: 11px; height: 11px; right: -3px; bottom: -3px; background: var(--accent); border: 2px solid var(--bg); }
.av.zoom { cursor: zoom-in; }
.av.group-av { background: color-mix(in srgb, var(--accent) 16%, var(--bg)) !important; color: var(--accent); }
.story .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
/* basliklar: ince, genis harf araligi yok */
.topbar h2 { font-family: var(--f-head); font-weight: 200; font-size: 34px; letter-spacing: -.03em; text-transform: none; line-height: 1; }
.topbar h2 .kick { font-family: var(--f-num); font-weight: 500; font-size: 12px; letter-spacing: 0; text-transform: none; padding-left: 0; background: none; }
.section-h { font-family: var(--f-num); font-weight: 500; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.sheet .sh-head h3 { font-family: var(--f-head); font-weight: 300; font-size: 22px; letter-spacing: -.01em; text-transform: none; }
.row .t1 { font-family: var(--f-head); font-weight: 400; font-size: 17px; letter-spacing: 0; }
.row.unread .t1 { font-weight: 500; }
.row .t2 { font-weight: 300; }
.row .time, .bubble .meta, .day, .sys, .badge, .chat-head .who .st, .vt, .gname small { font-family: var(--f-num); font-weight: 500; letter-spacing: 0; text-transform: none; }
.row .time { font-size: 13px; }
.badge { font-weight: 500; color: var(--on-accent); }
.chat-head .who .nm { font-family: var(--f-head); font-weight: 500; font-size: 18px; letter-spacing: -.01em; text-transform: none; }
.bottom-nav { left: 0; right: 0; bottom: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 !important; background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: none; padding-bottom: var(--safe-b); }
.bottom-nav button { font-family: var(--f-head); font-weight: 400; font-size: 12px; letter-spacing: .01em; text-transform: none; border-top: 2px solid transparent; }
.bottom-nav button.on { font-weight: 500; color: var(--accent); border-top-color: var(--accent); }
.list-pane .scroll { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
.fab { background: var(--accent); box-shadow: none; }
.card { border: 1px solid var(--line); box-shadow: none; }
.btn { font-family: var(--f-head); font-weight: 500; letter-spacing: 0; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.chip { font-family: var(--f-head); font-weight: 400; border: 1px solid var(--line); background: transparent; }
.chip.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-color: var(--accent); font-weight: 500; }
.switch.on { background: var(--accent); }
.credit-hero { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.credit-hero .big { font-family: var(--f-head); font-weight: 200; font-size: 48px; letter-spacing: -.03em; color: var(--accent); }
.credit-hero .hint { color: var(--muted); }
/* sohbet */
.chat-pane { background: var(--chat-bg); }
.chat-head { background: var(--bg); border-bottom: 1px solid var(--line); }
.day { font-size: 13px; background: transparent; border: 0; color: var(--muted); }
.sys { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
.bubble { border-radius: var(--r) !important; line-height: 1.45; position: relative; }
.m.in .bubble:not(.big-emoji) { background: var(--in); border: 1px solid var(--in-line); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.m.out .bubble:not(.big-emoji) { background: var(--out); color: var(--out-text); box-shadow: none; border-right: 2px solid var(--accent); }
.m.out .bubble .meta { color: var(--out-meta); }
.bubble .sender { font-family: var(--f-head); font-weight: 500; letter-spacing: 0; }
.m.out .quote { background: rgba(127, 127, 127, .14); }
.composer { padding: 8px 10px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.composer .box { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.composer textarea { font-weight: 300; }
.send, .mic { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.vplay { background: var(--accent); color: var(--on-accent); }
.m.out .vplay { background: var(--accent); color: var(--on-accent); }
/* tepki rozeti: baloncugun alt kosesine biner (mesajin altinda ayri durmaz) */
.bubble.has-rx { margin-bottom: 14px; }
.bubble .reacts { position: absolute; bottom: -14px; margin: 0; gap: 3px; z-index: 1; }
.m.out .bubble .reacts { left: 10px; }
.m.in .bubble .reacts { right: 10px; }
.bubble.big-emoji .reacts { bottom: -12px; right: -10px; left: auto; }
.reacts .react { min-height: 24px; padding: 1px 7px; background: var(--surface); border: 1px solid var(--line); font-family: var(--f-num); font-weight: 500; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.reacts .react.mine { border-color: var(--accent); }
/* tam ekran profil resmi */
.photo-view { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .92); display: flex; flex-direction: column; animation: fxIn .2s ease both; }
.photo-view .pv-bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; color: #fff; font-family: var(--f-head); font-weight: 400; font-size: 17px; }
.photo-view .pv-bar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-view .pv-bar .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .2); }
.photo-view img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
/* renk paketi secimi */
.pal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 0 16px; }
.pal { height: 76px; display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; }
.pal.on { border: 2px solid var(--sw); padding: 5px; }
.pal .sw { flex: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 2px; }
.pal .sw i { background: var(--sw); }
.pal .sw i + i { background: color-mix(in srgb, var(--sw) 24%, var(--bg)); }
.pal b { font-family: var(--f-head); font-weight: 400; font-size: 12px; color: var(--muted); }
.pal.on b { font-weight: 500; color: var(--text); }
.pal-prev { margin: 0 16px 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--chat-bg); display: flex; flex-direction: column; gap: 8px; }
.pal-prev .pi, .pal-prev .po { max-width: 80%; padding: 9px 12px; border-radius: var(--r); font-size: 14px; }
.pal-prev .pi { align-self: flex-start; background: var(--in); border: 1px solid var(--in-line); }
.pal-prev .po { align-self: flex-end; background: var(--out); color: var(--out-text); border-right: 2px solid var(--accent); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 16px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { height: 44px; font-family: var(--f-head); font-weight: 400; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 500; }
.m.out .bubble.big-emoji .meta { color: var(--muted); }
.av.ini { background: hsl(var(--h) 55% 50% / .17) !important; color: hsl(var(--h) 70% 68%); }
:root[data-theme="light"] .av.ini { color: hsl(var(--h) 55% 36%); background: hsl(var(--h) 55% 50% / .14) !important; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .av.ini { color: hsl(var(--h) 55% 36%); background: hsl(var(--h) 55% 50% / .14) !important; } }

/* ================= v0.4.12 ================= */
/* 5 yeni renk paketi */
:root[data-pal="sunset"] { --pal: #FF9F43; --pal-l: #B85C00; }
:root[data-pal="ruby"] { --pal: #FF4D6D; --pal-l: #B3123A; }
:root[data-pal="indigo"] { --pal: #7C8CFF; --pal-l: #3644C2; }
:root[data-pal="lime"] { --pal: #C6F05A; --pal-l: #5A7A00; }
:root[data-pal="sky"] { --pal: #4FD6FF; --pal-l: #0A6E90; }

/* desenli sohbet arka plani: renk secilen paketten gelir */
.chat-pane { position: relative; isolation: isolate; }
.chat-pane::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 30c-4-5-11-5-15-1-3 3-3 7 1 8 5 1 10-2 14-4 4 2 9 5 14 4 4-1 4-5 1-8-4-4-11-4-15 1z'/%3E%3Cpath d='M26 37c-5 1-8-2-7-6M54 37c5 1 8-2 7-6'/%3E%3Cpath d='M104 20h12v8h-12zM122 20h12v8h-12zM116 23h6M100 22l4 0M134 22h4'/%3E%3Cpath d='M14 92h22v14H23l-6 5v-5h-3z'/%3E%3Cpath d='M96 84h10v6H96zM110 84h10v6h-10zM106 86h4'/%3E%3Cpath d='M108 98c-3-3-7-3-10 0-2 2-1 4 1 4 3 0 6-1 9-3 3 2 6 3 9 3 2 0 3-2 1-4-3-3-7-3-10 0z'/%3E%3Cpath d='M70 58l2 4 4 .6-3 2.8.8 4-3.8-2-3.8 2 .8-4-3-2.8 4-.6z'/%3E%3Cpath d='M140 66h8M144 62v8'/%3E%3Cpath d='M58 130h6v6h-6z'/%3E%3Cpath d='M120 124h24v14h-6v5l-5-5h-13z'/%3E%3Cpath d='M126 131h1M131 131h1M136 131h1'/%3E%3Cpath d='M30 140c-2-3-6-3-8-1-2 2-1 4 1 4 2 0 5-1 7-2 2 1 5 2 7 2 2 0 3-2 1-4-2-2-6-2-8 1z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 160px repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 30c-4-5-11-5-15-1-3 3-3 7 1 8 5 1 10-2 14-4 4 2 9 5 14 4 4-1 4-5 1-8-4-4-11-4-15 1z'/%3E%3Cpath d='M26 37c-5 1-8-2-7-6M54 37c5 1 8-2 7-6'/%3E%3Cpath d='M104 20h12v8h-12zM122 20h12v8h-12zM116 23h6M100 22l4 0M134 22h4'/%3E%3Cpath d='M14 92h22v14H23l-6 5v-5h-3z'/%3E%3Cpath d='M96 84h10v6H96zM110 84h10v6h-10zM106 86h4'/%3E%3Cpath d='M108 98c-3-3-7-3-10 0-2 2-1 4 1 4 3 0 6-1 9-3 3 2 6 3 9 3 2 0 3-2 1-4-3-3-7-3-10 0z'/%3E%3Cpath d='M70 58l2 4 4 .6-3 2.8.8 4-3.8-2-3.8 2 .8-4-3-2.8 4-.6z'/%3E%3Cpath d='M140 66h8M144 62v8'/%3E%3Cpath d='M58 130h6v6h-6z'/%3E%3Cpath d='M120 124h24v14h-6v5l-5-5h-13z'/%3E%3Cpath d='M126 131h1M131 131h1M136 131h1'/%3E%3Cpath d='M30 140c-2-3-6-3-8-1-2 2-1 4 1 4 2 0 5-1 7-2 2 1 5 2 7 2 2 0 3-2 1-4-2-2-6-2-8 1z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 160px repeat; opacity: .09; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chat-pane::before { opacity: .07; } }
:root[data-theme="dark"] .chat-pane::before { opacity: .07; }

/* grup sohbetinde balonun kosesinde profil kutusu: digerleri sol ust, ben sag ust */
.bubble.has-cav { margin-top: 14px; }
.m.in .bubble.has-cav { margin-left: 14px; }
.m.out .bubble.has-cav { margin-right: 14px; }
.bubble > .av.cav { position: absolute; top: -14px; width: 36px; height: 36px; font-size: 14px; z-index: 2; border: 2px solid var(--chat-bg); box-sizing: content-box; }
.m.in .bubble > .av.cav { left: -16px; }
.m.out .bubble > .av.cav { right: -16px; }
.av.cav.zoom { cursor: zoom-in; }
.m.in .bubble.has-cav .sender { padding-left: 20px; }
.m.out .bubble.has-cav .sender.me { text-align: right; padding-right: 20px; color: var(--out-meta); }
.m.in .bubble.has-cav:not(:has(.sender)) { padding-top: 22px; }

/* tepkiler her zaman balonun icinde, en altta, belirgin */
.bubble.has-rx { margin-bottom: 0; }
.bubble .reacts { position: static; display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 2px; clear: both; justify-content: flex-start; }
.m.out .bubble .reacts, .m.in .bubble .reacts { left: auto; right: auto; }
.bubble.has-media .reacts { margin: 6px 6px 4px; }
.reacts .react { min-height: 28px; padding: 2px 9px; font-size: 14px; background: var(--surface); color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.m.out .reacts .react { background: color-mix(in srgb, var(--surface) 88%, transparent); }
.reacts .react.mine { border-color: var(--accent); }
.bubble .reacts .react .rxe { width: 20px; height: 20px; }

/* medya altinda saat: net ve okunakli */
.bubble.has-media .meta { float: none; display: flex; justify-content: flex-end; margin: 5px 6px 2px; font-size: 12.5px; font-weight: 600; opacity: 1; }
.bubble .meta { font-size: 11.5px; opacity: .9; }

/* buyuk emoji: saat ve tepki emojinin altinda, okunakli kutuda */
.bubble.big-emoji { display: flex; flex-direction: column; align-items: flex-start; }
.m.out .bubble.big-emoji { align-items: flex-end; }
.bubble.big-emoji .meta { float: none; margin: 4px 0 0; padding: 3px 7px; font-size: 12px; font-weight: 600; opacity: 1; color: var(--text) !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.bubble.big-emoji .reacts { position: static; margin: 6px 0 0; }
.bubble > .av.cav.ini { background: hsl(var(--h) 60% 86%); color: hsl(var(--h) 55% 28%); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble > .av.cav.ini { background: hsl(var(--h) 38% 24%); color: hsl(var(--h) 70% 80%); } }
:root[data-theme="dark"] .bubble > .av.cav.ini { background: hsl(var(--h) 38% 24%); color: hsl(var(--h) 70% 80%); }

/* v0.4.12b: WhatsApp gibi tepkiler (balonun alt kenarina oturur, kutusuz), yumusak koseler, gorsel duzeltmeler */
.bubble.has-rx { margin-bottom: 16px; }
.bubble .reacts { position: absolute; bottom: -15px; margin: 0; gap: 2px; z-index: 3; display: flex; }
.m.in .bubble .reacts { left: 10px; right: auto; }
.m.out .bubble .reacts { right: 10px; left: auto; }
.bubble.has-media .reacts { margin: 0; }
.reacts .react { min-height: 0; padding: 0 2px; background: none !important; border: 0 !important; box-shadow: none; font-size: 18px; line-height: 1; color: var(--text); display: inline-flex; align-items: center; gap: 2px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.reacts .react b, .reacts .react span:not(.rxe) { font-family: var(--f-num); font-size: 12px; font-weight: 600; filter: none; text-shadow: 0 0 3px var(--chat-bg), 0 0 3px var(--chat-bg); }
.reacts .react.mine { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)) drop-shadow(0 0 0 var(--accent)); }
.bubble .reacts .react .rxe { width: 22px; height: 22px; }
.bubble.big-emoji .reacts { position: static; margin: 4px 0 0; }
/* buyuk emoji saati: sade, cerceve yok */
.bubble.big-emoji .meta { background: color-mix(in srgb, var(--surface) 85%, transparent); border: 0; padding: 2px 6px; font-size: 11.5px; }
/* silinen mesaj: daha sakin */
.bubble.deleted { font-style: normal; opacity: .75; font-size: 14px; }
.m.out .bubble.deleted { background: color-mix(in srgb, var(--out) 55%, var(--chat-bg)) !important; }
.bubble.deleted .i { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
/* yumusak koseler: balon ve kutular */
.bubble { border-radius: var(--r) !important; }
.av, .bubble > .av.cav { border-radius: var(--r-s); }

/* v0.4.14: grupta profil kutusu baloncugun USTUNDE (kosesinde degil), opak */
.m.has-mhead .mcol { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 560px); min-width: 0; }
.m.out.has-mhead .mcol { align-items: flex-end; }
.m.has-mhead .mcol > .bubble { max-width: 100%; }
.mhead { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.m.out .mhead { flex-direction: row-reverse; }
.av.mh { width: 34px; height: 34px; font-size: 13px; border-radius: var(--r-s); flex: none; }
.av.mh.ini { background: hsl(var(--h) 55% 84%); color: hsl(var(--h) 60% 24%); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .av.mh.ini { background: hsl(var(--h) 40% 26%); color: hsl(var(--h) 70% 82%); } }
:root[data-theme="dark"] .av.mh.ini { background: hsl(var(--h) 40% 26%); color: hsl(var(--h) 70% 82%); }
.av.mh:not(.ini) { background-color: var(--surface2); background-size: cover; background-position: center; }
.mh-name { font-family: var(--f-head); font-weight: 600; font-size: 13.5px; }
.m.out .mh-name { color: var(--accent); }
.mark.vb { display: block; object-fit: cover; padding: 0; box-shadow: none !important; background: none !important; }
.no-chat .mark.vb { width: 96px; height: 96px; }
.tag.green { background: rgba(34, 160, 90, .15); color: #1f8a4c; }
/* VayBaba sticker */
.emoji-grid.vb-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.stcell { border: 0; background: none; padding: 4px; border-radius: var(--r); cursor: pointer; aspect-ratio: 1; display: grid; place-items: center; }
.stcell:hover, .stcell:focus-visible { background: var(--surface2); }
.stcell .vbst { width: 100%; height: 100%; object-fit: contain; }
.etab.vbtab img { width: 24px; height: 24px; border-radius: var(--r-s); display: block; }
.bubble.sticker { padding: 0 !important; }
.vbst.big { width: 150px; height: 150px; display: block; }
@media (max-width: 380px) { .vbst.big { width: 128px; height: 128px; } }

/* v0.4.16: yazi kutusu B duzeni */
.ctools { display: flex; align-items: center; gap: 4px; padding: 6px 10px 0; background: var(--bg); }
.ctools .icon-btn, .ctools .emo-btn, .ctools .attach-btn, .ctools .fx-btn { width: 40px !important; height: 36px !important; flex: none; display: grid; place-items: center; border-radius: var(--r) !important;
  background: var(--surface2); color: var(--text); border: 0; margin: 0; padding: 0; }
.ctools .icon-btn svg.i { width: 21px; height: 21px; }
.ctools .emo-btn .rxe { width: 22px !important; height: 22px !important; }
.ctools .icon-btn.on, .ctools .fx-btn.on { background: color-mix(in srgb, var(--accent) 22%, var(--surface2)); color: var(--accent); }
.composer.cb { display: flex; align-items: flex-end; gap: 8px; padding: 6px 10px calc(8px + var(--safe-b)); background: var(--bg); border-top: 0; }
.composer.cb .box { flex: 1; min-width: 0; min-height: 48px; border-radius: var(--r) !important; background: var(--surface); border: 1px solid var(--line); box-shadow: none; display: flex; flex-direction: column; justify-content: flex-end; }
.composer.cb .box:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.composer.cb textarea { min-height: 46px; max-height: 128px; padding: 12px 14px; font-size: 16px; line-height: 1.35; }
.composer.cb .mic, .composer.cb .send, .composer.cb .trsend { width: 48px !important; height: 48px !important; min-width: 48px; flex: none; border-radius: var(--r) !important; display: grid; place-items: center; margin: 0; }
.composer.cb .mic svg.i, .composer.cb .send svg.i { width: 23px; height: 23px; }
.chat-pane .composer-wrap, #composer { border-top: 1px solid var(--line); background: var(--bg); }
