/* Dunkelkammer – Dark Mode mit Orange als Akzent.
   Die Flächen sind neutrales Graphit, damit Fotos farbecht wirken.
   Orange ist das Sicherheitslicht: nur dort, wo etwas aktiv, ausgewählt
   oder wichtig ist. */

@font-face {
  font-family: "Lora";
  src: url("/static/fonts/Lora-Variable.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/static/fonts/Lora-Italic-Variable.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #141518;
  --panel: #1b1c20;
  --raised: #24262b;
  --hover: #2d2f35;
  --line: #34363d;
  --text: #ececee;
  --muted: #9c9ea6;
  --faint: #6b6e76;
  --safe: #ff8b2b;          /* Sicherheitslicht */
  --safe-soft: #ffa95c;     /* Orange als Text auf Dunkel */
  --safe-glow: rgba(255, 139, 43, 0.16);
  --on-safe: #1a1008;
  --danger: #ff6b5e;
  --print: #e8e7e3;         /* Papierrand der Abzüge */

  --serif: "Lora", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --side: 232px;
  --r-s: 6px;
  --r-m: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--safe-soft); }
[hidden] { display: none !important; }
input[type="checkbox"] { accent-color: var(--safe); width: 16px; height: 16px; cursor: pointer; }

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

.icon { width: 20px; height: 20px; flex: none; }
.icon--s { width: 16px; height: 16px; }
.icon--l { width: 26px; height: 26px; }

/* ---------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--raised); color: var(--text);
  cursor: pointer; white-space: nowrap; font-size: 14px; text-decoration: none;
}
.btn:hover { background: var(--hover); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--primary { background: var(--safe); border-color: var(--safe); color: var(--on-safe); font-weight: 600; }
.btn--primary:hover { background: var(--safe-soft); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--raised); color: var(--text); }
.btn--danger { color: var(--danger); }
.btn--icon { width: 36px; padding: 0; justify-content: center; }

/* ---------------------------------------------------------- Formulare */

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-size: 13px; color: var(--muted); }
.input, .select {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s);
}
.input:focus, .select:focus { outline: none; border-color: var(--safe); box-shadow: 0 0 0 3px var(--safe-glow); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--safe); width: 16px; height: 16px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.form-error { color: var(--danger); font-size: 14px; min-height: 1.5em; margin: 0 0 12px; }

/* ---------------------------------------------------------- Layout */

.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100%; }

.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  background: var(--panel); border-right: 1px solid var(--line);
}
.brand {
  font: italic 600 23px/1 var(--serif); letter-spacing: -.01em;
  padding: 4px 10px 26px; color: var(--text);
}
.nav { display: grid; gap: 2px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: var(--r-s);
  color: var(--muted); text-decoration: none; font-size: 15px;
}
.nav a:hover { background: var(--raised); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--safe);
  box-shadow: 0 0 14px 2px var(--safe-glow), 0 0 4px var(--safe);
}
.nav a[aria-current="page"] .icon { color: var(--safe); }

.side-foot { margin-top: auto; display: grid; gap: 14px; padding: 0 6px; }
.disk { font-size: 12.5px; color: var(--muted); }
.disk-bar { height: 4px; border-radius: 2px; background: var(--raised); margin-bottom: 8px; overflow: hidden; }
.disk-bar span { display: block; height: 100%; background: var(--safe); }
.who { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }

.main { min-width: 0; padding: 30px 40px 80px; }

