/* ==========================================================================
   Int-Meldeportal — design system (no external CSS framework)
   ========================================================================== */

:root {
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --brand: #0b5cad;
  --brand-600: #094b8e;
  --brand-50: #eaf2fb;
  --brand-100: #d3e4f7;
  --navy: #0b1f33;
  --navy-2: #12304d;
  --accent: #14b8a6;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;

  --ok: #15803d;
  --ok-bg: #e8f7ee;
  --warn: #b45309;
  --warn-bg: #fdf3e2;
  --bad: #b91c1c;
  --bad-bg: #fdecec;
  --info: #0369a1;
  --info-bg: #e6f3fb;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --focus: 0 0 0 3px rgba(11, 92, 173, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 1.6rem;
}
h2 {
  font-size: 1.2rem;
}
h3 {
  font-size: 1.02rem;
}
p {
  margin: 0 0 0.75rem;
}
small,
.small {
  font-size: 0.85em;
}
.muted {
  color: var(--text-3);
}
.text-2 {
  color: var(--text-2);
}
/* Component rules like `textarea { display: block }` must not override [hidden]. */
[hidden] {
  display: none !important;
}
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
.d-block {
  display: block;
}
.nowrap {
  white-space: nowrap;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.strong {
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 0.5rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ---------- layout helpers ---------------------------------------------- */
.stack > * + * {
  margin-top: 1rem;
}
.stack-lg > * + * {
  margin-top: 1.5rem;
}
.row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.row-between {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.spacer {
  flex: 1;
}
.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.grid-main {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 960px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-user .who,
  .p-user .btn span,
  .p-event small {
    display: none;
  }
  .checklist .check-item {
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
  }
  .checklist .check-body {
    flex-basis: calc(100% - 3rem);
  }
  .checklist .check-meta {
    flex-direction: row;
    align-items: center;
    margin-left: 2.9rem;
  }
  .checklist .check-item > .icon:last-child {
    display: none;
  }
  .page-head h1 {
    font-size: 1.35rem;
  }
  .hero h1 {
    font-size: 1.2rem;
  }
  .hero .ring {
    width: 64px;
    height: 64px;
  }
  .hero .ring span {
    width: 50px;
    height: 50px;
    font-size: 0.95rem;
  }
}
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}

/* ---------- cards --------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-body {
  padding: 1.15rem 1.25rem;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.card-head h2,
.card-head h3 {
  margin: 0;
}
.card-foot {
  padding: 0.8rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.card-flush > .table-wrap {
  border: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- page header --------------------------------------------------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.page-head h1 {
  margin: 0;
}
.page-head .lead {
  margin: 0.3rem 0 0;
  color: var(--text-2);
  max-width: 62ch;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 650;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 0.35rem;
}
.breadcrumb a {
  color: var(--text-2);
}

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--text-3);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: transparent;
  color: var(--text);
}
.btn-danger {
  background: var(--surface);
  color: var(--bad);
  border-color: #f1b8b8;
}
.btn-danger:hover {
  background: var(--bad-bg);
  border-color: var(--bad);
}
.btn-danger-solid {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.btn-danger-solid:hover {
  background: #991b1b;
}
.btn-ok {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.btn-ok:hover {
  background: #166534;
}
.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.83rem;
}
.btn-lg {
  padding: 0.75rem 1.3rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.btn-icon {
  padding: 0.4rem;
}
.inline-form {
  display: inline;
  margin: 0;
}

/* ---------- badges / pills ------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  background: #eef2f6;
  color: var(--text-2);
}
.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.badge-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.badge-bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.badge-info {
  background: var(--info-bg);
  color: var(--info);
}
.badge-brand {
  background: var(--brand-50);
  color: var(--brand);
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
  background: var(--border-strong);
  flex: none;
}
.dot-ok {
  background: var(--ok);
}
.dot-warn {
  background: #f59e0b;
}
.dot-bad {
  background: var(--bad);
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #f59e0b;
  color: #1f1300;
}

/* ---------- alerts ------------------------------------------------------- */
.alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: 0.93rem;
}
.alert .icon {
  margin-top: 0.12rem;
}
.alert-title {
  font-weight: 650;
  margin-bottom: 0.15rem;
}
.alert p:last-child {
  margin-bottom: 0;
}
.alert-info {
  background: var(--info-bg);
  border-color: #b9ddf2;
  color: #0b4a6f;
}
.alert-ok,
.alert-success {
  background: var(--ok-bg);
  border-color: #bfe5cc;
  color: #14532d;
}
.alert-warn,
.alert-warning {
  background: var(--warn-bg);
  border-color: #f3d39e;
  color: #7c3a06;
}
.alert-bad,
.alert-error {
  background: var(--bad-bg);
  border-color: #f3c1c1;
  color: #7f1d1d;
}
.alert-lock {
  background: #f1f5f9;
  border-color: var(--border-strong);
  color: var(--text-2);
}
.messages {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ---------- forms --------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.field label,
.label {
  display: block;
  font-weight: 600;
  font-size: 0.87rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.field .req {
  color: var(--bad);
  margin-left: 0.15rem;
}
.field .help {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 0.3rem;
}
.field .errors {
  color: var(--bad);
  font-size: 0.82rem;
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}
.field.has-error .form-control,
.field.has-error .form-select {
  border-color: var(--bad);
}
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s, box-shadow 0.12s;
}
select,
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  padding-right: 2rem;
}
.form-control:focus,
.form-select:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}
.form-control:disabled,
.form-select:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  background: #f1f5f9;
  color: var(--text-2);
  cursor: not-allowed;
}
.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 500;
  cursor: pointer;
}
input[type="checkbox"],
input[type="radio"],
.form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.15rem 0 0;
  accent-color: var(--brand);
  flex: none;
}
.form-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.form-errors {
  margin-bottom: 1rem;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  font-weight: 650;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding: 0;
}
.section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--text-3);
  margin: 1.4rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.section-title:first-child {
  margin-top: 0;
}

