/* ==========================================================================
   css/e1_theme.css — TEMP "E1 Refined" redesign (2026-12-02, user).
   Loaded ONLY by the hidden /_<page>/ wrappers (includes/e1_theme.php), after
   portal.css and every page-local <style>. Everything is scoped to html.e1, so
   it can never touch a live page. Source of the look:
   logik-portal-redesign-handoff/logik-theme.css.
   ⛔ No opacity in any transition/animation/@keyframes (site rule). The only
   animations are the site's existing two (title cursor + topbar dot); the
   cursor keeps its colour step-blink, recoloured amber; the dot is hidden.
   ========================================================================== */

html.e1 {
  --amber: #e8a020; --amber-dim: #a06810; --amber-dark: #2a1a04; --amber-deep: #160d02;
  --cyan: #20c8d8; --cyan-dim: #10788a; --bg: #161616; --bg-deep: #111111;
  --border: #383838; --border-mid: #464646; --text-muted: #8c8c8c; --text-dim: #505050;
  --text: #c0b898; --text-strong: #e2dac0; --text-bright: #f0e6c8; --text-soft: #a8a08a;
  --surface: #1a1a1a; --surface-list: #131313; --amber-tint: #1a1408;
  --amber-hover: #f2b23e; --cyan-hover: #7fe6ef; --row-line: #262626;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --list-col-w: 290px;
  scroll-behavior: auto;
}
html.e1, html.e1 body { background: var(--bg); }
html.e1 body { color: var(--text); font-family: var(--font-mono); font-size: 15px; line-height: 1.75; overflow-x: hidden; }
html.e1 body::before { display: none; }                       /* no scanline overlay */
html.e1 a { color: var(--cyan); }
html.e1 a:hover { color: var(--cyan-hover); }
html.e1 a:focus-visible, html.e1 button:focus-visible, html.e1 input:focus-visible,
html.e1 textarea:focus-visible, html.e1 select:focus-visible, html.e1 summary:focus-visible,
html.e1 [tabindex]:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- Scrollbar "Amber Rail" ---------- */
html.e1 ::-webkit-scrollbar { width: 10px; height: 10px; }
html.e1 ::-webkit-scrollbar-track { background: var(--bg-deep); border-left: 1px solid var(--border); }
html.e1 ::-webkit-scrollbar-track:horizontal { border-left: 0; border-top: 1px solid var(--border); }
html.e1 ::-webkit-scrollbar-thumb { background: var(--amber-dim); }
html.e1 ::-webkit-scrollbar-thumb:hover { background: var(--amber); }
html.e1 ::-webkit-scrollbar-corner { background: var(--bg-deep); }
@supports not selector(::-webkit-scrollbar) { html.e1, html.e1 * { scrollbar-color: var(--amber-dim) var(--bg-deep); } }

/* ---------- Top status bar ---------- */
html.e1 .topbar { position: relative; top: auto; padding: 14px 28px; background: var(--bg-deep); border-bottom: 1px solid var(--border); font-size: 12px; letter-spacing: .12em; gap: 12px; flex-wrap: wrap; }
html.e1 .topbar-left { opacity: 1; color: var(--text); letter-spacing: .12em; font-size: 12px; }
html.e1 .topbar-left .e1-brand { color: var(--amber); font-weight: 600; }
html.e1 .topbar-left .e1-ver { color: var(--text-muted); font-weight: 400; }   /* site version (includes/site_version.php) */
@media (max-width: 400px) { html.e1 .topbar-left, html.e1 .topbar-left span { letter-spacing: .02em !important; } }   /* keeps 'LOGIK-PORTAL.COM v2.0.0 // PIXEL EXPRESSIONS' on one line down to 375px */
html.e1 .topbar-left .e1-d { color: var(--text-dim); }
html.e1 .topbar-left .e1-p { color: var(--text); font-weight: 600; }
html.e1 .topbar-right { opacity: 1; color: var(--text-muted); gap: 20px; font-size: 12px; letter-spacing: .12em; }
html.e1 .topbar-right #clock { color: var(--text); font-variant-numeric: tabular-nums; }
html.e1 .topbar-right .e1-stat b { color: var(--cyan); font-weight: 400; }
html.e1 .topbar-right .blink-dot { display: none; }

/* ---------- Shell: document scroll (not the old fixed-height app frame) ---------- */
html.e1 .shell { height: auto; min-height: calc(100vh - 49px); grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: 1fr auto; border: 0; }
html.e1 .sidebar { grid-column: 1; grid-row: 1; position: relative; top: auto; height: auto; overflow: visible;
  background: var(--bg-deep); border-right: 1px solid var(--border); padding: 28px 0; display: flex; flex-direction: column; gap: 0; }
html.e1 .nav-item { white-space: nowrap; gap: 12px; min-height: 44px; padding: 0 28px 0 31px; font-size: 13px; letter-spacing: .12em;
  color: var(--text-soft); border-left: 0; background: none; transition: color .15s, background-color .15s; }
html.e1 .nav-item:hover { color: var(--amber); background: #1c1c1c; }
html.e1 .nav-item.active { color: var(--amber); background: var(--amber-tint); border-left: 3px solid var(--amber); padding-left: 28px; font-weight: 600; }
html.e1 .nav-item .mk { color: var(--text-dim); font-size: 11px; }
html.e1 .nav-item.active .mk { color: var(--amber); }
html.e1 .sidebar-foot { margin-top: auto; height: auto; border-top: 0; padding: 28px 28px 0; text-align: left; align-items: flex-start;
  font-size: 11px; letter-spacing: .1em; color: var(--text-muted); line-height: 1.6; gap: 2px; overflow: visible; }
html.e1 .sidebar-foot .end-line { color: var(--text-muted); opacity: 1; letter-spacing: .1em; }
html.e1 .main { grid-column: 2; grid-row: 1; overflow: visible; padding: 56px 56px 72px; min-width: 0; display: block; }
html.e1 .page.active { display: flex; flex-direction: column; gap: 44px; }

/* ---------- Footer ---------- */
html.e1 .footer { grid-column: 1 / -1; grid-row: 2; padding: 16px 28px; background: var(--bg-deep); border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); gap: 12px 32px; flex-wrap: wrap; letter-spacing: 0; }
html.e1 .footer-mail-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--amber); background: var(--amber-tint); border: 1px solid var(--amber-dim); border-radius: 0; }
html.e1 .footer-mail-btn:hover, html.e1 .footer-mail-btn:focus-visible { color: #ffd27a; background: var(--amber-tint); border-color: var(--amber-dim); }
html.e1 .footer-disclaimer { color: var(--text-muted); font-size: 12px; line-height: 1.6; letter-spacing: .02em; }
html.e1 .footer-disclaimer-btn { border: 0; color: var(--cyan); font-size: 12px; letter-spacing: .14em; padding: 10px 0; min-height: 40px; }
html.e1 .footer-disclaimer-btn:hover { color: var(--cyan-hover); border: 0; }

/* ---------- Hero ---------- */
html.e1 .hero { display: flex; flex-direction: column; gap: 0; padding: 0 !important; border: 0; }
html.e1 .hero > div { display: flex; flex-direction: column; gap: 20px; }
html.e1 .section-prompt { opacity: 1; color: var(--cyan); font-size: 14px; letter-spacing: 0; margin: 0 0 4px; }
html.e1 .page-title, html.e1 .page-title.single { font-family: var(--font-sans); font-size: 96px; line-height: .88; font-weight: 700;
  letter-spacing: -.04em; color: var(--amber); margin: 0; }
/* title cursor: the "_" glyph is kept (for layout) but drawn by ::after at HALF the glyph's thickness (user 2026-12-02).
   IBM Plex Sans Bold "_" spans y -0.190..-0.067em; the inline box bottom is the 0.275em descent, so bottom .085em = glyph bottom. */
html.e1 .page-title .cursor { position: relative; color: transparent; font-weight: 700; animation: none; }
html.e1 .page-title .cursor::after { content: ''; position: absolute; left: .03em; width: .496em; bottom: .085em; height: .0615em;
  background-color: var(--amber); animation: e1-cursor 1.2s step-end infinite; }
@keyframes e1-cursor { 0%, 100% { background-color: var(--amber); } 50% { background-color: transparent; } }   /* colour step, never opacity */
html.e1 .page-version { font-size: 14px; letter-spacing: .14em; color: var(--cyan); margin: 0; }
html.e1 .page-version span { opacity: 1; color: var(--cyan); }
html.e1 .page-desc { font-family: var(--font-sans); font-size: 21px; line-height: 1.45; color: var(--text-strong); max-width: 760px !important; margin: 0; }
html.e1 .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
html.e1 .tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid var(--border-mid); border-radius: 0;
  color: var(--text); font-size: 13px; letter-spacing: 0; background: transparent; }
