@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("./fonts/dm-sans-latin.d4c68940b772.woff2") format("woff2");
}

:root {
  --ink: #3a2f51;
  --ink-soft: #6a627c;
  --paper: #fbf9fd;
  --panel: #ffffff;
  --line: #e5dcef;
  --mauve: #3a2f51;
  --mauve-mid: #9057e1;
  --lilac: #b088ea;
  --lilac-soft: #dbbdfd;
  --lavender: #f3e9fd;
  --pop: #18cdc3;
  --pop-soft: #c7f4f2;
  --natural: #f7f7f7;
  --danger: #ff4400;
  --danger-soft: #ffdacc;
  --shadow: 0 10px 32px rgba(58, 47, 81, .10);
  --shadow-hover: 0 16px 40px rgba(58, 47, 81, .14);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { background: radial-gradient(circle at 105% 7%, rgba(219, 189, 253, .28), transparent 28rem), var(--paper); line-height: 1.4; margin: 0; min-width: 320px; min-height: 100vh; }
a { color: #7040ae; text-decoration: none; }
a:hover { color: var(--mauve); }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(24, 205, 195, .58); outline-offset: 2px; }

.topbar { align-items: center; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(58, 47, 81, .05); display: grid; gap: 28px; grid-template-columns: auto 1fr auto; min-height: 82px; padding: 0 32px; position: sticky; top: 0; z-index: 10; }
.brand { align-items: center; color: var(--ink); display: flex; gap: 15px; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: auto; width: 176px; }
.brand-context { border-left: 1px solid var(--lilac-soft); color: var(--ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .055em; line-height: 1.25; max-width: 62px; padding-left: 14px; text-transform: uppercase; }
.main-nav { align-items: center; display: flex; gap: 4px; min-height: 82px; overflow-x: auto; }
.main-nav > a { align-items: center; border: 1px solid transparent; border-radius: 999px; color: var(--ink-soft); display: flex; font-size: .88rem; font-weight: 650; gap: 7px; min-height: 42px; padding: 8px 13px; white-space: nowrap; }
.main-nav > a:hover { background: var(--natural); border-color: var(--line); color: var(--ink); }
.main-nav > a.active { background: var(--lavender); border-color: var(--lilac-soft); color: var(--ink); }
.nav-count { background: var(--pop); border-radius: 20px; color: var(--mauve); font-size: .68rem; font-weight: 800; padding: 2px 7px; }
.user-menu { align-items: center; color: var(--ink-soft); display: flex; font-size: .82rem; gap: 12px; }
.user-menu a, .user-menu .link-button { color: var(--ink-soft); }
.user-menu a:hover, .user-menu .link-button:hover { color: var(--mauve); }
.user-menu form, .inline-actions form { display: inline; margin: 0; }

.page-shell { margin: 0 auto; max-width: 1500px; padding: 44px 36px 72px; }
.login-shell { align-items: center; background: linear-gradient(145deg, var(--lavender) 0%, #fff 58%, var(--pop-soft) 150%); display: flex; isolation: isolate; justify-content: center; min-height: 100vh; overflow: hidden; padding: 28px; position: relative; }
.login-shell::before, .login-shell::after { border-radius: 50%; content: ""; pointer-events: none; position: absolute; z-index: -1; }
.login-shell::before { background: var(--lilac-soft); height: 390px; left: -150px; top: -135px; width: 390px; }
.login-shell::after { background: var(--pop); bottom: -105px; height: 235px; opacity: .82; right: -55px; width: 235px; }
.login-card { background: var(--panel); border: 1px solid var(--lilac-soft); border-radius: 28px; box-shadow: 0 24px 70px rgba(58, 47, 81, .18); max-width: 470px; overflow: hidden; padding: 46px; position: relative; width: 100%; }
.login-card::before { background: linear-gradient(90deg, var(--lilac), var(--pop)); content: ""; height: 6px; left: 0; position: absolute; right: 0; top: 0; }
.login-brand { margin-bottom: 34px; }
.login-brand img { display: block; height: auto; max-width: 285px; width: 78%; }
.login-card .muted { line-height: 1.55; margin-bottom: 26px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--mauve); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(2.15rem, 3vw, 3.55rem); letter-spacing: -.038em; line-height: 1.02; margin-bottom: 13px; }
h2 { font-size: 1.48rem; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 0; }
h3 { font-size: 1rem; margin-bottom: 8px; }
.eyebrow { color: #7040ae; font-size: .71rem; font-weight: 800; letter-spacing: .13em; margin-bottom: 9px; text-transform: uppercase; }
.lede { color: var(--ink-soft); font-size: 1.03rem; line-height: 1.55; margin-bottom: 0; max-width: 720px; }
.muted { color: var(--ink-soft); }
.page-heading { align-items: flex-end; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 32px; }
.page-heading.compact { margin-bottom: 22px; }
.detail-heading { align-items: center; }
.heading-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.breadcrumbs { color: var(--ink-soft); display: flex; font-size: .82rem; gap: 8px; margin-bottom: 25px; }

.button { align-items: center; border: 1px solid transparent; border-radius: 999px; cursor: pointer; display: inline-flex; font-size: .87rem; font-weight: 750; justify-content: center; min-height: 44px; padding: 9px 18px; transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--pop); border-color: var(--pop); box-shadow: 0 7px 18px rgba(24, 205, 195, .18); color: var(--mauve); }
.button.primary:hover { background: var(--pop-soft); border-color: var(--pop); color: var(--mauve); }
.button.secondary { background: var(--panel); border-color: var(--mauve); color: var(--mauve); }
.button.secondary:hover { background: var(--lavender); border-color: var(--mauve); color: var(--mauve); }
.button.danger { background: var(--panel); border-color: #c7461b; color: #9b3512; }
.button.danger:hover { background: #fff1ec; border-color: #9b3512; color: #7a280c; }
.button.full { width: 100%; }
.link-button { background: none; border: 0; color: #7040ae; cursor: pointer; padding: 0; }
.heading-actions form { margin: 0; }

.stats-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; min-height: 148px; overflow: hidden; padding: 21px 22px; position: relative; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.stat-card::after { background: var(--lavender); border-radius: 50%; content: ""; height: 78px; opacity: .62; position: absolute; right: -28px; top: -32px; width: 78px; }
.stat-card:hover { border-color: var(--lilac-soft); box-shadow: var(--shadow-hover); color: var(--ink); transform: translateY(-2px); }
.stat-card span { color: var(--ink-soft); font-size: .76rem; font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
.stat-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.75rem; font-weight: 400; line-height: 1; margin: 14px 0 7px; }
.stat-card small { color: var(--ink-soft); }
.stat-card.success-tint { background: var(--pop-soft); border-color: #9be7e2; }
.stat-card.success-tint::after { background: var(--pop); }
.stat-card.danger-tint { background: #fff5f1; border-color: var(--danger-soft); }
.stat-card.danger-tint::after { background: var(--danger-soft); }

.dashboard-grid, .detail-grid { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding: 22px; }
.panel-heading { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 20px; }
.panel-heading > a { font-size: .84rem; font-weight: 750; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.panel-intro { color: var(--ink-soft); font-size: .88rem; margin: -8px 0 15px; }
.alert-panel { border-color: #ffc3ad; }
.pipeline-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.pipeline-item { align-items: center; background: var(--lavender); border: 1px solid transparent; border-radius: 12px; color: var(--ink); display: flex; justify-content: space-between; min-height: 54px; padding: 10px 12px; }
.pipeline-item:hover { background: #eee1fb; border-color: var(--lilac-soft); color: var(--ink); }
.pipeline-item strong { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.simple-pipeline { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.simple-pipeline .pipeline-item { flex-direction: column; gap: 7px; text-align: center; }
.simple-pipeline .pipeline-item span { color: var(--ink-soft); font-size: .75rem; font-weight: 750; }
.compact-panel { padding-bottom: 18px; }
.quiet-panel { box-shadow: none; }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a { background: var(--lavender); border: 1px solid var(--lilac-soft); border-radius: 999px; color: var(--ink); font-size: .8rem; font-weight: 700; padding: 8px 12px; }

.action-list { display: flex; flex-direction: column; }
.action-row { align-items: center; border-top: 1px solid var(--line); color: var(--ink); display: grid; gap: 13px; grid-template-columns: 22px minmax(0, 1fr) auto; padding: 14px 2px; }
.action-row:first-child { border-top: 0; padding-top: 0; }
.action-row:last-child { padding-bottom: 0; }
.action-row:hover { color: var(--ink); }
.action-check { border: 2px solid var(--lilac); border-radius: 50%; height: 18px; width: 18px; }
.action-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.action-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-main small { color: var(--ink-soft); }
.action-meta { align-items: flex-end; display: flex; flex-direction: column; gap: 5px; }
.action-meta time { color: var(--ink-soft); font-size: .72rem; }

.badge { background: var(--natural); border-radius: 100px; color: #554d65; display: inline-block; font-size: .7rem; font-weight: 750; line-height: 1.2; padding: 5px 9px; white-space: nowrap; }
.badge.success { background: var(--pop-soft); color: #176864; }
.badge.info { background: #d8dcf0; color: var(--mauve); }
.badge.purple { background: #eadffd; color: #60339a; }
.badge.warning { background: #fff0c9; color: #72520a; }
.badge.danger { background: var(--danger-soft); color: #8a2c0d; }
.badge.muted { background: #efeff0; color: #6a6870; }
.badge.neutral { background: var(--lavender); color: var(--mauve); }
.mini-list { display: flex; flex-direction: column; }
.mini-list > a { align-items: center; border-top: 1px solid var(--line); color: var(--ink); display: flex; gap: 18px; justify-content: space-between; padding: 13px 2px; }
.mini-list > a:hover strong { color: #7040ae; }
.mini-list > a:first-child { border-top: 0; padding-top: 0; }
.mini-list > a:last-child { padding-bottom: 0; }
.mini-list span:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-list small { color: var(--ink-soft); }
.clinic-summary-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.clinic-summary-grid a { background: var(--lavender); border: 1px solid transparent; border-radius: 12px; color: var(--ink); display: flex; flex-direction: column; padding: 13px; }
.clinic-summary-grid a:hover { border-color: var(--lilac-soft); color: var(--ink); }
.clinic-summary-grid span { color: var(--ink-soft); font-size: .75rem; margin-top: 4px; }

.filter-bar { align-items: end; background: var(--lavender); border: 1px solid var(--lilac-soft); border-radius: var(--radius); display: grid; gap: 12px; grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto auto; margin-bottom: 18px; padding: 15px; }
.filter-bar.wide { grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(125px, 1fr)) auto auto; }
.filter-bar.simple-filters { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)) auto auto; }
.filter-bar.community-filters { grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(145px, 1fr)) auto auto; }
.filter-bar label { color: var(--ink-soft); display: flex; flex-direction: column; font-size: .72rem; font-weight: 750; gap: 5px; }
.field-input { background: #fff; border: 1px solid #d0d1d6; border-radius: 9px; color: var(--ink); min-height: 44px; padding: 9px 11px; width: 100%; }
textarea.field-input { min-height: 100px; resize: vertical; }
.field-input:focus { border-color: var(--pop); box-shadow: 0 0 0 3px rgba(24, 205, 195, .18); outline: none; }
.clear-filter { align-self: center; font-size: .82rem; padding: 8px; }
.table-wrap { margin: 0 -22px -22px; overflow-x: auto; }
table { border-collapse: collapse; font-size: .84rem; min-width: 760px; width: 100%; }
th { background: var(--lavender); color: var(--ink-soft); font-size: .69rem; letter-spacing: .06em; padding: 11px 14px; text-align: left; text-transform: uppercase; }
td { border-top: 1px solid var(--line); max-width: 340px; padding: 13px 14px; vertical-align: top; }
tbody tr:hover { background: #fdfbff; }
.row-title { color: var(--ink); display: block; font-weight: 750; margin-bottom: 4px; }
.row-title:hover { color: #7040ae; }
.row-title + small, td small { color: var(--ink-soft); display: block; margin-top: 4px; }
.clamp { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { background: var(--lavender); border: 1px solid var(--lilac-soft); border-radius: 100px; color: var(--mauve); font-size: .67rem; font-weight: 700; padding: 4px 8px; }
.empty-state { color: var(--ink-soft); font-style: italic; margin: 10px 0; }
.missing { color: #b73a11; font-size: .75rem; font-weight: 750; }
.overdue { color: #a6340e; font-weight: 750; }

.card-list { display: grid; gap: 12px; }
.card-list article { background: var(--lavender); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card-list article p { color: var(--ink-soft); font-size: .84rem; line-height: 1.55; margin: 9px 0; }
.compact-list article { padding: 14px; }
.channel-card > div:first-child, .task-card > div:first-child { align-items: center; display: flex; gap: 6px; justify-content: space-between; margin-bottom: 10px; }
.external-link { display: inline-block; overflow-wrap: anywhere; }
.metric-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.metric-row span { color: var(--ink-soft); font-size: .77rem; }
.metric-row strong { color: var(--ink); }
.subtle-action { display: inline-block; font-size: .78rem; font-weight: 750; margin-top: 9px; }
.prose { color: var(--ink-soft); line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }
.legacy-note { color: #81798d; font-size: .72rem; margin: 18px 3px 0; }

.status-strip { background: var(--mauve); border-radius: var(--radius); box-shadow: var(--shadow); color: #fff; display: grid; gap: 1px; grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; overflow: hidden; }
.status-strip > div { background: rgba(255, 255, 255, .035); border-right: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 8px; min-height: 88px; padding: 17px; }
.status-strip > div:last-child { border-right: 0; }
.status-strip span:first-child { color: rgba(255, 255, 255, .68); font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.status-strip strong:not(.badge) { font-size: .9rem; }
.status-strip .badge { align-self: flex-start; }
.next-action { font-family: Georgia, serif; font-size: 1.28rem; line-height: 1.5; }
.panel hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.timeline article { display: grid; gap: 15px; grid-template-columns: 78px 1fr; padding: 0 0 18px; position: relative; }
.timeline article:not(:last-child)::after { background: var(--lilac-soft); bottom: 4px; content: ""; left: 82px; position: absolute; top: 26px; width: 1px; }
.timeline time { color: var(--ink-soft); font-size: .72rem; }
.timeline p { color: var(--ink-soft); font-size: .84rem; line-height: 1.5; margin: 5px 0; }
.timeline small { color: var(--ink-soft); }
.due-date { color: var(--ink-soft); font-size: .75rem; }
.inline-actions { align-items: center; display: flex; gap: 12px; font-size: .78rem; font-weight: 700; }

.list-panel { padding-bottom: 10px; }
.outreach-list { display: flex; flex-direction: column; }
.outreach-card { align-items: center; border-top: 1px solid var(--line); color: var(--ink); display: grid; gap: 18px; grid-template-columns: minmax(210px, 1.3fr) minmax(140px, 1fr) auto minmax(210px, 1.35fr) minmax(120px, auto); padding: 16px 2px; }
.outreach-card:first-child { border-top: 0; padding-top: 2px; }
.outreach-title, .outreach-next { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.outreach-name { color: var(--ink); }
.outreach-name:hover { color: #7040ae; }
.outreach-title small, .outreach-next small { color: var(--ink-soft); font-size: .73rem; }
.outreach-url { color: var(--ink-soft); display: block; font-size: .73rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outreach-url:hover { color: #7040ae; }
.outreach-next > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outreach-actions { align-items: flex-start; display: flex; flex-direction: column; font-size: .75rem; font-weight: 750; gap: 7px; }
.outreach-actions form, .card-actions form { display: inline; margin: 0; }
.website-action { align-items: center; display: inline-flex; gap: 6px; white-space: nowrap; }
.website-action svg { fill: currentColor; height: 15px; width: 15px; }
.details-action { color: var(--ink-soft); }
.delete-link { background: none; border: 0; color: #a63a14; cursor: pointer; font: inherit; padding: 0; }
.delete-link:hover { color: #76270c; text-decoration: underline; }

.community-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.community-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 390px; padding: 21px; }
.community-card { min-width: 0; }
.community-card h2, .community-card p, .community-actions a { overflow-wrap: anywhere; }
.community-card h2 { font-size: 1.3rem; margin: 15px 0 10px; }
.community-card-top, .community-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.platform-label { background: var(--lavender); border-radius: 999px; color: var(--mauve); font-size: .69rem; font-weight: 800; padding: 6px 10px; }
.platform-label.facebook_group, .platform-label.facebook_page { background: #e6edff; color: #2452a6; }
.platform-label.instagram { background: #f8e6f4; color: #8f326f; }
.audience { color: var(--ink-soft); font-size: .8rem; margin: 17px 0 0; }
.audience strong { color: var(--ink); }
.rules { background: var(--lavender); border-radius: 12px; margin-top: 16px; padding: 12px; }
.rules span, .community-next > span { color: #7040ae; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.rules p, .community-next p { color: var(--ink-soft); font-size: .8rem; line-height: 1.45; margin: 5px 0 0; }
.community-next { margin: 17px 0; }
.community-next small { color: var(--ink-soft); display: block; font-size: .72rem; margin-top: 6px; }
.community-actions { border-top: 1px solid var(--line); font-size: .78rem; font-weight: 750; margin-top: auto; padding-top: 14px; }
.card-actions { align-items: center; display: flex; gap: 12px; }
.button.small { min-height: 36px; padding: 6px 13px; }

.simple-status-strip { grid-template-columns: repeat(3, 1fr); }
.details-block { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 17px; }
.details-block summary { color: #7040ae; cursor: pointer; font-size: .82rem; font-weight: 750; }
.details-block .prose { margin-top: 14px; }
.result-links { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-links a { background: var(--lavender); border-radius: 12px; color: var(--ink); display: flex; flex-direction: column; gap: 6px; padding: 13px; }
.result-links span { color: var(--ink-soft); font-size: .77rem; overflow-wrap: anywhere; }
.pagination { align-items: center; display: grid; gap: 14px; grid-template-columns: 1fr auto 1fr; margin-top: 22px; }
.pagination > :last-child { justify-self: end; }
.pagination > span { color: var(--ink-soft); font-size: .78rem; }
.updates-panel { max-width: 940px; }
.updates-list { display: flex; flex-direction: column; }
.update-item { border-top: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 145px minmax(0, 1fr); padding: 18px 2px; }
.update-item:first-child { border-top: 0; padding-top: 2px; }
.update-item time, .update-item small { color: var(--ink-soft); font-size: .74rem; }
.update-item strong { display: block; font-size: .92rem; }
.update-item p { color: var(--ink-soft); font-size: .79rem; margin: 6px 0; }
.update-item small { display: block; margin-top: 6px; }
.site-footer { align-items: center; border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; font-size: .76rem; justify-content: space-between; margin: 0 auto; max-width: 1428px; padding: 22px 0 32px; }
.site-footer a { font-weight: 750; }

.clinic-card-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.clinic-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); padding: 20px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.clinic-card:hover { border-color: var(--lilac-soft); box-shadow: var(--shadow-hover); color: var(--ink); transform: translateY(-2px); }
.clinic-card > div { align-items: center; display: flex; gap: 9px; }
.status-dot { background: #aaa; border-radius: 50%; height: 9px; width: 9px; }
.status-dot.open { background: var(--pop); box-shadow: 0 0 0 3px var(--pop-soft); }
.status-dot.opening { background: var(--lilac); box-shadow: 0 0 0 3px var(--lavender); }
.clinic-card dl { display: grid; gap: 9px; grid-template-columns: repeat(2, 1fr); margin: 20px 0 0; }
.clinic-card dl div { background: var(--lavender); border-radius: 11px; padding: 10px; }
.clinic-card dt { color: var(--ink-soft); font-size: .67rem; text-transform: uppercase; }
.clinic-card dd { font-family: Georgia, serif; font-size: 1.35rem; margin: 4px 0 0; }
.clinic-outcome { border-top: 1px solid var(--line); color: var(--ink-soft); display: block; font-size: .72rem; line-height: 1.45; margin-top: 8px; padding-top: 7px; }
.clinic-outcome b { color: var(--ink); font-weight: 600; }

.record-form { max-width: 860px; }
.form-panel { padding: 28px; }
.form-row { margin-bottom: 19px; }
.form-row > label { display: block; font-size: .78rem; font-weight: 750; margin-bottom: 7px; }
.form-row small { color: var(--ink-soft); display: block; font-size: .72rem; margin-top: 5px; }
.required, .field-error { color: #b73a11; }
.required { margin-left: 3px; }
.field-error { font-size: .78rem; margin-top: 5px; }
.form-errors, .message.error { background: var(--danger-soft); border: 1px solid #ffb294; border-radius: 10px; color: #842b0d; margin-bottom: 18px; padding: 11px; }
.check-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.check-grid label { align-items: center; display: flex; gap: 7px; }
.form-actions { display: flex; gap: 10px; margin-top: 26px; }
.stack-form { display: flex; flex-direction: column; gap: 9px; }
.stack-form label { font-size: .78rem; font-weight: 750; }
.stack-form .button { margin-top: 13px; }
.messages { margin-bottom: 18px; }
.message { background: var(--pop-soft); border: 1px solid #9be7e2; border-radius: 10px; color: #176864; padding: 11px 13px; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: auto 1fr; padding: 12px 20px 0; }
  .main-nav { grid-column: 1 / -1; min-height: 50px; order: 3; }
  .main-nav > a { min-height: 38px; }
  .user-menu { justify-self: end; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .span-5, .span-7 { grid-column: span 12; }
  .filter-bar, .filter-bar.wide { grid-template-columns: repeat(3, 1fr); }
  .filter-bar.simple-filters, .filter-bar.community-filters { grid-template-columns: repeat(3, 1fr); }
  .clinic-card-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .simple-pipeline { grid-template-columns: repeat(3, 1fr); }
  .outreach-card { grid-template-columns: minmax(180px, 1.25fr) minmax(130px, 1fr) auto minmax(175px, 1.2fr) minmax(112px, auto); }
}

@media (max-width: 700px) {
  .topbar { gap: 12px; padding: 10px 14px 0; }
  .brand-logo { width: 148px; }
  .brand-context, .user-menu > span, .user-menu > a { display: none; }
  .page-shell { padding: 30px 15px 52px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stats-grid, .clinic-card-grid { grid-template-columns: 1fr; }
  .pipeline-grid, .clinic-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar, .filter-bar.wide, .filter-bar.simple-filters, .filter-bar.community-filters { grid-template-columns: 1fr; }
  .span-6 { grid-column: span 12; }
  .status-strip { grid-template-columns: repeat(2, 1fr); }
  .community-grid, .result-links { grid-template-columns: 1fr; }
  .community-card { min-height: 0; }
  .simple-pipeline { grid-template-columns: repeat(2, 1fr); }
  .outreach-card { align-items: start; gap: 9px; grid-template-columns: minmax(0, 1fr) auto; padding: 15px 0; }
  .outreach-card .chip-row, .outreach-next, .outreach-actions { grid-column: 1 / -1; }
  .outreach-card > .badge { grid-column: 2; grid-row: 1; }
  .outreach-actions { align-items: center; flex-direction: row; flex-wrap: wrap; }
  .action-row { align-items: start; grid-template-columns: 20px minmax(0, 1fr); }
  .action-meta { align-items: flex-start; flex-direction: row; grid-column: 2; }
  .panel { padding: 17px; }
  .table-wrap { margin: 0 -17px -17px; }
  .check-grid { grid-template-columns: 1fr; }
  .login-shell { padding: 18px; }
  .login-card { padding: 38px 25px 32px; }
  .login-brand img { max-width: 250px; width: 84%; }
  .update-item { gap: 7px; grid-template-columns: 1fr; }
  .site-footer { margin: 0 15px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
