/* BandHQ – Proberaum-Look: dunkel, warmes Bühnenlicht-Amber als Akzent. */
:root {
  color-scheme: dark;
  --bg: #121214;
  --surface: #1b1b1f;
  --surface-2: #232328;
  --surface-3: #2c2c32;
  --line: #2d2d33;
  --text: #edece9;
  --muted: #9b988f;
  --faint: #6b6962;
  --accent: #f0a83a;
  --accent-soft: rgba(240, 168, 58, .14);
  --accent-ink: #1a1408;
  --doing: #5cc8b0;
  --doing-soft: rgba(92, 200, 176, .14);
  --danger: #ef6b6b;
  --danger-soft: rgba(239, 107, 107, .14);
  --ok: #6cc59b;
  --wave: #3a3a42;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f3ef;
    --surface: #ffffff;
    --surface-2: #f1eee8;
    --surface-3: #e7e3db;
    --line: #e2ded6;
    --text: #1d1b18;
    --muted: #6f6a61;
    --faint: #a29d93;
    --accent: #e39a2a;
    --accent-soft: rgba(227, 154, 42, .16);
    --doing: #2f9e85;
    --doing-soft: rgba(47, 158, 133, .12);
    --danger: #d64545;
    --danger-soft: rgba(214, 69, 69, .1);
    --ok: #2f9e6a;
    --wave: #d3cec4;
    --shadow: 0 10px 40px rgba(40, 30, 10, .16);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 17px; font-weight: 700; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px;
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; font-weight: 750; font-size: 17px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px;
  text-decoration: none; color: var(--muted); font-weight: 550;
}
.nav-link svg { width: 20px; height: 20px; flex: none; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--surface-2); color: var(--text); }
.nav-link.active svg { color: var(--accent); }
.sidebar .spacer { flex: 1; }
.main { min-width: 0; padding: 28px 32px 60px; max-width: 1180px; width: 100%; }
.main.main-full { max-width: none; padding-bottom: 20px; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .main { padding: 18px 16px calc(96px + var(--safe-b)); }
  .main.main-full { padding: 0 0 calc(70px + var(--safe-b)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b));
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
    text-decoration: none; color: var(--faint); font-size: 11px; font-weight: 600;
  }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a.active { color: var(--text); }
  .tabbar a.active svg { color: var(--accent); }
  h1 { font-size: 23px; }
}

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }

/* ---------- Bausteine ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head a { color: var(--muted); font-size: 13px; text-decoration: none; }
.section-head a:hover { color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn-icon { padding: 8px; }
.btn-block { width: 100%; }

.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 550; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 90px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.pill svg { width: 13px; height: 13px; }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill-doing { background: var(--doing-soft); color: var(--doing); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-ok { color: var(--ok); }

.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 11px; font-weight: 750; color: #16130e; background: var(--c, var(--accent)); letter-spacing: .02em;
}
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.avatar-sm { width: 22px; height: 22px; font-size: 9px; }
.avatars { display: inline-flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-left: -6px; }

.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }

.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 140px; padding: 14px 16px; text-decoration: none; }
.stat .n { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 13px; }
.stat.warn .n { color: var(--danger); }

/* ---------- Aufgaben ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; padding: 8px 10px; }
.toolbar .search { flex: 1; min-width: 160px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.2); }

.task-list { display: flex; flex-direction: column; }
.task {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; cursor: pointer;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.task:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.task:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.task:only-child { border-radius: var(--radius); }
.task:hover { background: var(--surface-2); }
.task-list.card { overflow: hidden; }
.task .body { flex: 1; min-width: 0; }
.task .title { font-weight: 600; overflow-wrap: anywhere; }
.task.done .title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 5px; }
.task .right { flex: none; }
.status-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--faint); flex: none; margin-top: 1px;
  display: grid; place-items: center; background: none; cursor: pointer; padding: 0;
}
.status-dot:hover { border-color: var(--accent); }
.status-dot.doing { border-color: var(--doing); background: conic-gradient(var(--doing) 0 50%, transparent 50% 100%); }
.status-dot.done { border-color: var(--ok); background: var(--ok); }
.status-dot.done svg { color: var(--bg); width: 13px; height: 13px; }
.prio { color: var(--danger); display: inline-flex; }
.prio svg { width: 15px; height: 15px; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } }
.column { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.column.drop { border-color: var(--accent); background: var(--accent-soft); }
.column-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 700; font-size: 14px; }
.column-head .count { color: var(--faint); font-weight: 600; }
.bcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: grab; }
.bcard:hover { border-color: var(--surface-3); }
.bcard.dragging { opacity: .4; }
.bcard .title { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.bcard .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.assignee-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.assignee-pick label {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 99px;
  border: 1px solid var(--line); cursor: pointer; font-size: 14px; user-select: none;
}
.assignee-pick input { display: none; }
.assignee-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; }
.desc a { color: var(--accent); }

/* ---------- Modal & Toast ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto;
  animation: fade .15s ease;
}
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); width: 100%; max-width: 560px; animation: rise .18s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.modal-body { padding: 16px 18px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 18px 18px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }
@media (max-width: 600px) {
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: var(--safe-b); animation: sheet .22s ease; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes sheet { from { transform: translateY(40%); opacity: .4; } }

.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (max-width: 860px) { .toasts { bottom: calc(86px + var(--safe-b)); } }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: rise .2s ease; max-width: 90vw; }
.toast.error { background: var(--danger); color: #fff; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 380px; }
.auth .brand { justify-content: center; padding-bottom: 26px; font-size: 20px; }
.auth .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.auth h1 { font-size: 21px; margin-bottom: 6px; }
.auth .err { color: var(--danger); font-size: 14px; margin-bottom: 12px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }

/* ---------- Audio ---------- */
.dropzone {
  border: 1.5px dashed var(--surface-3); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted);
  cursor: pointer; transition: .15s; margin-bottom: 20px;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.dropzone svg { width: 28px; height: 28px; color: var(--accent); }
