/* =====================================================================
   Kanban im Firmendesign HBB Rooms / Aparthotel Grünewald
   Mobile first – Desktop-Anpassungen ab 900px am Ende der Datei.
   Designquelle: Onepage-Designsystem der Website (Farbschema, Font-Kit,
   @siteui/button, eyebrow, chip, title).
   ===================================================================== */

@font-face { font-family: "Vend Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/vend-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Vend Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/vend-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Vend Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/vend-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Vend Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/vend-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/inter-tight-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/inter-tight-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Farbschema der Website */
  --key1: #0c3829;            /* Dunkelgrün */
  --key2: #c5a367;            /* Gold */
  --gold-grad: linear-gradient(90deg, #b8760a 0%, #f5d060 50%, #b8760a 100%);
  --gold-btn: linear-gradient(160deg, #b8760a 0%, #f0c040 45%, #c8920a 100%);
  --gold-btn-hover: linear-gradient(160deg, #c8920a 0%, #f5d060 45%, #b8760a 100%);

  --bg: #f7f5f0;
  --surface: #ffffff;
  --tint: #0c38290a;
  --tint-2: #0c382912;
  --line: #0c382916;
  --line-2: #0c382926;
  --text: #0c3829;
  --muted: #0c3829a6;
  --faint: #0c382980;
  --danger: #b42318;
  --warn: #a8660a;

  --font-head: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Vend Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --shadow: 0 1px 2px #0c38290d, 0 2px 8px #0c38290a;
  --shadow-lg: 0 24px 60px #0c382940;
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");

  --top-h: 56px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --l-red: #c2410c; --l-orange: #d97706; --l-yellow: #c5a367; --l-green: #2f6b52;
  --l-blue: #3d6a8a; --l-purple: #6b4f7a; --l-gray: #8a918d;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body, #app { margin: 0; height: 100%; }
body {
  font: 400 15px/1.5 var(--font-text); letter-spacing: .1px;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--key1); text-decoration-color: var(--key2); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.grow { flex: 1; }
svg.i { width: 18px; height: 18px; flex: none; }
.boot { height: 100%; display: flex; align-items: center; justify-content: center; background: var(--key1); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ffffff30; border-top-color: var(--key2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 899px) { .desk-only { display: none !important; } }
@media (min-width: 900px) { .mob-only { display: none !important; } }

/* ---------- Eyebrow (wie Website: Goldlinie + Versalien) ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--key2); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.eyebrow.dark { color: #9a7631; }

/* ---------- Buttons (Pill, Versalien – @siteui/button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none;
  font-family: var(--font-text); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 0 22px; min-height: 44px;
  background: transparent; color: var(--key1); box-shadow: inset 0 0 0 1px #0c382933;
  transition: background .3s, color .3s, box-shadow .3s, transform .3s;
}
.btn:hover { background: var(--key1); color: #fff; box-shadow: inset 0 0 0 1px var(--key1); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--key1); color: #fff; box-shadow: none; }
.btn.primary:hover { background: #134a37; }
.btn.gold {
  background: var(--gold-btn); color: #3a2000; font-weight: 700; text-shadow: 0 1px 1px #ffffff60;
  box-shadow: 0 2px 8px #b8860b60, 0 0 20px #d4a01730, inset 0 1px 0 #ffffff50, inset 0 -1px 0 #8b6000a0;
}
.btn.gold:hover { background: var(--gold-btn-hover); color: #3a2000; box-shadow: 0 4px 16px #b8860b80, 0 0 32px #d4a01750, inset 0 1px 0 #ffffff60, inset 0 -1px 0 #8b6000a0; }
.btn.danger { color: var(--danger); box-shadow: inset 0 0 0 1px #b4231833; }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 11px; }
.btn.block { width: 100%; min-height: 54px; font-size: 13px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.icon-btn { border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; text-decoration: none; }
.icon-btn:hover { background: var(--tint-2); color: var(--key1); }
.icon-btn.sm { width: 36px; height: 36px; }

/* ---------- Chips (@siteui/chip) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--key1); cursor: pointer; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: #0c382959; }
.chip .n { font-size: 11px; opacity: .55; letter-spacing: 0; }
.chip.active { background: var(--key1); border-color: var(--key1); color: #fff; }
.chip.active .n { opacity: .8; }
.chip.gold.active { background: var(--key2); border-color: var(--key2); color: var(--key1); }

/* ---------- Formulare (16px gegen iOS-Zoom) ---------- */
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; font-size: 16px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--key1);
  border-radius: 12px; padding: 10px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c3829' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
input[type=date].input { display: flex; align-items: center; }
.input:focus, textarea:focus, select:focus { border-color: var(--key2); box-shadow: 0 0 0 3px #c5a36733; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--key1) var(--p, 0%), var(--tint-2) var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--tint-2); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--key1); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--gold-btn); border: 3px solid #fff; box-shadow: 0 1px 5px #0c382966; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #d9a93a; border: 3px solid #fff; box-shadow: 0 1px 5px #0c382966; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--muted); font-size: 14px; min-height: 40px; }
.check input { accent-color: var(--key1); width: 20px; height: 20px; }

/* Profilbilder & Initialen mit goldenem Ring (Goldverlauf wie auf der Website) */
:root { --gold-ring: conic-gradient(from 210deg, #b8760a, #f5d060 18%, #fff1b8 28%, #d9a93a 40%, #8b6000 55%, #c8920a 70%, #f5d060 85%, #b8760a); }
.avatar {
  --ac: var(--key1);
  box-sizing: border-box; width: 30px; height: 30px; border-radius: 50%; color: #fff; font: 700 11px/1 var(--font-head); letter-spacing: .02em;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 2px solid transparent;
  background: linear-gradient(var(--ac), var(--ac)) padding-box, var(--gold-ring) border-box;
  box-shadow: 0 1px 3px #8b600040;
}
img.avatar { background: var(--gold-ring) border-box; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; border-width: 2.5px; }

/* =====================================================================
   Anmeldung (wie Hero der Website: dunkelgrün, Noise, Goldleiste)
   ===================================================================== */
.hero {
  position: relative; min-height: 100%; display: flex; flex-direction: column;
  background: var(--key1); color: #fff; overflow: hidden;
  padding: calc(var(--safe-t) + 18px) 22px calc(var(--safe-b) + 30px);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); background-size: 200px; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--gold-grad); box-shadow: 0 0 14px #d4a01760, inset 0 1px 0 #ffffff50; }
.hero > * { position: relative; z-index: 1; }
.hero-logos { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; max-width: 1250px; margin: 0 auto; }
.hero-main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 0 18px; }
.hero h1 { font-size: clamp(36px, 10vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 22px 0 14px; color: #fff; }
.hero p { color: #ffffffb8; margin: 0 0 28px; font-size: 16px; }
.hero .foot { text-align: center; color: #ffffff59; font-size: 12px; }
.hero .foot .logo-plate { margin-bottom: 14px; }
.code-input {
  width: 100%; text-align: center; font: 700 34px/1 var(--font-head); letter-spacing: .5em; padding: 18px 0 18px .5em;
  border: 1px solid #ffffff40; border-radius: 16px; background: #ffffff0f; color: #fff; outline: none;
  font-variant-numeric: tabular-nums; margin-bottom: 16px; caret-color: var(--key2);
  transition: border-color .2s, background .2s;
}
.code-input::placeholder { color: #ffffff40; }
.code-input:focus { border-color: var(--key2); background: #ffffff17; }
.hero .input { background: #ffffff0f; border-color: #ffffff40; color: #fff; margin-bottom: 14px; }
.hero .input::placeholder { color: #ffffff66; }
.auth-error { color: #ffb4a8; min-height: 22px; margin-top: 12px; font-size: 14px; text-align: center; }
.code-reveal {
  font: 700 38px/1 var(--font-head); letter-spacing: .3em; padding: 20px 0 20px .3em; margin: 6px 0 18px; text-align: center;
  background: #ffffff12; border: 1px solid var(--key2); color: var(--key2); border-radius: 16px; font-variant-numeric: tabular-nums; user-select: all;
}
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-3px); } }

/* Logo-Schild */
.logo-plate { display: inline-flex; align-items: center; border-radius: 10px; padding: 5px 10px; }
.logo-plate img { display: block; height: 30px; width: auto; max-width: 160px; object-fit: contain; }
.hero .logo-plate { padding: 10px 16px; border-radius: 12px; }
.hero .logo-plate img { height: 48px; max-width: 230px; }
.hero .foot .logo-plate img { height: 34px; max-width: 200px; }
.logo-fallback { font: 700 17px/1 var(--font-head); letter-spacing: -.02em; color: #fff; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.logo-fallback b { color: var(--key2); }

/* =====================================================================
   App-Rahmen
   ===================================================================== */
.shell { display: flex; flex-direction: column; height: 100%; height: 100dvh; }
.topbar {
  position: relative; flex: none; display: flex; align-items: center; gap: 10px;
  min-height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 6px 0 12px;
  background: var(--key1); color: #fff; z-index: 20;
}
.topbar::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); background-size: 200px; pointer-events: none; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--gold-grad); box-shadow: 0 0 10px #d4a01750; }
.topbar > * { position: relative; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.brand-title { display: flex; flex-direction: column; min-width: 0; }
.brand-title b { font: 700 16px/1.1 var(--font-head); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-title small { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--key2); font-weight: 600; margin-top: 4px; white-space: nowrap; }
.topbar .icon-btn { color: #ffffffcc; }
.topbar .icon-btn:hover { background: #ffffff14; color: #fff; }
.me-btn { border: 0; background: transparent; padding: 7px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.me-btn:hover { background: #ffffff14; }
.me-btn .avatar { width: 34px; height: 34px; box-shadow: 0 0 10px #d4a01766; }
.me-name { font-weight: 500; font-size: 14px; }

/* Such-/Filterleiste (mobil ausklappbar) */
.searchbar { flex: none; display: flex; gap: 8px; align-items: center; padding: 16px 12px 0; background: var(--bg); }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { padding-left: 42px; }

/* Spalten-Reiter (mobil) */
.lane-tabs {
  flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 16px 12px 12px; scrollbar-width: none;
  background: var(--bg); scroll-padding: 12px;
}
.lane-tabs::-webkit-scrollbar { display: none; }

#main { flex: 1; min-height: 0; position: relative; }

/* Untere Navigation (mobil) */
.bottomnav {
  flex: none; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--line); z-index: 20;
}
.nav-item {
  border: 0; background: transparent; cursor: pointer; height: 100%; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--faint); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.nav-item svg.i { width: 22px; height: 22px; }
.nav-item.active { color: var(--key1); }
.nav-item.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--key2); }
.nav-item .dot { position: absolute; top: 10px; right: calc(50% - 17px); width: 9px; height: 9px; border-radius: 50%; background: var(--key2); box-shadow: 0 0 0 2px #fff; }
.fab {
  justify-self: center; width: 58px; height: 58px; margin-top: -28px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold-btn); color: #3a2000; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px #b8860b70, inset 0 1px 0 #ffffff60, inset 0 -1px 0 #8b6000a0, 0 0 0 5px var(--surface);
}
.fab svg.i { width: 26px; height: 26px; stroke-width: 2.4; }
.fab:active { transform: scale(.95); }

/* =====================================================================
   Board
   ===================================================================== */
.board {
  height: 100%; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.board::-webkit-scrollbar { display: none; }
.lane { flex: 0 0 100%; height: 100%; display: flex; flex-direction: column; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.lane-head { display: none; }
.lane-cards {
  flex: 0 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 60px;
  border-radius: var(--radius); transition: background .2s;
}
.lane-cards.drop-target { background: #c5a3671f; }
.lane-add { padding: 0 12px 20px; flex: none; }
.add-card {
  width: 100%; min-height: 50px; border: 1px dashed var(--line-2); background: transparent; color: var(--muted);
  border-radius: var(--radius); cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.add-card:hover { border-color: var(--key2); color: var(--key1); background: var(--surface); }
.add-form textarea { width: 100%; resize: none; min-height: 84px; font-size: 16px; border: 1px solid var(--key2); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); outline: none; box-shadow: 0 0 0 3px #c5a36733; }
.add-form .row { display: flex; gap: 8px; margin-top: 8px; }
.add-form .row .btn { flex: 1; }
.lane-empty { text-align: center; color: var(--faint); font-size: 14px; padding: 26px 16px 4px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: background .25s, border-color .25s, transform .15s, box-shadow .25s; flex: none;
}
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--key2); transition: width .4s ease; }
.card:hover { border-color: #0c382930; box-shadow: var(--shadow); }
.card:hover::after { width: 100%; }
.card.dragging { opacity: .4; }
.card.pressing { transform: scale(.97); background: #fbf8f1; }
.card-label { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 1; }
.card-cover { display: block; width: calc(100% + 32px); max-width: none; margin: -14px -16px 12px; aspect-ratio: 16 / 8; object-fit: cover; background: var(--tint); }
.card-title { font: 700 16px/1.3 var(--font-head); letter-spacing: -.01em; word-wrap: break-word; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: .03em; padding: 3px 10px; border-radius: 100px; background: #c5a36726; color: var(--key1); }
.progress { height: 4px; background: var(--tint-2); border-radius: 2px; overflow: hidden; margin-top: 12px; }
.progress > div { height: 100%; background: var(--key1); border-radius: 2px; }
.progress.done > div { background: var(--gold-grad); }
.card-meta { display: flex; flex-wrap: wrap; row-gap: 6px; align-items: center; gap: 12px; margin-top: 12px; color: var(--faint); font-size: 13px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.card-meta svg.i { width: 15px; height: 15px; }
.due.overdue { color: var(--danger); font-weight: 600; }
.due.soon { color: var(--warn); font-weight: 600; }
.pct { font-weight: 600; color: var(--key1); }

.lbl-red { background: var(--l-red); } .lbl-orange { background: var(--l-orange); } .lbl-yellow { background: var(--l-yellow); }
.lbl-green { background: var(--l-green); } .lbl-blue { background: var(--l-blue); } .lbl-purple { background: var(--l-purple); } .lbl-gray { background: var(--l-gray); }

/* =====================================================================
   Archiv
   ===================================================================== */
.archive { height: 100%; overflow-y: auto; padding: 22px 12px 28px; }
.archive-inner { max-width: 980px; margin: 0 auto; }
.page-head h2 { font-size: 30px; margin: 12px 0 6px; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }
.archive-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.arc-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 14px 6px 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; overflow: hidden; }
.arc-row:hover { background: #fdfcf9; border-color: #0c382930; }
.arc-main { flex: 1; min-width: 0; }
.arc-title { font: 700 16px/1.3 var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-sub { color: var(--faint); font-size: 13px; display: flex; gap: 2px 12px; flex-wrap: wrap; margin-top: 4px; }
.arc-sub span { display: inline-flex; align-items: center; gap: 4px; }
.arc-sub svg.i { width: 14px; height: 14px; }
.empty { padding: 48px 20px; text-align: center; color: var(--faint); }

/* =====================================================================
   Modal / Vollbild-Sheet (mobil)
   ===================================================================== */
.backdrop { position: fixed; inset: 0; z-index: 100; background: #0c382973; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: relative; width: 100%; height: 100%; height: 100dvh; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden; animation: slideup .26s cubic-bezier(.16, 1, .3, 1);
}
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } }
.sheet-head {
  flex: none; display: flex; align-items: center; gap: 6px; padding: var(--safe-t) 6px 0;
  min-height: calc(56px + var(--safe-t)); background: var(--key1); color: #fff; position: relative; z-index: 3;
}
.sheet-head::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); background-size: 200px; pointer-events: none; }
.sheet-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--gold-grad); }
.sheet-head > * { position: relative; }
.sheet-head .icon-btn { color: #ffffffcc; }
.sheet-head .icon-btn:hover { background: #ffffff14; color: #fff; }
.sheet-head h2 { font-size: 17px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; }
.sheet-head .lane-badge { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--key2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 4px; }
.modal-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.modal-body { padding: 20px 16px calc(var(--safe-b) + 36px); }

.cm-hero { padding: 18px 16px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.cm-title {
  display: block; width: calc(100% + 16px); font: 700 24px/1.18 var(--font-head); letter-spacing: -.02em; color: var(--key1);
  border: 1px solid transparent; background: transparent; resize: none; border-radius: 10px; padding: 4px 8px; margin: 0 -8px; outline: none; overflow: hidden;
}
.cm-title:focus { border-color: var(--key2); background: #fff; }
.cm-sub { color: var(--faint); font-size: 13px; margin: 6px 0 10px; }
.cm-tabs { display: flex; margin: 0; padding: 0 6px; position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line); }
.cm-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer; min-height: 50px; padding: 0 8px; position: relative; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.cm-tab .n { letter-spacing: 0; margin-left: 3px; opacity: .85; }
.cm-tab.active { color: var(--key1); }
.cm-tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--key2); }
.pane { display: none; }
.pane.show { display: block; }
.cm-grid { display: flex; flex-direction: column; }
.cm-side { display: none; order: -1; margin-bottom: 8px; }
.cm-side.show { display: block; }

.block-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; min-height: 36px; }
.block-title .eyebrow { flex: 1; }
.cm-desc { display: block; width: 100%; min-height: 150px; font-size: 16px; line-height: 1.55; resize: vertical; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); outline: none; }
.cm-desc:focus { border-color: var(--key2); box-shadow: 0 0 0 3px #c5a36733; }

.field { display: block; margin-bottom: 20px; }
.field > .lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.field > .lbl b { font: 700 16px/1 var(--font-head); letter-spacing: 0; color: var(--key1); text-transform: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.quick button { min-height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0; }
.quick button.active { background: var(--key1); color: #fff; border-color: var(--key1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; position: relative; }
.swatch.none { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.swatch.none::after { content: ""; position: absolute; left: 9px; right: 9px; top: 50%; height: 1.5px; background: var(--faint); transform: rotate(-45deg); }
.swatch.sel { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--key1); }
.swatch.none.sel { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 3px var(--bg), 0 0 0 5px var(--key1); }
.side-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.meta-small { font-size: 12.5px; color: var(--faint); margin-top: 16px; line-height: 1.7; }
.banner { background: #c5a36726; border: 1px solid #c5a36780; border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.banner .grow { min-width: 160px; }

/* Anhänge */
.att-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.att { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.att img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; background: var(--tint); }
.att .file-icon { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--font-head); letter-spacing: .08em; color: var(--key2); text-decoration: none; background: var(--key1); }
.att .att-name { font-size: 12.5px; padding: 8px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att .att-name a { color: inherit; text-decoration: none; }
.att .att-del { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; background: #0c3829b3; color: #fff; }
.dropzone { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--faint); font-size: 13.5px; background: var(--surface); }
.dropzone.over { border-color: var(--key2); background: #c5a3671f; color: var(--key1); }
.upload-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.upload-btns .btn { padding: 0 10px; }

/* Composer / Diskussion */
.composer { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); padding: 8px; }
.composer:focus-within { border-color: var(--key2); box-shadow: 0 0 0 3px #c5a36733; }
.composer textarea { display: block; width: 100%; border: 0; resize: none; min-height: 76px; font-size: 16px; outline: none; background: transparent; padding: 8px; box-shadow: none !important; }
.composer-bar { display: flex; align-items: center; gap: 6px; }
.seg { display: flex; background: var(--tint); border-radius: 999px; padding: 3px; }
.seg button { flex: 1; border: 0; background: transparent; min-height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.seg button.active { background: var(--key1); color: #fff; }
.composer-progress { padding: 12px 8px 0; }
.composer-progress .lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.composer-progress .lbl b { font: 700 16px/1 var(--font-head); color: var(--key1); }
.pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 6px; }
.pending:empty { display: none; }
.pending span { background: var(--tint); border-radius: 999px; padding: 2px 2px 2px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.pending span em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Gesprächsverlauf (Chat) */
.sys-toggle { font-size: 12px; min-height: 30px; margin-left: auto; letter-spacing: 0; text-transform: none; }
.sys-toggle input { width: 16px; height: 16px; }
.chat { background: #efebe2; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.timeline { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 18px; min-height: 140px; }
.chat-empty { margin: auto; text-align: center; color: var(--faint); font-size: 14px; padding: 24px 12px; line-height: 1.6; }
.day-sep { display: flex; justify-content: center; margin: 12px 0 8px; }
.day-sep:first-child { margin-top: 2px; }
.day-sep span { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: #ffffffb3; border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.tl-sys { align-self: center; max-width: 92%; text-align: center; font-size: 12.5px; color: var(--muted); background: #0c38290b; border-radius: 12px; padding: 5px 12px; margin: 4px 0; }
.tl-sys b { font-weight: 600; color: var(--key1); }

.msg { display: flex; align-items: flex-start; gap: 8px; max-width: 88%; margin-top: 8px; }
.msg.grouped { margin-top: 0; }
.msg.mine { align-self: flex-end; }
.msg-av { width: 30px; flex: none; margin-top: 19px; }
.msg-body { min-width: 0; display: flex; flex-direction: column; }
.msg.mine .msg-body { align-items: flex-end; }
.msg-head { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--faint); padding: 0 6px 3px; }
.msg-head b { font: 700 13px/1.2 var(--font-head); color: var(--key1); }
.bubble {
  background: var(--surface); color: var(--key1); border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px; padding: 9px 14px; box-shadow: 0 1px 1px #0c38290a; max-width: 100%;
}
.msg.grouped .bubble { border-top-left-radius: 6px; }
.msg.mine .bubble { background: var(--key1); color: #fff; border-color: var(--key1); border-radius: 18px 18px 6px 18px; }
.msg.mine.grouped .bubble { border-top-right-radius: 6px; }
.msg.mine .bubble a { color: #e8cf9c; }
.tl-text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.bubble .badge { display: inline-block; margin: 1px 0 6px; }
.msg.mine .badge { background: #c5a36740; color: #f3dfb4; }
.msg.kind-progress .bubble { border-left: 3px solid var(--key2); }
.msg.mine.kind-progress .bubble { border-left-color: var(--key2); }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: #c5a36733; color: var(--key1); padding: 4px 9px; border-radius: 100px; }
.tl-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tl-atts:first-child { margin-top: 0; }
.tl-atts img { display: block; height: 140px; max-width: 100%; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.filechip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; min-height: 40px; padding: 0 12px; text-decoration: none; color: var(--key1); font-size: 13px; max-width: 100%; }
.filechip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filechip small { color: var(--faint); }
.msg-actions { display: none; gap: 0; margin-top: 2px; }
.msg.show-actions .msg-actions { display: flex; }
.msg.show-actions .bubble { box-shadow: 0 0 0 2px var(--key2); }
.msg-actions .icon-btn { width: 30px; height: 30px; color: var(--faint); }
.msg-actions svg.i { width: 15px; height: 15px; }
.msg.editing { max-width: 100%; width: 100%; }
.msg.editing .msg-body, .msg.editing .bubble { width: 100%; }
.bubble .tl-edit { background: var(--surface); color: var(--key1); margin: 2px -8px -3px; }

/* Eingabe unten im Chat */
.chat > .composer { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 10px; }
.chat > .composer:focus-within { box-shadow: inset 0 3px 0 -1px var(--key2); }

/* ---------- Anpinnen ---------- */
.count-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--gold-btn); color: #3a2000; font: 700 11px/1 var(--font-head); letter-spacing: 0;
  box-shadow: inset 0 1px 0 #ffffff60;
}
.nav-item .count-badge { position: absolute; top: 7px; left: calc(50% + 4px); box-shadow: 0 0 0 2px var(--surface), inset 0 1px 0 #ffffff60; }
.tab .count-badge { margin-left: 2px; }
.card-meta .pin-me { background: var(--gold-btn); color: #3a2000; font-weight: 700; font-size: 11.5px; padding: 3px 9px 3px 7px; border-radius: 999px; letter-spacing: .02em; }
.card-meta .pin-me svg.i { width: 13px; height: 13px; }
.card-meta .pin-open { color: #9a7631; font-weight: 600; }
.pin-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.pin-btn svg.i { width: 16px; height: 16px; }
.pin-btn:hover { border-color: var(--key2); color: var(--key1); }
.pin-btn.active { background: var(--key2); border-color: var(--key2); color: var(--key1); }
.pin-target { display: flex; align-items: center; gap: 8px; margin: 8px 4px 0; padding: 6px 4px 6px 12px; border-radius: 12px; background: #c5a36726; color: var(--key1); font-size: 13.5px; }
.pin-target svg.i { color: #9a7631; width: 16px; height: 16px; }
.pin-target span { flex: 1; min-width: 0; }
.pin-tag { display: inline-flex; align-items: center; gap: 4px; margin: 1px 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9a7631; }
.pin-tag svg.i { width: 13px; height: 13px; }
.msg.mine .pin-tag { color: #e8cf9c; }
.msg.has-pin .bubble { box-shadow: 0 0 0 2px #c5a36780; }
.pin-state { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; padding: 0 4px; font-size: 12.5px; color: var(--muted); }
.pin-state.open span { color: #9a7631; font-weight: 600; }
.pin-state.open.for-me span { color: var(--key1); }
.pin-state.done span { display: inline-flex; align-items: center; gap: 4px; color: var(--ok, #2f6b52); }
.pin-state svg.i { width: 14px; height: 14px; }
.pin-done { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; background: var(--key1); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pin-done svg.i { width: 14px; height: 14px; }
.pin-reopen { border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12px; padding: 4px; }
.msg.mine .pin-state { justify-content: flex-end; }
.msg.flash .bubble { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--key2); } 100% { box-shadow: 0 0 0 2px #c5a36700; } }

.pin-banner { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--key1); color: #fff; position: relative; overflow: hidden; }
.pin-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-grad); }
.pin-banner-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.pin-banner-head svg.i { color: var(--key2); }
.pin-banner-head b { font-family: var(--font-head); }
.pin-banner-text { margin-top: 8px; color: #ffffffd9; font-size: 15px; line-height: 1.45; }
.pin-banner-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pin-banner .btn { color: #fff; box-shadow: inset 0 0 0 1px #ffffff55; }
.pin-banner .btn:hover { background: transparent; color: var(--key2); box-shadow: inset 0 0 0 1px var(--key2); }
.pin-banner .btn.primary { background: var(--key2); color: var(--key1); box-shadow: none; }
.pin-banner .btn.primary:hover { background: #d4b67e; color: var(--key1); }


.sheet-item.current-pin { background: #c5a36726; }
.sheet-item .sel-mark { margin-left: auto; color: var(--key1); display: inline-flex; }

/* Für-mich-Ansicht */
.pin-section { margin-top: 26px; }
.pin-count { font: 700 13px/1 var(--font-head); color: var(--key1); background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.pin-list { display: flex; flex-direction: column; gap: 10px; }
.pin-empty { color: var(--faint); font-size: 14px; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; }
.pin-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; overflow: hidden; }
.pin-item:hover { border-color: #0c382930; box-shadow: var(--shadow); }
.pin-item.forme { border-left: 4px solid var(--key2); }
.pin-item.done { opacity: .7; }
.pin-item-head { display: flex; align-items: center; gap: 10px; }
.pin-item-who { font-size: 14px; }
.pin-item-who b { font-family: var(--font-head); }
.pin-item-when { font-size: 12px; color: var(--faint); }
.pin-item-text { margin-top: 10px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pin-item-card { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--muted); min-width: 0; }
.pin-item-card svg.i { width: 15px; height: 15px; color: #9a7631; }
.pin-item-card span { font-weight: 600; color: var(--key1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-item-card em { font-style: normal; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.pin-item-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- RPM (Result · Purpose · Massive Action) ---------- */
.rpm-letter {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 7px; background: var(--key1); color: var(--key2);
  font: 700 12px/1 var(--font-head); letter-spacing: 0; text-transform: none;
}
.m-label { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ai-mark { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #9a7631; background: #c5a36726; padding: 2px 7px 2px 5px; border-radius: 999px; text-transform: uppercase; vertical-align: middle; }
.ai-mark svg.i { width: 12px; height: 12px; }
.rpm { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 16px; }
.rpm-row {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 12px 12px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fbfaf6; color: var(--key1);
  transition: border-color .2s, background .2s;
}
.rpm-row:hover { border-color: var(--key2); background: #fff; }
.rpm-row:disabled { cursor: default; }
.rpm-row.empty { border-style: dashed; background: transparent; }
.rpm-row.empty .rpm-value { color: var(--faint); }
.rpm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rpm-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #9a7631; }
.rpm-label .inh { font-size: 10px; letter-spacing: .1em; color: var(--faint); background: var(--tint); padding: 2px 7px; border-radius: 999px; }
.rpm-value { font: 600 16px/1.35 var(--font-head); letter-spacing: -.005em; overflow-wrap: anywhere; }
.rpm-row[data-edit-rpm="purpose"] .rpm-value { font: italic 400 16px/1.45 var(--font-text); }
.rpm-row.empty .rpm-value { font: 400 15px/1.4 var(--font-text); font-style: normal; }
.rpm-edit-ic { color: var(--faint); opacity: .6; }
.rpm-edit-ic svg.i { width: 16px; height: 16px; }
.rpm-edit { padding: 12px; border-radius: 14px; border: 1px solid var(--key2); background: #fff; box-shadow: 0 0 0 3px #c5a36733; }
.rpm-edit .rpm-label { margin-bottom: 8px; color: var(--key1); letter-spacing: .1em; }
.rpm-edit textarea { width: 100%; border: 0; outline: none; resize: none; font-size: 16px; line-height: 1.45; background: transparent; padding: 4px 2px; }
.rpm-edit .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.ai-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px dashed #c5a367; background: #c5a3671a; color: var(--key1); cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.ai-btn svg.i { color: #9a7631; }
.ai-btn:hover { background: #c5a36733; }
.goal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gc, var(--key2)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gc, #c5a367) 22%, transparent); }
.goal-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--key1); background: var(--surface); border: 1px solid var(--line-2); padding: 5px 12px 5px 10px; border-radius: 999px; margin-top: 8px; }
.stale-banner { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #fff4e0; border: 1px solid #e8c98a; color: #6b4a0e; font-size: 14px; }
.stale-banner svg.i { color: #b8762a; margin-top: 1px; }
.stale-banner .why { margin-top: 4px; color: #6b4a0ecc; }
.stale-banner em { font-style: italic; color: #4a3308; }
.card-meta .stale { color: #b8660a; font-weight: 700; }
.card-meta .check-full { color: var(--l-green); font-weight: 600; }
.card-meta .has-why { color: #9a7631; }
.filter-banner { flex: none; display: flex; align-items: center; gap: 10px; margin: 12px 12px 0; padding: 6px 6px 6px 14px; background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--gc); border-radius: 12px; font-size: 14px; }
#main { display: flex; flex-direction: column; }
#main > .board, #main > .archive, #main > .empty { flex: 1; min-height: 0; }

/* KI-Sheets */
.ai-loading { display: flex; align-items: center; gap: 12px; padding: 22px 14px 26px; color: var(--muted); font-size: 15px; }
.ai-loading .spinner { border-color: #0c382920; border-top-color: #c5a367; width: 22px; height: 22px; }
.ai-group { padding: 4px 10px 8px; }
.ai-lbl { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #9a7631; margin: 10px 2px 8px; }
.ai-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.ai-opt:has(input:checked) { border-color: var(--key1); background: #0c38290a; }
.ai-opt input { accent-color: var(--key1); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.ai-opt.keep { color: var(--muted); font-size: 14px; border-style: dashed; }
.sheet-btns { display: flex; gap: 10px; padding: 8px 12px 4px; flex-wrap: wrap; }
.sheet-btns .btn { flex: 1 1 auto; }
.bd-list { display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.bd-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.bd-item:has(input:checked) { border-color: var(--key1); background: #0c38290a; }
.bd-item > input { accent-color: var(--key1); width: 20px; height: 20px; margin: 10px 0 0; flex: none; }
.bd-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bd-title { display: block; resize: none; overflow: hidden; width: calc(100% + 16px); border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 8px; margin: 0 -8px; font: 700 16px/1.3 var(--font-head); color: var(--key1); outline: none; }
.bd-title:focus { border-color: var(--key2); background: #fff; }
.bd-result { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.bd-result .rpm-letter { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; }
.goal-form { padding: 0 12px; }
.goal-form textarea.input { resize: none; min-height: 72px; }
.goal-form .lbl span { display: inline-flex; align-items: center; gap: 8px; }
.goal-form .swatch { width: 34px; height: 34px; }

/* Checkliste */
.check-count { margin-left: auto; font: 700 13px/1 var(--font-head); color: var(--key1); }
.check-progress { height: 6px; border-radius: 3px; background: var(--tint-2); overflow: hidden; margin: 0 0 12px; }
.check-progress > div { height: 100%; background: var(--key1); transition: width .3s; }
.check-progress.full > div { background: var(--gold-grad); }
.checklist { list-style: none; margin: 0 0 12px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 6px 10px 12px; border-top: 1px solid var(--line); }
.check-item:first-child { border-top: 0; }
.check-box {
  flex: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 8px; border: 2px solid #0c382955; background: #fff; color: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.check-box svg.i { width: 18px; height: 18px; stroke-width: 2.6; }
.check-item.done .check-box { background: var(--key1); border-color: var(--key1); color: var(--key2); }
.check-body { flex: 1; min-width: 0; padding-top: 4px; }
.check-text { font-size: 16px; line-height: 1.35; cursor: text; overflow-wrap: anywhere; }
.check-item.done .check-text { color: var(--faint); text-decoration: line-through; text-decoration-color: #0c382960; }
.check-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.avatar.xs { width: 20px; height: 20px; font-size: 8px; border-width: 1.5px; box-shadow: none; }
.check-del { color: var(--faint); opacity: .7; }
.check-edit { min-height: 38px; font-size: 16px; padding: 6px 10px; }
.check-add { display: flex; gap: 8px; align-items: flex-end; }
.check-add textarea { flex: 1; min-height: 46px; max-height: 200px; resize: none; font-size: 16px; line-height: 1.4; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; outline: none; background: var(--surface); }
.check-add textarea:focus { border-color: var(--key2); box-shadow: 0 0 0 3px #c5a36733; }
.check-add .btn { min-height: 46px; padding: 0 16px; }

/* Ziele-Ansicht */
.goals-bar { margin-top: 18px; }
.goal-list { display: grid; gap: 12px; margin-top: 16px; }
.goal { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px 20px; overflow: hidden; }
.goal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gc); }
.goal.closed { opacity: .65; }
.goal-top { display: flex; align-items: center; gap: 10px; }
.goal-top h3 { flex: 1; min-width: 0; font-size: 19px; line-height: 1.2; }
.goal-rp { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.goal-rp > div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.goal-rp > div:nth-child(2) span:last-child { font-style: italic; color: var(--muted); }
.goal-rp .rpm-letter { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.goal-prog { margin-top: 14px; }
.goal-prog .bar { height: 6px; border-radius: 3px; background: var(--tint-2); overflow: hidden; }
.goal-prog .bar > div { height: 100%; background: var(--gc); }
.goal-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.goal-stats .stale { display: inline-flex; align-items: center; gap: 4px; color: #b8660a; font-weight: 600; }
.goal-stats svg.i { width: 14px; height: 14px; }
.goal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Rechte / Nur lesen ---------- */
.fab.invisible { visibility: hidden; }
.ro-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; }
.ro-tag svg.i, .lane-ro svg.i, .chip svg.i { width: 14px; height: 14px; }
.lane-ro { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 12px 16px; padding: 12px; border-radius: var(--radius); font-size: 13px; color: var(--faint); border: 1px dashed var(--line-2); }
.ro-banner { background: #0c38290d; border-color: var(--line-2); }
.modal.ro .composer, .modal.ro .check-add, .modal.ro .upload-btns, .modal.ro label.cm-upload-lbl, .modal.ro .att-del, .modal.ro .check-del,
.modal.ro .msg-actions, .modal.ro .rpm-edit-ic, .modal.ro #cm-drop, .modal.no-write .side-actions, .modal.ro .pin-btn { display: none !important; }
.modal.ro .check-box, .modal.ro .check-text { pointer-events: none; }
.modal.ro .rpm-row { cursor: default; }
.modal.ro .rpm-row.empty { display: none; }
.modal.ro .cm-title { cursor: default; }
.modal.ro .cm-side .chip:disabled:not(.active) { opacity: .5; }
.modal.ro .chat { border-bottom-left-radius: 18px; }
.chip:disabled { cursor: default; }
.chip:disabled:not(.active) { opacity: .45; }

.user-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px 12px 14px; color: var(--key1);
}
.user-row:hover { border-color: var(--key2); }
.user-row.inactive { opacity: .55; }
.user-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.user-name { font: 700 16px/1.25 var(--font-head); }
.user-name em { font: 400 13px var(--font-text); color: var(--faint); font-style: normal; }
.user-access { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.user-seen { font-size: 12px; color: var(--faint); }
.user-go { color: var(--faint); }
.role-badge { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--tint-2); color: var(--key1); }
.role-badge.admin { background: var(--key2); color: var(--key1); }
.role-badge.off { background: #b4231820; color: var(--danger); }
.lbl-sm { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.access-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.access-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.access-row:first-child { border-top: 0; }
.access-name { flex: 1 1 120px; min-width: 0; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; }
.access-name small { font-weight: 400; font-size: 12px; color: var(--faint); }
.access-row.new-lanes { background: #fbfaf6; }
.seg3 { display: inline-flex; background: var(--tint); border-radius: 999px; padding: 3px; flex: none; }
.seg3 button { border: 0; background: transparent; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.seg3 button.active[data-v="write"] { background: var(--key1); color: #fff; }
.seg3 button.active[data-v="read"] { background: var(--key2); color: var(--key1); }
.seg3 button.active[data-v="none"] { background: #fff; color: var(--danger); box-shadow: inset 0 0 0 1px #b4231840; }

/* ---------- Avatare / Profilbilder ---------- */
img.avatar { object-fit: cover; display: inline-block; }
.avatar.xl { width: 96px; height: 96px; font-size: 30px; border-width: 4px; box-shadow: 0 4px 18px #b8860b55; }
.av-stack { display: inline-flex; align-items: center; }
.av-stack .avatar { margin-left: -8px; }
.av-stack .avatar:first-child { margin-left: 0; }
.avatar.more { --ac: #f3efe4; color: var(--key1); font-size: 10.5px; }
.av-edit { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 16px 14px; text-align: center; }
.av-edit p { margin: 0; font-size: 14px; max-width: 34ch; }
.av-edit .spinner { border-color: #0c382920; border-top-color: #c5a367; width: 36px; height: 36px; display: inline-block; margin: 26px; }
.eu-top { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.eu-av { position: relative; border: 0; background: transparent; padding: 6px; cursor: pointer; flex: none; border-radius: 50%; }
.eu-av-ic { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--key1); color: var(--key2); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.eu-av-ic svg.i { width: 16px; height: 16px; }

/* Zuständig: mehrere Personen */
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 14px 4px 5px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--key1); font-size: 14px; font-weight: 500;
}
.person .avatar { width: 32px; height: 32px; }
.person.on { background: var(--key1); border-color: var(--key1); color: #fff; }
.person.on .avatar { box-shadow: 0 0 8px #d4a01780; }
.person:disabled { cursor: default; }
.person:disabled:not(.on) { display: none; }

/* Status-Regler (Handy) */
.lane-slider { --n: 5; --i: 0; position: relative; padding: 8px 0 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; }
.lane-slider .ls-track { position: relative; height: 10px; margin: 10px calc(50% / var(--n)); border-radius: 5px; background: var(--tint-2); }
.lane-slider .ls-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% * var(--i) / max(1, var(--n) - 1)); border-radius: 5px; background: var(--key1); transition: width .2s; }
.lane-slider .ls-stop { position: absolute; top: 50%; left: calc(100% * var(--k) / max(1, var(--n) - 1)); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #0c382930; }
.lane-slider .ls-knob {
  position: absolute; top: 50%; left: calc(100% * var(--i) / max(1, var(--n) - 1)); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: var(--gold-btn); border: 3px solid #fff; box-shadow: 0 2px 8px #0c382955; transition: left .2s, transform .15s;
}
.lane-slider.dragging .ls-knob { transform: scale(1.12); transition: transform .15s; }
.lane-slider.dragging .ls-fill { transition: none; }
.lane-slider .ls-labels { display: grid; grid-template-columns: repeat(var(--n), 1fr); margin-top: 16px; }
.lane-slider .ls-labels span { text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); line-height: 1.2; padding: 0 2px; overflow-wrap: anywhere; }
.lane-slider .ls-labels span.cur { color: var(--key1); }
.lane-slider .ls-labels span.ro { opacity: .45; }
.lane-slider.disabled { cursor: default; opacity: .7; }

/* Ergebnis & Warum eingeklappt */
.rpm-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 14px; padding: 10px 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: #fbfaf6; color: var(--key1);
}
.rpm-toggle:hover { border-color: var(--key2); }
.rpm-letters { display: inline-flex; gap: 4px; }
.rpm-letter.off { background: var(--tint-2); color: var(--faint); }
.rpm-t-label { flex: 1; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.rpm-t-state { font-size: 12.5px; color: var(--muted); }
.rpm-chev { display: inline-flex; color: var(--faint); transition: transform .2s; }
.rpm-toggle.open .rpm-chev { transform: rotate(180deg); }
.rpm-toggle.open { margin-bottom: 10px; }
.check-hint { font-size: 12.5px; color: var(--faint); margin: 8px 4px 0; }
.check-add textarea::placeholder { color: var(--faint); }

/* Verwaltung */
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.admin-row.inactive { opacity: .55; }
.admin-row .row-top { display: flex; gap: 12px; align-items: center; }
.admin-row .row-top .input { flex: 1; min-width: 0; }
.admin-row .row-opts { display: flex; gap: 4px 18px; align-items: center; flex-wrap: wrap; }
.admin-row .row-opts .btn { margin-left: auto; }
.admin-row .row-info { font-size: 12.5px; color: var(--faint); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.code-box { background: var(--key1); color: #fff; border-radius: 16px; padding: 18px 18px 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.code-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold-grad); }
.code-box .code-reveal { margin: 12px 0; font-size: 32px; }
.code-box .hint { color: #ffffffa0; font-size: 13px; }
.code-box .btn { color: #fff; box-shadow: inset 0 0 0 1px #ffffff55; }
.code-box .btn:hover { background: transparent; color: var(--key2); box-shadow: inset 0 0 0 1px var(--key2); }
.lane-row { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 4px 6px 6px; }
.lane-row .input { flex: 1; min-width: 0; border-color: transparent; }
.lane-row .input:focus { border-color: var(--key2); }
.lane-row .cnt { font-size: 12px; color: var(--faint); white-space: nowrap; padding: 0 4px; }
.lane-row .icon-btn:disabled { opacity: .25; pointer-events: none; }
.note { font-size: 13px; color: var(--faint); margin: 14px 2px 0; }

/* Aktions-Sheet (von unten) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 150; background: #0c382973; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 10px calc(var(--safe-b) + 14px); animation: slideup .22s cubic-bezier(.16, 1, .3, 1); max-height: 85dvh; overflow-y: auto;
}
.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-title { padding: 2px 12px 12px; }
.sheet-title .t { font: 700 19px/1.25 var(--font-head); margin-top: 10px; }
.sheet-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; border: 0; background: transparent; padding: 0 14px; border-radius: 12px; cursor: pointer; text-align: left; font-size: 16px; color: var(--key1); }
.sheet-item:hover { background: var(--tint); }
.sheet-item svg.i { color: var(--key2); width: 20px; height: 20px; }
.sheet-item.current { color: var(--faint); }
.sheet-item.current::after { content: "aktuell"; margin-left: auto; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--key2); font-weight: 600; }
.sheet-item.danger, .sheet-item.danger svg.i { color: var(--danger); }
.sheet-sep { height: 1px; background: var(--line); margin: 6px 14px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: #06140f; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 12px) 12px calc(var(--safe-b) + 12px); }
.lightbox img { max-width: 100%; max-height: calc(100% - 76px); object-fit: contain; border-radius: 6px; }
.lb-bar { color: #fff; margin-top: 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 14px; }
.lb-bar .btn { color: #fff; box-shadow: inset 0 0 0 1px #ffffff55; }
.lb-bar .btn:hover { color: var(--key2); box-shadow: inset 0 0 0 1px var(--key2); background: transparent; }

/* Toasts */
#toast-root { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--key1); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); animation: slideup .2s; max-width: 100%; font-size: 14px; border: 1px solid #c5a36766; }
.toast.error { background: var(--danger); border-color: transparent; }

/* =====================================================================
   Desktop (ab 900px)
   ===================================================================== */
@media (min-width: 900px) {
  :root { --top-h: 70px; }

  .topbar { padding: 0 20px 0 24px; gap: 16px; }
  .brand { flex: none; }
  .logo-plate img { height: 38px; max-width: 200px; }
  .tabs { display: flex; gap: 4px; margin-left: 10px; }
  .tab { border: 0; background: transparent; color: #ffffffa6; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .tab:hover { color: #fff; background: #ffffff12; }
  .tab.active { color: var(--key1); background: var(--key2); }
  .topbar .search { flex: 0 1 300px; margin-left: auto; }
  .topbar .search input { min-height: 42px; background: #ffffff12; border-color: #ffffff30; color: #fff; font-size: 15px; }
  .topbar .search input::placeholder { color: #ffffff80; }
  .topbar .search svg { color: #ffffff80; }
  .topbar .chip { background: transparent; color: #ffffffcc; border-color: #ffffff40; }
  .topbar .chip:hover { border-color: #ffffff80; }
  .topbar .chip.active { background: var(--key2); border-color: var(--key2); color: var(--key1); }

  .lane-tabs, .searchbar, .bottomnav { display: none !important; }
  #toast-root { bottom: 24px; }

  .board { gap: 16px; padding: 28px 24px 20px; scroll-snap-type: none; align-items: flex-start; scrollbar-width: thin; }
  .lane { flex: 1 1 0; min-width: 260px; max-width: 360px; height: auto; max-height: 100%; background: #0c382907; border: 1px solid #0c38290f; border-radius: 16px; }
  .lane-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
  .lane-head .eyebrow { flex: 1; min-width: 0; color: #9a7631; }
  .lane-head .eyebrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lane-head .count { font: 700 13px/1 var(--font-head); color: var(--key1); background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
  .lane-cards { padding: 2px 10px 8px; }
  .lane-add { padding: 2px 10px 12px; }
  .add-card { border: 0; justify-content: flex-start; padding: 0 10px; min-height: 42px; }
  .add-form textarea { font-size: 15px; }
  .lane-empty { padding: 12px 10px 4px; font-size: 13px; }

  .archive { padding: 36px 24px; }
  .page-head h2 { font-size: 42px; }
  .arc-row { padding: 16px 12px 16px 20px; }

  .backdrop { align-items: flex-start; padding: 48px 24px; overflow-y: auto; }
  .modal { height: auto; max-width: 640px; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: visible; animation: pop .22s cubic-bezier(.16, 1, .3, 1); }
  @keyframes pop { from { transform: translateY(10px) scale(.99); opacity: 0; } }
  .modal.wide { max-width: 1060px; }
  .modal-scroll { overflow: visible; }
  .sheet-head { border-radius: 18px 18px 0 0; padding: 6px 8px 6px 22px; min-height: 60px; }
  .sheet-head::before { border-radius: 18px 18px 0 0; }
  .modal-body { padding: 28px 28px 32px; }
  .cm-hero { padding: 26px 28px 20px; }
  .cm-title { font-size: 32px; }
  .cm-tabs { display: none; }
  .cm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
  .pane { display: block !important; }
  .pane + .pane { margin-top: 34px; }
  .cm-side { display: block !important; order: 0; margin: 0; border-left: 1px solid var(--line); padding-left: 32px; }
  .att-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .att .att-del { opacity: 0; transition: opacity .2s; }
  .att:hover .att-del { opacity: 1; }
  .msg-actions { display: flex; opacity: 0; transition: opacity .2s; }
  .msg:hover .msg-actions, .msg:focus-within .msg-actions { opacity: 1; }
  .msg { max-width: 78%; }
  .upload-btns { display: none; }
  .goal-list { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
  .filter-banner { margin: 18px 24px 0; }
  .rpm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rpm .goal-chip, .rpm .ai-btn { grid-column: 1 / -1; justify-self: start; }
  .rpm .goal-chip { margin-top: 4px; }
  .seg { display: inline-flex; }
  .seg button { flex: none; padding: 0 18px; }
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; padding-bottom: 14px; }
  .admin-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-row .row-top { flex: 1 1 320px; }
  .admin-row .row-info { width: 100%; padding-left: 52px; margin-top: -4px; }
}

@media (min-width: 900px) and (hover: hover) {
  .card[draggable=true] { cursor: grab; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
#main > .board, #main > .archive { height: auto; }
.input:disabled, select.input:disabled { background: var(--tint); color: var(--muted); border-color: transparent; opacity: 1; }
input[type=range]:disabled { opacity: .45; cursor: default; }
.quick button:disabled, .swatch:disabled { cursor: default; opacity: .5; }
.quick button.active:disabled { opacity: 1; }

/* Zuschnitt fürs Profilbild */
.crop-stage { position: relative; width: min(280px, 76vw); aspect-ratio: 1; margin: 6px auto 14px; }
.crop-view { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #0c3829; touch-action: none; cursor: grab; }
.crop-view:active { cursor: grabbing; }
.crop-view img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-ring { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; padding: 6px; background: var(--gold-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; box-shadow: 0 6px 22px #b8860b55; }
.crop-zoom { display: flex; align-items: center; gap: 12px; padding: 0 22px 10px; }
.crop-zoom input { flex: 1; }
.z-ic { font: 700 20px/1 var(--font-head); color: var(--muted); width: 16px; text-align: center; }
