/* Mock /account2 page — design iteration only.
   Restrained. Single accent. 8px grid. No fancy shadows. */

:root {
    --a2-bg:         #0a0a0a;
    --a2-surface:    #131316;
    --a2-surface-2:  #181820;
    --a2-border:     rgba(255, 255, 255, 0.07);
    --a2-border-2:   rgba(255, 255, 255, 0.12);
    --a2-text:       #ededf0;
    --a2-text-mute:  #8b8b95;
    --a2-text-dim:   #5f5f68;
    --a2-accent:     #6366f1;
    --a2-accent-2:   rgba(99, 102, 241, 0.12);
    --a2-accent-3:   rgba(99, 102, 241, 0.32);
    --a2-success:    #4ade80;
    --a2-danger:     #f87171;
    --a2-radius:     10px;
    --a2-radius-sm:  6px;
}

/* ==== Layout ==== */
.a2-page {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 32px 96px;
    color: var(--a2-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.005em;
}

.a2-page * {
    box-sizing: border-box;
}

/* ==== Sidebar ==== */
.a2-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 8px;
    border-right: 1px solid var(--a2-border);
    min-height: 480px;
}

.a2-sidebar-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px 16px;
    border-bottom: 1px solid var(--a2-border);
}

.a2-sidebar-id {
    min-width: 0;
}

.a2-sidebar-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--a2-text);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.a2-sidebar-tier {
    font-size: 12px;
    color: var(--a2-text-mute);
    margin-top: 2px;
}

.a2-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a2-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--a2-radius-sm);
    color: var(--a2-text-mute);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.a2-nav-item:hover {
    color: var(--a2-text);
    background: var(--a2-surface);
}

.a2-nav-item.active {
    color: var(--a2-text);
    background: var(--a2-surface);
}

.a2-nav-item.active::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--a2-accent);
    border-radius: 2px;
}

.a2-nav-icon {
    font-size: 18px;
    color: inherit;
    opacity: 0.85;
}

.a2-sidebar-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--a2-border);
}

.a2-signout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--a2-text-mute);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--a2-radius-sm);
    font-family: inherit;
}

.a2-signout:hover {
    color: var(--a2-text);
    background: var(--a2-surface);
}

.a2-signout .material-icons-outlined {
    font-size: 18px;
}

/* ==== Content area ==== */
.a2-content {
    min-width: 0;
}

.a2-content-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 720px;
}

/* ==== Section header ==== */
.a2-section-header {
    margin-bottom: 8px;
}

.a2-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--a2-text-dim);
    margin-bottom: 8px;
}

.a2-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--a2-text);
    line-height: 1.1;
    margin: 0;
}

.a2-subtitle {
    font-size: 15px;
    color: var(--a2-text-mute);
    line-height: 1.5;
    margin: 8px 0 0;
    max-width: 560px;
}

/* ==== Card ==== */
.a2-card {
    background: var(--a2-surface);
    border: 1px solid var(--a2-border);
    border-radius: var(--a2-radius);
    overflow: hidden;
}

.a2-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--a2-border);
}

.a2-card-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--a2-text);
    margin: 0;
    letter-spacing: -0.005em;
}

.a2-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--a2-border);
    background: rgba(255,255,255,0.015);
}

.a2-prefs-status {
    margin-right: auto;
    font-size: 12px;
    color: var(--a2-text-dim);
    min-height: 16px;
}
.a2-prefs-status[data-kind="pending"] { color: var(--a2-text-mute); }
.a2-prefs-status[data-kind="ok"]      { color: var(--a2-success); }
.a2-prefs-status[data-kind="error"]   { color: var(--a2-danger); }

.a2-card-danger {
    border-color: rgba(248, 113, 113, 0.22);
}

.a2-card-danger .a2-card-header h2 {
    color: var(--a2-danger);
}

/* ==== Profile hero ==== */
.a2-profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    padding: 24px;
}

