/* =====================================================================
   Archiv · Analyse – Design
   Dunkel als Standard, helles Thema per Schalter oder System.
   ===================================================================== */
:root {
  --bg: #06070c;
  --bg-2: #0b0d16;
  --glass: rgba(17, 19, 31, .66);
  --glass-2: rgba(26, 29, 46, .72);
  --glass-3: rgba(255, 255, 255, .045);
  --hover: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --text: #eef0f8;
  --text-2: #b4bad0;
  --muted: #747b96;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #6366f1;
  --grad: linear-gradient(135deg, #a78bfa 0%, #6366f1 48%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(167, 139, 250, .22), rgba(34, 211, 238, .14));
  --accent-weak: rgba(139, 92, 246, .16);
  --ring: rgba(139, 92, 246, .45);
  --ok: #34d399;
  --ok-weak: rgba(52, 211, 153, .14);
  --warn: #fbbf24;
  --danger: #fb7185;
  --danger-weak: rgba(251, 113, 133, .13);
  --mark: rgba(250, 204, 21, .32);
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, .75), 0 0 0 1px var(--line);
  --shadow-sm: 0 6px 20px -10px rgba(0, 0, 0, .7);
  --radius: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;
  --blur: saturate(140%) blur(16px);
  --font: "Inter", "Inter Variable", "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --aurora-1: rgba(139, 92, 246, .38);
  --aurora-2: rgba(34, 211, 238, .24);
  --aurora-3: rgba(236, 72, 153, .18);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef0f8; --bg-2: #e6e9f5;
    --glass: rgba(255, 255, 255, .72); --glass-2: rgba(255, 255, 255, .86); --glass-3: rgba(15, 23, 42, .035);
    --hover: rgba(15, 23, 42, .05); --line: rgba(15, 23, 42, .08); --line-2: rgba(15, 23, 42, .14);
    --text: #0f1222; --text-2: #3f4660; --muted: #7c84a0;
    --accent: #7c3aed; --accent-weak: rgba(124, 58, 237, .1); --ring: rgba(124, 58, 237, .35);
    --ok: #059669; --ok-weak: rgba(5, 150, 105, .1); --danger: #e11d48; --danger-weak: rgba(225, 29, 72, .08);
    --mark: rgba(250, 204, 21, .45);
    --shadow: 0 20px 50px -24px rgba(30, 41, 80, .35), 0 0 0 1px var(--line); --shadow-sm: 0 6px 18px -10px rgba(30, 41, 80, .3);
    --aurora-1: rgba(167, 139, 250, .45); --aurora-2: rgba(34, 211, 238, .3); --aurora-3: rgba(244, 114, 182, .22);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #eef0f8; --bg-2: #e6e9f5;
  --glass: rgba(255, 255, 255, .72); --glass-2: rgba(255, 255, 255, .86); --glass-3: rgba(15, 23, 42, .035);
  --hover: rgba(15, 23, 42, .05); --line: rgba(15, 23, 42, .08); --line-2: rgba(15, 23, 42, .14);
  --text: #0f1222; --text-2: #3f4660; --muted: #7c84a0;
  --accent: #7c3aed; --accent-weak: rgba(124, 58, 237, .1); --ring: rgba(124, 58, 237, .35);
  --ok: #059669; --ok-weak: rgba(5, 150, 105, .1); --danger: #e11d48; --danger-weak: rgba(225, 29, 72, .08);
  --mark: rgba(250, 204, 21, .45);
  --shadow: 0 20px 50px -24px rgba(30, 41, 80, .35), 0 0 0 1px var(--line); --shadow-sm: 0 6px 18px -10px rgba(30, 41, 80, .3);
  --aurora-1: rgba(167, 139, 250, .45); --aurora-2: rgba(34, 211, 238, .3); --aurora-3: rgba(244, 114, 182, .22);
  color-scheme: light;
}

