/* elev8tor.ai app. Scoped to .e8-root so a theme around it is not affected. */
:root {
  --e8-navy: #03112A; --e8-blue: #0071FD; --e8-royal: #2856FC; --e8-cyan: #00C6FE; --e8-violet: #842DFD; --e8-magenta: #E968FB; --e8-deep: #012F58;
  --e8-grad: linear-gradient(90deg, #00C6FE 0%, #0071FD 38%, #842DFD 72%, #E968FB 100%);
  --e8-bg: #F9FBFE; --e8-card: #FFFFFF; --e8-card-2: #F3F6FB; --e8-glass: rgba(255,255,255,.72); --e8-text: #14213A; --e8-heading: #03112A; --e8-muted: #5B6A82;
  --e8-line: #E3E9F3; --e8-line-2: #EEF2F8; --e8-good: #0E9F6E; --e8-bad: #E0364F; --e8-warn: #C27C0E; --e8-focus: #0071FD;
  --e8-shadow: 0 1px 2px rgba(3,17,42,.04), 0 8px 24px rgba(3,17,42,.06);
  --e8-side: #FFFFFF; --e8-side-2: #EEF4FF; --e8-side-text: #14213A; --e8-side-muted: #6B7A93; --e8-side-active: #0071FD;
  --e8-r: 14px; --e8-r-sm: 10px;
  --e8-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --e8-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --e8-pop-bg: #03112A; --e8-pop-text: #F4F7FC; --e8-pop-link: #9CD3FF; --e8-pop-line: #03112A;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --e8-bg: #050C1C; --e8-card: #0B1631; --e8-card-2: #0F1D3D; --e8-glass: rgba(14,28,60,.72); --e8-text: #DCE5F5; --e8-heading: #F2F6FD; --e8-muted: #92A1BC;
    --e8-line: #1B2A4C; --e8-line-2: #142243; --e8-shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    --e8-side: #071127; --e8-side-2: #0F1D3D; --e8-side-text: #DCE5F5; --e8-side-muted: #92A1BC; --e8-side-active: #4DA3FF;
    --e8-pop-bg: #F9FBFE; --e8-pop-text: #03112A; --e8-pop-link: #0049A8; --e8-pop-line: #B8C6DD;
  }
}
:root[data-theme="dark"] {
  --e8-bg: #050C1C; --e8-card: #0B1631; --e8-card-2: #0F1D3D; --e8-glass: rgba(14,28,60,.72); --e8-text: #DCE5F5; --e8-heading: #F2F6FD; --e8-muted: #92A1BC;
  --e8-line: #1B2A4C; --e8-line-2: #142243; --e8-shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --e8-side: #071127; --e8-side-2: #0F1D3D; --e8-side-text: #DCE5F5; --e8-side-muted: #92A1BC; --e8-side-active: #4DA3FF;
  --e8-pop-bg: #F9FBFE; --e8-pop-text: #03112A; --e8-pop-link: #0049A8; --e8-pop-line: #B8C6DD;
}
body.e8-standalone { background: var(--e8-bg); margin: 0; }

.e8-root, .e8-root * { box-sizing: border-box; }
.e8-root { font-family: var(--e8-font); font-size: 14px; line-height: 1.5; color: var(--e8-text); background: var(--e8-bg); min-height: 100vh; position: relative; -webkit-font-smoothing: antialiased; text-align: left; }
.e8-root h1, .e8-root h2, .e8-root h3, .e8-root h4 { font-family: var(--e8-head); color: var(--e8-heading); margin: 0; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; text-transform: none; }
.e8-root h1 { font-size: 24px; font-weight: 800; }
.e8-root h2 { font-size: 17px; }
.e8-root h3 { font-size: 14.5px; }
.e8-root p { margin: 0 0 10px; }
.e8-root a { color: var(--e8-blue); text-decoration: none; }
.e8-root a:hover { text-decoration: underline; }
.e8-root button, .e8-root input, .e8-root select, .e8-root textarea { font: inherit; color: inherit; }
.e8-root :focus-visible { outline: 2px solid var(--e8-focus); outline-offset: 2px; }
.e8-root code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--e8-card-2); padding: 1px 5px; border-radius: 5px; }
.e8-ic { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.e8-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.e8-boot { padding: 60px; text-align: center; color: var(--e8-muted); }

/* ---------- shell ---------- */
.e8-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.e8-side { background: var(--e8-side); color: var(--e8-side-text); border-right: 1px solid var(--e8-line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 18px 12px; z-index: 30; }
.e8-side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--e8-grad); }
.e8-logo { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 8px 18px; margin-bottom: 4px; border-bottom: 1px solid var(--e8-line); color: var(--e8-heading); font-family: var(--e8-head); font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.e8-logo .e8-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--e8-grad); display: grid; place-items: center; flex: none; }
.e8-logo .e8-mark svg { width: 18px; height: 18px; }
.e8-logo .e8-dot { color: #0071FD; }
.e8-logo .e8-mark-img { width: 34px; height: 34px; border-radius: 9px; flex: none; display: block; }
.e8-logo .e8-wordmark { color: #fff; }
.e8-modal th[scope=row] { text-align: left; color: var(--e8-muted); font-weight: 600; font-size: 12.5px; background: var(--e8-card-2); }
.e8-logo img { max-height: 60px; max-width: 200px; }
.e8-logo img.e8-logo-full { max-height: none; width: 188px; height: auto; background: #fff; border-radius: 12px; }
.e8-nav { display: flex; flex-direction: column; gap: 2px; }
.e8-nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--e8-side-muted); padding: 16px 12px 6px; font-weight: 600; }
.e8-nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--e8-side-text); font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.e8-nav a:hover { background: var(--e8-side-2); color: var(--e8-side-active); text-decoration: none; }
.e8-nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.e8-nav a.is-active { background: linear-gradient(90deg, rgba(0,113,253,.12), rgba(132,45,253,.06)); color: var(--e8-side-active); font-weight: 600; }
.e8-nav a.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #00C6FE, #0071FD, #842DFD, #E968FB); }
.e8-nav .e8-lock-ic { margin-left: auto; width: 14px; height: 14px; opacity: .55; }
.e8-side-foot { margin-top: auto; padding: 14px 10px 4px; font-size: 12px; color: var(--e8-side-muted); }
.e8-plan-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--e8-side-2); color: var(--e8-heading); font-weight: 600; font-size: 12px; }
.e8-plan-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--e8-grad); }

