/* BULLY VAULT — two skins: body.hq (OBLISK red HUD, admin) and body.brand (client's own colours). */
:root {
  --bg: #050000; --bg2: #0c0202;
  --panel: rgba(32, 5, 5, .72); --panel2: rgba(52, 9, 8, .86);
  --line: rgba(255, 52, 36, .26); --line-hi: rgba(255, 70, 50, .72);
  --text: #ffe8e4; --muted: #c98b84; --faint: #6e3a35;
  --accent: #ff2a1f; --accent2: #ff8a3c; --on-accent: #fff;
  --ok: #5fe3a1; --warn: #ffcf6a; --bad: #ff5a5a;
  --r: 0px; --r-sm: 0px;
  --head: "Chakra Petch", "Bahnschrift", "DIN Alternate", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --tabs-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
body.brand {
  --bg: #08080b; --bg2: #111116;
  --panel: rgba(255, 255, 255, .045); --panel2: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .1); --line-hi: color-mix(in srgb, var(--accent) 70%, transparent);
  --text: #f6f6f8; --muted: #a4a4b0; --faint: #5d5d68;
  --r: 18px; --r-sm: 11px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.hq::before {
  background:
    radial-gradient(ellipse at 50% -5%, rgba(110, 12, 8, .55), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 40, 30, .035) 0 1px, transparent 1px 3px), var(--bg);
}
body.brand::before {
  background:
    radial-gradient(120% 55% at 50% -12%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%),
    radial-gradient(80% 40% at 100% 100%, color-mix(in srgb, var(--accent2) 14%, transparent), transparent 70%), var(--bg);
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img, video { max-width: 100%; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 17px; height: 17px; }

/* ---------- chrome ---------- */
#top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--safe-t)) 16px 10px; min-height: 58px;
  background: linear-gradient(180deg, var(--bg) 55%, color-mix(in srgb, var(--bg) 0%, transparent));
}
#top .brandmark { font: 700 15px var(--head); letter-spacing: .34em; color: var(--accent); text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 70%, transparent); white-space: nowrap; }
#top .brandmark small { display: block; font-size: 9px; letter-spacing: .3em; color: var(--muted); text-shadow: none; margin-top: 2px; }
#top .logo { height: 40px; max-width: 46vw; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }
#top .grow { flex: 1; }
#top .clock { font: 600 12px var(--mono); color: var(--muted); letter-spacing: .1em; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm); color: var(--text); text-decoration: none; cursor: pointer; }
.iconbtn:active { background: var(--panel2); }
button.iconbtn { padding: 0; font: inherit; }
.iconbtn.spinning .i { animation: rot .7s linear infinite; color: var(--accent); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 11px/18px var(--head); text-align: center; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent); }
.iconbtn .badge { position: absolute; top: -6px; right: -6px; }

#view { max-width: 780px; margin: 0 auto; padding: 4px 16px calc(var(--tabs-h) + 110px + var(--safe-b)); }
body.bare #view { padding-bottom: 40px; }

#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--bg) 90%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
#tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative;
  color: var(--muted); text-decoration: none; font: 600 10px var(--head); letter-spacing: .18em; }
#tabs a.on { color: var(--text); }
#tabs a.on svg { color: var(--accent); filter: drop-shadow(0 0 7px var(--accent)); }
#tabs .badge { position: absolute; top: 6px; left: calc(50% + 5px); }

#fab {
  position: fixed; right: 18px; bottom: calc(var(--tabs-h) + var(--safe-b) + 16px); z-index: 31;
  width: 60px; height: 60px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--accent); color: var(--on-accent);
  background: radial-gradient(circle at 35% 30%, var(--accent2), var(--accent));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
body.hq #fab { border-radius: 0; clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%); }
body.brand #fab { border-radius: 50%; }
#fab svg { width: 28px; height: 28px; stroke-width: 2.4; }
#fab:active { transform: scale(.94); }

