:root {
  --bg: #0a0b0d;
  --panel: #121417;
  --panel-2: #181b1f;
  --line: #272b30;
  --muted: #8d949d;
  --text: #f4f5f6;
  --accent: #c7ff38;
  --accent-soft: rgba(199, 255, 56, .12);
  --orange: #ff9f43;
  --red: #ff5d64;
  --blue: #71a7ff;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .32);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 18px 20px; border-right: 1px solid var(--line); background: #0d0f11; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--accent); color: #0b0c0d; font-weight: 900; letter-spacing: -.06em; box-shadow: 0 0 34px rgba(199, 255, 56, .18); }
.brand strong, .brand small { display: block; letter-spacing: .12em; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; display: flex; align-items: center; gap: 12px; color: var(--muted); cursor: pointer; text-align: left; transition: .18s ease; }
.nav-item span { width: 22px; color: #d7dadd; font-size: 17px; }
.nav-item:hover { color: var(--text); background: #17191d; }
.nav-item.active { color: #0b0c0d; background: var(--accent); font-weight: 750; }
.nav-item.active span { color: #0b0c0d; }
.sidebar-foot { margin-top: auto; display: grid; gap: 16px; }
.mini-status { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.mini-status strong, .mini-status small { display: block; }
.mini-status strong { font-size: 12px; }
.mini-status small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255, 159, 67, .1); }
.status-dot.ok { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }

.workspace { min-width: 0; padding: 30px clamp(22px, 4vw, 58px) 64px; }
.topbar { min-height: 70px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.045em; line-height: 1.05; }
h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.025em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.updated { color: var(--muted); font-size: 11px; }
.icon-button { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 22px; }
.icon-button:hover { border-color: #50555b; }
.icon-button.loading { animation: spin 1s linear infinite; }
.profile-pill { display: flex; align-items: center; gap: 9px; min-width: 150px; padding: 7px 11px 7px 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #282c31; color: var(--accent); font-weight: 800; }
.profile-pill strong, .profile-pill small { display: block; font-size: 11px; }
.profile-pill small { margin-top: 2px; color: var(--muted); font-size: 9px; }

.page-section { display: none; animation: fade .2s ease; }
.page-section.active { display: block; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr .82fr; gap: 16px; }
.hero-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.hero-card { min-height: 210px; padding: 24px; position: relative; overflow: hidden; }
.profit-hero { background: linear-gradient(145deg, #c7ff38 0%, #a5db20 100%); color: #0c0e0a; }
.profit-hero::after { content: ""; position: absolute; width: 210px; height: 210px; right: -105px; top: -125px; border: 40px solid rgba(255, 255, 255, .17); border-radius: 50%; }
.card-kicker { font-size: 11px; font-weight: 750; letter-spacing: .04em; opacity: .7; }
.hero-value { margin-top: 19px; font-size: clamp(34px, 4vw, 54px); font-weight: 850; letter-spacing: -.055em; white-space: nowrap; }
.hero-meta { display: flex; gap: 20px; margin-top: 3px; font-size: 11px; font-weight: 650; opacity: .72; }
.spark-bars { position: absolute; left: 24px; right: 24px; bottom: 22px; height: 47px; display: flex; align-items: end; gap: 5px; }
.spark-bars i { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; background: rgba(12, 14, 10, .2); }
.spark-bars i.loss { opacity: .4; }
.spark-bars .h1 { height: 5px; } .spark-bars .h2 { height: 9px; }
.spark-bars .h3 { height: 13px; } .spark-bars .h4 { height: 17px; }
.spark-bars .h5 { height: 21px; } .spark-bars .h6 { height: 26px; }
.spark-bars .h7 { height: 31px; } .spark-bars .h8 { height: 36px; }
.spark-bars .h9 { height: 41px; } .spark-bars .h10 { height: 46px; }
.card-heading, .panel-head, .section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-heading { font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.warning { color: var(--orange); background: rgba(255, 159, 67, .12); }
.account-name { margin-top: 28px; font-size: 31px; font-weight: 800; letter-spacing: -.04em; }
.account-stats { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.account-stats small, .account-stats strong { display: block; }
.account-stats small { color: var(--muted); font-size: 9px; }
.account-stats strong { margin-top: 5px; font-size: 14px; }
.balance-hero { background: radial-gradient(circle at 100% 0, rgba(113, 167, 255, .18), transparent 55%), var(--panel); }
.balance-hero .hero-value { font-size: 42px; }
.muted { color: var(--muted); }
.balance-hero .muted { margin: 8px 0 26px; font-size: 11px; }
.balance-split { display: flex; gap: 14px; margin-top: 4px; color: var(--muted); font-size: 9px; }
.balance-split strong { margin-left: 3px; color: var(--text); }

.control-grid { display: grid; grid-template-columns: 1.05fr 1fr .9fr; gap: 16px; margin-top: 16px; }
.panel { padding: 22px; }
.panel-head { margin-bottom: 20px; }
.panel-head .eyebrow { margin-bottom: 6px; }
.live-label { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.toggle-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.toggle-row:first-of-type { border-top: 0; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { font-size: 12px; }
.toggle-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.switch { width: 42px; height: 23px; padding: 3px; border: 1px solid #3b4046; border-radius: 999px; background: #24282d; cursor: pointer; transition: .2s ease; flex: 0 0 auto; }
.switch span { display: block; width: 15px; height: 15px; border-radius: 50%; background: #a3a9b0; transition: .2s ease; }
.switch[aria-checked="true"] { border-color: var(--accent); background: var(--accent); }
.switch[aria-checked="true"] span { transform: translateX(18px); background: #0b0c0d; }
.switch:disabled { opacity: .45; cursor: wait; }
.service-list { display: grid; gap: 12px; }
.service-row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.service-row span:first-child { color: #d9dcdf; }
.service-state { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.service-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.service-state.ok::before { background: var(--accent); box-shadow: 0 0 12px rgba(199, 255, 56, .45); }
.loading-line { height: 10px; border-radius: 7px; background: linear-gradient(90deg, #1d2024, #2b3035, #1d2024); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.today-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }
.today-grid small, .today-grid strong { display: block; }
.today-grid small { color: var(--muted); font-size: 9px; }
.today-grid strong { margin-top: 5px; font-size: 17px; }
.accent { color: var(--accent); }
.wide-panel { margin-top: 16px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 750; cursor: pointer; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th { padding: 0 14px 12px; color: #737a82; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 14px; border-top: 1px solid var(--line); color: #d9dcdf; font-size: 11px; vertical-align: middle; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: var(--muted); }
.source-tag, .state-tag { display: inline-flex; padding: 5px 8px; border-radius: 7px; font-size: 9px; font-weight: 750; }
.source-tag.stars { background: rgba(113, 167, 255, .12); color: var(--blue); }
.source-tag.gengine { background: var(--accent-soft); color: var(--accent); }
.state-tag.active, .state-tag.done, .state-tag.confirmed, .state-tag.reviewed { background: var(--accent-soft); color: var(--accent); }
.state-tag.hidden, .state-tag.paused { background: rgba(255, 159, 67, .12); color: var(--orange); }
.state-tag.unknown, .state-tag.manual, .state-tag.blocked, .state-tag.refunded { background: rgba(255, 93, 100, .12); color: var(--red); }
.row-actions { display: flex; gap: 7px; justify-content: flex-end; }
.small-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #1a1d21; cursor: pointer; font-size: 9px; white-space: nowrap; }
.small-button:hover { border-color: #4a5057; }
.small-button.accent-button { color: #0b0c0d; border-color: var(--accent); background: var(--accent); font-weight: 800; }
.small-button:disabled { opacity: .38; cursor: not-allowed; }

.section-head { margin-bottom: 22px; }
.section-head h2 { margin-bottom: 7px; font-size: 28px; }
.section-head .muted { max-width: 610px; margin-bottom: 0; font-size: 11px; }
.filter-box { display: flex; gap: 9px; }
input, select { min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #101215; color: var(--text); }
input:focus, select:focus { border-color: #657068; box-shadow: 0 0 0 3px rgba(199, 255, 56, .07); }
.filter-box input { width: 250px; }
.product-table td:first-child { min-width: 230px; }
.reason-text { max-width: 200px; color: var(--orange); font-size: 9px; }
.safety-radar { margin-bottom: 16px; background: radial-gradient(circle at 100% 0, rgba(199, 255, 56, .08), transparent 40%), var(--panel); }
.radar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.radar-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 9, 11, .36); }
.radar-grid small, .radar-grid strong { display: block; }
.radar-grid small { color: var(--muted); font-size: 9px; }
.radar-grid strong { margin-top: 7px; font-size: 15px; }
.positive { color: var(--accent); }
.negative { color: var(--red); }
.order-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.summary-chip { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 10px; }
.summary-chip strong { margin-left: 7px; color: var(--accent); }

.period-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.period-tabs button { padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.period-tabs button.active { background: var(--accent); color: #0b0c0d; font-weight: 800; }
.profit-range-form { margin: 0 0 16px; padding: 16px 18px; display: grid; grid-template-columns: minmax(210px, 1fr) auto auto auto; align-items: end; gap: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.profit-range-form > div strong, .profit-range-form > div small { display: block; }
.profit-range-form > div strong { font-size: 13px; }
.profit-range-form > div small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.profit-range-form label { display: grid; gap: 6px; color: var(--muted); font-size: 9px; }
.profit-range-form input { min-width: 148px; }
.profit-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.metric-card small, .metric-card strong { display: block; }
.metric-card small { color: var(--muted); font-size: 9px; }
.metric-card strong { margin-top: 8px; font-size: 21px; letter-spacing: -.035em; }
.profit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.breakdown-row { padding: 13px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.breakdown-row:first-child { border-top: 0; }
.breakdown-row strong, .breakdown-row small { display: block; }
.breakdown-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.breakdown-row > strong { color: var(--accent); }

.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack-form { display: grid; gap: 14px; }
.stack-form label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { min-width: 0; flex: 1; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: #171a1e; font-size: 10px; }
.chip button { padding: 0; border: 0; background: transparent; color: var(--red); cursor: pointer; }
.guard-note { margin: 16px 0 0; padding: 12px; border: 1px solid rgba(255, 159, 67, .25); border-radius: 10px; background: rgba(255, 159, 67, .07); color: #d6b78d; font-size: 10px; line-height: 1.55; }

.primary-button, .secondary-button, .ghost-button { min-height: 42px; padding: 0 16px; border-radius: 11px; cursor: pointer; font-weight: 750; }
.primary-button { border: 1px solid var(--accent); background: var(--accent); color: #0b0c0d; }
.secondary-button { border: 1px solid #42484f; background: #25292e; }
.ghost-button { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.full { width: 100%; }
.notice { position: fixed; z-index: 20; top: 20px; left: 50%; transform: translateX(-50%); max-width: min(560px, 90vw); padding: 12px 16px; border: 1px solid rgba(199, 255, 56, .25); border-radius: 12px; background: #172012; color: #eaffb3; box-shadow: var(--shadow); font-size: 11px; }
.notice.error { border-color: rgba(255, 93, 100, .28); background: #281416; color: #ffb0b4; }
.hidden { display: none !important; }

dialog { width: min(520px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--text); box-shadow: 0 40px 120px #000; }
dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.dialog-card { position: relative; padding: 28px; }
.dialog-card h2 { margin-bottom: 9px; font-size: 25px; }
.dialog-card label { display: grid; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 10px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; font-size: 19px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.price-facts, .price-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 20px; }
.price-facts > div, .price-preview > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #111317; }
.price-facts small, .price-facts strong, .price-preview small, .price-preview strong { display: block; }
.price-facts small, .price-preview small { color: var(--muted); font-size: 8px; }
.price-facts strong, .price-preview strong { margin-top: 6px; font-size: 12px; }
.margin-presets { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.margin-presets span { margin-right: 3px; color: var(--muted); font-size: 9px; }
.margin-presets button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #191c20; cursor: pointer; font-size: 9px; }
.margin-presets button:hover { border-color: var(--accent); color: var(--accent); }

.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 15% 15%, rgba(199, 255, 56, .08), transparent 28%), #090a0c; }
.login-shell { width: min(920px, 100%); min-height: 540px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--panel); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.login-brand { position: relative; padding: 50px; background: var(--accent); color: #0b0c0d; overflow: hidden; }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border: 55px solid rgba(255,255,255,.18); border-radius: 50%; }
.login-brand::before { width: 280px; height: 280px; right: -180px; top: -150px; }
.login-brand::after { width: 180px; height: 180px; left: -130px; bottom: -125px; }
.login-brand .brand-mark { position: relative; z-index: 1; background: #0b0c0d; color: var(--accent); box-shadow: none; }
.login-brand .eyebrow { margin-top: 70px; color: #35420f; }
.login-brand h1 { font-size: clamp(62px, 8vw, 94px); line-height: .78; letter-spacing: -.09em; }
.login-lead { max-width: 350px; margin-top: 34px; color: #33400f; font-weight: 600; line-height: 1.55; }
.login-signal { position: absolute; left: 50px; bottom: 42px; display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.login-signal span { width: 8px; height: 8px; border-radius: 50%; background: #0b0c0d; box-shadow: 0 0 0 5px rgba(11,12,13,.1); }
.login-card { padding: 50px 42px; display: flex; flex-direction: column; justify-content: center; }
.login-card h2 { margin-bottom: 10px; font-size: 28px; }
.login-card .muted { font-size: 11px; line-height: 1.5; }
.login-card form { display: grid; gap: 11px; margin-top: 36px; }
.login-card label { color: var(--muted); font-size: 10px; }
.login-card input { height: 48px; }
.form-error { margin: 0; color: var(--red); font-size: 10px; }
.login-foot { margin: auto 0 0; color: #666d75; font-size: 9px; }

.telegram-login-page { min-height: 100vh; min-height: 100dvh; margin: 0; padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); display: grid; place-items: center; background: radial-gradient(circle at 50% 0, rgba(199, 255, 56, .13), transparent 38%), #090a0c; }
.telegram-auth-card { width: min(420px, 100%); padding: 34px 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); text-align: center; }
.telegram-auth-card .brand-mark { margin: 0 auto 28px; }
.telegram-auth-card .eyebrow { margin-bottom: 10px; }
.telegram-auth-card h1 { margin-bottom: 15px; font-size: clamp(34px, 10vw, 52px); }
.telegram-auth-status { min-height: 40px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.6; }
.telegram-auth-status.error { color: var(--red); }
.telegram-auth-spinner { width: 28px; height: 28px; margin: 24px auto 2px; border: 3px solid #2b3035; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.telegram-auth-fallback { margin-top: 22px; }
.telegram-auth-fallback p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.telegram-auth-fallback .secondary-button { display: inline-flex; align-items: center; justify-content: center; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: .35; transform: translateY(3px); } }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .balance-hero { grid-column: span 2; min-height: 170px; }
  .control-grid { grid-template-columns: 1fr 1fr; }
  .control-grid > :last-child { grid-column: span 2; }
  .profit-cards { grid-template-columns: repeat(3, 1fr); }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .radar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 66px; padding: 8px 10px; border: 0; border-top: 1px solid var(--line); }
  .sidebar .brand, .sidebar-foot { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .nav-item { min-width: 0; padding: 8px 4px; justify-content: center; flex-direction: column; gap: 3px; font-size: 8px; }
  .nav-item span { width: auto; font-size: 14px; }
  .workspace { padding: 22px 14px 92px; }
  .topbar { align-items: center; margin-bottom: 24px; }
  .updated, .profile-pill span:not(.avatar) { display: none; }
  .profile-pill { min-width: 0; padding: 6px; }
  .hero-grid, .control-grid, .profit-layout, .settings-grid { grid-template-columns: 1fr; }
  .balance-hero, .control-grid > :last-child { grid-column: auto; }
  .hero-card { min-height: 190px; }
  .account-stats { grid-template-columns: repeat(3, 1fr); }
  .section-head { display: block; }
  .filter-box, .period-tabs { margin-top: 16px; width: 100%; overflow-x: auto; }
  .filter-box input { width: 100%; }
  .profit-cards { grid-template-columns: 1fr 1fr; }
  .profit-range-form { grid-template-columns: 1fr 1fr; align-items: end; }
  .profit-range-form > div { grid-column: span 2; }
  .profit-range-form .secondary-button { width: 100%; grid-column: span 2; }
  .price-facts, .price-preview { grid-template-columns: 1fr; }
  .radar-grid { grid-template-columns: 1fr 1fr; }
  .login-page { padding: 0; }
  .login-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .login-brand { min-height: 260px; padding: 30px; }
  .login-brand .eyebrow { margin-top: 35px; }
  .login-brand h1 { font-size: 58px; }
  .login-lead { margin-top: 20px; }
  .login-signal { display: none; }
  .login-card { padding: 34px 28px; }
}

/* --- раздел «Неподтверждённые заказы» --- */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px;
  border-radius: 10px; background: #d9822b; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1;
}
.copy-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-area {
  width: 100%; margin-top: 12px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25); color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; line-height: 1.5; resize: vertical;
}
.copy-area:focus { outline: 2px solid #d9822b; outline-offset: 2px; }