/* ------------------------------------------------------------- Basis */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  overflow: hidden;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.err { color: var(--danger); min-height: 1.2em; margin: 0; font-size: 13px; }
::selection { background: var(--accent-weak); }
kbd {
  font: 600 10.5px/1 var(--mono); padding: 3px 6px; border-radius: 6px;
  background: var(--glass-3); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text-2);
}
code { font: 12px var(--mono); background: var(--glass-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
a { color: var(--accent-2); }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }

/* ------------------------------------------------------------- Hintergrund (Aurora) */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); }
.aurora span:nth-child(1) { width: 55vw; height: 55vw; left: -12vw; top: -18vw; background: var(--aurora-1); animation: drift1 26s var(--ease) infinite alternate; }
.aurora span:nth-child(2) { width: 45vw; height: 45vw; right: -14vw; top: 10vh; background: var(--aurora-2); animation: drift2 32s var(--ease) infinite alternate; }
.aurora span:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; bottom: -22vw; background: var(--aurora-3); animation: drift3 38s var(--ease) infinite alternate; }
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
/* Leistung: In der App steht der Hintergrund still – sonst müsste der Browser alle
   halbtransparenten Flächen in jedem Bild neu weichzeichnen. Bewegung nur auf der Login-Seite. */
body:has(#app:not(.hidden)) .aurora span { animation-play-state: paused; }
@keyframes drift1 { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 14vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -12vh) scale(1.2); } }