.e8-main { min-width: 0; display: flex; flex-direction: column; }
.e8-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: var(--e8-glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--e8-line); }
.e8-top .e8-grow { flex: 1; }
.e8-top .e8-burger { display: none; }
.e8-site-pick { display: flex; align-items: center; gap: 8px; }
.e8-site-pick select { min-width: 180px; max-width: 280px; }
.e8-cmd-btn { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--e8-line); border-radius: 10px; background: var(--e8-card); color: var(--e8-muted); cursor: pointer; min-width: 220px; }
.e8-cmd-btn svg { width: 16px; height: 16px; flex: none; }
.e8-cmd-btn kbd, .e8-kbd { margin-left: auto; font: 600 11px var(--e8-font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--e8-line); background: var(--e8-card-2); color: var(--e8-muted); }
.e8-icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--e8-line); background: var(--e8-card); cursor: pointer; color: var(--e8-text); }
.e8-icon-btn:hover { border-color: var(--e8-blue); }
.e8-icon-btn svg { width: 18px; height: 18px; }
.e8-user { position: relative; }
.e8-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--e8-grad); color: #fff; font-weight: 700; display: grid; place-items: center; border: 0; cursor: pointer; }
.e8-menu { position: absolute; right: 0; top: 44px; min-width: 230px; background: var(--e8-card); border: 1px solid var(--e8-line); border-radius: 12px; box-shadow: var(--e8-shadow); padding: 6px; display: none; z-index: 50; }
.e8-menu.is-open { display: block; }
.e8-menu a, .e8-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--e8-text); background: none; border: 0; cursor: pointer; text-decoration: none; }
.e8-menu a:hover, .e8-menu button:hover { background: var(--e8-card-2); text-decoration: none; }
.e8-menu .e8-menu-head { padding: 8px 10px; border-bottom: 1px solid var(--e8-line); margin-bottom: 4px; }
.e8-content { padding: 24px; max-width: 1480px; width: 100%; }
.e8-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.e8-page-head p { color: var(--e8-muted); margin: 6px 0 0; }
.e8-eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; background: var(--e8-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; display: inline-block; }

/* ---------- controls ---------- */
.e8-root .e8-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--e8-line); background: var(--e8-card); color: var(--e8-text); font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .15s, background .15s; white-space: nowrap; }
.e8-root .e8-btn:hover { text-decoration: none; border-color: var(--e8-blue); }
.e8-root .e8-btn:active { transform: translateY(1px); }
.e8-root .e8-btn[disabled] { opacity: .55; cursor: not-allowed; }
.e8-root .e8-btn-primary { background: var(--e8-blue); border-color: var(--e8-blue); color: #fff; box-shadow: 0 6px 16px rgba(0,113,253,.25); }
.e8-root .e8-btn-primary:hover { background: #0063E0; color: #fff; }
.e8-root .e8-btn-grad { background: var(--e8-grad); border: 0; color: #fff; box-shadow: 0 8px 22px rgba(132,45,253,.25); }
.e8-root .e8-btn-grad:hover { color: #fff; filter: brightness(1.05); }
.e8-root .e8-btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.e8-root .e8-btn-ghost { background: transparent; border-color: transparent; color: var(--e8-blue); }
.e8-root .e8-btn-danger { color: var(--e8-bad); }
.e8-root input[type=text], .e8-root input[type=url], .e8-root input[type=email], .e8-root input[type=password], .e8-root input[type=number], .e8-root input[type=search], .e8-root select, .e8-root textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--e8-line); border-radius: 10px; background: var(--e8-card); color: var(--e8-text); box-shadow: none; min-height: 38px; }
.e8-root textarea { min-height: 90px; resize: vertical; }
.e8-root input:focus, .e8-root select:focus, .e8-root textarea:focus { border-color: var(--e8-blue); outline: none; box-shadow: 0 0 0 3px rgba(0,113,253,.15); }
.e8-root label.e8-field { display: block; font-weight: 600; font-size: 13px; color: var(--e8-heading); margin-bottom: 12px; }
.e8-root label.e8-field > input, .e8-root label.e8-field > select, .e8-root label.e8-field > textarea { margin-top: 6px; font-weight: 400; }
.e8-field small, .e8-help-text { display: block; color: var(--e8-muted); font-weight: 400; font-size: 12.5px; margin-top: 4px; }
.e8-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.e8-row > .e8-grow { flex: 1 1 220px; min-width: 0; }
.e8-banner .e8-tip { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.5); }
.e8-seg { display: inline-flex; border: 1px solid var(--e8-line); border-radius: 10px; padding: 3px; background: var(--e8-card-2); }
.e8-root .e8-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--e8-muted); }
.e8-root .e8-seg button.is-on { background: var(--e8-card); color: var(--e8-heading); box-shadow: var(--e8-shadow); }
.e8-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.e8-switch input { position: absolute; opacity: 0; }
.e8-switch span.e8-knob { width: 38px; height: 22px; border-radius: 22px; background: var(--e8-line); position: relative; transition: background .2s; flex: none; }
.e8-switch span.e8-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.e8-switch input:checked + span.e8-knob { background: var(--e8-blue); }
.e8-switch input:checked + span.e8-knob::after { transform: translateX(16px); }
.e8-switch input:focus-visible + span.e8-knob { outline: 2px solid var(--e8-focus); outline-offset: 2px; }