.head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.head h1 { font: 500 36px/1.1 var(--serif); letter-spacing: -.015em; margin: 0; }
.head .sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.head .back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.head .back:hover { color: var(--text); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------- Fotos */

.month { margin-bottom: 34px; }
.month h2 {
  display: flex; align-items: baseline; gap: 12px;
  font: 500 21px/1.2 var(--serif); margin: 0 0 12px;
  position: sticky; top: 0; z-index: 2; padding: 10px 0 8px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.month h2 small { font: 13px var(--sans); color: var(--faint); }

.jrow { display: flex; gap: 4px; margin-bottom: 4px; }
.tile {
  position: relative; flex: none; padding: 0; border: 0; cursor: zoom-in;
  background: var(--raised); overflow: hidden; border-radius: 2px;
}
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.tile img.is-loaded { opacity: 1; }
.tile:hover img { filter: brightness(1.08); }
.tile:focus-visible { outline-offset: -2px; }

/* ---------------------------------------------------------- Alben: Abzug-Stapel */

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 34px; }
.album { color: inherit; text-decoration: none; display: block; }
.stack { position: relative; aspect-ratio: 4 / 3; margin: 10px 10px 18px; }
.stack .sheet {
  position: absolute; inset: 0; background: var(--print); border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .3s ease;
}
.stack .sheet:nth-child(1) { transform: rotate(-4deg) translate(-6px, 4px); filter: brightness(.55); }
.stack .sheet:nth-child(2) { transform: rotate(3deg) translate(6px, 2px); filter: brightness(.72); }
.stack .sheet { padding: 7px; }
.stack .sheet img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.stack .sheet img.is-loaded { opacity: 1; }
.album:hover .sheet:nth-child(1) { transform: rotate(-7deg) translate(-14px, 6px); }
.album:hover .sheet:nth-child(2) { transform: rotate(6deg) translate(14px, 0); }
.album:focus-visible { outline-offset: 6px; }
.album .parent { font-size: 13px; color: var(--faint); }
.album h3 { font: 500 20px/1.25 var(--serif); margin: 2px 0 2px; }
.album .meta { font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------- Dateien */

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 14px; margin-top: 8px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; padding: 2px 6px; border-radius: 4px; }
.crumbs a:hover { color: var(--text); background: var(--raised); }
.crumbs a:last-child { color: var(--text); }
.crumbs .icon { width: 14px; height: 14px; color: var(--faint); }

.ftable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ftable th { text-align: left; font-weight: 500; color: var(--faint); font-size: 13px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.ftable td { padding: 0 12px; height: 52px; border-bottom: 1px solid rgba(52, 54, 61, .6); }
.ftable tr.row { cursor: default; }
.ftable tr.row:hover td { background: var(--panel); }
.ftable tr.row.is-selected td { background: rgba(255, 139, 43, .08); }
.ftable td.c-check, .ftable th.c-check { width: 44px; padding-right: 0; }
.ftable td.c-size, .ftable th.c-size { width: 110px; text-align: right; color: var(--muted); }
.ftable td.c-date, .ftable th.c-date { width: 170px; color: var(--muted); }
.fname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fname button, .fname a { all: unset; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fname button:hover, .fname a:hover { color: var(--safe-soft); }
.fname button:focus-visible { outline: 2px solid var(--safe); }
.ficon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 4px; background: var(--raised); color: var(--muted); overflow: hidden; }
.ficon--dir { background: transparent; color: var(--safe); }
.ficon img { width: 100%; height: 100%; object-fit: cover; }

.selbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 14px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-m);
}
.selbar .count { margin-right: auto; padding-left: 6px; font-size: 14px; }

.dropzone {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  background: rgba(20, 21, 24, .85); pointer-events: none;
}
.dropzone div {
  padding: 40px 60px; border: 2px dashed var(--safe); border-radius: 16px;
  font: 500 24px var(--serif); color: var(--text); box-shadow: 0 0 60px var(--safe-glow);
}

.uploads {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 320px;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 14px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); font-size: 14px;
}
.uploads .bar { height: 4px; border-radius: 2px; background: var(--bg); margin-top: 10px; overflow: hidden; }
.uploads .bar span { display: block; height: 100%; width: 0; background: var(--safe); transition: width .15s; }

/* ---------------------------------------------------------- Freigaben */

.shares { display: grid; gap: 10px; max-width: 900px; }
.share {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
}
.share h3 { font: 500 18px var(--serif); margin: 0; }
.share .path { font-size: 13px; color: var(--faint); }
.share .facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); grid-column: 1; }
.share .facts span { display: inline-flex; gap: 6px; align-items: center; }
.share.is-expired { opacity: .55; }
.share .actions { grid-row: 1 / span 3; grid-column: 2; }

/* ---------------------------------------------------------- Leere Zustände */

.empty { max-width: 440px; padding: 60px 0; color: var(--muted); }
.empty h2 { font: 500 24px var(--serif); color: var(--text); margin: 0 0 8px; }
.empty p { margin: 0 0 18px; }

