@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-500.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/inter-latin-700.woff2") format("woff2");
}

:root {
    --ink: #121316;
    --ink-deep: #062d60;
    --green: #14705f;
    --green-bright: #3fa684;
    --lime: #7eceb3;
    --cream: #f7f8fa;
    --paper: #fafaf8;
    --warm: #e2f3f0;
    --coral: #0fa1a2;
    --line: rgba(18, 19, 22, .12);
    --line-strong: rgba(18, 19, 22, .2);
    --muted: #5a5e68;
    --shadow: 0 24px 60px rgba(6, 45, 96, .12);
    --shadow-soft: 0 10px 30px rgba(6, 45, 96, .07);
    --radius: 12px;
    --brand: var(--brand-primary, #062d60);
    --brand-action: var(--brand-secondary, #3fa684);
    --brand-text: var(--brand-primary-text, #fff);
    --brand-action-text: var(--brand-secondary-text, #111827);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--green);
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink-deep);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
}

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--lime);
    color: var(--ink-deep);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(14px);
}

.topbar-inner {
    display: grid;
    width: min(1500px, calc(100% - 48px));
    min-height: 76px;
    margin-inline: auto;
    grid-template-columns: minmax(210px, auto) minmax(320px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: var(--brand);
    text-decoration: none;
}

.brand:hover {
    color: var(--brand);
}

.brand img,
.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 9px;
    background: var(--brand);
    color: var(--brand-text);
    font-size: 18px;
    font-weight: 700;
    object-fit: contain;
}

.brand img {
    border: 1px solid var(--line);
    background: white;
}

.brand img.evo-logo {
    width: 115px;
    height: auto;
    flex: 0 0 115px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.brand-copy,
.account-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-copy strong,
.account-copy strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy small,
.account-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.navlinks {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.navlinks a {
    position: relative;
    padding: 10px 12px;
    border-radius: 8px;
    color: #454b56;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.navlinks a:hover {
    background: var(--cream);
    color: var(--brand);
}

.navlinks a.active {
    background: color-mix(in srgb, var(--brand-action) 15%, white);
    color: var(--brand);
    font-weight: 700;
}

.navlinks a.active::after {
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 2px;
    border-radius: 99px;
    background: var(--brand-action);
    content: "";
}

.account-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    text-decoration: none;
}

.account-link:hover,
.account-link.active {
    color: var(--brand);
}

.account-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--warm);
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.inline {
    display: inline;
    margin: 0;
}

.link-button {
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.link-button:hover {
    border-color: var(--line-strong);
    color: var(--brand);
}

.page-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 36px 32px 72px;
}

.workspace-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.workspace-label span {
    width: 24px;
    height: 2px;
    background: var(--brand-action);
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-header h1 {
    margin-bottom: 7px;
    font-size: clamp(30px, 3vw, 42px);
}

.page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.card,
.report-sheet,
.auth-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-soft);
}

.card {
    position: relative;
    margin-bottom: 22px;
    padding: 24px;
    color: inherit;
}

a.card {
    display: block;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

a.card:hover {
    border-color: color-mix(in srgb, var(--brand-action) 52%, var(--line));
    color: inherit;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.card h3 {
    font-size: 17px;
}

.card p:last-child {
    margin-bottom: 0;
}

.cards {
    display: grid;
    margin-bottom: 28px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.cards .card {
    height: 100%;
    margin-bottom: 0;
}

.partner-ad {
    margin: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-action) 34%, var(--line));
    border-radius: var(--radius);
    background:
        radial-gradient(circle at right top, color-mix(in srgb, var(--brand-action) 18%, transparent), transparent 38%),
        white;
    box-shadow: var(--shadow-soft);
}

.partner-ad-link {
    display: grid;
    min-height: 112px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.partner-ad-link:hover {
    background: color-mix(in srgb, var(--warm) 46%, transparent);
    color: inherit;
}

.partner-ad-label {
    display: inline-flex;
    align-items: center;
    align-self: start;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--warm);
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.partner-ad-content h2,
.partner-ad-content h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.partner-ad-content p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.partner-ad-action {
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.partner-ad--auth {
    width: 100%;
    margin-bottom: 18px;
}

.partner-ad--page {
    margin-bottom: 30px;
}

.partner-ad--auth .partner-ad-link {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 18px 20px;
}

.partner-ad--auth .partner-ad-label {
    justify-self: start;
}

.metric {
    min-height: 142px;
    overflow: hidden;
    padding: 24px 24px 21px;
}

.metric::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--brand-action);
    content: "";
}

.metric::after {
    position: absolute;
    right: -28px;
    bottom: -45px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-action) 13%, transparent);
    content: "";
}

