/* ==========================================================================
   Orbit – Weboberfläche
   Gleiche Handschrift wie open360: Papier & Tinte, Serif für Haltung, Grotesk für Arbeit.
   ========================================================================== */

:root {
  --paper: #f4f2ec;
  --paper-2: #ece9e1;
  --card: #fbfaf6;
  --white: #ffffff;
  --ink: #16150f;
  --ink-2: #3c3a33;
  --muted: #7a766c;
  --line: #d9d5ca;
  --line-2: #e6e3da;
  --hover: #f0eee7;

  --scribe: #2f54d9;
  --grid: #17825a;
  --stage: #d9532b;
  --folio: #6c4bd1;
  --orbit: #0e86a8;
  --orbit-soft: #e4f2f7;
  --orbit-select: #eef6f9;
  --danger: #b93a24;
  --warn: #c98a12;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --side: 252px;
  --details: 340px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
svg { display: block; flex: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orbit); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- Glyphen ---------- */
.glyph { width: 22px; height: 22px; }
.glyph.lg { width: 40px; height: 40px; }
.glyph.xl { width: 64px; height: 64px; }
.c-orbit, .c-folder { color: var(--orbit); }
.c-scribe { color: var(--scribe); }
.c-grid { color: var(--grid); }
.c-stage { color: var(--stage); }
.c-folio { color: var(--folio); }
.c-image { color: #b5832b; }
.c-pdf { color: #c7412f; }
.c-video { color: #5b4bb8; }
.c-audio { color: #c2457e; }
.c-zip { color: #6d6a60; }
.c-file { color: #a9a496; }
.icon { width: 18px; height: 18px; }

/* ---------- Knöpfe & Felder ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #34322a; }
.btn-orbit { background: var(--orbit); color: #fff; }
.btn-orbit:hover { background: #0b7392; }
.btn-line { background: var(--card); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9c2f1c; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  border: 0; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input {
  height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.input:focus { outline: none; border-color: var(--orbit); box-shadow: 0 0 0 3px rgba(14, 134, 168, .15); }
.form-error { color: var(--danger); font-size: 13.5px; min-height: 1.2em; }

/* ==========================================================================
   Anmeldung
   ========================================================================== */
.auth { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink); color: var(--paper);
}
.auth-side .brand { color: var(--paper); }
.auth-side h1 { font: 400 clamp(44px, 5.4vw, 76px)/1.02 var(--serif); letter-spacing: -.02em; max-width: 11ch; }
.auth-side h1 em { color: #7cc8dd; }
.auth-side p { color: #b9b5aa; max-width: 40ch; margin-top: 22px; font-size: 16px; }
.auth-side small { color: #8b877c; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.orbits { position: absolute; right: -180px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%); pointer-events: none; }
.orbits ellipse { fill: none; stroke: rgba(244, 242, 236, .12); stroke-width: 1; }
.orbits .planet { fill: #7cc8dd; }
.orbits g { transform-origin: 310px 310px; animation: spin 60s linear infinite; }
.orbits g:nth-child(2) { animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orbits g { animation: none; } }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); display: grid; gap: 18px; }
.auth-card h2 { font: 400 34px/1.1 var(--serif); letter-spacing: -.01em; }
.auth-card .switch { font-size: 14px; color: var(--muted); }
.auth-card .switch button { border: 0; background: none; padding: 0; font-weight: 600; color: var(--orbit); text-decoration: underline; text-underline-offset: 3px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .glyph { width: 28px; height: 28px; }
.brand small { font: 500 10.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-left: 2px; }

/* ==========================================================================
   Hauptansicht
   ========================================================================== */
.shell { display: grid; grid-template-columns: var(--side) 1fr; height: 100%; }
.shell.with-details { grid-template-columns: var(--side) 1fr var(--details); }

.side { display: flex; flex-direction: column; gap: 22px; padding: 20px 16px; border-right: 1px solid var(--line); background: var(--paper-2); min-height: 0; }
.side .brand { padding: 2px 6px; }
.side-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px;
  text-decoration: none; font-weight: 500; color: var(--ink-2);
}
.nav a:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.nav a.on { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav a.on .icon { color: var(--orbit); }
.nav a.drop-target { background: var(--orbit-soft); outline: 2px dashed var(--orbit); }
.side-foot { margin-top: auto; display: grid; gap: 16px; }
.quota { display: grid; gap: 8px; font-size: 13px; }
.quota-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--orbit); border-radius: inherit; transition: width .6s var(--ease-out); }
.quota-bar i.warn { background: var(--warn); }
.quota-bar i.full { background: var(--danger); }
.quota b { font-weight: 600; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; flex: none; }
.me-text { min-width: 0; flex: 1; line-height: 1.25; }
.me-text b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--line-2); min-height: 64px; }
.topbar .menu-btn { display: none; }
.search { position: relative; margin-left: auto; width: min(360px, 40vw); }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { height: 38px; padding-left: 38px; background: var(--card); }

.head { padding: 26px 28px 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.crumbs a:hover { background: var(--hover); color: var(--ink); }
.crumbs a.drop-target { background: var(--orbit-soft); color: var(--orbit); }
.crumbs .icon { width: 14px; height: 14px; }
.title { font: 400 38px/1.1 var(--serif); letter-spacing: -.015em; overflow-wrap: anywhere; }
.head-actions { display: flex; gap: 8px; }

.list-wrap { flex: 1; overflow: auto; padding: 8px 28px 48px; position: relative; }
.files { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.files th {
  position: sticky; top: 0; z-index: 1; background: var(--paper);
  text-align: left; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 12px 10px; border-bottom: 1px solid var(--line);
}
.files th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; display: inline-flex; gap: 4px; }
.files th button:hover { color: var(--ink); }
.files th .arrow { font-family: var(--sans); }
.files td { padding: 0 10px; height: 52px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files .col-name { width: auto; }
.files .col-date { width: 190px; }
.files .col-size { width: 110px; text-align: right; }
.files .col-act { width: 52px; text-align: right; }
.files tbody tr { cursor: default; transition: background .12s; user-select: none; }
.files tbody tr:hover td { background: rgba(255, 255, 255, .55); }
.files tbody tr.sel td { background: var(--orbit-select); }
.files tbody tr.drop-target td { background: var(--orbit-soft); box-shadow: inset 0 0 0 9999px rgba(14, 134, 168, .06); }
.files tbody tr.drop-target td:first-child { box-shadow: inset 3px 0 0 var(--orbit); }
.name-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.name-cell .nm { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.name-cell .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.name-cell .stack { min-width: 0; display: grid; }
.files .act { opacity: 0; }
.files tr:hover .act, .files tr.sel .act, .files .act:focus-visible { opacity: 1; }
.size { font-variant-numeric: tabular-nums; }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 80px 20px; color: var(--muted); }
.empty h3 { font: 400 26px/1.2 var(--serif); color: var(--ink); }
.empty .glyph { margin-bottom: 8px; opacity: .9; }
.empty .btn { margin-top: 10px; }

.loading { padding: 60px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--orbit); animation: spin .8s linear infinite; }

/* ---------- Auswahlleiste ---------- */
.selbar {
  display: flex; align-items: center; gap: 10px; margin: 0 28px; padding: 8px 10px 8px 16px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-size: 14px;
}
.selbar .btn-ghost { color: var(--paper); }
.selbar .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.selbar .spacer { flex: 1; }

/* ---------- Details ---------- */
.details { border-left: 1px solid var(--line); background: var(--card); overflow: auto; display: flex; flex-direction: column; }
.details-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0 22px; }
.details-head span { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.thumb {
  margin: 14px 22px 0; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--paper); display: grid; place-items: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.details-body { padding: 18px 22px 28px; display: grid; gap: 22px; }
.details h2 { font: 400 24px/1.2 var(--serif); overflow-wrap: anywhere; }
.details .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.section-label { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.versions { display: grid; gap: 2px; font-size: 13.5px; }
.versions li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.versions li:hover { background: var(--paper); }
.versions .n { font: 500 11px var(--mono); color: var(--muted); width: 28px; }
.versions .when { flex: 1; min-width: 0; line-height: 1.3; }
.versions .when small { display: block; color: var(--muted); font-size: 12px; }
.versions .cur { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--orbit-soft); color: var(--orbit); }
.share-box { display: grid; gap: 8px; }
.share-row { display: flex; gap: 6px; align-items: center; padding: 8px 8px 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-size: 13px; }
.share-row code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px var(--mono); color: var(--ink-2); }

/* ---------- Upload-Leiste ---------- */
.uploads {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 360px; max-height: 50vh; overflow: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(22, 21, 15, .35);
}
.uploads header { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.uploads li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 16px; font-size: 13px; border-bottom: 1px solid #f2f0ea; }
.uploads li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploads li .bar { grid-column: 2 / 4; height: 3px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.uploads li .bar i { display: block; height: 100%; background: var(--orbit); transition: width .2s; }
.uploads li.done .bar i { background: var(--grid); }
.uploads li.error .bar i { background: var(--danger); }
.uploads li .st { font-size: 12px; color: var(--muted); }
.uploads li.error .st { color: var(--danger); }

/* ---------- Drop-Zone ---------- */
.dropzone { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: grid; place-items: center; background: rgba(14, 134, 168, .08); border: 3px dashed var(--orbit); }
.dropzone > div { display: grid; justify-items: center; gap: 6px; padding: 26px 34px; border-radius: 16px; background: var(--white); box-shadow: 0 20px 60px -20px rgba(22, 21, 15, .4); }
.dropzone svg { width: 30px; height: 30px; color: var(--orbit); }
.dropzone span { color: var(--muted); font-size: 13.5px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; }
.toast {
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-size: 14px; box-shadow: 0 16px 40px -16px rgba(22, 21, 15, .6);
  animation: toast-in .35s var(--ease-out);
}
.toast.err { background: var(--danger); }
.toast button { border: 0; background: rgba(255, 255, 255, .12); color: inherit; border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: 13px; }
.toast button:hover { background: rgba(255, 255, 255, .2); }
.toast:not(:has(button)) { padding-right: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Dialoge ---------- */
dialog {
  border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(440px, calc(100% - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(22, 21, 15, .5);
}
dialog::backdrop { background: rgba(22, 21, 15, .35); }
dialog form { display: grid; gap: 18px; padding: 24px; }
dialog h3 { font: 400 26px/1.15 var(--serif); }
dialog p { color: var(--ink-2); }
dialog .row { display: flex; justify-content: flex-end; gap: 8px; }
.picker { border: 1px solid var(--line); border-radius: 12px; background: var(--white); max-height: 300px; overflow: auto; }
.picker-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); font-size: 13px; position: sticky; top: 0; background: var(--white); }
.picker-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; text-align: left; font-size: 14px; }
.picker li button:hover { background: var(--hover); }
.picker li button[disabled] { opacity: .4; cursor: not-allowed; }
.picker li button .icon { margin-left: auto; color: var(--muted); }
.picker .glyph { width: 20px; height: 20px; }
.picker .none { padding: 18px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* ---------- Kontextmenü ---------- */
.ctx {
  position: fixed; z-index: 80; min-width: 210px; padding: 6px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); box-shadow: 0 20px 50px -18px rgba(22, 21, 15, .4);
}
.ctx button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 14px; }
.ctx button:hover, .ctx button:focus-visible { background: var(--hover); outline: none; }
.ctx button.danger { color: var(--danger); }
.ctx hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 4px; }
.ctx kbd { margin-left: auto; font: 500 11px var(--mono); color: var(--muted); }

/* ---------- Vorschau ---------- */
.preview { position: fixed; inset: 0; z-index: 90; background: rgba(22, 21, 15, .92); display: grid; grid-template-rows: auto 1fr; color: var(--paper); }
.preview header { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 22px; }
.preview header b { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview header .icon-btn { color: var(--paper); }
.preview header .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.preview header .btn-line { background: transparent; border-color: rgba(255, 255, 255, .25); color: var(--paper); }
.preview .stage { display: grid; place-items: center; padding: 0 24px 24px; min-height: 0; }
.preview img, .preview video { max-width: 100%; max-height: 100%; border-radius: 6px; }
.preview iframe { width: min(1000px, 100%); height: 100%; border: 0; border-radius: 8px; background: var(--white); }
.preview pre { width: min(900px, 100%); max-height: 100%; overflow: auto; margin: 0; padding: 24px 28px; background: var(--card); color: var(--ink); border-radius: 10px; font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.preview .none { display: grid; justify-items: center; gap: 14px; text-align: center; color: #c9c5ba; }

/* ---------- Freigabe-Ansicht ---------- */
.public { min-height: 100%; display: flex; flex-direction: column; }
.public-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.public-top .who { font-size: 13.5px; color: var(--muted); }
.public .main { flex: 1; }
.public-error { display: grid; place-items: center; flex: 1; text-align: center; gap: 12px; padding: 40px; }
.public-error h1 { font: 400 40px/1.1 var(--serif); }

/* ==========================================================================
   Schmale Bildschirme
   ========================================================================== */
@media (max-width: 1180px) {
  .shell.with-details { grid-template-columns: var(--side) 1fr; }
  .details { position: fixed; right: 0; top: 0; bottom: 0; width: min(var(--details), 100%); z-index: 40; box-shadow: -20px 0 60px -30px rgba(22, 21, 15, .4); }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 24px 40px; min-height: 300px; }
  .orbits { right: -320px; opacity: .6; }
  .shell, .shell.with-details { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 45; transform: translateX(-100%); transition: transform .3s var(--ease-out); box-shadow: 20px 0 60px -30px rgba(22, 21, 15, .4); }
  .side.open { transform: none; }
  .topbar { padding: 10px 16px; }
  .topbar .menu-btn { display: inline-grid; }
  .search { width: auto; flex: 1; }
  .head, .list-wrap { padding-left: 16px; padding-right: 16px; }
  .selbar { margin: 0 16px; }
  .title { font-size: 30px; }
  .files .col-date, .files .col-size { display: none; }
  .files .act { opacity: 1; }
  .uploads { left: 12px; right: 12px; width: auto; }
}

.view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---------- Anmeldung: Ergänzungen ---------- */
.linkish { border: 0; background: none; padding: 0; justify-self: start; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--ink); }
.auth-card .switch button { border: 0; background: none; padding: 0; font-weight: 600; color: var(--orbit); text-decoration: underline; text-underline-offset: 3px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-card code, .auth-card p code { font: 12.5px var(--mono); background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

/* Uploads ohne Fortschrittsangabe: laufender Balken */
.uploads li.run .bar i { width: 35% !important; animation: indet 1.2s var(--ease-out) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
