:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #f3f4f9;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e4e7ef;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --ok: #047857;
  --ok-bg: #d1fae5;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --bad: #dc2626;
  --bad-bg: #fee2e2;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 6px 24px rgb(15 23 42 / 0.06);
  --shadow-lg: 0 24px 60px rgb(15 23 42 / 0.25);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --surface: #141824;
    --surface-2: #1b2030;
    --text: #e8eaf2;
    --muted: #949bb0;
    --border: #262c3d;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-soft: #1e2140;
    --ok: #6ee7b7;
    --ok-bg: #0f3327;
    --warn: #fcd34d;
    --warn-bg: #3a2c0b;
    --bad: #fca5a5;
    --bad-bg: #3b1416;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

/* Elements with their own display rule (e.g. .login) would otherwise ignore the hidden attribute. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.5 "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 24px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.hint { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.spacer { flex: 1; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.error-text { color: var(--bad); }
.icon { flex-shrink: 0; }

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgb(79 70 229 / 0.3); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.light { background: #fff; color: #3730a3; }
.btn.light:hover { background: #eef2ff; }
.btn.glass { background: rgb(255 255 255 / 0.14); color: #fff; border-color: rgb(255 255 255 / 0.25); }
.btn.glass:hover { background: rgb(255 255 255 / 0.24); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; padding: 11px 16px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad); }

.play-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--primary-soft);
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s, background 0.15s;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn.on { background: var(--primary); color: #fff; }
.play-btn.ghosted { visibility: hidden; }
.play-btn.lg { width: 60px; height: 60px; background: #fff; color: #4f46e5; box-shadow: 0 8px 24px rgb(0 0 0 / 0.2); }
.play-btn.lg.on { background: #fff; color: #db2777; }

input, select {
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(99 102 241 / 0.2); }
input[type="file"] { padding: 7px; }

.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.date-pick { display: grid; grid-template-columns: 1fr 74px; gap: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.ok .dot { animation: pulse 2s infinite; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.sm { padding: 1px 8px; font-size: 11.5px; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- sign in ---------- */

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(60rem 40rem at 10% -10%, rgb(99 102 241 / 0.22), transparent 60%),
    radial-gradient(50rem 40rem at 110% 110%, rgb(219 39 119 / 0.18), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 380px;
  display: grid;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.login-card h1 { margin-top: 4px; }
.form-error { color: var(--bad); font-size: 13px; }
.form-error:empty { display: none; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #db2777);
}
.brand-mark.lg { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 10px 24px rgb(79 70 229 / 0.35); }

/* ---------- layout ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 22px;
  padding: 26px 28px;
  background: linear-gradient(130deg, #4338ca 0%, #6d28d9 50%, #be185d 100%);
  box-shadow: 0 18px 40px rgb(79 70 229 / 0.28);
  display: grid;
  gap: 18px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.18), transparent 70%);
  pointer-events: none;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.hero .pill { background: rgb(255 255 255 / 0.18); color: #fff; }
.hero .pill.ok .dot { background: #6ee7b7; }
.hero .pill.warn .dot { background: #fcd34d; }
.hero .pill.bad { background: rgb(254 202 202 / 0.25); }
.hero-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hero-disc {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  flex-shrink: 0;
}
.hero-title { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.hero-why { opacity: 0.85; margin-top: 4px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgb(255 255 255 / 0.14);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
}
.hero-note.bad { background: rgb(127 29 29 / 0.45); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgb(255 255 255 / 0.18);
  border-radius: 12px;
  overflow: hidden;
}
.stat { background: rgb(30 27 75 / 0.35); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.stat span { font-size: 12px; opacity: 0.75; }
.stat strong { font-size: 15px; overflow-wrap: anywhere; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; opacity: 0.95; }

/* ---------- timeline ---------- */

.timeline {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--surface-2);
  border-radius: 12px;
}
.tl-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; }
.tl-row.off { opacity: 0.45; }
.tl-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--border) 70%, transparent); }
.tl-bar { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--c); }
.tl-months {
  display: grid;
  height: auto;
  background: none;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 14px;
}
.tl-months > span:not(.tl-today-label) { border-left: 1px solid var(--border); padding-left: 4px; }
.tl-today { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--bad); border-radius: 1px; }
.tl-today-label {
  position: absolute;
  bottom: -2px;
  transform: translateX(-50%);
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--bad);
  padding: 0 6px;
  border-radius: 999px;
}

/* ---------- seasons ---------- */