/* filter toolbar */
.toolbar {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.toolbar .field {
  min-width: 150px;
}
.toolbar .field label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.toolbar .grow {
  flex: 1;
  min-width: 200px;
}

/* ---------- tables -------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.card .table-wrap {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table th,
.table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table thead th {
  background: var(--surface-2);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-3);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover td {
  background: #fbfcfe;
}
.table .actions {
  text-align: right;
  white-space: nowrap;
}
.table-compact th,
.table-compact td {
  padding: 0.45rem 0.65rem;
}
.table tfoot td {
  font-weight: 700;
  background: var(--surface-2);
  border-top: 2px solid var(--border);
}
.row-link {
  color: inherit;
  font-weight: 600;
}

/* ---------- stats --------------------------------------------------------- */
.stat {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none !important;
}
a.stat:hover {
  background: var(--surface-2);
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.stat-value small {
  font-size: 0.95rem;
  color: var(--text-3);
  font-weight: 600;
}
.stat-sub {
  font-size: 0.82rem;
  color: var(--text-2);
}

.progress {
  height: 0.5rem;
  background: #e8edf3;
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}
.progress.ok > span {
  background: var(--ok);
}
.progress.warn > span {
  background: #f59e0b;
}
.progress-sm {
  height: 0.35rem;
}
.meter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 140px;
}
.meter .progress {
  flex: 1;
}
.meter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  min-width: 2.8rem;
  text-align: right;
}

/* step pips (team progress) */
.pips {
  display: inline-flex;
  gap: 3px;
}
.pips span {
  width: 1.15rem;
  height: 0.45rem;
  border-radius: 2px;
  background: #e2e8f0;
}
.pips span.on {
  background: var(--ok);
}

/* ---------- checklist (participant progress) ----------------------------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  border-bottom: 1px solid var(--border);
}
.checklist li:last-child {
  border-bottom: 0;
}
.check-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1.25rem;
  color: inherit;
  text-decoration: none !important;
}
a.check-item:hover {
  background: var(--surface-2);
}
.check-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  border: 2px solid var(--border-strong);
  color: var(--text-3);
  font-weight: 700;
  font-size: 0.85rem;
}
.check-icon.done {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.check-icon.locked {
  background: #eef2f6;
  border-color: #eef2f6;
}
.check-icon.next {
  border-color: var(--brand);
  color: var(--brand);
}
.check-body {
  flex: 1;
  min-width: 0;
}
.check-title {
  font-weight: 650;
}
.check-detail {
  font-size: 0.85rem;
  color: var(--text-2);
}
.check-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-3);
  text-align: right;
}

/* ---------- tabs ---------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  text-decoration: none;
}
.tabs a:hover {
  color: var(--text);
}
.tabs a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.segmented {
  display: inline-flex;
  background: #e9eef4;
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.segmented a {
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.segmented a.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ---------- empty state -------------------------------------------------- */
.empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-2);
}
.empty .icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--border-strong);
  margin-bottom: 0.5rem;
}
.empty h3 {
  color: var(--text);
}
.empty p {
  max-width: 44ch;
  margin: 0 auto 1rem;
}

