:root {
  --bg: #0b0d11;
  --bg-soft: #0f1218;
  --panel: #151a22;
  --panel-2: #1a202a;
  --bubble: #171d26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9edf4;
  --muted: #93a0b3;
  --muted-2: #6c7a8e;
  --accent: #8fe3b3;
  --accent-2: #5fd093;
  --accent-ink: #06130c;
  --danger: #ff867d;
  --warn: #f3c96b;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

/* Author `display` rules must never defeat the hidden attribute. */
[hidden] { display: none !important; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(95, 208, 147, 0.07), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(120, 150, 255, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(143, 227, 179, 0.28); }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg { width: 20px; height: 20px; display: block; flex: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.hint, .muted { color: var(--muted); }
.muted { font-size: 13px; }

/* ---------- login ---------- */

.login {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(26, 32, 42, 0.96), rgba(18, 23, 30, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 28px 22px;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.login-brand h1 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 650;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(143, 227, 179, 0.09);
  border: 1px solid rgba(143, 227, 179, 0.22);
}

.brand-mark svg { width: 22px; height: 22px; }

.login-note {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 22px;
}

.field { display: block; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  background: #0d1117;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: rgba(143, 227, 179, 0.55);
  box-shadow: 0 0 0 4px rgba(143, 227, 179, 0.09);
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 0 0 12px;
  min-height: 0;
}

.login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 12px;
  margin: 16px 0 0;
}

.login-foot svg { width: 14px; height: 14px; }

.shake { animation: shake 0.35s ease; }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 560;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn:hover { background: #222a36; }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 650;
}
.btn.primary:hover { background: #a5ecc2; }

.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn.wide { width: 100%; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.icon-btn.small { width: 30px; height: 30px; }
.icon-btn.small svg { width: 16px; height: 16px; }

/* ---------- app shell ---------- */

.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px max(18px, env(safe-area-inset-left)) 10px max(18px, env(safe-area-inset-right));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 640;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.brand .brand-mark svg { width: 18px; height: 18px; }

.top-actions { display: flex; align-items: center; gap: 4px; }

.storage-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  margin-right: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.storage-pill:hover { color: var(--text); border-color: var(--line-strong); }
.storage-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(95, 208, 147, 0.6);
}
.storage-pill.warn .dot { background: var(--warn); box-shadow: 0 0 8px rgba(243, 201, 107, 0.6); }
.storage-pill.full .dot { background: var(--danger); box-shadow: 0 0 8px rgba(255, 134, 125, 0.6); }

.searchbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 20px;
  color: var(--muted);
}
.searchbar > svg { width: 18px; height: 18px; margin-left: 2px; }
.searchbar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 9px 0;
  font-size: 15px;
  color: var(--text);
}

/* ---------- feed ---------- */

.feed {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2b3442 transparent;
}
.feed::-webkit-scrollbar { width: 10px; }
.feed::-webkit-scrollbar-thumb { background: #232b37; border-radius: 10px; border: 3px solid var(--bg); }

.items {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.load-older {
  display: block;
  margin: 16px auto 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
}
.load-older:hover { color: var(--text); border-color: var(--line-strong); }

.item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  animation: itemIn 0.22s ease both;
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.item-body { min-width: 0; max-width: 100%; }

.item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  padding: 0 4px 5px;
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.01em;
}
.item-meta .sep { opacity: 0.4; }
.item-meta .expiry { display: inline-flex; align-items: center; gap: 4px; }
.item-meta .expiry svg { width: 12px; height: 12px; }
.item-meta .expiry.warn { color: var(--warn); }

.bubble {
  background: var(--bubble);
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  padding: 10px 14px;
  max-width: min(680px, 100%);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14.5px;
  line-height: 1.5;
}
.bubble a { text-decoration: underline; text-underline-offset: 2px; }
.bubble .char-count { color: var(--danger); font-size: 12px; }

.media {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: #0a0d12;
  max-width: min(680px, 100%);
  position: relative;
}
.media img {
  display: block;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  cursor: zoom-in;
}
.media video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}
.media audio { display: block; width: min(420px, 100%); padding: 8px; }
.media .img-fallback {
  padding: 26px 20px;
  color: var(--muted);
  font-size: 13px;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 11px 12px;
  max-width: min(520px, 100%);
}
.file-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex: none;
}
.file-info { min-width: 0; flex: 1; }
.file-name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size { color: var(--muted-2); font-size: 12px; margin-top: 1px; }
.file-card .icon-btn { flex: none; }

.item-actions {
  display: flex;
  gap: 1px;
  padding-top: 16px;
  opacity: 0;
  transition: opacity 0.15s;
}
.item:hover .item-actions,
.item:focus-within .item-actions { opacity: 1; }
.item-actions .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
.item-actions .icon-btn svg { width: 15px; height: 15px; }
.item-actions .danger:hover { color: var(--danger); }

.menu-anchor { position: relative; }
.menu {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 32px;
  min-width: 150px;
  background: #1b222c;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 5px;
  box-shadow: var(--shadow);
}
.menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
}
.menu button:hover { background: rgba(255, 255, 255, 0.06); }

.date-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 10px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty, .search-empty {
  max-width: 420px;
  margin: 12vh auto 0;
  text-align: center;
  color: var(--muted);
  padding: 0 24px;
}
.empty-mark {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(143, 227, 179, 0.07);
  border: 1px solid rgba(143, 227, 179, 0.16);
}
.empty-mark svg { width: 28px; height: 28px; }
.empty h2 { font-size: 19px; margin: 0 0 6px; color: var(--text); font-weight: 600; }
.empty p { font-size: 14px; margin: 0; line-height: 1.55; }
.search-empty { margin-top: 8vh; }