.loading { color: var(--faint); padding: 40px 0; }

/* ---------------------------------------------------------- Dialoge */

dialog {
  width: min(460px, calc(100vw - 32px)); padding: 0;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(8, 9, 11, .74); }
.dlg { padding: 24px; }
.dlg h2 { font: 500 23px/1.2 var(--serif); margin: 0 0 6px; }
.dlg .lead { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.dlg .buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.linkbox { display: flex; gap: 8px; }
.linkbox .input { font-size: 13px; }
.folderlist { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-s); }
.folderlist button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  background: none; border: 0; text-align: left; cursor: pointer; font-size: 14px;
}
.folderlist button:hover { background: var(--raised); }
.folderlist button[aria-pressed="true"] { background: var(--safe-glow); color: var(--safe-soft); }
.folderlist .icon { color: var(--safe); }

/* ---------------------------------------------------------- Hinweise */

.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
.toast {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 16px; border-radius: var(--r-m); font-size: 14px;
  background: var(--text); color: var(--bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.toast--error { background: var(--danger); color: #1c0806; }

/* ---------------------------------------------------------- Konto & Benutzer */

.who-btn {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 6px 8px 6px 4px; margin-left: -4px; border: 0; border-radius: var(--r-s);
  background: none; cursor: pointer; text-align: left;
}
.who-btn:hover { background: var(--raised); }
.who-btn small { display: block; font-size: 12px; color: var(--faint); line-height: 1.2; }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--raised); color: var(--muted); font: 500 17px var(--serif);
}
.avatar--s { width: 30px; height: 30px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 12px;
  font-size: 12.5px; color: var(--muted); background: var(--raised); border: 1px solid var(--line);
  white-space: nowrap;
}
.tools .tag { height: 36px; padding: 0 12px; border-radius: var(--r-s); font-size: 13.5px; }
.tag--safe { color: var(--safe-soft); border-color: rgba(255, 139, 43, .45); background: transparent; }
.tag--off { color: var(--danger); background: transparent; }

.hint--box {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin: -8px 0 18px; border-radius: var(--r-s);
  background: var(--panel); border: 1px solid var(--line);
}

.users { display: grid; gap: 10px; max-width: 920px; }
.user {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start;
  padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m);
}
.user.is-disabled { opacity: .6; }
.user-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.user h3 { font: 500 19px var(--serif); margin: 0; }
.user-facts { margin: 10px 0 0; font-size: 13px; color: var(--faint); }
.rights-all, .rights-none { margin: 0; font-size: 14px; color: var(--muted); }
.rights-none { color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 8px; border-radius: var(--r-s);
  background: var(--raised); font-size: 13.5px;
}
.chip small { color: var(--faint); font-size: 12px; }
.chip--write .icon { color: var(--safe); }
.chip--read .icon { color: var(--muted); }

.dlg--wide { width: 100%; }
dialog:has(.dlg--wide) { width: min(600px, calc(100vw - 32px)); }
dialog { max-height: calc(100dvh - 32px); }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-card {
  position: relative; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer;
}
.radio-card input { accent-color: var(--safe); margin-top: 3px; }
.radio-card strong { display: block; font-weight: 600; font-size: 14.5px; }
.radio-card small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.radio-card:has(input:checked) { border-color: var(--safe); background: var(--safe-glow); }

.grant-section { border: 0; padding: 0; margin: 0 0 16px; }
.grant-section legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 4px; }
.grant-section > .hint { margin-bottom: 10px; }
.grants { display: grid; gap: 6px; margin-bottom: 8px; }
.grant { display: grid; grid-template-columns: 1fr 140px auto; gap: 6px; }
.field--checks { gap: 10px; }
.buttons .btn--left { margin-right: auto; }

/* ---------------------------------------------------------- Lightbox */

