:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1b1b1a;
  --muted: #74726c;
  --line: #e4e2dc;
  --accent: #2f5d50;
  --accent-text: #ffffff;
  --accent-soft: #e3ece8;
  --danger: #b3412e;
  --on: #3c9a6f;
  --mark: #f4e2a1; /* words found by the search */
  --mark-text: #1b1b1a;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.04);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --surface: #1f1f1e;
    --text: #ecebe7;
    --muted: #9a988f;
    --line: #2e2e2c;
    --accent: #7fb8a3;
    --accent-text: #10201b;
    --accent-soft: #233630;
    --danger: #e0806e;
    --on: #6fcf9f;
    --mark: #5b4d1c;
    --mark-text: #f5ecc9;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

/* Heights from the document, not from vh/dvh units: in an installed PWA, Android counts
   the status bar in 100dvh, and the page then scrolls by that much. */
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* a preview, a folder or a sheet over the history: the history does not scroll under it */
html.locked { overflow: hidden; overscroll-behavior: none; }

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100%;
  /* Android app: Capacitor provides the system bar insets as CSS variables */
  padding: calc(max(env(safe-area-inset-top), var(--safe-area-inset-top, 0px)) + 12px) 16px
    calc(max(env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px)) + 24px);
  position: relative;
}

h1 { font-size: 22px; font-weight: 650; margin: 8px 0; letter-spacing: -0.01em; }
h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 28px 0 10px; }
h3 { font-size: 14px; font-weight: 600; margin: 18px 0 8px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.center { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; min-height: 70vh; gap: 10px; }
.page { padding-top: 8px; }
.welcome { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.welcome .inline { width: 100%; margin-top: 0; }

.logo {
  width: 56px; height: 56px; border-radius: 16px;
  background: url(icon.svg) center / cover;
  margin-bottom: 4px;
}

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

button {
  font: inherit;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* never opacity: WebKit animates it in a layer of its own, and a button that changes size
     while pressed (the loop button) leaves a piece of its old shape on screen */
  transition: background .15s;
  color: inherit;
  background: none;
}
button:disabled { opacity: .5; cursor: default; }
button:active { opacity: .7; }
button svg, .icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.primary { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.secondary { background: var(--accent-soft); color: var(--text); }
.ghost { color: var(--muted); }
.danger { color: var(--danger); }
.wide { width: 100%; margin-top: 10px; }
.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.icon { padding: 8px; border-radius: 10px; color: var(--muted); }
.icon:hover { background: var(--accent-soft); }

/* ---------------------------------------------------------- header */

.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.title { display: flex; align-items: center; gap: 8px; font-size: 17px; min-width: 0; }
.title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-select { font: inherit; font-weight: 600; border: 0; background: none; color: inherit; padding: 4px 0; max-width: 60vw; }
.status { color: var(--muted); font-size: 13px; margin: 0 0 14px; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line); }
.dot.on { background: var(--on); box-shadow: 0 0 0 3px color-mix(in srgb, var(--on) 20%, transparent); }

/* ---------------------------------------------------------- main */

.bar-actions { display: flex; gap: 2px; }

/* search in the history: the bar becomes its field, the type chips under it */
.search-bar { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.search-field {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 0 2px 0 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted);
}
.search-field:focus-within { border-color: var(--accent); }
.search-field > svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text);
  font: inherit; font-size: 16px; padding: 8px 0; -webkit-appearance: none; appearance: none;
}
.search-field input:focus { outline: 0; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field .icon { padding: 6px; }
.search-field .icon svg { width: 16px; height: 16px; }
.search-tools .chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.search-tools .chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 5px 12px; border-radius: 999px; font-size: 13px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.search-count { margin: 8px 0 -8px; color: var(--muted); font-size: 12px; }
.hit { background: var(--mark); color: var(--mark-text); border-radius: 3px; }
.item.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search-empty p { margin: 0 0 12px; overflow-wrap: anywhere; }
.icon.paused { color: var(--accent); background: var(--accent-soft); }
.icon.paused svg { fill: currentColor; }
.hint.paused { color: var(--accent); font-weight: 500; }

.note { margin-top: 14px; }
.note textarea {
  display: block; width: 100%; resize: none; overflow-y: auto;
  min-height: 44px; max-height: 40vh;
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 12px; box-shadow: var(--shadow);
}
.note textarea::placeholder { color: var(--muted); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; }
.note-bar { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.note-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }

.actions { display: flex; gap: 8px; }
.actions .primary { flex: 1; padding: 13px 14px; }
.actions .secondary { padding: 13px 16px; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.transfer {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--accent-soft); font-size: 13px;
}
.transfer { align-items: center; }
.transfer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer-state { display: inline-flex; align-items: center; gap: 6px; flex: none; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.ring { width: 18px; height: 18px; transform: rotate(-90deg); }
.transfer-state .ring { width: 14px; height: 14px; }
.ring circle { fill: none; stroke-width: 4; }
.ring-track { stroke: color-mix(in srgb, var(--accent) 20%, transparent); }
.ring-bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .25s; }
.update { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; padding: 8px 8px 8px 12px; border-radius: 10px; font-size: 13px; background: var(--accent-soft); }
.update span { flex: 1; min-width: 12em; }
.update a.button { display: inline-flex; text-decoration: none; background: var(--accent); color: var(--accent-text); font-weight: 600; }
/* Settings: the donation link */
.donate { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 14px; }
.donate p { flex: 1; min-width: 14em; margin: 0; }
.donate a.button { display: inline-flex; text-decoration: none; font-weight: 600; }
.alert { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.history-bar { display: flex; justify-content: flex-end; margin: 14px 0 -10px; }
.transfer.error { color: var(--danger); }
.meter { height: 4px; margin: -6px 10px 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.meter.low > span { background: var(--danger); }

.history { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
}
.item.broken { opacity: .6; }
/* receipts of an item sent from here: ticks at the top right, the detail under them */
.item { position: relative; }
.item.has-receipts .body { padding-right: 26px; }
.receipts { position: absolute; top: 8px; right: 8px; }
.receipts .ticks { display: flex; padding: 4px 5px; border-radius: 7px; background: none; }
.receipts .ticks:hover { background: var(--accent-soft); }
.receipts .ticks svg { width: 20px; height: 13px; overflow: visible; }
.receipts path {
  fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 0; transition: stroke .35s ease, stroke-dashoffset .35s ease, opacity .2s;
}
.receipts path.off { stroke-dashoffset: 20; opacity: 0; }
.receipts path.read { stroke: var(--accent); }
.receipts-detail {
  position: absolute; z-index: 5; top: calc(100% + 4px); right: 0; width: max-content; min-width: 200px; max-width: min(300px, 80vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px;
  box-shadow: 0 6px 24px rgb(0 0 0 / .14);
}
.receipts-detail p { margin: 0 0 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.receipts-detail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.receipts-detail li { display: flex; justify-content: space-between; gap: 14px; }
.receipts-detail li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipts-detail li span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipts-detail li.read span:last-child { color: var(--accent); font-weight: 600; }
.receipts-detail li.waiting span:last-child { font-style: italic; }
@media (prefers-reduced-motion: reduce) { .receipts path { transition: none; } }
/* the tile at the left of an item: its thumbnail (a video's poster), or a drawn page */
.thumb {
  grid-row: span 2; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden;
  position: relative; display: block; background: var(--line);
}
.thumb:disabled { opacity: 1; cursor: default; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb.doc { background: var(--bg); border: 1px solid var(--line); }
.thumb.doc.video { background: #1b1b1a; border: 0; }
.thumb.doc.audio { background: var(--accent-soft); border: 0; }
.thumb .note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.thumb .note svg { width: 26px; height: 26px; margin-bottom: 8px; stroke: var(--accent); stroke-width: 2; fill: none; }
.thumb .page { position: absolute; inset: 9px 8px; display: flex; flex-direction: column; gap: 4px; }
.thumb .page i { display: block; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.thumb .page i:first-child { height: 4px; width: 70%; background: var(--text); }
.thumb .page i:nth-child(3) { width: 85%; }
.thumb .page i:nth-child(4) { width: 60%; }
.thumb .play {
  position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: rgb(0 0 0 / .55); display: flex; align-items: center; justify-content: center;
}
.thumb .play svg { width: 12px; height: 12px; fill: #fff; stroke: none; }
.thumb .badge {
  position: absolute; right: 4px; bottom: 4px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 15px;
  font-weight: 600; font-variant-numeric: tabular-nums; background: rgb(0 0 0 / .6); color: #fff;
}
.thumb.doc:not(.video):not(.audio) .badge { background: var(--accent); color: var(--accent-text); font-size: 9px; letter-spacing: .04em; }
.excerpt {
  margin: 2px 0 0; color: var(--muted); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.body { min-width: 0; grid-column: 2; }
.item:not(:has(.thumb)) .body, .item:not(:has(.thumb)) .item-actions { grid-column: 1 / -1; }
.content { margin: 0; overflow-wrap: anywhere; }
.content.text {
  white-space: pre-wrap;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
}
.content.file { font-weight: 500; }
.meta { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.item-actions { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.item-actions .download { padding: 0 8px; min-height: 30px; color: var(--muted); font-size: 12px; }

.empty { text-align: center; color: var(--muted); margin-top: 48px; font-size: 14px; }

.drop {
  position: fixed; inset: 12px; border: 2px dashed var(--accent); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--bg) 85%, transparent); font-weight: 600; color: var(--accent);
  pointer-events: none;
}

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

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin: 12px 0; }
input[type=text], input[type=url], select {
  font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; }
.switch { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 14px; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); }

.members, .groups { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.members li, .groups li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.members li + li, .groups li + li { border-top: 1px solid var(--line); }
.members .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.groups li { cursor: pointer; justify-content: space-between; }
.groups li.current { font-weight: 600; }
.inline { display: flex; gap: 8px; margin-top: 10px; }
.inline input { flex: 1; }

/* ---------------------------------------------------------- pairing */

.steps { text-align: left; max-width: 320px; padding-left: 20px; }
.steps li { margin: 8px 0; }
.glyph { display: inline-block; transform: rotate(-90deg); }
.qr { width: 240px; height: 240px; image-rendering: pixelated; border-radius: 12px; background: #fff; padding: 8px; margin: 8px 0; }
.link { font-size: 12px; color: var(--muted); text-align: center; max-width: 320px; }

.scan { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: calc(max(env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px)) + 32px); z-index: 10; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan .frame { position: absolute; top: 50%; left: 50%; width: 240px; height: 240px; transform: translate(-50%, -60%); border: 2px solid rgb(255 255 255 / .8); border-radius: 24px; box-shadow: 0 0 0 100vmax rgb(0 0 0 / .35); }
.scan button { position: relative; background: rgb(255 255 255 / .9); color: #111; }
.scan-error { position: relative; color: #fff; }

.toast {
  position: fixed; left: 50%; bottom: calc(max(env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px)) + 24px); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px;
  font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgb(0 0 0 / .15); z-index: 20;
}

/* what a version brings: in the update banner, and once after an update */
.news { margin: 10px 0 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.news .small { margin-top: 6px; }
.news-list { flex-basis: 100%; font-size: 13px; max-height: 45vh; overflow-y: auto; }
.news-list ul { margin: 4px 0 6px; padding-left: 18px; }
.news-list li { margin: 3px 0; }
.news-version { margin: 8px 0 0; font-weight: 600; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- preview */

.viewer {
  position: fixed; inset: 0; z-index: 15; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg); color: var(--text);
  padding: calc(max(env(safe-area-inset-top), var(--safe-area-inset-top, 0px)) + 10px) 14px
    calc(max(env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px)) + 16px);
}
/* images and videos: on a dark ground, whatever the theme */
.viewer.kind-image, .viewer.kind-video, .viewer.kind-pdf {
  --bg: #0e0e0d; --surface: #1f1f1e; --text: #ecebe7; --muted: #9a988f; --line: #2e2e2c;
  --accent: #7fb8a3; --accent-text: #10201b; --accent-soft: #233630; --danger: #e0806e;
  color-scheme: dark;
}
.viewer-bar { display: flex; align-items: center; gap: 4px; min-height: 40px; }
.viewer-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.viewer-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; padding-right: 4px; }

.viewer-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.viewer-tools .switch { margin: 0; font-size: 13px; }
.segmented { display: flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.segmented button { padding: 5px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }

.viewer-media {
  flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center;
}
.viewer-image { max-width: 100%; max-height: 100%; object-fit: contain; position: relative; }
.viewer-blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: blur(14px); opacity: .7; }
.viewer-video { width: 100%; max-height: 100%; border-radius: 12px; background: #000; }
/* a PDF: its pages one under the other, each drawn when it comes near the screen */
.pdf-pages {
  align-self: stretch; flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: safe center;
  gap: 12px; padding: 12px; border-radius: var(--radius); background: #2a2a28; overscroll-behavior: contain;
}
.pdf-page { flex: none; position: relative; background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / .35); }
.pdf-page canvas { display: block; width: 100%; height: 100%; }
/* its text, transparent over the drawing, to select it (rules of pdf.js's pdf_viewer.css) */
.textLayer {
  position: absolute; inset: 0; overflow: clip; text-align: initial; line-height: 1; letter-spacing: normal;
  word-spacing: normal; text-size-adjust: none; -webkit-text-size-adjust: none; forced-color-adjust: none;
  transform-origin: 0 0; z-index: 0; color-scheme: only light;
  --min-font-size: 1;
  --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size));
  --min-font-size-inv: calc(1 / var(--min-font-size));
}
.textLayer :is(span, br) {
  color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%;
  user-select: text; -webkit-user-select: text;
}
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) {
  z-index: 1; --font-height: 0; font-size: calc(var(--text-scale-factor) * var(--font-height));
  --scale-x: 1; --rotate: 0deg;
  transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}
.textLayer .markedContent { display: contents; }
.textLayer ::selection { background: color-mix(in srgb, AccentColor, transparent 50%); color: transparent; }
.textLayer br::selection { background: transparent; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; -webkit-user-select: none; }
/* its links, over the text */
.pdf-links { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pdf-links a { position: absolute; pointer-events: auto; border-radius: 2px; }
.pdf-links a:hover, .pdf-links a:focus-visible { background: rgb(47 93 80 / .15); outline: 1px solid rgb(47 93 80 / .5); }
.pdf-count { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: auto; }
.segmented .zoom { min-width: 62px; font-variant-numeric: tabular-nums; }
.segmented button:disabled { opacity: .4; }
.thumb.pic.pdf img { object-position: top; }
/* a song: its note, its player, previous / next / loop, then what comes next */
.viewer-audio { width: 100%; max-width: 480px; max-height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.viewer-audio .note {
  width: 120px; height: 120px; border-radius: 26px; background: var(--accent-soft); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.viewer-audio .note svg { width: 56px; height: 56px; stroke: var(--accent); stroke-width: 1.6; fill: none; }
.viewer-audio audio { width: 100%; flex: none; }
.audio-controls { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.audio-skip { display: flex; gap: 4px; }
.audio-skip .icon { padding: 11px; color: var(--text); border-radius: 22px; }
.audio-skip .icon svg { width: 20px; height: 20px; }
.audio-skip .icon:disabled { opacity: .3; background: none; }
.loop-mode {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 18px; font-size: 13px;
  color: var(--muted); border: 1px solid var(--line); background: var(--surface); white-space: nowrap;
}
.loop-mode svg { width: 16px; height: 16px; }
.loop-mode.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.loop-mode.on svg { stroke: var(--accent); }
.audio-queue { width: 100%; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.audio-queue .label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 2px 8px; }
.audio-queue button { display: flex; justify-content: flex-start; gap: 10px; padding: 8px; border-radius: 9px; text-align: left; min-width: 0; width: 100%; }
.audio-queue button:hover { background: var(--accent-soft); }
.audio-queue button span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-queue button span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.audio-queue button.now { background: var(--accent-soft); font-weight: 600; }
.viewer-state { position: absolute; padding: 8px 14px; border-radius: 10px; background: rgb(0 0 0 / .55); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.viewer-error, .audio-error { color: var(--muted); text-align: center; max-width: 320px; }
.viewer .nav {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0; border-radius: 22px;
  background: rgb(0 0 0 / .4); color: #fff;
}
.viewer .nav.prev { left: 4px; }
.viewer .nav.next { right: 4px; }
/* texts scroll, a video has its own controls there: no arrows over them */
.kind-text .nav, .kind-markdown .nav, .kind-video .nav, .kind-audio .nav, .kind-pdf .nav { display: none; }
.viewer-note { margin: 0 4px; color: var(--muted); font-size: 12px; }

/* a text, with its line numbers */
.lines {
  align-self: stretch; flex: 1; overflow: auto; display: grid; grid-template-columns: max-content minmax(0, 1fr);
  align-content: start; padding: 10px 12px 10px 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  overscroll-behavior: contain;
}
.lines .ln { text-align: right; padding: 0 10px 0 12px; color: var(--muted); user-select: none; -webkit-user-select: none; }
.lines .tx { white-space: pre; }
.viewer.wrap .lines .tx { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Markdown, formatted */
.markdown {
  align-self: stretch; flex: 1; overflow: auto; padding: 4px 18px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; overscroll-behavior: contain;
}
.markdown h1 { font-size: 21px; line-height: 1.25; margin: 16px 0 8px; }
.markdown h2 { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 20px 0 6px; }
.markdown h3, .markdown h4 { font-size: 15px; margin: 16px 0 6px; }
.markdown p, .markdown ul, .markdown ol, .markdown blockquote, .markdown table { margin: 0 0 12px; }
.markdown ul, .markdown ol { padding-left: 22px; }
.markdown li { margin: 3px 0; }
.markdown li.task { list-style: none; margin-left: -20px; }
.markdown li.task input { margin: 0 8px 0 0; accent-color: var(--accent); vertical-align: -2px; }
.markdown li.task.done { color: var(--muted); text-decoration: line-through; }
.markdown a { color: var(--accent); }
.markdown code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border-radius: 5px; padding: 1px 5px; }
.markdown pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; overflow-x: auto; }
.markdown pre code { background: none; padding: 0; }
.markdown blockquote { border-left: 3px solid var(--line); padding-left: 12px; color: var(--muted); }
.markdown table { border-collapse: collapse; display: block; overflow-x: auto; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 5px 8px; }
.markdown hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.viewer-actions { display: flex; flex-direction: column; gap: 8px; }
.viewer-actions .row { display: flex; gap: 8px; }
.viewer-actions .row button { flex: 1; padding: 11px 12px; white-space: nowrap; min-width: 0; }
.viewer-actions .row .ghost { flex: none; }
.pip-offer .wide { margin: 0; padding: 12px 14px; }
.pip-offer .hint { margin: 6px 4px 0; }

/* picture-in-picture by the app itself (Android, Linux, Windows): only the video */
html.pip, html.pip body { background: #000; }
html.pip .app { padding: 0; max-width: none; }
html.pip .app > :not(.viewer) { display: none !important; }
html.pip .viewer { padding: 0; gap: 0; background: #000; }
html.pip .viewer > :not(.viewer-media) { display: none; }
html.pip .viewer-media .nav, html.pip .viewer-blur { display: none; }
html.pip .viewer-video { border-radius: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.pip-back {
  position: absolute; top: 8px; left: 8px; width: 36px; height: 36px; padding: 0; border-radius: 18px;
  background: rgb(0 0 0 / .5); color: #fff; opacity: 0; transition: opacity .2s;
}
html.pip .viewer-media:hover .pip-back, .pip-back:focus-visible { opacity: 1; }

/* Mac popover: compact */
@media (max-width: 420px) {
  .app { padding-left: 14px; padding-right: 14px; }
}

/* ---------------------------------------------------------- share links */

/* an entry of the history holds its parts directly in the item's grid */
.entry { display: contents; }
.icon-only { padding: 6px 8px; }
.icon-only svg { width: 16px; height: 16px; }
/* a link made here: its tile shows a chain, over the item's thumbnail while it is there */
.item.shared-link { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.link-tile { background: var(--accent-soft); }
.link-tile img { opacity: .55; }
.link-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.link-mark svg { width: 26px; height: 26px; stroke: var(--accent); stroke-width: 2.2; }
.link-tile img + .link-mark svg { width: 22px; height: 22px; padding: 5px; box-sizing: content-box; border-radius: 50%; background: var(--surface); }
.link-meta { color: var(--accent); }
.share-name { margin: 0; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-page .qr-wait, .drop-page .qr-wait, .qr-page .qr-wait { height: 256px; display: flex; align-items: center; margin: 8px 0; }
.share-ttl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.share-page .link, .drop-page .link { width: 100%; }
.qr-page .qr { width: min(300px, 100%); height: auto; aspect-ratio: 1; }
.share-bottom { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* the share page slides in from the right; the history slides back from the left */
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-back { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.share-page, .drop-page, .qr-page { animation: slide-in .26s cubic-bezier(.2, .8, .2, 1); }
.main.slide-back { animation: slide-back .26s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .share-page, .drop-page, .qr-page, .main.slide-back { animation: none; }
}

/* ---------------------------------------------------------- share link page (/s/) */

.visit { display: flex; flex-direction: column; gap: 14px; }
.visit-head { display: flex; justify-content: center; }
.visit-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 17px; }
.visit-brand .logo { width: 32px; height: 32px; border-radius: 9px; margin: 0; }
.visit #state { min-height: 40vh; }
.visit-lead { text-align: center; font-size: 17px; font-weight: 600; margin: 4px 0 12px; }
.visit-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; display: flex; flex-direction: column; gap: 4px;
}
.visit-media:empty { display: none; }
.visit-media { display: flex; justify-content: center; margin-bottom: 8px; }
.visit-image { max-width: 100%; max-height: 60vh; border-radius: 10px; object-fit: contain; }
.visit-video { width: 100%; max-height: 60vh; border-radius: 10px; background: #000; }
.visit-audio { width: 100%; }
.visit-text {
  margin: 0; width: 100%; max-height: 60vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.visit-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.visit-actions { display: flex; gap: 8px; margin-top: 12px; }
.visit-actions button { flex: 1; padding: 13px 14px; }
.visit-actions button[hidden] { display: none; }
.visit-foot { text-align: center; margin-top: 18px; font-size: 13px; }
.visit-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------- shared folders */

/* the File button: on phones, a small menu (files, or a folder) */
.file-pick { position: relative; display: flex; }
.file-pick .caret { width: 14px; height: 14px; margin-left: -4px; }
.menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; min-width: 180px; padding: 5px;
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / .14);
}
.menu button { justify-content: flex-start; padding: 9px 10px; border-radius: 8px; font-size: 14px; }
.menu button:hover { background: var(--accent-soft); }
.menu svg { color: var(--accent); }

/* the tile of a folder: its first previews (made by the sender), or its icon */
.thumb.folder.doc { background: var(--accent-soft); border: 0; }
.thumb .folder-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.thumb .folder-mark svg { width: 32px; height: 32px; stroke-width: 1.7; margin-bottom: 4px; }
.thumb.folder .badge { background: var(--accent); color: var(--accent-text); }

/* the browser, over the history (the viewer opens over it) */
.folder-page {
  position: fixed; inset: 0; z-index: 14; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  padding: calc(max(env(safe-area-inset-top), var(--safe-area-inset-top, 0px)) + 10px) 14px
    calc(max(env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px)) + 12px);
}
.folder-state, .folder-browser { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.folder-state .center { min-height: 40vh; }
.folder-crumbs { display: flex; align-items: center; gap: 2px; overflow-x: auto; white-space: nowrap; font-size: 13px; scrollbar-width: none; }
.folder-crumbs .crumb { padding: 4px 6px; border-radius: 6px; color: var(--muted); font-size: 13px; flex: none; }
.folder-crumbs .crumb[aria-current] { color: var(--text); font-weight: 600; cursor: default; }
.folder-crumbs .sep { width: 12px; height: 12px; color: var(--muted); flex: none; }
.folder-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.folder-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; }
.folder-body .empty { color: var(--muted); text-align: center; margin: 40px 0; }

.fi { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* list: a box to tick, the preview, the name */
.folder-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.folder-row { display: flex; align-items: center; gap: 2px; padding-left: 8px; border-top: 1px solid var(--line); min-width: 0; }
.folder-row:first-child { border-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.folder-row:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.folder-row.picked { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.tick { width: 30px; height: 30px; padding: 0; flex: none; border-radius: 8px; position: relative; }
.tick::before {
  content: ""; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid color-mix(in srgb, var(--muted) 70%, transparent);
  box-sizing: border-box; position: absolute;
}
.tick.on::before { background: var(--accent); border-color: var(--accent); }
.tick.partial::before { border-color: var(--accent); background: linear-gradient(var(--accent), var(--accent)) center / 8px 2px no-repeat; }
.tick .fi { position: relative; width: 12px; height: 12px; stroke-width: 3; color: var(--accent-text); }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 4px; justify-content: flex-start; text-align: left; border-radius: 0; }
.row-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; background: var(--line); }
.row-thumb img, .tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-thumb.folder-icon { background: var(--accent-soft); color: var(--accent); }
.row-thumb.folder-icon .fi { width: 22px; height: 22px; stroke-width: 1.8; }
.row-thumb.doc, .tile-img.doc { background: var(--bg); border: 1px solid var(--line); }
.row-thumb.doc b, .tile-img.doc b { font-size: 9px; letter-spacing: .04em; color: var(--accent); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.row-excerpt { color: var(--muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main .chevron { color: var(--muted); width: 16px; height: 16px; }

/* grid: the previews, folders as chips above */
.folder-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.folder-chip { background: var(--surface); border: 1px solid var(--line); padding: 7px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; gap: 6px; }
.folder-chip .fi { color: var(--accent); width: 16px; height: 16px; }
.folder-chip small { color: var(--muted); font-weight: 400; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 3px; border-radius: 12px; overflow: hidden; }
.folder-grid .tile { padding: 0; border-radius: 0; aspect-ratio: 1; position: relative; display: block; overflow: hidden; background: var(--line); }
.tile-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tile-badge {
  position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px 1px 3px;
  border-radius: 5px; background: rgb(0 0 0 / .6); color: #fff; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tile-badge .play { width: 10px; height: 10px; fill: #fff; stroke: none; }
.tile-mark {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; background: rgb(0 0 0 / .25); display: flex; align-items: center; justify-content: center;
}
.tile-mark.on { background: var(--accent); border-color: var(--accent); }
.tile-mark .fi { width: 13px; height: 13px; stroke-width: 3; color: var(--accent-text); }
.folder-grid .tile.picked .tile-img { opacity: .75; }
.folder-grid.choosing .tile.picked { outline: 3px solid var(--accent); outline-offset: -3px; }

/* the bar at the bottom: what is downloaded */
.folder-bottom {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.folder-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.folder-sum strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.folder-sum span { color: var(--muted); font-variant-numeric: tabular-nums; }
.folder-bottom .primary { white-space: nowrap; }
/* three buttons (Open too): the summary on its own line above them */
.folder-bottom.three .folder-sum { flex-basis: 100%; }

/* a large folder, shown before it is sent */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 18; background: rgb(0 0 0 / .35); display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 12px calc(max(env(safe-area-inset-bottom), var(--safe-area-inset-bottom, 0px)) + 16px);
}
.sheet {
  width: 100%; max-width: 440px; background: var(--surface); color: var(--text); border-radius: 18px; padding: 16px;
  box-shadow: 0 12px 32px rgb(0 0 0 / .2); display: flex; flex-direction: column; gap: 2px;
}
.sheet p { margin: 4px 0; }
.sheet-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.sheet-head strong { min-width: 0; overflow-wrap: anywhere; }
.sheet-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet-note { color: var(--muted); font-size: 13px; }
.sheet-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.sheet .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } }

/* a share link's folder: browsed in the page */
.visit-folder { display: flex; flex-direction: column; gap: 8px; }
.visit-folder[hidden], .visit-preview[hidden], .visit-card[hidden] { display: none; }
.visit-folder .center-text { text-align: center; margin: -6px 0 4px; color: var(--muted); }
.visit-folder .folder-body { max-height: 62vh; }
.visit-preview .visit-media { width: 100%; height: 100%; align-items: center; margin: 0; }
.visit-preview .visit-text { max-height: 100%; overflow: auto; width: 100%; }

/* ---------------------------------------------------------- file requests */

/* in the history: the request, on every device of the group (framed like a share link) */
.drop-tile { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.drop-tile svg { width: 26px; height: 26px; }
/* pinned: on top of the history, a pin before the sender; the button filled; pins tilted, as stuck in a board */
.meta .pin-mark { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; fill: var(--accent); stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(40deg); }
.pin-button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(40deg); }
.pin-button.on { color: var(--accent); }
.pin-button.on svg { fill: currentColor; }
.meta .from-drop { width: 12px; height: 12px; vertical-align: -1px; margin-right: 3px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.drop-page .drop-msg { width: 100%; max-width: 320px; text-align: left; margin: 0; }
.drop-page .drop-msg input { width: 100%; }

/* the page of a request, for someone outside the group */
.deposit-body { display: flex; flex-direction: column; gap: 12px; }
.deposit-body[hidden] { display: none; }
.deposit .visit-lead { margin: 4px 0 0; }
.deposit-ask { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; }
.deposit-ask[hidden] { display: none; }
.deposit-ask small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.deposit-ask p { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.deposit-name { margin: 0; }
.deposit-zone {
  flex-direction: column; gap: 6px; padding: 26px 14px; width: 100%; text-align: center;
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: var(--radius); background: var(--surface);
}
.deposit-zone svg { width: 30px; height: 30px; stroke: var(--accent); stroke-width: 1.8; }
.deposit-zone.over { border-color: var(--accent); background: var(--accent-soft); }
.deposit-zone.compact { flex-direction: row; padding: 12px 14px; border-style: solid; border-width: 0; background: var(--accent-soft); font-weight: 600; }
.deposit-zone.compact svg { width: 18px; height: 18px; stroke-width: 2; }
.deposit-zone.compact span { display: none; }
.deposit-zone[hidden] { display: none; }
.deposit-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.deposit-list[hidden] { display: none; }
.deposit-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); min-width: 0; }
.deposit-list li:first-child { border-top: 0; }
.deposit-thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex: none; position: relative; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.deposit-thumb svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deposit-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.deposit-file { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.deposit-file strong { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deposit-file small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.deposit-state { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.deposit-state .ring { width: 14px; height: 14px; }
.deposit-state.done { color: var(--on); font-weight: 600; }
.deposit-state.failed { color: var(--danger); }
.deposit .center-text { text-align: center; margin: 0; }
