:root {
  --bg: #09070b;
  --panel: #100d14;
  --panel-2: #18141f;
  --line: #2a2133;
  --text: #ede8f5;
  --muted: #7a6e8e;
  --accent: #e8156a;
  --accent-soft: rgba(232, 21, 106, 0.10);
  --frei: #1de97a;
  --vielleicht: #ffe040;
  --keinezeit: #ff2d4a;
  --radius: 4px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 100% -5%, rgba(232,21,106,0.08), transparent 60%),
    radial-gradient(600px 400px at -5% 80%, rgba(232,21,106,0.04), transparent 55%),
    var(--bg);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .topbar, .subnav { position: relative; z-index: 1; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(9,7,11,0.85);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; gap: 14px; }

.topbar h1 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: clamp(22px, 4.5vw, 34px);
  margin: 0;
  line-height: 1;
}

.who { display: flex; align-items: center; gap: 8px; }

select, input, textarea {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  min-height: 44px;
  transition: border-color .15s;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); }

button {
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:active { opacity: .75; }

.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 44px;
  transition: border-color .15s, color .15s, background .15s, transform .08s;
}
.ghost:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.ghost:active { transform: scale(0.96); opacity: 1; }

.primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 44px;
  transition: filter .12s, transform .08s;
}
.primary:hover { filter: brightness(1.12); }
.primary:active { transform: scale(0.96); opacity: 1; }
.primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Main layout */
main {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Legend */
.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 2px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #06040a;
}
.chip.frei { background: var(--frei); }
.chip.vielleicht { background: var(--vielleicht); }
.chip.keinezeit { background: var(--keinezeit); color: #fff; }
.legend .hint { color: var(--muted); font-size: 14px; margin-left: 4px; }

/* Perfect days */
.perfect {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}
.perfect .star { color: var(--accent); font-size: 18px; }

/* Calendar */
.calendar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(12px, 2.5vw, 22px);
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-nav h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(20px, 4vw, 28px);
  margin: 0;
}
.nav-btn {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  width: 44px; height: 44px;
  border-radius: var(--radius);
  font-size: 24px;
  line-height: 1;
  transition: border-color .12s, color .12s;
}
.nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.weekdays, .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.weekdays { margin-bottom: 6px; }
.weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0;
}
.weekdays .we { color: #c94070; }

.day {
  position: relative;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 80px;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .12s, transform .08s;
  user-select: none;
}
.day.clickable { cursor: pointer; }
.day.clickable:hover { border-color: var(--accent); }
.day.clickable:active { transform: scale(0.97); }
.day.empty { background: transparent; border: none; }
.day.today { border-color: rgba(232,21,106,0.5); box-shadow: inset 0 0 0 1px rgba(232,21,106,0.2); }
.day.perfect {
  border-color: var(--accent);
  background: linear-gradient(150deg, rgba(232,21,106,0.08), var(--panel-2));
}
.day .num { font-size: 14px; color: var(--muted); font-weight: 700; }
.day.today .num { color: var(--accent); }
.day.perfect .num::after {
  content: " ✦";
  color: var(--accent);
  font-size: 11px;
}

.concert-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  letter-spacing: .02em;
}
.day.has-concert {
  border-color: rgba(232,21,106,0.4);
}