.a2-profile-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.a2-profile-hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.a2-avatar {
    border-radius: 50%;
    object-fit: cover;
    background: var(--a2-surface-2);
    border: 1px solid var(--a2-border-2);
}

.a2-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--a2-text);
    background: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(99,102,241,0.04));
}

.a2-link-btn {
    background: transparent;
    border: 0;
    padding: 6px 10px;
    color: var(--a2-text-mute);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--a2-radius-sm);
    font-family: inherit;
}

.a2-link-btn:hover {
    color: var(--a2-text);
    background: var(--a2-surface-2);
}

.a2-link-btn .material-icons-outlined {
    font-size: 16px;
}

/* ==== Fields ==== */
.a2-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.a2-field-label {
    font-size: 12px;
    color: var(--a2-text-dim);
    font-weight: 500;
}

.a2-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 24px;
}

.a2-field-value {
    font-size: 15px;
    color: var(--a2-text);
    font-weight: 500;
}

.a2-mono {
    font-family: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
    font-size: 14px;
}

.a2-mono-small {
    font-family: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
    font-size: 11px;
    color: var(--a2-text-dim);
}

.a2-text-btn {
    background: transparent;
    border: 0;
    color: var(--a2-accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    text-decoration: none;
    font-family: inherit;
}

.a2-text-btn:hover {
    color: #818cf8;
    background: var(--a2-accent-2);
}

/* ==== Pills ==== */
.a2-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    line-height: 1.5;
}

.a2-pill-muted {
    color: var(--a2-text-mute);
    background: var(--a2-surface-2);
    border: 1px solid var(--a2-border);
}

.a2-pill-success {
    color: var(--a2-success);
    background: rgba(74, 222, 128, 0.10);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

/* ==== Stat grid ==== */
.a2-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 720px) {
    .a2-stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.a2-stat {
    background: var(--a2-surface);
    border: 1px solid var(--a2-border);
    border-radius: var(--a2-radius);
    padding: 16px;
}

.a2-stat-label {
    font-size: 12px;
    color: var(--a2-text-mute);
    font-weight: 500;
    margin-bottom: 8px;
}

.a2-stat-value {
    font-size: 22px;
    font-weight: 600;
    color: var(--a2-text);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-feature-settings: "tnum";
}

.a2-stat-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--a2-text-dim);
}

/* ==== Plan card ==== */
.a2-plan-card {
    padding: 0;
}

.a2-plan-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
}

.a2-plan-name {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 6px;
}

.a2-plan-meta {
    font-size: 13px;
    color: var(--a2-text-mute);
    margin-top: 6px;
}

.a2-plan-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.a2-plan-divider {
    height: 1px;
    background: var(--a2-border);
}

.a2-balance-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

.a2-balance {
    display: flex;
    flex-direction: column;
}

.a2-balance-label {
    font-size: 12px;
    color: var(--a2-text-mute);
}

.a2-balance-value {
    font-size: 26px;
    font-weight: 600;
    color: var(--a2-text);
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
    line-height: 1.2;
}

.a2-balance-currency {
    color: var(--a2-text-mute);
    font-size: 16px;
    font-weight: 500;
    margin-right: 1px;
    vertical-align: 4px;
}

.a2-balance-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* ==== Transactions ==== */
.a2-tx-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.a2-tx-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--a2-border);
}

.a2-tx-item:last-child {
    border-bottom: 0;
}

.a2-tx-icon {
    font-size: 20px;
    color: var(--a2-text-mute);
    display: flex;
    justify-content: center;
}

.a2-tx-icon.credit { color: var(--a2-success); }
.a2-tx-icon.debit  { color: var(--a2-text-mute); }

.a2-tx-body {
    min-width: 0;
}

.a2-tx-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--a2-text);
    line-height: 1.3;
}

.a2-tx-date {
    font-size: 12px;
    color: var(--a2-text-dim);
    margin-top: 2px;
}

.a2-tx-amount {
    font-size: 14px;
    font-weight: 600;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.a2-tx-amount.credit { color: var(--a2-success); }
.a2-tx-amount.debit  { color: var(--a2-text); }

/* ==== Generic row ==== */
.a2-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--a2-border);
}

