:root{--accent: #e50012;--accent-dark: #b0000e;--accent-tint: #fff0f1;--ink: #222222;--ink-strong: #1a1a1a;--ink-soft: #33363c;--muted: #5a5c60;--muted-2: #6c6e71;--muted-3: #4a4c50;--line: #e8e8eb;--line-soft: #f0f0f2;--line-mid: #e0e0e3;--line-strong: #c9cace;--surface: #f5f5f7;--surface-2: #fafafb;--placeholder: #a3a5a9;--dark: #1c1c1e;--dark-2: #2c2c2f;--dark-3: #3a3b3f;--on-dark: #c9cace;--on-dark-2: #8a8c90;--hero-accent: #ff5a66;--ok: #1f7a4d;--ok-dark: #1f5c3d;--ok-tint: #e3f1e9;--warn: #8a4b00;--warn-tint: #fff4e5;--info: #1a4f9e;--info-tint: #eaf1fb;--sidebar: 240px;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--surface);color:var(--ink);font-family:Noto Sans,system-ui,sans-serif;font-size:15px;-webkit-text-size-adjust:100%}input,select,button,textarea{font:inherit;color:inherit}a{color:inherit}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mono{font-family:Noto Sans Mono,ui-monospace,monospace}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.shell{display:flex;min-height:100%}.sidebar{width:var(--sidebar);flex:none;background:var(--dark);color:var(--on-dark);display:flex;flex-direction:column;padding:20px 12px;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar__brand{display:flex;align-items:center;gap:10px;padding:4px 10px 20px;text-decoration:none;color:#fff}.sidebar__bar{width:8px;height:24px;background:var(--accent);flex:none}.sidebar__name{font-weight:800;font-size:19px}.tag{font-size:11px;font-weight:700;padding:2px 6px;background:var(--dark-2);color:#b8babe}.sidebar__nav{display:flex;flex-direction:column;gap:2px}.sidebar__group{padding:18px 12px 6px;font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--on-dark-2)}.navlink{min-height:44px;padding:0 12px;display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--on-dark);font-size:15px}.navlink:hover{color:#fff}.navlink--active{background:var(--dark-2);color:#fff;font-weight:600}.navlink__count{margin-left:auto;font-size:12px;font-weight:700;padding:2px 7px;background:var(--dark-3);color:#fff}.navlink__count--accent{background:var(--accent)}.sidebar__foot{margin-top:auto;padding-top:24px;display:flex;flex-direction:column;gap:2px;font-size:14px}.sidebar__foot a,.sidebar__foot button{min-height:40px;padding:0 12px;display:flex;align-items:center;gap:10px;text-decoration:none;color:#b8babe;background:none;border:0;cursor:pointer;text-align:left}.sidebar__foot a:hover,.sidebar__foot button:hover{color:#fff}.content{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{background:#fff;border-bottom:1px solid var(--line);min-height:68px;padding:10px 28px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;position:sticky;top:0;z-index:10}.topbar h1{margin:0;font-size:22px;font-weight:800;flex:1}.topbar__count{font-weight:500;font-size:16px;color:var(--muted-2)}.page{padding:24px 28px 48px;display:flex;flex-direction:column;gap:16px}.avatar{width:38px;height:38px;border-radius:19px;background:var(--ink);color:#fff;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;flex:none}.btn{min-height:42px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:var(--accent);color:#fff;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none;white-space:nowrap}.btn:hover:not(:disabled){background:var(--accent-dark)}.btn:disabled{opacity:.55;cursor:default}.btn--ghost{background:#fff;border:1.5px solid var(--ink);color:var(--ink);font-weight:600}.btn--ghost:hover:not(:disabled){background:var(--ink);color:#fff}.btn--quiet{background:transparent;color:var(--muted);font-weight:600;border:1px solid var(--line-mid)}.btn--quiet:hover:not(:disabled){background:var(--surface);color:var(--ink)}.btn--danger{background:#fff;border:1px solid var(--line-mid);color:var(--accent-dark)}.btn--danger:hover:not(:disabled){background:var(--accent-tint)}.btn--sm{min-height:36px;padding:0 12px;font-size:13px}.btn--icon{width:36px;min-height:36px;padding:0}.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;min-width:0}.field__hint{font-weight:400;font-size:13px;color:var(--muted-2)}.input,.select,.textarea{min-height:44px;padding:0 12px;border:1px solid var(--line-mid);background:#fff;font-size:15px;font-weight:400;width:100%}.textarea{padding:10px 12px;resize:vertical;min-height:92px}.input:focus,.select:focus,.textarea:focus{border-color:var(--ink);outline:none}.input--sm{min-height:36px;font-size:14px}.input--num{text-align:right}.check{display:flex;align-items:center;gap:10px;min-height:40px;font-size:15px;font-weight:400;cursor:pointer}.check input{width:18px;height:18px;margin:0;accent-color:var(--accent)}.card{background:#fff;border:1px solid var(--line)}.card__head{padding:16px 20px;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}.card__head h2{margin:0;font-size:17px;font-weight:700}.card__body{padding:20px;display:flex;flex-direction:column;gap:16px}.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.spacer{flex:1}.table-wrap{overflow-x:auto}table.data{width:100%;border-collapse:collapse;font-size:14px}table.data thead tr{text-align:left;color:var(--muted-2);font-size:12px;text-transform:uppercase;letter-spacing:.04em;background:var(--surface-2)}table.data th{padding:12px 16px;font-weight:600;white-space:nowrap}table.data td{padding:10px 16px;border-top:1px solid var(--line-soft);vertical-align:middle}table.data tbody tr:hover{background:var(--surface-2)}.cell-right{text-align:right}.thumb{width:48px;height:48px;flex:none;background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--placeholder);object-fit:contain}.badge{display:inline-block;padding:4px 10px;font-size:12px;font-weight:700;white-space:nowrap}.badge--new{background:var(--accent-tint);color:var(--accent-dark)}.badge--progress{background:var(--warn-tint);color:var(--warn)}.badge--info{background:var(--info-tint);color:var(--info)}.badge--done{background:var(--ok-tint);color:var(--ok-dark)}.badge--muted{background:var(--surface);color:var(--muted)}.badge--accent{background:var(--accent);color:#fff}.switch{width:44px;height:24px;border:0;padding:2px;cursor:pointer;background:var(--line-strong);display:flex;align-items:center;transition:background .15s}.switch[aria-checked=true]{background:var(--ok);justify-content:flex-end}.switch__knob{width:20px;height:20px;background:#fff;display:block}.muted{color:var(--muted)}.small{font-size:13px}.empty{padding:56px 24px;text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:12px}.alert{padding:12px 14px;font-size:14px;font-weight:600}.alert--error{background:var(--accent-tint);color:var(--accent-dark)}.alert--ok{background:var(--ok-tint);color:var(--ok-dark)}.toast{position:fixed;right:20px;bottom:20px;z-index:50;display:flex;flex-direction:column;gap:8px}.toast__item{padding:12px 16px;font-size:14px;font-weight:600;background:var(--ink);color:#fff;box-shadow:0 10px 30px #0003;max-width:380px}.toast__item--error{background:var(--accent-dark)}.tabs{display:flex;gap:2px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.tab{min-height:44px;padding:0 14px;border:0;border-bottom:3px solid transparent;background:transparent;font-size:14px;font-weight:600;color:var(--muted);cursor:pointer;margin-bottom:-1px}.tab--active{color:var(--ink);border-bottom-color:var(--accent)}.lang-tabs{display:flex;gap:2px}.lang-tab{min-width:44px;min-height:32px;border:1px solid var(--line-mid);background:#fff;font-size:12px;font-weight:700;cursor:pointer;color:var(--muted)}.lang-tab--active{background:var(--ink);border-color:var(--ink);color:#fff}.lang-tab__dot{display:inline-block;width:6px;height:6px;border-radius:3px;margin-left:5px;background:var(--line-strong)}.lang-tab__dot--filled{background:var(--ok)}.sidebar__top{display:flex;align-items:flex-start;justify-content:space-between}.sidebar__close{display:none;width:40px;height:40px;border:0;background:none;color:var(--on-dark);font-size:18px;cursor:pointer}.sidebar-backdrop,.topbar__menu{display:none}.topbar__title{flex:1;min-width:0}.topbar__h1{margin:0;font-size:22px;font-weight:800;overflow-wrap:anywhere}.topbar__who{display:flex;flex-direction:column;line-height:1.2}.input,.select,.textarea{max-width:100%}@media(max-width:900px){.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:min(290px,86vw);height:100dvh;transform:translate(-100%);transition:transform .2s;box-shadow:0 0 40px #00000059}.sidebar--open{transform:translate(0)}.sidebar__close{display:inline-flex;align-items:center;justify-content:center}.sidebar-backdrop{display:block;position:fixed;inset:0;z-index:30;background:#14141880}body.menu-open{overflow:hidden}.topbar__menu{display:inline-flex;width:42px;min-height:42px}.page,.topbar{padding-left:16px;padding-right:16px}}@media(max-width:640px){.topbar{min-height:56px;padding-top:8px;padding-bottom:8px;gap:8px 10px}.topbar__h1{font-size:18px}.topbar__who{display:none}.avatar{width:34px;height:34px}.topbar__actions{order:5;width:100%}.topbar__actions:empty{display:none}.topbar__actions .btn{flex:1 1 auto}.page{padding:14px 12px 40px;gap:12px}.card__head,.card__body{padding:14px}.row>label.row{width:100%;justify-content:space-between}.row>label.row .select,.row>label.row .input{flex:1;min-width:0}.grid2,.grid3{grid-template-columns:1fr}table.data:not(.bubble__table) thead{display:none}table.data:not(.bubble__table),table.data:not(.bubble__table) tbody,table.data:not(.bubble__table) tr,table.data:not(.bubble__table) td{display:block;width:100%}table.data:not(.bubble__table) tr{padding:10px 14px;border-top:1px solid var(--line)}table.data:not(.bubble__table) tbody tr:first-child{border-top:0}table.data:not(.bubble__table) td{border:0;padding:4px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:right;min-width:0;overflow-wrap:anywhere}table.data:not(.bubble__table) td[data-label]:before{content:attr(data-label);flex:none;max-width:42%;color:var(--muted-2);font-size:12px;font-weight:600;text-align:left}table.data:not(.bubble__table) td[data-label=""],table.data:not(.bubble__table) td:not([data-label]){justify-content:flex-start;text-align:left}table.data:not(.bubble__table) td[data-label=""]:before{display:none}.modal-backdrop{padding:0;align-items:stretch}.modal{max-width:none;max-height:100dvh;height:100dvh}.modal__head,.modal__foot,.modal__body{padding:14px}.modal__foot{flex-wrap:wrap}.modal__foot .btn{flex:1 1 auto}.tabs,.lang-tabs{overflow-x:auto;flex-wrap:nowrap}.tabs>*,.lang-tabs>*{flex:none;white-space:nowrap}.row>[style*="flex: 999"],.row>[style*="flex: 1 1"]{flex-basis:100%!important;min-width:0!important}}.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:#1414188c}.modal{display:flex;flex-direction:column;width:100%;max-width:640px;max-height:calc(100vh - 32px);background:#fff;border-top:4px solid var(--accent);box-shadow:0 20px 60px #00000040}.modal__head,.modal__foot{display:flex;align-items:center;gap:10px;padding:16px 20px}.modal__head{justify-content:space-between;border-bottom:1px solid var(--line-soft)}.modal__foot{justify-content:flex-end;border-top:1px solid var(--line-soft)}.modal__title{margin:0;font-size:18px;font-weight:800}.modal__body{display:flex;flex-direction:column;gap:16px;padding:20px;overflow-y:auto}.hik-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px;padding:14px;background:var(--surface, #f6f6f7)}.hik-log{margin:0;padding:10px 12px;max-height:220px;overflow-y:auto;list-style:none;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;line-height:1.7;background:#1c1c1e;color:#d8d8dc}.hik-log .is-ok{color:#7ee2a8}.hik-log .is-bad{color:#ff8a8a}.hik-log .is-muted{color:#9a9ca2}.modal--wide{max-width:820px}.enrich__h{margin:4px 0 8px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted-2)}.enrich__list{display:flex;flex-direction:column;gap:8px}.enrich__item{padding:12px 14px;border:1px solid var(--line);background:#fff}.enrich__item--off{background:var(--surface-2, #f6f6f7)}.stat-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.stat-kpi{padding:16px 18px;display:flex;flex-direction:column;gap:6px}.stat-kpi--accent{border-top:3px solid var(--ok)}.stat-kpi__label{font-size:13px;color:var(--muted)}.stat-kpi__value{font-size:28px;font-weight:800;letter-spacing:-.01em}.stat-live{display:inline-flex;align-items:center;gap:6px}.stat-live__dot{width:8px;height:8px;border-radius:50%;background:var(--ok);animation:stat-pulse 1.6s ease-in-out infinite}@keyframes stat-pulse{50%{opacity:.3}}.stat-funnel{display:flex;flex-direction:column;gap:10px}.stat-funnel__row{display:grid;grid-template-columns:minmax(150px,1.3fr) 3fr 70px 48px;align-items:center;gap:12px}.stat-funnel__track{height:14px;background:var(--line-soft)}.stat-funnel__bar{display:block;height:14px;background:linear-gradient(90deg,var(--accent),var(--ok))}.stat-feed{list-style:none;margin:0;padding:0;max-height:520px;overflow-y:auto}.stat-feed li{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:start;padding:10px 20px;border-bottom:1px solid var(--line-soft);font-size:14px}.stat-feed__icon{font-size:18px;line-height:1.2}.stat-feed__main{min-width:0}.stat-feed__meta{display:block;word-break:break-all}@media(max-width:640px){.stat-funnel__row{grid-template-columns:1fr 60px 44px}.stat-funnel__track{grid-column:1 / -1;order:2}}.stat-visits td{vertical-align:top;line-height:1.45}.stat-visits td:first-child{white-space:nowrap}.stat-tag{display:inline-block;margin-left:6px;padding:0 6px;border-radius:4px;background:var(--surface);font-size:11px;font-weight:600}.stat-tag--cart{background:#e6efff;color:#1f5fbf}.stat-tag--ok{background:#e3f6ea;color:#187a3d}.assistant{display:grid;grid-template-columns:minmax(0,3fr) minmax(380px,2fr);gap:16px;align-items:start}.assistant__chat{display:flex;flex-direction:column;height:calc(100vh - 150px);min-height:480px;position:sticky;top:16px}.assistant__log{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px}.assistant__intro{display:flex;flex-direction:column;gap:14px;color:var(--muted-3)}.assistant__examples{display:flex;flex-direction:column;gap:8px}.assistant__example{text-align:left;padding:10px 14px;border:1px solid var(--line-mid);background:var(--surface-2);font:inherit;font-size:14px;color:var(--ink);cursor:pointer}.assistant__example:hover{border-color:var(--ink)}.bubble{max-width:88%;padding:10px 14px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.bubble--user{align-self:flex-end;background:var(--ink);color:#fff}.bubble--assistant{align-self:flex-start;background:var(--surface)}.assistant__error{margin:0 20px 8px;padding:8px 12px;background:var(--accent-tint);color:var(--accent-dark);font-size:13px}.assistant__form{display:flex;gap:8px;padding:12px 20px;border-top:1px solid var(--line)}.assistant__form textarea{flex:1;resize:vertical;min-height:44px;font:inherit}.assistant__meta{padding:0 20px 10px}.quote-item{display:flex;gap:8px;align-items:center;min-width:170px}.quote-item .thumb{width:40px;height:40px}table.data.quote-table td{padding:8px 6px}table.data.quote-table th{padding:10px 6px}table.data.quote-table td:first-child,table.data.quote-table th:first-child{padding-left:0}.quote-table .btn--icon{min-height:32px;width:32px;padding:0}.nowrap{white-space:nowrap}.quote-totals{display:flex;flex-direction:column;gap:6px;align-self:flex-end;min-width:280px;font-size:14px}.quote-totals>div{display:flex;justify-content:space-between;gap:16px}.quote-totals__pay{padding-top:6px;border-top:1px solid var(--line);font-size:16px;color:var(--accent-dark)}.quote-search{position:relative}.quote-search__list{list-style:none;margin:4px 0 0;padding:0;border:1px solid var(--line-mid);background:#fff;max-height:300px;overflow-y:auto}.quote-search__list button{width:100%;display:flex;gap:6px;align-items:baseline;padding:8px 12px;border:0;border-bottom:1px solid var(--line-soft);background:transparent;font:inherit;font-size:14px;text-align:left;cursor:pointer}.quote-search__list button:hover{background:var(--surface-2)}@media(max-width:1200px){.assistant{grid-template-columns:1fr}.assistant__chat{position:static;height:70vh}}.bubble--assistant:has(table){max-width:100%;width:100%}table.data.bubble__table{margin:6px 0;background:#fff;font-size:13px}table.data.bubble__table th,table.data.bubble__table td{padding:6px 8px;overflow-wrap:normal;word-break:normal;vertical-align:top}table.data.bubble__table th{text-transform:none;letter-spacing:0}table.data.bubble__table td:first-child{min-width:140px}.money-usd{display:block;font-size:12px;font-weight:400;color:var(--muted-2)}@media(max-width:640px){.assistant__log{padding:12px}.assistant__form{padding:10px 12px}.assistant__form .btn{padding:0 12px}.bubble{max-width:100%}.quote-totals{min-width:0;align-self:stretch}.quote-item{min-width:180px}.quote-item .thumb{display:none}}
