:root {
  color-scheme: dark;
  --page: #16171d;
  --surface: #202127;
  --ink: #f0f0f4;
  --muted: #a1a3b1;
  --line: #303139;
  --accent: #b4a0f4;
  --accent-hover: #8061d7;
  --accent-soft: #302940;
  --accent-solid: #7151c4;
  --on-accent: #ffffff;
  --secondary: #c2c2ce;
  --subtle: #a6a7b4;
  --inset: #292a32;
  --segmented: #202127;
  --selected: #34323f;
  --card-border: transparent;
  --divider: #303139;
  --scrollbar: #454650;
  --desktop: #101116;
  --backdrop: #090a10aa;
  --shadow: #00000018;
  --toast-bg: #eeeef4;
  --toast-text: #202127;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a1a3b1' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  --radius: 18px;
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f6f7f9;
  --surface: #ffffff;
  --ink: #1b1d26;
  --muted: #696d79;
  --line: #e1e3eb;
  --accent: #6947c9;
  --accent-hover: #6041b9;
  --accent-soft: #eee9fb;
  --accent-solid: #6947c9;
  --on-accent: #ffffff;
  --secondary: #555864;
  --subtle: #717580;
  --inset: #eeeff3;
  --segmented: #eaebf0;
  --selected: #ffffff;
  --card-border: transparent;
  --divider: #eff0f4;
  --scrollbar: #c8cad3;
  --desktop: #eef0f4;
  --backdrop: #1b1d2652;
  --shadow: #1b1d2608;
  --toast-bg: #1b1d26;
  --toast-text: #ffffff;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23696d79' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; background: transparent; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; font-weight: 680; line-height: 1.2; letter-spacing: -.9px; }
h2 { font-size: 20px; font-weight: 650; line-height: 1.3; letter-spacing: -.45px; }
svg { display: block; width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-shell { width: 100%; max-width: 600px; height: 100dvh; height: var(--app-height, 100dvh); margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--page); }
.app-header { flex: 0 0 auto; min-height: 76px; padding: calc(15px + var(--safe-top)) 22px 15px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--page); }
.wordmark { font-size: 27px; font-weight: 780; letter-spacing: -1.5px; line-height: 1; padding: 8px 0; }
.wordmark span { color: var(--accent); }
.balance-button { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; background: var(--surface); font-size: 14px; font-weight: 650; }
.balance-button svg { width: 18px; height: 18px; color: var(--accent); }
.balance-unit { font-size: 12px; font-weight: 450; color: var(--muted); }
.main-content { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; padding: 4px 20px 28px; }
.screen { min-width: 0; }
.page-heading { margin: 27px 0 20px; }
.page-heading p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.segmented-control { display: flex; align-items: center; padding: 4px; gap: 4px; border-radius: 15px; background: var(--segmented); }
.segmented-control button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 8px; border-radius: 11px; font-size: 14px; font-weight: 550; color: var(--muted); transition: color 140ms, background 140ms; }
.segmented-control button svg { width: 17px; height: 17px; }
.segmented-control button.active, .segmented-control button[aria-selected="true"] { color: var(--ink); background: var(--selected); box-shadow: 0 1px 3px var(--shadow); }
.signals-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; }
.signals-heading p { grid-column: 1 / -1; margin-top: 0; }
.filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; background: var(--surface); border-radius: 12px; font-size: 12px; font-weight: 550; }
.filter-button svg { width: 17px; height: 17px; }
.filter-button.is-filtered { background: var(--accent-soft); color: var(--accent); }
.filter-count { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-solid); color: var(--on-accent); font-size: 10px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; }
.card-list { display: flex; flex-direction: column; gap: 14px; }
.lead-card { min-width: 0; padding: 19px 18px 15px; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--surface); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.card-time { color: var(--muted); font-size: 12px; font-weight: 500; }
.card-time.fresh { color: var(--accent); }
.card-budget { font-size: 14px; font-weight: 650; letter-spacing: -.25px; white-space: nowrap; }
.card-tags, .detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 7px; background: var(--inset); color: var(--secondary); font-size: 11px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.card-tags .tag { gap: 5px; }
.card-tags .tag svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-tags .contact-icon { justify-content: center; width: 28px; padding: 4px; }
.card-tags .contact-icon svg { width: 15px; height: 15px; }
.card-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.55; letter-spacing: -.15px; overflow-wrap: anywhere; }
.card-title-link { display: block; width: 100%; padding: 0; text-align: left; font-size: inherit; font-weight: inherit; line-height: inherit; }
.card-title-link:hover { color: var(--accent); }
.card-kind { font-size: 17px; font-weight: 650; line-height: 1.4; letter-spacing: -.35px; }
.card-kind + .card-tags { margin-top: 11px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--divider); }
.save-button { display: inline-flex; justify-content: center; align-items: center; width: 44px; min-height: 44px; margin-left: -6px; border-radius: 12px; color: var(--subtle); }
.save-button svg { width: 20px; height: 20px; }
.save-button.is-saved { color: var(--accent); background: var(--accent-soft); }
.save-button.is-saved svg { fill: var(--accent-soft); }
.contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 650; line-height: 1.4; }
.contact-button svg { width: 15px; height: 15px; }
.contact-button.is-open { background: var(--inset); color: var(--secondary); }
.bottom-nav { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 18px calc(8px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 53px; border-radius: 13px; color: var(--muted); font-size: 10px; font-weight: 550; }
.bottom-nav button svg { width: 21px; height: 21px; }
.bottom-nav button.active, .bottom-nav button[aria-current="page"] { color: var(--accent); }
.bottom-nav button.active svg { fill: var(--accent-soft); }
.filter-form { display: flex; flex-direction: column; gap: 18px; }
.search-form { padding: 22px 20px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, label.field > span { font-size: 12px; font-weight: 550; color: var(--secondary); }
.field select, .field input, .field textarea { width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background-color: var(--page); font-size: 15px; }
.field select { appearance: none; padding-right: 36px; background-image: var(--select-arrow); background-position: right 13px center; background-repeat: no-repeat; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 13px 18px; border-radius: 13px; font-weight: 600; font-size: 14px; text-align: center; line-height: 1.4; }
.primary-button { background: var(--accent-solid); color: var(--on-accent); }
.primary-button:hover { background: var(--accent-hover); }
.primary-button svg { width: 18px; height: 18px; }
.secondary-button { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; padding: 9px 0; color: var(--accent); font-size: 13px; font-weight: 550; }
.search-form > .primary-button { margin-top: 5px; }
.section-caption { color: var(--muted); font-size: 12px; font-weight: 450; }
.quick-searches { margin: 23px 0 10px; }
.quick-search-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.quick-search-list button { min-height: 44px; padding: 10px 12px; border-radius: 11px; font-size: 12px; color: var(--secondary); background: var(--inset); }
.results-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 25px 0 16px; }
.load-more { margin-top: 18px; width: 100%; }
[data-screen="contacts"] > .segmented-control { margin-bottom: 23px; }
.profile-identity { display: flex; align-items: center; gap: 15px; margin: 28px 0 30px; }
.profile-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); color: var(--accent); font-size: 20px; font-weight: 600; }
.profile-avatar svg { width: 25px; height: 25px; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity h2 { font-size: 19px; overflow-wrap: anywhere; }
.profile-identity p { font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.profile-menu { margin-bottom: 18px; padding: 0 17px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); }
.settings-row { width: 100%; min-height: 62px; padding: 13px 0; display: flex; align-items: center; gap: 13px; text-align: left; }
.settings-row + .settings-row { border-top: 1px solid var(--line); }
.settings-row > svg:first-child { color: var(--subtle); width: 20px; height: 20px; }
.settings-row > span { flex: 1 1 auto; font-size: 14px; }
.settings-row strong { font-size: 14px; font-weight: 550; }
.settings-row small { color: var(--muted); font-size: 12px; }
.row-chevron { width: 15px; height: 15px; color: var(--subtle); margin-left: auto; }
.admin-link { padding: 13px 17px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 15px; }
.empty-state { padding: 45px 22px; text-align: center; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--surface); }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 19px; color: var(--accent); background: var(--accent-soft); border-radius: 16px; }
.empty-state h2 { font-size: 18px; letter-spacing: -.3px; }
.empty-state p { max-width: 310px; margin: 10px auto 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.empty-state .primary-button, .empty-state .secondary-button { margin-top: 23px; width: 100%; }
.empty-state .text-button { margin-top: 8px; }
.notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 13px 15px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 12px; line-height: 1.6; }
.notice p { margin: 0; }
.notice .text-button { font-size: 12px; }
.demo-banner { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 0 22px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.detail-screen { padding-top: 5px; }
.back-button { margin-bottom: 21px; color: var(--secondary); }
.back-button svg { width: 18px; height: 18px; }
.detail-title { font-size: 29px; font-weight: 650; letter-spacing: -.9px; line-height: 1.25; margin-bottom: 18px; overflow-wrap: anywhere; }
.detail-tags { margin-bottom: 24px; }
.detail-tags .tag { font-size: 12px; padding: 7px 10px; }
.detail-description { font-size: 16px; line-height: 1.75; color: var(--secondary); overflow-wrap: anywhere; }
.detail-description p + p { margin-top: 14px; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; margin: 28px 0; padding: 22px 20px; background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--radius); }
.detail-meta dt { color: var(--muted); font-size: 12px; }
.detail-meta dd { margin: 6px 0 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.detail-cta { width: 100%; margin-top: 8px; }
#detailContent > .muted { margin-top: 14px; font-size: 12px; line-height: 1.6; }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--accent); font-size: 14px; overflow-wrap: anywhere; }
.contact-links svg { width: 17px; height: 17px; }
.credit-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: var(--page); text-align: left; }
.credit-summary strong { display: block; font-size: 17px; font-weight: 650; }
.credit-summary p, .credit-summary span { color: var(--muted); font-size: 13px; }
.sheet { position: fixed; inset: auto 0 0; width: min(100%, 600px); max-width: 600px; max-height: 85dvh; margin: 0 auto; padding: 0; border: 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: var(--backdrop); }
.sheet-header { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 20px 9px; background: var(--surface); }
.sheet-header h2 { font-size: 20px; }
.sheet-header .icon-button { background: var(--page); color: var(--muted); }
.sheet-body { padding: 14px 22px calc(26px + var(--safe-bottom)); font-size: 14px; }
.sheet-body > p { color: var(--secondary); line-height: 1.7; margin-bottom: 18px; }
.sheet-body > .primary-button, .sheet-body > .secondary-button { width: 100%; margin-top: 16px; }
.sheet-body .field { margin-bottom: 17px; }
.toast { position: fixed; z-index: 20; bottom: calc(88px + var(--safe-bottom)); left: 50%; transform: translateX(-50%); max-width: min(90%, 500px); width: max-content; padding: 13px 18px; border-radius: 13px; background: var(--toast-bg); color: var(--toast-text); font-size: 13px; text-align: center; box-shadow: 0 5px 24px var(--shadow); }
.skeleton-card { min-height: 215px; padding: 20px; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--surface); }
.skeleton-card::before, .skeleton-card::after { content: ""; display: block; border-radius: 6px; background: var(--inset); animation: breathe 1.5s ease-in-out infinite alternate; }
.skeleton-card::before { width: 45%; height: 15px; }
.skeleton-card::after { margin-top: 30px; width: 100%; height: 67px; }
@keyframes breathe { to { opacity: .45; } }
@media (min-width: 640px) {
  body { background: var(--desktop); }
  .app-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .main-content { padding-left: 28px; padding-right: 28px; }
  .app-header { padding-left: 30px; padding-right: 30px; }
  .lead-card { padding: 21px 22px 16px; }
  .sheet { bottom: 24px; max-height: calc(85dvh - 24px); border-radius: 24px; }
}
@media (max-width: 359px) {
  .main-content { padding-left: 12px; padding-right: 12px; }
  .app-header { padding-left: 15px; padding-right: 15px; }
  h1 { font-size: 25px; }
  .balance-unit { display: none; }
  .lead-card { padding: 16px 14px 12px; }
  .contact-button { padding-left: 10px; padding-right: 10px; font-size: 11px; }
  .search-form { padding: 18px 16px; }
  .settings-row { gap: 9px; }
  .settings-row > span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* The same page hierarchy and controls work in both themes. */
[data-screen="base"] > .segmented-control { margin-bottom: 23px; }
.geography-trigger { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); text-align: left; font-size: 15px; }
.geography-trigger span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geography-trigger svg { width: 18px; height: 18px; color: var(--muted); }
.geography-trigger svg:last-child { width: 15px; height: 15px; }
.geography-search { display: block; width: 100%; min-height: 48px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); font-size: 16px; }
.geography-search::placeholder { color: var(--muted); opacity: 1; }
.geography-groups { display: flex; flex-direction: column; gap: 20px; }
.geography-group h3 { padding: 0 10px 7px; color: var(--muted); font-size: 12px; font-weight: 550; }
.geography-option, .selection-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px; border-radius: 11px; color: var(--ink); text-align: left; font-size: 14px; }
.geography-option svg, .selection-row svg { width: 18px; height: 18px; color: var(--accent); }
.geography-option[aria-pressed="true"], .selection-row[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 550; }
.geography-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.selection-list { display: flex; flex-direction: column; gap: 5px; }
.summary-label { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 11px; font-weight: 450; }
.summary-label svg { width: 15px; height: 15px; }
.contact-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.contact-channel { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 7px; background: var(--inset); color: var(--secondary); font-size: 11px; line-height: 1.4; }
.contact-channel svg { width: 14px; height: 14px; }
.geography-empty { padding: 26px 12px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
input, select, textarea { accent-color: var(--accent-solid); }
::selection { background: var(--accent-soft); color: var(--ink); }
@media (hover: hover) {
  .geography-option:hover, .selection-row:hover, .icon-button:hover, .save-button:hover { background: var(--inset); }
  .geography-option[aria-pressed="true"]:hover, .selection-row[aria-pressed="true"]:hover { background: var(--accent-soft); }
}

/* Browser sign-in is separate from the authenticated product surface. */
.auth-screen { display: grid; place-items: center; width: 100%; height: 100dvh; padding: max(24px, var(--safe-top)) 20px max(24px, var(--safe-bottom)); overflow: auto; overscroll-behavior: contain; background: var(--page); }
.auth-card { width: 100%; max-width: 440px; padding: 30px 24px; border-radius: 24px; background: var(--surface); }
.auth-brand { margin-bottom: 35px; font-size: 32px; }
.auth-card h1 { font-size: 28px; line-height: 1.2; }
.auth-context { margin-top: 15px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.google-sign-in { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 30px; max-width: 100%; }
.auth-status { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-status:empty { display: none; }
.auth-retry { width: 100%; margin-top: 16px; }
.auth-alternative { display: flex; justify-content: center; margin-top: 18px; }

/* A regular desktop browser is a workspace; Telegram keeps its compact Mini App. */
@media (min-width: 960px) {
  html:not([data-platform="telegram"]) .app-shell { display: grid; grid-template-columns: 188px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); width: 100%; max-width: 1240px; border: 0; }
  html:not([data-platform="telegram"]) .app-header { grid-column: 1 / -1; grid-row: 1; min-height: 88px; padding: 22px 36px; border-bottom: 1px solid var(--divider); }
  html:not([data-platform="telegram"]) .demo-banner { grid-column: 1 / -1; grid-row: 2; padding: 0 36px; }
  html:not([data-platform="telegram"]) .main-content { grid-column: 2; grid-row: 3; min-width: 0; padding: 7px 36px 40px; }
  html:not([data-platform="telegram"]) .bottom-nav { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; align-items: stretch; align-self: stretch; gap: 8px; padding: 31px 14px 24px 20px; border: 0; background: var(--page); }
  html:not([data-platform="telegram"]) .bottom-nav button { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 49px; padding: 12px 14px; font-size: 13px; }
  html:not([data-platform="telegram"]) .bottom-nav button.active, html:not([data-platform="telegram"]) .bottom-nav button[aria-current="page"] { background: var(--accent-soft); }
  html:not([data-platform="telegram"]) .page-heading { margin: 27px 0 25px; }
  html:not([data-platform="telegram"]) .page-heading h1 { font-size: 32px; }
  html:not([data-platform="telegram"]) .segmented-control { width: fit-content; min-width: 360px; max-width: 100%; margin-bottom: 25px; }
  html:not([data-platform="telegram"]) .segmented-control button { min-width: 125px; padding-left: 20px; padding-right: 20px; }
  html:not([data-platform="telegram"]) .card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
  html:not([data-platform="telegram"]) .lead-card { display: flex; flex-direction: column; padding: 22px 20px 16px; }
  html:not([data-platform="telegram"]) .card-footer { margin-top: auto; padding-top: 15px; }
  html:not([data-platform="telegram"]) .card-summary { margin-bottom: 17px; }
  html:not([data-platform="telegram"]) .card-list > .empty-state, html:not([data-platform="telegram"]) .card-list > .notice { grid-column: 1 / -1; }
  html:not([data-platform="telegram"]) .empty-state { padding: 64px 30px; }
  html:not([data-platform="telegram"]) .empty-state .primary-button, html:not([data-platform="telegram"]) .empty-state .secondary-button { width: auto; min-width: 220px; }
  html:not([data-platform="telegram"]) .search-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 28px; }
  html:not([data-platform="telegram"]) .search-form > .primary-button { grid-column: 1 / -1; justify-self: end; min-width: 240px; margin-top: 2px; }
  html:not([data-platform="telegram"]) .quick-searches { margin: 25px 0; }
  html:not([data-platform="telegram"]) [data-screen="profile"] { max-width: 680px; }
  html:not([data-platform="telegram"]) .detail-screen { max-width: 740px; margin: 0 auto; padding-top: 20px; }
  html:not([data-platform="telegram"]) .detail-title { font-size: 34px; }
  html:not([data-platform="telegram"]) .detail-cta { width: auto; min-width: 280px; }
  html:not([data-platform="telegram"]) .sheet { inset: 0; width: min(560px, 90vw); max-height: min(80dvh, 760px); margin: auto; }
  html:not([data-platform="telegram"]) .toast { bottom: 28px; }
  html:not([data-platform="telegram"]) .auth-screen { background: var(--desktop); }
  html:not([data-platform="telegram"]) .auth-card { max-width: 480px; padding: 44px; }
  html:not([data-platform="telegram"]) .auth-card h1 { font-size: 32px; }
}
