:root {
  --deep: #0B3D2A;
  --deep-2: #11492F;
  --deep-3: #16503A;
  --brand: #15803D;
  --brand-hover: #116B33;
  --accent: #22C55E;
  --mint: #E8F7EE;
  --ground: #F3F7F4;
  --card: #FFFFFF;
  --line: #DCE8E0;
  --line-soft: #EEF3EF;
  --text: #0B3D2A;
  --muted: #4A5F55;
  --on-deep: #CFE9D9;
  --error: #9B1C1C;
  --error-bg: #FDE8E8;
  --success-bg: #DCF3E4;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ground);
}
a { color: var(--brand); font-weight: 700; text-decoration: none; }
a:hover { color: var(--deep); text-decoration: underline; }
h1, h2 { font-family: var(--display); margin: 0; line-height: 1.2; }
h1 { font-size: 28px; }
p { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.error-text { color: var(--error); }

/* Layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex-shrink: 0; background: var(--deep); color: #fff;
  display: flex; flex-direction: column; gap: 32px; padding: 28px 18px;
  position: sticky; top: 0; height: 100vh;
}
.main { flex: 1; min-width: 0; padding: 36px 44px 60px; display: flex; flex-direction: column; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; background: #16A34A; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: #A7D7B9; }
.brand-dark .brand-name { color: var(--deep); }
.brand-dark .brand-sub { color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  color: var(--on-deep); font-weight: 600; text-decoration: none;
}
.nav-link:hover { background: var(--deep-2); color: #fff; text-decoration: none; }
.nav-link.is-active { background: var(--deep-3); color: #fff; font-weight: 700; }
.nav-label { flex: 1; }
.nav-badge { background: var(--accent); color: var(--deep); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; }

.agent-card { margin-top: auto; background: var(--deep-2); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--on-deep); }
.agent-row { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); flex-shrink: 0; }
.dot-warn { background: #F59E0B; }
.logout { display: inline-flex; align-items: center; gap: 6px; color: #A7D7B9; font-weight: 600; margin-top: 4px; }
.logout:hover { color: #fff; }
.logout .icon { width: 15px; height: 15px; }

/* Page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius); border: 1.5px solid transparent;
  font: 700 15px var(--body); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--deep); border-color: var(--deep); }
.btn-outline:hover { background: var(--mint); color: var(--deep); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--line-soft); color: var(--deep); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 6px 4px; font: 700 14px var(--body); color: var(--brand); cursor: pointer; }
.link-btn:hover { color: var(--deep); text-decoration: underline; }
.link-danger { color: var(--error); }

/* Forms */
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: 13px; }
.field-inline { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.field input, .field textarea, .field select {
  font: 500 15px var(--body); color: var(--text); background: #FBFDFB;
  border: 1px solid #C9DDD0; border-radius: var(--radius); padding: 11px 13px; min-height: 46px;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.grow { flex: 1; min-width: 220px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Flash */
.flash { padding: 12px 16px; border-radius: var(--radius); font-weight: 600; }
.flash-success { background: var(--success-bg); color: var(--deep); }
.flash-error { background: var(--error-bg); color: var(--error); }

/* Panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel-title { font-size: 17px; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head .panel-title { margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { font-family: var(--display); font-size: 28px; font-weight: 700; }

/* Review */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.review { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: 28px; }
.preview { display: block; border-radius: 14px; overflow: hidden; background: var(--mint); box-shadow: 0 12px 30px rgba(11, 61, 42, .14); aspect-ratio: 4 / 5; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.versions { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.version-list { display: flex; gap: 8px; flex-wrap: wrap; }
.version {
  width: 56px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--mint);
  cursor: pointer; overflow: hidden; display: flex; flex-direction: column;
}
.version img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.version span { font: 700 11px var(--body); color: var(--muted); padding: 2px 0; }
.version.is-current { border-color: var(--brand); }
.version.is-current span { color: var(--brand); }
.details-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.topic { font-size: 24px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--mint); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.changes { padding-top: 18px; border-top: 1px solid var(--line-soft); }

.empty { padding: 48px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { font-size: 21px; }
.empty p { max-width: 46ch; color: var(--muted); }

.side-col { display: flex; flex-direction: column; gap: 20px; }
.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.post-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius); color: var(--text); font-weight: 400; }
a.post-row:hover { background: var(--ground); text-decoration: none; color: var(--text); }
.post-row.is-selected { background: var(--mint); }
.thumb { width: 40px; height: 50px; border-radius: 7px; background: var(--mint); overflow: hidden; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-row-title { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pills: colors differ in lightness, not just hue */
.pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-pending { background: #EEF0EE; color: #3F4A44; }
.pill-generating, .pill-revising { background: #E6EEF9; color: #1E3A8A; }
.pill-review { background: #FEF3C7; color: #7A4B00; }
.pill-approved { background: var(--success-bg); color: var(--deep); }
.pill-posting { background: #E6EEF9; color: #1E3A8A; }
.pill-posted { background: var(--deep); color: #fff; }
.pill-failed { background: var(--error-bg); color: var(--error); }

/* Carousel */
.carousel { display: flex; flex-direction: column; gap: 10px; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px;
  background: var(--mint); box-shadow: 0 12px 30px rgba(11, 61, 42, .14); scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.carousel-slide a { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.carousel-slide figcaption span { background: rgba(255, 255, 255, .94); color: var(--deep); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.carousel-slide figcaption .spell-warn { background: #FEF3C7; color: #7A4B00; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.carousel-nav .btn { min-height: 38px; padding: 0 16px; font-size: 22px; line-height: 1; }
.chip-sm { font-size: 11px; padding: 3px 8px; margin-left: 6px; vertical-align: middle; }

/* History */
.history-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-count { font-size: 11px; font-weight: 800; opacity: .7; margin-left: 2px; }
.history-search { display: flex; gap: 8px; flex-wrap: wrap; }
.history-search input, .history-search select {
  font: 500 14px var(--body); color: var(--text); background: #FBFDFB;
  border: 1px solid #C9DDD0; border-radius: var(--radius); padding: 9px 12px; min-height: 42px;
}
.history-search input { min-width: 220px; }
.history-search .btn { min-height: 42px; }
.history-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.h-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); font-weight: 400; background: var(--card); transition: box-shadow .15s, transform .15s; }
.h-card:hover { text-decoration: none; color: var(--text); box-shadow: 0 10px 24px rgba(11, 61, 42, .12); transform: translateY(-2px); }
.h-thumb { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--mint); }
.h-thumb img { width: 100%; height: 100%; object-fit: cover; }
.h-thumb-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.h-badge { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgba(11, 61, 42, .82); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.h-badge .icon { width: 14px; height: 14px; }
.h-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.h-title { font-weight: 800; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-foot { margin-top: auto; padding-top: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; margin-bottom: 8px; }
.back-link .icon { width: 16px; height: 16px; }
.page-head .chips { margin-top: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(260px, 460px) minmax(0, 1fr); gap: 24px; align-items: start; }
.info-list { margin: 0 0 14px; display: grid; gap: 10px; }
.info-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.info-list dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.info-list dd { margin: 0; font-weight: 700; font-size: 14px; text-align: right; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.caption-box { white-space: pre-line; font-size: 14px; line-height: 1.6; background: var(--ground); border-radius: var(--radius); padding: 14px 16px; }
.pre-line { white-space: pre-line; font-size: 14px; }
.version-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.version-history li { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.version-history li.is-current { border-color: var(--brand); background: #F7FCF9; }
.version-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slide-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.slide-strip a { flex: 0 0 72px; border-radius: 8px; overflow: hidden; background: var(--mint); }
.slide-strip img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; }

/* Review: view tabs */
.view-tabs { display: flex; gap: 4px; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.view-tab { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 8px 10px; font: 700 13px var(--body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.view-tab:hover { color: var(--deep); }
.view-tab.is-active { background: var(--card); color: var(--deep); box-shadow: 0 2px 8px rgba(11, 61, 42, .12); }
.preview-note { margin-top: 10px; text-align: center; }

/* Phone mockup */
.phone { width: 100%; max-width: 360px; margin: 0 auto; background: #fff; color: #111; border: 10px solid #111; border-radius: 42px; overflow: hidden; box-shadow: 0 18px 40px rgba(11, 61, 42, .22); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 4px; font-size: 12px; font-weight: 700; }
.phone-island { width: 84px; height: 22px; background: #111; border-radius: 999px; }
.phone-icons { font-size: 7px; letter-spacing: 1px; }
.ig-nav { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; padding: 6px 12px; font-size: 15px; text-align: center; border-bottom: 1px solid #efefef; }
.ig-nav span:first-child { font-size: 26px; line-height: 1; text-align: left; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.ig-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #dbdbdb; background: #fff; }
.ig-name { font-weight: 700; font-size: 13px; flex: 1; }
.ig-more { font-weight: 900; letter-spacing: 1px; }
.ig-media { position: relative; background: #f2f2f2; }
.ig-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ig-track::-webkit-scrollbar { display: none; }
.ig-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; }
.ig-count { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ig-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 12px 4px; }
.ig-actions svg { width: 24px; height: 24px; fill: none; stroke: #111; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ig-icons { display: flex; gap: 14px; }
.ig-dots { display: flex; gap: 4px; justify-content: center; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.ig-dots i.on { background: #0095f6; }
.ig-save { justify-self: end; }
.ig-caption { padding: 4px 12px 2px; font-size: 13px; line-height: 1.45; white-space: pre-line; word-wrap: break-word; }
.ig-caption strong { margin-right: 4px; }
.ig-tag { color: #00376b; }
.ig-more-btn { border: 0; background: none; padding: 0; color: #737373; font: inherit; cursor: pointer; }
.ig-time { padding: 4px 12px 14px; font-size: 11px; color: #737373; }
.ig-profile { display: flex; align-items: center; gap: 18px; padding: 10px 14px 6px; }
.ig-avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid #dbdbdb; background: #fff; }
.ig-stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.ig-stats div { display: flex; flex-direction: column; font-size: 12px; }
.ig-stats strong { font-size: 15px; }
.ig-bio { display: flex; flex-direction: column; padding: 2px 14px 12px; font-size: 12.5px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-top: 1px solid #efefef; padding-top: 2px; }
.ig-tile { position: relative; aspect-ratio: 3 / 4; background: #efefef; overflow: hidden; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }
.ig-tile.is-current { outline: 3px solid var(--accent); outline-offset: -3px; }
.ig-tile-icon { position: absolute; top: 5px; right: 5px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.ig-tile-icon .icon { width: 14px; height: 14px; }
.ig-tile-new { position: absolute; left: 4px; bottom: 4px; background: var(--accent); color: var(--deep); font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 999px; }
.ig-tile-empty { background: #f7f7f7; }

/* Bulk select */
.bulk-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--ground); border-radius: var(--radius) var(--radius) 0 0; }
.bulk-all { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.bulk-actions { display: flex; gap: 6px; padding: 8px 10px 10px; background: var(--ground); border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 8px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.bulk-row { display: flex; align-items: center; gap: 6px; }
.bulk-row > a { flex: 1; min-width: 0; }
.bulk-check, .bulk-all input { width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.bulk-spacer { width: 18px; flex-shrink: 0; }

/* AI costs */
.flash-warn { background: #FEF3C7; color: #7A4B00; }
.flash a { margin-left: 6px; }
.credit-warn { color: #FCD34D; font-weight: 700; }
.costs-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.credit-box { border-radius: var(--radius); padding: 16px; background: var(--ground); border: 1px solid var(--line); margin-bottom: 18px; }
.credit-box.credit-low { background: #FFFBEB; border-color: #FCD34D; }
.credit-box.credit-empty { background: var(--error-bg); border-color: #F5B5B5; }
.credit-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.credit-top > div { display: flex; flex-direction: column; gap: 2px; }
.credit-left { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.1; }
.credit-posts { text-align: right; }
.credit-posts strong { font-family: var(--display); font-size: 24px; }
.meter { height: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.credit-low .meter span { background: #D97706; }
.credit-empty .meter span { background: var(--error); }
.credit-form .add-row .field { flex: 1; min-width: 140px; }
.table .num { text-align: right; white-space: nowrap; }
.est { color: #B45309; font-weight: 800; cursor: help; }
.price-details summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.price-details[open] summary { margin-bottom: 14px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }

/* Brief */
.brief { background: var(--ground); border-radius: var(--radius); padding: 10px 14px; }
.brief summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--brand); }
.brief p { margin-top: 10px; white-space: pre-line; font-size: 14px; }
.brief-snippet { display: inline-block; max-width: 60ch; }

/* Topics */
.add-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.bulk { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.bulk summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 4px 0; }
.bulk[open] summary { margin-bottom: 14px; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--ground); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 110px; }
.day-empty { background: #fff; border: 1px dashed #B8C4BD; }
.day-name { font-size: 12px; font-weight: 800; color: var(--muted); }
.day-item { display: flex; flex-direction: column; border-radius: var(--radius-sm); padding: 7px 8px; font-size: 12px; font-weight: 700; color: var(--deep); background: #EEF0EE; line-height: 1.35; }
.day-item:hover { text-decoration: none; color: var(--deep); filter: brightness(.97); }
.day-item .small { font-size: 11px; opacity: .8; }
.day-review { background: #FEF3C7; color: #7A4B00; }
.day-approved { background: var(--success-bg); }
.day-posted { background: var(--deep); color: #fff; }
.day-posted:hover { color: #fff; }
.day-generating, .day-revising, .day-posting { background: #E6EEF9; color: #1E3A8A; }
.day-failed { background: var(--error-bg); color: var(--error); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 8px 14px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); color: var(--deep); font-size: 13px; }
.tab:hover { text-decoration: none; background: var(--mint); color: var(--deep); }
.tab.is-active { background: var(--deep); border-color: var(--deep); color: #fff; }

.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.span-2 { grid-column: span 2; }
.conn-row { display: flex; gap: 12px; align-items: flex-start; }
.conn-row .dot { margin-top: 7px; }
.how { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--mint); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 20px 50px rgba(11, 61, 42, .12); display: flex; flex-direction: column; gap: 20px; }
.login-card .brand { padding: 0; }
.login-card h1 { font-size: 22px; }

/* Responsive */
@media (max-width: 1200px) {
  .review-layout { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .costs-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .history-search input { min-width: 0; flex: 1; }
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
  .nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .nav-link { padding: 10px 12px; }
  .agent-card { display: none; }
  .main { padding: 24px 16px 48px; }
  .review { grid-template-columns: minmax(0, 1fr); }
  .preview-col { max-width: 420px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}
@media (max-width: 520px) {
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .history-search input { flex: 1 1 100%; order: -1; }
  .history-search select, .history-search .btn { flex: 1; }
  h1 { font-size: 24px; }
  .nav-label { display: none; }
  .nav-link.is-active .nav-label { display: inline; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 24px; }
  .actions .btn { flex: 1; }
}
/* ---------- Agent status ---------- */
a.agent-row { color: #fff; text-decoration: none; }
a.agent-row:hover { text-decoration: underline; }
.dot-ok { background: var(--accent); box-shadow: 0 0 0 3px rgba(34, 197, 94, .22); }
.dot-warn { background: #F59E0B; box-shadow: 0 0 0 3px rgba(245, 158, 11, .22); }
.dot-down { background: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.dot-unknown { background: #94A3B8; }
.panel-title .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; color: var(--brand); }
.status-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--mint); }
.status-warn { background: #FEF3C7; color: #92400E; }
.status-down { background: var(--error-bg); color: var(--error); }
.status-unknown { background: var(--line-soft); color: var(--muted); }
.status-table td { vertical-align: middle; }
.state { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.state-ok { background: var(--success-bg); color: #166534; }
.state-late { background: var(--error-bg); color: var(--error); }
.state-unknown { background: var(--line-soft); color: var(--muted); }
.last-error { margin-top: 16px; display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--line-soft); border: 1px solid var(--line); }
.last-error.is-recent { background: var(--error-bg); border-color: #F5C2C2; }
.last-error p { margin: 0 0 4px 0; }
.error-msg { word-break: break-word; }
.no-error { margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.no-error .icon { width: 16px; height: 16px; color: var(--brand); }

/* ---------- Checkbox rows ---------- */
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.check-row:hover { border-color: var(--brand); }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.check-row.is-locked { cursor: default; opacity: .75; }
.check-row.is-locked:hover { border-color: var(--line); }

/* ---------- Brand page ---------- */
.hint { font-weight: 500; font-size: 12px; color: var(--muted); }
.field .icon { width: 15px; height: 15px; vertical-align: -2px; }
.field input[type="file"] { padding: 9px; background: var(--ground); }
.color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.color-field { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.color-field > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.color-field input[type="color"] { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; flex-shrink: 0; }
.color-code { font-size: 12px; color: var(--muted); }
.brand-preview { position: relative; overflow: hidden; margin-top: 16px; border-radius: var(--radius); padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--bp-bg); color: var(--bp-text); border: 1px solid var(--line); }
.bp-glow { position: absolute; width: 180px; height: 180px; right: -40px; top: -50px; border-radius: 50%; background: var(--bp-accent); opacity: .35; filter: blur(30px); }
.bp-kicker { position: relative; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.bp-title { position: relative; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.25; max-width: 300px; }
.bp-title em { font-style: normal; color: var(--bp-primary); }
.bp-btn { position: relative; align-self: flex-start; background: var(--bp-primary); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.logo-box { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.logo-preview { aspect-ratio: 1; border-radius: var(--radius); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; padding: 14px;
  background-color: #fff; background-image: linear-gradient(45deg, #F1F5F2 25%, transparent 25%), linear-gradient(-45deg, #F1F5F2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #F1F5F2 75%), linear-gradient(-45deg, transparent 75%, #F1F5F2 75%);
  background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-fallback { font-size: 12px; color: var(--muted); text-align: center; }
.logo-preview.is-off img { opacity: .3; filter: grayscale(1); }
.save-bar { position: sticky; bottom: 0; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 -6px 20px rgba(11, 61, 42, .06); z-index: 5; }
.save-bar p { margin: 0; }
@media (max-width: 900px) {
  .color-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-box { grid-template-columns: minmax(0, 1fr); }
  .logo-preview { max-width: 160px; }
  .last-error { flex-direction: column; }
  .save-bar { position: static; box-shadow: none; }
  .save-bar .btn { width: 100%; }
}

/* ---------- Topic ideas ---------- */
.flash-info { background: var(--mint); color: var(--deep); }
.nav-badge-soft { background: rgba(255, 255, 255, .16); color: #fff; }
.ideas-top { margin-bottom: 20px; }
.ideas-top .add-row .field { flex: 1; min-width: 130px; }
.idea-working { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 20px; border-radius: var(--radius-lg); background: var(--mint); border: 1px solid #BFE6CD; }
.idea-working p { margin: 0; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(21, 128, 61, .2); border-top-color: var(--brand); animation: spin .9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.idea-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.idea-stats b { color: var(--deep); font-size: 16px; }
.ideas-panel .bulk-actions { margin-bottom: 4px; flex-wrap: wrap; }
.bulk-note { margin: 0 0 12px 0; }
.idea-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.idea-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; transition: border-color .15s; }
.idea-card:hover { border-color: #B8D9C4; }
.idea-card:target { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.idea-main { display: flex; gap: 12px; align-items: flex-start; }
.idea-main .bulk-check { margin-top: 4px; }
.idea-body { flex: 1; min-width: 0; }
.idea-body .chips { margin-bottom: 8px; }
.chip-date { background: var(--line-soft); display: inline-flex; align-items: center; gap: 4px; }
.chip-date .icon { width: 13px; height: 13px; }
.idea-topic { font-size: 17px; line-height: 1.35; margin: 0 0 4px 0; }
.idea-body > p { margin: 0 0 6px 0; }
.idea-points { margin: 8px 0 0 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.idea-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0 30px; }
.idea-actions form { margin: 0; }
[hidden] { display: none !important; }
.idea-edit { margin: 14px 0 0 30px; padding: 14px; background: var(--ground); border-radius: var(--radius); }
.idea-edit .add-row .field { flex: 1; min-width: 140px; }
.ideas-added { margin-top: 20px; }
.plain-list { list-style: none; margin: 0 0 12px 0; padding: 0; display: grid; gap: 8px; }
.plain-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 520px) {
  .idea-actions, .idea-edit { margin-left: 0; }
  .idea-actions .btn, .idea-actions form { flex: 1; }
  .idea-actions form .btn { width: 100%; }
}

/* ---------- Layout picker (horizontal strip) ---------- */
.lp { --lp-card: 176px; position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 16px 0 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F6FBF8 100%); box-shadow: 0 1px 2px rgba(11, 61, 42, .04), 0 8px 24px -16px rgba(11, 61, 42, .25); }
.lp-compact { --lp-card: 138px; padding: 12px 0 10px; }
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 12px; }
.lp-head-text { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.lp-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--deep); }
.lp-title .icon { width: 16px; height: 16px; color: var(--brand); }
.lp-picked { font-size: 13px; color: var(--muted); }
.lp-picked b { color: var(--brand); font-weight: 800; }
.lp-nav { display: flex; gap: 6px; flex-shrink: 0; }
.lp-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--deep); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 6px rgba(11, 61, 42, .08); transition: background .15s, opacity .15s, transform .15s; }
.lp-arrow:hover { background: var(--mint); transform: translateY(-1px); }
.lp-arrow .icon { width: 16px; height: 16px; }
.lp-arrow-next .icon { transform: rotate(180deg); }
.lp-at-start [data-lp-prev], .lp-at-end [data-lp-next] { opacity: .35; pointer-events: none; }
.lp-viewport { position: relative; }
.lp-viewport::before, .lp-viewport::after { content: ''; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 2; pointer-events: none; transition: opacity .2s; }
.lp-viewport::before { left: 0; background: linear-gradient(90deg, #FAFDFB, rgba(250, 253, 251, 0)); }
.lp-viewport::after { right: 0; background: linear-gradient(270deg, #F7FBF9, rgba(247, 251, 249, 0)); }
.lp-at-start .lp-viewport::before, .lp-at-end .lp-viewport::after { opacity: 0; }
.lp-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 4px 16px 10px; scrollbar-width: thin; scrollbar-color: #BFE3CC transparent; }
.lp-track::-webkit-scrollbar { height: 6px; }
.lp-track::-webkit-scrollbar-thumb { background: #BFE3CC; border-radius: 999px; }
.lp-card { position: relative; flex: 0 0 var(--lp-card); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 6px 6px 10px; border-radius: 16px; background: #fff;
  border: 1.5px solid var(--line); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -14px rgba(11, 61, 42, .45); border-color: #A9D9BA; }
.lp-card input { position: absolute; opacity: 0; pointer-events: none; }
.lp-card:has(input[type=radio]:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34, 197, 94, .22), 0 14px 28px -16px rgba(21, 128, 61, .55); }
.lp-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.lp-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 11px; overflow: hidden; background: var(--mint); }
.lp-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.lp-card:hover .lp-media img { transform: scale(1.04); }
.lp-empty { display: flex; height: 100%; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: 12px; color: var(--muted); }
.lp-tick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(21, 128, 61, .4); opacity: 0; transform: scale(.6); transition: opacity .18s, transform .18s; }
.lp-tick .icon { width: 15px; height: 15px; }
.lp-card:has(input[type=radio]:checked) .lp-tick { opacity: 1; transform: scale(1); }
.lp-zoom { position: absolute; bottom: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--deep); display: flex; align-items: center; justify-content: center;
  cursor: zoom-in; box-shadow: 0 3px 10px rgba(11, 61, 42, .18); opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; }
.lp-zoom .icon { width: 14px; height: 14px; }
.lp-card:hover .lp-zoom, .lp-zoom:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .lp-zoom { opacity: 1; transform: none; } }
.lp-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.lp-name { font-weight: 800; font-size: 14px; color: var(--deep); }
.lp-desc { font-size: 12px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-compact .lp-name { font-size: 13px; }
.lp-compact .lp-desc { -webkit-line-clamp: 2; font-size: 11.5px; }
.lp-card-auto .lp-media { background: radial-gradient(120% 90% at 30% 10%, #D6F5E1 0%, var(--mint) 55%, #DCF1E4 100%); }
.lp-collage { position: absolute; inset: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; transform: rotate(-6deg) scale(.92); opacity: .9; }
.lp-collage img { border-radius: 7px; box-shadow: 0 4px 10px rgba(11, 61, 42, .18); }
.lp-auto-badge { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px; background: var(--deep); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 6px 14px rgba(11, 61, 42, .35); }
.lp-auto-badge .icon { width: 13px; height: 13px; color: var(--accent); }
/* Brand page toggles */
.lp-toggles { margin-top: 14px; }
.lp-meta-row { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lp-meta-row > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-toggle:has(input:not(:checked)) .lp-media img { opacity: .38; filter: grayscale(.7); }
.lp-toggle:has(input:checked) { border-color: #9CD5B0; }
.switch { position: relative; flex-shrink: 0; width: 38px; height: 22px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; pointer-events: auto; }
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: #CBD5D0; transition: background .18s; }
.switch-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Large preview */
.lp-lightbox { border: 0; padding: 0; border-radius: 22px; max-width: min(860px, calc(100vw - 32px)); width: 100%; background: #fff; box-shadow: 0 30px 80px -20px rgba(11, 61, 42, .5); }
.lp-lightbox::backdrop { background: rgba(6, 30, 20, .55); backdrop-filter: blur(4px); }
.lp-lb-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.lp-lb-inner img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; background: var(--mint); display: block; }
.lp-lb-side { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.lp-lb-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lp-lb-side h2 { margin: 0; font-size: 26px; }
.lp-lb-desc { margin: 0; color: var(--muted); }
.lp-lb-side .actions { margin-top: 8px; }
.chip-layout { display: inline-flex; align-items: center; gap: 4px; background: #E6F4EC; }
.chip-layout .icon { width: 13px; height: 13px; }
.change-layout { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.change-layout-title { margin: 0; }
.layouts-panel { margin-top: 20px; }
@media (max-width: 720px) {
  .lp-lb-inner { grid-template-columns: minmax(0, 1fr); }
  .lp-lb-inner img { max-height: 55vh; }
  .lp-lb-side { padding: 18px; }
}
@media (max-width: 520px) {
  .lp { --lp-card: 148px; }
  .lp-compact { --lp-card: 128px; }
  .lp-nav { display: none; }
  .lp-head { padding: 0 14px 10px; }
  .lp-track { padding: 4px 14px 10px; gap: 10px; }
}

/* ---------- Image AI picker ---------- */
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.provider-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: linear-gradient(180deg, #fff, #F7FBF9);
  cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.provider-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(11, 61, 42, .45); border-color: #A9D9BA; }
.provider-card input { position: absolute; opacity: 0; pointer-events: none; }
.provider-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.provider-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.provider-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.provider-name { font-weight: 800; font-size: 15px; }
.provider-tick { width: 24px; height: 24px; border-radius: 50%; background: var(--line-soft); color: transparent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.provider-tick .icon { width: 14px; height: 14px; }
.provider-card:has(input:checked) .provider-tick { background: var(--brand); color: #fff; }
.provider-price { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--deep); }
.provider-price .muted { font-family: var(--body); font-size: 13px; font-weight: 600; }
.provider-note { color: var(--text); line-height: 1.45; }
.provider-badge { align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--deep); color: #fff; }
.provider-badge-soft { background: var(--mint); color: var(--brand); }
@media (max-width: 900px) { .provider-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}