/* Native SEO workspaces: inner surfaces and controls only. No module/grid geometry or architecture coordinates. */
#appShell :is(#opportunitiesDashboardView,#re342Workflow) {--re662-selected:color-mix(in srgb,var(--ruction-success) 12%,var(--ruction-surface-card));--re662-green:#22DB68;--re662-field:#737C85}
#appShell[data-theme=light] :is(#opportunitiesDashboardView,#re342Workflow) {--re662-green:#146C37;--re662-field:#727D86}

/* Roadmap toolbar and inspector retain actual selected nodes and diagram sizing. */
#appShell #opportunitiesDashboardView :is(.re305-toolbar,.re305-inspector-title,.re95-inspector-head,.re95-copyrow) {background:var(--ruction-surface-card)!important;background-image:none!important;border-color:var(--ruction-border)!important;color:var(--ruction-text-primary)!important}
#appShell #opportunitiesDashboardView .re305-toolbar {container-type:inline-size;gap:10px;box-shadow:none}
#appShell #opportunitiesDashboardView .re305-tabs {background:var(--ruction-surface-raised)!important;gap:5px;flex-wrap:wrap;min-width:0}
#appShell #opportunitiesDashboardView .re305-tabs button {color:var(--ruction-text-muted)!important;min-height:42px;white-space:normal}
#appShell #opportunitiesDashboardView .re305-tabs button[aria-selected=true] {background:var(--ruction-action)!important;color:var(--ruction-action-text)!important;box-shadow:none}
#appShell #opportunitiesDashboardView .re305-toolbar-actions button:not(#re94Generate),
#appShell #opportunitiesDashboardView :is(.re389-zoom-controls button,.re95-copyrow button,#re310Export) {background:var(--ruction-surface-raised)!important;color:var(--ruction-text-primary)!important;border-color:var(--ruction-border)!important;white-space:normal;min-height:42px}
#appShell #opportunitiesDashboardView #re94Generate {background:var(--ruction-action)!important;color:var(--ruction-action-text)!important;border-color:var(--ruction-action)!important;min-height:42px;white-space:normal}
@container(max-width:620px) {
  #appShell #opportunitiesDashboardView .re305-tabs,#appShell #opportunitiesDashboardView .re305-toolbar-actions {width:100%;min-width:0}
  #appShell #opportunitiesDashboardView .re305-tabs button {flex:1 1 100px}
  #appShell #opportunitiesDashboardView .re305-toolbar-actions button {flex:1 1 155px}
}
#appShell #opportunitiesDashboardView :is(#re94Status,#re305ToolbarStatus,.re305-inspector-title span,.re95-field small,.re95-field em,.re95-inspector-head p,.re310-summary,.re310-note,.re306-growth-coverage) {color:var(--ruction-text-muted)!important;line-height:1.55;overflow-wrap:anywhere}
#appShell #opportunitiesDashboardView :is(.re305-inspector-title h3,.re95-inspector-head h4,.re95-field strong,.re310-heading h3,.re306-opportunity-head strong) {color:var(--ruction-text-primary)!important;overflow-wrap:anywhere}
#appShell #opportunitiesDashboardView .re95-inspector-head {border:1px solid var(--ruction-border);border-radius:9px}
#appShell #opportunitiesDashboardView .re95-field {border-color:var(--ruction-border)!important;color:var(--ruction-text-primary)!important;overflow-wrap:anywhere;padding:10px 0}
#appShell #opportunitiesDashboardView .re95-inspector-tag {color:var(--re662-green)!important}
#appShell #opportunitiesDashboardView .re95-inspector-tag.is-proposed {color:var(--ruction-interactive-ink)!important}
#appShell #opportunitiesDashboardView .re95-copyrow {background:var(--ruction-surface-raised)!important;flex-wrap:wrap;gap:8px}
#appShell #opportunitiesDashboardView .re95-copyrow span {min-width:0;overflow-wrap:anywhere}
#appShell #opportunitiesDashboardView .re100-paper-card.is-selected {outline-color:var(--ruction-interactive-ink)!important}
#appShell #opportunitiesDashboardView :is(.re305-review-queue,.re305-disclosure>summary,.re306-opportunity,.re476-brief-row) {border-color:var(--ruction-border)!important}
#appShell #opportunitiesDashboardView .re306-growth-section .re306-opportunity {background:var(--ruction-surface-raised)!important;background-image:none!important;color:var(--ruction-text-primary)!important}
#appShell #opportunitiesDashboardView :is(.re306-growth-list,#re476BriefShelf) {min-width:0}
#appShell #opportunitiesDashboardView .re306-growth-list {grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr))}
#appShell #opportunitiesDashboardView :is(.re476-brief-row,.re477-brief-actions,.re389-zoom-controls) {flex-wrap:wrap}