.metric strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 6px 0 16px;
    color: var(--brand);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1;
}

.metric span {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ink);
}

.table > :not(caption) > * > * {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: inherit;
    text-align: left;
    vertical-align: middle;
    box-shadow: none;
}

.table thead th {
    border-top: 1px solid var(--line);
    background: var(--cream);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table thead th:first-child {
    border-left: 1px solid var(--line);
    border-radius: 8px 0 0;
}

.table thead th:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 8px 0 0;
}

.table tbody td:first-child {
    border-left: 1px solid var(--line);
}

.table tbody td:last-child {
    border-right: 1px solid var(--line);
}

.table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.table tbody tr:last-child td:last-child {
    border-radius: 0 0 8px;
}

.table tbody tr {
    transition: background .15s ease;
}

.table tbody tr:hover {
    background: color-mix(in srgb, var(--warm) 38%, white);
}

.table a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

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

.dataTables_wrapper {
    color: var(--muted);
    font-size: 13px;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 16px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    min-height: 40px;
    margin-left: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 36px;
    margin-left: 4px;
    border: 1px solid transparent !important;
    border-radius: 7px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    border-color: var(--line) !important;
    background: var(--warm) !important;
    color: var(--brand) !important;
}

label {
    color: #343943;
    font-size: 13px;
    font-weight: 700;
}

.auth-card label,
.form-card label {
    display: block;
    margin: 16px 0;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 48px;
    margin-top: 7px;
    padding: 11px 13px;
    border: 1px solid #c8ced6;
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font-size: 14px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-action);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-action) 18%, transparent);
}

.form-control::placeholder {
    color: #9aa1ab;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--brand-text);
    box-shadow: 0 9px 20px color-mix(in srgb, var(--brand) 18%, transparent);
}

.btn-primary:hover {
    border-color: color-mix(in srgb, var(--brand) 84%, black);
    background: color-mix(in srgb, var(--brand) 84%, black);
    color: var(--brand-text);
}

.btn-light,
.btn-light:focus {
    border-color: var(--line);
    background: white;
    color: var(--ink);
}

.btn-light:hover {
    border-color: var(--brand-action);
    background: var(--warm);
    color: var(--brand);
}

.w-100 {
    width: 100%;
}

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-soft);
}

.filter-bar label {
    margin: 0;
}

.filter-bar .form-control,
.filter-bar .form-select {
    min-width: 150px;
}

.report-toolbar {
    margin-bottom: 20px;
}

.report-filter-bar {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.report-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 12px 0 0;
}

.report-sheet {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 42px 48px 48px;
}

.report-style-statement {
    max-width: 920px;
}

.report-document-header {
    margin-bottom: 30px;
    text-align: center;
}

.report-company-name {
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}

.report-document-header h2 {
    margin: 0 0 6px;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -.025em;
}

.report-document-header p {
    margin: 3px 0;
}

.report-subtitle {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
}

.report-period,
.report-meta {
    color: var(--muted);
    font-size: 13px;
}

.report-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 9px;
}

.report-meta span + span::before {
    margin-right: 16px;
    color: var(--line-strong);
    content: "•";
}

.report-table-wrap {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    color: var(--ink);
    font-size: 13px;
}

.report-style-statement .report-table {
    min-width: 0;
}

.report-table th {
    padding: 10px 12px;
    border-bottom: 2px solid #667085;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.report-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8ebf0;
    vertical-align: top;
}

.report-table .report-number {
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.report-table a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, var(--brand-action) 55%, transparent);
    text-underline-offset: 3px;
}

.report-table a:hover {
    color: var(--brand);
}

