:root {
  color-scheme: light;
  --canvas: #f2f4ef;
  --paper: #fff;
  --ink: #18261f;
  --muted: #53645b;
  --border: #dde5db;
  --green: #18372b;
  --green-hover: #254a38;
  --lime: #c7f477;
  --radius: 21px;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); min-width: 280px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, label:focus-within.upload {
  outline: 3px solid #58944e;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, p, dl, dd, ul, pre { margin: 0; }
h1, h2 { letter-spacing: -.035em; }
h1 { font-size: clamp(1.9rem, 3.1vw, 2.75rem); font-weight: 720; line-height: 1.09; }
h2 { font-size: 1.25rem; line-height: 1.2; }
fieldset { margin: 0; padding: 0; min-width: 0; border: 0; }
.muted { color: var(--muted); line-height: 1.5; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.panel-header, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head { margin-bottom: 13px; }
.section { margin-top: 29px; }
.content-panel { padding: clamp(19px, 3vw, 30px); }
.narrow { max-width: 660px; }
.starting { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); }
.start-error { max-width: 440px; margin: 56px auto; }

.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 1.31rem; font-weight: 760; letter-spacing: -.065em; line-height: 1; }
.brand-dark { color: #f7faef; }
.brand-mark { position: relative; flex: 0 0 35px; width: 35px; height: 35px; background: var(--lime); border-radius: 11px; display: inline-block; }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; background: #173527; border-radius: 3px; top: 9px; height: 17px; width: 4px; }
.brand-mark::before { left: 13px; transform: rotate(28deg); }
.brand-mark::after { left: 19px; transform: rotate(-28deg); }

.button { min-height: 45px; border: 1px solid transparent; border-radius: 11px; padding: 10px 17px; font-size: .9rem; font-weight: 660; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; line-height: 1.15; transition: background-color .16s ease, border-color .16s ease; }
.button.full { width: 100%; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: var(--green-hover); }
.secondary { background: #fff; border-color: #d6e0d5; color: var(--green); }
.secondary:hover { background: #ebf2e8; }
.bright { background: var(--lime); color: #152d21; }
.bright:hover { background: #d5faa0; }
.button.compact { min-height: 40px; padding: 8px 13px; font-size: .82rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.link-button { border: 0; background: transparent; color: var(--green); padding: 9px 0; font-size: .9rem; font-weight: 620; }
.link-button:hover, .text-link:hover, .back-link:hover { text-decoration: underline; }
.text-link, .back-link { display: inline-flex; gap: 7px; align-items: center; font-size: .86rem; font-weight: 660; color: #386146; }
.back-link { margin-bottom: 10px; font-weight: 580; }
.round-button { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--border); border-radius: 12px; display: grid; place-content: center; color: #315541; }
.round-button:hover { background: var(--canvas); }

.demo-strip { background: #e8efdf; color: #315040; padding: 7px clamp(13px, 3vw, 35px); border-bottom: 1px solid #dce5d3; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .78rem; line-height: 1.25; font-weight: 650; min-height: 35px; }
.demo-strip span, .demo-strip a { display: inline-flex; align-items: center; gap: 6px; }
.demo-strip a:hover { text-decoration: underline; }
.demo-strip i { width: 7px; height: 7px; border-radius: 50%; background: #608d37; }
.demo-strip .ico { width: 16px; height: 16px; }
.toast { position: fixed; inset: auto 18px calc(18px + var(--safe-bottom)) auto; z-index: 10; max-width: min(370px, calc(100vw - 36px)); padding: 13px 16px; border-radius: 12px; background: #19372d; color: #fff; box-shadow: 0 12px 28px #142b2340; font-size: .89rem; line-height: 1.4; }

.auth-layout { display: grid; grid-template-columns: 1.04fr 1fr; gap: 0; width: min(1480px, 100%); min-height: 100dvh; margin: 0 auto; padding: 18px; }
.demo-strip + .auth-layout { min-height: calc(100dvh - 35px); }
.auth-visual { isolation: isolate; position: relative; min-height: 580px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-radius: 26px; padding: clamp(28px, 4vw, 60px); color: #f7faef; background: #0c2a23; }
.auth-visual::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(180deg, #0c2923 0%, #0c292320 25%, transparent 56%, #0c2923de 89%, #0c2923 100%), url("/hero.png") 62% 49% / auto 74% no-repeat; }
.auth-visual h1 { font-size: clamp(3.1rem, 5.8vw, 5.55rem); letter-spacing: -.075em; line-height: .96; }
.auth-visual p { margin-top: 19px; font-size: clamp(.96rem, 1.6vw, 1.13rem); line-height: 1.5; color: #d6e6d6; max-width: 24ch; }
.auth-main { display: grid; place-items: center; padding: 30px clamp(24px, 5.9vw, 96px); }
.auth-card { width: min(410px, 100%); }
.auth-card h2 { font-size: clamp(1.7rem, 2.75vw, 2.25rem); line-height: 1.06; }
.auth-card > .muted { margin-top: 9px; font-size: .94rem; }
.auth-card .form-stack { margin-top: 26px; }
.remember-sign-in { display: flex; align-items: center; gap: 9px; min-height: 30px; font-size: .88rem; cursor: pointer; }
.remember-sign-in input { width: 17px; height: 17px; margin: 0; accent-color: #356450; flex: 0 0 17px; }
.auth-card .button.primary { min-height: 51px; margin-top: 4px; }
.auth-card .demo-start { margin-top: 11px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #e4eae1; padding: 4px; border-radius: 13px; margin-bottom: 27px; }
.segmented button { padding: 9px; border: 0; border-radius: 9px; background: transparent; font-weight: 630; color: var(--muted); font-size: .9rem; min-height: 40px; }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0c291c10; }
.inline-note { margin-top: 20px; background: #e5eedf; color: #2a503c; border: 1px solid #d5e2d0; border-radius: 12px; padding: 14px; line-height: 1.5; }
.mobile-brand { display: none; }

.onboarding { max-width: 590px; margin: 0 auto; padding: clamp(22px, 5vw, 60px) 18px; }
.onboarding-card { margin-top: 32px; padding: clamp(19px, 5vw, 40px); }
.onboarding-card > .tile { width: 50px; height: 50px; margin-bottom: 18px; }
.onboarding-card > h1 { font-size: clamp(1.7rem, 3.8vw, 2.3rem); }
.onboarding-card > .muted { margin: 9px 0 23px; }
.onboarding-card .button-row { margin-top: 23px; }
.onboarding-exit { margin-top: 14px; }
.admin-choices { display: grid; gap: 9px; }
.admin-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 13px; cursor: pointer; }
.admin-choice:has(:checked) { background: #f4faec; border-color: #a5bd94; }
.admin-choice input { width: 18px; height: 18px; accent-color: var(--green); }
.avatar { width: 37px; height: 37px; display: inline-grid; place-items: center; border-radius: 11px; background: #e7f4d9; color: #305137; font-weight: 750; }

.app-layout { display: grid; grid-template-columns: 234px minmax(0, 1fr); min-height: 100dvh; }
.demo-strip + .app-layout { min-height: calc(100dvh - 35px); }
.sidebar { align-self: stretch; display: flex; flex-direction: column; background: #fafbf8; border-right: 1px solid var(--border); padding: 26px 16px 20px; gap: 32px; }
.sidebar .brand { margin: 1px 9px 0; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #40594c; text-align: left; font-size: .9rem; line-height: 1.3; font-weight: 620; }
.nav-item.selected { background: #e7efdf; border-color: #e2eadc; color: #224631; }
.nav-item:hover { background: #edf2e9; }
.sidebar .logout { margin-top: auto; }
.workspace { min-width: 0; }
.workspace-content { max-width: 1180px; margin: 0 auto; padding: 34px clamp(19px, 3vw, 42px) 40px; }
.page-head { display: flex; align-items: end; gap: 16px; justify-content: space-between; margin-bottom: 23px; }
.page-head h1 { overflow-wrap: anywhere; }
.refresh { padding-inline: 13px; }
.dashboard-top { display: grid; grid-template-columns: minmax(0, 1.54fr) minmax(230px, 1fr); gap: 15px; }
.balance-card { isolation: isolate; position: relative; min-height: 234px; display: flex; align-items: center; border-radius: var(--radius); overflow: hidden; background: #0e2b24; color: #fff; padding: 27px clamp(22px, 4vw, 37px); }
.balance-card::before { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(90deg, #0e2b24 11%, #0e2b24ef 29%, #0e2b2465 61%, #0e2b2413 100%), url("/hero.png") right 53% / auto 145% no-repeat; }
.balance-content { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 8px; }
.balance-content > span { color: #d9e9da; font-size: .92rem; font-weight: 530; }
.balance-content > strong { margin-bottom: 12px; font-size: clamp(2.15rem, 4.25vw, 3.84rem); line-height: 1.03; font-weight: 730; letter-spacing: -.06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.account-card { padding: 19px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.identity-details { margin-top: 12px; }
.identity-details > div { display: grid; grid-template-columns: minmax(75px, 1fr) minmax(0, 1.3fr); align-items: center; gap: 12px; border-bottom: 1px solid #e9ede7; padding: 12px 0; }
.identity-details > div:last-child { border-bottom: 0; }
.identity-details dt { color: var(--muted); font-size: .86rem; }
.identity-details dd { justify-self: end; text-align: right; font-size: .92rem; font-weight: 660; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; border-radius: 999px; padding: 5px 9px; font-size: .73rem; font-weight: 690; line-height: 1.2; }
.badge > span { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-lime { background: #e6f3dc; color: #2c5e34; }
.badge-rose { background: #f8e5e1; color: #8a3d34; }
.badge-amber { background: #f9efcf; color: #75581b; }
.badge-slate { background: #e9efec; color: #4c5e53; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metrics.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { position: relative; display: grid; align-content: start; justify-items: start; gap: 5px; padding: 15px; min-height: 128px; }
.metric .tile { width: 35px; height: 35px; margin-bottom: 4px; }
.metric-label { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.metric strong { font-size: 1.65rem; line-height: 1.1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric > .ico { position: absolute; right: 12px; top: 13px; color: #6d8576; }
.tile { display: inline-grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.pale-green { background: #e7f2dc; color: #355f43; }
.pale-amber { background: #f8edcf; color: #775b25; }
.pale-rose { background: #f6e6e2; color: #924e47; }
.pale-slate { background: #edf1ef; color: #4a6153; }
.pale-lilac { background: #ece9f8; color: #62537d; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.quick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px; line-height: 1.25; font-size: .87rem; }
.quick .tile { width: 33px; height: 33px; }
.quick > .ico, .catalog-card > .ico { color: #6d8374; }
a.panel:hover { border-color: #a2bba2; background-color: #fbfcf9; }
.bottom-nav, .mobile-logout { display: none; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.account-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.account-heading h2 { overflow-wrap: anywhere; }
.account-heading p { font-size: .85rem; margin-top: 3px; }
.profile-avatar { flex: 0 0 49px; width: 49px; height: 49px; }

.form-stack { display: grid; justify-items: start; gap: 16px; }
.form-stack > :not(.button) { width: 100%; }
.field { display: grid; gap: 7px; font-size: .9rem; line-height: 1.35; font-weight: 650; min-width: 0; }
.field input:not([type="file"]), .field textarea { width: 100%; min-width: 0; height: 47px; border-radius: 10px; border: 1px solid #cfdacf; padding: 10px 12px; color: var(--ink); background: #fbfcfa; font-size: 1rem; font-weight: 450; }
.field textarea { height: auto; min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #66776e; opacity: 1; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; width: 100%; }
.password-wrap, .amount-wrap { position: relative; display: block; }
.field .password-wrap input, .field .amount-wrap input { padding-right: 50px; }
.password-toggle { position: absolute; right: 4px; top: 3px; width: 41px; height: 41px; background: transparent; border: 0; border-radius: 8px; color: var(--muted); display: grid; place-content: center; }
.password-toggle:hover { background: #eaf0e7; }
.amount-wrap > span { position: absolute; top: 11px; right: 15px; color: var(--muted); font-size: 1rem; }
.form-error { border: 1px solid #edd5d0; background: #fbefed; color: #853832; font-size: .86rem; line-height: 1.45; border-radius: 9px; padding: 9px 11px; }
.split-layout, .sale-layout { display: grid; grid-template-columns: minmax(290px, 1.2fr) minmax(270px, 1fr); align-items: start; gap: 17px; }
.upload-field legend { font-weight: 660; font-size: .9rem; }
.upload-field p { font-size: .83rem; margin: 4px 0 10px; }
.upload { cursor: pointer; overflow: hidden; position: relative; display: grid; justify-items: center; align-content: center; text-align: center; gap: 4px; min-height: 126px; padding: 12px 5px; background: #f7faf4; border: 1px dashed #b7cbb0; border-radius: 11px; font-size: .82rem; }
.upload:has(.upload-preview:not([hidden])) { min-height: 155px; padding-top: 100px; }
.upload > input { width: 1px; height: 1px; clip-path: inset(50%); position: absolute; }
.upload-preview { position: absolute; inset: 0 0 auto; width: 100%; height: 89px; object-fit: cover; }
.upload:has(.upload-preview:not([hidden])) .tile { display: none; }
.upload .tile { width: 35px; height: 35px; }
.file-label { color: #4a6853; font-size: .75rem; }
.inline-count { font-size: .8rem; padding: 3px 7px; background: #e5ede2; color: #375c45; border-radius: 8px; margin-left: 4px; vertical-align: 2px; }
.empty { display: grid; place-items: center; gap: 9px; padding: 31px 16px; text-align: center; }
.empty h2 { font-size: 1.04rem; }
.empty .muted { font-size: .85rem; max-width: 35ch; }
.skeleton { color: var(--muted); font-size: .9rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter { display: inline-flex; min-height: 40px; align-items: center; padding: 7px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: .82rem; background: #fff; color: #425c4c; font-weight: 630; }
.filter.selected { background: #e2ebdc; border-color: #ccdbc8; color: #244630; }
.result-list { list-style-type: none; padding: 0 14px; }
.result-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid #ecf0eb; }
.result-list li:last-child { border-bottom: 0; }
.result-main, .result-status { display: grid; gap: 4px; min-width: 0; }
.result-main strong { font-size: .91rem; overflow-wrap: anywhere; }
.result-main > span { color: var(--muted); font-size: .75rem; line-height: 1.35; overflow-wrap: anywhere; }
.result-status { justify-items: end; font-size: .85rem; text-align: right; }
.sale-layout .result-list .tile, .split-layout .result-list .tile { display: none; }
.sale-layout .result-list li, .split-layout .result-list li { grid-template-columns: minmax(0, 1fr) auto; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.catalog-card { position: relative; display: grid; justify-items: start; gap: 8px; padding: 18px 32px 18px 18px; }
.catalog-card strong { font-size: 1rem; overflow-wrap: anywhere; }
.catalog-card > span:not(.tile, .ico) { color: var(--muted); font-size: .86rem; }
.catalog-card > .ico { position: absolute; right: 12px; bottom: 18px; }
.brand-alfa { --offer-accent: #ef3124; --offer-ink: #c82218; --offer-line: #f1d2cf; --offer-tint: #fff4f2; }
.brand-vtb { --offer-accent: #008fce; --offer-ink: #0a3184; --offer-line: #cadcf5; --offer-tint: #edf6ff; }
.brand-yandex { --offer-accent: #ff4433; --offer-ink: #b5261a; --offer-line: #f2d4cf; --offer-tint: #fff3ef; }
.brand-split { --offer-accent: #368836; --offer-ink: #22552b; --offer-line: #c9e7b1; --offer-tint: #f2fbe9; }
.brand-courier { --offer-accent: #be6600; --offer-ink: #643b00; --offer-line: #f4df9c; --offer-tint: #fff8de; }
.branded { border-color: var(--offer-line); }
.catalog-card.branded { background: linear-gradient(140deg, var(--offer-tint), #fff 72%); }
.branded.catalog-card > .ico { color: var(--offer-accent); }
.catalog-logo { display: grid; place-items: center; height: 52px; max-width: 100%; overflow: hidden; }
.catalog-logo.category-logo { width: 80px; border-radius: 12px; background: #fff; }
.catalog-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-alfa .category-logo { width: 58px; }
.brand-alfa .category-logo img { object-fit: cover; transform: scale(1.65); }
.brand-vtb .category-logo img { object-fit: cover; }
.catalog-logo.product-logo { width: 124px; }
.brand-courier .product-logo img { object-fit: cover; }
.referral { display: grid; grid-template-columns: minmax(130px, 232px) minmax(0, 1fr); gap: clamp(16px, 4vw, 42px); align-items: center; padding: clamp(16px, 3.5vw, 35px); }
.referral-without-link { grid-template-columns: minmax(0, 1fr); }
.referral-logo { width: min(180px, 100%); height: auto; }
.referral.brand-courier .referral-logo { height: 64px; object-fit: cover; }
.referral.branded .reward dd { color: var(--offer-ink); }
.referral.branded .button.primary { background: var(--offer-ink); border-color: var(--offer-ink); color: #fff; }
.referral.branded .button.primary:hover { filter: brightness(.85); }
.target-action { padding: 12px 14px; border: 1px solid var(--offer-line, var(--border)); border-radius: 11px; background: var(--offer-tint, #f5f8f4); }
.target-action strong { font-size: .86rem; }
.target-action p { margin-top: 5px; font-size: .86rem; line-height: 1.5; }
.sale-target[hidden] { display: none; }
.sale-target .field textarea { min-height: 86px; }
.referral-qr { aspect-ratio: 1; background: #fff; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; padding: 8px; text-align: center; font-size: .86rem; }
.referral-qr img { width: 100%; height: auto; image-rendering: pixelated; }
.referral-detail { display: grid; gap: 16px; }
.reward dt { font-size: .85rem; color: var(--muted); }
.reward dd { letter-spacing: -.055em; font-size: clamp(1.75rem, 4.1vw, 2.75rem); font-variant-numeric: tabular-nums; font-weight: 720; overflow-wrap: anywhere; }
.reward.available { padding-bottom: 17px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.withdrawal-terms { font-size: .82rem; line-height: 1.45; }
[data-withdrawal-quote]:empty { display: none; }
.withdrawal-quote { margin: 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 11px; background: #f6f9f5; }
.withdrawal-quote div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .87rem; }
.withdrawal-quote dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.withdrawal-quote .withdrawal-total { font-weight: 720; }
.withdrawal-quote div + .withdrawal-total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.demo-inbox { width: min(100% - 36px, 1050px); margin: 20px auto 40px; }
.demo-inbox > .brand { margin-bottom: 21px; }
.inbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inbox-item { align-self: start; padding: 17px; display: grid; gap: 12px; }
.inbox-item pre { font-family: inherit; font-size: .87rem; line-height: 1.47; white-space: pre-wrap; overflow-wrap: anywhere; }
.proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.proofs img { display: block; width: 100%; height: 115px; object-fit: contain; background: #eef3eb; border-radius: 8px; }

.ico { display: inline-block; position: relative; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.ico::before, .ico::after { position: absolute; content: ""; }
.ico-home::before { width: 12px; height: 12px; top: 4px; left: 4px; border: 1.6px solid currentColor; border-width: 1.6px 0 0 1.6px; border-radius: 2px 0 0; transform: rotate(45deg); }
.ico-home::after { top: 9px; width: 12px; height: 8px; left: 4px; border: 1.6px solid currentColor; border-top: 0; border-radius: 0 0 2px 2px; }
.ico-person::before { width: 7px; height: 7px; top: 2px; left: 6.5px; border: 1.6px solid; border-radius: 50%; }
.ico-person::after { top: 11px; left: 3px; width: 14px; height: 7px; border: 1.6px solid; border-radius: 6px 6px 2px 2px; }
.ico-plus::before, .ico-close::before { top: 9px; left: 4px; width: 12px; height: 1.7px; background: currentColor; border-radius: 2px; }
.ico-plus::after, .ico-close::after { top: 4px; left: 9px; width: 1.7px; height: 12px; background: currentColor; border-radius: 2px; }
.ico-close { transform: rotate(45deg); }
.ico-list::before { inset: 2px 4px; border: 1.6px solid; border-radius: 2px; }
.ico-list::after { top: 7px; left: 7px; width: 6px; height: 1.5px; background: currentColor; box-shadow: 0 4px 0 currentColor; }
.ico-link::before, .ico-link::after { top: 7px; width: 10px; height: 6px; border: 1.6px solid; border-radius: 5px; transform: rotate(-42deg); }
.ico-link::before { left: 2px; top: 9px; border-right-color: transparent; }
.ico-link::after { left: 8px; top: 4px; border-left-color: transparent; }
.ico-wallet::before, .ico-card::before { inset: 4px 2px; border: 1.6px solid; border-radius: 3px; }
.ico-wallet::after { top: 8px; right: 2px; width: 5px; height: 4px; border: 1.6px solid; border-right: 0; border-radius: 2px 0 0 2px; }
.ico-card::after { top: 8px; right: 3px; left: 3px; border-top: 1.6px solid; }
.ico-help::before, .ico-clock::before { inset: 2px; border: 1.6px solid; border-radius: 50%; }
.ico-help::after { content: "?"; inset: 3px; text-align: center; font-size: .72rem; line-height: 14px; font-weight: 750; }
.ico-clock::after { top: 5px; left: 9px; width: 5px; height: 6px; border: 1.6px solid; border-width: 0 0 1.6px 1.6px; border-radius: 0 0 0 1px; }
.ico-check::before { width: 10px; height: 6px; left: 5px; top: 5px; border: 1.8px solid; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.ico-arrow::before, .ico-left::before, .ico-logout::before { height: 1.6px; top: 9px; left: 3px; width: 13px; background: currentColor; border-radius: 2px; }
.ico-arrow::after, .ico-left::after, .ico-logout::after, .ico-chevron::after { width: 7px; height: 7px; top: 6px; right: 4px; border: 1.6px solid; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.ico-left { transform: rotate(180deg); }
.ico-logout { border-left: 1.6px solid; border-radius: 2px; transform: scale(.86); }
.ico-chevron::after { right: 7px; width: 6px; height: 6px; top: 7px; }
.ico-arrow-diagonal::before { width: 10px; height: 1.6px; top: 9px; left: 5px; background: currentColor; border-radius: 2px; transform: rotate(-45deg); }
.ico-arrow-diagonal::after { width: 7px; height: 7px; top: 4px; right: 4px; border: 1.6px solid; border-width: 1.6px 1.6px 0 0; }
.ico-refresh::before { inset: 3px; border: 1.6px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.ico-refresh::after { top: 4px; right: 2px; width: 5px; height: 5px; border: 1.6px solid; border-width: 0 1.6px 1.6px 0; }
.ico-eye::before { left: 3px; top: 5px; width: 14px; height: 10px; border: 1.6px solid; border-radius: 10px / 7px; }
.ico-eye::after { left: 8px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.ico-copy::before { top: 3px; left: 4px; width: 8px; height: 10px; border: 1.6px solid; border-radius: 2px; }
.ico-copy::after { top: 7px; left: 8px; width: 8px; height: 10px; border: 1.6px solid; border-radius: 2px; background: var(--green); }
.ico-upload::before { inset: auto 3px 3px; height: 5px; border: 1.6px solid; border-top: 0; border-radius: 0 0 3px 3px; }
.ico-upload::after { left: 7px; top: 5px; width: 6px; height: 6px; border: 1.6px solid; border-width: 1.6px 0 0 1.6px; transform: rotate(45deg); }

@media (max-width: 1050px) {
  .app-layout { grid-template-columns: 204px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .split-layout, .sale-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .auth-layout { display: block; padding: 0; }
  .auth-visual { display: none; }
  .auth-main { display: block; max-width: 500px; margin: 0 auto; padding: 18px 18px calc(30px + var(--safe-bottom)); }
  .auth-card { width: auto; padding: 25px 19px; margin-top: 17px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
  .mobile-brand { display: flex; justify-content: space-between; align-items: center; }
  .workspace-brand { padding: 10px 15px; border-bottom: 1px solid var(--border); background: #fbfcfa; min-height: 60px; }
  .app-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .workspace-content { padding: 20px 14px calc(90px + var(--safe-bottom)); }
  .page-head { margin-bottom: 17px; }
  .dashboard-top { gap: 11px; }
  .account-card { padding: 13px; }
  .balance-card { min-height: 190px; padding: 18px; }
  .balance-card::before { background-size: auto, auto 137%; }
  .bottom-nav { position: fixed; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 5; inset: auto 0 0; background: #fafbf8; padding: 5px 6px max(6px, var(--safe-bottom)); border-top: 1px solid var(--border); }
  .bottom-nav a { min-height: 49px; display: grid; justify-items: center; align-content: center; gap: 3px; color: #50675a; border-radius: 8px; font-size: .71rem; font-weight: 650; }
  .bottom-nav a[aria-current="page"] { background: #e7efdf; color: #264e34; }
  .mobile-logout { display: inline-flex; margin-top: 17px; }
  .toast { bottom: calc(66px + var(--safe-bottom)); }
}

@media (max-width: 515px) {
  .dashboard-top, .account-grid, .inbox-grid { grid-template-columns: minmax(0, 1fr); }
  .balance-card { min-height: 181px; }
  .balance-content > strong { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .account-card .identity-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; gap: 6px; }
  .account-card .identity-details > div { display: block; border: 0; padding: 0; }
  .account-card .identity-details > div + div { padding-left: 8px; border-left: 1px solid #e9ede7; }
  .account-card .identity-details dd { text-align: left; margin-top: 4px; font-size: .82rem; }
  .account-card .identity-details dt { font-size: .76rem; }
  .account-card .panel-header h2 { font-size: 1rem; }
  .metrics, .quick-actions, .catalog-grid { gap: 7px; }
  .metric { min-height: 106px; padding: 10px 7px; }
  .metric > .ico { display: none; }
  .metric-label { font-size: .69rem; }
  .metric strong { font-size: 1.42rem; }
  .quick-actions { grid-template-columns: minmax(0, 1fr); }
  .quick { min-height: 51px; }
  .refresh { min-width: 43px; padding: 8px; }
  .refresh span:not(.ico) { display: none; }
  .section { margin-top: 23px; }
  .referral { grid-template-columns: minmax(0, 1fr); }
  .referral-qr { width: 215px; max-width: 100%; justify-self: center; }
  .catalog-card { padding: 14px 23px 14px 12px; }
  .catalog-card > .ico { right: 4px; bottom: 12px; }
  .result-list { padding-inline: 10px; }
  .result-list li { gap: 7px; grid-template-columns: minmax(0, 1fr) auto; }
  .result-list .tile { display: none; }
  .result-status .badge { max-width: 105px; font-size: .65rem; }
}

@media (max-width: 355px) {
  .field-row:not(.photo-row) { grid-template-columns: minmax(0, 1fr); }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .account-card .identity-details .badge { padding-inline: 5px; font-size: .65rem; }
  .metrics .metric-label { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
