/* ==========================================================================
   Fivicon Admin — visual system
   Implements the "UI/UX Design Deviation" doc: calm product aesthetic,
   plain-language status, scores that show their reasoning, no visible
   plumbing in the primary view.
   ========================================================================== */

:root {
  --bg: #0a0a0e;
  --surface: #111116;
  --card: #131318;
  --card-inset: #0d0d11;
  --border: #201f29;
  --border-subtle: #1a1a22;

  --text: #f0eff6;
  --text-strong: #e7e6ee;
  --text-secondary: #9c9aab;
  --text-muted: #5c5b68;
  --text-muted-2: #7a7889;

  --accent: #7c6cff;
  --accent-2: #9686ff;
  --accent-wash: rgba(124, 108, 255, 0.14);
  --accent-border: rgba(124, 108, 255, 0.38);

  --success: #3ed598;
  --success-wash: rgba(62, 213, 152, 0.13);
  --warning: #f5a623;
  --warning-wash: rgba(245, 166, 35, 0.14);
  --danger: #ff6b6b;
  --danger-wash: rgba(255, 107, 107, 0.14);

  --radius-card: 16px;
  --radius-tile: 9px;
  --radius-pill: 999px;

  --font-display: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --sidebar-w: 220px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-strong);
  margin: 0;
}

a { color: inherit; }

code, .mono, .amMono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

.amSkip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 200;
}
.amSkip:focus { left: 12px; top: 12px; }

/* ---------- Shell ---------- */

.amShell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.amNav {
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 18px 12px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.amBrand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 18px;
}

.amBrandMark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.amBrandMark img { height: 26px; width: auto; display: block; }

.amBrandName {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-strong);
  line-height: 1.2;
}
.amBrandSub {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 1px;
}

.amNavGroupTitle {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 10px 6px;
}

.amNavList {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amNavItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.amNavItem svg { flex: none; stroke: currentColor; }
.amNavItem:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.amNavItem.isActive {
  background: #1b1a24;
  color: #fff;
}
.amNavItem.isActive svg { stroke: var(--accent); }

.amNavFoot {
  margin-top: auto;
  padding: 10px 8px 0;
  border-top: 1px solid var(--border-subtle);
}
.amNavFootRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
}
.amNavFootLabel { font-size: 12px; color: var(--text-secondary); }
.amNavFootValue { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* Usage badge, sitting above "Signed in" inside the same sidebar-foot block. */
.amNavUsage {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 2px 14px;
  cursor: pointer;
  font: inherit;
}
.amNavUsage:hover .amHeaderUsageValue { color: var(--accent-2); }
.amHeaderUsageValue { display: block; font-size: 13px; color: var(--text-strong); font-weight: 600; margin-top: 4px; }
.amHeaderUsageTrack {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 8px;
}
.amHeaderUsageFill { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.2s ease; }
.amNavUsage.isNearLimit .amHeaderUsageValue { color: var(--danger); }
.amNavUsage.isNearLimit .amHeaderUsageFill { background: var(--danger); }

/* ---------- Main column ---------- */

.amMain {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.amTopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 14, 0.86);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.amCrumb {
  font-size: 12.5px;
  color: var(--text-muted-2);
}
.amCrumb b { color: var(--text-secondary); font-weight: 500; }

.amTopbarRight { display: flex; align-items: center; gap: 10px; }

.amToast {
  font-size: 12.5px;
  color: var(--text-secondary);
  min-height: 18px;
}

.amBody { padding: 24px 28px 60px; }

.amPageHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.amPageHead h1 { font-size: 22px; }
.amPageHead p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  max-width: 640px;
}

[hidden] { display: none !important; }

/* ---------- Buttons ---------- */

.amBtn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border-radius: 9px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.12s, background 0.12s, transform 0.05s;
  white-space: nowrap;
}
.amBtn:hover { border-color: #2c2b3a; background: #17171e; }
.amBtn:active { transform: translateY(1px); }
.amBtn:disabled { opacity: 0.45; cursor: not-allowed; }

.amBtn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.amBtn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.amBtn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.amBtn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.amBtn--danger {
  background: transparent;
  border-color: var(--border);
  color: var(--danger);
}
.amBtn--danger:hover { background: var(--danger-wash); border-color: rgba(255, 107, 107, 0.4); }

.amBtn--sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

.amIconBtn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-secondary);
  cursor: pointer;
}
.amIconBtn:hover { color: var(--text); border-color: #2c2b3a; }
.amIconBtn svg { transition: transform 0.15s ease; }
.amIconBtn.isSelected { color: var(--accent); border-color: var(--accent-border); background: var(--accent-wash); }
.amIconBtn.isSelected svg { transform: rotate(180deg); }

/* ---------- Cards ---------- */

.amCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.amCardHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.amCardHead .amCardTitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-strong);
}
.amCardHead .amCardSub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.amCardHeadActions { display: flex; align-items: center; gap: 8px; }

