:root {
    --font-family-base: "SF Pro Text", "SF Pro", "SF Pro Display", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    --font-family-monospace: "SF Mono", "Cascadia Code", "Consolas", monospace;
    --base-font-family: var(--font-family-base);
    --sidebar-width: 280px;
    --admin-cream: #faf9f5;
    --admin-panel: #e3dacc;
    --admin-line: rgba(31, 30, 29, 0.12);
    --admin-text: #1f1e1d;
    --admin-muted: #73726c;
    --admin-card: #30302e;
    --admin-accent: #d97757;
    --admin-accent-strong: #ac5c42;
    --sidebar-width-compact: 64px;
    --semantic-bgbase: #faf9f5;
    --scale-elevated-6: #1f1e1d;
    --surface-0: #ffffff;
    --surface-1: #faf9f5;
    --surface-2: #f5f4ed;
    --surface-3: #f0eee6;
    --surface-5: #d1cfc5;
    --text-base: #141413;
    --text-title: #1f1e1d;
    --text-muted: #73726c;
    --line: rgba(31, 30, 29, 0.1);
    --shadow-soft: none;
    --danger: #bf4d43;
    --network-trc20: #d97757;
    --network-erc20: #2f84d8;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--admin-cream);
    color: var(--admin-text);
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

button,
input,
select,
textarea,
label,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
small,
fluent-design-theme,
fluent-body-content,
fluent-card,
fluent-button,
fluent-search,
fluent-select,
fluent-option,
fluent-text-field,
fluent-data-grid,
fluent-dialog,
fluent-toast {
    font-family: inherit;
}

strong {
    font-weight: 600;
}

[hidden] {
    display: none !important;
}

.admin-login {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.admin-login-card {
    width: min(100%, 460px);
    padding: 40px;
    border: 1px solid var(--admin-line);
    border-radius: 20px;
    background: var(--surface-0);
}

.admin-login-eyebrow {
    margin: 0 0 24px;
    color: var(--admin-accent-strong);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.admin-login-logo {
    display: block;
    width: 120px;
    height: auto;
    margin-bottom: 24px;
}

.admin-login-card h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.3;
}

.admin-login-description,
.admin-login-footer {
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-login-description {
    margin: 0 0 28px;
}

.admin-login-fields {
    display: grid;
    gap: 10px;
}

.admin-login-fields label {
    font-size: 14px;
    font-weight: 600;
}

.admin-login-fields input {
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    color: var(--admin-text);
    background: var(--admin-cream);
    font-size: 16px;
}

.admin-login-fields input:focus-visible,
.admin-login-submit:focus-visible {
    outline: 2px solid var(--admin-accent);
    outline-offset: 3px;
}

.admin-login-submit {
    min-height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--admin-accent-strong);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.admin-login-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.admin-login-error {
    color: var(--danger);
    font-size: 14px;
}

.admin-login-footer {
    margin-top: 24px;
}

.admin-auth-loading {
    padding: 40px;
    text-align: center;
}

@media (max-width: 480px) {
    .admin-login-card {
        padding: 28px 24px;
    }
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--admin-cream);
}

.admin-layout.theme-dark {
    --semantic-bgbase: #262624;
    --scale-elevated-6: #f0eee6;
    --surface-0: #30302e;
    --surface-1: #262624;
    --surface-2: #30302e;
    --surface-3: #3d3d3a;
    --surface-5: #4d4c48;
    --text-base: #f0eee6;
    --text-title: #f0eee6;
    --text-muted: #9c9a92;
    --line: rgba(240, 238, 230, 0.12);
    --shadow-soft: none;
    background: #262624;
    color: #f0eee6;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    width: var(--sidebar-width);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 30px;
    box-sizing: border-box;
    background: #F0EEE6;
    overflow-y: auto;
}

.theme-dark .admin-sidebar {
    background: #3d3d3a;
    border-color: rgba(240, 238, 230, 0.12);
}

.admin-sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 28px;
}

.admin-brand-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: inherit;
    text-decoration: none;
}

.admin-brand-logo {
    width: 126px;
    height: 60px;
    object-fit: contain;
}

.admin-brand-logo-sm {
    display: none;
    width: 28px;
    height: 28px;
}

.admin-brand-title {
    display: none;
}

.admin-header-title,
.admin-page-header h1 {
    font-weight: 700;
}

.admin-brand-subtitle,
.admin-page-eyebrow,
.admin-card-eyebrow,
.admin-operator-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.admin-hero-card .admin-card-eyebrow {
    color: var(--admin-accent);
    margin-bottom: 1rem;
}

.theme-dark .admin-brand-subtitle,
.theme-dark .admin-page-eyebrow,
.theme-dark .admin-card-eyebrow,
.theme-dark .admin-operator-label,
.theme-dark .admin-footer,
.theme-dark .admin-side-copy,
.theme-dark .admin-hero-subtitle,
.theme-dark .admin-list-row span,
.theme-dark .admin-filter-bar,
.theme-dark .address,
.theme-dark code {
    color: #9c9a92;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-group + .admin-nav-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.admin-nav-group-label {
    padding: 0 16px 2px;
    color: var(--admin-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
}

.theme-dark .admin-nav-group-label {
    color: #9c9a92;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    background-color: currentColor;
    opacity: 0.85;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 20px 20px;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 20px 20px;
}

.admin-nav-icon-home {
    -webkit-mask-image: url('/images/home.svg');
    mask-image: url('/images/home.svg');
}

.admin-nav-icon-monitoring {
    -webkit-mask-image: url('/images/synchronize.svg');
    mask-image: url('/images/synchronize.svg');
}

.admin-nav-icon-users {
    -webkit-mask-image: url('/images/user.svg');
    mask-image: url('/images/user.svg');
}

.admin-nav-icon-kyc {
    -webkit-mask-image: url('/images/shield.svg');
    mask-image: url('/images/shield.svg');
}

.admin-nav-icon-withdrawals {
    -webkit-mask-image: url('/images/account.svg');
    mask-image: url('/images/account.svg');
}

.admin-nav-icon-api-keys {
    -webkit-mask-image: url('/images/coupon.svg');
    mask-image: url('/images/coupon.svg');
}

.admin-nav-icon-webhooks {
    -webkit-mask-image: url('/images/globe.svg');
    mask-image: url('/images/globe.svg');
}

.admin-nav-icon-audit-log {
    -webkit-mask-image: url('/images/history.svg');
    mask-image: url('/images/history.svg');
}

.admin-nav-item.active {
    background: var(--admin-panel);
    color: var(--admin-text);
}

.theme-dark .admin-nav-item.active {
    background: #af9f85;
    color: #f0eee6;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-operator-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-operator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-accent);
    color: var(--admin-text);
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-operator-value {
    flex: 1;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 600;
}

.admin-settings-button {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--admin-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.admin-action-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    flex: 0 0 20px;
}

.admin-action-icon path {
    vector-effect: non-scaling-stroke;
}

.theme-dark .admin-settings-button {
    color: #9c9a92;
}

.admin-settings-button:hover,
.admin-settings-button:focus-visible {
    color: var(--admin-accent-strong);
}

.theme-dark .admin-settings-button:hover,
.theme-dark .admin-settings-button:focus-visible {
    color: #efad88;
}

.admin-logout-button {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 6px;
    border: 1px solid #0f0f0e;
    background: var(--admin-cream);
    color: #1f1e1d;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.theme-dark .admin-logout-button {
    border-color: #9c9a92;
    background: #262624;
    color: #9c9a92;
}

.admin-logout-button:hover,
.admin-logout-button:focus-visible {
    color: var(--admin-accent-strong);
    border-color: var(--admin-accent-strong);
}

.theme-dark .admin-logout-button:hover,
.theme-dark .admin-logout-button:focus-visible {
    color: #efad88;
    border-color: #efad88;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 40px 40px 0;
}

.admin-topbar-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.admin-topbar-eyebrow,
.admin-page-header .admin-page-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--admin-muted);
}