.report-row-section td {
    padding-top: 22px;
    border-bottom: 1px solid #98a2b3;
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.report-row-subsection td:first-child {
    padding-top: 15px;
    font-weight: 800;
}

.report-style-statement .report-row-detail td:first-child,
.report-style-statement .report-row-calculated td:first-child {
    padding-left: 28px;
}

.report-row-calculated td {
    color: #667085;
    font-style: italic;
}

.report-row-subtotal td {
    border-top: 1px solid #98a2b3;
    border-bottom: 0;
    font-weight: 800;
}

.report-row-grand-total td {
    border-top: 2px solid #344054;
    border-bottom: 3px double #344054;
    font-size: 14px;
    font-weight: 850;
}

.report-row-opening td,
.report-row-closing td {
    background: #f7f9fc;
    font-weight: 800;
}

.report-row-entry-start td {
    border-top: 2px solid #c8ced8;
}

.report-empty {
    padding: 36px 12px !important;
    color: var(--muted);
    text-align: center;
}

.report-note,
.report-check {
    margin: 18px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
    color: #526071;
    font-size: 13px;
}

.report-note {
    margin: 0 0 18px;
}

.report-check.is-balanced {
    border-color: #b9dfcb;
    background: #eef9f2;
    color: #16633a;
}

.report-check.is-unbalanced {
    border-color: #efc3bd;
    background: #fff4f2;
    color: #9f2d20;
}

.report-summary {
    display: grid;
    max-width: 440px;
    margin: 24px 0 0 auto;
    grid-template-columns: 1fr auto;
    gap: 10px 28px;
}

.report-summary dt {
    font-weight: 700;
}

.report-summary dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.alert {
    position: relative;
    margin-bottom: 18px;
    padding: 14px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
}

.alert-success {
    border-color: #b9dfcb;
    background: #e7f6ec;
    color: #165a35;
}

.alert-danger {
    border-color: #efc4c4;
    background: #fdecec;
    color: #872828;
}

.alert-warning {
    border-color: #ead59d;
    background: #fff6dc;
    color: #725615;
}

.alert-info {
    border-color: #badce8;
    background: #e9f6fa;
    color: #195e76;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid #cae2dc;
    border-radius: 999px;
    background: var(--warm);
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: capitalize;
}

.text-muted {
    color: var(--muted) !important;
}

.form-card {
    max-width: 920px;
}

.form-card.card {
    padding: 28px;
}

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

.permission-block {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.permission-block .grid-2 {
    margin: 12px 0;
}

.permission-block label {
    font-weight: 500;
}

.error-page {
    max-width: 700px;
    margin: 8vh auto;
    padding: 70px 32px;
    text-align: center;
}

.status-code {
    color: var(--brand-action);
    font-size: clamp(60px, 10vw, 100px);
    font-weight: 700;
    letter-spacing: -.08em;
    line-height: 1;
}

.auth-shell {
    min-height: 100vh;
    padding: 0;
    background: var(--cream);
}

.auth-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(380px, .88fr) minmax(520px, 1.12fr);
}

.auth-intro {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    padding: clamp(38px, 5vw, 72px);
    background: var(--brand);
    color: var(--brand-text);
}

.auth-intro::before,
.auth-intro::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-intro::before {
    top: -160px;
    right: -170px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .16);
}

.auth-intro::after {
    right: -90px;
    bottom: -120px;
    width: 330px;
    height: 330px;
    background: color-mix(in srgb, var(--brand-action) 24%, transparent);
}

.auth-wordmark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    color: var(--brand-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.015em;
    text-decoration: none;
}

.auth-wordmark:hover {
    color: var(--brand-text);
}

.auth-wordmark img,
.wordmark-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    background: var(--brand-action);
    color: var(--brand-action-text);
    font-size: 18px;
    font-weight: 700;
    object-fit: contain;
}

.auth-wordmark img {
    border: 1px solid rgba(255, 255, 255, .3);
    background: white;
}

.auth-wordmark img.evo-logo {
    display: block;
    width: 150px;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.auth-intro-copy {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: auto 0;
    padding: 70px 0;
}

.eyebrow {
    margin: 0 0 22px;
    color: var(--lime);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.eyebrow > span {
    display: inline-block;
    width: 24px;
    height: 2px;
    margin: 0 9px 3px 0;
    background: var(--brand-action);
}

.auth-intro h1 {
    max-width: 690px;
    margin-bottom: 24px;
    color: var(--brand-text);
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.04;
}

.auth-intro-copy > p:not(.eyebrow) {
    max-width: 620px;
    margin-bottom: 30px;
    color: color-mix(in srgb, var(--brand-text) 78%, transparent);
    font-size: 17px;
}

.auth-proof {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 12px;
    color: color-mix(in srgb, var(--brand-text) 90%, transparent);
    font-size: 13px;
    font-weight: 500;
    list-style: none;
}

.auth-proof li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-proof span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-action) 28%, transparent);
    color: var(--lime);
    font-size: 11px;
    font-weight: 700;
}

