/*
 * Tongzhuo GEO product UI
 *
 * This file is the single visual compatibility layer for the private-deployment
 * admin. Business templates and event handlers stay in app.js; this layer only
 * normalizes hierarchy, density, readability and responsive behavior.
 */

:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --ink: #26354d;
  --ink-strong: #12223d;
  --muted: #64748b;
  --muted-2: #8a98ab;
  --line: #e1e7f0;
  --line-strong: #ced8e6;
  --nav: #0c192d;
  --nav-soft: #172844;
  --nav-muted: #9aaac0;
  --blue: #376fe8;
  --blue-hover: #285ed3;
  --blue-soft: #edf3ff;
  --green: #18865f;
  --green-soft: #eaf8f2;
  --amber: #b86d0e;
  --amber-soft: #fff7e8;
  --red: #c7434d;
  --red-soft: #fff0f2;
  --purple: #7057c7;
  --purple-soft: #f4f1ff;
  --shadow-sm: 0 1px 2px rgba(18, 34, 61, .025), 0 8px 22px rgba(18, 34, 61, .045);
  --shadow-md: 0 16px 42px rgba(18, 34, 61, .09);
  --shadow-lg: 0 28px 80px rgba(10, 25, 47, .18);
  --radius: 14px;
  --radius-sm: 9px;
  --sidebar-width: 248px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

