/* Noisic Band-App – eigenes, kleines Designsystem.
   Keine externen Schriften, keine Frameworks, keine Tracker. */

:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-muted: #f7f8fb;
  --ink: #17202b;
  --ink-muted: #5c6b7d;
  --line: #e2e6ee;
  --accent: #4f46c8;
  --accent-dark: #3d35a8;
  --accent-soft: #eceafc;
  --success: #147a4b;
  --success-soft: #e3f5ec;
  --warning: #9a5b06;
  --warning-soft: #fdf1de;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 40px;
}

h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.55rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.95rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1.2rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 16px; }
.main-content { padding-top: 20px; padding-bottom: 32px; flex: 1 0 auto; }

/* Kopfzeile ------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 58px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); letter-spacing: -2px; font-size: 0.8rem; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-link:hover { background: var(--surface-muted); color: var(--ink); text-decoration: none; }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); }

/* Fußzeile -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 14px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Typografie-Helfer ------------------------------------------------------ */
.muted { color: var(--ink-muted); }
.small { font-size: 0.87rem; }
.strong { font-weight: 700; }
.pre-line { white-space: pre-line; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { flex-wrap: wrap; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.empty { color: var(--ink-muted); padding: 20px 4px; }
.bullets { margin: 0; padding-left: 1.2rem; color: var(--ink-muted); }
.bullets li + li { margin-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout-Bausteine ------------------------------------------------------- */
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 18px; }
.grid-2, .grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack-sm > * + * { margin-top: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin-bottom: 2px; }
.back-link { display: inline-block; margin-bottom: 10px; font-size: 0.9rem; color: var(--ink-muted); }
.inline-form { display: inline; }

/* Karten ----------------------------------------------------------------- */
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card h2 { margin-bottom: 10px; }
.card-link { color: inherit; }
.card-link:hover { text-decoration: none; border-color: #c9cfe0; }
.card-link:hover strong { color: var(--accent); }

.danger-zone { border-color: #f3c9c5; background: #fffdfd; }

/* Datum ---------------------------------------------------------------- */
.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  line-height: 1.05;
}
.date-day { font-size: 1.3rem; font-weight: 800; }
.date-month { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* Badges ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-inquiry, .badge-asked { background: var(--warning-soft); color: var(--warning); }
.badge-verbal { background: #e8effd; color: #254a9b; }
.badge-confirmed { background: var(--success-soft); color: var(--success); }
.badge-cancelled, .badge-declined { background: var(--danger-soft); color: var(--danger); }
.badge-neutral { background: #eef0f5; color: var(--ink-muted); }
.badge-draft { background: #eef0f5; color: var(--ink-muted); }
.badge-sent { background: #e8effd; color: #254a9b; }
.badge-signed { background: var(--success-soft); color: var(--success); }
/* Sperrzeiten-Freigabe */
.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-approved { background: var(--success-soft); color: var(--success); }
.badge-rejected { background: var(--danger-soft); color: var(--danger); }

/* Personen -------------------------------------------------------------- */
.people { list-style: none; margin: 8px 0 0; padding: 0; }
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}
.person .muted { display: block; }
.comment { display: block; color: var(--ink-muted); }
.song-detail { margin: 3px 0 0; font-size: 0.85rem; color: var(--ink-muted); }
.song-detail-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.list-item + .list-item { margin-top: 8px; }

/* Formulare -------------------------------------------------------------- */
.field { margin: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.93rem; }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="datetime-local"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cdd3e0;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
input[readonly] { background: var(--surface-muted); color: var(--ink-muted); }
#feed-url, #band-feed-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.help { color: var(--ink-muted); font-size: 0.83rem; margin: 6px 0 0; }
.check .help { display: block; font-weight: 400; }
.error { color: var(--danger); font-size: 0.85rem; margin: 4px 0 0; }
.code, textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.led-preview {
  white-space: pre-wrap;
  background: #10131a;
  color: #d8e0ea;
  border-radius: 10px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}
.mail-preview {
  white-space: pre-wrap;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font);
  font-size: 0.92rem;
}
.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { margin-top: 4px; }

/* Radio-Auswahl --------------------------------------------------------- */
.field > div[role="radiogroup"], .field ul { margin: 0; padding: 0; list-style: none; }
.field ul label { display: flex; align-items: center; gap: 8px; font-weight: 500; padding: 6px 0; }
.field input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #cdd3e0;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  cursor: pointer;
}
.btn:hover { background: var(--surface-muted); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #95170f; }
.btn-sm { min-height: 40px; padding: 8px 12px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.select-inline { width: auto; min-height: 38px; padding: 6px 8px; font-size: 0.9rem; }

/* Hinweise -------------------------------------------------------------- */
.messages { margin-bottom: 16px; }
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.92rem;
}
.alert + .alert { margin-top: 8px; }
.alert-success { background: var(--success-soft); border-color: #bfe6d3; color: #0c5a37; }
.alert-warning { background: var(--warning-soft); border-color: #f2d9ac; color: #7a4705; }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: #f3c9c5; color: #8f1c13; }
.alert-info { background: #e9effd; border-color: #c8d6f7; color: #263e7a; }

/* Segmented control ------------------------------------------------------ */
.segmented {
  display: inline-flex;
  background: #e7e9f1;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 14px;
}
.segmented-item {
  padding: 8px 16px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.segmented-item:hover { text-decoration: none; color: var(--ink); }
.segmented-item.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Detail-Liste ---------------------------------------------------------- */
.detail-list { margin: 0; }
.detail-list > div { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { width: 120px; min-width: 120px; color: var(--ink-muted); font-size: 0.9rem; }
.detail-list dd { margin: 0; font-weight: 600; }

/* Login ----------------------------------------------------------------- */
.auth-page .main-content { display: flex; justify-content: center; padding-top: 48px; }
.auth-card { width: 100%; max-width: 390px; padding: 26px; }
.auth-brand { text-align: center; margin-bottom: 8px; }
.auth-brand h1 { font-size: 1.4rem; margin: 8px 0 4px; }
.auth-brand .brand-mark { font-size: 1.2rem; }

/* Mobil ----------------------------------------------------------------- */
@media (max-width: 759px) {
  body { padding-bottom: 78px; }
  h1 { font-size: 1.35rem; }
  .main-nav {
    overflow: hidden;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    margin: 0;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    justify-content: space-around;
  }
  .nav-link {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 0.74rem;
    padding: 10px 2px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .site-footer { display: none; }
  .main-content { padding-bottom: 20px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head > .row { width: 100%; }
  .page-head > .row .btn { flex: 1; }
  .page-head .btn { width: 100%; }
  .detail-list > div { flex-direction: column; gap: 2px; }
  .detail-list dt { width: auto; min-width: 0; }
  .list-item { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Kalender ---------------------------------------------------------------- */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cal-title { font-weight: 800; font-size: 1.05rem; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cal-cell {
  min-width: 0;
  min-height: 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cal-cell.is-outside { background: transparent; border-color: transparent; }
.cal-cell.is-outside .cal-daynum { color: #b3bccb; }

.cal-daynum {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.cal-cell.is-today .cal-daynum { background: var(--accent); color: #fff; border-radius: 999px; }

.cal-cell.is-blocked {
  background: repeating-linear-gradient(
    135deg,
    #fff8ea,
    #fff8ea 6px,
    #fdf0da 6px,
    #fdf0da 12px
  );
}
.cal-block-swatch {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  background: repeating-linear-gradient(135deg, #fff8ea, #fff8ea 3px, #fdf0da 3px, #fdf0da 6px);
  border: 1px solid #f0d9b0;
}
.agenda-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-inquiry { background: var(--warning); }
.dot-verbal { background: #254a9b; }
.dot-confirmed { background: var(--success); }
.dot-cancelled { background: var(--danger); }

.cal-today { text-align: center; font-size: 0.85rem; margin: 10px 0 14px; }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda-day {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-day:last-child { border-bottom: 0; }
.agenda-date { width: 44px; min-width: 44px; text-align: center; color: var(--ink-muted); }
.agenda-date strong { display: block; font-size: 1.1rem; color: var(--ink); }
.agenda-events { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.agenda-event {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
}
.agenda-event:hover { text-decoration: none; border-color: #c9cfe0; }
.agenda-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 44px;
}

@media (max-width: 759px) {
  .cal-cell { min-height: 54px; padding: 4px; gap: 3px; }
  .cal-daynum { width: 22px; height: 22px; font-size: 0.76rem; }
  .dot { width: 6px; height: 6px; }
}

/* Songs und Setlists ------------------------------------------------------ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input[type="search"] { flex: 1 1 220px; }
.filters select { flex: 0 1 200px; }
.song-card-actions { margin-top: 10px; }
.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 2px;
}
.tag {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 600;
}

.details-summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.set-section h2 { font-size: 1.08rem; }

.song-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}
.song-title-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.song-list { list-style: none; margin: 10px 0 0; padding: 0; }
.song-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.song-item:last-child { border-bottom: 0; }
.song-index {
  width: 22px;
  min-width: 22px;
  text-align: right;
  color: var(--ink-muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.drag-handle {
  cursor: grab;
  color: #b3bccb;
  font-size: 1.1rem;
  padding: 0 2px;
  touch-action: none;
}
.drag-handle:active { cursor: grabbing; }
.song-item { position: relative; }
.song-menu { flex: 0 0 auto; }
.song-menu summary {
  list-style: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-muted);
  font-weight: 700;
}
.song-menu summary::-webkit-details-marker { display: none; }
.song-menu-body {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 15;
  width: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.song-menu-body textarea { min-height: 60px; }
.add-song-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.add-song-form .add-song-select { flex: 1 1 220px; }
.add-song-form .add-song-comment { flex: 1 1 180px; }
.break-note { color: var(--ink-muted); margin: 10px 0 0; }

.response-editor { order: 10; flex-basis: 100%; }
.response-editor summary { font-size: 0.8rem; color: var(--accent); cursor: pointer; }
.response-editor form { padding: 8px 0 0 32px; max-width: 320px; }
.response-editor textarea { min-height: 56px; }
.danger-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-details summary { color: var(--danger); font-weight: 700; cursor: pointer; }
.danger-details form { margin-top: 8px; }

.menu-group h2 { display: flex; align-items: center; gap: 8px; }
.menu-links { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-link {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  background: var(--surface);
}
.menu-link:hover { text-decoration: none; border-color: #c9cfe0; }
.menu-link strong { display: block; }
.menu-link span { display: block; color: var(--ink-muted); font-size: 0.82rem; }
.menu-logout { margin-top: 12px; }
@media (max-width: 759px) {
  .menu-links { grid-template-columns: minmax(0, 1fr); }
}

.attach-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.attach { width: 150px; min-width: 120px; }
.attach img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.attach-doc { display: flex; align-items: center; justify-content: center; height: 110px; border-radius: 10px; border: 1px dashed var(--line); font-weight: 700; }
.attach-upload { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.warning-text { margin: 8px 0 0; color: var(--danger); }
.warning-row { border-left: 4px solid var(--warning); }

/* Druckansicht ----------------------------------------------------------- */
.print-toolbar { margin-bottom: 12px; }
.print-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 900px;
  margin: 0 auto;
}
.print-band {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.print-head h1 { margin: 2px 0 6px; font-size: 1.7rem; }
.print-sub { color: var(--ink-muted); font-size: 0.9rem; }
.print-set { margin-top: 18px; }
.print-set h2 {
  font-size: 1.05rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.print-duration { font-weight: 500; color: var(--ink-muted); font-size: 0.85rem; }
.print-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 0.85rem; }
.print-table th {
  text-align: left;
  background: #f0f2f7;
  padding: 4px 6px;
  border-bottom: 1px solid #ccc;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.print-table td { padding: 5px 6px; vertical-align: top; }
.print-artist { color: var(--ink-muted); font-size: 0.78em; margin-left: 4px; }
.print-note { color: #555; font-size: 0.78rem; margin-top: 2px; }
.col-num { width: 24px; text-align: right; }
.col-tiny { width: 46px; }
.col-small { width: 52px; }
.print-break { padding: 8px; background: #f7f8fb; border-radius: 6px; color: #555; }
.print-notes { margin-top: 16px; }
.print-footer { margin-top: 18px; padding-top: 6px; border-top: 1px solid #ddd; color: #777; font-size: 0.72rem; }

.level-stage .print-head h1 { font-size: 2rem; }
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}
.stage-index { color: #777; font-size: 1rem; min-width: 2rem; }
.stage-main { flex: 1; min-width: 0; }
.stage-title { font-size: 1.5rem; font-weight: 800; }
.stage-note { display: block; font-size: 0.85rem; font-weight: 500; color: #444; }
.stage-key { margin-left: auto; font-size: 1.2rem; font-weight: 700; }
.level-stage .print-set h2 { font-size: 1.3rem; }
.level-stage .print-sub { font-size: 1rem; }

.print-sheet.size-small { font-size: 0.9em; }
.print-sheet.size-small .print-table { font-size: 0.78rem; }
.print-sheet.size-large { font-size: 1.1em; }
.print-sheet.size-large .print-table { font-size: 0.95rem; }
.print-sheet.layout-compact .print-table td { padding: 2px 5px; }
.print-sheet.layout-compact .stage-list li { padding: 4px 0; }

@media (max-width: 759px) {
  .song-menu { margin-left: auto; }
  .print-table .col-bpm { display: none; }
  .print-sheet { padding: 16px; }
  .print-table { font-size: 0.78rem; }
  .print-table th, .print-table td { padding: 3px 4px; }
}

@media print {
  .site-header, .main-nav, .site-footer, .print-toolbar, .messages, .no-print { display: none !important; }
  body { background: #fff; padding: 0; display: block; }
  .main-content { padding: 0; }
  .container { max-width: none; padding: 0; }
  .print-sheet { border: 0; border-radius: 0; padding: 0; max-width: none; margin: 0; }
  a { color: inherit; text-decoration: none; }
  .print-table tr { break-inside: avoid; }
  .print-page-break { break-before: page; }
  @page { size: A4; margin: 14mm; }
}
