@font-face {
    font-family: Inter;
    src: url("../fonts/inter-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
/* Tokens */
:root {
    --blue: #0b5fff;
    --blue-ink: #0649c8;
    --navy: #061b3b;
    --sidebar: #071d3b;
    --ink: #111b35;
    --muted: #6e809f;
    --line: #e5edf7;
    --bg: #f4f8ff;
    --green: #008a55;
    --red: #dc3446;
    --amber: #ac6d0b;
    --radius: 16px;
    --shadow: 0 4px 18px #11396a05;
    --sidebar-width: 274px;
    --space: 24px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
    border: 0;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}
button,
a,
input,
select,
summary {
    outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid #65a9ff;
}
input:focus-visible,
select:focus-visible {
    outline: 2px solid #91baff;
}
a {
    text-decoration: none;
    color: inherit;
}
[hidden] {
    display: none !important;
}
svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
h1,
h2,
h3,
h4,
p {
    margin: 0;
}
h1 {
    font-size: 34px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -1.3px;
}
h1 em {
    font-style: normal;
    color: var(--blue);
}
h2 {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    font-weight: 700;
}
h3 {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.4px;
    font-weight: 700;
}
h4 {
    font-size: 14px;
    font-weight: 650;
}
.muted {
    color: var(--muted);
}
small {
    font-size: 12px;
}
.eyebrow {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.5px;
    color: #6480ac;
    text-transform: uppercase;
}
.skip-link {
    position: fixed;
    top: -70px;
    left: 20px;
    background: white;
    color: var(--blue);
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 150;
}
.skip-link:focus {
    top: 12px;
}
.amount,
.metric-value,
.transaction-amount {
    font-variant-numeric: tabular-nums;
}
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1eaa79;
    border-radius: 50%;
    margin-right: 5px;
}
/* Shell */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 45;
    width: var(--sidebar-width);
    padding: 22px 15px 28px;
    display: flex;
    flex-direction: column;
    color: #eef5ff;
    background:
        radial-gradient(ellipse at 100% 45%, #0c2d51, transparent 85%),
        var(--sidebar);
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.7px;
    white-space: nowrap;
}
.sidebar > .brand {
    height: 78px;
    margin: 0 -15px;
    padding: 0 18px 18px 24px;
    border-bottom: 1px solid #233f5b70;
}
.brand-mark {
    width: 57px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}
nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
}
nav button {
    height: 59px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 23px;
    background: none;
    color: #e8f0fd;
    text-align: left;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 450;
    transition:
        background 0.18s,
        color 0.18s;
}
nav button:hover {
    background: #ffffff09;
}
nav button.active {
    color: white;
    background: linear-gradient(110deg, #008cff, #0753ed 76%, #00b2eb);
    box-shadow:
        0 4px 18px #0069ff35,
        inset 0 0 9px #57d3ff70;
}
nav button svg {
    height: 26px;
    width: 26px;
}
#sidebar > #sidebar-logout:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #dbeaff;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}
#sidebar-logout svg { width: 18px; height: 18px; }
#sidebar-logout:hover,
#sidebar-logout:focus-visible {
    background: #102b54;
    border-color: #527aab;
    color: #fff;
}

.detail-value { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.record-fields { margin: 8px 0; font-weight: 400; min-width: 0; }
.record-fields > div { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.record-fields dt { color: var(--muted, #637795); font-size: 12px; }
.record-fields dd { margin: 0; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.record-list { margin: 8px 0; padding-left: 22px; white-space: normal; }
.record-list > li { padding: 4px 0; }
.record-empty { color: var(--muted, #637795); font-weight: 400; }
.table-wrap:focus-visible { outline: 3px solid #35c3f3; outline-offset: 2px; }
.staff-detail-section > :is(.record-list, .record-fields) { margin-top: 14px; }
@media (max-width: 480px) {
    .record-fields > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.support-card {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 17px;
    color: #fff;
    text-align: left;
    border: 1px solid #23466d;
    border-radius: 15px;
    background: #0e2a4c;
    padding: 18px 16px;
    min-height: 100px;
}
.support-card > svg {
    width: 30px;
    height: 30px;
}
.support-card b {
    font-size: 12px;
    font-weight: 600;
}
.support-card small {
    display: block;
    color: #c2cee0;
    font-size: 10px;
    line-height: 1.8;
    margin-top: 7px;
}
.support-card > span:last-child {
    margin-left: auto;
    font-size: 26px;
}
.main-shell {
    margin-left: var(--sidebar-width);
}
.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 32px;
    background: #ffffff8c;
    border-bottom: 1px solid #e1eaf7;
    position: relative;
}
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #61799f;
    white-space: nowrap;
}
.breadcrumb span {
    padding: 0 14px;
    color: #a4b3ca;
}
.breadcrumb b {
    color: #273b5c;
    font-weight: 550;
}
.search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    background: #edf3fb;
    border: 1px solid #e0e9f6;
    border-radius: 12px;
    width: min(410px, 36vw);
    color: #6f85a6;
}
.search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #253d61;
    font-size: 11px;
}
.search input::placeholder {
    color: #7b8eac;
}
.search kbd {
    font-size: 12px;
    color: #9babc2;
}
.icon-button {
    padding: 7px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: transparent;
    color: #647b9d;
    line-height: 1;
}
.icon-button:hover {
    background: #eaf2ff;
}
.notification-button {
    position: relative;
}
.notification-button svg {
    height: 25px;
    width: 25px;
}
.notification-dot {
    position: absolute;
    top: 5px;
    right: 6px;
    background: #f14e63;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.user-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    padding: 0;
    font-size: 12px;
    white-space: nowrap;
    color: var(--ink);
}
.user-button > svg {
    width: 16px;
    height: 16px;
    color: #7890af;
}
.avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #279bff, #104394);
    color: #fff;
    font-weight: 650;
    font-size: 15px;
    flex-shrink: 0;
}
.user-button b {
    font-weight: 600;
}
.account-menu {
    position: absolute;
    right: 27px;
    top: 66px;
    min-width: 215px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 8px;
    background: white;
    box-shadow: 0 12px 36px #14345a20;
    z-index: 50;
    animation: fade-in 0.16s ease;
}
.account-menu-heading {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    padding: 8px 10px;
}
.account-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 10px;
    color: #344b6c;
    text-align: left;
    background: white;
    border-radius: 8px;
    font-size: 12px;
}
.account-menu button:hover {
    background: #f0f5ff;
}
.account-menu button svg {
    width: 18px;
    height: 18px;
}
.account-menu > small {
    display: block;
    font-size: 9px;
    color: #7b8daa;
    padding: 9px 10px;
    border-top: 1px solid var(--line);
}
main {
    padding: 28px 32px 0;
    max-width: 1540px;
    margin: auto;
    min-width: 0;
    outline: none;
}
.main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #8b9ab0;
    font-size: 10px;
    padding: 24px 0;
}
.main-footer .text-button {
    font-size: 10px;
}
.mobile-menu,
.drawer-close,
.nav-backdrop {
    display: none;
}
.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.page-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 9px;
}
.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.sandbox-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    color: #4b6b9e;
    background: #eaf1ff;
    border: 1px solid #dce7fb;
    font-size: 10px;
    border-radius: 7px;
    white-space: nowrap;
}
.sandbox-chip svg {
    height: 13px;
    width: 13px;
}
/* Shared components */
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
}
.panel,
.list-card,
.profile-card {
    padding: 24px;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.section-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}