/* ---------- key/value list ----------------------------------------------- */
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.45rem 1.25rem;
  margin: 0;
  font-size: 0.92rem;
}
.kv dt {
  color: var(--text-3);
}
.kv dd {
  margin: 0;
  font-weight: 550;
}

/* ---------- person chips -------------------------------------------------- */
.person {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--brand-50);
  color: var(--brand);
  flex: none;
}
.avatar.trainer {
  background: #eef5ea;
  color: #3f6212;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.3rem 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.83rem;
  background: var(--surface);
}
.chip button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text-3);
  padding: 0 0.15rem;
  display: inline-flex;
}
.chip button:hover {
  color: var(--bad);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* ---------- rooms --------------------------------------------------------- */
.room-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.room-card.full {
  background: var(--surface-2);
}
.room-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.beds {
  display: flex;
  gap: 4px;
}
.beds span {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 3px;
  border: 1.5px solid var(--border-strong);
}
.beds span.used {
  background: var(--brand);
  border-color: var(--brand);
}

/* ---------- meal matrix --------------------------------------------------- */
.matrix th.day {
  text-align: center;
  border-left: 1px solid var(--border);
}
.matrix td.day {
  border-left: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.meal-toggle {
  display: inline-flex;
  margin: 0 1px;
}
.meal-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-3);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.1s;
}
.meal-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.meal-btn.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.meal-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.meal-btn.busy {
  opacity: 0.4;
}
.legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-2);
}

/* ---------- timeline (deadlines) ------------------------------------------ */
.deadlines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.deadlines li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.deadlines li:last-child {
  border-bottom: 0;
}

/* ---------- bars (hourly) ------------------------------------------------- */
.bars {
  display: grid;
  gap: 0.35rem;
}
.bar-row {
  display: grid;
  grid-template-columns: 4rem 1fr 5rem;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
}
.bar-track {
  display: flex;
  height: 1rem;
  background: #eef2f6;
  border-radius: 4px;
  overflow: hidden;
}
.bar-a {
  background: var(--brand);
}
.bar-d {
  background: var(--accent);
}

/* ---------- toast --------------------------------------------------------- */
.toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: grid;
  gap: 0.5rem;
}
.toast {
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  max-width: 360px;
}

/* ---------- details / disclosure ----------------------------------------- */
details.disclosure > summary {
  cursor: pointer;
  list-style: none;
}
details.disclosure > summary::-webkit-details-marker {
  display: none;
}
details.inline-reject[open] {
  width: 100%;
}
.popover-form {
  margin-top: 0.6rem;
  padding: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pagination {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   AUTH SHELL
   ========================================================================== */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.auth-aside {
  background: radial-gradient(1200px 600px at -10% 110%, #1b6fc4 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0e2a47 60%, #0b3a66 100%);
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 55%;
  background: repeating-linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.05) 0 2px,
    transparent 2px 22px
  );
  transform: skewY(-6deg);
}
.auth-aside h1 {
  font-size: 2.1rem;
  margin-top: 1rem;
  max-width: 16ch;
}
.auth-aside p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 40ch;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none !important;
}
.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #3b9cf0, var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.brand-mark .icon {
  width: 1.2rem;
  height: 1.2rem;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.auth-card .sub {
  color: var(--text-2);
  margin-bottom: 1.5rem;
}
.auth-card form p {
  margin-bottom: 1rem;
}
.auth-card form p label {
  display: block;
  font-weight: 600;
  font-size: 0.87rem;
  margin-bottom: 0.3rem;
}
.auth-card form ul.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0;
  color: var(--bad);
  font-size: 0.85rem;
}
.auth-card button[type="submit"],
.auth-card form button:not(.btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-3);
  font-size: 0.8rem;
  margin: 1.25rem 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
