:root {
  --ink: #15332d;
  --ink-soft: #49645e;
  --forest: #0f664f;
  --forest-dark: #094b3b;
  --leaf: #1f9368;
  --mint: #dff3e8;
  --cream: #f6f7f1;
  --card: #ffffff;
  --line: #dce5df;
  --amber: #c77917;
  --amber-soft: #fff3dc;
  --danger: #b83c3c;
  --danger-soft: #fff0f0;
  --shadow: 0 18px 50px rgba(24, 62, 52, .08);
  --radius: 18px;
  --sidebar: 270px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { letter-spacing: -.02em; }
h3 { margin-bottom: 0; font-size: 1.12rem; }
p { color: var(--ink-soft); }
code { padding: .15rem .35rem; border-radius: 5px; background: #edf1ee; color: var(--forest-dark); }

.eyebrow { display: block; margin-bottom: .4rem; color: var(--forest); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--light { color: #aee6cf; }
.muted { color: var(--ink-soft); }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #30b977; box-shadow: 0 0 0 4px rgba(48,185,119,.13); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(420px, .85fr); background: var(--card); }
.login-story { min-height: 100vh; display: flex; flex-direction: column; padding: clamp(2rem, 5vw, 5.5rem); color: #fff; background:
  radial-gradient(circle at 82% 18%, rgba(127, 218, 173, .22), transparent 26%),
  linear-gradient(145deg, rgba(7,71,55,.97), rgba(9,91,66,.92)),
  repeating-linear-gradient(120deg, transparent 0 28px, rgba(255,255,255,.03) 29px 30px);
}
.brand-lockup { display: flex; align-items: center; gap: .85rem; color: var(--ink); }
.brand-lockup b, .brand-lockup small { display: block; }
.brand-lockup b { font-size: 1rem; letter-spacing: .06em; }
.brand-lockup small { color: var(--ink-soft); font-size: .72rem; }
.brand-lockup--light { color: #fff; }
.brand-lockup--light small { color: #c9e6db; }
.brand-mark { position: relative; width: 42px; height: 42px; flex: 0 0 auto; border: 2px solid #4ec58c; border-radius: 14px 14px 14px 4px; transform: rotate(-7deg); }
.brand-mark::before, .brand-mark::after, .brand-mark span { position: absolute; content: ""; border: 2px solid #9ddbbf; border-radius: 50% 50% 50% 10%; }
.brand-mark::before { width: 13px; height: 22px; left: 8px; top: 8px; transform: rotate(-24deg); }
.brand-mark::after { width: 10px; height: 18px; right: 6px; top: 6px; transform: rotate(30deg); }
.brand-mark span { width: 6px; height: 13px; left: 20px; bottom: 5px; }
.story-copy { max-width: 730px; margin: auto 0; }
.story-copy h1 { max-width: 700px; margin-bottom: 1.3rem; color: #fff; font-size: clamp(2.8rem, 5.5vw, 5.6rem); }
.story-copy p { max-width: 620px; color: #d4eae2; font-size: 1.12rem; }
.story-footer { display: flex; gap: .8rem; color: #b7d8cc; font-size: .82rem; font-weight: 650; }
.login-panel { display: grid; place-items: center; padding: 2rem; background: linear-gradient(180deg,#fff,#f7faf8); }
.login-card { width: min(440px, 100%); padding: clamp(2rem, 5vw, 3.3rem); border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 .45rem; font-size: 2rem; }
.login-card > label { display: grid; gap: .45rem; margin-top: 1.1rem; color: var(--ink); font-size: .84rem; font-weight: 700; }
.login-assurance { display: flex; align-items: center; gap: .65rem; margin-top: 1.4rem; color: var(--ink-soft); font-size: .76rem; }
.form-error { min-height: 1.5rem; margin: .7rem 0 0; color: var(--danger); font-size: .84rem; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); height: 100vh; height: 100dvh; max-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 1.65rem 1.2rem; border-right: 1px solid #cfe0d6; background: #f9fbf9; }
.sidebar::-webkit-scrollbar { width: 9px; }
.sidebar::-webkit-scrollbar-track { background: #eef3ef; }
.sidebar::-webkit-scrollbar-thumb { border: 2px solid #eef3ef; border-radius: 999px; background: #8eaaa0; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #5f8175; }
.sidebar .brand-lockup { padding: 0 .65rem 1.55rem; border-bottom: 1px solid var(--line); }
.main-nav { display: grid; flex: 0 0 auto; gap: .35rem; margin-top: 1.25rem; }
.nav-item { width: 100%; display: flex; align-items: center; gap: .8rem; padding: .68rem .8rem; border: 0; border-radius: 10px; background: transparent; color: #426159; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item:hover { background: #edf4ef; color: var(--forest-dark); transform: translateX(2px); }
.nav-item.is-active { background: var(--forest); color: #fff; box-shadow: 0 8px 18px rgba(15,102,79,.2); }
.nav-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 9px; font-size: .62rem; font-weight: 800; letter-spacing: .04em; opacity: .9; }
.sidebar-footer { flex: 0 0 auto; margin-top: auto; padding: 1rem .65rem .4rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
.sidebar-footer > small { display: block; margin-top: 1rem; font-size: .68rem; }
.environment { display: flex; align-items: center; gap: .75rem; }
.environment b, .environment small { display: block; }
.environment b { color: var(--ink); font-size: .82rem; }
.environment small { font-size: .7rem; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 10; top: 0; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .9rem clamp(1.2rem, 4vw, 3.5rem); border-bottom: 1px solid rgba(206,220,211,.9); background: rgba(246,247,241,.94); backdrop-filter: blur(12px); }
.topbar-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.topbar h2 { margin: 0; overflow: hidden; font-size: 1.15rem; white-space: nowrap; text-overflow: ellipsis; }
.topbar .eyebrow { margin-bottom: .1rem; }
.topbar-actions, .user-menu { display: flex; align-items: center; gap: .9rem; }
.language-picker { display: flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-size: .72rem; }
.language-picker select { min-width: auto; padding: .45rem 1.8rem .45rem .6rem; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--forest-dark); font-size: .75rem; font-weight: 800; }
.user-copy b, .user-copy small { display: block; max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-copy b { font-size: .8rem; }
.user-copy small { color: var(--ink-soft); font-size: .68rem; text-transform: capitalize; }
.icon-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.content { width: min(1500px, 100%); margin: 0 auto; padding: clamp(1.2rem, 3vw, 3rem) clamp(1rem, 4vw, 3.5rem) 5rem; }
.view { display: none; animation: view-in .24s ease; }
.view.is-active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }

.hero-card { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; min-height: 260px; padding: clamp(1.8rem, 4vw, 3.3rem); border-radius: 24px; background:
  radial-gradient(circle at 90% -20%, rgba(206,239,216,.25), transparent 42%),
  linear-gradient(130deg,#0b4e3d,#0e7453); color: #fff; box-shadow: 0 20px 45px rgba(12,76,59,.14); }
.hero-card::after { position: absolute; content: ""; width: 260px; height: 260px; right: 10%; bottom: -190px; border: 45px solid rgba(255,255,255,.06); border-radius: 50%; }
.hero-card > div:first-child { max-width: 780px; }
.hero-card h1 { max-width: 760px; margin-bottom: .8rem; color: #fff; }
.hero-card p { max-width: 680px; margin-bottom: 0; color: #cce5db; }
.hero-status { position: relative; z-index: 1; min-width: 210px; display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.09); backdrop-filter: blur(8px); }
.hero-status b, .hero-status small { display: block; }
.hero-status b { font-size: .82rem; }
.hero-status small { color: #c4e2d6; font-size: .68rem; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #63dfa5; box-shadow: 0 0 0 6px rgba(99,223,165,.14); }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin: 1.2rem 0; }
.metric-grid--five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.metric-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.metric-card { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 25px rgba(29,66,57,.045); }
.metric-card span { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.metric-card span i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--forest); font-style: normal; font-size: .62rem; }
.metric-card strong { margin-top: .75rem; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.metric-card small { margin-top: .35rem; color: var(--ink-soft); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 1rem; }
.panel { padding: clamp(1.2rem, 2.5vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 25px rgba(29,66,57,.035); }
.panel--full { grid-column: 1/-1; }
.panel-heading, .section-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel-heading { margin-bottom: 1rem; }
.panel-heading .eyebrow { margin-bottom: .15rem; }
.panel-note { margin: .25rem 0 0; color: var(--ink-soft); font-size: .72rem; }
.section-intro { margin-bottom: 1.25rem; }
.section-intro h1 { margin-bottom: .45rem; }
.section-intro p { max-width: 780px; margin-bottom: 0; }
.pill { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: .3rem .6rem; border: 1px solid #c9dcd3; border-radius: 999px; background: #f5f9f6; color: #42655a; font-size: .67rem; font-weight: 750; white-space: nowrap; text-transform: capitalize; }
.pill--good, .pill--safe { border-color: #a7d6bf; background: #e8f7ef; color: #0c6a48; }
.pill--warn { border-color: #efd199; background: var(--amber-soft); color: #8a540c; }
.pill--danger { border-color: #efb7b7; background: var(--danger-soft); color: #9d3030; }
.workflow-list { display: grid; }
.workflow-list > div { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: .9rem; padding: 1rem 0; border-top: 1px solid #edf1ee; }
.workflow-list > div:first-child { border-top: 0; }
.workflow-number { color: var(--leaf); font-size: .72rem; font-weight: 800; }
.workflow-list b, .workflow-list small { display: block; }
.workflow-list b { font-size: .85rem; }
.workflow-list small { margin-top: .12rem; color: var(--ink-soft); font-size: .72rem; }
.quick-actions { display: grid; gap: .7rem; }
.quick-actions button { display: grid; grid-template-columns: 34px 1fr; column-gap: .8rem; align-items: center; padding: .8rem; border: 1px solid #e1e8e4; border-radius: 12px; background: #fbfcfb; text-align: left; cursor: pointer; }
.quick-actions button:hover { border-color: #a7c9b8; background: #f3f9f5; }
.quick-actions button > span { grid-row: 1/3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); color: var(--forest); font-weight: 800; }
.quick-actions b, .quick-actions small { display: block; }
.quick-actions b { font-size: .8rem; }
.quick-actions small { color: var(--ink-soft); font-size: .68rem; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--forest); font-size: .76rem; font-weight: 750; cursor: pointer; }

.two-column { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); gap: 1rem; align-items: start; }
.two-column--gis { grid-template-columns: minmax(0,1.25fr) minmax(380px,.75fr); }
.governance-grid { margin-top: 1rem; }
#view-users > .panel { margin-top: 1rem; }
.callout { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.callout b { flex: 0 0 auto; font-size: .8rem; }
.callout span { color: var(--ink-soft); font-size: .76rem; }
.callout--good { border-color: #afd9c5; background: #edf8f2; }
.authority-list { display: grid; gap: .65rem; }
.authority-item { display: grid; grid-template-columns: 42px 1fr; gap: .75rem; padding: .8rem; border: 1px solid #e2ebe6; border-radius: 12px; background: #fbfdfb; }
.authority-item > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--forest); color: #fff; font-size: .76rem; font-weight: 850; }
.authority-item b { font-size: .78rem; }
.authority-item p { margin: .18rem 0 0; font-size: .7rem; }
.consent-card p { font-size: .76rem; }
.consent-card dl { display: grid; gap: .55rem; margin: 1rem 0; }
.consent-card dl div { display: grid; grid-template-columns: 100px 1fr; gap: .65rem; padding-bottom: .45rem; border-bottom: 1px solid #edf1ee; }
.consent-card dt { color: var(--ink-soft); font-size: .68rem; font-weight: 750; text-transform: uppercase; }
.consent-card dd { margin: 0; color: var(--ink); font-size: .72rem; }
.consent-card .button { margin: .25rem .35rem .25rem 0; }
.table-note { display: block; margin-top: .2rem; color: var(--ink-soft); font-size: .67rem; line-height: 1.35; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1rem; margin-bottom: 1rem; }
.source-card { position: relative; overflow: hidden; min-height: 150px; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.source-card::after { position: absolute; content: attr(data-source); right: -4px; bottom: -18px; color: rgba(14,102,79,.06); font-size: 4.8rem; font-weight: 900; }
.source-card b, .source-card small { display: block; position: relative; z-index: 1; }
.source-card b { margin: .75rem 0 .35rem; }
.source-card small { color: var(--ink-soft); }
.source-card .pill { position: relative; z-index: 1; }
.source-card--link { display: block; color: inherit; text-decoration: none; border-color: #9fcdb8; background: linear-gradient(145deg,#ffffff,#edf8f2); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.source-card--link:hover, .source-card--link:focus-visible { transform: translateY(-2px); border-color: var(--forest); box-shadow: 0 10px 28px rgba(14,102,79,.14); outline: none; }
.source-card__map { display: block; position: relative; z-index: 1; width: 100%; height: 130px; margin-bottom: .8rem; border-radius: 10px; object-fit: cover; object-position: center; }
.source-card p { position: relative; z-index: 1; margin: .7rem 0; color: var(--ink-soft); font-size: .72rem; line-height: 1.45; }
.source-link { display: inline-block; position: relative; z-index: 1; margin-top: .35rem; color: var(--forest); font-size: .72rem; font-weight: 800; }
.kmd-readiness-panel { margin-bottom: 1rem; border-color: #9fcdb8; background: linear-gradient(145deg,#fff,#f0f8f4); }
.kmd-product-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(245px,1fr)); gap: .7rem; margin-top: 1rem; }
.kmd-product-card { display: flex; gap: .7rem; min-height: 105px; padding: .8rem; border: 1px solid #d7e8df; border-radius: 11px; background: #fff; }
.kmd-product-card > span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; font-size: .7rem; font-weight: 800; }
.kmd-product-card b, .kmd-product-card small, .kmd-product-card em { display: block; }
.kmd-product-card b { color: var(--forest-dark); font-size: .78rem; }
.kmd-product-card small { margin-top: .25rem; color: var(--ink-soft); font-size: .67rem; line-height: 1.4; }
.kmd-product-card em { margin-top: .4rem; color: #8a642b; font-size: .62rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.message-guidance { margin-top: 1rem; padding: .85rem 1rem; border-left: 4px solid #c48722; border-radius: 8px; background: #fff8ea; }
.message-guidance b { color: #75501b; font-size: .72rem; text-transform: uppercase; }
.message-guidance p { margin: .3rem 0 0; color: var(--ink-soft); font-size: .73rem; line-height: 1.5; }
.interoperability-panel { margin-bottom: 1rem; border-color: #b9d9ca; background: linear-gradient(145deg,#ffffff,#f3faf6); }
.interoperability-panel > .muted { max-width: 980px; margin-top: -.35rem; }
.interoperability-grid { grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); margin-top: 1rem; }
.compact-list { margin-top: .7rem; }
.validation-issues { margin: .65rem 0 0; padding: .55rem .65rem; border-left: 3px solid #c47a19; border-radius: 5px; background: #fff7e8; color: #80500f; font-size: .7rem; }
.stack-list { display: grid; gap: .7rem; }
.record-card { padding: 1rem; border: 1px solid #e3e9e5; border-radius: 13px; background: #fbfcfb; }
.record-head, .record-meta, .record-actions { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.record-head b { font-size: .86rem; }
.record-meta { justify-content: flex-start; flex-wrap: wrap; margin-top: .5rem; color: var(--ink-soft); font-size: .7rem; }
.record-copy { margin: .7rem 0 0; color: var(--ink-soft); font-size: .77rem; }
.language-message { margin-top: .7rem; padding: .7rem .8rem; border-left: 3px solid #a8d2bd; border-radius: 7px; background: #f4f9f6; }
.language-message b { color: var(--forest-dark); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.language-message p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .76rem; }
.evidence-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.evidence-chip { min-width: 190px; display: grid; gap: .12rem; flex: 1 1 220px; padding: .6rem .7rem; border: 1px solid #c9ddd3; border-radius: 10px; background: #eef8f2; color: var(--ink-soft); font-size: .68rem; }
.evidence-chip b { color: var(--forest); font-size: .66rem; text-transform: uppercase; }
.evidence-chip small { color: #60766f; font-size: .64rem; }
.audience-preview { display: grid; gap: .2rem; min-height: 72px; align-content: center; padding: .8rem .9rem; border: 1px solid #b9d9ca; border-radius: 11px; background: #eef8f2; color: var(--ink-soft); font-size: .72rem; }
.audience-preview b { color: var(--forest-dark); font-size: .84rem; }
.audience-preview small { line-height: 1.45; }
.campaign-lock { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: .7rem; }
.campaign-lock small { color: #7a633f; font-size: .66rem; }
.campaign-events { display: grid; gap: .4rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px solid #e1e9e5; }
.campaign-events span { display: grid; gap: .08rem; }
.campaign-events b { color: var(--forest-dark); font-size: .65rem; text-transform: uppercase; }
.campaign-events small { color: var(--ink-soft); font-size: .64rem; }
.feedback-intelligence { margin-bottom: 1rem; }
.feedback-form-panel { border-color: #b9d9ca; background: linear-gradient(145deg,#ffffff,#f3faf6); }
.mel-breakdowns { display: grid; gap: 1rem; margin-top: 1rem; }
.mel-breakdowns > section { display: grid; gap: .55rem; }
.mel-breakdowns > section > b { color: var(--forest-dark); font-size: .68rem; letter-spacing: .055em; text-transform: uppercase; }
.breakdown-list { display: grid; gap: .4rem; }
.breakdown-list .empty-state { min-height: 70px; padding: .8rem; }
.breakdown-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .65rem; border: 1px solid #e1e9e5; border-radius: 9px; background: #f8faf9; color: var(--ink-soft); font-size: .7rem; }
.breakdown-row b { color: var(--forest-dark); font-size: .68rem; }
.feedback-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.feedback-tags span { padding: .28rem .48rem; border-radius: 999px; background: #edf5f0; color: #45665d; font-size: .65rem; font-weight: 700; }
.feedback-events { display: grid; gap: .4rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px solid #e1e9e5; }
.feedback-events span { display: grid; gap: .08rem; }
.feedback-events b { color: var(--forest-dark); font-size: .65rem; text-transform: uppercase; }
.feedback-events small { color: var(--ink-soft); font-size: .64rem; }
.record-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: .8rem; }
.mini-button { padding: .35rem .55rem; border: 1px solid #bfd4ca; border-radius: 8px; background: #fff; color: var(--forest); font-size: .67rem; font-weight: 750; cursor: pointer; }
.mini-button:hover { background: var(--mint); }
.mini-button--approve { border-color: #9fd1b8; background: #ecf8f1; }
.mini-button--reject { border-color: #e9baba; color: var(--danger); }
.privacy-banner, .provider-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.2rem; border: 1px solid #bad9ca; border-radius: 15px; background: #ebf7f0; }
.privacy-banner { justify-content: flex-start; }
.privacy-banner b, .provider-banner b, .provider-banner small { display: block; }
.privacy-banner p { margin: .15rem 0 0; font-size: .76rem; }
.privacy-icon, .lock-symbol { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--forest); color: #fff; font-weight: 850; }
.provider-banner { border-color: #e8cb91; background: var(--amber-soft); }
.provider-banner > div { display: flex; align-items: center; gap: .8rem; }
.provider-banner small { margin-top: .1rem; color: #7a633f; }
.advisory-automation-banner { flex-direction: column; align-items: stretch; margin-top: .2rem; min-width: 0; }
.advisory-automation-banner > div { align-items: flex-start; min-width: 0; width: 100%; }
.advisory-automation-banner > div > span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.advisory-automation-banner .privacy-icon { flex-shrink: 0; }
.advisory-automation-banner .button { align-self: stretch; width: 100%; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

.form-grid--provider-test { grid-template-columns: minmax(220px, 1fr) auto; align-items: end; margin-top: .8rem; }
.lock-symbol { background: #a96511; }
.map-library-panel { margin-bottom: 1rem; }
.map-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.map-card { overflow: hidden; margin: 0; border: 1px solid #dce7e1; border-radius: 15px; background: #fbfcfb; }
.map-preview { width: 100%; height: 220px; display: block; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid #e2e9e5; background: #edf3ef; cursor: zoom-in; }
.map-preview img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 18%; transition: transform .24s ease; }
.map-preview:hover img { transform: scale(1.025); }
.map-preview:focus-visible { outline: 3px solid rgba(31,147,104,.35); outline-offset: -3px; }
.map-card figcaption { display: grid; gap: .25rem; padding: 1rem; }
.map-card figcaption b { font-size: .85rem; }
.map-card figcaption span { color: var(--ink-soft); font-size: .74rem; }
.map-card figcaption small { color: #6f847d; font-size: .66rem; }
.map-dialog { width: min(1080px,calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 1px solid #a9c5b7; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(7,44,34,.28); }
.map-dialog::backdrop { background: rgba(7,35,28,.72); backdrop-filter: blur(3px); }
.map-dialog-header { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.map-dialog-header h3 { margin: 0; }
.map-dialog-image { width: 100%; height: auto; display: block; }
.member-intelligence { margin-bottom: 1rem; }
.member-import-panel { margin-top: 0; }
.kobo-consent-panel { margin: 0 0 1rem; border-color: #b9d9ca; background: linear-gradient(145deg,#ffffff,#f3faf6); }
.kobo-consent-panel .metric-grid { margin-bottom: .9rem; }
.kobo-form-action { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.kobo-form-action small { color: var(--ink-soft); font-size: .7rem; }
.kobo-form-action .button { text-decoration: none; }
.coverage-list { display: grid; gap: .8rem; }
.coverage-row { display: grid; grid-template-columns: 100px 1fr 70px; align-items: center; gap: .75rem; font-size: .72rem; }
.coverage-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverage-row progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 999px; background: #e7efe9; }
.coverage-row progress::-webkit-progress-bar { border-radius: 999px; background: #e7efe9; }
.coverage-row progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg,var(--forest),var(--leaf)); }
.coverage-row progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg,var(--forest),var(--leaf)); }
.coverage-row span { color: var(--ink-soft); text-align: right; }
.value-chain-list { display: flex; flex-wrap: wrap; gap: .6rem; align-content: flex-start; }
.value-chain-chip { min-width: 135px; display: grid; gap: .18rem; flex: 1 1 145px; padding: .75rem; border: 1px solid #dce7e1; border-radius: 12px; background: #f7faf8; }
.value-chain-chip b { font-size: .74rem; }
.value-chain-chip span { color: var(--forest); font-size: 1.15rem; font-weight: 800; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.form-grid label { display: grid; align-content: start; gap: .35rem; color: var(--ink); font-size: .73rem; font-weight: 750; }
.form-grid label small { color: var(--ink-soft); font-weight: 500; }
.field-full { grid-column: 1/-1; }
input, select, textarea { width: 100%; min-width: 0; padding: .7rem .75rem; border: 1px solid #cfdcd5; border-radius: 9px; outline: none; background: #fff; color: var(--ink); transition: .16s ease; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(31,147,104,.12); }
.check-field { display: flex !important; grid-template-columns: auto 1fr; align-items: center !important; justify-content: flex-start; }
.check-field input { width: auto; accent-color: var(--forest); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .62rem .9rem; border: 1px solid transparent; border-radius: 9px; font-size: .76rem; font-weight: 800; cursor: pointer; transition: .16s ease; }
.button:disabled { opacity: .55; cursor: wait; }
.button--primary { background: var(--forest); color: #fff; box-shadow: 0 6px 14px rgba(15,102,79,.15); }
.button--primary:hover { background: var(--forest-dark); }
.button--secondary { border-color: #bdd1c7; background: #fff; color: var(--forest); }
.button--secondary:hover { background: #eef6f1; }
.button--quiet { min-height: 36px; padding: .45rem .7rem; border-color: var(--line); background: #fff; color: var(--ink-soft); }
.button--wide { width: 100%; margin-top: 1.2rem; }
.upload-row { display: flex; align-items: center; gap: .7rem; }
.upload-row input[type="file"] { padding: .52rem; font-size: .72rem; }
.divider { display: flex; align-items: center; gap: .6rem; margin: 1.1rem 0; color: #82948e; font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; }
.divider::before, .divider::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.compact-form { padding-top: .2rem; }

.table-shell { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .75rem; }
th, td { padding: .72rem .65rem; border-bottom: 1px solid #e7ece9; text-align: left; vertical-align: top; }
th { color: var(--ink-soft); font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }
td { color: var(--ink); }
.empty-state { display: grid; min-height: 120px; place-items: center; padding: 1.5rem; border: 1px dashed #cedbd4; border-radius: 12px; color: var(--ink-soft); font-size: .78rem; text-align: center; }
.toast { position: fixed; z-index: 100; right: 1.3rem; bottom: 1.3rem; max-width: min(420px,calc(100vw - 2rem)); padding: .85rem 1rem; border-radius: 11px; background: #123f34; color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.2); font-size: .78rem; transform: translateY(140%); opacity: 0; transition: .25s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-error { background: #8d3030; }
.mobile-scrim { display: none; }
.is-role-hidden { display: none !important; }

@media (max-width: 1180px) {
  :root { --sidebar: 240px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-grid--five { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dashboard-grid, .two-column, .two-column--gis { grid-template-columns: 1fr; }
  .panel--full { grid-column: auto; }
  .source-grid { grid-template-columns: 1fr; }
  .map-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-card { align-items: flex-start; flex-direction: column; }
  .user-copy { display: none; }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 42vh; padding: 2rem; }
  .story-copy { margin: 4rem 0 2rem; }
  .story-copy h1 { font-size: clamp(2.25rem, 9vw, 4rem); }
  .story-footer { display: none; }
  .login-panel { padding: 1rem; }
  .login-card { margin: -1.5rem 0 1rem; }
  .sidebar { transform: translateX(-105%); transition: .23s ease; box-shadow: 18px 0 50px rgba(13,52,42,.16); }
  .sidebar.is-open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .icon-button { display: grid; place-items: center; }
  .mobile-scrim { position: fixed; z-index: 15; inset: 0; background: rgba(9,42,34,.35); }
  .mobile-scrim.is-visible { display: block; }
  .topbar { min-height: 74px; padding: .75rem 1rem; }
  .topbar-actions { gap: .45rem; }
  .language-picker span, .avatar { display: none; }
  .language-picker select { max-width: 100px; }
  .content { padding-top: 1rem; }
  .hero-card { min-height: 240px; }
  .map-gallery { grid-template-columns: 1fr; }
  .map-preview { height: 250px; }
}

@media (max-width: 560px) {
  h1 { font-size: 1.75rem; }
  .topbar h2 { font-size: .92rem; max-width: 170px; }
  .topbar .eyebrow { display: none; }
  .button--quiet { font-size: 0; }
  .button--quiet::after { content: "Exit"; font-size: .72rem; }
  .metric-grid, .metric-grid--five, .metric-grid--three { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 110px; }
  .hero-card { padding: 1.5rem; }
  .hero-status { width: 100%; min-width: 0; }
  .section-intro, .panel-heading, .provider-banner { align-items: flex-start; flex-direction: column; }
  .callout { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .upload-row { align-items: stretch; flex-direction: column; }
  .record-head { align-items: flex-start; }
  .workflow-list > div { grid-template-columns: 30px 1fr; }
  .workflow-list .pill { grid-column: 2; }
  .coverage-row { grid-template-columns: 86px 1fr 58px; gap: .5rem; }
}
