:root{
  --bg:#f4f6fa;--surface:#fff;--surface-2:#f8f9fc;--ink:#111827;--muted:#687386;
  --line:#e5e9f0;--line-strong:#d7dde7;--sidebar:#0e1118;--sidebar-2:#171c26;
  --accent:#8b2be2;--accent-2:#b12ce8;--accent-soft:#f5edff;--success:#12835b;
  --success-soft:#eaf8f2;--danger:#c73b4d;--danger-soft:#fff0f2;--warn:#aa6618;
  --warn-soft:#fff7e8;--shadow:0 10px 28px rgba(16,24,40,.06);--radius:14px;--sidebar-w:228px;
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
a{color:inherit}button,input,select,textarea{font:inherit}.icon{width:18px;height:18px;display:block;flex:0 0 auto}.icon-sm{width:15px;height:15px}.icon-lg{width:22px;height:22px}

/* Public */
.public-shell{min-height:100vh;background:linear-gradient(180deg,#fff 0,#f7f8fc 60%,#f2f4f8 100%)}.public-header{height:70px;display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:0 auto;padding:0 28px}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:17px;letter-spacing:-.02em}.brand-mark{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#7f2be2,#d02dc8);display:grid;place-items:center;color:#fff;font-weight:900;box-shadow:0 8px 20px rgba(139,43,226,.22)}.brand-sub{font-size:11px;color:#9aa3b2;font-weight:600;margin-left:2px}.public-nav{display:flex;align-items:center;gap:10px}.link-btn,.primary-btn,.secondary-btn,.ghost-btn,.danger-btn{border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-weight:700;cursor:pointer;transition:.16s ease}.link-btn{padding:9px 11px;color:#596579}.primary-btn{background:linear-gradient(135deg,#7c2ee6,#a22bd6);color:#fff;padding:10px 16px;box-shadow:0 6px 18px rgba(139,43,226,.18)}.primary-btn:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(139,43,226,.24)}.secondary-btn{background:#fff;color:#263247;border:1px solid var(--line);padding:9px 14px}.secondary-btn:hover{border-color:#cfd5df;background:#fafbfc}.ghost-btn{background:transparent;color:#5f6b7c;padding:8px 10px}.danger-btn{background:var(--danger-soft);color:var(--danger);padding:9px 13px}

/* App shell */
.app-shell{min-height:100vh}.sidebar{position:fixed;z-index:50;left:0;top:0;bottom:0;width:var(--sidebar-w);background:linear-gradient(180deg,#0d1118 0%,#111721 100%);color:#fff;padding:18px 14px;display:flex;flex-direction:column}.sidebar .brand{padding:4px 7px 20px;color:#fff}.sidebar .brand-mark{width:32px;height:32px;border-radius:9px}.sidebar-section-label{color:#677386;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;padding:12px 10px 7px}.side-nav{display:flex;flex-direction:column;gap:3px}.side-link{display:flex;align-items:center;gap:10px;min-height:42px;padding:0 11px;border-radius:9px;color:#9eabbc;text-decoration:none;font-weight:650;font-size:13px;transition:.15s ease}.side-link:hover{background:#171e2a;color:#fff}.side-link.active{color:#fff;background:linear-gradient(90deg,rgba(139,43,226,.28),rgba(139,43,226,.08));box-shadow:inset 3px 0 0 #9b45ed}.side-link.active .icon{color:#bb79f5}.side-spacer{flex:1}.side-account{border:1px solid #252d3a;background:#151b25;border-radius:11px;padding:11px;margin:10px 2px 8px}.side-account-top{display:flex;align-items:center;gap:9px}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#252d3a;color:#fff;font-weight:800;font-size:11px}.side-account-email{font-size:11px;color:#d8dee8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-account-label{font-size:9px;color:#738096;margin-top:2px}.app-main{margin-left:var(--sidebar-w);min-height:100vh}.topbar{height:66px;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;position:sticky;top:0;z-index:30}.topbar-title{font-size:17px;font-weight:800;letter-spacing:-.02em}.topbar-sub{font-size:11px;color:#8b95a6;margin-top:2px}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.account-pill{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:8px 10px;color:#3d4a60;font-size:11px;font-weight:700}.account-dot{width:7px;height:7px;border-radius:50%;background:#28a56e;box-shadow:0 0 0 3px #eaf8f2}.mobile-menu{display:none;background:none;border:0;padding:8px;margin-right:8px;color:#48556a}.page{padding:24px 28px 44px;max-width:1500px;margin:0 auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.page-title{margin:0;font-size:24px;letter-spacing:-.035em}.page-description{margin:5px 0 0;color:var(--muted);font-size:12.5px;max-width:740px}.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Core surfaces */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px rgba(16,24,40,.02)}.panel-head{padding:16px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-title{font-size:13px;font-weight:800}.panel-sub{font-size:10.5px;color:#8a95a6;margin-top:2px}.panel-body{padding:18px}.grid{display:grid;gap:14px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 16px;min-height:100px}.kpi-top{display:flex;align-items:center;justify-content:space-between;color:#8290a4;font-size:10.5px;font-weight:700}.kpi-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#f3effc;color:#8b2be2}.kpi-value{font-size:23px;font-weight:820;letter-spacing:-.035em;margin-top:10px}.kpi-foot{font-size:10px;color:#8b95a5;margin-top:4px}.status-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;font-size:9.5px;font-weight:800}.status-badge.success{color:var(--success);background:var(--success-soft)}.status-badge.warn{color:var(--warn);background:var(--warn-soft)}.status-badge.danger{color:var(--danger);background:var(--danger-soft)}.status-badge.neutral{color:#667085;background:#f1f3f6}

/* Forms */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label,.field-label{font-size:11px;font-weight:750;color:#3b4659}.field-help{font-size:9.5px;color:#929cab}.input,.select,.textarea,input[type="email"],input[type="password"],input[type="text"],input[type="tel"],input[type="search"],input[type="date"],input[type="number"],input[type="file"],select,textarea{width:100%;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:#182235;min-height:40px;padding:9px 11px;outline:none;transition:.15s ease}.textarea,textarea{min-height:96px;resize:vertical}.input:focus,.select:focus,.textarea:focus,input:focus,select:focus,textarea:focus{border-color:#a264e7;box-shadow:0 0 0 3px rgba(139,43,226,.09)}input[type="file"]{padding:7px 9px;background:#fafbfc}.form-actions{display:flex;align-items:center;gap:9px;margin-top:18px;flex-wrap:wrap}.form-actions .primary-btn,.form-actions button.primary-btn{min-height:41px}.toggle-row{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.radio-label{display:flex;align-items:center;gap:7px;font-size:11px;color:#475467;font-weight:650}.radio-label input{width:auto;min-height:auto}.flash{border:1px solid #f0cfd3;background:var(--danger-soft);color:#a73544;border-radius:9px;padding:10px 12px;font-size:11px;margin-bottom:12px}.flash.success{border-color:#cce8dc;background:var(--success-soft);color:#176846}.notice{display:flex;gap:10px;align-items:flex-start;background:#fafbfc;border:1px solid var(--line);border-radius:10px;padding:12px 13px;color:#627085;font-size:11px}.notice.warn{background:var(--warn-soft);border-color:#f1dfba;color:#875413}.notice.success{background:var(--success-soft);border-color:#cce8dc;color:#176846}.text-muted{font-size:10.5px;color:var(--muted);margin-top:3px}

/* Tables */
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:11px}.data-table{width:100%;border-collapse:collapse;background:#fff;font-size:11px}.data-table th{position:sticky;top:0;background:#fafbfc;color:#7b8799;text-align:left;font-size:9.5px;text-transform:uppercase;letter-spacing:.025em;font-weight:800;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:10px 12px;border-bottom:1px solid #edf0f4;vertical-align:middle}.data-table tbody tr:hover{background:#fafbfe}.data-table tbody tr:last-child td{border-bottom:0}.num{text-align:right;font-variant-numeric:tabular-nums}.product-name{font-weight:750;color:#202a3c}.product-meta{font-size:9.5px;color:#929cab;margin-top:2px}.text-success{color:var(--success)!important}.text-danger{color:var(--danger)!important}.text-warn{color:var(--warn)!important}

/* Auth */
.auth-page{min-height:calc(100vh - 70px);display:grid;place-items:center;padding:40px 20px}.auth-wrap{width:100%;max-width:940px;display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 24px 70px rgba(29,35,48,.08)}.auth-aside{padding:48px;background:linear-gradient(150deg,#10131b,#181324 65%,#241235);color:#fff;min-height:540px;display:flex;flex-direction:column}.auth-aside h2{font-size:29px;line-height:1.12;letter-spacing:-.04em;margin:52px 0 12px}.auth-aside p{color:#b8bec9;max-width:360px;font-size:13px;line-height:1.65}.auth-points{margin-top:28px;display:grid;gap:13px}.auth-point{display:flex;gap:10px;align-items:center;color:#d9dde5;font-size:11.5px}.auth-point-icon{width:25px;height:25px;border-radius:8px;background:rgba(169,83,239,.16);color:#c988f8;display:grid;place-items:center}.auth-form{padding:50px 46px;display:flex;flex-direction:column;justify-content:center}.auth-form h1{margin:0 0 5px;font-size:25px;letter-spacing:-.035em}.auth-form>p{margin:0 0 25px;color:#8791a2;font-size:12px}.auth-form .field{margin-bottom:13px}.auth-switch{font-size:11px;color:#7b8797;margin-top:18px;text-align:center}.auth-switch a{color:#7c2ee6;text-decoration:none;font-weight:750}

/* Landing */
.hero{max-width:1180px;margin:0 auto;padding:76px 28px 92px;display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}.hero-kicker{display:inline-flex;align-items:center;gap:7px;border:1px solid #e6dcf8;background:#fbf8ff;color:#7b38c5;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800}.hero h1{font-size:48px;line-height:1.03;letter-spacing:-.055em;margin:18px 0 18px;max-width:570px}.hero p{font-size:15px;line-height:1.68;color:#667085;max-width:570px}.hero-actions{display:flex;gap:10px;margin-top:27px;align-items:center}.hero-note{font-size:10px;color:#929cab;margin-top:11px}.hero-visual{position:relative;min-height:420px}.mock-shell{position:absolute;inset:0;background:#fff;border:1px solid #e5e8ef;border-radius:18px;box-shadow:0 28px 75px rgba(30,35,48,.12);overflow:hidden;transform:perspective(1200px) rotateY(-3deg) rotateX(1deg)}.mock-top{height:42px;border-bottom:1px solid #edf0f4;display:flex;align-items:center;padding:0 13px;gap:6px}.mock-dot{width:7px;height:7px;border-radius:50%;background:#d9dde4}.mock-layout{display:grid;grid-template-columns:112px 1fr;height:calc(100% - 42px)}.mock-side{background:#111620;padding:14px 9px}.mock-brand{height:22px;background:linear-gradient(90deg,#9c3ee4,#c454d5);border-radius:7px;margin-bottom:21px}.mock-nav{height:8px;background:#27303d;border-radius:4px;margin:12px 3px}.mock-main{padding:18px;background:#f6f7fa}.mock-head{height:15px;width:150px;border-radius:6px;background:#222a38;margin-bottom:18px}.mock-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.mock-kpi{height:78px;background:#fff;border:1px solid #e8ebf0;border-radius:10px}.mock-chart{height:155px;background:#fff;border:1px solid #e8ebf0;border-radius:10px;margin-top:10px;position:relative;overflow:hidden}.mock-chart:after{content:"";position:absolute;left:10%;right:8%;bottom:34%;height:2px;background:#a04be1;box-shadow:35px -20px 0 -1px #a04be1,72px -9px 0 -1px #a04be1,105px -42px 0 -1px #a04be1,145px -30px 0 -1px #a04be1,185px -64px 0 -1px #a04be1}.features{max-width:1180px;margin:0 auto;padding:20px 28px 86px}.section-kicker{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:#8c45cc}.section-title{font-size:30px;letter-spacing:-.04em;margin:8px 0 8px}.section-sub{color:#748094;font-size:13px;max-width:650px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:28px}.feature-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.feature-icon{width:36px;height:36px;border-radius:10px;background:var(--accent-soft);color:#8b2be2;display:grid;place-items:center;margin-bottom:16px}.feature-card h3{font-size:14px;margin:0 0 6px}.feature-card p{font-size:11px;color:#7c8798;line-height:1.6;margin:0}

/* Dashboard / modules */
.welcome-panel{padding:22px;background:linear-gradient(120deg,#fff,#fbf8ff);border-color:#e7dcf7}.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.welcome-title{font-size:20px;font-weight:820;letter-spacing:-.035em}.welcome-copy{color:#758095;font-size:11.5px;margin-top:5px;max-width:700px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.module-card{display:flex;flex-direction:column;min-height:155px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;text-decoration:none;transition:.16s ease}.module-card:hover{border-color:#d7c3f0;box-shadow:0 10px 24px rgba(32,24,52,.06);transform:translateY(-1px)}.module-card-icon{width:33px;height:33px;border-radius:9px;background:#f5effc;color:#8b2be2;display:grid;place-items:center}.module-card h3{font-size:13px;margin:14px 0 5px}.module-card p{font-size:10.5px;color:#8490a1;line-height:1.5;margin:0 0 14px}.module-card-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;color:#8b2be2;font-size:10px;font-weight:750}.sync-log{background:#0f141c;color:#b9c5d6;border-radius:10px;padding:12px 14px;font:10px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto;max-height:230px;white-space:pre-wrap}.step-list{display:grid;gap:10px}.step-item{display:flex;gap:11px;align-items:flex-start}.step-num{width:26px;height:26px;border-radius:8px;background:#f1e9fb;color:#8137cf;display:grid;place-items:center;font-size:10px;font-weight:850;flex:0 0 auto}.step-title{font-size:11px;font-weight:800}.step-copy{font-size:10px;color:#8590a2;margin-top:2px}

/* Misc pages */
.toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.toolbar .field{min-width:190px}.result-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.summary-chip{background:#f8f9fb;border:1px solid var(--line);border-radius:8px;padding:7px 9px;font-size:10px;color:#647084}.upload-card{border:1px dashed #cdd4df;border-radius:11px;background:#fafbfc;padding:15px}.upload-card-title{font-size:11px;font-weight:800;margin-bottom:4px}.upload-card-copy{font-size:9.5px;color:#8994a5}.image-grid{display:flex;gap:9px;flex-wrap:wrap}.product-image{width:180px;max-height:220px;object-fit:contain;border-radius:10px;border:1px solid var(--line);background:#fafafa}.thumb-image{width:110px;height:110px;object-fit:contain;border-radius:9px;border:1px solid var(--line);background:#fafafa}.section-block{padding:18px 0;border-top:1px solid var(--line)}.section-block:first-child{border-top:0;padding-top:0}.section-block h2{font-size:13px;margin:0 0 8px}.code-output{width:100%;min-height:58px;border:1px solid var(--line);background:#fafbfc;border-radius:9px;padding:10px;font-family:inherit;font-size:11px;color:#273348}.iframe-panel{height:calc(100vh - 172px);min-height:620px;overflow:hidden}.iframe-panel iframe{width:100%;height:100%;border:0;background:#fff;display:block}.period-tabs{display:flex;gap:5px;align-items:center;flex-wrap:wrap;background:#f2f4f7;border-radius:9px;padding:3px}.period-tab{border:0;background:transparent;padding:7px 9px;border-radius:7px;font-size:10px;font-weight:750;color:#657184;cursor:pointer;white-space:nowrap}.period-tab.active{background:#fff;color:#2c3443;box-shadow:0 1px 3px rgba(16,24,40,.08)}.ai-fab{position:fixed;right:22px;bottom:22px;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#7e2fe2,#b12bd3);color:#fff;text-decoration:none;box-shadow:0 12px 28px rgba(123,48,213,.27);z-index:40}.ai-fab:hover{transform:translateY(-1px)}
.card-match-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.card-match-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.card-match-option{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;cursor:pointer}.card-match-option:hover{border-color:#b993e6}.card-match-option:has(input:checked){border-color:#8b2be2;box-shadow:0 0 0 2px rgba(139,43,226,.12)}.card-match-option>input{position:absolute;top:10px;left:10px;width:17px;min-height:17px;z-index:2;accent-color:#8b2be2}.card-match-visual{height:180px;display:grid;place-items:center;background:#f8f9fb;color:#8e98a8;font-size:10px}.card-match-visual img{width:100%;height:100%;object-fit:contain}.card-match-body{display:flex;flex-direction:column;gap:4px;padding:11px}.card-match-body strong{font-size:11px;line-height:1.35;min-height:30px}.card-match-body>span{font-size:9px;color:#7c8798}.card-match-id{color:#8b2be2!important;font-weight:800}.card-match-subject{color:#344054!important;font-weight:750}.card-match-stats{padding-top:7px;margin-top:3px;border-top:1px solid #edf0f4}.card-match-form>.form-actions{display:none}
.card-reference-box{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;margin-bottom:12px;border:1px solid var(--line);border-radius:8px;background:#fafbfc}.card-reference-box>div:first-child{display:flex;flex-direction:column;gap:2px}.card-reference-box strong{font-size:10px}.card-reference-box span{font-size:9px;color:#7c8798}.card-reference-controls{display:flex;gap:7px;min-width:360px}.card-reference-controls input{min-height:36px}.card-match-confidence{align-self:flex-start;padding:3px 6px;border-radius:5px;background:#fff4dc;color:#986015!important;font-weight:800}.card-match-confidence.exact{background:#e7f8f0;color:#087a53!important}.card-match-reason{line-height:1.4}.card-match-option:has(.card-match-confidence.exact){border-color:#8bd2ba}
@media(max-width:980px){.card-match-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.card-match-grid{grid-template-columns:1fr}.card-match-head>.primary-btn{display:none}.card-match-form>.form-actions{display:flex}.card-match-visual{height:230px}.card-reference-box{align-items:stretch;flex-direction:column}.card-reference-controls{min-width:0;flex-direction:column}}
.upload-check{min-height:14px;margin-top:7px;color:#b54708;font-size:10px}.table-link{color:#7c2ee6;font-weight:750;text-decoration:none}.primary-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.seo-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.seo-group{border:1px solid var(--line);border-radius:8px;padding:10px;background:#fafbfc}.seo-group strong{font-size:10px;display:block;margin-bottom:7px}.seo-chip{display:inline-block;border:1px solid var(--line);background:#fff;border-radius:6px;padding:4px 6px;margin:2px;font-size:9.5px;color:#536075}@media(max-width:760px){.seo-groups{grid-template-columns:1fr}}
.category-picker{position:relative}.category-results{position:absolute;z-index:20;top:66px;left:0;right:0;max-height:290px;overflow:auto;background:#fff;border:1px solid var(--line-strong);border-radius:9px;box-shadow:0 14px 30px rgba(16,24,40,.13)}.category-option{width:100%;min-height:54px;padding:9px 11px;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:2px;cursor:pointer}.category-option:last-child{border-bottom:0}.category-option:hover,.category-option:focus{background:var(--accent-soft);outline:0}.category-option strong{font-size:11px;color:#202a3c}.category-option span{font-size:9.5px;color:#7c8798}.tariff-note{padding:9px 11px;border-radius:8px;background:#f7f8fa;color:#5f6b7c;font-size:10px}.tariff-source{margin:11px 0 0;color:#8791a2;font-size:9.5px;line-height:1.5}

/* AI chat */
.chat-layout{height:calc(100vh - 115px);min-height:600px;display:grid;grid-template-rows:auto auto 1fr auto}.chat-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:10px}.chat-title{font-size:23px;font-weight:820;letter-spacing:-.035em}.chat-sub{font-size:11px;color:#8691a2;margin-top:4px}.chat-examples{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.chat-example{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;cursor:pointer;font-size:9.5px;color:#5e6a7d}.chat-example:hover{background:var(--accent-soft);border-color:#dcc4f4;color:#7333bb}.chat-window{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;overflow-y:auto}.message{display:flex;margin:9px 0}.message.user{justify-content:flex-end}.bubble{max-width:78%;padding:10px 12px;border-radius:12px;font-size:11px;line-height:1.55;white-space:pre-wrap;word-break:break-word}.message.user .bubble{background:linear-gradient(135deg,#7c2ee6,#9f2fd3);color:#fff;border-bottom-right-radius:4px}.message.ai .bubble{background:#f3f5f8;color:#263145;border-bottom-left-radius:4px}.composer{display:flex;gap:8px;margin-top:10px}.composer textarea{flex:1;min-height:48px;height:48px;max-height:120px}.composer button{width:auto;min-width:105px;margin:0}.chat-foot{font-size:9px;color:#9aa4b3;text-align:center;margin-top:6px}

@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.module-grid{grid-template-columns:repeat(2,1fr)}.grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr;padding-top:50px}.hero-visual{min-height:380px}.feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){:root{--sidebar-w:0px}.sidebar{transform:translateX(-100%);width:228px;transition:.2s ease}.sidebar.open{transform:translateX(0);box-shadow:20px 0 60px rgba(0,0,0,.18)}.app-main{margin-left:0}.mobile-menu{display:block}.topbar{padding:0 15px}.page{padding:18px 15px 35px}.account-pill{display:none}.page-head{flex-direction:column}.form-grid,.grid-2,.grid-3,.grid-4,.module-grid{grid-template-columns:1fr}.dimensions-grid{grid-template-columns:repeat(3,1fr)!important}.auth-wrap{grid-template-columns:1fr;max-width:520px}.auth-aside{display:none}.auth-form{padding:38px 30px}.hero h1{font-size:39px}.feature-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr 1fr}.iframe-panel{height:calc(100vh - 220px)}}
@media(max-width:520px){.public-header{padding:0 17px}.public-nav .link-btn{display:none}.hero{padding:46px 17px 70px}.hero h1{font-size:34px}.hero-visual{min-height:300px}.features{padding-left:17px;padding-right:17px}.kpi-grid{grid-template-columns:1fr}.topbar-title{font-size:15px}.auth-form{padding:32px 22px}.bubble{max-width:91%}}

/* ===== Вопросы и отзывы (2026-08-21) ===== */
.fb-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.fb-tabs{display:flex;gap:6px}
.fb-tab{display:inline-flex;align-items:center;gap:7px;padding:9px 16px;border-radius:9px;text-decoration:none;color:#667085;font-weight:600;font-size:14px;background:#f6f7f9}
.fb-tab.active{background:#101828;color:#fff}
.fb-badge{background:rgba(0,0,0,.12);border-radius:20px;padding:1px 8px;font-size:12px;font-weight:700}
.fb-tab.active .fb-badge{background:rgba(255,255,255,.22)}
.fb-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fb-sent{font-size:12px;color:#98a2b3}
.fb-note{background:#eff8ff;border:1px solid #b2ddff;border-radius:10px;padding:11px 14px;font-size:13px;color:#175cd3;line-height:1.5;margin-bottom:16px}
.fb-empty{text-align:center;color:#98a2b3;padding:50px 20px;font-size:14px}
.fb-list{display:grid;gap:14px}
.fb-card{border:1px solid #eaecf0;border-radius:12px;padding:16px;background:#fff}
.fb-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.fb-product{font-weight:600;font-size:14px;color:#101828;line-height:1.35}
.fb-stars{color:#f79009;font-size:15px;letter-spacing:1px;flex:none}
.fb-qmark{background:#f4ebff;color:#6941c6;font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;flex:none}
.fb-original{background:#f9fafb;border-radius:9px;padding:11px 13px;margin-bottom:12px}
.fb-original p{margin:0 0 6px;font-size:13px;line-height:1.5;color:#344054}
.fb-pros{color:#067647}
.fb-cons{color:#b42318}
.fb-muted{color:#98a2b3;font-style:italic}
.fb-meta{font-size:11px;color:#98a2b3;margin-top:4px}
.fb-answer-label{display:block;font-size:12px;font-weight:600;color:#475467;margin-bottom:5px}
.fb-answer-text{width:100%;min-height:70px;border:1px solid #d0d5dd;border-radius:9px;padding:10px 12px;font-size:13px;line-height:1.5;font-family:inherit;color:#101828;resize:vertical}
.fb-card-actions{display:flex;align-items:center;gap:12px;margin-top:12px}
.fb-status{font-size:12px;font-weight:600}
.fb-status.loading{color:#667085}
.fb-status.ok{color:#067647}
.fb-status.err{color:#b42318}
.fb-connect{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:14px 16px;border:1px solid #fdb022;border-radius:10px;background:#fffaeb}.fb-connect>div{display:flex;flex-direction:column;gap:3px}.fb-connect strong{font-size:13px}.fb-connect span{color:#667085;font-size:10px}.fb-connect form{display:flex;gap:8px;min-width:min(480px,55%)}.fb-connect input{flex:1;min-width:0}
.fb-toolbar{margin-bottom:14px;border:1px solid #e4e7ec;border-radius:10px;background:#fff;overflow:hidden}.fb-status-tabs{display:flex;gap:3px;padding:8px;border-bottom:1px solid #eaecf0}.fb-status-tabs a{display:flex;align-items:center;gap:7px;height:34px;padding:0 12px;border-radius:7px;color:#667085;text-decoration:none;font-size:11px;font-weight:750}.fb-status-tabs a.active{background:#101828;color:#fff}.fb-status-tabs span{min-width:21px;padding:2px 6px;border-radius:12px;background:#eef0f3;text-align:center;color:#475467;font-size:9px}.fb-status-tabs a.active span{background:rgba(255,255,255,.18);color:#fff}
.fb-filters{display:flex;align-items:flex-end;gap:8px;padding:10px;flex-wrap:wrap}.fb-filters label{display:flex;flex-direction:column;gap:4px}.fb-filters label>span{color:#667085;font-size:9px;font-weight:700}.fb-filters input,.fb-filters select{height:36px;border:1px solid #d0d5dd;border-radius:7px;background:#fff;padding:0 9px;color:#344054;font:10px inherit}.fb-filters .fb-search{flex:1;min-width:210px}.fb-filters .fb-search input{width:100%}
.fb-card-top h3{margin:3px 0 0;font-size:13px;letter-spacing:0}.fb-nm{color:#98a2b3;font-size:9px}.fb-answer{display:block}.fb-answer>span,.fb-published>span{display:block;margin-bottom:5px;color:#475467;font-size:10px;font-weight:750}.fb-published{padding:11px 13px;border-left:3px solid #12b76a;border-radius:6px;background:#ecfdf3}.fb-published p{margin:0;color:#344054;font-size:11px;line-height:1.5}.fb-empty{display:flex;flex-direction:column;gap:5px;border:1px dashed #d0d5dd;border-radius:10px;background:#fff}.fb-empty strong{color:#344054}.fb-empty span{font-size:11px}
@media(max-width:820px){.fb-connect{align-items:stretch;flex-direction:column}.fb-connect form{min-width:0}.fb-filters label{flex:1}.fb-filters .fb-search{flex-basis:100%}.fb-actions{width:100%}.fb-actions form,.fb-actions button{flex:1}.fb-tabs{width:100%}.fb-tab{flex:1;justify-content:center}}

/* MPSTATS market analytics */
.market-picker{margin-bottom:14px}.market-picker-form{display:grid;grid-template-columns:minmax(280px,1fr) 150px auto;gap:10px;align-items:end}.market-submit{min-height:40px}.market-notice{margin-bottom:14px}.market-result{display:grid;gap:14px}.market-product-head{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px}.market-product-main{display:flex;align-items:center;gap:14px;min-width:0}.market-product-main img{width:72px;height:88px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#fafbfc;flex:0 0 auto}.market-product-head h2{font-size:17px;line-height:1.3;margin:3px 0 5px;letter-spacing:0}.market-source{color:#8b2be2;font-size:9px;font-weight:800;text-transform:uppercase}.market-meta{color:#7c8798;font-size:10px}.market-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.market-details{gap:12px}.market-stat-list{display:grid;gap:0}.market-stat-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f4}.market-stat-list>div:first-child{padding-top:0}.market-stat-list>div:last-child{padding-bottom:0;border-bottom:0}.market-stat-list span{color:#718096;font-size:11px}.market-stat-list strong{font-size:12px;text-align:right;font-variant-numeric:tabular-nums}.market-disclaimer{margin:0;color:#929cab;font-size:9.5px}.market-empty{min-height:260px;border:1px dashed var(--line-strong);border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#8b95a5}.market-empty strong{color:#344054;font-size:13px}.market-empty span{font-size:10px}
@media(max-width:820px){.market-picker-form{grid-template-columns:1fr 130px}.market-submit{grid-column:1/-1}.market-kpis{grid-template-columns:repeat(2,1fr)}.market-product-head{align-items:flex-start}.market-product-head>.secondary-btn{display:none}}
@media(max-width:520px){.market-picker-form,.market-kpis{grid-template-columns:1fr}.market-submit{grid-column:auto}.market-product-main{align-items:flex-start}.market-product-main img{width:58px;height:72px}.market-product-head h2{font-size:14px}}

/* MPSTATS opportunity explorer */
.market-page-head{margin-bottom:14px}.market-filters{padding:14px;margin-bottom:14px}.market-filter-grid{display:grid;grid-template-columns:minmax(220px,1.5fr) 150px repeat(4,minmax(105px,.7fr)) auto;gap:9px;align-items:end}.market-product-filters{display:grid;grid-template-columns:minmax(240px,1.6fr) 120px 160px 180px auto;gap:9px;align-items:end}.market-filter-submit{min-height:40px;white-space:nowrap}.market-summary{display:flex;align-items:center;gap:7px;margin:11px 2px;color:#657184;font-size:10px}.market-summary strong{color:#202a3c;font-size:12px}.market-summary span{margin-left:auto}.market-niche-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff}.market-niche-table{width:100%;border-collapse:collapse;min-width:1240px}.market-niche-table th{padding:10px 12px;background:#f8f9fb;border-bottom:1px solid var(--line);color:#7b8799;text-align:left;font-size:9px;text-transform:uppercase;font-weight:800;white-space:nowrap}.market-niche-table td{padding:11px 12px;border-bottom:1px solid #edf0f4;vertical-align:middle;font-size:10px}.market-niche-table tr:last-child td{border-bottom:0}.market-niche-table tbody tr:hover{background:#fafbfe}.market-niche-table td.num,.market-niche-table th.num{text-align:right}.market-niche-table td strong{display:block;color:#202a3c;font-size:11px;white-space:nowrap}.market-niche-table td small{display:block;color:#8c96a6;font-size:9px;margin-top:3px;white-space:nowrap}.market-niche-name{font-size:12px;font-weight:800;color:#1d2738}.market-niche-meta{color:#8d97a6;font-size:9px;margin-top:3px}.market-score-row{display:flex;align-items:center;gap:6px}.market-score{min-width:35px;height:29px;border-radius:7px;display:grid;place-items:center;font-size:12px;font-weight:850}.market-score.high{background:#e7f8f0;color:#087a53}.market-score.mid{background:#fff4dc;color:#986015}.market-score.low{background:#f1f3f6;color:#687386}.market-risk{font-size:8.5px;font-weight:800;padding:4px 6px;border-radius:6px;white-space:nowrap}.market-risk.low{color:#087a53;background:#eaf8f2}.market-risk.mid{color:#986015;background:#fff4dc}.market-risk.high{color:#b43546;background:#fff0f2}.market-verdict{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border-radius:6px;font-size:8.5px;font-weight:850;white-space:nowrap}.market-verdict.go{background:#e7f8f0;color:#087a53}.market-verdict.watch{background:#fff4dc;color:#986015}.market-verdict.stop{background:#fff0f2;color:#b43546}.market-reasons,.market-warnings{max-width:220px;margin-top:5px;font-size:8.5px;line-height:1.35;color:#526074}.market-warnings{color:#b43546}.market-confidence{font-size:8px!important;color:#8993a2!important}.market-open{width:31px;height:31px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;color:#7c2ee6;text-decoration:none}.market-open:hover{background:#f5edff}.market-breadcrumb{display:flex;align-items:center;gap:7px;color:#7c8798;font-size:10px;margin-bottom:12px}.market-breadcrumb a{color:#7c2ee6;text-decoration:none}.market-breadcrumb strong{color:#344054}.market-segments{margin-bottom:14px}.market-segment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.market-segment{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-right:1px solid #edf0f4;border-bottom:1px solid #edf0f4}.market-segment.recommended{background:#edf9f4;box-shadow:inset 3px 0 #15966a}.market-segment:nth-child(4n){border-right:0}.market-segment:nth-last-child(-n+4){border-bottom:0}.market-segment strong{font-size:11px}.market-segment span{font-size:10px;color:#344054}.market-segment small{font-size:8.5px;color:#8d97a7}.market-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.market-product-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;display:flex;flex-direction:column}.market-product-image{height:205px;background:#f8f9fb;display:grid;place-items:center;color:#a4acb9}.market-product-image img{width:100%;height:100%;object-fit:contain}.market-product-body{padding:12px;display:flex;flex-direction:column;flex:1}.market-product-id{font-size:8.5px;color:#8e98a8}.market-product-signal{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px;color:#7c8798;font-size:8px}.market-product-card h3{font-size:11.5px;line-height:1.35;margin:7px 0 5px;min-height:47px}.market-product-seller{font-size:9px;color:#7c8798;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.market-product-kpis{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid #edf0f4}.market-product-kpis div{display:flex;flex-direction:column;gap:2px}.market-product-kpis span{font-size:8px;color:#8e98a8}.market-product-kpis strong{font-size:10.5px;white-space:nowrap}.market-product-foot{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px;padding-top:9px;border-top:1px solid #edf0f4;color:#738094;font-size:8px}.market-calc-link{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:11px;color:#7c2ee6;text-decoration:none;font-size:9px;font-weight:800}.market-calc-link:hover{color:#5f1db6}
@media(max-width:1200px){.market-filter-grid{grid-template-columns:2fr 1fr 1fr}.market-product-filters{grid-template-columns:2fr 1fr 1fr}.market-filter-submit{grid-column:auto}.market-product-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.market-filter-grid,.market-product-filters{grid-template-columns:1fr 1fr}.market-search{grid-column:1/-1}.market-filter-submit{grid-column:1/-1}.market-segment-grid{grid-template-columns:repeat(2,1fr)}.market-segment:nth-child(2n){border-right:0}.market-segment:nth-last-child(-n+4){border-bottom:1px solid #edf0f4}.market-segment:nth-last-child(-n+2){border-bottom:0}.market-product-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.market-filter-grid,.market-product-filters,.market-product-grid{grid-template-columns:1fr}.market-search{grid-column:auto}.market-segment-grid{grid-template-columns:1fr}.market-segment{border-right:0!important;border-bottom:1px solid #edf0f4!important}.market-segment:last-child{border-bottom:0!important}.market-summary span{display:none}.market-product-image{height:240px}}

/* Inline cost completion on the analytics dashboard */
.cost-alert{margin-bottom:14px;border:1px solid #edc8cc;background:#fff8f8;border-radius:12px;overflow:hidden}.cost-alert-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:15px 17px;border-bottom:1px solid #f0dadd}.cost-alert-title{font-size:14px;font-weight:850;color:#8f2432}.cost-alert-copy{font-size:11px;line-height:1.55;color:#744b51;margin-top:4px}.cost-quick-list{max-height:350px;overflow:auto;background:#fff}.cost-quick-row{display:grid;grid-template-columns:42px minmax(220px,1fr) 170px 104px;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line)}.cost-quick-row:last-child{border-bottom:0}.cost-quick-row img,.cost-photo-placeholder{width:42px;height:42px;border-radius:7px;border:1px solid var(--line);background:#f7f8fa;object-fit:contain}.cost-photo-placeholder{display:grid;place-items:center;color:#98a2b3}.cost-product{min-width:0;display:flex;flex-direction:column;gap:3px}.cost-product strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cost-product span,.cost-input span{font-size:9.5px;color:#7c8798}.cost-input{display:flex;flex-direction:column;gap:3px}.cost-input input{min-height:36px}.cost-quick-row .primary-btn{min-height:36px}
@media(max-width:820px){.cost-alert-head{flex-direction:column}.cost-quick-row{grid-template-columns:42px minmax(0,1fr)}.cost-input,.cost-quick-row .primary-btn{grid-column:2}.cost-product strong{white-space:normal}}

/* Account settings */
.settings-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px}.token-settings{padding-top:4px}.token-settings>.notice{margin:14px 0}.token-setting-row{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.token-setting-info{display:flex;align-items:center;justify-content:space-between;gap:10px}.token-setting-title{font-size:12px;font-weight:750}.token-setting-form{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:8px;align-items:center}.token-setting-form .secondary-btn,.token-setting-form .danger-btn{min-height:40px}
@media(max-width:980px){.settings-layout{grid-template-columns:1fr}.token-setting-row{grid-template-columns:1fr}.token-setting-info{justify-content:flex-start}.token-setting-form{grid-template-columns:minmax(0,1fr) auto auto}}
@media(max-width:620px){.token-setting-form{grid-template-columns:1fr 1fr}.token-setting-form input{grid-column:1/-1}}

/* Sellio brand assets */
.brand-logo{display:block;width:174px;height:48px;object-fit:contain;background:#fff;border-radius:6px}
.brand-logo-public{width:190px;height:56px}
.auth-brand-logo{display:block;width:220px;height:74px;object-fit:contain;background:#fff;border-radius:7px}

/* ============================================================
   Светлая визуальная система Sellio WB
   ============================================================ */

:root{
  --bg:#f6f7fb;--surface:#fff;--surface-2:#f9fafc;--ink:#131a2b;--muted:#5f6b85;
  --line:#e3e7f0;--line-strong:#d3d9e6;--sidebar:#fff;--sidebar-2:#f6f7fb;
  --accent:#7c3aed;--accent-2:#9333ea;--accent-soft:#f5f0ff;
  --shadow:0 12px 32px rgba(19,26,43,.07);
}

/* --- Боковое меню --- */
.sidebar{
  background:#fff;
  color:var(--ink);
  border-right:1px solid var(--line);
  box-shadow:6px 0 24px rgba(19,26,43,.035);
}
.sidebar .brand{color:var(--ink)}
.sidebar-section-label{color:#98a1b5}
.side-link{color:var(--muted)}
.side-link:hover{background:var(--bg);color:var(--ink)}
.side-link.active{
  color:#5b21b6;
  background:linear-gradient(90deg,rgba(124,58,237,.11),rgba(124,58,237,.03));
  box-shadow:inset 3px 0 0 var(--accent);
}
.side-link.active svg{color:var(--accent)}

/* --- Страница входа --- */
.auth-wrap{box-shadow:var(--shadow)}
.auth-aside{
  background:linear-gradient(150deg,#f3f0ff,#efeaff 60%,#f7f2ff);
  color:var(--ink);
  border-right:1px solid var(--line);
}
.auth-aside h2{color:var(--ink)}
.auth-aside p,.auth-aside li,.auth-aside span{color:var(--muted)}
.auth-aside strong{color:var(--ink)}

/* --- Публичная часть --- */
.public-shell{background:linear-gradient(180deg,#fff 0,#f8f9fc 60%,#f6f7fb 100%)}
.auth-point{color:var(--ink2,#3d4761)}
.auth-point-icon{background:rgba(124,58,237,.12);color:#7c3aed}
