@charset "utf-8";
/* M2 Status Dashboard — extracted styles */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02", "tnum";
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  font-variant-numeric: tabular-nums;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.logo { height: 34px; width: auto; display: block; flex-shrink: 0; }

.header-title-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  line-height: 1.2;
}
.header-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
  color: var(--text);
}
.header-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
  color: var(--text-muted);
}
.header-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 999px;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border); }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; height: 30px; box-sizing: border-box; border: 1px solid var(--border-subtle); border-radius: 999px; padding: 2px; background: transparent; }
.lang-switch .lang-opt { font: inherit; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .03em; padding: 0 9px; height: 100%; display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s; }
.lang-switch .lang-opt:hover { color: var(--text); }
.lang-switch .lang-opt.is-active { background: var(--surface-hover); color: var(--text); }
[data-theme="dark"] .lang-switch { border-color: var(--border-subtle); }
[data-theme="dark"] .lang-switch .lang-opt.is-active { background: var(--surface-hover); color: var(--text); }

/* ===== Project Wiki — primary header action ===== */
.wiki-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
  white-space: nowrap;
  line-height: 1;
}
.wiki-action svg:first-of-type { opacity: 0.85; }
.wiki-action-arrow { opacity: 0.5; transition: transform .15s, opacity .15s; }
.wiki-action:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
  box-shadow: 0 4px 12px -6px rgba(20, 18, 14, 0.25);
}
.wiki-action:hover .wiki-action-arrow { opacity: 0.9; transform: translateX(2px); }
.wiki-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[data-theme="dark"] .header {
  background: var(--surface);
  border-bottom-color: var(--border-subtle);
}
[data-theme="dark"] .header-title { color: var(--text); }
[data-theme="dark"] .header-meta { color: var(--text-muted); }
[data-theme="dark"] .theme-toggle { background: transparent; border-color: var(--border-subtle); color: var(--text-muted); }
[data-theme="dark"] .theme-toggle:hover { background: var(--surface-hover); color: var(--text); }
[data-theme="dark"] .wiki-action {
  background: var(--surface-soft);
  border-color: var(--border-strong);
  color: var(--text);
}
[data-theme="dark"] .wiki-action:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

/* ===== Nav strip — collapsed Adobe docs menu ===== */
.nav-strip {
  padding: 6px 20px;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
  margin-top: -2px;
  position: relative;
}
.nav-strip > summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: color .12s, background .12s;
  user-select: none;
}
.nav-strip > summary::-webkit-details-marker { display: none; }
.nav-strip > summary::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0.6;
  transition: transform .15s;
}
.nav-strip[open] > summary { color: var(--text-secondary); }
.nav-strip[open] > summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.nav-strip > summary:hover { color: var(--text-secondary); }
.nav-strip-menu {
  position: absolute;
  top: 100%;
  left: 16px;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(20, 18, 14, 0.08);
  z-index: 20;
}
[data-theme="dark"] .nav-strip-menu {
  background: var(--surface-soft);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}
.nav-strip-menu a {
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  transition: background .12s, color .12s;
}
.nav-strip-menu a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

/* ===== Container ===== */
.container {
  max-width: 1640px;
  margin: 0 auto;
  padding: 32px 40px 56px;
  display: flex;
  flex-direction: column;
}

/* ===== Brief (single editorial card with internal hairline structure) ===== */
.brief {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 22px 18px;
  margin-bottom: 28px;
  box-shadow: var(--glass-shadow);
}

/* Collapsible summary header */
.brief > summary.brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.brief > summary.brief-head::-webkit-details-marker { display: none; }
.brief > summary.brief-head .eyebrow { margin: 0; }
.brief > summary.brief-head::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform .15s ease, color .12s;
}
.brief:not([open]) > summary.brief-head::after { transform: rotate(-45deg); }
.brief > summary.brief-head:hover::after { border-color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .brief > summary.brief-head::after { transition: none; }
}
.brief[open] > summary.brief-head { margin-bottom: 14px; }