@media (max-width: 860px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 1.5rem;
  }
  .auth-aside h1 {
    font-size: 1.4rem;
  }
  .auth-aside .aside-foot {
    display: none;
  }
}

/* ==========================================================================
   PARTICIPANT PORTAL
   ========================================================================== */
.p-header {
  background: var(--navy);
  color: #fff;
}
.p-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.p-event {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.p-event small {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.p-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.87rem;
}
.p-user .who {
  text-align: right;
  line-height: 1.25;
}
.p-user .who small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
}
.p-header .btn-ghost {
  color: rgba(255, 255, 255, 0.8);
}
.p-header .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.p-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.p-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0.75rem;
  display: flex;
  gap: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.p-nav-inner::-webkit-scrollbar {
  display: none;
}
.p-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.8rem;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.p-nav a:hover {
  color: var(--text);
}
.p-nav a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.p-nav .step-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  background: #e8edf3;
  color: var(--text-3);
}
.p-nav .step-dot.done {
  background: var(--ok);
  color: #fff;
}
.p-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 4rem;
}
.hero {
  background: linear-gradient(120deg, var(--brand) 0%, #0e3f73 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
}
.hero p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.hero .ring {
  --p: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(#5eead4 calc(var(--p) * 1%), rgba(255, 255, 255, 0.18) 0);
  display: grid;
  place-items: center;
  flex: none;
}
.hero .ring span {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #0d4a88;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 1.15rem;
}
.hero .btn {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}
.hero .btn:hover {
  background: var(--brand-50);
}
.p-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  padding: 1.5rem;
}

/* ==========================================================================
   ORGANISER AREA
   ========================================================================== */
.o-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(to right, var(--navy) 250px, var(--bg) 250px);
}
.o-side {
  background: var(--navy);
  color: #c8d5e3;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.o-brand {
  padding: 1.1rem 1.1rem 0.9rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.o-brand small {
  display: block;
  font-size: 0.72rem;
  color: #8ea3ba;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.o-nav {
  padding: 0.6rem 0.6rem 1rem;
  flex: 1;
}
.o-nav .group {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6f86a0;
  font-weight: 700;
  padding: 1rem 0.65rem 0.35rem;
}
.o-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  color: #c8d5e3;
  font-weight: 550;
  font-size: 0.9rem;
  text-decoration: none;
}
.o-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.o-nav a.active {
  background: rgba(59, 156, 240, 0.18);
  color: #fff;
}
.o-nav a.active .icon {
  color: #7cc1ff;
}
.o-nav a .count {
  margin-left: auto;
}
.o-side-foot {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.83rem;
}
.o-side-foot .who {
  color: #fff;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o-side-foot .role {
  color: #8ea3ba;
  font-size: 0.75rem;
}
.o-side-foot .btn {
  margin-top: 0.6rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbe5ef;
}
.o-side-foot .btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.o-main {
  min-width: 0;
}
.o-top {
  display: none;
}
.o-content {
  padding: 1.75rem 2rem 4rem;
}
@media (max-width: 980px) {
  .o-shell {
    grid-template-columns: minmax(0, 1fr);
    background: var(--bg);
  }
  .o-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  body.nav-open .o-side {
    transform: none;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.4);
    z-index: 50;
  }
  .o-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
  }
  .o-top .btn-ghost {
    color: #fff;
  }
  .o-content {
    padding: 1.25rem 1rem 3rem;
  }
}

.team-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.flag {
  display: inline-grid;
  place-items: center;
  min-width: 2.9rem;
  height: 2.1rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.flag-sm {
  min-width: 2.4rem;
  height: 1.45rem;
  font-size: 0.7rem;
  border-radius: 4px;
}
.org-note {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  color: #0b4a6f;
  background: var(--info-bg);
  border: 1px solid #b9ddf2;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* ---------- print (driver sheets) ---------------------------------------- */
.print-page {
  background: #fff;
  padding: 1.5rem;
}
.sheet {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  page-break-after: always;
}
.sheet:last-child {
  page-break-after: auto;
}
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 12px;
  }
  .sheet {
    border: 0;
    padding: 0;
  }
}