.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.season {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px 14px 18px;
  display: grid;
  gap: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.season::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.season:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.season.now { border-color: color-mix(in srgb, var(--c) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.season.off { opacity: 0.6; }
.season-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.season-head h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex-shrink: 0; }
.season-dates { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.season-dates .icon { color: var(--muted); }
.season-song {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 6px 10px 6px 6px;
  min-width: 0;
  font-size: 13.5px;
}
.season-song .play-btn { width: 30px; height: 30px; }

/* ---------- songs ---------- */

.song-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.song {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 6px;
  border-radius: 12px;
  transition: background 0.15s;
}
.song:hover { background: var(--surface-2); }
.song.ours { background: var(--primary-soft); }
.song-info { flex: 1; min-width: 0; }
.song-name { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.slot-no { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- rules ---------- */

.rule { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.rule:first-of-type { border-top: 0; padding-top: 0; }

/* ---------- tabs ---------- */

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgb(15 23 42 / 0.12); }
a.btn { text-decoration: none; }

/* ---------- manage: status strip ---------- */

.status-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.strip-text { flex: 1; min-width: 0; }
.strip-text > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

/* ---------- overview: server + history ---------- */

.two-col.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
}
.notice.bad { background: var(--bad-bg); color: var(--bad); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: 10px; flex-shrink: 0; }
.segmented button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(15 23 42 / 0.12); }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table .error-text { margin-top: 4px; max-width: 360px; overflow-wrap: anywhere; }
.empty-cell { text-align: center; color: var(--muted); padding: 28px 10px !important; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }

/* ---------- empty states ---------- */

.empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 28px 16px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
}
.empty strong { color: var(--text); }
.empty p { max-width: 340px; font-size: 13.5px; }
.empty .btn { margin-top: 6px; }
.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- dialogs ---------- */

dialog {
  border: 0;
  padding: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  width: min(480px, calc(100vw - 32px));
  box-shadow: var(--shadow-lg);
}
dialog.wide { width: min(640px, calc(100vw - 32px)); }
dialog::backdrop { background: rgb(15 23 42 / 0.5); backdrop-filter: blur(3px); }
dialog[open] { animation: pop 0.16s ease-out; }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
}
.dialog-body { display: grid; gap: 16px; padding: 22px 24px 24px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

.summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 9px 12px;
  border-radius: 10px;
}
.new-song { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); }

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 24px 16px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { overflow-wrap: anywhere; }
.dropzone-icon { color: var(--primary); }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.15s;
  flex-shrink: 0;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.15s;
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgb(99 102 241 / 0.3); }

/* ---------- toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  background: #0f172a;
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: #b91c1c; }

/* ---------- hero extras ---------- */

.hero-next { display: flex; align-items: center; gap: 8px; opacity: 0.9; }
.hero-where { margin-left: auto; align-self: center; font-size: 12.5px; opacity: 0.7; }
.hero-note .details { opacity: 0.75; margin-top: 2px; overflow-wrap: anywhere; }

/* ---------- add form: 3 steps ---------- */

.add-card { border-top: 4px solid var(--primary); }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.step-body { display: grid; gap: 12px; min-width: 0; }
.step-title { font-size: 15px; padding-top: 6px; }
.dropzone.compact { padding: 16px; }
.existing { display: grid; gap: 6px; max-width: 420px; }
.summary.warn { color: var(--warn); background: var(--warn-bg); }
.tz { color: var(--muted); font-weight: 400; }
.quick-test { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* ---------- tables ---------- */

.data-table td.actions { white-space: nowrap; text-align: right; vertical-align: middle; }
.data-table td.actions > * { vertical-align: middle; }
.data-table td.actions .btn { margin-right: 4px; }
.data-table tr.off td { opacity: 0.55; }
.cell-song { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 320px; }
.min0 { min-width: 0; }
.tab .short { display: none; }

/* ---------- more options ---------- */

details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "Show"; font-size: 13px; font-weight: 600; color: var(--primary); }
details[open] summary::after { content: "Hide"; }
.more-body { margin-top: 18px; }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .two-col, .two-col.even { grid-template-columns: minmax(0, 1fr); }
  #target, #whoami { display: none; }
}

@media (max-width: 600px) {
  .page { padding: 16px; gap: 16px; }
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand-name, .hide-sm { display: none; }
  .tab { padding: 7px 10px; }
  .tab .long { display: none; }
  .tab .short { display: inline; }
  /* Schedule rows stack: song + status on top, buttons underneath. */
  .schedule-table thead { display: none; }
  .schedule-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .schedule-table tbody tr:last-child { border-bottom: 0; }
  .schedule-table td { display: block !important; padding: 0; border: 0; }
  .schedule-table td:nth-child(2) { grid-column: 1; }
  .schedule-table td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .schedule-table td.actions { grid-column: 1 / -1; text-align: left; }
  .schedule-table td.empty-cell { grid-column: 1 / -1; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
  .hero { padding: 20px; }
  .hero-title { font-size: 24px; }
  .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 18px 16px; }
  .panel-head { flex-direction: column; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .tl-row { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .tl-months { font-size: 9.5px; }
  .tl-months > span:not(.tl-today-label) { padding-left: 2px; }
}