.a2-row:last-child {
    border-bottom: 0;
}

.a2-row-text {
    flex: 1;
    min-width: 0;
}

.a2-row-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--a2-text);
    line-height: 1.3;
}

.a2-row-desc {
    font-size: 13px;
    color: var(--a2-text-mute);
    margin-top: 4px;
    line-height: 1.4;
}

/* ==== Buttons ==== */
.a2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--a2-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    color: var(--a2-text);
    font-family: inherit;
    letter-spacing: -0.005em;
    white-space: nowrap;
}

.a2-btn-primary {
    background: var(--a2-accent);
    color: #0a0a0a;
    border-color: var(--a2-accent);
}
.a2-btn-primary:hover { background: #4f46e5; border-color: #818cf8; }

.a2-btn-secondary {
    background: var(--a2-surface-2);
    border-color: var(--a2-border-2);
    color: var(--a2-text);
}
.a2-btn-secondary:hover { background: #20202a; border-color: rgba(255,255,255,0.20); }

.a2-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--a2-text-mute);
}
.a2-btn-ghost:hover { color: var(--a2-text); background: var(--a2-surface-2); }

.a2-btn-danger {
    background: transparent;
    border-color: rgba(248, 113, 113, 0.32);
    color: var(--a2-danger);
}
.a2-btn-danger:hover { background: rgba(248,113,113,0.10); border-color: rgba(248,113,113,0.5); }

/* ==== Switch ==== */
.a2-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.a2-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.a2-switch-track {
    position: absolute;
    inset: 0;
    background: var(--a2-surface-2);
    border: 1px solid var(--a2-border-2);
    border-radius: 999px;
    cursor: pointer;
}

.a2-switch-track::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: var(--a2-text-mute);
    border-radius: 50%;
}

.a2-switch input:checked + .a2-switch-track {
    background: var(--a2-accent);
    border-color: var(--a2-accent);
}

.a2-switch input:checked + .a2-switch-track::before {
    left: 18px;
    background: #0a0a0a;
}

.a2-switch.disabled .a2-switch-track {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==== Standing ==== */
.a2-standing-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.a2-standing-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--a2-success);
    flex-shrink: 0;
}

.a2-standing-badge .material-icons-outlined {
    font-size: 24px;
}

.a2-standing-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--a2-text);
}

.a2-standing-desc {
    font-size: 13px;
    color: var(--a2-text-mute);
    margin-top: 2px;
}

/* ==== Content preferences control ==== */
.cp-control {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cp-intro {
    font-size: 14px;
    color: var(--a2-text-mute);
    line-height: 1.55;
    margin: 0;
    max-width: 560px;
}

.cp-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.cp-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--a2-text);
    margin: 0;
    letter-spacing: -0.005em;
}

.cp-section-hint {
    font-size: 12px;
    color: var(--a2-text-dim);
}

.cp-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cp-tile-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 640px) {
    .cp-tile-grid,
    .cp-tile-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cp-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--a2-surface-2);
    border: 1px solid var(--a2-border);
    border-radius: var(--a2-radius-sm);
    cursor: pointer;
    text-align: left;
    color: var(--a2-text);
    font-family: inherit;
    min-height: 88px;
}

.cp-tile:hover {
    border-color: var(--a2-border-2);
}

.cp-tile-icon {
    font-size: 22px;
    color: var(--a2-text-mute);
}

