/* AnyX default theme — modern dev-tool dark aesthetic, indigo accent.
   This is the flagship theme that anyx.org ships with. Other instances
   (sc, vo, slboats, …) override by setting their own theme. Component
   vocabulary uses an `ax-` prefix so instance themes can reuse, override,
   or ignore without class collisions. */

:root {
    --ax-bg:           #0a0d12;
    --ax-bg-card:      #10141c;
    --ax-bg-card-hi:   #161c28;
    --ax-bg-chrome:    #0e1219;
    --ax-border:       rgba(129, 140, 248, 0.10);
    --ax-border-soft:  rgba(129, 140, 248, 0.18);
    --ax-border-hi:    rgba(129, 140, 248, 0.42);
    --ax-text:         #e9eef3;
    --ax-text-muted:   #8b95a3;
    --ax-text-faint:   #5a6271;
    --ax-accent:       #818cf8;
    --ax-accent-bright:#a5b4fc;
    --ax-accent-dim:   rgba(129, 140, 248, 0.12);
    --ax-live:         #34d399;
    --ax-soon:         #f59e0b;
    --ax-planned:      #94a3b8;
}

/* ─── Base ─────────────────────────────────────────── */
body {
    background-color: var(--ax-bg);
    color: var(--ax-text);
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: auto;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}
img { border: 0; max-width: 100%; height: auto; }
a { color: var(--ax-accent); text-decoration: none; }
a:hover { color: var(--ax-accent-bright); }
hr { border: 0; border-top: 1px solid var(--ax-border); margin: 24px 0; }

/* ─── Page chrome ──────────────────────────────────── */
div#page {
    background-color: transparent;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100dvh;
}
div.mainbody { padding: 0; margin: 0; width: 100%; }
div#data { position: relative; padding: 0 0 64px; }

div#formdiv {
    display: none;
    background-color: var(--ax-bg-card);
    position: fixed;
    padding: 16px;
    margin: 0;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--ax-border-hi);
    border-radius: 10px;
    z-index: 9999;
}

div#footer {
    width: 100%;
    margin: 64px 0 0;
    padding: 24px 0 32px;
    border-top: 1px solid var(--ax-border);
    color: var(--ax-text-faint);
    text-align: center;
    font-size: 13px;
}
div#footer a { color: var(--ax-text-muted); }
div#footer a:hover { color: var(--ax-accent-bright); }
.ax-footer-sep { color: var(--ax-text-faint); padding: 0 8px; }

table td { vertical-align: top; font-size: 14px; }
font.label { color: var(--ax-live); font-weight: bold; }

/* loading spinner used by nav */
div#page_loading {
    display: none;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    opacity: 0.6;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ─── Nav bar (theme-specific styling; structural rules live in nav.css) ── */
#nav {
    position: sticky;
    top: 0;
    z-index: 400;
    background-color: var(--ax-bg-chrome);
    border-bottom: 1px solid var(--ax-border);
    margin: 0 -24px;
    padding: 0 24px;
    min-height: 44px;
}
#nav h2, #nav hr { display: none; }

ul.menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.menu > li { position: relative; }
ul.menu > li > a {
    display: block;
    padding: 12px 16px;
    color: var(--ax-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    font-family: inherit;
    transition: color 0.15s;
}
ul.menu > li > a:hover,
ul.menu > li > a.active {
    color: var(--ax-text);
}
ul.menu > li > a.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    background: var(--ax-accent);
    border-radius: 2px 2px 0 0;
}

/* first right-aligned item pushes everything after it to the right */
li.menu-right { margin-left: auto; }
li.menu-right ~ li.menu-right { margin-left: 0; }

