/* 808 Board – Design wie 808city.eu (Website v3 „Cinematic“) */
@font-face { font-family: Gilroy; src: url(fonts/Gilroy-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Gilroy; src: url(fonts/Gilroy-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Gilroy; src: url(fonts/Gilroy-Semibold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Gilroy; src: url(fonts/Gilroy-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Arame; src: url(fonts/Arame-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Univers; src: url(fonts/UniversLTStd-Regular.woff2) format('woff2'); font-display: swap; }

:root {
  --bg: #060608; --bg-2: #0b0b0f; --panel: #101015; --panel-2: #16161c; --panel-3: #1e1e26;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --text: #f3f3f5; --muted: rgba(243, 243, 245, .64); --dim: rgba(243, 243, 245, .42);
  --red: #ff2d4d; --red-deep: #991b2e; --red-store: #c41f3a; --red-soft: rgba(255, 45, 77, .14); --red-glow: rgba(255, 45, 77, .38);
  --gold: #ffb21a; --silver: #c9d1db; --ok: #3ddc84;
  --f-display: Arame, 'Arial Narrow', Impact, sans-serif;
  --f-body: Gilroy, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-btn: Univers, Arial, Helvetica, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --r: 14px; --r-sm: 8px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --list-w: 290px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 500 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
/* Filmkorn wie auf der Website */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background-image: url(grain.png); opacity: .05; mix-blend-mode: overlay;
}
body.noscroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #fff; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
code { font-family: var(--f-mono); font-size: .9em; padding: .1em .45em; background: var(--red-soft); color: #fff; border-radius: 5px; user-select: all; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

input:not([type=checkbox]), select, textarea {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 9px 11px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
select option { background: var(--panel-2); }
textarea { resize: vertical; min-height: 44px; }
input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; margin: 0; cursor: pointer; }
input[type=date] { width: auto; }
select { width: auto; cursor: pointer; }

/* ---------- Buttons wie Website/Store ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px;
  border: 0; border-radius: 4px; white-space: nowrap;
  font: 400 14px/1 var(--f-btn); letter-spacing: -.5px;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .3s, box-shadow .3s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-red { background: linear-gradient(to bottom, var(--red), var(--red-deep)); color: #fff; box-shadow: 0 8px 24px -10px var(--red-glow); }
.btn-red:hover { opacity: .9; }
.btn-ghost { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 45, 77, .5); }
.btn-danger { background: transparent; box-shadow: inset 0 0 0 1px var(--red-deep); color: var(--red); }
.btn-danger:hover { background: linear-gradient(to bottom, var(--red), var(--red-deep)); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--silver); font-size: 13px; border-bottom: 1px solid rgba(255, 45, 77, .45); }
.link:hover { color: #fff; border-bottom-color: var(--red); }
.link.danger:hover { color: var(--red); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Login / Passwort (Hero-Look) ---------- */
.view-login, .view-password {
  background:
    radial-gradient(60% 55% at 78% 72%, rgba(255, 45, 77, .30), transparent 70%),
    radial-gradient(45% 40% at 92% 30%, rgba(255, 45, 77, .12), transparent 70%),
    radial-gradient(70% 60% at 15% 0%, rgba(70, 80, 130, .28), transparent 70%),
    linear-gradient(180deg, #08080f 0%, #0a0810 55%, #060608 100%);
  background-attachment: fixed; overflow-x: hidden;
}
.view-login::before, .view-password::before {
  content: '808'; position: fixed; right: -4vw; bottom: 2vh; z-index: 0; pointer-events: none; user-select: none;
  font: 700 clamp(14rem, 42vw, 46rem)/.8 var(--f-display);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
}
.auth { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 14px; }
.auth-box {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; max-width: 390px; background: rgba(16, 16, 21, .88); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 90px -30px rgba(0, 0, 0, .9);
  border-radius: var(--r); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
}
.auth-box::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 10rem; z-index: -1; background: radial-gradient(80% 100% at 50% 0%, rgba(255, 45, 77, .25), transparent 75%); }
.auth-logo { width: 84px; height: 84px; object-fit: cover; align-self: center; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2), 0 10px 34px -8px var(--red-glow); }
.auth h1 { font: 700 26px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; text-align: center; margin: 6px 0 0; }
.auth-sub { color: var(--muted); text-align: center; margin: -4px 0 6px; font-size: 14px; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.auth label input { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; }
.auth-err { background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(255, 45, 77, .45); color: #ffc2cc; padding: 10px 12px; border-radius: 4px; font-size: 14px; }
.auth .btn-red { height: 45px; font-size: 15px; margin-top: 6px; }
.auth-link { text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- App-Rahmen ---------- */
.view-app {
  overflow: hidden;
  background:
    radial-gradient(55% 50% at 85% 100%, rgba(255, 45, 77, .16), transparent 70%),
    radial-gradient(60% 50% at 10% 0%, rgba(70, 80, 130, .20), transparent 70%),
    linear-gradient(180deg, #08080f 0%, #0a0810 55%, #060608 100%);
}
#app { height: 100%; display: flex; flex-direction: column; }

/* Kopfzeile wie die Website-Navigation (solid) */
.top {
  display: flex; align-items: center; gap: 18px; padding: 0 18px; min-height: 64px; flex-wrap: wrap;
  background: rgba(8, 8, 11, .82); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line); position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2), 0 6px 20px -6px var(--red-glow); }
.brand span { font: 700 19px/1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.brand span b { color: var(--red); font-weight: 700; }
.tools { display: flex; gap: 8px; flex: 1; min-width: 0; }
.tools input { max-width: 280px; height: 38px; }
.tools select { height: 38px; padding: 0 10px; max-width: 180px; }
.actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.usermenu, .list-menu { position: relative; }
.usermenu summary { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px 0 5px; border-radius: 4px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-weight: 700; font-size: 14px; }
.usermenu summary:hover { box-shadow: inset 0 0 0 1px rgba(255, 45, 77, .5); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; z-index: 20;
  background: rgba(16, 16, 21, .97); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -10px rgba(0, 0, 0, .8);
  border-radius: var(--r-sm); padding: 6px; display: flex; flex-direction: column;
}
.menu a, .menu button { background: none; border: 0; text-align: left; padding: 9px 11px; border-radius: 4px; color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 14px; font-weight: 600; }
.menu a:hover, .menu button:hover { background: var(--red-soft); color: #fff; }

/* ---------- Avatare ---------- */
.av {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  font: 700 11px/1 var(--f-body); color: #fff; vertical-align: middle;
  box-shadow: 0 0 0 2px var(--c, var(--red)), 0 0 0 4px rgba(255, 255, 255, .04); background: #0a0a0e;
}
.av.sm { width: 22px; height: 22px; font-size: 9.5px; box-shadow: 0 0 0 1.5px var(--c, var(--red)); }
.av-0 { --c: #ff2d4d; } .av-1 { --c: #4d8dff; } .av-2 { --c: #a46bff; }
.av-3 { --c: #3ddc84; } .av-4 { --c: #ffb21a; } .av-5 { --c: #c9d1db; }

/* ---------- Board ---------- */
.board {
  flex: 1; display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px 18px;
  overflow-x: auto; overflow-y: hidden;
}
.board::-webkit-scrollbar { height: 10px; }
.board::-webkit-scrollbar-thumb { background: rgba(255, 45, 77, .35); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
.list {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1 1 0; min-width: 200px; max-width: 340px; max-height: 100%; display: flex; flex-direction: column;
  background: rgba(16, 16, 21, .86); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line);
}
.list::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 7rem; z-index: -1; pointer-events: none; background: radial-gradient(80% 100% at 50% 0%, rgba(255, 45, 77, .16), transparent 75%); }
.list-new { flex: 0 0 150px; min-width: 150px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.list-new::before { display: none; }
.list-head { display: flex; align-items: flex-start; gap: 6px; padding: 14px 8px 8px 14px; }
.list-title {
  font: 700 13.5px/1.25 var(--f-display); text-transform: uppercase; letter-spacing: .05em;
  margin: 0; flex: 1; cursor: text; padding: 3px 4px; border-radius: 4px; word-break: break-word;
}
.list-title::before { content: ''; display: block; width: 1.6rem; height: 2px; background: var(--red); margin-bottom: 8px; }
.list-title:hover { background: rgba(255, 255, 255, .04); }
.list-head .inline-edit { flex: 1; padding: 4px 8px; font-weight: 700; font-size: 14px; }
.count { font: 700 11px/1 var(--f-mono); color: var(--red); background: var(--red-soft); padding: 4px 7px; border-radius: 99px; margin-top: 12px; }
.list-menu summary { width: 28px; height: 28px; margin-top: 7px; display: grid; place-items: center; border-radius: 4px; color: var(--muted); font-size: 18px; line-height: 1; }
.list-menu summary:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.list-cards { flex: 1 1 auto; overflow-y: auto; padding: 4px 9px; min-height: 8px; display: flex; flex-direction: column; gap: 8px; }
.list-cards::-webkit-scrollbar { width: 6px; }
.list-cards::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .1); border-radius: 99px; }
.list-foot { padding: 6px 9px 10px; }
.add-btn { width: 100%; text-align: left; background: none; border: 0; color: var(--dim); padding: 8px; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.add-btn:hover { background: var(--red-soft); color: #fff; }
.composer textarea { min-height: 60px; }
.composer .row { margin-top: 6px; }

/* ---------- Karten ---------- */
.card {
  position: relative; background: linear-gradient(160deg, #17171d, #111116); border-radius: 10px; padding: 10px 11px;
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; outline: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 45, 77, .45), 0 18px 34px -20px var(--red-glow); }
.card.dragging { opacity: .3; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.4; word-break: break-word; white-space: pre-wrap; }
.card-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.card-labels .lbl { font-size: 9.5px; padding: 3px 7px; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 9px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { font-size: 11.5px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .05); padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.b-done { background: rgba(61, 220, 132, .13); color: var(--ok); }
.b-over { background: var(--red-soft); color: #ff8a9c; }
.b-soon { background: rgba(255, 178, 26, .15); color: var(--gold); }
.members { display: flex; margin-left: auto; gap: 3px; }
.placeholder { height: 44px; border-radius: 10px; background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(255, 45, 77, .5); flex: none; }

/* ---------- Labels (Tag-Stil der Website) ---------- */
.lbl {
  --lc: var(--red);
  display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; white-space: nowrap;
  font: 700 10.5px/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px;
  background: color-mix(in srgb, var(--lc) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lc) 50%, transparent);
  color: color-mix(in srgb, var(--lc) 45%, white);
}
.lb-red { --lc: #ff2d4d; } .lb-orange { --lc: #ff8a1f; } .lb-yellow { --lc: #ffd21a; }
.lb-green { --lc: #3ddc84; } .lb-teal { --lc: #22c7c7; } .lb-blue { --lc: #4d8dff; }
.lb-purple { --lc: #a46bff; } .lb-pink { --lc: #ff4fb4; } .lb-gray { --lc: #c9d1db; }
.lbl.off { opacity: .35; }
.lbl.off:hover { opacity: .75; }
.lbl.on { background: color-mix(in srgb, var(--lc) 32%, transparent); box-shadow: inset 0 0 0 1px var(--lc), 0 0 16px -4px var(--lc); }

/* ---------- Fenster ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(4, 4, 6, .72); backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start; padding: 48px 16px; overflow-y: auto;
}
.modal {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; max-width: 780px;
  background: linear-gradient(160deg, #14141a, #0d0d11); border-radius: var(--r); padding: 28px 28px 22px;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 50px 120px -30px rgba(0, 0, 0, .9);
}
.modal::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 12rem; z-index: -1; pointer-events: none; background: radial-gradient(70% 100% at 30% 0%, rgba(255, 45, 77, .18), transparent 75%); }
.modal.wide { max-width: 920px; }
.modal-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 4px; z-index: 2;
  border: 0; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: var(--muted); font-size: 22px; line-height: 1;
}
.modal-x:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 45, 77, .5); }
.modal h2 { font: 700 24px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; margin: 0 48px 16px 0; word-break: break-word; }
/* Abschnittstitel = „Eyebrow“ der Website */
.modal h3 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font: 700 11.5px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--red);
}
.modal h3::before { content: ''; width: 1.6rem; height: 2px; background: currentColor; }
.modal section { margin-top: 26px; }

.cd-title { cursor: text; border-radius: 4px; padding: 2px 4px; margin-left: -4px !important; white-space: pre-wrap; }
.cd-title:hover { background: rgba(255, 255, 255, .04); }
.cd .inline-edit { font-size: 18px; font-weight: 700; margin-bottom: 12px; margin-right: 48px; width: calc(100% - 48px); }
.cd-sub { color: var(--muted); font-size: 14px; margin-top: -6px; display: flex; align-items: center; gap: 8px; }
.cd-sub select { height: 32px; padding: 0 8px; font-size: 14px; }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; margin-top: 22px; }
.cd-grid .field:last-child { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.member-chip { display: inline-flex; align-items: center; gap: 7px; border: 0; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); border-radius: 99px; padding: 3px 11px 3px 4px; font-size: 13px; font-weight: 600; opacity: .55; }
.member-chip:hover { opacity: .9; }
.member-chip.on { opacity: 1; background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(255, 45, 77, .6); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; height: 38px; padding: 0 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); }
.check.on { box-shadow: inset 0 0 0 1px var(--ok); color: var(--ok); background: rgba(61, 220, 132, .08); }
.cd-grid .row { margin-top: 0; }
.desc-view {
  white-space: pre-wrap; word-break: break-word; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--r-sm); padding: 12px 14px; cursor: text; min-height: 54px; font-size: 14.5px; color: rgba(255, 255, 255, .88);
}
.desc-view:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.desc-view.empty { color: var(--dim); }
.archived-note { background: rgba(255, 178, 26, .1); box-shadow: inset 0 0 0 1px rgba(255, 178, 26, .4); color: var(--gold); padding: 8px 12px; border-radius: 4px; margin: 0 48px 14px 0; font-size: 14px; font-weight: 600; }

.checklist { background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-sm); padding: 13px 14px 4px; margin-bottom: 10px; }
.cl-head { display: flex; align-items: center; gap: 10px; }
.cl-head h4 { margin: 0; font-size: 14.5px; font-weight: 700; flex: 1; cursor: text; }
.cl-head .muted { font: 700 12px/1 var(--f-mono); }
.cl-head .inline-edit { flex: 1; padding: 4px 8px; }
.bar { height: 4px; background: rgba(255, 255, 255, .07); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); box-shadow: 0 0 10px var(--red-glow); transition: width .4s var(--ease); }
.bar.full span { background: var(--ok); box-shadow: 0 0 10px rgba(61, 220, 132, .5); }
.items { list-style: none; margin: 0; padding: 0; }
.items li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 5px; border-radius: 4px; }
.items li:hover { background: rgba(255, 255, 255, .03); }
.items li input[type=checkbox] { margin-top: 3px; flex: none; }
.item-text { flex: 1; cursor: text; word-break: break-word; font-size: 14px; }
.items li.done .item-text { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 45, 77, .6); }
.items .inline-edit { flex: 1; padding: 4px 8px; }
.items .x { opacity: 0; border: 0; font-size: 18px; line-height: 1; }
.items li:hover .x { opacity: 1; }
.checklist .list-foot { padding: 4px 0 8px; }

.comment { display: flex; gap: 10px; margin-top: 14px; }
.comment > div { flex: 1; min-width: 0; }
.c-meta { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.c-meta .link { margin-left: auto; font-size: 12px; }
.c-body { white-space: pre-wrap; word-break: break-word; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-sm); padding: 9px 12px; margin-top: 4px; font-size: 14px; }
.activity { margin-top: 24px; font-size: 13px; }
.activity summary { color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.activity summary:hover { color: #fff; }
.activity summary::before { content: '▸ '; color: var(--red); }
.activity[open] summary::before { content: '▾ '; }
.act { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--silver); }
.cd-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cd-actions .muted { margin-right: auto; }

/* ---------- Archiv & Verwaltung ---------- */
.arch-search { margin-bottom: 10px; }
.arch-row { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.arch-row > :first-child { flex: 1; text-align: left; min-width: 0; word-break: break-word; }
.arch-row .btn { height: 32px; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
table.users th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 8px; border-bottom: 1px solid var(--line-2); }
table.users td { padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.users tr.inactive td { opacity: .4; }
.new-user { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: center; margin-top: 14px; }
.label-row { display: grid; grid-template-columns: 120px 1fr 120px auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.label-row .lbl { justify-self: start; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.secret { background: rgba(61, 220, 132, .07); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .4); border-radius: var(--r-sm); padding: 13px 15px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.secret b { color: var(--ok); }
.secret .link { margin-left: 10px; }

/* ---------- Meldungen ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100;
  background: linear-gradient(to bottom, var(--red), var(--red-deep)); color: #fff; padding: 11px 18px; border-radius: 4px;
  box-shadow: 0 16px 40px -10px var(--red-glow); opacity: 0; pointer-events: none; transition: .3s var(--ease); font-size: 14px; font-weight: 600; max-width: calc(100% - 32px);
}
.toast.ok { background: linear-gradient(to bottom, #2fc474, #1c7a4b); box-shadow: 0 16px 40px -10px rgba(61, 220, 132, .4); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  :root { --list-w: 84vw; }
  .top { padding: 10px 12px; gap: 10px; }
  .brand span, .uname { display: none; }
  .tools { order: 3; flex-basis: 100%; }
  .tools input { max-width: none; flex: 1; }
  .tools select { max-width: 32%; }
  .board { padding: 12px; scroll-snap-type: x mandatory; }
  .list { flex: 0 0 var(--list-w); max-width: none; scroll-snap-align: center; }
  .list-new { flex: 0 0 60vw; }
  .backdrop { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; padding: 22px 16px; }
  .cd-grid { grid-template-columns: 1fr; }
  .new-user { grid-template-columns: 1fr 1fr; }
  .label-row { grid-template-columns: 1fr 1fr; }
  .label-row > span:first-child { display: none; }
  .items .x { opacity: 1; }
}
