:root {
  --ink: #152033;
  --muted: #697386;
  --line: #e5e9f0;
  --canvas: #f4f6f9;
  --panel: #ffffff;
  --navy: #101a2b;
  --navy-soft: #1c2940;
  --amber: #ffc928;
  --amber-deep: #e6ad00;
  --blue: #3478f6;
  --green: #16a36a;
  --red: #d84b4b;
  --orange: #dd7d19;
  --shadow: 0 8px 30px rgba(21, 32, 51, .06);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); font-size: 16px; line-height: 1.45; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }

.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 24px 18px; color: #f8fafc; background: var(--navy); z-index: 20; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 28px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px 11px 11px 3px; display: grid; place-items: center; background: var(--amber); color: #152033; font-size: 1.25rem; font-weight: 900; transform: rotate(-2deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: .04em; }
.brand small { color: #9eabc0; font-size: .75rem; margin-top: 2px; }
.nav { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; gap: 5px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a4860 transparent; }
.nav-item { border: 0; border-radius: 10px; background: transparent; color: #b8c2d1; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 13px; text-align: left; cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--navy-soft); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.nav-icon { display: grid; place-items: center; width: 24px; color: var(--amber); font-weight: 700; font-size: 1.08rem; }
.nav-count { min-width: 20px; height: 20px; margin-left: auto; display: inline-grid; place-items: center; border-radius: 999px; padding: 0 6px; color: #152033; background: var(--amber); font-size: .66rem; font-weight: 900; }
.sidebar-foot { flex: 0 0 auto; margin-top: 14px; }
.system-indicator { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 12px; color: #d7deea; }
.system-indicator b, .system-indicator small { display: block; }
.system-indicator b { font-size: .82rem; }
.system-indicator small { margin-top: 3px; color: #8897ad; font-size: .7rem; }
.pulse { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,106,.15); }
.version { margin: 15px 8px 0; color: #687790; font-size: .72rem; }
.profile-button { width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; color: #d7deea; background: transparent; text-align: left; cursor: pointer; }
.profile-button:hover { background: rgba(255,255,255,.06); }.profile-button b,.profile-button small { display: block; }.profile-button b { font-size: .78rem; }.profile-button small { margin-top: 2px; color: #8897ad; font-size: .65rem; }
.logout-button { width: 100%; margin-top: 6px; min-height: 34px; border: 0; border-radius: 8px; color: #aeb9c9; background: transparent; text-align: left; padding: 0 12px; cursor: pointer; }.logout-button:hover { color: #fff; background: rgba(255,255,255,.06); }

.main { min-width: 0; padding: 0 34px 42px; }
.topbar { min-height: 102px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.topbar h1 { margin: 2px 0 0; font-size: 1.65rem; line-height: 1.12; letter-spacing: -.025em; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-cabinet-select { width: min(220px,24vw); min-height: 34px; border-radius: 999px; padding-inline: 12px 28px; color: #315fbe; background: #eef4ff; font-size: .74rem; font-weight: 750; }
.schedule-chip, .mode-chip, .cabinet-chip, .minute-chip { border-radius: 999px; padding: 7px 11px; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.minute-chip { border: 1px solid #ead37d; color: #725500; background: #fff4c9; cursor: pointer; }
.minute-chip:hover { background: #ffedaa; }.minute-chip.empty { border-color: #efcaca; color: #a23c3c; background: #fdeaea; }
.cabinet-chip { max-width: 190px; overflow: hidden; color: #315fbe; background: #eaf1ff; text-overflow: ellipsis; }
.schedule-chip { color: #43506a; background: #e9edf4; }
.mode-chip { color: #805e00; background: #fff2b8; }
.mode-chip.live { color: #087048; background: #dff6ec; }
.icon-button, .menu-button { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }
.icon-button:hover, .menu-button:hover { background: #f8fafc; }
.menu-button { display: none; }

.view { display: none; animation: fade .16s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }
.dashboard-period { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin: -8px 0 14px; }
.date-range-button { min-height: 40px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid #d8dee8; border-radius: 10px; color: #29364b; background: var(--panel); font-size: .78rem; font-weight: 750; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(21,32,51,.035); }
.date-range-button:hover,.date-range-button[aria-expanded="true"] { border-color: #d1ab25; background: #fffaf0; }
.date-range-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.date-range-popover { position: fixed; z-index: 100; width: min(680px,calc(100vw - 20px)); padding: 16px; border: 1px solid #dce1e9; border-radius: 16px; background: var(--panel); box-shadow: 0 22px 70px rgba(15,25,42,.22); }
.date-range-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; margin-bottom: 10px; }
.date-range-head strong { text-align: center; font-size: .82rem; }
.date-nav { width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: #354259; background: #f8fafc; font-size: 1.65rem; line-height: 1; cursor: pointer; }
.date-nav:hover { border-color: #d8bb55; background: #fff8df; }
.date-range-calendars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.date-calendar h3 { margin: 7px 0 12px; text-align: center; font-size: 1rem; text-transform: capitalize; }
.date-calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.date-weekday { display: grid; place-items: center; height: 27px; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.date-day { position: relative; min-width: 0; height: 36px; padding: 0; border: 0; border-radius: 9px; color: #273449; background: transparent; font-size: .76rem; cursor: pointer; }
.date-day:hover { background: #edf2f8; }
.date-day.outside { color: #adb5c2; }
.date-day.today { box-shadow: inset 0 0 0 1px #d7b33d; }
.date-day.in-range { border-radius: 7px; color: #5b4700; background: #fff3bf; }
.date-day.range-start,.date-day.range-end { color: #182033; background: var(--amber); font-weight: 900; box-shadow: 0 2px 7px rgba(190,139,0,.25); }
.date-range-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.date-range-presets,.date-range-actions { display: flex; align-items: center; gap: 7px; }
.date-range-presets button { min-height: 33px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #f8fafc; font-size: .68rem; font-weight: 750; cursor: pointer; }
.date-range-presets button:hover { color: #6c5200; border-color: #e0c35f; background: #fff9e5; }

.summary-strip { display: flex; align-items: center; gap: 14px; padding: 13px 16px; margin-bottom: 18px; border-radius: 12px; border: 1px solid #dce6e2; background: #f5fbf8; }
.summary-strip > div { display: flex; align-items: center; gap: 10px; }
.summary-strip .pulse { margin: 0; }
.summary-strip > span { color: var(--muted); font-size: .86rem; }
.summary-strip .text-button { margin-left: auto; }
.text-button { border: 0; padding: 4px; color: #315fbe; font-weight: 700; background: transparent; cursor: pointer; }
.text-button:hover { text-decoration: underline; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 16px; }
.metric-card { position: relative; overflow: hidden; min-height: 142px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; right: -19px; bottom: -35px; width: 90px; height: 90px; border-radius: 50%; border: 16px solid #f0f3f7; }
.metric-card.accent { border-color: #f5cf55; background: linear-gradient(145deg,#fffdf7,#fff8dc); }
.metric-card.accent::after { border-color: rgba(255,201,40,.25); }
.metric-label { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; }
.metric-card strong { position: relative; z-index: 1; display: block; margin-top: 8px; font-size: 2.1rem; line-height: 1.1; letter-spacing: -.04em; }
.metric-card small { position: relative; z-index: 1; display: block; color: var(--muted); margin-top: 10px; font-size: .78rem; }
.cost-metrics .metric-card strong { font-size: 1.75rem; }
.cost-metrics { grid-template-columns: repeat(5, minmax(0,1fr)); }
.balance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-bottom: 16px; }
.balance-card { min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); }
.balance-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.balance-head span { font-weight: 850; font-size: .86rem; }.balance-head b { border-radius: 999px; padding: 4px 7px; background: #eef1f5; color: var(--muted); font-size: .62rem; white-space: nowrap; }
.balance-head b.source-api { color: var(--green); background: #e5f7ef; }.balance-head b.source-subscription { color: #315fbe; background: #eaf1ff; }
.balance-card > strong { display: block; margin-top: 20px; font-size: 1.42rem; }.balance-card > small { display: block; margin-top: 6px; color: var(--muted); font-size: .71rem; }.balance-card > p { margin: 9px 0 0; color: var(--red); font-size: .66rem; }
.billing-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.billing-admin-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.billing-empty { border-left-color: var(--red); color: #873b3b; background: #fff2f2; }
.payer-summary { display: flex; align-items: center; gap: 14px; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.payer-summary b,.payer-summary span { display: block; }.payer-summary b { font-size: .84rem; }.payer-summary > div > span { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.saved-methods { display: flex; align-items: flex-start; gap: 18px; justify-content: space-between; margin-top: 12px; border: 1px solid #dbe4f2; border-radius: 12px; padding: 14px 16px; background: #f7faff; }
.saved-methods > div:first-child b,.saved-methods > div:first-child span { display: block; }.saved-methods > div:first-child b { font-size: .8rem; }.saved-methods > div:first-child span { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.saved-methods > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.saved-card { display: grid; grid-template-columns: auto 24px; gap: 1px 8px; align-items: center; border: 1px solid #d9e1ed; border-radius: 9px; padding: 8px 8px 8px 11px; background: #fff; }
.saved-card b { font-size: .72rem; }.saved-card small { grid-column: 1; color: var(--muted); font-size: .62rem; }.saved-card button { grid-column: 2; grid-row: 1 / 3; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; color: var(--red); background: #fff1f1; cursor: pointer; }
.package-heading { margin: 25px 0 13px; }
.package-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.bot-addon-card { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.bot-addon-card > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.bot-addon-card > div:last-child { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bot-addon-card span,.bot-addon-card small { color: var(--muted); }
.scenario-actions { margin-left: auto; display: grid; grid-template-columns: minmax(170px,220px) auto auto; align-items: end; gap: 9px; }
.scenario-actions label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.scenario-actions small { grid-column: 1 / -1; text-align: right; color: var(--muted); }
.package-card { position: relative; display: flex; flex-direction: column; min-height: 245px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.package-card.recommended { border-color: #e7c044; box-shadow: inset 0 3px 0 var(--amber),var(--shadow); }
.package-label { position: absolute; right: 12px; top: 12px; border-radius: 999px; padding: 4px 7px; color: #725500; background: #fff1b5; font-size: .62rem; font-weight: 900; }
.package-card > strong { padding-right: 45px; font-size: 1.15rem; }.package-card > div { margin-top: 26px; }.package-card > div b,.package-card > div span { display: block; }.package-card > div b { font-size: 1.35rem; }.package-card > div span { margin-top: 3px; color: var(--muted); font-size: .69rem; }
.package-card > p { margin: 18px 0; color: var(--muted); font-size: .72rem; }.package-card > p strong { color: var(--ink); }.package-card > button { width: 100%; margin-top: auto; }
.billing-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.billing-panel-head { align-items: center; margin: 0; padding: 17px 18px; border-bottom: 1px solid var(--line); }.billing-panel-head > button { margin-left: auto; }.billing-admin-table { margin-bottom: 16px; }
.minute-change.positive { color: var(--green); }.minute-change.negative { color: var(--red); }
.payment-method-list { display: grid; gap: 9px; }
.payment-method { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); border-radius: 11px; padding: 13px; cursor: pointer; }
.payment-method:has(input:checked) { border-color: #d6ae22; background: #fffaf0; box-shadow: inset 0 0 0 1px #e9c959; }
.payment-method input { flex: none; width: 18px; min-height: 18px; margin: 2px 0 0; }.payment-method b,.payment-method small { display: block; }.payment-method b { font-size: .82rem; }.payment-method small { margin-top: 3px; color: var(--muted); font-size: .69rem; }
.cost-settings { margin-bottom: 16px; }.cost-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.cost-form-grid fieldset { min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 11px; }.cost-form-grid legend { padding: 0 6px; font-size: .82rem; font-weight: 850; }
.cost-form-grid label { display: block; margin-top: 10px; color: var(--muted); font-size: .72rem; font-weight: 750; }.cost-form-grid label:first-of-type { margin-top: 0; }.cost-form-grid input,.cost-form-grid select { margin-top: 5px; }
.learning-grid { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); gap: 16px; margin-bottom: 16px; }
.learning-metrics .metric-text { max-width: 88%; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.015em; overflow-wrap: anywhere; }
.toggle-row { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; cursor: pointer; }
.toggle-row input { width: 18px; min-height: 18px; margin: 2px 0 0; }.toggle-row b,.toggle-row small { display: block; }.toggle-row b { font-size: .82rem; }.toggle-row small { margin-top: 4px; color: var(--muted); font-size: .71rem; line-height: 1.4; }
.learning-limit { display: block; margin-top: 16px; font-size: .78rem; font-weight: 800; }.learning-limit input { margin-top: 6px; }
.learning-patterns { display: grid; gap: 15px; }.pattern-group { padding-bottom: 14px; border-bottom: 1px solid var(--line); }.pattern-group:last-child { padding-bottom: 0; border-bottom: 0; }.pattern-group label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }.pattern-group > div { display: flex; flex-wrap: wrap; gap: 7px; }.pattern-group span { padding: 6px 9px; border-radius: 999px; background: #f0f3f7; font-size: .73rem; }.pattern-group span b { margin-left: 4px; color: #315fbe; }.pattern-group small { color: var(--muted); font-size: .74rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.75fr); gap: 16px; margin-bottom: 16px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 20px; }
.panel-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-head h2, .section-toolbar h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.015em; }
.panel-head p, .section-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.legend { margin-left: auto; display: flex; gap: 12px; color: var(--muted); font-size: .72rem; }
.legend span { display: flex; gap: 5px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.dot.calls { background: #cfd6e2; }.dot.answered { background: var(--blue); }.dot.leads { background: var(--amber-deep); }
.chart { height: 230px; display: flex; gap: 14px; align-items: stretch; padding-top: 15px; overflow-x: auto; }
.chart-day { flex: 1; min-width: 28px; display: grid; grid-template-rows: 1fr 22px; gap: 8px; }
.bars { display: flex; justify-content: center; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line); }
.bar { width: clamp(6px, 22%, 14px); min-height: 2px; border-radius: 4px 4px 0 0; transition: height .25s ease; }
.bar.calls { background: #d5dbe5; }.bar.answered { background: var(--blue); }.bar.leads { background: var(--amber-deep); }
.chart-day label { text-align: center; color: var(--muted); font-size: .68rem; }
.empty-chart { margin: auto; color: var(--muted); text-align: center; }
.lock { margin-left: auto; border-radius: 999px; background: #eef1f5; color: #617086; padding: 5px 9px; font-size: .67rem; font-weight: 800; }
.rule-row { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.rule-row:first-of-type { border-top: 0; }
.rule-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 9px; color: #6c5200; background: #fff4c9; }
.rule-row b, .rule-row small { display: block; }.rule-row b { font-size: .84rem; }.rule-row small { color: var(--muted); font-size: .73rem; margin-top: 2px; }

.section-toolbar { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.section-toolbar > button, .section-toolbar > .filter-row, .section-toolbar > .button-link { margin-left: auto; }
.primary-button, .secondary-button { min-height: 40px; padding: 0 15px; border-radius: 9px; font-weight: 750; font-size: .82rem; cursor: pointer; }
.primary-button { border: 1px solid var(--amber-deep); color: #2d2508; background: var(--amber); box-shadow: 0 4px 10px rgba(230,173,0,.16); }
.primary-button:hover { background: #ffd44c; }
.secondary-button { border: 1px solid var(--line); color: #3c4a61; background: #fff; }
.secondary-button:hover { background: #f7f9fc; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.danger-button { border-color: #efcaca; color: #ac3030; background: #fff7f7; }
button:disabled { opacity: .55; cursor: not-allowed; }

.call-list-grid { display: grid; grid-template-columns: repeat(3,minmax(260px,1fr)); gap: 16px; margin-bottom: 18px; }
.call-list-card { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px; box-shadow: var(--shadow); }
.call-list-card.active { border-color: #9bd8bf; box-shadow: inset 0 3px 0 var(--green), var(--shadow); }
.call-list-card h3 { margin: 0 0 7px; font-size: 1rem; }.call-list-card > p { margin: 0; color: var(--muted); font-size: .75rem; }
.card-top { display: flex; justify-content: space-between; gap: 10px; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.status-badge.active,.status-badge.hot,.status-badge.completed { color: #087048; background: #def5eb; }
.status-badge.paid { color: #087048; background: #def5eb; }.status-badge.cancelled { color: #a23c3c; background: #fde7e7; }
.status-badge.paused,.status-badge.pending,.status-badge.simulated { color: #59687e; background: #edf0f4; }
.status-badge.retry,.status-badge.warm { color: #875f00; background: #fff2c0; }
.status-badge.no_answer,.status-badge.voicemail,.status-badge.failed,.status-badge.cold,.status-badge.do_not_call,.status-badge.interrupted { color: #a23c3c; background: #fde7e7; }
.list-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0; }
.list-stats div { border-radius: 9px; background: #f5f7fa; padding: 10px; }.list-stats strong,.list-stats span { display: block; }.list-stats strong { font-size: 1.05rem; }.list-stats span { color: var(--muted); font-size: .65rem; margin-top: 2px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.card-actions button,.upload-label { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; font-size: .73rem; font-weight: 750; cursor: pointer; }
.upload-label input { display: none; }.card-actions button:hover,.upload-label:hover { background: #f5f7fa; }
.card-actions .start { border-color: #8ed2b5; color: #087048; background: #ecfaf4; }.card-actions .stop { border-color: #f0cece; color: #a63a3a; background: #fff5f5; }

.table-panel { padding: 0; overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #fafbfc; text-transform: uppercase; letter-spacing: .05em; font-size: .65rem; font-weight: 800; }
td { font-size: .78rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfdff; }
.person strong,.person small { display: block; }.person strong { font-size: .8rem; }.person small { color: var(--muted); font-size: .7rem; margin-top: 2px; }
.table-action { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.empty-row { padding: 32px; color: var(--muted); text-align: center; }
.filter-row { display: flex; gap: 9px; }
select, input, textarea { width: 100%; border: 1px solid #d7dde7; border-radius: 9px; color: var(--ink); background: #fff; outline: none; }
select, input { min-height: 42px; padding: 0 12px; }
textarea { min-height: 112px; padding: 12px; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 210px; }
select:focus,input:focus,textarea:focus { border-color: #7da9ff; box-shadow: 0 0 0 3px rgba(52,120,246,.11); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.pagination button { border: 1px solid var(--line); border-radius: 7px; background: #fff; min-height: 34px; padding: 0 10px; cursor: pointer; }

.scenario-layout { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 16px; align-items: start; }
.scenario-tabs { position: sticky; top: 20px; display: grid; gap: 6px; }
.scenario-tab { border: 1px solid transparent; border-radius: 10px; background: transparent; padding: 12px; text-align: left; cursor: pointer; font-weight: 800; font-size: .82rem; }
.scenario-tab span { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; font-size: .69rem; }
.scenario-tab.active { border-color: #d7e0f0; background: #fff; box-shadow: 0 5px 18px rgba(21,32,51,.05); }
.scenario-tab.active::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--amber-deep); vertical-align: 1px; }
.scenario-form { padding: 0 24px; }
.scenario-panel { display: none; }.scenario-panel.active { display: block; }
.form-section { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.section-number { color: #b1bac7; font-size: .7rem; font-weight: 900; padding-top: 5px; }
.field-body label,.split-fields label,.modal-card > label { display: block; margin-bottom: 4px; font-size: .85rem; font-weight: 800; }
.field-body p { margin: 0 0 10px; color: var(--muted); font-size: .73rem; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.input-suffix { display: flex; }.input-suffix input { border-radius: 9px 0 0 9px; }.input-suffix span { display: grid; place-items: center; min-width: 48px; border: 1px solid #d7dde7; border-left: 0; border-radius: 0 9px 9px 0; background: #f4f6f9; color: var(--muted); font-size: .8rem; }
.callout { display: grid; gap: 5px; margin: 20px 0 24px; padding: 14px 15px; border-left: 3px solid var(--blue); border-radius: 7px; background: #f0f6ff; color: #36527b; }
.callout.success { border-left-color: var(--green); background: #eefaf5; color: #26634e; }
.callout b { font-size: .8rem; }.callout span { font-size: .74rem; }

.integration-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.integration-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 20px; box-shadow: var(--shadow); }
.integration-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: #eff3f9; color: #315fbe; }
.integration-card h3 { margin: 15px 0 4px; font-size: .94rem; }.integration-card p { min-height: 38px; margin: 0 0 15px; color: var(--muted); font-size: .75rem; }
.integration-state { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: .72rem; }
.integration-state b.ok { color: var(--green); }.integration-state b.missing { color: var(--red); }
.bitrix-settings { margin-bottom: 16px; }
.utm-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.utm-grid label { display: block; margin-bottom: 5px; font-size: .76rem; font-weight: 800; }
.integration-settings,.platform-settings { margin-bottom: 16px; }
.integration-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.integration-form-grid.two-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.integration-form-grid fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; }
.integration-form-grid legend { padding: 0 6px; font-size: .84rem; font-weight: 850; }
.integration-form-grid label { display: block; margin-top: 11px; color: var(--muted); font-size: .73rem; font-weight: 750; }
.integration-form-grid label:first-of-type { margin-top: 0; }.integration-form-grid input,.integration-form-grid select,.integration-form-grid textarea { margin-top: 5px; }
.integration-form-grid label > small { display: block; margin-top: 4px; color: #78869a; font-size: .64rem; font-weight: 500; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.inline-fields label { margin-top: 11px !important; }
.toggle-row.compact { margin-top: 11px; padding: 10px; }.toggle-row.compact input { width: 18px; }.toggle-row.compact span { min-width: 0; }
.account-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 600px; }
.account-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.account-profile-grid label { display: block; color: var(--muted); font-size: .73rem; font-weight: 800; }.account-profile-grid input,.account-profile-grid select,.account-profile-grid textarea { margin-top: 5px; }.account-address-field { grid-column: 1 / -1; }
.verification-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.legal-audit { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }.legal-audit .panel-head { margin-bottom: 10px; }.legal-audit h3 { margin: 0; font-size: .92rem; }.legal-audit p { margin: 3px 0 0; color: var(--muted); font-size: .7rem; }
.acceptance-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 10px 12px; border-top: 1px solid var(--line); }.acceptance-row:first-child { border-top: 0; }.acceptance-row > div:last-child { text-align: right; }.acceptance-row b,.acceptance-row small { display: block; }.acceptance-row b { font-size: .74rem; }.acceptance-row small { margin-top: 2px; color: var(--muted); font-size: .63rem; }
.table-buttons { display: flex; gap: 6px; flex-wrap: wrap; }.table-buttons .secondary-button { min-height: 32px; padding: 0 9px; font-size: .7rem; }
.status-note { display: block; margin-top: 4px; color: var(--orange); font-size: .64rem; }
.password-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }.password-row button { margin-top: 0; }
.policy-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }.policy-grid div { border-radius: 10px; background: #f6f8fb; padding: 14px; }.policy-grid b,.policy-grid span { display: block; }.policy-grid b { font-size: .77rem; }.policy-grid span { margin-top: 5px; color: var(--muted); font-size: .7rem; }

.support-layout { display: grid; grid-template-columns: minmax(245px,.34fr) minmax(0,1fr); gap: 16px; align-items: stretch; min-height: 610px; }
.support-layout.tenant-mode { grid-template-columns: minmax(0,1fr); }
.support-threads-panel { padding: 14px; }
.support-threads-panel .panel-head { padding: 5px 5px 12px; margin: 0; }
.support-threads { display: grid; gap: 6px; }
.support-thread { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 9px; border: 1px solid transparent; border-radius: 10px; padding: 11px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.support-thread:hover { background: #f6f8fb; }.support-thread.active { border-color: #d7e0f0; background: #f4f7fc; }
.support-thread b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.support-thread small { grid-column: 1 / -1; min-width: 0; overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.support-thread time { color: var(--muted); font-size: .62rem; white-space: nowrap; }
.thread-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 999px; color: #152033; background: var(--amber); font-size: .62rem; font-weight: 900; }
.support-chat { min-width: 0; display: grid; grid-template-rows: auto minmax(300px,1fr) auto; padding: 0; overflow: hidden; }
.support-chat-head { display: flex; align-items: flex-start; gap: 15px; padding: 20px; border-bottom: 1px solid var(--line); }
.support-chat-head h2 { margin: 3px 0 0; font-size: 1.08rem; }.support-chat-head p { margin: 4px 0 0; color: var(--muted); font-size: .73rem; }
.support-online { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; color: #087048; background: #e4f7ef; font-size: .66rem; font-weight: 800; }.support-online i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.support-messages { min-height: 340px; max-height: 58vh; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 20px; background: #f8fafc; }
.support-empty { margin: auto; display: grid; gap: 6px; color: var(--muted); text-align: center; }.support-empty b { color: var(--ink); font-size: .9rem; }.support-empty span { font-size: .74rem; }
.support-message { max-width: min(78%,620px); display: grid; gap: 5px; align-self: flex-start; }
.support-message.mine { align-self: flex-end; }.support-message .message-body { border: 1px solid #e0e5ed; border-radius: 4px 13px 13px 13px; padding: 10px 12px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .79rem; }
.support-message.mine .message-body { border-color: #ead37d; border-radius: 13px 4px 13px 13px; background: #fff4c9; }
.support-message small { color: var(--muted); font-size: .62rem; }.support-message.mine small { text-align: right; }
.support-compose { padding: 16px 20px 18px; border-top: 1px solid var(--line); background: #fff; }
.support-compose label { display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 800; }.support-compose textarea { min-height: 86px; max-height: 180px; }
.support-compose > div { display: flex; align-items: center; gap: 12px; margin-top: 10px; }.support-compose small { color: var(--muted); font-size: .68rem; }.support-compose button { margin-left: auto; }

.guide-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.guide-step { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; box-shadow: var(--shadow); }
.guide-step > span,.guide-number { flex: none; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #725500; background: #fff1b5; font-size: .72rem; font-weight: 900; }
.guide-step b,.guide-step small { display: block; }.guide-step b { font-size: .78rem; }.guide-step small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; align-items: start; }
.guide-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.guide-card summary { list-style: none; display: flex; align-items: center; gap: 11px; padding: 16px; cursor: pointer; }.guide-card summary::-webkit-details-marker { display: none; }
.guide-card summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.25rem; }.guide-card[open] summary::after { content: "−"; }
.guide-card summary b,.guide-card summary small { display: block; }.guide-card summary b { font-size: .86rem; }.guide-card summary small { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.guide-body { border-top: 1px solid var(--line); padding: 16px 18px 18px; color: #43506a; font-size: .76rem; line-height: 1.55; }.guide-body p { margin: 0 0 12px; }.guide-body p:last-child { margin-bottom: 0; }.guide-body ol { margin: 0 0 13px; padding-left: 20px; }.guide-body li + li { margin-top: 6px; }
.guide-example { display: grid; gap: 6px; margin: 11px 0; padding: 12px; border-left: 3px solid var(--amber-deep); border-radius: 7px; background: #fffaf0; }.guide-example b { color: #765900; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }.guide-example code { border-radius: 4px; padding: 1px 4px; background: #f0e8cf; font-size: .72rem; }
.guide-table { margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; }.guide-table table { min-width: 620px; }.guide-table th,.guide-table td { padding: 9px; font-size: .68rem; }
.guide-statuses { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }.guide-statuses span { border-radius: 7px; padding: 9px; background: #f3f6fa; font-size: .69rem; }.guide-statuses b { display: block; margin-bottom: 2px; color: var(--ink); }

.modal { width: min(520px,calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 15px; color: var(--ink); box-shadow: 0 25px 70px rgba(12,20,34,.24); }
.modal::backdrop { background: rgba(11,19,32,.5); backdrop-filter: blur(3px); }
.wide-modal { width: min(880px,calc(100% - 28px)); }
.modal-card { padding: 22px; }
.modal-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 22px; }.modal-head h2 { margin: 3px 0 0; font-size: 1.2rem; }.modal-close { margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 1.25rem; cursor: pointer; }
.modal-card > label { margin-top: 15px; }.input-help { color: var(--muted); font-size: .72rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }.detail-item { padding: 12px; border-radius: 9px; background: #f5f7fa; }.detail-item label,.detail-item b { display: block; }.detail-item label { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }.detail-item b { margin-top: 5px; font-size: .78rem; overflow-wrap: anywhere; }
.transcript { display: grid; gap: 9px; max-height: 330px; overflow: auto; padding: 3px; }.bubble { max-width: 83%; padding: 10px 12px; border-radius: 12px; background: #edf1f6; font-size: .78rem; white-space: pre-wrap; }.bubble.bot { margin-left: auto; background: #fff1b7; }.bubble small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .65rem; font-weight: 800; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: 390px; padding: 13px 16px; border-radius: 10px; color: #fff; background: #1b2a40; box-shadow: 0 12px 30px rgba(10,18,30,.24); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; font-size: .8rem; }.toast.show { opacity: 1; transform: none; }.toast.error { background: #a83f3f; }

.login-page { display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at top left,#ffffff 0,#f4f6f9 42%,#e8edf5 100%); }
.login-shell { width: min(440px,100%); }
.login-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 30px; box-shadow: 0 24px 80px rgba(21,32,51,.14); }
.login-brand { display: flex; align-items: center; gap: 12px; }.login-brand strong,.login-brand small { display: block; }.login-brand small { color: var(--muted); font-size: .72rem; }
.login-heading { margin: 34px 0 22px; }.login-heading h1 { margin: 5px 0 7px; font-size: 1.7rem; }.login-heading p,.login-foot { color: var(--muted); font-size: .78rem; }
.login-form label { display: block; margin-top: 14px; font-size: .78rem; font-weight: 800; }.login-form input { margin-top: 6px; }.login-form button { width: 100%; margin-top: 22px; }
.login-error { margin-bottom: 15px; padding: 11px 12px; border-radius: 9px; color: #973737; background: #fdeaea; font-size: .75rem; }.login-foot { margin: 18px 0 0; text-align: center; }
.registration-link { width: 100%; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.registration-page { align-items: start; }
.registration-shell { width: min(880px,100%); margin: 18px auto; }
.registration-card { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 30px; box-shadow: 0 24px 80px rgba(21,32,51,.14); }
.registration-head { display: flex; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.registration-head > a { margin-left: auto; color: #315fbe; font-size: .78rem; font-weight: 800; text-decoration: none; }
.registration-form { display: grid; gap: 18px; }
.customer-type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.customer-type-picker legend { grid-column: 1 / -1; margin-bottom: 4px; font-size: .8rem; font-weight: 850; }
.customer-type-picker label { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.customer-type-picker label:has(input:checked) { border-color: #d6ae22; background: #fffaf0; box-shadow: inset 0 0 0 1px #e9c959; }
.customer-type-picker input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.customer-type-picker b,.customer-type-picker small { display: block; }.customer-type-picker small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.registration-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.registration-fields > label,.legal-registration-fields > label,.verification-grid label { display: block; font-size: .78rem; font-weight: 800; }
.registration-fields input,.verification-grid input { margin-top: 6px; }
.legal-registration-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.company-result { min-height: 69px; display: grid; gap: 3px; padding: 11px 13px; border: 1px solid #9bd8bf; border-radius: 9px; background: #eefaf5; }
.company-result b { font-size: .8rem; }.company-result span,.company-result small { color: #3f6a59; font-size: .69rem; }
.legal-checkboxes { display: grid; gap: 9px; }.legal-checkboxes a { color: #245fca; }
.registration-form > .primary-button,.registration-form > .secondary-button { width: 100%; }
.verification-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verification-grid input { text-align: center; font-size: 1.35rem; font-weight: 850; letter-spacing: .22em; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 218px minmax(0,1fr); }.sidebar { padding-inline: 12px; }.main { padding-inline: 22px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }.call-list-grid { grid-template-columns: repeat(2,1fr); }.integration-grid { grid-template-columns: repeat(2,1fr); }.balance-grid { grid-template-columns: repeat(2,1fr); }.cost-form-grid { grid-template-columns: 1fr; }.package-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid,.learning-grid,.billing-columns { grid-template-columns: 1fr; }.policy-grid { grid-template-columns: repeat(2,1fr); }.guide-steps { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .shell { display: block; }.sidebar { position: fixed; left: -270px; width: 258px; transition: left .2s ease; box-shadow: 12px 0 35px rgba(9,16,27,.22); }.sidebar.open { left: 0; }
  .main { padding: 0 14px 30px; }.topbar { min-height: 82px; margin-bottom: 18px; }.menu-button { display: block; }.topbar h1 { font-size: 1.35rem; }
  .schedule-chip,.cabinet-chip { display: none; }.top-actions { gap: 6px; }.mode-chip { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }.minute-chip { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }.admin-cabinet-select { width: 150px; }
  .summary-strip { align-items: flex-start; flex-wrap: wrap; }.summary-strip .text-button { margin-left: 0; width: 100%; text-align: left; }
  .dashboard-period { justify-content: flex-start; margin-top: 0; }
  .date-range-button { max-width: 100%; }
  .date-range-button span { overflow: hidden; text-overflow: ellipsis; }
  .date-range-popover { max-height: calc(100vh - 20px); overflow-y: auto; padding: 13px; }
  .date-range-calendars { grid-template-columns: 1fr; gap: 12px; }
  .date-range-footer { align-items: stretch; flex-direction: column; }
  .date-range-presets,.date-range-actions { justify-content: space-between; }
  .date-range-actions button { flex: 1; }
  .metric-grid,.call-list-grid,.integration-grid,.integration-form-grid,.integration-form-grid.two-columns,.utm-grid,.balance-grid,.package-grid,.account-profile-grid { grid-template-columns: 1fr; }.metric-card { min-height: 126px; }
  .account-address-field { grid-column: auto; }.payer-summary,.saved-methods { align-items: stretch; flex-direction: column; }.saved-methods > div:last-child { justify-content: flex-start; }.acceptance-row { grid-template-columns: 1fr; }.acceptance-row > div:last-child { text-align: left; }
  .section-toolbar { align-items: flex-start; }.scenario-heading { flex-wrap: wrap; }.scenario-heading > button { margin-left: 0; }.scenario-actions { width: 100%; margin-left: 0; grid-template-columns: 1fr; }.scenario-actions small { grid-column: 1; text-align: left; }.bot-addon-card { align-items: flex-start; flex-direction: column; }.bot-addon-card > div:last-child { width: 100%; margin-left: 0; justify-content: space-between; }
  .scenario-layout { grid-template-columns: 1fr; }.scenario-tabs { position: static; grid-template-columns: repeat(2,1fr); }.scenario-tab { padding: 10px; }.scenario-tab span { display: none; }.scenario-form { padding: 0 16px; }
  .form-section { grid-template-columns: 30px minmax(0,1fr); }.split-fields { grid-template-columns: 1fr; }.policy-grid,.detail-grid { grid-template-columns: 1fr 1fr; }
  .filter-row { width: 100%; flex-wrap: wrap; }.section-toolbar { flex-wrap: wrap; }.section-toolbar > button,.section-toolbar > .filter-row,.section-toolbar > .button-link { margin-left: 0; }
  .support-layout,.guide-grid { grid-template-columns: 1fr; }.support-threads-panel { max-height: 260px; overflow: auto; }.support-messages { max-height: 52vh; }.guide-steps { grid-template-columns: 1fr 1fr; }
  .registration-card { padding: 20px; }.registration-fields,.legal-registration-fields,.verification-grid { grid-template-columns: 1fr; }.customer-type-picker { grid-template-columns: 1fr; }.registration-head { align-items: flex-start; }
}

@media (max-width: 430px) {
  .topbar { gap: 8px; }.mode-chip { display: none; }.admin-cabinet-select { width: 116px; padding-inline: 8px 22px; }.minute-chip { max-width: 112px; }.metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.billing-metrics { grid-template-columns: 1fr; }.metric-card { min-height: 118px; padding: 15px; }.metric-card strong { font-size: 1.75rem; }.metric-card small { font-size: .69rem; }
  .legend { display: none; }.chart { gap: 7px; }.policy-grid,.detail-grid,.guide-statuses { grid-template-columns: 1fr; }.scenario-tabs { grid-template-columns: 1fr 1fr; }.guide-steps { grid-template-columns: 1fr; }.support-message { max-width: 90%; }.support-compose > div { align-items: flex-start; flex-direction: column; }.support-compose button { width: 100%; margin-left: 0; }
}
.recording-player { padding: 16px; margin: 14px 0; border: 1px solid #dbe4f2; border-radius: 12px; background: #f7faff; }
.recording-player audio { display: block; width: 100%; max-width: 620px; }
.recording-player p, .voice-comparison p { overflow-wrap: anywhere; }
.voice-comparison { margin-top: 24px; }

/* Public landing page */
.landing-page { --landing-navy: #101a2b; --landing-cream: #f7f4ec; --landing-yellow: #ffc928; color: var(--landing-navy); background: var(--landing-cream); }
.landing-page * { scroll-margin-top: 92px; }
.landing-container { width: min(1180px,calc(100% - 40px)); margin-inline: auto; }
.landing-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(16,26,43,.09); background: rgba(247,244,236,.92); backdrop-filter: blur(14px); }
.landing-header-inner { min-height: 78px; display: flex; align-items: center; gap: 34px; }
.landing-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.landing-brand strong,.landing-brand small { display: block; }
.landing-brand strong { font-size: 1.06rem; line-height: 1; letter-spacing: -.025em; }
.landing-brand small { margin-top: 4px; color: #657084; font-size: .64rem; font-weight: 650; }
.voice-logo { flex: none; width: 43px; height: 43px; overflow: visible; }
.voice-logo rect { fill: var(--landing-yellow,#ffc928); stroke: none; }
.voice-logo path { fill: none; stroke: var(--landing-navy,#101a2b); stroke-width: 2.5; stroke-linecap: round; }
.voice-logo .logo-tail { stroke-width: 2; stroke-linejoin: round; }
.landing-nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.landing-nav a,.landing-login { color: #596476; font-size: .77rem; font-weight: 750; text-decoration: none; }
.landing-nav a:hover,.landing-login:hover { color: var(--landing-navy); }
.landing-header-actions { display: flex; align-items: center; gap: 15px; }
.landing-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 20px; border: 1px solid var(--landing-navy); border-radius: 11px; color: #fff; background: var(--landing-navy); box-shadow: 0 9px 22px rgba(16,26,43,.14); font-size: .82rem; font-weight: 850; text-decoration: none; transition: transform .18s,box-shadow .18s,background .18s; }
.landing-button:hover { transform: translateY(-2px); background: #1a2a43; box-shadow: 0 13px 28px rgba(16,26,43,.2); }
.landing-button.compact { min-height: 40px; padding: 8px 14px; font-size: .72rem; }
.landing-button span { font-size: 1.15rem; line-height: 1; }
.landing-text-link { display: inline-flex; align-items: center; color: var(--landing-navy); font-size: .8rem; font-weight: 850; text-underline-offset: 4px; }

.landing-hero { position: relative; overflow: hidden; padding: 84px 0 76px; }
.landing-hero::before { content: ""; position: absolute; width: 540px; height: 540px; right: -170px; top: -260px; border-radius: 50%; background: rgba(255,201,40,.22); filter: blur(3px); }
.landing-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(440px,.95fr); gap: 68px; align-items: center; }
.landing-kicker { width: fit-content; display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(16,26,43,.13); border-radius: 999px; color: #596476; background: rgba(255,255,255,.54); font-size: .67rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.landing-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,106,.13); }
.landing-kicker.light { color: #725500; border-color: #ebd47f; background: #fff8d8; }
.landing-kicker.dark-kicker { color: #e2b900; border-color: rgba(255,201,40,.28); background: rgba(255,201,40,.08); }
.landing-hero h1 { max-width: 760px; margin: 22px 0 24px; font-size: clamp(2.65rem,5vw,4.75rem); line-height: .98; letter-spacing: -.065em; }
.landing-hero h1 em { color: #d3a500; font-family: Georgia,"Times New Roman",serif; font-weight: 500; }
.landing-hero-copy > p { max-width: 610px; margin: 0; color: #606b7d; font-size: 1rem; line-height: 1.7; }
.landing-hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 31px; }
.landing-hero-notes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; padding-top: 24px; border-top: 1px solid rgba(16,26,43,.1); }
.landing-hero-notes span { display: grid; gap: 2px; color: #70798a; font-size: .65rem; }
.landing-hero-notes b { color: var(--landing-navy); font-size: .81rem; }

.landing-call-demo { position: relative; min-height: 510px; overflow: hidden; padding: 28px; border-radius: 28px 28px 28px 8px; color: #f7f9fc; background: var(--landing-navy); box-shadow: 0 32px 80px rgba(16,26,43,.25); transform: rotate(1.2deg); }
.landing-call-demo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 95% 5%,rgba(255,201,40,.18),transparent 35%); pointer-events: none; }
.demo-top,.demo-time,.demo-result { position: relative; display: flex; align-items: center; }
.demo-contact { display: flex; align-items: center; gap: 11px; }
.demo-contact small,.demo-contact strong { display: block; }.demo-contact small { color: #8592a8; font-size: .65rem; }.demo-contact strong { margin-top: 2px; font-size: .85rem; }
.demo-avatar { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: var(--landing-yellow); background: #1d2a40; font-size: .72rem; font-weight: 900; }
.demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; color: #83e2ba; background: rgba(22,163,106,.14); font-size: .62rem; font-weight: 800; }.demo-live i { width: 6px; height: 6px; border-radius: 50%; background: #45d69a; animation: demo-pulse 1.4s infinite; }
@keyframes demo-pulse { 50% { box-shadow: 0 0 0 6px rgba(69,214,154,.1); } }
.demo-wave { position: relative; height: 114px; display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 25px; border-block: 1px solid rgba(255,255,255,.07); }
.demo-wave::after { content: ""; position: absolute; inset-inline: 0; height: 1px; background: rgba(255,255,255,.06); }
.demo-wave i { width: 4px; height: 28%; border-radius: 4px; background: var(--landing-yellow); opacity: .85; }.demo-wave i:nth-child(3n) { height: 68%; }.demo-wave i:nth-child(4n) { height: 42%; }.demo-wave i:nth-child(5n) { height: 83%; }.demo-wave i:nth-child(7n) { height: 58%; }
.demo-time { justify-content: space-between; margin-top: 8px; color: #8290a6; font-size: .62rem; }
.demo-dialogue { position: relative; display: grid; gap: 10px; margin-top: 22px; }
.demo-dialogue p { max-width: 84%; margin: 0; padding: 11px 13px; border-radius: 4px 13px 13px 13px; background: #1c2940; font-size: .71rem; line-height: 1.5; }.demo-dialogue p b { display: block; margin-bottom: 3px; color: #8d99ad; font-size: .56rem; text-transform: uppercase; letter-spacing: .07em; }.demo-dialogue .demo-client { justify-self: end; border-radius: 13px 4px 13px 13px; color: #172034; background: #ffda61; }.demo-dialogue .demo-client b { color: #816716; }
.demo-result { gap: 11px; margin-top: 24px; padding: 14px; border: 1px solid rgba(90,220,165,.2); border-radius: 13px; background: rgba(22,163,106,.11); }.demo-check { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #0f1d19; background: #57dda6; font-weight: 900; }.demo-result small,.demo-result strong { display: block; }.demo-result small { color: #88ae9e; font-size: .57rem; }.demo-result strong { margin-top: 2px; font-size: .74rem; }.demo-hot { margin-left: auto; padding: 5px 8px; border-radius: 999px; color: #0f1d19; background: #57dda6; font-size: .58rem; font-weight: 900; }
.demo-orbit { position: absolute; border: 1px solid rgba(255,201,40,.13); border-radius: 50%; pointer-events: none; }.orbit-one { width: 210px; height: 210px; right: -125px; bottom: -70px; }.orbit-two { width: 270px; height: 270px; right: -154px; bottom: -99px; }

.landing-proof { border-block: 1px solid rgba(16,26,43,.09); background: rgba(255,255,255,.48); }
.landing-proof-grid { min-height: 84px; display: grid; grid-template-columns: 1.25fr repeat(4,1fr); align-items: center; gap: 22px; }.landing-proof-grid p { margin: 0; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .055em; }.landing-proof-grid span { color: #667185; font-size: .68rem; font-weight: 700; }.landing-proof-grid span::before { content: "✓"; margin-right: 7px; color: #bb9200; font-weight: 950; }

.landing-section { padding: 108px 0; }
.landing-section-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 45px; }.landing-section-head h2 { margin: 15px 0 0; font-size: clamp(2.1rem,4vw,3.45rem); line-height: 1.03; letter-spacing: -.055em; }.landing-section-head > p { max-width: 420px; margin: 0; color: #687386; font-size: .86rem; line-height: 1.65; }.landing-section-head.centered { display: grid; justify-items: center; text-align: center; }.landing-section-head.centered p { max-width: 600px; }
.landing-bento { display: grid; grid-template-columns: 1.15fr .85fr .85fr; gap: 15px; }
.landing-feature { position: relative; min-height: 235px; overflow: hidden; padding: 25px; border: 1px solid rgba(16,26,43,.1); border-radius: 18px; background: rgba(255,255,255,.72); }.landing-feature.feature-large { grid-row: span 2; min-height: 485px; }.landing-feature.dark { color: #fff; background: var(--landing-navy); }.landing-feature.accent { grid-column: span 2; background: #ffec99; }.landing-feature h3 { max-width: 390px; margin: 28px 0 9px; font-size: 1.28rem; letter-spacing: -.025em; }.landing-feature p { max-width: 460px; margin: 0; color: #687386; font-size: .76rem; line-height: 1.65; }.landing-feature.dark p { color: #9ca8ba; }.feature-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #876800; background: #ffed9e; font-size: 1.1rem; font-weight: 900; }.landing-feature.dark .feature-icon { color: var(--landing-yellow); background: #202f47; }
.feature-script { display: grid; gap: 8px; margin-top: 45px; }.feature-script span { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(16,26,43,.08); border-radius: 10px; background: #fff; color: #4d596c; font-size: .69rem; font-weight: 750; }.feature-script i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #755b00; background: #fff1af; font-size: .56rem; font-style: normal; font-weight: 900; }
.crm-pill { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 10px; margin-top: 32px; padding: 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: #1c2940; }.crm-pill b { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; color: #142033; background: #58dca7; font-size: .6rem; }.crm-pill span { color: #c4ccda; font-size: .68rem; }.crm-pill i { color: #58dca7; font-style: normal; }
.mini-bars { position: absolute; right: 30px; bottom: 22px; width: 205px; height: 95px; display: flex; align-items: end; gap: 9px; padding: 10px 12px 0; border-bottom: 1px solid rgba(16,26,43,.16); }.mini-bars i { flex: 1; border-radius: 5px 5px 0 0; background: var(--landing-navy); opacity: .8; }

.landing-how { background: #fff; }
.landing-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.landing-steps article { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fbfaf6; }.landing-steps article > span { position: absolute; right: 19px; top: 17px; color: #b7bdc7; font-size: .66rem; font-weight: 900; }.landing-steps h3 { margin: 23px 0 8px; font-size: 1.05rem; }.landing-steps p { margin: 0; color: #687386; font-size: .74rem; line-height: 1.6; }
.step-visual { height: 155px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: #f0ede4; }.step-visual.upload { gap: 8px; }.step-visual.upload i { padding: 13px 11px; border: 1px solid #d9d5ca; border-radius: 8px; color: #637085; background: #fff; font-size: .58rem; font-style: normal; font-weight: 900; box-shadow: 0 7px 15px rgba(16,26,43,.07); }.step-visual.upload b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--landing-yellow); }
.step-visual.scenario { position: relative; display: grid; gap: 7px; align-content: center; padding-inline: 50px; }.step-visual.scenario i { width: 100%; height: 7px; border-radius: 5px; background: #d4d0c5; }.step-visual.scenario i:nth-child(2) { width: 75%; }.step-visual.scenario i:nth-child(3) { width: 88%; }.step-visual.scenario b { position: absolute; right: 26px; bottom: 22px; padding: 7px 10px; border-radius: 7px; color: #172033; background: var(--landing-yellow); font-size: .58rem; }
.step-visual.leads { gap: 5px; flex-direction: column; color: #fff; background: var(--landing-navy); }.step-visual.leads b { font-size: 2.5rem; line-height: 1; }.step-visual.leads i { color: #9aa7ba; font-size: .68rem; font-style: normal; }.step-visual.leads em { margin-top: 8px; padding: 4px 7px; border-radius: 999px; color: #183126; background: #64d9a9; font-size: .58rem; font-style: normal; font-weight: 900; }

.landing-pricing { color: #f4f6fa; background: var(--landing-navy); }.landing-pricing .landing-section-head > p { color: #96a2b5; }
.landing-price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }.price-card { position: relative; padding: 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: #17243a; }.price-card > span { color: #8f9cb0; font-size: .66rem; font-weight: 750; }.price-card h3 { margin: 20px 0 17px; font-size: 2rem; letter-spacing: -.05em; }.price-card h3 small { color: #8e9bae; font-size: .72rem; font-weight: 700; letter-spacing: 0; }.price-rate { display: flex; align-items: baseline; gap: 7px; }.price-rate b { color: var(--landing-yellow); font-size: 1.08rem; }.price-rate small { color: #8693a6; font-size: .62rem; }.price-card > p { margin: 9px 0 22px; color: #a9b3c2; font-size: .7rem; }.price-card > a { min-height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: #e9edf4; background: rgba(255,255,255,.035); font-size: .69rem; font-weight: 850; text-decoration: none; }.price-card > a:hover { color: #172033; border-color: var(--landing-yellow); background: var(--landing-yellow); }.price-card.popular { border-color: var(--landing-yellow); background: #1c2a40; box-shadow: inset 0 0 0 1px rgba(255,201,40,.12); }.price-card .popular-label { position: absolute; right: 15px; top: 15px; padding: 5px 7px; border-radius: 999px; color: #172033; background: var(--landing-yellow); font-size: .53rem; text-transform: uppercase; letter-spacing: .05em; }
.landing-addon { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 15px; padding: 20px 23px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.04); }.landing-addon > div { display: flex; align-items: center; gap: 12px; }.landing-addon strong,.landing-addon small { display: block; }.landing-addon strong { font-size: .8rem; }.landing-addon small { margin-top: 3px; color: #8f9baf; font-size: .63rem; }.landing-addon p { margin: 0; color: #aab4c4; font-size: .72rem; }.landing-addon p b { color: var(--landing-yellow); }.addon-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: #172033; background: var(--landing-yellow); }

.landing-faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }.landing-faq-grid h2 { margin: 18px 0 14px; font-size: clamp(2.15rem,4vw,3.4rem); line-height: 1.02; letter-spacing: -.055em; }.landing-faq-grid > div:first-child > p { max-width: 370px; margin: 0 0 22px; color: #687386; font-size: .8rem; line-height: 1.6; }.faq-list { border-top: 1px solid rgba(16,26,43,.12); }.faq-list details { border-bottom: 1px solid rgba(16,26,43,.12); }.faq-list summary { list-style: none; display: flex; align-items: center; gap: 15px; padding: 20px 0; cursor: pointer; font-size: .86rem; font-weight: 850; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary i { margin-left: auto; color: #9c7a00; font-size: 1rem; font-style: normal; transition: transform .2s; }.faq-list details[open] summary i { transform: rotate(45deg); }.faq-list details p { max-width: 630px; margin: -5px 0 20px; color: #677285; font-size: .76rem; line-height: 1.7; }

.landing-final { padding: 0 0 80px; }.landing-final-card { min-height: 275px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 55px; overflow: hidden; position: relative; border-radius: 25px 25px 25px 7px; color: #fff; background: #c89d00; }.landing-final-card::after { content: ""; position: absolute; width: 310px; height: 310px; right: -100px; top: -130px; border: 55px solid rgba(255,255,255,.09); border-radius: 50%; }.landing-final-card h2 { margin: 15px 0 10px; font-size: clamp(2rem,4vw,3.25rem); line-height: 1; letter-spacing: -.05em; }.landing-final-card p { max-width: 650px; margin: 0; color: #fff9df; font-size: .8rem; }.landing-final-card .landing-kicker { position: relative; z-index: 1; color: #fff9df; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }.light-button { position: relative; z-index: 1; flex: none; color: var(--landing-navy); border-color: #fff; background: #fff; }.light-button:hover { background: #fff8d9; }
.landing-footer { color: #d9dfeb; background: #0b1321; }.landing-footer > div { min-height: 125px; display: flex; align-items: center; gap: 35px; }.footer-brand small { color: #76849a; }.footer-links { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 17px; }.footer-links a { color: #8794a8; font-size: .64rem; text-decoration: none; }.footer-links a:hover { color: #fff; }.landing-footer p { margin: 0; color: #66748a; font-size: .62rem; }

.auth-brand { color: var(--ink); }.login-card .auth-brand { margin-bottom: 4px; }.registration-head .auth-brand { flex: none; }.registration-head > .registration-login-link { margin-left: auto; color: #315fbe; font-size: .78rem; font-weight: 800; text-decoration: none; }

@media (max-width: 980px) {
  .landing-nav { display: none; }.landing-header-actions { margin-left: auto; }
  .landing-hero-grid { grid-template-columns: 1fr 400px; gap: 35px; }.landing-hero h1 { font-size: clamp(2.6rem,6vw,4rem); }
  .landing-bento { grid-template-columns: 1fr 1fr; }.landing-feature.feature-large { grid-row: auto; }.landing-feature.accent { grid-column: span 2; }
  .landing-price-grid { grid-template-columns: repeat(2,1fr); }.landing-faq-grid { gap: 45px; }
}

@media (max-width: 760px) {
  .landing-container { width: min(100% - 28px,1180px); }.landing-header-inner { min-height: 68px; gap: 16px; }.landing-header .voice-logo { width: 38px; height: 38px; }.landing-header .landing-brand small { display: none; }.landing-login { display: none; }.landing-button.compact { padding-inline: 11px; }
  .landing-hero { padding: 54px 0 55px; }.landing-hero-grid { grid-template-columns: 1fr; }.landing-hero-copy > p { font-size: .88rem; }.landing-hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }.landing-hero-notes { gap: 15px; }.landing-call-demo { min-height: 485px; padding: 21px; transform: none; }
  .landing-proof-grid { grid-template-columns: 1fr 1fr; padding-block: 20px; }.landing-proof-grid p { grid-column: 1 / -1; }
  .landing-section { padding: 75px 0; }.landing-section-head { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 30px; }.landing-section-head h2 { font-size: 2.35rem; }
  .landing-bento { grid-template-columns: 1fr; }.landing-feature,.landing-feature.feature-large { min-height: auto; }.landing-feature.accent { grid-column: auto; min-height: 260px; }.feature-script { margin-top: 28px; }.mini-bars { right: 20px; bottom: 18px; width: 165px; height: 78px; }
  .landing-steps { grid-template-columns: 1fr; }.landing-price-grid { grid-template-columns: 1fr; }.landing-addon { align-items: flex-start; flex-direction: column; gap: 16px; }
  .landing-faq-grid { grid-template-columns: 1fr; gap: 35px; }.landing-final-card { align-items: flex-start; flex-direction: column; padding: 35px 27px; }.landing-final-card .landing-button { width: 100%; }
  .landing-footer > div { align-items: flex-start; flex-direction: column; gap: 20px; padding-block: 32px; }.footer-links { margin-left: 0; justify-content: flex-start; }
  .registration-head { align-items: flex-start; }.registration-head .auth-brand small { display: none; }.registration-head > .registration-login-link { font-size: .68rem; text-align: right; }
}

@media (max-width: 420px) {
  .landing-header .landing-brand strong { font-size: .92rem; }.landing-header .landing-button.compact { font-size: .64rem; }
  .landing-hero h1 { font-size: 2.35rem; }.landing-hero-notes { display: grid; grid-template-columns: 1fr 1fr; }.landing-call-demo { min-height: 470px; }.demo-dialogue p { max-width: 92%; }
  .landing-proof-grid { grid-template-columns: 1fr; }.landing-proof-grid p { grid-column: auto; }.landing-section-head h2,.landing-faq-grid h2 { font-size: 2.05rem; }.price-card { padding: 21px; }
}

/* AIVOCO_GENERATION_TARIFFS_V1 */
#view-call-lists.aivoco-generation-mode #call-list-grid {
  display: none !important;
}

.aivoco-generation-tariffs {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border, #e3e7ee);
  border-radius: 14px;
  background: var(--panel, #fff);
}

.aivoco-generation-tariffs__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.aivoco-generation-tariffs__head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.3;
}

.aivoco-generation-tariffs__head p,
.aivoco-generation-tariffs__note {
  margin: 0;
  color: var(--muted, #6c7480);
  font-size: 13px;
  line-height: 1.45;
}

.aivoco-generation-tariffs__balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.aivoco-generation-tariffs__balance strong {
  color: #1d2a44;
  font-size: 16px;
}

.aivoco-generation-tariffs__balance span {
  color: var(--muted, #6c7480);
  font-size: 11px;
}

.aivoco-generation-tariffs__payment {
  margin: -2px 0 14px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.4;
}

.aivoco-generation-tariffs__payment.is-ready {
  background: #ecf8f1;
  color: #157347;
}

.aivoco-generation-tariffs__payment.is-blocked {
  background: #fff6d9;
  color: #725400;
}

.aivoco-generation-tariffs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.aivoco-generation-tariff {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border, #e3e7ee);
  border-radius: 12px;
  background: var(--panel, #fff);
  display: flex;
  flex-direction: column;
}

.aivoco-generation-tariff.is-featured {
  border: 2px solid #f6bf19;
  padding: 13px;
}

.aivoco-generation-tariff__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff2b7;
  color: #6c5200;
  font-size: 10px;
  font-weight: 700;
}

.aivoco-generation-tariff__name {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted, #6c7480);
}

.aivoco-generation-tariff__qty {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.aivoco-generation-tariff__unit {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 800;
}

.aivoco-generation-tariff__unit span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #6c7480);
}

.aivoco-generation-tariff__total {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 700;
}

.aivoco-generation-tariff__saving {
  margin-top: 8px;
  font-size: 12px;
  color: #198754;
  font-weight: 700;
}

.aivoco-generation-tariff__saving.is-muted {
  color: var(--muted, #6c7480);
  font-weight: 500;
}

.aivoco-generation-tariff__buy {
  width: 100%;
  margin-top: 14px;
}

.aivoco-generation-tariffs__note {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .aivoco-generation-tariffs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .aivoco-generation-tariffs {
    padding: 12px;
  }

  .aivoco-generation-tariffs__grid {
    grid-template-columns: 1fr;
  }

  .aivoco-generation-tariffs__head {
    flex-direction: column;
  }

  .aivoco-generation-tariffs__balance {
    align-items: flex-start;
  }
}

/* AIVOCO_MULTI_GENERATION_V1 */
.mg-wrap {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border, #e3e7ee);
  border-radius: 14px;
  background: var(--panel, #fff);
}

.mg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mg-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.mg-head p,
.mg-project-route,
.mg-source-empty,
.mg-empty {
  color: var(--muted, #6c7480);
  font-size: 13px;
}

.mg-head p {
  margin: 0;
  line-height: 1.45;
}

.mg-primary,
.mg-secondary {
  border: 0;
  border-radius: 9px;
  padding: 10px 13px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mg-primary {
  background: #f6bf19;
  color: #1d1d1d;
}

.mg-secondary {
  background: var(--soft, #f1f3f6);
  color: var(--text, #20242a);
}

.mg-create {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding: 12px;
  border-radius: 11px;
  background: var(--soft, #f7f8fa);
}

.mg-create[hidden] {
  display: none !important;
}

.mg-create label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--muted, #6c7480);
}

.mg-create input,
.mg-create select,
.mg-source-form input,
.mg-source-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border, #dfe3e8);
  border-radius: 9px;
  padding: 10px;
  background: var(--panel, #fff);
  color: var(--text, #20242a);
  font: inherit;
}

.mg-create-actions {
  display: flex;
  gap: 8px;
}

.mg-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mg-project {
  padding: 14px;
  border: 1px solid var(--border, #e3e7ee);
  border-radius: 12px;
}

.mg-project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mg-project-title {
  font-size: 16px;
  font-weight: 800;
}

.mg-project-route {
  margin-top: 4px;
  line-height: 1.45;
}

.mg-project-route span {
  margin: 0 5px;
}

.mg-project-count {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted, #6c7480);
}

.mg-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.mg-source-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft, #f1f3f6);
  font-size: 12px;
}

.mg-source-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-source-chip small {
  color: var(--muted, #6c7480);
}

.mg-source-form {
  display: grid;
  grid-template-columns: 170px minmax(180px, 1fr) 100px auto;
  gap: 8px;
  margin-top: 12px;
}

.mg-empty {
  padding: 14px;
  text-align: center;
  border: 1px dashed var(--border, #dfe3e8);
  border-radius: 10px;
  line-height: 1.5;
}

.mg-toast {
  position: fixed;
  z-index: 99999;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: min(90vw, 520px);
  padding: 11px 15px;
  border-radius: 9px;
  background: #262b31;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,.22);
}

.mg-toast.is-ok {
  background: #1d7a46;
}

@media (max-width: 850px) {
  .mg-head,
  .mg-project-top {
    flex-direction: column;
  }

  .mg-create,
  .mg-source-form {
    grid-template-columns: 1fr;
  }

  .mg-create-actions {
    width: 100%;
  }

  .mg-create-actions button {
    flex: 1;
  }

  .mg-head .mg-primary,
  .mg-source-form .mg-secondary {
    width: 100%;
  }
}

/* AIVOCO_LINK_EXISTING_SOURCE_V1 */
.mg-legacy-add-hidden { display: none !important; }

.mg-link-existing-button {
  margin-top: 10px;
  border: 1px solid var(--border, #dfe3e8);
  border-radius: 9px;
  padding: 9px 12px;
  background: var(--panel, #fff);
  color: var(--text, #20242a);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mg-link-existing-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed var(--border, #dfe3e8);
  border-radius: 10px;
  background: var(--soft, #f7f8fa);
}

.mg-link-existing-title { margin-bottom: 8px; font-size: 13px; font-weight: 800; }

.mg-link-existing-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
}

.mg-link-existing-controls select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border, #dfe3e8);
  border-radius: 9px;
  padding: 10px;
  background: var(--panel, #fff);
  color: var(--text, #20242a);
  font: inherit;
}

.mg-link-existing-note {
  margin-top: 7px;
  color: var(--muted, #6c7480);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 850px) {
  .mg-link-existing-controls { grid-template-columns: 1fr; }
  .mg-link-existing-button, .mg-link-existing-controls button { width: 100%; }
}

/* AIVOCO_GENERATION_EXCEL_SOURCES_V1 */
.bulk-single-source-hidden,
.bulk-legacy-hidden {
  display: none !important;
}

.bulk-source-import {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--border, #dfe3e8);
  border-radius: 10px;
  background: var(--soft, #f7f8fa);
}

.bulk-source-import__title {
  font-size: 13px;
  font-weight: 800;
}

.bulk-source-import__text,
.bulk-source-import__hint,
.bulk-file-name {
  color: var(--muted, #6c7480);
  font-size: 12px;
  line-height: 1.45;
}

.bulk-source-import__text {
  margin-top: 4px;
}

.bulk-source-import__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bulk-template {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.bulk-file-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.bulk-file-label input {
  display: none;
}

.bulk-source-import [data-bulk-upload]:disabled {
  opacity: .55;
  cursor: default;
}

.bulk-file-name {
  margin-top: 8px;
  font-weight: 600;
}

.bulk-source-import__hint {
  margin-top: 6px;
}

@media (max-width: 850px) {
  .bulk-source-import__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bulk-source-import__actions > * {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* AIVOCO_HIDE_LEGACY_GENERATION_UI_V1 */
.aivoco-legacy-generation-hidden {
  display: none !important;
}

/* AIVOCO_UI_POPUP_REORDER_V1 */
.aivoco-tariffs-inline-hidden {
  display: none !important;
}

#aivoco-tariffs-trigger {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px 0;
  padding: 14px 18px;
  border: 1px solid #e6c453;
  border-radius: 14px;
  background: #fff8dc;
  color: #1d2a44;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

#aivoco-tariffs-trigger span {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

#aivoco-tariffs-trigger small {
  display: block;
  margin-top: 6px;
  color: #63708a;
  font-size: 13px;
}

.aivoco-tariffs-modal {
  display: none;
}

.aivoco-tariffs-modal.open {
  display: block;
}

.aivoco-tariffs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .45);
  z-index: 9998;
}

.aivoco-tariffs-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1180px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
  z-index: 9999;
  padding: 18px;
}

.aivoco-tariffs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.aivoco-tariffs-title {
  font-size: 24px;
  font-weight: 800;
  color: #1d2a44;
}

.aivoco-tariffs-close {
  width: 38px;
  height: 38px;
  border: 1px solid #d7dbe5;
  border-radius: 10px;
  background: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.aivoco-generation-block {
  order: 1;
}

.aivoco-receiving-block {
  order: 99;
}

@media (max-width: 768px) {
  #aivoco-tariffs-trigger span {
    font-size: 18px;
  }

  .aivoco-tariffs-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 12px;
  }

  .aivoco-tariffs-title {
    font-size: 20px;
  }
}
