:root {
	/* Signals Dashboard — V4 Swiss Navy + Electric Teal */
	--asd-navy:      #0B1426;
	--asd-petrol:    #1E7A6B;
	--asd-teal:      #2FB8A0;
	--asd-teal-lt:   #5EEAD4;
	--asd-offwhite:  #F1F5F9;
	--asd-surface:   #0B1426;
	--asd-surface2:  #1E293B;
	--asd-border:    rgba(47, 184, 160, 0.18);
	--asd-text:      #F1F5F9;
	--asd-muted:     rgba(241, 245, 249, 0.48);
	--asd-radius:    4px;
	--asd-gap:       1.25rem;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.adamiro-signals-dashboard {
	font-family: 'Outfit', sans-serif;
	color: var(--asd-text);
	max-width: 860px;
	margin: 0 auto;
	padding: 0 1rem 4rem;
}

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.asd-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--asd-border);
	margin-bottom: 2rem;
}

/* Kill the UA button chrome that drew the rounded "cup" under the active
 * tab — but do NOT use all:unset (it strips our :hover/.active rules). */
button.asd-tab {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1rem;
	margin: 0 4px -1px 0;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: transparent;
	background-image: none;
	color: var(--asd-muted);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	cursor: pointer;
	outline: none;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
button.asd-tab:hover {
	color: var(--asd-text);
	background: rgba(241, 245, 249, 0.04);
}
button.asd-tab:focus { outline: none; box-shadow: none; }
button.asd-tab:focus-visible {
	outline: 1px solid var(--asd-teal);
	outline-offset: 2px;
}
button.asd-tab.active {
	color: var(--asd-teal);
	border-bottom-color: var(--asd-teal);
	background: rgba(47, 184, 160, 0.08);
	font-weight: 600;
}
button.asd-tab::before,
button.asd-tab::after {
	content: none;
	display: none;
}

/* ── Panels ─────────────────────────────────────────────────────────────── */
.asd-panel        { display: none; }
.asd-panel.active { display: block; }

.asd-panel-header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.5rem;
}

.asd-panel-header h2 {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
}

/* Buttons use canonical .acp-btn / .acp-btn-white / .acp-btn-sm from
 * class-adamiro-ui.php::acp_styles(). Do not redefine locally. */

/* ── Guide box: horizontal illustration + text card (shared across
 * Signals + Voice Guides). Takes cues from the PlanetScale-style dark
 * docs cards and the Adamiro email shell: navy-lift surface, hairline
 * border, abstract SVG tile on the left, body prose on the right. */