/* submenus — show on hover */
.submenu, .subsubmenu, .subsubsubmenu {
    display: none;
    position: absolute;
    left: 0;
    z-index: 100;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 180px;
    background-color: var(--ax-bg-card);
    border: 1px solid var(--ax-border-hi);
    border-radius: 8px;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
ul.menu > li:hover > .submenu,
ul.menu > li:hover > .submenu-right,
.submenu li:hover > .subsubmenu,
.subsubmenu li:hover > .subsubsubmenu {
    display: block;
}
.submenu-right { right: 0; left: auto; }
.menu-divider {
    border-top: 1px solid var(--ax-border-soft);
    margin: 6px 0;
}
.subsubmenu, .subsubsubmenu {
    position: absolute;
    left: 100%;
    top: 0;
}
.submenu li, .subsubmenu li, .subsubsubmenu li {
    display: block;
    position: relative;
}
.submenu a, .subsubmenu a, .subsubsubmenu a {
    display: block;
    padding: 7px 16px;
    color: var(--ax-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    font-family: inherit;
    white-space: nowrap;
    transition: color 0.15s, background-color 0.15s;
}
.submenu a:hover, .subsubmenu a:hover, .subsubsubmenu a:hover,
.submenu a.active, .subsubmenu a.active, .subsubsubmenu a.active {
    color: var(--ax-text);
    background-color: var(--ax-accent-dim);
}

/* ─── Hero (top-of-page banner) ────────────────────── */
.ax-hero {
    padding: 24px 0 28px;
    border-bottom: 1px solid var(--ax-border);
    margin-bottom: 28px;
}
.ax-hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ax-accent);
    background: var(--ax-accent-dim);
    border: 1px solid var(--ax-border-hi);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}
.ax-hero-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    line-height: 1.1;
}
.ax-hero-lede {
    font-size: 18px;
    color: var(--ax-text-muted);
    margin: 0;
    max-width: 720px;
    line-height: 1.55;
}

/* ─── Section + sub-heading ───────────────────────── */
.ax-section { margin: 0 0 48px; }
.ax-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 20px;
}
.ax-section-head h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}
.ax-section-head h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.005em;
}
.ax-section p { margin: 0 0 14px; color: var(--ax-text); }
.ax-section p:last-child { margin-bottom: 0; }

/* ─── Bordered section card (visual rhythm on prose-heavy pages) ── */
.ax-section-card {
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 16px;
    transition: border-color 0.18s;
}
.ax-section-card:hover { border-color: var(--ax-border-soft); }
.ax-section-card:last-child { margin-bottom: 0; }
/* Inside a card, the section head reads as the card's header bar: it spans to
   the card edges (cancelling the card padding), sits on a subtly darker band,
   and is divided from the body by a rule. */
.ax-section-card > .ax-section-head {
    margin: -22px -26px 22px;
    padding: 13px 24px;
    background: var(--ax-bg-chrome);
    border-bottom: 1px solid var(--ax-border);
    border-radius: 10px 10px 0 0;
}
.ax-section-card > .ax-section-head h2 { font-size: 17px; letter-spacing: 0; }
.ax-section-card > .ax-section-head h2::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    margin-right: 10px;
    vertical-align: -2px;
    background: var(--ax-accent);
    border-radius: 2px;
}

/* ─── Pull-quote (one strong line, accent-bordered) ─────────────── */
.ax-pullquote {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--ax-accent);
    background: var(--ax-accent-dim);
    border-radius: 0 8px 8px 0;
    font-size: 17px;
    line-height: 1.45;
    color: var(--ax-text);
    font-weight: 500;
    font-style: italic;
}
.ax-pullquote::before { content: ""; }

/* ─── At-a-glance panel (sub-page scannable stat strip) ─────────── */
.ax-at-glance {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding: 14px 22px;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    margin: 0 0 28px;
    font-size: 13px;
    color: var(--ax-text);
}
.ax-at-glance-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}
.ax-at-glance-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ax-text-faint);
    font-weight: 600;
}

/* ─── Pill badges ──────────────────────────────────── */
.ax-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 3px 10px;
    border: 1px solid;
    line-height: 1.3;
}
.ax-pill::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}
.ax-pill-live    { color: var(--ax-live);    border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.10); }
.ax-pill-soon    { color: var(--ax-soon);    border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.10); }
.ax-pill-planned { color: var(--ax-planned); border-color: rgba(148, 163, 184, 0.4); background: rgba(148, 163, 184, 0.10); }
.ax-pill-accent  { color: var(--ax-accent);  border-color: var(--ax-border-hi);     background: var(--ax-accent-dim); }

