/* Small, additive readability overrides for the live React shell. Load after the app CSS. */

/* Keep theme-page setup compact and its filters/actions together. */
.ti-main .ti-tabs { margin-bottom: 8px; }
.ti-main .ti-heading { align-items: flex-start; gap: 12px; }
.ti-main .ti-heading p { margin-top: 0; }
.ti-main .ti-notice:empty { display: none; }
.ti-main .ti-summary { gap: 12px; margin: 6px 0; padding: 8px 12px; }
.ti-main .ti-summary small { color: #62665f; text-align: left; }
.ti-main .ti-toolbar { justify-content: flex-start; gap: 12px; margin: 8px 0; }
.ti-main .ti-toolbar-actions { margin-left: 0; }
.ti-main .ti-toolbar :is(input, select, button),
.ti-main .ti-heading-actions > button { min-height: 36px; }
.ti-main .ti-op-controls { align-items: flex-end; justify-content: flex-start; gap: 12px; }
.ti-main .ti-op-controls label { flex: 0 1 220px; min-width: min(160px, 100%); flex-direction: column; align-items: stretch; gap: 4px; }
.ti-main .ti-op-controls :is(input, select) { width: 100%; min-height: 36px; }
.ti-editor .ti-form-body :is(input, select) { min-height: 36px; }
.ti-main .ti-operations { margin: 12px 0; padding: 14px; }
.ti-main .ti-weekly { margin: 12px 0 16px; padding-inline: 14px; }
.ti-main .ti-run-status { margin: 6px 0 12px; padding: 7px 10px; }
.ti-main .ti-run-status summary { font-size: 13px; }
.ti-main .ti-run-status p { color: #62665f; font-size: 12px; line-height: 18px; }
.ui-notice { margin: 6px 0; color: #62665f; font-size: 12px; line-height: 18px; }
.ui-notice > summary { cursor: pointer; font-size: 12px; }
.ui-notice-content { margin-top: 4px; }
.ui-notice-content > :first-child { margin-top: 0; }
.ui-notice-content > :last-child { margin-bottom: 0; }
.ti-main .ti-summary small,
.ti-main .ti-collection-status,
.ti-main .ti-footnote { font-size: 12px; line-height: 18px; }

/* A comparison row currently contains one stacked item per linked competitor. */
.competitor-rank-item { min-height: 38px; padding-block: 2px; }
.competitor-rank-product > :is(.product-image-trigger, .product-image-missing) { flex-basis: 32px; width: 32px; height: 32px; }
.competitor-rank-name strong { font-size: 12px; line-height: 16px; }
.competitor-rank-trend .sparkline-button { min-height: 32px; }

/* Make task receipts secondary while keeping execution and coverage states legible. */
.scheduled-tasks { padding: 22px 28px; }
.scheduled-tasks h2 { font-size: 22px; line-height: 30px; }
.scheduled-tasks > header { margin-bottom: 16px; }
.scheduled-tasks button { min-height: 36px; padding-block: 7px; }
.task-grid { gap: 12px; margin: 16px 0; }
.task-card { padding: 16px; }
.task-card h3 { margin-top: 12px; }
.task-card dl { margin: 12px 0; }
.task-note, .task-receipt, .task-components, .scheduled-tasks footer { font-size: 12px; line-height: 18px; }
.scheduled-tasks .task-warning { color: #62665f; border-color: #e2e1d9; background: #f4f3ee; }
.scheduled-tasks .task-warning[role="alert"] { color: #9d392f; border-color: #edc7bd; background: #fff7f5; }
.scheduled-tasks .task-coverage-status { color: #62665f; border-left-color: #8b8f86; background: #f2f3ef; }
.scheduled-tasks .task-running-status { color: #505850; border-left-color: #8b8f86; background: #f2f3ef; }
.scheduled-tasks .task-card-head > strong[data-state="partial"] { color: #5f6760; background: #eef0ed; }
.scheduled-tasks .task-card-head > strong[data-state="not_enabled"],
.scheduled-tasks .task-card-head > strong[data-state="paused"],
.scheduled-tasks .task-card-head > strong[data-state="stopped"] { color: #5f6760; background: #eef0ed; }

/* Reserve red for actionable failures; ordinary scope and freshness notes stay muted. */
.auth-workspace .auth-page-head h1 { font-size: 22px; line-height: 30px; }
.auth-workspace .auth-notice.error { color: #9d392f; border-color: #edc7bd; background: #fff1f0; }
.assistant-notice, .assistant-scope, .assistant-message-scope,
.assistant-followups > span, .assistant-action-receipt small { font-size: 12px; line-height: 18px; }
.assistant-notice { color: #62665f; border-bottom-color: #e2e1d9; background: #f4f3ee; }
.assistant-runtime-state { color: #62665f; }
.assistant-runtime-error { color: #9d392f; font-size: 12px; }
.assistant-error { color: #9d392f; border-color: #edc7bd; background: #fff1f0; }
.ti-main .ti-error,
.workspace .form-error,
.workspace .connection-error { color: #9d392f; }
.ti-main .ti-notice { color: #62665f; }
.ti-main .ti-collection-status { color: #62665f; background: #f4f3ee; }
.collection-freshness.fresh { color: #526056; background: #f1f5f1; }
.collection-freshness.warning { color: #62665f; background: #f2f3ef; }
.collection-freshness.unknown { color: #62665f; background: #f2f3ef; }
.collection-freshness strong, .collection-freshness small { font-size: 12px; line-height: 18px; }
.monitor-notice { color: #62665f; background: #f4f3ee; }
.monitor-notice.warning { color: #9d392f; background: #fff7f5; border-bottom-color: #edc7bd; }
.monitor-state.paused, .monitor-state.unknown { color: #5f6760; background: #eef0ed; }
.competitor-chips > span.paused { border-color: #e2e1d9; background: #f7f7f4; }
.competitor-chips > span.paused em { color: #5f6760; background: #eef0ed; }
.rank-movement.up { color: #62665f; }
.rank-movement.down { color: #b7564a; }
.form-error { color: #9d392f; }

@media (max-width: 750px) {
  .ti-main .ti-op-controls label { flex-basis: 100%; }
  .ti-main .ti-heading { align-items: flex-start; }
  .scheduled-tasks { padding: 18px 16px; }
}

/* Quiet, explicit notices: neutral information; red only when action is required. */
:root{--ui-notice-neutral:#687169;--ui-notice-critical:#b43d36}
.ui-notice{display:inline-block;max-width:100%;margin:0;vertical-align:middle;color:var(--ui-notice-neutral);font:400 12px/1.6 var(--wb-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif)}
.ui-notice>summary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:28px;min-height:28px;padding:2px 5px;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer;list-style:none;vertical-align:middle}
.ui-notice>summary::-webkit-details-marker{display:none}
.ui-notice>summary:hover{background:#f0f2ef}
.ui-notice>summary:focus-visible{outline:2px solid #315b94;outline-offset:2px}
.ui-notice[data-severity=critical]{color:var(--ui-notice-critical)}
.ui-notice[data-severity=critical]>summary:hover{background:#fbefed}
.ui-notice-content{max-width:min(640px,calc(100vw - 48px));padding:12px 14px;margin-top:6px;border:1px solid var(--wb-border, #dedfd7);border-radius:6px;background:#fff;color:var(--wb-muted, #62665f);font-size:12px;line-height:1.65;overflow-wrap:anywhere;text-align:left}
.ui-notice-content p+p{margin-top:6px}.ui-notice-content ul{margin:6px 0;padding-left:18px}
.ui-notice-content strong{font-size:inherit;color:var(--wb-ink, #242824)}
.ui-notice[data-severity=critical]>.ui-notice-content{border-color:#e8c6c2}
.ui-notice .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}
.ui-notice-icon{display:inline-grid;place-items:center;flex:0 0 16px;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font:600 11px/1 var(--wb-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);color:inherit}
.ui-notice[hidden]{display:none!important}

.ui-notice-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px;color:#62665f}