.auth-footnote {
    position: relative;
    z-index: 1;
    margin: 0;
    color: color-mix(in srgb, var(--brand-text) 54%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-panel {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: clamp(30px, 6vw, 88px);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-action) 15%, transparent), transparent 34%),
        var(--cream);
}

.auth-card {
    width: min(100%, 500px);
    padding: clamp(28px, 4vw, 42px);
}

.auth-panel-stack {
    width: min(100%, 500px);
}

.auth-panel-stack .auth-card {
    width: 100%;
}

.auth-logo {
    display: block;
    max-width: 170px;
    max-height: 74px;
    margin: 0 0 26px;
    object-fit: contain;
}

.auth-card-kicker {
    margin-bottom: 12px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-card h2 {
    margin-bottom: 10px;
    font-size: 34px;
}

.auth-card > .text-muted {
    margin-bottom: 25px;
}

.auth-card .btn-primary {
    min-height: 50px;
    margin-top: 6px;
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.free-signup-page {
    grid-template-columns: minmax(340px, .72fr) minmax(660px, 1.28fr);
}

.free-signup-page .auth-intro {
    position: sticky;
    top: 0;
    height: 100vh;
}

.free-signup-page .auth-panel {
    min-height: 100vh;
    align-items: start;
}

.signup-card {
    width: min(100%, 820px);
    max-width: 820px;
}

.signup-stack {
    width: min(100%, 820px);
}

.form-section {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
}

.form-section h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.form-section .grid-2 {
    gap: 0 18px;
}

.form-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1180px) {
    .topbar-inner {
        grid-template-columns: 1fr auto;
        gap: 12px 24px;
        padding: 14px 0 10px;
    }

    .navlinks {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .page-shell {
        padding-top: 30px;
    }

    .auth-page,
    .free-signup-page {
        grid-template-columns: minmax(320px, .72fr) minmax(520px, 1.28fr);
    }

    .auth-intro {
        padding: 42px;
    }

    .auth-panel {
        padding: 42px;
    }
}

@media (max-width: 860px) {
    .auth-page,
    .free-signup-page {
        display: block;
    }

    .auth-intro,
    .free-signup-page .auth-intro {
        position: relative;
        min-height: auto;
        height: auto;
        padding: 38px 28px;
    }

    .auth-intro-copy {
        margin: 65px 0 55px;
        padding: 0;
    }

    .auth-intro h1 {
        max-width: 610px;
        font-size: clamp(38px, 8vw, 56px);
    }

    .auth-footnote {
        display: none;
    }

    .auth-panel,
    .free-signup-page .auth-panel {
        min-height: auto;
        padding: 48px 24px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 14px;
    }

    .topbar-inner {
        width: min(100% - 28px, 1500px);
        grid-template-columns: 1fr auto;
    }

    .account-copy {
        display: none;
    }

    .account-menu {
        gap: 7px;
    }

    .navlinks {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .page-shell {
        padding: 25px 16px 50px;
    }

    .workspace-label {
        margin-bottom: 17px;
    }

    .page-header {
        margin-bottom: 22px;
    }

    .page-header h1 {
        font-size: 29px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .partner-ad-link {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }

    .partner-ad-label {
        justify-self: start;
    }

    .card,
    .report-sheet,
    .form-card.card {
        padding: 20px;
    }

    .card:has(.table) {
        overflow-x: auto;
    }

    .card .table {
        min-width: 680px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar .form-control,
    .filter-bar .form-select,
    .filter-bar .btn {
        width: 100%;
    }

    .report-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .report-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .report-sheet {
        padding: 28px 20px 34px;
    }

    .report-meta {
        align-items: center;
        flex-direction: column;
        gap: 3px;
    }

    .report-meta span + span::before {
        content: none;
    }

    .report-summary {
        max-width: none;
    }

    .auth-intro {
        padding: 30px 22px;
    }

    .auth-intro-copy {
        margin: 48px 0 38px;
    }

    .auth-intro-copy > p:not(.eyebrow) {
        font-size: 15px;
    }

    .auth-proof {
        gap: 9px;
    }

    .auth-panel,
    .free-signup-page .auth-panel {
        padding: 30px 16px;
    }

    .auth-card {
        padding: 25px 21px;
    }

    .auth-card h2 {
        font-size: 29px;
    }
}

@media (max-width: 460px) {
    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        max-width: 150px;
    }

    .account-avatar {
        display: none;
    }

    .link-button {
        padding-inline: 8px;
    }

    .auth-proof {
        display: none;
    }

    .auth-intro-copy {
        margin-bottom: 15px;
    }

    .auth-intro h1 {
        font-size: 36px;
    }
}

@media print {
    body {
        background: white;
    }

    .topbar,
    .workspace-label,
    .report-page-header,
    .filter-bar,
    .report-actions,
    .btn,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_paginate,
    .partner-ad {
        display: none !important;
    }

    .page-shell {
        max-width: none;
        padding: 0;
    }

    .report-sheet,
    .card {
        border: 0;
        box-shadow: none;
    }

    .report-sheet {
        max-width: none;
        overflow: visible;
        padding: 0;
    }

    .report-table-wrap {
        overflow: visible;
    }

    .report-table,
    .report-style-statement .report-table {
        min-width: 0;
    }
}

.align-start { align-items: start; }
.compact-form { display: grid; gap: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2, .section-heading p { margin: 0; }
.account-group { margin-top: 18px; }
.is-archived { opacity: .58; background: #f7f8fa; }
.transaction-kind { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.transaction-kind input { position: absolute; opacity: 0; pointer-events: none; }
.transaction-kind span { display: block; padding: 10px 18px; border: 1px solid #cfd7e3; border-radius: 999px; background: #fff; font-weight: 700; cursor: pointer; }
.transaction-kind input:checked + span { color: var(--brand-primary-text, #fff); border-color: var(--brand-primary); background: var(--brand-primary); }
.transaction-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; margin-bottom: 18px; }
.transaction-route[hidden] { display: none !important; }
.transaction-route-card { min-width: 0; padding: 18px; border: 1px solid #dfe5ec; border-radius: 14px; background: #f8fafc; }
.transaction-route-card label { margin: 0; }
.transaction-route-arrow { display: grid; place-items: center; color: var(--brand-primary); font-size: 28px; font-weight: 800; }
.route-step { display: inline-flex; margin-bottom: 10px; padding: 4px 9px; border-radius: 999px; color: #174b74; background: #e7f1f8; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.transaction-route-standard .transaction-route-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; }
.transaction-route-standard .transaction-route-card > label { min-width: 0; }
.transaction-route-standard .transaction-route-card > label small { display: block; margin-top: 6px; color: #667085; line-height: 1.45; }
.transaction-route-standard .transaction-route-card [hidden] { display: none !important; }
.transaction-route-standard .route-step { justify-self: start; margin-bottom: 0; }
.simple-transaction-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-bottom: 22px; }
.simple-transaction-fields[hidden] { display: none !important; }
.simple-transaction-fields [hidden] { display: none !important; }
.simple-transaction-fields > label { min-width: 0; margin: 0; }
.simple-transaction-fields > label small { display: block; margin-top: 6px; color: #667085; line-height: 1.45; }
.transaction-route-transfer .field-help { grid-column: 1 / -1; margin: 0; color: #667085; font-size: 13px; }
.transaction-amount-card { margin-bottom: 18px; padding: 18px; border: 1px solid #dfe5ec; border-radius: 14px; background: #fff; }
.transaction-amount-card[hidden] { display: none !important; }
.transaction-amount-card [hidden] { display: none !important; }
.amount-with-currency { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; margin-top: 7px; }
.amount-with-currency .form-control { margin-top: 0; border-radius: 8px 0 0 8px; }
.amount-with-currency > span { display: grid; min-width: 62px; place-items: center; padding: 0 12px; border: 1px solid #cbd5e1; border-left: 0; border-radius: 0 8px 8px 0; color: #344054; background: #f8fafc; font-weight: 800; }
.transaction-details { margin-bottom: 20px; }
.transaction-more-details { margin: 0 0 20px; border-top: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; }
.transaction-more-details summary { padding: 15px 2px; color: var(--brand-primary); font-weight: 800; cursor: pointer; }
.transaction-more-details[open] { padding-bottom: 18px; }
.transaction-more-details .grid-2 { margin-bottom: 16px; }
.split-editor { margin-top: 14px; padding: 18px; border: 1px solid #dfe5ec; border-radius: 12px; background: #f8fafc; }
.split-editor[hidden] { display: none !important; }
.split-editor h3 { margin-top: 0; }
.split-editor > label { margin: 0 0 16px; }
.field-help { color: #667085; font-size: 13px; }
.split-table { width: 100%; min-width: 0; table-layout: fixed; }
.split-table .split-name-column { width: 26%; }
.split-table .split-category-column { width: 27%; }
.split-table .split-amount-column { width: 21%; }
.split-table .split-note-column { width: 17%; }
.split-table .split-action-column { width: 9%; }
.split-table > :not(caption) > * > * { padding: 10px 6px; }
.split-table .form-control,
.split-table .form-select { min-width: 0; margin-top: 0; }
.split-table .amount-with-currency { min-width: 0; margin-top: 0; }
.split-table .amount-with-currency > span { min-width: 54px; padding-inline: 8px; }
.split-table .btn-sm { min-height: 40px; padding: 6px 8px; }
.bulk-bar, .action-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 16px; }
.bulk-bar label { min-width: 260px; }
.transaction-filters { padding: 16px; }
.transaction-search-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: end; gap: 10px; }
.transaction-search-field { min-width: 0; margin: 0; }
.transaction-search-row .btn { min-height: 48px; }
.transaction-more-filters { margin-top: 12px; border-top: 1px solid var(--line); }
.transaction-more-filters summary { width: fit-content; padding-top: 12px; color: var(--brand-primary); font-size: 13px; font-weight: 800; cursor: pointer; }
.transaction-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; gap: 12px; margin-top: 14px; }
.transaction-filter-grid label { min-width: 0; margin: 0; }
.transaction-filter-grid .btn { min-height: 48px; }
.transaction-balance-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 10px; }
.transaction-balance-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.transaction-balance-card span,
.transaction-balance-card small { display: block; color: #667085; }
.transaction-balance-card span { margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.transaction-balance-card strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.transaction-balance-card small { margin-top: 5px; }
.transaction-balance-help { margin: 0 0 14px; }
.transaction-entry-main strong,
.transaction-entry-main small { display: block; }
.transaction-entry-main small { margin-top: 4px; color: #667085; }
.transaction-amount,
.transaction-actions { white-space: nowrap; }
.transaction-amount { font-variant-numeric: tabular-nums; }
.transaction-balance-total th { border-top: 2px solid var(--brand-primary); background: #f8fafc; }
.transaction-balance-total span { display: block; color: #667085; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.transaction-balance-total strong { display: block; margin-top: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-pill { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-good { color: #17613f; background: #def5e9; }
.status-warn { color: #855600; background: #fff0c7; }
.duplicate-warning { background: #fff8ea; }
.csv-map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 16px 0; }
.metric-card { display: flex; flex-direction: column; gap: 6px; }
.metric-card span { color: #667085; font-size: 13px; }
.metric-card strong { font-size: 24px; }
.metric-good { border-color: #80c9a4; }
.metric-warn { border-color: #e4b353; }
.reconcile-toggle { width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; font-size: 18px; }
.reconcile-toggle.is-cleared { color: var(--brand-secondary-text, #111827); border-color: var(--brand-secondary); background: var(--brand-secondary); }
.d-block { display: block; }
.text-danger { color: #b42318 !important; }
.btn-sm { padding: 6px 10px; font-size: 12px; }

@media (max-width: 760px) {
    .section-heading, .bulk-bar, .action-bar { align-items: stretch; flex-direction: column; }
    .bulk-bar label { min-width: 0; width: 100%; }
    .transaction-search-row { grid-template-columns: 1fr 1fr; }
    .transaction-search-field { grid-column: 1 / -1; }
    .transaction-search-row .btn { width: 100%; }
    .transaction-filter-grid { grid-template-columns: 1fr; }
    .transaction-balance-summary { grid-template-columns: 1fr; }
    .transaction-kind label { flex: 1; text-align: center; }
    .transaction-kind span { padding-inline: 10px; }
    .transaction-route { grid-template-columns: 1fr; }
    .transaction-route-arrow { transform: rotate(90deg); }
    .simple-transaction-fields { grid-template-columns: 1fr; gap: 16px; }
    .form-card:has(.split-table) { overflow-x: visible; }
    .card .split-table { min-width: 0; }
    .split-table,
    .split-table tbody,
    .split-table tr,
    .split-table td { display: block; width: 100%; }
    .split-table colgroup,
    .split-table thead { display: none; }
    .split-table tbody tr { margin-bottom: 14px; padding: 14px; border: 1px solid #dfe5ec; border-radius: 10px; background: #fff; }
    .split-table > tbody > tr > td { padding: 7px 0; border: 0; }
    .split-table td::before { display: block; margin-bottom: 6px; color: #667085; content: attr(data-label); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .split-table td[data-label=""]::before { display: none; }
    .split-table [data-remove-split] { width: 100%; }
}