/* ─── Feature grid (capability tiles) ──────────────── */
.ax-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.ax-feature-card {
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    padding: 20px 22px;
    transition: border-color 0.18s, background-color 0.18s, transform 0.18s;
}
.ax-feature-card:hover {
    border-color: var(--ax-border-hi);
    background: var(--ax-bg-card-hi);
    transform: translateY(-2px);
}
.ax-feature-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ax-text);
    margin: 0 0 8px;
    letter-spacing: -0.005em;
}
.ax-feature-card-body {
    font-size: 13.5px;
    color: var(--ax-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ─── Showcase grid (big example cards) ────────────── */
.ax-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.ax-showcase-card {
    display: flex;
    flex-direction: column;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ax-showcase-card:hover {
    border-color: var(--ax-border-hi);
    box-shadow: 0 8px 28px -10px rgba(129, 140, 248, 0.35);
}
a.ax-showcase-card-img {
    display: block;
    cursor: pointer;
}
a.ax-showcase-card-img:hover { filter: brightness(1.08); }
.ax-showcase-card-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a2233, #0f1422);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--ax-border);
    position: relative;
    transition: filter 0.18s;
}

/* Footer action row inside a showcase card: primary CTA + secondary link. */
.ax-showcase-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.ax-showcase-card-actions .ax-cta-button { margin: 0; padding: 7px 14px; font-size: 13px; border-radius: 6px; }
.ax-secondary-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--ax-text-muted);
    transition: color 0.15s;
}
.ax-secondary-link:hover { color: var(--ax-accent-bright); }
.ax-secondary-link::after { content: " \2192"; font-size: 12px; }
.ax-showcase-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ax-text-faint);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.ax-showcase-card-pill { position: absolute; top: 12px; right: 12px; }
.ax-showcase-card-body { padding: 18px 22px 22px; }
.ax-showcase-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ax-text);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.ax-showcase-card-lede {
    font-size: 13.5px;
    color: var(--ax-text-muted);
    margin: 0 0 12px;
    line-height: 1.5;
}
.ax-showcase-card-meta {
    font-size: 12px;
    color: var(--ax-text-faint);
    font-family: ui-monospace, "Fira Code", Consolas, monospace;
}

/* ─── Featured horizontal card (logo left, body right) ────
   Used for the anyx.org self-hosting callout above the CMS-only grid.
   Static (no hover transform) since it's a content callout, not a nav
   target. Collapses to stacked layout on narrow viewports. */
.ax-featured-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 12px;
    padding: 22px 28px;
    margin: 0 0 24px;
}
.ax-featured-card-logo {
    flex: 0 0 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ax-featured-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.ax-featured-card-body { flex: 1; min-width: 0; }
.ax-featured-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.ax-featured-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ax-text);
    letter-spacing: -0.01em;
}
.ax-featured-card-lede {
    font-size: 14.5px;
    color: var(--ax-text-muted);
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 560px) {
    .ax-featured-card { flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 22px; }
    .ax-featured-card-logo { flex: 0 0 auto; height: 80px; align-self: center; }
}

/* ─── Benefit chip row (small checked feature list) ────── */
.ax-benefit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 22px;
}
.ax-benefit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border-soft);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--ax-text);
    line-height: 1.3;
}
.ax-benefit::before {
    content: "\2713";
    color: var(--ax-accent);
    font-weight: 700;
    font-size: 11px;
}

/* ─── CMS-only project cards (smaller than showcase; logo + body) ─── */
.ax-cms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin: 4px 0 0;
}
.ax-cms-card {
    display: flex;
    flex-direction: column;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, transform 0.18s;
}
.ax-cms-card:hover { border-color: var(--ax-border-hi); transform: translateY(-2px); }
/* Logo banner: wide header strip on the card. Fixed height keeps cards
   uniform across rows; object-fit: contain preserves logo aspect ratios.
   The dark-on-light wordmark logos these sites supplied are inverted to
   render as light silhouettes on the dark card — matches the theme
   without needing a contrasting backdrop. */
.ax-cms-card-banner {
    height: 68px;
    margin: 0 0 14px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ax-cms-card-banner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
/* Wordmark fallback for sites with no logo file (e.g. drazed.com).
   Styled as a typographic mark in the same banner slot. */
.ax-cms-card-banner-text {
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ax-text);
    letter-spacing: -0.02em;
}
.ax-cms-card-body {
    font-size: 13px;
    color: var(--ax-text-muted);
    line-height: 1.55;
    flex: 1;
    margin: 0 0 10px;
}
.ax-cms-card-visit {
    font-size: 12.5px;
    color: var(--ax-accent);
    font-weight: 500;
}
.ax-cms-card-visit::after { content: " \2197"; font-size: 11px; }
.ax-cms-card:hover .ax-cms-card-visit { color: var(--ax-accent-bright); }