.section-heading small {
    color: var(--muted);
    font-size: 11px;
}
.section-heading > div:first-child {
    min-width: 0;
}
.spaced {
    margin-top: 20px;
}
.stack {
    display: grid;
    gap: 20px;
}
body[data-page="profile"] .two-column > .stack {
    align-content: start;
}
.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
    gap: 20px;
}
.equal-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.metric-card {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.metric-card .metric-icon {
    height: 42px;
    width: 42px;
    border-radius: 12px;
    background: #edf4ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.metric-card.green .metric-icon {
    background: #e6f8ef;
    color: var(--green);
}
.metric-card.amber .metric-icon {
    background: #fff4df;
    color: var(--amber);
}
.metric-card .metric-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}
.metric-value {
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-top: 6px;
    overflow-wrap: anywhere;
}
.metric-card .metric-note {
    font-size: 10px;
    color: #8191aa;
    margin-top: 6px;
    line-height: 1.5;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    min-height: 41px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    background: #edf3fb;
    color: #36557f;
    white-space: nowrap;
    transition:
        box-shadow 0.16s,
        background 0.16s,
        transform 0.16s;
}
.button:hover:not(:disabled) {
    transform: translateY(-1px);
}
.button.primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 9px #0b5fff18;
}
.button.primary:hover:not(:disabled) {
    background: #0753e5;
}
.button.white {
    background: white;
    color: var(--blue);
}
.button.outline {
    background: transparent;
    border-color: #dce6f3;
    color: #46617f;
}
.button.soft {
    background: #e7f8ef;
    color: var(--green);
}
.button.danger {
    background: #fff0f2;
    color: var(--red);
}
.button.small {
    padding: 6px 11px;
    min-height: 32px;
    font-size: 10px;
}
.button svg {
    width: 17px;
    height: 17px;
}
.text-button,
.card-link {
    background: none;
    padding: 0;
    color: var(--blue);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 550;
}
.card-link svg {
    height: 18px;
    width: 18px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 550;
    color: #526d96;
    background: #edf3fc;
    white-space: nowrap;
}
.badge.green {
    background: #e7f8ef;
    color: #008355;
}
.badge.amber {
    background: #fff4df;
    color: #9a680c;
}
.badge.red {
    background: #ffedf0;
    color: #c92c44;
}
.badge.blue {
    background: #eaf1ff;
    color: #155de2;
}
.badge.neutral {
    background: #f0f3f8;
    color: #6d7d95;
}
.notice,
.sandbox-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff5ff;
    border: 1px solid #e2ebfc;
    border-radius: 10px;
    color: #5d769c;
    padding: 13px 15px;
    font-size: 11px;
    line-height: 1.7;
}
.notice svg,
.sandbox-banner svg {
    height: 17px;
    width: 17px;
    margin-top: 1px;
}
.notice.warning {
    background: #fff9ed;
    color: #936d25;
    border-color: #f7ebd1;
}
.notice.green {
    background: #effaf4;
    color: #3d8064;
    border-color: #dff2e7;
}
.sandbox-banner {
    margin-bottom: 20px;
}
.subtle-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
}
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    color: var(--muted);
    min-height: 145px;
}
.empty-state .empty-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f0f5fc;
    color: #7298c9;
    margin-bottom: 12px;
}
.empty-state h3 {
    font-size: 14px;
    color: #3d5576;
    letter-spacing: -0.2px;
}
.empty-state p {
    font-size: 11px;
    line-height: 1.8;
    max-width: 320px;
    margin-top: 6px;
}
.empty-state .button {
    margin-top: 15px;
}
.empty-inline {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px;
    background: #f8faff;
    border: 1px dashed #dae5f5;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
}
.empty-inline svg {
    color: #84a6d2;
}
.rule {
    height: 1px;
    background: var(--line);
    margin: 20px 0;
}
/* Data and information */
.table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    scrollbar-width: thin;
    scrollbar-color: #b4c8e5 #f4f8ff;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
    font-size: 12px;
}
.data-table th {
    padding: 12px 14px;
    background: #f7f9fd;
    color: #7e90aa;
    font-size: 10px;
    font-weight: 550;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
}
.data-table td {
    padding: 15px 14px;
    border-bottom: 1px solid #edf2f8;
    color: #3d5271;
    vertical-align: middle;
}
.data-table tbody tr:last-child td {
    border-bottom: 0;
}
.data-table tbody tr:hover {
    background: #fbfdff;
}
.data-table td strong {
    color: #1b2c47;
    font-weight: 600;
}
.data-table .secondary {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}
.row-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}
.detail-item {
    padding: 15px 0;
    border-bottom: 1px solid #edf2f8;
    min-width: 0;
}
.detail-item small {
    display: block;
    color: #8190a7;
    font-size: 11px;
    margin-bottom: 6px;
}
.detail-item b {
    font-size: 12px;
    font-weight: 550;
    overflow-wrap: anywhere;
}
.detail-item:last-child {
    border-bottom: 0;
}
.profile-top {
    display: flex;
    align-items: center;
    gap: 19px;
    margin-bottom: 22px;
}
.profile-top .avatar {
    height: 65px;
    width: 65px;
    font-size: 24px;
    border: 5px solid #f0f6ff;
}
.profile-top h2 {
    font-size: 23px;
}
.profile-top p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.profile-overview {
    padding: 24px;
    background: linear-gradient(110deg, #fff, #f8fbff);
}
.profile-side h3 {
    margin-bottom: 15px;
}
.consent-list {
    display: grid;
    gap: 0;
}
.consent-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.consent-row:last-child {
    border-bottom: 0;
}
.consent-row b {
    font-size: 12px;
    font-weight: 600;
}
.consent-row small {
    font-size: 10px;
    display: block;
    margin-top: 4px;
    color: var(--muted);
}
.consent-row > time {
    font-size: 10px;
    color: var(--muted);
}
.tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: #eaf0fa;
    border-radius: 11px;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    margin: 0 0 20px;
}
.tabs button {
    min-height: 36px;
    padding: 8px 17px;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    color: #6780a3;
    font-weight: 550;
    white-space: nowrap;
    transition: 0.16s;
}
.tabs button.active {
    color: var(--blue);
    background: white;
    box-shadow: 0 2px 8px #1237620c;
}
.staff-tabs {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
}
.source-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.source-option {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    color: #607999;
    text-align: left;
}
.source-option.active {
    border-color: #9abfff;
    background: #f3f7ff;
    color: var(--blue);
    box-shadow: 0 0 0 1px #9abfff;
}
.source-option svg {
    height: 24px;
    width: 24px;
}
.source-option b {
    display: block;
    font-size: 12px;
}
.source-option small {
    display: block;
    font-size: 10px;
    margin-top: 3px;
    color: #7b8fab;
}
.term-list {
    display: grid;
    gap: 0;
}
.term-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}
.term-row span {
    color: var(--muted);
}
.term-row strong {
    color: #304766;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}
.term-row:last-child {
    border-bottom: 0;
}
.estimate-box {
    padding: 18px;
    background: #f3f7ff;
    border: 1px solid #e3ecff;
    border-radius: 11px;
    margin: 16px 0;
}
.estimate-box .eyebrow {
    font-size: 9px;
}
.estimate-box .estimate-amount {
    display: block;
    font-size: 25px;
    font-weight: 700;
    margin: 8px 0 4px;
    letter-spacing: -0.8px;
    color: #0a56e3;
}
.plan-note {
    padding: 16px;
    border-left: 3px solid #8ac2ff;
    background: #f7faff;
    border-radius: 0 8px 8px 0;
    margin-top: 18px;
}
.plan-note h4 {
    margin-bottom: 7px;
}
.plan-note p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
}
.roi-feature {
    background: linear-gradient(135deg, #f6fff9, #fff);
    border-color: #dcefe4;
    padding: 26px;
}
.roi-feature .amount {
    font-size: 39px;
    font-weight: 700;
    letter-spacing: -1.3px;
    line-height: 1.2;
    margin: 14px 0 8px;
    color: #087c4f;
}
.roi-buckets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}
.roi-buckets > div {
    padding-top: 14px;
    border-top: 1px solid #e0eee6;
}
.roi-buckets small {
    display: block;
    font-size: 10px;
    color: var(--muted);
}
.roi-buckets b {
    display: block;
    font-weight: 650;
    font-size: 18px;
    margin-top: 5px;
}
.timeline-list {
    display: grid;
    gap: 0;
}
.timeline-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.timeline-item:last-child {
    border-bottom: 0;
}
.timeline-item .icon-tile {
    width: 35px;
    height: 35px;
}
.timeline-item .icon-tile svg {
    height: 20px;
    width: 20px;
}
.timeline-item > div:nth-child(2) {
    flex: 1;
}
.timeline-item b {
    font-size: 12px;
    font-weight: 600;
}
.timeline-item small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}
.timeline-item > strong {
    font-size: 13px;
    color: var(--green);
}
/* Transaction views */
.investment-amount-fields > label { grid-column: 1 / -1; }
.bank-account-register { min-width: 0; }
.bank-account-register > .destination-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; min-width: 0; }
.bank-account-register > .destination-row > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .bank-account-register > .destination-row { grid-template-columns: 25px minmax(0, 1fr); gap: 10px 12px; padding: 14px; }
    .bank-account-register > .destination-row > .badge { grid-column: 2; margin-left: 0; justify-self: start; white-space: normal; }
}
.table-wrap.is-scrollable::before { content: "Scroll sideways to view all columns →"; display: block; position: sticky; left: 0; width: fit-content; max-width: 100%; box-sizing: border-box; padding: 9px 12px; color: #4e678c; background: #f4f8ff; font-size: 11px; line-height: 1.5; white-space: normal; }
.history-filters { margin-bottom: 18px; padding: 14px; border: 1px solid #cfe0f7; border-radius: 12px; background: #f6f9ff; }
.history-filters .filter-bar { margin: 0; padding: 0; border: 0; }
.filter-bar {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.filter-bar label {
    font-size: 10px;
    color: var(--muted);
    font-weight: 550;
    flex: 1;
    min-width: 120px;
}
.filter-bar select,
.filter-bar input {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    padding: 9px 11px;
    border-radius: 8px;
    background: white;
    color: #4e6686;
    font-size: 11px;
    margin-top: 5px;
}
.filter-bar .text-button {
    padding: 9px 0;
}
.segmented {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}
.filter {
    padding: 7px 13px;
    border-radius: 18px;
    font-size: 10px;
    background: #eff4fb;
    color: #6b80a0;
    border: 1px solid #e9eff8;
}
.filter.active {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    box-shadow: 0 3px 8px #0b5fff18;
}
.activity-row {
    display: grid;
    grid-template-columns: 38px minmax(140px, 1fr) 115px 105px 90px;
    gap: 15px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f8;
    min-width: 0;
}
.activity-row:last-child {
    border-bottom: 0;
}
.activity-row[data-transaction] {
    cursor: pointer;
    border-radius: 7px;
}
.activity-row[data-transaction]:hover {
    background: #f8fbff;
}
.activity-copy {
    min-width: 0;
}
.activity-row b {
    font-size: 12px;
    display: block;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.activity-row small {
    font-size: 10px;
    color: var(--muted);
    display: block;
    margin-top: 4px;
    line-height: 1.5;
}
.activity-date {
    font-size: 11px;
    color: #6c81a3;
}
.transaction-icon {
    width: 38px;
    height: 38px;
    background: #e5f8ef;
    color: #129461;
    border-radius: 10px;
    display: grid;
    place-items: center;
}
.transaction-icon.out {
    background: #ffedf0;
    color: #e03450;
}
.transaction-icon.roi {
    background: #edf4ff;
    color: var(--blue);
}
.transaction-icon svg {
    height: 21px;
    width: 21px;
}
.transaction-amount {
    color: var(--green);
    font-size: 14px;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
}
.transaction-amount.out {
    color: var(--red);
}
.transaction-status {
    font-size: 10px;
    text-align: center;
    border-radius: 7px;
    padding: 6px 8px;
    color: #15956c;
    background: #eaf9f2;
}
.transaction-status.completed {
    color: #1761d9;
    background: #eaf1ff;
}
.transaction-status.pending {
    color: #a57213;
    background: #fff5e2;
}
.transaction-status span {
    font-size: 7px;
    margin-right: 5px;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 18px;
}
/* UPI/referral */
.upi-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr);
    gap: 20px;
}
.upi-unavailable {
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: center;
}
.upi-hero-symbol {
    height: 90px;
    width: 90px;
    border-radius: 24px;
    background: #edf3ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.upi-hero-symbol svg {
    width: 42px;
    height: 42px;
}
.upi-unavailable h2 {
    font-size: 20px;
}
.upi-unavailable p {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 18px;
    line-height: 1.8;
}
.upi-unavailable .badge {
    margin-bottom: 12px;
}
.step-list {
    display: grid;
    gap: 17px;
    margin-top: 20px;
}
.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    color: #59718f;
}
.step .number {
    height: 25px;
    width: 25px;
    border-radius: 8px;
    background: #edf3ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 650;
    flex-shrink: 0;
}
.step small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.7;
}
.referral-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr);
    gap: 20px;
    padding: 28px;
    background: linear-gradient(110deg, #eaf6ff, #edf0ff);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.referral-hero h2 {
    font-size: 27px;
    letter-spacing: -0.9px;
    margin-top: 9px;
}
.referral-hero p {
    font-size: 12px;
    color: #627b9d;
    margin-top: 10px;
    max-width: 420px;
    line-height: 1.8;
}
.referral-hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}
.referral-hero-art img {
    width: 176px;
    height: 150px;
    object-fit: contain;
}
.referral-code-control {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    border: 1px dashed #a9c6f3;
    background: #ffffffb0;
    padding: 12px 15px;
    border-radius: 10px;
    margin: 20px 0 14px;
    max-width: 100%;
}
.referral-code-control code {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: 2px;
    color: #174891;
    overflow-wrap: anywhere;
}
.referral-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.campaign {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.campaign h4 {
    margin: 10px 0;
}
.campaign p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
}
.bank-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.bank-record {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(120deg, #fff, #fafcff);
}
.bank-record .bank-record-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.bank-record h4 {
    font-size: 13px;
}
.bank-record .account-number {
    font-size: 21px;
    letter-spacing: 3px;
    font-weight: 600;
}
.bank-record .badge {
    margin-left: auto;
}
/* Forms and overlays */
form label {
    display: block;
    font-size: 11px;
    font-weight: 550;
    color: #4b6281;
    margin-bottom: 16px;
}
form input,
form select,
form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 1px solid #dce6f3;
    background: #fff;
    border-radius: 9px;
    padding: 12px 13px;
    color: #2a4263;
    outline: none;
    min-width: 0;
}
form input:focus,
form select:focus {
    border-color: #8ab5ff;
    box-shadow: 0 0 0 3px #0b5fff0a;
}
form input::placeholder {
    color: #a0adc1;
}
form input:disabled,
form select:disabled {
    background: #f7f9fd;
    color: #9aabc2;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.form-grid .full {
    grid-column: 1/-1;
}
.field-note {
    font-size: 10px;
    line-height: 1.8;
    color: #7d8faa;
    margin: 7px 0 18px;
}
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 6px;
}
.form-footer .subtle-note {
    max-width: 320px;
    font-size: 10px;
}
.form-error {
    color: #c73750;
    background: #fff5f6;
    border: 1px solid #f7dce3;
    border-radius: 9px;
    padding: 11px 14px;
    font-size: 11px;
    line-height: 1.7;
    margin: 12px 0;
}
.form-error:empty {
    display: none;
}
dialog {
    color: var(--ink);
    border: 1px solid #e1e9f5;
    border-radius: 18px;
    padding: 26px;
    width: min(480px, calc(100vw - 28px));
    max-height: calc(100dvh - 36px);
    box-shadow: 0 24px 90px #061b3b33;
    overflow-y: auto;
    animation: fade-in 0.16s ease;
}
dialog::backdrop {
    background: #081e4066;
    backdrop-filter: blur(4px);
}
.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 23px;
}
.modal-heading h2 {
    margin-top: 6px;
    font-size: 22px;
}
.modal-heading > .icon-button {
    font-size: 26px;
    margin-top: -4px;
}
.modal-heading .eyebrow {
    font-size: 9px;
}
#modal-submit {
    width: 100%;
    margin-top: 10px;
}
.review-list {
    display: grid;
    gap: 0;
    margin-bottom: 20px;
}
.review-list > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}
.review-list span {
    color: var(--muted);
}
.review-list b {
    text-align: right;
    font-weight: 600;
    overflow-wrap: anywhere;
    max-width: 65%;
}
#notification-panel > .modal-heading,
#notification-panel.notification-panel:is(.admin-modal, .landlord-modal) > .modal-heading {
    position: sticky;
    top: 0;
    z-index: 10;
}