.admin-header-title {
    margin: 0;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--admin-text);
}

.theme-dark .admin-topbar-eyebrow,
.theme-dark .admin-page-header .admin-page-eyebrow {
    color: #9c9a92;
}

.theme-dark .admin-header-title {
    color: #f0eee6;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-live-chip,
.admin-profile-pill,
.admin-badge-chip,
.network-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1;
}

.admin-live-chip,
.admin-badge-chip {
    background: #e8e9de;
    color: #788c5d;
}

.admin-live-chip {
    gap: 4px;
    padding: 0 6px;
}

.admin-live-indicator {
    width: 16px;
    height: 16px;
    display: inline-flex;
    flex: 0 0 16px;
    background-color: currentColor;
    -webkit-mask-image: url('/images/live.svg');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 16px 16px;
    mask-image: url('/images/live.svg');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 16px 16px;
}

.admin-profile-pill {
    background: #f0eee6;
    border: 1px solid transparent;
    color: var(--admin-muted);
    padding: 0 8px;
}

.theme-dark .admin-live-chip,
.theme-dark .admin-badge-chip {
    background: #353a2d;
    color: #7d975b;
}

.theme-dark .admin-profile-pill,
.theme-dark .admin-theme-button {
    background: #1f1e1d;
    border-color: transparent;
    color: #9c9a92;
}

.admin-theme-button {
    width: 44px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: transparent;
    border: 0;
    color: var(--admin-muted);
    transition: color 0.15s ease;
}

.admin-theme-button::part(control) {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 4px;
    background: transparent;
    border: 0;
    color: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-theme-button:hover,
.admin-theme-button:focus-visible {
    color: var(--admin-accent-strong);
}

.admin-theme-button:hover::part(control),
.admin-theme-button:focus-visible::part(control) {
    background: rgba(181, 102, 70, 0.09);
}

.theme-dark .admin-theme-button:hover,
.theme-dark .admin-theme-button:focus-visible {
    color: #efad88;
}

.theme-dark .admin-theme-button:hover::part(control),
.theme-dark .admin-theme-button:focus-visible::part(control) {
    background: rgba(181, 102, 70, 0.14);
}

.admin-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 40px;
}

.admin-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.admin-page-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 38px;
}

.admin-page-header h1 {
    margin: 4px 0 0;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--admin-text);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.theme-dark .admin-page-header h1 {
    color: #f0eee6;
}

.admin-page-header .admin-badge-chip {
    height: 20px;
    padding: 0 6px;
    background: #f0e3dc;
    color: #bf4d43;
    font-size: 0.625rem;
    font-weight: 400;
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-0);
    color: var(--text-muted);
    box-shadow: var(--shadow-soft);
}

.users-filter-bar {
    gap: 24px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
}

.users-filter-field {
    display: flex;
    min-width: 0;
}

.users-filter-search {
    width: 300px;
}

.users-filter-state {
    width: 150px;
}

.users-search-box,
.users-select-box {
    width: 100%;
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid #d1cfc5;
    background: #faf9f5;
    box-shadow: 1px 1px 6px rgba(15, 15, 14, 0.12);
    box-sizing: border-box;
}

.users-search-box:focus-within,
.users-select-box:focus-within {
    border-color: #1f1e1d;
    box-shadow: 0 0 0 1px #1f1e1d;
}

.users-search-icon,
.users-select-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #73726c;
    flex: 0 0 20px;
}

.users-search-icon svg,
.users-select-icon svg {
    width: 20px;
    height: 20px;
}

.users-search-input,
.users-select-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #73726c;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    font-family: var(--font-family-base);
}

.users-search-input::placeholder {
    color: #73726c;
    opacity: 1;
}

.users-select-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0;
    cursor: pointer;
}

