.market-table-page{max-width:1200px}.market-table-page .card-head{align-items:flex-start;gap:20px}.market-table-page .card-head p{margin:6px 0 0}.market-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:26px 0}.market-summary>div{padding:18px 20px;background:#f5f5ef;border-radius:10px;border:1px solid var(--line)}.market-summary strong{display:block;font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums}.market-summary span{display:block;color:var(--muted);margin-top:6px;font-size:12px}.market-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin:22px 0}.market-controls label{flex:1 1 220px;min-width:0}.market-controls>button{min-height:43px}.region-count-table th:last-child,.region-count-table td:last-child{text-align:right;width:210px;font-variant-numeric:tabular-nums}.region-count-table td{font-size:14px}.market-footnote{margin:18px 0 0;font-size:12px}.market-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.market-pagination{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:flex-end;margin:16px 0;color:var(--muted)}.market-pagination button{padding:7px 12px}.phrase-edit-table td:first-child{width:100%;max-width:none}.phrase-edit-table input{min-width:0;padding:9px 11px;min-height:40px}.phrase-edit-table td:last-child{white-space:nowrap}.phrase-delete{min-height:40px}.market-table-page fieldset{border:0;padding:0;margin:0}@media(max-width:760px){.market-summary{gap:8px}.market-summary>div{padding:12px 10px}.market-summary strong{font-size:24px}.market-summary span{font-size:10px}.market-table-page .card-head{flex-direction:column;gap:10px}.market-controls{gap:10px}.market-controls label{flex-basis:100%}.market-actions>button{flex:1 1 100%}.region-count-table th:last-child{width:135px}.region-count-table th,.region-count-table td,.phrase-edit-table th,.phrase-edit-table td{padding:10px 5px}.phrase-delete{font-size:11px;padding:8px}.market-pagination{justify-content:center}.market-table-page .table-wrap{overflow:visible}.region-count-table,.phrase-edit-table{table-layout:fixed}.phrase-edit-table th:last-child:not(:first-child),.phrase-edit-table td:last-child:not(:first-child){width:78px}.phrase-edit-table td{overflow-wrap:anywhere}.market-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}

.wordstat-panel{border-top:1px solid var(--line);padding-top:20px;margin-bottom:22px}.frequency-heading{display:flex;gap:20px;align-items:start;justify-content:space-between}.frequency-heading p{font-size:12px;margin:6px 0}.frequency-heading button{flex-shrink:0}.frequency-filters{display:flex;gap:16px;margin:14px 0;max-width:600px}.frequency-filters label{flex:1;min-width:0}.frequency-explanation,.frequency-status{font-size:12px;max-width:85ch}.frequency-config-fields{display:grid;grid-template-columns:2fr 2fr 1fr 1fr;gap:14px;margin:14px 0}.wordstat-settings form>p{font-size:12px;max-width:85ch}.frequency-badge{display:inline-block;border-radius:5px;padding:3px 7px;font-size:11px;white-space:nowrap;background:#eef0e9;color:#596151}.frequency-high{background:#e7eee6;color:#2d593b}.frequency-medium{background:#f6ecd7;color:#7a591c}.frequency-low{background:#e9eff6;color:#435e7d}.wordstat-count{font-variant-numeric:tabular-nums}.wordstat-count small,.wordstat-date small{display:block;color:var(--muted);font-size:10px;margin-top:4px;white-space:nowrap}#wordstat-panel~form .phrase-edit-table td:first-child{width:auto}#wordstat-panel~form .phrase-edit-table th:first-child{width:48%}#wordstat-panel~form .phrase-edit-table td{vertical-align:middle}#wordstat-panel~form .phrase-edit-table th{white-space:nowrap}#wordstat-panel~form .table-wrap{overflow:auto}#wordstat-panel~form .phrase-edit-table{min-width:780px;table-layout:auto}@media(max-width:1000px){.frequency-config-fields{grid-template-columns:1fr 1fr}}@media(max-width:760px){.frequency-heading{display:block}.frequency-heading button{margin-top:8px}.frequency-config-fields{grid-template-columns:1fr}.frequency-filters{gap:8px}.frequency-filters select{font-size:12px}#wordstat-panel~form .phrase-edit-table th:last-child,#wordstat-panel~form .phrase-edit-table td:last-child{width:78px}}

/* Keep the panel palette and typography; the two source selectors carry hierarchy. */
.semantic-switch{display:flex;gap:8px;max-width:1200px;margin:0 0 20px;border-bottom:1px solid var(--line);padding-bottom:12px}
.semantic-switch button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;flex:0 1 290px;min-width:0;text-align:left;padding:13px 18px;background:var(--surface);border-color:var(--line);color:var(--ink);font-weight:400}
.semantic-switch button strong{font-size:15px}.semantic-switch button span{font-size:12px;color:var(--muted)}
.semantic-switch button[aria-selected="true"]{background:#eaf0e9;border-color:var(--green);box-shadow:inset 0 -3px var(--green)}
.semantic-switch button:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.semantic-description{font-size:13px;max-width:78ch;color:var(--muted);margin-bottom:0}
.semantic-seo-table{min-width:850px;table-layout:fixed}.semantic-seo-table th:nth-child(1){width:29%}.semantic-seo-table th:nth-child(2){width:15%}.semantic-seo-table th:nth-child(3){width:24%}.semantic-seo-table th:nth-child(4){width:14%}.semantic-seo-table th:nth-child(5){width:7%}.semantic-seo-table th:nth-child(6){width:11%}
.semantic-seo-table td{overflow-wrap:anywhere;vertical-align:middle}.semantic-seo-table td:first-child{font-size:13px}.semantic-seo-table a{font-size:12px}.semantic-intent{font-size:11px;color:var(--muted)}
.market-table-page .semantic-seo-wrap{overflow:auto}
@media(max-width:760px){.semantic-switch{gap:6px}.semantic-switch button{flex:1;padding:11px 12px}.semantic-switch button span{font-size:11px}}

.ad-positions-panel{border-top:1px solid var(--line,#d5ded8);padding:18px 0 8px;margin-top:14px}
.ad-position-controls{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
.ad-position-controls>div{flex:1 1 280px}.ad-position-controls p{margin:6px 0 0;max-width:620px}
.ad-position-controls label{display:grid;gap:6px}.ad-position-cell{min-width:125px}.ad-position-cell small{display:block;margin-top:5px;font-size:11px;color:var(--muted,#6a7970)}
.ad-position-cell strong{font-size:18px;color:#315940;font-variant-numeric:tabular-nums}.ad-position-cell details{font-size:12px;font-weight:400}.ad-position-cell summary{cursor:pointer}
.phrase-edit-table:has(.ad-position-cell) td:first-child{min-width:250px}
.phrase-edit-table .wordstat-date{white-space:nowrap}
