:root {
  color-scheme: dark;
  --bg: #111317;
  --bg-elevated: #171a20;
  --sidebar-bg: #15181d;
  --surface: #1b1f26;
  --surface-2: #20252d;
  --surface-3: #272d36;
  --surface-hover: #293240;
  --line: #303743;
  --line-soft: #252b34;
  --text: #edf1f7;
  --text-strong: #ffffff;
  --muted: #9aa4b2;
  --faint: #687486;
  --accent: #2f7cff;
  --accent-soft: rgba(47, 124, 255, 0.14);
  --accent-line: rgba(47, 124, 255, 0.42);
  --success: #20c76f;
  --success-soft: rgba(32, 199, 111, 0.12);
  --warning: #f59f25;
  --warning-soft: rgba(245, 159, 37, 0.13);
  --danger: #ef4d5a;
  --danger-soft: rgba(239, 77, 90, 0.12);
  --cyan: #18c6d3;
  --cyan-soft: rgba(24, 198, 211, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
  --radius: 8px;
  --sidebar: 256px;
  --topbar: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f7;
  --bg-elevated: #f7f9fc;
  --sidebar-bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef3f9;
  --surface-hover: #e9f0fa;
  --line: #d7deea;
  --line-soft: #e5eaf2;
  --text: #202733;
  --text-strong: #101622;
  --muted: #677386;
  --faint: #8b96a8;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.11);
  --accent-line: rgba(37, 99, 235, 0.34);
  --success: #0f9f58;
  --success-soft: rgba(15, 159, 88, 0.1);
  --warning: #b76b00;
  --warning-soft: rgba(183, 107, 0, 0.11);
  --danger: #d02f44;
  --danger-soft: rgba(208, 47, 68, 0.1);
  --cyan: #087e8d;
  --cyan-soft: rgba(8, 126, 141, 0.1);
  --shadow: 0 18px 50px rgba(33, 45, 70, 0.14);
  --shadow-soft: 0 8px 24px rgba(33, 45, 70, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1.12;
}

h2 {
  margin-bottom: 0;
  color: var(--text-strong);
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 0;
  color: var(--text-strong);
}

button,
a,
input,
select,
textarea {
  outline-color: var(--accent);
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    linear-gradient(180deg, var(--bg-elevated), var(--bg));
}

.login-card {
  width: min(420px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
}

.brand-lockup-large {
  font-size: 24px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.login-card h1 {
  margin: 30px 0 22px;
  font-size: 30px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-theme-toggle {
  position: fixed;
  right: 24px;
  top: 24px;
}

.crm-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar) minmax(924px, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
  padding: 20px 14px 16px;
}

.sidebar .brand-lockup {
  min-height: 42px;
  padding: 0 8px;
}

.sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  overflow: auto;
  padding-right: 2px;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav-heading,
.nav-item {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.nav-heading {
  cursor: default;
  font-weight: 750;
  padding: 0 10px;
}

.nav-item {
  cursor: pointer;
  font-weight: 650;
  padding: 0 10px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

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

.nav-item.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-item.child {
  min-height: 32px;
  margin-left: 22px;
  width: calc(100% - 22px);
  font-size: 13px;
  font-weight: 560;
}

.nav-icon,
.nav-dot {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.nav-dot {
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border: 1px solid var(--faint);
  border-radius: 50%;
}

.nav-icon::before,
.nav-icon::after,
.search-icon::before,
.filter-icon::before,
.button-plus::before,
.button-plus::after,
.close-button::before,
.close-button::after,
.icon-button::before {
  position: absolute;
  content: "";
}

.nav-icon.table::before {
  inset: 3px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.nav-icon.users::before {
  left: 4px;
  top: 3px;
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.nav-icon.users::after {
  left: 2px;
  top: 13px;
  width: 13px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.nav-icon.cash::before {
  inset: 4px 2px 3px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.nav-icon.chart::before {
  left: 4px;
  bottom: 3px;
  width: 2px;
  height: 10px;
  background: currentColor;
  box-shadow: 5px -4px 0 currentColor, 10px -7px 0 currentColor;
}

.nav-icon.doc::before {
  inset: 2px 4px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.nav-icon.bell::before {
  inset: 3px 5px 5px;
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 4px 4px;
}

.nav-icon.gear::before {
  inset: 3px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 12px;
}

.user-avatar {
  width: 22px;
  height: 22px;
  border: 2px solid var(--faint);
  border-radius: 50%;
}

.workspace {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  min-height: var(--topbar);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  padding: 0 24px;
  backdrop-filter: blur(12px);
}

.topbar-title {
  display: grid;
  gap: 2px;
}

.topbar-title strong {
  color: var(--text-strong);
  font-size: 18px;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.demo-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  padding: 0 12px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  padding: 0 12px;
  transition: background 140ms ease, border-color 140ms ease;
}

.theme-toggle:hover {
  border-color: var(--accent-line);
  background: var(--surface-hover);
}

.theme-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.theme-icon.sun {
  border: 2px solid var(--warning);
  border-radius: 50%;
  box-shadow:
    0 -6px 0 -4px var(--warning),
    0 6px 0 -4px var(--warning),
    6px 0 0 -4px var(--warning),
    -6px 0 0 -4px var(--warning);
}

.theme-icon.moon {
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -5px 0 0 var(--surface);
}

.workspace-scroll {
  min-width: 0;
  padding: 22px 24px 26px;
}

.screen {
  min-height: calc(100vh - var(--topbar) - 48px);
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.clients-toolbar {
  flex-wrap: wrap;
}

.clients-toolbar .field-row {
  width: 190px;
}

.clients-toolbar .field-row span {
  display: none;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  padding: 0 14px;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent);
}

.primary-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.ghost-button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.ghost-button:hover,
.secondary-button:hover {
  border-color: var(--accent-line);
  background: var(--surface-hover);
  color: var(--text);
}

.full-width {
  width: 100%;
}

.button-plus {
  position: relative;
  width: 16px;
  height: 16px;
}

.button-plus::before,
.button-plus::after {
  background: currentColor;
}

.button-plus::before {
  left: 7px;
  top: 1px;
  width: 2px;
  height: 14px;
}

.button-plus::after {
  left: 1px;
  top: 7px;
  width: 14px;
  height: 2px;
}

.search-field {
  position: relative;
  width: 290px;
}

.wide-search {
  width: 320px;
}

.search-field input,
.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  outline: none;
  padding: 0 12px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.search-field input {
  padding-left: 38px;
}

.search-field input::placeholder,
.field-row input::placeholder,
.field-row textarea::placeholder {
  color: var(--faint);
}

.search-field input:focus,
.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
}

.search-icon::before {
  inset: 1px 4px 4px 1px;
  border: 1.7px solid var(--faint);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 7px;
  height: 2px;
  background: var(--faint);
  content: "";
  transform: rotate(45deg);
}

.filter-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.filter-icon::before {
  inset: 2px;
  border: 1.7px solid var(--faint);
  clip-path: polygon(0 0, 100% 0, 62% 50%, 62% 100%, 38% 100%, 38% 50%);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.segmented-control {
  display: inline-flex;
  overflow: hidden;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.segmented-control button {
  min-width: 86px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  padding: 0 14px;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.tab {
  min-height: 36px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  padding: 0 0 2px;
}

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

.tab.active {
  border-color: var(--accent);
  color: var(--text-strong);
}

.table-frame {
  overflow: auto;
  min-height: 510px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.orders-screen .table-frame {
  min-height: calc(100vh - 218px);
}

.clients-table-frame {
  min-height: calc(100vh - 206px);
}

.table-frame.compact {
  min-height: 0;
}

.table-frame.embedded {
  margin-top: 14px;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: var(--surface-hover);
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-number {
  color: var(--text-strong);
  font-weight: 800;
}

.client-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.fake-checkbox {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
}

.link-button,
.client-actions-list button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  padding: 0;
  text-align: left;
}

.link-button:hover,
.client-actions-list button:hover {
  text-decoration: underline;
}

.muted-link {
  color: var(--text);
  font-weight: 750;
}

.status-badge {
  min-height: 28px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: var(--cyan-soft);
  color: var(--cyan);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0 10px;
}

.status-badge.blue {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-badge.orange {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge.green {
  background: var(--success-soft);
  color: var(--success);
}

.deadline-chip {
  display: block;
  width: max-content;
  margin-top: 6px;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
}

.positive {
  display: block;
  color: var(--success);
}

.empty-row {
  height: 300px;
  color: var(--muted);
  text-align: center;
  vertical-align: middle;
}

.table-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  padding: 0 18px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}

.blue-dot {
  background: var(--accent);
}

.purple-dot {
  background: #8f5cf7;
}

.orange-dot {
  background: var(--warning);
}

.green-dot {
  background: var(--success);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(4, 8, 14, 0.62);
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.new-order-drawer {
  width: min(920px, calc(100vw - var(--sidebar)));
}

.client-drawer {
  width: min(1120px, calc(100vw - 72px));
}

.drawer-scroll {
  overflow: auto;
  padding: 24px 28px 92px;
}

.drawer-header {
  margin-bottom: 20px;
}

.drawer-header h2,
.client-drawer-top h2 {
  font-size: 28px;
}

.drawer-form {
  display: grid;
  gap: 22px;
}

.form-section {
  display: grid;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.form-section:last-child {
  border-bottom: 0;
}

.form-section h3,
.client-profile h3 {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.field-row {
  display: grid;
  gap: 6px;
}

.field-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.field-row textarea {
  min-height: 88px;
  padding: 10px 12px;
  resize: vertical;
}

.split-fields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drawer-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 16px 28px;
}

.client-drawer-top {
  display: grid;
  align-items: center;
  grid-template-columns: 38px 1fr auto;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}

.client-drawer-top h2 {
  margin: 0;
}

.client-drawer-top strong {
  color: var(--muted);
  font-size: 22px;
}

.close-button {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.close-button:hover {
  border-color: var(--line);
  background: var(--surface-hover);
}

.close-button::before,
.close-button::after {
  left: 14px;
  top: 6px;
  width: 2px;
  height: 20px;
  background: var(--text);
}

.close-button::before {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

.client-drawer-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 220px minmax(0, 1fr);
}

.client-subnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  padding: 26px 12px;
}

.client-subnav span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  padding: 0 12px 8px;
  text-transform: uppercase;
}

.client-subnav button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  padding: 0 12px;
  text-align: left;
}

.client-subnav button:hover {
  background: var(--surface-hover);
}

.client-subnav button.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.client-content {
  overflow: auto;
  padding: 24px 28px 52px;
}

.client-profile {
  display: grid;
  gap: 16px;
}

.client-type-row {
  display: grid;
  align-items: end;
  gap: 24px;
  grid-template-columns: 360px 1fr;
}

.client-flags {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.mood {
  width: 32px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.mood.good {
  color: #f5c84c;
}

.mood.neutral {
  color: #e8ae32;
  box-shadow: 0 0 0 2px var(--line);
}

.balance-line {
  justify-self: start;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 14px;
  font-weight: 850;
  padding: 6px 10px;
}

.client-actions-list {
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding-top: 20px;
}

.client-actions-list button {
  width: max-content;
  border-bottom: 1px dotted currentColor;
  font-size: 18px;
}

.balance-inline {
  margin-top: 26px;
  color: var(--text);
  font-size: 15px;
}

.client-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.client-section-header h3 {
  margin: 0;
  font-size: 20px;
}

.cash-grid,
.cards-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
}

.cash-grid {
  grid-template-columns: minmax(360px, 520px) minmax(320px, 520px);
}

.cash-card,
.metric-card,
.data-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.cash-card {
  min-height: 260px;
  padding: 22px;
}

.accent-card {
  background: color-mix(in srgb, var(--surface-2) 78%, var(--accent-soft));
}

.add-card {
  display: grid;
  place-items: center;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.icon-button::before {
  left: 9px;
  top: 9px;
  width: 12px;
  height: 12px;
  border: 1.7px solid var(--muted);
  border-radius: 3px;
}

.money-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.money-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.money-list dt,
.money-list dd {
  margin: 0;
  font-size: 16px;
}

.money-list dd {
  color: var(--text-strong);
  font-weight: 800;
}

.muted-total {
  border-top: 1px dashed var(--line);
  color: var(--muted);
  padding-top: 12px;
}

.button-row {
  display: flex;
  gap: 10px;
}

.data-panel {
  padding: 22px;
}

.mini-table {
  display: grid;
  margin-top: 16px;
}

.mini-table div {
  display: grid;
  grid-template-columns: 160px 1fr 140px;
  border-top: 1px solid var(--line-soft);
  padding: 12px 0;
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-card span,
.metric-card small,
.muted-copy {
  color: var(--muted);
}

.metric-card strong {
  color: var(--text-strong);
  font-size: 26px;
  line-height: 1;
}

.settings-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar) - 48px);
}

.settings-menu {
  border-right: 1px solid var(--line);
  padding: 8px 18px 0 0;
}

.settings-menu h2 {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.settings-menu button {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  padding: 0 12px;
}

.settings-menu button:hover {
  background: var(--surface-hover);
}

.settings-menu button.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.settings-content {
  padding-left: 28px;
}

.settings-tabs {
  margin: 20px 0 26px;
}

.settings-form {
  display: grid;
  max-width: 760px;
  gap: 14px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 14px;
}

.toggle-row input {
  accent-color: var(--accent);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: var(--success);
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-weight: 750;
}

.support-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-soft);
}

.support-bubble span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

@media (max-width: 1280px) {
  body {
    min-width: 1024px;
  }

  :root {
    --sidebar: 232px;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .cash-grid,
  .cards-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