/* ─── Compact link list ────────────────────────────── */
.ax-link-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.ax-link-list li {
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 8px;
    padding: 12px 16px;
    transition: border-color 0.18s, background 0.18s;
}
.ax-link-list li:hover { border-color: var(--ax-border-hi); background: var(--ax-bg-card-hi); }
.ax-link-list a { color: var(--ax-text); font-weight: 500; }
.ax-link-list a:hover { color: var(--ax-accent-bright); }
.ax-link-list-meta { display: block; font-size: 12px; color: var(--ax-text-faint); margin-top: 2px; }

/* ─── Screenshot banner (sub-page hero image) ─────── */
.ax-screenshot {
    display: block;
    margin: 0 0 36px;
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--ax-bg-card);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.ax-screenshot:hover { border-color: var(--ax-border-hi); box-shadow: 0 8px 28px -12px rgba(129, 140, 248, 0.25); }
a.ax-screenshot:hover { transform: translateY(-2px); }
.ax-screenshot img { display: block; width: 100%; height: auto; }

/* ─── CTA button (prominent visit-link, used in hero blocks) ── */
.ax-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ax-accent);
    color: #0a0d12;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    margin: 0 0 24px;
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ax-cta-button:hover {
    background: var(--ax-accent-bright);
    color: #0a0d12;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -6px rgba(129, 140, 248, 0.5);
}
.ax-cta-button::after { content: "↗"; font-size: 14px; opacity: 0.8; }

/* ─── Forms (contact / signup) ─────────────────────── */
.ax-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin-top: 8px; }
.ax-field { display: flex; flex-direction: column; gap: 6px; }
.ax-field label { font-size: 13px; color: var(--ax-text-muted); font-weight: 500; }
.ax-input,
.ax-textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 8px;
    color: var(--ax-text);
    font: inherit;
    font-size: 14px;
    padding: 10px 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ax-textarea { min-height: 130px; resize: vertical; }
.ax-input:focus,
.ax-textarea:focus {
    outline: none;
    border-color: var(--ax-accent);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}
/* Honeypot — visually and AT-hidden, but present in the DOM for bots. */
.ax-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ax-submit {
    align-self: flex-start;
    background: var(--ax-accent);
    color: #0a0d12;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ax-submit:hover:not(:disabled) {
    background: var(--ax-accent-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px -6px rgba(129, 140, 248, 0.5);
}
.ax-submit:disabled { opacity: 0.6; cursor: default; }
.ax-form-status { font-size: 14px; margin-top: 4px; min-height: 1.2em; }
.ax-form-status.ax-ok { color: #7ae7a1; }
.ax-form-status.ax-err { color: #e77a7a; }

/* ─── Diagrams (pipeline flow + layer stack) ───────── */
/* Left-to-right flow of labelled nodes joined by accent arrows; wraps to a
   vertical stack (arrows rotate) on narrow viewports. Used for the About
   render pipeline and the Vision cloud architecture. */
.ax-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin: 18px 0;
}
.ax-flow-node {
    flex: 1 1 0;
    min-width: 150px;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-radius: 10px;
    padding: 14px 16px;
}
.ax-flow-node-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ax-text);
    margin: 0 0 5px;
}
.ax-flow-node-title .ax-flow-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ax-accent);
    background: var(--ax-accent-dim);
    border-radius: 5px;
    padding: 2px 6px;
}
.ax-flow-node-desc { font-size: 12.5px; color: var(--ax-text-muted); margin: 0; line-height: 1.45; }
.ax-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--ax-accent);
    font-size: 20px;
    opacity: 0.85;
}
/* A node that fans out to a side group (voice/bridge), de-emphasised. */
.ax-flow-node.ax-flow-aside { background: var(--ax-bg-chrome); border-style: dashed; }
@media (max-width: 760px) {
    .ax-flow { flex-direction: column; }
    .ax-flow-arrow { transform: rotate(90deg); align-self: center; }
}
.ax-flow-note { font-size: 12.5px; color: var(--ax-text-faint); margin: 6px 0 0; }

/* Layer stack — three-tier ownership (src / extensions / app) or any
   stacked-band concept. Each band is a label chip + a one-line description. */
.ax-layers { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.ax-layer {
    display: flex;
    align-items: baseline;
    gap: 14px;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border);
    border-left: 3px solid var(--ax-accent);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13.5px;
    color: var(--ax-text-muted);
    line-height: 1.45;
}
.ax-layer-tag {
    flex: 0 0 auto;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--ax-accent-bright);
    min-width: 96px;
}
.ax-layer strong { color: var(--ax-text); font-weight: 600; }