.asd-guide-box {
	display: grid;
	grid-template-columns: 200px 1fr;
	background: #0F1A2E;
	border: 1px solid rgba(241, 245, 249, 0.08);
	border-radius: 4px;
	margin: 0 0 16px;
	overflow: hidden;
	transition: border-color 0.2s;
}
.asd-guide-box:hover { border-color: rgba(47, 184, 160, 0.25); }
.asd-guide-box__art {
	background: rgba(11, 18, 32, 0.5);
	border-right: 1px solid rgba(241, 245, 249, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	min-height: 180px;
}
.asd-guide-box__art svg {
	width: 100%;
	max-width: 140px;
	height: auto;
	display: block;
}
.asd-guide-box__body {
	padding: 28px 32px;
}
.asd-guide-box__title {
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #F9FAFE;
	font-weight: 600;
	margin: 0 0 12px;
}
.asd-guide-box__title em { font-style: italic; font-weight: 500; }
.asd-guide-box__body p {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(249, 250, 254, 0.68);
	margin: 0 0 10px;
}
.asd-guide-box__body p:last-child { margin-bottom: 0; }
.asd-guide-box__body .asd-guide-callout {
	border-left: 3px solid var(--teal, #2FB8A0);
	padding: 10px 14px;
	background: rgba(47, 184, 160, 0.08);
	border-radius: 0 4px 4px 0;
	color: #F9FAFE;
	margin-top: 14px;
}
.asd-guide-box__body .asd-guide-list {
	list-style: none;
	margin: 12px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.asd-guide-box__body .asd-guide-list li {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(249, 250, 254, 0.72);
	padding-left: 14px;
	position: relative;
}
.asd-guide-box__body .asd-guide-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal, #2FB8A0);
	opacity: 0.7;
}
.asd-guide-box__body .asd-guide-list li strong { color: #F9FAFE; font-weight: 600; }

@media (max-width: 720px) {
	.asd-guide-box { grid-template-columns: 1fr; }
	.asd-guide-box__art { border-right: none; border-bottom: 1px solid rgba(241, 245, 249, 0.08); min-height: 140px; }
	.asd-guide-box__body { padding: 24px; }
}

[data-theme="light"] .asd-guide-box { background: #FFFFFF; border-color: rgba(11, 20, 38, 0.08); }
[data-theme="light"] .asd-guide-box__art { background: #F8FAFC; border-right-color: rgba(11, 20, 38, 0.06); }
[data-theme="light"] .asd-guide-box__title { color: #0B1426; }
[data-theme="light"] .asd-guide-box__body p { color: #475569; }
[data-theme="light"] .asd-guide-box__body .asd-guide-callout { color: #0B1426; }
[data-theme="light"] .asd-guide-box__body .asd-guide-list li { color: #475569; }
[data-theme="light"] .asd-guide-box__body .asd-guide-list li strong { color: #0B1426; }

/* ── Guide tab (shared across Signals + Voice dashboards) ──
 * Narrative explainer content. Sections live in .acp-field-group cards
 * from the canonical acp_styles(); everything here just sets typography,
 * rhythm, and the teal callout accent. */
.asd-guide {
	max-width: 960px;
}
.asd-guide-lead {
	font-size: 15px;
	line-height: 1.6;
	color: #F9FAFE;
	margin: 0 0 20px;
}
.asd-guide-heading {
	font-size: 15px;
	font-weight: 600;
	color: #F9FAFE;
	margin: 0 0 10px;
	line-height: 1.4;
}
.asd-guide .acp-field-group p {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(249, 250, 254, 0.68);
	margin: 0 0 10px;
}
.asd-guide .acp-field-group p:last-child {
	margin-bottom: 0;
}
.asd-guide-callout {
	border-left: 3px solid var(--teal, #2FB8A0);
	padding: 10px 14px !important;
	background: rgba(47, 184, 160, 0.08);
	border-radius: 4px;
	color: #F9FAFE !important;
	margin-top: 14px !important;
}
.asd-guide-list {
	list-style: none;
	margin: 12px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.asd-guide-list li {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(249, 250, 254, 0.72);
	padding-left: 14px;
	position: relative;
}
.asd-guide-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--teal, #2FB8A0);
	opacity: 0.7;
}
.asd-guide-list li strong {
	color: #F9FAFE;
	font-weight: 600;
}
.asd-guide-subheading {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(249, 250, 254, 0.5);
	margin: 18px 0 10px;
}
.asd-guide-dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 16px;
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}
.asd-guide-dl dt {
	font-weight: 600;
	color: #F9FAFE;
	white-space: nowrap;
}
.asd-guide-dl dd {
	margin: 0;
	color: rgba(249, 250, 254, 0.68);
}
@media (max-width: 540px) {
	.asd-guide-dl { grid-template-columns: 1fr; gap: 4px 0; }
	.asd-guide-dl dt { margin-top: 10px; }
	.asd-guide-dl dt:first-child { margin-top: 0; }
}

/* ── Plan-limits card (shared across every service Guide) ──
 * Two-column, hairline-divided layout inspired by the Adamiro email
 * shell and the PlanetScale-style dark documentation cards: navy-lift
 * surface, thin navy border, eyebrow kickers with em-dash prefix,
 * large italic plan names, teal CTA.  No drop-shadow, no glass. */
.asd-plan-card {
	background: #0F1A2E;
	border: 1px solid rgba(241, 245, 249, 0.08);
	border-radius: 4px;
	display: grid;
	grid-template-columns: 1fr;
	margin: 0 0 24px;
	overflow: hidden;
}
.asd-plan-card--duo { grid-template-columns: 1fr 1fr; }

.asd-plan-col {
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.asd-plan-col--upgrade {
	background: rgba(47, 184, 160, 0.03);
	border-left: 1px solid rgba(241, 245, 249, 0.08);
}

@media (max-width: 640px) {
	.asd-plan-card--duo { grid-template-columns: 1fr; }
	.asd-plan-col--upgrade { border-left: none; border-top: 1px solid rgba(241, 245, 249, 0.08); }
	.asd-plan-col { padding: 24px; }
}

.asd-plan-eyebrow {
	font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(241, 245, 249, 0.45);
	display: inline-block;
	margin-bottom: 0;
}
.asd-plan-eyebrow::before { content: '— '; letter-spacing: 0.02em; }
.asd-plan-eyebrow--teal { color: var(--teal, #2FB8A0); }

.asd-plan-name {
	font-size: 30px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #F9FAFE;
	font-weight: 400;
	margin: 0;
}
.asd-plan-name em {
	font-style: italic;
	font-weight: 400;
}
.asd-plan-name--teal { color: var(--teal, #2FB8A0); }

.asd-plan-lede {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(241, 245, 249, 0.68);
	margin: 0;
}

.asd-plan-dl {
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid rgba(241, 245, 249, 0.06);
}
.asd-plan-dl dt,
.asd-plan-dl dd {
	font-size: 13px;
	line-height: 1.5;
	padding: 10px 0;
	margin: 0;
}
.asd-plan-dl dt {
	color: rgba(241, 245, 249, 0.55);
	border-bottom: 1px solid rgba(241, 245, 249, 0.06);
	padding-bottom: 4px;
	padding-top: 12px;
	letter-spacing: 0.01em;
}
.asd-plan-dl dd {
	color: #F9FAFE;
	font-weight: 500;
	padding-top: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(241, 245, 249, 0.06);
}
.asd-plan-dl dd:last-child { border-bottom: none; padding-bottom: 0; }

.asd-plan-yes { color: var(--teal, #2FB8A0); }
.asd-plan-no  { color: rgba(241, 245, 249, 0.35); }

.asd-plan-note {
	font-size: 13px;
	line-height: 1.55;
	color: rgba(241, 245, 249, 0.55);
	margin: 4px 0 0;
	padding: 12px 14px;
	border-left: 2px solid var(--teal, #2FB8A0);
	background: rgba(47, 184, 160, 0.05);
}

.asd-plan-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	align-self: flex-start;
	padding: 12px 20px;
	background: var(--teal, #2FB8A0);
	color: #0B1426;
	border: none;
	border-radius: 3px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background 0.15s;
}
.asd-plan-cta:hover {
	background: #34D1B5;
	color: #0B1426;
	text-decoration: none;
}
.asd-plan-cta span { transition: transform 0.15s; }
.asd-plan-cta:hover span { transform: translateX(3px); }

[data-theme="light"] .asd-plan-card { background: #FFFFFF; border-color: rgba(11, 20, 38, 0.08); }
[data-theme="light"] .asd-plan-col--upgrade { background: rgba(47, 184, 160, 0.04); border-left-color: rgba(11, 20, 38, 0.08); }
[data-theme="light"] .asd-plan-eyebrow { color: rgba(11, 20, 38, 0.5); }
[data-theme="light"] .asd-plan-name { color: #0B1426; }
[data-theme="light"] .asd-plan-lede,
[data-theme="light"] .asd-plan-note { color: #475569; }
[data-theme="light"] .asd-plan-dl dt { color: #64748B; border-bottom-color: rgba(11, 20, 38, 0.06); }
[data-theme="light"] .asd-plan-dl dd { color: #0B1426; border-bottom-color: rgba(11, 20, 38, 0.06); }
[data-theme="light"] .asd-plan-dl { border-top-color: rgba(11, 20, 38, 0.06); }
[data-theme="light"] .asd-plan-no { color: #94A3B8; }

/* Flash a guide section when scrolled to via a guide-link icon. */
.asd-guide-flash {
	animation: asd-guide-flash 1.4s ease;
}
@keyframes asd-guide-flash {
	0%, 100% { box-shadow: none; }
	15%      { box-shadow: 0 0 0 3px rgba(47, 184, 160, 0.45); }
	100%     { box-shadow: 0 0 0 0 rgba(47, 184, 160, 0); }
}

[data-theme="light"] .asd-guide-lead,
[data-theme="light"] .asd-guide-heading,
[data-theme="light"] .asd-guide-callout {
	color: #1a202c !important;
}
[data-theme="light"] .asd-guide .acp-field-group p {
	color: #4A5568;
}
[data-theme="light"] .asd-guide-list li {
	color: #4A5568;
}
[data-theme="light"] .asd-guide-list li strong {
	color: #1a202c;
}

/* ── Plan badge ─────────────────────────────────────────────────────────── */
.asd-plan-badge {
	background: var(--asd-surface2);
	border: 1px solid var(--asd-border);
	border-radius: 20px;
	color: var(--asd-muted);
	font-size: 0.8rem;
	padding: 0.3rem 0.9rem;
}

/* ── Source groups ───────────────────────────────────────────────────────── */
.asd-source-group {
	margin-bottom: 1.75rem;
}

.asd-source-group__title {
	color: var(--asd-teal);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.asd-source-group__items {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.asd-source-item {
	align-items: center;
	background: var(--asd-surface2);
	border: 1px solid var(--asd-border);
	border-radius: var(--asd-radius);
	cursor: pointer;
	display: flex;
	gap: 0.75rem;
	padding: 0.65rem 0.9rem;
	transition: border-color 0.2s, background 0.2s;
	user-select: none;
}

.asd-source-item:hover:not(.asd-source-item--locked) {
	border-color: var(--asd-teal);
	background: rgba(47,184,160,.07);
}

.asd-source-item--locked {
	cursor: not-allowed;
	opacity: 0.45;
}

.asd-source-item input[type="checkbox"] {
	accent-color: var(--asd-teal);
	flex-shrink: 0;
	height: 16px;
	width: 16px;
}

.asd-source-item__name {
	flex: 1;
	font-size: 0.875rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.asd-badge {
	background: rgba(47,184,160,.15);
	border-radius: 4px;
	color: var(--asd-teal);
	flex-shrink: 0;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 2px 6px;
	text-transform: uppercase;
}

.asd-sources-actions {
	margin-top: 1.25rem;
}

/* ── Auto-suggest results panel ──────────────────────────────────────────── */
.asd-autosuggest-results {
	background: var(--asd-surface2);
	border: 1px solid var(--asd-border);
	border-radius: var(--asd-radius);
	margin-top: 1.5rem;
	padding: 1.25rem 1.5rem;
}
.asd-autosuggest-results h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
}
.asd-autosuggest-intro {
	color: var(--asd-muted);
	font-size: 0.85rem;
	margin: 0 0 1rem;
}
.asd-autosuggest-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px 12px;
	border: 1px solid var(--asd-border);
	border-radius: 6px;
	margin-bottom: 6px;
	cursor: pointer;
	transition: background .15s ease;
}
.asd-autosuggest-row:hover { background: rgba(47,184,160,.06); }
.asd-autosuggest-row input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }
.asd-autosuggest-meta { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.asd-autosuggest-name {
	font-weight: 600;
	font-size: 0.92rem;
}
.asd-autosuggest-cat {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--asd-muted);
	background: rgba(47,184,160,.08);
	border: 1px solid rgba(47,184,160,.18);
	border-radius: 999px;
	vertical-align: middle;
}
.asd-autosuggest-axis {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	border-radius: 999px;
	vertical-align: middle;
}
.asd-autosuggest-axis--industry {
	color: #2FB8A0;
	background: rgba(47,184,160,.12);
	border: 1px solid rgba(47,184,160,.32);
}
.asd-autosuggest-axis--technology {
	color: #F2C94C;
	background: rgba(242,201,76,.10);
	border: 1px solid rgba(242,201,76,.32);
}
.asd-autosuggest-axis--both {
	color: #C084FC;
	background: rgba(192,132,252,.10);
	border: 1px solid rgba(192,132,252,.32);
}
.asd-autosuggest-url {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.78rem;
	color: var(--asd-muted);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.asd-autosuggest-url:hover { text-decoration: underline; }
.asd-autosuggest-reason {
	font-size: 0.85rem;
	color: var(--asd-text);
	line-height: 1.45;
}
.asd-autosuggest-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 12px;
}

/* ── Suggestion form ─────────────────────────────────────────────────────── */
.asd-suggestion-form {
	background: var(--asd-surface2);
	border: 1px solid var(--asd-border);
	border-radius: var(--asd-radius);
	margin-top: 2.5rem;
	padding: 1.5rem;
}

.asd-suggestion-form h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
}

.asd-suggestion-form p {
	color: var(--asd-muted);
	font-size: 0.85rem;
	margin: 0 0 1.25rem;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.asd-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.asd-field label {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--asd-muted);
}

.asd-field input,
.asd-field select,
.asd-field textarea {
	background: var(--asd-surface);
	border: 1px solid var(--asd-border);
	border-radius: 6px;
	caret-color: var(--asd-teal);
	color: var(--asd-text);
	font-family: inherit;
	font-size: 0.875rem;
	outline: none;
	padding: 0.55rem 0.85rem;
	transition: border-color 0.2s;
	width: 100%;
}

.asd-field input:focus,
.asd-field select:focus,
.asd-field textarea:focus {
	border-color: var(--asd-teal);
}

.asd-settings-actions { margin-top: 1.25rem; }

/* ── States ─────────────────────────────────────────────────────────────── */
.asd-loading {
	color: var(--asd-muted);
	font-size: 0.875rem;
	padding: 2rem 0;
	text-align: center;
}

.asd-success { color: #4caf87; font-size: 0.85rem; }
.asd-error   { color: #e05c5c; font-size: 0.85rem; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.asd-toast {
	background: var(--asd-surface2);
	border-left: 3px solid var(--asd-teal);
	border-radius: 8px;
	bottom: 1.5rem;
	box-shadow: 0 8px 30px rgba(0,0,0,.4);
	color: var(--asd-text);
	font-family: 'Outfit', sans-serif;
	font-size: 0.875rem;
	max-width: 360px;
	opacity: 0;
	padding: 0.85rem 1.2rem;
	pointer-events: none;
	position: fixed;
	right: 1.5rem;
	transform: translateY(8px);
	transition: opacity 0.3s, transform 0.3s;
	z-index: 9999;
}

.asd-toast.visible {
	opacity: 1;
	transform: translateY(0);
}

.asd-toast[data-type="error"]   { border-left-color: #e05c5c; }
.asd-toast[data-type="warning"] { border-left-color: #f4a340; }
.asd-toast[data-type="success"] { border-left-color: #4caf87; }

/* ── ACP Design System (shared with company profile) ────────────────────── */
.acp-editor {
    font-family: 'Outfit', sans-serif;
    width: 100%;
    padding: 0 0 60px;
}
.acp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 14px;
}
.acp-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #F1F5F9;
    margin: 0;
}
.acp-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.acp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    align-items: start;
}
@media(max-width:900px) {
    .acp-columns { grid-template-columns: 1fr; }
}
.acp-field-group {
    background: rgba(30, 41, 59, 0.36);
    border: 1px solid rgba(47, 184, 160, .18);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 18px;
}
@media(max-width:640px) {
    .acp-field-group { padding: 18px; }
}
.acp-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 5px;
}
.acp-hint {
    font-size: 13px;
    color: rgba(249, 250, 254, .45);
    margin-bottom: 12px;
    line-height: 1.55;
}
.acp-sublabel {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(249, 250, 254, .5);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.acp-input {
    display: block;
    width: 100%;
    background: rgba(30, 122, 107, .25);
    border: 1px solid rgba(47, 184, 160, .22);
    border-radius: 10px;
    padding: 11px 15px;
    color: #F1F5F9;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}
.acp-input:focus {
    outline: none;
    border-color: #2FB8A0;
    background: rgba(30, 122, 107, .45);
    box-shadow: 0 0 0 3px rgba(47, 184, 160, .15);
}
select.acp-input { cursor: pointer; }
textarea.acp-input { resize: vertical; min-height: 90px; }
.acp-array-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.acp-array-item .acp-input { flex: 1; }
.acp-remove-btn {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .28);
    border-radius: 7px;
    padding: 7px 10px;
    color: #f87171;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background .2s;
    flex-shrink: 0;
}
.acp-remove-btn:hover { background: rgba(239, 68, 68, .28); }
.acp-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: rgba(47, 184, 160, .08);
    border: 1px dashed rgba(47, 184, 160, .35);
    border-radius: 10px;
    padding: 10px 16px;
    color: #2FB8A0;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 4px;
}
.acp-add-btn:hover { background: rgba(47, 184, 160, .18); }
.acp-btn-primary {
    background: linear-gradient(135deg, #2FB8A0, #1E7A6B);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    color: #F1F5F9;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.acp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(47, 184, 160, .4);
}
.acp-btn-secondary {
    background: rgba(11, 20, 38, .55);
    border: 1px solid rgba(47, 184, 160, .3);
    border-radius: 10px;
    padding: 11px 22px;
    color: #2FB8A0;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.acp-btn-secondary:hover {
    background: rgba(47, 184, 160, .2);
    transform: translateY(-1px);
}
.acp-btn-primary:disabled,
.acp-btn-secondary:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}
.acp-task-badge {
    background: rgba(249, 250, 254, .12);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
}
.acp-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: rgba(11, 20, 38, .96);
    border: 1px solid rgba(47, 184, 160, .4);
    border-radius: 12px;
    padding: 14px 20px;
    color: #F1F5F9;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.acp-toast.acp-toast-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.acp-toast.acp-toast-success { border-color: rgba(52, 211, 153, .5); }
.acp-toast.acp-toast-error   { border-color: rgba(239, 68, 68, .5); }
.acp-toast-close { background:none;border:none;color:rgba(249,250,254,.5);font-size:18px;line-height:1;cursor:pointer;padding:0 0 0 12px;font-family:inherit;transition:color .15s; }
.acp-toast-close:hover { color:#F1F5F9; }
.acp-toast-link { color:#2FB8A0;text-decoration:none;font-weight:600; }
.acp-toast-link:hover { text-decoration:underline; }

@keyframes acp-spin { to { transform: rotate(360deg); } }
.asr-voice-btn .acp-spinner,
.acp-toast .acp-spinner {
    display: inline-block;
    width: 12px; height: 12px;
    border: 2px solid rgba(249,250,254,.3);
    border-top-color: #F1F5F9;
    border-radius: 50%;
    animation: acp-spin .7s linear infinite;
    vertical-align: middle;
}
[data-theme="light"] .asr-voice-btn .acp-spinner { border-color: rgba(47,184,160,.25); border-top-color: #2FB8A0; }

/* ── Signals settings layout ─────────────────────────────────────────────── */
.asd-settings-editor { padding: 0; }
.asd-settings-editor .acp-settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.asd-settings-editor .acp-email-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: rgba(249,250,254,.7);
    cursor: pointer;
}
.asd-settings-editor .acp-email-toggle input { width: auto; margin: 0; }

/* ── Executive summary bullets ─────────────────────────────────────────── */
.asr-summary-bullets {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
}
.asr-summary-bullets li {
	position: relative;
	padding-left: 18px;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--asd-text);
}
.asr-summary-bullets li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--asd-teal);
}

/* ── Report ideas section ─────────────────────────────────────────────── */
.asr-ideas { margin-top: 2rem; }
.asr-idea-card {
	background: var(--asd-surface2);
	border: 1px solid var(--asd-border);
	border-radius: var(--asd-radius);
	padding: 16px;
	margin-bottom: 10px;
}
.asr-idea-cat {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--asd-teal);
}
.asr-idea-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--asd-text);
	margin: 4px 0 6px;
}
.asr-idea-desc {
	font-size: 13px;
	color: var(--asd-muted);
	line-height: 1.55;
	margin: 0 0 10px;
}
.asr-idea-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.asr-voice-btn {
	background: rgba(47,184,160,.08);
	border: 1px solid rgba(47,184,160,.25);
	border-radius: 6px;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 600;
	font-family: inherit;
	text-transform: lowercase;
	color: var(--asd-teal);
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.asr-voice-btn:hover {
	background: rgba(47,184,160,.18);
	border-color: var(--asd-teal);
}
.asr-voice-btn.is-generating {
	opacity: .5;
	cursor: wait;
}
.asr-voice-btn.is-done {
	background: var(--asd-teal);
	border-color: var(--asd-teal);
	color: #fff;
}

/* ── Enhanced idea cards (Ideas tab) ──────────────────────────────────── */
.asd-idea-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}
.asd-idea-card__date {
	font-size: 11px;
	color: var(--asd-muted);
}
.asd-idea-card__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	margin-top: auto;
	padding-top: 8px;
	width: 100%;
}
.asd-idea-card__feedback {
	display: flex;
	gap: 4px;
}
.asd-idea-card__voice {
	display: flex;
	gap: 4px;
	flex-wrap: nowrap;
	justify-content: flex-end;
}
.asd-idea-fb {
	background: none;
	border: 1px solid var(--asd-border);
	border-radius: 6px;
	padding: 4px 8px;
	cursor: pointer;
	color: var(--asd-muted);
	transition: color .2s, border-color .2s, background .2s;
	display: inline-flex;
	align-items: center;
}
.asd-idea-fb:hover {
	color: var(--asd-teal);
	border-color: var(--asd-teal);
}
.asd-idea-fb.is-active {
	color: var(--asd-teal);
	background: rgba(47,184,160,.12);
	border-color: var(--asd-teal);
}
.asd-idea-fb.is-active[data-signal="-1"] {
	color: #e05c5c;
	background: rgba(224,92,92,.12);
	border-color: #e05c5c;
}
.asd-idea-card--used {
	opacity: .65;
	border-left: 3px solid var(--asd-teal);
}

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT MODE
   When data-theme="light" is set on <html>, override all dark variables
   and hardcoded dark backgrounds to light-appropriate values.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Variable overrides ────────────────────────────────────────────────── */
[data-theme="light"] {
	--asd-surface:   #ffffff;
	--asd-surface2:  #f4f5f9;
	--asd-border:    rgba(11, 20, 38, 0.10);
	--asd-text:      #1a202c;
	--asd-muted:     #4A5568;
}

/* ── Dashboard text color ──────────────────────────────────────────────── */
[data-theme="light"] .adamiro-signals-dashboard {
	color: var(--asd-text);
}

/* ── Tabs ──────────────────────────────────────────────────────────────── */
[data-theme="light"] .asd-tab       { color: var(--asd-muted); }
[data-theme="light"] .asd-tab:hover { color: var(--asd-text); }

/* ── Panel header ──────────────────────────────────────────────────────── */
[data-theme="light"] .asd-panel-header h2 { color: var(--asd-text); }

/* ── Source items ──────────────────────────────────────────────────────── */
[data-theme="light"] .asd-source-item__name { color: var(--asd-text); }

/* ── Suggestion form ───────────────────────────────────────────────────── */
[data-theme="light"] .asd-suggestion-form h3 { color: var(--asd-text); }
[data-theme="light"] .asd-suggestion-form p  { color: var(--asd-muted); }

/* ── Form field labels ─────────────────────────────────────────────────── */
[data-theme="light"] .asd-field label { color: var(--asd-muted); }
[data-theme="light"] .asd-field input,
[data-theme="light"] .asd-field select,
[data-theme="light"] .asd-field textarea {
	background: #fff;
	border-color: rgba(11, 20, 38, 0.12);
	color: var(--asd-text);
}
[data-theme="light"] .asd-field input:focus,
[data-theme="light"] .asd-field select:focus,
[data-theme="light"] .asd-field textarea:focus {
	background: #fff;
	border-color: var(--asd-teal);
}

/* ── States ────────────────────────────────────────────────────────────── */
[data-theme="light"] .asd-loading { color: var(--asd-muted); }

/* ── Toast ─────────────────────────────────────────────────────────────── */
[data-theme="light"] .asd-toast {
	background: #ffffff;
	box-shadow: 0 8px 30px rgba(0,0,0,.12);
	color: var(--asd-text);
}

/* ── ACP Design System: light overrides ────────────────────────────────── */
[data-theme="light"] .acp-header h2 { color: var(--asd-text); }
[data-theme="light"] .acp-field-group {
	background: rgba(11, 20, 38, .03);
	border-color: rgba(11, 20, 38, .10);
}
[data-theme="light"] .acp-label { color: var(--asd-text); }
[data-theme="light"] .acp-hint  { color: var(--asd-muted); }
[data-theme="light"] .acp-sublabel { color: #64748b; }
[data-theme="light"] .acp-input {
	background: rgba(11, 20, 38, .03);
	border-color: rgba(11, 20, 38, .12);
	color: var(--asd-text);
}
[data-theme="light"] .acp-input:focus {
	background: #fff;
	border-color: #2FB8A0;
	box-shadow: 0 0 0 3px rgba(47, 184, 160, .12);
}
[data-theme="light"] select.acp-input option {
	background: #fff;
	color: var(--asd-text);
}
[data-theme="light"] .acp-remove-btn {
	background: rgba(239, 68, 68, .08);
	border-color: rgba(239, 68, 68, .2);
}
[data-theme="light"] .acp-add-btn {
	background: rgba(47, 184, 160, .06);
	border-color: rgba(47, 184, 160, .25);
	color: #1E7A6B;
}
[data-theme="light"] .acp-btn-secondary {
	background: rgba(11, 20, 38, .04);
	border-color: rgba(47, 184, 160, .25);
	color: #1E7A6B;
}
[data-theme="light"] .acp-task-badge {
	background: rgba(11, 20, 38, .08);
	color: #4A5568;
}
[data-theme="light"] .acp-toast {
	background: #ffffff;
	border-color: rgba(47, 184, 160, .3);
	color: var(--asd-text);
	box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* ── Settings editor: email toggle ─────────────────────────────────────── */
[data-theme="light"] .asd-settings-editor .acp-email-toggle {
	color: var(--asd-muted);
}

/* ── Report: rec-num + rank badges keep white text ─────────────────────── */
[data-theme="light"] .asr-rec-num {
	color: #F1F5F9 !important;
}
[data-theme="light"] .asr-rank {
	color: var(--asd-teal) !important;
}

/* ── Report: readable text colors in light mode ────────────────────────── */
[data-theme="light"] .asr-headline,
[data-theme="light"] .asr-section-title,
[data-theme="light"] .asr-dev-title,
[data-theme="light"] .asr-dev-title a,
[data-theme="light"] .asr-rec-title,
[data-theme="light"] .asr-dive-headline,
[data-theme="light"] .asr-insight-text {
	color: var(--asd-text);
}
[data-theme="light"] .asr-summary,
[data-theme="light"] .asr-dev-summary,
[data-theme="light"] .asr-relevance,
[data-theme="light"] .asr-rec-preamble,
[data-theme="light"] .asr-rec-rationale,
[data-theme="light"] .asr-rec-action,
[data-theme="light"] .asr-dive-body,
[data-theme="light"] .asr-insight-why,
[data-theme="light"] .asr-strength-reason {
	color: var(--asd-muted);
}
[data-theme="light"] .asr-dev-card,
[data-theme="light"] .asr-rec-card,
[data-theme="light"] .asr-insight-card,
[data-theme="light"] .asr-deep-dive {
	background: var(--asd-surface2);
	border-color: var(--asd-border);
}
[data-theme="light"] .asr-watch-list {
	color: var(--asd-text);
}
[data-theme="light"] .asr-idea-card {
	background: var(--asd-surface2);
	border-color: var(--asd-border);
}
[data-theme="light"] .asr-idea-title { color: var(--asd-text); }
[data-theme="light"] .asr-idea-desc  { color: var(--asd-muted); }
[data-theme="light"] .asr-voice-btn {
	background: rgba(47,184,160,.06);
	border-color: rgba(47,184,160,.25);
	color: #1E7A6B;
}
[data-theme="light"] .asr-voice-btn:hover {
	background: rgba(47,184,160,.15);
}
[data-theme="light"] .asr-voice-btn.is-done {
	background: var(--asd-teal);
	color: #fff;
}
[data-theme="light"] .asr-summary-bullets li { color: var(--asd-text); }

/* ─────────────────────────────────────────────────────────────────────────
 * Dark-mode readability overrides for n8n-generated report content.
 * The report HTML uses inline styles tuned for light email rendering, which
 * produces low-contrast teal-on-teal text in the dashboard. Force the
 * key text + container styles for the dark dashboard.
 * ───────────────────────────────────────────────────────────────────────── */
.asr-headline,
.asr-section-title,
.asr-dev-title,
.asr-dev-title a,
.asr-rec-title,
.asr-dive-headline,
.asr-github-name,
.asr-github-headline,
.asr-idea-title {
	color: #F1F5F9 !important;
}
.asr-dev-title a,
.asr-idea-title a {
	text-decoration: none;
}
.asr-dev-title a:hover,
.asr-idea-title a:hover {
	text-decoration: underline;
	color: #2FB8A0 !important;
}
.asr-section-title {
	border-bottom: 1px solid rgba(47, 184, 160, .25) !important;
	padding-bottom: 10px !important;
	margin-bottom: 18px !important;
}
/* ── Per-section accent colors ────────────────────────────────────────────
 * Each report section gets a distinct accent that's used for the section
 * heading underline, the card's left border, and the section badges.
 *  Key Developments — teal     #2FB8A0
 *  Deep Dives       — violet   #a78bfa
 *  Insights         — amber    #fbbf24
 *  Recommendations  — emerald  #34d399
 *  GitHub           — purple   #a78bfa (same family as deep dives, no overlap)
 *  Watch List       — orange   #fb923c
 *  Ideas            — cyan     #22d3ee
 *  Exec Summary     — teal     #2FB8A0
 * ──────────────────────────────────────────────────────────────────────── */
.asr-dev-card,
.asr-deep-dive,
.asr-insight-card,
.asr-rec-card,
.asr-github-card,
.asr-idea-card,
.asr-watch-list,
.asr-exec-summary {
	background: rgba(11, 20, 38, .35) !important;
	border: 1px solid rgba(47, 184, 160, .18) !important;
	border-left: 4px solid #2FB8A0 !important;
	padding-left: 18px !important;
}
.asr-deep-dive       { border-left-color: #a78bfa !important; }
.asr-insight-card    { border-left-color: #fbbf24 !important; }
.asr-rec-card        { border-left-color: #34d399 !important; }
.asr-github-card     { border-left-color: #a78bfa !important; }
.asr-watch-list      { border-left-color: #fb923c !important; }
.asr-idea-card       { border-left-color: #22d3ee !important; }

/* Section heading underline picks up the accent via section wrappers */
.asr-section--developments .asr-section-title { border-bottom-color: rgba(47, 184, 160, .55) !important; }
.asr-section--deepdives    .asr-section-title { border-bottom-color: rgba(167, 139, 250, .55) !important; }
.asr-section--insights     .asr-section-title { border-bottom-color: rgba(251, 191, 36, .55) !important; }
.asr-section--recommendations .asr-section-title { border-bottom-color: rgba(52, 211, 153, .55) !important; }
.asr-section--github       .asr-section-title { border-bottom-color: rgba(167, 139, 250, .55) !important; }
.asr-section--watchlist    .asr-section-title { border-bottom-color: rgba(251, 146, 60, .55) !important; }
.asr-section--ideas        .asr-section-title { border-bottom-color: rgba(34, 211, 238, .55) !important; }

.asr-dev-summary,
.asr-rec-rationale,
.asr-github-desc,
.asr-summary,
.asr-rec-preamble {
	color: rgba(249, 250, 254, .8) !important;
}
.asr-dev-source,
.asr-strength-reason {
	color: rgba(249, 250, 254, .55) !important;
}
.asr-rank,
.asr-rec-num,
.asr-relevance-badge,
.asr-idea-cat {
	background: rgba(47, 184, 160, .18) !important;
	color: #F1F5F9 !important;
}

/* ── Recommendation header badges (type + time) ──
 * Same pill shape, distinct colors. Pinned right with margin-left:auto so
 * they line up regardless of header layout. */
.asr-rec-header {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	flex-wrap: wrap !important;
}
.asr-rec-num    { margin-right: 4px !important; }
.asr-rec-title  { flex: 1 1 auto !important; min-width: 0 !important; }
.asr-rec-type,
.asr-rec-time {
	display: inline-block !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	padding: 3px 10px !important;
	border-radius: 20px !important;
	white-space: nowrap !important;
	margin-left: 0 !important;
	letter-spacing: .02em !important;
	text-transform: uppercase !important;
}
.asr-rec-type {
	background: rgba(52, 211, 153, .15) !important;
	color: #34d399 !important;
	border: 1px solid rgba(52, 211, 153, .35) !important;
}
.asr-rec-time {
	background: rgba(167, 139, 250, .15) !important;
	color: #a78bfa !important;
	border: 1px solid rgba(167, 139, 250, .35) !important;
}
.asr-rec-action {
	color: #34d399 !important;
}

/* ── Report ToC badges (links to sections) ───────────────────────────── */
.asr-toc {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin: 0 0 24px;
	padding: 14px 16px;
	background: rgba(11, 20, 38, .35);
	border: 1px solid rgba(47, 184, 160, .2);
	border-radius: 12px;
}
.asr-toc__label {
	display: inline-flex; align-items: center;
	font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em;
	color: rgba(249, 250, 254, .55);
	margin-right: 6px;
}
.asr-toc__link {
	display: inline-block;
	font-size: 12px; font-weight: 600;
	padding: 5px 12px;
	border-radius: 999px;
	text-decoration: none;
	/* Pill color defaults come from the slug modifier below. The base rule
	 * uses CSS custom props so each variant only overrides two values. */
	--asr-toc-accent: 47, 184, 160;   /* teal — fallback for unmatched sections */
	--asr-toc-solid:  #2FB8A0;
	background: rgba(var(--asr-toc-accent), .12);
	border: 1px solid rgba(var(--asr-toc-accent), .35);
	color: var(--asr-toc-solid);
	transition: background .15s, border-color .15s, color .15s;
}
.asr-toc__link:hover {
	background: rgba(var(--asr-toc-accent), .25);
	color: #F1F5F9;
}

/* Per-section accents — match .asr-section--X .asr-section-title colors. */
.asr-toc__link--summary         { --asr-toc-accent: 47, 184, 160;   --asr-toc-solid: #2FB8A0; }
.asr-toc__link--developments    { --asr-toc-accent: 47, 184, 160;   --asr-toc-solid: #2FB8A0; }
.asr-toc__link--deepdives       { --asr-toc-accent: 167, 139, 250;  --asr-toc-solid: #a78bfa; }
.asr-toc__link--insights        { --asr-toc-accent: 251, 191, 36;   --asr-toc-solid: #fbbf24; }
.asr-toc__link--recommendations { --asr-toc-accent: 52, 211, 153;   --asr-toc-solid: #34d399; }
.asr-toc__link--github          { --asr-toc-accent: 167, 139, 250;  --asr-toc-solid: #a78bfa; }
.asr-toc__link--watchlist       { --asr-toc-accent: 251, 146, 60;   --asr-toc-solid: #fb923c; }
.asr-toc__link--ideas           { --asr-toc-accent: 34, 211, 238;   --asr-toc-solid: #22d3ee; }

/* ── Generated draft links inside ideas section ─────────────────────────
 * Mirrors the sibling .asr-voice-btn geometry (padding, radius, font) so
 * the checkmark link sits inline with the other format buttons. Uses the
 * filled-teal "done" treatment (same as .asr-voice-btn.is-done) to signal
 * "already generated — click to view". text-decoration:none is important
 * because UA + theme anchor styles otherwise draw a distracting underline
 * inside the pill. */
/* Solid-teal chip for "draft already generated → click to view".
 * Selector specificity has to beat the theme's link-tealify rule
 * (body .site-main a:where(...):not(.article-card a) → 0,2,3). The
 * :where() inside that rule already excludes .asr-idea-generated, but
 * different live contexts route around the exclusion, so we anchor
 * to .site-main / .app-main scope and the wrap parent to land
 * solidly above it. */
body .site-main .asr-idea-generated-wrap a.asr-idea-generated,
body .app-main .asr-idea-generated-wrap a.asr-idea-generated,
.asr-idea-generated-wrap a.asr-idea-generated,
a.asr-idea-generated {
	display: inline-flex; align-items: center; gap: 6px;
	margin: 0;
	padding: 5px 12px;
	font-size: 11px; font-weight: 600; line-height: 1.2;
	border-radius: 6px;
	background: #2FB8A0 !important;
	border: 1px solid #2FB8A0 !important;
	color: #FFFFFF !important;
	text-decoration: none !important;
	text-transform: lowercase;
}
body .site-main .asr-idea-generated-wrap a.asr-idea-generated:hover,
body .app-main .asr-idea-generated-wrap a.asr-idea-generated:hover,
.asr-idea-generated-wrap a.asr-idea-generated:hover,
a.asr-idea-generated:hover {
	background: #5EEAD4 !important;
	border-color: #5EEAD4 !important;
	color: #0B1426 !important;
	text-decoration: none !important;
}
/* The ✓ glyph is now baked into the chip's textContent in
 * renderIdeaDraftLinks(), so this ::before rule is intentionally
 * gone — keeping it would double the checkmark. */

/* The wrap div that holds one or more generated links should flow
 * inline with .asr-idea-actions' flex children, not stack below. */
.asr-idea-generated-wrap {
	display: inline-flex; gap: 6px; flex-wrap: wrap;
	margin: 0 !important;
}
[data-theme="light"] .asr-headline,
[data-theme="light"] .asr-section-title,
[data-theme="light"] .asr-dev-title,
[data-theme="light"] .asr-dev-title a,
[data-theme="light"] .asr-rec-title,
[data-theme="light"] .asr-dive-headline,
[data-theme="light"] .asr-github-name,
[data-theme="light"] .asr-github-headline,
[data-theme="light"] .asr-idea-title {
	color: #1a202c !important;
}
[data-theme="light"] .asr-dev-card,
[data-theme="light"] .asr-deep-dive,
[data-theme="light"] .asr-insight-card,
[data-theme="light"] .asr-rec-card,
[data-theme="light"] .asr-github-card,
[data-theme="light"] .asr-idea-card,
[data-theme="light"] .asr-watch-list,
[data-theme="light"] .asr-exec-summary {
	background: rgba(11, 20, 38, .02) !important;
	border-color: rgba(11, 20, 38, .08) !important;
}
[data-theme="light"] .asr-dev-summary,
[data-theme="light"] .asr-rec-rationale,
[data-theme="light"] .asr-github-desc,
[data-theme="light"] .asr-summary,
[data-theme="light"] .asr-rec-preamble {
	color: #4A5568 !important;
}

/* ── Extracted from render.php inline <style> (was duplicated + unmaintainable) ── */
/* ── Spinner ─────────────────────────────────────── */
@keyframes acp-spin { to { transform: rotate(360deg) } }
.acp-spinner { display:inline-block;width:13px;height:13px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:acp-spin .6s linear infinite;vertical-align:middle;margin-right:6px; }

/* ── Signals Dashboard — Tab & Panel styles ──────── */
.adamiro-signals-dashboard {
	font-family: 'Outfit', sans-serif;
	max-width: 1200px;
	margin: 0 auto;
}

/* Tabs — use the canonical .acp-tabs / .acp-tab-btn / .acp-tab-content system
 * defined in class-adamiro-ui.php::acp_styles(). Panel-inner layout stays local. */

.asd-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}
.asd-panel-header h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--fg, #F1F5F9);
	margin: 0;
}

/* Buttons */
/* Buttons use canonical .acp-btn / .acp-btn-white / .acp-btn-sm from
 * class-adamiro-ui.php::acp_styles(). Do not redefine locally. */

/* Adjust task badge contrast inside the teal-gradient primary button */
.adamiro-signals-dashboard .acp-btn .acp-task-badge {
	background: rgba(249,250,254,.18);
	border-radius: 5px;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 700;
	margin-left: 2px;
	color: #F1F5F9 !important;
}
.asd-panel-header .acp-help-icon {
	width: 20px;
	height: 20px;
	font-size: 12px;
}

/* Plan badge */
.asd-plan-badge {
	font-size: 13px;
	font-weight: 600;
	color: var(--fg-muted, #94A3B8);
	background: var(--card-bg, rgba(255,255,255,.04));
	border: 1px solid var(--border-v3, rgba(255,255,255,.08));
	border-radius: 8px;
	padding: 6px 14px;
}

/* Loading state */
.asd-loading {
	color: var(--fg-muted, #94A3B8);
	font-size: 14px;
	padding: 20px 0;
}
.asd-empty { color: var(--fg-subtle, #64748B); font-size: 14px; }

/* ── Progress bar ────────────────────────────────── */
.asd-progress-wrap { margin-bottom: 20px; }
.asd-progress-bar {
	height: 6px;
	background: rgba(255,255,255,.08);
	border-radius: 3px;
	overflow: hidden;
}
.asd-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2FB8A0, #34d399);
	border-radius: 3px;
	transition: width .8s ease;
}
.asd-progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 6px;
	font-size: 12px;
	color: var(--fg-muted, #94A3B8);
}
.asd-progress-time { font-variant-numeric: tabular-nums; }
[data-theme="light"] .asd-progress-bar { background: rgba(11,20,38,.06); }

/* ── Sources ─────────────────────────────────────── */
.asd-source-group { margin-bottom: 24px; }
.asd-source-group__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fg, #F1F5F9);
	margin: 0 0 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.asd-source-group--locked { opacity: .6; }
.asd-badge {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: rgba(47,184,160,.15);
	color: var(--teal, #2FB8A0);
	border-radius: 4px;
	padding: 2px 7px;
}
.asd-source-group__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 6px;
}
.asd-source-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	cursor: pointer;
	transition: background .15s;
}
.asd-source-item:hover { background: var(--card-bg, rgba(255,255,255,.04)); }
.asd-source-item--locked { opacity: .5; cursor: not-allowed; }
.asd-source-item__name { flex: 1; }
.asd-source-item input[type="checkbox"] { accent-color: var(--teal, #2FB8A0); }

.asd-sources-actions { margin: 16px 0; }

/* Suggestion form */
.asd-suggestion-form {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border-v3, rgba(255,255,255,.08));
}
.asd-suggestion-form h3 {
	font-size: 16px;
	font-weight: 700;
	color: var(--fg, #F1F5F9);
	margin: 0 0 4px;
}
.asd-suggestion-form p {
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	margin: 0 0 16px;
}
/* Form fields use canonical .acp-label / .acp-input. .asd-field is kept
 * as a small spacing wrapper only. */
.asd-field { margin-bottom: 14px; }

/* ── Reports ────────────────────────────────────── */
.asd-report-card {
	background: var(--card-bg, rgba(255,255,255,.04));
	border: 1px solid var(--border-v3, rgba(255,255,255,.08));
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 12px;
	transition: border-color .15s, background .15s;
	cursor: default;
}
.asd-report-card:hover { border-color: rgba(47,184,160,.3); }
.asd-report-card__header { display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px; }
.asd-report-card__title { font-size:16px;font-weight:700;color:var(--fg,#F1F5F9);margin:0; }
.asd-report-card__date { font-size:12px;color:var(--fg-muted,#94A3B8);white-space:nowrap;margin-top:3px; }
.asd-report-card__summary { font-size:13px;color:var(--fg-muted,#94A3B8);margin:0 0 12px;line-height:1.5; }
.asd-report-card__footer { display:flex;justify-content:space-between;align-items:center; }
.asd-status { font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:3px 8px;border-radius:4px; }
.asd-status--ok { background:rgba(52,211,153,.15);color:#34d399; }
.asd-status--err { background:rgba(248,113,113,.15);color:#f87171; }
.asd-status--pending { background:rgba(251,191,36,.15);color:#fbbf24; }
/* .acp-btn-sm is canonical; no local override needed. */

/* Report detail */
.asd-report-detail { max-width:900px; }
.asd-report-detail__title { font-size:22px;font-weight:700;color:var(--fg,#F1F5F9);margin:16px 0 4px; }
.asd-report-detail__date { font-size:13px;color:var(--fg-muted,#94A3B8); }
.asd-report-detail__summary { font-size:14px;color:var(--fg-muted,#94A3B8);margin:12px 0 20px;line-height:1.6; }
.asd-report-detail__content { color:var(--fg,#F1F5F9);line-height:1.7;font-size:14px; }
.asd-report-detail__content h2 { font-size:18px;font-weight:700;margin:28px 0 12px;color:var(--teal,#2FB8A0); }
.asd-report-detail__content h3 { font-size:15px;font-weight:600;margin:20px 0 8px; }
.asd-report-detail__content h4 { font-size:14px;font-weight:600;margin:12px 0 4px; }
.asd-report-detail__content a { color:var(--teal,#2FB8A0);text-decoration:underline; }
.asd-report-detail__content ul,.asd-report-detail__content ol { padding-left:20px;margin:8px 0; }
.asd-report-detail__content li { margin-bottom:4px; }
.adm-signal-article { background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:14px;margin:8px 0; }
.adm-signal-article h4 { margin:0 0 6px; }
.adm-signal-article a { color:var(--teal,#2FB8A0); }
.adm-relevance-badge { font-size:11px;font-weight:700;background:rgba(47,184,160,.15);color:#2FB8A0;padding:2px 6px;border-radius:4px; }
.adm-section-summary { font-size:13px;color:var(--fg-muted,#94A3B8);margin:4px 0 12px; }
.adm-signal-source-section { margin-bottom:28px; }
.adm-signal-source-section h2 { font-size:18px; }
.adm-signal-source-section small { font-weight:400;color:var(--fg-muted,#94A3B8); }

/* ── Report content — .asr-* classes ────────────── */
.adm-signals-report { line-height:1.7; }

/* Executive summary */
.asr-exec-summary {
	background: rgba(47,184,160,.06);
	border: 1px solid rgba(47,184,160,.15);
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 28px;
}
.asr-headline {
	font-size: 18px;
	font-weight: 700;
	color: var(--teal, #2FB8A0);
	margin: 0 0 8px;
}
.asr-summary {
	font-size: 14px;
	color: var(--fg-muted, #94A3B8);
	margin: 0 0 12px;
	line-height: 1.6;
}

/* Signal strength */
.asr-signal-strength { margin-top: 8px; }
.asr-signal-strength strong { color: var(--fg, #F1F5F9); font-size: 13px; }
.asr-strength-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 3px 10px;
	border-radius: 4px;
	margin-left: 6px;
}
.asr-strength--strong { background: rgba(52,211,153,.15); color: #34d399; }
.asr-strength--moderate { background: rgba(251,191,36,.15); color: #fbbf24; }
.asr-strength--weak { background: rgba(248,113,113,.15); color: #f87171; }
.asr-strength-reason { font-size: 12px; color: var(--fg-muted, #94A3B8); margin-top: 4px; }

/* Sections */
.asr-section {
	margin-bottom: 28px;
}
.asr-section-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--fg, #F1F5F9);
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Development cards */
.asr-dev-card {
	background: var(--card-bg, rgba(255,255,255,.04));
	border: 1px solid var(--border-v3, rgba(255,255,255,.08));
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 10px;
	transition: border-color .15s;
}
.asr-dev-card:hover { border-color: rgba(47,184,160,.25); }
.asr-dev-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.asr-rank {
	font-size: 11px;
	font-weight: 700;
	background: rgba(47,184,160,.15);
	color: var(--teal, #2FB8A0);
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	flex-shrink: 0;
}
.asr-dev-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--fg, #F1F5F9);
	margin: 0;
}
.asr-domain-badge {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: rgba(30,122,107,.3);
	color: var(--teal, #2FB8A0);
	padding: 2px 8px;
	border-radius: 4px;
	margin-left: auto;
	flex-shrink: 0;
}
.asr-dev-summary {
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	margin: 0 0 8px;
	line-height: 1.5;
}
.asr-relevance {
	font-size: 12px;
	color: var(--fg-muted, #94A3B8);
	font-style: italic;
}
.asr-dev-meta {
	display: flex;
	gap: 12px;
	margin-top: 8px;
	font-size: 12px;
	color: var(--fg-muted, #94A3B8);
}
.asr-source {
	color: var(--teal, #2FB8A0);
	text-decoration: none;
	font-size: 12px;
}
.asr-source:hover { text-decoration: underline; }

/* Article rating buttons */
.adm-article-rating { display:flex;gap:6px;margin-top:10px; }
.adm-rate-btn { background:none;border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:3px 10px;cursor:pointer;font-size:13px;color:var(--fg-muted,#94A3B8);transition:background .15s,border-color .15s,color .15s; }
.adm-rate-btn svg { width:16px;height:16px;vertical-align:-2px;margin-right:2px; }
.adm-rate-btn svg path { transition:fill .15s ease; }
.adm-rate-btn:hover { background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.2); }
.adm-rate-btn.is-active,
.adm-rate-btn--active { background:rgba(47,184,160,.18);border-color:#2FB8A0;color:#2FB8A0; }
.adm-rate-btn[data-signal="-1"].is-active,
.adm-rate-btn[data-signal="-1"].adm-rate-btn--active { background:rgba(231,76,60,.15);border-color:#e74c3c;color:#e74c3c; }
/* Fill the icon on select. Non-colour cue for red/green colour-blind users:
   colour alone is not a sufficient signal for the up/down state. */
.adm-rate-btn.is-active svg path,
.adm-rate-btn--active svg path { fill:currentColor; }
[data-theme="light"] .adm-rate-btn { border-color:rgba(11,20,38,.12);color:#4A5568; }
[data-theme="light"] .adm-rate-btn:hover { background:rgba(11,20,38,.05); }
[data-theme="light"] .adm-rate-btn.is-active,
[data-theme="light"] .adm-rate-btn--active { background:rgba(47,184,160,.1);border-color:rgba(47,184,160,.4);color:#1E7A6B; }
[data-theme="light"] .adm-rate-btn[data-signal="-1"].is-active,
[data-theme="light"] .adm-rate-btn[data-signal="-1"].adm-rate-btn--active { background:rgba(231,76,60,.1);border-color:rgba(231,76,60,.4);color:#c0392b; }

/* Insight cards */
.asr-insight-card {
	background: rgba(47,184,160,.04);
	border: 1px solid rgba(47,184,160,.12);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 10px;
}
.asr-insight-domains {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.asr-insight-domains span {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	background: rgba(47,184,160,.12);
	color: var(--teal, #2FB8A0);
	padding: 2px 8px;
	border-radius: 4px;
}
.asr-insight-text {
	font-size: 14px;
	font-weight: 600;
	color: var(--fg, #F1F5F9);
	margin: 0 0 6px;
}
.asr-insight-why {
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	margin: 0;
	line-height: 1.5;
}

/* Container sections (semantic wrappers) */
.asr-key-developments,
.asr-insights,
.asr-deep-dives,
.asr-recommendations { /* semantic containers — no extra styling needed */ }

/* Domain modifier accents on dive cards */
.asr-dive--technical { border-left: 3px solid var(--teal, #2FB8A0); }
.asr-dive--news { border-left: 3px solid #fbbf24; }
.asr-dive--community { border-left: 3px solid #34d399; }

/* Domain modifier badges in insight cards */
.asr-domain--technical { background: rgba(47,184,160,.12); color: var(--teal, #2FB8A0); }
.asr-domain--news { background: rgba(251,191,36,.12); color: #fbbf24; }
.asr-domain--community { background: rgba(52,211,153,.12); color: #34d399; }

/* Deep dive */
.asr-deep-dive {
	background: var(--card-bg, rgba(255,255,255,.04));
	border: 1px solid var(--border-v3, rgba(255,255,255,.08));
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 10px;
}
.asr-dive-title {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--teal, #2FB8A0);
	margin: 0 0 4px;
}
.asr-dive-headline {
	font-size: 15px;
	font-weight: 700;
	color: var(--fg, #F1F5F9);
	margin: 0 0 8px;
}
.asr-dive-body {
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	line-height: 1.6;
	margin: 0;
}

/* GitHub & Open Source */
.asr-github-headline {
	font-size: 15px;
	font-weight: 700;
	color: var(--fg, #F1F5F9);
	margin: 0 0 14px;
}
.asr-github-card {
	background: var(--card-bg, rgba(255,255,255,.04));
	border: 1px solid var(--border-v3, rgba(255,255,255,.08));
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 10px;
	transition: border-color .15s;
}
.asr-github-card:hover { border-color: rgba(110,84,148,.3); }
.asr-github-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fg, #F1F5F9);
	margin: 0 0 6px;
}
.asr-github-name a { color: #a78bfa; text-decoration: none; }
.asr-github-name a:hover { text-decoration: underline; color: #c4b5fd; }
.asr-github-desc {
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	line-height: 1.5;
	margin: 0 0 6px;
}

/* Recommendation cards */
.asr-rec-preamble {
	font-size: 14px;
	color: var(--fg-muted, #94A3B8);
	margin-bottom: 16px;
	line-height: 1.5;
}
.asr-rec-card {
	background: var(--card-bg, rgba(255,255,255,.04));
	border: 1px solid var(--border-v3, rgba(255,255,255,.08));
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 10px;
}
.asr-rec-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.asr-rec-num {
	font-size: 11px;
	font-weight: 700;
	background: linear-gradient(135deg, #2FB8A0, #1E7A6B);
	color: #F1F5F9;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	flex-shrink: 0;
}
.asr-rec-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--fg, #F1F5F9);
	margin: 0;
}
.asr-rec-type {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	background: rgba(47,184,160,.12);
	color: var(--teal, #2FB8A0);
	padding: 2px 8px;
	border-radius: 4px;
	margin-left: auto;
}
.asr-rec-time {
	font-size: 11px;
	color: var(--fg-muted, #94A3B8);
	margin-bottom: 6px;
}
.asr-rec-rationale {
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	line-height: 1.5;
	margin: 0 0 8px;
}
.asr-rec-action {
	font-size: 13px;
	font-weight: 600;
	color: var(--teal, #2FB8A0);
}

/* Watch list */
.asr-watch-list {
	background: rgba(251,191,36,.04);
	border: 1px solid rgba(251,191,36,.12);
	border-radius: 10px;
	padding: 16px;
	margin-top: 20px;
}
.asr-watch-list h3 {
	font-size: 14px;
	font-weight: 700;
	color: #fbbf24;
	margin: 0 0 10px;
}
.asr-watch-list ul { padding-left: 18px; margin: 0; }
.asr-watch-list li {
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	margin-bottom: 4px;
	line-height: 1.5;
}

/* ── Light mode — .asr-* overrides ──────────────── */
[data-theme="light"] .asr-exec-summary { background: rgba(47,184,160,.04); border-color: rgba(47,184,160,.12); }
[data-theme="light"] .asr-summary,
[data-theme="light"] .asr-dev-summary,
[data-theme="light"] .asr-relevance,
[data-theme="light"] .asr-dev-meta,
[data-theme="light"] .asr-insight-why,
[data-theme="light"] .asr-dive-body,
[data-theme="light"] .asr-rec-preamble,
[data-theme="light"] .asr-rec-rationale,
[data-theme="light"] .asr-rec-time,
[data-theme="light"] .asr-watch-list li { color: #4A5568; }
[data-theme="light"] .asr-section-title,
[data-theme="light"] .asr-dev-title,
[data-theme="light"] .asr-insight-text,
[data-theme="light"] .asr-dive-headline,
[data-theme="light"] .asr-rec-title { color: #1a202c; }
[data-theme="light"] .asr-section-title { border-bottom-color: rgba(11,20,38,.06); }
[data-theme="light"] .asr-dev-card,
[data-theme="light"] .asr-deep-dive,
[data-theme="light"] .asr-rec-card,
[data-theme="light"] .asr-github-card { background: rgba(11,20,38,.02); border-color: rgba(11,20,38,.08); }
[data-theme="light"] .asr-github-headline,
[data-theme="light"] .asr-github-name { color: #1a202c; }
[data-theme="light"] .asr-github-name a { color: #6e5494; }
[data-theme="light"] .asr-github-desc { color: #4A5568; }
[data-theme="light"] .asr-insight-card { background: rgba(47,184,160,.03); border-color: rgba(47,184,160,.08); }
[data-theme="light"] .asr-watch-list { background: rgba(251,191,36,.03); border-color: rgba(251,191,36,.08); }
[data-theme="light"] .asr-signal-strength strong { color: #1a202c; }
[data-theme="light"] .asr-strength-reason { color: #4A5568; }

/* ── Light mode overrides for reports ───────────── */
[data-theme="light"] .asd-report-card { background:rgba(11,20,38,.02);border-color:rgba(11,20,38,.08); }
[data-theme="light"] .asd-report-card:hover { border-color:rgba(47,184,160,.3); }
[data-theme="light"] .asd-report-card__title,
[data-theme="light"] .asd-report-detail__title { color:#1a202c; }
[data-theme="light"] .asd-report-card__date,
[data-theme="light"] .asd-report-card__summary,
[data-theme="light"] .asd-report-detail__date,
[data-theme="light"] .asd-report-detail__summary { color:#4A5568; }
[data-theme="light"] .asd-report-detail__content { color:#1a202c; }
[data-theme="light"] .adm-signal-article { background:rgba(11,20,38,.02);border-color:rgba(11,20,38,.06); }

/* ── ACP base styles (self-contained for block render) ── */
.asd-settings-editor {
	font-family: 'Outfit', sans-serif;
	width: 100%;
	padding: 0 0 60px;
}
.asd-settings-editor .acp-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 28px;
	flex-wrap: wrap;
	gap: 14px;
}
.asd-settings-editor .acp-header h2 {
	font-size: 26px;
	font-weight: 700;
	color: var(--fg, #F1F5F9);
	margin: 0;
}
.asd-settings-editor .acp-header-meta {
	font-size: 13px;
	color: rgba(249,250,254,.4);
	margin-top: 4px;
}
.asd-settings-editor .acp-header-actions {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}
.asd-settings-editor .acp-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 24px;
	align-items: start;
}
@media(max-width:900px) {
	.asd-settings-editor .acp-columns { grid-template-columns: 1fr; }
}
.asd-settings-editor .acp-field-group {
	background: rgba(30,41,59,0.36);
	border: 1px solid rgba(47,184,160,.18);
	border-radius: 16px;
	padding: 24px 28px;
	margin-bottom: 18px;
}
.asd-settings-editor .acp-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fg, #F1F5F9);
	margin-bottom: 5px;
}
.asd-settings-editor .acp-hint {
	font-size: 13px;
	color: rgba(249,250,254,.45);
	margin-bottom: 12px;
	line-height: 1.55;
}
.asd-settings-editor .acp-sublabel {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: rgba(249,250,254,.5);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 6px;
}
.asd-settings-editor .acp-input {
	display: block;
	width: 100%;
	background: rgba(30,122,107,.25);
	border: 1px solid rgba(47,184,160,.22);
	border-radius: 10px;
	padding: 11px 15px;
	color: var(--fg, #F1F5F9);
	font-size: 14px;
	font-family: inherit;
	transition: border-color .2s, background .2s;
	box-sizing: border-box;
}
.asd-settings-editor .acp-input:focus {
	outline: none;
	border-color: #2FB8A0;
	background: rgba(30,122,107,.45);
	box-shadow: 0 0 0 3px rgba(47,184,160,.15);
}
.asd-settings-editor select.acp-input { cursor: pointer; }
.asd-settings-editor select.acp-input option { background: #0b1a1c; color: #F1F5F9; }
.asd-settings-editor .acp-array-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.asd-settings-editor .acp-array-item .acp-input { flex: 1; }
.asd-settings-editor .acp-remove-btn {
	background: rgba(239,68,68,.12);
	border: 1px solid rgba(239,68,68,.28);
	border-radius: 7px;
	padding: 7px 10px;
	color: #f87171;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	transition: background .2s;
	flex-shrink: 0;
}
.asd-settings-editor .acp-remove-btn:hover { background: rgba(239,68,68,.28); }
.asd-settings-editor .acp-add-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	background: rgba(47,184,160,.08);
	border: 1px dashed rgba(47,184,160,.35);
	border-radius: 10px;
	padding: 10px 16px;
	color: #2FB8A0;
	font-size: 13px;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
	margin-top: 4px;
}
.asd-settings-editor .acp-add-btn:hover { background: rgba(47,184,160,.18); }
.asd-settings-editor .acp-btn-primary {
	background: linear-gradient(135deg, #2FB8A0, #1E7A6B);
	border: none;
	border-radius: 10px;
	padding: 12px 24px;
	color: #F1F5F9;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.asd-settings-editor .acp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(47,184,160,.4); }
.asd-settings-editor .acp-btn-secondary {
	background: rgba(11,20,38,.55);
	border: 1px solid rgba(47,184,160,.3);
	border-radius: 10px;
	padding: 12px 24px;
	color: #2FB8A0;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: transform .15s, background .15s;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.asd-settings-editor .acp-btn-secondary:hover { background: rgba(47,184,160,.2); }
.asd-settings-editor .acp-task-badge {
	background: rgba(249,250,254,.12);
	border-radius: 5px;
	padding: 2px 7px;
	font-size: 11px;
	font-weight: 700;
}
.asd-settings-editor .acp-unsaved {
	display: none;
	align-items: center;
	gap: 8px;
	background: rgba(245,158,11,.12);
	border: 1px solid rgba(245,158,11,.3);
	border-radius: 10px;
	padding: 12px 18px;
	color: #fbbf24;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 22px;
}

/* ── Settings extras ─────────────────────────────── */
.acp-settings-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}
.acp-email-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 13px;
	color: var(--fg-muted, #94A3B8);
	cursor: pointer;
}
.acp-email-toggle input[type="checkbox"] { accent-color: var(--teal, #2FB8A0); }

/* ── LIGHT MODE OVERRIDES ────────────────────────── */

/* --- Dashboard shell (light-mode tab overrides now come from canonical acp-*) --- */
[data-theme="light"] .adamiro-signals-dashboard .asd-panel-header h2,
[data-theme="light"] .adamiro-signals-dashboard .asd-source-group__title,
[data-theme="light"] .adamiro-signals-dashboard .asd-suggestion-form h3 {
	color: #1a202c;
}
[data-theme="light"] .adamiro-signals-dashboard .asd-loading,
[data-theme="light"] .adamiro-signals-dashboard .asd-empty,
[data-theme="light"] .adamiro-signals-dashboard .asd-source-item,
[data-theme="light"] .adamiro-signals-dashboard .asd-plan-badge,
[data-theme="light"] .adamiro-signals-dashboard .asd-suggestion-form p,
[data-theme="light"] .adamiro-signals-dashboard .acp-email-toggle {
	color: #4A5568;
}
[data-theme="light"] .adamiro-signals-dashboard .asd-plan-badge {
	background: rgba(11,20,38,.04);
	border-color: rgba(11,20,38,.10);
}
[data-theme="light"] .adamiro-signals-dashboard .asd-source-item:hover {
	background: rgba(11,20,38,.04);
}
[data-theme="light"] .adamiro-signals-dashboard .asd-source-item__name {
	color: #1a202c;
}
[data-theme="light"] .adamiro-signals-dashboard .asd-suggestion-form {
	border-top-color: rgba(11,20,38,.10);
}
/* Canonical .acp-input handles its own light-theme styling. */
/* Light-theme .acp-btn-white is handled by canonical acp_styles(). */
[data-theme="light"] .adamiro-signals-dashboard .asd-progress-bar {
	background: rgba(11,20,38,.06);
}

/* --- Settings form (acp-* scoped to .asd-settings-editor) --- */
[data-theme="light"] .asd-settings-editor .acp-header h2 {
	color: #1a202c;
}
[data-theme="light"] .asd-settings-editor .acp-header-meta {
	color: #4A5568;
}
[data-theme="light"] .asd-settings-editor .acp-field-group {
	background: rgba(11,20,38,.03);
	border-color: rgba(11,20,38,.10);
}
[data-theme="light"] .asd-settings-editor .acp-label {
	color: #1a202c;
}
[data-theme="light"] .asd-settings-editor .acp-hint {
	color: #4A5568;
}
[data-theme="light"] .asd-settings-editor .acp-sublabel {
	color: #64748b;
}
[data-theme="light"] .asd-settings-editor .acp-input {
	background: rgba(11,20,38,.03);
	border-color: rgba(11,20,38,.12);
	color: #1a202c;
}
[data-theme="light"] .asd-settings-editor .acp-input:focus {
	background: #fff;
	border-color: #2FB8A0;
}
[data-theme="light"] .asd-settings-editor .acp-input::placeholder {
	color: #64748B;
}
[data-theme="light"] .asd-settings-editor select.acp-input option {
	background: #fff;
	color: #1a202c;
}
[data-theme="light"] .asd-settings-editor .acp-btn-secondary {
	background: rgba(11,20,38,.04);
	border-color: rgba(47,184,160,.25);
	color: #1E7A6B;
}
[data-theme="light"] .asd-settings-editor .acp-btn-secondary:hover {
	background: rgba(47,184,160,.1);
}
[data-theme="light"] .asd-settings-editor .acp-btn-primary {
	color: #F1F5F9;
}
[data-theme="light"] .asd-settings-editor .acp-task-badge {
	background: rgba(11,20,38,.08);
	color: #4A5568;
}
[data-theme="light"] .asd-settings-editor .acp-add-btn {
	background: rgba(47,184,160,.06);
	border-color: rgba(47,184,160,.25);
	color: #1E7A6B;
}
[data-theme="light"] .asd-settings-editor .acp-add-btn:hover {
	background: rgba(47,184,160,.12);
}
[data-theme="light"] .asd-settings-editor .acp-remove-btn {
	background: rgba(239,68,68,.08);
	border-color: rgba(239,68,68,.2);
}
[data-theme="light"] .asd-settings-editor .acp-unsaved {
	background: rgba(245,158,11,.08);
	border-color: rgba(245,158,11,.2);
	color: #b45309;
}
/* Toast in light mode */
[data-theme="light"] .acp-toast {
	background: rgba(255,255,255,.96);
	color: #1a202c;
	border-color: rgba(47,184,160,.3);
	box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
/* Spinner in light mode — keep white inside the primary .acp-btn */
[data-theme="light"] .acp-btn .acp-spinner {
	border-color: rgba(255,255,255,.3);
	border-top-color: #fff;
}
[data-theme="light"] .acp-spinner {
	border-color: rgba(47,184,160,.25);
	border-top-color: #2FB8A0;
}
/* Profile completion banner */
.asd-profile-banner {
	background: rgba(251,191,36,.08);
	border: 1px solid rgba(251,191,36,.2);
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: var(--fg, #F1F5F9);
}
.asd-profile-banner__icon { font-size: 20px; flex-shrink: 0; }
.asd-profile-banner a {
	color: #2FB8A0;
	font-weight: 600;
	text-decoration: none;
}
.asd-profile-banner a:hover { text-decoration: underline; }
[data-theme="light"] .asd-profile-banner { background: rgba(251,191,36,.06); border-color: rgba(251,191,36,.15); color: #1a202c; }

/* Sources-required notice (moved from secondary inline <style> block) */
.asd-sources-required-notice {
	display: flex; align-items: flex-start; gap: 12px;
	background: rgba(245, 158, 11, .08);
	border: 1px solid rgba(245, 158, 11, .3);
	border-radius: 12px;
	padding: 14px 18px;
	margin: 0 0 22px;
	color: #F1F5F9;
	font-size: 14px;
	line-height: 1.55;
}
.asd-sources-required-notice[hidden] { display: none; }
.asd-sources-required-notice__icon { font-size: 20px; line-height: 1; color: #fbbf24; flex-shrink: 0; }
.asd-sources-required-notice__body strong { display: block; margin-bottom: 4px; color: #fbbf24; }
.asd-sources-required-notice a { color: #2FB8A0; font-weight: 600; }
.asd-required-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.asd-required-item { display: flex; align-items: flex-start; gap: 8px; }
.asd-required-item__check { flex-shrink: 0; width: 16px; text-align: center; color: rgba(241,245,249,.45); font-weight: 700; line-height: 1.55; }
.asd-required-item[data-met] { opacity: .55; }
.asd-required-item[data-met] .asd-required-item__check { color: #2FB8A0; }
[data-theme="light"] .asd-sources-required-notice {
	background: rgba(245, 158, 11, .08);
	border-color: rgba(245, 158, 11, .35);
	color: #1a202c;
}
[data-theme="light"] .asd-required-item__check { color: rgba(26,32,44,.45); }
[data-theme="light"] .asd-required-item[data-met] .asd-required-item__check { color: #1E7A6B; }