.meal-btn.off {
  display: inline-grid;
  place-items: center;
  border-style: dashed;
  color: var(--border-strong);
  cursor: default;
}
.day-prices {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-3);
  margin-top: 0.15rem;
}
.stay {
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------ */
/* Shuttle day grid (hours × vehicles)                                  */
/* ------------------------------------------------------------------ */
.tl-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.tl-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.tl-swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 3px; }
/* No own scroll area: the page scrolls (also sideways with many vehicles), so the
   vehicle header can stick to the top of the page. */
.tl-wrap { padding: 0; width: max-content; min-width: 100%; }
.tl { min-width: calc(3.5rem + var(--tl-cols) * 9rem); }
.tl-head {
  display: grid;
  grid-template-columns: 3.5rem repeat(var(--tl-cols), minmax(9rem, 1fr));
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
}
@media (max-width: 980px) {
  .tl-head { top: 3.2rem; } /* below the sticky mobile top bar */
}
.tl-vehicle { display: flex; flex-direction: column; padding: 0.55rem 0.6rem; border-left: 1px solid var(--border); }
.tl-body {
  display: grid;
  grid-template-columns: 3.5rem repeat(var(--tl-cols), minmax(9rem, 1fr));
  position: relative;
  /* hour lines every 72px (60 min × 1.2 px) */
  background-image: repeating-linear-gradient(to bottom, var(--border) 0, var(--border) 1px, transparent 1px, transparent 72px);
}
.tl-hours { position: relative; }
.tl-hours span {
  position: absolute;
  right: 0.4rem;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.tl-hours span:first-child { transform: none; }
.tl-col { position: relative; border-left: 1px solid var(--border); }
.tl-avail {
  position: absolute;
  inset-inline: 0;
  background: var(--brand-50);
  opacity: 0.55;
}
.tl-block {
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.18);
  min-height: 1.4rem;
}
.tl-block:hover, .tl-block:focus-within { z-index: 2; overflow: visible; }
.tl-block.is-conflict, .tl-block.is-over { outline: 2px solid var(--bad); outline-offset: 1px; }
.tl-block.is-daily { border-style: dashed; }
.tl-seg { position: absolute; inset-inline: 0; }
.tl-out { background: #86efac; }
.tl-wait { background: #fde68a; }
.tl-back { background: #fca5a5; }
.tl-buffer { background: repeating-linear-gradient(135deg, #e2e8f0 0 4px, #f1f5f9 4px 8px); }
.tl-avail.tl-swatch, .tl-swatch.tl-avail { position: static; background: var(--brand-50); border: 1px solid var(--brand-100); }
.tl-daily-sample { border: 1px dashed #475569; background: #86efac; }
.tl-info {
  position: relative;
  margin: 0.2rem;
  padding: 0.2rem 0.35rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #0f172a;
  border-radius: 4px;
}
.tl-block:hover .tl-info, .tl-block:focus-within .tl-info { box-shadow: var(--shadow); background: #fff; }
.tl-line { display: flex; gap: 0.3rem; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-actions { margin-left: auto; display: inline-flex; gap: 0.15rem; }
.tl-actions a {
  display: inline-flex;
  padding: 0.1rem;
  border-radius: 4px;
  color: var(--text-2);
}
.tl-actions a:hover, .tl-actions a:focus-visible { background: var(--brand-50); color: var(--brand); }
.tl-actions svg { width: 0.85rem; height: 0.85rem; }
.tl-pax { font-weight: 600; }
.tl-pax.bad { color: var(--bad); }
.tl-now {
  position: absolute;
  left: 3.5rem;
  right: 0;
  height: 0;
  border-top: 2px solid var(--bad);
  z-index: 1;
  pointer-events: none;
}

.tl-empty {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  background: rgba(241, 245, 249, 0.85);
  font-size: 0.66rem;
  color: var(--text-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-empty.is-late { border-color: var(--bad); color: var(--bad); }
.tl-empty-sample { border: 1px dashed #94a3b8; background: #f1f5f9; }

/* Collapsible card (e.g. cost overview in the team workspace) */
.cost-details > summary { cursor: pointer; list-style: none; }
.cost-details > summary::-webkit-details-marker { display: none; }
.cost-details > summary h2::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s;
  vertical-align: 0.15em;
}
.cost-details[open] > summary h2::before { transform: rotate(45deg); }
.cost-details:not([open]) > summary { border-bottom: 0; }

/* Event logo (uploaded in the event settings) instead of the wave icon.
   Fixed boxes; the image is scaled uniformly to fit (object-fit: contain), never cropped. */
.brand-mark.has-logo {
  width: 4.6rem;
  height: 2.4rem;
  padding: 3px;
  background: #fff;
  flex: 0 0 auto;
}
.brand-mark.has-logo img,
.o-top-logo,
.logo-preview {
  object-fit: contain;
  object-position: center;
  display: block;
}
/* block box (not grid): percentage sizes of the image resolve against the fixed box */
.brand-mark.has-logo { display: block; overflow: hidden; }
.brand-mark.has-logo img { width: 100%; height: 100%; max-width: none; }
.o-top-logo {
  width: 3.4rem;
  height: 1.8rem;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}
.logo-preview {
  width: 12rem;
  height: 4.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem;
  background: #fff;
}

/* Large logo with the text below (sidebar, login aside); header bar keeps text beside */
.brand.brand-stacked { display: flex; width: 100%; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.brand-stacked .brand-mark.has-logo { width: 100%; max-width: 15rem; height: 7.5rem; padding: 6px; border-radius: 10px; }
.auth-aside .brand-stacked .brand-mark.has-logo { width: 16rem; height: 9rem; }
.p-header .brand-mark.has-logo { width: 6.2rem; height: 2.9rem; }

/* empty drives (no guests on board) are hatched over their segment color */
.tl-seg.is-empty, .tl-swatch.is-empty {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0 3px, transparent 3px 7px);
}

/* Daily shuttle seats: more than available at that time */
[data-flow-time]:invalid{border-color:var(--bad);background:var(--bad-bg)}

/* Shuttle hourly overview */
.hourly-table th.grp{text-align:center;border-bottom:1px solid var(--border)}
.hourly-table tr.muted td{color:var(--text-3)}
.fleet-cell{display:flex;align-items:center;gap:.5rem;min-width:9rem}
.fleet-cell .bar-track{flex:1}
.bar-full{display:block;height:100%;background:var(--bad);border-radius:inherit}
.heatmap{border-collapse:separate;border-spacing:2px;font-size:.78rem}
.heatmap th{font-weight:600;color:var(--text-2);padding:.15rem .35rem;white-space:nowrap}
.heatmap tbody th{text-align:left}
.heatmap tr.is-current th a{color:var(--brand);text-decoration:underline}
.heatmap td{width:2rem;height:1.6rem;text-align:center;border-radius:4px;padding:0}
.heatmap td a{display:block;line-height:1.6rem;color:inherit;text-decoration:none}
.hm-0{background:var(--surface-2)}
.hm-1{background:var(--ok-bg)}
.hm-2{background:var(--warn-bg)}
.hm-3{background:var(--warn);color:#fff}
.hm-4{background:var(--bad);color:#fff}
.legend .dot.hm-1,.legend .dot.hm-2,.legend .dot.hm-3,.legend .dot.hm-4{border:1px solid var(--border)}
.table tr.group-row th{background:var(--surface-2);text-align:left;font-weight:600;color:var(--text-2)}
.demand{white-space:nowrap}
.demand-open{display:inline-block;background:var(--bad);color:#fff;font-weight:700;border-radius:999px;padding:.05rem .5rem;font-size:.78rem;text-decoration:none}
a.demand-open:hover{filter:brightness(.9);color:#fff}
.hourly-table tr:has(.has-open) td:first-child{box-shadow:inset 3px 0 0 var(--bad)}
.o-nav a .count.count-bad{background:var(--bad);color:#fff}
.tl-problems{margin:.25rem 0 0;padding-left:1.1rem}
.tl-problems li.is-current{font-weight:600}
.text-warn{color:var(--warn)}
.table tr.muted-row td{color:var(--text-3)}
.table tr.muted-row td a.row-link{color:var(--text-2)}