.amCardBody { padding: 18px; }
.amCardBody--tight { padding: 0; }

.amGrid { display: grid; gap: 18px; }
.amGrid--2 { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 980px) { .amGrid--2 { grid-template-columns: 1fr; } }

/* ---------- Stat tiles ---------- */

.amStats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .amStats { grid-template-columns: repeat(2, 1fr); } }
.amStats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .amStats--3 { grid-template-columns: 1fr; } }

.amStat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
}
.amStatLabel { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.amStatValue {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-strong);
  margin-top: 6px;
}

/* ---------- Pills / status ---------- */

.amPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.amPill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.amPill--success { background: var(--success-wash); color: var(--success); }
.amPill--warning { background: var(--warning-wash); color: var(--warning); }
.amPill--danger  { background: var(--danger-wash); color: var(--danger); }
.amPill--neutral { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }
.amPill--accent  { background: var(--accent-wash); color: var(--accent-2); }

/* ---------- Tables ---------- */

.amTableWrap { overflow-x: auto; }

.amTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.amTable thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.amTable tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text);
}
.amTable tbody tr:last-child td { border-bottom: none; }
.amTable tbody tr.isClickable { cursor: pointer; }
.amTable tbody tr.isClickable:hover { background: rgba(255, 255, 255, 0.02); }

.amTableEmpty, .amTableLoading {
  padding: 28px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.amPagerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.amCompanyCell { display: flex; align-items: center; gap: 10px; }
.amCompanyLogo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--card-inset);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
}
.amCompanyLogo img { width: 100%; height: 100%; object-fit: contain; }
.amCompanyName { font-weight: 500; color: var(--text-strong); }
.amCompanyMeta { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* ---------- Forms ---------- */

.amField { display: flex; flex-direction: column; gap: 6px; }
.amField label { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; }
.amField .amHint { font-size: 11.5px; color: var(--text-muted); }

.amInput {
  background: var(--card-inset);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  width: 100%;
}
.amInput:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px var(--accent-wash); }
.amInput.amMono { font-family: var(--font-mono); }

.amSearchRow {
  display: flex;
  gap: 10px;
  align-items: center;
}
.amSearchRow .amInput { flex: 1; }

/* ---------- Segmented control (format preference etc) ---------- */

.amSegmented {
  display: inline-flex;
  background: var(--card-inset);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.amSegmented button {
  border: none;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.amSegmented button.isSelected { background: var(--accent); color: #fff; }
.amSegmented button:not(.isSelected):hover { color: var(--text); }

/* ---------- Score / "Why this score" ---------- */

.amScoreHead {
  display: flex;
  align-items: center;
  gap: 18px;
}
.amScoreCircle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--card-inset);
  border: 1px solid var(--border);
  position: relative;
}
.amScoreCircle strong {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-strong);
}

.amDisclosure {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--card-inset);
  overflow: hidden;
}
.amDisclosureToggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
}
.amDisclosureToggle .amChevron { transition: transform 0.15s; color: var(--text-muted); }
.amDisclosure.isOpen .amChevron { transform: rotate(180deg); }
.amDisclosureBody { padding: 0 14px 14px; }
.amDisclosure:not(.isOpen) .amDisclosureBody { display: none; }

.amSignalRow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.amSignalLabel { font-size: 12.5px; color: var(--text-secondary); width: 110px; flex: none; }
.amSignalBarTrack {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.amSignalBarFill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.amSignalValue { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted-2); width: 44px; text-align: right; flex: none; }

.amPenaltyNote {
  margin-top: 8px;
  font-size: 12px;
  color: var(--warning);
}

/* ---------- Logo variant grid ---------- */

.amLogoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.amLogoTile {
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  background: var(--card-inset);
  padding: 10px;
  cursor: pointer;
  text-align: left;
}
.amLogoTile:hover { border-color: #2c2b3a; }
.amLogoTile.isSelected { border-color: var(--accent-border); box-shadow: 0 0 0 1px var(--accent-border); }
.amLogoTileImg {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.amLogoTileImg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.amLogoTileMeta { font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; }
.amLogoTileScore { font-family: var(--font-mono); color: var(--text-secondary); }

/* ---------- Code / URL blocks ---------- */

.amCodeBlock {
  background: var(--card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
}
.amCodeRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 12px;
}
.amCodeRow code { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

.amTimeline { display: flex; flex-direction: column; }
.amTimelineRow {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.amTimelineRow:last-child { border-bottom: none; }
.amTimelineDot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); margin-top: 6px; flex: none; }
.amTimelineBody { flex: 1; }
.amTimelineText { font-size: 13px; color: var(--text); }
.amTimelineTime { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; font-family: var(--font-mono); }

/* ---------- Explainer / info card ---------- */

.amExplainer {
  background: var(--card-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.amExplainer + .amExplainer { margin-top: 10px; }
.amAuthModes { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.amAuthMode { display: flex; gap: 10px; align-items: flex-start; }
.amAuthModeTag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  background: var(--accent-wash);
  border-radius: 6px;
  padding: 2px 7px;
  flex: none;
  margin-top: 1px;
}

/* ---------- Modal ---------- */

.amModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 9, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.amModal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 22px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.amModalTitle { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-strong); }
.amModalBody { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.amModalActions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.amWarnBanner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--warning-wash);
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: #ffd08a;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 12.5px;
  margin: 14px 0;
}

/* ---------- Chips (webhooks events) ---------- */

.amChips { display: flex; flex-wrap: wrap; gap: 6px; }
.amChip {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card-inset);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-mono);
}
.amChip.isSelected { background: var(--accent-wash); border-color: var(--accent-border); color: var(--accent-2); }

/* ---------- Detail view (Company detail) ---------- */

.amDetailHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.amDetailIdentity { display: flex; align-items: center; gap: 14px; }
.amDetailLogo {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--card-inset);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.amDetailLogo img { width: 78%; height: 78%; object-fit: contain; }
.amDetailTitleRow { display: flex; align-items: center; gap: 10px; }
.amDetailDomain { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-strong); }
.amDetailSub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.amBackLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted-2);
  font-size: 12.5px;
  text-decoration: none;
  margin-bottom: 14px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}
.amBackLink:hover { color: var(--text-secondary); }

/* ---------- Skeleton / loading ---------- */

.amSkeleton {
  background: linear-gradient(90deg, var(--card-inset) 0%, #17171f 50%, var(--card-inset) 100%);
  background-size: 200% 100%;
  animation: amShimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes amShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Overview ---------- */

.amHint { font-size: 12.5px; color: var(--text-muted); }

.amQuickActions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .amQuickActions { grid-template-columns: 1fr; } }

.amQuickAction {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  background: var(--card-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 12px 14px;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.amQuickAction:hover { border-color: var(--accent-border); background: rgba(124, 108, 255, 0.06); }
.amQuickActionTitle { font-weight: 600; color: var(--text-strong); font-size: 13px; }
.amQuickActionSub { font-size: 12px; color: var(--text-muted); }

.amChecklistItem {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border-subtle);
  padding: 10px 0;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.amChecklistItem:first-child { border-top: none; }
.amChecklistItem:hover { color: var(--text); }
.amChecklistItem.isDone { color: var(--text-muted); }
.amChecklistCheck {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--success);
  text-decoration: none; /* isDone's line-through is scoped to .amChecklistLabel — keep the checkmark itself clean */
}
.amChecklistItem.isDone .amChecklistCheck { background: var(--success-wash); border-color: transparent; }
.amChecklistItem.isDone .amChecklistLabel { text-decoration: line-through; }

.amOverviewListRow { padding: 6px 0; border-top: 1px solid var(--border-subtle); }
.amOverviewListRow:first-child { border-top: none; }

.amUsageBigNumber { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--text-strong); }

/* ---------- Utility ---------- */

.amMutedText { color: var(--text-muted); }
.amSecondaryText { color: var(--text-secondary); }
.amFlexRow { display: flex; align-items: center; gap: 10px; }
.amGap6 { gap: 6px; }
.amFullBleed { margin: 0; }

.amGate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

@media (max-width: 860px) {
  .amShell { grid-template-columns: 1fr; }
  .amNav { position: relative; height: auto; }
  .amBody { padding: 18px; }
  .amTopbar { padding: 14px 18px; }
}