.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: auto;
}
.dot {
  width: 20px; height: 20px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #06040a;
  border: 1.5px solid transparent;
}
.dot.available { background: var(--frei); }
.dot.maybe { background: var(--vielleicht); }
.dot.unavailable { background: var(--keinezeit); color: #fff; }
.dot.me { outline: 2px solid #fff; outline-offset: 1px; }

/* Members card */
.members-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 2.5vw, 22px);
}
.members-card h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.member-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 6px 6px 12px;
}
.member-list .swatch { width: 10px; height: 10px; border-radius: 50%; }
.member-list .del {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 2px;
}
.member-list .del:hover { color: var(--keinezeit); }
.member-list .empty-note { color: var(--muted); font-size: 14px; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  flex-shrink: 0;
}
.modal-box--day { max-width: min(440px, calc(100vw - 32px)); }
.modal-box h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-row .swatch {
  width: 28px; height: 28px;
  border-radius: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .1s;
}
.color-row .swatch.sel { border-color: var(--text); }
.modal-actions { display: flex; flex-direction: row; gap: 8px; }
.modal-actions button { flex: 1; min-width: 0; }
button.danger { color: #ff4d6a; border-color: #ff4d6a; }
button.danger:hover { background: rgba(255,77,106,0.1); }

/* Subnav */
.subnav {
  display: flex;
  gap: 0;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(9,7,11,0.9);
  backdrop-filter: blur(12px);
}
.subnav-link {
  display: block;
  padding: 14px 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-height: 44px;
  transition: color .15s, border-color .15s;
}
.subnav-link:hover { color: var(--text); }
.subnav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Songs & Setlisten */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(22px, 4vw, 30px);
}

.card-list { display: flex; flex-direction: column; gap: 8px; }