/* Collapsed fleet summary: one short, color-coded line of affected products */
.brief > summary.brief-head { flex-wrap: wrap; }
.brief > summary.brief-head .eyebrow { order: 1; }
.brief > summary.brief-head::after { order: 2; margin-left: auto; }
.brief-collapsed-line { order: 3; flex-basis: 100%; display: none; }
.brief:not([open]) > summary.brief-head .brief-collapsed-line {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.bcl-count { font-weight: 600; }
.bcl-count.is-crit, .bcl-product.is-crit { color: var(--status-crit); }
.bcl-count.is-warn, .bcl-product.is-warn { color: var(--status-warn); }
.bcl-count.is-good { color: var(--status-good); }
.bcl-count.is-muted { color: var(--text-muted); }
.bcl-product { font-weight: 500; }
.bcl-sep { color: var(--text-muted); margin: 0 2px; }
.bcl-more { color: var(--text-muted); font-size: 12px; }

.brief-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 36px;
  align-items: start;
  margin-bottom: 16px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 6px;
  line-height: 1;
}

.brief-headline {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.brief-headline-num {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.3;
}
.brief-headline-num.attn { color: var(--status-crit); }
.brief-headline-text {
  color: var(--text);
  font-weight: 600;
}
.brief-subline {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 2px 0 0;
  line-height: 1.4;
  max-width: 60ch;
}

/* Risk focus — compact three-line callout */
.risk-list {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 3px;
}
.risk-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  font-size: 12px;
  line-height: 1.45;
  align-items: baseline;
}
.risk-row dt {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}
.risk-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}
.risk-row.crit dt { color: var(--status-crit); }
.risk-row.warn dt { color: var(--status-warn); }
.risk-row.good dt { color: var(--status-good); }

/* Metrics — 2x2 grid with internal hairlines, no per-tile boxes */
.brief-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}
.metric {
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.metric:nth-child(2n) { border-right: none; }
.metric:nth-last-child(-n+2) { border-bottom: none; }
.metric-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1;
}
.metric-value {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.metric-value.good { color: var(--status-good); }
.metric-value.warn { color: var(--status-warn); }
.metric-value.crit { color: var(--status-crit); }
.metric-eol.is-critical .metric-label { color: var(--status-crit); }
.metric-eol.is-critical .metric-value { font-weight: 600; }
.metric-eol.is-critical::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  bottom: 0;
  background: var(--status-crit);
}

/* Section rules — hairline with eyebrow label and optional meta */
.brief-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
}
.brief-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.brief-rule-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
.brief-rule-meta {
  font-size: 10.5px;
  color: var(--text-faint);
  white-space: nowrap;
  order: 3;
  font-variant-numeric: tabular-nums;
}

/* Affected pills */
.pill-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill-row > li { list-style: none; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  transition: border-color .12s, background .12s;
  white-space: nowrap;
}
.pill:hover { background: var(--surface-hover); border-color: var(--border); }
.pill.is-crit { border-color: rgba(153, 27, 27, 0.28); }
.pill.is-crit:hover { border-color: var(--status-crit); }
.pill.is-warn { border-color: var(--border-subtle); }
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--text-muted);
}
.pill.is-crit .pill-dot { background: var(--status-crit); }
.pill.is-warn .pill-dot { background: var(--status-warn); }

