.product-sales-stage,.product-word-strategy{min-width:0;padding:14px;border:1px solid #c8dbe9;border-radius:10px;background:#f7fafc;color:#172a3a;margin:10px 0;overflow-wrap:anywhere}
.product-stage-title,.product-word-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.product-stage-title strong,.product-word-heading strong{font-size:16px;color:#172a3a}
.product-stage-title span{font-size:12px;padding:4px 8px;background:#e6edf3;border-radius:5px;color:#253d50}
.product-sales-stage p,.product-word-strategy p{margin:8px 0;line-height:1.65;font-size:13px;color:#172a3a}
.product-sales-stage .product-stage-warning,.product-word-strategy .product-stage-warning{color:#995e12}
.product-sales-stage .product-stage-reference{color:#526273;font-size:12px}
.product-word-heading .btn{font-size:13px;padding:7px 10px}
.product-word-strategy details{margin-top:10px}
.product-word-group summary{padding:9px 0;font-weight:600;font-size:13px;color:#172a3a;cursor:pointer}
.product-word-evidence{padding:10px;background:#fff;border:1px solid #dae4eb;border-left:3px solid #aebdcc;border-radius:7px;margin:6px 0;min-width:0}
.product-word-evidence strong{display:block;font-size:14px;color:#172a3a;overflow-wrap:anywhere}
.product-word-evidence span{display:block;font-size:12px;color:#536579;margin-top:5px}
.product-word-evidence.review{border-left-color:#c88a2f}
.product-word-evidence.positive{border-left-color:#16875b}
.product-word-evidence.positive span{color:#137149}
.product-word-metrics{margin-top:8px;font-size:13px;line-height:1.6;color:#172a3a}
.product-word-metrics .loss{color:#bd261e}
.product-word-metrics .profit{color:#137149}
.product-word-evidence .product-word-action{margin:6px 0;font-weight:600}
.product-word-evidence .product-word-basis{margin-top:4px}
.product-word-basis summary,.product-word-method summary,.product-sales-stage.compact summary{font-size:12px;font-weight:400;color:#536579;cursor:pointer;padding:3px 0}
.product-word-strategy .product-word-counts{color:#536579;font-size:12px}
.product-word-strategy .product-word-direction{padding:10px 12px;background:#eef5fb;border-radius:6px;border-left:3px solid #3972b9}
.product-word-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:7px}
.product-word-evidence .product-word-tags span{display:inline-block;margin:0;color:#536579}
.product-word-evidence .product-word-priority{padding:4px 7px;border-radius:4px;background:#edf2f6;color:#172a3a;font-weight:600}
.product-word-evidence .product-word-priority.check_first{background:#fff3df;color:#8a5c11}
.product-word-evidence .product-word-priority.retain{background:#e9f6ee;color:#137149}
.product-word-evidence .product-word-priority.priority_test{background:#eaf2ff;color:#174c94}
.product-word-evidence .product-word-stage-reason{margin:6px 0;font-size:12px;color:#536579}
.product-word-next .mini-action-btn{margin-left:6px}
.keyword-fit-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:9px;padding:9px;background:#f7fafc;border:1px solid #dce6ee;border-radius:6px}
.product-word-evidence .keyword-fit-label{display:inline;margin:0;color:#172a3a;font-size:12px}
.keyword-fit-options{display:flex;gap:6px;flex-wrap:wrap}
.keyword-fit-choice{padding:7px 10px;min-height:36px;border:1px solid #c8dbe9;border-radius:6px;background:#fff;color:#172a3a;font:inherit;font-size:12px;cursor:pointer}
.keyword-fit-choice:hover{border-color:#3972b9;background:#edf4ff}
.keyword-fit-choice:focus-visible{outline:2px solid #245ca8;outline-offset:2px}
.keyword-fit-choice.selected{border-color:#245ca8;background:#eaf2ff;color:#174c94;font-weight:600}
.keyword-fit-choice[data-keyword-fit-choice="not_matches"].selected{border-color:#bd261e;background:#fff1f0;color:#bd261e}
.keyword-fit-choice[data-keyword-fit-choice="unsure"].selected{border-color:#a06a13;background:#fff8e8;color:#855600}
.product-word-evidence .keyword-fit-save-status{display:inline;margin:0;color:#536579;font-size:12px}
.product-word-strategy .product-word-confirmation-note{color:#536579;font-size:12px}
.product-word-operational{margin:9px 0;padding:10px;border:1px solid #e7d2ab;border-radius:6px;background:#fffaf0;min-width:0}
.product-word-operational>b{font-size:13px;color:#172a3a}
.product-word-operational>small{display:block;font-size:12px;color:#536579;line-height:1.55}
.product-word-operational.good{background:#f1faf5;border-color:#bce0c9}
.product-word-operational.danger{background:#fff4f3;border-color:#efbdb7}
.product-word-operational .keyword-record-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:8px}
.product-word-operational input{box-sizing:border-box;min-height:38px}
.product-word-operational .mini-action-btn{min-height:38px}
.keyword-discovery-purpose{padding:10px;border:1px solid #c8dbe9;border-radius:6px;background:#f1f7fd;color:#172a3a;margin:10px 0;font-size:13px;line-height:1.6}
.keyword-discovery-purpose p{margin:5px 0}
.keyword-goal-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:8px 10px}
.keyword-goal-header>strong{font-size:13px!important}
.keyword-goal-header>details{margin:0}
.keyword-goal-header>details[open]{flex-basis:100%}
.keyword-plan-summary{font-size:13px;font-weight:600;padding:8px 10px;color:#172a3a;line-height:1.5;overflow-wrap:anywhere}
.product-word-strategy{background:#fff;padding:12px}
.product-word-heading{gap:8px}
.product-word-heading .product-word-counts{font-size:12px;font-weight:400;margin-right:auto}
.product-word-evidence{padding:10px 12px;background:#fff;margin:6px 0}
.product-word-evidence>.product-word-metrics{margin-top:5px;color:#172a3a;font-size:12px}
.product-word-operational{position:relative;margin:6px 0 0;padding:8px 10px}
.product-word-operational>b{font-size:13px}
.product-word-operational .product-word-action{font-size:13px;font-weight:400;line-height:1.45;margin:4px 0}
.product-word-operation-basis>summary,.product-word-basis>summary,.product-word-method>summary{font-size:12px;font-weight:400;color:#6b7682;padding:4px 0;cursor:pointer}
.product-word-operation-basis p,.product-word-method p,.product-word-basis p{font-size:12px;color:#536579;font-weight:400}
.keyword-fit-controls{margin-top:7px;padding:6px 8px;background:transparent;border:0;gap:7px}
.product-word-strategy .product-word-group>summary{padding:7px 0}
.keyword-legacy-diagnostics{margin-top:10px}
.keyword-legacy-diagnostics>summary{font-size:12px;color:#6b7682;font-weight:400;padding:7px 0}
.keyword-discovery-result .keyword-candidate-row>strong{font-size:14px}
.keyword-discovery-result .keyword-candidate-row>span{font-size:12px;line-height:1.45}
.keyword-discovery-result .keyword-candidate-row details{margin-top:5px}
.keyword-discovery-result .keyword-candidate-row summary,.keyword-discovery-result>details>summary{font-size:12px;color:#6b7682;cursor:pointer}
.keyword-discovery-result .keyword-candidate-row small{line-height:1.45}
.keyword-discovery-result .keyword-discovery-purpose{padding:7px 10px;font-size:12px;line-height:1.45}
.keyword-discovery-heading,.keyword-candidate-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px}
.keyword-discovery-heading{margin-bottom:10px;color:#172a3a}
.keyword-discovery-heading>span,.keyword-candidate-meta{font-size:12px;color:#536579;font-weight:400}
.keyword-candidate-heading>strong{font-size:14px;color:#172a3a}
.keyword-candidate-action{font-size:12px;white-space:nowrap;padding:3px 7px;border-radius:4px;background:#edf4ff;color:#174c94}
.keyword-candidate-row.avoid .keyword-candidate-action{background:#fff3df;color:#855600}
.keyword-candidate-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:5px;line-height:1.45}
.keyword-candidate-basis p,.keyword-discovery-basis p{font-size:12px;line-height:1.5;color:#536579;margin:6px 0}
.keyword-discovery-avoid,.keyword-discovery-basis{margin-top:10px}
.keyword-discovery-avoid>summary,.keyword-discovery-basis>summary{font-size:12px;font-weight:400;color:#6b7682;padding:7px 0;cursor:pointer}
.import-status-detail>summary{font-size:12px;font-weight:400;cursor:pointer;margin-top:4px}
.product-word-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.product-word-card-heading>strong{flex:1;min-width:160px}
.product-word-card-heading .rank-entry-btn{min-height:44px;white-space:nowrap}
.product-word-fit-summary{font-size:12px;color:#536579;line-height:1.45;margin-top:4px}
.keyword-fit-controls.is-confirmed{padding:0;margin:7px 0;align-items:center}
.keyword-fit-controls.is-confirmed details{margin:0}
.keyword-fit-controls.is-confirmed summary{font-size:12px;color:#536579;cursor:pointer;min-height:36px;display:flex;align-items:center}
.self-roas-review{padding:12px;border:1px solid #c8dbe9;border-radius:8px;background:#f7fafc;color:#172a3a;margin-bottom:12px}
.self-roas-review-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px}
.self-roas-review-heading>span,.self-roas-review-metrics span,.self-roas-review summary{font-size:12px;color:#536579}
.self-roas-review-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.self-roas-review-metrics span,.self-roas-review-metrics b{display:block;overflow-wrap:anywhere}
.self-roas-review-metrics b{font-size:18px;margin-top:3px;color:#172a3a}
.self-roas-review p{font-size:12px;line-height:1.5;margin:8px 0}
.self-roas-review summary{cursor:pointer;min-height:30px}
@media(max-width:900px){#appPanel[data-active-page="automation"] .backend-sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 8px}#appPanel[data-active-page="automation"] .backend-menu{min-width:0}#appPanel[data-active-page="automation"] .backend-menu-item.boss-entry{width:auto;margin:0;padding:8px;min-height:40px}#appPanel[data-active-page="automation"] .backend-menu-item.boss-entry strong{font-size:12px;white-space:nowrap}#appPanel[data-active-page="automation"] .backend-menu-item.boss-entry small{display:none!important}#appPanel[data-active-page="automation"] .backend-mobile-nav-hint{display:none}}
@media(max-width:700px){.keyword-plan-card .self-plan-product-info>span,.keyword-plan-card .self-plan-product-info>p{font-size:12px}.product-word-strategy{padding:10px}.product-word-heading strong{font-size:15px}.product-word-heading .btn{padding:7px 9px}.product-word-heading .product-word-counts{flex-basis:100%;order:3}.product-word-evidence{padding:9px}.keyword-goal-header{padding:7px 9px}.product-word-operational input{max-width:100%}}
.profile-row .product-attributes-input,.profile-row [data-product-sales-preview]{grid-column:1/-1}
#linkProfileRows .profile-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.profile-row [data-product-sales-preview]{margin:0;min-width:0}
.profile-row .profile-advanced{grid-column:1/-1;min-width:0;border-top:1px solid #dbe4ec;padding-top:10px}
.profile-advanced>summary{cursor:pointer;font-size:13px;color:#526273;padding:8px 0}
.profile-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:12px}
.profile-row .profile-basic-help{grid-column:1/-1;margin:0;color:#526273;font-size:12px}
#linkProfileRows [hidden]{display:none!important}
#linkProfileRows input[readonly]{background:#f1f5f9;color:#172a3a}
.profile-save-actions{position:sticky;top:8px;z-index:6;background:#fff;padding:10px;border:1px solid #dbe4ec;border-radius:8px;margin-bottom:12px}
.profile-save-actions #linkProfileStatus{flex-basis:100%;color:#172a3a;line-height:1.5}
.profile-row .product-attributes-input textarea{width:100%;min-height:65px}
.profile-row .product-stage-range{font-size:12px;line-height:1.6;color:#526273;display:block;max-width:100%;overflow-wrap:anywhere}
.profile-row .product-sales-entry-help,.profile-row .product-weekly-inputs{grid-column:1/-1;min-width:0;padding:10px;border-radius:7px;border:1px solid #c8dbe9;background:#f7fafc;color:#172a3a;font-size:13px;line-height:1.65}
.product-weekly-inputs summary{cursor:pointer;font-weight:600;color:#172a3a}
.product-weekly-inputs p{font-size:12px;color:#526273;margin:8px 0}
.product-weekly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.keyword-discovery-result .product-sales-stage{display:block}
@media(max-width:600px){.product-sales-stage,.product-word-strategy{padding:11px}.product-word-heading{align-items:flex-start}.product-word-heading .btn{min-height:40px}.product-stage-title{justify-content:flex-start}.product-word-strategy p{font-size:13px}.product-word-evidence{padding:9px}}
@media(max-width:600px){#linkProfileRows .profile-row{grid-template-columns:minmax(0,1fr)}#linkProfileRows .profile-row label{font-size:13px}#linkProfileRows .profile-row input,#linkProfileRows .profile-row select,#linkProfileRows .profile-row textarea{font-size:16px;min-height:44px;max-width:100%}}
@media(max-width:600px){.product-weekly-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.profile-advanced-grid{grid-template-columns:minmax(0,1fr)}.profile-advanced>summary{min-height:44px;display:flex;align-items:center}}
@media(max-width:600px){.keyword-fit-controls{align-items:flex-start;gap:7px}.keyword-fit-label{flex-basis:100%}.keyword-fit-options{width:100%;flex-wrap:wrap}.keyword-fit-choice{flex:1;min-height:44px;padding:8px 5px;font-size:12px;white-space:nowrap}.keyword-fit-save-status:empty{display:none}}