.notification-panel {
    margin: 0 0 0 auto;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 18px 0 0 18px;
    width: min(410px, 100vw);
    padding: 27px;
}
.notification-item {
    display: flex;
    gap: 13px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}
.notification-item .icon-tile {
    height: 34px;
    width: 34px;
}
.notification-item p {
    font-size: 12px;
    line-height: 1.8;
    color: #4f688a;
}
.notification-item time {
    display: block;
    color: #9aabc2;
    font-size: 10px;
    margin-top: 8px;
}
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a294a;
    color: #fff;
    box-shadow: 0 5px 30px #08244825;
    max-width: calc(100vw - 30px);
    padding: 14px 22px;
    border-radius: 11px;
    z-index: 100;
    font-size: 12px;
    animation: fade-in 0.2s;
}
.toast.error {
    background: #9c2841;
}
.loading {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #6c84a4;
    font-size: 11px;
    margin: 0 0 18px;
}
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #d8e8ff;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.skeleton {
    height: 160px;
    border-radius: 15px;
    background: linear-gradient(90deg, #eaf1fb, #f9fbfe, #eaf1fb);
    background-size: 200%;
    animation: shimmer 1.5s infinite;
}
.icon-tile {
    height: 45px;
    width: 45px;
    border-radius: 12px;
    background: #eaf3ff;
    color: var(--blue);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.icon-tile.green {
    background: #def7ea;
    color: var(--green);
}
/* Existing authentication is preserved for authenticated environments. */
.auth-screen {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}
.auth-art {
    padding: 42px 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(ellipse at 100% 60%, #0753ab, transparent 80%),
        var(--navy);
    color: white;
    overflow: hidden;
    position: relative;
}
.auth-art h1 {
    font-size: 42px;
    line-height: 1.3;
    margin: 20px 0;
}
.auth-art p {
    color: #a9bfdc;
    font-size: 14px;
    line-height: 1.9;
}
.auth-art .eyebrow {
    color: #79b5f8;
}
.auth-art small {
    color: #8ca8c8;
    font-size: 10px;
}
.auth-orbit {
    display: none;
}
.auth-panel {
    padding: 45px;
    display: grid;
    place-items: center;
}
.auth-panel form {
    width: 100%;
    max-width: 365px;
}
.auth-panel h2 {
    font-size: 32px;
    margin: 16px 0 10px;
}
.auth-panel .muted {
    font-size: 12px;
    margin-bottom: 30px;
}
.auth-submit {
    width: 100%;
    justify-content: space-between;
    margin-top: 6px;
}
.auth-switch {
    font-size: 11px;
    text-align: center;
    color: var(--muted);
    margin-top: 20px;
}
.sandbox-note {
    display: flex;
    gap: 12px;
    padding-top: 24px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    line-height: 1.8;
    color: var(--muted);
}
.sandbox-note > span {
    font-size: 24px;
}
.sandbox-note b {
    font-size: 11px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes shimmer {
    to {
        background-position: -200%;
    }
}
@keyframes fade-in {
    from {
        opacity: 0;
        translate: 0 4px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}
/* Responsive system */
@media (min-width: 1600px) {
    :root {
        --sidebar-width: 274px;
    }
    main {
        padding-left: 36px;
        padding-right: 36px;
    }
    .topbar {
        padding-left: 36px;
        padding-right: 36px;
    }
    .metric-value {
        font-size: 26px;
    }
}
@media (max-width: 1366px) {
    :root {
        --sidebar-width: 235px;
        --space: 20px;
    }
    .sidebar > .brand {
        font-size: 19px;
        padding-left: 17px;
    }
    .sidebar .brand-mark {
        width: 52px;
        height: 56px;
    }
    nav button {
        font-size: 13px;
        gap: 18px;
        padding: 0 17px;
    }
    .topbar {
        padding: 0 25px;
        gap: 20px;
    }
    main {
        padding: 26px 25px 0;
    }
    .metric-grid {
        gap: 12px;
    }
    .metric-card {
        padding: 16px;
        gap: 11px;
    }
    .metric-card .metric-icon {
        height: 36px;
        width: 36px;
    }
    .metric-value {
        font-size: 20px;
    }
    .panel,
    .list-card,
    .profile-card {
        padding: 21px;
    }
    .two-column {
        gap: 16px;
        grid-template-columns: minmax(0, 1.5fr) minmax(235px, 1fr);
    }
    .activity-row {
        grid-template-columns: 35px minmax(110px, 1fr) 94px 95px 80px;
        gap: 11px;
    }
    .activity-date {
        font-size: 10px;
    }
    .transaction-amount {
        font-size: 12px;
    }
    .transaction-status {
        font-size: 9px;
    }
    .user-button {
        gap: 9px;
    }
    .page-heading h1 {
        font-size: 32px;
    }
}
@media (max-width: 1100px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .two-column {
        grid-template-columns: minmax(0, 1fr);
    }
    .two-column > .stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .two-column > .stack > * {
        height: 100%;
    }
    .search {
        max-width: 30vw;
    }
    .user-button b {
        display: none;
    }
    .page-heading h1 {
        font-size: 29px;
    }
    .upi-overview {
        grid-template-columns: minmax(0, 1fr);
    }
    .roi-feature {
        height: 100%;
    }
    .campaign-grid {
        grid-template-columns: 1fr;
    }
    .activity-row {
        grid-template-columns: 35px minmax(110px, 1fr) 94px 95px 80px;
    }
    .detail-grid {
        gap: 0 18px;
    }
    .form-footer {
        align-items: flex-start;
    }
}
@media (min-width: 701px) and (max-width: 980px) {
    :root {
        --sidebar-width: 84px;
    }
    .sidebar {
        padding: 20px 12px;
    }
    .sidebar > .brand {
        justify-content: center;
        margin: 0 -12px;
        padding: 0 0 18px;
        gap: 0;
    }
    .sidebar > .brand > span,
    nav button > span,
    .sidebar .support-card {
        display: none;
    }
    .sidebar .brand-mark {
        width: 56px;
        height: 59px;
    }
    nav {
        margin-top: 20px;
    }
    nav button {
        padding: 16px 0;
        justify-content: center;
        gap: 0;
        height: 59px;
    }
    .topbar {
        padding: 0 22px;
        gap: 16px;
    }
    .breadcrumb {
        font-size: 11px;
    }
    .breadcrumb span {
        padding: 0 8px;
    }
    .search {
        width: 240px;
        max-width: 33vw;
    }
    .search kbd {
        display: none;
    }
    main {
        padding: 24px 22px 0;
    }
    .metric-grid {
        gap: 13px;
    }
    .panel,
    .list-card,
    .profile-card {
        padding: 21px;
    }
    .two-column > .stack {
        grid-template-columns: 1fr 1fr;
    }
    .activity-row {
        grid-template-columns: 36px minmax(120px, 1fr) 94px 86px 78px;
        gap: 10px;
    }
    .transaction-status {
        font-size: 9px;
        padding: 6px 4px;
    }
    .referral-hero {
        grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.6fr);
        padding: 24px;
    }
    .referral-hero-art img {
        width: 150px;
        height: 140px;
    }
    .referral-hero h2 {
        font-size: 24px;
    }
    .source-option {
        padding: 13px;
    }
    .form-footer {
        align-items: center;
    }
    .upi-unavailable {
        padding: 23px;
    }
}
@media (max-width: 700px) {
    :root {
        --sidebar-width: 0px;
        --space: 16px;
    }
    h1 {
        font-size: 27px;
        letter-spacing: -0.9px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 17px;
    }
    .sidebar {
        width: 256px;
        transform: translateX(-100%);
        transition: transform 0.2s;
        z-index: 70;
        padding-top: 22px;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 15px 0 45px #061b3b40;
    }
    .sidebar > .brand {
        font-size: 21px;
        padding-left: 21px;
        height: 78px;
    }
    .sidebar .brand-mark {
        width: 54px;
        height: 58px;
    }
    .drawer-close {
        display: grid;
        position: absolute;
        right: 9px;
        top: 8px;
        color: #a2b9da;
        font-size: 20px;
    }
    .mobile-menu {
        display: grid;
        padding-left: 0;
    }
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: #081e4066;
        backdrop-filter: blur(2px);
        z-index: 65;
    }
    .nav-open {
        overflow: hidden;
    }
    .main-shell {
        margin-left: 0;
    }
    .topbar {
        height: 69px;
        padding: 0 15px;
        gap: 10px;
    }
    .breadcrumb {
        font-size: 10px;
    }
    .breadcrumb span {
        padding: 0 7px;
    }
    .search {
        display: none;
    }
    .notification-button {
        margin-left: auto;
    }
    .user-button {
        gap: 6px;
    }
    .avatar {
        height: 35px;
        width: 35px;
        font-size: 12px;
    }
    .user-button b {
        display: none;
    }
    .user-button svg {
        height: 14px;
        width: 14px;
    }
    .account-menu {
        right: 12px;
        top: 61px;
    }
    .topbar .notification-button svg {
        height: 23px;
        width: 23px;
    }
    main {
        padding: 23px 15px 0;
    }
    .page-heading {
        margin-bottom: 20px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .page-heading h1 {
        font-size: 27px;
        letter-spacing: -1px;
    }
    .page-heading p {
        font-size: 12px;
        margin-top: 7px;
        line-height: 1.8;
    }
    .heading-actions {
        gap: 8px;
    }
    .heading-actions .button {
        font-size: 11px;
        padding: 8px 12px;
        min-height: 37px;
    }
    .metric-grid {
        gap: 10px;
        margin-bottom: 20px;
    }
    .metric-card {
        padding: 14px;
        gap: 9px;
        display: block;
    }
    .metric-card .metric-icon {
        height: 32px;
        width: 32px;
        border-radius: 10px;
        float: right;
        margin-left: 5px;
    }
    .metric-card .metric-icon svg {
        height: 17px;
        width: 17px;
    }
    .metric-card .metric-label {
        font-size: 10px;
        min-height: 30px;
        max-width: calc(100% - 35px);
    }
    .metric-value {
        font-size: 21px;
        letter-spacing: -0.8px;
        margin-top: 5px;
    }
    .metric-card .metric-note {
        font-size: 9px;
        margin-top: 5px;
        clear: both;
    }
    .two-column,
    .equal-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .two-column > .stack {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .panel,
    .list-card,
    .profile-card,
    .profile-overview {
        padding: 18px;
    }
    .stack {
        gap: 16px;
    }
    .section-heading {
        gap: 12px;
        margin-bottom: 16px;
    }
    .section-heading h3 {
        font-size: 17px;
    }
    .section-heading .button {
        font-size: 10px;
        padding: 7px 10px;
        min-height: 33px;
    }
    .section-heading small {
        font-size: 10px;
    }
    .profile-top {
        gap: 13px;
        margin-bottom: 18px;
    }
    .profile-top .avatar {
        height: 55px;
        width: 55px;
        font-size: 20px;
        border-width: 4px;
    }
    .profile-top h2 {
        font-size: 20px;
    }
    .profile-top p {
        font-size: 10px;
        overflow-wrap: anywhere;
    }
    .profile-tags {
        gap: 5px;
        margin-top: 10px;
    }
    .profile-tags .badge {
        font-size: 9px;
    }
    .detail-grid {
        gap: 0 13px;
    }
    .detail-item b {
        font-size: 11px;
    }
    .detail-item small {
        font-size: 10px;
    }
    .consent-row {
        grid-template-columns: minmax(100px, 1fr) auto;
        gap: 10px;
    }
    .consent-row > time {
        display: none;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid .full {
        grid-column: auto;
    }
    .source-options {
        gap: 9px;
    }
    .source-option {
        padding: 12px;
        gap: 8px;
    }
    .source-option svg {
        width: 21px;
        height: 21px;
    }
    .source-option b {
        font-size: 11px;
    }
    .source-option small {
        font-size: 9px;
    }
    .form-footer {
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: stretch;
    }
    .form-footer .button {
        width: 100%;
    }
    .form-footer .subtle-note {
        max-width: none;
    }
    .tabs {
        width: 100%;
    }
    .tabs button {
        flex: 1;
        padding: 9px 12px;
        font-size: 11px;
    }
    .staff-tabs button {
        flex: none;
    }
    .badge {
        font-size: 9px;
    }
    .filter-bar {
        gap: 10px;
    }
    .filter-bar label {
        min-width: calc(50% - 10px);
        font-size: 9px;
    }
    .filter-bar select,
    .filter-bar input {
        font-size: 10px;
        padding: 9px;
    }
    .filter {
        font-size: 9px;
        padding: 7px 11px;
    }
    .activity-row {
        grid-template-columns: 33px minmax(0, 1fr) 90px;
        gap: 10px;
        padding: 14px 0;
    }
    .transaction-icon {
        height: 33px;
        width: 33px;
        border-radius: 9px;
    }
    .transaction-icon svg {
        width: 19px;
        height: 19px;
    }
    .activity-row b {
        font-size: 11px;
    }
    .activity-row small {
        font-size: 9px;
        white-space: normal;
    }
    .activity-date {
        display: none;
    }
    .activity-copy .mobile-date {
        display: block;
        color: #90a0b6;
        font-size: 9px;
        margin-top: 5px;
    }
    .transaction-amount {
        font-size: 12px;
    }
    .transaction-status {
        display: none;
    }
    .pagination {
        font-size: 9px;
        gap: 10px;
    }
    .pagination-controls {
        gap: 10px;
    }
    .pagination .text-button {
        font-size: 10px;
    }
    .data-table {
        font-size: 11px;
    }
    .data-table td {
        padding: 13px 11px;
    }
    .data-table th {
        padding: 11px;
        font-size: 9px;
    }
    .upi-unavailable {
        padding: 23px 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .upi-hero-symbol {
        width: 65px;
        height: 65px;
        border-radius: 19px;
    }
    .upi-hero-symbol svg {
        width: 33px;
        height: 33px;
    }
    .upi-unavailable h2 {
        font-size: 19px;
    }
    .upi-unavailable p {
        font-size: 11px;
    }
    .referral-hero {
        grid-template-columns: 1fr;
        padding: 23px 20px;
        gap: 0;
    }
    .referral-hero h2 {
        font-size: 25px;
        max-width: 240px;
    }
    .referral-hero p {
        font-size: 11px;
        max-width: 230px;
    }
    .referral-hero-art {
        position: absolute;
        right: 3px;
        top: 19px;
        width: 110px;
        opacity: 0.6;
        pointer-events: none;
    }
    .referral-hero-art img {
        width: 110px;
        height: 110px;
    }
    .referral-hero > div:first-child {
        position: relative;
        z-index: 1;
    }
    .referral-code-control {
        gap: 14px;
        padding: 10px 12px;
        margin-top: 18px;
    }
    .referral-code-control code {
        font-size: 17px;
        letter-spacing: 1px;
    }
    .referral-code-control .text-button {
        font-size: 10px;
    }
    .referral-actions .button {
        font-size: 11px;
    }
    .referral-actions .text-button {
        font-size: 10px;
    }
    .bank-layout {
        grid-template-columns: 1fr;
    }
    .bank-record {
        padding: 17px;
    }
    .bank-record .account-number {
        font-size: 19px;
    }
    .roi-feature {
        padding: 24px;
    }
    .roi-feature .amount {
        font-size: 36px;
    }
    .roi-buckets b {
        font-size: 17px;
    }
    .main-footer {
        font-size: 8px;
        gap: 8px;
        flex-wrap: wrap;
    }
    .main-footer > span:nth-child(2) {
        display: none;
    }
    dialog {
        padding: 23px 20px;
        border-radius: 15px;
    }
    .modal-heading h2 {
        font-size: 20px;
    }
    .review-list {
        font-size: 11px;
    }
    .notification-panel {
        border-radius: 15px 0 0 15px;
        width: min(360px, 100vw);
    }
    .auth-screen {
        grid-template-columns: 1fr;
    }
    .auth-art {
        min-height: 140px;
        padding: 25px;
    }
    .auth-art > div:nth-child(2),
    .auth-art > small {
        display: none;
    }
    .auth-panel {
        padding: 35px 23px;
    }
    .auth-panel h2 {
        font-size: 28px;
    }
    .skeleton-grid {
        grid-template-columns: 1fr;
    }
    .skeleton {
        height: 120px;
    }
}
@media (min-width: 701px) {
    .activity-copy .mobile-date {
        display: none;
    }
}
@media (max-width: 360px) {
    main {
        padding-left: 12px;
        padding-right: 12px;
    }
    .topbar {
        padding-left: 12px;
        padding-right: 12px;
        gap: 7px;
    }
    .breadcrumb {
        font-size: 9px;
        min-width: 0;
    }
    .breadcrumb > b {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .breadcrumb > span {
        padding-left: 4px;
        padding-right: 4px;
    }
    .topbar .user-button {
        flex-shrink: 0;
    }
    .metric-card {
        padding: 12px;
    }
    .metric-value {
        font-size: 19px;
    }
    .panel,
    .list-card {
        padding: 15px;
    }
    .section-heading h3 {
        font-size: 16px;
    }
    .activity-row {
        grid-template-columns: 30px minmax(0, 1fr) 80px;
        gap: 8px;
    }
    .transaction-amount {
        font-size: 11px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .referral-hero {
        padding: 22px 16px;
    }
    .referral-hero h2 {
        font-size: 23px;
    }
    .referral-hero-art {
        opacity: 0.4;
        width: 95px;
    }
    .referral-hero-art img {
        width: 95px;
    }
    .filter-bar label {
        min-width: calc(50% - 8px);
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
    }
}

.data-table .button {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 10px;
}
.data-table .text-button {
    font-size: 11px;
}
.data-table .row-actions {
    flex-wrap: wrap;
}
.filter-bar input:invalid {
    border-color: #e28e9c;
}
.form-error .text-button {
    margin-left: 10px;
}
.notification-item:last-child {
    border-bottom: 0;
}

@media (max-width: 700px) {
    .referral-hero h2 {
        max-width: calc(100% - 85px);
    }
    .referral-hero-art {
        width: 88px;
        right: 10px;
        opacity: 1;
    }
    .referral-hero-art img {
        width: 88px;
        height: 95px;
    }
    .referral-hero p {
        max-width: calc(100% - 70px);
    }
}
