/*! aeoora dashboard widget – GPL-2.0-or-later */
#aeoora_widget .inside { padding: 0; margin: 0; }
.aeo-w {
	--aeo-w-accent: #635bff;
	--aeo-w-control: var(--wp-admin-theme-color, #635bff);
	--aeo-w-ink: #1d2327;
	--aeo-w-muted: #646970;
	--aeo-w-line: #f0f0f1;
	--aeo-w-soft: #f6f7f7;
	color: var(--aeo-w-ink);
	font-size: 13px;
}
.aeo-w a:focus-visible { outline: 2px solid var(--aeo-w-control); outline-offset: 2px; box-shadow: none; }

/* Setup nudge */
.aeo-w-setup { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin: 12px 12px 0; padding: 10px 12px; border-radius: 8px; background: #15142b; color: #fff; text-decoration: none; }
.aeo-w-setup:hover, .aeo-w-setup:focus { color: #fff; background: #221f48; }
.aeo-w-setup-text strong { display: block; font-size: 13px; }
.aeo-w-setup-text { color: #c4c6dc; font-size: 12px; }
.aeo-w-setup-bar { grid-column: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.aeo-w-setup-bar i { display: block; height: 100%; background: #c8ff4d; border-radius: 4px; }
.aeo-w-setup-go { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; color: #c8ff4d; }

/* KPIs */
.aeo-w-kpis { display: grid; grid-template-columns: 1fr 1fr 1.15fr; border-bottom: 1px solid var(--aeo-w-line); }
.aeo-w-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; color: inherit; text-decoration: none; min-width: 0; }
.aeo-w-kpi + .aeo-w-kpi { border-inline-start: 1px solid var(--aeo-w-line); }
.aeo-w-kpi:hover, .aeo-w-kpi:focus { background: var(--aeo-w-soft); color: inherit; }
.aeo-w-label { color: var(--aeo-w-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aeo-w-num { font-size: 22px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.aeo-w-sub { display: block; color: var(--aeo-w-muted); font-size: 12px; }
.aeo-w-delta { align-self: flex-start; font-size: 11px; font-weight: 600; line-height: 16px; padding: 0 6px; border-radius: 99px; background: var(--aeo-w-soft); color: var(--aeo-w-muted); font-variant-numeric: tabular-nums; }
.aeo-w-delta.is-up { background: #ecfdf3; color: #067647; }
.aeo-w-delta.is-down { background: #fef3f2; color: #b42318; }
.aeo-w-delta.is-new { background: #f4f3ff; color: #4b43df; }
.aeo-w-kpi-score { flex-direction: row; align-items: center; gap: 10px; }
.aeo-w-ring { flex: 0 0 48px; }
.aeo-w-ring-track { fill: none; stroke: #f0f0f1; stroke-width: 5; }
.aeo-w-ring-value { fill: none; stroke-width: 5; stroke-linecap: round; }
.aeo-w-ring text { font-size: 14px; font-weight: 700; fill: var(--aeo-w-ink); }
.aeo-w-ring.is-good .aeo-w-ring-value { stroke: #12b76a; }
.aeo-w-ring.is-ok .aeo-w-ring-value { stroke: #f79009; }
.aeo-w-ring.is-bad .aeo-w-ring-value { stroke: #f04438; }
.aeo-w-ring.is-none .aeo-w-ring-value { stroke: none; }

/* Sparkline */
.aeo-w-spark { margin: 0; padding: 12px 12px 4px; }
.aeo-w-spark svg { display: block; width: 100%; height: 56px; overflow: visible; }
.aeo-w-bars rect { fill: var(--aeo-w-accent); opacity: .28; }
.aeo-w-bars rect:last-child { opacity: .7; }
.aeo-w-line { fill: none; stroke: #12b76a; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.aeo-w-spark figcaption { display: flex; gap: 12px; align-items: center; margin-top: 6px; color: var(--aeo-w-muted); font-size: 11px; }
.aeo-w-key::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 5px; vertical-align: -1px; background: var(--aeo-w-accent); opacity: .55; }
.aeo-w-key.is-line::before { height: 2px; vertical-align: 2px; background: #12b76a; opacity: 1; }
.aeo-w-range { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

/* Ranked lists */
.aeo-w-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 6px 12px 4px; }
.aeo-w-list h3 { margin: 8px 0 6px; font-size: 12px; font-weight: 600; color: var(--aeo-w-muted); text-transform: uppercase; letter-spacing: .04em; }
.aeo-w-list h3 a { color: inherit; text-decoration: none; }
.aeo-w-list h3 a:hover { color: var(--aeo-w-control); }
.aeo-w-list ol { list-style: none; margin: 0; padding: 0; }
.aeo-w-list li { display: grid; grid-template-columns: 16px 1fr auto; gap: 2px 8px; align-items: center; margin: 0 0 8px; }
.aeo-w-list li img, .aeo-w-dot { width: 16px; height: 16px; border-radius: 4px; }
.aeo-w-dot { background: var(--aeo-w-line); }
.aeo-w-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aeo-w-list strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.aeo-w-list li i { grid-column: 2 / span 2; display: block; height: 3px; border-radius: 3px; background: var(--aeo-w-line); position: relative; }
.aeo-w-list li i::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: 3px; background: var(--c); }

/* Empty state */
.aeo-w-empty { display: flex; gap: 12px; align-items: center; padding: 14px 12px; }
.aeo-w-empty img { flex: 0 0 40px; }
.aeo-w-empty p { margin: 0; color: var(--aeo-w-muted); }
.aeo-w-empty strong { color: var(--aeo-w-ink); }

/* To-do */
.aeo-w-todo { margin: 4px 12px 0; padding: 0; list-style: none; border-top: 1px solid var(--aeo-w-line); }
.aeo-w-todo li { display: flex; gap: 8px; align-items: center; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--aeo-w-line); }
.aeo-w-todo li > span:nth-child(2) { flex: 1; min-width: 0; }
.aeo-w-todo a { flex: 0 0 auto; font-weight: 600; text-decoration: none; color: var(--aeo-w-control); }
.aeo-w-todo a:hover { text-decoration: underline; }
.aeo-w-todo-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: #98a2b3; }
.aeo-w-todo .is-bad .aeo-w-todo-dot { background: #f04438; }
.aeo-w-todo .is-warn .aeo-w-todo-dot { background: #f79009; }
.aeo-w-todo .is-info .aeo-w-todo-dot { background: var(--aeo-w-accent); }
.aeo-w-todo .is-good .aeo-w-todo-dot { background: #12b76a; }
.aeo-w-todo .is-good { color: var(--aeo-w-muted); }

/* Footer */
.aeo-w-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px; }
.aeo-w-link { text-decoration: none; }
.aeo-w-period { margin-inline-start: auto; color: var(--aeo-w-muted); font-size: 11px; }

@media (max-width: 480px) {
	.aeo-w-kpis { grid-template-columns: 1fr 1fr; }
	.aeo-w-kpi-score { grid-column: 1 / -1; border-inline-start: 0 !important; border-top: 1px solid var(--aeo-w-line); }
	.aeo-w-cols { grid-template-columns: 1fr; }
}
