:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  font-size: 14px;
  color: #eceeef;
  background: #151719;
  --ink: #eceeef;
  --muted: #9da3a9;
  --accent: #b7d2be;
  --accent-hover: #c8e0ce;
  --line: #303438;
  --surface: #1c1f22;
  --soft: #252a2d;
  --danger: #e6a0a0;
  --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #b7d2be55; outline-offset: 1px; border-color: var(--accent); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; font-weight: 600; line-height: 1.25; letter-spacing: -.8px; }
h2 { font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: -.15px; }
h3 { font-size: 14px; font-weight: 600; line-height: 1.5; }
strong { font-weight: 550; }
small { font-size: 12px; }
svg { width: 19px; height: 19px; flex-shrink: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.shell { display: grid; grid-template-columns: 216px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #111315; border-right: 1px solid #292d30; padding: 29px 15px 18px; display: flex; flex-direction: column; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 25px; font-weight: 600; letter-spacing: -1px; color: var(--ink); }
.brand img { width: 29px; height: 29px; }
.sidebar > .brand { padding-left: 10px; }
.workspace-switch { display: flex; gap: 10px; align-items: center; padding: 13px 9px; margin: 26px 0 21px; border-top: 1px solid #292d30; border-bottom: 1px solid #292d30; min-width: 0; }
.space-icon { display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.space-icon svg { width: 17px; height: 17px; }
.workspace-switch strong { display: block; max-width: 138px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.workspace-switch small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav button { display: flex; align-items: center; gap: 12px; text-align: left; min-height: 42px; padding: 11px 12px; border-radius: 7px; background: none; color: #a7adb2; font-size: 13px; }
.nav button:hover { background: #1b1e20; color: var(--ink); }
.nav button.active { background: #262e29; color: #d1e5d6; }
.nav button svg { width: 18px; height: 18px; }
.nav-count { margin-left: auto; font-size: 10px; color: #9ba5a0; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.user-bar { display: flex; align-items: center; gap: 9px; border-top: 1px solid #292d30; padding: 18px 4px 0; }
.user-bar > div { min-width: 0; flex: 1; }
.user-bar strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-bar small { display: block; color: var(--muted); margin-top: 4px; font-size: 10px; }
.user-bar .icon-button { flex-shrink: 0; width: 29px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #2c3230; color: #bfcac3; border: 1px solid #3b4440; font-size: 11px; font-weight: 550; flex-shrink: 0; }
.avatar.a1 { color: #c2c8d0; background: #2c3037; border-color: #3d444e; }
.avatar.a2 { color: #d3c8bb; background: #34302a; border-color: #494239; }
.avatar.a3 { color: #d0c2c8; background: #332c30; border-color: #473b41; }
.main { min-width: 0; width: 100%; max-width: 1490px; padding: 0 38px 26px; margin: 0 auto; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 31px; border-bottom: 1px solid #292d30; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: #8f969c; font-size: 12px; min-width: 0; }
.breadcrumbs svg { width: 13px; height: 13px; color: #626b73; }
.breadcrumbs span { color: #c8cdd0; }
.period { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; background: var(--surface); color: #a8afb4; }
.period svg { width: 16px; height: 16px; }
.period input { border: 0; padding: 0; font-size: 12px; background: transparent; color: var(--ink); width: 151px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-title p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 9px 13px; border: 1px solid #41474b; border-radius: 7px; background: #252a2d; color: #e0e4e6; font-size: 12px; line-height: 1.4; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { background: #30363a; border-color: #596169; }
.button.primary, .button.dark { background: var(--accent); border-color: var(--accent); color: #1c2a20; }
.button.primary:hover, .button.dark:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.button.danger { background: #332526; border-color: #5b3a3c; color: #efb0b0; }
.button.danger:hover { background: #432d2f; }
.button svg { width: 15px; height: 15px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.icon-button { width: 33px; height: 33px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #a0a9af; border-radius: 6px; }
.icon-button:hover { background: #30363a; color: var(--ink); }
.icon-button svg { width: 17px; height: 17px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: #bfcdc3; padding: 5px 0; font-size: 12px; line-height: 1.5; }
.text-button:hover { color: #ecf7ee; }
.text-button svg { width: 14px; height: 14px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 13px; color: #c6baa0; background: #28251f; border: 1px solid #413b2e; border-radius: 7px; font-size: 11px; line-height: 1.6; margin-bottom: 25px; }
.banner svg { width: 16px; height: 16px; }
.stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 25px; padding: 23px 0; }
.stat { padding: 0 25px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border: 0; }
.stat-label { color: #b6bdc2; font-size: 12px; }
.stat-amount { font-size: 31px; font-weight: 500; letter-spacing: -1px; font-variant-numeric: tabular-nums; margin: 13px 0 9px; line-height: 1.2; }
.stat-note { font-size: 11px; line-height: 1.6; color: #91999f; }
.stat:nth-child(2) .stat-amount { color: #bfd6c5; }
.setup-strip { display: flex; justify-content: space-between; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 21px; margin-bottom: 25px; }
.setup-strip strong { font-size: 13px; }
.setup-strip p { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 6px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 286px; align-items: start; gap: 23px; }
.stack { display: grid; gap: 22px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 22px; }
.panel-header p { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.panel-header > svg { width: 17px; height: 17px; color: #7f898f; }
.panel-body { padding: 0 22px 20px; }
.panel-body.padded { padding-top: 20px; }
.panel-footer { border-top: 1px solid var(--line); padding: 14px 22px; font-size: 11px; color: #91999f; line-height: 1.7; }
.count { display: inline-block; margin-left: 7px; padding: 1px 6px; color: #9fa8ae; background: #2c3135; border-radius: 5px; font-size: 10px; vertical-align: 2px; font-weight: 500; }
.collection { display: flex; align-items: center; gap: 13px; padding: 0 22px 21px; color: #9da8a1; font-size: 10px; white-space: nowrap; }
.progress { flex: 1; height: 3px; background: #343c36; border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: #aac3b2; border-radius: inherit; }
.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 15px 20px; border-top: 1px solid var(--line); }
th { font-size: 10px; color: #a0a8ae; font-weight: 500; white-space: nowrap; background: #191c1e; }
td { color: #cdd3d7; }
tbody tr:hover { background: #22272a; }
th:last-child, td:last-child { text-align: right; }
.balance-table th, .balance-table td { padding-left: 15px; padding-right: 15px; }
.balance-table th:first-child, .balance-table td:first-child { padding-left: 22px; }
.balance-table th:last-child, .balance-table td:last-child { padding-left: 0; padding-right: 13px; }
.member-cell { display: flex; align-items: center; gap: 11px; min-width: 110px; }
.member-cell strong { display: block; font-size: 12px; color: #e3e7e9; }
.member-cell small, .contact-cell small { display: block; margin-top: 5px; color: #949da3; font-size: 11px; line-height: 1.5; }
.contact-cell { overflow-wrap: anywhere; min-width: 165px; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; color: #e1e7e9; }
.numeric { text-align: right; }
.settled-amount { color: #b2cbb9; }
.status { display: inline-flex; align-items: center; gap: 5px; background: #292e32; color: #aeb7bd; border: 1px solid #3a4247; padding: 3px 7px; border-radius: 5px; font-size: 10px; font-weight: 500; white-space: nowrap; line-height: 1.5; }
.status:before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status.paid, .status.ready, .status.accepted { color: #bbd7c2; background: #26342b; border-color: #3b5041; }
.status.partial, .status.pending, .status.unknown { color: #d6c39d; background: #342f24; border-color: #514733; }
.status.failed { color: #e2aaaa; background: #37292b; border-color: #53393c; }
.bill-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid #2c3135; }
.bill-row:first-child { border-top: 0; padding-top: 2px; }
.bill-row:last-child { padding-bottom: 0; }
.tile-icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 7px; border: 1px solid #363d42; background: #262c30; color: #9aa7ad; flex-shrink: 0; }
.tile-icon svg { width: 16px; height: 16px; }
.bill-meta { min-width: 0; flex: 1; }
.bill-meta strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bill-meta small { display: block; color: #8d979e; margin-top: 5px; font-size: 10px; }
.bill-row .amount { font-size: 11px; }
.quick-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 0; border-top: 1px solid #2c3135; text-align: left; background: transparent; color: #b4bec4; font-size: 12px; }
.quick-link:first-child { border-top: 0; }
.quick-link:last-child { padding-bottom: 0; }
.quick-link > svg { width: 16px; height: 16px; color: #8c999f; }
.quick-link > span { flex: 1; }
.quick-link > small { color: #8e9a9f; }
.quick-link > svg:last-child { width: 12px; height: 12px; }
.quick-link:hover { color: #e4ece6; }
.connection-row { display: flex; align-items: center; gap: 17px; padding: 19px 23px; border-top: 1px solid var(--line); }
.provider-icon { width: 37px; height: 37px; border: 1px solid #3c4545; border-radius: 8px; background: #293131; color: #b2c4c1; display: inline-grid; place-items: center; flex-shrink: 0; font-weight: 600; font-size: 14px; }
.provider-icon svg { width: 18px; height: 18px; }
.connection-name { flex: 1; min-width: 0; }
.connection-name h3 { font-size: 13px; overflow-wrap: anywhere; }
.connection-name p { color: var(--muted); margin-top: 5px; font-size: 11px; line-height: 1.6; }
.connection-row .button { margin-left: 10px; }
.page-help { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 860px; margin: 16px 0 29px; }
.section-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 31px 0 16px; }
.section-label span, .section-label small { font-size: 11px; color: var(--muted); }
.help-copy { font-size: 12px; color: var(--muted); line-height: 1.8; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 39px 24px; gap: 11px; }
.empty-icon { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; background: #282e31; color: #8d9c9b; border: 1px solid #394340; margin-bottom: 4px; }
.empty-icon svg { width: 19px; height: 19px; }
.empty h3 { font-size: 15px; font-weight: 550; }
.empty p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 370px; }
.empty .actions { margin-top: 7px; }
.empty .actions:empty { display: none; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 23px; align-items: start; }
.field { margin-bottom: 19px; min-width: 0; }
.field label { display: block; font-size: 12px; color: #ced5d9; font-weight: 500; line-height: 1.5; margin-bottom: 8px; }
.field input, .field select, .field textarea { background: #171a1c; border: 1px solid #3b4349; width: 100%; min-height: 41px; border-radius: 6px; color: #e7ecef; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: #7c858c; opacity: 1; }
.field input:disabled, .field select:disabled { color: #7c858c; background: #24292c; }
.field small { display: block; margin-top: 7px; color: #909ba2; font-size: 11px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid:has(>.field:only-child) { grid-template-columns: 1fr; }
.check-label { display: flex !important; align-items: flex-start; gap: 9px; font-size: 12px !important; font-weight: 400 !important; line-height: 1.7; color: #b1bdc4; margin: 14px 0; }
.check-label input { width: 16px !important; min-height: 16px !important; height: 16px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.checks .check-label { margin: 7px 0; }
.field-error { color: #f0abab; font-size: 12px; line-height: 1.7; margin: 11px 0; }
.field-error:empty { margin: 0; }
.form-divider { border-top: 1px solid var(--line); padding-top: 21px; margin: 24px 0 17px; }
.form-divider h3 { font-size: 13px; margin-bottom: 7px; }
.form-divider p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.filter-row { color: var(--muted); font-size: 12px; margin: -9px 0 18px; }
.activity-row { display: flex; align-items: flex-start; gap: 13px; padding: 20px 23px; border-top: 1px solid var(--line); }
.activity-row:first-child { border-top: 0; }
.activity-row > div { flex: 1; min-width: 0; }
.activity-row strong { font-size: 12px; line-height: 1.7; display: block; }
.activity-row p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 4px; overflow-wrap: anywhere; }
.activity-row .time { color: #818e97; font-size: 10px; margin-top: 7px; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; color: #818b92; font-size: 10px; padding-top: 21px; margin-top: 31px; border-top: 1px solid #292d30; }
.app-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.app-footer svg { width: 12px; height: 12px; }
.auth { min-height: 100vh; display: grid; place-items: center; background: #151719; }
.auth-main { width: 100%; padding: 50px 24px; }
.auth-box { width: 100%; max-width: 414px; margin: 0 auto; }
.auth-brand { margin-bottom: 43px; }
.auth-brand .brand { font-size: 30px; gap: 12px; }
.auth-brand .brand img { width: 34px; height: 34px; }
.auth-box h1 { font-size: 25px; margin-bottom: 10px; }
.auth-box > p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 29px; }
.auth-box .button[type=submit] { width: 100%; margin-top: 5px; min-height: 41px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.password-wrap button { position: absolute; right: 5px; top: 4px; }
.login-tail { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 25px; color: #818f95; font-size: 11px; }
.login-tail > span { display: inline-flex; align-items: center; gap: 6px; }
.login-tail svg { width: 12px; height: 12px; }
.login-tail button { background: none; color: #b6c7bd; font-size: 11px; padding: 4px 0; }
.loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 30px; color: var(--muted); font-size: 13px; text-align: center; }
.loading-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
dialog { padding: 0; border: 1px solid #444c50; border-radius: 12px; background: #1c1f22; color: var(--ink); width: min(610px,calc(100% - 32px)); max-height: 90vh; box-shadow: 0 30px 90px #0009; }
dialog::backdrop { background: #07090bb8; backdrop-filter: blur(3px); }
dialog.wide { width: min(690px,calc(100% - 32px)); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 25px 27px 22px; }
.modal-header h2 { font-size: 20px; font-weight: 550; letter-spacing: -.4px; }
.modal-header p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.modal-header .icon-button { margin: -3px -5px 0 0; flex-shrink: 0; }
.modal-body { padding: 0 27px 26px; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 23px; }
.modal-actions .danger { margin-right: auto; }
.statement-total { display: flex; justify-content: space-between; align-items: center; gap: 22px; border: 1px solid #3a4540; border-radius: 8px; background: #252e29; padding: 19px 20px; margin-bottom: 20px; }
.statement-total p { font-size: 12px; color: #c1cec6; line-height: 1.6; }
.statement-total small { color: #95a69b; font-size: 11px; margin-top: 6px; display: block; line-height: 1.6; }
.statement-total strong { font-size: 29px; font-weight: 500; letter-spacing: -.9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.statement-total.settled strong { color: var(--accent); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 23px; }
.tabs button { background: none; color: #9faab1; border-bottom: 2px solid transparent; padding: 12px 14px; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.tabs button.active { border-color: var(--accent); color: #d3e5d8; }
.tabs button svg { width: 15px; height: 15px; }
.statement-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.statement-line small { display: block; font-size: 10px; color: var(--muted); }
.statement-lines { margin-bottom: 22px; }
.message-bubble { white-space: pre-wrap; overflow-wrap: anywhere; background: #171b1d; border: 1px solid #35413c; padding: 19px; border-radius: 8px; margin: 19px 0; font-size: 12px; line-height: 1.9; color: #c4d0c9; }
.message-bubble:empty { display: none; }
.detail-section { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 23px; }
.detail-section h3 { font-size: 13px; margin-bottom: 12px; }
.detail-section > p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.payment-snapshot { white-space: pre-wrap; overflow-wrap: anywhere; background: #22292c; border: 1px solid #364045; border-radius: 7px; padding: 16px; margin-bottom: 22px; color: #acbcc3; font-size: 12px; line-height: 1.8; }
.payment-snapshot strong { display: block; color: #cedbd7; margin-bottom: 8px; }
.payment-snapshot a { color: var(--accent); }
.note { display: flex; align-items: flex-start; gap: 9px; background: #252c2e; color: #abbec4; border: 1px solid #354247; border-radius: 7px; padding: 13px 15px; font-size: 12px; line-height: 1.8; }
.note svg { width: 16px; height: 16px; margin-top: 2px; }
.note.warning { background: #2c281f; color: #c9ba99; border-color: #463d2b; }
.adapter-options { display: grid; grid-template-columns: 1fr; gap: 9px; }
.adapter-choice { display: flex; align-items: center; gap: 14px; width: 100%; background: #22272a; border: 1px solid #384147; border-radius: 8px; padding: 15px; text-align: left; color: var(--ink); }
.adapter-choice:hover { background: #2a3330; border-color: #677d6d; }
.adapter-choice strong { display: block; font-size: 13px; font-weight: 550; margin-bottom: 5px; }
.adapter-choice small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.config-heading { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 22px; }
.config-heading h3 { font-size: 13px; }
.config-heading p { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.secret-note { color: #a9c5b1 !important; }
.secret-note svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.spacer-top { margin-top: 20px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,12px); opacity: 0; pointer-events: none; border: 1px solid #4f6256; border-radius: 8px; background: #2b3830; color: #e0ebe3; box-shadow: 0 10px 35px #0005; padding: 13px 18px; max-width: min(90vw,600px); font-size: 12px; line-height: 1.7; z-index: 100; transition: opacity .15s,transform .15s; }
#toast.show { opacity: 1; transform: translate(-50%,0); }
#toast.error { background: #3a292c; border-color: #785155; color: #f6c4c6; }
.mobile-brand { display: none; }
@media(min-width:1500px) { .main { padding-left: 50px; padding-right: 50px; } .content-grid { grid-template-columns: minmax(0,1fr) 310px; } }
@media(max-width:1200px) { .main { padding-inline: 28px; } .content-grid { grid-template-columns: minmax(0,1fr); } .content-grid > .stack { grid-template-columns: 1fr 1fr; align-items: start; } .settings-grid { grid-template-columns: 1fr; } }
@media(max-width:850px) { .shell { grid-template-columns: 72px minmax(0,1fr); } .sidebar { align-items: center; padding: 27px 10px 18px; } .sidebar > .brand { padding: 0; } .sidebar .brand span,.workspace-switch,.nav-text,.nav-count,.user-bar > div,.user-bar > .icon-button { display: none; } .nav { margin-top: 40px; width: 100%; } .nav button { justify-content: center; padding: 12px; } .sidebar-bottom { width: 100%; } .user-bar { justify-content: center; padding-inline: 0; } .main { padding-inline: 24px; } .topbar { height: 73px; margin-bottom: 27px; } .stat { padding-inline: 20px; } .stat-amount { font-size: 28px; } .breadcrumbs { max-width: 55%; font-size: 11px; } }
@media(max-width:600px) {
 .shell { display: block; }
 .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: auto; padding: 8px 7px max(8px,env(safe-area-inset-bottom)); border-top: 1px solid #373e41; border-right: 0; background: #111517; }
 .sidebar > .brand,.sidebar-bottom { display: none; }
 .nav { margin: 0; display: grid; grid-template-columns: repeat(6,1fr); gap: 3px; }
 .nav button { display: flex; flex-direction: column; gap: 5px; font-size: 9px; padding: 8px 2px; min-height: 49px; border-radius: 6px; }
 .nav-text { display: inline; }
 .nav button svg { width: 18px; height: 18px; }
 .main { padding: 0 17px 100px; }
 .topbar { height: 68px; margin-bottom: 25px; }
 .breadcrumbs { display: none; }
 .mobile-brand { display: flex; font-size: 23px; gap: 8px; }
 .mobile-brand img { width: 27px; height: 27px; }
 .period { gap: 5px; padding: 7px 9px; }
 .period svg { width: 14px; height: 14px; }
 .period input { width: 132px; font-size: 11px; }
 h1 { font-size: 25px; }
 .page-title { align-items: flex-start; gap: 12px; margin-bottom: 23px; }
 .page-title p { font-size: 12px; margin-top: 6px; max-width: 240px; }
 .page-title > .button { font-size: 11px; min-height: 44px; padding: 8px 10px; gap: 5px; margin-top: 1px; }
 .page-title > .button svg { width: 13px; height: 13px; }
 .banner { align-items: flex-start; font-size: 10px; padding: 10px 11px; margin-bottom: 22px; }
 .banner svg { margin-top: 2px; }
 .stats { padding: 17px 0; margin-bottom: 21px; }
 .stat { padding: 0 12px; }
 .stat-label { font-size: 10px; }
 .stat-amount { font-size: clamp(17px,4.4vw,25px); margin: 12px 0 8px; letter-spacing: -.7px; }
 .stat-note { font-size: 9px; line-height: 1.6; }
 .content-grid,.stack { gap: 19px; }
 .content-grid > .stack { grid-template-columns: 1fr; }
 .panel-header { padding: 19px 17px; gap: 10px; }
 .panel-header h2 { font-size: 14px; }
 .panel-body { padding: 0 17px 19px; }
 .panel-footer { padding: 12px 17px; font-size: 10px; }
 .collection { padding: 0 17px 18px; gap: 9px; font-size: 9px; }
 .balance-table { min-width: 0; }
 .balance-table th:nth-child(2),.balance-table td:nth-child(2) { display: none; }
 .balance-table th,.balance-table td { padding-left: 9px; padding-right: 9px; }
 .balance-table .member-cell { min-width: 75px; gap: 7px; }
 .balance-table .member-cell strong { font-size: 11px; }
 .balance-table .amount { font-size: 11px; }
 .balance-table .status { font-size: 9px; padding-inline: 5px; }
 .balance-table .row-open { width: 44px; height: 44px; }
 th,td { padding: 13px 16px; }
 .balance-table th:first-child,.balance-table td:first-child { padding-left: 17px; }
 .member-cell { gap: 9px; }
 .member-cell .avatar { width: 28px; height: 28px; font-size: 10px; }
 .setup-strip { flex-direction: column; align-items: flex-start; padding: 17px; gap: 14px; }
 .setup-strip .actions { width: 100%; }
 .connection-row { padding: 17px; gap: 11px; flex-wrap: wrap; }
 .connection-name { flex-basis: calc(100% - 50px); }
 .connection-row > .status { margin-left: 48px; }
 .connection-row > .button { margin-left: auto; }
 .page-help { font-size: 11px; }
 .activity-row { padding: 18px 17px; gap: 10px; flex-wrap: wrap; }
 .activity-row > div { flex-basis: calc(100% - 45px); }
 .activity-row > .status { margin-left: 42px; }
 .empty { padding: 32px 20px; }
 .empty p { font-size: 11px; }
 .settings-grid { gap: 19px; }
 .field input,.field select,.field textarea { font-size: 16px; min-height: 44px; }
 .button,.button.small { min-height: 44px; }
 .modal-header .icon-button { width: 44px; height: 44px; }
 .form-grid { grid-template-columns: 1fr; gap: 0; }
 .auth-main { padding: 35px 24px; }
 .auth-brand { margin-bottom: 36px; }
 .auth-box h1 { font-size: 24px; }
 .auth-box > p { font-size: 12px; }
 .auth-box .field input,.auth-box .field select { font-size: 16px; }
 dialog,dialog.wide { width: calc(100% - 20px); max-height: 92vh; border-radius: 10px; }
 .modal-header { padding: 21px 19px 19px; }
 .modal-header h2 { font-size: 19px; }
 .modal-header p { font-size: 11px; }
 .modal-body { padding: 0 19px 22px; }
 .statement-total { padding: 16px; gap: 15px; }
 .statement-total strong { font-size: 25px; }
 .statement-total p { font-size: 11px; }
 .statement-total small { font-size: 10px; }
 .tabs { gap: 0; justify-content: space-between; }
 .tabs button { font-size: 11px; padding: 11px 7px; gap: 5px; }
 .tabs button svg { width: 13px; height: 13px; }
 .adapter-choice { padding: 13px; }
 .adapter-choice strong { font-size: 12px; }
 .modal-actions .button { font-size: 11px; padding: 9px 11px; }
 #toast { bottom: 85px; }
}
@media(prefers-reduced-motion:reduce) { *,*:before,*:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