/* Standalone banded header — groups a section (e.g. a feature grid) under a
   header bar without wrapping it in a card. Mirrors the card header band. */
.ax-band-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 38px 0 14px;
    padding: 12px 18px;
    background: var(--ax-bg-chrome);
    border: 1px solid var(--ax-border);
    border-radius: 10px;
}
.ax-band-head h2 { font-size: 17px; font-weight: 600; margin: 0; }
.ax-band-head h2::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    margin-right: 10px;
    vertical-align: -2px;
    background: var(--ax-accent);
    border-radius: 2px;
}
.ax-band-head .ax-band-sub { font-size: 13px; color: var(--ax-text-muted); margin: 0; }

/* Chips — a wrapped row of small tags, e.g. the extensions a site is built
   with. Plain by default; renders as a link when wrapped in an anchor. */
.ax-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 4px; }
.ax-chip {
    font-size: 12px;
    color: var(--ax-text-muted);
    background: var(--ax-bg-chrome);
    border: 1px solid var(--ax-border);
    border-radius: 6px;
    padding: 4px 10px;
    white-space: nowrap;
}
.ax-chip.ax-chip-custom { color: var(--ax-accent-bright); border-color: var(--ax-border-hi); background: var(--ax-accent-dim); }

/* ─── Utility links ────────────────────────────────── */
.ax-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ax-text-muted);
    margin-bottom: 16px;
}
.ax-back-link:hover { color: var(--ax-accent-bright); }
.ax-back-link::before { content: "←"; }
.ax-visit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ax-accent);
    padding: 6px 0;
    border-bottom: 1px solid var(--ax-accent-dim);
    transition: color 0.15s, border-color 0.15s;
}
.ax-visit-link:hover { color: var(--ax-accent-bright); border-bottom-color: var(--ax-accent-bright); }
.ax-visit-link::after { content: "↗"; font-size: 12px; }

/* ─── Search box / suggestion list (sticky from old default theme) ── */
div.search { display: none; float: right; }
input.search {
    background-color: var(--ax-bg-card);
    color: var(--ax-text);
    border: 1px solid var(--ax-border-soft);
    border-radius: 6px;
    padding: 4px 8px;
}
.suggestionsBox {
    position: relative;
    margin: 0;
    width: 220px;
    background-color: var(--ax-bg-card);
    border-radius: 7px;
    border: 1px solid var(--ax-border-hi);
    color: var(--ax-text);
}
.suggestionList { margin: 0; padding: 0; }
.suggestionList ul { font-size: 12px; list-style: none; padding: 0; margin: 4px; text-align: left; }
.suggestionList li { margin: 0; padding: 2px; }
.suggestionList li:hover { background-color: var(--ax-accent-dim); color: var(--ax-text); }

/* ─── Forms (admin chrome) ─────────────────────────── */
input {
    color: var(--ax-text);
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border-soft);
    border-radius: 4px;
    padding: 4px 8px;
}
select {
    color: var(--ax-text);
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border-soft);
    border-radius: 4px;
    padding: 4px 8px;
}
.button {
    background-color: var(--ax-bg-card);
    color: var(--ax-text);
    border-radius: 6px;
    border: 1px solid var(--ax-border-soft);
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.button:hover {
    background-color: var(--ax-bg-card-hi);
    border-color: var(--ax-border-hi);
}
.button option { background-color: var(--ax-bg-card); color: var(--ax-text); }
.button-close {
    background-color: var(--ax-bg-card);
    color: var(--ax-text-muted);
    border-radius: 6px;
    border: 1px solid var(--ax-border-soft);
    padding: 5px 12px;
    cursor: pointer;
}
.button-close:hover { background-color: var(--ax-bg-card-hi); color: var(--ax-text); }

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 44px;
    z-index: 100;
    background-color: var(--ax-bg-chrome);
    padding: 6px 24px;
    margin: 0 -24px;
    border-bottom: 1px solid var(--ax-border);
}

div.fileinputs { position: relative; }
div.fakefile { position: absolute; top: 0; left: 0; z-index: 1; }
input.file { position: relative; text-align: right; opacity: 0; z-index: 2; }

/* map (VO/SC-specific, loaded by app themes) */
div#map { display: none; position: absolute; right: 0; background-color: #000; }
div#mapfloat {
    position: relative;
    float: right;
    max-width: 404px;
    width: 100%;
    z-index: 300;
}