.song { padding: 14px 16px; margin-bottom: 12px; }
.song-title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.song-title svg { width: 18px; height: 18px; color: var(--accent); }
.versions { margin-top: 8px; }
.version {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 9px 10px; margin: 0 -10px; border-radius: 9px; text-decoration: none;
}
.version:hover { background: var(--surface-2); }
.version .vname { font-weight: 600; }
.version .vmeta { color: var(--muted); font-size: 13px; grid-column: 1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.version .vright { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; align-items: center; }

.player { padding: 18px; }
.player-top { display: flex; align-items: center; gap: 14px; }
.play-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .1s;
}
.play-btn:active { transform: scale(.94); }
.play-btn svg { width: 24px; height: 24px; }
.time { white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); }
.time b { color: var(--text); font-weight: 600; font-size: 18px; }
.player-controls { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.player-controls select { width: auto; padding: 6px 8px; font-size: 13px; }
@media (max-width: 520px) { .player-top { gap: 10px; } .player-controls { gap: 0; } .player-controls .btn-icon { padding: 6px; } .field.spacer-label > label:first-child { display: none; } }

.wave-wrap { position: relative; margin: 26px 0 6px; user-select: none; touch-action: none; }
.wave { display: block; width: 100%; height: 96px; cursor: pointer; }
.wave-hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); pointer-events: none; }
.markers { position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.marker {
  position: absolute; top: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--c); border: 2px solid var(--surface); cursor: pointer; padding: 0; transition: transform .12s;
}
.marker::after { content: ""; position: absolute; left: 50%; top: 10px; width: 1px; height: 96px; background: var(--c); opacity: .35; pointer-events: none; }
.marker:hover, .marker.active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); z-index: 2; }
.marker.resolved { opacity: .35; }
.tip {
  position: absolute; bottom: 22px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 6px 10px; border-radius: 8px; font-size: 13px; width: max-content; max-width: 240px; pointer-events: none; z-index: 5;
  box-shadow: var(--shadow);
}
.tip b { display: block; font-size: 12px; }

.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 18px; }
.composer textarea { min-height: 44px; height: 44px; flex: 1; resize: none; padding: 11px 12px; line-height: 1.4; }
.at-chip {
  flex: none; height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer;
  font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums;
}
.at-chip.frozen { border-color: var(--accent); color: var(--accent); }
.at-chip svg { width: 14px; height: 14px; }