.cp-tile-label {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

/* Text-only intensity tiles: label + description, no icon */
.cp-tile-text {
    min-height: auto;
    padding: 12px 14px;
    gap: 4px;
}
.cp-tile-text .cp-tile-label {
    font-size: 14px;
    font-weight: 600;
}
.cp-tile-text .cp-tile-desc {
    font-size: 12px;
    color: var(--a2-text-mute);
    line-height: 1.4;
}
.cp-tile-text.selected .cp-tile-label {
    color: var(--a2-accent);
}

.cp-tile .cp-tile-check {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
    background: var(--a2-accent);
    color: #0a0a0a;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cp-tile.selected {
    border-color: var(--a2-accent-3);
    background: linear-gradient(180deg, var(--a2-accent-2), var(--a2-surface-2));
}

.cp-tile.selected .cp-tile-icon {
    color: var(--a2-accent);
}

.cp-tile.selected .cp-tile-check {
    display: flex;
}

.cp-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cp-chip {
    padding: 6px 12px;
    background: var(--a2-surface-2);
    border: 1px solid var(--a2-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--a2-text-mute);
    cursor: pointer;
    font-family: inherit;
}

.cp-chip:hover {
    color: var(--a2-text);
    border-color: var(--a2-border-2);
}

.cp-chip.selected {
    color: var(--a2-accent);
    background: var(--a2-accent-2);
    border-color: var(--a2-accent-3);
}

.cp-radio-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

@media (max-width: 640px) {
    .cp-radio-row {
        grid-template-columns: 1fr;
    }
}

.cp-radio {
    display: block;
    padding: 12px 14px;
    background: var(--a2-surface-2);
    border: 1px solid var(--a2-border);
    border-radius: var(--a2-radius-sm);
    cursor: pointer;
}

.cp-radio:hover {
    border-color: var(--a2-border-2);
}

.cp-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cp-radio.selected {
    border-color: var(--a2-accent-3);
    background: linear-gradient(180deg, var(--a2-accent-2), var(--a2-surface-2));
}

.cp-radio-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cp-radio-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--a2-text);
}

.cp-radio.selected .cp-radio-label {
    color: var(--a2-accent);
}

.cp-radio-desc {
    font-size: 12px;
    color: var(--a2-text-mute);
    line-height: 1.4;
}

/* ==== Content prefs modal ==== */
.cp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.66);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cp-modal {
    background: var(--a2-bg);
    border: 1px solid var(--a2-border-2);
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--a2-border);
}

.cp-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--a2-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.cp-modal-subtitle {
    font-size: 13px;
    color: var(--a2-text-mute);
    margin: 6px 0 0;
    line-height: 1.4;
}

.cp-modal-close {
    background: transparent;
    border: 0;
    color: var(--a2-text-mute);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-modal-close:hover {
    color: var(--a2-text);
    background: var(--a2-surface);
}

.cp-modal-body {
    overflow-y: auto;
    flex: 1;
}

.cp-modal-body .cp-control {
    padding: 20px 24px;
    gap: 24px;
}

.cp-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-top: 1px solid var(--a2-border);
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--a2-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    color: var(--a2-text);
    font-family: inherit;
}

