/* Scoped shared detail UI; does not change the host tools' table columns. */
div.ssa-kd-row{grid-column:1/-1;min-width:0}
.ssa-kd-panel [hidden]{display:none!important}.ssa-kd-hint{position:sticky;left:0;padding:10px 16px!important;margin:0!important;background:#edf6fa;color:#4a7183!important;font:12px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:normal!important}.ssa-kd-panel .ssa-kd-market-apply{background:#edf6fa;border:1px solid #ccdee8;border-radius:6px;font-size:11px;line-height:1.5;padding:4px 6px;color:#316f89}
button.ssa-kd-trigger{display:inline-flex!important;align-items:center;gap:8px;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#246f8b!important;font:inherit!important;font-weight:600!important;text-align:left;line-height:1.5!important;white-space:normal!important;cursor:pointer;max-width:100%;height:auto!important;min-height:0!important}
.ssa-kd-trigger span{color:inherit!important;font:inherit!important;overflow-wrap:anywhere}.ssa-kd-trigger svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;opacity:.7}.ssa-kd-trigger:hover span{text-decoration:underline}.ssa-kd-trigger[aria-expanded=true]{color:#12495f!important}
.ssa-kd-trigger:focus-visible,.ssa-kd-panel :focus-visible{outline:2px solid #2786a1!important;outline-offset:3px}
tr.ssa-kd-row>td{padding:0!important;background:#f1f7fa!important;border-bottom:1px solid #d6e6ed!important;white-space:normal!important;text-align:left!important;position:relative}
.ssa-kd-panel,.ssa-kd-panel *{box-sizing:border-box}.ssa-kd-panel{position:sticky;left:0;max-width:100%;padding:18px 20px!important;color:#234454;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:normal;background:#f1f7fa;text-align:left}
.ssa-kd-panel button,.ssa-kd-panel select{font:inherit;box-shadow:none;text-transform:none;letter-spacing:normal;min-width:0;height:auto;margin:0;cursor:pointer}
.ssa-kd-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.ssa-kd-head strong{font-size:16px!important;color:#193d50;overflow-wrap:anywhere}.ssa-kd-head small{display:block;color:#68818d;font-size:12px;margin-top:2px}
.ssa-kd-panel .ssa-kd-close{padding:5px 10px;border:1px solid #d4e3eb;border-radius:8px;background:#fff;color:#52707e;white-space:nowrap;font-size:12px;flex:none}
.ssa-kd-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:16px}.ssa-kd-section{min-width:0;background:#fff;border:1px solid #dbe7ed;border-radius:12px;padding:14px;display:flex;flex-direction:column;height:330px;overflow:hidden;box-shadow:0 2px 5px #23445404}
.ssa-kd-section-head h3{margin:0 0 8px!important;font-family:inherit!important;font-size:14px!important;line-height:1.5!important;color:#284d60!important;font-weight:700!important}.ssa-kd-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px;flex:none}.ssa-kd-field{display:flex;align-items:center;gap:4px;margin:0!important;font-size:11px!important;min-width:0}.ssa-kd-field>span{color:#667e8b;white-space:nowrap}.ssa-kd-panel .ssa-kd-field select{padding:4px 18px 4px 6px!important;border:1px solid #d6e3e9!important;border-radius:6px!important;background-color:#fff!important;color:#365b6e!important;font-size:12px!important;width:auto!important;max-width:140px;line-height:1.5!important;min-height:28px!important}.ssa-kd-scope{font-size:12px;color:#5b7e8e;margin-right:auto}
.ssa-kd-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b7cdd7 transparent}.ssa-kd-status{font-size:11px!important;margin:7px 0 0!important;color:#738a96!important;line-height:1.4!important;flex:none}.ssa-kd-metric{display:flex;gap:8px;align-items:baseline}.ssa-kd-metric strong{font-size:23px!important;color:#215b73}.ssa-kd-metric span{font-size:11px;color:#728996}.ssa-kd-content svg{display:block;width:100%;max-height:188px;overflow:visible}.ssa-kd-chart-note{font-size:11px!important;color:#728996!important;margin:0!important}
.ssa-kd-serp-list{list-style:none!important;margin:0!important;padding:0!important}.ssa-kd-serp-list>li{display:flex!important;gap:10px;padding:10px 4px!important;border-bottom:1px solid #edf2f5;margin:0!important}.ssa-kd-serp-list>li:first-child{padding-top:2px!important}.ssa-kd-rank{width:24px;height:24px;flex:none;display:grid;place-items:center;font-size:12px;border-radius:7px;background:#edf6f9;color:#35809c}.ssa-kd-serp-copy{min-width:0;flex:1}.ssa-kd-panel a.ssa-kd-result-link{display:block!important;font-size:13px!important;line-height:1.4!important;color:#216f91!important;text-decoration:none;overflow-wrap:anywhere;font-weight:600}.ssa-kd-result-link:hover{text-decoration:underline!important}.ssa-kd-domain{display:block;font-size:11px!important;color:#7c939e!important;overflow-wrap:anywhere;margin-top:3px}.ssa-kd-panel details{padding:0;margin:3px 0 0;border:0;background:none}.ssa-kd-panel summary{font-size:11px;color:#648795;cursor:pointer}.ssa-kd-panel details p{font-size:12px!important;line-height:1.6!important;margin:4px 0!important;color:#576f7c}.ssa-kd-limited{display:block;margin-top:8px;font-size:11px;color:#7b8e98}
.ssa-kd-loading,.ssa-kd-empty,.ssa-kd-error{padding:16px 0!important;font-size:13px!important;line-height:1.7!important;color:#637e8b!important;margin:0!important}.ssa-kd-error{color:#ac4d3c!important}.ssa-kd-loading:before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid #d6e7ee;border-top-color:#2786a1;border-radius:50%;animation:ssa-kd-spin .8s linear infinite}
.ssa-kd-panel .ssa-kd-query,.ssa-kd-panel .ssa-kd-retry{display:inline-block!important;border:1px solid #bcd7e3!important;border-radius:8px!important;background:#eaf5fa!important;color:#246f8b!important;padding:8px 12px!important;font-size:12px!important;line-height:1.5!important;text-decoration:none!important}.ssa-kd-footer{font-size:11px;color:#788f9c;margin-top:10px;line-height:1.5}.ssa-kd-tabs{display:none}
@keyframes ssa-kd-spin{to{transform:rotate(360deg)}}
.ssa-kd-panel .ssa-kd-section{height:300px}.ssa-kd-panel .ssa-kd-metric{line-height:1.3;margin:0}.ssa-kd-panel .ssa-kd-content svg{max-height:148px}.ssa-kd-panel .ssa-kd-head{line-height:1.5}.ssa-kd-panel .ssa-kd-head small{margin:2px 0 0}
.ssa-kd-trend .ssa-kd-content{display:flex;flex-direction:column;overflow:hidden}.ssa-kd-trend .ssa-kd-content svg{flex:1;min-height:0}.ssa-kd-trend .ssa-kd-metric,.ssa-kd-trend .ssa-kd-chart-note{flex:none}
@media(max-width:700px){.ssa-kd-panel{padding:12px!important}.ssa-kd-grid{display:block}.ssa-kd-tabs{display:flex;gap:4px;background:#e3eef3;padding:3px;border-radius:9px;margin-bottom:10px}.ssa-kd-panel .ssa-kd-tab{flex:1;border:0;background:transparent;padding:7px!important;border-radius:7px;color:#617f8f;font-size:12px}.ssa-kd-panel .ssa-kd-tab[aria-selected=true]{background:#fff;color:#246f8b;box-shadow:0 1px 4px #2449540b}.ssa-kd-panel[data-tab=trend] .ssa-kd-serp,.ssa-kd-panel[data-tab=serp] .ssa-kd-trend{display:none}.ssa-kd-section{height:330px;padding:12px}.ssa-kd-head strong{font-size:14px!important}.ssa-kd-head small{font-size:11px}.ssa-kd-field>span{display:none}.ssa-kd-panel .ssa-kd-field select{max-width:118px}.ssa-kd-controls{gap:5px}.ssa-kd-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ssa-kd-loading:before{animation:none}}

/* Consistent control rail and status baseline, isolated from host theme styles. */
:is([data-ssa-adwords-planner],[data-ssa-keyword-tool],[data-ssa-keywords],[data-ssa-keyword-suggestions],[data-ssa-domain-overview]) table tr.ssa-kd-row>td[colspan]{padding:0!important;white-space:normal!important;text-align:left!important}
.ssa-kd-panel{container-type:inline-size}
.ssa-kd-panel button,.ssa-kd-panel select{font-weight:500!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;margin:0!important;float:none!important}
.ssa-kd-panel .ssa-kd-head{margin-bottom:16px}
.ssa-kd-panel .ssa-kd-close{display:grid!important;place-items:center;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:9px!important;font-size:21px!important;line-height:1!important}
.ssa-kd-grid{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
.ssa-kd-panel .ssa-kd-section{height:360px;padding:16px;border-radius:14px}
.ssa-kd-section-head{flex:none;margin-bottom:12px}
.ssa-kd-section-head h3{margin:0!important;padding:0!important;line-height:20px!important;text-transform:none!important}
.ssa-kd-controls{align-items:flex-end;flex-wrap:nowrap;min-height:54px;margin-bottom:14px}
.ssa-kd-panel .ssa-kd-field{display:flex!important;flex-direction:column;align-items:stretch!important;gap:5px;padding:0!important;flex:1;line-height:14px!important}
.ssa-kd-panel .ssa-kd-field>span{display:block!important;font-size:11px!important;font-weight:500!important;line-height:14px!important;color:#718996!important}
.ssa-kd-panel .ssa-kd-field select{display:block!important;padding:0 24px 0 10px!important;border-radius:8px!important;width:100%!important;max-width:100%!important;height:34px!important;min-height:34px!important;line-height:32px!important;text-overflow:ellipsis}
.ssa-kd-serp .ssa-kd-field:nth-child(3){flex:.72}
.ssa-kd-panel .ssa-kd-market-apply{flex:none;display:inline-flex!important;align-items:center;justify-content:center;background:#eaf5fa!important;border:1px solid #c6dfe9!important;border-radius:8px!important;font-size:11px!important;line-height:1.3!important;padding:0 10px!important;height:34px!important;min-height:34px!important;color:#276c86!important;white-space:nowrap!important}
.ssa-kd-panel .ssa-kd-market-apply:hover{background:#dceff6!important}
.ssa-kd-trend .ssa-kd-field{flex:0 0 112px}
.ssa-kd-scope{font-size:11px!important;line-height:20px!important;margin:0 auto 5px 0!important;padding:3px 8px;background:#f1f7fa;border-radius:6px;white-space:nowrap}
.ssa-kd-content{scrollbar-gutter:stable}
.ssa-kd-panel .ssa-kd-status{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px!important;margin:12px 0 0!important;padding:10px 0 0!important;border-top:1px solid #edf2f5;line-height:16px!important;min-height:27px}
.ssa-kd-status time{font-size:10px!important;color:#738a96!important;white-space:nowrap}
.ssa-kd-status-badge{font-size:10px!important;font-weight:500!important;line-height:16px!important;color:#387a73!important;background:#edf7f3;padding:1px 6px;border-radius:5px;white-space:nowrap}
.ssa-kd-trend .ssa-kd-content{scrollbar-gutter:auto}
.ssa-kd-panel .ssa-kd-metric{gap:9px;flex-wrap:wrap;margin-bottom:6px}
.ssa-kd-panel .ssa-kd-metric strong{font-size:26px!important;line-height:1.2!important;font-variant-numeric:tabular-nums}
.ssa-kd-panel .ssa-kd-metric span{font-size:10px!important}
.ssa-kd-panel .ssa-kd-content svg{height:172px;max-height:none}
.ssa-kd-panel .ssa-kd-chart-note{font-size:10px!important;line-height:16px!important;margin:4px 0 0!important;white-space:nowrap}
.ssa-kd-panel a.ssa-kd-result-link{font-size:12px!important;line-height:1.5!important}
.ssa-kd-panel .ssa-kd-domain,.ssa-kd-panel summary{font-size:10px!important;line-height:1.5!important}
.ssa-kd-panel .ssa-kd-query,.ssa-kd-panel .ssa-kd-retry{align-self:flex-start;height:auto!important;min-height:0!important}
.ssa-kd-footer{font-size:10px!important;line-height:1.6!important;margin-top:12px}
@container(max-width:850px){.ssa-kd-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ssa-kd-controls{min-height:94px}.ssa-kd-serp .ssa-kd-controls{display:grid;grid-template-columns:1.35fr 1fr .85fr;gap:6px}.ssa-kd-panel .ssa-kd-market-apply{grid-column:1/-1}.ssa-kd-trend .ssa-kd-controls{align-items:flex-start}.ssa-kd-trend .ssa-kd-scope{margin-top:23px!important}.ssa-kd-panel .ssa-kd-section{height:390px}}
@media(max-width:700px){.ssa-kd-panel .ssa-kd-section{height:360px;padding:12px}.ssa-kd-trend .ssa-kd-controls{min-height:54px;align-items:flex-end}.ssa-kd-trend .ssa-kd-scope{margin:0 auto 5px 0!important}.ssa-kd-trend .ssa-kd-field{flex-basis:100px}.ssa-kd-panel .ssa-kd-field select{padding-left:7px!important}.ssa-kd-panel .ssa-kd-chart-note{font-size:9px!important}}