/* ---------- cards ---------- */
.e8-grid { display: grid; gap: 16px; }
.e8-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.e8-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e8-g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.e8-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.e8-card { background: var(--e8-card); border: 1px solid var(--e8-line); border-radius: var(--e8-r); box-shadow: var(--e8-shadow); padding: 18px; min-width: 0; position: relative; }
.e8-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.e8-card-head .e8-sub { color: var(--e8-muted); font-size: 12.5px; }
.e8-kpi { position: relative; overflow: hidden; background: var(--e8-glass); border: 1px solid var(--e8-line); border-radius: var(--e8-r); padding: 16px 16px 12px; box-shadow: var(--e8-shadow); backdrop-filter: blur(10px); }
.e8-kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--e8-grad); opacity: .85; }
.e8-kpi .e8-kpi-label { display: flex; align-items: center; gap: 6px; color: var(--e8-muted); font-size: 12.5px; font-weight: 600; }
.e8-kpi .e8-kpi-val { font-family: var(--e8-head); font-weight: 800; font-size: 27px; color: var(--e8-heading); margin: 6px 0 2px; letter-spacing: -.02em; }
.e8-kpi .e8-kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.e8-delta { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.e8-delta.up { color: var(--e8-good); background: rgba(14,159,110,.1); }
.e8-delta.down { color: var(--e8-bad); background: rgba(224,54,79,.1); }
.e8-delta.flat { color: var(--e8-muted); background: var(--e8-card-2); }
.e8-spark { width: 96px; height: 28px; }
.e8-chart-box { position: relative; height: 260px; }
.e8-chart-box.sm { height: 200px; }

/* ---------- score rings ---------- */
.e8-rings { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.e8-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.e8-ring svg { width: 128px; height: 128px; }
.e8-ring.sm svg { width: 84px; height: 84px; }
.e8-ring .e8-ring-label { font-weight: 600; font-size: 13px; color: var(--e8-heading); display: flex; align-items: center; gap: 4px; }
.e8-ring .e8-ring-sub { font-size: 12px; color: var(--e8-muted); }
.e8-ring-track { stroke: var(--e8-line); }
.e8-ring-num { font-family: var(--e8-head); font-weight: 800; fill: var(--e8-heading); }
.e8-ring-target { stroke: var(--e8-heading); }

/* ---------- tables ---------- */
.e8-table-wrap { overflow-x: auto; border: 1px solid var(--e8-line); border-radius: 12px; position: relative; }
.e8-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.e8-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--e8-muted); background: var(--e8-card-2); padding: 10px 12px; border-bottom: 1px solid var(--e8-line); white-space: nowrap; position: sticky; top: 0; }
.e8-table th button { background: none; border: 0; padding: 0; color: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.e8-table td { padding: 10px 12px; border-bottom: 1px solid var(--e8-line-2); vertical-align: middle; }
.e8-table tr:last-child td { border-bottom: 0; }
.e8-table tbody tr:hover td { background: rgba(0,113,253,.03); }
.e8-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.e8-table .url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--e8-muted); }
.e8-pos { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 2px 8px; border-radius: 8px; font-weight: 700; background: var(--e8-card-2); font-variant-numeric: tabular-nums; }
.e8-pos.top3 { background: rgba(14,159,110,.14); color: var(--e8-good); }
.e8-pos.top10 { background: rgba(0,113,253,.12); color: var(--e8-blue); }
.e8-chg { font-size: 12px; font-weight: 700; margin-left: 6px; }
.e8-chg.up { color: var(--e8-good); }
.e8-chg.down { color: var(--e8-bad); }
.e8-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--e8-card-2); color: var(--e8-muted); white-space: nowrap; }
.e8-pill.blue { background: rgba(0,113,253,.12); color: var(--e8-blue); }
.e8-pill.violet { background: rgba(132,45,253,.12); color: var(--e8-violet); }
.e8-pill.good { background: rgba(14,159,110,.12); color: var(--e8-good); }
.e8-pill.bad { background: rgba(224,54,79,.12); color: var(--e8-bad); }
.e8-pill.warn { background: rgba(194,124,14,.14); color: var(--e8-warn); }
.e8-pill.grad { background: var(--e8-grad); color: #fff; }
.e8-kd { display: inline-flex; align-items: center; gap: 8px; }
.e8-kd i { display: block; width: 46px; height: 6px; border-radius: 6px; background: var(--e8-line); overflow: hidden; }
.e8-kd i b { display: block; height: 100%; background: var(--e8-grad); }
.e8-locked-rows { position: relative; }
.e8-locked-rows td { filter: blur(5px); user-select: none; pointer-events: none; }
.e8-lock-cta { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--e8-card); border: 1px solid var(--e8-line); border-radius: 14px; box-shadow: var(--e8-shadow); padding: 14px 18px; text-align: center; width: min(420px, calc(100% - 24px)); z-index: 2; }
.e8-lock-cta strong { display: block; font-family: var(--e8-head); color: var(--e8-heading); margin-bottom: 4px; }
.e8-table-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; }
.e8-table-tools input[type=search] { max-width: 280px; }