/* Keep real evidence table semantics; scrolling belongs to the named region. */
#appShell #opportunitiesDashboardView .re310-scroll,#appShell #re342Workflow .re342-table-wrap {max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--ruction-border)!important;border-radius:8px;box-sizing:border-box}
#appShell #opportunitiesDashboardView .re310-table {min-width:610px;width:100%;table-layout:auto}
#appShell #opportunitiesDashboardView .re310-table :is(th,td),#appShell #re342Workflow .re342-table :is(th,td) {border-color:var(--ruction-border)!important;color:var(--ruction-text-primary)!important;padding:9px 11px;line-height:1.45;overflow-wrap:anywhere}
#appShell #opportunitiesDashboardView .re310-table th,#appShell #re342Workflow .re342-table th {background:var(--ruction-surface-raised)!important;text-align:left;font-weight:700;--ruction-body-size:12px}
#appShell #opportunitiesDashboardView .re310-table button:not(.re311-review) {color:var(--ruction-interactive-ink)!important;white-space:normal}
#appShell #opportunitiesDashboardView .re310-chip {background:var(--ruction-surface-raised)!important;color:var(--ruction-text-muted)!important;border:1px solid var(--ruction-border)}
#appShell #opportunitiesDashboardView :is(.re310-chip.is-warning,.re310-collision) {color:var(--ruction-attention)!important}

