/* RX 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; }

#app { height: 100dvh; display: flex; flex-direction: column; }
.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: 1fr; min-height: 0; }
.pane { min-height: 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 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 { 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; }
