/* Docflow 4.0 */
:root {
  --sidebar: #064c9b;
  --primary: #0865e8;
  --primary-hover: #0756c6;
  --app-bg: #f7f9fc;
  --text: #101d36;
  --text2: #68758d;
  --border: #e1e6ee;
  --radius: 12px;
}

.app-shell { grid-template-columns: 272px minmax(0, 1fr); }
.sidebar { background: linear-gradient(180deg, #064d9f 0%, #003f88 100%); border: 0; }
.brand { display: flex; align-items: center; gap: 14px; min-height: 116px; padding: 26px 28px; border: 0; }
.brand-mark { width: 52px; height: 52px; color: #fff; flex: 0 0 auto; }
.brand-mark svg, .nav-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.brand div { display: grid; gap: 2px; }
.brand strong { font-size: 23px; line-height: 1.1; }
.brand span { margin: 0; color: #fff; font-size: 20px; letter-spacing: 0; text-transform: none; }
.side-nav { gap: 6px; padding: 12px 14px; }
.side-link { min-height: 61px; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 16px; padding: 12px 16px; border-radius: 10px; color: #fff; font-size: 16px; font-weight: 600; }
.nav-icon { display: grid; place-items: center; width: 30px; height: 30px; padding: 2px; overflow: visible; }
.side-link.active { background: linear-gradient(100deg, rgba(18,117,236,.95), rgba(20,105,217,.75)); box-shadow: 0 5px 18px rgba(0,34,85,.18); }
.side-admin-link { width: auto; min-height: 61px; margin: auto 14px 6px; padding: 12px 16px; border: 0; border-radius: 10px; }
.side-admin-link.active { margin-top: auto; border-radius: 10px; background: linear-gradient(100deg, rgba(18,117,236,.95), rgba(20,105,217,.75)); box-shadow: 0 5px 18px rgba(0,34,85,.18); }
.side-admin-link:focus { outline: none; }
.side-admin-link:focus-visible { box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.profile { min-height: 142px; padding: 24px 22px; border-top: 1px solid rgba(255,255,255,.18); }
.sidebar .profile { margin-top: 0; }
.profile .avatar { width: 50px; height: 50px; font-size: 20px; background: #337dd0; }
.profile-info strong { max-width: 140px; color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-info span { margin-top: 5px; color: rgba(255,255,255,.82); font-size: 12px; text-transform: none; }
.profile-main { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.profile-main:hover .profile-info strong { text-decoration: underline; text-underline-offset: 3px; }
.profile .avatar, .profile-photo, .user-row-avatar { overflow: hidden; }
.profile .avatar img, .profile-photo img, .user-row-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }

.workspace { min-width: 0; padding: 0 0 48px; background: radial-gradient(circle at 55% -10%, #fff 0, #fafbfd 48%, #f6f8fb 100%); }
.view { max-width: 1500px; margin: 0 auto; padding: 40px 38px 0; }
.page-header { min-height: 74px; padding: 0; margin-bottom: 32px; align-items: flex-start; }
.page-header h1 { margin: 0 0 5px; color: var(--text); font-size: 34px; line-height: 1.2; letter-spacing: -.8px; }
.page-header p { margin: 0; color: var(--text2); font-size: 16px; }
.header-actions { align-items: center; gap: 20px; }
.search input { width: 340px; min-height: 50px; padding: 0 17px 0 44px; border-color: #d6dce6; border-radius: 9px; background-position: 15px center; font-size: 15px; }
.global-search { position: relative; }
.global-search-results { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(520px, 72vw); max-height: 420px; overflow-y: auto; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(18,40,76,.16); }
.global-search-section { padding: 7px 10px 5px; color: var(--text2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.global-search-result { width: 100%; display: grid; gap: 3px; padding: 11px 12px; border: 0; border-radius: 8px; color: var(--text); background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.global-search-result:hover, .global-search-result:focus-visible { background: #eef5ff; outline: none; }
.global-search-result strong { font-size: 14px; }
.global-search-result span { color: var(--text2); font-size: 12px; }
.global-search-empty { margin: 0; padding: 17px 12px; color: var(--text2); text-align: center; }
.primary-action, .secondary-action, .danger-action { min-height: 48px; padding: 0 22px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.primary-action { background: linear-gradient(135deg, #0872f5, #075bd6); box-shadow: 0 4px 10px rgba(6,96,224,.16); }

.today-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 24px; }
.today-metric { display: flex; align-items: center; gap: 20px; min-height: 120px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(26,46,80,.06); text-align: left; }
.today-metric > span:last-child { display: grid; gap: 3px; color: #28334a; font-size: 16px; }
.today-metric strong { color: #0865e8; font-size: 34px; line-height: 1; }
.today-metric:nth-child(2) strong { color: #ef7415; }
.today-metric:nth-child(3) strong { color: #12965b; }
.metric-icon, .work-row-icon { display: grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 14px; font-size: 27px; font-weight: 700; }
.metric-icon svg, .admin-overview-card svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.metric-icon.blue, .work-row-icon.blue { color: #0865e8; background: #e9f2ff; }
.metric-icon.orange, .work-row-icon.attention { color: #ed6b0d; background: #fff0e2; }
.metric-icon.green { color: #0b9756; background: #e6f7ee; }
.work-row-icon.danger { color: #e43e4c; background: #ffebed; }
.work-row-icon.process { color: #0865e8; background: #e9f2ff; }
.work-row-icon.waiting { color: #7a879e; background: #edf0f4; }
.work-card { overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(26,46,80,.05); }
.work-card > h2 { margin: 0; padding: 22px 24px; border-bottom: 1px solid var(--border); font-size: 20px; }
.work-row { min-height: 88px; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 15px 24px; border-bottom: 1px solid var(--border); }
.work-row:last-child { border-bottom: 0; }
.work-row-icon { width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.work-row strong { font-size: 15px; }
.work-row p { margin: 5px 0 0; color: var(--text2); font-size: 13px; }
.waiting-row { grid-template-columns: 42px minmax(0,1fr) auto 110px; }
.waiting-row time { color: var(--text2); text-align: right; }
.success-empty { color: var(--success); }

.request-metrics { display: flex; width: max-content; max-width: 100%; gap: 0; padding: 0; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 9px; background: #fff; overflow-x: auto; }
.request-metrics .metric-card { min-width: 190px; min-height: 58px; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; padding: 0 25px; border: 0; border-right: 1px solid var(--border); border-radius: 0; box-shadow: none; color: var(--text); background: #fff; font-family: inherit; cursor: pointer; }
.request-metrics .metric-card:hover { background: #f7faff; }
.request-metrics .metric-card.active { position: relative; z-index: 1; color: var(--primary); background: #f8fbff; box-shadow: inset 0 0 0 2px var(--primary); border-radius: 8px; }
.request-metrics .metric-card span { color: inherit; font-size: 14px; }
.request-metrics .metric-card strong { color: inherit; font-size: 14px; }
.toolbar { margin: 0 0 20px; padding: 0; background: transparent; border: 0; }
.toolbar > div:last-child { display: none; }
.requests-table-wrap { margin: 0; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(26,46,80,.05); }
.requests-table th { height: 62px; color: #53617c; font-size: 13px; text-transform: none; letter-spacing: 0; }
.requests-table td { height: 90px; padding-top: 16px; padding-bottom: 16px; }
.requests-table td:first-child { width: 40%; }
.requests-table td strong { color: var(--text); font-size: 14px; }
.requests-table td span { margin-top: 5px; color: #69758d; }
.table-action { min-width: 128px; color: var(--primary); border-color: var(--primary); background: #fff; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--border); color: var(--text2); }
.pagination .secondary-action { min-height: 38px; }

.queue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.segmented { display: flex; border: 1px solid var(--border); border-radius: 9px; background: #fff; overflow: hidden; }
.segmented button { min-height: 52px; padding: 0 25px; border: 0; border-right: 1px solid var(--border); color: #46536b; background: #fff; font-weight: 600; }
.segmented button:last-child { border: 0; }
.segmented button.active { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); border-radius: 8px; }
.segmented b { margin-left: 8px; }
#tasksView .assistant-panel { margin: 0; padding: 0; border-radius: 12px; }
#tasksView .assistant-issues { gap: 12px; margin-top: 0; }
#tasksView .assistant-issue { min-height: 120px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 22px 24px; overflow: hidden; background: #fff; }
#tasksView .assistant-issue-main { min-width: 0; display: grid; grid-template-columns: 138px minmax(0,1fr); column-gap: 22px; align-items: start; }
#tasksView .assistant-issue-meta { grid-row: 1 / span 3; align-self: center; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
#tasksView .assistant-issue-meta strong { max-width: 100%; line-height: 1.2; overflow-wrap: anywhere; }
#tasksView .assistant-issue-main h3 { margin: 0 0 5px; font-size: 15px; }
#tasksView .assistant-issue-main h3, #tasksView .assistant-issue-main p, #tasksView .assistant-issue-main small { min-width: 0; overflow-wrap: anywhere; }
#tasksView .assistant-issue-main p, #tasksView .assistant-issue-main small { grid-column: 2; }
#tasksView .assistant-issue-main p { margin: 0 0 7px; }
#tasksView .assistant-issue-actions { flex-wrap: wrap; justify-content: flex-end; }
#tasksView .assistant-issue-actions .secondary-action,
#tasksView .assistant-issue-actions .primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
}
#tasksView .assistant-issue-actions .secondary-action { text-decoration: none; }
.task-action-result { margin: -12px 0 18px; }

.wizard-progress { display: flex; align-items: center; gap: 0; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.wizard-progress button { min-height: 62px; flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 0; border-right: 1px solid var(--border); color: var(--text2); background: #fff; font-weight: 600; }
.wizard-progress button.active { color: var(--primary); background: #eef5ff; }
.wizard-progress button b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #edf0f4; }
.wizard-progress button.active b { color: #fff; background: var(--primary); }
#draftSavedAt { padding: 0 18px; color: var(--text2); font-size: 11px; white-space: nowrap; }
.wizard-form { margin: 0; }
.wizard-hidden { display: none !important; }
.tracker-requisites { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #cfe0f7; border-radius: 9px; background: #f5f9ff; }
.tracker-requisites[hidden] { display: none; }
.tracker-requisites span { color: var(--text2); font-size: 12px; line-height: 1.45; }
.tracker-requisites a { color: var(--primary); font-weight: 600; }
.requisites-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.file-upload-action { display: inline-flex; align-items: center; justify-content: center; margin: 0; cursor: pointer; }
.file-upload-action input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.wizard-review { padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.wizard-form .form-actions { position: sticky; bottom: 0; z-index: 3; margin: 24px -28px -28px; padding: 16px 28px; background: rgba(255,255,255,.96); border-top: 1px solid var(--border); }

.next-step-card { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 22px; padding: 24px 28px; border: 1px solid #f6c99d; border-radius: 12px; background: #fffaf5; }
.next-step-card > div > span { color: #ed6b0d; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-step-card h2 { margin: 8px 0 5px; font-size: 18px; }
.next-step-card p { margin: 0; color: var(--text2); }
.next-step-card.process { border-color: #bcd7ff; background: #f5f9ff; }
.next-step-card.danger { border-color: #ffc5ca; background: #fff7f8; }
.integration-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 22px; border: 1px solid var(--border); border-radius: 11px; background: #fff; overflow: hidden; }
.integration-link { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 22px; border-right: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.integration-link:last-child { border: 0; }
.integration-link b { color: #8792a7; }
.integration-link.ready b { color: var(--success); }
.integration-link.attention b { color: #ed6b0d; }
.detail-tabs { display: flex; gap: 28px; margin: 4px 0 18px; border-bottom: 1px solid var(--border); }
.detail-tabs button { padding: 0 12px 14px; border: 0; border-bottom: 2px solid transparent; color: var(--text2); background: transparent; font-weight: 600; }
.detail-tabs button.active { color: var(--primary); border-color: var(--primary); }
.detail-workspace { margin: 0; padding: 0; }
.detail-card { border-radius: 12px; }

.admin-overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.admin-overview-card { min-height: 190px; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); box-shadow: 0 3px 12px rgba(26,46,80,.05); text-align: left; }
.admin-overview-card > span { grid-column: 1 / -1; color: var(--primary); font-size: 40px; line-height: 1; }
.admin-overview-card > span svg { width: 42px; height: 42px; }
.admin-overview-card strong { grid-column: 1 / -1; font-size: 17px; align-self: end; }
.admin-overview-card small { color: var(--text2); line-height: 1.5; }
.admin-overview-card b { align-self: center; color: var(--primary); font-size: 24px; }
.connection-card { padding: 24px; }
.connection-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.connection-head h2 { margin: 0 0 5px; }
.connection-head p { margin: 0; color: var(--text2); }
.connection-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.user-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; }
.user-row-avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; color: #0961cc; background: #e3efff; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.user-row-main { min-width: 0; padding: 4px 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.user-row-main h3 { margin-top: 0; }
.profile-open-button { min-height: 40px; padding: 0 10px; border: 0; color: var(--primary); background: transparent; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.profile-open-button:hover { text-decoration: underline; }

.profile-dialog { width: min(720px, calc(100% - 32px)); border: 0; border-radius: 14px; box-shadow: 0 24px 70px rgba(12, 31, 61, .24); }
.profile-dialog-content { padding: 28px; }
.profile-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.profile-dialog-head h2 { margin: 5px 0 0; color: var(--text); font-size: 25px; }
.profile-dialog-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; }
.profile-photo-column { display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; }
.profile-photo-column small { color: var(--text2); line-height: 1.4; }
.profile-photo { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; color: #0961cc; background: #e3efff; font-size: 42px; font-weight: 700; }
.profile-photo-column .secondary-action { width: 100%; min-height: 42px; padding: 0 12px; }
.profile-fields { display: grid; gap: 16px; }
.profile-fields label { display: grid; gap: 7px; color: #4d5a70; font-size: 13px; font-weight: 600; }
.profile-fields input { min-height: 46px; padding: 0 13px; border: 1px solid #d7dee8; border-radius: 8px; color: var(--text); background: #fff; font-family: inherit; font-size: 14px; }
.profile-fields input[readonly] { color: #69758b; background: #f5f7fa; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--border); }
.profile-facts div { display: grid; gap: 5px; padding: 13px; background: #fff; }
.profile-facts span { color: var(--text2); font-size: 12px; }
.profile-facts strong { color: var(--text); font-size: 13px; }
.profile-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.connection-item { min-height: 76px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 18px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.connection-logo { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 50%; color: var(--primary); font-weight: 800; }
.connection-state { color: #7a879d; }
.connection-state.connected { color: var(--success); }
#assistantView .assistant-grid { display: none; }
#assistantView > .assistant-panel { margin: 18px 0; }
.payments-sync-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.payments-month-field { display: grid; gap: 5px; color: var(--text2); font-size: 12px; font-weight: 600; }
.payments-month-field input { min-height: 40px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.payments-safe-note { color: var(--text2); font-size: 12px; }
.payments-preview-list { margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.payments-preview-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); }
.payments-preview-summary > div { display: grid; gap: 3px; padding: 16px; background: #f8faff; }
.payments-preview-summary strong { color: var(--primary); font-size: 22px; }
.payments-preview-summary span, .payment-preview-row span { color: var(--text2); font-size: 12px; }
.payment-preview-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(130px, .7fr) minmax(220px, 1.5fr) auto; align-items: center; gap: 18px; min-height: 78px; padding: 14px 16px; border-top: 1px solid var(--border); }
.payment-preview-row > div { display: grid; gap: 4px; min-width: 0; }
.payment-preview-row strong { overflow-wrap: anywhere; }
.payments-webhook-setup { display: grid; gap: 14px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.payments-webhook-setup h3 { margin: 0; font-size: 17px; }
.payments-webhook-setup ol { margin: 0; padding-left: 22px; color: var(--text2); line-height: 1.65; }
.payments-webhook-setup label { display: grid; gap: 7px; color: #4d5a70; font-size: 13px; font-weight: 600; }
.payments-webhook-setup input { min-height: 46px; padding: 0 13px; border: 1px solid #d7dee8; border-radius: 8px; }
.payments-loop-setup { display: grid; gap: 13px; margin-top: 22px; padding: 18px; border: 1px solid #dbe5f2; border-radius: 10px; background: #f8fbff; }
.payments-loop-setup h3, .payments-loop-setup p { margin: 0; }
.payments-loop-setup p { color: var(--text2); line-height: 1.5; }
.payments-loop-setup label { display: grid; gap: 7px; color: #4d5a70; font-size: 13px; font-weight: 600; }
.payments-loop-setup input { min-height: 46px; padding: 0 13px; border: 1px solid #d7dee8; border-radius: 8px; background: #fff; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 220px minmax(0,1fr); }
  .today-metrics, .admin-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-strip { grid-template-columns: repeat(2, 1fr); }
  .header-actions { width: 100%; }
  .page-header { flex-wrap: wrap; gap: 18px; }
  .search { flex: 1; }
  .search input { width: 100%; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: relative; height: auto; }
  .brand { min-height: 80px; }
  .side-nav { grid-template-columns: repeat(3, 1fr); }
  .side-link { min-height: 54px; grid-template-columns: 24px minmax(0,1fr); padding: 10px; font-size: 12px; }
  .side-admin-link { margin: 4px 14px; border: 0; }
  .global-search, .global-search .search, .global-search input { width: 100%; }
  .global-search-results { width: 100%; }
  .profile { display: none; }
  .view { padding: 24px 14px 0; }
  .page-header h1 { font-size: 27px; }
  .today-metrics, .admin-overview-grid, .connection-grid { grid-template-columns: 1fr; }
  .waiting-row, .work-row { grid-template-columns: 42px minmax(0,1fr); }
  .work-row > button, .work-row > .status-chip, .work-row > time { grid-column: 2; justify-self: start; }
  .queue-toolbar { align-items: stretch; flex-direction: column; }
  .segmented { overflow-x: auto; }
  .integration-strip { grid-template-columns: 1fr; }
  .wizard-progress { overflow-x: auto; }
  .wizard-progress button { min-width: 155px; }
  #draftSavedAt { display: none; }
  #tasksView .assistant-issue { grid-template-columns: 1fr; }
  #tasksView .assistant-issue-main { grid-template-columns: 118px minmax(0,1fr); }
  #tasksView .assistant-issue-actions { justify-content: flex-start; }
  .user-row { grid-template-columns: 46px minmax(0,1fr); }
  .user-row .assistant-issue-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
  .profile-dialog-grid { grid-template-columns: 1fr; }
  .payments-preview-summary { grid-template-columns: repeat(2, 1fr); }
  .payment-preview-row { grid-template-columns: 1fr; gap: 8px; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--app-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
}