/* Keyword research: responsive inside its actual module, not the whole viewport. */
#appShell #re342Workflow #re342Report,#appShell #re342Workflow .re342-controls {min-width:0}
#appShell #re342Workflow .re342-page {container-type:inline-size;border-color:var(--ruction-border)!important;background:var(--ruction-surface-card)!important;color:var(--ruction-text-primary)!important;min-width:0}
#appShell #re342Workflow .re342-controls {grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));background:var(--ruction-surface-raised)!important;border-color:var(--ruction-border)!important;gap:10px}
#appShell #re342Workflow .re342-controls label {min-width:0}
#appShell #re342Workflow :is(.re342-toolbar,.re346-diagnostics,.re474-other-keywords>summary) {background:var(--ruction-surface-raised)!important;border-color:var(--ruction-border)!important;color:var(--ruction-text-primary)!important}
#appShell #re342Workflow .re342-head>div>span:first-child {color:var(--ruction-interactive-ink)!important}
#appShell #re342Workflow :is(.re342-note,.re474-keyword-notice,.re474-subtitle,.re342-page-summary small,.re346-diagnostic-line) {color:var(--ruction-text-muted)!important;line-height:1.5;overflow-wrap:anywhere}
#appShell #re342Workflow .re342-page>summary {gap:9px;flex-wrap:wrap;min-height:48px;padding:10px 13px}
#appShell #re342Workflow .re342-page-summary {flex:1 1 175px;min-width:0}
#appShell #re342Workflow .re342-page-summary strong {color:var(--ruction-text-primary)!important;--ruction-body-size:15px;overflow-wrap:anywhere}
#appShell #re342Workflow .re342-page-summary small {white-space:normal;text-overflow:clip}
#appShell #re342Workflow .re342-pill {background:var(--ruction-surface-raised)!important;color:var(--ruction-text-muted)!important;border:1px solid var(--ruction-border);white-space:normal;overflow-wrap:anywhere;max-width:100%}
#appShell #re342Workflow .re342-pill[data-re662-state=reviewed] {color:var(--ruction-interactive-ink)!important;border-color:var(--ruction-interactive-ink)}
#appShell #re342Workflow .re342-pill[data-re662-state=applied] {color:var(--re662-green)!important;border-color:var(--re662-green);background:var(--re662-selected)!important}
#appShell #re342Workflow .re342-pill:is([data-re662-state=queued],[data-re662-state=conflict]) {color:var(--ruction-attention)!important;border-color:var(--ruction-attention)}
#appShell #re342Workflow .re342-pill[data-re662-state=failed] {color:var(--ruction-error)!important;border-color:var(--ruction-error)}
#appShell #re342Workflow .re342-body {border-color:var(--ruction-border)!important;grid-template-columns:minmax(0,1fr);gap:13px;padding:12px}
#appShell #re342Workflow .re342-section-title {color:var(--ruction-text-primary)!important;--ruction-body-size:14px;font-weight:700}
#appShell #re342Workflow .re342-table {min-width:605px;width:100%;table-layout:auto;border-collapse:separate;border-spacing:0}
#appShell #re342Workflow .re342-table :is(th,td):is(:nth-child(3),:nth-child(4)) {font-variant-numeric:tabular-nums;text-align:right}
#appShell #re342Workflow .re342-table :is(th,td):is(:first-child,:last-child) {text-align:center}
#appShell #re342Workflow .re342-table td:nth-child(2) {min-width:180px}
#appShell #re342Workflow .re342-table td:nth-child(2) small {color:var(--ruction-text-muted)!important;display:block;line-height:1.45}
#appShell #re342Workflow .re342-table tr.re343-keyword-row:hover {background:var(--ruction-surface-raised)!important}
#appShell #re342Workflow .re342-table tr.re343-selected {background:var(--re662-selected)!important;box-shadow:inset 3px 0 var(--re662-green)}
#appShell #re342Workflow .re342-table tr.re343-primary {box-shadow:inset 4px 0 var(--re662-green)}
#appShell #re342Workflow .re342-table tr:focus-within {outline:2px solid var(--ruction-interactive-ink);outline-offset:-2px}
#appShell #re342Workflow .re342-table input:is([type=checkbox],[type=radio]) {appearance:auto;accent-color:var(--ruction-action);width:18px!important;height:18px!important;min-height:18px!important;margin:5px;cursor:pointer;padding:0!important}
#appShell #re342Workflow .re476-sort-heading {min-height:42px;color:var(--ruction-text-primary)!important;white-space:normal;text-align:right}
#appShell #re342Workflow .re476-sort-heading span:last-child {color:var(--ruction-interactive-ink)!important}
#appShell #re342Workflow .re474-other-keywords>summary {flex-wrap:wrap;min-height:44px;box-sizing:border-box}
#appShell #re342Workflow .re343-focus {background:var(--ruction-surface-raised)!important;border-color:var(--ruction-border)!important;flex-wrap:wrap;gap:6px}
#appShell #re342Workflow .re343-focus span {color:var(--ruction-text-muted)!important}
#appShell #re342Workflow .re343-focus strong {color:var(--ruction-text-primary)!important;overflow-wrap:anywhere}
#appShell #re342Workflow .re342-metadata {grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px}
#appShell #re342Workflow .re342-reviewactions {justify-content:flex-start;gap:8px;min-width:0}
#appShell #re342Workflow .re342-reviewactions>[role=status] {flex:1 1 100%;overflow-wrap:anywhere;line-height:1.5}
#appShell #re342Workflow :is(.re342-error,.re344-length-warning),#appShell #re342Workflow .re342-status[data-error=true] {color:var(--ruction-error)!important}
#appShell #re342Workflow :is(.re342-good,.re344-length-ok) {color:var(--re662-green)!important}
#appShell #re342Workflow :is(.re342-controls label,.re342-page label) {color:var(--ruction-text-primary)!important;min-width:0}
#appShell #re342Workflow :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {box-sizing:border-box;min-width:0;min-height:42px;background:var(--ruction-surface-raised)!important;color:var(--ruction-text-primary)!important;border:1px solid var(--re662-field)!important}
#appShell #re342Workflow :is(#re342Go,#re342Quote,.re342-reviewactions .re342-button),#appShell #opportunitiesDashboardView .re311-review {color:var(--ruction-action-text)!important;background:var(--ruction-action)!important;border-color:var(--ruction-action)!important;min-height:42px;white-space:normal}
#appShell #re342Workflow #re342Apply {background:var(--ruction-surface-card)!important;color:var(--ruction-interactive-ink)!important;border-color:var(--ruction-interactive-ink)!important;min-height:42px;white-space:normal}
@container(max-width:450px) {
  #appShell #re342Workflow .re342-metadata {grid-template-columns:minmax(0,1fr)}
  #appShell #re342Workflow .re342-metadata .re342-desc {grid-column:auto}
  #appShell #re342Workflow .re342-reviewactions button {flex:1 1 130px}
  #appShell #re342Workflow .re342-reviewactions>label {flex-basis:100%!important}
}