/* Action required — real HTML table inside the brief card */
.action-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.action-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  white-space: nowrap;
}
.action-table tr:last-child td { border-bottom: none; }
.action-table tr:hover td { background: var(--surface-hover); }
.action-table a { color: inherit; text-decoration: none; }
.action-table .at-name {
  padding-right: 24px;
  font-weight: 600;
  width: 200px;
}
.action-table .at-name a:hover { color: var(--accent); }
.action-table .at-badge { width: 120px; padding-right: 16px; }
.action-table .at-version {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding-right: 24px;
  width: 240px;
}
.action-table .at-version .mono { font-size: 12.5px; color: var(--text); font-weight: 500; }
.action-table .at-version .at-arrow { color: var(--text-faint); margin: 0 4px; }
.action-table .at-reason { color: var(--text-muted); font-size: 12.5px; }
.action-table .at-go {
  width: 32px;
  text-align: right;
  color: var(--text-faint);
  font-size: 16px;
}
.action-table .at-go a { display: inline-block; padding: 0 4px; transition: color .12s, transform .12s; }
.action-table tr:hover .at-go a { color: var(--text); transform: translateX(2px); }

/* Tag — semantic status label used in action table */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.tag.good { background: var(--status-bg-good); color: var(--status-good); }
.tag.warn { background: var(--status-bg-warn); color: var(--status-warn); }
.tag.crit { background: var(--status-bg-crit); color: var(--status-crit); }

.brief-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.brief-view-all:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Generic colored dot (used in table contexts) */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.dot.good { background: var(--status-good); }
.dot.warn { background: var(--status-warn); }
.dot.crit { background: var(--status-crit); }
.dot.muted { background: var(--text-muted); }

[data-theme="dark"] .brief { border-color: var(--border-subtle); }
[data-theme="dark"] .brief-metrics { border-color: var(--border-subtle); }
[data-theme="dark"] .metric { border-color: var(--border-subtle); }
[data-theme="dark"] .pill { background: var(--surface-soft); border-color: var(--border-subtle); }
[data-theme="dark"] .pill:hover { background: var(--surface-hover); }
[data-theme="dark"] .action-table tr:hover td { background: var(--surface-hover); }

/* ===== Section (low-emphasis container for dense data) ===== */
.section {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 32px;
  overflow: clip;
  box-shadow: var(--glass-shadow);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
}
.section-header.collapsible {
  cursor: pointer;
  list-style: none;
  user-select: none;
  align-items: center;
}
.section-header.collapsible::-webkit-details-marker { display: none; }
.section-header.collapsible::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(-45deg);
  margin-right: 4px;
  flex-shrink: 0;
  transition: transform .15s ease, border-color .12s;
}
details[open] > .section-header.collapsible::after { transform: rotate(45deg); }
.section-header.collapsible:hover::after { border-color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .section-header.collapsible::after { transition: none; }
}
.section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-transform: none;
}
.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ===== Tables ===== */
.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

thead th {
  text-align: left;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
thead th::after {
  content: " \2195";
  opacity: 0.22;
  margin-left: 2px;
  font-size: 11px;
  display: inline-block;
  transition: opacity .15s;
}
thead th:hover::after { opacity: 0.5; }
thead th[data-nosort] { cursor: default; }
thead th[data-nosort]::after { content: ""; margin: 0; }
thead th.sort-asc { color: var(--text); }
thead th.sort-desc { color: var(--text); }
thead th.sort-asc::after { content: " \2191"; opacity: 0.9; }
thead th.sort-desc::after { content: " \2193"; opacity: 0.9; }

tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-hover); }
[data-theme="dark"] tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* Row status — colored left edge on the first cell, replaces the badge next to name */
tbody tr[data-status] > td:first-child {
  border-left: 3px solid transparent;
}
tbody tr[data-status="good"] > td:first-child { border-left-color: var(--status-good); }
tbody tr[data-status="warn"] > td:first-child { border-left-color: var(--status-warn); }
tbody tr[data-status="crit"] > td:first-child { border-left-color: var(--status-crit); }
tbody tr[data-status="muted"] > td:first-child { border-left-color: var(--border); }

.th-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 9px;
  font-weight: 600;
  margin-left: 6px;
  color: var(--text-muted);
  background: var(--surface);
  vertical-align: middle;
  position: relative;
  cursor: help;
}
.th-help:hover { color: var(--text); border-color: var(--text-muted); }