/* admin group checkboxes */
.admin-checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 4px 0; }
.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ax-text);
    font-size: 14px;
    cursor: pointer;
}
.admin-checkbox-label input[type="checkbox"] {
    accent-color: var(--ax-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* structured model editor */
.model-layout { width: 100%; }
.model-layout > tbody > tr > td:first-child { width: 100%; }
#model-editor-wrapper { margin-top: 8px; }
.model-section {
    position: relative;
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border-soft);
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
}
.model-section h3 {
    margin: 0 0 6px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--ax-text-muted);
    letter-spacing: 0.08em;
}
.model-field-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.model-field-row label { white-space: nowrap; min-width: 80px; margin: 0; }
.model-input { flex: 1; box-sizing: border-box; }
.model-op-body { padding-left: 8px; }
.model-op-body label {
    display: block;
    margin: 6px 0 2px;
    color: var(--ax-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
textarea.model-query,
textarea#model-raw-json {
    width: 100%;
    min-height: 80px;
    font-family: ui-monospace, "Fira Code", Consolas, monospace;
    font-size: 13px;
    color: var(--ax-text);
    background: var(--ax-bg);
    border: 1px solid var(--ax-border-soft);
    border-radius: 4px;
    padding: 6px;
    resize: vertical;
    box-sizing: border-box;
}
table.model-options { margin: 4px 0; }
table.model-options td { padding: 2px 4px; }
table.model-options input.opt-key,
table.model-options input.opt-val {
    background: var(--ax-bg);
    color: var(--ax-text);
    border: 1px solid var(--ax-border-soft);
    padding: 3px 6px;
    font-size: 13px;
}
.model-add-option,
.model-remove-option { font-size: 12px; padding: 2px 8px; }

/* CRUD tab bar */
.model-tabs { display: flex; gap: 0; margin-bottom: 0; }
.model-tab {
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-right: 2px;
}
.model-tab.active {
    background: var(--ax-bg-card);
    color: var(--ax-text);
    border-color: var(--ax-border-hi);
    border-bottom: 2px solid var(--ax-accent);
}
.model-tabs + .model-crud-section { border-top-left-radius: 0; }

/* Analytics tab bar */
.analytics-tabs { display: flex; gap: 2px; margin-bottom: 16px; }
.analytics-tab {
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    letter-spacing: 0.06em;
}
.analytics-tab.active {
    background: var(--ax-bg-card);
    border-bottom: 2px solid var(--ax-accent);
}

.model-view-toggle {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border-radius: 0;
    border-bottom: none;
    letter-spacing: 0.06em;
    font-size: 12px;
}
.model-op-actions { margin-top: 8px; }

.model-results-panel:empty { display: none; border: none; padding: 0; margin: 0; }
.model-results-panel pre {
    background: var(--ax-bg);
    border: 1px solid var(--ax-border-soft);
    border-radius: 4px;
    color: var(--ax-text);
    font-size: 12px;
    max-height: 400px;
    overflow: auto;
    padding: 8px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}
.model-results-loading { color: var(--ax-text-faint); font-style: italic; font-size: 12px; }
.model-results-error { color: #f87171; font-size: 12px; }
.model-results-empty { color: var(--ax-text-faint); font-size: 12px; }
.model-preview-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* inline edit forms */
.inline-edit-form {
    background: var(--ax-bg-card);
    border: 1px solid var(--ax-border-soft);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
}
.inline-edit-form input[type="text"] {
    background: var(--ax-bg);
    color: var(--ax-text);
    border: 1px solid var(--ax-border-soft);
    padding: 3px 6px;
    font-size: 13px;
}
.inline-edit-form td { padding: 2px 4px; font-size: 13px; }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 700px) {
    div#page { padding: 0 16px; }
    #nav { margin: 0 -16px; padding: 0 16px; }
    .admin-toolbar { padding: 6px 16px; margin: 0 -16px; }
    .ax-hero { padding: 32px 0 24px; }
    .ax-hero-title { font-size: 32px; }
    .ax-hero-lede { font-size: 16px; }
    div#data { padding: 24px 0 48px; }
}

@media (max-width: 640px) {
    ul.menu > li > a { padding: 10px 12px; font-size: 13px; }
    .submenu a, .subsubmenu a, .subsubsubmenu a { padding: 8px 14px; }
    div#mapfloat { float: none; margin: 0 auto; }
}