.comments { margin-top: 16px; }
.comment { display: flex; gap: 12px; padding: 12px 10px; margin: 0 -10px; border-radius: 10px; transition: background .2s; }
.comment.active { background: var(--accent-soft); }
.comment.resolved .cbody { color: var(--muted); }
.comment .ctime {
  flex: none; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; padding: 3px 8px; height: fit-content;
  border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; color: var(--text);
}
.comment .ctime:hover { border-color: var(--accent); color: var(--accent); }
.comment .cmain { flex: 1; min-width: 0; }
.comment .chead { display: flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.comment .chead b { font-size: 14px; }
.comment .cbody { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment .cactions { display: flex; gap: 2px; flex: none; opacity: .65; }
.comment:hover .cactions { opacity: 1; }
.resolve-btn.on { color: var(--ok); }

.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* ---------- Team & Profil ---------- */
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.member { padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.member .info { flex: 1; min-width: 0; }
.member .name { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.member .contact { margin-top: 6px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.member .contact a { text-decoration: none; overflow-wrap: anywhere; }
.member .contact a:hover { color: var(--accent); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { width: 30px; height: 30px; border-radius: 50%; background: var(--c); cursor: pointer; border: 3px solid transparent; }
.swatches input { display: none; }
.swatches label:has(input:checked) { border-color: var(--text); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .t { font-weight: 600; }
.setting-row .d { color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(18px); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.copy-box { display: flex; gap: 8px; margin-top: 8px; }
.copy-box input { font-family: var(--mono); font-size: 12px; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { text-decoration: none; }
.cmt-mini { display: flex; gap: 10px; align-items: flex-start; }
.cmt-mini .txt { font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cmt-mini .src { font-size: 12px; color: var(--muted); }

.spinner { width: 22px; height: 22px; border: 2.5px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }


/* =================== Etappe 2 =================== */
:root { --event: #5cc8b0; --event-soft: rgba(92, 200, 176, .16); --gig: #c792ea; --gig-soft: rgba(199, 146, 234, .16); }
@media (prefers-color-scheme: light) { :root { --event: #2f9e85; --event-soft: rgba(47, 158, 133, .12); --gig: #9c5bc9; --gig-soft: rgba(156, 91, 201, .12); } }

.hint { color: var(--muted); font-size: 12.5px; margin-top: 5px; line-height: 1.45; }
.head-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.head-actions .btn span { display: inline; }
@media (max-width: 520px) { .head-actions .btn-sm span { display: none; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip svg { width: 14px; height: 14px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.notice-warn { background: var(--surface-2); }
.notice-danger { background: var(--danger-soft); }
.notice-danger a { color: var(--danger); font-weight: 600; }
.notice-plain { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.notice-plain svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.notice-plain a { color: var(--accent); }
.badge { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 750; font-style: normal; }
.nav-link .badge { margin-left: auto; }
.tabbar a { position: relative; }
.tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; font-size: 10px; }
.sidebar { overflow-y: auto; }
.nav-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { width: 100%; font: inherit; background: none; display: block; }
.src-ico svg { width: 13px; height: 13px; color: var(--faint); vertical-align: -1px; }
.more-fields { margin: -2px 0 12px; font-size: 14px; }
.more-fields summary { cursor: pointer; color: var(--muted); }
.modal .modal-body h3 { font-size: 15px; display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.modal .modal-body h3 svg { width: 17px; height: 17px; color: var(--accent); }

/* Übersicht: Demnächst */
.soon { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.soon-item { flex: 0 0 auto; width: 230px; display: flex; gap: 12px; align-items: center; padding: 10px 12px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.soon-item:hover { border-color: var(--surface-3); }
.soon-date { width: 42px; height: 46px; border-radius: 9px; background: var(--event-soft); color: var(--event); display: grid; place-items: center; align-content: center; flex: none; line-height: 1.05; }
.soon-item.s-setlist .soon-date { background: var(--gig-soft); color: var(--gig); }
.soon-date b { font-size: 18px; }
.soon-date span { font-size: 11px; font-weight: 650; text-transform: uppercase; }
.soon-main { min-width: 0; }
.soon-main .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 5px; align-items: center; }
.soon-main .t svg { width: 14px; height: 14px; color: var(--gig); flex: none; }
.soon-main .s { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-detail > div:not(.desc) { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.event-detail svg { width: 18px; height: 18px; color: var(--event); flex: none; margin-top: 2px; }
.event-detail a { color: var(--accent); }
.event-detail .desc { background: var(--surface-2); border-radius: 9px; padding: 10px 12px; font-size: 14px; }

/* Erwähnungen */
.mention-host { position: relative; }
.mention-pop { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 60; min-width: 240px; max-width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; }
.mention-pop .mi { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; background: none; border-radius: 7px; text-align: left; cursor: pointer; font-size: 14px; }
.mention-pop .mi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-pop .mi small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mention-pop .mi svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.mention-pop .mi.on { background: var(--accent-soft); }
.mention { display: inline; padding: 1px 6px; border-radius: 6px; font-weight: 650; background: color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); color: var(--text); white-space: nowrap; }
.mention.me { background: var(--accent); color: var(--accent-ink); }
.mention.all { background: var(--accent-soft); color: var(--accent); }
.task-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 6px; background: var(--surface-3); text-decoration: none; font-weight: 600; font-size: .93em; vertical-align: baseline; max-width: 100%; }
.task-chip svg { width: 13px; height: 13px; color: var(--accent); flex: none; }
.task-chip:hover { background: var(--accent-soft); }
.task-chip.done { text-decoration: line-through; color: var(--muted); }
.task-chip.gone { opacity: .6; }
.ctext-wrap { flex: 1; min-width: 0; }
.ctext-wrap textarea { width: 100%; }

/* Chat */
.chat { display: grid; grid-template-columns: 290px 1fr; height: calc(100dvh - 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.topics { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 14px 10px; }
.topics-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px; }
.topics-head h1 { font-size: 22px; }
.topic { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 9px 8px; border-radius: 9px; text-decoration: none; }
.topic:hover { background: var(--surface-2); }
.topic.on { background: var(--accent-soft); }
.topic-ico svg { width: 17px; height: 17px; color: var(--faint); }
.topic.on .topic-ico svg { color: var(--accent); }
.topic-main { min-width: 0; display: flex; flex-direction: column; }
.topic-name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-last { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.topic-side small { font-size: 11px; color: var(--faint); white-space: nowrap; }
.archived { margin-top: 10px; }
.archived summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 8px; }
.archived .topic { opacity: .7; }
.chat-tip { font-size: 12.5px; margin: auto 6px 0; padding-top: 16px; }
.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conv-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.conv-title { flex: 1; min-width: 0; }
.conv-title h2 { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-title h2 svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.conv-title .muted { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-actions { display: flex; gap: 2px; }
.back-btn { display: none; }
.conv-body { flex: 1; min-height: 0; display: flex; }
.conv-body > .thread { flex: 1; }
.conv-empty { margin: auto; }

.thread { display: flex; flex-direction: column; min-height: 0; width: 100%; }
.thread .msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 16px 6px; overscroll-behavior: contain; }
.thread.compact .msgs { max-height: none; padding: 0; overflow: visible; }
.thread-empty { padding: 30px 10px; }
.thread.compact .thread-empty { padding: 10px 0; text-align: left; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.thread.compact .thread-empty svg { width: 18px; height: 18px; margin: 0; }
.thread-ro { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.thread-ro svg { width: 16px; height: 16px; }
.day-sep, .new-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.day-sep::before, .day-sep::after, .new-sep::before, .new-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.new-sep { color: var(--danger); }
.new-sep::before, .new-sep::after { background: color-mix(in srgb, var(--danger) 45%, transparent); }
.msg { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 5px 6px; margin: 0 -6px; border-radius: 9px; }
.msg.cont { padding-top: 1px; }
.msg:hover { background: var(--surface-2); }
.m-av { display: flex; justify-content: center; }
.m-av .avatar { width: 32px; height: 32px; font-size: 12px; }
.m-time-mini { font-size: 10.5px; color: var(--faint); opacity: 0; margin-top: 3px; font-variant-numeric: tabular-nums; }
.msg:hover .m-time-mini { opacity: 1; }
.m-main { min-width: 0; }
.m-head { display: flex; gap: 8px; align-items: baseline; }
.m-head b { font-size: 14px; }
.m-head span { font-size: 12px; color: var(--faint); }
.m-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.m-body a:not(.task-chip) { color: var(--accent); }
.m-body .edited { color: var(--faint); font-size: 12px; }
.m-actions { display: flex; opacity: 0; transition: opacity .15s; align-self: start; }
.msg:hover .m-actions { opacity: 1; }
@media (hover: none) { .m-actions { opacity: .6; } }
.m-edit-btns { display: flex; gap: 6px; margin-top: 6px; }
.load-more { text-align: center; margin: 4px 0 8px; }
.msg-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.thread.compact .msg-composer { padding: 10px 0 0; border-top: 0; }
.mc-input { flex: 1; min-width: 0; }
.mc-input textarea { min-height: 44px; height: 44px; resize: none; padding: 11px 12px; line-height: 1.4; display: block; }
.msg-composer .btn-icon { width: 44px; height: 44px; flex: none; }
.thread-box { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.thread.compact .msg { grid-template-columns: 26px 1fr auto; gap: 8px; }
.thread.compact .m-av .avatar { width: 24px; height: 24px; font-size: 9px; }
.thread.compact .m-body { font-size: 14px; }
.modal-wide { max-width: 720px; }

@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; height: calc(100dvh - 70px - var(--safe-b)); border: 0; border-radius: 0; background: var(--bg); }
  .chat.has-cur .topics { display: none; }
  .chat:not(.has-cur) .conv { display: none; }
  .topics { border-right: 0; padding: 18px 12px; }
  .back-btn { display: inline-flex; margin-left: -8px; }
  .conv-head { padding: 10px 12px; background: var(--bg); position: sticky; top: 0; z-index: 2; }
  .thread .msgs { padding: 8px 12px; }
  .msg-composer { padding: 8px 12px 10px; background: var(--bg); }
}

/* Setlists */
.sl-list { display: flex; flex-direction: column; gap: 8px; }
.setlist-card { display: flex; gap: 14px; align-items: center; padding: 12px 14px; text-decoration: none; }
.setlist-card:hover { border-color: var(--surface-3); }
.sl-date { width: 46px; height: 50px; border-radius: 10px; background: var(--gig-soft); color: var(--gig); display: grid; place-items: center; align-content: center; flex: none; line-height: 1.05; }
.sl-date b { font-size: 19px; }
.sl-date span { font-size: 11px; font-weight: 650; text-transform: uppercase; }
.sl-date svg { width: 20px; height: 20px; }
.sl-main { flex: 1; min-width: 0; }
.sl-main .t { font-weight: 700; }
.sl-main .s { color: var(--muted); font-size: 13px; }
.chev svg { width: 18px; height: 18px; color: var(--faint); }
.setlist-box { overflow: hidden; }
.sl-item { display: grid; grid-template-columns: 22px 26px 1fr 34px 54px 52px auto; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sl-item:hover { background: var(--surface-2); }
.sl-item.dragging { opacity: .4; }
.sl-item.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.sl-item.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.sl-item .grip { color: var(--faint); cursor: grab; display: flex; }
.sl-item .grip svg { width: 16px; height: 16px; }
.sl-item .no { font-family: var(--mono); color: var(--muted); font-size: 14px; text-align: right; }
.sl-title { min-width: 0; overflow-wrap: anywhere; }
.sl-title b { font-weight: 650; }
.sl-note { font-size: 12.5px; }
.note-t { display: inline-flex; gap: 6px; align-items: center; font-style: italic; color: var(--muted); }
.note-t svg { width: 14px; height: 14px; }
.sl-k { font-size: 13px; color: var(--accent); font-weight: 650; text-align: center; }
.sl-d { font-size: 13px; color: var(--muted); text-align: right; }
.sl-act { display: flex; gap: 0; opacity: .55; }
.sl-item:hover .sl-act { opacity: 1; }
.kind-break { background: var(--surface-2); }
.sl-add { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.sl-add .input { padding: 8px 10px; min-width: 0; }
.sl-add .sl-key { width: 84px; flex: none; }
.sl-add .sl-dur { width: 76px; flex: none; }
.sl-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
.sl-extra { display: flex; gap: 4px; flex-wrap: wrap; }
.sl-total { font-weight: 650; font-size: 14px; }
@media (max-width: 640px) {
  .sl-item { grid-template-columns: 22px 1fr auto auto; grid-template-areas: "no t k act" "no t d act"; row-gap: 0; padding: 8px 10px; }
  .sl-item .grip, .sl-item > span:nth-child(4), .sl-item > a { display: none; }
  .sl-item .no { grid-area: no; }
  .sl-title { grid-area: t; }
  .sl-k { grid-area: k; }
  .sl-d { grid-area: d; }
  .sl-act { grid-area: act; opacity: 1; }
  .sl-act [data-iedit] { display: none; }
  .sl-add { flex-wrap: wrap; }
  .sl-add input[name=title] { flex: 1 1 100%; }
  .sl-add .sl-key, .sl-add .sl-dur { flex: 1; width: auto; }
}
.print-only { display: none; }
@media print {
  body.printing > *:not(#app) { display: none !important; }
  body.printing .sidebar, body.printing .tabbar, body.printing .main > *:not(#print) { display: none !important; }
  body.printing .shell { display: block; }
  body.printing .main { padding: 0; max-width: none; }
  body.printing #print { display: block !important; color: #000; background: #fff; font-size: 26px; }
  body.printing { background: #fff; }
  .print-head h1 { font-size: 38px; margin-bottom: 4px; }
  .print-head div { font-size: 18px; margin-bottom: 18px; }
  .print-list { list-style: none; padding: 0; margin: 0; }
  .print-list li { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; padding: 7px 0; border-bottom: 1px solid #ccc; break-inside: avoid; }
  .print-list .pn { font-weight: 700; text-align: right; }
  .print-list .pt { font-weight: 700; }
  .print-list small { display: block; font-size: 15px; font-weight: 400; }
  .print-list .pk { font-size: 20px; }
  .print-list .p-break .pt, .print-list .p-note .pt { font-weight: 400; font-style: italic; }
}

/* Dokumente */
.doc-group { margin-top: 18px; }
.doc-list { overflow: hidden; }
.doc-row { display: flex; align-items: center; gap: 4px; padding-right: 8px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { background: var(--surface-2); }
.doc-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 11px 14px; text-decoration: none; }
.doc-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.doc-ico svg { width: 19px; height: 19px; }
.doc-ico.k-doc { background: rgba(122, 162, 247, .16); color: #7aa2f7; }
.doc-ico.k-sheet { background: rgba(108, 197, 155, .16); color: var(--ok); }
.doc-ico.k-slides { background: rgba(240, 168, 58, .16); color: var(--accent); }
.doc-ico.k-folder, .doc-ico.k-drive { background: var(--event-soft); color: var(--event); }
.doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-text b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-text .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-ext svg { width: 15px; height: 15px; color: var(--faint); }

/* Mehr & Einstellungen */
.more-list a { display: grid; grid-template-columns: 38px 1fr 18px; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.more-list a:last-child { border-bottom: 0; }
.more-list a > svg { width: 18px; height: 18px; color: var(--faint); }
.more-list b { display: block; }
.more-list small { color: var(--muted); font-size: 13px; }
.more-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.more-ico svg { width: 20px; height: 20px; }
.card h2 svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--accent); }
.card h2 + p.muted { margin: 8px 0 14px; font-size: 14px; }
.howto { margin: -4px 0 14px; font-size: 14px; }
.howto summary { cursor: pointer; color: var(--accent); }
.howto ol { padding-left: 20px; margin: 8px 0; }

/* Zeitplan */
.tl-toolbar .nav-group { display: flex; gap: 4px; }
.tl-card { overflow: hidden; }
.tl-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.tl-grid { position: relative; min-width: 100%; }
.tl-head { display: flex; position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.tl-corner { width: var(--lw); flex: none; position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--line); }
.tl-scale { position: relative; height: 46px; }
.tl-months > div { position: absolute; top: 0; height: 24px; padding: 4px 8px; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; border-left: 1px solid var(--line); }
.tl-ticks > div { position: absolute; top: 24px; height: 22px; font-size: 11px; color: var(--muted); padding: 3px 0 0 3px; white-space: nowrap; overflow: hidden; border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.tl-ticks > div.we { color: var(--faint); }
.tl-body { position: relative; }
.tl-bg { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.tl-bg i { position: absolute; top: 0; bottom: 0; }
.tl-bg .we { background: color-mix(in srgb, var(--surface-2) 65%, transparent); }
.tl-bg .mline { width: 1px; background: var(--line); }
.tl-bg .today { width: 2px; margin-left: -1px; background: var(--danger); z-index: 2; }
.tl-bg .today b { position: absolute; top: 2px; left: 4px; font-size: 10px; color: var(--danger); font-weight: 750; white-space: nowrap; }
.tl-lane { display: flex; border-bottom: 1px solid var(--line); position: relative; }
.tl-lane:last-child { border-bottom: 0; }
.tl-lane-label { width: var(--lw); flex: none; position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; font-weight: 650; font-size: 13.5px; }
.tl-lane-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-lane-label > svg { width: 17px; height: 17px; color: var(--muted); flex: none; margin-top: 1px; }
.tl-track { position: relative; }
.tl-item { position: absolute; height: 20px; display: flex; align-items: center; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--text); text-decoration: none; z-index: 1; }
.tl-item:hover { z-index: 3; }
.tl-item .tl-bar { position: absolute; inset: 0; border-radius: 5px; background: var(--c, var(--accent)); opacity: .9; }
.tl-item .tl-label { position: absolute; left: calc(100% + 5px); font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.tl-item .tl-label.inside { left: 6px; right: 6px; max-width: none; background: none; color: #16130e; padding: 0; }
.tl-item.point { width: 14px; }
.tl-item.point .tl-bar { inset: 3px; transform: rotate(45deg); border-radius: 2px; }
.tl-item.k-event .tl-bar { background: var(--event); }
.tl-item.k-setlist .tl-bar { background: var(--gig); border-radius: 50%; transform: none; inset: 2px; box-shadow: 0 0 0 3px var(--gig-soft); }
.tl-item.k-task.done { opacity: .45; }
.tl-item.k-task.done .tl-label { text-decoration: line-through; }
.tl-item.k-task.overdue .tl-bar { box-shadow: 0 0 0 2px var(--danger); }
.tl-item.k-task.overdue .tl-label { color: var(--danger); }
.tl-item.k-task.span .tl-bar { opacity: .75; }
.tl-item:hover .tl-bar { filter: brightness(1.12); }
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-top: 10px; }
.tl-legend span { display: inline-flex; gap: 6px; align-items: center; }
.tl-legend i { width: 12px; height: 12px; display: inline-block; border-radius: 3px; }
.lg-ev { background: var(--event); }
.lg-sl { background: var(--gig); border-radius: 50% !important; }
.lg-task { background: var(--accent); transform: rotate(45deg) scale(.8); border-radius: 2px !important; }
.lg-span { background: var(--accent); opacity: .75; width: 20px !important; }
.lg-over { box-shadow: inset 0 0 0 2px var(--danger); }

.agenda-month { margin-bottom: 22px; }
.agenda-month h2 { margin: 0 0 8px; }
.agenda { overflow: hidden; }
.ag-day { display: grid; grid-template-columns: 58px 1fr; border-bottom: 1px solid var(--line); }
.ag-day:last-child { border-bottom: 0; }
.ag-day.today .ag-date { color: var(--danger); }
.ag-day.we .ag-date span { color: var(--faint); }
.ag-date { padding: 10px 0 10px 14px; display: flex; flex-direction: column; line-height: 1.1; }
.ag-date b { font-size: 19px; }
.ag-date span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ag-items { padding: 4px 8px 4px 0; min-width: 0; }
.ag-item { display: grid; grid-template-columns: 72px 16px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border: 0; background: none; text-align: left; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; text-decoration: none; }
.ag-item:hover { background: var(--surface-2); }
.ag-time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--event); justify-self: center; }
.ag-item.sl .ag-dot { background: var(--gig); }
.ag-t { min-width: 0; font-weight: 600; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; overflow-wrap: anywhere; }
.ag-t svg { width: 14px; height: 14px; color: var(--gig); align-self: center; }
.ag-t small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ag-t small.danger { color: var(--danger); font-weight: 650; }
.ag-item.ag-task.done .ag-t { text-decoration: line-through; color: var(--muted); }
.status-dot.small { width: 16px; height: 16px; border-width: 2px; }
.status-dot.small svg { width: 10px; height: 10px; }
@media (max-width: 520px) { .ag-item { grid-template-columns: 54px 14px 1fr; } .ag-item .avatars { display: none; } .ag-day { grid-template-columns: 46px 1fr; } .ag-date { padding-left: 10px; } }

/* Drive-Ordner-Import */
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; font-weight: 650; }
.crumbs .link-btn { text-decoration: none; color: var(--accent); font-weight: 650; }
.crumbs .link-btn:disabled { color: var(--text); cursor: default; }
.crumbs span { color: var(--faint); }
.drive-subs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.drive-files { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.df-head, .df-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 1fr; gap: 8px; align-items: center; padding: 7px 10px; }
.df-head { background: var(--surface-2); font-size: 12.5px; color: var(--muted); font-weight: 650; }
.df-row { border-top: 1px solid var(--line); }
.df-row .input { padding: 6px 8px; font-size: 14px; }
.df-row .check { min-width: 0; }
.df-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.df-row.exists { opacity: .7; }
.df-ex { grid-column: 1 / -1; margin-top: -4px; padding-left: 28px; }
.df-row.done { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.df-row.failed { background: var(--danger-soft); }
@media (max-width: 600px) { .df-head { display: none; } .df-row { grid-template-columns: 1fr 1fr; } .df-row .check { grid-column: 1 / -1; } }

/* =================== Zeitplan v2: Projekt-Ansicht =================== */
:root { --probe: #5b8def; --probe-soft: rgba(91, 141, 239, .16); --probe-ink: #fff; --gig-ink: #fff; --event-ink: #0d2420; }
@media (prefers-color-scheme: light) { :root { --probe: #2f6fe0; --probe-soft: rgba(47, 111, 224, .12); } }
.cat-probe { --cc: var(--probe); --cs: var(--probe-soft); --ci: var(--probe-ink); }
.cat-gig { --cc: var(--gig); --cs: var(--gig-soft); --ci: var(--gig-ink); }
.cat-event { --cc: var(--event); --cs: var(--event-soft); --ci: var(--event-ink); }

/* Die nächsten 7 Tage */
.week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.week-head .muted { font-size: 13px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.wday { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px 8px; min-height: 120px; display: flex; flex-direction: column; min-width: 0; }
.wday.we { background: color-mix(in srgb, var(--surface) 70%, var(--surface-2)); }
.wday.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wday-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; padding: 0 3px 8px; }
.wday-head b { font-size: 13.5px; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wday.today .wday-head b { color: var(--accent); }
.wday-head span { font-size: 12px; color: var(--muted); }
.wday-items { display: flex; flex-direction: column; gap: 5px; }
.wchip { display: flex; flex-direction: column; align-items: stretch; gap: 1px; width: 100%; text-align: left; border: 0; border-radius: 7px; padding: 6px 8px; cursor: pointer; font: inherit; background: var(--cc); color: var(--ci); }
.wchip:hover { filter: brightness(1.08); }
.wchip-t { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wchip-t svg { width: 13px; height: 13px; flex: none; }
.wchip small { font-size: 11px; opacity: .85; }
.wtask { background: var(--surface-2); color: var(--text); flex-direction: row; align-items: center; justify-content: space-between; border: 1px solid var(--line); }
.wtask .wchip-t { font-weight: 600; flex: 1; }
.wtask.done .wchip-t { text-decoration: line-through; color: var(--muted); }
.wtask.prio { border-color: color-mix(in srgb, var(--danger) 60%, var(--line)); }
.wfree { color: var(--faint); font-size: 12.5px; padding: 4px 3px; }
.avatar-xs { width: 18px; height: 18px; font-size: 8px; }
@media (max-width: 960px) {
  .week { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .wday { flex: 0 0 150px; scroll-snap-align: start; }
}

/* Gantt */
.gantt { overflow: hidden; }
.g-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.g-grid { position: relative; min-width: 100%; }
.g-head { display: flex; position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
.g-corner { width: var(--lw); flex: none; position: sticky; left: 0; z-index: 5; background: var(--surface); border-right: 1px solid var(--line); padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: flex-end; }
.g-scale { position: relative; height: 58px; }
.g-months > div { position: absolute; top: 0; height: 24px; border-left: 1px solid var(--line); }
.g-months span { position: sticky; left: calc(var(--lw) + 6px); display: inline-block; padding: 4px 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.g-days { position: absolute; top: 24px; left: 0; display: flex; }
.g-days > div { width: var(--dw); height: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; border-left: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.g-days small { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.g-days b { font-size: 13px; font-weight: 650; }
.g-days .we b, .g-days .we small { color: var(--faint); }
.g-days .today { background: var(--accent); color: var(--accent-ink); border-radius: 8px 8px 0 0; }
.g-days .today b, .g-days .today small { color: var(--accent-ink); }
.g-body { position: relative; }
.g-bg { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.g-bg i { position: absolute; top: 0; bottom: 0; width: var(--dw); border-left: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.g-bg i.we { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.g-bg i.mfirst { border-left-color: var(--line); }
.g-bg i.today { background: color-mix(in srgb, var(--accent) 11%, transparent); border-left: 2px solid var(--accent); }
.g-row { display: flex; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); min-height: 36px; }
.g-label { width: var(--lw); flex: none; position: sticky; left: 0; z-index: 3; background: var(--surface); border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 6px 12px; min-width: 0; font-size: 13.5px; }
.g-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.g-count { font-size: 12px; }
.g-track { position: relative; flex: 1; height: var(--h, 36px); }
.g-section { background: var(--surface-2); min-height: 32px; }
.g-section .g-label { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; gap: 8px; }
.g-section .g-track { height: 32px; }
.g-lane .g-label { font-weight: 650; }
.lane-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--cs); color: var(--cc); flex: none; }
.lane-ico svg { width: 14px; height: 14px; }
.g-none { position: absolute; left: 10px; top: 10px; font-size: 12.5px; color: var(--faint); }
.g-task .g-label { cursor: pointer; }
.g-task .g-label:hover { background: var(--surface-2); }
.g-task.done .g-name { color: var(--muted); text-decoration: line-through; }
.gbar { position: absolute; height: 26px; border: 0; border-radius: 7px; padding: 0 8px; display: flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; text-align: left; overflow: hidden; z-index: 1; background: var(--cc, var(--accent)); color: var(--ci, #16130e); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.gbar:hover { filter: brightness(1.08); z-index: 2; }
.gbar-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 650; display: flex; align-items: center; gap: 4px; }
.gbar-t svg { width: 13px; height: 13px; flex: none; }
.gbar small { font-size: 11px; opacity: .85; white-space: nowrap; }
.gbar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gbar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gbar.task { background: var(--c); color: #16130e; }
.gbar.task.doing { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,.18) 8px 16px); }
.gbar.task.done { opacity: .45; }
.gbar.task.late { box-shadow: 0 0 0 2px var(--danger); }
.gbar.task.open { -webkit-mask-image: linear-gradient(90deg, #000 75%, rgba(0,0,0,.35)); mask-image: linear-gradient(90deg, #000 75%, rgba(0,0,0,.35)); }
.tl-legend i.cat-probe, .tl-legend i.cat-gig, .tl-legend i.cat-event { background: var(--cc); }
.tl-legend .lg-task { background: var(--accent); transform: none; border-radius: 3px !important; width: 18px !important; }
.lg-late { box-shadow: inset 0 0 0 2px var(--danger); }
.lg-open { background: linear-gradient(90deg, var(--accent) 50%, transparent); width: 18px !important; }

/* Agenda mit Kategorien */
.ag-item { grid-template-columns: 84px 1fr auto; }
.ag-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--cs, var(--surface-3)); color: var(--cc, var(--muted)); text-align: center; white-space: nowrap; }
.ag-task .ag-tag { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 520px) { .ag-item { grid-template-columns: 72px 1fr; } }

/* Übersicht „Demnächst" in Kategorie-Farben */
.soon-item.cat-probe .soon-date, .soon-item.cat-gig .soon-date, .soon-item.cat-event .soon-date { background: var(--cs); color: var(--cc); }

.gbar.narrow { padding: 0; }
.gbar-out { position: absolute; height: 26px; border: 0; background: none; padding: 0 4px; display: flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; color: var(--cc, var(--text)); z-index: 1; white-space: nowrap; max-width: 240px; }
.gbar-out.task { color: var(--text); }
.gbar-out .gbar-t { font-weight: 700; }
.gbar-out small { color: var(--muted); }
.gbar-out:hover .gbar-t { text-decoration: underline; }
@media (max-width: 860px) {
  .g-label { font-size: 12.5px; padding: 5px 8px; gap: 6px; }
  .g-label .avatars, .g-count { display: none; }
  .g-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
  .g-corner { font-size: 10.5px; padding: 8px; }
}

/* Setlist-Import */
.imp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; font-size: 13px; }
.imp-head .check { font-weight: 650; }
.imp-list { border: 1px solid var(--line); border-radius: 10px; max-height: 46vh; overflow-y: auto; }
.imp-row { display: grid; grid-template-columns: 22px 92px 1fr 76px 70px; gap: 6px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.imp-row:last-child { border-bottom: 0; }
.imp-row .input { padding: 6px 8px; font-size: 14px; min-width: 0; }
.imp-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.imp-row.off .input { opacity: .45; }
@media (max-width: 600px) { .imp-row { grid-template-columns: 22px 1fr 1fr 1fr; } .imp-row input[type=checkbox] { grid-row: 1 / span 2; } .imp-row [data-ititle] { grid-column: 2 / -1; grid-row: 1; } }

/* Setlist-Punkte */
.kind-pill { font-size: 12.5px; }
.kind-pill.k-intro { background: var(--accent-soft); color: var(--accent); }
.kind-pill.k-custom { background: var(--probe-soft); color: var(--probe); }
.kinds-btn { color: var(--accent); }
.kind-list { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.kind-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.kind-row:last-child { border-bottom: 0; }
.kind-row.builtin { color: var(--muted); }
.kind-row.builtin span:nth-child(2) { flex: 1; color: var(--text); font-weight: 600; }
.kind-row .input { flex: 1; padding: 6px 9px; }
.kind-ico svg { width: 16px; height: 16px; color: var(--accent); }