/* ---------- type + blocks ---------- */
.k { font: 600 10px var(--head); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--head); margin: 0; }
h1 { font-size: 26px; letter-spacing: .04em; line-height: 1.15; }
h2 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sect { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.sect h2 { flex: 1; }
body.hq .sect h2::before { content: "▮ "; color: var(--accent); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.center { text-align: center; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
a.card, .card.tap { display: block; text-decoration: none; color: inherit; cursor: pointer; }
a.card:active, .card.tap:active { background: var(--panel2); }
body.hq .card::before, body.hq .tile::before { content: ""; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
body.hq .card::after, body.hq .tile::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.list > * + * { margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-sm); cursor: pointer; text-decoration: none;
  font: 600 12px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--text); white-space: nowrap;
}
.btn:active { background: var(--panel2); }
.btn.hot { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent2))); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); color: var(--ok); }
.btn.bad { border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 11px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns > .btn { flex: 1; }

.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border: 1px solid var(--line); border-radius: 11px;
  font: 600 10px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
body.hq .chip { border-radius: 0; }
.chip.acc { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.chip.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.chip.s-brief { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.chip.s-active { color: var(--accent2); border-color: color-mix(in srgb, var(--accent2) 55%, transparent); }
.chip.s-review { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.chip.s-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }

label.f { display: block; margin-top: 12px; }
label.f > span { display: block; margin-bottom: 6px; }
.input, .textarea, select.input {
  width: 100%; min-height: 46px; padding: 11px 13px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--text); font-size: 16px; outline: none;
}
.input:focus, .textarea:focus { border-color: var(--line-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
input[type=color] { width: 54px; height: 44px; padding: 3px; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); }
.err { color: var(--warn); font-size: 14px; min-height: 1em; margin: 10px 0 0; }

.meter { height: 8px; background: rgba(255, 255, 255, .07); border-radius: 4px; overflow: hidden; }
body.hq .meter { border-radius: 0; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); box-shadow: 0 0 10px var(--accent); }
.meter.hi > i { background: var(--warn); }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); line-height: 1.5; }
.spin { display: grid; place-items: center; padding: 70px 0; }
.spin::after { content: ""; width: 34px; height: 34px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- auth screens ---------- */
.auth { max-width: 380px; margin: 0 auto; padding: calc(9vh + var(--safe-t)) 0 30px; text-align: center; }
.auth .mark { font: 700 34px var(--head); letter-spacing: .4em; color: var(--accent); text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 80%, transparent); padding-left: .4em; }
.auth .mark small { display: block; font-size: 11px; letter-spacing: .5em; color: var(--muted); text-shadow: none; margin-top: 6px; }
.auth .brandlogo { max-width: 78%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)); }
.auth form { text-align: left; margin-top: 26px; }
.auth .hint { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 22px; }

/* ---------- HQ ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.tile { position: relative; padding: 14px 14px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
.tile b { display: block; font: 700 34px/1 var(--head); color: var(--text); margin: 8px 0 4px; }
.tile.hot b { color: var(--accent); text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 70%, transparent); }
.tile small { color: var(--muted); font-size: 12px; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 10px var(--head); letter-spacing: .24em; color: var(--muted); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.feed .ev { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; }
.feed .ev + .ev { margin-top: 6px; }
.feed .ev.unread { border-color: var(--line-hi); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.feed .ev.unread .who::after { content: " • NEW"; color: var(--accent); font: 700 10px var(--head); letter-spacing: .2em; }
.feed .ev .av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-sm); background: #000; border: 1px solid var(--line); overflow: hidden; }
.feed .ev .av img { width: 100%; height: 100%; object-fit: contain; }
.feed .ev .who { font: 600 12px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.feed .ev .what { font-size: 14px; line-height: 1.4; margin-top: 3px; word-break: break-word; }
.feed .ev .when { font-size: 12px; color: var(--faint); margin-top: 4px; }
.day { margin: 18px 0 8px; }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.brandcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 150px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--b1, var(--accent)) 22%, transparent), var(--panel) 65%); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.brandcard::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--b1, var(--accent)), var(--b2, var(--accent2))); }
.brandcard .lg { height: 62px; display: grid; place-items: center; }
.brandcard .lg img { max-height: 62px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6)); }
.brandcard .lg .ph { font: 700 22px var(--head); letter-spacing: .1em; color: var(--b1, var(--accent)); }
.brandcard .nm { font: 600 12px var(--head); letter-spacing: .14em; text-transform: uppercase; }
.brandcard .badge { position: absolute; top: 8px; right: 8px; }

/* ---------- client home ---------- */
.hero { position: relative; text-align: center; padding: 8px 0 6px; }
.hero img { max-width: 72%; max-height: 150px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .75)); }
.hero .tag { margin-top: 10px; color: var(--muted); font-size: 14px; }
.hero h1 { margin-top: 8px; font-size: 20px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: 16px; border: 1px solid var(--line-hi); border-radius: var(--r);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel)); }
.banner p { margin: 0; font-size: 14px; line-height: 1.4; }