/* ---------- lists ---------- */
.e8-list { list-style: none; margin: 0; padding: 0; }
.e8-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--e8-line-2); }
.e8-list li:last-child { border-bottom: 0; }
.e8-work { display: grid; gap: 10px; }
.e8-work-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--e8-line); border-radius: 12px; background: var(--e8-card); }
.e8-work-item .e8-num { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--e8-grad); font-size: 13px; }
.e8-work-item h3 { margin-bottom: 4px; }
.e8-work-item p { margin: 0; color: var(--e8-muted); font-size: 13px; }
.e8-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--e8-card-2); margin-bottom: 8px; }
.e8-alert.warn { background: rgba(194,124,14,.10); }
.e8-alert .e8-dot-i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--e8-blue); flex: none; }
.e8-alert.warn .e8-dot-i { background: var(--e8-warn); }
.e8-banner { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; color: #fff; background: linear-gradient(90deg, #012F58, #2856FC 60%, #842DFD); flex-wrap: wrap; }
.e8-banner p { margin: 0; flex: 1 1 260px; }
.e8-root .e8-banner .e8-btn { background: #fff; color: var(--e8-navy); border: 0; }
.e8-banner.warn { background: linear-gradient(90deg, #6B3A00, #C27C0E); }
.e8-bars .e8-bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.e8-bar { height: 8px; border-radius: 8px; background: var(--e8-line); overflow: hidden; }
.e8-bar > b { display: block; height: 100%; border-radius: 8px; background: var(--e8-grad); }
.e8-bar.warn > b { background: var(--e8-warn); }
.e8-bar.full > b { background: var(--e8-bad); }

/* ---------- scanner ---------- */
.e8-ent-cat { border: 1px solid var(--e8-line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.e8-ent-cat h3 { display: flex; justify-content: space-between; margin-bottom: 8px; }
.e8-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.e8-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--e8-line); font-size: 12.5px; background: var(--e8-card); cursor: pointer; }
.e8-chip input { margin: 0; accent-color: var(--e8-blue); }
.e8-chip.covered { border-color: rgba(14,159,110,.4); color: var(--e8-good); cursor: default; }
.e8-chip.weak { border-color: rgba(194,124,14,.5); }
.e8-chip.missing { border-style: dashed; border-color: rgba(224,54,79,.5); }
.e8-q-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.e8-q-col h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.e8-q { padding: 9px 10px; border-radius: 10px; background: var(--e8-card-2); margin-bottom: 6px; font-size: 13px; display: flex; gap: 8px; align-items: flex-start; }
.e8-q input { margin-top: 3px; accent-color: var(--e8-blue); }
.e8-link-sug { border: 1px solid var(--e8-line); border-radius: 12px; padding: 12px; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.e8-link-sug blockquote { margin: 6px 0 0; padding: 8px 10px; border-left: 3px solid var(--e8-violet); background: var(--e8-card-2); border-radius: 0 8px 8px 0; font-size: 13px; }
.e8-link-sug mark { background: linear-gradient(90deg, rgba(0,198,254,.25), rgba(132,45,253,.25)); color: inherit; padding: 0 2px; border-radius: 3px; font-weight: 600; }
.e8-check-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--e8-line-2); }
.e8-check-row:last-child { border-bottom: 0; }

/* ---------- site map ---------- */
.e8-map { display: grid; gap: 14px; }
.e8-hub { border: 1px solid var(--e8-line); border-radius: 14px; padding: 14px; background: var(--e8-card); }
.e8-node { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--e8-card-2); }
.e8-node.hub { background: linear-gradient(90deg, rgba(0,198,254,.10), rgba(132,45,253,.10)); border: 1px solid rgba(40,86,252,.25); }
.e8-node.gap { background: transparent; border: 1px dashed rgba(224,54,79,.5); }
.e8-node .e8-node-title { font-weight: 700; color: var(--e8-heading); }
.e8-node .e8-node-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--e8-muted); }
.e8-spokes { margin: 8px 0 0 18px; padding-left: 16px; border-left: 2px solid var(--e8-line); display: grid; gap: 6px; }

/* ---------- locks, empty, skeleton ---------- */
.e8-lockwrap { position: relative; }
.e8-lockwrap > .e8-lock-body { filter: blur(6px) saturate(.6); pointer-events: none; user-select: none; opacity: .7; }
.e8-lock-card { position: absolute; top: 60px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 24px)); background: var(--e8-card); border: 1px solid var(--e8-line); border-radius: 16px; box-shadow: 0 20px 60px rgba(3,17,42,.18); padding: 22px; text-align: center; z-index: 5; }
.e8-lock-card .e8-lock-ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; background: var(--e8-grad); color: #fff; }
.e8-lock-card p { color: var(--e8-muted); }
.e8-empty { text-align: center; padding: 40px 20px; color: var(--e8-muted); }
.e8-empty h3 { margin-bottom: 6px; }
.e8-skel { border-radius: 10px; background: linear-gradient(90deg, var(--e8-card-2) 25%, var(--e8-line-2) 37%, var(--e8-card-2) 63%); background-size: 400% 100%; animation: e8-shimmer 1.3s ease infinite; }
@keyframes e8-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .e8-skel { animation: none; } .e8-root * { transition: none !important; } }

