/* /style.css */
:root{--ink:#172033;--muted:#667085;--line:#e6eaf0;--blue:#2167ff;--soft:#f4f7ff;--green:#0d9962;--red:#d63b51;font-family:"Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:#f7f9fc;font-size:13px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}[hidden],.view-hidden{display:none!important}
a{color:var(--blue)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b8cfff;outline-offset:3px}select:focus,input:focus,textarea:focus{outline:2px solid #c8d9ff;border-color:var(--blue)}
.skip-link{position:fixed;left:16px;top:-70px;z-index:90;background:#fff;padding:12px}.skip-link:focus{top:12px}.sr-only,.search-status[data-kind=quiet]{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;padding:0!important;margin:0!important}#trendHeaderTitle{overflow-wrap:anywhere;min-width:0}
.badge{font-weight:800;color:#fff;background:var(--blue);font-size:12px;border-radius:6px;padding:5px 6px}.brand,.login-brand{display:flex;align-items:center;gap:9px;font-size:18px}.brand{padding:0 12px 28px}.brand strong{letter-spacing:-.4px}.login-brand{padding:26px 32px;background:#fff;border-bottom:1px solid var(--line)}.app-ready .login-brand{display:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:26px 14px;z-index:10}
.sidebar nav{display:grid;gap:5px;overflow:auto;min-height:0;scrollbar-width:thin}.nav-item,.nav-more summary{display:block;border:0;background:transparent;color:#4a5568;text-decoration:none;text-align:left;border-radius:8px;padding:11px 12px;font-size:14px;cursor:pointer}.nav-item:hover,.nav-more summary:hover{background:#f4f7fb}.nav-item.active{background:var(--soft);color:var(--blue);font-weight:700}.nav-more .nav-item{padding:9px 12px 9px 24px;font-size:13px}.nav-more summary{list-style:revert}.aside-bottom{margin-top:auto;padding:16px 7px 0;border-top:1px solid var(--line);display:grid;gap:10px}.aside-bottom small{color:var(--muted);font-size:11px}.aside-bottom .text-button{justify-self:start;padding:0}
#appMain{margin-left:232px;padding:0 44px 48px;min-width:0}.workspace-header{min-height:105px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);margin-bottom:32px}.workspace-header p{margin:0;color:var(--muted);font-size:13px}.workspace-header h1{font-size:25px;margin:4px 0 0;letter-spacing:-.7px}.header-actions{display:flex;gap:14px;align-items:center;color:var(--muted);flex-wrap:wrap;justify-content:end}.header-actions button{white-space:nowrap}
h1,h2,h3,h4{color:var(--ink)}h1{font-size:25px}h2{font-size:24px;letter-spacing:-.5px;margin:0 0 9px}h3{font-size:16px;margin:0 0 6px}h4{font-size:14px;margin:0 0 8px}p{line-height:1.65;overflow-wrap:anywhere}.muted,.empty{color:var(--muted)}.section-intro{margin-bottom:21px}.section-intro p{margin:0;color:var(--muted);font-size:13px}
.card,.filter-bar{background:#fff;border:1px solid var(--line);border-radius:11px;min-width:0;box-shadow:0 1px 1px #17203305}.card{padding:21px;margin:22px 0}.desktop-page.card{margin-top:0}.desktop-page.card>h2{margin-bottom:9px}.desktop-page.card>.muted{margin:0 0 22px}.desktop-page.card>h3,.desktop-page.card>h2:not(:first-child),#maintenancePanel h2{margin-top:28px}
label{font-size:12px;color:var(--muted);display:grid;gap:6px;min-width:0}select,input,textarea{border:1px solid #d8dee8;background:#fff;border-radius:7px;padding:9px 10px;color:var(--ink);min-width:0;width:100%}select{height:37px}textarea{resize:vertical;min-height:88px;line-height:1.5}input[type=checkbox]{width:auto;accent-color:var(--blue)}
button{border:1px solid #d7dee8;border-radius:8px;background:#fff;color:#334155;padding:9px 14px;font-weight:650;font-size:13px}button:hover:not(:disabled){border-color:#a5bce9;background:#f8faff}.primary,#search,#moversLoad,#candidateLoad,#growthLoad,#brandsLoad,#overviewLoad,#bestLiftsLoad,#breakoutsLoad,#opportunitiesLoad,#crossSiteLoad{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 3px 8px #2167ff33}.primary:hover:not(:disabled),#search:hover:not(:disabled){background:#1657e6}.secondary{background:#fff}.text-button{border:0;background:transparent;color:var(--blue);padding:3px;font-weight:650}
.controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:13px;align-items:end}.controls>button{justify-self:start}.actions{display:flex;align-items:center;gap:9px;margin-top:16px;flex-wrap:wrap}.filter-bar{padding:13px 16px;display:flex;gap:12px;align-items:end;flex-wrap:wrap}.query-options label{flex:0 1 185px}.scope-note{flex-basis:100%;margin:0;background:#eef4ff;border-radius:7px;padding:10px 12px;font-size:12px;color:#65758b}.keyword-search-bar{margin-top:18px}.keyword-search-bar>label[data-source=week]{flex:0 1 265px}.keyword-search-bar .query-label{flex:1 1 310px}.keyword-search-bar .primary{white-space:nowrap;height:38px}.search-status{flex-basis:100%;font-size:12px;color:var(--muted);min-height:0}.search-status:empty{display:none}
.columns{display:grid;grid-template-columns:.95fr 1.4fr;gap:20px;align-items:start;margin-top:0}.columns>.card{margin:22px 0 0}.panel-title{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:17px}.panel-title h2{font-size:16px;letter-spacing:0;margin:0 0 6px}.panel-title p{margin:0;font-size:12px}.trend-actions{margin-top:0;justify-content:end}.trend-actions button{padding:8px 11px;font-weight:500}.results-panel,.detail-panel{min-width:0}#results,#trend{color:var(--ink)}
.group+.group{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.group>h3{font-size:13px;padding:9px 10px;background:#edf3ff;border-radius:7px;color:#25364d;margin:0 0 14px}.source{margin:12px 0 18px}.source h4{color:#345680;font-size:13px;margin:0 0 10px}.source .row{border:1px solid #e5e9f0;border-radius:8px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;margin-top:8px;align-items:center}.source .row:hover{border-color:#b1c9f4;background:#fafcff}.source .row button{border:0;padding:0;background:transparent;text-align:left;overflow-wrap:anywhere;color:var(--ink);font-size:13px;font-weight:650}.source .row button::after{content:'›';color:var(--blue);float:right;margin-left:12px}.source .rank{font-size:15px;font-weight:700;color:var(--blue);font-variant-numeric:tabular-nums;white-space:nowrap}.result-meta{grid-column:1/-1;color:var(--muted);font-size:12px}.result-meta.positive{color:var(--green)}.result-meta.negative{color:var(--red)}.row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 0;border-top:1px solid #edf0f6;align-items:center}.row button{text-align:left;overflow-wrap:anywhere}.row span{overflow-wrap:anywhere}.rank{font-variant-numeric:tabular-nums}.pagination{border-top:1px solid var(--line);padding-top:14px;font-size:12px}.pagination button{padding:7px 10px}
.trend-title{font-size:16px;margin:0 0 5px;overflow-wrap:anywhere}.trend-subtitle{font-size:12px;color:var(--muted);margin:0 0 16px}.period-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.period-controls label{flex:1 1 108px}.period-controls button{padding:9px 10px;white-space:nowrap}.period-note{font-size:12px;color:var(--muted);line-height:1.65;margin:10px 0 20px}.period-section{border-top:1px solid var(--line);padding-top:22px;margin-top:20px}.period-section h4{font-size:16px;margin:0 0 20px}.period-metrics{display:grid;grid-template-columns:1.5fr 1fr .7fr;gap:12px;align-items:start;font-size:12px;margin-bottom:18px}.period-metrics strong{display:block;font-size:19px;line-height:1.5}.period-metrics small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.period-chart{position:relative;height:285px;min-width:0}.period-chart canvas{width:100%!important;height:100%!important}.period-details{margin-top:14px;font-size:12px}.period-details summary{cursor:pointer;color:var(--muted);padding:8px 0}.period-gap{font-size:12px;color:var(--muted);margin:8px 0}.period-empty{color:var(--muted);padding:20px 0}.external-link{display:inline-block;border:1px solid #d7dee8;border-radius:7px;padding:7px 9px;color:#345680;background:#fff;text-decoration:none;font-size:12px}.external-link:hover{color:var(--blue);border-color:#a5bce9}
table{border-collapse:collapse;width:100%;font-size:13px}td,th{text-align:left;border-bottom:1px solid #eef1f5;padding:10px;vertical-align:top}th{font-weight:600;color:var(--muted);background:#fafbfd}td:first-child{font-weight:550}.table-scroll{overflow:auto;max-height:360px;min-width:0}.table-scroll table{min-width:360px}.notice{color:#95690b;background:#fff8dd;padding:10px 12px;border-radius:7px;font-size:12px}.shell-message{color:#95690b;background:#fff8dd;padding:10px;border-radius:7px}
.auth-card{max-width:480px;margin:40px auto;padding:28px}.auth-card h1{margin-top:0}.auth-card form{display:grid;gap:14px;margin:18px 0}.auth-card details{margin-top:24px}.auth-card summary{cursor:pointer;color:var(--blue)}#authPanel{padding:0 18px}#watchForm input{width:min(420px,100%)}#previewForm input{width:min(460px,100%)}#oauthConsentPanel{border-color:#9abaff;position:relative;z-index:1}#maintenancePanel form{margin-top:18px}#crossSiteStations label{display:flex;align-items:center;gap:6px}.view-hidden[aria-hidden=true]{display:none}
.detail-panel.chart-zoomed{position:fixed;inset:24px 30px 24px 262px;z-index:40;overflow:auto;margin:0;background:#fff;box-shadow:0 24px 90px #17203366;border-color:#b9cbee}.detail-panel.chart-zoomed .period-chart{height:360px}.chart-open{overflow:hidden}.mobile-menu{display:none}.source .row.selected{border-color:#a5c0ff;background:#f8faff}
@media(min-width:1600px){.keyword-search-bar .query-label{flex-basis:500px}}
@media(max-width:1200px){#appMain{padding:0 26px 36px}.header-actions{gap:9px}.query-options label{flex:1 1 160px}.keyword-search-bar>label[data-source=week]{flex:1 1 200px}.keyword-search-bar .query-label{flex-basis:100%}.columns{grid-template-columns:1fr 1.25fr}.period-controls label{flex-basis:125px}.period-controls button{align-self:end}}
@media(max-width:1000px){.sidebar{width:200px;padding:24px 12px}.brand{font-size:16px;padding-left:8px}#appMain{margin-left:200px;padding:0 22px 30px}.workspace-header{align-items:start;padding:22px 0;min-height:100px}.header-actions{max-width:220px}.columns{grid-template-columns:1fr}.detail-panel.chart-zoomed{left:222px}.controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sidebar{position:static;width:auto;border-right:0;border-bottom:1px solid var(--line);padding:16px 18px}.brand{padding:0 0 14px;font-size:17px}.sidebar nav{display:flex;gap:6px;flex-wrap:wrap;overflow:visible}.nav-item,.nav-more summary{padding:8px 10px;font-size:12px;background:#fafbfd}.nav-more[open]{flex-basis:100%;display:flex;flex-wrap:wrap}.nav-more[open] summary{margin-bottom:7px}.nav-more .nav-item{display:inline-block;padding:8px 10px;margin:0 4px 6px 0}.aside-bottom{margin-top:14px;padding:12px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.aside-bottom label{grid-row:1/3}.aside-bottom small{font-size:10px;max-width:140px}.aside-bottom .text-button{justify-self:end}#appMain{margin:0;padding:0 18px 30px}.workspace-header{margin-bottom:22px;gap:12px;padding:20px 0;min-height:90px}.workspace-header h1{font-size:22px}.workspace-header p{font-size:12px}.header-actions{max-width:180px;font-size:11px}.header-actions button{padding:7px 9px;font-size:12px}.section-intro h2{font-size:22px}.section-intro p{font-size:12px}.query-options label{flex:1 1 140px}.keyword-search-bar>label[data-source=week]{flex:1 1 140px}.card{padding:16px}.columns{gap:0}.controls{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-panel.chart-zoomed{inset:12px}.period-metrics{grid-template-columns:1.4fr 1fr .7fr;gap:8px}.period-metrics strong{font-size:17px}.period-chart{height:245px}.trend-actions button{padding:7px 9px;font-size:12px}.panel-title{gap:8px}.auth-card{margin:24px auto}.scope-note{line-height:1.7}}
@media(max-width:380px){.controls{grid-template-columns:1fr}.workspace-header{display:block}.header-actions{max-width:none;justify-content:start;margin-top:12px}.period-controls label{flex-basis:120px}}
@media(max-width:700px){.sidebar{position:relative}.sidebar.nav-collapsed nav{display:none}.mobile-menu{display:block;position:absolute;right:18px;top:14px;padding:6px 9px;font-size:12px}.brand{padding-right:92px}}
.watch-toolbar{margin:20px 0 14px;gap:9px}.watch-toolbar label{width:100px}.watch-toolbar button{align-self:end}.watch-table-wrap{overflow:auto;min-width:0;padding-bottom:65px}.watch-table{min-width:980px;table-layout:fixed}.watch-table th:nth-child(1){width:58px}.watch-table th:nth-child(2){width:22%}.watch-table th:nth-child(3),.watch-table th:nth-child(4){width:24%}.watch-table th:nth-child(5){width:300px}.watch-table td{vertical-align:middle;padding:14px 10px}.watch-word{font-size:13px;line-height:1.5;text-align:left}.watch-spark small{display:block;font-size:10px;color:var(--muted);line-height:1.7}.spark-button{display:block;padding:0;border:0;background:transparent;width:100%;max-width:230px}.spark-button svg{display:block;width:100%;height:52px;color:var(--blue)}.spark-button path{stroke:currentColor}.spark-button circle{fill:currentColor}.day-spark svg{color:var(--green)}.watch-no-rank{color:var(--muted);font-size:12px}.watch-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.watch-actions>button{padding:7px 9px;font-size:12px}.danger-text{color:var(--red)}
.external-menu{position:relative;font-size:12px;white-space:nowrap}.external-menu summary{cursor:pointer;border:1px solid #d7dee8;border-radius:7px;padding:7px 9px;list-style:none;color:#385071;background:#fff}.external-menu-items{position:absolute;top:calc(100% + 5px);right:0;z-index:15;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 24px #17203322;min-width:155px;padding:7px;display:grid;gap:3px}.external-menu-items a{padding:8px;color:#345680;text-decoration:none;border-radius:5px}.external-menu-items a:hover{background:var(--soft)}.external-menu-items span{white-space:normal;font-size:11px}
.country-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.country-chip{display:flex;align-items:center;gap:14px;padding:7px 10px;background:#f5f8ff;border:1px solid var(--line);border-radius:22px;font-size:12px}.country-chip button{padding:0;border:0;background:transparent;color:var(--muted);font-size:17px;line-height:1}.country-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.country-card{border:1px solid var(--line);background:#fcfdff;border-radius:10px;padding:17px;min-width:0}.country-card h3{margin-bottom:19px}.country-card>h4{margin-top:18px}.country-source{border-top:1px solid var(--line);padding:13px 0 7px;margin-top:12px}.country-source h4{font-size:12px;color:#345680;overflow-wrap:anywhere}.country-source p{font-size:12px}.country-keyword{display:block;width:100%;text-align:left;margin:8px 0;font-size:12px;padding:8px;overflow-wrap:anywhere}.country-source small{color:var(--muted)}#extraStationSelect{width:240px}#multiSearchPanel>h2{font-size:18px}.brand-inline-detail-row>td,.opportunity-detail-row>td{padding:18px;background:#f8faff}.brand-inline-detail{background:#fff;border:1px solid var(--line);border-radius:9px;padding:17px}.brand-inline-detail .table-scroll{max-height:480px}.brand-expand::before,.opportunity-expand::before{content:'›';display:inline-block;margin-right:8px}.brand-expand[aria-expanded=true]::before,.opportunity-expand[aria-expanded=true]::before{transform:rotate(90deg)}#brandsResults>.table-scroll,#opportunitiesResults>.table-scroll,#breakoutsResults>.table-scroll{max-height:none}.brand-inline-detail-row table td{font-size:12px;overflow-wrap:anywhere}.country-card .actions button{padding:6px 9px;font-size:11px}.country-card .actions span{font-size:11px}
@media(max-width:700px){.watch-toolbar{gap:7px}.watch-toolbar label{width:90px}.watch-toolbar button{padding:7px 9px;font-size:12px}.country-results{grid-template-columns:minmax(0,1fr)}#extraStationSelect{width:min(240px,100%)}.brand-inline-detail{padding:12px}}
dialog.admin-reauth{width:min(460px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #d6deea;border-radius:14px;padding:24px;color:#17253d;background:#fff}dialog.admin-reauth::backdrop{background:rgba(15,23,42,.35)}dialog.admin-reauth input{width:100%;box-sizing:border-box}.setup-page{max-width:900px;margin:32px auto;padding:16px}.setup-page .panel{padding:24px}.setup-page code{overflow-wrap:anywhere}.agent-client-config{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;padding:16px;border-radius:8px;background:#f5f7fc;font-size:13px}
/* Upload byte progress is determinate; validation/import stay indeterminate until confirmed. */
.upload-progress{display:grid;gap:8px;margin:18px 0;max-width:680px}.upload-progress[hidden]{display:none}.upload-progress progress{width:100%;height:14px;accent-color:var(--blue)}.upload-progress progress[hidden]{display:none}.upload-progress span{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
#adminUsers .row>.actions{grid-column:1/-1;min-width:0;margin-top:0}
#oauthCleanupDays{width:110px}.inline-check{display:flex;align-items:center;gap:7px}.inline-check input{width:auto}.cleanup-preview{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:9px;background:#f8faff}.cleanup-table{min-width:650px}.cleanup-table td{overflow-wrap:anywhere}.audit-entry{padding:12px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}

.prompt-editor{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px;margin:18px 0 26px}.prompt-editor label:has(textarea),.prompt-editor p,.prompt-editor .actions{grid-column:1/-1}.prompt-editor textarea,.prompt-card textarea{width:100%;box-sizing:border-box;resize:vertical;white-space:pre-wrap;overflow-wrap:anywhere}.prompt-card{border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0}.prompt-card summary{font-weight:650;overflow-wrap:anywhere;cursor:pointer}.prompt-card textarea{margin-top:12px}.prompt-card .muted{font-size:13px}.prompt-card .actions{margin-top:12px}button[aria-pressed=true]{background:#edf2ff;color:#2563eb}@media(max-width:700px){.prompt-editor{grid-template-columns:1fr}.prompt-card{padding:12px}}
.aside-bottom #accountIdentity{overflow-wrap:anywhere;min-width:0}
.prompt-position{margin-top:10px}.prompt-position label{display:flex;align-items:center;gap:6px}.prompt-position input{width:85px;min-width:0}.prompt-visible{display:flex!important;align-items:center;gap:8px}.prompt-visible input{width:auto}

.import-file{border:1px solid var(--line,#d5dfed);border-radius:10px;padding:14px;margin:12px 0;overflow-wrap:anywhere}.import-file .actions{flex-wrap:wrap}.import-file label{display:flex;flex-direction:column;gap:5px}.import-file-status{font-weight:600}.upload-progress[data-state="awaiting-confirmation"]{color:#805a0c;background:#fff7df;padding:12px;border-radius:8px}.upload-progress[data-state="complete"]{color:#126c43;background:#eaf8f1;padding:12px;border-radius:8px}.upload-progress[data-state="failed"]{color:#a12626;background:#fff0f0;padding:12px;border-radius:8px}
.mcp-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin:16px 0}
.mcp-tool-option{display:flex;align-items:flex-start;gap:10px;border:1px solid #dfe4ee;border-radius:10px;padding:12px;min-width:0}
.mcp-tool-option input{width:auto;flex:none;margin-top:3px}
.mcp-tool-option span{min-width:0;overflow-wrap:anywhere}
.mcp-tool-option strong,.mcp-tool-option small{display:block}
.mcp-tool-option small{color:#64748b;margin-top:5px}
#trademarksPanel{min-width:0}#trademarkRows{overflow-x:auto;max-width:100%}#trademarkRows table{min-width:660px}#trademarkEditor label{display:block;margin:12px 0}#trademarkEditor input:not([type=checkbox]){width:100%;max-width:500px;box-sizing:border-box}#trademarksPanel .actions{flex-wrap:wrap}#trademarksPanel .actions label{min-width:0;max-width:100%}#trademarkFind{max-width:100%;box-sizing:border-box}

/* Query actions remain near the keyword and available while scrolling results. */
.query-country-toolbar{position:sticky;top:0;z-index:12;margin:0 0 18px;padding:10px 14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;box-shadow:0 3px 12px #1720330d}.query-country-toolbar strong{font-size:13px;white-space:nowrap}.query-country-toolbar .actions,.query-country-toolbar .country-chips{margin:0}.query-country-toolbar #extraStationSelect{width:170px}.query-country-toolbar .country-chip{padding:5px 9px}.search-copy-actions{margin:0;gap:6px;justify-content:end}.search-copy-actions button{padding:7px 9px;font-size:12px;white-space:nowrap}.results-panel>.panel-title{flex-wrap:wrap}#searchCopyMessage:empty,#trendCopyMessage:empty{display:none}#searchCopyMessage{font-size:12px;margin:-5px 0 12px}.source .row{grid-template-columns:16px minmax(0,1fr) auto}.source .row .search-result-check{width:16px;height:16px;margin:0;accent-color:var(--blue)}.source .row .result-meta{grid-column:2/-1}.trend-heading{flex:1;min-width:0}.trend-heading h2{overflow-wrap:anywhere}.trend-heading h2[aria-disabled=false]{cursor:copy}.trend-heading h2[aria-disabled=false]:hover{color:var(--blue)}.trend-heading h2:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:3px}.trend-links{margin:6px 0 0;gap:6px}.trend-links .external-link{padding:5px 7px;font-size:11px}#trendCopyMessage{font-size:12px;color:var(--green);margin:4px 0 0}
@media(max-width:700px){.query-country-toolbar{padding:9px 10px;gap:8px;top:0}.query-country-toolbar #extraStationSelect{width:min(150px,45vw)}.query-country-toolbar .country-chips{flex-basis:100%}.query-country-toolbar .country-chip{font-size:11px}.trend-actions{gap:5px}.search-copy-actions{justify-content:start}.source .row{padding:9px;gap:7px}}

/* Private sales calculator: each currency has an independent total. */
.sales-group{margin-top:24px;border-top:1px solid #dfe6f2;padding-top:14px}.sales-group h3{margin:0 0 12px}.sales-table-scroll{overflow-x:auto;margin-top:12px}.sales-table{width:100%;min-width:980px;table-layout:fixed}.sales-table th:first-child{width:160px}.sales-table td,.sales-table th{padding:10px 8px;vertical-align:middle}.sales-table input{width:100%;min-width:0;padding:8px;font-variant-numeric:tabular-nums}.sales-table td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.sales-computed{background:#fff7cc;font-weight:700}.sales-table tfoot{font-weight:700;background:#eef4ff}.sales-table .text-button{margin-left:6px;font-size:12px}.sales-row-error{display:block;color:#b42318;font-size:11px;margin-top:4px}.sales-invalid{background:#fff1f1}.sales-settings-actions{flex-wrap:wrap}#salesSettingsMessage{min-height:24px}.sales-group .actions select{max-width:240px}@media(max-width:700px){.sales-group{margin-top:18px}.sales-table-scroll{max-width:100%}.sales-table{min-width:760px}.sales-settings-actions button{font-size:12px;padding:8px}}

.sales-report-actions{flex-wrap:wrap;align-items:flex-end}.sales-report-actions label{display:flex;flex-direction:column;gap:6px}.sales-report-actions input{max-width:260px}#salesCopyMessage{min-height:24px}.sales-copy-fallback{display:block;width:100%;min-height:240px;white-space:pre;font-family:inherit}.sales-copy-fallback[hidden]{display:none}@media(max-width:700px){.sales-report-actions label{width:100%}.sales-report-actions input{max-width:100%;width:100%}.sales-table{min-width:940px}}

/* Watch actions stay narrow so per-keyword notes have a readable column. */
.watch-table{min-width:1120px}.watch-table th:nth-child(1){width:42px}.watch-table th:nth-child(2){width:16%}.watch-table th:nth-child(3),.watch-table th:nth-child(4){width:20%}.watch-table th:nth-child(5){width:108px}.watch-table th:nth-child(6){width:26%}.watch-table .watch-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px;flex-wrap:nowrap}.watch-table .watch-actions>button{width:100%;box-sizing:border-box}.watch-table .external-menu-items{top:0;left:100%;right:auto;margin-left:2px}.watch-table .watch-note{vertical-align:top;padding-top:18px}

.sales-day{border:1px solid var(--border,#dce4f2);border-radius:12px;margin-top:22px;padding:16px;min-width:0}.sales-day-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid #e5ebf5;padding-bottom:12px}.sales-date-choice{display:flex;align-items:center;gap:8px}.sales-date-choice input{width:auto}.sales-day-summary{color:#657590;flex:1;font-size:13px}.sales-ledger-table{min-width:1120px}.sales-ledger-table td:first-child{min-width:155px}.sales-ledger-table td:first-child input{margin-top:7px}.sales-ledger-table td{vertical-align:top}.sales-entry-actions{min-width:118px}.sales-entry-actions button{display:block;margin-bottom:6px}.sales-entry-status{display:grid;gap:4px;font-size:12px;max-width:200px;overflow-wrap:anywhere}.sales-entry-status button{font-size:12px;white-space:normal}.sales-day h4{font-size:16px;margin:18px 0 10px}.sales-default-stations{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}.sales-default-stations label{display:grid;gap:6px}.sales-default-stations button{font-size:12px}.sales-history-actions label{min-width:220px}#salesDefaults{border:1px solid #e1e8f3;border-radius:10px;padding:12px;margin-top:12px}#salesDefaults>summary{cursor:pointer;color:#225bd5}.sales-report-actions label{min-width:160px}.sales-table-scroll{max-width:100%;overflow-x:auto}#salesGroups{min-width:0}
@media(max-width:700px){.sales-day{padding:10px}.sales-day-header button{padding:7px 9px}.sales-day-summary{flex-basis:100%}.sales-report-actions label,.sales-history-actions label{min-width:0;width:100%}}

fieldset[data-apa-auth-boot]{border:0;margin:0;padding:0;min-width:0}

/* Sales controls: restrained depth, compact row actions, stable calendar accents. */
#salesPanel button{border-color:#cbd5e1;box-shadow:0 1px 2px #16243814,0 1px 0 #fff inset;transition:background-color .12s,border-color .12s,box-shadow .12s,transform .12s}
#salesPanel button:hover:not(:disabled){background:#f6f8fb;border-color:#94a3b8;box-shadow:0 2px 4px #1624381a}
#salesPanel button:active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 2px #16243812 inset}
#salesPanel button:focus-visible{outline:2px solid #7291c2;outline-offset:3px}
#salesPanel button:disabled{box-shadow:none;background:#f4f6f8;color:#8792a2;opacity:.7}
#salesPanel button[aria-busy=true]{cursor:wait;opacity:1}
#salesPanel .sales-primary-action{background:#245fd3;border-color:#2457bd;color:#fff;box-shadow:0 2px 3px #1d48a329}
#salesPanel .sales-primary-action:hover:not(:disabled){background:#2056c0;border-color:#204ca9;box-shadow:0 3px 5px #1d48a32b}
#salesPanel .sales-primary-action[aria-busy=true]{background:#e8eef8;border-color:#b7c6df;color:#34547f}
.sales-country-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px}
.sales-country-heading strong{flex:1;white-space:nowrap}#salesPanel .sales-hide-station{padding:4px 6px;font-size:12px;min-height:32px;white-space:nowrap;flex-shrink:0;color:#657590;background:transparent}.sales-station-visibility{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:12px}.sales-station-visibility label{display:inline-flex;align-items:center;gap:7px;min-height:36px;cursor:pointer}.sales-station-visibility input{width:auto;margin:0}#salesVisibility{border:1px solid var(--border,#e1e8f3);border-radius:10px;padding:12px;margin-top:12px}#salesVisibility>summary{cursor:pointer;color:#225bd5}#salesVisibility>p{margin-bottom:0}
#salesPanel .sales-add-entry{width:32px;min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:6px;font-size:23px;font-weight:400;line-height:1;color:#3d587b;background:#fff}
.sales-ledger-table tbody tr+tr td{border-top:1px solid #edf0f5}
.sales-day{border-color:hsl(var(--sales-day-hue,210) 18% 78%);border-left:3px solid hsl(var(--sales-day-hue,210) 24% 59%);border-radius:10px}
.sales-day-header{border-bottom-color:hsl(var(--sales-day-hue,210) 18% 88%)}
.sales-date-choice strong{color:#3b4b60;font-variant-numeric:tabular-nums}
.sales-action-feedback{position:fixed;z-index:90;right:24px;bottom:max(24px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;max-width:min(420px,calc(100vw - 36px));padding:13px 16px;border:1px solid #d4dce6;border-radius:8px;background:#fff;color:#334155;box-shadow:0 4px 18px #1b2c401a;font-size:13px;line-height:1.6;pointer-events:none}
.sales-action-feedback:before{content:'✓';flex:none;color:#507660;font-size:16px;font-weight:700}
.sales-action-feedback[data-tone=progress]:before{content:'…';color:#64748b}
.sales-action-feedback[data-tone=error]{border-color:#d9bcb6}
.sales-action-feedback[data-tone=error]:before{content:'!';color:#a85345}
#salesPanel[hidden] .sales-action-feedback{display:none}
.sales-just-added{animation:sales-entry-added 1.4s ease-out}
@keyframes sales-entry-added{from{background-color:#edf2f8}to{background-color:transparent}}
@media(max-width:700px){#salesPanel .sales-add-entry{width:40px;min-width:40px;height:40px}.sales-country-heading{min-height:40px}.sales-action-feedback{right:18px;left:18px;bottom:max(18px,env(safe-area-inset-bottom));max-width:none}.sales-day{border-left-width:3px}}
@media(prefers-reduced-motion:reduce){#salesPanel button{transition:none}.sales-just-added{animation:none}}

#salesCopyMessage:empty{display:none}.sales-day-header+.sales-group{margin-top:16px;padding-top:0;border-top:0}

.sales-day-header{scroll-margin-top:18px}.sales-day-header:focus{outline:none}@media(max-width:700px){.sales-day-header{scroll-margin-top:12px}}

/* Compact sales records; optional identifiers sit at the end of the same row. */
.sales-ledger-table{min-width:1370px}.sales-ledger-table td:first-child{min-width:140px}.sales-ledger-table th,.sales-ledger-table td{vertical-align:middle}
.sales-entry-label{min-width:150px;width:160px}.sales-entry-label input{min-width:130px}.sales-row-controls{display:flex;align-items:center;gap:8px;min-height:34px}.sales-row-controls>button{margin:0;flex:none}.sales-row-controls .sales-entry-status{min-width:36px;white-space:nowrap}.sales-row-controls .sales-row-error{white-space:normal}.sales-invalid .sales-row-controls{align-items:flex-start}
.nav-sort-item{position:relative;min-width:0}.nav-sort-item>.nav-item{box-sizing:border-box;width:100%}.nav-drag-handle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:28px;height:30px;padding:0;border:1px solid #d6dde6;border-radius:5px;background:#fff;color:#6d7c90;font-size:16px;line-height:1;cursor:grab;touch-action:none;user-select:none;box-shadow:0 1px 2px #172b4010}.nav-sort-group>.nav-drag-handle{top:6px;transform:none}.nav-drag-handle:hover{border-color:#9daabd;background:#f5f7fa}.nav-drag-handle:focus-visible{outline:2px solid #7194c6;outline-offset:2px}
.nav-is-editing .nav-sort-item>.nav-item,.nav-is-editing .nav-sort-item>.nav-more>summary{padding-right:38px}.nav-is-editing .nav-sort-item:not([hidden]){outline:1px dashed #dae1eb;border-radius:7px}.nav-is-editing .nav-is-dragging{outline-color:#8198b8;background:#f1f5f9;box-shadow:0 2px 7px #18314b17}.nav-is-dragging-list{user-select:none}
.nav-order-controls{padding:9px 6px 12px}.nav-order-buttons{display:flex;flex-wrap:wrap;gap:6px}.nav-order-buttons button{padding:6px 9px;font-size:12px;border-color:#d0d9e5;background:#fff;box-shadow:0 1px 2px #18314b12}.nav-order-buttons button:hover:not(:disabled){background:#f5f7fa;border-color:#9aaac0}.nav-order-buttons button:disabled{box-shadow:none;color:#8c98a8}.nav-order-buttons #navOrderSave{background:#245fd3;border-color:#2457bd;color:#fff}.nav-order-buttons #navOrderSave:disabled{background:#edf1f6;color:#8492a6;border-color:#d4dce6}.nav-order-controls p{font-size:12px;color:#66758b;line-height:1.6;margin:7px 0 0}.nav-order-controls p:empty{display:none}.nav-order-controls .nav-order-error{color:#a14d42}
@media(max-width:700px){.sidebar nav.nav-is-editing{display:grid;grid-template-columns:1fr;gap:7px}.nav-is-editing .nav-more .nav-sort-item{display:block}.nav-is-editing .nav-more .nav-item{display:block;margin:0;width:100%}.nav-is-editing .nav-drag-handle{height:36px;width:32px;right:3px}.nav-is-editing .nav-sort-group>.nav-drag-handle{top:0}.nav-is-editing .nav-sort-item>.nav-item,.nav-is-editing .nav-sort-item>.nav-more>summary{min-height:38px;padding-right:44px}.nav-order-controls{padding:10px 0}.sidebar.nav-collapsed .nav-order-controls{display:none}.nav-is-editing .nav-more[open]{display:block}.nav-is-editing .nav-more[open] summary{margin-bottom:3px}}

/* Shared sorting affordance: visible only while arranging, with restrained contrast. */
.is-pointer-sorting{user-select:none}.is-pointer-dragging{background:#edf2f7!important;outline:1px solid #8ea2ba!important;box-shadow:0 3px 10px #20314a14}
.sort-message{font-size:13px;color:#64748b}.sort-message:empty{display:none}.sort-message.sort-error{color:#9c4e46}
.watch-order-editor{border:1px solid #dce3ec;border-radius:10px;background:#fbfcfe;padding:14px;margin:12px 0 18px}.watch-order-editor ol{list-style:none;padding:0;margin:0 0 12px;max-height:480px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}.watch-sort-row{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:9px 12px;border-bottom:1px solid #e6ebf1;background:#fff;min-height:40px;box-sizing:border-box}.watch-sort-row:first-child{border-top:1px solid #e6ebf1}.watch-sort-row>span{font-size:14px;overflow-wrap:anywhere}.sort-handle{flex:none;touch-action:none;cursor:grab;width:32px;height:32px;padding:0;color:#6d7c90;background:#fff;border:1px solid #d1dbe7;border-radius:5px;box-shadow:0 1px 2px #21344a0b}.watch-order-editor .actions label{display:flex;align-items:center;gap:6px;font-size:13px}.watch-order-editor input{width:76px}
/* Prompt library: quiet surfaces, consistent spacing, typography-led cards. */
.prompt-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start;margin-top:16px}.prompt-card-grid>.empty{grid-column:1/-1}.prompt-card-grid>.prompt-card{margin:0;min-width:0;min-height:288px;display:flex;flex-direction:column;border:1px solid #dce3eb;border-top:3px solid #b3c4d5;border-radius:12px;background:#fff;padding:20px;box-shadow:0 2px 7px #27364b06;transition:border-color .15s,box-shadow .15s}.prompt-card-grid>.prompt-card[data-tone="1"]{border-top-color:#bdc9c3}.prompt-card-grid>.prompt-card[data-tone="2"]{border-top-color:#c9c1b7}.prompt-card-grid>.prompt-card:hover{border-color:#b8c7d7;box-shadow:0 5px 16px #27364b0b}.prompt-card-kind{font-size:11px;letter-spacing:.04em;color:#7a8798;margin-bottom:12px}.prompt-card-grid>.prompt-card>details:first-of-type>summary{font-size:18px;font-weight:650;line-height:1.55;list-style:none;color:#25354c;min-height:28px}.prompt-card-grid>.prompt-card>details:first-of-type>summary::-webkit-details-marker{display:none}.prompt-card-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:14px;line-height:1.8;color:#627086;margin:14px 0 12px;min-height:75px;white-space:normal}.prompt-card-grid .prompt-card>details[open]+.prompt-card-preview{display:none}.prompt-card-grid .prompt-card>.muted{font-size:11px;line-height:1.7;margin:4px 0;color:#7b8797}.prompt-card-grid .prompt-card>.actions{gap:6px;margin-top:15px}.prompt-card-grid .prompt-card button{font-size:12px;padding:7px 10px;border-color:#d3dce7;background:#fff;color:#46566f;box-shadow:0 1px 2px #21344a0a}.prompt-card-grid .prompt-card button:hover:not(:disabled){background:#f4f7fa;border-color:#a8b8ca}.prompt-card-grid .prompt-card button.prompt-card-copy{background:#edf3fb;color:#315f99;border-color:#c7d7eb}.prompt-card-order{margin-top:14px;border-top:1px solid #edf0f4;padding-top:10px}.prompt-card-order>summary{font-size:12px;color:#7a8798;font-weight:400}.prompt-card-order .actions{flex-wrap:wrap;gap:6px}.prompt-card-order input{width:60px}.prompt-editor-panel{margin:18px 0 24px;border:1px solid #dce3eb;border-radius:9px;padding:12px 16px;background:#fbfcfe}.prompt-editor-panel>summary{font-size:13px;color:#3f5c7b;font-weight:600;cursor:pointer}.prompt-editor-panel[open]{background:#fff}.prompt-editor-panel h3{font-size:15px}.prompt-editor-panel .prompt-editor{margin-bottom:4px}
@media(max-width:1280px){.prompt-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.prompt-card-grid{grid-template-columns:1fr;gap:14px}.prompt-card-grid>.prompt-card{padding:18px;min-height:260px}.watch-order-editor{padding:10px}.watch-sort-row{min-height:46px}.watch-order-editor ol{max-height:400px}}
@media(prefers-reduced-motion:reduce){.prompt-card-grid>.prompt-card{transition:none}}

.agent-copy-fallback{box-sizing:border-box;width:100%;min-height:150px;margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:8px;resize:vertical;font:inherit;font-size:13px;line-height:1.6}

.setup-page .panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 14px rgba(23,32,51,.035)}.setup-page h1{font-size:25px;margin:0 0 14px;letter-spacing:-.5px}.setup-page h2{font-size:18px;margin:28px 0 14px}.setup-page p,.setup-page li{line-height:1.8}.setup-page details{margin:14px 0}.setup-page summary{color:var(--muted);cursor:pointer}.setup-page #copyAgentSetup{color:#fff;background:#255bd6;border-color:#255bd6;box-shadow:0 2px 4px rgba(24,60,135,.16)}.setup-page #agentConnectMessage:empty{display:none}.setup-page #agentClient{max-width:360px;display:block;width:100%;margin-top:6px}.setup-page .actions{row-gap:9px}.setup-page li+li{margin-top:6px}@media(max-width:520px){.setup-page{margin:12px auto;padding:12px}.setup-page .panel{padding:20px}.setup-page h1{font-size:22px}}

.external-link{display:inline-flex;align-items:center;gap:5px}.external-platform-icon{width:19px;height:19px;flex:none}.trend-links{flex-wrap:wrap}.external-menu-items .external-link{display:flex}.watch-trend-dialog-header{flex-wrap:wrap}@media(max-width:600px){.external-link{min-height:36px}.external-menu-items .external-link{min-height:44px}}

.brand-library-country{border:1px solid var(--line);border-radius:9px;margin:16px 0;padding:12px}.brand-library-entry{border-top:1px solid var(--line);padding:14px 0}.brand-library-task{padding:9px;display:flex;gap:8px;flex-wrap:wrap}.brand-library-editor{display:grid;gap:8px;max-width:700px}.brand-library-editor label{display:grid;gap:4px}.brand-library-detail{margin-top:10px}.brand-library-detail>.actions{margin:8px 0}

.brand-library-entry{overflow-wrap:anywhere}.brand-library-entry>small{display:block;margin:5px 0}@media(max-width:700px){.watch-table .external-menu-items{left:auto;right:0;top:calc(100% + 4px);max-height:60vh;overflow:auto}.external-link{min-height:44px}#brandLibraryPanel .actions input{max-width:100%;box-sizing:border-box}}

.brand-library-filterbar {display:grid;grid-template-columns:minmax(220px,2fr) minmax(100px,1fr) minmax(120px,1fr) auto;gap:8px;margin:12px 0;align-items:center}
.brand-library-tools {margin:10px 0}
.brand-library-tools details {position:relative}
.brand-library-tools details[open]>.brand-library-filterbar {padding:10px;border:1px solid var(--line);border-radius:8px}
#brandLibraryCountries label {display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#brandLibraryCountries input {width:auto;margin:0}
@media(max-width:700px) {.brand-library-filterbar {grid-template-columns:minmax(0,1fr) minmax(0,1fr)} #brandLibraryQuery,#brandLibraryAddName {grid-column:1 / -1}.brand-library-filterbar input,.brand-library-filterbar select {min-width:0}.brand-library-tools {gap:7px}}

.brand-access-list{display:grid;gap:8px;max-height:240px;overflow:auto;margin:10px 0}.brand-access-option{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}.brand-access-list .actions{overflow-wrap:anywhere}#mcpBrandAccessRows details{padding:12px 0}#mcpBrandAccessRows input[type="number"]{max-width:180px}

.external-link--compact span{display:none}.external-link--compact{min-width:32px;justify-content:center}.brand-library-detail table{width:100%;border-collapse:collapse}.brand-library-detail td,.brand-library-detail th{padding:8px;text-align:left;border-bottom:1px solid var(--border,#e5e7eb)}.brand-library-detail{overflow-x:auto}.brand-library-detail td:first-child{font-weight:600}.brand-library-detail .ui-icon-action{margin:2px}

/* Keyword workspace: weekly summaries, one open group and viewport detail pages. */
.brand-rank-source{display:flex;align-items:center;gap:8px;white-space:nowrap}.brand-rank-source select{width:auto;max-width:210px}.brand-rank-screen{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(90px,.6fr) minmax(180px,1.6fr) minmax(180px,1.6fr);gap:10px;padding:12px;border:1px solid var(--line,#e2e8f0);border-radius:8px;margin:10px 0;background:var(--background,#f8fafc)}.brand-rank-screen>p{grid-column:1/-1;margin:0;font-size:12px}.brand-rank-ranges{grid-template-columns:repeat(2,minmax(140px,1fr))}#brandLibraryRankFilters[open]{flex-basis:100%;order:2}#brandLibraryRankFilters[open]>.brand-rank-ranges{grid-template-columns:repeat(4,minmax(100px,1fr));max-width:960px}.brand-rank-help{grid-column:1/-1;max-width:620px;line-height:1.65;color:var(--muted,#64748b);font-size:11px}.brand-group-rank[data-kind=day] .brand-rank-value:before{content:'日 '}
@media(max-width:700px){.brand-rank-screen{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.brand-rank-screen select{width:100%}.brand-rank-source{font-size:11px}#brandLibraryRankFilters[open]>.brand-rank-ranges{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.brand-week-label{font-weight:650;color:var(--text,#1e293b);padding:5px 0;white-space:nowrap}
.brand-week-updates{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0}.brand-week-updates[hidden]{display:none}
.brand-week-status{display:inline-flex;gap:7px;align-items:center;padding:5px 9px;font-size:12px;border:1px solid var(--line,#e2e8f0);border-radius:6px;background:var(--background,#f8fafc)}
.brand-week-status[data-state=ready] strong{color:var(--positive,#15803d)}.brand-week-status[data-state=building],.brand-week-status[data-state=scheduled]{border-color:#d4a449}.brand-week-status[data-state=failed]{border-color:#c87a7a}.brand-week-notice{font-size:12px;margin:6px 0}
.brand-group-columns,.brand-group-row{display:grid;grid-template-columns:minmax(180px,1fr) 64px 118px 160px;align-items:center;gap:14px}
.brand-group-columns{padding:8px 12px;color:var(--muted,#64748b);font-size:12px;border-bottom:1px solid var(--line,#e2e8f0)}
#brandLibraryRows>.brand-library-country{overflow:visible;padding:0;margin:12px 0;border-radius:10px}
.brand-library-entry{border-top:0;border-bottom:1px solid var(--line,#e2e8f0);padding:0 12px!important;min-width:0}.brand-library-entry:last-child{border-bottom:0}
.brand-group-row{padding:12px 0;cursor:pointer;list-style:none;font-size:14px;min-width:0}.brand-group-row::-webkit-details-marker{display:none}
.brand-group-row:hover{background:var(--background,#f8fafc)}.brand-group-row:focus-visible,.brand-group-secondary>summary:focus-visible,.brand-keyword-more>summary:focus-visible{outline:2px solid var(--accent,#c2410c);outline-offset:3px;border-radius:4px}
.brand-group-brand{display:flex;align-items:center;gap:9px;min-width:0}.brand-group-brand:before{content:'›';width:22px;height:22px;display:grid;place-items:center;border:1px solid var(--line,#e2e8f0);border-radius:6px;color:var(--muted,#64748b);font-size:19px;flex:none;transition:transform .15s}.brand-library-entry[open]>.brand-group-row .brand-group-brand:before{transform:rotate(90deg);color:var(--accent,#c2410c)}
.brand-group-brand input{width:15px;height:15px;flex:none;margin:0}.brand-group-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650;color:var(--text,#1e293b)}a.brand-group-name:hover{color:var(--accent,#c2410c);text-decoration:underline}.brand-external-mark{color:var(--muted,#64748b);font-size:11px}
.brand-group-rank{font-variant-numeric:tabular-nums;display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px;justify-content:space-between;min-width:0}
.brand-rank-value{font-size:17px;line-height:1.18;font-weight:800;overflow-wrap:anywhere}
.brand-group-row .brand-rank-value{font-size:21px}
.brand-rank-change{display:inline-flex;align-items:baseline;gap:4px;font-size:14px;font-weight:650;color:var(--muted);max-width:100%;flex-wrap:wrap}
.brand-rank-arrow{font-size:19px;line-height:1;font-weight:800}
.brand-group-rank[data-movement=up] :is(.brand-rank-value,.brand-rank-change){color:var(--green,#157342)}
.brand-group-rank[data-movement=down] :is(.brand-rank-value,.brand-rank-change){color:var(--red,#b42424)}
.brand-group-count{font-variant-numeric:tabular-nums;color:var(--muted,#64748b)}
.brand-library-entry[open]{background:var(--panel,#fff)}.brand-library-entry>p{font-size:12px;color:var(--muted,#64748b);margin:8px 0}.brand-library-entry>.brand-library-detail{padding:0 0 12px;margin-top:0;max-width:100%;overflow:auto}
.keyword-trend-dialog{width:min(1080px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:0;border:1px solid var(--line,#dce3eb);border-radius:14px;color:var(--ink,#172033);background:var(--paper,#fff);box-shadow:0 20px 70px #0f172a44}
.keyword-trend-dialog::backdrop{background:#0f172a66}
.keyword-trend-dialog-header{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:16px 20px;background:var(--paper,#fff);border-bottom:1px solid var(--line,#dce3eb)}
.keyword-trend-dialog-header h2{margin:0;align-self:center}
.keyword-trend-dialog-title{border:0;padding:0;background:transparent;color:inherit;text-align:left;box-shadow:none;max-width:100%;overflow-wrap:anywhere;font-size:18px;font-weight:750}
.keyword-trend-dialog-header .trend-links,.keyword-trend-dialog-message{grid-column:1/-1}
.keyword-trend-dialog-message{margin:0;color:var(--muted);font-size:12px}
.keyword-trend-dialog-message:empty,.keyword-trend-dialog-header .trend-links:empty{display:none}
.keyword-trend-dialog-watch[aria-pressed=true]{color:var(--green);border-color:currentColor}
.keyword-trend-dialog-content{padding:16px 20px;min-width:0}
.keyword-trend-dialog-content .period-chart{height:270px}
@media(max-width:600px){
  .keyword-trend-dialog{width:calc(100vw - 20px)}
  .keyword-trend-dialog-header,.keyword-trend-dialog-content{padding:12px}
  .keyword-trend-dialog-title{font-size:15px}
  .keyword-trend-dialog-header .actions{gap:4px}
  .keyword-trend-dialog-header .trend-links .external-link{font-size:11px;padding:4px 6px}
}

.station-tag{font-size:10px;padding:2px 5px;border:1px solid var(--line,#e2e8f0);border-radius:4px;flex:none;font-weight:600;color:var(--muted,#64748b)}
.brand-group-row .ui-state{font-size:11px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;width:fit-content;max-width:100%;border-radius:5px;padding:4px 6px;border:1px solid var(--line,#e2e8f0);line-height:1.3}
.brand-group-row .ui-state:before{content:'◌';font-weight:700}.brand-group-row .ui-state[data-state=eligible]{color:#16704d;background:#eaf6ef;border-color:#b8ddc9}.brand-group-row .ui-state[data-state=eligible]:before{content:'✓'}.brand-group-row .ui-state[data-state=blocked]{color:#8e4253;background:#fcf0f3;border-color:#eccbd2}.brand-group-row .ui-state[data-state=blocked]:before{content:'−'}.brand-group-row .ui-state[data-state=stale]{color:#8b600b;background:#fff6df;border-color:#ead59e}.brand-group-row .ui-state[data-state=stale]:before{content:'↻'}.brand-group-row .ui-state[data-state=running],.brand-group-row .ui-state[data-state=queued]{color:#3566a3;background:#edf4fc;border-color:#c7d8ef}.brand-group-row .ui-state[data-state=removed]{opacity:.65}
.brand-group-secondary{padding:2px 0 10px;font-size:12px}.brand-group-secondary>summary{width:fit-content;color:var(--muted,#64748b);cursor:pointer;padding:5px 0}.brand-group-secondary>.actions{padding:8px 0}
.brand-keyword-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0;font-size:12px;border-top:1px solid var(--line,#e2e8f0)}.brand-keyword-toolbar button{font-size:12px;padding:6px 10px}
.brand-keyword-table{width:100%;min-width:640px;border-collapse:collapse;table-layout:fixed;font-size:13px}.brand-keyword-table th:first-child{width:34%}.brand-keyword-table th:nth-child(2){width:20%}.brand-keyword-table th:last-child{width:144px}.brand-keyword-table th{font-size:11px;font-weight:500;color:var(--muted,#64748b);background:var(--background,#f8fafc)}.brand-keyword-table td,.brand-keyword-table th{padding:9px 8px!important;vertical-align:middle}.brand-keyword-table td:first-child{font-weight:500}.brand-keyword-table td.brand-group-rank{display:table-cell}.brand-keyword-table td.brand-group-rank small{display:flex;margin-top:3px}.brand-keyword-table [hidden]{display:none!important}
.brand-keyword-cell{display:flex;align-items:center;gap:10px;min-width:0}.brand-keyword-text{display:flex;flex-direction:column;gap:4px;min-width:0}.brand-keyword-original{overflow-wrap:anywhere;font-weight:600}.brand-keyword-product{font-size:11px;color:var(--muted,#64748b);width:fit-content}.brand-keyword-translation{font-size:12px;color:var(--muted,#64748b);overflow-wrap:anywhere}
.brand-keyword-thumbnail{width:48px;height:48px;flex:none;border:1px solid var(--line,#e2e8f0);border-radius:6px;display:grid;place-items:center;overflow:hidden;background:var(--background,#f8fafc);position:relative}.brand-keyword-thumbnail img{position:absolute;inset:0;width:48px;height:48px;object-fit:contain;opacity:0}.brand-keyword-thumbnail img[data-loaded=true]{opacity:1}.brand-thumbnail-placeholder{font-size:10px;color:var(--muted,#64748b);text-align:center}
.brand-keyword-actions{display:flex;align-items:center;gap:2px;flex-wrap:wrap}.brand-keyword-more{font-size:11px}.brand-keyword-more>summary{cursor:pointer;padding:5px;color:var(--muted,#64748b)}.brand-keyword-more[open]{flex-basis:100%}.brand-keyword-more>.actions{padding-top:6px}.brand-keyword-progress{font-size:12px;margin:10px 0 0}.brand-keyword-sentinel{height:2px}.brand-library-editor{padding:10px 0 14px}
@media(max-width:800px){.brand-group-columns,.brand-group-row{grid-template-columns:minmax(150px,1fr) 44px 104px 130px;gap:8px}.brand-group-row{font-size:13px}.brand-group-name{max-width:100%}.brand-group-row .ui-state{font-size:10px}}
@media(max-width:600px){.brand-group-columns{display:none}.brand-group-row{grid-template-columns:minmax(0,1fr) 110px;grid-template-areas:'brand rank' 'status count';gap:7px 10px;padding:12px 0}.brand-group-brand{grid-area:brand;gap:6px}.brand-group-count{grid-area:count;text-align:right;font-size:11px}.brand-group-count:after{content:' 个关联词'}.brand-group-row>.ui-state{grid-area:status;margin-left:28px}.brand-group-row>.brand-group-rank{grid-area:rank;font-size:13px;flex-direction:column;align-items:flex-end;gap:3px}.brand-group-row>.brand-group-rank .brand-rank-value:before{content:'周 ';color:var(--muted,#64748b);font-size:10px;font-weight:400}.brand-keyword-toolbar{gap:8px}.brand-week-status{font-size:11px}.brand-keyword-table{min-width:610px}.brand-library-entry{padding:0 9px!important}}
@media(max-width:600px){.brand-group-row>.brand-group-rank[data-kind=day] .brand-rank-value:before{content:'日 '}}
@media(prefers-reduced-motion:reduce){.brand-group-brand:before{transition:none}}

.brand-research{padding:12px 0 18px}.brand-research-nav{display:flex;gap:8px;border-bottom:1px solid var(--border,#e2e8f0);padding-bottom:8px}.brand-research-nav button[aria-pressed=true]{background:var(--accent-soft,#fff7ed);border-color:var(--accent,#c2410c)}.brand-site-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px 0}.brand-site-row>a{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-site-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border:1px solid var(--border,#e2e8f0);border-radius:8px}.brand-site-editor label{display:grid;gap:6px}.brand-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.brand-product-card{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid var(--border,#e2e8f0);border-radius:8px;min-width:0}.brand-product-card img{width:100%;height:140px;object-fit:contain}.brand-product-card a{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.brand-product-card video{max-width:100%;max-height:280px}.brand-product-price{color:var(--accent,#c2410c);font-variant-numeric:tabular-nums}#trademarkStations label{display:flex;gap:6px;align-items:center}
@media(max-width:600px){.brand-site-editor{grid-template-columns:1fr}}



.sales-excel-actions{margin-top:16px}.sales-excel-actions label{min-width:150px}.sales-excel-actions .muted{font-size:12px}

.nav-module-hidden{display:none!important}
.nav-visibility-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;padding:12px 0}
.nav-visibility-options label{display:flex;align-items:center;gap:8px}
.nav-visibility-options input{width:auto;flex:0 0 auto}

.brand-access-ranges{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin:10px 0 14px}
.brand-access-range{display:flex;gap:8px;border:1px solid var(--line);border-radius:8px;min-width:0;padding:6px 8px 8px}
.brand-access-range label{display:grid;gap:4px;min-width:0;flex:1;font-size:12px}
.brand-access-range input{width:100%;min-width:0}

.brand-group-brand:before{order:1}
.brand-group-brand>input,.brand-group-name,.brand-group-brand>.station-tag{order:2}
.brand-group-cover{width:68px;height:68px;flex:none;position:relative;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:var(--bg,#f4f6f8);overflow:hidden}
.brand-group-cover[data-state=no_website]{background:linear-gradient(150deg,#f7f7f5,#eceff3);border-color:#e3e7ec}
.brand-group-cover[data-state=no_image]{background:#fff7eb;border-color:#eddac3}
.brand-group-cover .brand-thumbnail-placeholder{width:calc(100% - 6px);line-height:1.35;font-size:10px;white-space:pre-line;overflow-wrap:anywhere}
.brand-group-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;opacity:0}
.brand-group-cover img[data-loaded=true]{opacity:1}
@media(max-width:600px){.brand-group-cover{width:56px;height:56px}.brand-group-cover .brand-thumbnail-placeholder{font-size:9px}.brand-group-brand:before{width:17px;height:19px}}

/* /watch.css */
.watch-expanded{padding:16px;background:#f8faff;border:1px solid #dce5f6;border-radius:10px;min-width:0}.watch-detail-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:8px 0}.watch-detail-controls label{display:flex;flex-direction:column;gap:5px;min-width:0;max-width:100%;font-size:13px}.watch-detail-controls select{max-width:320px;min-width:0}.watch-detail-notice{font-size:13px;color:#475569;line-height:1.7;overflow-wrap:anywhere}.watch-related-word{border:1px solid #dce5f6;background:white;border-radius:8px;padding:14px;margin:12px 0;overflow-wrap:anywhere}.watch-related-title{text-align:left;font-weight:700;white-space:normal;overflow-wrap:anywhere;max-width:100%}.watch-detail-metrics,.watch-detail-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0}.watch-detail-metrics small,.watch-detail-charts small{display:block;font-size:12px;color:#64748b}.watch-delta{display:block;font-size:13px;margin-top:6px}.watch-delta.rise{color:#15803d}.watch-delta.fall{color:#b91c1c}.watch-delta.neutral{color:#64748b}.watch-detail-charts svg{display:block;width:100%;max-width:400px;height:auto;fill:#2563eb}.watch-created-at{display:block;font-size:12px;color:#64748b;white-space:normal}.watch-expand-toggle{white-space:nowrap}.desktop-watch-range{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:12px 0}.desktop-watch-range label{font-size:13px;display:flex;flex-direction:column}.desktop-watch-range input{width:90px}.watch-detail-row[hidden]{display:none!important}@media(max-width:600px){.watch-detail-metrics,.watch-detail-charts{grid-template-columns:minmax(0,1fr)}.watch-detail-controls select{max-width:100%;width:100%}.watch-related-word{padding:10px}.watch-expanded{padding:8px}.watch-detail-controls label{width:100%}}

.watch-floating-collapse{position:fixed;bottom:20px;z-index:60;box-shadow:0 3px 16px #1e293b30;background:#fff!important;color:#1d4ed8!important;border:1px solid #93b4ef!important;border-radius:8px;padding:10px 14px}.watch-floating-collapse[hidden]{display:none!important}.watch-bottom-collapse{margin:8px 0}

@media(max-width:600px){.watch-detail-row .watch-expanded{width:calc(100vw - 80px);box-sizing:border-box}.watch-detail-row .watch-detail-notice{white-space:normal!important}.watch-detail-row td{padding:8px}}

.watch-expanded{text-align:left;font-weight:400}.watch-expanded button,.watch-expanded select{font:inherit;color:#1d4ed8;border:1px solid #cbd9ed;border-radius:7px;background:#fff;padding:8px 10px}.watch-expanded .watch-related-title{font-weight:700}.watch-expanded strong{color:#172033}.watch-expanded small{line-height:1.6}
.watch-spark svg{display:block;width:100%;max-width:280px;height:auto;color:#2563eb}.day-spark svg{color:#059669}.watch-detail-charts svg{color:#2563eb}.watch-chart-period{fill:#64748b;font-size:10px;pointer-events:none}.watch-chart-point{cursor:pointer;outline:none}.watch-chart-point:focus-visible circle:last-child,.watch-chart-point[aria-pressed=true] circle:last-child{stroke:#334155;stroke-width:2}.watch-spark-chart{position:relative;max-width:400px;min-width:0}.watch-spark-chart svg{overflow:visible}.watch-point-readout{position:absolute;z-index:4;box-sizing:border-box;max-width:100%;width:max-content;padding:7px 9px;border:1px solid #dce3eb;border-radius:6px;background:#fff;color:#334155;box-shadow:0 3px 10px #17203314;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;pointer-events:none}.watch-point-readout[hidden]{display:none!important}.watch-point-readout.is-pinned{border-color:#a8bad2}.watch-spark-empty{fill:#94a3b8;color:#94a3b8;font-size:12px;font-weight:400}.watch-spark .watch-spark-chart{max-width:280px}.watch-spark .spark-button{font-size:12px;padding:4px 0;width:auto}.watch-spark strong{font-size:12px}

.watch-note{min-width:180px;max-width:100%;text-align:left;overflow-wrap:anywhere;white-space:normal}.watch-note-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.watch-note-collapsed{max-height:6.4em;overflow:hidden}.watch-note-tools{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.watch-note button{font-size:12px;padding:6px 8px}.watch-note-message{display:block;white-space:normal;line-height:1.6;color:#64748b}.watch-note-editor textarea{display:block;box-sizing:border-box;width:100%;min-height:120px;resize:vertical;white-space:pre-wrap;margin:6px 0}.watch-note-editor button{margin:4px 6px 0 0}.watch-note [hidden]{display:none!important}
.watch-trend-dialog{width:min(1000px,calc(100vw - 40px));max-width:calc(100vw - 24px);max-height:90vh;overflow:auto;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px;padding:20px;color:#172033;background:#fff}.watch-trend-dialog::backdrop{background:#0f172a66}.watch-trend-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-20px;background:#fff;z-index:3;padding:10px 0}.watch-trend-dialog h2{font-size:18px;overflow-wrap:anywhere;min-width:0}.watch-trend-dialog-header button{flex-shrink:0}.watch-trend-content{min-width:0}.watch-trend-dialog .period-chart{position:relative;height:270px}.watch-trend-dialog .period-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.watch-trend-dialog .period-controls label{display:flex;flex-direction:column;min-width:0}.watch-trend-dialog .period-metrics{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.watch-trend-dialog .period-metrics strong,.watch-trend-dialog .period-metrics small{display:block}.watch-trend-dialog .table-scroll,.watch-trend-dialog .period-table{max-width:100%;overflow:auto}
@media(max-width:600px){.watch-trend-dialog{padding:12px;width:calc(100vw - 24px)}.watch-trend-dialog-header{top:-12px}.watch-note{min-width:180px}}

#watchList .watch-actions,#watchSummary .watch-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px;flex-wrap:nowrap;min-width:95px;max-width:112px}#watchList td:last-child,#watchSummary td:last-child{min-width:240px;vertical-align:top}#watchList .watch-note,#watchSummary .watch-note{padding:14px;white-space:normal}.watch-hover-menu{position:relative;font-size:12px}.watch-hover-menu summary{list-style:none;cursor:pointer;border:1px solid #d7dee8;border-radius:7px;padding:7px 9px;background:#fff;color:#385071;white-space:nowrap}.watch-menu-items{position:absolute;z-index:15;top:0;left:100%;min-width:155px;padding:8px;background:#fff;border:1px solid #d7dee8;border-radius:8px;box-shadow:0 8px 24px #17203322}.watch-menu-items button{display:block;width:100%;margin:4px 0;text-align:left}.watch-hover-menu:not([open])>.watch-menu-items{display:none}

.watch-note-link{color:#315ca8;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;overflow-wrap:anywhere;cursor:pointer}.watch-note-link:hover{color:#20477f}.watch-note-link:focus-visible{outline:2px solid #90a7d0;outline-offset:2px;border-radius:2px}

.watch-chart-missing:focus-visible circle:last-child,.watch-chart-missing[aria-pressed=true] circle:last-child{stroke:#64748b;stroke-opacity:.65;stroke-width:1}.watch-detail-basis{font-size:12px;color:#64748b;margin:8px 0}.watch-detail-basis summary{cursor:pointer;width:max-content}.watch-detail-basis-text{line-height:1.7;overflow-wrap:anywhere}.watch-detail-notice:empty,.watch-note-text:empty{display:none}

/* Countries share the visible-row and rank-query budget. */
.watch-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.watch-heading h2{margin:0}
.watch-country-filter{display:flex;align-items:center;gap:14px;margin:22px 0 18px;flex-wrap:wrap}
.watch-field-label{color:#617087;font-size:13px;white-space:nowrap}
.watch-country-choices{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.watch-country-choice{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #dee4ec;border-radius:7px;background:#fff;cursor:pointer;font-size:13px;color:#45536b;transition:border-color .15s,background .15s}
.watch-country-choice:has(input:checked){background:#f3f6fc;border-color:#9caccc;color:#213b64}
.watch-country-choice input{width:14px;min-height:14px;margin:0;accent-color:#436394}
.watch-country-count{font-variant-numeric:tabular-nums;color:#718198;font-size:12px}
.watch-add-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.watch-add-form>input{width:min(360px,100%);flex:1 1 240px}
.watch-add-picker{position:relative;min-width:145px;max-width:420px}
.watch-add-picker>summary{list-style:none;cursor:pointer;border:1px solid #d4dce8;border-radius:7px;padding:10px 13px;background:#fff;box-shadow:0 1px 2px #172c4810;font-size:13px}
.watch-add-picker>summary::-webkit-details-marker{display:none}
.watch-add-picker>summary:after{content:'⌄';margin-left:12px;color:#7c889c}
.watch-add-picker[open]>div{position:absolute;z-index:12;top:calc(100% + 6px);left:0;min-width:260px;padding:12px;background:#fff;border:1px solid #dfe5ee;border-radius:9px;box-shadow:0 8px 24px #172c4818}
#watchAddSubmit{background:#2f59a6;color:#fff;border-color:#2f59a6;box-shadow:0 2px 4px #284d8f28}
.watch-toolbar label{display:flex;align-items:center;gap:6px;flex-direction:row}
.watch-toolbar label input{width:64px}
#watchCopyFormat{width:auto;min-width:105px}
.watch-country-groups{display:flex;flex-direction:column;gap:24px;margin-top:18px}
.watch-country{--country-color:#8295af;border:1px solid #dfe5ed;border-left:3px solid var(--country-color);border-radius:9px;background:#fff;min-width:0}
.watch-country[data-station="UK"]{--country-color:#8499bd}
.watch-country[data-station="DE"]{--country-color:#89a393}
.watch-country[data-station="FR"]{--country-color:#a592b2}
.watch-country[data-station="IT"]{--country-color:#aaa17e}
.watch-country[data-station="ES"]{--country-color:#bd9989}
.watch-country[data-station="US"]{--country-color:#829fa7}
.watch-country-header{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#fff;border-radius:8px 8px 0 0;border-bottom:1px solid #e9edf3}
.watch-country-header>div:first-child{display:flex;gap:9px;align-items:baseline;flex-wrap:wrap}
.watch-country-header h3{margin:0;font-size:16px;letter-spacing:.01em}
.watch-country-total{color:#718095;font-size:12px}
.watch-country-dates{flex-basis:100%;color:#8290a3;font-size:11px;font-variant-numeric:tabular-nums}
.watch-country-buttons{display:flex;align-items:center;gap:8px}
.watch-country-buttons button{white-space:nowrap}
.watch-country-handle{cursor:grab;touch-action:none;padding:7px 11px;font-size:16px;color:#62738d}
.watch-country-body{padding:0 16px 14px}
.watch-group-tools{justify-content:flex-end;margin:10px 0}
.watch-group-tools button{font-size:12px;padding:6px 10px}
.watch-country-pagination{justify-content:flex-end;margin-top:14px;font-size:12px}
.watch-country-tag{display:inline-block;margin:6px 0 0 7px;padding:1px 5px;border:1px solid #e0e5ed;border-radius:4px;color:#7b899d;font-size:10px;font-weight:400;vertical-align:middle}
.watch-country .watch-table{min-width:1080px}
.watch-country [role=status]:empty,#watchMessage:empty,#watchCountryOrderMessage:empty{display:none}
@media(max-width:700px){
 .watch-heading{gap:10px}.watch-heading .actions{margin:0}
 .watch-country-filter{gap:8px;margin:18px 0 14px}
 .watch-country-choice{padding:7px 9px;font-size:12px}
 .watch-add-form>input{flex-basis:100%;width:100%}
 .watch-add-picker{min-width:125px;flex:1}
 .watch-add-picker[open]>div{min-width:230px;max-width:85vw}
 .watch-toolbar{gap:8px}
 .watch-country-header{padding:13px 12px}
 .watch-country-header h3{font-size:15px}
 .watch-country-body{padding:0 10px 12px}
 .watch-country .watch-table{display:block;min-width:0;width:100%}
 .watch-country .watch-table thead{display:none}
 .watch-country .watch-table tbody{display:block}
 .watch-country .watch-table tr{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px 8px;padding:16px 0;border-bottom:1px solid #e7ecf2}
 .watch-country .watch-table td{display:block;border:0;padding:0;min-width:0}
 .watch-country .watch-table td:nth-child(1){grid-column:1;grid-row:1}
 .watch-country .watch-table td:nth-child(2){grid-column:2;grid-row:1}
 .watch-country .watch-table td:nth-child(n+3){grid-column:2}
 .watch-country .watch-table td.week-spark:before{content:'周';display:block;font-size:11px;color:#8290a3;margin-bottom:3px}
 .watch-country .watch-table td.day-spark:before{content:'日';display:block;font-size:11px;color:#8290a3;margin-bottom:3px}
 .watch-country .watch-table .watch-detail-row{display:block}
 .watch-country .watch-table .watch-detail-row td{width:100%}
 .watch-country .watch-table-wrap{overflow:visible}
 .watch-country .watch-actions{gap:7px}
}

.watch-country .watch-table .watch-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:160px;align-items:start}
.watch-country .watch-table .watch-actions>button{width:auto;padding:6px 8px;font-size:11px}
.watch-country .watch-table .watch-actions>.watch-expand-toggle,.watch-country .watch-table .watch-actions>.external-menu{grid-column:1/-1}
.watch-country .watch-table .external-menu summary{padding:6px 8px;font-size:11px;text-align:center}
.watch-country .watch-table th:nth-child(5){width:180px}
.watch-country .watch-table th:nth-child(2){width:16%}
.watch-country .watch-table th:nth-child(3),.watch-country .watch-table th:nth-child(4){width:19%}
.watch-country .watch-table th:nth-child(6){width:24%}
.watch-country .watch-table-wrap{padding-bottom:12px}
@media(max-width:700px){
 .watch-country .watch-table .watch-actions{display:flex;flex-flow:row wrap;min-width:0;gap:6px}
 .watch-country .watch-table .watch-actions>button{width:auto;flex:none}
 .watch-country .watch-table .external-menu-items{left:auto;right:0;top:100%;margin-left:0}
 .watch-country .watch-table .watch-note{padding-top:0}
}

#watchCopyFormat,.watch-search-controls select{appearance:none;-webkit-appearance:none;padding:0 28px 0 10px;line-height:normal;height:36px;min-height:36px;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 11px) 50%;background-size:4px 4px;background-repeat:no-repeat}
.watch-search-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0 8px}
.watch-search-input{position:relative;flex:1 1 280px;min-width:0;max-width:600px}
.watch-search-input input{box-sizing:border-box;width:100%;min-width:0;padding-right:38px}
.watch-search-input input::-webkit-search-cancel-button{display:none}
#watchSearchClear{position:absolute;right:3px;top:3px;bottom:3px;min-width:30px;padding:0 6px;border:0;background:transparent;color:#64748b;font-size:21px}
.watch-search-controls select{width:auto;max-width:100%;min-width:100px}
#watchSearchStatus{margin:7px 0 14px;color:#64748b;font-size:12px}
.watch-search-hit{background:#fff0ad;color:inherit;border-radius:2px;padding:0}
.watch-note-match{margin-top:6px;font-size:12px;line-height:1.6;color:#64748b;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.watch-search-input{flex-basis:100%;max-width:none}.watch-search-controls select{flex:1;min-width:0}}

/* /amazon-products.css */
.search-history{position:absolute;z-index:30;top:100%;left:0;right:0;background:var(--surface,#fff);border:1px solid #d8dee8;border-radius:9px;box-shadow:0 8px 24px #15243a24;padding:8px;max-height:360px;overflow:auto}
.query-label{position:relative}.history-heading,.history-row{display:flex;align-items:center;gap:6px}.history-heading{justify-content:space-between;padding:4px 6px;color:#64748b}.history-row button{padding:6px 8px;min-height:32px}.history-word{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0!important}.history-word.active,.history-word:hover{background:#fff1e5}.history-row{margin:3px 0}.search-history small{display:block;padding:8px}

#queryResults { margin-top: 14px; align-items: start; }
#trendPanel { min-width: 0; }
#trendPanel > .panel-title { padding-bottom: 8px; border-bottom: 1px solid var(--border, #e7eaf0); }
#trendHeaderTitle { font-size: 16px; font-weight: 500; line-height: 1.5; }
.query-rank-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.query-rank-chip { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 6px; background: #fff5ec; border-left: 3px solid #f97316; }
.query-rank-chip[data-kind=day] { background: #eff5ff; border-left-color: #4f83eb; }
.query-rank-chip > span { font-size: 12px; color: #64748b; }
.query-rank-chip strong { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: #243348; }
.query-rank-chip small { font-size: 11px; color: #718096; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#trendPanel .period-controls { gap: 8px; }
#trendPanel .period-controls label { font-size: 12px; }
#trendPanel .period-controls select, #trendPanel .period-controls input, #trendPanel .period-controls button { min-height: 32px; padding: 5px 8px; font-size: 12px; }
#trendPanel .period-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; background: #f8fafc; }
#trendPanel .period-metrics strong { font-size: 14px; font-weight: 500; color: #334155; }
#trendPanel .period-section h4 { font-size: 13px; font-weight: 500; color: #475569; }
.amazon-panel { min-width: 0; padding: 14px 0 4px; margin: 16px 0 0; border-top: 1px solid var(--border, #e7eaf0); }
.amazon-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; color: #334155; }
.amazon-section-heading small { color: #94a3b8; font-size: 11px; }
.amazon-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.amazon-controls label { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #64748b; }
.amazon-controls select, .amazon-controls input, .amazon-controls button { min-height: 30px; padding: 5px 8px; font-size: 12px; }
.amazon-controls select { max-width: 190px; min-width: 0; }
#amazonScope { width: 105px; }
#amazonCount { width: 52px; }
.amazon-controls .amazon-automatic { padding: 5px 7px; border-radius: 5px; background: #f8fafc; white-space: nowrap; }
.amazon-automatic input { min-height: 0; width: 14px; height: 14px; margin: 0; }
#amazonDevice { max-width: 180px; }
#amazonTasks { max-width: 190px; }
.amazon-status { font-size: 12px; line-height: 1.6; color: #64748b; margin: 8px 0; min-height: 19px; }
.amazon-binding { padding: 10px; background: #fff4eb; border-radius: 6px; margin-top: 8px; font-size: 12px; }
.amazon-binding button { margin-left: 8px; }
.amazon-results { min-width: 0; }
.amazon-copy-selected { font-size: 11px; padding: 4px 8px; min-height: 26px; }
.amazon-keyword-row { min-width: 0; padding: 10px 0 0; }
.amazon-keyword { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; overflow-wrap: anywhere; }
.amazon-keyword strong { font-size: 12px; font-weight: 500; color: #475569; }
.amazon-keyword small { font-size: 11px; color: #94a3b8; }
.amazon-keyword button { margin-left: auto; font-size: 11px; min-height: 25px; padding: 3px 7px; }
.amazon-product-area { min-width: 0; }
.amazon-products { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 9px; scroll-snap-type: x proximity; }
.amazon-product { position: relative; flex: 0 0 105px; display: flex; flex-direction: column; gap: 4px; padding: 7px 5px; border: 1px solid #e7eaf0; border-radius: 6px; background: var(--surface, #fff); font-size: 12px; min-width: 0; scroll-snap-align: start; }
.amazon-product > input { position: absolute; left: 4px; top: 4px; z-index: 1; }
.amazon-product > img, .amazon-image-empty { width: 92px; height: 92px; object-fit: contain; margin: 5px auto; background: #fff; }
.amazon-image-empty { display: grid; place-items: center; color: #94a3b8; }
.amazon-asin { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.amazon-asin a { font-size: 11px; font-variant-numeric: tabular-nums; }
.amazon-asin button { border: 0; padding: 1px; min-height: 20px; }
.amazon-price { color: #334155; background: #f8fafc; padding: 2px 4px; border-radius: 3px; font-size: 12px; font-weight: 500; min-height: 20px; }
.amazon-product small { font-size: 11px; line-height: 1.5; color: #64748b; }
.amazon-product > button { min-height: 25px; padding: 3px 6px; font-size: 11px; }
.amazon-field-status { position: absolute; right: 5px; top: 3px; color: #b45309; }
.amazon-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.amazon-pagination button { min-height: 25px; font-size: 11px; padding: 3px 8px; }
.amazon-pagination button[aria-pressed=true] { color: var(--primary, #c2410c); border-color: currentColor; background: var(--primary-soft, #fff4eb); }
.amazon-product details { max-width: 100%; overflow-wrap: anywhere; }
.amazon-panel > textarea { width: 100%; box-sizing: border-box; }
.amazon-empty { padding: 16px 10px; border: 1px dashed #e2e8f0; border-radius: 6px; color: #94a3b8; font-size: 12px; }
.amazon-device-settings { position: relative; margin-left: auto; font-size: 11px; }
.amazon-device-settings[open] { display: flex; gap: 5px; flex-wrap: wrap; }
.amazon-device-settings summary { cursor: pointer; color: #718096; padding: 6px; }
.amazon-device-settings button { font-size: 11px; }
.amazon-listing { flex: 1 1 320px; max-width: 100%; padding: 10px; }
.amazon-listing h3 { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.amazon-listing > img { width: 120px; height: 120px; }
.amazon-listing details p { font-size: 12px; line-height: 1.7; }
html[data-amazon-allowed=false] #amazonProductPanel { display: none !important; }
html[data-theme=classic] .history-word.active { background: #edf3ff; }
@media (max-width: 1050px) {
  .amazon-controls { gap: 5px; }
  #amazonTasks { max-width: 160px; }
}
@media (max-width: 650px) {
  .amazon-controls select { max-width: 100%; }
  .query-rank-chip { gap: 7px; padding: 6px 9px; }
  .amazon-keyword small { max-width: 140px; }
}

.amazon-help { font-size: 12px; font-weight: 400; color: #64748b; }
.amazon-help summary { cursor: pointer; list-style: none; }
.amazon-help[open] { flex: 1 1 100%; }
.amazon-section-heading:has(.amazon-help[open]) { flex-wrap: wrap; }
.amazon-help-content { padding: 10px 12px; margin-top: 8px; background: #f8fafc; border: 1px solid #e7eaf0; border-radius: 6px; font-size: 12px; line-height: 1.7; }
.amazon-help-content ol { padding-left: 20px; margin: 8px 0; }
.amazon-help-content li { margin: 5px 0; }
.amazon-help-content p { margin: 8px 0 0; }
.amazon-help-content button { font-size: 12px; min-height: 30px; padding: 5px 9px; }

/* /product-templates.css */
.template-library{--tpl-border:#dce3eb;--tpl-muted:#64748b}
.template-heading,.template-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.template-heading h2,.template-heading h3{margin:0 0 8px}.template-heading p{margin:0}.template-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:24px 0 12px}.template-toolbar label{display:grid;gap:6px}.template-search{flex:1;min-width:210px}.template-toolbar input,.template-toolbar select{min-height:40px}
.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}.template-card{border:1px solid var(--tpl-border);border-radius:12px;overflow:hidden;background:var(--card-bg,#fff);display:flex;flex-direction:column}.template-card figure{height:170px;margin:0;padding:12px;background:#f6f8fa;display:grid;place-items:center}.template-card img{max-width:100%;max-height:146px;object-fit:contain}.template-card-body{padding:16px;display:grid;gap:10px;flex:1}.template-card-title{font:inherit;color:inherit;border:0!important;background:none!important;padding:0!important;min-height:auto!important;text-align:left;cursor:pointer}.template-card-meta{display:flex;justify-content:space-between;gap:8px;color:var(--tpl-muted);font-size:12px}.template-card p{font-size:12px;line-height:1.6;color:var(--tpl-muted);margin:0}.template-status{display:inline-flex;gap:5px;align-items:center}.template-status:before{content:"";width:6px;height:6px;border-radius:50%;background:#8b98ab}.template-status[data-status="published"]:before{background:#23966a}.template-status[data-status="archived"]:before{background:#c88731}.template-pagination{margin:20px 0}
.template-editor{margin-top:28px;border-top:1px solid var(--tpl-border);padding-top:24px}.template-editor-grid{display:grid;grid-template-columns:minmax(260px,0.8fr) minmax(350px,1.2fr);gap:28px;margin-top:20px}.template-preview{min-height:220px;background:#f6f8fa;border:1px solid var(--tpl-border);border-radius:10px;padding:16px;display:grid;place-items:center}.template-preview img{max-width:100%;max-height:540px;object-fit:contain}.template-preview-column{align-self:start}.template-form label{display:grid;gap:6px;margin-bottom:12px;font-size:13px}.template-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.template-form input:not([type=checkbox]),.template-form select,.template-form textarea{width:100%;box-sizing:border-box}.template-form details{border-top:1px solid var(--tpl-border);padding:14px 0}.template-form summary{cursor:pointer;margin-bottom:12px}.template-form .inline-check,.template-publish .inline-check{display:flex;align-items:center;gap:8px}.template-form .inline-check input{width:auto}
.template-element{border:1px solid var(--tpl-border);border-radius:8px;padding:12px;margin:12px 0}.template-element .template-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.template-element label{font-size:12px}.template-file-button{position:relative;display:inline-block;padding:9px 14px;border:1px solid var(--tpl-border);border-radius:8px;cursor:pointer}.template-file-button input{position:absolute;width:1px;height:1px;opacity:0}.template-file-button:focus-within{outline:2px solid #cf4d0c;outline-offset:2px}.template-publish{border-top:1px solid var(--tpl-border);margin-top:20px;padding-top:18px;display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}.template-grants{margin-top:28px;border-top:1px solid var(--tpl-border);padding-top:20px}.template-grant-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--tpl-border)}.template-grant-row>span{flex:1;min-width:190px}.template-grant-row label{display:flex;gap:6px;align-items:center}.template-history-row{padding:12px 0;border-bottom:1px solid var(--tpl-border);display:flex;align-items:center;justify-content:space-between;gap:12px}.template-issue{font-size:12px;line-height:1.6;border-left:3px solid #db9d4b;padding:8px 12px;background:#fff8ed;margin-top:10px}.template-issue[data-severity=error]{border-color:#b83333;background:#fff2f2}
@media(min-width:1450px){.template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:950px){.template-editor-grid{grid-template-columns:1fr}.template-preview img{max-height:360px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.template-grid,.template-fields{grid-template-columns:1fr}.template-element .template-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.template-toolbar>label{width:100%}}

.template-source-import{margin:20px 0 0;padding:14px 0;border-top:1px solid var(--tpl-border)}.template-source-import summary{cursor:pointer}.template-source-import p{font-size:12px;line-height:1.7}.template-source-import .template-toolbar{margin-top:14px}

/* /patents.css */
.patent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.patent-grid form,.patent-box{border:1px solid #e2e8f0;border-radius:10px;padding:16px;min-width:0}.patent-grid textarea{min-height:90px;resize:vertical}.patent-grid input,.patent-grid select,.patent-grid textarea{width:100%;box-sizing:border-box}.patent-grid input[type=checkbox]{width:auto;margin-right:6px}.patent-grid label{display:block;margin:8px 0}.patent-grid h3{margin-top:0}.patent-checks{display:flex;flex-wrap:wrap;gap:8px 14px}.patent-checks label{display:flex;align-items:center;font-size:13px}.patent-scroll{overflow:auto;max-width:100%}.patent-scroll table{width:100%;border-collapse:collapse}.patent-scroll td,.patent-scroll th{padding:9px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top}.patent-scroll td:first-child{min-width:120px}.patent-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.patent-result{margin-top:18px}.patent-result pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;font-size:12px}.patent-state{font-size:12px;background:#edf3ff;color:#2456a6;padding:3px 7px;border-radius:5px}.patent-note{font-size:12px;color:#64748b}.patent-monitor{border-bottom:1px solid #e2e8f0;padding:10px 0}.patent-message{min-height:1.4em;color:#334155}.patent-grid button{margin-top:8px}.patent-config{margin-top:20px}.patent-config summary{font-weight:600;cursor:pointer}.patent-grid .patent-wide{grid-column:1/-1}@media(max-width:600px){.patent-grid{grid-template-columns:minmax(0,1fr)}.patent-scroll td,.patent-scroll th{padding:7px;font-size:12px}}
.patent-settings-fields{border:0;padding:0;margin:0;min-width:0}.patent-settings-fields:disabled{opacity:.7}.patent-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.patent-key-area{padding:10px 12px;background:#f8fafc;border:1px solid #e5e9ef;border-radius:8px;margin:8px 0 14px}.patent-advanced{border-top:1px solid #e5e9ef;padding-top:12px;margin-top:14px}.patent-advanced>summary{font-size:13px;font-weight:600;cursor:pointer;color:#526174}.patent-advanced>div{padding-top:8px}.patent-account-picker{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.patent-account-picker select{flex:1 1 200px;min-width:0}.patent-account-picker button{margin:0}.patent-grid form>button[type=submit]{margin-top:16px}.patent-scroll input{min-width:70px}.patent-note{line-height:1.65}.patent-message:empty{display:none}.patent-config>summary{font-size:15px}.patent-settings-fields .patent-field-grid input{font-variant-numeric:tabular-nums}@media(max-width:600px){.patent-field-grid{grid-template-columns:minmax(0,1fr)}.patent-key-area{padding:8px}.patent-account-picker select{flex-basis:100%}}

/* /announcements.css */
.notification-dot{display:inline-block;width:9px;height:9px;flex:0 0 9px;margin-left:8px;border-radius:50%;background:#e23945;box-shadow:0 0 0 2px #fff}.notification-dot[hidden]{display:none}.announcement-area{margin-bottom:24px}.announcement-banner{padding:20px 24px;margin-bottom:12px;border:1px solid #bed3ff;border-left:5px solid #2864ef;border-radius:12px;background:linear-gradient(115deg,#eef4ff,#f8fbff);color:#172b50}.announcement-banner h3{font-size:20px;margin:0 0 8px}.notice-time{color:#60718a;font-size:13px;display:block;margin-bottom:12px}.notice-content{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:8px 0}.notice-important{font-weight:650;color:#a33c12;background:#fff1db;padding:9px 12px;border-radius:7px}.announcement-admin{margin:16px 0 24px;border:1px solid #dce4ee;border-radius:10px;padding:18px}.announcement-admin textarea{width:100%;box-sizing:border-box}.announcement-entry{padding:16px 0;border-bottom:1px solid #e3e8ef;overflow-wrap:anywhere}.announcement-entry h3{margin:0 0 8px}.notice-dialog{width:min(640px,calc(100vw - 36px));max-height:82vh;box-sizing:border-box;border:1px solid #dce4ee;border-radius:14px;padding:24px;overflow:auto}.notice-dialog::backdrop{background:#15223c55}.notice-heading{justify-content:space-between}.notice-heading h2{margin:0}.announcement-admin .actions{flex-wrap:wrap}@media(max-width:600px){.announcement-banner{padding:16px}.announcement-banner h3{font-size:18px}.notice-dialog{padding:18px}.announcement-admin{padding:14px}}

/* /multi-site-terms.css */
.multi-terms-panel{margin-bottom:24px;padding:20px;border:1px solid #dce5f3;border-radius:12px;background:white;min-width:0}.multi-terms-panel .mt-countries{display:flex;flex-wrap:wrap;gap:16px}.multi-terms-panel .mt-controls{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.multi-terms-panel .mt-note{font-size:12px}.multi-terms-panel .mt-results{overflow:auto}.multi-terms-panel .mt-pagination{display:flex;gap:12px;margin-top:12px}.multi-terms-panel .mt-word{white-space:pre-wrap}.multi-terms-panel .mt-close{float:right}.multi-terms-panel fieldset{border:1px solid #dce5f3;border-radius:8px;padding:12px}.multi-terms-panel input[type=number]{max-width:110px}.multi-terms-panel .mt-countries label{display:flex;align-items:center;gap:5px}.multi-terms-panel table{width:100%;border-collapse:collapse}.multi-terms-panel th,.multi-terms-panel td{padding:10px;text-align:left;border-bottom:1px solid #e5ebf5}.multi-terms-panel button{cursor:pointer}.multi-terms-panel p{line-height:1.6}

/* /appearance.css */
/* Classic keeps the original styles. Orange opts into the presentation below. */
.ui-icon { display:none; width:18px; height:18px; flex:none; vertical-align:middle; }
.ui-compact { display:none; }
.appearance-control { display:block; width:118px; }
#appearanceTheme { height:35px; font-size:12px; }
/* Native WebKit selects clip text when vertical padding meets a fixed height. */
select { padding-top:0; padding-bottom:0; line-height:normal; }
#appearanceTheme { padding-top:0; padding-bottom:0; }
#appearanceMessage { font-size:12px; color:#a16207; }
#appearanceMessage:empty { display:none; }
.trend-point-tooltip { position:absolute; z-index:5; pointer-events:none; max-width:calc(100% - 16px); padding:8px 11px; border:1px solid #dce3eb; border-radius:7px; background:#fff; color:#172033; box-shadow:0 4px 16px #17203318; font-size:12px; line-height:1.6; white-space:pre-line; }
.trend-point-tooltip.is-pinned { border-color:#a8bad2; }
.period-chart canvas:focus-visible { outline:2px solid #b8cfff; outline-offset:4px; }

html[data-theme="orange"] {
  --ink:#202b3a;
  --muted:#64748b;
  --line:#e5e9ef;
  --blue:#c2410c;
  --soft:#fff4e9;
  --green:#047857;
  --red:#be3344;
  --accent:#f97316;
  --accent-dark:#9a3412;
  --chart-week:#ea580c;
  --chart-day:#2563eb;
  background:#f5f6f8;
  font-family:system-ui,"Segoe UI","Microsoft YaHei UI",sans-serif;
  font-size:13px;
  color:var(--ink);
}
html[data-theme="classic"] { --chart-week:#2167ff; --chart-day:#0d9962; }
html[data-theme="classic"] .period-help>summary { display:none; }
html[data-theme="orange"] .ui-icon { display:inline-block; }
html[data-theme="orange"] .ui-compact { display:inline; }
html[data-theme="orange"] .ui-verbose { display:none; }
html[data-theme="orange"] .ui-action { display:inline-flex; align-items:center; justify-content:center; gap:7px; position:relative; }
html[data-theme="orange"] .ui-icon-action { width:36px; min-width:36px; height:36px; padding:8px; }
html[data-theme="orange"] .ui-icon-action .ui-action-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
html[data-theme="orange"] .ui-icon-action:where(:hover,:focus-visible)::after { content:attr(aria-label); position:absolute; bottom:calc(100% + 7px); left:50%; transform:translateX(-50%); padding:5px 8px; border-radius:5px; background:#263244; color:#fff; font-size:12px; font-weight:400; white-space:nowrap; pointer-events:none; z-index:20; }
html[data-theme="orange"] .sidebar { background:#fff; border-right-color:#e7e9ee; }
html[data-theme="orange"] .brand { color:#273444; }
html[data-theme="orange"] .badge { background:var(--blue); box-shadow:0 2px 6px #c2410c14; }
html[data-theme="orange"] .nav-item { display:flex; align-items:center; gap:10px; font-size:13px; color:#475569; }
html[data-theme="orange"] .nav-item .ui-icon { width:17px; height:17px; color:#748092; }
html[data-theme="orange"] .nav-item:hover { background:#faf6f1; color:var(--accent-dark); }
html[data-theme="orange"] .nav-item.active { background:var(--soft); color:var(--accent-dark); box-shadow:inset 3px 0 var(--accent); }
html[data-theme="orange"] .nav-item.active .ui-icon { color:var(--blue); }
html[data-theme="orange"] .notification-dot { background:#dc344b; }
html[data-theme="orange"] .workspace-header { min-height:96px; margin-bottom:24px; }
html[data-theme="orange"] .workspace-header h1 { font-size:25px; letter-spacing:-.4px; font-weight:720; }
html[data-theme="orange"] .workspace-header p { font-size:12px; }
html[data-theme="orange"] :is(h1,h2,h3,h4) { color:#253345; }
html[data-theme="orange"] h2 { font-size:22px; }
html[data-theme="orange"] label { color:#536174; font-size:12px; }
html[data-theme="orange"] :is(input,select,textarea) { border-color:#d9dfe7; border-radius:7px; color:#253345; }
html[data-theme="orange"] :is(input,select,textarea):focus { outline:2px solid #fed7aa; border-color:#ea580c; }
html[data-theme="orange"] :is(button,a,summary):focus-visible { outline:3px solid #fed7aa; outline-offset:3px; }
html[data-theme="orange"] input[type="checkbox"] { accent-color:var(--blue); }
html[data-theme="orange"] button { border-color:#dce1e8; color:#475569; font-weight:560; box-shadow:none; }
html[data-theme="orange"] button:hover:not(:disabled) { color:#9a3412; border-color:#f3bf96; background:#fff8f2; }
html[data-theme="orange"] :is(.primary,#search,#moversLoad,#candidateLoad,#growthLoad,#brandsLoad,#overviewLoad,#bestLiftsLoad,#breakoutsLoad,#opportunitiesLoad,#crossSiteLoad,#watchAddSubmit,.sales-primary-action,form button[type="submit"]) { background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:0 2px 4px #9a341216; }
html[data-theme="orange"] :is(.primary,#search,#watchAddSubmit,form button[type="submit"]):hover:not(:disabled) { background:#9a3412; border-color:#9a3412; color:#fff; }
html[data-theme="orange"] button:disabled { box-shadow:none; cursor:not-allowed; }
html[data-theme="orange"] :is(.danger-text,.watch-actions .danger-text) { color:var(--red); }
html[data-theme="orange"] .danger-text:hover:not(:disabled) { color:#9f1239; border-color:#fecdd3; background:#fff1f2; }
html[data-theme="orange"] .text-button { color:var(--blue); }
html[data-theme="orange"] :is(.card,.filter-bar) { border-color:var(--line); border-radius:10px; box-shadow:0 2px 6px #25334504; }
html[data-theme="orange"] .filter-bar { padding:14px 16px; }
html[data-theme="orange"] .scope-note { background:#fff7ed; color:#785644; }
html[data-theme="orange"] .query-help { flex-basis:100%; font-size:12px; color:#64748b; }
html[data-theme="orange"] .query-help summary { cursor:pointer; width:max-content; color:#9a3412; }
html[data-theme="orange"] .query-help p { margin:8px 0 0; }
html[data-theme="orange"] .group>h3 { background:#fff4e9; border-left:3px solid #fb923c; color:#7c3f24; }
html[data-theme="orange"] .source h4 { color:#64748b; font-size:12px; font-weight:550; }
html[data-theme="orange"] .source .row { border-color:#e5e9ef; border-radius:7px; padding:12px; }
html[data-theme="orange"] .source .row:hover { background:#fffcf9; border-color:#f4c39f; }
html[data-theme="orange"] .source .row.selected { border-color:#ef9b61; background:#fff7ed; }
html[data-theme="orange"] .source .row button { color:#273444; font-size:14px; font-weight:650; }
html[data-theme="orange"] .source .rank { color:#263447; font-size:17px; font-weight:700; }
html[data-theme="orange"] .result-meta { font-variant-numeric:tabular-nums; font-size:12px; }
html[data-theme="orange"] .result-meta.positive { color:var(--green); }
html[data-theme="orange"] .result-meta.negative { color:var(--red); }
html[data-theme="orange"] :is(td,th,.rank,.period-metrics strong) { font-variant-numeric:tabular-nums; }
html[data-theme="orange"] th { background:#f6f7f9; color:#526174; font-size:12px; border-bottom-color:#e2e7ee; }
html[data-theme="orange"] td { border-bottom-color:#edf0f4; }
html[data-theme="orange"] tbody tr:hover>td { background:#fffcf8; }
html[data-theme="orange"] .table-scroll th { position:sticky; top:0; z-index:1; }
html[data-theme="orange"] .period-section { border-top-color:#e8ecf1; margin-top:18px; padding-top:18px; }
html[data-theme="orange"] .period-section h4 { font-size:15px; margin-bottom:16px; }
html[data-theme="orange"] .period-metrics { background:#fafbfc; border:1px solid #edf0f4; border-radius:8px; padding:12px; color:#64748b; }
html[data-theme="orange"] .period-metrics strong { color:#273444; font-size:23px; font-weight:720; }
html[data-theme="orange"] .period-metrics>div:first-child strong { color:var(--blue); }
html[data-theme="orange"] .period-metrics small { font-size:11px; color:#64748b; }
html[data-theme="orange"] .period-note { margin:8px 0; font-size:12px; }
html[data-theme="orange"] .period-help summary { cursor:pointer; color:#64748b; font-size:12px; width:max-content; }
html[data-theme="orange"] .period-statuses { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; }
html[data-theme="orange"] .ui-state { display:inline-flex; gap:5px; align-items:center; border-radius:5px; padding:3px 7px; font-size:11px; line-height:1.4; background:#f1f5f9; color:#526174; }
html[data-theme="orange"] .ui-state[data-state="eligible"] { background:#eff6ff; color:#1d4ed8; }
html[data-theme="orange"] .ui-state:is([data-state="pending"],[data-state="queued"],[data-state="running"],[data-state="stale"],[data-state="partial"]) { background:#fffbeb; color:#925c05; }
html[data-theme="orange"] .ui-state:is([data-state="blocked"],[data-state="failed"]) { background:#fff1f2; color:#b4233d; }
html[data-theme="orange"] .ui-state[data-state="complete"] { background:#ecfdf5; color:#047857; }
html[data-theme="orange"] .period-details summary { padding:8px 0; font-size:12px; }
html[data-theme="orange"] .period-gap { color:#925c05; }
html[data-theme="orange"] .trend-point-tooltip { border-color:#e3e7ec; border-radius:8px; }
html[data-theme="orange"] .trend-point-tooltip.is-pinned { border-color:#f0a66c; }
html[data-theme="orange"] .watch-country { box-shadow:0 2px 6px #25334503; border-top:1px solid #e5e9ef; }
html[data-theme="orange"] .watch-country-header { background:#fdfdfd; }
html[data-theme="orange"] .watch-country-header h3 { color:#263447; font-size:17px; }
html[data-theme="orange"] .watch-country-dates { color:#64748b; }
html[data-theme="orange"] .watch-country-choice:has(input:checked) { background:#fff7ed; border-color:#f3bf96; color:#9a3412; }
html[data-theme="orange"] .watch-country-choice input { accent-color:var(--blue); }
html[data-theme="orange"] .watch-word { font-size:14px; color:#9a3412; font-weight:650; }
html[data-theme="orange"] .watch-country-tag { color:#526174; background:#f7f8fa; border-color:#e2e7ed; }
html[data-theme="orange"] .week-spark svg { color:var(--chart-week); }
html[data-theme="orange"] .day-spark svg { color:var(--chart-day); }
html[data-theme="orange"] .watch-detail-charts>div:first-child svg { color:var(--chart-week); }
html[data-theme="orange"] .watch-detail-charts>div:nth-child(2) svg { color:var(--chart-day); }
html[data-theme="orange"] .watch-point-readout.is-pinned { border-color:#f0a66c; }
html[data-theme="orange"] .watch-country .watch-table .watch-actions { grid-template-columns:repeat(4,36px); gap:6px; min-width:162px; }
html[data-theme="orange"] .watch-country .watch-table .watch-actions>.external-menu { grid-column:auto; }
html[data-theme="orange"] .watch-country .watch-table .external-menu>summary { width:36px; min-height:36px; }
html[data-theme="orange"] .watch-country .watch-table .watch-actions>.ui-icon-action { width:36px; padding:8px; height:36px; font-size:12px; }
html[data-theme="orange"] .watch-country .watch-table .watch-actions>.watch-expand-toggle { font-size:12px; }
html[data-theme="orange"] .watch-country .watch-table th:nth-child(5) { width:185px; }
html[data-theme="orange"] .watch-note-tools { gap:7px; }
html[data-theme="orange"] .watch-note-text { font-size:13px; line-height:1.75; color:#475569; }
html[data-theme="orange"] .watch-note-link { color:#9a3412; text-decoration-color:#edb089; text-underline-offset:3px; }
html[data-theme="orange"] :is(.watch-expanded,.brand-inline-detail-row>td,.opportunity-detail-row>td) { background:#fbfaf8; border-color:#e9e4df; }
html[data-theme="orange"] .watch-expanded button { color:#9a3412; border-color:#e1d8ce; }
html[data-theme="orange"] .external-menu summary { border-color:#dce1e8; color:#5a6675; }
html[data-theme="orange"] .external-link { color:#5b6472; border-color:#e2e6ec; font-size:12px; }
html[data-theme="orange"] .external-link:hover { color:#9a3412; border-color:#efb58c; background:#fff9f4; }
html[data-theme="orange"] .external-menu-items a { color:#475569; }
html[data-theme="orange"] .external-menu-items a:hover { background:#fff4e9; color:#9a3412; }
html[data-theme="orange"] .brand-library-country { border-color:#e4e8ed; border-top:2px solid #f6c5a3; padding:14px; }
html[data-theme="orange"] .brand-library-country h3 { font-size:16px; }
html[data-theme="orange"] .brand-library-entry>strong { font-size:15px; color:#273444; margin-right:8px; }
html[data-theme="orange"] .brand-library-entry>small { color:#64748b; line-height:1.7; }
html[data-theme="orange"] .announcement-banner { background:#fff7ed; border-color:#fed7aa; border-left-color:#ea580c; color:#533424; }
html[data-theme="orange"] .announcement-banner h3 { color:#9a3412; font-size:18px; }
html[data-theme="orange"] .notice-important { background:#ffedd5; color:#9a3412; }
html[data-theme="orange"] :is(.notice,.shell-message) { background:#fffbeb; color:#925c05; border:1px solid #f5e3ba; }
html[data-theme="orange"] .prompt-card-grid>.prompt-card { border-top-color:#e9b58d; box-shadow:0 2px 8px #27364b04; }
html[data-theme="orange"] .prompt-card-grid .prompt-card button.prompt-card-copy { color:#9a3412; background:#fff3e8; border-color:#efc6a8; }
html[data-theme="orange"] .patent-grid h3 { font-size:15px; }
html[data-theme="orange"] .patent-grid form { background:#fff; border-color:#e4e8ed; }
html[data-theme="orange"] .patent-config { border-top:1px solid #e5e9ef; padding-top:16px; }
html[data-theme="orange"] .setup-page #copyAgentSetup { background:var(--blue); border-color:var(--blue); }
html[data-theme="orange"] #salesPanel .sales-primary-action { background:var(--blue); border-color:var(--blue); }
html[data-theme="orange"] mark { background:#ffedd5; color:#7c2d12; border-radius:2px; }
html[data-theme="orange"] :is(.watch-trend-dialog,.notice-dialog) { box-shadow:0 16px 64px #1f293733; border-color:#e1e5eb; }
@media(max-width:700px) {
  .appearance-control { width:108px; }
  html[data-theme="orange"] .workspace-header { min-height:90px; margin-bottom:20px; }
  html[data-theme="orange"] .header-actions { gap:8px; }
  html[data-theme="orange"] .nav-item { padding:9px 10px; }
  html[data-theme="orange"] .period-metrics { gap:8px; padding:10px; }
  html[data-theme="orange"] .period-metrics strong { font-size:20px; }
  html[data-theme="orange"] .ui-icon-action { width:40px; min-width:40px; height:40px; }
  html[data-theme="orange"] .watch-country .watch-table .watch-actions { grid-template-columns:repeat(4,40px); }
  html[data-theme="orange"] .watch-country .watch-table .external-menu>summary { width:40px; min-height:40px; }
  html[data-theme="orange"] .watch-country .watch-table .watch-actions>.ui-icon-action { width:40px; height:40px; }
  html[data-theme="orange"] .ui-icon-action:where(:hover,:focus-visible)::after { max-width:180px; white-space:normal; }
  html[data-theme="orange"] .trend-links .external-link { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:5px; }
  html[data-theme="orange"] .trend-links .external-link>span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
@media(prefers-reduced-motion:no-preference) {
  html[data-theme="orange"] button { transition:background-color .12s,border-color .12s,color .12s; }
}

/* /list-columns.css */
.list-columns-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.list-columns-scroll:focus-visible{outline:2px solid var(--accent,#c2410c);outline-offset:2px}
.list-columns-scroll>.brand-library-country{overflow:visible;padding:0;margin:12px 0;border-radius:10px}
.list-columns-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:7px 0;font-size:11px;color:var(--muted,#64748b)}
.list-columns-tools .list-columns-reset{font:inherit;padding:3px 8px;min-height:25px;background:transparent;color:inherit;border:1px solid var(--line,#dce3eb);border-radius:5px;box-shadow:none}
.list-columns-reset:disabled{opacity:.5}.list-columns-status:empty{display:none}
.list-column-heading{position:relative;padding-right:16px!important}
button.list-column-handle{position:absolute!important;z-index:2;right:0;top:0;bottom:0;width:12px!important;min-width:12px!important;max-width:12px;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;cursor:col-resize;touch-action:none;user-select:none;color:inherit}
.list-column-handle:after{content:'';position:absolute;right:4px;top:20%;height:60%;border-right:2px solid var(--line,#cbd5e1)}
.list-column-handle:hover:after,.list-column-handle:focus-visible:after{border-color:var(--accent,#c2410c)}
.list-column-handle:focus-visible{outline:2px solid var(--accent,#c2410c);outline-offset:-2px}
.list-column-dragging,.list-column-dragging *{cursor:col-resize!important;user-select:none!important}
table.list-columns-custom{table-layout:fixed!important;max-width:none!important}
table.list-columns-custom th,table.list-columns-custom td{min-width:0!important;overflow-wrap:anywhere}
@media(min-width:601px){.list-columns-grid-custom{min-width:var(--apa-list-grid-width)}.list-columns-grid-custom>.brand-group-columns,.list-columns-grid-custom>.brand-library-entry>.brand-group-row{grid-template-columns:var(--apa-list-grid-columns)!important}}
@media(max-width:600px){.list-columns-grid-custom{min-width:0}.list-columns-tools{gap:7px}.list-columns-hint{font-size:10px}}

/* /keyword-quick-links.css */
/* Shared keyword actions use report words and market context; no per-row HTTP. */
.keyword-quick-links{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;margin-left:8px;white-space:nowrap;flex:none}
.keyword-quick-links .external-link{display:inline-flex;align-items:center;justify-content:center;width:27px;min-width:27px;height:27px;padding:3px;border-radius:5px;background:var(--panel,#fff);vertical-align:middle;line-height:1}
.keyword-quick-links .external-platform-icon{width:18px;height:18px;display:block;flex:none}.keyword-quick-links .external-link>span{display:none}
.keyword-quick-links .external-link:focus-visible{outline:2px solid var(--blue,#2167ff);outline-offset:2px}.keyword-quick-links .external-link:hover{background:var(--soft,#f4f7ff)}
.keyword-result-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.keyword-result-line>.keyword-quick-links{margin-left:0}.keyword-result-line>.query-result-word{flex:1;min-width:0}.country-source .keyword-result-line{margin:8px 0}.country-source .keyword-result-line>.country-keyword{width:auto;flex:1;margin:0}.country-source .keyword-result-line>.country-keyword-rank{font-variant-numeric:tabular-nums;color:var(--muted,#667085);font-size:12px}
.brand-keyword-text>.keyword-quick-links{margin-left:0;align-self:flex-start}.mt-word>.keyword-quick-links{white-space:nowrap}
@media(max-width:700px){.keyword-quick-links .external-link{width:30px;min-width:30px;height:30px}.keyword-quick-links{gap:4px}.keyword-result-line{gap:7px}}

/* /query-results-viewport.css */
/* Only the query result body scrolls. Paging and copy controls remain outside. */
.query-results-viewport{min-width:0;max-width:100%;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;overflow-anchor:none}
.query-results-viewport:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:5px}
.query-results-viewport #results,.query-results-viewport .group,.query-results-viewport .source{min-width:0;max-width:100%}
.query-results-resize{display:flex;align-items:center;justify-content:center;gap:9px;min-height:30px;margin-top:8px;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--muted);font-size:11px;line-height:1.4;cursor:ns-resize;touch-action:none;user-select:none;max-width:100%;flex-wrap:wrap;padding:4px 8px}
.query-results-resize:hover{border-color:var(--blue);color:var(--ink)}
.query-results-resize:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.query-results-grip{width:22px;height:6px;border-top:2px solid currentColor;border-bottom:2px solid currentColor;opacity:.65;flex:none}
.query-results-resize-hint{font-size:10px;opacity:.8}
.query-results-resizing,.query-results-resizing *{cursor:ns-resize!important;user-select:none!important}
@media(max-width:600px){.query-results-resize{min-height:36px;gap:6px}.query-results-resize-hint{font-size:10px}}

