:root {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  color-scheme: dark;
  font-synthesis: none;
  --bg: #080c11;
  --surface: #0d131a;
  --surface-raised: #111820;
  --surface-hover: #151e28;
  --border: #26313d;
  --border-soft: #1c2731;
  --text: #f3f6fa;
  --muted: #9ba7b5;
  --subtle: #758390;
  --accent: #2a8cff;
  --accent-soft: #102b48;
  --success: #20c997;
  --warning: #f5a623;
  --danger: #ff656d;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-bottom, 0px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-width: 280px; min-height: 100dvh; background: var(--bg); color: var(--text); overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.icon { width: 18px; height: 18px; flex: none; }
.shell { width: 100%; max-width: 680px; min-height: var(--app-height, 100dvh); margin: 0 auto; padding: 0 var(--space-lg) calc(var(--space-2xl) + var(--safe-bottom)); }
.shell > main { padding-top: var(--space-sm); }
.legal-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 28px 0 8px; font-size: 12px; }
.legal-footer a { color: var(--muted); }
.topbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); border-bottom: 1px solid var(--border-soft); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 20px; line-height: 1; }
.role-badge { color: var(--subtle); font-size: 12px; white-space: nowrap; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(21px, 5vw, 25px); font-weight: 700; letter-spacing: -.65px; line-height: 1.18; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.hero { padding: var(--space-xl) 0 var(--space-lg); }
.eyebrow { margin-bottom: var(--space-sm); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 8px 0 0; padding: 8px 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; }
.back .icon { width: 17px; height: 17px; }
.primary, .secondary, .danger { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); min-height: 50px; padding: 11px 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 650; line-height: 1.25; transition: background .18s, border-color .18s, transform .18s; }
.primary { border: 1px solid #3e9aff; background: var(--accent); color: #fff; }
.primary:hover { background: #1679ec; }
.full-button { width: 100%; margin-top: var(--space-lg); }
.secondary { border: 1px solid var(--border); background: var(--surface-raised); color: var(--text); }
.secondary:hover { background: var(--surface-hover); }
.danger { border: 1px solid #56343a; background: #221417; color: #ff9299; }
.danger:hover { background: #301a1e; }
.primary:active, .secondary:active, .danger:active, .offer-card:active, .creator-card:active { transform: scale(.988); }
.action-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-lg) 0; }
.action-row > * { flex: 1 1 145px; min-width: 0; }
.action-row .danger { flex: 0 1 auto; }
.sticky-actions { position: sticky; z-index: 5; bottom: 0; display: flex; gap: var(--space-sm); margin: var(--space-xl) calc(-1 * var(--space-lg)) calc(-1 * (var(--space-2xl) + var(--safe-bottom))); padding: var(--space-md) var(--space-lg) calc(var(--space-md) + var(--safe-bottom)); background: linear-gradient(to bottom, rgba(8,12,17,.9), var(--bg) 40%); border-top: 1px solid var(--border-soft); backdrop-filter: blur(12px); }
.sticky-actions > * { flex: 1; min-width: 0; }
.keyboard-open .sticky-actions { position: static; margin-bottom: var(--space-md); backdrop-filter: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin: var(--space-xl) 0 var(--space-md); }
.section-head h2 { margin: 0; }
.section-meta { color: var(--subtle); font-size: 12px; white-space: nowrap; }
.text-button { min-height: 44px; margin: -12px 0; padding: 8px 0 8px 8px; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.list { display: grid; gap: var(--space-sm); }
.discovery { margin: var(--space-lg) 0; }
.discovery-search { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--border); border-radius: var(--radius-md); outline: none; background: var(--surface-raised); color: var(--text); font-size: 14px; }
.discovery-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #2a8cff22; }
.discovery-results { margin-top: var(--space-md); }
.profile-hero { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-xl) 0 var(--space-lg); }
.profile-hero .profile-copy { flex: 1; min-width: 0; }
.profile-hero h1 { margin: 0 0 5px; overflow-wrap: anywhere; }
.profile-subtitle { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border: 1px solid #2e4a69; border-radius: 16px; background: #142941; color: #7cb9ff; font-size: 19px; font-weight: 700; letter-spacing: -.5px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-avatar { width: 62px; height: 62px; border-radius: 20px; font-size: 23px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--muted); }
.icon-button .icon { width: 21px; height: 21px; }
.profile-hero > .icon-button { margin-left: auto; align-self: center; }
.icon-button:hover { color: var(--text); background: var(--surface-hover); }
.switcher { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface); }
.switcher button { flex: 1; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.switcher button.active { background: var(--surface-hover); color: var(--text); box-shadow: inset 0 -2px var(--accent); }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); margin: var(--space-xl) 0; }
.stat-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 94px; padding: var(--space-md); border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-raised); }
.stat-card.accent { border-color: #225994; background: #0c2137; }
.stat-card.success .stat-number { color: var(--success); }
.stat-card.warning .stat-number { color: var(--warning); }
.stat-number { color: var(--text); font-size: 27px; font-weight: 700; letter-spacing: -.9px; line-height: 1; }
.stat-card.accent .stat-number { color: var(--accent); }
.stat-label { color: var(--muted); font-size: 12px; line-height: 1.2; }
.offer-card { position: relative; display: grid; grid-template-columns: 46px minmax(0,1fr) auto 14px; align-items: center; gap: var(--space-md); width: 100%; min-height: 90px; padding: var(--space-md); border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); text-align: left; transition: background .18s, border-color .18s, transform .18s; }
.offer-card:hover { border-color: #365372; background: var(--surface-hover); }
.offer-card .button-label { display: none; }
.offer-avatar { width: 46px; height: 46px; border-radius: 13px; background: #1d2453; color: #a8b1ff; border-color: #363f82; font-size: 17px; }
.offer-main, .offer-side { display: flex; flex-direction: column; min-width: 0; }
.offer-title { overflow: hidden; color: var(--text); font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.offer-meta { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.offer-date { margin-top: 6px; color: var(--subtle); font-size: 11px; }
.offer-side { align-items: flex-end; gap: 9px; }
.offer-amount { max-width: 125px; overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.offer-chevron { width: 14px; height: 14px; color: var(--subtle); }
.status-chip { display: inline-flex; align-items: center; justify-content: center; max-width: 140px; padding: 5px 9px; border-radius: 12px; background: #1b2733; color: #abc0d4; font-size: 11px; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.status-chip.accent { background: #12345a; color: #79baff; }
.status-chip.success { background: #0e382e; color: #5ee0b7; }
.status-chip.warning { background: #3a2b13; color: #f6bf64; }
.status-chip.danger { background: #3a2025; color: #ff9da3; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-xl); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface); }
.empty-icon { width: 24px; height: 24px; margin-bottom: var(--space-lg); color: var(--accent); }
.empty-state strong { margin-bottom: 5px; font-size: 15px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.surface-card, .detail-card, .evidence-card { padding: var(--space-lg); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface-raised); }
.payment-plan-card, .payment-benefits, .payment-confirm-card, .payment-result-card { margin-top: var(--space-lg); }
.payment-plan-card h2 { margin: 6px 0 14px; font-size: 20px; }
.payment-price { display: block; font-size: clamp(30px, 8vw, 38px); line-height: 1.1; letter-spacing: -1px; }
.payment-benefits ul { margin: 8px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.9; font-size: 14px; }
.payment-benefits li::marker { color: var(--accent); }
.payment-confirm-card strong { font-size: 17px; }
.billing-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px 18px; margin: 26px 0 10px; font-size: 12px; }
.billing-legal a { color: var(--muted); }
.payment-result-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 18px; text-align: center; }
.payment-result-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 32px; font-weight: 700; }
.payment-result-icon.success { background: #0e382e; color: var(--success); }
.payment-result-icon.failed { background: #3a2025; color: var(--danger); }
.payment-result-copy { margin: 10px 0 0; color: var(--muted); }
.payment-loading { display: flex; min-height: 52vh; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.payment-spinner { width: 38px; height: 38px; margin-bottom: 22px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: payment-spin .8s linear infinite; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .payment-spinner { animation-duration: 2s; } }
.detail-card { margin-top: var(--space-lg); }
.detail-title { margin: 12px 0 var(--space-md); font-size: 22px; }
.detail-hint { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.price-comparison { margin: 12px 0 0; color: var(--warning); font-size: 13px; }
.finance-label { color: var(--muted); font-size: 13px; }
.finance-number { display: block; margin: 5px 0 var(--space-md); color: var(--text); font-size: clamp(27px, 8vw, 34px); font-weight: 700; letter-spacing: -1px; line-height: 1.1; overflow-wrap: anywhere; }
.detail-topline { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.detail-topline .avatar { width: 48px; height: 48px; border-radius: 14px; }
.detail-topline strong { display: block; font-size: 17px; }
.detail-topline small { color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border-soft); }
.detail-field { min-width: 0; }
.detail-field small { display: block; margin-bottom: 5px; color: var(--subtle); font-size: 12px; }
.detail-field strong { color: var(--text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.detail-field--brief strong { display: block; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.sender-card .detail-topline { margin: 12px 0; }
.sender-contact { display: flex; width: 100%; margin-top: 14px; text-decoration: none; justify-content: center; gap: 8px; }
.ai-advice-result { display: grid; gap: 8px; margin-top: 12px; line-height: 1.45; }
.ai-advice-result small { color: var(--muted); }
.offer-target { display: block; color: var(--accent); font-size: 13px; line-height: 1.4; }
.empty-state-action { width: 100%; text-align: left; color: var(--text); }
.empty-state-action:hover, .empty-state-action:focus-visible { border-color: var(--accent); background: var(--surface-hover); }
.empty-state-action:active { transform: scale(.988); }
.empty-state-action small { color: var(--muted); font-weight: 400; }
.brief-links { display: grid; gap: 10px; }
.brief-link { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface); }
.brief-link-url { color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.brief-link strong { font-size: 13px; }
.brief-link small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.brief-link--high small { color: #ff9da3; }
.brief-link--elevated small { color: var(--warning); }
.detail-section { margin-top: var(--space-lg); }
.detail-section h2 { margin-bottom: var(--space-sm); font-size: 14px; color: var(--muted); }
.detail-section { margin-top: var(--space-md); }
.detail-section .detail-grid { border-top: 0; padding-top: 0; }
.detail-section .detail-field { margin-top: 10px; }
.sender-sources { margin-top: var(--space-md); color: var(--muted); }
.sender-sources summary { cursor: pointer; color: var(--accent); }
.sender-source { margin-top: 10px; overflow-wrap: anywhere; }
.sender-source a { color: var(--accent); }
.card-copy { margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.fact-chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin: var(--space-md) 0; }
.fact-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-hover); color: var(--muted); font-size: 12px; }
.fact-chip .icon { width: 16px; height: 16px; color: var(--accent); }
.notice, .error-banner { margin: var(--space-lg) 0; padding: var(--space-md) var(--space-lg); border: 1px solid #26445d; border-radius: var(--radius-md); background: #102131; color: #b7d7f3; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.notice.warn { border-color: #5b4524; background: #251d12; color: #eac58d; }
.error-banner { border-color: #65363c; background: #2c171b; color: #ffc1c5; }
.form-card { display: grid; gap: var(--space-lg); margin: var(--space-lg) 0; }
.form-card.panel { gap: var(--space-md); padding: var(--space-lg); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface); }
.form-card h2 { margin: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); }
.field { display: block; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field-heading { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-bottom: 7px; }
.field-heading label, .field > span { color: var(--muted); font-size: 13px; font-weight: 550; }
.field-heading label { display: inline; }
.help-button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--subtle); font-size: 15px; font-weight: 650; }
.help-button .button-label { display: block; }
.help-button:hover { background: var(--surface-hover); color: var(--accent); }
.field input, .field select, .field textarea, .form-card > textarea { display: block; width: 100%; min-width: 0; min-height: 49px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; background: var(--surface-raised); color: var(--text); font-size: 14px; }
.field .picker-value { display: none; }
.picker-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--text); font-size: 14px; text-align: left; }
.picker-trigger:active, .picker-trigger[aria-expanded="true"], .picker-trigger:focus-visible { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #2a8cff22; }
.picker-trigger--placeholder { color: var(--subtle); }
.picker-trigger:disabled { opacity: .5; cursor: not-allowed; }
.picker-trigger-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-chevron { width: 18px; height: 18px; flex: none; color: var(--subtle); transform: rotate(90deg); }
.date-trigger .picker-chevron { transform: none; }
.input-shell { display: flex; align-items: center; min-height: 54px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-raised); }
.input-shell:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #2a8cff22; }
.field .input-shell input { min-height: 52px; border: 0; background: transparent; box-shadow: none; }
.field .input-shell input:focus { border: 0; outline: none; box-shadow: none; }
.input-shell__suffix { padding: 0 16px 0 4px; color: var(--muted); font-size: 15px; }
.field.invalid .picker-trigger, .field.invalid .input-shell { border-color: var(--danger); }
.field textarea, .form-card > textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder, .form-card > textarea::placeholder { color: #687787; }
.field input:focus, .field select:focus, .field textarea:focus, .form-card > textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #2a8cff22; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field-error { display: block; margin-top: 6px; color: #ff9da3; font-size: 12px; line-height: 1.4; }
.file-picker-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 550; }
.field .file-picker-input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.file-picker-control, .file-picker-preview { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 86px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); text-align: left; }
.file-picker-control:hover, .file-picker-control:focus-visible, .file-picker-control.drag-over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.file-picker-control-icon { width: 24px; height: 24px; color: var(--accent); }
.file-picker-copy { display: grid; gap: 5px; min-width: 0; flex: 1; }
.file-picker-copy strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-picker-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.file-picker-visual { display: grid; place-items: center; width: 52px; height: 52px; flex: none; overflow: hidden; border-radius: 10px; background: var(--surface-hover); color: var(--accent); }
.file-picker-visual .icon { width: 24px; height: 24px; }
.file-picker-thumb { width: 100%; height: 100%; object-fit: cover; }
.file-picker-preview .icon-button { width: 44px; height: 44px; }
.file-picker-progress { height: 3px; overflow: hidden; margin-top: 7px; border-radius: 10px; background: var(--border); }
.file-picker-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.file-picker-message { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.file-picker-message.error { color: #ff9da3; }
.file-picker-message.success { color: var(--success); }
.file-picker.invalid .file-picker-control { border-color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .file-picker-progress span { transition: none; } }
.field-help { margin-top: 5px; color: var(--subtle); font-size: 12px; line-height: 1.4; }
.preview-box { padding: var(--space-lg); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.divider { height: 1px; margin: var(--space-xl) 0; background: var(--border-soft); }
.history { display: grid; gap: var(--space-sm); margin: var(--space-md) 0 var(--space-xl); }
.message { max-width: 93%; padding: var(--space-md); border-radius: var(--radius-md); color: var(--text); font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.mine { justify-self: end; background: #122d49; }
.message.theirs { justify-self: start; border: 1px solid var(--border-soft); background: var(--surface-raised); }
.message small { color: var(--muted); font-weight: 600; }
.message p { margin: 5px 0 0; }
.timeline-event { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-left: 2px solid var(--accent); border-radius: 0 9px 9px 0; background: var(--surface); font-size: 13px; line-height: 1.4; }
.timeline-event small { flex: none; color: var(--subtle); font-size: 11px; }
.reply-section { margin-top: var(--space-lg); border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface); }
.reply-section summary { padding: 15px; color: var(--accent); font-weight: 600; cursor: pointer; }
.reply-section .form-card { margin: 0; border: 0; }
.deal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deal-actions > button { width: 100%; padding: 10px 8px; font-size: 13px; overflow-wrap: anywhere; }
.deal-actions > :only-child, .deal-actions--decision > .danger { grid-column: 1 / -1; }
.deal-actions--decision > .danger { min-height: 44px; }
.price-list { display: grid; gap: 7px; }
.price-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); text-align: left; }
.price-item-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.price-item-copy strong { font-size: 14px; }
.price-item-copy small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.price-item-amount { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.price-item .icon { width: 15px; color: var(--subtle); }
.price-empty { margin: 0; color: var(--muted); font-size: 13px; }
.evidence-card { display: grid; gap: var(--space-sm); margin: var(--space-sm) 0; }
.evidence-media { width: 100%; max-height: 420px; border-radius: var(--radius-sm); background: var(--bg); object-fit: contain; }
.creator-card { display: flex; align-items: center; gap: var(--space-md); width: 100%; min-height: 66px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); text-align: left; }
.creator-card .button-label { display: none; }
.creator-card.selected { border-color: var(--accent); background: #102239; }
.creator-card .avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.creator-card-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.creator-card-name { overflow-wrap: anywhere; font-weight: 600; }
.creator-card-subtitle { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.creator-card .icon { color: var(--subtle); }
.creator-card.selected .icon { color: var(--accent); }
.file-card { display: flex; align-items: center; gap: var(--space-md); width: 100%; min-height: 60px; padding: var(--space-md); border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); text-align: left; }
.file-card .button-label { display: none; }
.file-icon { width: 22px; height: 22px; color: var(--accent); }
.file-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file-copy strong { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { color: var(--muted); font-size: 11px; }
.file-chevron { width: 16px; height: 16px; color: var(--subtle); }
.profile-actions { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
.secondary-actions { margin-top: var(--space-xl); }
.profile-actions .secondary { justify-content: flex-start; }
.profile-list-card { margin-bottom: var(--space-sm); }
.profile-list-card .profile-hero { padding: 0; }
.profile-list-card .action-row { margin-bottom: 0; }
.agency-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.period-switcher { margin: 18px 0; }
.period-switcher button { flex: 1 1 0; min-width: 0; padding-inline: 3px; font-size: 11px; white-space: nowrap; }
.stats-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.stats-summary .stat-card:first-child { grid-column: 1 / -1; min-height: 110px; }
.stats-summary .stat-number { font-size: clamp(20px, 6vw, 30px); overflow-wrap: anywhere; }
.stats-summary .stat-card:first-child .stat-number { font-size: clamp(27px, 8vw, 38px); }
.stats-note { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.chart-card { min-width: 0; margin: 18px 0; padding: 18px 12px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface-raised); }
.chart-card h2 { margin: 0 6px 18px; font-size: 15px; }
.chart-area { position: relative; width: 100%; height: 240px; min-width: 0; }
.chart-area canvas { max-width: 100%; }
.agency-roster-card { display: flex; align-items: center; gap: var(--space-md); min-height: 68px; margin-bottom: var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-raised); }
.agency-roster-card .avatar { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.agency-roster-card strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.danger-text { color: var(--danger); }
.reach-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-sm); }
.reach-tile { display: flex; flex-direction: column; min-width: 0; padding: 7px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--text); text-align: left; }
.reach-visual { display: grid; place-items: center; width: 100%; aspect-ratio: 1.15; overflow: hidden; border-radius: 9px; background: var(--surface-hover); color: var(--accent); }
.reach-visual .icon { width: 26px; height: 26px; }
.reach-thumb { width: 100%; height: 100%; object-fit: cover; }
.reach-tile strong { overflow: hidden; max-width: 100%; margin-top: 8px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.reach-tile small { color: var(--subtle); font-size: 11px; }
.loading-state { display: grid; gap: var(--space-md); padding: var(--space-xl) 0; }
.skeleton { border-radius: var(--radius-md); background: linear-gradient(100deg, #111820 8%, #1d2935 18%, #111820 33%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skeleton-title { width: 62%; height: 26px; margin-bottom: var(--space-sm); }
.skeleton-card { height: 82px; }
@keyframes shimmer { to { background-position-x: -200%; } }
.toast-region { position: fixed; z-index: 30; right: var(--space-lg); bottom: calc(var(--space-lg) + var(--safe-bottom)); left: var(--space-lg); max-width: 648px; margin: auto; pointer-events: none; }
.toast { padding: var(--space-md) var(--space-lg); border: 1px solid var(--border); border-radius: var(--radius-md); background: #1c2a38; color: var(--text); font-size: 13px; box-shadow: 0 12px 35px #0008; }
.toast.error { border-color: #65363c; background: #2c171b; color: #ffc1c5; }
.bottom-sheet { position: fixed; inset: auto 0 0; width: min(680px, 100%); max-height: min(80dvh, 540px); margin: 0 auto; padding: var(--space-md) var(--space-lg) calc(var(--space-lg) + var(--safe-bottom)); border: 1px solid var(--border); border-bottom: 0; border-radius: 20px 20px 0 0; background: var(--surface-raised); color: var(--text); box-shadow: 0 -18px 60px #0008; }
.bottom-sheet::backdrop { background: #0009; }
.picker-sheet { max-height: min(78dvh, 680px); display: flex; flex-direction: column; gap: 14px; padding-bottom: calc(16px + var(--safe-bottom)); animation: picker-in .2s ease-out; }
.date-sheet { max-height: min(86dvh, 720px); overflow-y: auto; padding-bottom: calc(16px + var(--safe-bottom)); }
.date-sheet:not([open]) { display: none; }
.date-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0 12px; }
.date-nav strong { font-size: 16px; text-transform: capitalize; }
.date-nav-button { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 27px; }
.date-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.date-weekday { display: grid; place-items: center; min-height: 32px; color: var(--muted); font-size: 12px; }
.date-day { display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font-size: 14px; }
.date-day:disabled { opacity: .32; }
.date-day--inside { background: #12345a; }
.date-day--today { border-color: #537ba6; }
.date-day--selected, .date-day--selected:hover { background: var(--accent); color: #fff; font-weight: 700; }
.date-help { min-height: 24px; margin: 12px 0; color: var(--muted); font-size: 13px; }
.picker-sheet:not([open]) { display: none; }
.picker-sheet::backdrop { background: rgba(0, 0, 0, .55); animation: picker-backdrop-in .2s ease-out; }
.picker-sheet--closing { animation: picker-out .18s ease-in forwards; }
.picker-sheet--closing::backdrop { animation: picker-backdrop-out .18s ease-in forwards; }
.picker-sheet .sheet-handle { margin-bottom: 0; }
.picker-sheet .sheet-heading h2 { font-size: 17px; }
.picker-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.picker-option { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 10px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 14px; text-align: left; }
.picker-option:hover, .picker-option:focus-visible { outline: none; background: var(--surface-hover); }
.picker-option--selected { background: #102239; font-weight: 650; }
.picker-option .icon { width: 18px; height: 18px; color: var(--accent); }
.picker-search { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; background: var(--surface); color: var(--text); }
.picker-search:focus { border-color: var(--accent); }
.picker-empty { margin: 12px 0; }
@keyframes picker-in { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes picker-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes picker-out { to { transform: translateY(24px); opacity: 0; } }
@keyframes picker-backdrop-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .picker-sheet, .picker-sheet::backdrop { animation: none; } }
.sheet-handle { width: 36px; height: 4px; margin: 0 auto var(--space-lg); border-radius: 99px; background: #536271; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.sheet-heading h2 { margin: 0; }
.bottom-sheet p { margin: var(--space-md) 0 var(--space-xl); color: var(--muted); font-size: 14px; line-height: 1.55; }
.sheet-done { width: 100%; }
@media (max-width: 440px) {
  .shell { padding-inline: 14px; }
  .sticky-actions { margin-inline: -14px; padding-inline: 14px; }
  .offer-card { grid-template-columns: 42px minmax(0,1fr) auto; gap: 9px; padding: 10px; }
  .offer-avatar { width: 42px; height: 42px; }
  .offer-chevron { display: none; }
  .offer-amount { max-width: 93px; font-size: 12px; }
  .status-chip { max-width: 108px; font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}
@media (max-width: 350px) {
  .shell { padding-inline: 12px; }
  .sticky-actions { margin-inline: -12px; padding-inline: 12px; }
  .stat-card { padding: 9px; }
  .stat-number { font-size: 24px; }
  .stat-label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.ai-settings-form { display: grid; gap: 12px; margin: 18px 0 0; }
.ai-settings-error:empty { display: none; }
.ai-settings-error .error-banner { margin: 0; }
.ai-card { min-width: 0; padding: 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: var(--surface-raised); }
.ai-card h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.ai-card-intro { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.app-segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-top: 16px; padding: 4px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.app-segment { min-width: 0; min-height: 44px; padding: 8px 3px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.2; }
.app-segment.is-active { background: var(--accent-soft); color: #fff; box-shadow: inset 0 0 0 1px #2765a6; }
.ai-experimental { display: block; width: fit-content; margin: 3px auto 0; padding: 2px 5px; border-radius: 5px; background: #40331b; color: #f0cc85; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.ai-mode-note { min-height: 36px; margin: 12px 0 0; color: #b8d8ff; font-size: 13px; line-height: 1.4; }
.ai-price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; margin-top: 17px; }
.ai-price-copy { display: grid; gap: 4px; min-width: 0; }
.ai-price-copy strong, .ai-setting-title { font-size: 15px; font-weight: 650; }
.ai-price-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.ai-price-value { max-width: 48%; color: var(--text); font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.ai-inline-link { min-height: 44px; margin: 2px 0 0; padding: 7px 0; border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 650; }
.ai-discount-block { margin-top: 9px; padding-top: 17px; border-top: 1px solid var(--border-soft); }
.ai-setting-description { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.ai-stepper { display: grid; grid-template-columns: 44px minmax(70px, 1fr) 44px; align-items: center; gap: 6px; width: min(100%, 220px); margin-top: 13px; padding: 4px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.ai-stepper-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 9px; background: var(--surface-hover); color: var(--text); font-size: 24px; line-height: 1; }
.ai-stepper-button:hover:not(:disabled) { background: var(--accent-soft); }
.ai-stepper-value { color: var(--text); font-size: 20px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.ai-minimum { display: grid; gap: 4px; margin-top: 14px; padding: 12px 14px; border: 1px solid #204568; border-radius: 12px; background: #0c2033; }
.ai-minimum span { color: #aac2db; font-size: 12px; line-height: 1.4; }
.ai-minimum strong { color: #ecf5ff; font-size: 20px; line-height: 1.2; }
.ai-price-advanced { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border-soft); }
.ai-price-advanced summary { width: fit-content; min-height: 38px; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.ai-price-advanced .ai-setting-description { margin: 4px 0 13px; }
.ai-advanced-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.ai-advanced-fields .field input { min-height: 46px; }
.ai-permission-list { margin-top: 10px; }
.app-switch-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 10px; width: 100%; min-height: 72px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border-soft); background: transparent; color: var(--text); text-align: left; }
.app-switch-row:last-child { border-bottom: 0; padding-bottom: 0; }
.app-switch-row:disabled { opacity: .5; }
.app-switch-copy { display: grid; gap: 4px; min-width: 0; }
.app-switch-title { font-size: 15px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.app-switch-description { color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.app-switch-track { position: relative; width: 44px; height: 26px; border: 1px solid #405263; border-radius: 99px; background: #2c3844; transition: background .18s, border-color .18s; }
.app-switch-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #a6b3c0; box-shadow: 0 1px 3px #0006; transition: transform .18s, background .18s; }
.app-switch-row.is-on .app-switch-track { border-color: var(--accent); background: var(--accent); }
.app-switch-row.is-on .app-switch-thumb { transform: translateX(18px); background: #fff; }
.blacklist-form { gap: 14px; }
.blacklist-list { display: grid; }
.blacklist-list .app-switch-row { min-height: 60px; padding: 8px 0; }
.blacklist-list .app-switch-title { font-size: 15px; line-height: 1.25; }
.blacklist-list .app-switch-track { width: 42px; height: 25px; }
.blacklist-list .app-switch-thumb { width: 19px; height: 19px; }
.blacklist-custom-row { display: flex; align-items: center; border-bottom: 1px solid var(--border-soft); }
.blacklist-custom-row:last-child { border-bottom: 0; }
.blacklist-custom-row .app-switch-row { flex: 1; border-bottom: 0; }
.blacklist-custom-row .icon-button { flex: none; width: 44px; height: 44px; margin-left: 8px; }
.rule-editor-sheet { width: min(100%, 480px); max-width: 100%; max-height: 90dvh; margin: auto auto 0; padding: 0; border: 1px solid var(--border); border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text); }
.rule-editor-sheet::backdrop, .submit-overlay::backdrop { background: #000a; }
.rule-editor-content { display: grid; gap: 16px; padding: 24px 20px calc(24px + var(--safe-bottom)); }
.rule-editor-content h2 { margin: 0 0 4px; font-size: 20px; }
.rule-editor-actions { display: grid; gap: 10px; margin-top: 4px; }
.rule-delete { justify-self: center; margin-top: 20px; color: var(--danger); }
.budget-preview { margin: 0; font-size: 13px; line-height: 1.4; }
.ai-advice-result { gap: 14px; }
.ai-advice-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ai-advice-action { font-size: 20px; line-height: 1.3; }
.ai-advice-why { display: grid; gap: 8px; padding: 13px 14px; border: 1px solid var(--border-soft); border-radius: 12px; }
.ai-advice-why strong, .ai-advice-draft strong { font-size: 14px; }
.ai-advice-why ul { margin: 0; padding-left: 19px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ai-advice-draft { display: grid; gap: 10px; }
.ai-advice-draft textarea { width: 100%; min-height: 125px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-raised); color: var(--text); font: inherit; line-height: 1.45; resize: vertical; }
.timeline-message { margin: 8px 0 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.45; }
.submit-overlay { width: min(86vw, 360px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); }
.submit-overlay-content { display: grid; justify-items: center; gap: 12px; padding: 28px 20px; text-align: center; }
.submit-overlay-content strong { font-size: 17px; }
.submit-overlay-content p { margin: 0; color: var(--muted); font-size: 13px; }
.submit-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: submit-spin .75s linear infinite; }
@keyframes submit-spin { to { transform: rotate(360deg); } }
.ai-safety-card { background: #0d1b2a; border-color: #234766; }
.ai-safety-heading { display: flex; align-items: center; gap: 9px; }
.ai-safety-heading .icon { width: 21px; height: 21px; color: #6bb4ff; }
.ai-safety-heading h2 { font-size: 17px; }
.ai-protected-list { display: grid; gap: 9px; margin: 15px 0 0; padding: 0; list-style: none; }
.ai-protected-list li { display: flex; align-items: center; gap: 9px; color: #d0dce8; font-size: 13px; line-height: 1.35; }
.ai-protected-list .icon { width: 16px; height: 16px; color: #65cdae; }
.ai-save-actions { margin-top: 16px; }
.ai-save-actions .primary { width: 100%; }
.ai-confirm-sheet .ai-confirm-actions { display: grid; gap: 9px; margin-top: 20px; }
.ai-confirm-actions button { width: 100%; }
@media (max-width: 390px) {
  .ai-card { padding: 15px; }
  .app-segment { font-size: 12px; }
  .ai-advanced-fields { grid-template-columns: 1fr; }
}
:root { --motion-fast: 160ms; --motion-normal: 220ms; --motion-slow: 320ms; }
.format-choice { width: 100%; text-align: left; justify-content: flex-start; }
.telegram-contact { display: flex; align-items: center; justify-content: center; text-decoration: none; margin: 16px 0; }
.creator-legal-status { color: var(--muted, #9aa8b7); margin: 12px 0 20px; }
.public-reach-card { display: grid; gap: 10px; }
.public-reach-media { width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; }
.offer-unread { border-radius: 20px; background: var(--accent-soft); color: #87bfff; font-size: 11px; padding: 5px 8px; text-align: center; }
.offer-thread { display: grid; gap: 10px; max-height: 430px; overflow: auto; margin: 16px 0; }
.offer-message { padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); }
.offer-message.is-mine { border-color: #245788; background: #102239; }
.offer-message strong { display: inline-block; margin-right: 9px; }
.offer-message time { color: var(--muted); font-size: 11px; }
.offer-message p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.offer-message-form textarea { width: 100%; min-height: 90px; }
.support-list, .support-thread, .support-form, .support-reply { display: grid; gap: 12px; margin: 22px 0; }
.support-message { padding: 18px; border-radius: 18px; background: #111b26; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-message.mine { background: #10283e; }
.support-reply textarea { min-height: 110px; width: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
