:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --surface: #fff;
  --ink: #111;
  --muted: #7a7c76;
  --line: #deded7;
  --lime: #d7ff2f;
  --orange: #f26a21;
  --green: #3f723b;
  --scrollbar-track: #e9e9e1;
  --scrollbar-thumb: #96998d;
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "Manrope", "Arial", sans-serif;
  --sidebar: 248px;
}

* { box-sizing: border-box; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); scrollbar-width: thin; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--scrollbar-track); }
*::-webkit-scrollbar-thumb { border: 2px solid var(--scrollbar-track); background: var(--scrollbar-thumb); }
*::-webkit-scrollbar-thumb:hover { background: #20211e; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
button:disabled { opacity: .55; cursor: not-allowed; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; background: #10110f; color: #f8f8f2; padding: 25px 16px 15px; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; margin: 0 0 47px 5px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--lime); color: #10110f; font-size: 23px; font-weight: 800; letter-spacing: -3px; padding-right: 3px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 16px; line-height: 1; letter-spacing: -.8px; }
.brand-dot { color: var(--lime); }
.brand-copy small { color: #898c83; font: 8px var(--mono); letter-spacing: 1.65px; }
.workspace-label { margin: 0 0 11px 9px; color: #74776f; font: 9px var(--mono); letter-spacing: 1.35px; }
.main-nav { display: grid; gap: 4px; }
.nav-link { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 10px; border: 0; background: transparent; color: #bfc0ba; text-align: left; text-decoration: none; cursor: pointer; font-weight: 650; font-size: 12px; transition: .18s ease; }
.nav-link:hover { background: #20211e; color: white; }
.nav-link.active { background: var(--lime); color: #111; }
.nav-icon { display: grid; place-items: center; width: 20px; font-size: 17px; line-height: 1; }
.nav-shortcut { margin-left: auto; font: 9px var(--mono); opacity: .55; }
.nav-count { margin-left: auto; min-width: 20px; padding: 3px 5px; border: 1px solid #484a44; border-radius: 2px; text-align: center; font: 9px var(--mono); }
.nav-link.active .nav-count { border-color: #10110f; }
.sidebar-rule { height: 1px; margin: 23px 8px 22px; background: #2b2c28; }
.sidebar-spacer { flex: 1; }
.sidebar-status { display: flex; align-items: center; gap: 10px; padding: 12px 9px; margin-bottom: 12px; border: 1px solid #33342f; }
.status-pulse, .live-dot, .footer-green-dot { position: relative; width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #a8d852; }
.status-pulse::after { position: absolute; inset: -3px; border: 1px solid #a8d852; border-radius: 50%; content: ""; opacity: .35; }
.sidebar-status strong, .sidebar-status small, .profile-copy strong, .profile-copy small { display: block; }
.sidebar-status strong { font: 9px var(--mono); letter-spacing: .8px; }
.sidebar-status small { margin-top: 4px; color: #84867f; font-size: 9px; }
.profile-card { display: flex; align-items: center; gap: 9px; padding: 9px 6px 2px; border-top: 1px solid #30312d; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; background: #2f302b; color: white; font: 9px var(--mono); }
.avatar-owner { background: var(--lime); color: #111; }
.profile-copy { min-width: 0; }
.profile-copy strong { overflow: hidden; max-width: 132px; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.profile-copy small { margin-top: 3px; color: #91938b; font: 8px var(--mono); letter-spacing: .8px; }
.icon-button { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.profile-menu { margin-left: auto; color: #aeb0a8; font-size: 22px; letter-spacing: 2px; }

.main-area { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid #deded7; background: rgba(255,255,255,.46); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #7b7d76; font-size: 11px; }
.breadcrumb-slash { color: #b9bab3; }
.breadcrumb strong { color: #191a17; font-weight: 750; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.demo-chip { display: flex; align-items: center; gap: 7px; color: #575951; font: 9px var(--mono); letter-spacing: .65px; }
.demo-chip i { width: 6px; height: 6px; background: var(--orange); }
.notification-button { width: 26px; height: 26px; border: 1px solid #d8d8d0; border-radius: 50%; font: 11px var(--mono); }
.mobile-menu { display: none; }
.content-wrap { max-width: 1540px; margin: 0 auto; padding: 22px 36px 20px; }
.demo-banner { min-height: 41px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #d6d6cb; background: #eeeee4; }
.demo-banner-icon { color: var(--orange); font-size: 16px; }
.demo-banner p { flex: 1; margin: 0; color: #686a62; font-size: 10px; }
.demo-banner strong { color: #1c1d19; }
.banner-close { border: 0; background: transparent; color: #777970; font-size: 19px; cursor: pointer; }
.page-view { display: none; }
.page-view.active { display: block; animation: appear .28s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 37px 0 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #71736b; font: 9px var(--mono); letter-spacing: 1.15px; }
.eyebrow-line { width: 17px; height: 2px; display: inline-block; background: var(--orange); }
h1 { margin: 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -2.4px; font-weight: 800; }
.heading-period { color: var(--orange); }
.page-description { margin: 9px 0 0; color: #797a73; font-size: 11px; }
.heading-actions { display: flex; gap: 8px; }
.button { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid var(--ink); font-size: 10px; font-weight: 750; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.button:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.button-primary { background: var(--lime); color: #10110f; }
.button-secondary { background: transparent; color: #22231f; }
.button-danger { border-color: #8c2418; background: #a83224; color: #fff; }
.button-danger:hover { box-shadow: 3px 3px 0 #f1a18f; }
.button-plus { font-size: 16px; font-weight: 500; line-height: 0; }
.date-strip { display: flex; align-items: center; gap: 13px; min-height: 32px; margin-bottom: 10px; color: #71736b; font: 8px var(--mono); letter-spacing: .5px; }
.date-current { display: flex; align-items: center; gap: 7px; }
.date-current strong { color: #34362e; font-weight: 500; }
.live-dot { width: 6px; height: 6px; }
.date-divider { width: 1px; height: 13px; background: #cecec5; }
.date-spacer { flex: 1; }
.date-caption { color: #92938c; }
.date-caption span { padding: 0 4px; color: var(--orange); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.stat-card { position: relative; min-height: 132px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 15px 12px; border: 1px solid #dcdcd4; background: var(--surface); }
.stat-dark { border-color: #10110f; background: #10110f; color: white; }
.stat-top, .stat-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-top { color: #73756e; font: 8px var(--mono); letter-spacing: .7px; }
.stat-dark .stat-top { color: #b8bab1; }
.stat-symbol { color: #676962; font-size: 15px; }
.symbol-lime { color: #8c9e38; }
.stat-dark .stat-symbol { color: var(--lime); }
.stat-value { margin-top: 6px; font-size: 37px; line-height: 1; font-weight: 750; letter-spacing: -2.4px; }
.stat-bottom { color: #85877f; font-size: 9px; }
.stat-dark .stat-bottom { color: #a0a299; }
.stat-index { font: 8px var(--mono); opacity: .68; }
.stat-accent { position: absolute; right: -20px; bottom: -28px; width: 78px; height: 78px; border: 1px solid #d7ff2f; border-radius: 50%; opacity: .2; }
.stat-accent::after { position: absolute; inset: 9px; border: 1px solid #d7ff2f; border-radius: 50%; content: ""; }

.section-grid { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(300px,.92fr); gap: 10px; margin-top: 13px; }
.panel { min-width: 0; border: 1px solid #dcdcd4; background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 12px; }
.panel-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
h2 { margin: 0; font-size: 15px; line-height: 1.2; letter-spacing: -.6px; font-weight: 800; }
.text-button { border: 0; background: none; color: #41433c; font-size: 9px; font-weight: 750; cursor: pointer; }
.text-button span { margin-left: 4px; color: var(--orange); font-size: 14px; }
.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 13px; border-top: 1px solid #e7e7e1; border-bottom: 1px solid #e7e7e1; color: #8a8c84; font: 8px var(--mono); letter-spacing: .6px; white-space: nowrap; }
td { padding: 11px 13px; border-bottom: 1px solid #efefe9; color: #383a34; font-size: 9px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.phone-cell { display: flex; align-items: center; gap: 8px; font-weight: 750; }
.phone-icon { display: grid; place-items: center; width: 24px; height: 24px; background: #f0f0e9; color: #33352f; font-size: 13px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #dce7ca; background: #f1f8e6; color: #42652e; font: 8px var(--mono); }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: #75a53f; content: ""; }
.status-badge.inactive { border-color: #e5e4df; background: #f2f2ef; color: #777970; }
.status-badge.inactive::before { background: #a1a39d; }
.role-pill { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid #deded7; background: #f5f5f0; color: #42443d; font: 8px var(--mono); }
.role-pill.owner { border-color: #d7ff2f; background: #eff8cc; }
.role-pill.partner { border-color: #d8d8d0; background: #f4f4ef; }
.role-pill.reseller { border-color: #f0d0bd; background: #fff4ec; color: #8a481f; }
.muted { color: #85877f; }
.table-action { width: 27px; height: 26px; border: 1px solid transparent; background: none; color: #70726a; cursor: pointer; }
.table-action:hover { border-color: #d4d5ca; background: #f5f5f0; color: #121310; }
.table-action-danger { color: #a43d2e; font-size: 16px; }
.table-action-danger:hover { border-color: #e5b8af; background: #fff1ee; color: #8c2418; }
.row-actions { display: flex; align-items: center; gap: 3px; }
.empty-state { display: grid; place-items: center; gap: 6px; min-height: 177px; padding: 24px; color: #7d7f77; text-align: center; }
.empty-state strong { color: #34362f; font-size: 11px; }
.empty-state p { margin: 0; font-size: 9px; }
.empty-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 3px; border: 1px solid #deded6; color: #777970; font-size: 16px; }
.hidden { display: none !important; }
.network-total { color: #777970; font: 8px var(--mono); letter-spacing: .5px; }
.network-visual { min-height: 248px; padding: 0 15px 14px; }
.network-root { position: relative; display: flex; justify-content: center; padding: 16px 0 24px; }
.network-root::after { position: absolute; bottom: 0; left: 50%; width: 1px; height: 18px; background: #c9cac1; content: ""; }
.network-node { display: flex; align-items: center; gap: 8px; min-width: 160px; padding: 9px; border: 1px solid #e0e0d9; background: #fff; }
.node-avatar { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; background: var(--lime); font: 8px var(--mono); font-weight: 500; }
.network-node strong, .network-node small { display: block; }
.network-node strong { font-size: 9px; }
.network-node small { margin-top: 3px; color: #85877f; font: 7px var(--mono); letter-spacing: .4px; }
.node-status { width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: #80a946; }
.network-branches { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 13px; }
.network-branches::before { position: absolute; top: 0; left: 25%; right: 25%; height: 1px; background: #c9cac1; content: ""; }
.branch-column { position: relative; display: grid; align-content: start; gap: 6px; }
.branch-column::before { position: absolute; top: -13px; left: 50%; width: 1px; height: 13px; background: #c9cac1; content: ""; }
.network-node.partner-node { min-width: 0; padding: 7px; background: #f7f7f1; }
.partner-node .node-avatar { width: 23px; height: 23px; background: #151613; color: white; }
.reseller-leaf { display: flex; align-items: center; gap: 6px; margin-left: 16px; padding: 6px 7px; border-left: 1px solid #c9cac1; color: #5d5f58; font-size: 8px; }
.reseller-leaf::before { width: 6px; height: 1px; margin-left: -7px; background: #c9cac1; content: ""; }
.leaf-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.network-hint { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ecece6; color: #888a82; font-size: 8px; line-height: 1.6; }
.network-hint span { padding-right: 4px; color: var(--orange); }
.footer-strip { display: flex; justify-content: space-between; gap: 12px; margin-top: 25px; padding: 10px 0 0; border-top: 1px solid #d7d8cf; color: #85877f; font: 8px var(--mono); letter-spacing: .45px; }
.footer-strip b { color: #22231f; font-weight: 500; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 27px 0 13px; }
.search-box { width: min(330px,100%); height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #d6d7ce; background: #fff; color: #777970; }
.search-box > span { font-size: 19px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: #20211e; font-size: 10px; }
.search-box input::placeholder { color: #9b9c95; }
.search-box:focus-within { border-color: #8a8c82; }
.filter-tabs { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid #dfdfd7; background: #edede6; }
.filter-tab { display: flex; align-items: center; gap: 7px; min-height: 25px; padding: 0 9px; border: 0; background: transparent; color: #74766e; font-size: 9px; cursor: pointer; }
.filter-tab b { font: 8px var(--mono); opacity: .7; }
.filter-tab.active { background: #fff; color: #191a17; box-shadow: 0 1px 2px #00000013; }
.full-table-panel { overflow: hidden; }
.full-table-panel .table-wrap { min-height: 210px; }
.data-table th { padding: 12px 15px; }
.data-table td { padding: 12px 15px; font-size: 10px; }
.data-table .empty-state { min-height: 205px; }
.table-footer { display: flex; justify-content: space-between; padding: 11px 14px; border-top: 1px solid #e7e7e1; color: #85877f; font: 8px var(--mono); }
.footer-green-dot { width: 5px; height: 5px; margin-left: 4px; vertical-align: 1px; }
.account-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 13px; }
.account-metric { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #deded7; background: white; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; background: #f1f1ea; font-size: 15px; }
.metric-icon.lime-metric { background: var(--lime); }
.account-metric small, .account-metric strong { display: block; }
.account-metric small { margin-bottom: 4px; color: #777970; font: 8px var(--mono); letter-spacing: .5px; }
.account-metric strong { font-size: 18px; letter-spacing: -1px; }
.account-list-heading { padding-bottom: 15px; }
.compact-search { width: 230px; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.settings-card { min-height: 305px; padding: 21px; }
.settings-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 24px; background: var(--lime); font-size: 17px; }
.orange-icon { background: #ffe0ce; color: #c25118; }
.settings-card h2 { margin-top: 0; font-size: 18px; }
.settings-card > p:not(.eyebrow) { max-width: 420px; color: #777970; font-size: 10px; line-height: 1.7; }
.role-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 20px; }
.role-option { min-width: 0; display: grid; gap: 7px; padding: 10px; border: 1px solid #deded7; background: #fff; text-align: left; cursor: pointer; }
.role-option:hover, .role-option.selected { border-color: #111; box-shadow: 2px 2px 0 var(--lime); }
.role-option > span { display: grid; place-items: center; width: 25px; height: 25px; background: #181916; color: white; font: 8px var(--mono); }
.role-option b { font-size: 9px; }
.role-option small { color: #777970; font-size: 8px; line-height: 1.4; }
.settings-note { display: flex; align-items: center; gap: 11px; margin-top: 21px; padding: 12px; border: 1px solid #e1e1d8; background: #f8f8f3; }
.settings-note strong, .settings-note small { display: block; }
.settings-note strong { font-size: 9px; }
.settings-note small { margin-top: 4px; color: #85877f; font-size: 8px; }
.settings-password-form { display: grid; gap: 10px; margin-top: 16px; }
.settings-password-form .button { justify-self: start; }
.reset-button { margin-top: 18px; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: #11130fc7; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { width: min(100%,480px); max-height: min(calc(100dvh - 36px),760px); display: flex; flex-direction: column; overflow: hidden; padding: 22px; border: 1px solid #10110f; background: #f8f8f2; transform: translateY(9px); transition: transform .2s ease; }
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-top { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; }
.modal-step { color: #7a7c74; font: 8px var(--mono); letter-spacing: .9px; }
.modal-close { width: 28px; height: 28px; border: 1px solid #d6d6cd; font-size: 19px; }
.modal h2 { flex: 0 0 auto; margin-top: 18px; font-size: 24px; letter-spacing: -1.3px; }
.modal-description { flex: 0 0 auto; margin: 8px 0 20px; color: #777970; font-size: 10px; line-height: 1.6; }
.modal-scroll-area { position: relative; display: flex; flex: 0 1 auto; min-height: 0; overflow: hidden; }
.modal-form { display: grid; flex: 0 1 auto; min-width: 0; min-height: 0; max-height: min(52vh,430px); gap: 13px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 2px 12px 2px 0; }
.modal-form::-webkit-scrollbar { display: none; }
.modal-scroll-track { position: absolute; top: 4px; right: 1px; bottom: 4px; width: 7px; border: 1px solid #deded7; background: #eeeee8; opacity: 0; pointer-events: none; transition: opacity .16s ease; touch-action: none; }
.modal-scroll-track.visible { opacity: 1; pointer-events: auto; cursor: pointer; }
.modal-scroll-track:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.modal-scroll-thumb { position: absolute; top: 0; left: 1px; width: 3px; min-height: 28px; background: #777970; transition: background .15s ease; }
.modal-scroll-track:hover .modal-scroll-thumb, .modal-scroll-track.dragging .modal-scroll-thumb { background: #171815; }
.field-label { display: grid; gap: 6px; color: #373932; font-size: 9px; font-weight: 750; }
.field-label small { color: #8b8d85; font-weight: 500; }
.field-label input, .field-label select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #d6d7cf; border-radius: 0; background: #fff; color: #171815; font-size: 10px; }
.role-select { position: relative; display: block; z-index: 1; }
.role-select.open { z-index: 3; }
.role-select-trigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border: 1px solid #cfd0c7; background: #fff; text-align: left; cursor: pointer; }
.role-select-trigger:hover, .role-select.open .role-select-trigger { border-color: #111; box-shadow: 2px 2px 0 var(--lime); }
.role-select-current, .role-select-option { display: flex; align-items: center; gap: 9px; min-width: 0; }
.role-select-current strong, .role-select-current small, .role-select-option strong, .role-select-option small { display: block; }
.role-select-current strong, .role-select-option strong { color: #1a1b17; font-size: 10px; }
.role-select-current small, .role-select-option small { margin-top: 3px; color: #81837a; font-size: 8px; font-weight: 500; }
.role-select-code { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; background: var(--lime); color: #111; font: 8px var(--mono); }
.role-select-code.reseller-code { background: #ffe0ce; color: #8a481f; }
.role-select-arrow { color: #71736b; font-size: 16px; transition: transform .16s ease; }
.role-select.open .role-select-arrow { transform: rotate(180deg); }
.role-select-menu { position: absolute; top: calc(100% + 5px); right: 0; left: 0; display: none; padding: 4px; border: 1px solid #171815; background: #fff; box-shadow: 4px 4px 0 #171815; }
.role-select.open .role-select-menu { display: grid; gap: 3px; }
.role-select-option { width: 100%; min-height: 44px; padding: 7px; border: 1px solid transparent; background: #fff; text-align: left; cursor: pointer; }
.role-select-option:hover, .role-select-option:focus-visible, .role-select-option.selected { border-color: #deded7; background: #f5f5ef; }
.role-select-option.selected { border-left: 3px solid var(--lime); }
.role-select-check { margin-left: auto; color: #66842d; font-size: 12px; opacity: 0; }
.role-select-option.selected .role-select-check { opacity: 1; }
.field-help { margin: -6px 0 0; color: #85877f; font-size: 8px; line-height: 1.55; }
.form-error { margin: 0; padding: 9px; border: 1px solid #eac4b1; background: #fff0e8; color: #973f17; font-size: 9px; }
.modal-submit { width: 100%; margin-top: 5px; }
.modal-foot { flex: 0 0 auto; margin-top: 17px; padding-top: 10px; border-top: 1px solid #deded7; color: #909189; font: 7px var(--mono); letter-spacing: .45px; }
.token-box { padding: 12px; border: 1px dashed #aeb49a; background: #eff4df; }
.token-box code { display: block; margin: 7px 0 11px; overflow-wrap: anywhere; color: #26291d; font: 10px var(--mono); }
.delete-confirmation { display: flex; align-items: start; gap: 11px; padding: 12px; border: 1px solid #e5b8af; background: #fff1ee; }
.delete-confirmation-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; background: #a83224; color: #fff; font: 12px var(--mono); }
.delete-confirmation p { margin: 2px 0 0; color: #713328; font-size: 9px; line-height: 1.65; }
.confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.confirmation-actions .button { min-height: 38px; }
.toast { position: fixed; z-index: 70; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid #10110f; background: #10110f; color: white; box-shadow: 4px 4px 0 var(--lime); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-check { display: grid; place-items: center; width: 18px; height: 18px; background: var(--lime); color: #111; font-weight: 800; }
.tooltip { position: absolute; z-index: 2; margin-top: 3px; padding: 5px 7px; background: #111; color: white; font: 8px var(--mono); white-space: nowrap; }

@media (min-width: 1500px) {
  .content-wrap { padding-right: 48px; padding-left: 48px; }
  .stat-card { min-height: 145px; padding: 17px 18px 14px; }
  .stat-value { font-size: 42px; }
}
@media (max-width: 1120px) {
  :root { --sidebar: 220px; }
  .topbar { padding: 0 24px; }
  .content-wrap { padding-right: 24px; padding-left: 24px; }
  .section-grid { grid-template-columns: 1fr; }
  .network-visual { min-height: auto; }
}
@media (max-width: 800px) {
  :root { --sidebar: 248px; }
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 8px 0 30px #0002; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .topbar { height: 54px; gap: 12px; padding: 0 17px; }
  .mobile-menu { display: grid; width: 28px; height: 28px; border: 1px solid #d7d7cf; }
  .breadcrumb { margin-right: auto; }
  .content-wrap { padding: 16px 17px 20px; }
  .page-heading { align-items: start; flex-direction: column; margin-top: 28px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 12px; }
  .content-wrap { padding-right: 12px; padding-left: 12px; }
  .demo-chip { font-size: 0; gap: 0; }
  .demo-chip i { width: 8px; height: 8px; }
  .topbar-actions { gap: 10px; }
  .demo-banner { align-items: start; }
  .demo-banner p { font-size: 9px; line-height: 1.55; }
  h1 { font-size: 31px; }
  .stat-card { min-height: 116px; padding: 11px; }
  .stat-value { font-size: 33px; }
  .stat-bottom { align-items: start; flex-direction: column; gap: 4px; }
  .date-strip { flex-wrap: wrap; gap: 8px; font-size: 7px; }
  .date-spacer, .date-caption { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-tabs { align-self: start; }
  .account-summary { grid-template-columns: 1fr; }
  .account-list-heading { align-items: stretch; flex-direction: column; }
  .compact-search { width: 100%; }
  .role-options { grid-template-columns: 1fr; }
  .role-option { grid-template-columns: 28px 1fr; align-items: center; }
  .role-option small { grid-column: 2; margin-top: -7px; }
  .footer-strip { font-size: 7px; }
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at 12% 15%, rgba(210, 231, 217, 0.58), transparent 35%),
    radial-gradient(ellipse at 88% 86%, rgba(244, 220, 190, 0.46), transparent 32%),
    #f4f3ed;
}

.login-card {
  width: min(100%, 440px);
  padding: 42px;
  border: 1px solid #e8e6dc;
  border-radius: 18px;
  background: #fffefa;
  box-shadow: 0 24px 80px rgba(42, 48, 39, 0.09);
}

.login-brand {
  margin-bottom: 42px;
}

.login-card > .eyebrow {
  margin-bottom: 14px;
}

.login-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 8vw, 2.6rem);
  letter-spacing: -0.055em;
}

.login-card .page-description {
  margin: 0;
  color: #74776f;
}

.login-form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.login-form .field-label {
  display: grid;
  gap: 8px;
  color: #454941;
  font-size: 0.82rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #deded4;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #262922;
  font: inherit;
}

.login-form input:focus {
  border-color: #547c5d;
  box-shadow: 0 0 0 3px rgba(84, 124, 93, 0.12);
}

.login-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 2px;
}

.login-error {
  margin: -6px 0 0;
  color: #a53d2f;
  font-size: 0.84rem;
  line-height: 1.5;
}

.login-footnote {
  margin: 28px 0 0;
  color: #85877e;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 520px) {
  .login-card {
    padding: 30px 24px;
  }
}
