:root {
    --header-bg: #0d0f12;
    --header-pill: #171a21;
    --header-pill-border: #2a2f3a;
    --brand-yellow: #facc15;
    --brand-yellow-hover: #eab308;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --text: #111827;
    --text-secondary: #4b5563;
    --muted: #6b7280;
    --positive: #15803d;
    --negative: #111827;
    --amber-bg: #fef9c3;
    --amber-text: #854d0e;
    --rose-bg: #fef2f2;
    --rose-border: #fecaca;
    --warn-bg: #fffbeb;
    --warn-border: #fde68a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

code {
    background: #f3f4f6;
    color: #111827;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.88em;
    border: 1px solid var(--border);
}

.hidden {
    display: none !important;
}

.icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Dark Header + Floating Pill Nav (inspired by AM Auto showcase) */
.topbar {
    background: var(--header-bg);
    color: #ffffff;
    border-bottom: 2px solid var(--brand-yellow);
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.brand-logo {
    width: 48px;
    height: 39px;
    border-radius: 6px;
    object-fit: contain;
    background: #000000;
    padding: 2px;
    border: 1px solid #27272a;
    flex-shrink: 0;
}

.brand-text h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.subtitle {
    margin: 0;
    font-size: 0.73rem;
    color: #9ca3af;
}

.pill-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--header-pill);
    border: 1px solid var(--header-pill-border);
    border-radius: 9999px;
    padding: 0.28rem 0.45rem;
}

.tab-btn {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #d1d5db;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.36rem 0.72rem;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--brand-yellow);
    background: rgba(250, 204, 21, 0.08);
    border-bottom-color: var(--brand-yellow);
    border-radius: 10px;
}

.tab-count {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.05rem 0.42rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.tab-btn.active .tab-count {
    background: var(--brand-yellow);
    color: #111317;
}

.topbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--header-pill);
    border: 1px solid var(--header-pill-border);
    border-radius: 9999px;
    padding: 0.24rem 0.85rem 0.24rem 0.3rem;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #c2185b;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.user-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-email {
    font-size: 0.7rem;
    color: #9ca3af;
    max-width: 165px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-signout {
    appearance: none;
    background: transparent;
    border: none;
    color: #d1d5db;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.btn-signout:hover {
    color: #ffffff;
}

/* White Editorial Hero Band + Signature Yellow Underline */
.hero-band {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.35rem 0 0;
}

.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.15rem;
    padding-bottom: 1.1rem;
}

.eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.hero-title {
    margin: 0 0 0.5rem;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text);
}

.hero-title strong {
    font-weight: 800;
}

.sync-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.24rem 0.7rem;
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 500;
}

.status-chip-muted {
    color: var(--muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-yellow);
    flex-shrink: 0;
}

.status-dot.syncing {
    background: #111827;
    animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.hero-sync-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.hero-sync-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sync-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
}

.date-filter-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.date-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}