/* ---------- tooltips, drawer, modal, palette, toasts, tour ---------- */
.e8-tip { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--e8-line); background: var(--e8-card); color: var(--e8-muted); font: 700 11px/1 var(--e8-font); display: inline-grid; place-items: center; cursor: help; padding: 0; margin: 0 0 0 4px; vertical-align: middle; flex: none; text-transform: none; letter-spacing: normal; }
.e8-tip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); border-radius: 50%; }
.e8-tip:hover, .e8-tip[aria-expanded=true] { color: #fff; background: var(--e8-blue); border-color: var(--e8-blue); }
.e8-tip:focus-visible { outline: 2px solid var(--e8-focus); outline-offset: 2px; }
.e8-tipglue { white-space: nowrap; }
/* The tooltip layer lives on <body>, outside every card, table and sticky bar. */
.e8-tiplayer { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 2147483000; }
.e8-pop { position: fixed; z-index: 2147483000; box-sizing: border-box; width: max-content; max-width: min(320px, calc(100vw - 24px)); background: var(--e8-pop-bg); color: var(--e8-pop-text); border: 1px solid var(--e8-pop-line); border-radius: 8px; padding: 10px 12px;
  font: 400 13.5px/1.5 var(--e8-font); text-transform: none; letter-spacing: normal; text-align: left; white-space: normal; overflow-wrap: anywhere; word-break: normal; box-shadow: 0 12px 32px rgba(3,17,42,.28); -webkit-font-smoothing: antialiased; }
.e8-pop-text { margin: 0; }
.e8-pop a { color: var(--e8-pop-link); font-weight: 600; display: inline-block; margin-top: 6px; text-decoration: underline; text-underline-offset: 2px; }
.e8-pop-arrow { position: absolute; width: 10px; height: 10px; background: var(--e8-pop-bg); border: 1px solid var(--e8-pop-line); transform: translateX(-50%) rotate(45deg); pointer-events: none; }
.e8-pop[data-side=top] .e8-pop-arrow { bottom: -6px; border-top: 0; border-left: 0; }
.e8-pop[data-side=bottom] .e8-pop-arrow { top: -6px; border-bottom: 0; border-right: 0; }
.e8-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(460px, 100vw); background: var(--e8-card); border-left: 1px solid var(--e8-line); box-shadow: -20px 0 60px rgba(3,17,42,.18); z-index: 90; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.e8-drawer.is-open { transform: none; }
.e8-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--e8-line); }
.e8-drawer-body { padding: 18px; overflow-y: auto; }
.e8-drawer-body iframe { max-width: 100%; }
.e8-video-soon { display: grid; place-items: center; height: 160px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,198,254,.15), rgba(132,45,253,.15)); color: var(--e8-heading); font-weight: 700; margin-bottom: 14px; }
.e8-backdrop { position: fixed; inset: 0; background: rgba(3,17,42,.45); z-index: 80; display: none; }
.e8-backdrop.is-open { display: block; }
.e8-modal { position: fixed; z-index: 95; top: 8vh; left: 50%; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); max-height: 84vh; overflow-y: auto; background: var(--e8-card); border: 1px solid var(--e8-line); border-radius: 18px; box-shadow: 0 30px 80px rgba(3,17,42,.3); display: none; }
.e8-modal.is-open { display: block; }
.e8-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--e8-line); }
.e8-modal-body { padding: 18px; }
.e8-pal input { border: 0 !important; border-bottom: 1px solid var(--e8-line) !important; border-radius: 0 !important; font-size: 16px; padding: 16px 18px !important; box-shadow: none !important; }
.e8-pal ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.e8-pal li { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.e8-pal li[aria-selected=true] { background: linear-gradient(90deg, rgba(0,113,253,.12), rgba(132,45,253,.08)); }
.e8-pal li small { color: var(--e8-muted); }
.e8-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.e8-toast { background: #03112A; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 13.5px; border-left: 4px solid var(--e8-cyan); }
.e8-toast.bad { border-left-color: var(--e8-bad); }
.e8-toast.good { border-left-color: #2BD69B; }
.e8-tour-spot { position: fixed; z-index: 110; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(3,17,42,.55), 0 0 0 3px #00C6FE; pointer-events: none; transition: all .25s ease; }
.e8-tour-pop { position: fixed; z-index: 111; width: min(340px, calc(100vw - 24px)); background: var(--e8-card); border-radius: 14px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); border: 1px solid var(--e8-line); }
.e8-tour-pop .e8-tour-step { font-size: 12px; color: var(--e8-muted); }

/* ---------- settings ---------- */
.e8-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--e8-line); margin-bottom: 18px; overflow-x: auto; }
.e8-tabs a { padding: 10px 14px; color: var(--e8-muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.e8-tabs a.is-active { color: var(--e8-heading); border-image: var(--e8-grad) 1; border-bottom: 2px solid; }
.e8-key-card { border: 1px solid var(--e8-line); border-radius: 14px; padding: 16px; background: var(--e8-card); }
.e8-key-card h3 { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.e8-status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--e8-muted); }
.e8-status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--e8-line); }
.e8-status-dot.ok::before { background: var(--e8-good); }
.e8-status-dot.bad::before { background: var(--e8-bad); }
.e8-status-dot.saved::before { background: var(--e8-blue); }
.e8-steps { counter-reset: step; display: grid; gap: 12px; }
.e8-step { min-width: 0; border: 1px solid var(--e8-line); border-radius: 12px; padding: 14px 14px 14px 52px; position: relative; }
.e8-step::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 8px; background: var(--e8-grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.e8-token { display: flex; gap: 8px; align-items: center; }
.e8-token { flex-wrap: wrap; }
.e8-token code { flex: 1 1 200px; min-width: 0; padding: 9px 10px; overflow-x: auto; white-space: nowrap; }
.e8-plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.e8-plan-card { border: 1px solid var(--e8-line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--e8-card); }
.e8-plan-card.is-current { border: 2px solid var(--e8-blue); }
.e8-plan-card .e8-price { font-family: var(--e8-head); font-size: 26px; font-weight: 800; color: var(--e8-heading); }
.e8-plan-card ul { margin: 0; padding-left: 18px; color: var(--e8-muted); font-size: 13px; }
.e8-brand-preview { border-radius: 14px; overflow: hidden; border: 1px solid var(--e8-line); }
.e8-brand-preview .bp-head { padding: 14px 16px; display: flex; align-items: center; gap: 10px; color: #fff; }
.e8-brand-preview .bp-body { padding: 16px; background: var(--e8-card); }
.e8-swatch { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--e8-line); padding: 0; }

/* ---------- report preview ---------- */
.e8-report { background: #fff; color: #14213A; border-radius: 16px; overflow: hidden; border: 1px solid var(--e8-line); }
.e8-report .rp-bar { height: 6px; }
.e8-report .rp-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px 8px; gap: 12px; flex-wrap: wrap; }
.e8-report .rp-head img { max-height: 44px; max-width: 220px; }
.e8-report .rp-body { padding: 8px 26px 26px; }
.e8-report h2, .e8-report h3 { color: #03112A; }
.e8-report .rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.e8-report .rp-kpi { border: 1px solid #E3E9F3; border-radius: 12px; padding: 12px; }
.e8-report .rp-kpi b { display: block; font-size: 22px; font-family: var(--e8-head); color: #03112A; }
.e8-report .rp-foot { padding: 14px 26px; background: #F3F6FB; font-size: 12px; color: #5B6A82; }
.e8-report table { width: 100%; border-collapse: collapse; font-size: 13px; }
.e8-report td, .e8-report th { padding: 7px 8px; border-bottom: 1px solid #EEF2F8; text-align: left; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .e8-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .e8-g-2-1 { grid-template-columns: minmax(0, 1fr); } .e8-q-cols { grid-template-columns: minmax(0, 1fr); } .e8-report .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .e8-shell { grid-template-columns: minmax(0, 1fr); }
  .e8-side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .25s ease; }
  .e8-shell.nav-open .e8-side { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.35); }
  .e8-top .e8-burger { display: inline-grid; }
  .e8-cmd-btn { min-width: 0; }
  .e8-cmd-btn .e8-cmd-label, .e8-cmd-btn kbd { display: none; }
  .e8-g2, .e8-g3 { grid-template-columns: minmax(0, 1fr); }
  .e8-site-pick select { min-width: 0; max-width: 46vw; }
}
@media (max-width: 600px) {
  .e8-content { padding: 16px; }
  .e8-top { padding: 10px 16px; gap: 6px; }
  .e8-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .e8-kpi .e8-kpi-val { font-size: 22px; }
  .e8-spark { width: 64px; }
  .e8-root h1 { font-size: 20px; }
  .e8-work-item { grid-template-columns: auto 1fr; }
  .e8-work-item > :last-child { grid-column: 2; }
  .e8-ring svg { width: 104px; height: 104px; }
  .e8-hide-sm { display: none !important; }
}
@media print {
  .e8-side, .e8-top, .e8-no-print, .e8-toasts { display: none !important; }
  .e8-shell { display: block; }
  .e8-content { padding: 0; }
  .e8-report { border: 0; }
}

/* ---------- 0.2.0: daily stars, getting started, client portal, upsell ---------- */
.e8-root .e8-star { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--e8-line); padding: 2px 4px; border-radius: 6px; }
.e8-root .e8-star:hover { color: #F2A93B; }
.e8-root .e8-star.is-on { color: #F2A93B; }
.e8-onboard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.e8-onboard-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--e8-line); border-radius: 12px; }
.e8-onboard-list li.is-done { opacity: .7; }
.e8-onboard-list li .e8-help-text { margin-top: 2px; }
.e8-onboard-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--e8-line); display: grid; place-items: center; color: #fff; }
.e8-onboard-list li.is-done .e8-onboard-check { background: var(--e8-good); border-color: var(--e8-good); }
.e8-onboard-check svg { width: 14px; height: 14px; }
.e8-upsell { display: flex; gap: 16px; align-items: flex-start; }
.e8-upsell .e8-lock-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--e8-grad); color: #fff; flex: none; }
.e8-upsell .e8-lock-ico svg { width: 20px; height: 20px; }
.e8-upsell p { color: var(--e8-muted); }
.e8-banner-client { background: linear-gradient(90deg, #0B3B33, #0E7C66); }
.e8-portal-frame { border: 1px dashed var(--e8-line); border-radius: 18px; padding: 14px; background: var(--e8-card-2); }
.e8-portal { --pb: #0071FD; --pa: #842DFD; }
.e8-portal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; margin-bottom: 16px; border-radius: 14px; background: var(--e8-card); border: 1px solid var(--e8-line); border-top: 4px solid var(--pb); flex-wrap: wrap; }
.e8-portal-logo { max-height: 46px; max-width: 220px; }
.e8-portal-name { font: 800 20px var(--e8-head); color: var(--e8-heading); }
.e8-portal-meta { text-align: right; display: flex; flex-direction: column; }
.e8-portal-meta span { color: var(--e8-muted); font-size: 13px; }
.e8-portal .e8-kpi::after { background: linear-gradient(90deg, var(--pb), var(--pa)); }
.e8-portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.e8-portal-list li { display: flex; gap: 10px; align-items: flex-start; }
.e8-portal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pb); margin-top: 6px; flex: none; }
.e8-portal-plan { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.e8-portal-plan li::marker { color: var(--pb); font-weight: 800; }
.e8-portal-foot { text-align: center; color: var(--e8-muted); font-size: 12.5px; margin: 14px 0 0; }
.e8-shell.is-client-view .e8-logo-client img { max-width: 190px; max-height: 60px; }
.e8-client-name { font-family: var(--e8-head); color: var(--e8-heading); }
.e8-plan-card.is-featured { box-shadow: 0 10px 30px rgba(0,113,253,.15); }
@media (max-width: 600px) { .e8-onboard-list li { grid-template-columns: auto 1fr; } .e8-onboard-list li > :nth-child(3) { grid-column: 2; justify-self: start; } .e8-upsell { flex-direction: column; } }

/* 0.2.1 site verification */
.e8-verify { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.e8-banner.e8-banner-warn { background: rgba(194,124,14,.10); color: var(--e8-text, #1B2638); border: 1px solid rgba(194,124,14,.35); }
.e8-banner.e8-banner-warn p { margin: 0; flex: 1 1 320px; }
/* 0.2.2: Content Scanner only, locked module cards on Home */
.e8-locked-mod h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0 0 4px; }
.e8-locked-mod h3 svg { width: 16px; height: 16px; }
.e8-locked-mod p { margin: 0 0 10px; color: var(--e8-muted); font-size: 13.5px; }
.e8-locked-mod .e8-lock-ico { width: 38px; height: 38px; border-radius: 12px; }
/* 0.3.0: keyword briefs, options screen, Content Writer, site profile */
.e8-opts { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; padding-right: 4px; }
.e8-opt { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.e8-opt.inline { display: inline-flex; margin-right: 14px; }
.e8-opt input { margin-top: 3px; flex: none; }
.e8-opt small, .e8-chip small { color: var(--e8-muted); font-size: 12px; }
.e8-fs { border: 0; padding: 0; margin: 0 0 12px; }
.e8-fs legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--e8-heading); }
.e8-sticky-actions { position: sticky; bottom: 12px; z-index: 5; box-shadow: var(--e8-shadow); }
.e8-progress { display: flex; gap: 16px; align-items: center; }
.e8-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--e8-line); border-top-color: var(--e8-blue); animation: e8spin 0.9s linear infinite; flex: none; }
@keyframes e8spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .e8-spin { animation: none; } }
.e8-wsteps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.e8-wsteps li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--e8-muted); }
.e8-wsteps li > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--e8-line); font-size: 12px; }
.e8-wsteps li svg { width: 22px; height: 22px; color: var(--e8-good); }
.e8-wsteps li.is-done { color: var(--e8-text); }
.e8-wsteps li.is-now { color: var(--e8-heading); font-weight: 600; }
.e8-wsteps li.is-now > span { background: var(--e8-grad); color: #fff; border-color: transparent; }
.e8-wsteps li small { flex-basis: 100%; margin-left: 34px; font-weight: 400; color: var(--e8-muted); }
mark.e8-ph { background: rgba(194, 124, 14, .16); color: inherit; border-radius: 4px; padding: 0 3px; }
.e8-copy { max-height: 720px; overflow: auto; border: 1px solid var(--e8-line); border-radius: 12px; padding: 16px 20px; background: var(--e8-card-2); }
.e8-copy h1 { font-size: 24px; margin: 0 0 12px; }
.e8-copy h2 { font-size: 19px; margin: 18px 0 8px; }
.e8-copy h3 { font-size: 16px; margin: 14px 0 6px; }
.e8-copy p, .e8-copy li { line-height: 1.6; }
.e8-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.e8-meta dt { color: var(--e8-muted); }
.e8-meta dd { margin: 0; overflow-wrap: anywhere; }
.e8-diff p { margin: 0; padding: 6px 10px; border-radius: 6px; display: flex; gap: 8px; font-size: 14px; }
.e8-diff p span { width: 12px; flex: none; font-weight: 700; }
.e8-diff p.add { background: rgba(14, 159, 110, .10); }
.e8-diff p.del { background: rgba(224, 54, 79, .10); text-decoration: line-through; color: var(--e8-muted); }
.e8-diff p.same { color: var(--e8-muted); }
.e8-check-row ins { text-decoration: none; background: rgba(14, 159, 110, .12); }
.e8-check-row del { color: var(--e8-muted); }
.e8-sug-grp h3 { font-size: 14px; margin: 0 0 8px; }
.e8-sug-grp li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.e8-why { border-left: 4px solid transparent; border-image: var(--e8-grad) 1; }
.e8-why h2 { margin-bottom: 6px; }
.e8-wpc form input { min-width: 0; }
@media (max-width: 700px) { .e8-meta { grid-template-columns: 1fr; } .e8-sug-grp li { flex-direction: column; align-items: flex-start; } }

/* =============================== 0.4.0 module A: Users and roles (mod-users.js) =============================== */
.e8-u-explain .e8-u-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.e8-u-explain .e8-u-roles li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--e8-muted); }
.e8-u-explain .e8-u-roles li .e8-pill { flex: none; min-width: 64px; justify-content: center; margin-top: 1px; }
.e8-u-h3 { margin: 22px 0 10px; font-size: 15px; }
.e8-u-sites { font-size: 13px; color: var(--e8-muted); }
.e8-u-acts { justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.e8-pill.e8-u-sw { margin: 2px 0; }
.e8-u-fs { border: 1px solid var(--e8-line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.e8-u-fs legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.e8-u-opt { margin-bottom: 6px; font-size: 14px; align-items: flex-start; }
.e8-u-opt input { margin-top: 3px; flex: none; }
.e8-u-sitelist { display: grid; gap: 4px; max-height: 180px; overflow: auto; padding-top: 4px; }
.e8-u-site { padding: 12px 0; border-top: 1px solid var(--e8-line); }
.e8-u-site:first-of-type { border-top: 0; }
.e8-u-site h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 15px; flex-wrap: wrap; }
@media (max-width: 600px) { .e8-u-acts { justify-content: flex-start; } .e8-u-site h3 { flex-direction: column; align-items: flex-start; } }

/* ===== Support module (mod-support.js, 0.4.0) ===== */
.e8-sup-pri { border: 0; padding: 0; margin: 0 0 12px; }
.e8-sup-pri legend { margin-bottom: 6px; }
.e8-sup-radio { display: block; font-size: 14px; margin: 4px 0; }
.e8-sup-radio input { margin-right: 6px; }
.e8-sup-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.e8-sup-list li a { color: inherit; text-decoration: none; min-width: 0; }
.e8-sup-list li a strong { display: block; }
.e8-sup-thread { margin-bottom: 16px; }
.e8-sup-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; margin: 0 0 10px; background: var(--e8-card-2); }
.e8-sup-msg.is-staff { margin-left: auto; background: rgba(0,113,253,.10); border: 1px solid rgba(0,113,253,.25); }
.e8-sup-meta { font-size: 12px; color: var(--e8-muted); margin-bottom: 4px; }
.e8-sup-body { font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.e8-sup-banner { background: var(--e8-grad); }
.e8-sup-smb-head { grid-column: 1 / -1; margin-top: 8px; }
.e8-sup-smb-head h3 { margin: 0 0 2px; }
.e8-sup-smb-card { border-color: var(--e8-blue); }
@media (max-width: 700px) { .e8-sup-msg { max-width: 100%; } .e8-sup-list li { flex-direction: column; align-items: flex-start; } }

/* =============================== 0.4.0 module C: Autopilot, publish modes, API keys, webhooks (mod-autopilot.js) =============================== */
.e8-ap-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e8-ap-req { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.e8-ap-req li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.e8-ap-req li.is-ok .e8-ic { color: var(--e8-good, #15803d); }
.e8-ap-req li.is-missing { color: var(--e8-muted); }
.e8-ap-req li.is-missing .e8-ic { color: var(--e8-warn, #b45309); }
.e8-ap-req li a { font-weight: 600; }
.e8-ap-modes, .e8-ap-tiers { display: grid; gap: 8px; }
.e8-ap-mode, .e8-ap-tier { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--e8-line); border-radius: 10px; cursor: pointer; }
.e8-ap-mode input, .e8-ap-tier input { margin-top: 3px; }
.e8-ap-mode div, .e8-ap-tier div { display: grid; gap: 2px; }
.e8-ap-mode.is-on, .e8-ap-tier.is-on { border-color: var(--e8-blue); box-shadow: 0 0 0 2px rgba(0, 113, 253, 0.12); }
.e8-ap-tier.is-off { opacity: 0.55; cursor: not-allowed; }
.e8-ap-cal li, .e8-ap-log li { display: flex; gap: 10px; align-items: baseline; }
.e8-ap-log { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; font-size: 14px; }
.e8-ap-log li { display: list-item; }
.e8-ap-events { border: 1px solid var(--e8-line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; display: grid; gap: 6px; }
.e8-ap-events legend { font-weight: 600; padding: 0 4px; }
.e8-ap-events label { font-size: 14px; }
@media (max-width: 700px) { .e8-ap-kpis { grid-template-columns: 1fr; } }

/* =============================== 0.4.0 module: Content Ideas, Content Queue, content plan (mod-content.js) =============================== */
.e8-ideas { display: flex; flex-direction: column; gap: 10px; }
.e8-idea { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--e8-line); border-radius: 12px; background: var(--e8-card); }
.e8-ci-main { min-width: 0; flex: 1; }
.e8-ci-kw { font-size: 15px; overflow-wrap: anywhere; }
.e8-ci-type { width: auto; padding: 2px 6px; font-size: 12.5px; }
.e8-ci-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.e8-ci-comp { margin-top: 6px; font-size: 13px; }
.e8-ci-comp summary { cursor: pointer; color: var(--e8-blue); font-weight: 600; }
.e8-ci-comp ul { margin: 6px 0 0; }
.e8-ci-spec { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--e8-line); }
.e8-ci-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; flex: none; min-width: 170px; }
.e8-ci-actions .e8-btn { justify-content: center; }
.e8-q-bulk { margin-bottom: 12px; border-left: 4px solid var(--e8-blue); }
.e8-q-bulk[hidden] { display: none; }
@media (max-width: 760px) { .e8-idea { flex-direction: column; } .e8-ci-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; } }
