/* Atlas Living — issue planning & tracking board */
.al-page.app-shell {
  height: 100vh;
  overflow: hidden;
}

.al-page .main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.al-page .content {
  padding: 0 0 2rem;
  max-width: none;
}

.al-hero {
  background: linear-gradient(135deg, #4538a0 0%, #6b5cd6 50%, #a29bff 100%);
  color: #f8fafc;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.al-hero h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin: 0;
  font-weight: 600;
}
.al-hero .al-meta {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 0.35rem 0 0;
}
.al-hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  font-size: 0.78rem;
}
.al-hero-stats span {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
}

.al-issue-rail-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  overflow-x: auto;
}
.al-issue-rail {
  display: flex;
  gap: 0.5rem;
  min-width: min-content;
}
.al-issue-chip {
  flex: 0 0 auto;
  min-width: 7.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s ease;
}
.al-issue-chip:hover {
  border-color: var(--accent);
}
.al-issue-chip.active {
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}
.al-issue-chip .week {
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
}
.al-issue-chip .week-date {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent, #0f766e);
  display: block;
  margin-top: 0.1rem;
  line-height: 1.25;
}
.al-issue-chip .press {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.al-issue-chip .health-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.al-issue-chip .health-dot.Red { background: var(--status-red); }
.al-issue-chip .health-dot.Amber { background: var(--status-amber); }
.al-issue-chip .health-dot.Green { background: var(--status-green); }
.al-issue-chip .health-dot.Blue { background: var(--status-blue); }

.al-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem 0.5rem;
}
.al-kpis {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.al-kpi {
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.al-kpi strong {
  font-size: 1rem;
  margin-right: 0.25rem;
}

.al-tracking-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 1.5rem 1.5rem;
}

.al-tracking {
  --al-sticky-slot: 5.25rem;
  --al-sticky-status: 5.5rem;
  min-width: 1200px;
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.al-tracking thead {
  background: #f8fafc;
}

.al-tracking th {
  position: sticky;
  top: 0;
  z-index: 3;
  text-align: left;
  padding: 0.6rem 0.65rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  white-space: nowrap;
}

.al-tracking th:nth-child(1),
.al-tracking td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: var(--al-sticky-slot);
}

.al-tracking th:last-child,
.al-tracking td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: var(--al-sticky-status);
  box-shadow: -6px 0 10px rgba(28, 25, 23, 0.06);
}

.al-tracking th:nth-child(1),
.al-tracking th:last-child {
  z-index: 4;
}

.al-tracking td:nth-child(1),
.al-tracking td:last-child {
  background: var(--surface);
}

.al-tracking tbody tr:hover td:nth-child(1),
.al-tracking tbody tr:hover td:last-child {
  background: rgba(15, 118, 110, 0.06);
}

.al-tracking tbody tr.row-red td:nth-child(1),
.al-tracking tbody tr.row-red td:last-child {
  background: rgba(220, 38, 38, 0.04);
}
.al-tracking td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.al-tracking tbody tr {
  cursor: pointer;
  transition: background 0.1s;
}
.al-tracking tbody tr:hover {
  background: rgba(15, 118, 110, 0.06);
}
.al-tracking tbody tr.row-red {
  background: rgba(220, 38, 38, 0.04);
}
.al-tracking tbody tr.row-blocked td:first-child {
  box-shadow: inset 3px 0 0 var(--status-red);
}
.al-tracking tbody tr.row-blocked td:last-child {
  box-shadow: inset -3px 0 0 var(--status-red);
}
.al-slot-code {
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.al-title-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.al-title-cell.empty {
  color: var(--muted);
  font-style: italic;
}

.al-issue-focus {
  padding: 0.5rem 1.5rem 0;
}
.al-issue-focus h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0;
}
.al-stepper-wrap {
  padding: 0 1.5rem 0.5rem;
}