.jump-latest {
  position: absolute;
  left: 50%;
  bottom: 132px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(27, 34, 44, 0.92);
  backdrop-filter: blur(10px);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 15;
}
.jump-latest svg { width: 14px; height: 14px; }

/* ---------- uploads ---------- */

.uploads {
  flex: none;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  align-items: center;
  background: rgba(21, 26, 34, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  animation: rise 0.2s ease both;
}
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-status { color: var(--muted); font-variant-numeric: tabular-nums; }
.upload.error .upload-status { color: var(--danger); }
.upload.done .upload-status { color: var(--accent); }
.upload-track {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.upload-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 4px;
  transition: width 0.15s linear;
}
.upload.done .upload-track span { background: var(--accent); }

/* ---------- composer ---------- */

.composer {
  flex: none;
  padding: 4px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(11, 13, 17, 0.98) 55%, rgba(11, 13, 17, 0));
}

.composer-box {
  max-width: 840px;
  margin: 0 auto;
  background: linear-gradient(180deg, #171d26, #141a22);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 7px 9px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.composer-box:focus-within {
  border-color: rgba(143, 227, 179, 0.38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(143, 227, 179, 0.06);
}

.composer-main { display: flex; align-items: flex-end; gap: 4px; }

.composer textarea {
  flex: 1;
  min-height: 38px;
  max-height: 200px;
  resize: none;
  border: 0;
  background: transparent;
  outline: none;
  padding: 9px 4px 8px;
  line-height: 1.45;
  font-size: 15px;
}

.send {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  transition: opacity 0.15s, transform 0.1s;
  flex: none;
  margin-bottom: 1px;
}
.send svg { width: 18px; height: 18px; }
.send:disabled { opacity: 0.28; cursor: default; }
.send:not(:disabled):hover { background: #a5ecc2; }
.send:not(:disabled):active { transform: scale(0.95); }
.attach { margin-bottom: 1px; }

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 6px 3px 42px;
  color: var(--muted-2);
  font-size: 11.5px;
}
.ttl { display: inline-flex; align-items: center; gap: 6px; }
.ttl select {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 2px 2px;
  border-radius: 6px;
  outline: none;
}
.ttl select:hover { color: var(--text); }
.ttl select option { background: #1b222c; color: var(--text); }
.hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- drop overlay ---------- */

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 12, 10, 0.72);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  border: 2px dashed rgba(143, 227, 179, 0.55);
  margin: 10px;
  border-radius: 20px;
}
.drop-overlay > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
}
.drop-overlay svg { width: 40px; height: 40px; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 7, 10, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(20, 26, 34, 0.8);
  color: var(--text);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  max-width: 100%;
}
.lightbox-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-bar .btn { flex: none; }

/* ---------- settings sheet ---------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
  backdrop-filter: blur(2px);
}

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  z-index: 50;
  background: #12161d;
  border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.22s ease both;
}
@keyframes slideIn {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 620; letter-spacing: -0.01em; }
.sheet-body { overflow-y: auto; padding: 16px 18px 30px; }

.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.panel h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 650;
}
.panel p { margin: 0 0 10px; }
.panel p:last-child { margin-bottom: 0; }

.meter {
  height: 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 8px;
}
.meter span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 6px;
  transition: width 0.3s ease;
}
.meter.warn span { background: linear-gradient(90deg, #d9a441, var(--warn)); }
.meter.full span { background: linear-gradient(90deg, #c9524a, var(--danger)); }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}
.kv span:last-child { color: var(--muted); }

.devices { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.devices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.devices li.current { border-color: rgba(143, 227, 179, 0.3); }
.devices .dev-name { font-weight: 560; }
.devices .dev-meta { color: var(--muted-2); font-size: 11.5px; margin-top: 1px; }
.devices button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  padding: 4px 6px;
  border-radius: 6px;
}
.devices button:hover { color: var(--danger); background: rgba(255, 255, 255, 0.05); }

.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.limits li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.limits li span:first-child { color: var(--text); }

.sheet-foot { color: var(--muted-2); font-size: 11.5px; text-align: center; margin-top: 20px; }

/* ---------- toasts ---------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(440px, calc(100% - 32px));
}

.toast {
  background: #202834;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
  border-radius: 11px;
  padding: 9px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.2s ease both;
  max-width: 100%;
  text-align: center;
}
.toast.error { border-color: rgba(255, 134, 125, 0.4); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .items { padding: 12px 14px 6px; }
  .composer { padding: 4px 12px calc(10px + env(safe-area-inset-bottom)); }
  .uploads { padding: 0 12px 6px; }
  .composer-foot { padding-left: 6px; }
  .hint { display: none; }
  .storage-pill { padding: 6px 9px; }
  .storage-pill #storageText { font-size: 11px; }
  .topbar { padding: 10px 14px 8px; }
  .item-actions {
    position: absolute;
    right: 0;
    top: 1px;
    gap: 0;
    padding: 0 0 0 14px;
    opacity: 0.62;
    background: linear-gradient(90deg, rgba(11, 13, 17, 0), var(--bg) 22%);
  }
  .item-actions .icon-btn { width: 28px; height: 28px; }
  .item-meta { padding-right: 126px; min-height: 30px; }
  .item { gap: 2px; }
  .bubble { font-size: 15px; }
  .media img { max-height: 380px; }
  .sheet { width: 100%; }
  .jump-latest { bottom: 150px; }
  .lightbox-bar { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