.sync-panel-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.field-compact {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.brand-rule {
    height: 3px;
    background: var(--brand-yellow);
    border-radius: 3px 3px 0 0;
}

/* Main Workspace */
.workspace {
    padding-top: 1.15rem;
    padding-bottom: 2.5rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

/* Login Card */
.login-wrap {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.login-card {
    max-width: 470px;
    margin: 0 auto;
    padding: 1.65rem;
    border-top: 3px solid var(--brand-yellow);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.login-brand h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.login-logo {
    width: 60px;
    height: 49px;
    border-radius: 7px;
    object-fit: contain;
    background: #000000;
    padding: 3px;
    border: 1px solid var(--border);
}

.muted {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0;
}

.center {
    text-align: center;
}

/* Buttons */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid transparent;
    border-radius: 9999px;
    padding: 0.44rem 0.92rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-pill:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-yellow {
    background: var(--brand-yellow);
    color: #111317;
}

.btn-yellow:hover:not(:disabled) {
    background: var(--brand-yellow-hover);
}

.btn-white {
    background: #ffffff;
    color: #111317;
}

.btn-white:hover:not(:disabled) {
    background: #f3f4f6;
}

.btn-dark {
    background: #111317;
    color: #ffffff;
}

.btn-dark:hover:not(:disabled) {
    background: #1f2937;
}

.btn-dark-outline {
    background: var(--header-pill);
    color: #f3f4f6;
    border-color: var(--header-pill-border);
}

.btn-dark-outline:hover:not(:disabled) {
    background: #232833;
}

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
    background: var(--surface-muted);
}

.btn-google {
    background: #111317;
    color: #ffffff;
    padding: 0.68rem 1.2rem;
    font-size: 0.9rem;
}

.btn-google:hover {
    background: #1f2937;
}

/* Inputs */
input,
select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.44rem 0.7rem;
    font-size: 0.84rem;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: 2px solid rgba(250, 204, 21, 0.55);
    border-color: #111317;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Summary KPIs */
.grid-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 0.8rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem 1.05rem;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.stat-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-box-dark {
    background: #1f242d;
    border-color: #2f3644;
    color: var(--brand-yellow);
}

.stat-value-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.stat-sub {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.stat-card-total .stat-sub {
    color: #9ca3af;
}

.stat-card-total {
    background: #0d0f12;
    border-color: #0d0f12;
    color: #ffffff;
}

.stat-card-total .stat-label {
    color: #9ca3af;
}

.positive {
    color: var(--positive);
}

.negative {
    color: var(--negative);
}

.stat-card-total .positive {
    color: #4ade80;
}

.stat-card-total .negative {
    color: #f8fafc;
}

/* Connected Accounts */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.section-title-row h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.section-icon {
    width: 18px;
    height: 18px;
    color: var(--text);
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.account-tile {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.account-tile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.account-tile h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.account-meta {
    font-size: 0.78rem;
    color: var(--muted);
}

.account-balance {
    margin-top: 0.2rem;
    font-size: 1.18rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Table & Filter Toolbar */
.table-card {
    padding: 0;
    position: relative;
    overflow: visible;
}

.table-toolbar {
    padding: 0.85rem 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.filter-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.search-box {
    position: relative;
    flex: 0 1 300px;
    min-width: 220px;
}

.search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.input-search {
    width: 100%;
    padding-left: 2.1rem;
}

.preset-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.preset-pill {
    appearance: none;
    background: #ffffff;
    color: var(--text);
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.38rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.preset-pill:hover {
    background: var(--surface-muted);
    border-color: #9ca3af;
}

.preset-pill.active {
    background: #111317;
    color: var(--brand-yellow);
    border-color: #111317;
}

.date-range-drawer {
    padding: 0.7rem 1.05rem;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.pill-group {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.filter-pill {
    appearance: none;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
    border-radius: 9999px;
    padding: 0.36rem 0.78rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-pill:hover {
    background: var(--surface-muted);
}

.filter-pill.active {
    background: #111317;
    color: var(--brand-yellow);
    border-color: #111317;
}

.window-chip {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 0 0 12px 12px;
}

.icon-xs {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.th-with-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.th-sort-btn {
    appearance: none;
    background: transparent;
    border: none;
    padding: 0.15rem 0.25rem;
    margin: -0.15rem -0.25rem;
    border-radius: 5px;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.12s ease, background-color 0.12s ease;
}

.th-sort-btn:hover {
    color: var(--text);
    background: rgba(17, 24, 39, 0.05);
}

.th-sort-btn.active {
    color: var(--text);
}

.th-sort-right {
    margin-left: auto;
}

.sort-icon {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
}

.th-sort-btn.active .sort-icon {
    color: #111317;
}

.th-filter-btn {
    appearance: none;
    background: #ffffff;
    color: var(--muted);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.th-filter-btn:hover {
    color: var(--text);
    border-color: #9ca3af;
}

.th-filter-btn.active {
    background: #111317;
    color: var(--brand-yellow);
    border-color: #111317;
}

.col-filter-menu {
    position: absolute;
    z-index: 60;
    width: 290px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
    padding: 0.75rem;
}

.col-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.55rem;
}

.col-filter-close {
    appearance: none;
    background: transparent;
    border: none;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0 0.2rem;
}

.col-filter-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.col-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

th,
td {
    padding: 0.72rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    vertical-align: middle;
}

th {
    background: var(--surface-muted);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: #f9fafb;
}

.cell-primary {
    font-weight: 700;
    color: var(--text);
}

.cell-sub {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.cell-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/* Badges (neutral slate & subtle AM Auto amber; no loud green fills) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 6px;
    padding: 0.16rem 0.52rem;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.3;
}

.badge-amber {
    background: var(--amber-bg);
    color: var(--amber-text);
}

.badge-slate {
    background: #f1f5f9;
    color: var(--text-secondary);
}

.badge-dark-soft {
    background: #111317;
    color: #ffffff;
}

.badge-icon {
    width: 12px;
    height: 12px;
}

/* Alerts */
.alert {
    padding: 0.72rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
}

.alert-warn {
    background: var(--warn-bg);
    border-color: var(--warn-border);
    color: #92400e;
}

.alert-error {
    background: var(--rose-bg);
    border-color: var(--rose-border);
    color: #991b1b;
}

.alert-ok {
    background: var(--surface);
    border-color: var(--border-strong);
    border-left: 4px solid var(--brand-yellow);
    color: var(--text);
}

/* Modal & Invited Users Access Control */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 1000;
}

.modal-dialog {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 940px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.modal-header {
    padding: 1rem 1.35rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.modal-close {
    appearance: none;
    background: transparent;
    border: none;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.1rem 1.35rem;
    overflow-y: auto;
}

.modal-info-box {
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.invite-form {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto auto;
    gap: 0.55rem;
    align-items: center;
}

@media (max-width: 720px) {
    .invite-form {
        grid-template-columns: 1fr;
    }
}

.users-table-wrap {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow-x: auto;
}

.users-table th {
    background: var(--surface-muted);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.78rem;
}

.badge-outline {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.badge-outline-amber {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.badge-outline-slate {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.badge-outline-mint {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.badge-outline-rose {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.user-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.btn-row {
    appearance: none;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 9999px;
    padding: 0.25rem 0.78rem;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-row:hover:not(:disabled) {
    background: var(--surface-muted);
}

.btn-row-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.btn-row-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.modal-footer {
    padding: 0.85rem 1.35rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}