.cp-btn-primary {
    background: var(--a2-accent);
    color: #0a0a0a;
}
.cp-btn-primary:hover { background: #4f46e5; }

.cp-btn-ghost {
    color: var(--a2-text-mute);
}
.cp-btn-ghost:hover { color: var(--a2-text); background: var(--a2-surface); }

/* ==== GPU usage card ==== */
.a2-card-body-pad {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.a2-gpu-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.a2-gpu-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.a2-gpu-row-label {
    font-size: 13px;
    color: var(--a2-text);
    font-weight: 500;
}

.a2-gpu-row-meta {
    font-size: 13px;
    color: var(--a2-text-mute);
    font-variant-numeric: tabular-nums;
}

.a2-gpu-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.a2-gpu-bar > div {
    height: 100%;
    border-radius: 4px;
    min-width: 2px;
}

.a2-gpu-row-window {
    font-size: 11px;
    color: var(--a2-text-dim);
}

.a2-gpu-breakdown {
    border-top: 1px solid var(--a2-border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.a2-gpu-breakdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--a2-text-dim);
    font-weight: 600;
}

.a2-gpu-breakdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.a2-gpu-breakdown-list li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.a2-gpu-breakdown-name {
    color: var(--a2-text-mute);
}

.a2-gpu-breakdown-value {
    color: var(--a2-text);
    font-variant-numeric: tabular-nums;
}

/* ==== Back button (mobile drill-down) ==== */
.a2-back-btn {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 8px 10px 8px 4px;
    margin-bottom: 4px;
    background: transparent;
    border: 0;
    color: var(--a2-accent);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
}

.a2-back-btn:hover {
    background: var(--a2-accent-2);
}

.a2-back-btn .material-icons-outlined {
    font-size: 22px;
}

/* ==== Responsive ==== */
@media (max-width: 900px) {
    .a2-page {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 20px 14px 120px;
    }

    .a2-sidebar,
    .a2-content {
        min-width: 0;
    }

    /* Drill-down: menu view hides content, section view hides sidebar */
    .a2-page[data-view="menu"] .a2-content {
        display: none;
    }
    .a2-page[data-view="section"] .a2-sidebar {
        display: none;
    }
    .a2-page[data-view="section"] .a2-back-btn {
        display: inline-flex;
    }
    .a2-page[data-view="section"] .a2-content {
        display: flex;
        flex-direction: column;
    }

    /* Sidebar becomes a compact top strip + vertical tappable list */
    .a2-sidebar {
        position: static;
        border-right: 0;
        padding-right: 0;
        padding-bottom: 0;
        min-height: auto;
        gap: 16px;
    }

    .a2-sidebar-identity {
        padding: 0 4px 14px;
    }

    .a2-nav {
        flex-direction: column;
        gap: 2px;
        overflow: visible;
        width: 100%;
    }

    .a2-nav-item {
        padding: 12px 12px;
        border-radius: 8px;
        background: var(--a2-surface);
        border: 1px solid var(--a2-border);
        font-size: 15px;
    }

    .a2-nav-item .a2-nav-icon {
        font-size: 20px;
    }

    .a2-nav-item::after {
        content: 'chevron_right';
        font-family: 'Material Icons Outlined';
        font-size: 20px;
        color: var(--a2-text-dim);
        margin-left: auto;
        font-feature-settings: 'liga';
    }

    .a2-nav-item.active {
        background: var(--a2-accent-2);
        border-color: var(--a2-accent-3);
        color: var(--a2-accent);
    }

    .a2-nav-item.active::before {
        display: none;
    }

    .a2-nav-item.active::after {
        color: var(--a2-accent);
    }

    .a2-sidebar-footer {
        display: none;
    }

    /* Content section */
    .a2-content-inner {
        gap: 16px;
    }

    .a2-title {
        font-size: 26px;
    }

    .a2-subtitle {
        font-size: 14px;
    }

    /* Profile hero stacks */
    .a2-profile-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .a2-profile-hero-left {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .a2-profile-hero-left .a2-avatar {
        width: 64px !important;
        height: 64px !important;
        font-size: 27px !important;
    }

    /* Plan card stacks */
    .a2-plan-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 18px 0;
    }

    .a2-plan-name {
        font-size: 22px;
    }

    .a2-plan-actions {
        width: 100%;
    }

    .a2-plan-actions .a2-btn {
        flex: 1;
    }

    .a2-balance-row {
        padding: 18px;
        gap: 24px;
    }

    .a2-balance-value {
        font-size: 22px;
    }

    .a2-balance-actions {
        margin-left: 0;
        width: 100%;
        flex-direction: column;
    }

    .a2-balance-actions .a2-btn {
        width: 100%;
    }

    /* Stat tiles stay 2-col on mobile */
    .a2-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Transactions tighter */
    .a2-tx-item,
    .a2-row {
        padding: 14px 16px;
    }

    .a2-card-header {
        padding: 14px 16px;
    }

    .a2-card-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Standing card */
    .a2-standing-card {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .a2-page {
        padding: 16px 12px 120px;
    }

    .a2-title {
        font-size: 24px;
    }

    .cp-tile {
        min-height: 76px;
        padding: 12px;
    }

    .cp-tile-icon {
        font-size: 20px;
    }

    .cp-tile-label {
        font-size: 12px;
    }
}