.users-select-input option {
    background: #faf9f5;
    color: #1f1e1d;
    font-size: 0.875rem;
    font-weight: 600;
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: minmax(560px, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.admin-hero-card,
.admin-kpi-card,
.admin-table-card {
    border-radius: 8px;
    background: #ffffff;
    border: none;
    box-shadow: var(--shadow-soft);
}
.admin-side-card {
    border-radius: 8px;
    background: #E3DACC;
    box-shadow: none;
}

.admin-hero-card {
    min-height: 261px;
    padding: 32px;
    background: var(--admin-card);
    color: #faf9f5;
}

.admin-hero-amount {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.admin-hero-subtitle {
    margin-top: 8px;
    color: var(--admin-muted);
}

.admin-hero-metrics {
    display: flex;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.admin-hero-metric,
.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 18px;
}

.admin-hero-metric {
    flex: 1;
    background: #d97757;
    color: #141413;
}

.admin-hero-metric > span {
    font-size: 0.75rem;
    font-weight: 400;
}

.admin-hero-metric-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.admin-hero-metric-value strong,
.admin-hero-metric-value span {
    font-size: 0.75rem;
    line-height: 1.6;
}

.admin-hero-metric-value strong {
    font-weight: 600;
}

.admin-hero-metric-value span {
    font-weight: 400;
}

.admin-hero-metric + .admin-hero-metric {
    background: #788c5d;
}

.admin-side-panels,
.admin-content-grid,
.admin-kpi-grid {
    display: grid;
    gap: 24px;
}

.admin-side-panels {
    grid-template-rows: repeat(2, 1fr);
}

.admin-side-card,
.admin-kpi-card,
.admin-table-card {
    padding: 16px;
}

.admin-side-card {
    background: var(--admin-panel);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-side-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.admin-side-value,
.admin-kpi-value {
    margin-top: 4px;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1;
}

.admin-side-copy {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
    color: var(--admin-muted);
    font-size: 1rem;
    font-weight: 600;
}

.admin-side-copy > span {
    flex: 0 1 auto;
}

.admin-side-copy-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.admin-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpi-card {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-kpi-card .admin-card-eyebrow {
    color: var(--admin-muted);
}

.admin-kpi-card .admin-kpi-value {
    margin-top: 0;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--admin-text);
}

.admin-kpi-value-row {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
}

.admin-kpi-unit {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--admin-muted);
}

.theme-dark .admin-kpi-card .admin-card-eyebrow,
.theme-dark .admin-kpi-unit {
    color: #9c9a92;
}

.theme-dark .admin-kpi-card .admin-kpi-value {
    color: #f0eee6;
}

.admin-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.admin-hero-card,
.admin-kpi-card,
.admin-table-card {
    border-radius: 8px;
    background: var(--surface-0);
}

.admin-hero-card {
    padding: 22px;
    background:
        radial-gradient(circle at 90% 16%, rgba(217, 119, 87, 0.22), transparent 28%),
        linear-gradient(135deg, #1f1e1d 0%, #34312d 100%);
    color: #fffdfa;
}

.admin-hero-card .admin-card-eyebrow {
    color: rgba(255, 253, 250, 0.7);
}

.admin-hero-amount {
    margin-top: 8px;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 600;
}

.admin-hero-subtitle {
    margin-top: 6px;
    color: rgba(255, 253, 250, 0.66);
    font-size: 14px;
}

.admin-hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.admin-hero-metric {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
}

.admin-hero-metric span {
    color: rgba(255, 253, 250, 0.66);
    font-size: 12px;
}

.admin-hero-metric strong {
    color: #fffdfa;
    font-size: 14px;
}

.admin-side-card,
.admin-kpi-card,
.admin-table-card {
    padding: 18px;
}

.admin-side-value,
.admin-kpi-value {
    margin-top: 8px;
    color: var(--text-title);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
}

.admin-side-copy {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.admin-card-header-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0 16px;
}

.admin-card-divider {
    width: 100%;
    height: 2px;
    background: var(--admin-cream);
    margin: 12px 0 0;
}

.admin-list-row + .admin-list-row {
    margin-top: 16px;
}

.admin-table-card {
    padding: 16px;
    border: none;
}

.users-table-card {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.users-table-card::part(control) {
    background: transparent;
    border: none;
    box-shadow: none;
}

.users-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.users-table-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 16px;
    border-bottom: 1px solid #d1cfc5;
    background: #faf9f5;
}

.users-table-total {
    width: 63px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: #1f1e1d;
    white-space: nowrap;
}

.users-pagination {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.users-page-button {
    border: none;
    background: transparent;
    color: #1f1e1d;
    border-radius: 8px;
    font-family: var(--font-family-base);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
}

.users-page-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.users-page-edge,
.users-page-number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.users-page-edge img,
.users-page-nav img {
    width: 20px;
    height: 20px;
}

.users-page-nav {
    width: 60px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #73726c;
}

.users-page-nav.next {
    color: #1f1e1d;
}

.users-page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.users-page-number {
    color: #1f1e1d;
}

.users-page-number.active {
    border: 1px solid #d1cfc5;
    background: #f5f4ed;
}

.users-page-ellipsis {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
    color: #1f1e1d;
}

.users-table-card .admin-users-grid,
.admin-table-card .admin-users-grid {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.users-table-card .admin-users-grid th,
.admin-table-card .admin-users-grid th {
    height: 40px;
    padding: 0 16px;
    border-top: 1px solid #d1cfc5;
    border-bottom: 1px solid #d1cfc5;
    background: #f5f4ed;
    color: #1a1918;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
    white-space: nowrap;
}

.users-table-card .admin-users-grid th:last-child,
.admin-table-card .admin-users-grid th:last-child {
    text-align: center;
}

.users-table-card .admin-users-grid td,
.admin-table-card .admin-users-grid td {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #d1cfc5;
    background: #faf9f5;
    color: #1f1e1d;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    vertical-align: middle;
    white-space: nowrap;
}

.users-table-card .admin-users-grid .address,
.admin-table-card .admin-users-grid .address {
    white-space: nowrap;
    word-break: normal;
}

.users-table-card .admin-users-grid td.amount-cell,
.admin-table-card .admin-users-grid td.amount-cell {
    background: #f5f4ed;
    text-align: right;
}

.users-table-card .admin-users-grid td:last-child,
.admin-table-card .admin-users-grid td:last-child {
    text-align: center;
}

.users-table-card .admin-users-grid tbody tr:hover td,
.admin-table-card .admin-users-grid tbody tr:hover td {
    background: #f5f4ed;
}

.users-table-card .admin-users-grid tbody tr:hover td.amount-cell,
.admin-table-card .admin-users-grid tbody tr:hover td.amount-cell {
    background: #f0eee6;
}

.users-email-cell {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.users-email {
    font-size: 0.875rem;
    font-weight: 400;
    color: #1f1e1d;
}

.users-name {
    font-size: 0.75rem;
    font-weight: 400;
    color: #1f1e1d;
}

.users-balance-cell {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2px;
    white-space: nowrap;
    width: 100%;
}

.users-balance-value {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.6;
}

.users-balance-unit {
    font-size: 0.875rem;
    font-weight: 300;
    color: #1f1e1d;
}

.users-network-cell,
.users-action-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.users-action-cell {
    position: relative;
}

.users-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 0.625rem;
    font-weight: 400;
    line-height: 1.6;
    white-space: nowrap;
}

.users-badge-success {
    background: #e8e9de;
    color: #788c5d;
}

.users-badge-warning {
    background: #f0e3dc;
    color: #bf4d43;
}

.users-badge-neutral {
    background: #f0eee6;
    color: #73726c;
}

.users-kyc-badge {
    justify-content: flex-start;
    gap: 2px;
    padding: 0 8px 0 6px;
}

.users-kyc-icon {
    width: 12px;
    height: 12px;
    display: block;
}

.users-network-badge {
    text-transform: uppercase;
    padding: 0 8px;
    border-radius: 999px;
    font-weight: 500;
}

.users-network-cell {
    gap: 4px;
}

.users-network-badge.network-trc20 {
    background: #e8e9de;
    color: #788c5d;
}

.users-network-badge.network-erc20 {
    background: #f0e3dc;
    color: #bf4d43;
}

.users-status-badge {
    min-width: 34px;
}

.users-icon-button {
    border: 0;
    background: transparent;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.users-icon-button img {
    width: 20px;
    height: 20px;
    display: block;
}

.users-icon-button:hover,
.users-icon-button.active {
    background: #F5F4ED;
}

.users-icon-button.users-more-button:hover,
.users-icon-button.users-more-button.active {
    background: #F0EEE6;
}

.users-action-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    min-width: 136px;
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid #d1cfc5;
    background: #FAF9F5;
    box-shadow: 0 10px 18px rgba(20, 20, 19, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.users-action-menu-item {
    border: 0;
    background: transparent;
    height: 34px;
    padding: 0 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f1e1d;
    cursor: pointer;
}

.users-action-menu-item:hover {
    background: #f5f4ed;
}

.users-action-menu-item.danger {
    color: #bf4d43;
}

.users-action-menu-divider {
    display: block;
    width: 100%;
    border-top: 1px dashed #d1cfc5;
    margin: 2px 0;
}

.users-action-menu-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
}

.users-action-menu-icon-stop {
    -webkit-mask-image: url('/images/stop.svg');
    mask-image: url('/images/stop.svg');
}

.users-action-menu-icon-restore {
    -webkit-mask-image: url('/images/undo.svg');
    mask-image: url('/images/undo.svg');
}

.users-action-menu-icon-link {
    -webkit-mask-image: url('/images/link.svg');
    mask-image: url('/images/link.svg');
}

.admin-content-grid .admin-table-card {
    min-height: 283px;
    display: flex;
    flex-direction: column;
}

.admin-list-stack {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-list-stack .admin-list-row + .admin-list-row {
    margin-top: 0;
}

.admin-table-card .admin-list-row,
.admin-table-card .admin-quick-links {
    margin: 0 32px;
}

.admin-table-card .admin-list-row {
    background: #f5f4ed;
    font-size: 1rem;
    font-weight: 600;
}

.admin-list-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-list-value strong,
.admin-list-value span {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.admin-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.admin-loading {
    display: grid;
    place-items: center;
    min-height: 320px;
}

.admin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 40px 24px;
    color: var(--admin-muted);
    font-size: 0.85rem;
}

.amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.admin-fill-width {
    width: 100%;
}

.admin-dialog-gap-sm {
    gap: 12px;
}

.admin-dialog-gap-md {
    gap: 16px;
}

.admin-inline-mono {
    font-family: var(--font-family-monospace, monospace);
    font-size: 0.85em;
}

.admin-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-field-hint {
    margin-top: 4px;
    color: var(--neutral-foreground-hint, #666);
    font-size: 0.9rem;
}

.address {
    color: var(--text-muted);
    font-family: var(--font-family-monospace);
    font-size: 12px;
    word-break: break-all;
}

.network-trc20,
.network-badge.network-trc20 {
    color: var(--network-trc20);
}

.network-erc20,
.network-badge.network-erc20 {
    color: var(--network-erc20);
}

.network-badge {
    padding: 0 10px;
    background: rgba(181, 102, 70, 0.1);
}

.admin-quick-links fluent-button::part(control) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 12px;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.quick-link-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.quick-link-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    flex: 0 0 20px;
    background-color: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 20px 20px;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 20px 20px;
}

.quick-link-icon-withdrawals {
    -webkit-mask-image: url('/images/account.svg');
    mask-image: url('/images/account.svg');
}

.quick-link-icon-users {
    -webkit-mask-image: url('/images/user.svg');
    mask-image: url('/images/user.svg');
}

.quick-link-icon-kyc {
    -webkit-mask-image: url('/images/shield.svg');
    mask-image: url('/images/shield.svg');
}

.quick-link-icon-webhooks {
    -webkit-mask-image: url('/images/globe.svg');
    mask-image: url('/images/globe.svg');
}

.admin-quick-links fluent-button.quick-link-primary::part(control) {
    background: #dedcd1;
    border: 1px solid #dedcd1;
    color: #3d3d3a;
    box-shadow: none;
}

.admin-quick-links fluent-button.quick-link-primary:hover::part(control),
.admin-quick-links fluent-button.quick-link-primary:focus-visible::part(control) {
    background: #e8e6dc;
    border-color: #e8e6dc;
    color: #3d3d3a;
    box-shadow: 0 5px 7.5px rgba(0, 0, 0, 0.25);
}

.admin-quick-links fluent-button.quick-link-primary:active::part(control) {
    background: #f0eee6;
    border-color: #f0eee6;
    color: #3d3d3a;
    box-shadow: none;
}

.admin-quick-links fluent-button.quick-link-primary[disabled]::part(control) {
    background: #9c9a92;
    border-color: #9c9a92;
    color: #d1cfc5;
    box-shadow: none;
}

.admin-quick-links fluent-button.quick-link-outline::part(control),
.monitoring-actions fluent-button.monitoring-refresh-button::part(control) {
    background: var(--admin-cream);
    border: 1px solid #0f0f0e;
    color: #0f0f0e;
    box-shadow: none;
    line-height: 1;
}

.admin-quick-links fluent-button.quick-link-outline:hover::part(control),
.admin-quick-links fluent-button.quick-link-outline:focus-visible::part(control),
.monitoring-actions fluent-button.monitoring-refresh-button:hover::part(control),
.monitoring-actions fluent-button.monitoring-refresh-button:focus-visible::part(control) {
    background: #ffffff;
    border-color: #0f0f0e;
    color: #0f0f0e;
    box-shadow: 0 5px 7.5px rgba(0, 0, 0, 0.25);
}

.admin-quick-links fluent-button.quick-link-outline:active::part(control),
.monitoring-actions fluent-button.monitoring-refresh-button:active::part(control) {
    background: var(--admin-cream);
    border-color: #0f0f0e;
    color: #0f0f0e;
    box-shadow: none;
}

.admin-quick-links fluent-button.quick-link-outline[disabled]::part(control),
.monitoring-actions fluent-button.monitoring-refresh-button[disabled]::part(control) {
    background: var(--admin-cream);
    border-color: #d1cfc5;
    color: #d1cfc5;
    box-shadow: none;
}

.theme-dark .admin-side-card,
.theme-dark .admin-kpi-card,
.theme-dark .admin-table-card,
.theme-dark .admin-filter-bar {
    border-color: transparent;
    box-shadow: none;
}

.theme-dark .admin-overview-grid .admin-hero-card {
    background: #dedcd1;
    border-color: #dedcd1;
    color: #141413;
}

.theme-dark .admin-overview-grid .admin-hero-card .admin-card-eyebrow {
    color: #d97757;
}

.theme-dark .admin-overview-grid .admin-hero-amount {
    color: #141413;
}

.theme-dark .admin-overview-grid .admin-hero-subtitle {
    color: #73726c;
}

.theme-dark .admin-overview-grid .admin-hero-metrics {
    width: 100%;
}

.theme-dark .admin-overview-grid .admin-hero-metric {
    background: #d97757;
    border-color: transparent;
    color: #141413;
}

.theme-dark .admin-overview-grid .admin-hero-metric + .admin-hero-metric {
    background: #788c5d;
}

.theme-dark .admin-overview-grid .admin-hero-metric > span,
.theme-dark .admin-overview-grid .admin-hero-metric-value strong,
.theme-dark .admin-overview-grid .admin-hero-metric-value span {
    color: #141413;
}

.theme-dark .admin-overview-grid .admin-side-card {
    background: #af9f85;
    border-color: #af9f85;
}

.theme-dark .admin-overview-grid .admin-side-card .admin-card-eyebrow {
    color: #30302e;
}

.theme-dark .admin-overview-grid .admin-side-card .admin-side-value {
    color: #1f1e1d;
}

.theme-dark .admin-overview-grid .admin-side-copy {
    color: #30302e;
}

.theme-dark .admin-table-card .admin-list-row {
    background: #3D3D3A;
}

.theme-dark .admin-card-divider {
    background: #262624;
}

.theme-dark .admin-quick-links fluent-button.quick-link-primary::part(control) {
    background: #dedcd1;
    border-color: #dedcd1;
    color: #3d3d3a;
}

.theme-dark .admin-quick-links fluent-button.quick-link-primary:hover::part(control),
.theme-dark .admin-quick-links fluent-button.quick-link-primary:focus-visible::part(control) {
    background: #e8e6dc;
    border-color: #e8e6dc;
    color: #3d3d3a;
    box-shadow: 0 5px 7.5px rgba(0, 0, 0, 0.25);
}

.theme-dark .admin-quick-links fluent-button.quick-link-primary:active::part(control) {
    background: #f0eee6;
    border-color: #f0eee6;
    color: #3d3d3a;
    box-shadow: none;
}

.theme-dark .admin-quick-links fluent-button.quick-link-primary[disabled]::part(control) {
    background: #9c9a92;
    border-color: #9c9a92;
    color: #d1cfc5;
    box-shadow: none;
}

.theme-dark .admin-quick-links fluent-button.quick-link-outline::part(control),
.theme-dark .monitoring-actions fluent-button.monitoring-refresh-button::part(control) {
    background: #262624;
    border: 1px solid #9c9a92;
    color: #9c9a92;
    box-shadow: none;
}

.theme-dark .admin-quick-links fluent-button.quick-link-outline:hover::part(control),
.theme-dark .admin-quick-links fluent-button.quick-link-outline:focus-visible::part(control),
.theme-dark .monitoring-actions fluent-button.monitoring-refresh-button:hover::part(control),
.theme-dark .monitoring-actions fluent-button.monitoring-refresh-button:focus-visible::part(control) {
    background: #30302e;
    border-color: #d1cfc5;
    color: #d1cfc5;
    box-shadow: 0 5px 7.5px rgba(0, 0, 0, 0.25);
}

.theme-dark .admin-quick-links fluent-button.quick-link-outline:active::part(control),
.theme-dark .monitoring-actions fluent-button.monitoring-refresh-button:active::part(control) {
    background: #262624;
    border-color: #b0aea5;
    color: #9c9a92;
    box-shadow: none;
}

.theme-dark .admin-quick-links fluent-button.quick-link-outline[disabled]::part(control) {
    background: #262624;
    border-color: #4d4c48;
    color: #4d4c48;
    box-shadow: none;
}

.theme-dark .admin-table-card fluent-button[appearance="outline"]::part(control) {
    color: #f0eee6;
}

.theme-dark .users-search-box,
.theme-dark .users-select-box {
    background: #262624;
    border-color: #3d3d3a;
    box-shadow: 1px 4px 16px rgba(15, 15, 14, 0.1);
}

.theme-dark .users-search-box:focus-within,
.theme-dark .users-select-box:focus-within {
    border-color: #d1cfc5;
    box-shadow: 0 0 0 1px #d1cfc5;
}

.theme-dark .users-search-icon,
.theme-dark .users-select-icon,
.theme-dark .users-search-input,
.theme-dark .users-search-input::placeholder,
.theme-dark .users-select-input {
    color: #9c9a92;
}

.theme-dark .users-select-input option {
    background: #262624;
    color: #f0eee6;
}

.theme-dark .users-table-card .admin-users-grid th,
.theme-dark .admin-table-card .admin-users-grid th {
    background: #30302e;
    border-color: #4d4c48;
    color: #d1cfc5;
}

.theme-dark .users-table-card .admin-users-grid th:nth-child(5),
.theme-dark .admin-table-card .admin-users-grid th:nth-child(5) {
    background: #3D3D3A;
}

.theme-dark .users-table-card .admin-users-grid td,
.theme-dark .admin-table-card .admin-users-grid td {
    background: #262624;
    border-color: #3D3D3A;
    color: #f0eee6;
}

.theme-dark .users-table-card .admin-users-grid td:nth-child(5),
.theme-dark .admin-table-card .admin-users-grid td:nth-child(5) {
    background: #30302E;
}

.theme-dark .users-table-card .admin-users-grid tbody tr:hover td,
.theme-dark .admin-table-card .admin-users-grid tbody tr:hover td {
    background: #30302e;
}

.theme-dark .users-table-card .admin-users-grid tbody tr:hover td:nth-child(5),
.theme-dark .admin-table-card .admin-users-grid tbody tr:hover td:nth-child(5) {
    background: #3d3d3a;
}

.theme-dark .users-table-footer {
    background: #262624;
    border-bottom-color: #3D3D3A;
}

.theme-dark .users-table-total,
.theme-dark .users-page-number,
.theme-dark .users-page-ellipsis,
.theme-dark .users-page-nav.next {
    color: #f0eee6;
}

.theme-dark .users-page-nav {
    color: #9c9a92;
}

.theme-dark .users-page-edge,
.theme-dark .users-page-nav {
    filter: brightness(0) saturate(100%) invert(84%) sepia(10%) saturate(234%) hue-rotate(17deg) brightness(92%) contrast(87%);
}

.theme-dark .users-page-nav.next {
    filter: brightness(0) saturate(100%) invert(92%) sepia(6%) saturate(315%) hue-rotate(8deg) brightness(104%) contrast(93%);
}

.theme-dark .users-page-number.active {
    border-color: #4d4c48;
    background: #30302e;
}

.theme-dark .users-email,
.theme-dark .users-name,
.theme-dark .users-balance-unit {
    color: #f0eee6;
}

.theme-dark .users-badge-success {
    background: #3f4a31;
    color: #d6e2bd;
}

.theme-dark .users-badge-warning {
    background: #4d3832;
    color: #f0b3a8;
}

.theme-dark .users-badge-neutral {
    background: #3d3d3a;
    color: #d1cfc5;
}

.theme-dark .users-network-badge.network-trc20 {
    background: #3f4a31;
    color: #d6e2bd;
}

.theme-dark .users-network-badge.network-erc20 {
    background: #4d3832;
    color: #f0b3a8;
}

.theme-dark .users-kyc-icon-neutral {
    filter: brightness(1.8);
}

.theme-dark .users-kyc-icon-warning {
    filter: brightness(1.15);
}

.theme-dark .users-icon-button:hover,
.theme-dark .users-icon-button.active {
    background: #30302e;
}

.theme-dark .users-action-menu {
    background: #262624;
    border-color: #4d4c48;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.theme-dark .users-action-menu-item {
    color: #f0eee6;
}

.theme-dark .users-action-menu-item:hover {
    background: #30302e;
}

.theme-dark .users-action-menu-item.danger {
    color: #D75448;
}

.theme-dark .users-action-menu-divider {
    border-top-color: #4d4c48;
}

.admin-empty-state strong {
    color: var(--text-title);
    font-size: 16px;
    font-weight: 600;
}

.fluent-overlay {
    background: rgba(20, 20, 19, 0.48) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

fluent-dialog::part(overlay) {
    background: rgba(20, 20, 19, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

fluent-dialog::part(control) {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-0);
    box-shadow: 0 24px 64px rgba(31, 30, 29, 0.18);
}

fluent-dialog .fluent-dialog-header {
    margin: 0;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--text-title);
    font-size: 16px;
    font-weight: 600;
}

fluent-dialog .fluent-dialog-body {
    padding: 18px 20px;
    color: var(--text-base);
}

fluent-dialog .fluent-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--line);
}

.blazor-error-boundary {
    padding: 1rem;
    background: var(--danger);
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@media (max-width: 1100px) {
    .admin-overview-grid,
    .admin-content-grid,
    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }

    .admin-overview-grid {
        grid-template-columns: 1fr;
    }

    .admin-side-panels,
    .admin-quick-links {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .users-filter-bar {
        gap: 12px;
    }

    .users-filter-search,
    .users-filter-state {
        width: 100%;
    }

    .users-table-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .users-pagination {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
}

@media (max-width: 860px) {
    .admin-sidebar {
        width: var(--sidebar-width-compact);
        padding: 32px 8px 20px;
        align-items: center;
    }

    .theme-dark .admin-sidebar {
        border-right-color: rgba(255, 255, 255, 0.06);
    }

    .admin-sidebar-top {
        align-items: center;
        gap: 0;
        margin-bottom: 28px;
    }

    .admin-brand-link {
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .admin-brand-logo-full {
        display: none;
    }

    .admin-brand-logo-sm {
        display: block;
    }

    .admin-sidebar-text {
        display: none;
    }

    .admin-nav {
        width: 100%;
        align-items: center;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }

    .admin-nav-group {
        width: 100%;
        align-items: center;
    }

    .admin-nav-group + .admin-nav-group {
        margin-top: 12px;
        padding-top: 12px;
    }

    .admin-nav-item {
        width: 48px;
        min-height: 48px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .admin-nav-item.active {
        background: var(--admin-panel);
    }

    .admin-sidebar-footer {
        width: 100%;
        align-items: center;
        gap: 20px;
    }

    .admin-operator-row {
        width: 100%;
        justify-content: center;
    }

    .admin-settings-button {
        display: none;
    }

    .admin-operator-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .admin-logout-button {
        width: 36px;
        height: 36px;
        padding: 0;
        gap: 0;
        border-radius: 6px;
    }

    .admin-nav-item {
        flex: 1 1 150px;
    }

    .admin-topbar {
        top: 0;
        padding-right: 18px;
        padding-left: 18px;
    }

    .admin-topbar-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .admin-body,
    .admin-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

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

    .admin-hero-metrics {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   FluentDialog 어드민 테마 오버라이드
   ===================================================================== */

/* 모달 오버레이 */
.fluent-overlay {
    background: rgba(15, 15, 14, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

fluent-dialog::part(overlay) {
    background: rgba(15, 15, 14, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 모달 패널 */
fluent-dialog::part(control) {
    border-radius: 8px;
    border: 1px solid #d1cfc5;
    background: #faf9f5;
    box-shadow: 1px 1px 40px rgba(15, 15, 14, 0.7);
    color: #1f1e1d;
}

/* 헤더 */
fluent-dialog .fluent-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 32px 32px 0;
    border-bottom: none;
    color: #1f1e1d;
}

fluent-dialog .fluent-dialog-header fluent-label {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.6;
    color: #1f1e1d;
}

/* 닫기 버튼 - images/close_lg.svg 사용 */
fluent-dialog .fluent-dialog-header .fluent-dialog-close::part(control) {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: none;
    border-radius: 6px;
    background: center / 24px 24px no-repeat url('/images/close_lg.svg');
    color: transparent;
    box-shadow: none;
}

fluent-dialog .fluent-dialog-header .fluent-dialog-close fluent-icon,
fluent-dialog .fluent-dialog-header .fluent-dialog-close svg {
    opacity: 0;
}

/* 본문 */
fluent-dialog .fluent-dialog-body {
    margin: 0;
    padding: 16px 32px;
    color: #1f1e1d;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* 푸터 */
fluent-dialog .fluent-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0 32px 32px;
    border-top: none;
}

fluent-dialog .fluent-dialog-footer > :only-child {
    margin-left: auto;
}

fluent-dialog .fluent-dialog-footer fluent-button::part(control) {
    width: 115px;
    height: 38px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.6;
}

fluent-dialog .fluent-dialog-footer fluent-button[appearance="outline"]::part(control) {
    background: #faf9f5;
    border: 1px solid #0f0f0e;
    color: #0f0f0e;
}

fluent-dialog .fluent-dialog-footer fluent-button[appearance="accent"]::part(control) {
    background: #0f0f0e;
    border: 1px solid #0f0f0e;
    color: #f5f4ed;
}

/* 다크 모드 */
.theme-dark fluent-dialog::part(control) {
    background: #262624;
    border-color: #3d3d3a;
    box-shadow: 1px 1px 40px rgba(0, 0, 0, 0.55);
    color: #f0eee6;
}

.theme-dark fluent-dialog .fluent-dialog-header,
.theme-dark fluent-dialog .fluent-dialog-header fluent-label,
.theme-dark fluent-dialog .fluent-dialog-body {
    color: #f0eee6;
}

.theme-dark fluent-dialog .fluent-dialog-header .fluent-dialog-close::part(control) {
    filter: brightness(0) saturate(100%) invert(91%) sepia(7%) saturate(276%) hue-rotate(10deg) brightness(101%) contrast(92%);
}

.theme-dark fluent-dialog .fluent-dialog-footer fluent-button[appearance="outline"]::part(control) {
    background: #262624;
    border-color: #9c9a92;
    color: #9c9a92;
}

.theme-dark fluent-dialog .fluent-dialog-footer fluent-button[appearance="accent"]::part(control) {
    background: #dedcd1;
    border-color: #dedcd1;
    color: #3d3d3a;
}

/* Users: 파트너 링크 생성 모달 - 피그마 106818:3701 */
.users-link-dialog::part(control) {
    border-radius: 8px;
    border: 1px solid #d1cfc5;
    background: #faf9f5;
    box-shadow: 1px 1px 40px rgba(15, 15, 14, 0.5);
    overflow: hidden;
}

.users-link-dialog .fluent-dialog-body {
    padding: 0;
}

.users-link-dialog-shell {
    width: 100%;
    box-sizing: border-box;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.users-link-dialog-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 32px;
}

.users-link-dialog-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: #1f1e1d;
}

.users-link-dialog-close {
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.users-link-dialog-close img {
    width: 24px;
    height: 24px;
    display: block;
}

.users-link-dialog .fluent-dialog-close {
    display: none !important;
}

.users-link-dialog-body {
    font-size: 16px;
    line-height: 1.6;
    color: #1f1e1d;
    padding-top: 16px;
}

.users-link-dialog-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.users-link-dialog-row-label {
    flex: 0 0 100px;
    width: 100px;
    margin: 0;
    color: #3d3d3a;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.users-link-dialog-row-control {
    flex: 1 1 auto;
    min-width: 0;
}

.users-link-dialog-row-control .users-search-box,
.users-link-dialog-row-control .users-select-box {
    width: 100%;
}

.users-link-dialog-user-value {
    color: #1f1e1d;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
}

.users-link-dialog-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    box-sizing: border-box;
}

.users-link-dialog-actions > :only-child {
    margin-left: auto;
}

.users-link-dialog-actions fluent-button {
    flex: 0 0 115px;
    max-width: 115px;
}

.users-link-dialog-actions fluent-button::part(control) {
    width: 100%;
    height: 38px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.users-link-dialog-actions fluent-button[appearance="outline"]::part(control) {
    background: #faf9f5;
    border: 1px solid #0f0f0e;
    color: #0f0f0e;
}

.users-link-dialog-actions fluent-button[appearance="accent"]::part(control) {
    background: #0f0f0e;
    border: 1px solid #0f0f0e;
    color: #f5f4ed;
}

.theme-dark .users-link-dialog::part(control) {
    background: #262624;
    border-color: #3d3d3a;
}

.theme-dark .users-link-dialog-title,
.theme-dark .users-link-dialog-body {
    color: #f0eee6;
}

.theme-dark .users-link-dialog-row-label,
.theme-dark .users-link-dialog-user-value {
    color: #f0eee6;
}

.theme-dark .users-link-dialog-close {
    filter: brightness(0) saturate(100%) invert(91%) sepia(7%) saturate(276%) hue-rotate(10deg) brightness(101%) contrast(92%);
}

.theme-dark .users-link-dialog-actions fluent-button[appearance="outline"]::part(control) {
    background: #262624;
    border-color: #9c9a92;
    color: #9c9a92;
}

.theme-dark .users-link-dialog-actions fluent-button[appearance="accent"]::part(control) {
    background: #dedcd1;
    border-color: #dedcd1;
    color: #3d3d3a;
}

/* =====================================================================
   사이드바 내비게이션 hover 상태
   ===================================================================== */

.admin-nav-item:hover {
    background: rgba(181, 102, 70, 0.09);
    color: var(--admin-accent-strong);
}

.theme-dark .admin-nav-item:hover {
    background: rgba(181, 102, 70, 0.14);
    color: #efad88;
}

/* =====================================================================
   상단바(TopBar) 레이아웃: 타이틀 왼쪽 고정, 액션들 오른쪽 그룹
   ===================================================================== */

.admin-topbar > div:first-child {
    flex: 1;
}

/* =====================================================================
   Blazor 에러 처리
   ===================================================================== */

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* =====================================================================
   Empty State — 목록 항목 없음
   ===================================================================== */

.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 56px 24px;
    color: var(--admin-muted);
    font-size: 0.92rem;
    text-align: center;
}

.admin-empty-state .admin-empty-icon {
    width: 40px;
    height: 40px;
    opacity: 0.35;
    margin-bottom: 4px;
}

.admin-empty-state strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--admin-text);
    opacity: 0.55;
}

.monitoring-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.monitor-filter-refresh {
    width: 200px;
}

.monitor-filter-status {
    width: 160px;
}

.monitor-filter-sort {
    width: 180px;
}

.monitor-filter-threshold {
    width: 130px;
}

.monitoring-refresh-button::part(control) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    min-height: 38px;
}

.monitoring-refresh-button-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.monitoring-refresh-button-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 20px;
}

/* =====================================================================
   Post-pull Figma reconciliation
   Keeps the newer pulled layout while restoring the official om-button
   token contract verified from Figma node 107026:1248.
   ===================================================================== */

.admin-table-card fluent-button[appearance="outline"]::part(control),
.admin-page-header fluent-button[appearance="outline"]::part(control),
fluent-dialog .fluent-dialog-footer fluent-button[appearance="outline"]::part(control),
.users-link-dialog-actions fluent-button[appearance="outline"]::part(control) {
    height: 38px;
    min-height: 38px;
    border-radius: 4px;
    border: 1px solid var(--scale-elevated-6);
    background: var(--semantic-bgbase);
    color: var(--scale-elevated-6);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.admin-table-card fluent-button[appearance="accent"]::part(control),
.admin-page-header fluent-button[appearance="accent"]::part(control),
fluent-dialog .fluent-dialog-footer fluent-button[appearance="accent"]::part(control),
.users-link-dialog-actions fluent-button[appearance="accent"]::part(control) {
    height: 38px;
    min-height: 38px;
    border-radius: 4px;
    border: 1px solid var(--scale-elevated-6);
    background: var(--scale-elevated-6);
    color: var(--semantic-bgbase);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0;
}

.admin-table-card fluent-button[appearance="stealth"]::part(control),
.admin-page-header fluent-button[appearance="stealth"]::part(control) {
    height: 38px;
    min-height: 38px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0;
}

.admin-filter-bar fluent-search::part(control),
.admin-filter-bar fluent-select::part(control),
fluent-dialog fluent-select::part(control),
fluent-dialog fluent-text-field::part(control) {
    min-height: 38px;
    border-radius: 4px;
    background: var(--semantic-bgbase);
    color: var(--scale-elevated-6);
}

@media (max-width: 860px) {
    .admin-nav-item {
        flex: 0 0 48px;
        width: 48px;
    }
}

.monitoring-summary-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.monitor-status-chip {
    text-transform: uppercase;
}

.monitor-status-operational {
    background: rgba(24, 152, 79, 0.16);
    color: #147343;
}

.monitor-status-warning {
    background: rgba(181, 102, 70, 0.14);
    color: var(--admin-accent-strong);
}

.monitor-status-degraded,
.monitor-status-unhealthy {
    background: rgba(170, 41, 56, 0.16);
    color: #8e1f2b;
}

.monitor-status-healthy {
    background: rgba(24, 152, 79, 0.16);
    color: #147343;
}

.monitor-status-unknown {
    background: rgba(120, 114, 106, 0.18);
    color: #4b4741;
}

.monitor-status-initializing {
    background: rgba(45, 118, 168, 0.16);
    color: #245f87;
}

.monitor-details-list {
    margin-top: 12px;
    border-top: 1px solid var(--admin-line);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.monitor-details-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.86rem;
}

.theme-dark .monitor-status-operational,
.theme-dark .monitor-status-healthy {
    background: rgba(31, 190, 103, 0.2);
    color: #6ee2a8;
}

.theme-dark .monitor-status-warning {
    background: rgba(181, 102, 70, 0.2);
    color: #efad88;
}

.theme-dark .monitor-status-degraded,
.theme-dark .monitor-status-unhealthy {
    background: rgba(214, 77, 92, 0.2);
    color: #ff9baa;
}

.theme-dark .monitor-status-unknown {
    background: rgba(126, 120, 111, 0.18);
    color: #c7beb0;
}

.theme-dark .monitor-status-initializing {
    background: rgba(72, 151, 204, 0.22);
    color: #9bd3f5;
}

@media (max-width: 860px) {
    .monitoring-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .monitor-filter-refresh,
    .monitor-filter-status,
    .monitor-filter-sort,
    .monitor-filter-threshold {
        width: 100%;
    }
}

/* Dashboard values: keep numeric content readable across Fluent and theme cascades. */
.admin-overview-grid .admin-hero-card .admin-hero-amount {
    color: #fffdfa;
}

.admin-overview-grid .admin-hero-card .admin-hero-metric,
.admin-overview-grid .admin-hero-card .admin-hero-metric > span,
.admin-overview-grid .admin-hero-card .admin-hero-metric-value strong,
.admin-overview-grid .admin-hero-card .admin-hero-metric-value span {
    color: #141413;
}

.admin-overview-grid .admin-side-card,
.admin-overview-grid .admin-side-card .admin-card-eyebrow,
.admin-overview-grid .admin-side-card .admin-side-value,
.admin-overview-grid .admin-side-card .admin-side-copy,
.admin-overview-grid .admin-side-card .admin-side-copy-value {
    color: #1f1e1d;
}

.admin-kpi-card .admin-kpi-value,
.admin-kpi-card .admin-kpi-value-row,
.admin-table-card .admin-list-value,
.admin-table-card .admin-list-value strong,
.admin-table-card .admin-list-value span {
    color: #1f1e1d;
}

.theme-dark .admin-overview-grid .admin-hero-card .admin-hero-amount,
.theme-dark .admin-overview-grid .admin-hero-card .admin-hero-metric,
.theme-dark .admin-overview-grid .admin-hero-card .admin-hero-metric > span,
.theme-dark .admin-overview-grid .admin-hero-card .admin-hero-metric-value strong,
.theme-dark .admin-overview-grid .admin-hero-card .admin-hero-metric-value span,
.theme-dark .admin-overview-grid .admin-side-card,
.theme-dark .admin-overview-grid .admin-side-card .admin-card-eyebrow,
.theme-dark .admin-overview-grid .admin-side-card .admin-side-value,
.theme-dark .admin-overview-grid .admin-side-card .admin-side-copy,
.theme-dark .admin-overview-grid .admin-side-card .admin-side-copy-value {
    color: #141413;
}

.theme-dark .admin-kpi-card .admin-kpi-value,
.theme-dark .admin-kpi-card .admin-kpi-value-row,
.theme-dark .admin-kpi-card .admin-kpi-unit,
.theme-dark .admin-table-card .admin-list-value,
.theme-dark .admin-table-card .admin-list-value strong,
.theme-dark .admin-table-card .admin-list-value span {
    color: #f0eee6;
}

/* Monitoring component cards and detail dialog. */
.monitoring-component-section {
    min-width: 0;
}

.monitoring-component-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.monitoring-component-heading h2 {
    margin: 4px 0 0;
    color: var(--text-title);
    font-size: 1.125rem;
    line-height: 1.4;
}

.monitoring-component-count {
    color: var(--text-muted);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.monitoring-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.monitoring-card-button {
    min-width: 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--surface-0);
    box-shadow: var(--shadow-soft);
    color: var(--text-title);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.monitoring-card-button:hover {
    border-color: rgba(120, 140, 93, 0.5);
    box-shadow: 0 10px 24px rgba(15, 15, 14, 0.12);
    transform: translateY(-1px);
}

.monitoring-card-button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--admin-accent-strong);
    outline-offset: 2px;
}

.monitoring-card-header,
.monitoring-card-footer,
.monitoring-card-checked,
.monitoring-detail-status-value {
    display: flex;
    align-items: center;
}

.monitoring-card-header,
.monitoring-card-footer {
    justify-content: space-between;
    gap: 12px;
}

.monitoring-card-name {
    min-width: 0;
    color: var(--text-title);
    font-size: 1.0625rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.monitoring-card-header .monitor-status-chip {
    flex: 0 0 auto;
}

.monitoring-card-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.monitoring-card-function {
    color: var(--text-title);
    font-size: 0.8125rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.monitoring-card-action {
    display: block;
    padding: 10px 12px;
    border: 1px solid;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.monitoring-card-action-warning {
    border-color: #d69b20;
    background: #fff3cd;
    color: #684800;
}

.monitoring-card-action-critical {
    border-color: #d46a72;
    background: #fde7e9;
    color: #7a1f29;
}

.monitoring-card-action-unknown {
    border-color: #aaa59d;
    background: #efede9;
    color: #494641;
}

.monitoring-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--admin-line);
}

.monitoring-card-checked {
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 8px;
    color: var(--text-muted);
    font-size: 0.6875rem;
}

.monitoring-card-checked time {
    font-variant-numeric: tabular-nums;
}

.monitoring-card-detail-link {
    flex: 0 0 auto;
    color: var(--admin-accent-strong);
    font-size: 0.75rem;
    font-weight: 700;
}

.monitoring-detail-shell {
    gap: 24px;
    max-height: min(760px, calc(100vh - 64px));
    overflow-y: auto;
}

.monitoring-detail-summary {
    margin: 0;
    display: grid;
    gap: 16px;
}

.monitoring-detail-summary > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
}

.monitoring-detail-summary dt,
.monitoring-detail-section h3,
.monitor-details-row dt {
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
}

.monitoring-detail-summary dd,
.monitor-details-row dd {
    margin: 0;
    color: var(--text-title);
    overflow-wrap: anywhere;
}

.monitoring-detail-summary dd {
    font-size: 0.875rem;
}

.monitoring-detail-status-value {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.monitoring-detail-status-value > span:last-child {
    flex: 1 1 260px;
    line-height: 1.5;
}

.monitoring-detail-section h3 {
    margin: 0;
    text-transform: uppercase;
}

.monitoring-detail-section .monitor-details-list {
    margin-top: 10px;
}

.monitoring-detail-section .monitor-details-row {
    display: grid;
    grid-template-columns: minmax(120px, 42%) minmax(0, 1fr);
}

.monitoring-detail-section .monitor-details-row dd {
    font-family: var(--font-family-monospace);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: right;
}

.monitoring-detail-empty {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.theme-dark .monitoring-card-button {
    border-color: #3d3d3a;
    background: #262624;
    box-shadow: none;
}

.theme-dark .monitoring-card-button:hover {
    border-color: #788c5d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.theme-dark .monitoring-card-button,
.theme-dark .monitoring-card-name,
.theme-dark .monitoring-card-function,
.theme-dark .monitoring-component-heading h2,
.theme-dark .monitoring-detail-summary dd,
.theme-dark .monitor-details-row dd {
    color: #f0eee6;
}

.theme-dark .monitoring-card-checked,
.theme-dark .monitoring-component-count,
.theme-dark .monitoring-detail-summary dt,
.theme-dark .monitoring-detail-section h3,
.theme-dark .monitor-details-row dt,
.theme-dark .monitoring-detail-empty {
    color: #b0aea5;
}

.theme-dark .monitoring-card-action-warning {
    border-color: #c9952d;
    background: #4a3a12;
    color: #ffe29a;
}

.theme-dark .monitoring-card-action-critical {
    border-color: #c25d68;
    background: #4b2026;
    color: #ffb8c0;
}

.theme-dark .monitoring-card-action-unknown {
    border-color: #77736d;
    background: #393734;
    color: #dedad2;
}

.theme-dark .monitoring-card-footer {
    border-color: #3d3d3a;
}

.theme-dark .monitoring-card-detail-link {
    color: #efad88;
}

@media (max-width: 1280px) {
    .monitoring-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .monitoring-card-button {
        min-height: 0;
    }

    .monitoring-component-heading {
        align-items: flex-end;
    }

    .monitoring-detail-shell {
        padding: 24px 20px;
    }

    .monitoring-detail-summary > div,
    .monitoring-detail-section .monitor-details-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .monitoring-detail-section .monitor-details-row dd {
        text-align: left;
    }
}
 .admin-plain-table { width: 100%; border-collapse: collapse; min-width: 920px; }
 .admin-plain-table th, .admin-plain-table td { padding: 14px 16px; border-bottom: 1px solid var(--neutral-stroke-divider-rest, #e2e8f0); text-align: left; vertical-align: top; }
 .admin-plain-table th { font-size: 12px; color: #667085; }
 .admin-plain-table small { color: #667085; line-height: 1.5; }
/* Locale selector in the persistent admin toolbar. */
.admin-language-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-language-select {
    min-height: 34px;
    max-width: 140px;
    padding: 0 30px 0 10px;
    border: 1px solid var(--neutral-stroke-rest, #d1d1d1);
    border-radius: 8px;
    color: inherit;
    background: var(--neutral-layer-1, #fff);
}

[dir="rtl"] .admin-language-select {
    padding-right: 10px;
    padding-left: 30px;
}

@media (max-width: 720px) {
    .admin-language-select { max-width: 104px; }
    .admin-live-chip, .admin-profile-pill { display: none; }
}
