@font-face {
    font-family: "Avenir Next";
    src: url("../fonts/avnrnxt-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next";
    src: url("../fonts/avnrnxt-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #0e172b;
    --ink-soft: #273247;
    --muted: #697184;
    --line: #dfe4e2;
    --line-strong: #cdd4d1;
    --surface: #ffffff;
    --surface-muted: #f5f7f6;
    --canvas: #f7fbf9;
    --green: #00d2a1;
    --green-dark: #00a37d;
    --green-soft: #65dcc0;
    --blue-soft: #e7f1ff;
    --lilac-soft: #f0ebff;
    --sand-soft: #fff3df;
    --shadow: 0 1px 2px rgba(10, 24, 20, 0.05), 0 12px 30px rgba(10, 24, 20, 0.05);
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--canvas);
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
label:has(input:focus-visible) {
    outline: 3px solid rgba(0, 188, 125, 0.3);
    outline-offset: 2px;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.demo-notice {
    position: relative;
    z-index: 60;
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 7px 20px;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.demo-notice span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.demo-notice i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(0, 188, 125, 0.15);
}

.demo-notice p {
    margin: 0;
}

.demo-notice a {
    margin-left: 12px;
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
}

.app-shell {
    display: grid;
    min-height: calc(100vh - 38px);
    grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    height: calc(100vh - 38px);
    flex-direction: column;
    padding: 16px 14px;
    border-right: 1px solid var(--line);
    background: #fbfcfb;
}

.sidebar-brand {
    display: flex;
    height: 54px;
    align-items: center;
    padding: 7px 9px;
    border-radius: 11px;
}

.sidebar-brand:hover {
    background: var(--surface-muted);
}

.sidebar-brand-logo {
    display: block;
    width: 178px;
    height: auto;
}

.sidebar-group {
    margin-top: 22px;
}

.sidebar-group > p {
    margin: 0 10px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-link,
.sidebar-footer > a {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #4b5362;
    font-size: 14px;
    font-weight: 600;
}

.sidebar-link svg,
.sidebar-footer > a svg {
    width: 18px;
    height: 18px;
}

.sidebar-link:hover,
.sidebar-link.is-active,
.sidebar-footer > a:hover {
    background: #edf1ef;
    color: var(--ink);
}

.sidebar-card {
    margin: 22px 4px 0;
    padding: 16px;
    border: 1px solid #cdeee1;
    border-radius: 14px;
    background: linear-gradient(145deg, #effbf6, #f8fffc);
}

.sidebar-card span {
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sidebar-card strong {
    display: block;
    margin-top: 6px;
    font-size: 14px;
}

.sidebar-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.sidebar-footer {
    margin-top: auto;
}

.demo-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
}

.demo-user > span,
.avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e8ecea;
    font-size: 11px;
    font-weight: 800;
}

.demo-user strong,
.demo-user small {
    display: block;
}

.demo-user strong {
    font-size: 13px;
}

.demo-user small {
    color: var(--muted);
    font-size: 11px;
}

.sidebar-scrim {
    display: none;
}

.workspace {
    min-width: 0;
    background: var(--surface);
}

.topbar {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
}

.icon-button:hover {
    border-color: var(--line);
    background: var(--surface-muted);
}

.topbar-label {
    color: var(--muted);
    font-size: 12px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.solid-button,
.outline-button,
.ghost-button,
.text-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.solid-button {
    border: 1px solid #151515;
    background: #151515;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.solid-button:hover {
    background: #2a2a2a;
}

.outline-button {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(13, 30, 24, 0.05);
}

.outline-button:hover,
.ghost-button:hover {
    border-color: #aeb8b4;
    background: var(--surface-muted);
}

.ghost-button {
    border: 1px solid transparent;
    background: transparent;
}

.text-button {
    padding-inline: 3px;
    border: 0;
    background: transparent;
    color: var(--green-dark);
}

.text-button:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wide {
    width: 100%;
}

.workspace-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 27px clamp(24px, 4vw, 54px) 22px;
}

.workspace-title > a {
    color: var(--muted);
    font-size: 12px;
}

.workspace-title > a:hover {
    color: var(--green-dark);
}

.workspace-title h1 {
    margin: 5px 0 0;
    font-size: 27px;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.workspace-title p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.workspace-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.date-badge {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.workspace-tabs {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 0 clamp(24px, 4vw, 54px);
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
}

.workspace-tabs button {
    position: relative;
    display: grid;
    min-width: 126px;
    padding: 15px 14px 14px;
    border: 0;
    background: transparent;
    text-align: left;
}

.workspace-tabs button::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 2px;
    background: transparent;
    content: "";
}

.workspace-tabs button:hover,
.workspace-tabs button.is-active {
    color: var(--green-dark);
}

.workspace-tabs button.is-active::after {
    background: var(--green);
}

.workspace-tabs span,
.workspace-tabs small {
    display: block;
}

.workspace-tabs span {
    font-size: 14px;
    font-weight: 700;
}

.workspace-tabs small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
}

.content-wrap {
    min-height: calc(100vh - 224px);
    padding: 30px clamp(24px, 4vw, 54px) 64px;
    background: linear-gradient(180deg, #effbf6 0, var(--canvas) 210px, var(--canvas) 100%);
}

.view {
    width: min(100%, 1350px);
    margin: 0 auto;
    animation: view-in 240ms ease both;
}

.view[hidden] {
    display: none;
}

@keyframes view-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.overview-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 40px;
    align-items: center;
    padding: clamp(30px, 4vw, 46px);
    border-radius: var(--radius);
    background: linear-gradient(118deg, #003b31, #0e172b 78%);
    color: white;
    box-shadow: var(--shadow);
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.overview-banner .section-kicker {
    color: #64e2b8;
}

.overview-banner h2 {
    max-width: 710px;
    margin: 0;
    font-size: clamp(27px, 3.2vw, 42px);
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.overview-banner > div > p:last-child {
    max-width: 710px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.7;
}

.reporting-window {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.reporting-window span,
.reporting-window strong {
    display: block;
}

.reporting-window span {
    color: #8ce9c9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reporting-window strong {
    margin-top: 9px;
    font-size: 16px;
}

.reporting-window p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.metric-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 22px;
}

.metric-card {
    min-height: 132px;
    padding: 23px;
    border: 1px solid rgba(32, 50, 43, 0.09);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.metric-card.mint { background: linear-gradient(145deg, #d9f8eb, #effbf7); }
.metric-card.blue { background: linear-gradient(145deg, #dceaff, #f0f6ff); }
.metric-card.lilac { background: linear-gradient(145deg, #e9e1ff, #f6f2ff); }
.metric-card.sand { background: linear-gradient(145deg, #fff0d5, #fffaf1); }

.metric-card span,
.metric-card strong,
.metric-card small {
    display: block;
}

.metric-card span {
    color: var(--muted);
    font-size: 12px;
}

.metric-card strong {
    margin-top: 8px;
    font-size: clamp(23px, 2vw, 30px);
    letter-spacing: -0.045em;
    line-height: 1;
}

.metric-card small {
    margin-top: 11px;
    color: var(--muted);
    font-size: 11px;
}

.panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.chart-panel {
    margin-top: 22px;
}

.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.panel-heading h3,
.upload-card h3,
.review-card h3,
.role-grid h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.03em;
}

.panel-heading > div > span {
    display: inline-block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.panel-tools,
.segmented,
.legend {
    display: flex;
    align-items: center;
    gap: 8px;
}

.segmented {
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-muted);
}

.segmented button {
    min-height: 30px;
    padding: 6px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.segmented button.is-active {
    background: white;
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(16, 30, 24, 0.11);
}

.segmented.large button {
    min-height: 37px;
    padding: 8px 14px;
    font-size: 12px;
}

.chart {
    position: relative;
    display: flex;
    height: 255px;
    align-items: end;
    gap: clamp(4px, 0.8vw, 12px);
    margin-top: 35px;
    padding: 18px 3px 29px;
    border-bottom: 1px solid var(--line-strong);
    background: repeating-linear-gradient(to top, transparent 0, transparent 25%, rgba(161, 173, 168, 0.18) calc(25% + 1px), rgba(161, 173, 168, 0.18) calc(25% + 2px));
}

.chart::before {
    position: absolute;
    z-index: 5;
    right: 0;
    left: 0;
    bottom: var(--goal-position, 63%);
    border-top: 2px dashed #f0a51a;
    content: "";
    pointer-events: none;
}

.goal-label {
    position: absolute;
    z-index: 5;
    top: calc(100% - var(--goal-position, 63%) - 9px);
    right: 0;
    padding: 4px 7px;
    border-radius: 6px;
    background: #fff3cf;
    color: #805806;
    font-size: 9px;
    font-weight: 800;
    pointer-events: none;
}

.chart-bar {
    position: relative;
    z-index: 4;
    display: flex;
    min-width: 7px;
    height: 100%;
    flex: 1 1 0;
    align-items: end;
    padding: 0;
    border: 0;
    background: transparent;
}

.chart-bar i {
    display: block;
    width: 100%;
    height: var(--bar-height);
    min-height: 4px;
    border-radius: 5px 5px 1px 1px;
    background: var(--green);
    transition: height 240ms ease, background 150ms ease, opacity 150ms ease;
}

.chart-bar.partial i {
    opacity: 0.45;
}

.chart-bar:hover i,
.chart-bar.is-selected i {
    background: #078a66;
}

.chart-bar span {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    color: var(--muted);
    font-size: 9px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.chart-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 33px;
    margin-top: 11px;
    font-size: 11px;
}

.chart-detail span {
    color: var(--muted);
}

.two-column,
.role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.year-bars {
    display: grid;
    gap: 20px;
    margin-top: 27px;
}

.year-bars > div {
    display: grid;
    grid-template-columns: 42px minmax(80px, 1fr) 72px;
    align-items: center;
    gap: 14px;
    font-size: 12px;
}

.year-bars i {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #ebefed;
}

.year-bars b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.year-bars strong {
    text-align: right;
}

.leader-list {
    margin-top: 18px;
}

.leader {
    display: grid;
    width: 100%;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
}

.leader:last-child {
    border-bottom: 0;
}

.leader:hover strong {
    color: var(--green-dark);
}

.leader > span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 800;
}

.leader div strong,
.leader div small {
    display: block;
}

.leader div strong,
.leader > strong {
    font-size: 12px;
}

.leader div small {
    color: var(--muted);
    font-size: 10px;
}

.page-intro {
    display: flex;
    min-height: 128px;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 8px 2px 26px;
}

.page-intro h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 45px);
    letter-spacing: -0.055em;
    line-height: 1;
}

.page-intro > div > p:last-child {
    max-width: 660px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.intro-stat {
    display: flex;
    min-width: 150px;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    padding-bottom: 3px;
}

.intro-stat strong {
    font-size: 30px;
    letter-spacing: -0.05em;
}

.intro-stat span {
    color: var(--muted);
    font-size: 11px;
}

.supporter-panel {
    padding: 0;
    overflow: hidden;
}

.supporter-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
}

.search-field {
    position: relative;
    display: flex;
    min-width: 230px;
    flex: 1;
    align-items: center;
}

.search-field svg {
    position: absolute;
    left: 11px;
    width: 17px;
    color: var(--muted);
}

.search-field input,
.supporter-toolbar select,
.form-field input,
.form-field select,
.money-field input {
    width: 100%;
    min-height: 39px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: white;
    font-size: 12px;
}

.money-field input:focus {
    outline: 0;
}

.search-field input {
    padding: 9px 12px 9px 36px;
}

.supporter-toolbar select {
    min-width: 145px;
    padding: 8px 30px 8px 10px;
}

.result-count {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.data-table th {
    background: #fbfcfb;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr[data-supporter-id] {
    cursor: pointer;
}

.data-table tbody tr[data-supporter-id]:hover {
    background: #f6fbf8;
}

.data-table td strong,
.data-table td small {
    display: block;
}

.data-table td small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.status {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.status.active { background: var(--green-soft); color: #076a50; }
.status.recent { background: var(--sand-soft); color: #8b5d0a; }
.status.inactive { background: #eef0ef; color: #6d746f; }
.status.neutral { background: var(--blue-soft); color: #315b8f; }

.sparkline {
    display: flex;
    width: 94px;
    height: 28px;
    align-items: end;
    gap: 2px;
}

.sparkline i {
    width: 6px;
    height: var(--spark-height);
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    background: #67d7b2;
}

.row-open {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--green-dark);
}

.empty-state {
    padding: 50px 20px;
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 7px;
}

.trend-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.trend-stat {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
}

.trend-stat span,
.trend-stat strong,
.trend-stat small {
    display: block;
}

.trend-stat span {
    color: var(--muted);
    font-size: 11px;
}

.trend-stat strong {
    margin-top: 7px;
    font-size: 25px;
    letter-spacing: -0.04em;
}

.trend-stat small {
    margin-top: 5px;
    color: var(--green-dark);
    font-size: 10px;
}

.legend {
    color: var(--muted);
    font-size: 10px;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.emerald { background: var(--green); }
.dot.slate { background: #9eabb5; }

.comparison-chart {
    display: grid;
    height: 315px;
    grid-template-columns: repeat(8, minmax(30px, 1fr));
    align-items: end;
    gap: 10px;
    margin-top: 28px;
    padding: 24px 4px 32px;
    border-bottom: 1px solid var(--line-strong);
    background: repeating-linear-gradient(to top, transparent 0, transparent 25%, rgba(161, 173, 168, 0.18) calc(25% + 1px), rgba(161, 173, 168, 0.18) calc(25% + 2px));
}

.comparison-month {
    position: relative;
    display: flex;
    height: 100%;
    align-items: end;
    justify-content: center;
    gap: 4px;
}

.comparison-month i {
    display: block;
    width: min(15px, 42%);
    border-radius: 4px 4px 0 0;
    transition: height 240ms ease;
}

.comparison-month i:first-child { height: var(--current); background: var(--green); }
.comparison-month i:nth-child(2) { height: var(--prior); background: #a8b2b9; }

.comparison-month span {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    color: var(--muted);
    font-size: 9px;
    transform: translateX(-50%);
}

.comparison-month:hover::before {
    position: absolute;
    bottom: calc(max(var(--current), var(--prior)) + 8px);
    left: 50%;
    z-index: 4;
    padding: 5px 7px;
    border-radius: 6px;
    background: var(--ink);
    color: white;
    content: attr(data-tooltip);
    font-size: 9px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.callout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 25px;
    margin-top: 22px;
    padding: 22px 26px;
    border: 1px solid #bfe8d8;
    border-radius: 14px;
    background: #effbf6;
}

.callout span {
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.callout p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.fee-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.8fr);
    gap: 32px;
    margin-top: 25px;
}

.payment-list {
    display: grid;
    gap: 9px;
}

.payment-button {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(100px, 1fr) minmax(90px, 1.4fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    text-align: left;
}

.payment-button:hover,
.payment-button.is-active {
    border-color: #9cdcc5;
    background: #f3fbf7;
}

.payment-button > span {
    font-size: 12px;
    font-weight: 700;
}

.payment-button i {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eeeb;
}

.payment-button i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.payment-button strong {
    font-size: 11px;
}

.fee-detail {
    padding: 25px;
    border-radius: 14px;
    background: var(--ink);
    color: white;
}

.fee-detail > span {
    color: #74dcb9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fee-detail h4 {
    margin: 8px 0 20px;
    font-size: 24px;
}

.fee-detail dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.fee-detail dl div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fee-detail dt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.fee-detail dd {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.fee-detail p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.6;
}

.import-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 22px;
}

.upload-card > div:first-child > p:last-child,
.review-card > p,
.role-grid article > p:last-child {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.drop-zone {
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    gap: 6px;
    margin: 24px 0 12px;
    padding: 25px;
    border: 1.5px dashed #aebdb7;
    border-radius: 13px;
    background: #f9fcfa;
    text-align: center;
    transition: border-color 150ms ease, background 150ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
    border-color: var(--green);
    background: #effbf6;
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.drop-zone svg {
    width: 29px;
    height: 29px;
    margin-bottom: 6px;
    color: var(--green-dark);
}

.drop-zone strong {
    font-size: 13px;
}

.drop-zone span {
    color: var(--muted);
    font-size: 11px;
}

.analysis-result {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #bde8d7;
    border-radius: 10px;
    background: var(--green-soft);
    color: #245548;
    font-size: 11px;
}

.analysis-result strong,
.analysis-result span {
    display: block;
}

.analysis-result span {
    margin-top: 3px;
}

.review-card ol {
    display: grid;
    gap: 21px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.review-card li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 13px;
}

.review-card li > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 800;
}

.review-card li strong {
    font-size: 12px;
}

.review-card li p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.imports-history {
    margin-top: 22px;
    padding: 0;
    overflow: hidden;
}

.imports-history .panel-heading {
    padding: 22px 24px 14px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.member-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow);
}

.avatar.green { background: var(--green-soft); color: var(--green-dark); }
.avatar.blue { background: var(--blue-soft); color: #315b8f; }
.avatar.lilac { background: var(--lilac-soft); color: #6c4ca3; }

.member-card strong,
.member-card p {
    display: block;
    margin: 0;
}

.member-card p {
    margin: 2px 0 9px;
    color: var(--muted);
    font-size: 10px;
}

.member-card > small {
    grid-column: 2;
    color: var(--muted);
    font-size: 10px;
}

.detail-dialog,
.small-dialog {
    width: min(calc(100% - 28px), 720px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: white;
    color: var(--ink);
    box-shadow: 0 30px 100px rgba(7, 18, 14, 0.3);
}

.small-dialog {
    width: min(calc(100% - 28px), 480px);
}

.detail-dialog::backdrop,
.small-dialog::backdrop {
    background: rgba(8, 19, 15, 0.54);
    backdrop-filter: blur(3px);
}

.dialog-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 1px solid var(--line);
}

.dialog-top h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.045em;
}

.dialog-top p:last-child {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.dialog-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 20px 26px;
}

.dialog-metrics div {
    padding: 15px;
    border-radius: 11px;
    background: var(--surface-muted);
}

.dialog-metrics span,
.dialog-metrics strong {
    display: block;
}

.dialog-metrics span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.dialog-metrics strong {
    margin-top: 5px;
    font-size: 16px;
}

.mini-history {
    display: flex;
    height: 100px;
    align-items: end;
    gap: 5px;
    margin: 0 26px;
    padding: 12px 10px 0;
    border-bottom: 1px solid var(--line);
}

.mini-history i {
    min-width: 4px;
    flex: 1;
    height: var(--history-height);
    min-height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--green);
}

.dialog-table {
    padding: 18px 26px 28px;
}

.dialog-table h3 {
    margin: 0 0 10px;
    font-size: 13px;
}

.gift-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}

.gift-row span {
    color: var(--muted);
}

.small-dialog form > p,
.small-dialog form > label,
.small-dialog .dialog-actions {
    margin-right: 26px;
    margin-left: 26px;
}

.small-dialog form > p {
    color: var(--muted);
    font-size: 12px;
}

.money-field {
    display: flex;
    align-items: center;
    margin-top: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
}

.money-field span {
    padding-left: 12px;
    color: var(--muted);
}

.money-field input {
    border: 0;
}

.form-field {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}

.form-field > span {
    font-size: 11px;
    font-weight: 700;
}

.form-field input,
.form-field select,
.money-field input {
    padding: 9px 10px;
}

.form-note {
    color: var(--muted);
    font-size: 10px !important;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
    padding: 18px 0 24px;
    border-top: 1px solid var(--line);
}

.toast {
    position: fixed;
    z-index: 200;
    right: 22px;
    bottom: 22px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: white;
    font-size: 12px;
    box-shadow: 0 18px 55px rgba(7, 18, 14, 0.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .demo-notice p {
        display: none;
    }

    .demo-notice {
        justify-content: space-between;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 38px;
        left: 0;
        width: 270px;
        transform: translateX(-105%);
        transition: transform 200ms ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-scrim {
        position: fixed;
        z-index: 40;
        inset: 38px 0 0;
        display: block;
        background: rgba(8, 19, 15, 0.45);
        opacity: 0;
        transition: opacity 180ms ease;
        pointer-events: none;
    }

    body.sidebar-open .sidebar-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .workspace-head {
        align-items: start;
    }

    .workspace-actions {
        max-width: 370px;
    }

    .overview-banner {
        grid-template-columns: 1fr;
    }

    .reporting-window {
        max-width: 500px;
    }

    .supporter-toolbar {
        flex-wrap: wrap;
    }

    .search-field {
        min-width: 100%;
    }

    .fee-layout,
    .import-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .demo-notice {
        gap: 10px;
        padding-inline: 13px;
    }

    .demo-notice a {
        margin: 0;
        font-size: 10px;
    }

    .topbar {
        padding-inline: 14px;
    }

    .topbar-label,
    .topbar-actions .ghost-button {
        display: none;
    }

    .workspace-head {
        display: block;
        padding: 21px 18px 18px;
    }

    .workspace-actions {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .workspace-actions .date-badge,
    .workspace-actions .outline-button {
        display: none;
    }

    .workspace-tabs {
        padding: 0 7px;
    }

    .workspace-tabs button {
        min-width: 104px;
        padding-inline: 10px;
    }

    .content-wrap {
        padding: 18px 14px 45px;
    }

    .overview-banner {
        gap: 24px;
        padding: 27px 23px;
    }

    .metric-grid,
    .metric-grid.three,
    .trend-metrics,
    .two-column,
    .role-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 115px;
    }

    .panel {
        padding: 21px 18px;
    }

    .panel-heading,
    .page-intro {
        align-items: start;
        flex-direction: column;
    }

    .panel-tools {
        width: 100%;
        flex-wrap: wrap;
    }

    .chart {
        gap: 4px;
        height: 220px;
    }

    .chart-bar span {
        display: none;
    }

    .page-intro {
        display: flex;
        min-height: 0;
        padding: 15px 2px 22px;
    }

    .intro-stat {
        min-width: 0;
        justify-content: flex-start;
    }

    .comparison-chart {
        height: 250px;
        gap: 5px;
    }

    .callout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .supporter-toolbar select {
        width: 100%;
    }

    .supporter-toolbar label:not(.search-field) {
        flex: 1;
    }

    .result-count {
        width: 100%;
    }

    .payment-button {
        grid-template-columns: minmax(90px, 1fr) minmax(70px, 1fr) auto;
    }

    .dialog-metrics {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
