:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-soft: #f0f2f4;
  --text: #15191f;
  --muted: #5e6670;
  --line: #dce1e6;
  --brand: #d70032;
  --green: #147a55;
  --yellow: #a36a00;
  --red: #b02f33;
  --gray: #66717c;
  --blue: #245b8f;
  --shadow: 0 10px 26px rgba(20, 28, 36, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.page-head {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(14px, 2vw, 32px);
}

.brand-row {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  border-radius: 7px;
  flex: 0 0 auto;
  height: 40px;
  width: 40px;
}

h1 {
  font-size: 24px;
  line-height: 1.05;
}

h2 {
  font-size: 17px;
  line-height: 1.2;
}

h3 {
  font-size: 15px;
  line-height: 1.2;
}

.brand-subline {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 7px;
  margin-top: 4px;
}

.info,
.tooltip-button {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0;
  position: relative;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  background: #12161c;
  border-radius: 6px;
  bottom: calc(100% + 8px);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 650;
  left: 50%;
  line-height: 1.35;
  max-width: min(280px, 80vw);
  min-width: 180px;
  padding: 8px 9px;
  position: absolute;
  transform: translateX(-50%);
  white-space: normal;
  z-index: 5;
}

.refresh-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.time-chip {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 58px;
  padding: 8px 10px;
}

.time-chip span,
.eyebrow,
.metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.time-chip strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.shell {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 1760px;
  padding: 14px clamp(10px, 1.8vw, 28px) 32px;
  width: 100%;
}

.notice {
  background: #fff8e6;
  border: 1px solid #e2c66a;
  border-radius: 8px;
  color: #654600;
  font-weight: 700;
  padding: 10px 12px;
}

.notice.is-red {
  background: #fff0f0;
  border-color: #df9898;
  color: #7a1e22;
}

.hidden {
  display: none;
}

.overview-band,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.overview-band {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 0.55fr) minmax(620px, 1.45fr);
  padding: 14px;
}

.summary-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.summary-copy p:last-child,
.project-card p,
.stack-item p,
.event-copy p,
.check-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metrics div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 70px;
  padding: 10px;
}

.metrics dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.metrics dd {
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  margin-top: 7px;
}

.dashboard-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.panel {
  padding: 14px;
}

.section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-head.compact {
  margin-bottom: 10px;
}

.side-rail,
.stack-list,
.check-list,
.timeline {
  display: grid;
  gap: 10px;
}

.project-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card,
.stack-item,
.event-row,
.check-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.project-card {
  display: grid;
  gap: 9px;
}

.project-top,
.event-main,
.check-row {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.project-top > div,
.event-copy,
.check-copy {
  min-width: 0;
}

.progress-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.progress-track {
  background: var(--surface-soft);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  background: var(--brand);
  height: 100%;
  min-width: 2px;
}

.project-meta {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 4px;
}

.signal,
.status-dot {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.signal-gruen,
.status-gruen {
  background: var(--green);
}

.signal-gelb,
.status-gelb {
  background: var(--yellow);
}

.signal-rot,
.status-rot {
  background: var(--red);
}

.signal-grau,
.status-grau {
  background: var(--gray);
}

.pill {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  min-height: 27px;
  padding: 5px 8px;
  white-space: nowrap;
}

.event-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 86px minmax(0, 1fr) auto;
}

.event-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.event-meta {
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  min-height: 34px;
  padding: 7px 10px;
}

.technical-details {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  padding-top: 10px;
}

.technical-details summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

#technical-detail-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.sr-only {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

@media (max-width: 1180px) {
  .overview-band,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-head {
    min-height: 72px;
    padding: 10px 12px;
  }

  .brand-logo {
    height: 34px;
    width: 34px;
  }

  h1 {
    font-size: 21px;
  }

  .refresh-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .event-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .shell {
    padding-inline: 8px;
  }

  .metrics,
  .project-grid,
  .refresh-strip {
    grid-template-columns: 1fr;
  }
}