html { background: var(--bg); }

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 78% -8%, rgba(74, 124, 232, .09), transparent 32rem),
    linear-gradient(180deg, #f8faff 0, var(--bg) 34rem);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: rgba(55, 111, 232, .82); }

.route-view { min-width: 0; animation: product-view-in .18s ease-out; }

@keyframes product-view-in {
  from { opacity: .45; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Application shell */
.sidebar {
  width: var(--sidebar-width);
  background:
    radial-gradient(circle at 100% 0, rgba(67, 116, 222, .21), transparent 19rem),
    linear-gradient(180deg, #10203a 0%, #0c192d 62%, #091426 100%);
  border-right: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 12px 0 38px rgba(9, 22, 43, .12);
}

.brand { min-height: 76px; padding: 0 20px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; box-shadow: 0 8px 22px rgba(34, 83, 188, .32); }
.brand strong { font-size: 16px; letter-spacing: .2px; }
.brand small { margin-top: 2px; font-size: 11px; }

.workspace-switcher {
  margin: 16px 14px 12px;
  padding: 12px;
  border-color: rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
}
.workspace-avatar { width: 32px; height: 32px; border-radius: 9px; }
.workspace-switcher b { font-size: 12px; }
.workspace-switcher small { margin-top: 2px; font-size: 10px; }

.nav-main,
.nav-secondary { padding-right: 13px; padding-left: 13px; }

.nav-main a,
.nav-secondary a {
  min-height: 45px;
  margin: 3px 0;
  padding: 0 12px;
  border-radius: 10px;
  color: #a8b7cc;
  font-size: 14px;
}

.nav-section-label {
  margin: 16px 12px 5px;
  color: #71829d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-effect-group { display: grid; margin: 3px 0; }
.nav-effect-toggle {
  display: flex;
  min-height: 45px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #3f506c;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}
.nav-effect-toggle:hover,
.nav-effect-group[open] > .nav-effect-toggle,
.nav-effect-group.active > .nav-effect-toggle {
  color: #294fc8;
  background: #f4f7ff;
}
.nav-effect-toggle::-webkit-details-marker { display: none; }
.nav-effect-toggle::marker { content: ""; }
.nav-effect-toggle > span:nth-child(2) { flex: 1; }
.nav-effect-chevron { color: #657692; font-size: 16px; font-style: normal; transition: color .16s ease, transform .16s ease; }
.nav-effect-toggle:hover .nav-effect-chevron,
.nav-effect-group[open] .nav-effect-chevron,
.nav-effect-group.active .nav-effect-chevron { color: #294fc8; }
.nav-effect-group[open] .nav-effect-chevron { transform: rotate(180deg); }
.nav-effect-items { display: none; padding: 2px 0 3px 18px; }
.nav-effect-group[open] .nav-effect-items { display: grid; }
.nav-effect-items a { min-height: 39px; font-size: 13px; }
.nav-effect-items .nav-icon { width: 18px; height: 18px; margin-right: 10px; }

.nav-main a:hover,
.nav-secondary a:hover { color: #fff; background: rgba(255, 255, 255, .075); }

.nav-main a.active,
.nav-secondary a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(65, 116, 231, .28), rgba(65, 116, 231, .10));
  box-shadow: inset 3px 0 0 #78a0ff, 0 7px 18px rgba(5, 17, 38, .13);
}

.nav-icon { width: 20px; height: 20px; margin-right: 12px; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-count { min-width: 22px; padding: 2px 7px; font-size: 11px; }
.nav-secondary em { font-size: 10px; }
.deploy-badge { gap: 8px; font-size: 10px; }

.main-column { min-width: 0; margin-left: var(--sidebar-width); }

.topbar {
  min-height: 76px;
  padding: 0 32px;
  border-bottom-color: rgba(207, 217, 231, .86);
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 3px 16px rgba(18, 34, 61, .035);
}

.topbar h1 { color: #40516b; font-size: 15px; font-weight: 650; letter-spacing: -.1px; }
.breadcrumbs { display: none; }
.topbar-actions { gap: 8px; }
.assistant-pill,
.soft-button,
.search-trigger { min-height: 40px; border-radius: 10px; font-size: 12px; }
.search-trigger { min-width: 196px; }
.icon-button,
.avatar-button { width: 40px; height: 40px; border-radius: 10px; }

#main-content { min-height: calc(100vh - 76px); padding: 30px 32px 56px; }
.page-container { max-width: 1500px; }

.page-head {
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.page-head > div:first-child {
  position: relative;
  min-width: 0;
  padding-left: 16px;
}

.page-head > div:first-child::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #4b80ef, #6d56d8);
  content: "";
}

.page-head h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.65px; line-height: 1.25; }
.page-head p { max-width: 900px; color: #65758c; font-size: 13px; line-height: 1.65; }
.page-actions { flex-wrap: wrap; justify-content: flex-end; gap: 9px; }

/* Readable typography: legacy feature modules used 7–10px helper text. */
#view.route-view p,
#modal-root p { font-size: 13px; line-height: 1.65; }

#view.route-view small,
#modal-root small { font-size: 12px; line-height: 1.5; }

#view.route-view :is(.section-kicker, .eyebrow, [class$="-kicker"], [class$="-eyebrow"]),
#modal-root :is(.section-kicker, .eyebrow, [class$="-kicker"], [class$="-eyebrow"]) {
  font-size: 11px;
  letter-spacing: .1em;
}

/* Shared surfaces */
.card {
  border-color: var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-sm);
}

.card:hover { border-color: var(--line); }
.card-header { min-height: 68px; gap: 18px; padding: 0 22px; }
.card-header h3 { font-size: 16px; letter-spacing: -.15px; }
.card-header p { margin-top: 3px; font-size: 12px; line-height: 1.55; }
.card-body { padding: 22px; }
.card-footer { padding: 15px 22px; }
.stack { gap: 18px; }

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.text-button {
  min-height: 40px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
}

.primary-button { padding: 0 16px; background: linear-gradient(135deg, #477cf0, #3164dc); box-shadow: 0 7px 17px rgba(55, 111, 232, .18); }
.primary-button:hover { background: linear-gradient(135deg, #3c70e4, #2858c9); transform: translateY(-1px); }
.secondary-button { padding: 0 15px; background: #fff; }
.ghost-button { padding: 0 14px; }
.text-button { min-height: 32px; padding: 0 5px; }
.button-small { min-height: 34px; padding: 0 11px; border-radius: 8px; font-size: 12px; }

.status-badge,
.small-tag,
.source-tag { min-height: 25px; padding: 3px 9px; font-size: 11px; line-height: 1.2; }
.source-tag { border-radius: 7px; }

.toolbar-card {
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .84);
}

.field { gap: 7px; }
.field label,
#modal-root .field label { color: #45566f; font-size: 12px; font-weight: 650; }
.field small { font-size: 11px; }
.input,
.select { height: 42px; padding: 0 12px; border-radius: 9px; color: var(--ink-strong); background-color: #fff; font-size: 13px; }
.textarea { min-height: 112px; padding: 11px 12px; border-radius: 9px; font-size: 13px; line-height: 1.65; }
.input:hover,
.select:hover,
.textarea:hover { border-color: #bac7d8; }
.input:focus,
.select:focus,
.textarea:focus { border-color: #7198ec; box-shadow: 0 0 0 3px rgba(55, 111, 232, .10); }
.form-hint,
.field-help { font-size: 12px; line-height: 1.55; }

.tabs-row { gap: 14px; margin-bottom: 18px; }
.tabs { gap: 3px; padding: 4px; border-color: #dfe6ef; border-radius: 10px; background: #eef2f7; }
.tab-button { min-height: 36px; padding: 0 13px; border-radius: 7px; font-size: 12px; }
.tab-button.active { color: #183760; box-shadow: 0 2px 8px rgba(23, 48, 83, .07); }
.filter-tools { flex-wrap: wrap; gap: 8px; }
.compact-search .input { width: 238px; height: 38px; }

.table-card { border-radius: var(--radius); }
.table-scroll { scrollbar-color: #cbd5e1 transparent; }
.data-table th {
  height: 46px;
  padding: 0 17px;
  color: #607087;
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}
.data-table td { height: 68px; padding: 11px 17px; color: #40516a; font-size: 13px; }
.data-table tbody tr { transition: background .14s ease; }
.data-table tbody tr:hover { background: #f8fbff; }
.data-table small,
.table-subtext { font-size: 11px !important; }
.article-title-cell button { font-size: 13px; line-height: 1.45; }
.article-title-cell small { margin-top: 5px; }
.table-actions { gap: 6px; }
.link-button { padding: 5px 6px; font-size: 12px; font-weight: 600; }
.content-article-table { min-width: 1080px; }
.content-plan-table { min-width: 980px; }
.topic-center-table { min-width: 900px; }
.topic-management-table { min-width: 940px; }
.topic-row-actions { min-width: 230px; }

.bulk-select-row,
.selection-bar {
  border-color: #d7e1ef;
  border-radius: 10px;
  background: #f8faff;
}
.select-all-control { gap: 8px; font-size: 12px; }
.select-all-control small { font-size: 11px; }
.selection-bar { min-height: 60px; bottom: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .96); }
.checkbox { width: 18px; height: 18px; }

.empty-state { min-height: 250px; padding: 34px; }
.empty-state span { width: 54px; height: 54px; border-radius: 15px; background: #f0f4fa; }
.empty-state h3 { font-size: 16px; }
.empty-state p { max-width: 520px; margin: 7px auto 16px; font-size: 13px; }
.privacy-note,
.security-inline,
.model-note { border-radius: 10px; font-size: 12px; line-height: 1.6; }

/* Dashboard */
.route-dashboard .metric-grid { gap: 14px; margin-bottom: 18px; }
.route-dashboard .metric-card {
  min-height: 132px;
  padding: 19px;
  border-top: 3px solid #5c83e9;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fbfdff);
}
.route-dashboard .metric-card:nth-child(2) { border-top-color: #38a57a; }
.route-dashboard .metric-card:nth-child(3) { border-top-color: #6b80c9; }
.route-dashboard .metric-card:nth-child(4) { border-top-color: #8b6bd4; }
.route-dashboard .metric-card::after { right: -34px; bottom: -48px; width: 116px; height: 116px; opacity: .72; }
.metric-top { font-size: 13px; }
.metric-icon { width: 36px; height: 36px; border-radius: 10px; }
.metric-value { margin-top: 10px; font-size: 32px; }
.metric-note { margin-top: 8px; font-size: 12px; }

.workflow-card { margin-bottom: 18px; }
.workflow-steps { gap: 7px; padding: 20px 22px 22px; }
.workflow-step { min-width: 105px; padding: 6px 4px; border-radius: 11px; }
.workflow-step:hover { background: #f7faff; }
.workflow-step > span { width: 46px; height: 46px; border-radius: 13px; }
.workflow-step strong { font-size: 13px; }
.workflow-step small { margin-top: 4px; font-size: 11px; }
.workflow-arrow { color: #c3cddd; }

.dashboard-grid { grid-template-columns: minmax(0, 1.55fr) minmax(310px, .78fr); gap: 18px; }
.todo-list { padding: 5px 22px 12px; }
.todo-item { min-height: 74px; gap: 13px; }
.todo-icon { width: 38px; height: 38px; border-radius: 10px; }
.todo-copy strong { font-size: 13px; }
.todo-copy span { margin-top: 4px; font-size: 12px; }
.todo-meta b { font-size: 20px; }
.quick-grid { gap: 10px; padding: 18px 22px 22px; }
.quick-action { min-height: 104px; padding: 15px; border-radius: 11px; background: #f8faff; }
.quick-action b { font-size: 13px; }
.quick-action small { font-size: 11px; }
.system-list { padding: 8px 22px 15px; }
.system-item { min-height: 59px; }
.system-name b { font-size: 12px; }
.system-name small { font-size: 11px; }
.activity-list { padding: 10px 22px 18px; }
.activity-copy b { font-size: 12px; }
.activity-copy p { font-size: 11px !important; }

/* Topic planning */
.route-planning .business-scope-card {
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.35fr) auto auto;
  gap: 18px;
  margin-bottom: 16px;
  padding: 17px 18px;
  border-color: #d9e4f4;
  background: linear-gradient(110deg, #f7faff, #fff 46%);
}
.business-scope-copy b { font-size: 13px; }
.business-scope-copy span { margin-top: 4px; font-size: 12px; }
.business-scope-stats { gap: 16px; font-size: 12px; }
.business-scope-stats b { font-size: 16px; }
.business-scope-actions { flex-wrap: wrap; }
.topic-center-tab-row { margin-bottom: 18px; }
.topic-center-tabs { max-width: 100%; overflow-x: auto; }
.topic-center-tabs .tab-button { flex: 0 0 auto; min-height: 40px; padding: 0 16px; font-size: 13px; }
.keyword-foundation-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.keyword-foundation-grid > .card { min-width: 0; margin-bottom: 0; overflow: hidden; }
.keyword-foundation-grid > .card .card-header { position: relative; padding-left: 62px; }
.keyword-foundation-grid > .card .card-header::before { position: absolute; left: 20px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #3567c8; background: #e9f1ff; font-size: 11px; font-weight: 800; content: "01"; }
.keyword-foundation-grid > .seed-manager-card .card-header::before { color: #208065; background: #e8f7f1; content: "02"; }
.keyword-manager-card,
.seed-manager-card { margin-bottom: 16px; }
.keyword-manager-body { padding: 18px; }
.keyword-chip-list { gap: 8px; }
.keyword-chip { min-height: 36px; padding: 6px 9px; border-radius: 9px; background: #f8faff; }
.keyword-name-button { max-width: 300px; font-size: 12px; }
.keyword-chip small { font-size: 11px; }
.keyword-selection-hint,
.form-hint { font-size: 12px; }
.seed-candidate-list { padding: 5px 18px 2px; }
.seed-candidate-row { min-height: 56px; }
.seed-candidate-copy strong { font-size: 13px; }
.seed-candidate-copy small { font-size: 11px; }
.keyword-foundation-grid .keyword-input-row,
.keyword-foundation-grid .seed-input-row { align-items: end; flex-direction: row; }
.keyword-foundation-grid .keyword-input-row > button,
.keyword-foundation-grid .seed-input-row > button { min-width: 154px; align-self: auto; flex: 0 0 auto; }
.planning-layout { grid-template-columns: 270px minmax(0, 1fr) 310px; gap: 18px; }
.package-list { padding: 10px; }
.package-item { padding: 13px; border-radius: 9px; }
.package-item strong { font-size: 13px; }
.package-item span { font-size: 11px; }
.category-tabs { padding: 13px 17px; }
.category-tab { min-height: 34px; font-size: 12px; }
.topic-list { padding: 7px 18px 18px; }
.topic-item { padding: 16px 0; }
.topic-copy strong { font-size: 13px; }
.topic-copy p { font-size: 12px !important; }
.topic-score b { font-size: 18px; }
.topic-score small { font-size: 11px; }
.basket-list { padding: 10px 16px; }
.basket-item { padding: 12px 32px 12px 12px; }
.basket-item b { font-size: 12px; }
.basket-item span { font-size: 11px; }
.topic-reference-count { min-width: 100px; font-size: 12px; }
.archive-summary,
.topic-plan-summary { gap: 14px; margin-bottom: 16px; }

/* Content production */
.content-section-tabs { gap: 8px; padding: 5px; border-radius: 12px; }
.content-section-tabs button { min-height: 58px; padding: 8px 14px; border-radius: 9px; }
.content-section-tabs button > span:first-child { width: 38px; height: 38px; }
.content-section-tabs b { font-size: 13px; }
.content-section-tabs small { font-size: 11px; }
.content-task-switcher { width: min(100%, 500px); gap: 5px; margin-bottom: 18px; }
.content-task-switcher button { min-height: 50px; }
.content-task-switcher b { font-size: 12px; }
.content-task-switcher small { font-size: 11px; }
.content-plan-summary { gap: 14px; margin-bottom: 18px; }
.content-article-toolbar { gap: 12px; margin-bottom: 16px; }
.content-plan-filter { font-size: 12px; }
.content-plan-filter .select { height: 38px; font-size: 12px; }
.writing-agent-grid { gap: 14px; }
.writing-agent-card { border-radius: 13px; }
.writing-agent-title h3 { font-size: 14px; }
.writing-agent-title p { font-size: 12px; }
.writing-agent-profile span,
.writing-agent-profile b,
.writing-agent-card-foot > span { font-size: 11px; }
.article-source-cell b { font-size: 12px; }
.article-source-cell small,
.article-agent-cell small { font-size: 11px; }
.plan-progress-meta b { font-size: 12px; }
.plan-progress-meta small { font-size: 11px; }
.manual-review-banner { border-radius: 12px; }
.advanced-setting-row b,
.article-agent-cell b,
.article-task-placeholder b,
.batch-review-item b,
.plan-agent-summary b { font-size: 12px; }
.advanced-setting-row small,
.article-task-placeholder small,
.batch-review-item small,
.batch-review-summary span,
.batch-review-summary small,
.plan-agent-summary small { font-size: 11px; }
.agent-check-grid label { min-height: 42px; font-size: 11px; }
.agent-default-note,
.agent-priority-note,
.agent-version-update { font-size: 11px; }
.agent-knowledge-option b,
.generation-base-row b,
.generation-evidence-row strong,
.generation-platform-hint b,
.current-agent-chip b { font-size: 12px; }
.agent-knowledge-option small,
.generation-base-row small,
.generation-base-row em,
.generation-evidence-row small,
.generation-platform-hint small,
.current-agent-chip small { font-size: 10px; }
.agent-prompt-details summary,
.agent-switch-label { font-size: 12px; }
.agent-prompt-details > .textarea { font-size: 13px; }
.agent-prompt-details > p,
.agent-regenerate-compare small { font-size: 11px; }
.generation-chain,
.generation-agent-rules > span,
.generation-agent-rules b,
.generation-agent-main > div > span,
.generation-agent-main p { font-size: 11px; }
.generation-agent-main h3 em { font-size: 10px; }
.generation-summary span,
.geo-brief-grid span { font-size: 10px; }
.geo-brief-grid b { font-size: 12px; }
.generation-evidence-row > b { font-size: 10px; }
.generation-evidence-row p { font-size: 11px; }
.manual-review-checklist { font-size: 11px; }
.manual-review-checklist b,
.manual-review-step b { font-size: 12px; }
.manual-review-step small,
.manual-review-meta span { font-size: 10px; }
.article-citation-row > b { font-size: 10px; }
.article-citation-row strong { font-size: 12px; }
.article-citation-row small { font-size: 10px; }
.article-asset-actions .link-button { font-size: 10px; }
.citation-summary span,
.citation-summary small,
.citation-map small { font-size: 10px; }
.citation-summary b,
.citation-map b { font-size: 12px; }
.snapshot-note { font-size: 10px !important; }
.knowledge-missing-inline { font-size: 11px; }

/* Writing studio */
.content-studio-page { max-width: none; padding-bottom: 12px; }
.studio-shell { border-color: #d7e0ec; border-radius: 15px; box-shadow: 0 16px 42px rgba(25, 50, 84, .08); }
.studio-topbar { min-height: 62px; padding: 10px 16px; background: rgba(255, 255, 255, .97); }
.studio-doc-title b { font-size: 13px; }
.studio-doc-meta > span,
.studio-save-state { font-size: 11px; }
.studio-editor-head,
.studio-chat-head { min-height: 62px; padding-right: 18px; padding-left: 18px; }
.studio-editor-head h3,
.studio-chat-head h3 { font-size: 15px; }
.studio-editor-head p,
.studio-chat-head p { font-size: 11px; }
.studio-title-input,
.editor-title { font-size: clamp(24px, 2.2vw, 31px); line-height: 1.3; }
.studio-editor-body { padding: 25px clamp(22px, 4vw, 54px) 70px; font-size: 15px; line-height: 1.85; }
.studio-field label { font-size: 12px; }
.studio-field > small { font-size: 11px; }
.studio-chat-messages { padding: 17px; }
.studio-message-card { padding: 11px 13px; border-radius: 11px; font-size: 13px; line-height: 1.7; }
.studio-message.system .studio-message-card { font-size: 11px; }
.studio-chat-context > b { font-size: 11px; }
.studio-context-chip,
.studio-selection-chip { font-size: 10px; }
.studio-composer { padding: 12px; }
.studio-composer-input { min-height: 88px; font-size: 13px; line-height: 1.65; }
.studio-tool-button { min-width: 32px; min-height: 32px; }
.studio-source-card strong,
.studio-proposal-card > header strong,
.studio-proposal-diff { font-size: 11px; }
.studio-picker-head p,
.studio-picker-item small { font-size: 11px; }
.studio-picker-item b { font-size: 12px; }

/* Publishing */
.publish-flow-steps { margin-bottom: 16px; padding: 13px 16px; border-radius: 11px; }
.publish-flow-steps span { font-size: 12px; }
.publish-composer-grid { gap: 18px; }
.publish-composer-section-head { padding: 18px 20px; }
.publish-composer-section-head h3 { font-size: 15px; }
.publish-composer-section-head p { font-size: 12px; }
.publish-picker-toolbar,
.publish-platform-actions { padding: 13px 16px; }
.publish-article-list { padding: 10px; }
.publish-article-row { min-height: 74px; padding: 11px 12px; border-radius: 10px; }
.publish-article-row-copy b { font-size: 13px; }
.publish-article-row-copy small,
.publish-article-row-status small { font-size: 11px; }
.publish-category-tab { min-height: 34px; font-size: 12px; }
.publish-platform-grid { gap: 10px; padding: 15px 16px 17px; }
.publish-platform-card { min-height: 122px; padding: 13px; border-radius: 11px; }
.publish-platform-card:hover { border-color: #aac1ec; transform: translateY(-1px); }
.publish-platform-card-name b { font-size: 13px; }
.publish-platform-card-name small,
.publish-platform-card-meta span { font-size: 11px; }
.publish-platform-card-top .status-badge { font-size: 10px; }
.publish-platform-role { font-size: 10px; }
.publish-platform-note { margin: 0 16px 16px; padding: 11px 12px; font-size: 11px; }
.publish-config-grid { gap: 14px; padding: 18px 20px 15px; }
.publish-config-grid .field > span,
.publish-mode-picker > span,
.publish-order-config > span { font-size: 12px; }
.publish-config-grid .field small { font-size: 11px; }
.publish-mode-option { min-height: 78px; padding: 11px 12px; }
.publish-mode-option b { font-size: 12px; }
.publish-mode-option small { font-size: 11px; }
.publish-order-chip { min-height: 28px; font-size: 11px; }
.publish-batch-summary { min-height: 86px; }
.publish-summary { gap: 14px; margin-bottom: 18px; }
.summary-card { min-height: 92px; padding: 17px; border-radius: 13px; }
.summary-card b { font-size: 23px; }
.summary-card small { font-size: 11px; }
.publish-list { gap: 14px; }
.publish-task-head { padding: 18px 20px; }
.publish-task-title h3 { font-size: 15px; }
.publish-task-title p { font-size: 11px; }
.publish-target { min-height: 104px; padding: 16px; }
.platform-label { font-size: 12px; }
.publish-schedule-card { border-radius: 13px; }
.publish-schedule-title b { font-size: 13px; }
.publish-schedule-meta { font-size: 11px; }
.schedule-section-head p,
.schedule-rule-note,
.schedule-warning,
.schedule-empty,
.schedule-more-note,
.schedule-order-row { font-size: 11px; }
.schedule-mode-card b,
.schedule-item-title b { font-size: 12px; }
.schedule-mode-card small,
.schedule-item-title small,
.schedule-completion small,
.schedule-preview-title small { font-size: 10px; }
.schedule-item-index,
.schedule-item-time,
.schedule-order-chip,
.schedule-item-platforms em,
.schedule-platform-chips em { font-size: 10px; }
.publish-article span,
.publish-batch-summary small,
.publish-schedule-head p { font-size: 11px; }

/* Content assets */
.asset-summary { gap: 14px; margin-bottom: 16px; }
.asset-demo-note { padding: 13px 15px; font-size: 12px; }
.asset-demo-note b { font-size: 12px; }
.asset-demo-note small { font-size: 11px; }
.asset-toolbar { min-height: 66px; padding: 0 18px; background: #fbfcfe; }
.asset-list { gap: 12px; padding: 14px; background: #f5f7fb; }
.asset-card { border-radius: 12px; }
.asset-card-main { padding: 18px 19px 15px; }
.asset-kind-icon { width: 38px; height: 38px; }
.asset-title-button { font-size: 14px; }
.asset-card-title p { font-size: 12px; }
.asset-card-metrics > div { min-height: 88px; padding: 14px 17px; }
.asset-card-metrics small,
.asset-card-metrics span { font-size: 11px; }
.asset-card-metrics b { font-size: 13px; }
.asset-detail-grid { gap: 16px; padding: 18px; }
.asset-detail-grid > section { padding: 16px; border-radius: 11px; }
.asset-detail-head h4 { font-size: 14px; }
.asset-detail-head p { font-size: 11px; }
.asset-platform-row { min-height: 58px; padding: 9px 10px; }
.asset-platform-name b { font-size: 12px; }
.asset-platform-name small,
.asset-url,
.asset-url-muted,
.asset-platform-time { font-size: 11px; }
.asset-empty-note,
.asset-detail-footer { font-size: 11px; }
.asset-monitor-card small { font-size: 11px; }

/* Enterprise knowledge */
.knowledge-tabs-row { margin-bottom: 18px; }
.knowledge-metrics { gap: 14px; margin-bottom: 16px; }
.knowledge-toolbar { min-height: 58px; margin-bottom: 16px; padding: 12px 15px; }
.knowledge-toolbar p { font-size: 12px; }
.knowledge-grid,
.knowledge-library-grid { gap: 14px; }
.knowledge-card { min-height: 200px; padding: 19px; }
.knowledge-card h3 { font-size: 15px; }
.knowledge-card p { font-size: 12px; }
.knowledge-card-foot { font-size: 11px; }
.knowledge-library-card { min-height: 270px; padding: 19px; }
.knowledge-library-card h3 { margin-top: 16px; font-size: 15px; }
.knowledge-library-card > p { font-size: 12px; }
.knowledge-library-scope { padding: 10px; font-size: 11px; }
.knowledge-library-scope b { font-size: 11px; }
.knowledge-library-stats { font-size: 11px; }
.knowledge-library-open { width: calc(100% + 38px); min-height: 46px; margin-right: -19px; margin-bottom: -19px; margin-left: -19px; padding: 0 19px; font-size: 12px; }
.knowledge-package-card { padding: 18px 19px 0; }
.knowledge-package-head h3 { font-size: 14px; }
.knowledge-package-head p { font-size: 11px; }
.knowledge-package-chip,
.knowledge-package-note,
.inherit-chain { font-size: 11px; }
.knowledge-gap-card { min-height: 76px; padding: 13px; }
.knowledge-gap-card b { font-size: 12px; }
.knowledge-gap-card p,
.knowledge-gap-card small { font-size: 11px; }
.knowledge-detail-summary > div { padding: 13px; }
.knowledge-detail-summary span { font-size: 11px; }
.knowledge-check-row { min-height: 66px; padding: 10px 12px; }
.knowledge-check-row b { font-size: 12px; }
.knowledge-check-row small,
.knowledge-check-row em { font-size: 11px; }
.knowledge-scope-block h3 { font-size: 14px; }
.knowledge-scope-block > p { font-size: 12px; }
.knowledge-gap-warning,
.knowledge-update-banner { padding: 13px; }
.knowledge-gap-warning b,
.knowledge-update-banner b { font-size: 12px; }
.knowledge-gap-warning p,
.knowledge-update-banner p { font-size: 11px; }
.public-base-list button,
.public-base-list button b { font-size: 11px; }
.public-knowledge-banner p,
.fact-summary p,
.fact-card p { font-size: 12px; }
.fact-card > span { font-size: 11px; }
.knowledge-type-picker small { font-size: 11px; }

/* Official-site CMS */
.site-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.site-workspace-nav { position: sticky; top: 94px; overflow: hidden; padding: 9px; }
.site-workspace-nav-head { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; margin: 0 0 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.site-workspace-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); }
.site-workspace-icon svg { width: 18px; height: 18px; }
.site-workspace-nav-head b,
.site-workspace-nav-head small { display: block; }
.site-workspace-nav-head b { color: var(--ink-strong); font-size: 13px; }
.site-workspace-nav-head small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.site-workspace-nav .site-cms-tabs { display: grid; gap: 3px; margin: 0; padding: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.site-workspace-nav .site-cms-tabs .tab-button { width: 100%; min-height: 42px; justify-content: flex-start; padding: 0 12px; border-radius: 9px; text-align: left; }
.site-workspace-nav .site-cms-tabs .tab-button.active { color: #245ac0; background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.site-workspace-status { display: grid; gap: 4px; margin-top: 9px; padding: 12px 10px 5px; border-top: 1px solid var(--line); }
.site-workspace-status .health { font-size: 11px; }
.site-workspace-status > small { overflow: hidden; color: var(--muted-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.site-workspace-main { min-width: 0; }
.site-release-bar { min-height: 58px; margin-bottom: 16px; padding: 12px 15px; }
.site-release-state b { font-size: 13px; }
.site-release-state small { font-size: 11px; }
.site-hero-card { min-height: 238px; padding: 32px 36px; border-radius: 16px; background: radial-gradient(circle at 85% 15%, rgba(71, 124, 240, .14), transparent 22rem), linear-gradient(135deg, #eef4ff, #fff 68%); }
.site-hero-copy .eyebrow { font-size: 11px; }
.site-hero-copy h2 { margin: 12px 0 10px; font-size: clamp(27px, 2.45vw, 38px); }
.site-hero-copy p { font-size: 13px; }
.site-health-score > span small { font-size: 11px; }
.site-stat-grid { gap: 12px; }
.site-stat-grid .stat-card { min-height: 96px; padding: 16px 17px; border-radius: 13px; }
.stat-card small { font-size: 11px; }
.stat-card b { font-size: 24px; }
.stat-card em { font-size: 10px; }
.site-cms-grid { gap: 18px; }
.site-publish-flow { gap: 10px; padding: 18px 21px 21px; }
.site-flow-step { min-width: 136px; padding: 13px; }
.site-flow-step b { font-size: 12px; }
.site-flow-step small { font-size: 11px; }
.site-check-list,
.site-recent-list { padding-right: 22px; padding-left: 22px; }
.site-check-item b,
.site-output-row b,
.site-recent-item b { font-size: 12px; }
.site-check-item small,
.site-output-row small,
.site-recent-item small { font-size: 11px; }
.site-page-toolbar { margin-bottom: 17px; }
.site-page-toolbar h2 { font-size: 22px; }
.site-page-toolbar p { font-size: 12px; }
.site-page-manager { grid-template-columns: 250px minmax(0, 1.55fr) minmax(285px, .8fr); gap: 16px; }
.site-tree-list { padding: 8px 11px 13px; }
.site-tree-group-label { padding: 11px 9px 6px; font-size: 11px; }
.site-tree-group-label small { font-size: 10px; }
.site-tree-item { min-height: 54px; padding: 10px; }
.site-tree-item b { font-size: 12px; }
.site-tree-item small { font-size: 10px; }
.site-tree-status { font-size: 10px; }
.site-editor-canvas { padding: 18px 20px 20px; }
.site-editor-canvas-head { margin-bottom: 11px; font-size: 12px; }
.site-editor-canvas-head small { font-size: 10px; }
.site-module-row,
.site-nav-row { min-height: 66px; padding: 11px 13px; border-radius: 10px; }
.site-module-copy b,
.site-nav-row b { font-size: 12px; }
.site-module-copy small,
.site-module-copy em,
.site-nav-row small { font-size: 10px; }
.site-add-module { min-height: 42px; font-size: 11px; }
.site-page-settings .field label,
.site-settings-grid .field label { font-size: 12px; }
.site-page-version b { font-size: 11px; }
.site-page-version small { font-size: 10px; }
.site-source-note b { font-size: 12px; }
.site-source-note p { font-size: 11px; }
.site-content-tab { min-height: 42px; padding: 10px 15px; font-size: 12px; }
.site-content-tab small { font-size: 10px; }
.filter-chip { min-height: 30px; padding: 6px 10px; font-size: 11px; }
.site-article-table .article-title-cell small,
.site-tag-list em { font-size: 10px; }
.site-category-tip,
.site-settings-footnote { font-size: 11px; }
.site-lead-summary > div { min-height: 82px; padding: 13px; }
.site-lead-summary span { font-size: 11px; }
.site-problem-admin-row { min-height: 76px; padding: 15px 20px; }
.site-release-history-row strong { font-size: 12px; }
.site-release-history-row small,
.site-recent-type,
.site-module-order,
.site-preview-address code,
.site-slug-input > span { font-size: 10px; }
.site-publish-modal-body .field label { font-size: 12px; }
.site-publish-modal-body .field-help,
.site-publish-checks small { font-size: 10px; }
.site-publish-checks b { font-size: 11px; }

/* Local publisher */
.assistant-hero { margin-bottom: 18px; padding: 22px 24px; border-radius: 14px; }
.device-state h3 { font-size: 17px; }
.device-state p { font-size: 12px; }
.assistant-meta span { font-size: 11px; }
.assistant-download-card { padding: 26px 28px; border-radius: 16px; }
.assistant-download-copy h3 { font-size: 21px; }
.assistant-download-copy p { font-size: 13px; }
.assistant-flow-steps { gap: 12px; padding: 0 24px 24px; }
.assistant-flow-steps > div { min-height: 108px; border-radius: 12px; }
.assistant-flow-steps b { font-size: 13px; }
.assistant-flow-steps small { font-size: 11px; }
.account-group-head { padding: 17px 19px; }
.group-title b { font-size: 14px; }
.group-title small { font-size: 11px; }
.account-item { min-height: 76px; padding: 12px 16px; }
.account-item b { font-size: 12px; }
.account-item small { font-size: 11px; }
.assistant-platform-list { gap: 10px; padding: 0 24px 24px; }
.assistant-platform-row { min-height: 72px; padding: 12px; }
.assistant-platform-name { font-size: 12px; }
.assistant-platform-row small { font-size: 11px; }

/* Settings */
.settings-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.settings-nav { position: sticky; top: 94px; padding: 9px; }
.settings-nav button { min-height: 44px; gap: 10px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.setting-section { padding: 2px 22px; }
.setting-row { min-height: 78px; gap: 16px; }
.setting-row b { font-size: 13px; }
.setting-row small { margin-top: 4px; font-size: 11px; }
.setting-value { font-size: 12px; }
.log-item { min-height: 52px; font-size: 12px; }
.advanced-setting-row small { font-size: 11px; }
.ai-provider-list { gap: 11px; padding: 18px 20px 20px; }
.ai-provider-row { padding: 15px; border-radius: 12px; }
.ai-provider-title b { font-size: 14px; }
.ai-provider-copy p { font-size: 12px; }
.ai-provider-meta { font-size: 11px; }

/* Monitoring and AI diagnostic workbench */
.diagnostic-page { gap: 16px; }
.diagnostic-tabs { gap: 5px; padding: 5px; border-radius: 11px; }
.diagnostic-tab { min-height: 40px; padding: 0 15px; font-size: 12px; }
.diagnostic-tab em { min-width: 20px; height: 20px; font-size: 10px; }
.diagnostic-content { gap: 16px; }
.diagnostic-hero { min-height: 226px; padding: 29px 31px; border-radius: 15px; }
.diagnostic-kicker { font-size: 11px; }
.diagnostic-hero h2 { font-size: clamp(25px, 2.25vw, 33px); }
.diagnostic-hero p { font-size: 13px; }
.diagnostic-package-badge small,
.diagnostic-package-badge em { font-size: 10px; }
.diagnostic-package-badge b { font-size: 15px; }
.diagnostic-stat-grid { gap: 12px; }
.diagnostic-stat-grid article { min-height: 116px; padding: 17px 18px; }
.diagnostic-stat-grid small { font-size: 11px; }
.diagnostic-stat-grid b { font-size: 27px; }
.diagnostic-stat-grid p { font-size: 11px; }
.diagnostic-workspace-grid { gap: 14px; }
.diagnostic-project-mini { min-height: 66px; padding: 9px 3px; }
.diagnostic-project-mini b,
.diagnostic-method-list b { font-size: 12px; }
.diagnostic-project-mini small,
.diagnostic-method-list small { font-size: 11px; }
.diagnostic-method-list > div { min-height: 66px; }
.diagnostic-section-title span { font-size: 10px; }
.diagnostic-section-title h3 { font-size: 17px; }
.diagnostic-section-title p { font-size: 12px; }
.diagnostic-evidence-card { padding: 18px; }
.diagnostic-evidence-card-head small { font-size: 10px; }
.diagnostic-evidence-card-head h4 { font-size: 13px; }
.diagnostic-mini-metrics span { font-size: 10px; }
.diagnostic-mini-metrics b { font-size: 15px; }
.diagnostic-card-foot { font-size: 11px; }
.diagnostic-list-pair .monitor-real-list h4,
.diagnostic-list-pair .monitor-real-list li { font-size: 11px; }
.diagnostic-list-head h3 { font-size: 18px; }
.diagnostic-list-head p { font-size: 12px; }
.diagnostic-wizard-head { min-height: 78px; padding: 15px 20px; }
.diagnostic-wizard-head span { font-size: 10px; }
.diagnostic-wizard-head h3 { font-size: 15px; }
.diagnostic-wizard-body { padding: 20px 21px; }
.diagnostic-field-label { font-size: 12px; }
.diagnostic-type-card { min-height: 112px; padding: 14px; }
.diagnostic-type-card b { font-size: 12px; }
.diagnostic-type-card small { font-size: 11px; }
.diagnostic-question-head { min-height: 62px; }
.diagnostic-question-head b { font-size: 12px; }
.diagnostic-question-head small { font-size: 11px; }
.diagnostic-question-option { min-height: 68px; }
.diagnostic-question-option b { font-size: 12px; }
.diagnostic-question-option small { font-size: 10px; }
.diagnostic-wizard-foot { min-height: 68px; }
.diagnostic-wizard-foot > span { font-size: 11px; }
.diagnostic-project-card { min-height: 154px; padding: 18px; }
.diagnostic-project-main > div:first-child > span { font-size: 10px; }
.diagnostic-project-main h3 { font-size: 15px; }
.diagnostic-project-main p { font-size: 12px; }
.diagnostic-project-meta span,
.diagnostic-project-side > small { font-size: 11px; }
.diagnostic-report-card { min-height: 174px; padding: 18px; }
.diagnostic-report-card small { font-size: 10px; }
.diagnostic-report-card b { font-size: 14px; }
.diagnostic-report-card p { font-size: 12px; }
.diagnostic-report-card em { font-size: 10px; }
.diagnostic-report-cover { min-height: 220px; padding: 28px 30px; }
.diagnostic-report-cover > div > span { font-size: 10px; }
.diagnostic-report-cover h2 { font-size: 25px; }
.diagnostic-report-cover p { font-size: 13px; }
.diagnostic-report-tags em { font-size: 10px; }
.diagnostic-evidence-layers article { min-height: 155px; padding: 16px; }
.diagnostic-evidence-layers small,
.diagnostic-evidence-layers p { font-size: 11px; }
.diagnostic-evidence-layers b { font-size: 12px; }
.diagnostic-evidence-layers em { font-size: 10px; }
.diagnostic-scope-note b { font-size: 12px; }
.diagnostic-scope-note p { font-size: 11px; }
.diagnostic-report-sections article { padding: 18px; }
.diagnostic-report-sections h3 { font-size: 14px; }
.diagnostic-report-sections p,
.diagnostic-section-body { font-size: 12px; }
.diagnostic-value-map dt { font-size: 11px; }
.diagnostic-action-row { min-height: 78px; }
.diagnostic-action-row b { font-size: 12px; }
.diagnostic-action-row small,
.diagnostic-action-target { font-size: 11px; }
.diagnostic-rules-hero small { font-size: 10px; }
.diagnostic-rules-hero h2 { font-size: 20px; }
.diagnostic-rules-hero p { font-size: 12px; }
.diagnostic-package-meta dt,
.diagnostic-package-meta dd { font-size: 11px; }
.diagnostic-update-flow b { font-size: 12px; }
.diagnostic-update-flow small,
.diagnostic-boundaries p { font-size: 11px; }

.analysis-workbench-shell { min-height: 720px; grid-template-columns: 260px minmax(0, 1fr); border-radius: 15px; }
.analysis-session-panel { background: #f7f9fc; }
.analysis-session-head { padding: 20px 18px 14px; }
.analysis-session-head b { font-size: 14px; }
.analysis-session-head small { font-size: 11px; }
.analysis-session-item { min-height: 74px; padding: 11px 12px; border-radius: 10px; }
.analysis-session-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: stretch; gap: 3px; }
.analysis-session-row .analysis-session-item { width: 100%; }
.analysis-session-delete,
.analysis-report-delete { display: grid; width: 32px; min-height: 32px; place-items: center; align-self: center; border: 0; border-radius: 8px; color: #91a0b5; background: transparent; cursor: pointer; }
.analysis-session-delete:hover,
.analysis-report-delete:hover { color: var(--red); background: var(--red-soft); }
.analysis-session-delete svg,
.analysis-report-delete svg { width: 15px; height: 15px; }
.analysis-session-row.active .analysis-session-delete { color: #6b86ad; }
.analysis-report-library-item { position: relative; min-width: 0; }
.analysis-report-library-item .analysis-report-library-card { width: 100%; padding-right: 52px; }
.analysis-report-delete { position: absolute; top: 17px; right: 14px; z-index: 2; }
.analysis-session-item b { font-size: 12px; }
.analysis-session-item small,
.analysis-session-item em { font-size: 10px; }
.analysis-workbench-main { padding: 28px clamp(24px, 3vw, 44px) 42px; }
.analysis-intro h2 { font-size: clamp(27px, 2.6vw, 36px); }
.analysis-intro p { font-size: 13px; }
.analysis-prompt-card { padding: 21px; }
.analysis-prompt-card textarea { min-height: 150px; font-size: 14px; line-height: 1.75; }
.analysis-prompt-foot span { font-size: 11px; }
.analysis-config-title b { font-size: 13px; }
.analysis-config-title small { font-size: 11px; }
.analysis-choice-card { min-height: 78px; }
.analysis-choice-card b { font-size: 12px; }
.analysis-choice-card small { font-size: 11px; }
.analysis-platform-chip { min-height: 48px; }
.analysis-platform-chip > span { font-size: 12px; }
.analysis-depth-card { min-height: 78px; }
.analysis-depth-card b { font-size: 12px; }
.analysis-depth-card small { font-size: 11px; }
.analysis-consent-box label b { font-size: 12px; }
.analysis-consent-box p { font-size: 11px; }
.analysis-submit-row > span { font-size: 11px; }
.analysis-session-toolbar > div > span,
.analysis-run-badge { font-size: 10px; }
.analysis-run-card { padding: 21px; }
.analysis-run-head small { font-size: 10px; }
.analysis-run-head h3 { font-size: 17px; }
.analysis-run-head p { font-size: 11px; }
.analysis-tool-row { min-height: 62px; }
.analysis-tool-row b { font-size: 12px; }
.analysis-tool-row small { font-size: 10px; }
.analysis-tool-empty { font-size: 11px; }
.analysis-run-error b { font-size: 12px; }
.analysis-run-error p { font-size: 11px; }
.analysis-report-cover { min-height: 270px; padding: 32px 34px; }
.analysis-report-cover > div > span { font-size: 10px; }
.analysis-report-cover h2 { font-size: clamp(25px, 2.5vw, 34px); }
.analysis-report-cover p { font-size: 13px; }
.analysis-report-cover em { font-size: 10px; }
.analysis-report-cover aside small,
.analysis-report-cover aside span { font-size: 10px; }
.analysis-report-scope b { font-size: 12px; }
.analysis-report-scope p { font-size: 11px; }
.analysis-evidence-ledger span,
.analysis-evidence-ledger small { font-size: 10px; }
.analysis-evidence-ledger b { font-size: 11px; }
.analysis-evidence-ledger > .analysis-evidence-entry { grid-template-columns:minmax(180px,.46fr) minmax(180px,.75fr) auto; }
.analysis-evidence-entry > details { grid-column:1/-1; padding:8px 10px; border-top:1px solid #e7edf4; }
.analysis-evidence-entry > details summary { color:#3568ad; cursor:pointer; font-size:10px; font-weight:700; }
.analysis-evidence-entry > details > div { max-height:480px; margin-top:10px; overflow:auto; padding:12px; border-radius:8px; background:#fff; }
.analysis-primary-controls { display:flex; align-items:end; gap:12px; padding:16px 18px; border:1px solid #dde6f1; border-radius:14px; background:#fff; }
.analysis-primary-controls > div { display:grid; flex:1; gap:6px; }
.analysis-primary-controls label { color:#52667f; font-size:12px; font-weight:700; }
.analysis-primary-controls select { min-height:42px; }
.analysis-advanced { display:grid; gap:20px; padding:20px; border:1px solid #dfe7f1; border-radius:14px; background:#f8fafc; }
.analysis-advanced[hidden] { display:none; }
.analysis-submit-row > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; }
.analysis-plan-review { display:grid; gap:20px; padding:24px; border-color:#bcd5ff; background:linear-gradient(145deg,#fff 0%,#f5f9ff 100%); box-shadow:0 15px 38px rgba(35,91,165,.09); }
.analysis-plan-review > header { display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:13px; align-items:start; }
.analysis-plan-review > header > span { display:grid; width:40px; height:40px; place-items:center; border-radius:12px; color:#fff; background:#2764c6; }
.analysis-plan-review > header > span svg { width:18px; height:18px; }
.analysis-plan-review > header small { color:#2d66bd; font-size:11px; font-weight:800; letter-spacing:.05em; }
.analysis-plan-review > header h3 { margin:3px 0 4px; color:#172c46; font-size:19px; }
.analysis-plan-review > header p { margin:0; color:#6c7c91; font-size:12px; }
.analysis-plan-review > header em { padding:6px 10px; border-radius:999px; color:#2362bd; background:#e9f2ff; font-size:11px; font-style:normal; font-weight:700; }
.analysis-plan-grid { display:grid; grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr); gap:16px; }
.analysis-plan-grid > label,.analysis-plan-grid > div { display:grid; gap:8px; }
.analysis-plan-grid > label > span,.analysis-plan-grid > div > span,.analysis-plan-questions > span { color:#425873; font-size:12px; font-weight:800; }
.analysis-plan-grid .analysis-platform-row { align-content:start; }
.analysis-plan-dimensions { display:grid; gap:8px; }
.analysis-plan-dimensions > b { color:#425873; font-size:12px; }
.analysis-plan-dimensions > div { display:flex; flex-wrap:wrap; gap:7px; }
.analysis-plan-dimensions span { padding:6px 9px; border:1px solid #d6e4f7; border-radius:8px; color:#315f9f; background:#fff; font-size:11px; }
.analysis-plan-questions { display:grid; gap:8px; }
.analysis-plan-questions small { margin-left:6px; color:#7b8ba0; font-weight:500; }
.analysis-plan-questions textarea { width:100%; min-height:116px; padding:12px 14px; resize:vertical; border:1px solid #d6e0ec; border-radius:10px; color:#253951; background:#fff; font:inherit; font-size:13px; line-height:1.7; }
.analysis-plan-tools { border-top:1px solid #dde7f3; }
.analysis-plan-tools summary { padding:13px 0 7px; color:#315f9f; cursor:pointer; font-size:12px; font-weight:700; }
.analysis-plan-tools ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:7px 0 0; padding:0; list-style:none; }
.analysis-plan-tools li { display:flex; gap:9px; align-items:center; padding:9px 10px; border-radius:9px; background:#fff; }
.analysis-plan-tools li > i { display:grid; width:25px; height:25px; place-items:center; border-radius:7px; color:#3265ad; background:#edf4ff; font-size:9px; font-style:normal; font-weight:800; }
.analysis-plan-tools li span { display:grid; min-width:0; }
.analysis-plan-tools li b { color:#30445e; font-size:11px; }
.analysis-plan-tools li small { overflow:hidden; color:#8a98a9; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.analysis-plan-boundary { display:flex; gap:10px; padding:12px 14px; border-radius:10px; color:#70521d; background:#fff6df; }
.analysis-plan-boundary svg { flex:none; width:17px; height:17px; margin-top:1px; }
.analysis-plan-boundary p { margin:0; font-size:11px; line-height:1.65; }
@media (max-width:820px) {
  .analysis-primary-controls { align-items:stretch; flex-direction:column; }
  .analysis-plan-grid { grid-template-columns:1fr; }
  .analysis-plan-tools ol { grid-template-columns:1fr; }
  .analysis-plan-review > header { grid-template-columns:36px minmax(0,1fr); }
  .analysis-plan-review > header > em { grid-column:2; justify-self:start; }
}
.citation-update-card { display:grid; gap:18px; padding:22px; }
.citation-update-actions { display:flex; flex-wrap:wrap; gap:8px; }
.citation-update-status { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.citation-update-status > div { display:grid; gap:4px; min-height:92px; padding:15px; border:1px solid #e1e8f1; border-radius:11px; background:#f8fafc; }
.citation-update-status small { color:#7e8da0; font-size:10px; }
.citation-update-status b { color:#263c56; font-size:14px; }
.citation-update-status span { overflow:hidden; color:#8996a7; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.citation-update-status .ready { border-color:#b9e6d0; background:#f0fbf6; }
.citation-update-status .warning { border-color:#f0d69c; background:#fff9eb; }
.citation-update-candidate { display:grid; grid-template-columns:32px minmax(0,1fr) auto; gap:12px; align-items:start; padding:15px; border:1px solid #d7e4f5; border-radius:12px; background:#f7faff; }
.citation-update-candidate > span { display:grid; width:32px; height:32px; place-items:center; border-radius:9px; color:#2763b7; background:#e7f0ff; }
.citation-update-candidate > span svg { width:16px; height:16px; }
.citation-update-candidate b { color:#263e5b; font-size:13px; }
.citation-update-candidate p { margin:4px 0; color:#65778e; font-size:11px; line-height:1.6; }
.citation-update-candidate small { color:#8795a7; font-size:9px; }
.citation-update-candidate > div:last-child { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.citation-installed-list { display:grid; gap:9px; }
.citation-installed-list h4 { margin:0; color:#344a63; font-size:12px; }
.citation-installed-list ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.citation-installed-list li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:9px; background:#f7f9fc; }
.citation-installed-list li.active { border:1px solid #bdd7fb; background:#f1f7ff; }
.citation-installed-list li span { display:grid; min-width:0; }
.citation-installed-list li b { color:#314761; font-size:12px; }
.citation-installed-list li small { overflow:hidden; max-width:520px; color:#8794a4; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.citation-installed-list li em { color:#3265ae; font-size:10px; font-style:normal; font-weight:700; }
.citation-update-policy { display:flex; gap:10px; padding:12px 14px; border-radius:10px; color:#5f7085; background:#f1f4f8; }
.citation-update-policy svg { flex:none; width:16px; height:16px; }
.citation-update-policy p { margin:0; font-size:10px; line-height:1.65; }
@media (max-width:820px) {
  .citation-update-status { grid-template-columns:1fr; }
  .citation-update-candidate { grid-template-columns:32px minmax(0,1fr); }
  .citation-update-candidate > div:last-child { grid-column:2; justify-content:flex-start; }
}
.analysis-report-heading span { font-size: 10px; }
.analysis-report-heading h3 { font-size: 17px; }
.analysis-report-section { padding: 22px 24px; }
.analysis-report-section > header small { font-size: 9px; }
.analysis-report-section h3 { font-size: 15px; }
.analysis-report-content { font-size: 13px; line-height: 1.8; }
.analysis-report-section > footer span,
.analysis-recommendation footer em { font-size: 9px; }
.analysis-value-map dt { font-size: 11px; }
.analysis-recommendation { min-height: 188px; padding: 18px; }
.analysis-recommendation > div > span { font-size: 9px; }
.analysis-recommendation h4 { font-size: 13px; }
.analysis-recommendation p { font-size: 12px; }
.analysis-recommendation small { font-size: 11px; }
.analysis-limitations b { font-size: 12px; }
.analysis-limitations ul { font-size: 11px; }
.analysis-follow-up { padding: 20px; }
.analysis-follow-up b { font-size: 13px; }
.analysis-follow-up small { font-size: 11px; }
.analysis-suggestions button { padding: 7px 9px; font-size: 11px; }
.analysis-follow-up textarea { min-height: 100px; font-size: 13px; }
.analysis-follow-up-foot label { font-size: 11px; }

/* Legacy real-data diagnostic widgets kept inside the new diagnostic shell. */
.monitor-real-note b { font-size: 12px; }
.monitor-real-note small { font-size: 11px; }
.monitor-real-section-head h3 { font-size: 17px; }
.monitor-real-section-head p { font-size: 12px; }
.monitor-real-eyebrow { font-size: 10px; }
.monitor-real-score small,
.monitor-real-score-grid span,
.monitor-real-run label { font-size: 11px; }
.monitor-real-run small,
.monitor-real-pv small { font-size: 10px; }
.monitor-real-empty,
.monitor-real-list li { font-size: 11px; }
.monitor-real-bar small { font-size: 9px; }
.monitor-real-production-grid small { font-size: 11px; }
.monitor-real-production-grid p { font-size: 10px; }
.monitor-filter-meta span,
.monitor-kpi small,
.monitor-kpi em,
.monitor-question-row small,
.monitor-task-row small,
.sentiment-ring small,
.sentiment-legend { font-size: 11px; }
.monitor-question-row b,
.monitor-task-row b { font-size: 12px; }
.monitor-demo-note,
.chart-legend { font-size: 11px; }
.onboarding-card p,
.onboarding-lead,
.onboarding-step small,
.risk-overview p,
.risk-issue p,
.risk-issue small,
.risk-rule-grid span { font-size: 11px; }
.onboarding-card-head small,
.onboarding-step b,
.risk-issue b { font-size: 12px; }

/* Dialogs and drawers */
.modal-backdrop { background: rgba(8, 18, 34, .48); backdrop-filter: blur(3px); }
.modal-dialog { border-color: #d9e1ec; border-radius: 17px; box-shadow: var(--shadow-lg); }
.modal-dialog.wide { width: min(860px, calc(100vw - 32px)); }
.drawer-dialog { width: min(980px, calc(100vw - 18px)); }
.modal-head { min-height: 72px; padding: 0 22px; }
.modal-head h2 { font-size: 18px; }
.modal-head p { font-size: 12px; }
.modal-body { padding: 22px; }
.modal-foot { min-height: 70px; padding: 12px 22px; }
.side-panel { padding: 15px; border-radius: 11px; }
.side-panel h4 { font-size: 13px; }
.side-panel p,
.side-list div { font-size: 11px; }
.studio-info-card h4,
.studio-empty-chat b,
.studio-message-card h4 { font-size: 12px; }
.studio-info-card p,
.studio-info-card .side-list div,
.studio-empty-chat p,
.studio-knowledge-summary,
.studio-knowledge-image figcaption { font-size: 11px; }
.studio-mobile-tabs button,
.studio-format-button.studio-format-wide,
.studio-agent-select { font-size: 11px; }
.toast { min-width: 320px; border-radius: 12px; }
.toast b { font-size: 13px; }
.toast small { font-size: 11px; }

/* Responsive behavior */
@media (max-width: 1320px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); }
  .route-planning .business-scope-card { grid-template-columns: minmax(210px, .8fr) minmax(260px, 1.2fr) auto; }
  .route-planning .business-scope-actions { grid-column: 1 / -1; justify-self: start; }
  .planning-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .planning-layout > :last-child { grid-column: 1 / -1; }
  .site-page-manager { grid-template-columns: 240px minmax(0, 1fr); }
  .site-page-settings { grid-column: 1 / -1; }
  .site-workspace { grid-template-columns: 200px minmax(0, 1fr); }
  .content-article-table th:nth-child(3),
  .content-article-table td:nth-child(3),
  .content-article-table th:nth-child(4),
  .content-article-table td:nth-child(4),
  .content-article-table th:nth-child(9),
  .content-article-table td:nth-child(9) { display: none; }
  .content-article-table { min-width: 880px; }
  .content-plan-table th:nth-child(5),
  .content-plan-table td:nth-child(5),
  .content-plan-table th:nth-child(6),
  .content-plan-table td:nth-child(6),
  .content-plan-table th:nth-child(7),
  .content-plan-table td:nth-child(7) { display: none; }
  .content-plan-table { min-width: 760px; }
}

@media (max-width: 1180px) {
  .topbar { padding-right: 24px; padding-left: 24px; }
  #main-content { padding-right: 24px; padding-left: 24px; }
  .metric-grid,
  .publish-summary,
  .asset-summary,
  .knowledge-metrics,
  .monitor-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid,
  .publish-composer-grid,
  .asset-detail-grid,
  .knowledge-review-grid,
  .site-cms-grid,
  .site-navigation-grid,
  .site-settings-grid { grid-template-columns: 1fr; }
  .keyword-foundation-grid { grid-template-columns: 1fr; }
  .keyword-foundation-grid .keyword-input-row,
  .keyword-foundation-grid .seed-input-row { align-items: end; flex-direction: row; }
  .knowledge-grid,
  .knowledge-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publish-platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .assistant-pill,
  .search-trigger { display: none; }
  .route-planning .business-scope-card { grid-template-columns: 1fr 1fr; }
  .business-scope-copy { grid-column: 1 / -1; }
  .planning-layout { grid-template-columns: 1fr; }
  .planning-layout > :last-child { grid-column: auto; }
  .site-page-manager { grid-template-columns: 1fr; }
  .site-page-settings { grid-column: auto; }
  .site-page-tree { max-height: 330px; overflow-y: auto; }
  .site-hero-card { align-items: flex-start; flex-direction: column; }
  .site-workspace { grid-template-columns: 1fr; }
  .site-workspace-nav { position: static; }
  .site-workspace-nav .site-cms-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-workspace-status { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .site-workspace-status > small { text-align: right; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; gap: 4px; overflow-x: auto; }
  .settings-nav button { width: auto; flex: 0 0 auto; padding: 0 13px; }
  .settings-layout > .ai-provider-section { grid-column: auto; }
  .analysis-workbench-shell { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .sidebar { width: 260px; }
  .main-column { margin-left: 0; }
  .topbar { min-height: 68px; padding: 0 16px; }
  #main-content { min-height: calc(100vh - 68px); padding: 22px 16px 40px; }
  .page-head { align-items: flex-start; margin-bottom: 20px; }
  .page-head h2 { font-size: 23px; }
  .page-head p { font-size: 12px; }
  .workflow-steps { justify-content: flex-start; overflow-x: auto; }
  .workflow-step { min-width: 125px; }
  .publish-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-stat-grid,
  .diagnostic-report-grid,
  .diagnostic-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-workbench-main { padding: 22px 18px 34px; }
}

@media (max-width: 640px) {
  .topbar-actions { gap: 5px; }
  .website-link span:last-child { display: none; }
  .soft-button { padding: 0 10px; }
  .page-head { display: grid; gap: 14px; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .page-actions > * { flex: 1 1 auto; }
  .card-header { min-height: 64px; align-items: flex-start; flex-direction: column; padding: 16px; }
  .card-header > :last-child:not(:first-child) { width: 100%; }
  .card-body { padding: 16px; }
  .metric-grid,
  .publish-summary,
  .asset-summary,
  .knowledge-metrics,
  .monitor-kpi-grid,
  .knowledge-grid,
  .knowledge-library-grid,
  .site-stat-grid,
  .site-lead-summary { grid-template-columns: 1fr; }
  .route-planning .business-scope-card { grid-template-columns: 1fr; }
  .business-scope-copy,
  .business-scope-actions { grid-column: auto; }
  .business-scope-actions { width: 100%; }
  .business-scope-actions button { flex: 1; }
  .keyword-foundation-grid .keyword-input-row,
  .keyword-foundation-grid .seed-input-row { align-items: stretch; flex-direction: column; }
  .keyword-foundation-grid .keyword-input-row > button,
  .keyword-foundation-grid .seed-input-row > button { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .tabs-row,
  .asset-toolbar,
  .content-article-toolbar { align-items: stretch; flex-direction: column; }
  .tabs { max-width: 100%; overflow-x: auto; }
  .compact-search .input { width: 100%; }
  .quick-grid,
  .content-plan-summary,
  .archive-summary,
  .topic-plan-summary { grid-template-columns: 1fr; }
  .selection-bar { align-items: stretch; flex-direction: column; }
  .selection-bar > div { width: 100%; }
  .selection-bar button { flex: 1; }
  .asset-card-main { grid-template-columns: 1fr; }
  .asset-card-actions { justify-content: flex-start; }
  .asset-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-card-metrics > div:nth-child(2) { border-right: 0; }
  .asset-card-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .publish-platform-grid,
  .account-grid { grid-template-columns: 1fr; }
  .account-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-hero-card { padding: 24px 20px; }
  .site-hero-copy h2 { font-size: 26px; }
  .site-flow-step { min-width: 130px; }
  .site-workspace-nav-head { display: none; }
  .site-workspace-nav .site-cms-tabs { display: flex; overflow-x: auto; }
  .site-workspace-nav .site-cms-tabs .tab-button { width: auto; min-width: max-content; flex: 0 0 auto; }
  .site-problem-admin-row { grid-template-columns: 30px minmax(0, 1fr); }
  .diagnostic-stat-grid,
  .diagnostic-report-grid,
  .diagnostic-rule-grid,
  .diagnostic-type-grid,
  .diagnostic-question-list { grid-template-columns: 1fr; }
  .diagnostic-hero { padding: 22px 19px; }
  .diagnostic-report-cover,
  .analysis-report-cover { padding: 23px 19px; }
  .analysis-depth-row,
  .analysis-recommendation-list { grid-template-columns: 1fr; }
  .analysis-platform-chip { min-width: calc(50% - 4px); }
  .analysis-submit-row,
  .analysis-follow-up-foot,
  .analysis-session-toolbar { align-items: stretch; flex-direction: column; }
  .modal-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); }
  .modal-head,
  .modal-body,
  .modal-foot { padding-right: 16px; padding-left: 16px; }
  .modal-foot { align-items: stretch; flex-direction: column; }
  .modal-foot-right { width: 100%; }
  .modal-foot button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .route-view { animation: none; }
  .primary-button:hover,
  .asset-card.is-expanded,
  .diagnostic-report-card:hover { transform: none; }
}

/* AI 效果检测：客户实时搜索页面。 */
.effect-demo-page { display: grid; gap: 16px; }
.effect-demo-page > .page-head { margin-bottom: 0; }
.effect-demo-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.effect-demo-tabs a { display: grid; min-width: 172px; gap: 2px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--panel); transition: .16s ease; }
.effect-demo-tabs a:hover { border-color: #b6cdf6; color: var(--blue); background: #f9fbff; }
.effect-demo-tabs a.active { border-color: #8eb4f4; color: #175cc6; background: linear-gradient(135deg, #f5f9ff, #e9f1ff); box-shadow: inset 3px 0 0 var(--blue); }
.effect-demo-tabs b { font-size: 12px; }
.effect-demo-tabs small { color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.effect-demo-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 16px; align-items: start; }
.effect-demo-history { position: sticky; top: 92px; display: grid; align-content: start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-sm); }
.effect-demo-new { width: 100%; min-height: 36px; gap: 6px; }
.effect-demo-new svg { width: 14px; height: 14px; }
.effect-demo-date { display: grid; grid-template-columns: 12px 1fr 14px 1fr; align-items: center; gap: 4px; min-height: 31px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted-2); background: #fbfcfe; font-size: 8px; }
.effect-demo-date input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--muted-2); background: transparent; font-size: 8px; }
.effect-demo-date b { color: var(--muted); font-size: 8px; font-weight: 500; text-align: center; }
.effect-demo-search { display: flex; min-height: 31px; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted-2); background: #fbfcfe; }
.effect-demo-search svg { width: 13px; height: 13px; }
.effect-demo-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.effect-demo-history > header { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; color: var(--ink); }
.effect-demo-history > header b { font-size: 12px; }
.effect-demo-history > header span { color: var(--muted); font-size: 16px; }
.effect-demo-history-list { display: grid; gap: 3px; }
.effect-demo-history-item { display: grid; grid-template-columns: 25px minmax(0, 1fr) 13px; gap: 7px; min-height: 53px; align-items: center; padding: 7px; border: 0; border-left: 3px solid transparent; border-radius: 0 7px 7px 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.effect-demo-history-item:hover { background: #f8fbff; }
.effect-demo-history-item.active { border-left-color: var(--blue); background: #eff5ff; }
.effect-demo-history-item > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.effect-demo-history-item > span svg { width: 13px; height: 13px; }
.effect-demo-history-item > i { min-width: 0; font-style: normal; }
.effect-demo-history-item b,
.effect-demo-history-item small,
.effect-demo-history-item em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.effect-demo-history-item b { color: #44536b; font-size: 9px; }
.effect-demo-history-item small { margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.effect-demo-history-item em { margin-top: 2px; color: #a7b1c0; font-size: 7px; font-style: normal; }
.effect-demo-history-item > svg { width: 12px; height: 12px; color: #82a2d5; }
.effect-demo-history-empty { display: grid; justify-items: center; gap: 5px; margin-top: 24px; padding-top: 15px; border-top: 1px dashed #dce5f0; color: var(--muted-2); text-align: center; }
.effect-demo-history-empty > span { display: grid; width: 54px; height: 54px; place-items: center; border: 1px dashed #c6d7f2; border-radius: 50% 46% 54% 43%; color: #8aa8dc; background: #f3f7ff; transform: rotate(-8deg); }
.effect-demo-history-empty svg { width: 23px; height: 23px; transform: rotate(8deg); }
.effect-demo-history-empty p { margin: 0; font-size: 8px; line-height: 1.55; }
.effect-demo-history-empty a { color: var(--blue); text-decoration: underline; }
.effect-demo-main { display: grid; min-width: 0; gap: 16px; }
.effect-demo-query { overflow: hidden; padding: 0; }
.effect-demo-query > header,
.effect-demo-answer > header,
.effect-demo-report > header,
.effect-demo-ranking > header,
.effect-demo-sources > header,
.effect-demo-flow > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 21px 16px; border-bottom: 1px solid var(--line); }
.effect-demo-query header h3,
.effect-demo-answer header h3,
.effect-demo-report header h3,
.effect-demo-ranking header h3,
.effect-demo-sources header h3,
.effect-demo-flow header h3,
.effect-demo-monitor-hero h3 { margin: 4px 0 4px; color: var(--ink-strong); font-size: 17px; letter-spacing: -.02em; }
.effect-demo-query header p,
.effect-demo-answer header p,
.effect-demo-report header p,
.effect-demo-ranking header p,
.effect-demo-sources header p,
.effect-demo-flow header p,
.effect-demo-monitor-hero p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.effect-demo-kicker { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.effect-demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 19px 21px 18px; }
.effect-demo-input { display: grid; min-width: 0; gap: 6px; }
.effect-demo-input.full,
.effect-demo-field.full { grid-column: 1 / -1; }
.effect-demo-input > span,
.effect-demo-field > b { display: inline-flex; align-items: center; gap: 5px; color: #4c5b73; font-size: 10px; font-weight: 700; }
.effect-demo-input > span svg { width: 13px; height: 13px; color: var(--blue); }
.effect-demo-input em { color: var(--red); font-style: normal; }
.effect-demo-input input { min-width: 0; min-height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font-size: 11px; transition: .14s ease; }
.effect-demo-input input:focus { border-color: #8fb4ee; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.effect-demo-field { display: grid; gap: 8px; }
.effect-demo-platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.effect-demo-platform { position: relative; display: grid; min-height: 56px; grid-template-columns: 28px minmax(0, 1fr) 13px; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: #596a82; background: #fff; cursor: pointer; transition: .14s ease; }
.effect-demo-platform:hover { border-color: #aec7ec; background: #fbfdff; }
.effect-demo-platform:has(input:checked) { border-color: #9dbdeb; background: #f2f7ff; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .05); }
.effect-demo-platform input { position: absolute; opacity: 0; pointer-events: none; }
.effect-demo-platform-logo { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #fff; background: var(--platform); font-size: 8px; font-weight: 750; }
.effect-demo-platform-copy { min-width: 0; }
.effect-demo-platform-copy b,
.effect-demo-platform-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.effect-demo-platform-copy b { color: #51627b; font-size: 9px; }
.effect-demo-platform-copy small { margin-top: 2px; color: #99a6b7; font-size: 7px; }
.effect-demo-platform > i { display: none; color: var(--blue); }
.effect-demo-platform > i svg { width: 13px; height: 13px; stroke-width: 2.3; }
.effect-demo-platform:has(input:checked) > i { display: block; }
.effect-demo-controls { display: flex; grid-column: 1 / -1; align-items: flex-end; gap: 11px; padding-top: 2px; }
.effect-relay-status { display: flex; align-items: center; gap: 9px; margin: 12px 0; padding: 10px 13px; border: 1px solid #dbe6f3; border-radius: 10px; color: #566a84; background: #f8fbff; font-size: 10px; }
.effect-relay-status > svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--blue); }
.effect-relay-status > div { display: grid; min-width: 0; gap: 2px; flex: 1; }
.effect-relay-status > div b { color: #3f5470; font-size: 10px; }
.effect-relay-status > div small { overflow: hidden; color: #8b9aae; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.effect-relay-status > em { padding: 3px 7px; border-radius: 99px; color: #4870ac; background: #eaf2ff; font-size: 8px; font-style: normal; white-space: nowrap; }
.effect-relay-status.is-error { border-color: #f0d7d7; background: #fffafa; }
.effect-relay-status.is-error > svg { color: var(--red); }
.effect-relay-quota, .effect-relay-quote, .effect-relay-warning { padding: 3px 7px; border-radius: 99px; color: #65809f; background: #eef4fa; font-size: 8px; white-space: nowrap; }
.effect-relay-warning { color: #a36a1c; background: #fff6e8; }
.effect-search-consent { display: flex !important; min-width: 240px !important; max-width: 360px; align-items: center; gap: 6px !important; color: #64748b !important; font-size: 8px !important; line-height: 1.4; }
.effect-search-consent input { width: 14px; height: 14px; flex: 0 0 auto; accent-color: var(--blue); }
.effect-search-quote-summary { display: flex; min-width: 260px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #dfe8f5; border-radius: 9px; background: #f7fbff; }
.effect-search-quote-summary > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--blue); background: #e8f1ff; }
.effect-search-quote-summary > span svg { width: 13px; height: 13px; }
.effect-search-quote-summary > div { display: grid; min-width: 0; flex: 1; gap: 2px; }
.effect-search-quote-summary b { color: #3e5d86; font-size: 9px; }
.effect-search-quote-summary small { color: #8797aa; font-size: 8px; line-height: 1.4; }
.effect-demo-controls > label { display: grid; min-width: 130px; gap: 5px; color: #53627a; font-size: 9px; font-weight: 650; }
.effect-demo-controls select { min-height: 34px; padding: 0 26px 0 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: #56677f; background: #fff; font-size: 10px; }
.effect-demo-credit { flex: 1; min-height: 34px; padding: 9px 10px; border: 1px dashed #bdd0ed; border-radius: 8px; color: #7285a0; background: #f6f9ff; font-size: 9px; }
.effect-demo-credit b { color: var(--blue); }
.effect-demo-controls .primary-button { min-height: 34px; white-space: nowrap; }
.effect-demo-controls .primary-button svg { width: 14px; height: 14px; }
.effect-demo-answer,
.effect-demo-report { overflow: hidden; padding: 0; }
.effect-demo-answer > header,
.effect-demo-report > header { padding-bottom: 15px; }
.effect-demo-answer header > div,
.effect-demo-report header > div:first-child { min-width: 0; }
.effect-demo-answer-metrics,
.effect-demo-report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 16px 20px 0; overflow: hidden; border: 1px solid #e5ebf3; border-radius: 10px; background: #e5ebf3; }
.effect-demo-answer-metrics > div,
.effect-demo-report-kpis > div { min-width: 0; padding: 12px; background: #fbfcfe; }
.effect-demo-answer-metrics small,
.effect-demo-answer-metrics b,
.effect-demo-answer-metrics em,
.effect-demo-report-kpis small,
.effect-demo-report-kpis b,
.effect-demo-report-kpis em { display: block; }
.effect-demo-answer-metrics small,
.effect-demo-report-kpis small { color: var(--muted-2); font-size: 8px; }
.effect-demo-answer-metrics b { margin-top: 4px; color: #425a7d; font-size: 17px; }
.effect-demo-answer-metrics b.positive { color: var(--green); }
.effect-demo-answer-metrics em,
.effect-demo-report-kpis em { margin-top: 3px; overflow: hidden; color: #98a4b5; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.effect-demo-answer-body { margin: 14px 20px 0; padding: 13px; border: 1px solid #e6edf5; border-radius: 10px; background: #fbfdff; }
.effect-demo-answer-body > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.effect-demo-answer-logo { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #fff; background: #1d9bea; font-size: 8px; font-weight: 750; }
.effect-demo-answer-body > div > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; }
.effect-demo-answer-body b { color: #50637e; font-size: 10px; }
.effect-demo-answer-body small { color: #98a5b5; font-size: 8px; }
.effect-demo-answer-body .link-button { margin-left: auto; white-space: nowrap; }
.effect-demo-answer-body .link-button svg,
.effect-demo-report-foot .link-button svg,
.effect-demo-ranking .link-button svg,
.effect-demo-sources .link-button svg { width: 11px; height: 11px; }
.effect-demo-answer-body p { margin: 11px 0 0; color: #536982; font-size: 11px; line-height: 1.75; }
.effect-demo-answer > footer,
.effect-demo-report-foot { display: flex; align-items: center; gap: 16px; margin: 13px 20px 17px; padding-top: 12px; border-top: 1px solid #edf1f6; color: #8999ad; font-size: 8px; }
.effect-demo-answer > footer span,
.effect-demo-report-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.effect-demo-answer > footer svg,
.effect-demo-report-foot svg { width: 12px; height: 12px; color: var(--blue); }
.effect-search-results { overflow: hidden; padding: 0; }
.effect-search-results > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 21px 16px; border-bottom: 1px solid var(--line); }
.effect-search-results header h3 { margin: 4px 0; color: var(--ink-strong); font-size: 17px; letter-spacing: -.02em; }
.effect-search-results header p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.effect-search-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 16px 20px 0; overflow: hidden; border: 1px solid #e5ebf3; border-radius: 10px; background: #e5ebf3; }
.effect-search-summary > div { min-width: 0; padding: 12px; background: #fbfcfe; }
.effect-search-summary small,
.effect-search-summary b,
.effect-search-summary em { display: block; }
.effect-search-summary small { color: var(--muted-2); font-size: 8px; }
.effect-search-summary b { margin-top: 4px; overflow: hidden; color: #425a7d; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-summary em { margin-top: 3px; overflow: hidden; color: #98a4b5; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 20px 18px; }
.effect-search-result-card { min-width: 0; overflow: hidden; border: 1px solid #e4ebf4; border-radius: 10px; background: #fff; }
.effect-search-result-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px; border-bottom: 1px solid #eef2f7; background: #fbfdff; }
.effect-search-result-card > header > div:first-child { display: flex; min-width: 0; align-items: center; gap: 8px; }
.effect-search-result-card h4 { margin: 0; overflow: hidden; color: #50637e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-result-card header small { display: block; margin-top: 3px; color: #98a5b5; font-size: 8px; }
.effect-search-result-logo { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #4c68e9, #1d9bea); font-size: 9px; font-weight: 800; }
.effect-search-result-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-bottom: 1px solid #eef2f7; background: #eef2f7; }
.effect-search-result-metrics > div { min-width: 0; padding: 10px 9px; background: #fff; }
.effect-search-result-metrics small,
.effect-search-result-metrics b,
.effect-search-result-metrics em { display: block; }
.effect-search-result-metrics small { color: #9aa6b6; font-size: 7px; }
.effect-search-result-metrics b { margin-top: 4px; overflow: hidden; color: #49617f; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-result-metrics b.positive { color: var(--green); }
.effect-search-result-metrics b.negative { color: var(--red); }
.effect-search-result-metrics em { margin-top: 3px; overflow: hidden; color: #a1adbb; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-result-body { padding: 11px 13px; }
.effect-search-result-body p { margin: 0; color: #586b84; font-size: 10px; line-height: 1.7; }
.effect-search-dialogue { margin-top: 9px; padding: 8px 9px; border: 1px solid #e7edf5; border-radius: 8px; background: #fbfdff; }
.effect-search-dialogue summary { cursor: pointer; color: var(--blue); font-size: 8px; font-weight: 700; }
.effect-search-dialogue > div { display: grid; gap: 2px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed #e2eaf3; }
.effect-search-dialogue > div b { color: #657892; font-size: 8px; }
.effect-search-dialogue > div p { margin: 0; color: #75859a; font-size: 8px; line-height: 1.55; }
.effect-search-result-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.effect-search-result-tags span { max-width: 100%; overflow: hidden; padding: 4px 6px; border-radius: 99px; color: #73839a; background: #f4f7fb; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-result-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 13px; border-top: 1px solid #eef2f7; color: #95a3b4; font-size: 8px; }
.effect-search-result-card > footer > span { display: inline-flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-result-card > footer svg { width: 11px; height: 11px; color: var(--blue); }
.effect-search-result-card .link-button { flex: 0 0 auto; white-space: nowrap; }
.effect-search-scope-summary { min-height: 34px; padding: 9px 10px; border: 1px dashed #bdd0ed; border-radius: 8px; color: #7285a0; background: #f6f9ff; font-size: 9px; }
.effect-search-scope-summary b { color: var(--blue); }
.effect-search-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed #d9e3ef; border-radius: 10px; color: #8e9daf; background: #fbfdff; text-align: center; font-size: 10px; }
.effect-search-report-body { padding: 16px 20px 18px; }
.effect-search-report-conclusion { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border: 1px solid #e4ddff; border-radius: 11px; background: linear-gradient(135deg, #fbfaff, #f7f9ff); }
.effect-search-report-conclusion > span { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #6943df; background: #eee9ff; }
.effect-search-report-conclusion > span svg { width: 15px; height: 15px; }
.effect-search-report-conclusion small { display: block; color: #8d7bc8; font-size: 8px; font-weight: 700; }
.effect-search-report-conclusion p { margin: 5px 0 0; color: #566983; font-size: 10px; line-height: 1.75; }
.effect-search-report-details { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 12px; margin-top: 13px; }
.effect-search-report-details > section { min-width: 0; overflow: hidden; border: 1px solid #e6edf5; border-radius: 10px; background: #fff; }
.effect-search-report-details > section > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px 10px; border-bottom: 1px solid #edf2f7; background: #fbfdff; }
.effect-search-report-details > section > header b,
.effect-search-report-details > section > header small { display: block; }
.effect-search-report-details > section > header b { color: #526984; font-size: 10px; }
.effect-search-report-details > section > header small { margin-top: 3px; color: #99a7b8; font-size: 8px; }
.effect-search-report-platforms,
.effect-search-report-citations { margin: 0; padding: 0; list-style: none; }
.effect-search-report-platforms li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; align-items: center; gap: 8px; padding: 10px 13px; border-bottom: 1px solid #f0f3f7; }
.effect-search-report-platforms li:last-child,
.effect-search-report-citations li:last-child { border-bottom: 0; }
.effect-search-report-platforms li > div,
.effect-search-report-platforms li > span,
.effect-search-report-citations li > div { min-width: 0; }
.effect-search-report-platforms b,
.effect-search-report-platforms small,
.effect-search-report-citations b,
.effect-search-report-citations small { display: block; }
.effect-search-report-platforms li > div b { overflow: hidden; color: #536982; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-report-platforms li > div small { margin-top: 3px; color: #a0adbd; font-size: 7px; }
.effect-search-report-platforms li > span { text-align: right; }
.effect-search-report-platforms li > span b { color: #536982; font-size: 11px; }
.effect-search-report-platforms li > span small { margin-top: 2px; color: #a0adbd; font-size: 7px; }
.effect-search-report-citations li { display: grid; grid-template-columns: 19px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 10px 13px; border-bottom: 1px solid #f0f3f7; }
.effect-search-report-citations li > span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 6px; color: var(--blue); background: #edf4ff; }
.effect-search-report-citations li > span svg { width: 11px; height: 11px; }
.effect-search-report-citations b { overflow: hidden; color: #536982; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-report-citations small { margin-top: 3px; overflow: hidden; color: #a0adbd; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.effect-search-report-citations em { color: #8294ab; font-size: 8px; font-style: normal; white-space: nowrap; }
.effect-search-report-placeholder { padding: 17px 13px; color: #a0adbd; font-size: 9px; text-align: center; }
.effect-search-report-body > footer { display: flex; align-items: center; gap: 5px; margin-top: 13px; color: #9aa8b8; font-size: 8px; }
.effect-search-report-body > footer svg { width: 11px; height: 11px; color: #6c86a9; }
.effect-search-report-empty { display: grid; justify-items: center; gap: 6px; padding: 32px 20px 36px; color: #8e9daf; text-align: center; }
.effect-search-report-empty svg { width: 23px; height: 23px; color: #9aaad0; }
.effect-search-report-empty b { color: #667a96; font-size: 11px; }
.effect-search-report-empty p { max-width: 420px; margin: 0; color: #9aa8b8; font-size: 9px; line-height: 1.6; }
.effect-search-analysis-report { overflow: hidden; border: 1px solid #e5e9f4; border-radius: 12px; background: #fff; }
.effect-search-analysis-report > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eceff6; background: linear-gradient(135deg, #fbfaff, #fbfdff); }
.effect-search-analysis-report > header h4 { margin: 4px 0 0; color: #4d5f7a; font-size: 14px; }
.effect-search-analysis-report > header p { margin: 4px 0 0; color: #95a3b5; font-size: 8px; line-height: 1.5; }
.effect-search-analysis-report > header > span:last-child { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 7px; color: #6d56cc; background: #f0edff; font-size: 8px; white-space: nowrap; }
.effect-search-analysis-report > header > span:last-child svg { width: 12px; height: 12px; }
.effect-search-analysis-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid #eef1f6; background: #eef1f6; }
.effect-search-analysis-section { min-width: 0; padding: 13px 14px; background: #fff; }
.effect-search-analysis-section header { display: flex; align-items: center; gap: 7px; }
.effect-search-analysis-section header span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 6px; color: #6c55c6; background: #f0edff; font-size: 7px; font-weight: 800; }
.effect-search-analysis-section header b { color: #526984; font-size: 10px; }
.effect-search-analysis-section p { margin: 8px 0 0 28px; color: #65778e; font-size: 9px; line-height: 1.7; }
.effect-search-analysis-recommendations { padding: 13px 14px; background: #fbfdff; }
.effect-search-analysis-recommendations > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.effect-search-analysis-recommendations > header b { color: #526984; font-size: 10px; }
.effect-search-analysis-recommendations > header small { color: #9caabb; font-size: 8px; }
.effect-search-analysis-recommendations ul { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.effect-search-analysis-recommendations li { display: flex; align-items: flex-start; gap: 6px; color: #65778e; font-size: 9px; line-height: 1.6; }
.effect-search-analysis-recommendations li svg { width: 11px; height: 11px; flex: 0 0 auto; margin-top: 2px; color: var(--blue); }
.effect-search-report-header-actions { display: flex; align-items: center; gap: 8px; }
.effect-search-report-error { display: block; margin-top: 5px; color: #c76b70; font-size: 8px; }
.effect-search-generated-report { border-color: #dcd4ff; background: linear-gradient(180deg, #fff, #fcfbff); }
.effect-search-generated-summary { padding: 13px 15px; border-bottom: 1px solid #ece9f8; background: #fbfaff; }
.effect-search-generated-summary b { color: #5a49a5; font-size: 10px; }
.effect-search-generated-summary p { margin: 6px 0 0; color: #5f6f86; font-size: 10px; line-height: 1.8; }
.effect-search-generated-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #eceef5; }
.effect-search-generated-section { min-width: 0; padding: 13px 14px; background: #fff; }
.effect-search-generated-section > header { display: flex; align-items: flex-start; gap: 8px; }
.effect-search-generated-section > header > span { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #6d58c9; background: #f0edff; font-size: 7px; font-weight: 800; }
.effect-search-generated-section > header b,
.effect-search-generated-section > header small { display: block; }
.effect-search-generated-section > header b { color: #526984; font-size: 10px; }
.effect-search-generated-section > header small { margin-top: 4px; color: #7789a1; font-size: 8px; line-height: 1.6; }
.effect-search-generated-section ul { display: grid; gap: 8px; margin: 10px 0 0 30px; padding: 0; list-style: none; }
.effect-search-generated-section li { padding-top: 8px; border-top: 1px dashed #e7ebf3; }
.effect-search-generated-section li:first-child { padding-top: 0; border-top: 0; }
.effect-search-generated-section li b { color: #596d86; font-size: 9px; }
.effect-search-generated-section li p { margin: 4px 0 0; color: #64778f; font-size: 9px; line-height: 1.7; }
.effect-search-generated-section li small { display: block; margin-top: 4px; color: #a0adbd; font-size: 7px; }
.effect-search-generated-recommendations { padding: 13px 15px; background: #fbfdff; }
.effect-search-generated-recommendations > header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.effect-search-generated-recommendations > header b { color: #526984; font-size: 10px; }
.effect-search-generated-recommendations > header small { color: #99a8b8; font-size: 8px; }
.effect-search-generated-recommendations ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.effect-search-generated-recommendations li { display: flex; align-items: flex-start; gap: 8px; }
.effect-search-recommendation-priority { min-width: 34px; padding: 3px 4px; border-radius: 4px; color: #fff; background: #7a69cf; font-size: 7px; text-align: center; text-transform: uppercase; }
.effect-search-recommendation-priority.critical { background: #c95c67; }
.effect-search-recommendation-priority.high { background: #d38a45; }
.effect-search-recommendation-priority.low { background: #7c9cba; }
.effect-search-generated-recommendations li b { color: #596d86; font-size: 9px; }
.effect-search-generated-recommendations li p { margin: 3px 0 0; color: #64778f; font-size: 9px; line-height: 1.65; }
.effect-search-generated-recommendations li small { display: block; margin-top: 3px; color: #9aa8b8; font-size: 7px; }
.effect-search-generated-report > footer { display: flex; align-items: flex-start; gap: 5px; padding: 10px 15px; border-top: 1px solid #eceef5; color: #9aa8b8; font-size: 8px; line-height: 1.6; }
.effect-search-generated-report > footer svg { width: 11px; height: 11px; flex: 0 0 auto; color: #768aae; }

/* Aidso's three product flows share the signed relay, not a shared screen.
   These components keep the batch diagnosis and scheduled monitoring views
   visibly distinct from the one-question real-time search page. */
.effect-diagnostic-history,
.effect-diagnostic-report,
.effect-monitor-plans,
.effect-monitor-detail { margin-top: 15px; overflow: hidden; padding: 0; }
.effect-diagnostic-history > header,
.effect-diagnostic-report > header,
.effect-monitor-plans > header,
.effect-monitor-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 15px; border-bottom: 1px solid #e8edf4; }
.effect-diagnostic-history h3,
.effect-diagnostic-report h3,
.effect-monitor-plans h3,
.effect-monitor-detail h3 { margin: 4px 0; color: var(--ink-strong); font-size: 17px; letter-spacing: -.02em; }
.effect-diagnostic-history header p,
.effect-diagnostic-report header p,
.effect-monitor-plans header p,
.effect-monitor-detail header p { max-width: 720px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.effect-diagnostic-history-row,
.effect-monitor-plan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid #edf1f6; }
.effect-diagnostic-history-row:first-child,
.effect-monitor-plan-row:first-child { border-top: 0; }
.effect-diagnostic-history-row.active,
.effect-monitor-plan-row.active { background: linear-gradient(90deg, #f2f7ff, #fff); box-shadow: inset 3px 0 0 #5790e8; }
.effect-diagnostic-history-row b,
.effect-monitor-plan-row b { display: block; overflow: hidden; color: #516680; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.effect-diagnostic-history-row small,
.effect-monitor-plan-row small { display: block; margin-top: 4px; overflow: hidden; color: #98a5b5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.effect-diagnostic-boundary,
.effect-monitor-boundary { margin: 0 20px 18px; padding: 10px 12px; border: 1px solid #e2eaf6; border-radius: 9px; color: #71839b; background: #f8fbff; font-size: 9px; line-height: 1.65; }
.effect-diagnostic-start-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 24px; align-items: center; margin-top: 16px; padding: 28px; }
.effect-diagnostic-start-card h2 { margin: 8px 0; color: var(--ink-strong); font-size: 22px; }
.effect-diagnostic-start-card p { max-width: 680px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.effect-diagnostic-start-card code { padding: 2px 4px; border-radius: 4px; color: #456b9c; background: #eef5ff; font-size: 9px; }
.effect-diagnostic-start-fields { display: grid; gap: 12px; padding: 18px; border: 1px solid #e3ebf5; border-radius: 12px; background: #fbfdff; }
.effect-diagnostic-start-fields .primary-button { justify-self: start; }
.effect-diagnostic-wizard { margin-top: 16px; overflow: hidden; padding: 0; }
.effect-diagnostic-wizard > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.effect-diagnostic-wizard > header h3 { margin: 5px 0; color: var(--ink-strong); font-size: 18px; }
.effect-diagnostic-wizard > header p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.effect-diagnostic-wizard-body { display: grid; gap: 0; }
.effect-diagnostic-step { padding: 20px 22px; border-bottom: 1px solid #edf1f6; }
.effect-diagnostic-step > header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.effect-diagnostic-step > header > span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #4d76e8, #49a2eb); font-size: 11px; font-weight: 800; }
.effect-diagnostic-step > header h4 { margin: 2px 0 3px; color: #405774; font-size: 13px; }
.effect-diagnostic-step > header p { margin: 0; color: #8c9bad; font-size: 9px; line-height: 1.55; }
.effect-diagnostic-step-actions { display: flex; gap: 10px; margin-left: auto; }
.effect-diagnostic-step .effect-demo-form { padding: 0; }
.effect-diagnostic-step > .effect-demo-input.full { display: grid; gap: 7px; }
.effect-diagnostic-step textarea { width: 100%; min-height: 78px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical; color: var(--ink); background: #fff; font: inherit; font-size: 10px; line-height: 1.6; }
.effect-diagnostic-step textarea:focus { border-color: #8fb4ee; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.effect-diagnostic-round-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.effect-diagnostic-round-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 11px 12px; border: 1px solid #e2eaf3; border-radius: 9px; background: #fbfdff; }
.effect-diagnostic-round-row > span { display: grid; min-width: 0; gap: 3px; }
.effect-diagnostic-round-row b { overflow: hidden; color: #526983; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.effect-diagnostic-round-row small { color: #95a3b4; font-size: 8px; }
.effect-diagnostic-round-row select { min-height: 32px; padding: 0 26px 0 8px; border: 1px solid var(--line); border-radius: 7px; color: #56677f; background: #fff; font-size: 9px; }
.effect-diagnostic-round-row em { grid-column: 1 / -1; color: #8b9aac; font-size: 8px; font-style: normal; }
.effect-diagnostic-round-empty { padding: 16px; border: 1px dashed #d9e3ef; border-radius: 9px; color: #8e9daf; background: #fbfdff; text-align: center; font-size: 9px; }
.effect-diagnostic-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 16px 22px; background: #fbfdff; }
.effect-diagnostic-submit > div:first-child { display: grid; min-width: 190px; gap: 3px; }
.effect-diagnostic-submit > div:first-child b { color: #456486; font-size: 11px; }
.effect-diagnostic-submit > div:first-child small { color: #96a4b5; font-size: 8px; }
.effect-diagnostic-submit .effect-demo-credit { flex: 1; min-width: 150px; }
.effect-diagnostic-submit .effect-search-consent { max-width: 300px; }
.effect-diagnostic-submit .primary-button { min-height: 34px; white-space: nowrap; }
.effect-monitor-create { margin-top: 15px; }
.effect-monitor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.effect-monitor-trend-list { margin: 0 20px 18px; overflow: hidden; border: 1px solid #e3eaf3; border-radius: 10px; }
.effect-monitor-trend-list article { display: grid; grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(92px, .7fr)); gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid #edf1f6; }
.effect-monitor-trend-list article:first-child { border-top: 0; }
.effect-monitor-trend-list b,
.effect-monitor-trend-list small { display: block; }
.effect-monitor-trend-list article > div > b { overflow: hidden; color: #516780; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-trend-list article > div > small { margin-top: 3px; overflow: hidden; color: #95a2b2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-trend-list article > span small { color: #9aa6b6; font-size: 8px; }
.effect-monitor-trend-list article > span b { margin-top: 3px; color: #557190; font-size: 10px; }
.effect-monitor-run-list { margin: 0 20px 20px; overflow: hidden; border: 1px solid #e3eaf3; border-radius: 10px; }
.effect-monitor-run-list h4 { margin: 0; padding: 11px 12px; border-bottom: 1px solid #edf1f6; color: #556a84; background: #fafcff; font-size: 10px; }
.effect-monitor-run-list article { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(110px, .7fr) minmax(90px, .45fr); gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid #edf1f6; color: #687b94; font-size: 9px; }
.effect-monitor-run-list article:nth-child(2) { border-top: 0; }
.effect-monitor-run-list article b,
.effect-monitor-run-list article small { display: block; }
.effect-monitor-run-list article b { color: #586d86; font-size: 9px; }
.effect-monitor-run-list article small { margin-top: 3px; overflow: hidden; color: #9aa7b8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-view-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; padding: 5px; border: 1px solid #e2eaf3; border-radius: 11px; background: #f8fbff; }
.effect-monitor-view-tab { min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; color: #71839b; background: transparent; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
.effect-monitor-view-tab:hover { color: #426ec0; background: #eef5ff; }
.effect-monitor-view-tab.active { border-color: #b9d0f5; color: #2e67c3; background: #fff; box-shadow: 0 2px 8px rgba(66, 110, 192, .1); }
.effect-monitor-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px; background: linear-gradient(120deg, #fff, #f5f9ff); }
.effect-monitor-hero h2 { margin: 6px 0 5px; color: #344e76; font-size: 22px; letter-spacing: -.04em; }
.effect-monitor-hero p { max-width: 700px; margin: 0; color: #8292a8; font-size: 10px; line-height: 1.65; }
.effect-monitor-hero-meta { display: grid; justify-items: end; gap: 8px; color: #8d9caf; font-size: 9px; white-space: nowrap; }
.effect-monitor-analytics-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.effect-monitor-view-stack { display: grid; gap: 15px; }
.effect-monitor-view-stack > .effect-monitor-analytics-cards { margin-top: 0; }
.effect-monitor-dashboard-view > .effect-monitor-analytics-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.effect-monitor-analytics-cards article { min-width: 0; padding: 14px; border: 1px solid #e2eaf3; border-radius: 11px; background: #fff; box-shadow: var(--shadow-sm); }
.effect-monitor-analytics-cards small, .effect-monitor-analytics-cards b, .effect-monitor-analytics-cards em { display: block; }
.effect-monitor-analytics-cards small { color: #8d9caf; font-size: 9px; }
.effect-monitor-analytics-cards b { margin-top: 6px; overflow: hidden; color: #3f659c; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-analytics-cards em { margin-top: 4px; overflow: hidden; color: #a0adbc; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 15px; }
.effect-monitor-dashboard-panel { min-width: 0; overflow: hidden; padding: 0; }
.effect-monitor-dashboard-panel > header, .effect-monitor-view-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 18px 20px 14px; border-bottom: 1px solid #e8edf4; }
.effect-monitor-dashboard-panel h3, .effect-monitor-view-panel h2 { margin: 4px 0; color: #405774; font-size: 16px; }
.effect-monitor-dashboard-panel header p, .effect-monitor-view-panel header p { margin: 0; color: #8a9aac; font-size: 9px; line-height: 1.6; }
.effect-monitor-mini-table { display: grid; margin: 0 20px 18px; border: 1px solid #e4ebf3; border-radius: 9px; overflow: hidden; }
.effect-monitor-mini-table > div { display: grid; grid-template-columns: minmax(0, 1.4fr) 66px 60px 60px; gap: 8px; align-items: center; padding: 10px; border-top: 1px solid #edf1f6; }
.effect-monitor-mini-table > div:first-child { border-top: 0; }
.effect-monitor-mini-table b, .effect-monitor-mini-table small, .effect-monitor-mini-table span, .effect-monitor-mini-table em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-mini-table b { color: #536b89; font-size: 9px; }
.effect-monitor-mini-table small { color: #94a2b2; font-size: 8px; }
.effect-monitor-mini-table span { color: #4775bb; font-size: 9px; font-weight: 750; }
.effect-monitor-mini-table em { color: #98a6b6; font-size: 8px; font-style: normal; }
.effect-monitor-run-summary { display: grid; gap: 7px; padding: 0 20px 20px; color: #8493a6; font-size: 9px; }
.effect-monitor-run-summary b { color: #526b8a; font-size: 11px; }
.effect-monitor-empty, .effect-monitor-settings-empty { display: grid; justify-items: center; gap: 5px; margin: 14px 20px 20px; padding: 24px 14px; border: 1px dashed #d8e3ef; border-radius: 10px; color: #8c9bad; background: #fbfdff; text-align: center; }
.effect-monitor-empty > span { color: #b0bdca; font-size: 22px; }
.effect-monitor-empty b { color: #7b8da2; font-size: 10px; }
.effect-monitor-empty small { color: #a1adba; font-size: 8px; }
.effect-monitor-view-panel { overflow: hidden; padding: 0; }
.effect-monitor-data-table { margin: 15px 20px 20px; overflow: auto; border: 1px solid #e2eaf3; border-radius: 10px; }
.effect-monitor-data-table > .head, .effect-monitor-data-table > .row { display: grid; grid-template-columns: minmax(130px, 1.3fr) minmax(90px, .8fr) 80px 90px 110px 70px; gap: 10px; align-items: center; min-width: 680px; padding: 10px 12px; }
.effect-monitor-data-table > .head { color: #97a4b4; background: #f8fbff; font-size: 8px; font-weight: 750; }
.effect-monitor-data-table > .row { border-top: 1px solid #edf1f6; color: #6f8198; font-size: 9px; }
.effect-monitor-data-table > .row b { overflow: hidden; color: #526b8a; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-data-table > .row strong { color: #4778bf; font-weight: 750; }
.effect-monitor-source-table > .head, .effect-monitor-source-table > .row { grid-template-columns: minmax(160px, 1.5fr) minmax(120px, 1fr) 90px 130px; min-width: 560px; }
.effect-monitor-source-table a { overflow: hidden; color: #4c79bd; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-sentiment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 15px 20px 20px; }
.effect-monitor-sentiment-grid article { display: grid; gap: 6px; padding: 15px; border: 1px solid #e2eaf3; border-radius: 10px; background: #fbfdff; }
.effect-monitor-sentiment-grid b { color: #526b8a; font-size: 10px; }
.effect-monitor-sentiment-grid strong { color: #4778bf; font-size: 20px; }
.effect-monitor-sentiment-grid small { color: #93a1b1; font-size: 8px; }
.effect-monitor-dialog-list { display: grid; gap: 10px; margin: 15px 20px 20px; }
.effect-monitor-dialog-list article { overflow: hidden; border: 1px solid #e2eaf3; border-radius: 10px; background: #fff; }
.effect-monitor-dialog-list article > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #edf1f6; background: #fbfdff; }
.effect-monitor-dialog-list article > header b, .effect-monitor-dialog-list article > header small { display: block; }
.effect-monitor-dialog-list article > header b { color: #526b8a; font-size: 10px; }
.effect-monitor-dialog-list article > header small { margin-top: 3px; color: #98a6b6; font-size: 8px; }
.effect-monitor-dialog-list .question, .effect-monitor-dialog-list .answer { margin: 0; padding: 11px 13px 0; color: #657991; font-size: 10px; line-height: 1.65; }
.effect-monitor-dialog-list .question { color: #4c6ea7; font-weight: 700; }
.effect-monitor-dialog-list article > footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; padding: 9px 13px; border-top: 1px solid #edf1f6; color: #97a4b3; font-size: 8px; }
.effect-monitor-export-panel { min-height: 270px; }
.effect-monitor-export-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 20px; }
.effect-monitor-export-summary > div { padding: 13px; border: 1px solid #e2eaf3; border-radius: 10px; background: #fbfdff; }
.effect-monitor-export-summary small, .effect-monitor-export-summary b { display: block; }
.effect-monitor-export-summary small { color: #97a4b4; font-size: 8px; }
.effect-monitor-export-summary b { margin-top: 6px; overflow: hidden; color: #536e92; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.effect-monitor-export-actions { display: flex; gap: 8px; margin: 0 20px 14px; }
.effect-monitor-question-list { display: grid; gap: 9px; margin: 15px 20px 20px; }
.effect-monitor-question-list article { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border: 1px solid #e2eaf3; border-radius: 9px; background: #fbfdff; }
.effect-monitor-question-list article > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: #fff; background: #5d87d2; font-size: 9px; font-weight: 750; }
.effect-monitor-question-list b, .effect-monitor-question-list small { display: block; }
.effect-monitor-question-list b { color: #526b8a; font-size: 10px; line-height: 1.55; }
.effect-monitor-question-list small { margin-top: 4px; color: #98a6b6; font-size: 8px; }
.effect-demo-input select { width: 100%; min-height: 34px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: #fff; font: inherit; font-size: 10px; }
.effect-demo-input.is-disabled { opacity: .58; }

@media (max-width: 900px) {
  .effect-search-result-grid { grid-template-columns: 1fr; }
  .effect-search-report-details { grid-template-columns: 1fr; }
  .effect-diagnostic-start-card { grid-template-columns: 1fr; }
  .effect-diagnostic-round-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .effect-search-summary { grid-template-columns: repeat(2, 1fr); }
  .effect-search-result-metrics { grid-template-columns: repeat(2, 1fr); }
  .effect-search-results > header { flex-direction: column; }
  .effect-search-report-body { padding-inline: 12px; }
  .effect-search-analysis-sections { grid-template-columns: 1fr; }
  .effect-search-generated-sections { grid-template-columns: 1fr; }
  .effect-search-analysis-report > header { align-items: flex-start; flex-direction: column; }
  .effect-search-report-header-actions { align-items: flex-start; flex-direction: column-reverse; }
  .effect-search-report-platforms li { grid-template-columns: minmax(0, 1fr) 54px 54px; }
  .effect-diagnostic-history > header,
  .effect-diagnostic-report > header,
  .effect-monitor-plans > header,
  .effect-monitor-detail > header { align-items: flex-start; flex-direction: column; }
  .effect-diagnostic-history-row,
  .effect-monitor-plan-row { grid-template-columns: 1fr; gap: 7px; }
  .effect-monitor-actions { justify-content: flex-start; }
  .effect-monitor-trend-list,
  .effect-monitor-run-list { overflow-x: auto; }
  .effect-monitor-trend-list article { min-width: 560px; }
  .effect-monitor-run-list article { min-width: 520px; }
  .effect-monitor-hero { flex-direction: column; }
  .effect-monitor-hero-meta { justify-items: start; }
  .effect-monitor-analytics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effect-monitor-dashboard-grid { grid-template-columns: 1fr; }
  .effect-monitor-sentiment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effect-monitor-export-summary { grid-template-columns: 1fr; }
  .effect-monitor-view-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .effect-monitor-view-tab { flex: 0 0 auto; }
}

@media (min-width: 621px) and (max-width: 1180px) {
  .effect-monitor-dashboard-view > .effect-monitor-analytics-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .effect-monitor-dashboard-view > .effect-monitor-analytics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Customer AI detection centre: every visible task and result is backed by the
   signed relay API and local live evidence, never a browser-side sample. */
#view.route-effect-search .effect-demo-layout { grid-template-columns: minmax(0, 1fr); }
.effect-center-page { padding-bottom: 34px; }
.effect-center-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 13px 0 15px; }
.effect-center-tabs a { display: grid; gap: 3px; min-width: 0; padding: 11px 13px; border: 1px solid #dce5f1; border-radius: 11px; color: #6d7d92; background: #fff; box-shadow: 0 3px 10px rgba(44, 73, 128, .04); }
.effect-center-tabs a:hover { border-color: #b6ccef; color: #3769b6; }
.effect-center-tabs a.active { border-color: #7da3df; color: #2f64af; background: linear-gradient(135deg, #fff, #f0f6ff); box-shadow: inset 3px 0 0 #4f83d1; }
.effect-center-tabs b { font-size: 12px; }
.effect-center-tabs small { overflow: hidden; color: #94a1b2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.effect-demo-input textarea { min-width: 0; min-height: 104px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; resize: vertical; color: var(--ink); background: #fff; font: inherit; font-size: 11px; line-height: 1.6; }
.effect-demo-input textarea:focus { border-color: #8fb4ee; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.effect-input-hint { margin-top: -1px; color: #9aa7b8; font-size: 8px; line-height: 1.45; }
.effect-capability-empty { padding: 20px; border: 1px dashed #cdd9e8; border-radius: 10px; color: #7c8da3; background: #fbfdff; font-size: 10px; text-align: center; }
.effect-capability-picker .effect-platform-card { min-height: 0; }
.effect-capability-picker .effect-platform-card-head small { color: #9aa8ba; }
.effect-capability-picker .effect-platform-row { min-height: 46px; }
.effect-search-scope-summary { display: grid; gap: 1px; }
.effect-search-scope-summary small { color: #9aa8ba; font-size: 8px; }
.effect-task-center, .effect-results-center { overflow: hidden; padding: 0; }
.effect-task-center > header, .effect-results-center > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 15px; border-bottom: 1px solid #e8edf4; }
.effect-task-center header h3, .effect-results-center header h3 { margin: 4px 0; color: var(--ink-strong); font-size: 17px; letter-spacing: -.02em; }
.effect-task-center header p, .effect-results-center header p { max-width: 680px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.effect-task-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 15px 20px; overflow: hidden; border: 1px solid #e5ebf3; border-radius: 10px; background: #e5ebf3; }
.effect-task-summary > div { min-width: 0; padding: 11px 12px; background: #fbfcfe; }
.effect-task-summary small, .effect-task-summary b, .effect-task-summary em { display: block; }
.effect-task-summary small { color: #9aa6b6; font-size: 8px; }
.effect-task-summary b { margin-top: 4px; color: #425a7d; font-size: 17px; }
.effect-task-summary em { margin-top: 3px; overflow: hidden; color: #98a4b5; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.effect-task-table { margin: 0 20px 20px; overflow: hidden; border: 1px solid #e3eaf3; border-radius: 10px; }
.effect-task-row { display: grid; grid-template-columns: minmax(210px, 1.7fr) minmax(90px, .8fr) minmax(100px, .8fr) minmax(110px, .85fr) auto; gap: 12px; align-items: center; padding: 12px; border-top: 1px solid #edf1f6; color: #67768b; font-size: 9px; }
.effect-task-row:first-child { border-top: 0; }
.effect-task-row > div > small, .effect-task-row > div > b, .effect-task-row > div > em { display: block; }
.effect-task-row > div > small { color: #9aa6b6; font-size: 8px; }
.effect-task-row > div > b { margin-top: 3px; color: #536780; font-size: 10px; }
.effect-task-row > div > em { margin-top: 3px; color: #9aa7b8; font-size: 8px; font-style: normal; }
.effect-task-name b { overflow: hidden; color: #465b79; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.effect-task-name small { overflow: hidden; margin-top: 4px; text-overflow: ellipsis; white-space: nowrap; }
.effect-task-name em { overflow: hidden; color: #b35e5e !important; text-overflow: ellipsis; white-space: nowrap; }
.effect-task-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.effect-task-actions .danger { color: #b85e5e; }
.effect-center-notice { display: flex; align-items: center; gap: 6px; margin: 0 20px 15px; padding: 9px 10px; border-radius: 8px; font-size: 9px; }
.effect-center-notice.warning { color: #9d6b23; background: #fff7eb; }
.effect-center-notice svg { width: 13px; height: 13px; }
.effect-center-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 13px 20px; border-bottom: 1px solid #edf1f5; background: #fafcff; }
.effect-center-filters label { display: grid; min-width: 146px; gap: 5px; color: #78869b; font-size: 9px; font-weight: 700; }
.effect-center-filters select { min-width: 0; min-height: 32px; padding: 0 26px 0 8px; border: 1px solid #dfe6ef; border-radius: 7px; outline: 0; color: #52657d; background: #fff; font-size: 10px; }
.effect-center-trend-card { display: grid; gap: 11px; margin: 15px 20px; padding: 14px; border: 1px solid #e3eaf4; border-radius: 10px; background: #fbfdff; }
.effect-center-trend-card > div:first-child { display: grid; gap: 3px; }
.effect-center-trend-card > div:first-child b { color: #50647e; font-size: 11px; }
.effect-center-trend-card > div:first-child small { color: #8998aa; font-size: 9px; line-height: 1.5; }
.effect-trend-list { overflow: hidden; border: 1px solid #e5ebf3; border-radius: 8px; background: #fff; }
.effect-trend-list article { display: grid; grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(90px, .7fr)); gap: 9px; align-items: center; padding: 9px 10px; border-top: 1px solid #edf1f5; }
.effect-trend-list article:first-child { border-top: 0; }
.effect-trend-list b, .effect-trend-list small { display: block; }
.effect-trend-list article > div > b { color: #53657d; font-size: 9px; }
.effect-trend-list article > div > small { margin-top: 3px; overflow: hidden; color: #93a0b0; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.effect-trend-list article > span small { color: #9aa6b4; font-size: 8px; }
.effect-trend-list article > span b { margin-top: 3px; overflow: hidden; color: #60738e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .effect-task-row { grid-template-columns: minmax(210px, 1.4fr) repeat(2, minmax(90px, .8fr)); }
  .effect-task-row > div:nth-child(4) { display: none; }
  .effect-task-actions { justify-content: flex-start; }
  .effect-trend-list article { grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(90px, .8fr)); }
  .effect-trend-list article > span:last-child { display: none; }
}

@media (max-width: 620px) {
  .effect-center-tabs { grid-template-columns: 1fr; }
  .effect-task-center > header, .effect-results-center > header { align-items: flex-start; flex-direction: column; }
  .effect-task-summary { grid-template-columns: 1fr; }
  .effect-task-table { overflow-x: auto; }
  .effect-task-row { min-width: 690px; }
  .effect-center-filters label { flex: 1 1 140px; }
  .effect-trend-list { overflow-x: auto; }
  .effect-trend-list article { min-width: 560px; }
}

.effect-demo-report > header > div:last-child { display: flex; align-items: center; gap: 8px; }
.effect-demo-report-kpis b { margin-top: 3px; color: #3f5f94; font-size: 20px; letter-spacing: -.04em; }
.effect-demo-report-kpis em { color: var(--green); }
.effect-demo-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 20px 0; }
.effect-demo-report-grid > article { min-width: 0; padding: 14px; border: 1px solid #e5ebf3; border-radius: 10px; background: #fbfcfe; }
.effect-demo-report-grid h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; color: #50627d; font-size: 10px; }
.effect-demo-report-grid h4 small { color: #a1abba; font-size: 8px; font-weight: 500; }
.effect-demo-bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 32px; align-items: center; gap: 8px; margin-top: 9px; }
.effect-demo-bar-row > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.effect-demo-bar-row > span i { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #fff; background: var(--platform); font-size: 7px; font-style: normal; }
.effect-demo-bar-row > span b { overflow: hidden; color: #657791; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.effect-demo-bar-row > div { height: 7px; overflow: hidden; border-radius: 99px; background: #e8eef5; }
.effect-demo-bar-row > div i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: var(--bar-color); }
.effect-demo-bar-row > strong { color: #5378b2; font-size: 9px; text-align: right; }
.effect-demo-insights { display: grid; gap: 9px; }
.effect-demo-insights p { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 7px; margin: 0; }
.effect-demo-insights p > i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; font-style: normal; }
.effect-demo-insights p > i svg { width: 12px; height: 12px; }
.effect-demo-insights p > i.positive { color: var(--green); background: var(--green-soft); }
.effect-demo-insights p > i.warning { color: var(--amber); background: var(--amber-soft); }
.effect-demo-insights p > i.blue { color: var(--blue); background: var(--blue-soft); }
.effect-demo-insights b,
.effect-demo-insights small { display: block; }
.effect-demo-insights b { color: #5c6d85; font-size: 9px; }
.effect-demo-insights small { margin-top: 2px; color: #8f9eaf; font-size: 8px; line-height: 1.55; }
.effect-demo-report-foot { margin-top: 12px; }
.effect-demo-report-foot > span:first-child { color: var(--green); }
.effect-demo-report-foot .link-button { margin-left: auto; }
.effect-demo-monitor-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid #d9e6f7; border-radius: 14px; background: radial-gradient(circle at 88% 25%, rgba(63, 109, 231, .13), transparent 13rem), linear-gradient(115deg, #fff, #f4f8ff); box-shadow: var(--shadow-sm); }
.effect-demo-monitor-hero h3 { font-size: 20px; }
.effect-demo-monitor-hero p { max-width: 690px; }
.effect-demo-filter { display: flex; gap: 8px; }
.effect-demo-filter select { min-height: 32px; padding: 0 26px 0 9px; border: 1px solid #d5e0ef; border-radius: 8px; color: #617490; background: #fff; font-size: 9px; }
.effect-demo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.effect-demo-kpis > div { display: grid; grid-template-columns: 37px 1fr; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-sm); }
.effect-demo-kpis > div > span { display: grid; width: 37px; height: 37px; grid-row: 1 / 4; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); }
.effect-demo-kpis > div:nth-child(2) > span { color: var(--green); background: var(--green-soft); }
.effect-demo-kpis > div:nth-child(3) > span { color: var(--purple); background: var(--purple-soft); }
.effect-demo-kpis svg { width: 17px; height: 17px; }
.effect-demo-kpis small { color: var(--muted-2); font-size: 8px; }
.effect-demo-kpis b { color: #344f78; font-size: 22px; letter-spacing: -.04em; line-height: 1.15; }
.effect-demo-kpis em { color: var(--green); font-size: 8px; font-style: normal; }
.effect-demo-monitor-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 16px; }
.effect-demo-ranking,
.effect-demo-sources,
.effect-demo-flow { overflow: hidden; padding: 0; }
.effect-demo-ranking > header,
.effect-demo-sources > header,
.effect-demo-flow > header { padding: 16px 18px 13px; }
.effect-demo-ranking header h3,
.effect-demo-sources header h3,
.effect-demo-flow header h3 { margin-top: 0; font-size: 14px; }
.effect-demo-ranking header p,
.effect-demo-sources header p,
.effect-demo-flow header p { font-size: 9px; }
.effect-demo-ranking td:nth-child(2) b,
.effect-demo-ranking td:nth-child(2) small,
.effect-demo-ranking td:nth-child(7) b,
.effect-demo-ranking td:nth-child(7) small { display: block; }
.effect-demo-ranking td:nth-child(2) b { color: #52647c; font-size: 10px; }
.effect-demo-ranking td:nth-child(2) small,
.effect-demo-ranking td:nth-child(7) small { color: #9da9b9; font-size: 8px; }
.effect-demo-rank { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: #7e8da1; background: #eef2f6; font-size: 9px; font-weight: 750; }
.effect-demo-rank.top { color: #fff; background: linear-gradient(135deg, #6d98ef, #376fe8); }
.effect-demo-rate { color: #4d73b0; font-size: 10px; }
.effect-demo-mini { width: 62px; height: 4px; margin-top: 4px; overflow: hidden; border-radius: 99px; background: #e8eef7; }
.effect-demo-mini i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: #6e96e7; }
.effect-demo-source-list { display: grid; gap: 14px; padding: 20px 18px 17px; }
.effect-demo-source-list > div { display: grid; grid-template-columns: 100px minmax(0, 1fr) 35px; gap: 9px; align-items: center; }
.effect-demo-source-list > div > span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.effect-demo-source-list > div > span i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--source); }
.effect-demo-source-list > div > span b { overflow: hidden; color: #63758f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.effect-demo-source-list > div > div { height: 8px; overflow: hidden; border-radius: 99px; background: #edf1f6; }
.effect-demo-source-list > div > div i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: var(--bar-color); }
.effect-demo-source-list > div > strong { color: #4f6f9f; font-size: 10px; text-align: right; }
.effect-demo-sources > footer { padding: 12px 18px; border-top: 1px solid #edf1f6; color: #8d9bad; font-size: 8px; }
.effect-demo-sources > footer b { color: #536e9c; }
.effect-demo-flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); padding: 19px; }
.effect-demo-flow-steps > div { display: grid; min-width: 0; gap: 5px; padding: 0 15px; border-left: 1px solid #e4eaf2; }
.effect-demo-flow-steps > div:first-child { padding-left: 0; border-left: 0; }
.effect-demo-flow-steps > div:last-child { padding-right: 0; }
.effect-demo-flow-steps i { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #8797ad; background: #eef2f7; font-size: 9px; font-style: normal; font-weight: 750; }
.effect-demo-flow-steps .done i { color: #fff; background: var(--green); }
.effect-demo-flow-steps .active i { color: #fff; background: var(--blue); box-shadow: 0 0 0 4px rgba(55, 111, 232, .1); }
.effect-demo-flow-steps b { color: #506782; font-size: 10px; }
.effect-demo-flow-steps small { min-height: 26px; color: #909daf; font-size: 8px; line-height: 1.5; }
.effect-demo-flow-steps .link-button { justify-self: start; padding: 0; font-size: 8px; }

@media (max-width: 1120px) {
  .effect-demo-layout { grid-template-columns: 210px minmax(0, 1fr); }
  .effect-demo-platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .effect-demo-monitor-grid { grid-template-columns: 1fr; }
  .effect-demo-flow-steps { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .effect-demo-flow-steps > div:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  .effect-demo-layout { grid-template-columns: 1fr; }
  .effect-demo-history { position: static; }
  .effect-demo-history-empty { display: none; }
  .effect-demo-history-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effect-demo-form { grid-template-columns: 1fr; }
  .effect-demo-input.full,
  .effect-demo-field.full { grid-column: auto; }
  .effect-demo-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .effect-demo-controls { align-items: flex-start; flex-wrap: wrap; }
  .effect-demo-controls > label { flex: 1; min-width: 120px; }
  .effect-demo-credit { flex-basis: 100%; }
  .effect-demo-answer-metrics,
  .effect-demo-report-kpis { grid-template-columns: repeat(2, 1fr); }
  .effect-demo-report-grid { grid-template-columns: 1fr; }
  .effect-demo-monitor-hero { align-items: flex-start; flex-direction: column; }
  .effect-demo-kpis { grid-template-columns: 1fr; }
  .effect-demo-flow-steps { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .effect-demo-flow-steps > div:nth-child(3),
  .effect-demo-flow-steps > div:nth-child(5) { padding-left: 0; border-left: 0; }
}

@media (max-width: 460px) {
  .effect-demo-tabs a { min-width: 150px; }
  .effect-demo-history-list,
  .effect-demo-platforms,
  .effect-demo-answer-metrics,
  .effect-demo-report-kpis { grid-template-columns: 1fr; }
  .effect-demo-query > header,
  .effect-demo-answer > header,
  .effect-demo-report > header,
  .effect-demo-ranking > header,
  .effect-demo-sources > header,
  .effect-demo-flow > header { align-items: flex-start; flex-direction: column; }
  .effect-demo-report > header > div:last-child { flex-wrap: wrap; }
  .effect-demo-answer > footer,
  .effect-demo-report-foot { align-items: flex-start; flex-direction: column; gap: 6px; }
  .effect-demo-report-foot .link-button { margin-left: 0; }
  .effect-demo-flow-steps { grid-template-columns: 1fr; }
  .effect-demo-flow-steps > div,
  .effect-demo-flow-steps > div:nth-child(n) { padding-left: 0; border-left: 0; }
}

/* Platform selector for the live-search flow. */
.effect-platform-picker { display: grid; gap: 10px; padding: 20px 12px 9px; border: 1px solid #d9e1ed; border-radius: 14px; background: linear-gradient(180deg, #fff 0%, #fbfcff 100%); }
.effect-platform-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.effect-platform-heading small { color: #8e9aac; font-size: 8px; font-weight: 500; }
.effect-platform-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.effect-platform-card { position: relative; min-width: 0; min-height: 168px; padding: 30px 6px 8px; border: 1px solid #dce2eb; border-radius: 12px; background: rgba(255, 255, 255, .9); transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease; }
.effect-platform-card:hover { border-color: #a9c1f2; box-shadow: 0 7px 16px rgba(49, 89, 170, .1); transform: translateY(-1px); }
.effect-platform-card.selected { border-color: #a6bdf0; background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%); box-shadow: inset 0 0 0 1px rgba(73, 115, 220, .06); }
.effect-platform-card-head { position: absolute; top: -27px; right: 2px; left: 2px; display: grid; justify-items: center; gap: 3px; }
.effect-platform-logo { display: grid; width: 36px; height: 36px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--platform); box-shadow: 0 4px 10px rgba(46, 81, 152, .2); font-size: 11px; font-weight: 800; }
.effect-platform-card-head b { overflow: hidden; max-width: 100%; color: #39465a; font-size: 10px; font-weight: 750; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.effect-platform-card-head small { color: #a4aebe; font-size: 7px; }
.effect-platform-card-body { display: grid; gap: 10px; }
.effect-platform-card.unavailable { min-height: 168px; background: #fafbfc; }
.effect-platform-card.unavailable:hover { border-color: #dce2eb; box-shadow: none; transform: none; }
.effect-platform-card.unavailable .effect-platform-logo { filter: grayscale(.7); opacity: .62; }
.effect-platform-pending { display: grid; min-height: 72px; place-items: center; color: #a2adbb; font-size: 9px; }
.effect-platform-row { display: grid; gap: 4px; padding: 7px 1px 0; border-top: 1px solid #e6eaf0; cursor: pointer; }
.effect-platform-row-main { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 4px; color: #475267; font-size: 10px; }
.effect-platform-row-main input,
.effect-platform-toolbar input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.effect-platform-check,
.effect-platform-toolbar-check { display: grid; width: 14px; height: 14px; flex: 0 0 auto; place-items: center; border: 1px solid #d8dee8; border-radius: 4px; color: transparent; background: #fff; font-style: normal; transition: .14s ease; }
.effect-platform-check svg,
.effect-platform-toolbar-check svg { width: 10px; height: 10px; stroke-width: 3; }
.effect-platform-row.checked .effect-platform-check,
.effect-platform-toolbar label:has(input:checked) .effect-platform-toolbar-check { border-color: #713bff; color: #fff; background: #713bff; }
.effect-platform-row.unavailable, .effect-platform-toolbar label.unavailable { cursor: not-allowed; opacity: .42; }
.effect-platform-row.unavailable .effect-platform-mode { color: #c5cbd5; background: #f7f8fa; }
.effect-platform-row-main b { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.effect-platform-row-main em { padding: 1px 4px; border-radius: 4px; color: #f47b20; background: #fff3e5; font-size: 7px; font-style: normal; font-weight: 700; }
.effect-platform-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; min-height: 16px; }
.effect-platform-mode { padding: 3px 5px; border: 1px solid #e7ebf2; border-radius: 99px; color: #b3bccb; background: #fff; font-size: 8px; line-height: 1; }
.effect-platform-mode.active { border-color: #f0a51c; color: #f08b00; background: #fffaf0; }
.effect-platform-toolbar { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 3px; }
.effect-platform-toolbar label { position: relative; display: inline-flex; align-items: center; gap: 5px; color: #4d5563; cursor: pointer; font-size: 9px; }
.effect-platform-toolbar label b { font-weight: 600; }

/* Real-time search composer: mirrors the compact multi-platform workflow. */
.effect-live-search-shell { display: grid; gap: 18px; padding: 46px 0 8px; }
.effect-live-search-hero { text-align: center; }
.effect-live-search-hero h2 { margin: 0; color: #4b4f5b; font-size: clamp(20px, 2vw, 27px); font-weight: 600; letter-spacing: -.03em; }
.effect-live-search-hero p { margin: 9px 0 0; color: #8490a2; font-size: 11px; }
.effect-live-search-panel { padding: 14px 14px 12px; border: 1px solid #e7e5ff; border-radius: 34px; background: rgba(255, 255, 255, .97); box-shadow: 0 18px 50px rgba(72, 76, 158, .08); }
.effect-live-composer { display: grid; grid-template-columns: 34px minmax(0, 1fr) 50px; align-items: center; gap: 10px; min-height: 102px; padding: 12px 14px 12px 20px; border-radius: 26px; background: linear-gradient(135deg, #f4f1ff, #f8f7ff); }
.effect-live-composer-icon { display: grid; width: 32px; height: 32px; place-items: center; color: #6831f7; }
.effect-live-composer-icon svg { width: 27px; height: 27px; stroke-width: 2.4; }
.effect-live-composer-fields { display: grid; min-width: 0; }
.effect-live-composer-fields label { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; min-height: 43px; border-bottom: 1px solid #dddff0; }
.effect-live-composer-fields label:last-child { border-bottom: 0; }
.effect-live-composer-fields b { color: #505361; font-size: 12px; font-weight: 600; }
.effect-live-composer-fields input { width: 100%; min-width: 0; border: 0; outline: 0; color: #414755; background: transparent; font: inherit; font-size: 12px; }
.effect-live-composer-fields input::placeholder { color: #a2a6b2; }
.effect-live-submit { display: grid; width: 48px; height: 48px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #713cff, #8529f6); box-shadow: 0 8px 22px rgba(113, 60, 255, .26); cursor: pointer; font-size: 30px; line-height: 1; }
.effect-live-submit:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(113, 60, 255, .34); }
.effect-live-submit:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.effect-live-estimate { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 7px; margin: 10px 4px 0; color: #5b6476; font-size: 10px; }
.effect-live-estimate[hidden] { display: none; }
.effect-live-estimate > span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: #6f3df6; background: #f2edff; }
.effect-live-estimate > span svg { width: 13px; height: 13px; }
.effect-live-estimate b { color: #4f3bb9; font-size: 11px; }
.effect-live-estimate small { color: #9aa3b1; font-size: 8px; }
.effect-live-platforms { padding: 38px 0 0; }
.effect-live-platforms .effect-platform-picker { padding: 0; border: 0; background: transparent; }
.effect-live-platforms .effect-platform-card { min-height: 188px; padding-top: 39px; }
.effect-live-platforms .effect-platform-card-head { top: -28px; }
.effect-live-platforms .effect-platform-card-head b { line-height: 1.25; }
.effect-live-platforms .effect-platform-toolbar { padding-top: 7px; }
.effect-search-page > .effect-search-results { margin-top: 18px; }

@media (max-width: 1120px) {
  .effect-live-search-shell { padding-top: 28px; }
  .effect-live-search-panel { border-radius: 24px; }
}

@media (max-width: 680px) {
  .effect-live-search-shell { padding-top: 16px; }
  .effect-live-search-hero h2 { font-size: 20px; }
  .effect-live-search-panel { padding: 10px; border-radius: 20px; }
  .effect-live-composer { grid-template-columns: 26px minmax(0, 1fr) 40px; padding-left: 12px; border-radius: 16px; }
  .effect-live-composer-fields label { grid-template-columns: 60px minmax(0, 1fr); }
  .effect-live-submit { width: 40px; height: 40px; font-size: 25px; }
  .effect-live-estimate { flex-wrap: wrap; }
}

@media (max-width: 1120px) {
  .effect-platform-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 30px; }
}

@media (max-width: 760px) {
  .effect-platform-picker { padding-inline: 8px; }
  .effect-platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .effect-platform-toolbar { flex-wrap: wrap; gap: 10px 16px; }
}

@media (max-width: 460px) {
  .effect-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* AI effect detection: local AIDSO-style diagnostic and monitoring pages. */
#view.route-effect-search .effect-demo-layout { grid-template-columns: minmax(0, 1fr); }

.aidso-effect-tabs {
  display: flex;
  gap: 10px;
  width: min(1220px, 100%);
  margin: 0 auto 14px;
  overflow-x: auto;
  padding: 2px;
}

.aidso-effect-tabs a {
  display: grid;
  min-width: 184px;
  gap: 3px;
  padding: 11px 14px;
  border: 1px solid #dfe5f1;
  border-radius: 12px;
  color: #718096;
  background: #fff;
  box-shadow: 0 3px 10px rgba(44, 73, 128, .04);
}

.aidso-effect-tabs a:hover { border-color: #b9c7f4; color: #4d57c8; }
.aidso-effect-tabs a.active { border-color: #7869ec; color: #5144cc; background: linear-gradient(135deg, #fff, #f2f0ff); box-shadow: inset 3px 0 0 #7869ec; }
.aidso-effect-tabs b { font-size: 13px; }
.aidso-effect-tabs small { color: #99a4b7; font-size: 11px; }

.aidso-diagnostic-start { max-width: 1220px; }
.aidso-diagnostic-start-hero {
  display: grid;
  justify-items: center;
  min-height: 520px;
  padding: 84px 34px 62px;
  border: 1px solid #dde4fb;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(132, 105, 244, .2), transparent 20rem),
    linear-gradient(180deg, #f8f7ff 0%, #f2f5ff 100%);
  text-align: center;
}

.aidso-start-badge { padding: 6px 11px; border: 1px solid #ded7ff; border-radius: 99px; color: #7059dd; background: rgba(255,255,255,.7); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.aidso-diagnostic-start h2 { margin: 18px 0 10px; color: #2e315a; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.05em; }
.aidso-diagnostic-start p { max-width: 650px; margin: 0; color: #737c9b; font-size: 14px; line-height: 1.8; }
.aidso-start-form { display: grid; width: min(700px, 100%); grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 34px; padding: 10px; border: 1px solid rgba(202, 208, 239, .9); border-radius: 16px; background: rgba(255,255,255,.93); box-shadow: 0 16px 34px rgba(91, 88, 178, .10); }
.aidso-start-form label { display: grid; gap: 4px; min-width: 0; padding: 5px 8px; text-align: left; }
.aidso-start-form label span { color: #8c95aa; font-size: 11px; font-weight: 700; }
.aidso-start-form input { min-width: 0; border: 0; outline: 0; color: #3e4663; background: transparent; font-size: 13px; }
.aidso-start-form .primary-button { min-height: 44px; align-self: end; border-radius: 10px; }
.aidso-start-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 25px; margin-top: 22px; color: #777f97; font-size: 12px; }
.aidso-start-notes span { display: inline-flex; align-items: center; gap: 5px; }
.aidso-start-notes svg { width: 14px; height: 14px; color: #6f64e8; }

.aidso-diagnostic-page { max-width: 1220px; display: grid; gap: 15px; padding-bottom: 38px; }
.aidso-diagnostic-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 28px; border: 1px solid #e2e7f3; border-radius: 17px; background: linear-gradient(104deg, #fff 0%, #f7f6ff 100%); }
.aidso-diagnostic-header > div { min-width: 0; }
.aidso-diagnostic-header span, .aidso-report header > div > span { color: #7562df; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.aidso-diagnostic-header h2 { margin: 6px 0 4px; color: #313753; font-size: 26px; letter-spacing: -.04em; }
.aidso-diagnostic-header p { margin: 0; color: #828ba2; font-size: 12px; line-height: 1.6; }
.aidso-diagnostic-section { padding: 20px 22px; border: 1px solid #e3e7ef; border-radius: 15px; background: #fff; box-shadow: 0 5px 16px rgba(40, 65, 110, .035); }
.aidso-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.aidso-section-title > div { display: flex; min-width: 0; align-items: center; gap: 9px; }
.aidso-section-title > div > i { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(135deg, #806ded, #5c73ec); font-size: 11px; font-style: normal; font-weight: 800; }
.aidso-section-title h3 { margin: 0; color: #3c465d; font-size: 15px; }
.aidso-section-title small { color: #98a2b4; font-size: 11px; }
.aidso-brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 13px; }
.aidso-brand-grid label, .aidso-report-filters label { display: grid; gap: 6px; color: #68758a; font-size: 11px; font-weight: 700; }
.aidso-brand-grid input, .aidso-inline-add input, .aidso-competitor-table input, .aidso-report-filters select, .aidso-rounds select { min-width: 0; min-height: 38px; padding: 0 10px; border: 1px solid #dfe5ee; border-radius: 8px; outline: 0; color: #4b5870; background: #fff; font-size: 12px; }
.aidso-brand-grid input:focus, .aidso-inline-add input:focus, .aidso-competitor-table input:focus { border-color: #9b8df4; box-shadow: 0 0 0 3px rgba(112, 92, 230, .09); }
.aidso-term-list { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.aidso-term-list > b { flex: 0 0 auto; color: #667389; font-size: 11px; }
.aidso-term-list > div { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; gap: 6px; }
.aidso-term-list > div span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 6px; color: #6154cc; background: #f1efff; font-size: 11px; }
.aidso-term-list button { padding: 0; border: 0; color: #7568d9; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; }
.aidso-inline-add { display: flex; width: min(260px, 30%); min-width: 190px; gap: 5px; }
.aidso-inline-add input { min-height: 30px; flex: 1; padding-inline: 8px; font-size: 11px; }
.aidso-inline-add button { border: 0; border-radius: 7px; color: #fff; background: #7461df; cursor: pointer; font-size: 11px; }

.aidso-competitor-table { overflow: hidden; border: 1px solid #e5eaf1; border-radius: 10px; }
.aidso-competitor-table > div, .aidso-competitor-table label { display: grid; grid-template-columns: 20% minmax(0, 1fr) 72px; gap: 10px; align-items: center; padding: 9px 11px; }
.aidso-competitor-table > div { color: #96a1b4; background: #f8fafc; font-size: 11px; font-weight: 700; }
.aidso-competitor-table label { border-top: 1px solid #edf0f4; }
.aidso-competitor-table input { min-height: 33px; padding-inline: 8px; font-size: 11px; }
.aidso-competitor-table button { border: 0; color: #8c6d8c; background: transparent; cursor: pointer; font-size: 11px; }
.effect-diagnostic-competitor-editor { margin-top: 14px; padding: 14px; border: 1px solid #e5eaf1; border-radius: 10px; background: #fff; }
.effect-diagnostic-competitor-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.effect-diagnostic-competitor-editor > header > div { display: grid; gap: 3px; }
.effect-diagnostic-competitor-editor > header b { color: #405774; font-size: 12px; }
.effect-diagnostic-competitor-editor > header small { color: #93a0b2; font-size: 9px; }
.effect-diagnostic-inline-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.effect-diagnostic-inline-actions small { color: #93a0b2; font-size: 9px; }
.aidso-competitor-empty { padding: 15px; border: 1px dashed #dbe1ec; border-radius: 9px; color: #929eb0; background: #fafcff; font-size: 11px; text-align: center; }
.effect-diagnostic-question-editor { margin-top: 14px; padding: 14px; border: 1px solid #e5eaf1; border-radius: 10px; background: #fff; }
.effect-diagnostic-question-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.effect-diagnostic-question-editor > header > div:first-child { display: grid; gap: 3px; }
.effect-diagnostic-question-editor > header b { color: #405774; font-size: 12px; }
.effect-diagnostic-question-editor > header small { color: #93a0b2; font-size: 9px; }
.effect-diagnostic-question-editor > header > div:last-child { display: flex; gap: 10px; }
.effect-diagnostic-report-action { display: flex; align-items: center; justify-content: flex-end; min-height: 42px; margin: 12px 20px 0; padding: 10px 12px; border: 1px solid #e4e9f2; border-radius: 9px; background: #fbfdff; }
.effect-diagnostic-report-ready { display: grid; width: 100%; gap: 3px; color: #3e5674; font-size: 10px; }
.effect-diagnostic-report-ready b { color: #2c8b67; font-size: 11px; }
.effect-diagnostic-report-ready span, .effect-diagnostic-report-ready small { color: #7e91a8; font-size: 9px; }
.aidso-question-toolbar { display: flex; gap: 10px; }
.aidso-question-table { overflow: hidden; border: 1px solid #e5eaf1; border-radius: 10px; }
.aidso-question-table-head, .aidso-question-row { display: grid; grid-template-columns: 126px 115px minmax(210px, 1fr) 52px 135px; gap: 10px; align-items: center; padding: 10px 12px; }
.aidso-question-table-head { color: #98a2b2; background: #f8fafc; font-size: 11px; font-weight: 700; }
.aidso-question-row { border-top: 1px solid #edf0f4; color: #566378; font-size: 11px; }
.aidso-question-row > p { margin: 0; color: #445168; font-size: 12px; line-height: 1.55; }
.aidso-question-category { display: flex; align-items: center; gap: 6px; }
.aidso-question-category i { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #7666dc; background: #f0effd; font-size: 9px; font-style: normal; font-weight: 700; }
.aidso-question-keyword { overflow: hidden; color: #7666dc; text-overflow: ellipsis; white-space: nowrap; }
.aidso-question-heat { color: #eb8b28; font-weight: 800; }
.aidso-question-actions { display: flex; gap: 8px; }
.aidso-question-actions button { padding: 0; border: 0; color: #6a63cc; background: transparent; cursor: pointer; font-size: 11px; }
.aidso-question-empty, .aidso-inline-empty { padding: 15px; border: 1px dashed #dbe1ec; border-radius: 9px; color: #929eb0; background: #fafcff; font-size: 12px; text-align: center; }

.aidso-platform-title { align-items: flex-start; }
.aidso-platform-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px; }
.aidso-platform-toolbar label { position: relative; display: inline-flex; align-items: center; gap: 5px; color: #58657a; cursor: pointer; font-size: 11px; }
.aidso-platform-toolbar input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.aidso-platform-toolbar label > span { display: grid; width: 14px; height: 14px; place-items: center; border: 1px solid #d5dbe6; border-radius: 4px; color: transparent; background: #fff; }
.aidso-platform-toolbar svg { width: 10px; height: 10px; stroke-width: 3; }
.aidso-platform-toolbar label:has(input:checked) > span { border-color: #7867e8; color: #fff; background: #7867e8; }
.aidso-diagnostic-section .effect-platform-picker { padding-top: 27px; border-color: #e2e7ee; background: #fcfdff; }
.aidso-diagnostic-section .effect-platform-card { min-height: 154px; }
.aidso-diagnostic-section .effect-platform-card-head small { display: none; }
.aidso-diagnostic-section .effect-platform-check { border-radius: 4px; }
.aidso-diagnostic-section .effect-platform-row.checked .effect-platform-check { border-color: #7867e8; background: #7867e8; }
.aidso-rounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aidso-rounds > label { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid #e3e8f0; border-radius: 10px; background: #fbfcff; }
.aidso-rounds > label > span { display: grid; min-width: 0; grid-template-columns: 25px minmax(0, 1fr); column-gap: 7px; align-items: center; }
.aidso-rounds i { display: grid; width: 25px; height: 25px; grid-row: 1 / 3; place-items: center; border-radius: 8px; color: #fff; background: var(--platform); font-size: 8px; font-style: normal; font-weight: 800; }
.aidso-rounds b { overflow: hidden; color: #536078; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.aidso-rounds small { color: #99a4b4; font-size: 10px; }
.aidso-rounds select { min-height: 31px; flex: 0 0 82px; padding-inline: 7px; font-size: 10px; }
.aidso-diagnostic-submit { position: sticky; bottom: 14px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border: 1px solid #d9dffa; border-radius: 13px; background: rgba(255, 255, 255, .96); box-shadow: 0 10px 25px rgba(64, 65, 136, .12); backdrop-filter: blur(10px); }
.aidso-diagnostic-submit b, .aidso-diagnostic-submit small { display: block; }
.aidso-diagnostic-submit b { color: #444c69; font-size: 13px; }
.aidso-diagnostic-submit small { margin-top: 3px; color: #98a2b4; font-size: 11px; }
.aidso-diagnostic-submit > span { display: flex; gap: 8px; }

.aidso-report { padding: 0; overflow: hidden; border: 1px solid #dfe5ef; border-radius: 15px; background: #fff; box-shadow: 0 6px 18px rgba(40, 65, 110, .05); }
.aidso-report > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 22px 16px; border-bottom: 1px solid #edf0f4; }
.aidso-report h3 { margin: 5px 0; color: #39445b; font-size: 18px; }
.aidso-report header p { max-width: 650px; margin: 0; color: #8791a5; font-size: 11px; line-height: 1.6; }
.aidso-report-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 13px 20px; border-bottom: 1px solid #edf0f4; background: #fafbfe; }
.aidso-report-filters label { min-width: 145px; }
.aidso-report-filters select { min-height: 32px; padding-inline: 8px; font-size: 11px; }
.aidso-report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 16px 20px; overflow: hidden; border: 1px solid #e8ecf2; border-radius: 10px; background: #e8ecf2; }
.aidso-report-kpis > div { min-width: 0; padding: 12px; background: #fff; }
.aidso-report-kpis small, .aidso-report-kpis b, .aidso-report-kpis em { display: block; }
.aidso-report-kpis small { color: #9ba5b5; font-size: 10px; }
.aidso-report-kpis b { margin-top: 4px; color: #4d55af; font-size: 20px; }
.aidso-report-kpis em { margin-top: 3px; overflow: hidden; color: #9da7b6; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.aidso-report-table { margin: 0 20px 20px; overflow: hidden; border: 1px solid #e6eaf0; border-radius: 10px; }
.aidso-report-head, .aidso-report-table > article { display: grid; grid-template-columns: minmax(170px, 1.25fr) minmax(100px, .75fr) 52px 52px 44px 52px minmax(180px, 1.6fr); gap: 9px; align-items: center; padding: 10px 12px; }
.aidso-report-head { color: #9ba6b5; background: #f8fafc; font-size: 10px; font-weight: 800; }
.aidso-report-table > article { border-top: 1px solid #eef1f5; color: #657188; font-size: 10px; }
.aidso-report-table > article > span:first-child b, .aidso-report-table > article > span:first-child small { display: block; }
.aidso-report-table > article > span:first-child b { color: #4b5870; font-size: 11px; }
.aidso-report-table > article > span:first-child small { margin-top: 3px; overflow: hidden; color: #97a2b2; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.aidso-report-table p { margin: 0; color: #718098; font-size: 10px; line-height: 1.55; }
.aidso-report-table .is-positive { color: #28a370; font-weight: 800; }
.aidso-report-empty { margin: 0; padding: 28px; color: #97a2b2; background: #fff; font-size: 12px; text-align: center; }

@media (max-width: 1000px) {
  .aidso-question-table-head, .aidso-question-row { grid-template-columns: 118px 100px minmax(190px, 1fr) 44px 116px; }
  .aidso-diagnostic-section .effect-platform-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .aidso-rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aidso-report-table { overflow-x: auto; }
  .aidso-report-head, .aidso-report-table > article { min-width: 900px; }
}

@media (max-width: 720px) {
  .aidso-effect-tabs { margin-bottom: 10px; }
  .aidso-effect-tabs a { min-width: 157px; }
  .aidso-diagnostic-start-hero { min-height: 0; padding: 56px 20px; }
  .aidso-start-form { grid-template-columns: 1fr; }
  .aidso-start-form .primary-button { min-height: 40px; }
  .aidso-diagnostic-header, .aidso-diagnostic-submit { align-items: flex-start; flex-direction: column; }
  .aidso-diagnostic-section { padding: 16px; }
  .aidso-section-title { align-items: flex-start; flex-direction: column; }
  .aidso-platform-toolbar { justify-content: flex-start; }
  .aidso-brand-grid, .aidso-rounds { grid-template-columns: 1fr; }
  .aidso-term-list { align-items: flex-start; flex-wrap: wrap; }
  .aidso-inline-add { width: 100%; }
  .aidso-competitor-table { overflow-x: auto; }
  .aidso-competitor-table > div, .aidso-competitor-table label { min-width: 560px; }
  .aidso-question-table { overflow-x: auto; }
  .aidso-question-table-head, .aidso-question-row { min-width: 690px; }
  .aidso-report > header { align-items: flex-start; flex-direction: column; }
  .aidso-report-kpis { grid-template-columns: repeat(2, 1fr); }
}