.drops { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.drops::-webkit-scrollbar { display: none; }
.drop { flex: none; width: 46%; max-width: 210px; scroll-snap-align: start; text-decoration: none; color: inherit; }
.drop .pv { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: #000 center / cover no-repeat; border: 1px solid var(--line); }
.drop .pv .chip { position: absolute; left: 8px; top: 8px; background: rgba(0, 0, 0, .65); }
.drop .pv .play { position: absolute; inset: 0; display: grid; place-items: center; }
.drop .pv .play svg { width: 46px; height: 46px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)); fill: rgba(0, 0, 0, .35); }
.drop .t { font-size: 13px; margin-top: 7px; }

.proj { display: flex; gap: 12px; align-items: center; }
.proj .cv { width: 62px; height: 62px; flex: none; border-radius: var(--r-sm); background: #000 center / cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); }
.proj .tt { font: 600 16px var(--head); letter-spacing: .02em; }
.proj .meta { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- project + file ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font: 600 11px var(--head); letter-spacing: .2em; text-transform: uppercase; margin: 2px 0 12px; }
.ptitle { display: flex; align-items: flex-start; gap: 10px; }
.ptitle h1 { flex: 1; word-break: break-word; }
.deliv { display: flex; gap: 12px; align-items: center; }
.deliv .pv { width: 74px; aspect-ratio: 9 / 16; flex: none; border-radius: var(--r-sm); background: #000 center / cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; }
.deliv .pv.land { aspect-ratio: 16 / 9; width: 110px; }
.deliv .nm { font-size: 15px; word-break: break-word; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 600px) { .thumbs { grid-template-columns: repeat(4, 1fr); } }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: #000 center / cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; color: var(--muted); }
.thumb .ext { font: 700 13px var(--head); letter-spacing: .1em; }
.thumb .vid { position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; color: #fff; filter: drop-shadow(0 1px 4px #000); }
.thumb .by { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); text-align: left; }

.notes .n { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.notes .n + .n { margin-top: 8px; }
.notes .n.mine { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.notes .n .hd { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.notes .n .hd b { color: var(--text); font: 600 12px var(--head); letter-spacing: .1em; text-transform: uppercase; }
.notes .n .bd { margin-top: 6px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.tcode { font: 700 12px var(--mono); padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); border: 1px solid var(--accent); cursor: pointer; }
.composer { margin-top: 10px; }
.composer .row { margin-top: 8px; }

.media { margin: 0 -16px; background: #000; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.media video, .media img { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: #000; }
.media iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.media .other { padding: 60px 20px; text-align: center; color: var(--muted); }
.media .other b { display: block; font: 700 40px var(--head); letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
@media (min-width: 800px) { .media { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; } }
.fhead { margin-top: 14px; }
.fhead h1 { font-size: 20px; word-break: break-word; }
.versions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.versions a { text-decoration: none; }
.reviewbox { margin-top: 14px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line-hi); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }

/* ---------- sheets, toasts, uploads ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); animation: fade .18s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88dvh; overflow-y: auto; margin: 0 auto; max-width: 640px;
  padding: 10px 18px calc(22px + var(--safe-b)); background: var(--bg2); border: 1px solid var(--line-hi); border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0; animation: up .24s cubic-bezier(.2, .9, .3, 1); box-shadow: 0 -20px 60px rgba(0, 0, 0, .6); }
.sheet .grab { width: 44px; height: 4px; border-radius: 2px; background: var(--faint); margin: 2px auto 14px; }
.sheet h3 { font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.sheet .opt { display: flex; gap: 14px; align-items: center; width: 100%; padding: 14px; margin-top: 8px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.sheet .opt:active { background: var(--panel2); }
.sheet .opt b { display: block; font: 600 14px var(--head); letter-spacing: .08em; }
.sheet .opt small { color: var(--muted); font-size: 13px; }
.sheet .opt svg { color: var(--accent); width: 26px; height: 26px; }
.linkbox { padding: 12px; background: #000; border: 1px solid var(--line); border-radius: var(--r-sm); font: 13px var(--mono); word-break: break-all; user-select: all; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

#toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 90px); z-index: 80; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 16px; background: var(--bg2); border: 1px solid var(--line-hi); border-radius: var(--r-sm); font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(-6px); }

#uploads { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); z-index: 40; max-width: 520px; margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--line-hi); border-radius: var(--r); padding: 10px 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
#uploads .u { margin-top: 8px; }
#uploads .u .row { font-size: 13px; }
#uploads .u .meter { height: 5px; margin-top: 5px; }
#uploads .u.done .meter > i { background: var(--ok); box-shadow: none; }
#uploads .u.err .meter > i { background: var(--bad); box-shadow: none; }
body.uploading #fab { bottom: calc(var(--tabs-h) + var(--safe-b) + 16px + var(--upl-h, 0px)); }

.swatch { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); vertical-align: middle; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
