/* P4R3NT5 — midnight navy and champagne gold. */
:root {
  --bg: #0b1424;
  --bg-2: #0f1b30;
  --surface: #14223a;
  --surface-2: #1b2c49;
  --border: #23375c;
  --text: #e9eefa;
  --muted: #94a3bd;
  --faint: #6f7f9c;
  --gold: #e7cf9b;
  --gold-soft: #f2e2be;
  --gold-deep: #c9ab6d;
  --mine: #1f3a63;
  --mine-edge: #2b4c7e;
  --danger: #e2685f;
  --good: #52c39a;
  --radius: 14px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --wallpaper: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjgiIGhlaWdodD0iMTY4IiB2aWV3Qm94PSIwIDAgMTY4IDE2OCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMWIyYzQ5IiBzdHJva2Utd2lkdGg9IjIuNCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTg0LDI0IEwxNDQsODQgTDg0LDE0NCBMMjQsODQgWiIvPjxwYXRoIGQ9Ik00Miw0MiBMMTI2LDQyIEwxMjYsMTI2IEw0MiwxMjYgWiIvPjxwYXRoIGQ9Ik0wLC02MCBMNjAsMCBMMCw2MCBMLTYwLDAgWiIvPjxwYXRoIGQ9Ik0tNDIsLTQyIEw0MiwtNDIgTDQyLDQyIEwtNDIsNDIgWiIvPjxwYXRoIGQ9Ik0xNjgsLTYwIEwyMjgsMCBMMTY4LDYwIEwxMDgsMCBaIi8+PHBhdGggZD0iTTEyNiwtNDIgTDIxMCwtNDIgTDIxMCw0MiBMMTI2LDQyIFoiLz48cGF0aCBkPSJNMCwxMDggTDYwLDE2OCBMMCwyMjggTC02MCwxNjggWiIvPjxwYXRoIGQ9Ik0tNDIsMTI2IEw0MiwxMjYgTDQyLDIxMCBMLTQyLDIxMCBaIi8+PHBhdGggZD0iTTE2OCwxMDggTDIyOCwxNjggTDE2OCwyMjggTDEwOCwxNjggWiIvPjxwYXRoIGQ9Ik0xMjYsMTI2IEwyMTAsMTI2IEwyMTAsMjEwIEwxMjYsMjEwIFoiLz48L2c+PC9zdmc+");
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--gold-deep); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.error { color: var(--danger); }
.hidden, [hidden] { display: none !important; }

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); padding-top: var(--sat); padding-bottom: var(--sab); }
.screen.center { align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px; }
@media (min-width: 620px) {
  body { background: #060c17; }
  .screen { max-width: 480px; margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* ---------- bars ---------- */
.bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg-2); border-bottom: 1px solid var(--border); min-height: 56px; }
.bar-title { font-size: 18px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-title { color: var(--gold); letter-spacing: 3px; font-weight: 700; }
/* the chat-list title sits beside the pill and two buttons, so it needs to be tighter */
.bar .brand-title { letter-spacing: 1px; font-size: 17px; }
@media (max-width: 380px) { .bar .brand-title { font-size: 15.5px; letter-spacing: .5px; } }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: var(--gold-soft); }
.icon-btn:active { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back::before { content: ""; width: 12px; height: 12px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 4px; }

/* ---------- status pill ---------- */
.pill { flex: none; font-size: 12px; padding: 5px 11px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); max-width: 45vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill.live { color: #14203a; background: var(--gold); border-color: var(--gold); font-weight: 600; }
.pill.ok { color: var(--gold-soft); border-color: var(--gold-deep); }
.pill.stale { color: var(--gold-soft); }
.pill.off { color: #fff; background: var(--danger); border-color: var(--danger); }

/* ---------- lists ---------- */
.list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.list-heading { padding: 16px 16px 6px; color: var(--gold); font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; width: 100%; text-align: left; border-bottom: 1px solid var(--border); }
.row:active { background: var(--surface); }
.row-main { flex: 1; min-width: 0; }
.row-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.row-name { font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-time { font-size: 12px; color: var(--faint); flex: none; }
.row-sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--gold); color: #14203a; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; flex: none; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex: none; }
.avatar.large { width: 72px; height: 72px; font-size: 26px; }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: block; width: 100%; padding: 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 16px; font-weight: 600; text-align: center; border: 1px solid var(--border); }
.btn.primary { background: var(--gold); color: #14203a; border-color: var(--gold); }
.btn.ghost { background: none; }
.btn.small { width: auto; padding: 9px 16px; font-size: 14px; }
.btn:active { filter: brightness(1.12); }
.btn[disabled] { opacity: .5; }

/* ---------- star mark ---------- */
.star-mark { width: 96px; height: 96px; background: no-repeat center/contain; background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5NiA5NiIgd2lkdGg9Ijk2IiBoZWlnaHQ9Ijk2Ij48ZyBmaWxsPSJub25lIiBzdHJva2U9IiNlN2NmOWIiIHN0cm9rZS13aWR0aD0iNSIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTc2LjI4LDc2LjI4IEwxOS43Miw3Ni4yOCBMMTkuNzIsMTkuNzIgTDc2LjI4LDE5LjcyIFoiLz48cGF0aCBkPSJNODguMDAsNDguMDAgTDQ4LjAwLDg4LjAwIEw4LjAwLDQ4LjAwIEw0OC4wMCw4LjAwIFoiLz48L2c+PC9zdmc+"); }
.star-mark.sm { width: 40px; height: 40px; }

/* ---------- messages ---------- */
.messages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 10px 4px; background-color: var(--bg); background-image: var(--wallpaper); background-size: 168px; }
.messages.plain { background-image: none; }
.msg { display: flex; margin: 2px 0; }
.msg.out { justify-content: flex-end; }
.msg.first { margin-top: 10px; }
.bubble { max-width: 82%; border-radius: 16px; padding: 8px 11px 6px; background: var(--surface); border: 1px solid var(--border); position: relative;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.msg.out .bubble { background: var(--mine); border-color: var(--mine-edge); }
.bubble .text { white-space: pre-wrap; word-wrap: break-word; font-size: 16px; -webkit-user-select: text; user-select: text; }
.bubble.media { padding: 5px 5px 4px; }
.meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 3px; font-size: 11.5px; color: var(--faint); }
.msg.out .meta { color: #9fb4d4; }
.meta .expiry { color: var(--faint); }
.msg.out .meta .expiry { color: #8ea6c9; }
.meta .state { font-style: italic; color: var(--gold-soft); }
.bubble.failed .state { color: var(--danger); font-style: normal; font-weight: 600; }
.ticks { width: 18px; height: 12px; flex: none; }
.ticks svg { width: 18px; height: 12px; fill: none; stroke: #9fb4d4; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ticks.read svg { stroke: var(--gold); }
.day { text-align: center; margin: 14px 0 8px; }
.day span { background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 12px; padding: 4px 12px; border-radius: 12px; }

/* ---------- composer ---------- */
.composer { flex: none; padding: 8px 10px calc(8px + var(--sab)); background: var(--bg-2); border-top: 1px solid var(--border); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; resize: none; max-height: 132px; border-radius: 22px; padding: 11px 14px; }
.send { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #14203a; display: flex; align-items: center; justify-content: center; flex: none; }
.send svg { width: 21px; height: 21px; fill: currentColor; }
.editing { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; color: var(--muted); font-size: 13.5px; }
.editing .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- typing line ---------- */
.typing-line { flex: none; height: 20px; padding: 0 16px; font-size: 13px; color: var(--gold-soft); font-style: italic; }

/* ---------- sheets ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(4, 10, 20, .6); display: flex; align-items: flex-end; z-index: 40; }
.sheet { width: 100%; background: var(--bg-2); border-radius: 18px 18px 0 0; border-top: 1px solid var(--border); padding: 10px 10px calc(10px + var(--sab)); max-height: 82vh; overflow-y: auto; }
@media (min-width: 620px) { .sheet { max-width: 480px; margin: 0 auto; } }
.sheet-title { padding: 10px 12px 4px; font-size: 17px; font-weight: 600; color: var(--gold); }
.sheet-msg { padding: 4px 12px 12px; color: var(--muted); font-size: 14.5px; white-space: pre-wrap; }
.item { display: block; width: 100%; text-align: left; padding: 15px 14px; border-radius: 12px; font-size: 16px; }
.item:active { background: var(--surface); }
.item.danger { color: var(--danger); }
.item.cancel { text-align: center; color: var(--muted); margin-top: 4px; }
.emoji-row { display: flex; justify-content: space-around; padding: 8px 4px 12px; }
.emoji-row button { font-size: 28px; width: 46px; height: 46px; border-radius: 50%; }
.emoji-row button.on { background: var(--surface-2); outline: 2px solid var(--gold); }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.msg.out .reacts { justify-content: flex-end; }
.reacts .pill-r { font-size: 13px; padding: 2px 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.reacts .pill-r.mine { border-color: var(--gold); }

/* ---------- settings rows ---------- */
.setting { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.setting:active { background: var(--surface); }
.setting-main { flex: 1; min-width: 0; }
.setting .l { display: block; font-size: 16px; }
.setting .s { display: block; font-size: 13.5px; color: var(--muted); }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--faint); border-top: 2px solid var(--faint); transform: rotate(45deg); flex: none; }
.section { padding: 18px 16px 6px; color: var(--gold); font-size: 12.5px; letter-spacing: 1.4px; text-transform: uppercase; }
.info-head { text-align: center; padding: 22px 16px 10px; }
.info-head h2 { margin: 10px 0 2px; font-size: 21px; }

/* ---------- info table ---------- */
.info-table { padding: 2px 6px 10px; }
.ir { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.ik { font-size: 12.5px; color: var(--muted); }
.iv { font-size: 15px; }

/* ---------- PIN ---------- */
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 18px 0 8px; }
.pin-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--gold-deep); }
.pin-dot.on { background: var(--gold); border-color: var(--gold); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 280px; margin: 10px auto 0; width: 100%; }
.pad button { height: 64px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-size: 24px; }
.pad button:active { background: var(--surface-2); }
.pad button.wide { grid-column: span 1; font-size: 15px; color: var(--muted); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

/* ---------- banners & toast ---------- */
.banner { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 14px; }
.banner-text { flex: 1; }
.banner-text strong { display: block; color: var(--gold-soft); }
.offline-bar { flex: none; background: #3a2f18; color: var(--gold-soft); font-size: 13px; padding: 7px 14px; text-align: center; border-bottom: 1px solid var(--border); }
#toast { position: fixed; left: 50%; top: calc(var(--sat) + 68px); transform: translateX(-50%); background: #05101f; border: 1px solid var(--border); color: var(--text); padding: 11px 16px; border-radius: 12px; font-size: 14.5px; max-width: 86%; text-align: center; z-index: 60; }

/* ---------- share / QR ---------- */
.share-body { flex: 1; overflow-y: auto; padding: 18px 16px calc(18px + var(--sab)); text-align: center; }
.qr-box { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; margin: 14px 0; }
.link-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; word-break: break-all; font-size: 13px; color: var(--muted); margin: 8px 0 14px; -webkit-user-select: all; user-select: all; }
.code-box { font-family: ui-monospace, Menlo, monospace; font-size: 20px; letter-spacing: 2px; text-align: center; background: var(--surface); border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: 16px 12px; margin: 12px 0; color: var(--gold-soft); }

/* ===== layout fixes: chat header and composer ===== */
.bar { flex-wrap: nowrap; }
.chat-head { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; text-align: left; }
.chat-head-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.25; }
.chat-head-name { font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar.sm { width: 38px; height: 38px; font-size: 15px; }
#pill-chat { flex: 0 1 auto; }

/* the text box and the send button should always be the same height and line up */
.composer-row { align-items: center; }
.composer textarea {
  min-height: 46px;
  line-height: 1.35;
  padding: 12px 16px;
  overflow-y: auto;
}
.composer textarea::placeholder { color: var(--faint); }

/* when the on-screen keyboard is up, keep the composer just above it */
.screen { height: 100%; }
#s-chat { height: var(--vvh, 100%); }

/* ===== phase 2: media ===== */
.send.mic { background: var(--surface-2); color: var(--gold); }
.composer-row.has-text #btn-mic, .composer-row:not(.has-text) #btn-send { display: none; }
.recording { display: flex; align-items: center; gap: 10px; padding: 4px 2px 4px 10px; min-height: 46px; }
.recording .grow { flex: 1; }
.recording #rec-time { font-variant-numeric: tabular-nums; font-size: 16px; min-width: 44px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.bubble.media { padding: 5px 5px 4px; max-width: 78%; }
.filecard { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 6px; min-width: 210px; }
.filecard .ficon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 21px; flex: none; }
.filecard .fmain { flex: 1; min-width: 0; }
.filecard .fname { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filecard .fsub { display: block; font-size: 12.5px; color: var(--muted); }
.msg.out .filecard .fsub { color: #9fb4d4; }
.filecard .fbtn { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #14203a; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; font-weight: 700; }
.filecard .fbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.filecard .fbtn.busy { background: var(--surface-2); color: var(--gold); }
.media-inline { display: block; width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.media-inline img, .media-inline video { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; background: #000; }
.audio { display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 6px; min-width: 215px; }
.audio .fbtn { width: 40px; height: 40px; }
.audio .seek { flex: 1; min-width: 70px; -webkit-appearance: none; appearance: none; background: transparent; height: 22px; padding: 0; border: 0; margin: 0; }
.audio .seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--gold) var(--fill, 0%), rgba(255,255,255,.22) var(--fill, 0%)); }
.audio .seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
.audio .seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
.audio .seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); margin-top: -4.5px; }
.audio .seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--gold); }
.audio .dur { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.msg.out .audio .dur { color: #9fb4d4; }
.progress { height: 4px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; margin-top: 5px; }
.progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.caption { padding: 5px 6px 0; white-space: pre-wrap; word-wrap: break-word; font-size: 15.5px; }

.viewer { background: #000; }
.viewer-bar { background: rgba(0,0,0,.65); border: 0; position: absolute; top: 0; left: 0; right: 0; z-index: 2; padding-top: calc(8px + var(--sat)); }
.viewer-body { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; }
.viewer-body img, .viewer-body video { max-width: 100%; max-height: 100%; object-fit: contain; }

.gallery { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; align-content: start; }
.gallery button { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .tag { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 8px; }
.row-btns { display: flex; gap: 8px; margin-top: 8px; }

/* ===== phase 3: replies, reactions, zoom ===== */
/* nothing inside a bubble may ever make the chat wider than the screen */
.messages { overflow-x: hidden; }
#message-list { max-width: 100%; }
.bubble { max-width: 82%; overflow: hidden; }
.bubble .text, .caption { overflow-wrap: anywhere; word-break: break-word; }

.quote { display: flex; flex-direction: column; gap: 1px; width: 100%; max-width: 100%; text-align: left;
  border-left: 3px solid var(--gold); background: rgba(0,0,0,.22); border-radius: 8px; padding: 5px 8px; margin: 0 0 5px; overflow: hidden; }
.quote .qwho { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.quote .qtext { font-size: 13.5px; color: var(--muted); display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.out .quote .qtext { color: #cddcf2; }

.replying { border-left: 3px solid var(--gold); padding-left: 10px; margin: 0 2px 6px; }
.replying .reply-who { color: var(--gold); font-weight: 600; flex: none; }
.replying .reply-text { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.msg.flash .bubble { animation: flash 1.2s; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 2px var(--gold); } 100% { box-shadow: none; } }

/* pinch, double-tap and drag inside the photo viewer only, so the chat itself never zooms */
.viewer-body { touch-action: none; overflow: hidden; }
.viewer-body { position: relative; }
.viewer-body .zoomwrap { position: absolute; inset: 0; overflow: hidden; }
.viewer-body img.zoomable { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; max-width: none; max-height: none; }
.viewer-hint { position: absolute; bottom: calc(16px + var(--sab)); left: 0; right: 0; text-align: center; color: #cbd5e6; font-size: 12.5px; text-shadow: 0 1px 3px #000; pointer-events: none; }
.storage-bar { width: 100%; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.storage-bar i { display: block; height: 100%; background: var(--good); }
.storage-bar i.warn { background: var(--gold); }
.storage-bar i.full { background: var(--danger); }