/* Fixed-position tooltip appended to body via JS */
.th-tooltip {
  position: fixed;
  background: var(--text);
  color: var(--surface);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 7px 10px;
  border-radius: 4px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  text-align: left;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.th-tooltip.visible { opacity: 1; }

/* ===== Status (unified compact badge) ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.badge.good { color: #1a7a3f; background: rgba(21, 128, 61, 0.07); }
.badge.warn { color: #7c5a2a; background: rgba(138, 90, 37, 0.06); }
.badge.crit { color: #8a2a2a; background: rgba(153, 27, 27, 0.06); }
[data-theme="dark"] .badge.good { color: #6acb87; background: rgba(106, 203, 135, 0.14); }
[data-theme="dark"] .badge.warn { color: #cf9a5e; background: rgba(207, 154, 94, 0.12); }
[data-theme="dark"] .badge.crit { color: #e07a7a; background: rgba(224, 122, 122, 0.13); }
.badge.muted { color: var(--text-muted); background: var(--surface-hover); }

/* Plain status text + dot — used when emphasis isn't needed (e.g., subtle metadata) */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.status.good { color: var(--status-good); }
.status.warn { color: var(--status-warn); }
.status.crit { color: var(--status-crit); }
.status.muted { color: var(--text-muted); }

.not-checked {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Project cell ===== */
.project-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.project-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.project-cell .name {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.005em;
}
.project-cell .name:hover { color: var(--accent); }
.project-cell .slug {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.project-cell .meta {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.project-cell .meta .sep { color: var(--border-strong); margin: 0 6px; }

/* ===== Version cell ===== */
.version-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.version-text {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: -0.01em;
}
.version-text.good { color: var(--status-good); }
.version-text.warn { color: var(--status-warn); }
.version-text.crit { color: var(--status-crit); }
.version-link { color: inherit; }
.version-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

.version-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: var(--text-muted);
}
.version-meta .fallback { color: var(--status-warn); }
.version-meta .patch-hint { color: var(--status-warn); opacity: 0.78; }
.version-meta .commit-sha {
  color: var(--text-muted);
  opacity: 0.75;
  letter-spacing: -0.01em;
  transition: color .12s, opacity .12s;
}
.version-meta a.commit-sha:hover { color: var(--text); opacity: 1; }
.version-meta .from-cache {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--text-muted);
  background: var(--surface-hover);
  padding: 1px 6px;
  border-radius: 3px;
  cursor: help;
}
.version-meta .patch-current {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--status-good);
  background: var(--status-bg-good);
  padding: 1px 6px;
  border-radius: 3px;
}
.version-meta .branch-drift {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--status-warn);
  background: var(--status-bg-warn);
  padding: 1px 6px;
  border-radius: 3px;
  cursor: help;
}