/* ------------------------------------------------------------- Bedienelemente */
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  background: var(--glass-3); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 8px 11px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); background: var(--glass-2); }
select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg-2); color: var(--text); }
input[type="checkbox"] {
  appearance: none; width: 17px; height: 17px; padding: 0; margin: 0; border-radius: 6px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: var(--glass-3); display: inline-grid; place-content: center; vertical-align: -3px;
  transition: background .2s, border-color .2s, transform .15s var(--spring);
}
input[type="checkbox"]::after {
  content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .2s var(--spring);
}
input[type="checkbox"]:checked { background: var(--grad); border-color: transparent; }
input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
input[type="checkbox"]:active { transform: scale(.88); }
input[type="checkbox"]:focus { box-shadow: 0 0 0 3px var(--ring); }
input[type="color"] { padding: 3px; height: 40px; width: 100%; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--glass-3); border-radius: 11px;
  padding: 8px 14px; cursor: pointer; white-space: nowrap; font-weight: 550; color: var(--text);
  transition: transform .2s var(--spring), background .2s, border-color .2s, box-shadow .25s, color .2s;
}
.btn:hover { background: var(--hover); border-color: var(--muted); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .i { width: 16px; height: 16px; }
.btn.primary {
  background: var(--grad); background-size: 160% 160%; border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px -10px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn.primary:hover { animation: gradShift 3s ease infinite; box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .95), inset 0 1px 0 rgba(255, 255, 255, .3); filter: brightness(1.08); }
.btn.big { padding: 12px 18px; font-size: 15px; border-radius: 13px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--danger); border-color: rgba(251, 113, 133, .35); background: var(--danger-weak); }
.btn.small { padding: 5px 10px; font-size: 12.5px; border-radius: 9px; gap: 5px; }
.btn.small .i { width: 14px; height: 14px; }
.btn.on { background: var(--ok-weak); border-color: rgba(52, 211, 153, .45); color: var(--ok); }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--spring), border-color .2s;
}
.icon-btn:hover { background: var(--hover); color: var(--text); border-color: var(--line); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.sm .i { width: 15px; height: 15px; }

.field { position: relative; display: flex; align-items: center; }
.field > .i { position: absolute; left: 12px; color: var(--muted); pointer-events: none; width: 17px; height: 17px; }
.field > input { width: 100%; padding-left: 38px; }

.glass {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ------------------------------------------------------------- Login */
.login { position: relative; z-index: 1; display: grid; place-items: center; min-height: 100%; padding: 16px; }
.login-box {
  width: 100%; max-width: 380px; padding: 40px 32px 30px; display: grid; gap: 14px; text-align: center;
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-2); border-radius: 26px; box-shadow: var(--shadow);
  animation: rise .7s var(--ease) both;
}
.login-box h1 { margin: 2px 0 0; font-size: 28px; letter-spacing: -.03em; font-weight: 750;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-box p { margin: 0 0 6px; }
.login-box .field input { padding-top: 11px; padding-bottom: 11px; }
.pw2-field:has(#pw2.hidden) { display: none; }
.logo-orb {
  position: relative; width: 68px; height: 68px; margin: 0 auto 4px; border-radius: 22px; display: grid; place-items: center;
  background: var(--grad); color: #fff; box-shadow: 0 14px 40px -12px rgba(139, 92, 246, .9);
  animation: float 6s ease-in-out infinite;
}
.logo-orb::before { content: ""; position: absolute; inset: -6px; border-radius: 26px; background: var(--grad); filter: blur(18px); opacity: .55; z-index: -1; animation: pulseGlow 3s ease-in-out infinite; }
.logo-orb .i { width: 32px; height: 32px; stroke-width: 1.6; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes pulseGlow { 50% { opacity: .9; transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* ------------------------------------------------------------- Layout */
.app {
  position: relative; z-index: 1; display: grid; height: 100vh; padding: 12px; gap: 12px;
  grid-template-columns: 252px minmax(330px, 420px) minmax(0, 1fr); grid-template-rows: 62px minmax(0, 1fr);
  animation: fadeIn .5s var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; } }

/* Kopfzeile */
.topbar { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; padding: 0 10px 0 14px; border-radius: 18px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; margin-right: 6px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .9); }
.brand-mark .i { width: 19px; height: 19px; }
.brand-txt { display: grid; line-height: 1.1; }
.brand-txt b { font-size: 15px; letter-spacing: -.02em; }
.brand-txt small { font-size: 11px; color: var(--muted); letter-spacing: .02em; }

.search {
  flex: 1; max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 4px; position: relative;
  background: var(--glass-3); border: 1px solid var(--line-2); border-radius: 13px; padding: 0 6px 0 12px; height: 42px;
  transition: border-color .25s, box-shadow .3s, background .25s, max-width .4s var(--ease);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring), 0 10px 30px -12px rgba(139, 92, 246, .6); background: var(--glass-2); max-width: 760px; }
.search .s-ic { color: var(--muted); transition: color .2s; }
.search:focus-within .s-ic { color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none !important; padding: 8px 6px; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); cursor: pointer; }
.s-kbd { transition: opacity .2s; }
.search:focus-within .s-kbd { opacity: 0; }
.hidden-btn { display: none; }

.progress { display: flex; align-items: center; gap: 9px; padding: 0 6px; white-space: nowrap; }
.ring { width: 36px; height: 36px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.4; }
.ring-bg { stroke: var(--line-2); }
.ring-fg { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset 1s var(--ease); filter: drop-shadow(0 0 4px rgba(52, 211, 153, .6)); }
.prog-txt { display: grid; line-height: 1.15; }
.prog-txt b { font-size: 13px; font-variant-numeric: tabular-nums; }
.prog-txt span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Seitenleiste */
.sidebar { overflow-y: auto; overflow-x: hidden; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.side-sec { padding: 6px 2px; }
.side-sec + .side-sec { border-top: 1px solid var(--line); }
.sidebar h3 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 6px 10px 6px; font-weight: 650; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding-right: 4px; }
.side-head h3 { margin-bottom: 4px; }
.views, .cats { display: grid; gap: 2px; }
.views button, .cat-item {
  position: relative; display: flex; align-items: center; gap: 10px; border: 0; background: transparent;
  padding: 7px 10px; border-radius: 10px; cursor: pointer; text-align: left; width: 100%; color: var(--text-2);
  font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--ease);
}
.views button .i, .cat-item .i { width: 17px; height: 17px; color: var(--muted); transition: color .2s, transform .3s var(--spring); }
.views button:hover, .cat-item:hover { background: var(--hover); color: var(--text); }
.views button:hover .i { transform: scale(1.12); color: var(--text-2); }
.views button.active, .cat-item.active { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .25); }
.views button.active .i, .cat-item.active .i { color: var(--accent); }
.views button.active::before, .cat-item.active::before {
  content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad);
  animation: barIn .35s var(--spring);
}
@keyframes barIn { from { transform: scaleY(0); } }
.cnt {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: 20px; background: var(--glass-3); min-width: 22px; text-align: center;
}
.active > .cnt { color: var(--text); background: rgba(167, 139, 250, .2); }
.cat-item .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.cat-item .num { font: 600 10px var(--mono); color: var(--muted); width: 10px; text-align: center; }
.cat-item .edit { visibility: hidden; width: 24px; height: 24px; border-radius: 7px; }
.cat-item:hover .edit { visibility: visible; }
.cat-item .edit .i { width: 13px; height: 13px; }
.cat-item .lock .i { width: 11px; height: 11px; vertical-align: -1px; }
.cat-item > span:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.filters summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--text-2); font-weight: 500; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary:hover { background: var(--hover); color: var(--text); }
.filters summary .i { color: var(--muted); }
.filters summary .chev { margin-left: auto; transition: transform .3s var(--ease); }
.filters[open] summary .chev { transform: rotate(180deg); }
.filter-body { display: grid; gap: 10px; padding: 8px 8px 4px; animation: slideDown .35s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } }
.sidebar label { display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); font-weight: 550; min-width: 0; }
.sidebar select, .sidebar input:not([type="checkbox"]) { width: 100%; min-width: 0; color: var(--text); padding: 7px 10px; font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-foot { margin-top: auto; padding: 10px 6px 2px; display: grid; gap: 4px; }
.keys-hint { display: flex; align-items: center; gap: 7px; margin: 0; padding: 0 4px; }
.keys-hint .i { width: 15px; height: 15px; }
.only-mobile, .sidebar .mobile-logout { display: none; }

/* ------------------------------------------------------------- Liste */
.list-pane { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.list-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.list-head .chk { display: flex; }
.pager { margin-left: auto; display: flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.pager button:disabled { opacity: .3; pointer-events: none; }
.list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; outline: none; display: grid; align-content: start; gap: 4px; }
.item {
  position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 3px 10px;
  padding: 11px 12px 11px 12px; border-radius: 13px; cursor: pointer; border: 1px solid transparent;
  transition: background .22s, border-color .22s, transform .25s var(--ease), box-shadow .25s, opacity .3s;
  animation: itemIn .45s var(--ease) both;
}
.item:hover { background: var(--hover); transform: translateX(2px); }
.item.active { background: var(--grad-soft); border-color: rgba(167, 139, 250, .35); box-shadow: 0 10px 30px -18px rgba(139, 92, 246, .9); }
.item.active::after {
  content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad);
  animation: barIn .35s var(--spring);
}
.item:not(.reviewed)::before {
  content: ""; position: absolute; right: 12px; bottom: 14px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.item.reviewed .subj, .item.reviewed .from { color: var(--muted); font-weight: 500; }
.item.archived .subj, .item.archived .from { text-decoration: line-through; text-decoration-color: var(--muted); }
.item .chk { grid-row: span 4; padding-top: 2px; }
.item .line1 { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.item .from { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; letter-spacing: -.01em; }
.item .date { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13.5px; }
.item .snip { font-size: 12px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.45; }
.item .tags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 3px; min-height: 0; }
.item .tags:empty { display: none; }
.kind-ic { display: inline-grid; place-items: center; color: var(--accent); }
.kind-ic .i { width: 15px; height: 15px; vertical-align: -2px; }
.flag { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.flag .i { width: 13px; height: 13px; }
.flag.ok { color: var(--ok); }
.flag.star { color: var(--warn); }
.flag.star .i { fill: currentColor; }
.flag.sens { color: var(--danger); }
.chip { font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 20px; border: 1px solid; white-space: nowrap; background: var(--glass-3); }
.chip.theme { border-color: var(--line-2); color: var(--muted); }
.chip.tag { border-style: dashed; }
.list .loading, .list .none { padding: 40px 20px; text-align: center; color: var(--muted); }

/* Ladeplatzhalter */
.skel { list-style: none; padding: 13px 12px; border-radius: 13px; display: grid; gap: 8px; }
.skel i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--glass-3) 0%, var(--line-2) 50%, var(--glass-3) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel i:nth-child(1) { width: 45%; height: 12px; }
.skel i:nth-child(2) { width: 85%; }
.skel i:nth-child(3) { width: 65%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } }
.item:nth-child(1) { animation-delay: 0ms; } .item:nth-child(2) { animation-delay: 25ms; } .item:nth-child(3) { animation-delay: 50ms; }
.item:nth-child(4) { animation-delay: 75ms; } .item:nth-child(5) { animation-delay: 100ms; } .item:nth-child(6) { animation-delay: 125ms; }
.item:nth-child(7) { animation-delay: 150ms; } .item:nth-child(8) { animation-delay: 175ms; } .item:nth-child(9) { animation-delay: 200ms; }
.item:nth-child(10) { animation-delay: 225ms; } .item:nth-child(11) { animation-delay: 250ms; } .item:nth-child(n+12) { animation-delay: 275ms; }
.item.no-anim { animation: none; }
.item.leaving { animation: leave .3s var(--ease) forwards; pointer-events: none; overflow: hidden;
  transition: height .3s var(--ease) .05s, padding .3s var(--ease) .05s, margin .3s var(--ease) .05s; padding-top: 0; padding-bottom: 0; margin-top: -4px; }
@keyframes leave { to { opacity: 0; transform: translateX(40px) scale(.96); filter: blur(2px); } }

/* Mehrfachaktion – schwebende Leiste */
.bulk {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 5; display: grid; gap: 8px; padding: 12px;
  background: var(--glass-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(167, 139, 250, .35); border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7), 0 0 0 4px rgba(139, 92, 246, .1);
  animation: popUp .4s var(--spring);
}
@keyframes popUp { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.bulk-top { display: flex; align-items: center; gap: 10px; }
.bulk-count { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bulk-all { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.bulk select { padding: 5px 26px 5px 9px; font-size: 12.5px; border-radius: 9px; max-width: 140px; }

/* ------------------------------------------------------------- Detail */
.detail-pane { overflow-y: auto; min-height: 0; position: relative; }
.empty { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; text-align: center; padding: 24px; animation: fadeIn .6s var(--ease); }
.empty b { font-size: 17px; letter-spacing: -.02em; }
.empty-orb { width: 74px; height: 74px; border-radius: 24px; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .3); color: var(--accent); animation: float 6s ease-in-out infinite; }
.empty-orb .i { width: 32px; height: 32px; stroke-width: 1.5; }
.d-wrap { max-width: 980px; margin: 0 auto; padding: 0 24px 60px; display: grid; gap: 14px; }
.d-wrap.enter > * { animation: detailIn .5s var(--ease) both; }
.d-wrap.enter > :nth-child(2) { animation-delay: 30ms; } .d-wrap.enter > :nth-child(3) { animation-delay: 60ms; }
.d-wrap.enter > :nth-child(4) { animation-delay: 90ms; } .d-wrap.enter > :nth-child(5) { animation-delay: 120ms; }
.d-wrap.enter > :nth-child(6) { animation-delay: 150ms; } .d-wrap.enter > :nth-child(n+7) { animation-delay: 180ms; }
@keyframes detailIn { from { opacity: 0; transform: translateY(14px); } }
.d-toolbar {
  position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 -24px; padding: 14px 24px 12px;
  background: linear-gradient(var(--glass-2) 70%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}
.d-toolbar .spacer { flex: 1; }
.d-toolbar .muted.small { font-variant-numeric: tabular-nums; }
.d-subject { font-size: 24px; font-weight: 750; margin: 8px 0 0; word-break: break-word; letter-spacing: -.03em; line-height: 1.2; }
.d-subject .kind-ic .i { width: 22px; height: 22px; vertical-align: -3px; }
.card {
  background: var(--glass-3); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  transition: border-color .25s, background .25s;
}
.card:hover { border-color: var(--line-2); }
.card h4 { margin: 0 0 12px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 8px; font-weight: 650; }
.card h4 .r { margin-left: auto; text-transform: none; letter-spacing: 0; display: flex; gap: 6px; font-weight: 500; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 7px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.kv dd { margin: 0; word-break: break-word; }
.addr-list { display: flex; flex-wrap: wrap; gap: 5px; }
.addr { font-size: 12px; background: var(--glass-3); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; cursor: pointer; transition: all .2s; }
.addr:hover { background: var(--accent-weak); border-color: rgba(167, 139, 250, .4); color: var(--text); transform: translateY(-1px); }
.summary { white-space: pre-wrap; font-size: 15px; line-height: 1.6; }
.body-text { white-space: pre-wrap; word-break: break-word; font: 13px/1.65 var(--mono); margin: 0; color: var(--text-2); }
.body-frame { width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Kategorie-Knöpfe */
.cat-toggle { display: flex; gap: 7px; flex-wrap: wrap; }
.cat-btn {
  border: 1px solid var(--line-2); background: var(--glass-3); border-radius: 30px; padding: 6px 12px 6px 10px; font-size: 13px; font-weight: 550;
  cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: var(--text-2);
  transition: transform .25s var(--spring), background .25s, border-color .25s, color .2s, box-shadow .3s;
}
.cat-btn:hover { transform: translateY(-2px); color: var(--text); border-color: var(--muted); }
.cat-btn:active { transform: scale(.94); }
.cat-btn .dot { width: 9px; height: 9px; border-radius: 50%; transition: transform .3s var(--spring); }
.cat-btn kbd { font-size: 9.5px; padding: 2px 5px; }
.cat-btn.on { color: #fff; box-shadow: 0 8px 22px -10px currentColor; animation: pop .45s var(--spring); }
.cat-btn.on .dot { background: #fff !important; transform: scale(1.15); }
.cat-btn.on kbd { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .35); color: #fff; }
@keyframes pop { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* Tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; padding: 3px 4px 3px 10px;
  border-radius: 20px; border: 1px dashed; background: var(--glass-3); animation: pop .4s var(--spring);
}
.tag-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; opacity: .65; transition: all .2s; }
.tag-chip button:hover { opacity: 1; background: var(--hover); transform: rotate(90deg); }
.tag-chip button .i { width: 12px; height: 12px; }
.tag-input { width: 210px; padding: 5px 12px; font-size: 12.5px; border-radius: 20px; border-style: dashed; transition: width .35s var(--ease), border-color .2s, box-shadow .2s; }
.tag-input:focus { width: 280px; border-style: solid; }

.btn.star-btn.on { color: var(--warn); background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .4); }
.btn.star-btn.on .i { fill: currentColor; animation: pop .45s var(--spring); }
.btn.irr-btn { border-style: dashed; }
.btn.irr-btn.on { background: var(--glass-3); color: var(--text-2); border-color: var(--line-2); }
.btn.irr-btn kbd { margin-left: 2px; }
.auto-next { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; color: var(--text-2); cursor: pointer; padding: 6px 10px; border-radius: 10px; border: 1px solid transparent; transition: all .2s; user-select: none; }
.auto-next:hover { background: var(--hover); }
.auto-next:has(input:checked) { color: var(--warn); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.auto-next .i { width: 15px; height: 15px; }

.stats-row { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { background: var(--glass-3); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 12px; color: var(--text-2); }
.stat b { font-size: 15px; color: var(--text); margin-left: 4px; }
.ids { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ids td { padding: 6px 8px; border-bottom: 1px solid var(--line); word-break: break-all; }
.ids tr:last-child td { border-bottom: 0; }
.ids td:first-child { color: var(--muted); width: 90px; }
.note { width: 100%; min-height: 90px; resize: vertical; line-height: 1.55; }
.note-state { font-size: 11px; }
details > summary { cursor: pointer; color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.raw { font: 12px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; margin: 10px 0 0; color: var(--text-2); }
.att { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.att:last-child { border: 0; }
.att a { color: var(--text); text-decoration: none; font-weight: 600; word-break: break-all; }
.att a:hover { color: var(--accent-2); }
.att img { max-width: 120px; max-height: 80px; border-radius: 8px; border: 1px solid var(--line); }
.att-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent); flex: none; }

/* Dateien / Medien */
.media-img { max-width: 100%; max-height: 70vh; border-radius: 12px; display: block; margin: 0 auto; box-shadow: var(--shadow-sm); }
.media-av { width: 100%; border-radius: 12px; }
video.media-av { max-height: 70vh; background: #000; }
.table-box { overflow: auto; max-height: 65vh; border-radius: 10px; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 12.5px; width: max-content; min-width: 100%; }
table.grid th, table.grid td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
table.grid th { position: sticky; top: 0; background: var(--glass-2); backdrop-filter: var(--blur); font-weight: 650; z-index: 1; }
table.grid tbody tr:hover td { background: var(--hover); }
.sens-card { border-color: rgba(251, 113, 133, .35); background: var(--danger-weak); }
.sens-card h4 { color: var(--danger); }
#revealBox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.body-text.reveal { max-height: 50vh; overflow: auto; width: 100%; border: 1px solid rgba(251, 113, 133, .4); padding: 10px; border-radius: 10px; }

/* ------------------------------------------------------------- Dialoge */
dialog {
  border: 1px solid var(--line-2); border-radius: 22px; color: var(--text); padding: 24px; max-width: min(560px, calc(100vw - 32px));
  background: var(--glass-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
dialog[open] { animation: dlgIn .4s var(--spring); }
dialog::backdrop { background: rgba(5, 6, 12, .55); backdrop-filter: blur(6px); animation: fadeIn .3s ease; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
dialog h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
dialog form { display: grid; gap: 14px; }
dialog label { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.dlg-btns { display: flex; gap: 8px; margin-top: 4px; }
.dlg-btns .spacer, .spacer { flex: 1; }
.dlg-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.dlg-ic .i { width: 17px; height: 17px; }
#pwDlg, #catDlg { width: min(440px, calc(100vw - 32px)); }
.help-dlg { max-width: min(900px, calc(100vw - 32px)); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 8px; }
.help-grid h3 .i { color: var(--accent); }
.keys { border-collapse: collapse; font-size: 13px; width: 100%; margin-top: 10px; }
.keys td { padding: 6px 10px 6px 0; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text-2); }
.keys td:first-child { white-space: nowrap; }
.keys tr:last-child td { border-bottom: 0; }

/* Toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; z-index: 80; transform: translate(-50%, 140%) scale(.9); opacity: 0;
  background: var(--glass-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--text); padding: 11px 18px 11px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7); font-weight: 550; display: flex; align-items: center; gap: 10px;
  transition: transform .5s var(--spring), opacity .3s; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--accent); flex: none; }
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* ------------------------------------------------------------- Upload */
.drop-zone {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, .25), rgba(6, 7, 12, .7)); backdrop-filter: blur(8px);
  animation: fadeIn .25s ease;
}
.drop-box {
  position: relative; display: grid; gap: 10px; text-align: center; max-width: 520px; padding: 48px 56px; border-radius: 28px;
  background: var(--glass-2); border: 2px dashed rgba(167, 139, 250, .7); box-shadow: 0 30px 80px -20px rgba(139, 92, 246, .6);
  animation: dropPulse 1.6s ease-in-out infinite;
}
.drop-box b { font-size: 20px; letter-spacing: -.02em; }
.drop-icon { width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); color: #fff; animation: bob 1.2s ease-in-out infinite; }
.drop-icon .i { width: 34px; height: 34px; }
@keyframes dropPulse { 50% { transform: scale(1.025); border-color: rgba(34, 211, 238, .8); } }
@keyframes bob { 50% { transform: translateY(-6px); } }

.up-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: min(460px, calc(100vw - 36px)); max-height: min(64vh, 600px);
  display: flex; flex-direction: column; background: var(--glass-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); overflow: hidden;
  animation: popUp .45s var(--spring);
}
.up-panel header { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; }
.up-title { display: grid; line-height: 1.25; min-width: 0; }
.up-title .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-actions { display: flex; gap: 6px; padding: 0 14px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.up-panel.min .up-list, .up-panel.min .up-hint, .up-panel.min .up-actions { display: none; }
.up-panel.min #upMin .i { transform: rotate(180deg); }
.up-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; display: grid; gap: 4px; align-content: start; }
.up-item { padding: 10px 12px; border-radius: 12px; display: grid; gap: 6px; background: var(--glass-3); border: 1px solid var(--line); animation: itemIn .35s var(--ease) both; }
.up-item .top { display: flex; gap: 8px; align-items: center; min-width: 0; }
.up-item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13px; }
.up-item .st { font-size: 12px; color: var(--muted); word-break: break-word; line-height: 1.5; }
.up-item .st b { color: var(--text); }
.up-item .st.ok { color: var(--ok); }
.up-item .st.bad { color: var(--danger); }
.up-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; position: relative; }
.up-bar > div { height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width .6s var(--ease); position: relative; overflow: hidden; }
.up-bar > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: sweep 1.6s ease-in-out infinite; }
.up-bar.ok > div { background: linear-gradient(90deg, #10b981, #34d399); }
.up-bar.imp > div { width: 100%; background: linear-gradient(90deg, #10b981, #34d399); animation: uppulse 1.4s ease-in-out infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes uppulse { 50% { opacity: .4; } }
.up-hint { margin: 0; padding: 8px 14px 12px; border-top: 1px solid var(--line); }

/* Server-Browser */
.fs-dlg { width: min(900px, calc(100vw - 32px)); height: min(82vh, 780px); padding: 0; max-width: none; }
.fs-dlg[open] { display: flex; flex-direction: column; }
.fs-head, .fs-foot { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; }
.fs-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
.fs-head h3 { margin: 0; }
.fs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 0 20px 10px; font-size: 13px; }
.fs-crumbs button { border: 0; background: var(--glass-3); color: var(--text-2); cursor: pointer; padding: 3px 9px; border-radius: 8px; transition: all .2s; }
.fs-crumbs button:hover { background: var(--accent-weak); color: var(--text); }
.fs-crumbs button:last-of-type { color: var(--text); font-weight: 600; }
.fs-crumbs .sep { color: var(--muted); padding: 0 2px; }
.fs-search { display: flex; gap: 8px; padding: 0 20px 10px; }
.fs-search .field { flex: 1; }
.fs-info { padding: 0 20px 6px; min-height: 1em; }
.fs-list { list-style: none; margin: 0; padding: 6px 10px; overflow-y: auto; flex: 1; border-top: 1px solid var(--line); }
.fs-row { display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 13px; transition: background .15s; }
.fs-row:hover { background: var(--hover); }
.fs-row > span:nth-child(2) { color: var(--muted); display: grid; place-items: center; }
.fs-row > span:nth-child(2) .i.dir { color: var(--accent); fill: var(--accent-weak); }
.fs-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-row .nm.dir { cursor: pointer; font-weight: 600; }
.fs-row .nm.dir:hover { color: var(--accent-2); }
.fs-row .sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.fs-row .sz { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; min-width: 70px; }
.fs-badge { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: var(--glass-3); color: var(--muted); white-space: nowrap; border: 1px solid var(--line); }
.fs-badge.done { background: var(--ok-weak); color: var(--ok); border-color: rgba(52, 211, 153, .3); }
.fs-hint { margin: 0; padding: 0 20px 16px; }

/* ------------------------------------------------------------- Responsiv */
@media (max-width: 1280px) {
  .app { grid-template-columns: 230px minmax(300px, 360px) minmax(0, 1fr); }
  .brand-txt { display: none; }
}
@media (max-width: 1050px) {
  .prog-txt span { display: none; }
  #upBtn span { display: none; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .only-mobile { display: inline-grid; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 58px minmax(0, 1fr); padding: 8px; gap: 8px; height: 100dvh; }
  .topbar { padding: 0 6px; gap: 4px; }
  .brand, .s-kbd, #syntaxBtn, .prog-txt, #pwBtn, #logoutBtn { display: none; }
  .search { height: 40px; flex: 1 1 0; min-width: 0; padding-left: 10px; }
  .progress { padding: 0 2px; }
  .ring { width: 30px; height: 30px; }
  .topbar .icon-btn, #upBtn { flex: none; }
  #upBtn { padding: 8px 10px; }
  .sidebar {
    position: fixed; inset: 74px auto 8px 8px; width: min(300px, calc(100vw - 16px)); z-index: 30;
    transform: translateX(calc(-100% - 20px)); transition: transform .45s var(--ease); background: var(--glass-2);
  }
  .sidebar.open { transform: none; }
  .sidebar .mobile-logout { display: inline-flex; justify-content: flex-start; }
  .list-pane, .detail-pane { grid-column: 1; grid-row: 2; min-width: 0; }
  .app.show-detail .list-pane { display: none; }
  .app:not(.show-detail) .detail-pane { display: none; }
  .app.show-detail .detail-pane { animation: slideIn .45s var(--ease); }
  @keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
  .d-wrap { padding: 0 16px 60px; }
  .d-toolbar { margin: 0 -16px; padding: 10px 16px; }
  .d-subject { font-size: 20px; }
  .kv { grid-template-columns: 86px minmax(0, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .fs-row { grid-template-columns: 22px 26px minmax(0, 1fr) auto; }
  .fs-row .sz { display: none; }
  .tag-input, .tag-input:focus { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aurora span { animation: none; }
}
.meta-box { display: grid; gap: 10px; }