html.e1 .tag.cur { border-color: var(--cyan); color: var(--cyan); }
html.e1 .tag.hi { border-color: var(--amber-dim); color: var(--amber); background: transparent; }
html.e1 .hero div[style*="margin-top:18px"] { margin-top: 4px !important; gap: 12px !important; }

/* ---------- Buttons ---------- */
html.e1 .btn-primary, html.e1 .btn-secondary, html.e1 .submit-btn, html.e1 .btn-submit, html.e1 .e1-bp, html.e1 .e1-ba, html.e1 .e1-bg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 0;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; cursor: pointer; text-decoration: none; box-sizing: border-box;
  transition: color .15s, background-color .15s, border-color .15s; }
/* .btn-primary = amber outline (.ba); .btn-secondary = ghost (.bg); submit = solid (.bp) */
html.e1 .btn-primary, html.e1 .e1-ba { color: var(--amber); background: var(--amber-tint); border: 1px solid var(--amber-dim); font-weight: 600; }
html.e1 .btn-primary:hover, html.e1 .e1-ba:hover { color: #ffd27a; background: var(--amber-tint); border-color: var(--amber-dim); }
html.e1 .btn-secondary, html.e1 .e1-bg { color: var(--text-strong); background: transparent; border: 1px solid var(--border-mid); font-weight: 500; }
html.e1 .btn-secondary:hover, html.e1 .btn-secondary:focus-visible, html.e1 .e1-bg:hover { color: #fff; border-color: var(--text-muted); background: transparent; }
html.e1 .submit-btn, html.e1 .btn-submit, html.e1 .e1-bp { color: var(--bg) !important; background: var(--amber) !important; border: 1px solid var(--amber) !important; }
html.e1 .submit-btn:hover:not(:disabled), html.e1 .btn-submit:hover, html.e1 .e1-bp:hover { background: var(--amber-hover) !important; border-color: var(--amber-hover) !important; color: var(--bg) !important; }
html.e1 .submit-btn:disabled { background: var(--amber-dim) !important; border-color: var(--amber-dim) !important; cursor: not-allowed; }
/* the Home hero: LOGIK PORTAL APP → is the primary (solid) action */
html.e1 #page-site-news .hero .btn-secondary { color: var(--bg); background: var(--amber); border-color: var(--amber); font-weight: 700; }
html.e1 #page-site-news .hero .btn-secondary:hover { background: var(--amber-hover); border-color: var(--amber-hover); color: var(--bg); }

/* ---------- Sections ---------- */
html.e1 .page-sections { display: flex; flex-direction: column; gap: 44px; overflow: visible !important; }
html.e1 .section { padding: 0; border: 0; }
html.e1 .section-label, html.e1 .script-section-label, html.e1 .lp-detail-section-label, html.e1 .mbx-section-label,
html.e1 .detail-sub-label, html.e1 .form-section-label {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px; padding: 0; border: 0; opacity: 1;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .16em; color: var(--cyan); }
html.e1 .script-section-label, html.e1 .lp-detail-section-label, html.e1 .mbx-section-label, html.e1 .detail-sub-label { margin: 32px 0 14px; }
html.e1 .section-label::after, html.e1 .script-section-label::after, html.e1 .lp-detail-section-label::after,
html.e1 .mbx-section-label::after, html.e1 .detail-sub-label::after, html.e1 .form-section-label::after {
  content: ""; flex: 1; height: 1px; background: var(--border); }
html.e1 .prose, html.e1 .script-prose, html.e1 .lp-detail-prose, html.e1 .mbx-prose, html.e1 .widget-detail-desc {
  font-size: 15px; line-height: 1.75; color: var(--text); max-width: 820px; }
html.e1 .ic { font-size: 14px !important; color: var(--text-bright); background: var(--bg-deep); border: 1px solid var(--border); border-radius: 0; }
html.e1 .code-block, html.e1 .tree-block, html.e1 .widget-detail-code {
  font-size: 14px !important; line-height: 1.9; padding: 14px 18px; background: #0c0c0c; border: 1px solid var(--border); border-radius: 0; color: var(--text-bright); }
html.e1 .kw, html.e1 .st, html.e1 .pt, html.e1 .tree-block .dir, html.e1 .tree-block .req { opacity: 1; }
html.e1 .info-table { font-size: 15px; }
html.e1 .info-table td:first-child { opacity: 1; color: var(--text-muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
html.e1 .info-table td:last-child { color: var(--text-bright); }

/* ---------- Tabs ---------- */
html.e1 .sub-tab-bar { position: static !important; display: flex; gap: 28px; padding: 0 !important; margin: 0 0 24px; background: none; border-bottom: 1px solid var(--border); }
html.e1 .sub-tab-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; margin: 0 0 -1px; border-bottom: 2px solid transparent;
  font-size: 13px; letter-spacing: .14em; color: var(--text-muted); }
html.e1 .sub-tab-btn:hover { color: var(--text-strong); }
html.e1 .sub-tab-btn.active { color: var(--amber); border-bottom-color: var(--amber); }
html.e1 .lp-subtype-bar { margin: 0 0 24px !important; }
html.e1 .page.active > .sub-tab-bar + .sub-tab-pane, html.e1 .sub-tab-pane { margin-top: 0; }
html.e1 .page.active > .sub-tab-bar { margin-bottom: -20px; }    /* tabs sit 24px above the panel inside the 44px page gap */

/* ---------- List + detail ---------- */
html.e1 #sub-scripts-list.active, html.e1 #mbx-pane-list.active, html.e1 #lp-pane-list.active { height: auto !important; overflow: visible !important; display: block !important; }
html.e1 #sub-scripts-submit, html.e1 #mbx-pane-submit, html.e1 #lp-pane-submit { min-height: 0; }
html.e1 .widgets-layout { display: grid; grid-template-columns: var(--list-col-w) minmax(0, 1fr) !important; align-items: start !important;
  border: 1px solid var(--border) !important; border-radius: 0 !important; min-height: 0 !important; background: var(--bg); position: relative; }
html.e1 .list-resizer { display: none; }
html.e1 #sub-scripts-list .widget-list, html.e1 #mbx-pane-list .widget-list, html.e1 #lp-pane-list .widget-list { max-height: 780px !important; align-self: start !important; }
html.e1 #sub-scripts-list .widgets-layout, html.e1 #mbx-pane-list .widgets-layout, html.e1 #lp-pane-list .widgets-layout { align-items: start !important; }
html.e1 .widget-list { position: sticky !important; top: 0; align-self: start !important; max-height: 780px !important; overflow-y: auto;
  background: var(--surface-list); border-right: 1px solid var(--border); }
html.e1 .widget-detail { overflow: visible !important; padding: 36px 40px 44px; min-width: 0; border-left: 1px solid var(--border); margin-left: -1px; }
html.e1 .widget-list-header { position: sticky; top: 0; background: var(--surface-list); padding: 12px 16px; color: var(--text-strong); font-size: 12px; letter-spacing: .16em; border-bottom: 1px solid #222; }
html.e1 .list-filter { padding: 12px; background: var(--surface-list); border-bottom: 1px solid var(--border); }
html.e1 .list-filter input { min-height: 44px; padding: 0 14px; background: var(--bg-deep); border: 1px solid var(--border-mid); color: var(--text-strong); font-size: 14px; }
html.e1 .list-filter input:focus { border-color: var(--amber); }
html.e1 .widget-item { overflow-wrap: anywhere; min-height: 38px; padding: 6px 16px; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--text); background: none;
  border: 0; border-left: 3px solid transparent; transition: color .12s, background-color .12s; }
html.e1 .widget-item:hover { background: #1c1c1c; color: var(--text-bright); }
html.e1 .widget-item.active { color: var(--amber); background: var(--amber-tint); border-left-color: var(--amber); }
html.e1 .widget-item-dot { display: none; }
/* groups (tools categories, pixel categories, retired scripts) */
html.e1 .lp-group, html.e1 .pxe-group { border-bottom: 1px solid #222; }
html.e1 .lp-group-header, html.e1 .pxe-group-header, html.e1 .lp-retired-group > summary {
  min-height: 42px; padding: 0 16px; gap: 10px; font-size: 13px; letter-spacing: .04em; color: var(--text-strong); background: none; }
html.e1 .lp-group-header:hover, html.e1 .pxe-group-header:hover { background: #1c1c1c; }
html.e1 .lp-chevron, html.e1 .pxe-chevron { font-size: 10px; color: var(--amber); }
html.e1 .lp-group-count, html.e1 .pxe-group-count { color: var(--text-muted); font-size: 12px; }
html.e1 .pxe-expand-btn { min-height: 36px; padding: 0 12px; font-size: 11px; }
html.e1 .widget-detail-empty { color: var(--text-muted); letter-spacing: .16em; font-size: 12px; padding: 60px 0; }

/* detail: name, date, metadata grid */
html.e1 .widget-detail-name, html.e1 .script-detail-name { font-family: var(--font-sans); font-size: 42px; line-height: 1.05; font-weight: 700;
  color: var(--amber); letter-spacing: -.02em; margin: 0 0 8px; overflow-wrap: anywhere; }
html.e1 .widget-detail-sub, html.e1 .script-detail-date { opacity: 1; color: var(--text-muted); font-size: 13px; letter-spacing: .08em; }
html.e1 .script-detail-meta { border: 0; padding: 0; margin: 0 0 28px; }
html.e1 .script-info-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; padding: 1px; background: transparent;
  border: 0; border-radius: 0; margin: 0 0 30px; overflow: visible; }
html.e1 .script-info-cell { background: var(--bg); padding: 14px 18px; border: 0; box-shadow: 0 0 0 1px var(--border); }
html.e1 .script-info-label { opacity: 1; color: var(--text-muted); font-size: 11px; letter-spacing: .16em; margin-bottom: 4px; }
html.e1 .script-info-value { font-family: var(--font-sans); font-size: 20px; font-weight: 600; color: var(--text-bright); line-height: 1.3; }
/* label/value tables -> the same grid of cells (pure CSS, markup untouched) */
html.e1 .lp-meta-table, html.e1 .mbx-meta-table { display: block; width: 100%; margin: 0 0 30px; border: 0; background: transparent; table-layout: auto; }
html.e1 .lp-meta-table tbody, html.e1 .mbx-meta-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; padding: 1px; }
html.e1 .lp-meta-table tr, html.e1 .mbx-meta-table tr { display: flex; flex-direction: column; gap: 4px; background: var(--bg); padding: 14px 18px; border: 0; box-shadow: 0 0 0 1px var(--border); }
html.e1 .lp-meta-table td, html.e1 .mbx-meta-table td { display: block; width: auto !important; padding: 0; border: 0; }
html.e1 .lp-meta-table td:first-child, html.e1 .mbx-meta-table td:first-child { opacity: 1; color: var(--text-muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
html.e1 .lp-meta-table td:last-child, html.e1 .mbx-meta-table td:last-child { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--text-bright); overflow-wrap: anywhere; }
html.e1 .lp-detail-ver { font-size: 13px; padding: 3px 9px; border-radius: 0; vertical-align: .4em; }
/* actions + install command */
html.e1 .lp-detail-actions, html.e1 .mbx-actions { gap: 12px; margin: 0 0 30px; }
html.e1 .lp-detail-actions .btn-primary, html.e1 .mbx-actions .btn-primary { color: var(--bg); background: var(--amber); border: 1px solid var(--amber); font-weight: 700; padding: 0 22px; font-size: 13px; letter-spacing: .12em; }
html.e1 .lp-detail-actions .btn-primary:hover, html.e1 .mbx-actions .btn-primary:hover { background: var(--amber-hover); color: var(--bg); }
html.e1 .lp-detail-actions .btn-secondary, html.e1 .mbx-actions .btn-secondary { color: var(--text-strong); border: 1px solid var(--border-mid); background: transparent; padding: 0 22px; font-size: 13px; letter-spacing: .12em; }
html.e1 .script-detail-gh { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 0; font-size: 13px; font-weight: 500; letter-spacing: .12em;
  color: var(--text-strong); background: transparent !important; border: 1px solid var(--border-mid); }
html.e1 .script-detail-gh:hover, html.e1 .script-detail-gh:focus-visible { color: #fff; border-color: var(--text-muted); }
html.e1 .curl-install { display: flex; align-items: stretch; border: 1px solid var(--amber-dim); background: #0c0c0c; border-radius: 0; margin: 0 0 12px; }
html.e1 .curl-install-label { color: var(--amber); font-size: 0; padding: 0 0 0 16px; border: 0; }
html.e1 .curl-install-label::before { content: "$"; font-size: 15px; }
html.e1 .curl-install-cmd { flex: 1; min-width: 0; overflow-x: auto; text-overflow: clip; white-space: nowrap; padding: 16px; font-size: 14px; color: var(--text-bright); letter-spacing: 0; }
html.e1 .curl-copy-btn { min-width: 88px; justify-content: center; border: 0; background: var(--amber); color: var(--bg); font-weight: 700; letter-spacing: .12em; font-size: 12px; }
html.e1 .curl-copy-btn:hover { background: var(--amber-hover); color: var(--bg); }
html.e1 .curl-copy-btn.copied { background: var(--cyan); color: var(--bg); }
/* updates / version rows */
html.e1 .script-update-row { grid-template-columns: 150px 1fr; padding: 14px 0; border-bottom: 1px solid var(--row-line); }
html.e1 .script-update-ver { opacity: 1; font-weight: 700; color: var(--amber); font-size: 14px; }
html.e1 .script-update-date { color: var(--text-muted); font-size: 12px; }
html.e1 .script-update-notes, html.e1 .changelog-notes { font-size: 14px; color: var(--text); line-height: 1.75; }
html.e1 .script-update-notes li::before, html.e1 .changelog-notes li::before { content: '›'; opacity: 1; color: var(--amber-dim); }
html.e1 .script-version-ver { opacity: 1; font-weight: 700; }
html.e1 .script-version-date, html.e1 .script-version-flame { opacity: 1; }
html.e1 .script-version-dl, html.e1 .script-version-info, html.e1 .lp-ver-btn { min-height: 40px; padding: 0 16px; border-radius: 0; font-size: 12px; letter-spacing: .12em; }
html.e1 .lp-ver-table td { font-size: 14px; padding: 10px; border-bottom: 1px solid var(--row-line); }
html.e1 .lp-md { font-size: 15px; line-height: 1.75; color: var(--text); }
html.e1 .lp-md h1, html.e1 .lp-md h2, html.e1 .lp-md h3 { font-family: var(--font-sans); font-weight: 700; color: var(--text-bright); border-bottom-color: var(--row-line); }
html.e1 .lp-md h1 { font-size: 24px; } html.e1 .lp-md h2 { font-size: 20px; } html.e1 .lp-md h3 { font-size: 17px; }
html.e1 .lp-md h5, html.e1 .lp-md h6 { opacity: 1; color: var(--text-muted); }
html.e1 .lp-md code { font-size: 13px; }

/* ---------- Submit tabs ---------- */
html.e1 .submit-wrap, html.e1 .lp-submit-wrap, html.e1 .mbx-submit-wrap { max-width: 920px; padding: 32px 36px !important; border: 1px solid var(--border); background: var(--surface); }
html.e1 .lp-submit-wrap .lp-intro, html.e1 .mbx-submit-wrap .lp-intro, html.e1 .submission-instructions { font-size: 14px; line-height: 1.75; color: var(--text); }
html.e1 .submit-form { gap: 20px; }
html.e1 .submit-form label, html.e1 .submit-field-lbl, html.e1 .submit-type-label, html.e1 .submit-val-label {
  opacity: 1; color: var(--text-muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
html.e1 .submit-form input[type=text], html.e1 .submit-form input[type=email], html.e1 .submit-form input[type=url], html.e1 .submit-form textarea,
html.e1 .submit-field-input, html.e1 .submit-val-name {
  min-height: 46px; padding: 0 14px; background: var(--bg-deep); border: 1px solid var(--border-mid); border-radius: 0; color: var(--text-strong); font-size: 14px; }
html.e1 .submit-form textarea { min-height: 130px; padding: 12px 14px; }
html.e1 .submit-form input:focus, html.e1 .submit-form textarea:focus, html.e1 .submit-field-input:focus { border-color: var(--amber); }
html.e1 .submit-field-row { flex-direction: column; align-items: stretch; gap: 6px; }
html.e1 .submit-field-lbl { width: auto; }
html.e1 .submit-form .file-drop, html.e1 .submit-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 150px;
  border: 1px dashed var(--border-mid) !important; background: var(--bg-deep); color: var(--text-muted); font-size: 13px; text-align: center; padding: 24px; border-radius: 0; }
html.e1 .submit-form .file-drop:hover, html.e1 .submit-form .file-drop.drag, html.e1 .submit-dropzone:hover, html.e1 .submit-dropzone.drag-over { border-color: var(--amber-dim) !important; color: var(--text); background: var(--bg-deep); }
html.e1 .submit-form .file-drop strong { color: var(--amber); }
html.e1 .submit-form .file-drop::before, html.e1 .submit-dropzone::before { content: "\21A5"; color: var(--amber); font-size: 22px; line-height: 1; }
html.e1 .submit-drop-icon { display: none; }
html.e1 .submit-browse-btn { min-height: 40px; padding: 0 18px; border-radius: 0; color: var(--text-strong); background: transparent; border: 1px solid var(--border-mid); letter-spacing: .14em; }
html.e1 .submit-form .drop-rules { font-size: 13px; color: var(--text); border-left: 2px solid var(--amber-dim); background: var(--amber-deep); padding: 10px 14px; }
html.e1 .submit-type-select { min-height: 46px; border-radius: 0; border-color: var(--border-mid); font-size: 14px; }
html.e1 .submit-type-option { font-size: 14px; }
html.e1 .submit-badge { border-radius: 0; }
html.e1 .upload-box { background: var(--surface); border: 1px solid var(--amber-dim); }
html.e1 .upload-box h3 { color: var(--cyan); font-size: 13px; letter-spacing: .16em; }
html.e1 .upload-box .progress { height: 6px; background: var(--row-line); border: 0; }
html.e1 .upload-box .bar { background: var(--amber); }

/* ---------- Modals (disclaimer, guidelines, overwrite, readme, …) ---------- */
html.e1 .modal-box, html.e1 .val-modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 0; }
html.e1 .modal-title { opacity: 1; color: var(--amber); font-size: 13px; letter-spacing: .16em; }
html.e1 .modal-body, html.e1 .val-modal-body { font-size: 14px; line-height: 1.75; color: var(--text); }
html.e1 .modal-section-title { opacity: 1; color: var(--cyan); font-size: 12px; letter-spacing: .16em; }
html.e1 .modal-callout { background: var(--amber-deep); border-left: 2px solid var(--amber-dim); border-radius: 0; }
html.e1 .modal-close, html.e1 .val-modal-close { min-width: 44px; min-height: 44px; font-size: 20px; }
html.e1 #guidelinesModal .modal-title, html.e1 #guidelinesModal .modal-body, html.e1 #guidelinesModal .modal-section-title { font-size: 14px; }

/* ---------- Home (/_home/) ---------- */
html.e1 #page-site-news .page-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 16px; }
html.e1 #page-site-news .page-sections > .section { grid-column: 1 / -1; }
html.e1 #page-site-news #sn-tools, html.e1 #page-site-news #sn-pixel_expressions, html.e1 #page-site-news #sn-matchboxes,
html.e1 #page-site-news #sn-batch_setups, html.e1 #page-site-news #sn-inference, html.e1 #page-site-news #sn-pyflame {
  grid-column: auto; border: 1px solid var(--border); background: var(--surface); padding: 22px 20px; min-width: 0; }
html.e1 #page-site-news #sn-tools { order: 1; } html.e1 #page-site-news #sn-pixel_expressions { order: 2; } html.e1 #page-site-news #sn-matchboxes { order: 3; }
html.e1 #page-site-news #sn-batch_setups { order: 4; } html.e1 #page-site-news #sn-inference { order: 5; } html.e1 #page-site-news #sn-pyflame { order: 6; }
html.e1 #page-site-news .page-sections > .section:not([id^="sn-"]), html.e1 #page-site-news #sn-scripts { order: 0; }
html.e1 #page-site-news .sn-sec-label { flex-wrap: nowrap; margin-bottom: 6px; }
html.e1 #page-site-news .sn-sec-label::after { order: 1; }
html.e1 #page-site-news .btn-secondary.sn-sec-btn { order: 2; min-height: 32px; padding: 0 0 0 8px; border: 0; color: var(--cyan); font-size: 11px; font-weight: 500; letter-spacing: .14em; white-space: nowrap; }
html.e1 #page-site-news .btn-secondary.sn-sec-btn:hover { color: var(--cyan-hover); }
html.e1 .e1-count { font-size: 11px; letter-spacing: .16em; color: var(--text-muted); margin: 0 0 12px; }
/* news cards */
html.e1 .sn-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; max-width: none; }
html.e1 .sn-post { border: 1px solid var(--border); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html.e1 .sn-post.e1-open { grid-column: 1 / -1; }
html.e1 .sn-post-head { flex-direction: column-reverse; align-items: flex-start; gap: 10px; margin: 0; }
html.e1 .sn-post-date { order: 0; font-size: 12px; letter-spacing: .12em; color: var(--text-muted); }
html.e1 .sn-post-title { font-family: var(--font-sans); font-size: 19px; font-weight: 700; letter-spacing: 0; line-height: 1.25; color: var(--text-bright); }
html.e1 .sn-post-body { font-size: 14px; line-height: 1.75; color: var(--text); }
html.e1 .sn-post:not(.e1-open) .sn-post-body { display: none; }
html.e1 .e1-read { margin-top: auto; align-self: flex-start; min-height: 32px; padding: 0; background: none; border: 0; color: var(--cyan); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; cursor: pointer; }
html.e1 .e1-read:hover { color: var(--cyan-hover); }
/* latest rows */
html.e1 .latest-scripts-grid { border: 0; border-top: 1px solid var(--border); border-radius: 0; max-height: none; overflow: visible; }
html.e1 .latest-script-row { grid-template-columns: minmax(0, 1fr) auto 0; padding: 14px 4px; border-bottom: 1px solid var(--row-line); gap: 0 18px; }
html.e1 .latest-script-row:hover { background: #1b1b1b; }
html.e1 .latest-script-name { opacity: 1; font-family: var(--font-sans); font-size: 17px !important; font-weight: 600; color: var(--text-bright); margin: 0 0 2px; }
html.e1 .latest-script-desc, html.e1 .sn-note { font-size: 13px !important; color: var(--text); line-height: 1.6; }
html.e1 .latest-script-version { opacity: 1; color: var(--amber); font-size: 13px !important; }
html.e1 .latest-script-date { color: var(--text-muted); font-size: 12px !important; }
html.e1 .latest-script-arrow { display: none; }
html.e1 .latest-script-type { opacity: 1; }
html.e1 .sn-tag { font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: 1px 8px; border-radius: 0; border: 1px solid var(--amber-dim); color: var(--amber); vertical-align: .2em; }
html.e1 .sn-tag-new { background: var(--cyan); border-color: var(--cyan); color: var(--bg-deep); }
/* box notes: first 3 lines until MORE is opened (text unchanged) */
html.e1 #page-site-news .section[id^="sn-"]:not(#sn-scripts) .sn-note > span:first-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.e1 #page-site-news .section[id^="sn-"]:not(#sn-scripts) .sn-note:has(.sn-note-toggle[aria-expanded="true"]) > span:first-child { display: inline; -webkit-line-clamp: none; }
html.e1 .sn-note-toggle { font-size: 11px; letter-spacing: .14em; }
html.e1 .sn-more { min-height: 40px; margin-top: 16px; color: var(--cyan); border-color: var(--border-mid); font-size: 12px; }
html.e1 #page-site-news .section[id^="sn-"]:not(#sn-scripts) .latest-script-row { padding: 10px 0; }
html.e1 #page-site-news .section[id^="sn-"]:not(#sn-scripts) .latest-script-name { font-family: var(--font-mono); font-size: 14px !important; font-weight: 400; }
html.e1 #page-site-news .section[id^="sn-"]:not(#sn-scripts) .latest-script-version,
html.e1 #page-site-news .section[id^="sn-"]:not(#sn-scripts) .latest-script-date { font-size: 11px !important; color: var(--text-muted); }

/* ---------- Logik Portal app page (/_logik_portal/) ---------- */
html.e1 #page-logik-portal .page-sections { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px 32px; }
html.e1 #page-logik-portal .page-sections > * { grid-column: 1 / -1; }
html.e1 #page-logik-portal .section[data-e1-sec="recently-updated"] { grid-column: 2; grid-row: 3; }
html.e1 #page-logik-portal .section[data-e1-sec="top-downloaded"] { grid-column: 1; grid-row: 3; }
html.e1 #page-logik-portal .section[data-e1-sec="top-downloaded"] .latest-scripts-grid { counter-reset: e1top; border: 0; display: flex; flex-direction: column; gap: 6px; }
html.e1 #page-logik-portal .section[data-e1-sec="top-downloaded"] .latest-script-row { counter-increment: e1top; grid-template-columns: 34px minmax(0, 1fr) !important;
  border: 1px solid var(--border); background: var(--surface); padding: 10px 14px; align-items: center; }
html.e1 #page-logik-portal .section[data-e1-sec="top-downloaded"] .latest-script-row::before { content: counter(e1top, decimal-leading-zero); color: var(--text-muted); font-size: 12px; }
html.e1 #page-logik-portal .section[data-e1-sec="top-downloaded"] .latest-script-row:nth-child(-n+3)::before { color: var(--amber); }
html.e1 #page-logik-portal .section[data-e1-sec="top-downloaded"] .latest-script-name { font-family: var(--font-mono); font-size: 15px !important; font-weight: 400; color: var(--text-bright); margin: 0; }
html.e1 #page-logik-portal .section[data-e1-sec="top-downloaded"] .latest-script-desc { display: none; }
html.e1 #page-logik-portal .section[data-e1-sec="recently-updated"] .latest-scripts-grid { border: 0; display: flex; flex-direction: column; gap: 6px; }
html.e1 #page-logik-portal .section[data-e1-sec="recently-updated"] .latest-script-row { border: 1px solid var(--border); background: var(--surface); padding: 10px 14px; cursor: pointer; }
html.e1 #page-logik-portal .section[data-e1-sec="recently-updated"] .latest-script-name { font-family: var(--font-mono); font-size: 15px !important; font-weight: 400; }
html.e1 #page-logik-portal .section[data-e1-sec="recently-updated"] .latest-script-desc { font-size: 12px !important; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
html.e1 #page-logik-portal .section[data-e1-sec="requirements-compatibility"] .info-table { display: block; border: 1px solid var(--border); background: var(--border); }
html.e1 #page-logik-portal .section[data-e1-sec="requirements-compatibility"] .info-table tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
html.e1 #page-logik-portal .section[data-e1-sec="requirements-compatibility"] .info-table tr { display: flex; flex-direction: column; gap: 6px; background: var(--surface); padding: 16px 18px; border: 0; }
html.e1 #page-logik-portal .section[data-e1-sec="requirements-compatibility"] .info-table td { width: auto; padding: 0; }
html.e1 #page-logik-portal .section[data-e1-sec="requirements-compatibility"] .info-table td:last-child { font-family: var(--font-sans); font-size: 22px; font-weight: 700; color: var(--text-bright); }
html.e1 #page-logik-portal .section[data-e1-sec="requirements-compatibility"] .info-table tr:first-child td:last-child { color: var(--amber); }
html.e1 #page-logik-portal .section[data-e1-sec="requirements-compatibility"] .info-table tr:last-child td:last-child { color: var(--cyan); }
html.e1 #page-logik-portal .section[data-e1-sec="installation"] div[style*="justify-content:flex-end"] { justify-content: flex-start !important; gap: 12px !important; }
html.e1 .changelog-entry { grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-bottom: 0; }
html.e1 .changelog-ver { opacity: 1; font-family: var(--font-sans); font-size: 22px !important; font-weight: 700; color: var(--amber); }
html.e1 .changelog-date { color: var(--text-muted); font-size: 12px !important; }
html.e1 .changelog-notes li { padding-left: 0; display: grid; grid-template-columns: 62px 1fr; gap: 12px; }
html.e1 .changelog-notes li::before { content: none; }
html.e1 .e1-ctag { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--text-muted); padding-top: 4px; }
html.e1 .e1-ctag-added { color: var(--cyan); } html.e1 .e1-ctag-fixed { color: var(--amber); }
html.e1 .changelog-entry.e1-hidden { display: none; }
html.e1 .e1-history { align-self: flex-start; margin-top: 8px; background: none; border: 0; padding: 0; min-height: 40px; color: var(--cyan); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; cursor: pointer; }
html.e1 .e1-history:hover { color: var(--cyan-hover); }
/* skeleton while RECENTLY UPDATED loads (static, no animation) */
html.e1 .e1-skel { height: 44px; border: 1px solid var(--border); background: linear-gradient(var(--row-line), var(--row-line)) 14px 12px / 55% 7px no-repeat,
  linear-gradient(#1f1f1f, #1f1f1f) 14px 26px / 30% 5px no-repeat, var(--surface); margin-bottom: 6px; }
/* mailing callout (app page) */
html.e1 .e1-mail { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 32px; align-items: end;
  padding: 28px; border: 1px solid var(--amber-dim); background: var(--amber-deep); }
html.e1 .e1-mail .section-label { color: var(--amber); margin-bottom: 14px; }
html.e1 .e1-mail h2 { margin: 0 0 8px; font-family: var(--font-sans); font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--text-bright); }
html.e1 .e1-mail p { margin: 0; font-size: 14px; color: var(--text); }
html.e1 .e1-mail form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
html.e1 .e1-mail .e1-in { flex: 1 1 140px; min-width: 0; min-height: 46px; padding: 0 14px; background: var(--bg-deep); border: 1px solid var(--border-mid); color: var(--text-strong); font-family: var(--font-mono); font-size: 14px; border-radius: 0; }
html.e1 .e1-mail select.e1-in { flex: 0 0 auto; }
html.e1 .e1-mail .e1-in:focus { border-color: var(--amber); outline: none; }
html.e1 .e1-mail .e1-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- PyFlame ---------- */
html.e1 #page-pyflame.pf-auto .widgets-layout { height: auto !important; }
html.e1 #page-pyflame.pf-auto .widgets-layout[data-pf] { grid-template-columns: max-content minmax(0, 1fr) !important; }
html.e1 #page-pyflame .widgets-layout .widget-list { max-height: 780px !important; }
html.e1 #page-pyflame .widget-detail-table { font-size: 14px !important; }
html.e1 #page-pyflame .widget-detail-table td:nth-child(2) { opacity: 1; color: var(--cyan); }
html.e1 #page-pyflame .widget-detail-table td:last-child { color: var(--text); }
html.e1 #page-pyflame .widget-detail-table thead td { color: var(--text-muted); font-size: 11px !important; letter-spacing: .16em; }
html.e1 #page-pyflame .widget-detail-name { font-size: 32px; }
html.e1 #page-pyflame .widget-item { font-size: 14px !important; }
html.e1 #page-pyflame .pf-ex-cap, html.e1 #page-pyflame .pf-doc-p { font-size: 14px; }
html.e1 #page-pyflame .pf-req { font-size: 10px; }
html.e1 #page-pyflame .section[data-e1-sec="compatibility-requirements"] .info-table { display: block; border: 0; background: transparent; }
html.e1 #page-pyflame .section[data-e1-sec="compatibility-requirements"] .info-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; padding: 1px; }
html.e1 #page-pyflame .section[data-e1-sec="compatibility-requirements"] .info-table tr { display: flex; flex-direction: column; gap: 6px; background: var(--bg); padding: 14px 18px; border: 0; box-shadow: 0 0 0 1px var(--border); }
html.e1 #page-pyflame .section[data-e1-sec="compatibility-requirements"] .info-table td { width: auto; padding: 0; }
html.e1 #page-pyflame .section[data-e1-sec="compatibility-requirements"] .info-table td:last-child { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--text-bright); }

/* ---------- Links ---------- */
html.e1 .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html.e1 .link-card { padding: 18px 20px; border: 1px solid var(--border); background: var(--surface); gap: 14px; min-height: 64px; }
html.e1 .link-card:hover { background: #1c1c1c; border-color: var(--amber-dim); }
html.e1 .link-card-line-top, html.e1 .link-card-line-bot, html.e1 .link-card-tick, html.e1 .link-card-bar { display: none; }
html.e1 .link-card-num { color: var(--text-muted); font-size: 12px; width: 26px; }
html.e1 .link-card-main { flex-direction: column; gap: 2px; padding: 0; align-items: flex-start; }
html.e1 .link-card-title { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--text-bright); white-space: normal; letter-spacing: 0; }
html.e1 .link-card:hover .link-card-title { color: var(--amber); }
html.e1 .link-card-url { color: var(--cyan); font-size: 12px; letter-spacing: .02em; max-width: 100%; }
html.e1 .link-card-arrow { color: #505050; transition: transform .15s, color .15s; margin-left: 12px; }
html.e1 .link-card:hover .link-card-arrow { color: var(--amber); transform: translateX(3px); }

/* ---------- Contact ---------- */
html.e1 .section[data-e1-sec="get-in-touch"] > div[style*="grid"] { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important; gap: 24px !important; }
html.e1 .section[data-e1-sec="get-in-touch"] > div[style*="grid"] > div:first-child { order: 2; padding: 24px 28px; border: 1px solid var(--amber-dim); background: var(--amber-deep); }
html.e1 .section[data-e1-sec="get-in-touch"] > div[style*="grid"] > div:last-child { order: 1; padding: 28px; border: 1px solid var(--border); background: var(--surface); }
html.e1 .section[data-e1-sec="get-in-touch"] form label { opacity: 1; color: var(--text-muted) !important; font-size: 11px !important; letter-spacing: .16em !important; }
html.e1 .section[data-e1-sec="get-in-touch"] form input, html.e1 .section[data-e1-sec="get-in-touch"] form textarea {
  min-height: 46px; padding: 12px 14px !important; background: var(--bg-deep) !important; border: 1px solid var(--border-mid) !important; border-radius: 0 !important; color: var(--text-strong) !important; font-size: 14px !important; }
html.e1 .section[data-e1-sec="get-in-touch"] form input:focus, html.e1 .section[data-e1-sec="get-in-touch"] form textarea:focus { border-color: var(--amber) !important; }
html.e1 #contactBtn { min-height: 46px; padding: 0 22px !important; font-size: 13px !important; font-weight: 700; letter-spacing: .12em !important; color: var(--bg) !important; background: var(--amber) !important; border: 1px solid var(--amber) !important; border-radius: 0 !important; }
html.e1 #contactBtn:hover { background: var(--amber-hover) !important; }
html.e1 #contactSuccess { color: var(--cyan) !important; opacity: 1 !important; font-size: 13px !important; }
html.e1 #contactError { color: var(--amber) !important; opacity: 1 !important; font-size: 13px !important; }

/* ---------- Mailing list (/_mailing/) ---------- */
html.e1 .e1-back { font-size: 12px; letter-spacing: .14em; color: var(--cyan); margin-bottom: -24px; }
html.e1 #page-mailing .form-card { max-width: 980px; }
html.e1 #page-mailing form { display: flex; flex-direction: column; gap: 20px; }
html.e1 #page-mailing .form-section { border: 1px solid var(--border); background: var(--surface); padding: 26px 26px 28px; margin: 0; }
html.e1 #page-mailing .form-section-label .e1-opt, html.e1 #page-mailing .form-section-label span[style] { font-size: 10px !important; letter-spacing: .14em !important; color: var(--text-muted) !important; border: 1px solid var(--border-mid); padding: 1px 6px; margin-left: 0 !important; }
html.e1 #page-mailing .form-section:first-of-type .field { display: inline-block; }
html.e1 #page-mailing .e1-req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
html.e1 #page-mailing .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
html.e1 #page-mailing .field-label { font-size: 11px; letter-spacing: .16em; color: var(--text-muted); }
html.e1 #page-mailing .field-label .req { color: var(--amber); }
html.e1 #page-mailing .field input { min-height: 46px; padding: 0 14px; background: var(--bg-deep); border: 1px solid var(--border-mid); color: var(--text-strong); font-family: var(--font-mono); font-size: 14px; width: 100%; box-sizing: border-box; border-radius: 0; }
html.e1 #page-mailing input[name="flame_versions"] { max-width: 320px; }
html.e1 #page-mailing .field input:focus { border-color: var(--amber); outline: none; }
html.e1 #page-mailing .e1-filter-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
html.e1 #page-mailing .e1-filter-row input { flex: 1 1 220px; min-height: 44px; padding: 0 14px; background: var(--bg-deep); border: 1px solid var(--border-mid); color: var(--text-strong); font-family: var(--font-mono); font-size: 14px; border-radius: 0; }
html.e1 #page-mailing .e1-sel { font-size: 12px; letter-spacing: .14em; color: var(--text-muted); }
html.e1 #page-mailing .e1-sel b { color: var(--amber); font-weight: 600; }
html.e1 #page-mailing .e1-clear { min-height: 36px; padding: 0 12px; background: transparent; border: 1px solid var(--border-mid); color: var(--text-strong); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; cursor: pointer; }
html.e1 #page-mailing .checklist-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 340px; overflow-y: auto; border: 1px solid var(--border); background: var(--bg-deep); }
html.e1 #page-mailing .check-item { display: flex; align-items: center; gap: 12px; min-height: 39px; padding: 4px 18px; border-bottom: 1px solid var(--row-line); }
html.e1 #page-mailing .check-item[hidden] { display: none; }
html.e1 #page-mailing .check-item input { width: 16px; height: 16px; accent-color: var(--amber); flex-shrink: 0; }
html.e1 #page-mailing .check-item label { font-size: 13px; color: var(--text); cursor: pointer; }
html.e1 #page-mailing .check-item:has(input:checked) label { color: var(--amber); }
html.e1 #page-mailing .checklist-hint, html.e1 #page-mailing .freq-note { margin-top: 14px; font-size: 12px; letter-spacing: .1em; color: var(--text-muted); }
html.e1 #page-mailing .freq-options { display: inline-flex; padding: 4px; gap: 0; border: 1px solid var(--amber-dark); background: var(--amber-deep); }
html.e1 #page-mailing .freq-option { position: relative; }
html.e1 #page-mailing .freq-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
html.e1 #page-mailing .freq-option label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--amber); cursor: pointer; }
html.e1 #page-mailing .freq-option input:checked + label { background: var(--amber); color: var(--bg); }
html.e1 #page-mailing .freq-option input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }
html.e1 #page-mailing .submit-row { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 4px; }
html.e1 #page-mailing .btn-submit.subscribed { color: var(--bg) !important; background: var(--cyan) !important; border-color: var(--cyan) !important; }
html.e1 #page-mailing .form-note { font-size: 13px; color: var(--text-muted); }
html.e1 #page-mailing .msg { padding: 16px 20px; font-size: 13px; border-radius: 0; }
html.e1 #page-mailing .msg-ok { background: #0e1d1f; border: 1px solid var(--cyan-dim); color: var(--cyan); }
html.e1 #page-mailing .msg-err { background: var(--amber-deep); border: 1px solid var(--amber-dim); color: var(--amber); }

/* ---------- Matchboxes / pixel extras ---------- */
html.e1 .mbx-mode-tag { border-radius: 0; font-size: 11px; letter-spacing: .14em; }
html.e1 .pxe-file-list, html.e1 .pxe-cat-warning { font-size: 13px; }

/* ---------- Narrow (≤ 860px): stack, sidebar becomes a swipe strip ---------- */
@media (max-width: 860px) {
  html.e1 .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  html.e1 .sidebar { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  html.e1 .sidebar::-webkit-scrollbar { display: none; }
  html.e1 .nav-item { flex-shrink: 0; width: auto; min-height: 48px; padding: 0 14px; white-space: nowrap; font-size: 12px; gap: 8px; border-bottom: 0; }
  html.e1 .nav-item.active { border-left: 0; box-shadow: inset 0 -3px 0 var(--amber); padding-left: 14px; }
  html.e1 .sidebar-foot { display: none; }
  html.e1 .main { grid-column: 1; grid-row: 2; padding: 40px 24px 56px; }
  html.e1 .footer { grid-column: 1; grid-row: 3; flex-direction: column; align-items: flex-start; padding: 16px; }
  html.e1 .footer-disclaimer { text-align: left; padding: 0; }
  html.e1 .topbar-right { display: flex; }
  html.e1 .widgets-layout, html.e1 #page-pyflame.pf-auto .widgets-layout[data-pf] { grid-template-columns: minmax(0, 1fr) !important; }
  html.e1 .widget-list { position: static !important; max-height: 340px !important; border-right: 0; border-bottom: 1px solid var(--border); }
  html.e1 .widget-detail { border-left: 0; margin-left: 0; padding: 24px 16px 32px; }
  html.e1 #page-site-news .page-sections, html.e1 #page-logik-portal .page-sections { grid-template-columns: minmax(0, 1fr); }
  html.e1 #page-site-news .page-sections > .section { grid-column: 1 !important; }
  html.e1 #page-logik-portal .page-sections > *, html.e1 #page-logik-portal .section[data-e1-sec] { grid-column: 1 !important; grid-row: auto !important; }
  html.e1 .e1-mail { grid-template-columns: minmax(0, 1fr); }
  html.e1 .section[data-e1-sec="get-in-touch"] > div[style*="grid"] { grid-template-columns: minmax(0, 1fr) !important; }
  html.e1 .section[data-e1-sec="get-in-touch"] > div[style*="grid"] > div:first-child { order: 2; }
  html.e1 .link-grid { grid-template-columns: minmax(0, 1fr); }
  html.e1 #page-mailing .checklist-wrap { grid-template-columns: minmax(0, 1fr); }
  html.e1 #page-mailing .e1-req-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  html.e1 .topbar { padding: 12px 16px; letter-spacing: .08em; }
  html.e1 .topbar-right { gap: 10px; font-size: 11px; }
  html.e1 .main { padding: 32px 16px 48px; }
  html.e1 .page.active, html.e1 .page-sections { gap: 36px; }
  html.e1 .page-title, html.e1 .page-title.single { font-size: clamp(44px, 13vw, 96px); }
  html.e1 #page-pixel-expressions .page-title, html.e1 .e1-longtitle .page-title { font-size: clamp(38px, 10.5vw, 96px); }
  html.e1 .page-desc { font-size: 18px; }
  html.e1 .widget-detail-name, html.e1 .script-detail-name { font-size: 30px; }
  html.e1 .script-update-row, html.e1 .changelog-entry { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  html.e1 .submit-wrap, html.e1 .lp-submit-wrap, html.e1 .mbx-submit-wrap { padding: 20px !important; }
  html.e1 .submit-form .row-2 { grid-template-columns: minmax(0, 1fr); }
  html.e1 #page-logik-portal .section[data-e1-sec="requirements-compatibility"] .info-table tbody { grid-template-columns: minmax(0, 1fr); }
  html.e1 .latest-script-row { grid-template-columns: minmax(0, 1fr) !important; }
  html.e1 .latest-script-meta { flex-direction: row; justify-content: flex-start; gap: 12px; }
  html.e1 .e1-mail, html.e1 #page-mailing .form-section { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html.e1 *, html.e1 .page-title .cursor, html.e1 .page-title .cursor::after { transition: none !important; animation: none !important; }
}

/* ---------- page-specific font scaling in portal.css uses IDs: match them ---------- */
html.e1 #page-logik-portal .page-sections .prose, html.e1 #page-pyflame .page-sections .prose, html.e1 #page-contact .prose,
html.e1 #page-pyflame .page-sections .widget-detail-desc { font-size: 15px; }
html.e1 #page-logik-portal .page-sections .section-label, html.e1 #page-pyflame .page-sections .section-label,
html.e1 #page-scripts .section-label, html.e1 #page-pyflame .page-sections .detail-sub-label { font-size: 13px; }
html.e1 #page-logik-portal .page-sections .info-table, html.e1 #page-pyflame .page-sections .info-table { font-size: 15px; }
html.e1 #page-logik-portal .page-sections .changelog-notes { font-size: 14px; }
html.e1 #page-logik-portal .page-sections .code-block, html.e1 #page-pyflame .page-sections .tree-block { font-size: 14px; }
html.e1 #page-pyflame .page-sections .widget-list-header { font-size: 12px; }
html.e1 #page-pyflame .page-sections .widget-detail-name { font-size: 32px; }
html.e1 #page-pyflame .page-sections .widget-detail-sub { font-size: 13px; }
html.e1 #page-pyflame .page-sections .widget-detail-table { font-size: 14px; }
html.e1 #page-pyflame .page-sections .widget-item { font-size: 14px; }
html.e1 #page-pyflame .page-sections .widget-detail-code { font-size: 13px; }
/* hidden spacer rows that only kept old hero heights equal */
html.e1 .hero div[aria-hidden="true"][style*="visibility:hidden"] { display: none !important; }
html.e1 .mbx-mode-tags { margin: 6px 0 18px; }
/* long inline code (PyFlame signatures) wraps instead of widening the page on phones */
html.e1 .ic { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
html.e1 .widget-detail { overflow-wrap: anywhere; }

/* 2026-12-02 (user): hero category chips are links on the six list pages; colour-only hover */
html.e1 a.tag.e1-chip { text-decoration: none; cursor: pointer; transition: color .12s, border-color .12s; }
html.e1 a.tag.e1-chip:hover, html.e1 a.tag.e1-chip:focus-visible { border-color: var(--amber); color: var(--amber); outline: none; }
html.e1 a.tag.e1-chip.on, html.e1 a.tag.e1-chip.on:hover { border-color: var(--cyan); color: var(--cyan); }
/* "N OF TOTAL" under the list filter (read-only, see e1_theme.php 9c) */
html.e1 .e1-count { margin-top: 8px; font-size: 11px; letter-spacing: .14em; color: var(--text-muted); line-height: 1.4; }
html.e1 .e1-count:empty { display: none; }
@media (max-width: 860px) { html.e1 a.tag.e1-chip { min-height: 44px; } }

/* ---------- Unknown-item note (clean item URLs, 404) ---------- */
html.e1 .lp-item-404 { margin: 0 0 24px !important; padding: 14px 18px !important; border: 1px solid var(--amber-dim) !important;
  border-left: 3px solid var(--amber) !important; background: var(--amber-deep); color: var(--amber) !important;
  font-size: 13px !important; letter-spacing: .08em !important; line-height: 1.7; overflow-wrap: anywhere; }

/* ---------- Standalone pages (mailing unsubscribe/verify, repo_unsubscribe, stats_optout) ----------
   html.e1-solo: same palette/type as the shell; their own markup and handlers unchanged. */
html.e1-solo body { display: flex; flex-direction: column; min-height: 100vh; font-size: 15px; }
html.e1-solo .topbar { position: static; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; font-size: 12px !important; letter-spacing: .12em !important; }
html.e1-solo .topbar-left, html.e1-solo .topbar > span:first-child { opacity: 1; color: var(--amber) !important; font-weight: 600; font-size: 12px; letter-spacing: .12em; }
html.e1-solo .topbar a, html.e1-solo .topbar-right, html.e1-solo .topbar-right a { opacity: 1 !important; color: var(--cyan) !important; font-size: 12px; letter-spacing: .12em; }
html.e1-solo .topbar a:hover { color: var(--cyan-hover) !important; }
html.e1-solo .shell { display: flex; grid-template-columns: none; min-height: 0; flex: 1; align-items: center; justify-content: center; padding: 56px 20px; }
html.e1-solo .card { background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--amber); border-radius: 0; padding: 44px 48px; max-width: 620px; text-align: left; }
html.e1-solo .status-label, html.e1-solo .label { font-size: 12px; letter-spacing: .16em; color: var(--cyan); margin-bottom: 18px; }
html.e1-solo .status-err { color: #e06060; }
html.e1-solo .card-title, html.e1-solo .title { font-family: var(--font-sans); font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; color: var(--amber); margin-bottom: 18px; }
html.e1-solo .title-err { color: #e06060; }
html.e1-solo .card-desc, html.e1-solo .card-text, html.e1-solo .desc, html.e1-solo .note { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 28px; }
html.e1-solo .note { font-size: 13px; color: var(--text-muted); }
html.e1-solo .repo { color: var(--text-strong); }
html.e1-solo .btn, html.e1-solo .home { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--amber); background: var(--amber-deep); border: 1px solid var(--amber); border-radius: 0; transition: color .12s, background-color .12s, border-color .12s; }
html.e1-solo .btn:hover, html.e1-solo .home:hover { background: var(--amber); color: var(--bg-deep); border-color: var(--amber); }
html.e1-solo form .btn { display: block; width: 100%; text-align: left; padding: 14px 18px; line-height: 1.6; }
html.e1-solo form .btn:hover small { color: var(--bg-deep); }
html.e1-solo .btn small { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
/* stats_optout.php */
html.e1-solo .wrap { max-width: 760px; width: 100%; margin: 0 auto; padding: 48px 20px; }
html.e1-solo .wrap h1 { font-family: var(--font-sans); font-size: 34px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--amber); margin: 0 0 24px; }
html.e1-solo .wrap h2 { color: var(--cyan); font-size: 12px; letter-spacing: .16em; margin: 32px 0 10px; }
html.e1-solo .wrap table { border: 1px solid var(--border); }
html.e1-solo .wrap td, html.e1-solo .wrap th { padding: 10px 14px; border-bottom: 1px solid var(--row-line); font-size: 14px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  html.e1-solo .card { padding: 28px 20px; }
  html.e1-solo .card-title, html.e1-solo .title { font-size: 30px; }
  html.e1-solo .topbar { padding: 12px 16px; }
}
/* mailing hero: the standalone page's hero has no inner wrapper div, so give it the same stack + gap */
html.e1 #page-mailing .hero { display: flex; flex-direction: column; gap: 20px; }
html.e1 #page-mailing .hero .page-title { margin: 0; }
html.e1 #page-mailing .msg { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--border-mid); border-left: 3px solid var(--cyan); background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.7; border-radius: 0; }
html.e1 #page-mailing .msg-err { border-left-color: #e06060; }
/* phone: script VERSION HISTORY rows wrap (DETAILS + DOWNLOAD ZIP no longer push the page sideways) */
@media (max-width: 860px) {
  html.e1 .script-version-row { grid-template-columns: auto minmax(0, 1fr) !important; row-gap: 8px; }
  html.e1 .script-version-meta { min-width: 0; overflow-wrap: anywhere; }
  html.e1 .script-version-row .script-version-dl { justify-self: start; }
}
html.e1-solo body { padding: 0 !important; }
html.e1-solo .wrap { box-sizing: border-box; }
html.e1-solo .wrap table { width: 100%; table-layout: fixed; }
html.e1-solo .wrap code { overflow-wrap: anywhere; }
/* scripts list filter (the page builds it with inline styles) — same size as the other list filters */
html.e1 #scriptsFilter { min-height: 44px; padding: 0 14px !important; font-size: 14px !important; background: var(--bg-deep) !important; border: 1px solid var(--border-mid) !important; color: var(--text-strong) !important; border-radius: 0; box-sizing: border-box; }
html.e1 #scriptsFilter:focus { border-color: var(--amber) !important; }

/* 2026-12-02 (user): Links page buttons half as wide, four columns (2 below 1200px, 1 on phones); tighter padding/text so titles fit */
html.e1 .link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
html.e1 .link-card { padding: 14px 14px; gap: 10px; }
html.e1 .link-card-num { width: 20px; font-size: 11px; }
html.e1 .link-card-title { font-size: 15px; line-height: 1.3; }
html.e1 .link-card-url { font-size: 11px; }
html.e1 .link-card-arrow { margin-left: 4px; }
@media (max-width: 1199px) { html.e1 .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { html.e1 .link-grid { grid-template-columns: minmax(0, 1fr); } }