/* Existing strategy, page review, brief and editorial dialogs. */
#appShell #opportunitiesDashboardView .re305-dialog {color:var(--ruction-text-primary)!important;background:var(--ruction-surface-card)!important;background-image:none!important;border-color:var(--ruction-border)!important;box-sizing:border-box;max-width:calc(100vw - 24px);max-height:90dvh;overflow:auto;overscroll-behavior:contain;padding:clamp(14px,2.2vw,22px)}
#appShell #opportunitiesDashboardView .re305-dialog :is(.re305-dialog-head,.re305-dialog-actions,.re303-review-row,.re476-brief-preview,.re477-check) {border-color:var(--ruction-border)!important;gap:10px}
#appShell #opportunitiesDashboardView .re305-dialog :is(.re305-dialog-head h3,label,.re303-review-row strong) {color:var(--ruction-text-primary)!important;overflow-wrap:anywhere}
#appShell #opportunitiesDashboardView .re305-dialog :is(p,small) {color:var(--ruction-text-muted)!important;overflow-wrap:anywhere;line-height:1.5}
#appShell #opportunitiesDashboardView .re305-dialog :is(input,textarea,select) {min-width:0;max-width:100%;box-sizing:border-box;min-height:42px;background:var(--ruction-surface-raised)!important;color:var(--ruction-text-primary)!important;border-color:var(--re662-field)!important}
#appShell #opportunitiesDashboardView .re305-dialog :is(.re305-dialog-actions,.re308-decision-actions,.re95-type-buttons) {flex-wrap:wrap}
#appShell #opportunitiesDashboardView .re305-dialog :is(.re305-dialog-head button,.re308-decision-actions button,.re95-type-buttons button) {background:var(--ruction-surface-raised)!important;color:var(--ruction-text-primary)!important;border:1px solid var(--ruction-border)!important;min-height:42px;white-space:normal}
#appShell #opportunitiesDashboardView .re305-dialog :is(.re95-type-buttons .is-active,[data-re308-decision=approved],.re305-dialog-actions button,#re477Run) {background:var(--ruction-action)!important;color:var(--ruction-action-text)!important;border-color:var(--ruction-action)!important;min-height:42px;white-space:normal}
#appShell #opportunitiesDashboardView .re305-dialog [data-re308-decision=rejected] {color:var(--ruction-error)!important;border-color:var(--ruction-error)!important}
#appShell #opportunitiesDashboardView .re305-dialog :is(#re97CityError,.re476-conflict) {color:var(--ruction-error)!important}
@media(max-width:560px) {
  #appShell #opportunitiesDashboardView .re305-dialog .re303-review-row {grid-template-columns:minmax(0,1fr)}
  #appShell #opportunitiesDashboardView .re305-dialog .re305-dialog-actions button {flex:1 1 120px}
}

/* SEO publication review/history is body-mounted. Theme follows the native shell. */
body:has(#appShell) .re344-overlay {--re662-modal:#1C1F22;--re662-raised:#24282C;--re662-ink:#F4F6F7;--re662-muted:#ADB4BB;--re662-line:#393D42;--re662-focus:#56D2FF;--re662-error:#F47474}
body:has(#appShell[data-theme=light]) .re344-overlay {--re662-modal:#FFFFFF;--re662-raised:#EEF0F2;--re662-ink:#202328;--re662-muted:#58626D;--re662-line:#D8DCDF;--re662-focus:#006D94;--re662-error:#B8323D}
body:has(#appShell) .re344-overlay .re344-modal {background:var(--re662-modal)!important;background-image:none!important;color:var(--re662-ink)!important;border-color:var(--re662-line)!important;max-height:90dvh;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
body:has(#appShell) .re344-overlay .re344-modal :is(.re344-summary-list,.re346-diff-field,.re365-publish-event,.re344-logo) {background:var(--re662-raised)!important;color:var(--re662-ink)!important;border-color:var(--re662-line)!important}
body:has(#appShell) .re344-overlay .re344-modal :is(p,small,.re346-diff-field span,.re346-diff-field em) {color:var(--re662-muted)!important}
body:has(#appShell) .re344-overlay .re344-modal :is(h3,strong) {color:var(--re662-ink)!important}
body:has(#appShell) .re344-overlay .re344-modal :is(.re344-modal-header,.re344-summary-list>div,.re346-diff-page) {border-color:var(--re662-line)!important}
body:has(#appShell) .re344-overlay .re344-modal .re344-cancel {color:var(--re662-ink)!important;border-color:var(--re662-line)!important;background:var(--re662-raised)!important}
body:has(#appShell) .re344-overlay .re344-modal .re344-confirm {background:#0678A8!important;color:#fff!important;border-color:#0678A8!important}
body:has(#appShell) .re344-overlay .re344-modal .re344-confirm.re344-danger {background:#B8323D!important;border-color:#B8323D!important}
#appShell :is(#opportunitiesDashboardView,#re342Workflow) :is(button,input,select,textarea,summary,[role=region]):focus-visible {outline:2px solid var(--ruction-interactive-ink)!important;outline-offset:2px!important}
body:has(#appShell) .re344-overlay .re344-modal button:focus-visible {outline:2px solid var(--re662-focus)!important;outline-offset:2px!important}
@media(prefers-reduced-motion:reduce) {#appShell #re342Workflow .re343-keyword-row {transition:none!important}}