.lb {
  position: fixed; inset: 0; z-index: 50; display: grid;
  grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr);
  height: 100vh; height: 100dvh; background: #0b0c0e;
}
.lb-top {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; color: var(--muted);
}
.lb-title { margin-right: auto; min-width: 0; }
.lb-title strong { display: block; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title span { font-size: 13px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px 24px; }
.lb-stage img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(36, 38, 43, .75); border: 1px solid var(--line); color: var(--text);
}
.lb-nav:hover { background: var(--hover); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-info { width: 300px; padding: 4px 22px 24px; border-left: 1px solid var(--line); overflow: auto; }
.lb-info h3 { font: 500 18px var(--serif); margin: 4px 0 16px; }
.lb-info dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.lb-info dt { color: var(--faint); }
.lb-info dd { margin: 0; overflow-wrap: anywhere; }
.lb-info .note { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------- Anmeldung & Freigabeseite */

#root { min-height: 100%; }
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.gate-card { width: min(380px, 100%); }
.gate-card .brand { padding: 0 0 6px; font-size: 34px; }
.gate-card .lead { color: var(--muted); margin: 0 0 28px; }
.gate-card .btn--primary { width: 100%; justify-content: center; height: 42px; }
.btn--passkey { width: 100%; justify-content: center; height: 44px; font-weight: 600; font-size: 15px; }
.btn--passkey .icon { color: var(--safe); }
.gate-hint { margin: 8px 0 0; text-align: center; }
.gate-title { font: 500 26px/1.2 var(--serif); margin: 0 0 8px; }
.gate-secondary { width: 100%; justify-content: center; margin-top: 8px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: var(--faint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.acc-section { padding: 18px 0; border-top: 1px solid var(--line); }
.acc-section:first-of-type { border-top: 0; padding-top: 4px; }
.acc-section h3 { display: flex; align-items: center; gap: 8px; font: 500 18px var(--serif); margin: 0 0 6px; }
.acc-section h3 .icon { color: var(--safe); }
.acc-section > .hint { margin-bottom: 12px; }
.pk-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.pk-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-s); background: var(--raised);
}
.pk-item strong { display: block; font-weight: 600; font-size: 14.5px; }
.pk-item small { color: var(--faint); font-size: 12.5px; }
.pk-item > .icon { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 12px; }
.status--on { color: #7ed38f; }
.status--off { color: var(--muted); }
.totp-setup { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 4px; }
.totp-setup .qr { width: 168px; height: 168px; border-radius: var(--r-s); background: #fff; padding: 4px; }
.totp-key { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; word-break: break-all; background: var(--bg); padding: 8px 10px; border-radius: var(--r-s); border: 1px solid var(--line); }
.inline-form { display: flex; gap: 8px; align-items: flex-start; }
.inline-form .input { max-width: 200px; }

.gate-foot { margin-top: 26px; font-size: 13px; color: var(--faint); display: flex; gap: 8px; align-items: center; }

.public { max-width: 1400px; margin: 0 auto; padding: 34px 32px 80px; }
.public-head { margin-bottom: 28px; }
.kicker, .public-head .from { font: italic 500 15px var(--serif); color: var(--safe-soft); margin: 0 0 6px; }
.public-head h1 { font: 500 40px/1.1 var(--serif); margin: 0; letter-spacing: -.015em; }
.public-head p { color: var(--muted); margin: 8px 0 0; }

/* ---------------------------------------------------------- Mobil */

.tabbar { display: none; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 20px 16px 96px; }
  .head h1 { font-size: 28px; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); text-decoration: none; padding: 4px 0; }
  .tabbar a[aria-current="page"] { color: var(--safe-soft); }
  .albums { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 18px; }
  .album h3 { font-size: 17px; }
  .ftable .c-date, .ftable .c-size { display: none; }
  .lb { grid-template-columns: 1fr; }
  .lb-info { position: absolute; inset: auto 0 0 0; width: auto; max-height: 55%; background: var(--panel); border: 0; border-top: 1px solid var(--line); }
  .lb-stage { padding: 0 0 16px; }
  .lb-nav { display: none; }
  .user { grid-template-columns: auto 1fr; }
  .user > .btn { grid-column: 1 / -1; justify-self: start; }
  .radio-cards { grid-template-columns: 1fr; }
  .grant { grid-template-columns: 1fr 120px auto; }
  .totp-setup { grid-template-columns: 1fr; }
  .uploads { left: 16px; right: 16px; width: auto; bottom: 84px; }
  .public { padding: 22px 16px 60px; }
  .public-head h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