.item-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s;
}
.item-card:hover { border-color: #3d2f4d; }
.item-card.open { border-color: #3d2f4d; }
.item-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.item-card-header:hover { background: var(--panel-2); }
.header-content { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.header-row1 { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.header-row2 { display: flex; align-items: center; gap: 1px; padding-left: 2px; }
.item-card-title { flex: 1; font-weight: 700; font-size: 16px; min-width: 0; }
.item-card-meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-card-body { padding: 0 16px 20px; border-top: 1px solid var(--line); display: none; }
.item-card.open .item-card-body { display: block; }
.item-card-chevron { color: var(--muted); font-size: 16px; transition: transform .2s; flex-shrink: 0; }
.item-card.open .item-card-chevron { transform: rotate(90deg); }

.edit-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color .12s;
  flex-shrink: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.edit-btn:hover { color: var(--accent); }

.inline-rename {
  background: var(--panel-2);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 2px 6px;
  width: min(240px, 50vw);
  outline: none;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color .12s;
  flex-shrink: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.copy-btn:hover { color: var(--accent); }

.del {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 2px;
  transition: color .12s;
  flex-shrink: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
}
.del:hover { color: var(--keinezeit); }

.stars { display: inline-flex; gap: 2px; }
.star-btn {
  background: none; border: none; color: var(--line);
  font-size: 28px; padding: 2px; line-height: 1; cursor: pointer; transition: color .1s;
  min-width: 36px; min-height: 36px; display: grid; place-items: center;
}
.star-btn.on { color: var(--accent); }
.star-btn:hover { color: var(--accent); }
.header-stars { display: inline-flex; gap: 2px; }
.header-star { font-size: 22px !important; min-width: 32px !important; min-height: 32px !important; padding: 0 !important; color: #555 !important; }
.header-star.on { color: var(--accent) !important; }

.song-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.song-tab {
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  color: var(--muted); border: none; background: transparent;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .15s;
  min-height: unset !important; min-width: unset !important;
}
.song-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count {
  font-size: 11px; font-weight: 400; opacity: .65; margin-left: 4px;
}

.category-selector {
  display: flex; gap: 0; margin: 10px 0 0;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  width: fit-content;
}
.cat-btn {
  font-size: 13px; font-weight: 600; padding: 6px 14px;
  border: none; border-right: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer;
  min-height: unset !important; min-width: unset !important;
}
.cat-btn:last-child { border-right: none; }
.cat-btn.active { background: var(--accent); color: #fff; }

/* ---- Todo Kanban ---------------------------------------------------- */
.todo-add-col-tab { font-size: 18px; padding: 6px 14px !important; }

.todo-col-action-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 0 6px;
}
.col-name-label { font-size: 15px; font-weight: 600; color: var(--text); }

.todo-card {
  cursor: pointer; display: flex; align-items: center;
  padding: 14px 16px; gap: 10px;
}
.todo-card-inner { flex: 1; min-width: 0; }
.todo-card-title { font-weight: 600; font-size: 16px; display: block; }
.todo-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.assignee-dots { display: flex; gap: 3px; }
.check-badge { font-size: 12px; color: var(--muted); font-weight: 600; }
.check-badge.done { color: var(--frei); }

/* Card detail overlay */
.card-detail-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg); display: flex; flex-direction: column;
  overflow-y: auto;
}
.card-detail-header {
  position: sticky; top: 0; z-index: 1;
  background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; gap: 8px;
}
.card-detail-content {
  padding: 20px 16px; max-width: 600px; margin: 0 auto; width: 100%;
  padding-bottom: 60px;
}
.card-detail-colbadge {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent); margin-bottom: 6px;
}
.card-title-input {
  width: 100%; background: transparent;
  border: none; border-bottom: 2px solid var(--line);
  color: var(--text); font-family: inherit; font-size: 22px; font-weight: 700;
  padding: 4px 0 8px; outline: none; margin-bottom: 10px;
}
.card-title-input:focus { border-bottom-color: var(--accent); }
.move-row {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.move-btn { font-size: 13px !important; }
.card-section { margin-top: 24px; }
.section-label {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 10px;
}
.assignees-row { display: flex; flex-wrap: wrap; gap: 8px; }
.assignee-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); cursor: pointer; font-size: 14px;
  min-height: unset !important; min-width: unset !important;
}
.assignee-chip.active { color: var(--text); }
.card-desc-textarea {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-family: inherit; font-size: 15px;
  outline: none; resize: vertical; margin-top: 4px;
}
.check-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.check-item-label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.check-done { text-decoration: line-through; color: var(--muted); }
.check-progress { font-weight: 400; color: var(--muted); margin-left: 6px; }
.check-all-done { color: var(--frei); font-size: 13px; margin: 4px 0 8px; font-weight: 600; }

.todo-assignee-chip {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 12px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.todo-due-badge {
  font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px;
}
.todo-due-badge.overdue { color: var(--keinezeit); border-color: var(--keinezeit); }

.todo-cal-badge {
  display: block; font-size: 10px; font-weight: 700;
  color: #60a5fa; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px; line-height: 1.3;
}
.todo-cal-badge:hover { text-decoration: underline; }

.file-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex; flex-direction: column;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; font-size: 15px;
  gap: 10px;
}
.file-item-main {
  display: flex; flex-direction: column; gap: 6px;
}
.file-link { color: var(--accent); font-weight: 600; word-break: break-all; }
.file-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px;
}
.file-meta .del { margin-left: auto; }
.file-avg { color: var(--muted); white-space: nowrap; }
.file-size { color: var(--muted); font-size: 13px; white-space: nowrap; }
.file-other-ratings {
  display: flex; flex-direction: column; gap: 4px;
  padding: 6px 0; border-top: 1px solid var(--line);
}
.file-other-rating {
  font-size: 13px; color: var(--muted); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
}
.file-other-name { font-weight: 700; color: var(--text); }
.file-other-note { font-style: italic; }

.file-item-rating {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.file-item-rating .rating-note { flex: 1; min-width: 120px; }

.upload-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 12px 16px; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer; transition: border-color .15s, color .15s;
  font-family: inherit; margin-top: 8px; min-height: 46px;
}
.upload-label:hover { border-color: var(--accent); color: var(--text); border-style: solid; }
.upload-label input { display: none; }

.rating-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.rating-note {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 14px; font-size: 16px;
  flex: 1; min-width: 140px; min-height: 44px; color: var(--text); font-family: inherit;
}
.rating-note:focus { border-color: var(--accent); outline: none; }

.setlist-songs { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.setlist-song-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; font-size: 15px;
  min-height: 52px; cursor: grab; user-select: none;
  transition: background .12s, border-color .12s, opacity .12s;
}
.setlist-song-item.dragging { opacity: 0.4; }
.setlist-song-item.drag-over { border-color: var(--accent); background: var(--accent-soft); }
.drag-handle { color: var(--muted); font-size: 18px; cursor: grab; flex-shrink: 0; padding: 0 2px; }
.setlist-song-pos { color: var(--muted); font-size: 13px; font-weight: 800; width: 24px; text-align: center; flex-shrink: 0; }
.setlist-song-title { flex: 1; }

.add-song-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.add-song-row select { flex: 1; min-width: 140px; }

.autofill-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.autofill-tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.autofill-tab {
  background: transparent; color: var(--muted);
  border: none; padding: 10px 16px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer;
  font-family: inherit; min-height: 42px; transition: background .12s, color .12s;
}
.autofill-tab + .autofill-tab { border-left: 1px solid var(--line); }
.autofill-tab.active { background: var(--accent); color: #fff; }
.autofill-tab:not(.active):hover { background: var(--accent-soft); color: var(--text); }

.ratings-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.rating-item { font-size: 14px; color: var(--muted); }
.rating-item-name { font-weight: 700; color: var(--text); }
.rating-item-note { font-style: italic; }

.empty-state { color: var(--muted); font-size: 15px; padding: 28px 0; text-align: center; letter-spacing: 0.03em; }
.notes-text { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.concert-date { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Day modal */
#dayModalMembers { margin-top: 6px; }
.day-member-row {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.day-member-row:last-child { border-bottom: none; }
.day-member-row-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.day-member-name { font-weight: 600; }
.day-member-note { display: block; color: var(--muted); font-size: 13px; font-style: italic; margin-top: 3px; padding-left: 18px; }
.day-chip {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 8px; border-radius: 2px; flex-shrink: 0;
}
.day-chip.available { background: var(--frei); color: #06040a; }
.day-chip.maybe { background: var(--vielleicht); color: #06040a; }
.day-chip.unavailable { background: var(--keinezeit); color: #fff; }

.day-status-btns { display: flex; flex-direction: column; gap: 8px; }
.status-btn {
  width: 100%; min-height: 52px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--panel-2);
  color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: border-color .1s, color .1s, background .1s, transform .08s;
}
.status-btn:hover { border-color: var(--accent); color: var(--text); }
.status-btn:active { opacity: 1; }
.status-btn.available.active  { background: var(--frei); color: #06040a; border-color: var(--frei); }
.status-btn.maybe.active      { background: var(--vielleicht); color: #06040a; border-color: var(--vielleicht); }
.status-btn.unavailable.active { background: var(--keinezeit); color: #fff; border-color: var(--keinezeit); }

/* Section labels */
.section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 14px 0 6px;
}

/* Login-Screen */
.login-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
}
.login-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 24px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-box h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 26px;
  margin: 0;
  text-align: center;
}
.login-sub {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin: 0;
}
.login-icon { margin: 0 auto; }
.login-logo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto;
  display: block;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius);
}
.login-error {
  color: var(--keinezeit);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,45,74,0.08);
  border: 1px solid rgba(255,45,74,0.3);
  border-radius: var(--radius);
  padding: 8px 12px;
}
.login-box .primary { width: 100%; padding: 12px; font-size: 13px; }

/* User display */
.user-display {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.user-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Recorder */
.file-add-row { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.recorder-ui { margin-top: 8px; }
.recorder-active {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--panel-2);
  border-radius: 10px; font-size: 14px; font-variant-numeric: tabular-nums;
}
.rec-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e8156a; flex-shrink: 0;
  animation: rec-pulse 1s ease-in-out infinite;
}
@keyframes rec-pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.recorder-actions { display: flex; gap: 8px; }

/* Admin */
.admin-user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-user-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 0 12px 10px 0;
}
.admin-user-table td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.admin-badge {
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.muted-cell { color: var(--muted); }

@media (max-width: 600px) {
  .day { min-height: 62px; padding: 5px 4px; }
  .day .num { font-size: 13px; }
  .dot { width: 18px; height: 18px; font-size: 9px; }
  .legend .hint { display: none; }
  .topbar h1 { font-size: 20px; }
  .who .ghost { padding: 10px 12px; font-size: 13px; }
  .subnav-link { padding: 13px 14px; font-size: 12px; }
  .item-card-title { font-size: 15px; }
  .item-card-meta { font-size: 12px; gap: 7px; }
}
