:root{font-family:Inter,"Microsoft JhengHei",system-ui,sans-serif;color:#183d37;background:#f4f7f4;font-size:16px;--green:#126d55;--muted:#778580;--line:#e2e9e4}*{box-sizing:border-box}body{margin:0}aside{position:fixed;width:232px;inset:0 auto 0 0;background:#103e34;color:#d6e9dd;padding:34px 24px;display:flex;flex-direction:column}.brand{font-size:17px;letter-spacing:-.5px;font-weight:650;color:white;display:flex;align-items:center;gap:9px;text-decoration:none}.brand-icon{display:grid;place-items:center;background:#bcf297;color:#123d33;width:29px;height:29px;border-radius:9px;font-size:24px}.workspace{font-size:14px;color:#9cb8ab;margin:21px 0 42px}nav{display:grid;gap:9px}nav a{color:#abc8ba;text-decoration:none;padding:15px;border-radius:9px}nav a.active{background:#285346;color:#d4fbb5}.aside-bottom{margin-top:auto;font-size:14px}.aside-bottom p{color:#89ae9c;font-size:14px;line-height:1.9}.dot{width:6px;height:6px;background:#bbee90;display:inline-block;border-radius:50%;margin-right:6px}main{margin-left:232px;padding:42px 40px;max-width:1750px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:35px}h1{font-size:32px;letter-spacing:-1px;margin:12px 0}h2{font-size:19px;margin:8px 0 12px}h3{font-size:19px}.eyebrow{font-size:12px;letter-spacing:2.5px;color:#799687;font-weight:650}.muted{color:var(--muted);line-height:1.6;font-size:15px;margin:6px 0}.pill{background:#e5eee5;color:#507863;border:1px solid #d4e2d4;border-radius:20px;padding:9px 13px;font-size:14px;white-space:nowrap}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:25px}.metrics article{background:white;border:1px solid var(--line);border-radius:14px;padding:21px 24px}.metrics span{display:block;color:#738277;font-size:14px}.metrics strong{font-size:37px;display:block;margin:13px 0;font-weight:550}.metrics small{color:#94a095;font-size:13px}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:25px;margin-bottom:24px}.section-top{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}button{border:1px solid var(--green);background:var(--green);color:white;padding:10px 16px;border-radius:7px;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap}button:hover{filter:brightness(.94)}button.secondary{background:white;color:#4e6b5b;border-color:#d9e2da}button:disabled{opacity:.45;cursor:wait}input,select{font:inherit;background:#fcfdfb;border:1px solid #dbe5db;border-radius:7px;padding:11px 12px;color:#28493a;width:100%;outline:none}input:focus,select:focus,button:focus-visible{outline:2px solid #8dbf9b;outline-offset:2px}input::placeholder{color:#9aa59b;font-size:14px}input[type=search]{width:190px}label{display:grid;gap:8px;font-size:14px;color:#63816b;margin:17px 0}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#f7f9f5;color:#879588;font-weight:500;font-size:13px;padding:13px 12px}td{padding:20px 12px;border-bottom:1px solid #edf1e9;font-size:14px}td:first-child{white-space:normal;min-width:175px;max-width:250px;overflow-wrap:anywhere}.keyword{font-size:16px;font-weight:600}.sku{color:#87968a;font-size:13px;margin-top:7px}.rank{font-size:25px;font-weight:600}.up{color:#1f9061}.down{color:#ba6654}.error{color:#b57443}.sample-note{font-size:12px;color:#89998b;margin-top:6px;max-width:180px;white-space:normal;line-height:1.6}.table-wrap{overflow:auto}.footnote{font-size:13px;line-height:1.8;color:#8b998c;margin:18px 0 0}.empty{text-align:center;padding:35px 15px 50px;color:#809283}.empty>span{font-size:36px;color:#a5bfa5}.empty p{font-size:14px}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.bottom-grid .panel{margin:0}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}footer{margin-top:30px;font-size:13px;color:#8d9d8e;display:flex;justify-content:space-between}#notice{padding:13px 17px;background:#eef3dc;color:#607437;border:1px solid #d7e2b7;border-radius:8px;margin-bottom:20px;font-size:14px;line-height:1.7}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:min(850px,92vw);max-height:85vh;color:#254936}dialog::backdrop{background:#0b302a70}#history-content{overflow:auto}#history-content table{font-size:14px}.history-summary{color:#819281;font-size:14px;margin:16px 0}[hidden]{display:none!important}@media(min-width:1600px){main{padding:50px 60px}}@media(max-width:1120px){aside{width:190px;padding:25px 17px}.brand{font-size:15px}main{margin-left:190px;padding:30px 22px}.section-top{align-items:flex-start;flex-direction:column}.metrics article{padding:17px}.metrics small{font-size:12px}.bottom-grid{gap:16px}}@media(max-width:750px){aside{position:static;width:100%;padding:18px}nav{display:flex;margin-top:15px}nav a{padding:8px}.workspace,.aside-bottom{display:none}main{margin:0;padding:24px 15px}h1{font-size:25px}header{align-items:flex-start;gap:10px}.metrics{grid-template-columns:1fr 1fr;gap:10px}.bottom-grid{grid-template-columns:1fr}.panel{padding:19px}footer{display:block;line-height:2}footer span{display:block}}

#store-filter{width:125px}.owned-products{white-space:normal;min-width:400px}.owned-products h3{font-size:15px;margin:12px 0;color:#126d55}.owned-product{display:grid;grid-template-columns:65px minmax(150px,1fr) minmax(100px,220px) 50px;gap:12px;align-items:center;padding:9px 0;border-top:1px solid #edf1e9;overflow-wrap:anywhere}.owned-product small{color:#87968a}.owned-product strong{font-size:18px}

.bottom-grid{grid-template-columns:minmax(0,1fr)}#new-monitor{max-width:850px}#connection{width:min(660px,92vw)}#connection .section-top{flex-direction:row;align-items:center}#connection-notice{padding:12px;background:#eef3dc;border-radius:8px;font-size:14px;line-height:1.7}

.metrics .metric-card{display:block;text-align:left;white-space:normal;background:white;color:inherit;border:1px solid var(--line);border-radius:14px;padding:21px 24px;font:inherit}.metrics .metric-card:hover{background:#eef6ee;border-color:#9abd9d;filter:none}.metrics .metric-card:focus-visible{outline:3px solid #8dbf9b;outline-offset:3px}#keywords-dialog{width:min(620px,92vw)}#keywords-list{list-style:none;margin:20px 0 0;padding:0}#keywords-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}#keywords-list small{color:var(--muted);text-align:right}#keywords-dialog .section-top{flex-direction:row;align-items:center}@media(max-width:1120px){.metrics .metric-card{padding:17px}}
#pending-content td:last-child{white-space:normal;min-width:200px;max-width:300px;line-height:1.6}

dialog > .section-top{position:sticky;top:-28px;z-index:10;background:#fff;margin:-28px -28px 18px;padding:28px 28px 16px;border-bottom:1px solid var(--line);flex-direction:row;align-items:center}dialog > .section-top > button{flex-shrink:0}

.product-link{white-space:normal;text-align:left;background:transparent;border:0;padding:0;color:#126d55;font:inherit;line-height:1.6;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.product-link:hover{background:#edf5ee;filter:none}.rank-chart{display:block;width:100%;height:auto;min-height:180px;margin:22px 0}.rank-chart text{font-size:13px}#product-history-content h3{line-height:1.6}

.competitor-shop{padding:12px 0;border-bottom:1px solid var(--line)}#competitor-form{max-width:650px}#competitor-products td:first-child{min-width:280px;max-width:600px}#competitor-products a{line-height:1.7}

#competitor-shops .competitor-shop{padding:10px 0}#competitor-shops h3{margin:0 0 6px;font-size:16px}#competitor-shops p{margin:4px 0;line-height:1.5}

.competitor-product-image{display:block;width:150px;height:150px;object-fit:contain;margin:12px 0 8px;border:1px solid var(--line);border-radius:8px;background:#fff}

.competitor-add-heading{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin-bottom:18px}.competitor-add-heading h2{margin:0}

#keywords-list li{gap:14px}#keywords-list li strong{flex:1}#keywords-list .keyword-delete{padding:7px 12px;color:#a54a3c;flex-shrink:0}
.top-filters{display:flex;gap:10px;flex-wrap:wrap}.top-filters button[aria-pressed="true"]{background:#126e58;color:white}#top-dialog .section-top{flex-wrap:wrap;gap:12px}

.analysis-fields{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:18px}.analysis-fields label{min-width:0}.analysis-hero{display:flex;gap:24px;align-items:center;margin:22px 0}.analysis-hero a{font-size:20px;font-weight:600;line-height:1.7}.analysis-image{width:135px;height:135px;object-fit:contain;border-radius:12px;border:1px solid var(--line);background:white}.analysis-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.analysis-stat{display:flex;flex-direction:column;gap:10px;background:#f5f8f2;border:1px solid var(--line);border-radius:12px;padding:18px}.analysis-stat span{font-size:14px;color:#6e8274}.analysis-stat strong{font-size:25px;line-height:1.4}.analysis-stat small{font-size:13px;color:#718076;line-height:1.6}.analysis-warning{background:#fff3df;color:#835a29;border-radius:8px;padding:15px;line-height:1.7}.analysis-action,.analysis-rule{padding:16px 0;border-top:1px solid var(--line)}.analysis-action p,.analysis-rule p,#analysis .panel>p{line-height:1.8}.analysis-action h3,.analysis-rule h3{margin:6px 0 10px}.analysis-measure{padding:14px;background:#eef6ec;border-radius:8px}.analysis-table td:nth-child(2){min-width:290px;max-width:420px;white-space:normal;line-height:1.65}.analysis-table td:first-child{min-width:75px}.analysis-table .sample-note{max-width:360px}.analysis-table a{overflow-wrap:anywhere}#analysis h2{font-size:20px}#analysis .footnote{color:#66786c}@media(max-width:1100px){.analysis-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-fields{grid-template-columns:1fr}}@media(max-width:750px){nav{flex-wrap:wrap}.analysis-hero{align-items:flex-start;flex-direction:column}.analysis-stats{gap:10px}.analysis-stat{padding:14px}.analysis-stat strong{font-size:21px}}

.analysis-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}details.panel>summary{cursor:pointer;font-weight:600} @media(max-width:700px){.analysis-form-grid{grid-template-columns:1fr}}

#analysis-cases table{min-width:1000px;table-layout:fixed}#analysis-cases th:nth-child(1){width:22%}#analysis-cases th:nth-child(2){width:20%}#analysis-cases th:nth-child(3){width:13%}#analysis-cases th:nth-child(4){width:17%}#analysis-cases th:nth-child(5){width:28%}#analysis-cases td{vertical-align:top}#analysis-cases td:first-child p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}#analysis-cases button{margin:4px 8px 8px 0}#analysis-cases details{margin:14px 0}#analysis-cases summary{cursor:pointer}
#analysis-cases td,#analysis-cases td:last-child{white-space:normal;overflow-wrap:anywhere}#analysis-cases td:last-child p{white-space:normal}

.keyword-analysis-table{min-width:950px;table-layout:fixed}.keyword-analysis-table th:nth-child(1){width:17%}.keyword-analysis-table th:nth-child(2){width:23%}.keyword-analysis-table th:nth-child(3){width:20%}.keyword-analysis-table th:nth-child(4){width:12%}.keyword-analysis-table th:nth-child(5){width:28%}.keyword-analysis-table td,.keyword-analysis-table td:last-child{white-space:normal;vertical-align:top;overflow-wrap:anywhere}.keyword-analysis-table details{margin:10px 0}.keyword-analysis-table summary{cursor:pointer}

.improvement-form{display:grid;gap:14px;max-width:720px;margin:18px 0}.improvement-form label{display:grid;gap:6px}.improvement-form textarea{min-height:90px;font:inherit;padding:12px;border:1px solid #cddbd4;border-radius:8px}#analysis details{margin:16px 0}#analysis summary{cursor:pointer}#analysis .analysis-fields{align-items:start}

.sales-metrics .metric-card{min-width:0}.sales-metrics strong{font-size:clamp(24px,2.6vw,40px)}.sales-metrics small{display:block;margin-top:8px}

.employee-sales-table{width:auto;min-width:0}.employee-sales-table th,.employee-sales-table td{padding:10px 12px}.employee-sales-table th:first-child,.employee-sales-table td:first-child{min-width:0;max-width:none;width:85px;white-space:nowrap}.employee-sales-table td:nth-child(2){font-weight:600}
#sales-result details.panel table{table-layout:fixed;min-width:760px}#sales-result details.panel th,#sales-result details.panel td{padding:10px 12px}#sales-result details.panel th:first-child,#sales-result details.panel td:first-child{width:60px;min-width:0;max-width:none;white-space:nowrap}#sales-result details.panel th:nth-child(2){width:140px}#sales-result details.panel th:nth-child(4){width:90px}#sales-result details.panel th:nth-child(5),#sales-result details.panel th:nth-child(6){width:145px}#sales-result details.panel td:nth-child(3){white-space:normal;overflow-wrap:anywhere}

#sales-cards{grid-template-columns:repeat(4,minmax(0,1fr))}#sales-cards .sales-comparison small{line-height:1.5}@media(max-width:1200px){#sales-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){#sales-cards{grid-template-columns:1fr}}
#sales-cards strong{font-size:clamp(22px,1.8vw,34px);overflow-wrap:anywhere}

#stock-alerts-panel article.panel{padding:14px 18px;margin-bottom:10px}#stock-alerts-panel article h3{margin:0 0 6px}#stock-alerts-panel article p{margin:5px 0;line-height:1.45}#stock-alerts-panel article .actions{margin-top:10px;gap:8px;align-items:flex-end}#stock-alerts-panel article .actions label{margin:0;gap:4px}#stock-alerts-panel article .actions button{padding:9px 13px}#stock-alerts-panel article .actions select{padding:9px 12px}#stock-alerts-panel article:last-child{margin-bottom:0}

#reminder-login-panel form{display:grid;gap:12px;max-width:420px}#reminder-login-panel [hidden],#reminders section[hidden]{display:none!important}

#rr-results textarea{display:block;width:100%;box-sizing:border-box;min-height:88px;border:1px solid #d8e2dc;border-radius:8px;padding:12px;font:inherit;margin:8px 0 12px}#rr-results form{margin-top:18px}#rr-results form button{margin-right:8px}

.rr-audit-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}

.rr-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}.rr-rating{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 14px;border:1px solid #e7c76d;border-radius:10px;background:#fff6d8;color:#795100;font-size:18px}.rr-stars{font-size:28px;line-height:1.15;letter-spacing:2px;color:#ac6800}.rr-rating-low{background:#fff0ed;border-color:#d88375;color:#a52718}.rr-rating-low .rr-stars{color:#bd3825}.rr-published{font-size:16px;font-weight:600;color:#234e49;background:#e9f1ef;border-radius:8px;padding:10px 12px}

.rr-customer{background:#eef6ff;border:1px solid #bdd4eb;border-left:5px solid #286595;border-radius:10px;padding:18px 20px;margin:18px 0}.rr-customer h3{font-size:14px;color:#286595;margin:0 0 8px;font-weight:700}.rr-customer p{font-size:20px;font-weight:600;line-height:1.8;color:#142f43;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.rr-official{background:#f4f6f5;border-radius:8px;padding:14px 18px;margin:12px 0}.rr-official h3{font-size:14px;margin:0 0 8px}.rr-official p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:0;font-size:16px}
/* Compact SKU reports, scoped to avoid changing other pages. */
#analysis{max-width:1320px}
#analysis header{margin-bottom:18px}
#analysis>.panel{padding:16px 20px;margin-bottom:14px}
#analysis .analysis-fields label{margin:8px 0}
#analysis .footnote{margin-top:8px;font-size:12px;line-height:1.5}
#analysis-result .sku-report-panel{padding:18px 22px;max-width:960px;margin-bottom:16px}
.sku-report-panel>h2{font-size:16px;margin:0 0 5px}
.sku-report-panel>.muted{font-size:12px;margin:4px 0 12px}
.sku-connection{font-size:12px;color:var(--muted);margin:3px 0 6px}
.sku-connection summary{cursor:pointer}
.sku-connection p{font-size:12px;margin:3px 0}
.sku-report{font-size:14px;line-height:1.6;color:#173c36}
.sku-report p{margin:9px 0;overflow-wrap:anywhere}
.sku-report>p:first-child{font-weight:650;font-size:15px;margin:8px 0 14px}
.sku-report h3{font-size:14px;font-weight:700;margin:16px 0 7px}
.sku-report .table-wrap{margin:8px 0 16px}
.sku-report table{white-space:normal;table-layout:fixed;min-width:0}
.sku-report th,.sku-report td{font-size:14px;line-height:1.45;padding:9px 10px;vertical-align:top;border-bottom:1px solid #e5ebe7;overflow-wrap:anywhere}
.sku-report th{font-weight:700;color:#34584d;background:transparent}
.sku-report td:first-child,.sku-report th:first-child{width:27%;min-width:0;max-width:none;padding-left:0}
.sku-report strong{font-weight:700}
.sku-report code{font-size:12px;background:#edf1ee;border-radius:4px;padding:2px 4px;overflow-wrap:anywhere}
@media(max-width:600px){#analysis-result .sku-report-panel{padding:14px 12px}.sku-report th,.sku-report td{padding:8px 6px;font-size:13px}.sku-report p{font-size:14px}.sku-report code{font-size:11px}}

.sku-history-list{display:flex;flex-wrap:wrap;gap:8px}.sku-history-list button{padding:8px 12px;font-size:13px}.sku-history-list button[aria-pressed="true"]{background:#126d55;color:white;border-color:#126d55}
.sku-report-more{margin:10px 0}.sku-report-more>summary{cursor:pointer;color:#126d55;font-size:13px}.sku-report-more[open]>.sku-report{margin-top:14px;border-top:1px solid #e2e9e4;padding-top:10px}.sku-report-brief>h3{margin-top:14px}
.sku-history-item{display:flex;align-items:center;gap:3px}.sku-history-list .sku-history-delete{color:#a13434;padding:8px;font-size:12px}.sku-history-delete:disabled{opacity:.35}
