:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#182033;background:#f4f6fa;line-height:1.4}*{box-sizing:border-box}body{margin:0}header{padding:20px 5vw;background:#fff;border-bottom:1px solid #e3e7ef;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:20}h1,h2,h3,p{margin-top:0}header h1{margin-bottom:4px}header p{margin-bottom:0;color:#667085}.header-status,.hero-actions,.toolbar,.filters,.bulkbar,.progress-head{display:flex;align-items:center;gap:10px}main{width:min(1320px,94vw);margin:24px auto 60px}.hero,.card{background:#fff;border:1px solid #e3e7ef;border-radius:18px;padding:22px;box-shadow:0 8px 25px rgba(16,24,40,.05)}.hero{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.card{margin-bottom:18px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.grid .card{margin:0 0 18px}button{border:0;border-radius:10px;padding:10px 16px;background:#273149;color:#fff;font-weight:750;cursor:pointer}button:hover{opacity:.9}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#eef2f7;color:#26334d;border:1px solid #d9e0ea}.primary{background:#111827}input,select{padding:10px 11px;border:1px solid #ccd3df;border-radius:10px;background:#fff;font:inherit}input{min-width:240px}label{font-weight:650}.compact{min-width:240px}.compact select{width:100%;margin-top:5px}.badge{padding:7px 11px;border-radius:999px;background:#fff3cd;color:#7a5a00;font-weight:750}.badge.ok{background:#dcfce7;color:#166534}.badge.error{background:#fee2e2;color:#991b1b}.hidden{display:none!important}.muted{color:#667085}.account,.module,.check{border:1px solid #e4e7ec;border-radius:12px;padding:14px;margin:9px 0}.account{display:flex;justify-content:space-between;align-items:center}.modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.module h3{margin-bottom:6px}.module small{display:block;color:#667085;margin-bottom:12px}.module.disabled{background:#f8fafc}.status-ok{color:#15803d}.status-warning{color:#a16207}.status-error{color:#b91c1c}.toolbar{justify-content:space-between;align-items:flex-end}.filters{flex-wrap:wrap;justify-content:flex-end}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.summary-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:15px;background:#f8fafc;color:#344054;border:1px solid #e4e7ec}.summary-card strong{font-size:27px;color:#101828}.summary-card.ok{border-color:#bbf7d0;background:#f0fdf4}.summary-card.warn{border-color:#fde68a;background:#fffbeb}.summary-card.bad{border-color:#fecaca;background:#fef2f2}.summary-card.neutral{background:#f8fafc}.summary-card.formula{grid-column:span 2;background:#f8fafc}.summary-card.formula strong{font-size:18px;line-height:1.45;word-break:break-word}.freshness{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.freshness>div{display:flex;justify-content:space-between;padding:10px 12px;background:#f8fafc;border-radius:10px}.progress-box{margin-top:16px}.progress-head{justify-content:space-between}.progress{height:10px;background:#e9edf3;border-radius:999px;overflow:hidden;margin-top:8px}.progress i{display:block;width:0;height:100%;background:#111827;transition:width .2s}.bulkbar{justify-content:flex-start;margin:15px 0;padding:10px 12px;background:#f8fafc;border-radius:10px}.bulkbar input{min-width:auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid #eaecf0;font-size:14px;vertical-align:top}th{white-space:nowrap;color:#475467}.clickable{cursor:pointer}.clickable:hover{background:#f8fafc}.control{display:inline-block;padding:4px 7px;border-radius:999px;font-size:11px;font-weight:750;margin:1px}.control.ok{background:#dcfce7;color:#166534}.control.warn{background:#fef3c7;color:#92400e}.control.bad{background:#fee2e2;color:#991b1b}.control.info{background:#dbeafe;color:#1d4ed8}.control.neutral{background:#e5e7eb;color:#374151}.pager{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:16px}details summary{cursor:pointer;font-weight:750;padding:8px 0}.nested{margin:16px 0}.history-list{display:grid;gap:8px;margin-top:12px}.history-item{display:grid;grid-template-columns:12px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #eef1f5}.history-dot{width:9px;height:9px;border-radius:50%;margin-top:5px;background:#22c55e}.history-item.error .history-dot{background:#ef4444}.history-item.warning .history-dot{background:#f59e0b}.history-item p{margin:2px 0}.history-item small{color:#667085}.modal{position:fixed;inset:0;background:rgba(15,23,42,.58);display:flex;align-items:center;justify-content:center;padding:24px;z-index:50}.modal-card{position:relative;background:#fff;border-radius:18px;width:min(1180px,96vw);max-height:92vh;overflow:auto;padding:26px;box-shadow:0 25px 70px rgba(0,0,0,.3)}.modal-close{position:absolute;right:14px;top:14px;border-radius:50%;padding:4px 12px;font-size:24px;background:#eef2f7;color:#334155}.product-head{display:flex;justify-content:space-between;gap:20px;padding-right:45px}.product-head h2{font-size:30px;margin-bottom:4px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:12px;color:#667085}.product-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.product-meta>div{display:flex;flex-direction:column;padding:12px;background:#f8fafc;border-radius:10px}.product-meta span{margin-top:5px}.product-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.timeline{display:flex;flex-direction:column;padding:10px 0;border-bottom:1px solid #eef1f5}.timeline span,.timeline small{color:#667085}.error-line small{color:#b91c1c}.toast{position:fixed;right:24px;bottom:24px;max-width:470px;background:#101828;color:#fff;padding:14px 18px;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.22);z-index:80}@media(max-width:950px){.summary-grid{grid-template-columns:repeat(2,1fr)}.product-meta{grid-template-columns:repeat(2,1fr)}.product-columns{grid-template-columns:1fr}.toolbar,.filters{align-items:stretch}.filters{justify-content:flex-start}}@media(max-width:750px){.summary-card.formula{grid-column:span 1}header,.hero,.account,.toolbar{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}.hero-actions,.filters,.header-status{flex-wrap:wrap}.summary-grid,.freshness,.product-meta{grid-template-columns:1fr}input,.compact{min-width:0;width:100%}.modal{padding:8px}.modal-card{padding:18px}.product-head{flex-direction:column}.bulkbar{flex-wrap:wrap}}
.ue-panels{display:grid;gap:12px;margin:16px 0}.ue-panel{border:1px solid #e4e7ec;border-radius:12px;padding:0 14px;background:#fbfcfe}.ue-panel summary{padding:14px 0}.ue-import-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-bottom:16px}.import-card{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #e4e7ec;border-radius:12px;background:#fff}.import-card h3{margin-bottom:0}.import-card label,.settings-grid label{display:flex;flex-direction:column;gap:5px}.import-card input,.settings-grid input{min-width:0;width:100%}.settings-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-bottom:14px}.settings-actions{display:flex;align-items:center;gap:14px;padding-bottom:16px}.cost-coverage{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 14px}.cost-chip{padding:8px 11px;border-radius:999px;background:#eef2f7;color:#344054;font-weight:700}.cost-chip.ok{background:#dcfce7;color:#166534}.cost-chip.warn{background:#fef3c7;color:#92400e}.money-input{width:110px!important;min-width:90px!important;padding:7px 8px}.ue-status{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:12px;font-weight:750;white-space:nowrap}.ue-status.good{background:#dcfce7;color:#166534}.ue-status.low_margin{background:#fef3c7;color:#92400e}.ue-status.loss,.ue-status.missing_price{background:#fee2e2;color:#991b1b}.ue-status.missing_cost,.ue-status.no_sales{background:#e5e7eb;color:#374151}.positive{color:#15803d;font-weight:750}.negative{color:#b91c1c;font-weight:750}.ue-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.ue-breakdown>div{display:flex;flex-direction:column;padding:12px;background:#f8fafc;border-radius:10px}.ue-breakdown small{color:#667085}.ue-breakdown strong{font-size:20px;margin-top:4px}@media(max-width:1050px){.ue-import-grid,.settings-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:750px){.ue-import-grid,.settings-grid,.ue-breakdown{grid-template-columns:1fr}.settings-actions{align-items:flex-start;flex-direction:column}}
.link-button{background:transparent;color:#111827;padding:0;border-radius:0;text-align:left}.link-button:hover{text-decoration:underline;opacity:1}.inline-cost{display:flex;align-items:center;gap:6px}.tiny{padding:7px 9px;min-width:34px}
#costFileProgress{display:block;min-height:2.8em;line-height:1.35}

/* Dev.8 SEO Engine */
.seo-modal-card{width:min(1280px,98vw)}
.seo-account-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:16px 0;padding:12px;background:#f8fafc;border-radius:12px}.seo-account-row label{display:flex;flex-direction:column;gap:5px;min-width:320px}.seo-editor-grid,.seo-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px}.seo-editor-grid>section,.seo-compare>section{border:1px solid #e4e7ec;border-radius:14px;padding:16px;background:#fff}.seo-editor-grid label{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.seo-editor-grid textarea{width:100%;resize:vertical;min-height:74px;padding:11px;border:1px solid #ccd3df;border-radius:10px;font:inherit;line-height:1.45}.seo-editor-grid textarea:focus{outline:2px solid #dbeafe;border-color:#93c5fd}.seo-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.seo-compare{margin-top:16px}.seo-score-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}.seo-score{width:92px;height:92px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e5e7eb;color:#374151;flex:0 0 auto}.seo-score strong{font-size:30px;line-height:1}.seo-score span{font-size:11px;font-weight:750;margin-top:5px;text-align:center}.seo-score.good{background:#dcfce7;color:#166534}.seo-score.low_margin{background:#fef3c7;color:#92400e}.seo-score.loss{background:#fee2e2;color:#991b1b}.seo-breakdown,.seo-metrics{display:flex;flex-wrap:wrap;gap:7px}.seo-breakdown span,.seo-metrics span{padding:5px 8px;border-radius:999px;background:#eef2f7;color:#475467;font-size:12px;font-weight:700}.seo-metrics{margin-bottom:14px}.seo-result-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.seo-result-columns h4{margin:0 0 8px}.seo-result-columns ol{padding-left:20px;margin-top:0}.seo-result-columns li{margin-bottom:7px}.seo-issue{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-left:4px solid #94a3b8;background:#f8fafc;margin-bottom:7px;border-radius:8px}.seo-issue span{font-size:13px;color:#667085}.seo-issue.error{border-left-color:#ef4444;background:#fef2f2}.seo-issue.warning{border-left-color:#f59e0b;background:#fffbeb}.seo-issue.info{border-left-color:#3b82f6;background:#eff6ff}.seo-issue.ok{border-left-color:#22c55e;background:#f0fdf4}.seo-history{margin-top:18px}.seo-history-item{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;background:#f8fafc;color:#344054;border:1px solid #e4e7ec;margin-bottom:8px}.seo-history-item span{display:flex;flex-direction:column}.seo-history-item small{color:#667085}.seo-analysis-empty{padding:24px;text-align:center;background:#f8fafc;border-radius:12px}.seo-account-row select{width:100%}
@media(max-width:950px){.seo-editor-grid,.seo-compare,.seo-result-columns{grid-template-columns:1fr}.seo-account-row{align-items:stretch;flex-direction:column}.seo-account-row label{min-width:0}}

.seo-refresh-result{margin:10px 0 4px;padding:10px 12px;border:1px solid #cfe0f5;border-radius:10px;background:#f5f9ff;color:#28496f;font-size:13px;line-height:1.45}


/* RC.6.1 — unified report exports */
.report-actions{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 10px;border:1px solid #dbe4f0;border-radius:12px;background:#f7f9fc;white-space:nowrap}
.report-actions>span{font-size:12px;font-weight:800;color:#65758b;text-transform:uppercase;letter-spacing:.04em}
.report-btn{min-height:34px!important;padding:7px 12px!important;border-radius:9px!important}
.history-report-bar{display:flex;justify-content:flex-end;margin:10px 0 14px}
@media(max-width:900px){.report-actions{width:100%;justify-content:flex-end}.toolbar .filters .report-actions{margin-top:4px}}

/* RC.6.3 SEO Recommendations 2.0 */
.seo-keyword-pro{margin:16px 0;padding:16px;border:1px solid #dfe5ec;border-radius:14px;background:#fbfcfe}
.seo-keyword-pro h4{margin:0 0 12px}
.seo-keyword-grid,.seo-placement{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seo-keyword-grid>div,.seo-placement>div{padding:12px;border-radius:10px;background:#fff;border:1px solid #e7ebf0}
.seo-keyword-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.seo-keyword-tags span,.seo-placement code{display:inline-block;padding:5px 8px;border-radius:8px;font-family:inherit;font-size:12px}
.seo-keyword-tags.found span{background:#eaf7ef}
.seo-keyword-tags.missing span{background:#fff1ef}
.seo-placement{margin-top:12px}.seo-placement p{margin:8px 0 0;line-height:2}.seo-placement code{background:#f1f4f8;margin:2px}
@media(max-width:800px){.seo-keyword-grid,.seo-placement{grid-template-columns:1fr}}

/* RC.6.3.1 Auto SEO Keywords */
.seo-auto-keywords-success{margin:12px 0;padding:13px 14px;border:1px solid #bfe8cd;background:#f0fbf4;border-radius:12px;display:flex;flex-direction:column;gap:5px}
.seo-auto-keywords-success small{color:#617080}

/* RC.7 Private Workspaces */
.auth-gate{position:fixed;inset:0;z-index:9999;background:linear-gradient(135deg,#f5f8fc,#eef3f8);display:flex;align-items:center;justify-content:center;padding:24px}
.auth-gate.hidden{display:none}
.auth-card{width:min(440px,100%);background:#fff;border:1px solid #dfe6ef;border-radius:20px;padding:28px;box-shadow:0 24px 70px rgba(23,38,61,.16)}
.auth-brand{margin-bottom:22px}.auth-brand h1{margin:0}.auth-brand p{color:#627087;margin:4px 0}
.auth-card label{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-weight:600}.auth-card input{width:100%}
.auth-card button{width:100%;margin-top:10px}.auth-error{color:#b42318;min-height:20px}
.user-bar{display:flex;align-items:center;gap:8px}.header-btn{padding:7px 10px;font-size:12px;background:#fff;border:1px solid #d9e1eb;color:#18243a}
.account-add,.admin-user-create{display:grid;grid-template-columns:1.1fr 1fr 1.6fr auto;gap:10px;align-items:end;margin:14px 0 20px;padding:14px;background:#f7f9fc;border-radius:12px}
.account-add label,.admin-user-create label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.admin-user-create{grid-template-columns:1fr 1.2fr 1.2fr 1.2fr auto}
.admin-users{display:flex;flex-direction:column;gap:8px}.admin-user{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #e1e7ef;border-radius:10px}.admin-user div{display:flex;flex-direction:column;gap:3px}.admin-user span{color:#657389;font-size:13px}
.privacy-note{display:inline-block;padding:5px 9px;border-radius:8px;background:#edf9f1;color:#267443;font-size:12px}
@media(max-width:900px){.account-add,.admin-user-create{grid-template-columns:1fr}.user-bar{flex-wrap:wrap}}
