/* Desktop reference layout. The current phone and tablet UI ends at 1100px. */
.avd-only { display: none; }

@font-face { font-family: AvalonDesktop; src: url('/assets/avalon/fonts/roboto-400.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: AvalonDesktop; src: url('/assets/avalon/fonts/roboto-500.ttf') format('truetype'); font-style: normal; font-weight: 500 600; font-display: swap; }
@font-face { font-family: AvalonDesktop; src: url('/assets/avalon/fonts/roboto-700.ttf') format('truetype'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: AvalonDesktop; src: url('/assets/avalon/fonts/roboto-800.ttf') format('truetype'); font-style: normal; font-weight: 750 900; font-display: swap; }

@media (min-width: 1101px) {
    html[data-theme] .av-app {
        --sidebar: 210px;
        --avd-text: #111b47;
        --avd-muted: #71809d;
        --avd-panel: #fff;
        --avd-soft: #eef5fe;
        --avd-line: #eef3fb;
        background: #eef6ff;
        color: var(--avd-text);
    }
    .avd-dashboard, .avd-navigation, .avd-pro, .av-app .wp-topbar { font-family: AvalonDesktop, Arial, sans-serif; }
    html[data-theme] .av-app .wp-sidebar {
        width: 210px;
        background: repeating-linear-gradient(128deg, transparent 0 110px, #05132c33 111px 112px, transparent 113px 225px), radial-gradient(ellipse at 125% 18%, #0d285744, transparent 65%), linear-gradient(135deg, #0b1c32, #091730 60%, #0a1c37);
        border-right: 1px solid #1b2a43;
        backdrop-filter: none;
        color: #d1d9e9;
    }
    html[data-theme] .av-app .wp-sidebar-brand { height: 66px; min-height: 66px; padding: 10px 12px 10px 18px; border: 0; }
    html[data-theme] .av-app .wp-sidebar-brand img { content: url('/assets/avalon/wordmark.svg'); width: 160px; height: 43px; }
    html[data-theme] .av-app .wp-collapse { width: 18px; height: 20px; min-width: 18px; background: #17294788; border: 0; border-radius: 7px; color: #a9bedc; }
    .av-app .wp-collapse .wp-icon { width: 11px; height: 11px; }
    .av-app .wp-sidebar > .wp-side-nav, .av-app .wp-sidebar > .wp-sidebar-bottom { display: none !important; }
    .av-app .avd-navigation { display: block; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 6px 12px 0; }
    .av-app .avd-navigation::-webkit-scrollbar { display: none; width: 0; }
    .avd-navigation > a { display: flex; align-items: center; gap: 15px; height: 33px; padding: 6px 9px; color: #cbd4e8; font-size: 11px; font-weight: 400; text-decoration: none; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; }
    .avd-navigation > a:first-child { height: 34px; }
    .avd-navigation > a > .wp-icon, .avd-nav-icon .wp-icon { width: 18px; height: 18px; stroke-width: 1.6; flex: none; }
    .avd-navigation > a > .wp-icon:last-child:not(:first-child) { width: 10px; height: 10px; margin-left: auto; }
    .avd-nav-icon { position: relative; display: flex; }
    .avd-nav-icon i { position: absolute; right: -1px; top: -1px; width: 7px; height: 7px; border-radius: 50%; background: #f52852; border: 1px solid #b75f7f; }
    .avd-navigation > a.is-active { position: relative; color: #fff; background: linear-gradient(105deg, #052865, #0b307b 70%, #0a3b91); border-color: #064bb3; box-shadow: inset 0 0 10px #077afd44, 0 0 8px #006bff22; }
    .avd-navigation > a.is-active::before { content: ''; position: absolute; left: -1px; top: 1px; bottom: 1px; width: 1px; background: #00d9ff; box-shadow: 0 0 6px 1px #00aaff; border-radius: 3px; }
    .avd-navigation > a:hover { background: #11417a88; color: #fff; }
    .avd-navigation > h2 { font-size: 8px; letter-spacing: .5px; color: #7c9cce; font-weight: 500; line-height: 12px; margin: 16px 8px 6px; }
    .avd-navigation > h2:nth-of-type(2) { margin-top: 20px; }
    .avd-navigation > h2:nth-of-type(3) { margin-top: 17px; }
    .avd-navigation > .avd-support { margin-top: 4px; border-top-color: #18304e55; border-radius: 0; height: 34px; }
    .avd-pro { display: block; position: relative; isolation: isolate; overflow: hidden; flex: none; height: 155px; margin: 8px 9px 20px 12px; padding: 16px 13px; border: 1px solid #073974; border-radius: 12px; background: #091a33; color: #d6e0f5; }
    .avd-pro-art { position: absolute; inset: -1px; z-index: -1; background: url('/assets/avalon/desktop-pro-background-v2.webp') center / 100% 100% no-repeat; }
    .avd-pro::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 50px; height: 140px; z-index: -1; background: url('/assets/avalon/desktop-reference-art.jpg') -151px -640px / 1280px 800px no-repeat; }
    .avd-pro > strong { display: flex; align-items: center; gap: 4px; font-size: 12px; line-height: 23px; font-weight: 600; }
    .avd-pro > strong > .wp-icon { width: 25px; height: 25px; color: #078dff; margin-right: 3px; }
    .avd-pro b { color: #00acfc; font-size: 12px; }
    .avd-pro p { font-size: 12px; line-height: 17px; margin: 8px 0 14px; }
    .avd-pro > a { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(#008fff, #0052ef); color: #fff; font-size: 10.5px; border-radius: 6px; height: 36px; width: 122px; justify-content: space-between; padding: 0 14px; white-space: nowrap; box-shadow: inset 0 1px 2px #77c7ff55; }
    .avd-pro > a .wp-icon { width: 14px; height: 14px; }

    html[data-theme] .av-app .wp-app-content { margin-left: 210px; width: calc(100% - 210px); background: radial-gradient(ellipse at 2% 0, #fbffff 0, #f2f8ff88 23%, transparent 60%), linear-gradient(115deg, #eef6ff, #edf6ff); min-height: 100vh; }
    html[data-theme] .av-app .wp-topbar { height: 50px; min-height: 50px; padding: 0 18px 0 27px; gap: 18px; border-bottom: 1px solid #e9f0fb; background: #f4f8ff66; color: var(--avd-text); }
    html[data-theme] .av-app .wp-topbar-title { font-size: 15px; font-weight: 700; color: var(--avd-text); }
    .av-app .wp-topbar-title > .avd-only { display: inline; }
    .av-app .wp-topbar-title > .avd-legacy-title { display: none; }
    html[data-theme] .av-app .wp-search { height: 34px; width: 373px; max-width: 38%; border: 0; border-radius: 20px; background: #e8f1fc; padding: 7px 12px; color: #40547c; margin-left: auto; }
    .av-app .wp-search input { font-family: inherit; font-size: 10px; color: var(--avd-muted); }
    .av-app .wp-search input::placeholder { color: #7b8ba7; }
    .av-app .wp-search kbd { font-size: 10px; background: #f0f6ff; border: 1px solid #dae6f9; color: #63789c; padding: 3px 7px; border-radius: 7px; }
    html[data-theme] .av-app .wp-search-results, html[data-theme] .av-app .wp-profile > div { background: var(--avd-panel); color: var(--avd-text); border: 1px solid #dce7f5; box-shadow: 0 8px 24px #0e367422; }
    .av-app .wp-top-actions { gap: 17px; margin-left: 0; }
    .av-app .wp-top-actions > .wp-icon-button { width: 35px; height: 35px; border: 1px solid #e5edf9; border-radius: 50%; background: transparent; color: #152d5c; }
    .av-app .wp-top-actions > .wp-icon-button .wp-icon { width: 19px; height: 19px; }
    .av-app .wp-top-actions > [data-theme-toggle] { width: 70px; border-radius: 22px; display: flex; gap: 6px; padding: 0 7px; }
    .av-app .wp-top-actions > [data-theme-toggle]::after { content: ''; display: block; width: 32px; height: 18px; flex: none; border-radius: 20px; background: radial-gradient(circle at 8px 8px, #03c8ff 0, #03a5ff 4px, transparent 6px), linear-gradient(#003bad, #052868); box-shadow: 0 0 0 2px #dbe8fb; }
    .av-app .wp-top-actions .wp-badge { font-size: 0; min-width: 7px; width: 7px; height: 7px; padding: 0; top: 3px; right: 2px; border: 0; background: #e91d43; }
    .av-app .wp-profile > summary { display: flex; width: 160px; height: 38px; gap: 8px; padding: 0; background: none; border: 0; border-radius: 0; color: var(--avd-text); }
    .av-app .wp-profile > summary > .wp-icon, .av-app .wp-profile > summary > .wp-avatar { display: none !important; }
    .avd-profile-avatar { display: grid; place-items: center; flex: none; width: 33px; height: 33px; background: linear-gradient(135deg, #066cff, #0038cf); border: 1px solid #c6e2ff; box-shadow: 0 0 0 3px #e6f3ff; border-radius: 50%; color: #fff; font-size: 11px; }
    .avd-profile-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 1px; }
    .avd-profile-copy strong { font-size: 11px; font-weight: 600; max-width: 105px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .avd-profile-copy small { font-size: 9px; color: var(--avd-muted); font-weight: 400; white-space: nowrap; }
    .avd-profile-chevron { display: block; font-size: 15px; margin-left: auto; }

    html[data-theme] .av-app.wp-dashboard-page .wp-main { display: block; max-width: 1800px; padding: 13px 14px 16px 21px; margin: 0 auto; height: auto; min-height: 0; }
    .av-app.wp-dashboard-page .wp-main > :not(.avd-dashboard) { display: none !important; }
    .av-app.wp-dashboard-page .wp-whatsapp { display: none !important; }
    .avd-dashboard { display: block; font-size: 11px; color: var(--avd-text); line-height: 1.35; }
    .avd-dashboard * { box-sizing: border-box; }
    .avd-dashboard h1, .avd-dashboard h2, .avd-dashboard p { margin: 0; }
    .avd-dashboard a { text-decoration: none; }
    .avd-dashboard button, .avd-dashboard select, .avd-dashboard input { font-family: inherit; }
    .avd-dashboard button, .avd-dashboard summary, .avd-dashboard select { cursor: pointer; }
    .avd-dashboard .wp-icon { width: 17px; height: 17px; flex: none; }
    .avd-dashboard button:focus-visible, .avd-dashboard a:focus-visible, .avd-navigation a:focus-visible, .avd-bar-group:focus-visible { outline: 2px solid #0099ff; outline-offset: 2px; }
    .avd-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; height: 55px; padding: 0 3px; }
    .avd-intro > div:first-child { transform: translateY(-3px); }
    .avd-intro h1 { font-family: Inter, Arial, sans-serif; font-size: 26px; line-height: 32px; font-weight: 750; letter-spacing: -1px; color: var(--avd-text); }
    .avd-intro h1 > span { display: inline-block; font-size: 25px; vertical-align: 1px; margin-left: 3px; transform: rotate(-12deg) scale(.92); }
    .avd-intro p { font-size: 11px; line-height: 17px; color: var(--avd-muted); }
    .avd-filters { display: flex; align-items: center; gap: 6px; padding-top: 3px; flex: none; }
    .avd-filters > a { display: grid; place-items: center; min-width: 66px; height: 34px; border-radius: 6px; background: #e6effc; color: #647598; font-size: 11px; }
    .avd-filters > a:first-of-type { min-width: 56px; }
    .avd-filters > a.is-active { background: #005df4; color: #fff; box-shadow: 0 2px 3px #005aff10; }
    .avd-dates { position: relative; margin-right: 1px; }
    .avd-dates > summary { display: flex; align-items: center; gap: 8px; list-style: none; height: 31px; padding: 0 10px; background: var(--avd-panel); border: 1px solid #e8eef9; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 9px #335aad06; }
    .avd-dates > summary::-webkit-details-marker { display: none; }
    .avd-dates > summary > .wp-icon { width: 14px; height: 14px; color: #36517e; }
    .avd-dates > summary > span { font-size: 13px; margin-left: 3px; }
    .avd-dates > form { position: absolute; right: 0; top: 39px; z-index: 25; width: 250px; background: var(--avd-panel); border: 1px solid #dfeafa; border-radius: 9px; box-shadow: 0 10px 30px #133d6e26; padding: 15px; display: grid; gap: 9px; }
    .avd-dates label { display: grid; gap: 4px; }
    .avd-dates input { padding: 8px; width: 100%; background: var(--avd-soft); color: var(--avd-text); border: 1px solid #c9d9f0; border-radius: 4px; }
    .avd-dates button { background: #065ef0; color: #fff; border: 0; border-radius: 5px; padding: 8px; }
    .avd-error { color: #c32344; padding: 10px; }
    .avd-columns { display: grid; grid-template-columns: minmax(0, 2.04fr) minmax(0, 1fr); gap: 14px; }
    .avd-primary, .avd-secondary { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
    .avd-secondary { margin-top: -2px; }
    .avd-panel { border: 0; border-radius: 10px; background: var(--avd-panel); min-width: 0; padding: 10px 12px; box-shadow: 0 2px 8px #3d6ba702; }
    .avd-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 20px; }
    .avd-section-heading h2 { font-size: 14px; letter-spacing: -.35px; line-height: 18px; font-weight: 700; color: var(--avd-text); }
    .avd-section-heading > a, .avd-report { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 9px; color: #0059d8; }
    .avd-section-heading > a .wp-icon, .avd-report .wp-icon { width: 12px; height: 12px; }

    .avd-balance { position: relative; isolation: isolate; overflow: hidden; height: 155px; flex: none; border: 1px solid #269cff; border-radius: 9px; background: #071c48; box-shadow: 0 3px 7px #0059d91c; color: #fff; }
    .avd-balance::before { content: ''; position: absolute; inset: -1px -1px -1px auto; width: min(calc(100% + 2px), 687px); mask-image: linear-gradient(90deg, transparent, #000 3%); z-index: -2; background: linear-gradient(90deg, #09182c40, transparent 65%), url('/assets/avalon/desktop-balance-background-v2.webp') right center / auto 100% no-repeat; }
    .avd-balance::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #1c36552b, #00061c99); mask-image: linear-gradient(90deg, #000, #000 38%, transparent 66%); pointer-events: none; }
    .avd-balance-art { position: absolute; right: 0; top: -1px; width: 301px; height: 156px; z-index: -1; background: url('/assets/avalon/desktop-reference-art.jpg') -614px -118px / 1280px 800px no-repeat; mask-image: linear-gradient(90deg, transparent, #000 20%); }
    .avd-balance-content { position: relative; padding: 13px 16px; max-width: 67%; }
    .avd-balance-label { display: flex; align-items: center; gap: 12px; height: 41px; color: #20b4d4; font-size: 13px; }
    .avd-balance-label > strong { font-weight: 500; transform: translateY(-1px); }
    .avd-wallet { display: grid; place-items: center; width: 43px; height: 41px; border: 1px solid #2471b9; border-radius: 10px; color: #d8f4ff; background: linear-gradient(145deg, #18578d, #13467d 65%, #6843e3); box-shadow: 0 3px 8px #005ddb55; }
    .avd-wallet .wp-icon { width: 23px; height: 23px; }
    .avd-balance-label > button { background: #ffffff12; border: 0; border-radius: 50%; color: #ccddff; width: 23px; height: 19px; padding: 2px; display: grid; place-items: center; margin-left: -3px; }
    .avd-balance-label > button > .wp-icon { width: 15px; height: 15px; }
    .avd-balance-line { display: flex; align-items: center; gap: 12px; white-space: nowrap; margin: -4px 0 0 8px; }
    .avd-balance-money { font-size: 39.5px; letter-spacing: -.7px; line-height: 49px; font-weight: 700; color: #fff; }
    .avd-balance-money small { font-size: 22px; letter-spacing: 0; font-weight: 600; color: #d5baff; }
    .avd-growth { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: -3px; }
    .avd-growth > span { padding: 4px 9px; border: 1px solid #2e9ea3; border-radius: 6px; background: #04658077; color: #99f7e2; font-size: 12px; }
    .avd-growth > small { font-size: 8px; color: #a5c5e9; }
    .avd-balance-content > p { font-size: 14px; line-height: 19px; color: #e3e8fb; margin: -4px 0 6px 8px; }
    .avd-account-meta { display: flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: .1px; color: #bdcdeb; white-space: nowrap; margin-left: 8px; }
    .avd-account-meta i { font-style: normal; }
    .avd-account-meta button { display: flex; align-items: center; background: none; padding: 0; color: #bad2f4; border: 0; }
    .avd-account-meta .wp-icon { width: 11px; height: 11px; }
    .avd-balance-more { position: absolute; top: 13px; right: 18px; color: #b2d3ff; line-height: 19px; font-size: 18px; border-radius: 50%; background: #00409a77; }
    .avd-balance-link { position: absolute; right: 59px; top: 106px; width: 27px; height: 27px; border-radius: 50%; }
    .avd-metrics { display: grid; grid-template-columns: 1.03fr 1.03fr 1.02fr .92fr; gap: 7px; height: 73px; flex: none; margin-top: -2px; }
    .avd-metric { display: flex; align-items: flex-start; gap: 12px; padding: 8px 9px; background: var(--avd-panel); border-radius: 9px; min-width: 0; }
    .avd-tile { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; }
    .avd-tile .wp-icon { width: 25px; height: 25px; }
    .avd-dashboard .green { color: #1cb88f; background: #dffaf1; }
    .avd-dashboard .red { color: #ff3c6b; background: #ffe6ec; }
    .avd-dashboard .orange { color: #f58716; background: #fff1de; }
    .avd-dashboard .purple { color: #8837ef; background: #f0e6ff; }
    .avd-dashboard .blue { color: #0068f7; background: #e6f1ff; }
    .avd-metric > div { min-width: 0; padding-top: 4px; }
    .avd-metric strong { display: block; white-space: nowrap; font-size: 14px; letter-spacing: -.3px; line-height: 18px; font-weight: 700; }
    .avd-metric p { font-size: 10px; line-height: 14px; white-space: nowrap; color: var(--avd-muted); }
    .avd-change { display: inline-block; border-radius: 10px; padding: 2px 7px; line-height: 12px; font-size: 9px; font-weight: 500; }
    .avd-neutral { color: #6a7f9c; }
    .avd-change:has(.avd-neutral) { background: #edf3fb; }

    .avd-charts { display: grid; grid-template-columns: minmax(0, 1.3265fr) minmax(0, 1fr); gap: 8px; height: 187px; flex: none; margin-top: 1px; }
    .avd-charts > .avd-panel { padding: 9px 12px; }
    .avd-charts > .avd-flow { padding-right: 20px; }
    .avd-flow > .avd-section-heading { margin-right: -8px; }
    .avd-flow select { font-size: 9px; line-height: 19px; height: 24px; width: 109px; padding: 1px 7px; border: 1px solid #e8edf8; border-radius: 5px; background: var(--avd-panel); color: #4e6084; }
    .avd-chart-key { display: flex; align-items: center; gap: 19px; height: 33px; font-size: 10px; color: var(--avd-muted); }
    .avd-chart-key > span { display: flex; gap: 6px; align-items: center; }
    .avd-chart-key i, .avd-legend i { display: block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
    .avd-chart-key i.blue { background: #0065ff; }
    .avd-chart-key i.orange { background: #ff861c; }
    .avd-bar-chart { display: flex; height: 106px; gap: 8px; margin-top: 4px; }
    .avd-axis { display: flex; flex-direction: column; justify-content: space-between; flex: none; width: 24px; font-size: 9px; color: var(--avd-muted); height: 94px; margin-top: -5px; white-space: nowrap; }
    .avd-plot { display: flex; justify-content: space-around; flex: 1; min-width: 0; height: 88px; background: repeating-linear-gradient(to top, #eaf0f9 0 1px, transparent 1px 22px); border-left: 1px solid #eaf0f9; border-bottom: 1px solid #eaf0f9; }
    .avd-bar-group { flex: 1; min-width: 0; position: relative; text-align: center; }
    .avd-bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 88px; border-right: 1px solid #f2f5fa; }
    .avd-bars > i { width: 11px; max-width: 29%; border-radius: 2px 2px 0 0; background: linear-gradient(#0876ff, #0061ff); }
    .avd-bars > i + i { background: linear-gradient(#ff9a29, #ff811b); }
    .avd-bar-group > span { display: block; font-size: 9px; margin-top: 7px; color: var(--avd-muted); }
    .avd-chart-tooltip { display: none; position: absolute; z-index: 5; bottom: 55px; left: 50%; transform: translateX(-24px); min-width: 122px; padding: 7px 8px; background: var(--avd-panel); box-shadow: 0 3px 9px #32579320; border-radius: 5px; color: var(--avd-muted); font-size: 9px; white-space: nowrap; text-align: left; pointer-events: none; }
    .avd-chart-tooltip > strong { font-weight: 400; display: block; margin-bottom: 4px; }
    .avd-chart-tooltip > span { display: flex; align-items: center; gap: 5px; line-height: 14px; }
    .avd-chart-tooltip .avd-tooltip-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
    .avd-chart-tooltip .blue { background: #0067ff; }
    .avd-chart-tooltip .orange { background: #ff861c; }
    .avd-bar-group:nth-last-child(-n+2) .avd-chart-tooltip { left: auto; right: 0; transform: none; }
    .avd-chart-tooltip b { color: var(--avd-text); margin-left: auto; font-weight: 600; }
    .avd-bar-group:hover .avd-chart-tooltip, .avd-bar-group:focus .avd-chart-tooltip { display: block; }
    .avd-summary-body { display: flex; align-items: center; gap: 19px; height: 131px; padding: 8px 0 0 4px; }
    .avd-donut { display: grid; place-items: center; position: relative; width: 117px; height: 117px; border-radius: 50%; background: var(--avd-ring); flex: none; }
    .avd-donut > div { display: flex; flex-direction: column; align-items: center; justify-content: center; position: absolute; inset: 11px; border-radius: 50%; background: var(--avd-panel); color: var(--avd-text); font-size: 11px; }
    .avd-donut strong { font-size: 14px; letter-spacing: -.4px; white-space: nowrap; }
    .avd-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 10px; }
    .avd-legend > div { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
    .avd-legend b { margin-left: auto; font-size: 11px; color: var(--avd-text); }
    .avd-legend span { color: var(--avd-muted); }
    .avd-report { justify-content: flex-end; font-size: 10px; margin-top: 2px; }

    .avd-recent { height: 220px; padding: 8px 12px; flex: none; margin-top: 2px; }
    .avd-recent .avd-section-heading { height: 23px; margin-bottom: 1px; }
    .avd-recent table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10px; color: var(--avd-muted); }
    .avd-recent thead { background: var(--avd-soft); }
    html[data-theme] .avd-recent th { background: var(--avd-soft); color: var(--avd-muted); }
    .avd-recent th { font-size: 9px; font-weight: 400; text-align: left; padding: 6px 8px; line-height: 10px; }
    .avd-recent th:first-child { width: 24%; border-radius: 4px 0 0 4px; }
    .avd-recent th:nth-child(2) { width: 16.5%; }
    .avd-recent th:nth-child(3) { width: 22%; }
    .avd-recent th:nth-child(4) { width: 16%; text-align: right; }
    .avd-recent th:nth-child(5) { width: 17%; text-align: center; }
    .avd-recent th:last-child { width: 7%; text-align: center; border-radius: 0 4px 4px 0; }
    .avd-recent td { height: 32px; border-bottom: 1px solid var(--avd-line); padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .avd-recent tr:last-child td { border: 0; }
    .avd-transaction { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .avd-transaction > div { min-width: 0; }
    .avd-transaction strong { font-size: 10px; color: var(--avd-text); font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; }
    .avd-transaction small { font-size: 9px; display: block; max-width: 118px; overflow: hidden; text-overflow: ellipsis; line-height: 10px; }
    .avd-small-tile { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; flex: none; }
    .avd-small-tile .wp-icon { width: 14px; height: 14px; }
    .avd-type { display: flex; align-items: center; gap: 8px; }
    .avd-type .avd-small-tile { width: 23px; height: 23px; }
    .avd-recent td.avd-amount { text-align: right; font-size: 11px; font-weight: 600; color: var(--avd-text); }
    .avd-recent td.avd-amount.is-negative { color: #ed3154; }
    .avd-recent td:nth-child(5), .avd-recent td:last-child { text-align: center; }
    .avd-recent td:last-child a { font-size: 9px; letter-spacing: 1px; color: #6c7b96; padding: 5px; }
    .avd-status { display: inline-block; border-radius: 14px; font-size: 9px; font-weight: 400; padding: 3px 8px; line-height: 12px; }
    .avd-status.completed { background: #e2faf2; color: #18ab85; }
    .avd-status.pending { background: #fff2dd; color: #e58a18; }
    .avd-status.other { background: #fff0f2; color: #d74a5c; }
    .avd-empty { min-height: 130px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--avd-muted); font-size: 10px; text-align: center; }
    .avd-empty > .wp-icon { width: 26px; height: 26px; color: #4087e7; }
    .avd-empty strong { font-size: 11px; }

    .avd-quick { height: 179px; flex: none; padding: 9px; }
    .avd-quick .avd-section-heading { padding: 0 3px; margin-bottom: 7px; }
    .avd-quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .avd-quick-grid > a, .avd-quick-grid > button { height: 64px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(125deg, #f0f5fe, #f4f8ff); border: 0; border-radius: 6px; color: var(--avd-text); padding: 6px 0; }
    .avd-quick-grid .wp-icon { width: 18px; height: 18px; margin-bottom: 5px; color: #005ee7; }
    .avd-quick-grid strong { font-size: 10px; font-weight: 500; line-height: 11px; }
    .avd-quick-grid small { font-size: 9px; color: var(--avd-muted); line-height: 10px; }
    .avd-quick-grid > a:hover, .avd-quick-grid > button:hover { background: #e2eeff; }
    .avd-promo { position: relative; isolation: isolate; overflow: hidden; height: 195px; flex: none; margin-top: 1px; border-radius: 10px; border: 1px solid #d2e3fa; background: #071b40; color: #fff; padding: 12px 17px; }
    .avd-promo::before { content: ''; position: absolute; inset: -1px -1px -1px auto; width: min(calc(100% + 2px), 335px); mask-image: linear-gradient(90deg, transparent, #000 5%); z-index: -2; background: linear-gradient(90deg, #09192e88, transparent 75%), url('/assets/avalon/desktop-promo-background-v2.webp') right center / auto 100% no-repeat; }
    .avd-promo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #09192e00, #050b2080); mask-image: linear-gradient(90deg, #000, transparent 85%); pointer-events: none; }
    .avd-promo-art { position: absolute; right: 0; top: 0; width: 135px; height: 195px; z-index: -1; background: url('/assets/avalon/desktop-reference-art.jpg') -1130px -306px / 1280px 800px; mask-image: linear-gradient(90deg, transparent, #000 18%); }
    .avd-promo-copy { position: relative; z-index: 1; }
    .avd-new { display: inline-block; background: #009cf7; border-radius: 20px; font-size: 9px; padding: 2px 8px; line-height: 12px; }
    .avd-promo h2 { font-size: 16px; line-height: 19px; font-weight: 600; letter-spacing: -.35px; margin-top: 4px; color: #fff; }
    .avd-promo p { font-size: 11px; line-height: 16px; color: #cbdcff; margin-top: 2px; }
    .avd-promo ul { list-style: none; margin: 7px 0 9px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
    .avd-promo li { font-size: 10px; color: #d3e2fc; line-height: 13px; display: flex; align-items: center; gap: 9px; letter-spacing: -.1px; }
    .avd-promo li::before { content: '✓'; display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: #00bb9a; color: #dbfff5; font-size: 10px; font-weight: 700; }
    .avd-promo-copy button { display: flex; align-items: center; gap: 18px; font-size: 10px; color: #fff; border: 0; border-radius: 5px; padding: 6px 16px; background: linear-gradient(#008dff, #0051ee); height: 27px; }
    .avd-promo-copy button .wp-icon { width: 13px; height: 13px; }
    .avd-promo-dots { display: none; }
    .avd-promo-next { position: absolute; right: 16px; bottom: 7px; width: 22px; height: 23px; border: 0; background: transparent; border-radius: 50%; padding: 0; }
    .avd-progress { height: 93px; margin-top: -2px; flex: none; padding: 5px 11px; }
    .avd-progress .avd-section-heading h2, .avd-notices .avd-section-heading h2 { font-size: 14px; }
    .avd-progress-body { display: flex; align-items: center; gap: 15px; margin-top: 6px; }
    .avd-medal { display: block; width: 49px; height: 52px; flex: none; background: url('/assets/avalon/desktop-reference-art.jpg') -941px -540px / 1280px 800px no-repeat; border-radius: 12px; }
    .avd-progress-info { flex: 1; background: var(--avd-soft); border-radius: 6px; padding: 4px 8px; min-width: 0; }
    .avd-progress-info > div:first-child { display: flex; justify-content: space-between; gap: 5px; }
    .avd-progress-info > div:first-child > span:last-child { padding-right: 12px; }
    .avd-progress-info small { display: block; font-size: 9px; color: var(--avd-muted); line-height: 12px; }
    .avd-progress-info strong { display: block; font-size: 12px; font-weight: 600; line-height: 15px; }
    .avd-progress-line { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
    .avd-progress-line progress { appearance: none; width: 100%; height: 8px; flex: 1; min-width: 0; overflow: hidden; border: 0; border-radius: 6px; background: #dce8fb; }
    .avd-progress-line progress::-webkit-progress-bar { background: #dce8fb; border-radius: 6px; }
    .avd-progress-line progress::-webkit-progress-value { background: linear-gradient(#098bff, #0063ee); border-radius: 6px; }
    .avd-progress-line progress::-moz-progress-bar { background: #0874ff; border-radius: 6px; }
    .avd-progress-line > span { font-size: 9px; color: var(--avd-muted); }
    .avd-notices { height: 169px; margin-top: 1px; flex: none; padding: 6px 12px; }
    .avd-notices > .avd-section-heading { height: 22px; margin-bottom: 2px; }
    .avd-notice { display: flex; align-items: center; gap: 17px; min-height: 33px; border-bottom: 1px solid var(--avd-line); }
    .avd-notice:last-child { border: 0; }
    .avd-notice > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
    .avd-notice strong { font-size: 10px; color: #55678d; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .avd-notice small { font-size: 9px; color: #8090ac; }
    .avd-notice > i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #0066f5; margin-right: 3px; }
    .avd-notices .avd-small-tile { width: 29px; height: 29px; }
    .avd-notices .avd-small-tile > .wp-icon { width: 16px; height: 16px; }
    .avd-notices .avd-empty { min-height: 120px; font-size: 10px; }
    .avd-service-dialog { max-width: 390px; padding: 28px; border: 1px solid #d8e7fb; border-radius: 14px; background: var(--avd-panel); color: var(--avd-text); box-shadow: 0 20px 80px #00174455; }
    .avd-service-dialog::backdrop { background: #071c4266; backdrop-filter: blur(3px); }
    .avd-service-dialog h2 { font-size: 19px; margin: 14px 0 8px; }
    .avd-service-dialog p { font-size: 13px; line-height: 1.6; color: var(--avd-muted); }
    .avd-service-dialog > a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; margin-top: 20px; background: #0065f5; color: #fff; border-radius: 6px; }
    .avd-service-dialog > form { position: absolute; top: 8px; right: 10px; }
    .avd-service-dialog > form > button { border: 0; background: none; color: var(--avd-muted); font-size: 25px; }
    .avd-service-dialog > .wp-icon { width: 28px; height: 28px; color: #0066f5; }

    html[data-theme] .av-app.wp-sidebar-collapsed .wp-sidebar { width: 64px; }
    .av-app.wp-sidebar-collapsed .wp-sidebar-brand { padding: 10px; }
    .av-app.wp-sidebar-collapsed .wp-sidebar-brand > a { display: none; }
    .av-app.wp-sidebar-collapsed .wp-collapse { width: 34px; }
    .av-app.wp-sidebar-collapsed .avd-navigation { padding: 5px 8px; }
    .av-app.wp-sidebar-collapsed .avd-navigation a { justify-content: center; padding: 6px; }
    .av-app.wp-sidebar-collapsed .avd-navigation a > span:not(.avd-nav-icon), .av-app.wp-sidebar-collapsed .avd-navigation a > .wp-icon:last-child:not(:first-child), .av-app.wp-sidebar-collapsed .avd-navigation h2, .av-app.wp-sidebar-collapsed .avd-pro { display: none; }
    .av-app.wp-sidebar-collapsed .avd-navigation h2 + a { margin-top: 20px; }
    html[data-theme] .av-app.wp-sidebar-collapsed .wp-app-content { margin-left: 64px; width: calc(100% - 64px); }

    html[data-theme=dark] .av-app { --avd-text: #e4edff; --avd-muted: #9aaccb; --avd-panel: #12223a; --avd-soft: #182c49; --avd-line: #203552; background: #0c192e; }
    html[data-theme=dark] .av-app .wp-app-content { background: linear-gradient(115deg, #0c1b32, #0b192d); }
    html[data-theme=dark] .av-app .wp-topbar { background: #10213a; border-color: #203350; }
    html[data-theme=dark] .av-app .wp-search { background: #192c49; }
    html[data-theme=dark] .av-app .wp-top-actions > .wp-icon-button { color: #b9d0f5; border-color: #263d60; }
    html[data-theme=dark] .av-app .wp-search kbd { background: #152641; border-color: #2a4368; color: #9aaccb; }
    html[data-theme=dark] .avd-filters > a { background: #1a3154; color: #adbedb; }
    html[data-theme=dark] .avd-filters > a.is-active { background: #075ef0; color: #fff; }
    html[data-theme=dark] .avd-quick-grid > a, html[data-theme=dark] .avd-quick-grid > button { background: #192e4d; }
    html[data-theme=dark] .avd-dates > summary, html[data-theme=dark] .avd-flow select { border-color: #213b5d; }
    html[data-theme=dark] .avd-plot { background: repeating-linear-gradient(to top, #253550 0 1px, transparent 1px 22px); border-color: #253550; }
    html[data-theme=dark] .avd-bars { border-color: #1b2d47; }
    html[data-theme=dark] .avd-notice strong { color: #bccce5; }
    html[data-theme=dark] .avd-medal { mix-blend-mode: luminosity; }
    html[data-theme=dark] .avd-dates input { color-scheme: dark; }
    html[data-theme=dark] .av-app .wp-top-actions > [data-theme-toggle]::after { background: radial-gradient(circle at 23px 8px, #a6bbdc 0, #7f9ac0 4px, transparent 6px), #263c61; box-shadow: 0 0 0 2px #20304c; }
}

/* Featured virtual card: a full-width product story, with live text over a sharp 3D scene. */
@media (min-width: 1101px) {
    .avd-feature { position:relative; isolation:isolate; overflow:hidden; width:100%; height:clamp(400px,34vw,490px); border:1px solid #3476e9; border-radius:18px; color:#f6f9ff; background:#071c58 url('/assets/avalon/virtual-card-scene-v1.png') center 54%/cover no-repeat; box-shadow:0 13px 30px #0a3d901c,inset 0 1px 0 #ffffff38; }
    .avd-feature::before { content:""; position:absolute; inset:0; z-index:0; background:linear-gradient(90deg,#071846e8 0%,#0b2365c9 32%,#0b267c44 58%,transparent 83%); }
    .avd-feature::after { content:""; position:absolute; inset:0; border:1px solid #89bbff44; border-radius:inherit; pointer-events:none; }
    .avd-feature-copy { position:relative; z-index:2; width:47%; height:100%; padding:clamp(22px,2.4vw,36px) 0 20px clamp(28px,3.2vw,50px); }
    .avd-feature-new { display:inline-flex; align-items:center; justify-content:center; min-width:70px; height:28px; padding:0 15px; border-radius:999px; background:linear-gradient(105deg,#0497ff,#0872ee); box-shadow:0 0 17px #14aaff69; color:#fff; font-size:13px; font-weight:700; letter-spacing:.3px; }
    .avd-feature h2 { margin:15px 0 0; font-family:Inter,AvalonDesktop,Arial,sans-serif; font-size:clamp(39px,3.8vw,58px); font-weight:800; line-height:.99; letter-spacing:-2.6px; color:#fff; white-space:nowrap; text-shadow:0 2px 16px #020b4f4d; }
    .avd-feature h2 span { color:#44c8ff; background:linear-gradient(105deg,#c7dfff,#51cfff 55%,#008cff); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
    .avd-feature-lead { margin-top:11px!important; color:#b3d1ff; font-size:clamp(16px,1.8vw,23px); font-weight:500; line-height:1.25; }
    .avd-feature-benefits { display:grid; gap:12px; list-style:none; margin:21px 0 0; padding:0; }
    .avd-feature-benefits li { display:flex; align-items:flex-start; gap:13px; }
    .avd-feature-check { display:grid; place-items:center; flex:none; width:30px; height:30px; border:1px solid #5adaff; border-radius:50%; background:#017dff4a; box-shadow:0 0 0 3px #006dff18,0 0 13px #00bdffb0; color:#fff; font-size:19px; font-weight:700; line-height:1; }
    .avd-feature-benefits li>span:last-child { display:grid; gap:2px; }
    .avd-feature-benefits strong { color:#fff; font-size:clamp(14px,1.2vw,17px); line-height:1.22; font-weight:700; }
    .avd-feature-benefits small { color:#a7c9fc; font-size:clamp(10px,.95vw,13px); line-height:1.25; }
    .avd-feature-action { display:inline-flex; align-items:center; justify-content:center; gap:15px; height:38px; margin-top:20px; padding:0 17px; border:1px solid #42bfff; border-radius:8px; color:#fff; background:linear-gradient(120deg,#058dfb,#0056ed); box-shadow:0 6px 17px #0053f473; font-size:12px; font-weight:700; }
    .avd-feature-action:hover { background:linear-gradient(120deg,#23a9ff,#0068ff); }
    .avd-feature-action .wp-icon { width:16px; height:16px; }
    .avd-feature-tags { position:absolute; left:clamp(28px,3.2vw,50px); bottom:18px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:min(420px,95%); min-height:57px; padding:5px 4px; border:1px solid #428fff4a; border-radius:12px; background:#0b328c65; box-shadow:inset 0 1px 0 #80bdff1a; color:#bad5ff; font-size:10px; line-height:1.15; text-align:center; }
    .avd-feature-tags span { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:0 5px; }
    .avd-feature-tags span+span { border-left:1px solid #4c83da42; }
    .avd-feature-tags svg { width:18px; height:18px; color:#a6ccff; }
    .avd-feature-product { position:absolute; z-index:1; top:5%; right:11%; width:32%; max-width:445px; transform:perspective(850px) rotateY(-7deg) rotateZ(-4deg); transform-origin:50% 80%; }
    .avd-feature-product .avd-platinum-card { border:1px solid #78a9ffb0; border-radius:17px; box-shadow:0 21px 32px #000c3b9c,4px 6px 0 #00399a,inset 0 1px 0 #ffffff30; }
    .avd-feature-product .avd-platinum-card::after { content:""; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle at 3% 2%,#ffdc6a88,transparent 22%); pointer-events:none; }
    .avd-feature-product .avd-platinum-card__brand { top:8%; right:8%; }
    .avd-feature-product .avd-platinum-card__brand strong { font-size:clamp(41px,4.1vw,64px); letter-spacing:-4px; }
    .avd-feature-product .avd-platinum-card__brand span { margin-top:10px; font-size:clamp(14px,1.4vw,21px); }
    .avd-feature-product .avd-platinum-card__number { left:7%; bottom:9%; gap:10px; font-size:clamp(18px,2vw,28px); }
    .avd-feature-product .avd-platinum-card__dots { gap:6px; }
    .avd-feature-product .avd-platinum-card__dots i { width:6px; height:6px; }
    .avd-feature-wordmark { position:absolute; z-index:2; right:24px; bottom:18px; width:154px; height:auto; filter:drop-shadow(0 2px 8px #0004); }
    .avd-columns { margin-top:14px; }
}
@media (min-width:1101px) and (max-width:1330px) {
    .avd-feature-tags { display:none; }
    .avd-feature-benefits { gap:9px; margin-top:15px; }
    .avd-feature-action { margin-top:14px; }
    .avd-feature-product { top:12%; }
    .avd-feature-wordmark { width:125px; }
}

/* Compact card offer stays in the dashboard's original right column. */
@media (min-width:1101px) {
    .avd-columns { margin-top:0; }
    .avd-promo-compact { position:relative; isolation:isolate; overflow:hidden; flex:none; height:215px; margin-top:1px; border:1px solid #286aca; border-radius:11px; background:linear-gradient(120deg,#071b4a 0%,#072d79 58%,#0645aa 100%); color:#fff; box-shadow:inset 0 1px 0 #91d5ff42; }
    .avd-promo-compact::before { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(ellipse at 78% 58%,#20b9ff91 0%,#077de850 30%,transparent 62%),linear-gradient(137deg,transparent 50%,#5cd0ff18 50.3%,transparent 51.2%); }
    .avd-promo-compact::after { content:""; position:absolute; inset:0; pointer-events:none; border:1px solid #b2dfff26; border-radius:inherit; }
    .avd-promo-compact__copy { position:relative; z-index:2; width:52%; height:100%; padding:15px 0 14px 16px; }
    .avd-promo-compact__new { display:inline-flex; align-items:center; justify-content:center; height:20px; min-width:50px; padding:0 9px; border-radius:999px; background:linear-gradient(110deg,#00aeff,#0070ec); color:#fff; font-size:9px; font-weight:700; letter-spacing:.3px; }
    .avd-promo-compact h2 { margin:8px 0 0; color:#fff; font-family:Inter,AvalonDesktop,Arial,sans-serif; font-size:clamp(15px,1.25vw,19px); font-weight:750; line-height:1.11; letter-spacing:-.6px; white-space:nowrap; }
    .avd-promo-compact h2 span { color:#4bcbff; }
    .avd-promo-compact p { margin:6px 0 0; color:#c4daff; font-size:clamp(9px,.85vw,11px); line-height:1.25; white-space:nowrap; }
    .avd-promo-compact ul { display:grid; gap:7px; list-style:none; margin:14px 0 0; padding:0; }
    .avd-promo-compact li { display:flex; align-items:center; gap:6px; color:#e4efff; font-size:clamp(8px,.8vw,10px); line-height:1.15; white-space:nowrap; }
    .avd-promo-compact li::before { content:"✓"; display:grid; place-items:center; flex:none; width:13px; height:13px; border:1px solid #40dcff; border-radius:50%; background:#008cff66; color:#fff; font-size:9px; font-weight:700; box-shadow:0 0 8px #00baff88; }
    .avd-promo-compact__copy button { position:absolute; left:16px; bottom:13px; display:flex; align-items:center; justify-content:space-between; gap:8px; height:30px; min-width:126px; padding:0 10px; border:1px solid #4bbfff; border-radius:6px; background:linear-gradient(115deg,#0b94ff,#0057ec); box-shadow:0 5px 12px #001d7670; color:#fff; font-size:10px; font-weight:600; white-space:nowrap; }
    .avd-promo-compact__copy button:hover { background:linear-gradient(115deg,#2caeff,#0673ff); }
    .avd-promo-compact__copy button .wp-icon { width:13px; height:13px; }
    .avd-promo-compact__art { position:absolute; z-index:1; top:54px; right:6px; width:min(49%,220px); aspect-ratio:1.5; filter:drop-shadow(0 13px 11px #000d49aa); }
    .avd-promo-compact__art img { display:block; width:100%; height:100%; object-fit:contain; }
    .avd-promo-compact__visa { position:absolute; top:19%; right:15%; display:flex; flex-direction:column; align-items:flex-end; color:#fff; font:italic 900 clamp(11px,1.02vw,16px)/.9 Arial,sans-serif; letter-spacing:-1px; text-shadow:0 1px 3px #0007; transform:rotate(4deg); }
    .avd-promo-compact__visa small { margin-top:4px; color:#fff; font:400 clamp(6px,.65vw,9px)/1 Arial,sans-serif; letter-spacing:0; }
    .avd-promo-compact__number { position:absolute; left:15%; bottom:22%; color:#eaf4ff; font:500 clamp(8px,.8vw,12px)/1 Arial,sans-serif; letter-spacing:.5px; text-shadow:0 1px 3px #0008; transform:rotate(4deg); }
}
@media (min-width:1101px) and (max-width:1210px) {
    .avd-promo-compact__copy { padding-left:12px; }
    .avd-promo-compact__copy button { left:12px; min-width:112px; font-size:9px; }
    .avd-promo-compact h2 { font-size:14px; }
    .avd-promo-compact p { font-size:8.5px; }
    .avd-promo-compact li { font-size:8px; gap:4px; }
}

@media (min-width: 1101px) and (max-width: 1210px) {
    .avd-intro > div:first-child { transform: translateY(-3px); }
    .avd-intro h1 { font-size: 23px; }
    .avd-intro p { font-size: 9px; }
    .avd-filters > a { min-width: 49px; }
    .avd-filters > a:first-of-type { min-width: 40px; }
    .avd-dates > summary { font-size: 9px; padding: 0 7px; }
    .avd-metric { padding: 8px 6px; gap: 6px; }
    .avd-tile { width: 31px; height: 37px; }
    .avd-metric strong { font-size: 12px; }
    .avd-metric p { font-size: 8px; }
    .avd-summary-body { padding-left: 0; gap: 8px; }
    .avd-donut { width: 98px; height: 98px; }
    .avd-legend { font-size: 9px; }
    .avd-legend > div { gap: 4px; }
    .avd-legend b { font-size: 9px; }
    .avd-balance-money { font-size: 34px; }
    .avd-growth { display: none; }
    .avd-promo { padding-left: 12px; }
    .avd-promo h2 { font-size: 14px; }
    .avd-promo li { font-size: 9px; }
    .avd-recent td { padding: 3px; font-size: 9px; }
    .avd-transaction { gap: 4px; }
    .avd-transaction strong { font-size: 9px; }
    .avd-transaction small { font-size: 8px; }
    .avd-type { gap: 4px; }
    .avd-status { font-size: 8px; }
}
@media (min-width: 1500px) {
    .avd-columns { gap: 18px; }
    .avd-balance-content { padding-left: 22px; }
    .avd-metric { gap: 15px; }
    .avd-metric strong { font-size: 15px; }
    .avd-summary-body { justify-content: space-evenly; }
    .avd-legend { max-width: 210px; }
    .avd-transaction small { font-size: 10px; }
    .avd-notice strong { font-size: 11px; }
}

/* Dashboard cards: the complete card, including the network mark, is one scalable element. */
@media (min-width: 1101px) {
    .avd-balance { background: linear-gradient(118deg,#071835 0%,#082c71 59%,#075cca 100%); }
    .avd-balance::before { inset: 0; width: 100%; mask-image: none; background: radial-gradient(ellipse at 75% 38%,#28c8ff77 0%,#097bdf33 25%,transparent 56%),linear-gradient(135deg,transparent 48%,#5aceff12 48.2%,transparent 49%,transparent 72%,#a9eaff10 72.2%,transparent 73%); }
    .avd-balance::after { inset: 0; mask-image: none; background: linear-gradient(90deg,#06142f66 0%,transparent 57%); }
    .avd-balance-art { inset: 0 5.5% 0 auto; width: 238px; height: 100%; display: grid; place-items: center; background: none; mask-image: none; z-index: 0; pointer-events: none; }
    .avd-balance-art::before,.avd-promo-art::before { content:''; position:absolute; inset: 24% 5% 3%; border-radius:50%; background:#20bbff80; filter:blur(24px); z-index:-1; }
    .avd-balance-content { z-index: 1; max-width: calc(100% - 265px); }
    .avd-bank-card { position: relative; width: 218px; height: 128px; flex: none; overflow: hidden; border: 1px solid #91daff88; border-radius: 15px; background: radial-gradient(circle at 10% 0%,#128ef1 0%,#07479d 31%,transparent 55%),linear-gradient(132deg,#071735 20%,#053978 62%,#031b49); box-shadow: 0 13px 24px #00163599, inset 0 1px 0 #b0efff75, inset 0 -1px 0 #0b53af; transform: rotate(-6deg); color: #fff; }
    .avd-bank-card::before { content:''; position:absolute; inset:0; background:linear-gradient(140deg,transparent 40%,#9beaff1c 41%,transparent 44%,transparent 58%,#02bdff20 59%,transparent 61%); pointer-events:none; }
    .avd-bank-card::after { content:''; position:absolute; width:90px; height:90px; right:-28px; top:-42px; border:1px solid #8bdaff4a; border-radius:50%; box-shadow:0 0 0 19px #7fe2ff0b,0 0 0 39px #7fe2ff08; pointer-events:none; }
    .avd-bank-card__top { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:14px 15px 0; }
    .avd-bank-card__top img { display:block; width:99px; height:auto; filter:drop-shadow(0 1px 2px #0005); }
    .avd-bank-card__top span { color:#b8dffb; font-size:6px; font-weight:700; letter-spacing:.9px; white-space:nowrap; }
    .avd-bank-card__chip { position:absolute; top:54px; left:16px; width:31px; height:23px; border:1px solid #b9dbef; border-radius:4px; background:linear-gradient(135deg,#d4e8f4,#8fb5d1 57%,#d7edf7); box-shadow:0 1px 4px #00194488; }
    .avd-bank-card__chip::after { content:''; position:absolute; inset:3px 8px; border-left:1px solid #6087a6; border-right:1px solid #6087a6; background:repeating-linear-gradient(0deg,transparent 0 5px,#6087a6 5px 6px); }
    .avd-bank-card__bottom { position:absolute; z-index:1; left:16px; right:15px; bottom:13px; display:flex; align-items:end; justify-content:space-between; }
    .avd-bank-card__bottom span { color:#bad6f4; font-size:7px; font-weight:700; letter-spacing:1.4px; }
    .avd-bank-card__bottom strong { color:#fff; font:italic 900 22px/1 Arial,sans-serif; letter-spacing:-1.4px; text-shadow:0 2px 5px #001431; }
    .avd-promo { background:linear-gradient(118deg,#142d8f 0%,#3242ce 72%,#4548dd 100%); }
    .avd-promo::before,.avd-promo::after { display:none; }
    .avd-promo-art { inset: 9px 4px auto auto; width: min(49%,215px); height: 178px; display:grid; place-items:center; background:none; mask-image:none; z-index:0; pointer-events:none; }
    .avd-promo-art::before { display:none; }
    .avd-promo-art img { display:block; width:100%; height:100%; object-fit:contain; }
    .avd-platinum-card { position:relative; width:100%; aspect-ratio:1.586; overflow:hidden; border-radius:10px; background:radial-gradient(circle at 9% 3%,rgba(255,170,13,.98) 0%,rgba(255,164,12,.48) 10%,rgba(242,151,44,.18) 22%,rgba(255,255,255,.05) 35%,transparent 48%),radial-gradient(circle at 33% 28%,rgba(183,143,151,.34),transparent 34%),linear-gradient(120deg,#25265c 0%,#24295c 33%,#1f2d5c 58%,#19305d 100%); box-shadow:0 12px 25px #07144c80,inset 0 1px 0 #ffffff0d,inset 0 -1px 0 #0003; color:#fff; }
    .avd-platinum-card::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#ffffff05,transparent 30%,#ffffff03 60%,transparent); pointer-events:none; }
    .avd-platinum-card__brand { position:absolute; top:9%; right:7%; display:flex; flex-direction:column; align-items:flex-end; font-family:Arial,Helvetica,sans-serif; }
    .avd-platinum-card__brand strong { font-size:clamp(17px,1.45vw,22px); line-height:.88; font-weight:900; font-style:italic; letter-spacing:-1.5px; transform:scaleX(1.05); transform-origin:right center; text-shadow:0 1px 2px #0002; }
    .avd-platinum-card__brand span { margin-top:4px; font-size:clamp(7px,.8vw,10px); font-weight:300; letter-spacing:-.1px; color:#fffffff5; }
    .avd-platinum-card__number { position:absolute; left:6%; bottom:7%; display:flex; align-items:center; gap:6px; font:300 clamp(9px,1vw,13px)/1 Arial,Helvetica,sans-serif; letter-spacing:.3px; text-shadow:0 1px 2px #0004; }
    .avd-platinum-card__dots { display:flex; align-items:center; gap:3px; }
    .avd-platinum-card__dots i { display:block; width:3px; height:3px; border-radius:50%; background:#fff; }
    .avd-promo-copy { max-width: calc(100% - min(40%,170px) - 10px); }
    .avd-promo h2 { font-size:15px; line-height:18px; max-width:100%; }
    .avd-promo p { font-size:10px; line-height:14px; }
    .avd-promo ul { margin:9px 0 13px; }
    .avd-promo li { font-size:10px; line-height:13px; white-space:nowrap; }
    .avd-promo-copy button { height:28px; padding:6px 10px; gap:9px; white-space:nowrap; }
    .avd-promo-next { right:5px; bottom:4px; }
}

/* Dashboard refinement: clearer financial hierarchy with the existing two-column layout. */
@media (min-width: 1101px) {
    html[data-theme] .av-app {
        --avd-text: #10244a;
        --avd-muted: #5f7190;
        --avd-soft: #f0f5fc;
        --avd-line: #dfe8f3;
        --avd-empty-ring: #dce7f5;
    }
    html[data-theme] .av-app .wp-app-content { background: #f0f6fd; }
    html[data-theme] .av-app.wp-dashboard-page .wp-main { padding: 20px 20px 26px; }
    .avd-dashboard { font-size: 12px; line-height: 1.45; }
    .avd-intro { height: 66px; gap: 20px; padding: 0 2px; }
    .avd-intro > div:first-child { transform: none; }
    .avd-intro h1 { font-size: 27px; line-height: 32px; letter-spacing: -.8px; }
    .avd-intro p { font-size: 12px; line-height: 18px; }
    .avd-filters { gap: 7px; padding-top: 4px; }
    .avd-filters > a { height: 36px; font-size: 11px; }
    .avd-dates > summary { height: 36px; font-size: 11px; }
    .avd-columns { gap: 16px; }
    .avd-primary, .avd-secondary { gap: 12px; }
    .avd-secondary { margin-top: 0; }
    .avd-panel { padding: 12px 14px; border: 1px solid var(--avd-line); border-radius: 12px; box-shadow: none; }
    .avd-section-heading { height: 23px; }
    .avd-section-heading h2, .avd-progress .avd-section-heading h2, .avd-notices .avd-section-heading h2 { font-size: 15px; line-height: 20px; letter-spacing: -.25px; }
    .avd-section-heading > a, .avd-report { font-size: 11px; font-weight: 600; color: #075fcf; }

    .avd-balance { height: 168px; border-radius: 12px; box-shadow: none; }
    .avd-balance-content { padding: 16px 20px; }
    .avd-balance-label { font-size: 14px; }
    .avd-balance-money { font-size: 42px; line-height: 52px; }
    .avd-balance-content > p { font-size: 13px; margin-top: -2px; }
    .avd-balance-art { width: 245px; }

    .avd-metrics { height: 84px; gap: 9px; margin-top: 0; }
    .avd-metric { gap: 10px; padding: 10px; border: 1px solid var(--avd-line); border-radius: 12px; }
    .avd-tile { width: 42px; height: 42px; }
    .avd-tile .wp-icon { width: 23px; height: 23px; }
    .avd-metric > div { padding-top: 2px; }
    .avd-metric strong { font-size: clamp(12px, .86vw, 16px); line-height: 19px; }
    .avd-metric p { font-size: clamp(9px, .61vw, 11px); line-height: 15px; }
    .avd-change { font-size: 10px; line-height: 13px; }

    .avd-charts { height: 220px; gap: 12px; margin-top: 0; }
    .avd-charts > .avd-panel { padding: 12px 14px; }
    .avd-flow select { height: 27px; font-size: 11px; }
    .avd-chart-key { height: 32px; font-size: 11px; }
    .avd-bar-chart { height: 137px; margin-top: 2px; }
    .avd-axis { height: 116px; font-size: 10px; }
    .avd-plot { height: 116px; background: repeating-linear-gradient(to top, #e5edf8 0 1px, transparent 1px 29px); }
    .avd-bars { height: 116px; }
    .avd-bar-group > span { font-size: 10px; margin-top: 8px; }
    .avd-summary-body { height: 153px; gap: 16px; }
    .avd-donut { width: 122px; height: 122px; }
    .avd-legend { gap: 12px; font-size: 11px; }
    .avd-legend b { font-size: 11px; }
    .avd-report { margin-top: 4px; }

    .avd-recent { height: auto; min-height: 220px; margin-top: 0; padding: 12px 14px; }
    .avd-recent .avd-section-heading { margin-bottom: 7px; }
    .avd-recent th { padding: 8px; font-size: 10px; line-height: 14px; font-weight: 500; }
    .avd-recent td { height: 40px; font-size: 11px; }
    .avd-transaction strong { font-size: 11px; }
    .avd-transaction small { font-size: 10px; line-height: 13px; }
    .avd-empty { min-height: 135px; font-size: 11px; }
    .avd-empty strong { font-size: 12px; }

    .avd-quick { height: 203px; padding: 11px; }
    .avd-quick .avd-section-heading { margin-bottom: 8px; }
    .avd-quick-grid { gap: 6px; }
    .avd-quick-grid > a, .avd-quick-grid > button { height: 68px; padding: 6px 2px; border: 1px solid transparent; border-radius: 8px; background: var(--avd-soft); }
    .avd-quick-grid .wp-icon { width: 20px; height: 20px; margin-bottom: 4px; }
    .avd-quick-grid strong { font-size: 11px; font-weight: 600; line-height: 13px; }
    .avd-quick-grid small { font-size: 10px; line-height: 11px; }
    .avd-quick-grid > a:hover, .avd-quick-grid > button:hover { background: #e7f1ff; border-color: #bad7ff; }
    .avd-promo-compact { margin-top: 0; border-radius: 12px; }
    .avd-progress { height: 108px; margin-top: 0; padding: 10px 12px; }
    .avd-progress-body { margin-top: 6px; }
    .avd-progress-info { padding: 6px 9px; }
    .avd-progress-info small { font-size: 10px; line-height: 13px; }
    .avd-progress-info strong { font-size: 12px; line-height: 16px; }
    .avd-notices { height: auto; min-height: 169px; margin-top: 0; padding: 10px 12px; }
    .avd-notices > .avd-section-heading { margin-bottom: 6px; }
    .avd-notice { min-height: 39px; gap: 12px; }
    .avd-notice strong { font-size: 11px; font-weight: 500; }
    .avd-notice small { font-size: 10px; }
    .avd-notices .avd-empty { min-height: 112px; font-size: 11px; }

    .avd-navigation > a { height: 35px; font-size: 12px; }
    .avd-navigation > h2 { font-size: 9px; }
    .av-app .wp-search input { font-size: 11px; }
    html[data-theme=dark] .av-app {
        --avd-text: #e8f0ff;
        --avd-muted: #a8bbd8;
        --avd-soft: #1b3150;
        --avd-line: #28405f;
        --avd-empty-ring: #2b4262;
    }
    html[data-theme=dark] .av-app .wp-app-content { background: #0d1b30; }
    html[data-theme=dark] .avd-section-heading > a, html[data-theme=dark] .avd-report { color: #82baff; }
    html[data-theme=dark] .avd-quick-grid > a, html[data-theme=dark] .avd-quick-grid > button { background: #1b3150; border-color: #28405f; }
    html[data-theme=dark] .avd-quick-grid > a:hover, html[data-theme=dark] .avd-quick-grid > button:hover { background: #24446d; border-color: #4f82bd; }
    html[data-theme=dark] .avd-plot { background: repeating-linear-gradient(to top, #29405e 0 1px, transparent 1px 29px); border-color: #29405e; }
    html[data-theme=dark] .avd-bars { border-color: #243957; }
}
@media (min-width: 1101px) and (max-width: 1350px) {
    html[data-theme] .av-app.wp-dashboard-page .wp-main { padding: 16px 14px 22px; }
    .avd-metric { gap: 6px; padding: 8px 6px; }
    .avd-tile { width: 34px; height: 38px; }
    .avd-metric strong { font-size: 12px; }
    .avd-metric p { font-size: 9px; }
    .avd-quick-grid { gap: 4px; }
    .avd-quick-grid strong { font-size: 10px; }
    .avd-quick-grid small { font-size: 9px; }
    .avd-summary-body { gap: 7px; padding-left: 0; }
    .avd-donut { width: 98px; height: 98px; }
    .avd-legend { gap: 8px; font-size: 9px; }
    .avd-legend b { font-size: 9px; }
}

/* Keep the dashboard scrollable if a tablet-width sidebar state survives a resize. */
@media (min-width: 768px) and (max-width: 1100px) {
    body.wp-dashboard-page.wp-sidebar-open { overflow-y: auto !important; }
}