/* ===== Commit cell ===== */
.table-controls { display: flex; align-items: center; gap: 10px; margin: 14px 20px 16px; }
.project-search {
  flex: 0 1 360px;
  padding: 8px 13px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.project-search::placeholder { color: var(--text-muted); }
.project-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.search-count { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.commit-meta { display: flex; flex-direction: column; gap: 2px; }
.commit-author { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.commit-avatar, .assignee-avatar { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.commit-avatar-initials, .assignee-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  filter: saturate(0.55);
}
[data-theme="dark"] .commit-avatar-initials,
[data-theme="dark"] .assignee-avatar-initials { filter: saturate(0.45) brightness(0.92); }
.commit-date { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ===== Develop → prod cell ===== */
.ahead-count {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.ahead-meta {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  margin-top: 2px;
}

/* ===== PR cell ===== */
.pr-stack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pr-count { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; font-weight: 500; }
.pr-stale-badge {
  text-decoration: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
a.pr-stale-badge:hover { filter: brightness(0.85); }

.count {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* ===== Contributors ===== */
.contributors { display: flex; align-items: center; }
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  cursor: default;
  position: relative;
  border: 1.5px solid var(--surface);
  filter: saturate(0.55);
}
[data-theme="dark"] .avatar { filter: saturate(0.45) brightness(0.92); }
.avatar.avatar-more { filter: none; }
.avatar + .avatar { margin-left: -8px; }
.avatar-more { background: var(--border); color: var(--text-secondary); }
.tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(.96);
  background: var(--text);
  color: var(--surface);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s, transform .12s;
  z-index: 20;
}
.avatar:hover .tooltip { opacity: 1; transform: translateX(-50%) scale(1); }

/* ===== Empty state in tables ===== */
.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Release schedule ===== */
.schedule-body { padding: 16px 20px; }
.schedule-body img {
  display: block;
  max-width: 560px;
  width: 100%;
  height: auto;
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 20px 24px 32px;
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .container { padding: 20px 20px 32px; }
  .brief { padding: 18px 20px 18px; }
  .brief-hero { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 900px) {
  .header { padding: 10px 16px; flex-wrap: wrap; }
  .nav-strip { padding: 6px 12px; }
  table { min-width: 760px; }
  .risk-row { grid-template-columns: 96px 1fr; gap: 10px; }
  .action-table .at-name { width: 160px; padding-right: 14px; }
  .action-table .at-badge { width: 100px; }
  .action-table .at-version { width: 180px; padding-right: 14px; }
}

@media (max-width: 600px) {
  .header { padding: 10px 12px; gap: 8px; }
  .header-title { font-size: 14px; }
  .container { padding: 14px 12px 28px; }
  .brief { padding: 16px 14px 14px; border-radius: 10px; margin-bottom: 24px; }
  .brief-hero { gap: 14px; margin-bottom: 12px; }
  .brief-headline,
  .brief-headline-num { font-size: 14px; }
  .brief-subline { font-size: 12px; }
  .risk-list { margin-top: 10px; padding-top: 8px; }
  .risk-row { grid-template-columns: 78px 1fr; gap: 8px; font-size: 11.5px; }
  .metric { padding: 10px 12px; gap: 5px; }
  .metric-value { font-size: 18px; }
  .brief-rule { margin: 12px 0 8px; }
  .pill { padding: 4px 10px; font-size: 11.5px; }
  .action-table td { padding: 8px 0; }
  .action-table .at-name { width: auto; padding-right: 10px; }
  .action-table .at-badge { width: auto; padding-right: 10px; }
  .action-table .at-version, .action-table .at-reason { display: none; }
  .action-table .at-go { width: 24px; }
  .wiki-action { padding: 6px 10px; font-size: 12px; }
  /* Hide secondary columns; tap the row to open wiki for detail */
  #projects-table th:nth-child(3),
  #projects-table th:nth-child(4),
  #projects-table th:nth-child(6),
  #projects-table th:nth-child(7),
  #projects-table tbody td:nth-child(3),
  #projects-table tbody td:nth-child(4),
  #projects-table tbody td:nth-child(6),
  #projects-table tbody td:nth-child(7) { display: none; }
  table { min-width: 0; }
  tbody td { padding: 12px; }
  thead th { padding: 10px 12px; top: auto; position: static; }
}

/* ===== Sprint Board ===== */
.sprint-board-body {
  padding: 0 24px 16px;
}
.sprint-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 18px 0 16px;
  margin: 0;
  position: relative;
}
.sprint-card:first-child { border-top: none; padding-top: 8px; }
.sprint-card.active::before {
  content: "";
  position: absolute;
  top: 18px; left: -14px;
  width: 2px; height: 14px;
  background: var(--status-good);
  border-radius: 1px;
}
.sprint-card:first-child.active::before { top: 8px; }
.sprint-card.closed { opacity: 0.72; }
.sprint-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.sprint-card > summary.sprint-card-header {
  cursor: pointer;
  list-style: none;
  user-select: none;
  margin-bottom: 0;
}
.sprint-card > summary.sprint-card-header::-webkit-details-marker { display: none; }
.sprint-card[open] > summary.sprint-card-header { margin-bottom: 10px; }
.sprint-card > summary.sprint-card-header .sprint-name::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 7px;
  color: var(--text-muted);
  font-size: 10px;
  transition: transform .12s;
}
.sprint-card[open] > summary.sprint-card-header .sprint-name::before { transform: rotate(90deg); }
.sprint-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.sprint-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sprint-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sprint-pill.active {
  background: var(--status-bg-good);
  color: var(--status-good);
}
.sprint-pill.closed {
  background: var(--border-subtle);
  color: var(--text-muted);
}
.sprint-progress-bar {
  height: 2px;
  background: var(--border-subtle);
  margin-bottom: 10px;
  overflow: hidden;
}
.sprint-progress-fill {
  height: 100%;
  background: var(--status-good);
  transition: width 0.3s ease;
}
.sprint-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sprint-project-tag {
  font-size: 11px;
  padding: 0;
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sprint-project-tag + .sprint-project-tag {
  border-left: 1px solid var(--border-subtle);
  margin-left: 10px;
  padding-left: 10px;
}
.sprint-project-tag .done-count {
  color: var(--status-good);
  font-weight: 500;
}
.sprint-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
}
.sprint-issues {
  padding-top: 4px;
  margin-top: 12px;
}
.sprint-issue-row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0; font-size: 12px;
}
.sprint-issue-key {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  color: var(--accent); white-space: nowrap;
  text-decoration: none; flex-shrink: 0;
}
.sprint-issue-key:hover { text-decoration: underline; }
.sprint-issue-summary {
  color: var(--text-secondary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sprint-issue-assignee {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0; margin-left: auto;
}
.sprint-issues-more {
  font-size: 11px; color: var(--text-muted);
  padding-top: 4px;
}
.sprint-status-chip {
  display: inline-flex; align-items: center;
  padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  line-height: 1.6;
}
.sprint-status-chip.in-progress { color: #1e6fa5; background: rgba(30, 111, 165, 0.10); }
.sprint-status-chip.done { color: #15803d; background: rgba(21, 128, 61, 0.09); }
.sprint-status-chip.review { color: #8a5a25; background: rgba(138, 90, 37, 0.08); }
.sprint-status-chip.blocked { color: #991b1b; background: rgba(153, 27, 27, 0.08); }
.sprint-status-chip.neutral { color: var(--text-muted); background: var(--surface-hover); }
[data-theme="dark"] .sprint-status-chip.in-progress { color: #7cc4f0; background: rgba(124, 196, 240, 0.14); }
[data-theme="dark"] .sprint-status-chip.done { color: #6acb87; background: rgba(106, 203, 135, 0.14); }
[data-theme="dark"] .sprint-status-chip.review { color: #cf9a5e; background: rgba(207, 154, 94, 0.12); }
[data-theme="dark"] .sprint-status-chip.blocked { color: #e07a7a; background: rgba(224, 122, 122, 0.13); }
[data-theme="dark"] .sprint-status-chip.neutral { color: var(--text-muted); background: var(--surface-hover); }

/* Lazy-load skeleton */
.skeleton {
  display: inline-block;
  min-width: 48px;
  height: 20px;
  background: linear-gradient(90deg, var(--surface-soft) 25%, var(--surface-hover) 50%, var(--surface-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
  vertical-align: middle;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Design-system foundation (re-skin Phase A) ===== */

/* Shared chip recipe — status pills, filter chips, and the version-meta badges */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 10px; font-weight: 500; letter-spacing: .02em; text-transform: lowercase;
  padding: 1px 6px; border-radius: 3px;
}
.chip-passed, .chip-up_to_date, .chip-good { color: var(--status-good); background: var(--status-bg-good); }
.chip-failed, .chip-eol, .chip-crit { color: var(--status-crit); background: var(--status-bg-crit); }
.chip-running, .chip-needs_patch, .chip-warn { color: var(--status-warn); background: var(--status-bg-warn); }
.chip-stopped, .chip-unknown, .chip-none, .chip-muted { color: var(--text-muted); background: var(--surface-hover); }

.tabnum { font-variant-numeric: tabular-nums; }

/* Unified avatar (commit author, sprint assignee, wiki contributor) */
.avatar-img, .avatar-chip { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.avatar-chip {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 600; color: rgba(255, 255, 255, 0.95); filter: saturate(.55);
}
[data-theme="dark"] .avatar-chip { filter: saturate(.45) brightness(.92); }

/* Collapsible card shell (card() macro) */
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-glass);
  box-shadow: var(--glass-shadow);
  margin-bottom: 18px;
}
.card-head {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 14px 18px; list-style: none;
}
.card-head::-webkit-details-marker { display: none; }
.card-chevron { color: var(--text-muted); flex-shrink: 0; transition: transform .15s ease; }
.card[open] .card-chevron { transform: rotate(0deg); }
.card:not([open]) .card-chevron { transform: rotate(-90deg); }
.card-titles { display: inline-flex; align-items: baseline; gap: 8px; }
.card-title { font-weight: 600; font-size: 14px; color: var(--text); }
.card-subtitle { font-size: 12px; color: var(--text-muted); }
.card-summary {
  margin-left: auto; font-size: 12px; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.card[open] .card-summary { display: none; }
.card-body { padding: 0 18px 16px; }
.card-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-glass); }

@media (prefers-reduced-motion: reduce) {
  .card-chevron { transition: none; }
}

/* ===== Fleet insights ===== */
:root {
  --viz-1: #5b8bd0; --viz-2: #5aa469; --viz-3: #b079bf; --viz-4: #d6973f;
  --viz-5: #4fb0a6; --viz-6: #d2706f; --viz-7: #8a7fd1; --viz-8: #bf9a45;
}
[data-theme="dark"] {
  --viz-1: #7aa6e6; --viz-2: #74c084; --viz-3: #c79ad6; --viz-4: #e3ad62;
  --viz-5: #6fc7bd; --viz-6: #e0908f; --viz-7: #a99ee6; --viz-8: #d4b56a;
}
.ins-body { padding: 8px 22px 24px; }
.ins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 8px;
}
.ins-col { min-width: 0; }
.ins-h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 12px;
}
.ins-h3:first-child { margin-top: 0; }
.ins-bars { display: flex; flex-direction: column; gap: 5px; }
.ins-bar-row {
  display: grid;
  grid-template-columns: minmax(90px, 34%) 1fr auto;
  align-items: center;
  gap: 10px;
}
.ins-bar-label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ins-bar {
  height: 6px;
  background: var(--surface-hover);
  border-radius: 999px;
  overflow: hidden;
}
.ins-bar-fill {
  height: 100%;
  min-width: 2px;
  background: var(--accent);
  border-radius: 999px;
}
.ins-bar-count {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
  min-width: 20px;
}
.ins-more {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
  padding-left: 2px;
}
.ins-split { display: flex; flex-direction: column; gap: 16px; }
.ins-split-group { display: flex; flex-direction: column; gap: 5px; }
.ins-split-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-muted);
  margin: 0 0 4px;
}
/* Each stack group reads in its own hue so the panel isn't monochrome */
.ins-viz-0 .ins-bar-fill { background: var(--viz-1); }
.ins-viz-1 .ins-bar-fill { background: var(--viz-2); }
.ins-viz-2 .ins-bar-fill { background: var(--viz-3); }
.ins-viz-3 .ins-bar-fill { background: var(--viz-4); }
.ins-viz-0 .ins-split-head { color: var(--viz-1); }
.ins-viz-1 .ins-split-head { color: var(--viz-2); }
.ins-viz-2 .ins-split-head { color: var(--viz-3); }
.ins-viz-3 .ins-split-head { color: var(--viz-4); }

/* Relation graph */
.ins-graph {
  width: 100%;
  height: auto;
  max-height: 460px;
  display: block;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}
.ins-edge {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: .22;
}
.ins-node-project {
  r: 6px;
  fill: var(--text-muted);
  stroke: var(--surface-soft);
  stroke-width: 1.5;
  fill-opacity: .9;
}
.ins-node-service {
  r: 10px;
  fill: var(--accent);
  stroke: var(--surface-soft);
  stroke-width: 1.5;
}
.ins-svc-0, .ins-pnode-0 { fill: var(--viz-1); }
.ins-svc-1, .ins-pnode-1 { fill: var(--viz-2); }
.ins-svc-2, .ins-pnode-2 { fill: var(--viz-3); }
.ins-svc-3, .ins-pnode-3 { fill: var(--viz-4); }
.ins-svc-4, .ins-pnode-4 { fill: var(--viz-5); }
.ins-svc-5, .ins-pnode-5 { fill: var(--viz-6); }
.ins-svc-6, .ins-pnode-6 { fill: var(--viz-7); }
.ins-svc-7, .ins-pnode-7 { fill: var(--viz-8); }
.ins-node-label {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  paint-order: stroke;
  stroke: var(--surface-soft);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.ins-node-label-service {
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-secondary);
}
.ins-node-label-project {
  font-size: 9px;
  fill: var(--text-muted);
}

@media (max-width: 900px) {
  .ins-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Section edit mode ===== */
.section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  order: -1;
}
.section-chips[hidden] { display: none; }

.section-chips-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.section-chip:hover {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border);
}
.section-chip-plus {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.section-reset {
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 4px;
}
.section-reset:hover { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }

.edit-toggle {
  height: 30px;
  box-sizing: border-box;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.edit-toggle:hover { background: var(--surface-hover); color: var(--text); border-color: var(--border); }
.edit-toggle.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--status-bg-good);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

@keyframes m2-jiggle {
  0%, 100% { transform: rotate(-0.28deg); }
  50% { transform: rotate(0.28deg); }
}
.editing [data-section] {
  position: relative;
  cursor: grab;
  transform-origin: center;
  overflow: visible;
  will-change: transform;
  animation: m2-jiggle .42s ease-in-out infinite;
}
.editing [data-section]:nth-child(even) { animation-delay: -.21s; }
.editing [data-section]:hover { animation-play-state: paused; }
.editing [data-section].dragging { opacity: .5; cursor: grabbing; }
.reordering { cursor: grabbing; }
.reordering, .reordering * { user-select: none !important; }
.reordering [data-section] { animation-play-state: paused !important; }
/* In edit mode the whole card is a drag surface — inner links/content don't
   intercept the pointer (so dragging grabs the section, not a link/image).
   The close button is the one exception. */
.editing [data-section] > * { pointer-events: none; }
.editing [data-section] .section-x { pointer-events: auto; }

.section-x {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 100;
  box-shadow: 0 2px 8px -2px rgba(20, 18, 14, 0.3);
  transition: color .15s, border-color .15s, background .15s;
}
.editing .section-x { display: inline-flex; }
.section-x:hover { color: var(--status-crit); border-color: var(--status-crit); }

[data-theme="dark"] .section-chip { background: var(--surface); border-color: var(--border-subtle); }
[data-theme="dark"] .section-chip:hover { background: var(--surface-hover); border-color: var(--border); }
[data-theme="dark"] .edit-toggle { border-color: var(--border-subtle); }
[data-theme="dark"] .edit-toggle:hover { background: var(--surface-hover); }
[data-theme="dark"] .section-x { background: var(--surface); border-color: var(--border-strong); }
[data-theme="dark"] .section-x:hover { color: var(--status-crit); border-color: var(--status-crit); }

@media (prefers-reduced-motion: reduce) {
  .editing [data-section] { animation: none; }
}
