/* ======================================================
   ActuEasy Documentation – Dark theme
   Consistent with vitrine.css / admin.css
   ====================================================== */

:root {
    --ae-dark:        #0d1117;
    --ae-dark-2:      #161b22;
    --ae-dark-3:      #21262d;
    --ae-border:      #30363d;
    --ae-accent:      #7c3aed;
    --ae-accent-2:    #a855f7;
    --ae-text:        #e6edf3;
    --ae-text-muted:  #8b949e;
    --ae-green:       #3fb950;
    --ae-blue:        #58a6ff;
    --ae-yellow:      #f2cc60;
    --ae-red:         #ff7b72;
    --radius:         8px;
    --shadow:         0 4px 20px rgba(0,0,0,0.4);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background: var(--ae-dark);
    color: var(--ae-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

/* ── Doc shell layout ── */
.doc-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.doc-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--ae-dark-2);
    border-right: 1px solid var(--ae-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ae-border) transparent;
    flex-shrink: 0;
}

.doc-sidebar-header {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--ae-border);
    position: sticky;
    top: 0;
    background: var(--ae-dark-2);
    z-index: 10;
}

.doc-sidebar-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ae-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-sidebar-logo-icon {
    color: var(--ae-accent-2);
    font-size: 1.2rem;
}

.doc-sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--ae-text-muted);
    line-height: 1.4;
    margin-top: 0.35rem;
}

.doc-sidebar-nav {
    padding: 0.75rem 0;
    flex: 1;
}

.doc-nav-section {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ae-text-muted);
    padding: 0.75rem 1.25rem 0.35rem;
}

.doc-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: var(--ae-text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.doc-nav-link:hover {
    background: var(--ae-dark-3);
    color: var(--ae-text);
    border-left-color: var(--ae-border);
}

.doc-nav-link.active {
    background: rgba(124, 58, 237, 0.12);
    color: var(--ae-accent-2);
    border-left-color: var(--ae-accent-2);
    font-weight: 600;
}

.doc-sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--ae-border);
    font-size: 0.75rem;
    color: var(--ae-text-muted);
    line-height: 1.6;
}

.doc-sidebar-footer a {
    color: var(--ae-blue);
    text-decoration: none;
}

.doc-sidebar-home {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ae-text-muted) !important;
    margin-top: 0.6rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--ae-border);
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.doc-sidebar-home:hover {
    background: var(--ae-dark-3);
    color: var(--ae-text) !important;
    border-color: var(--ae-accent);
}

/* ── Main content area ── */
.doc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.doc-topbar {
    background: var(--ae-dark-2);
    border-bottom: 1px solid var(--ae-border);
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 5;
    font-size: 0.8rem;
    color: var(--ae-text-muted);
}

.doc-topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-topbar-breadcrumb a {
    color: var(--ae-blue);
    text-decoration: none;
}

.doc-topbar-breadcrumb a:hover { text-decoration: underline; }
.doc-topbar-sep { color: var(--ae-border); }

.doc-topbar-version {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--ae-accent-2);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.doc-content {
    padding: 2.5rem 2.5rem 3rem;
    max-width: 1100px;
    width: 100%;
}

/* ── Content typography ── */
.doc-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ae-text);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.doc-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ae-text);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--ae-border);
}

.doc-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ae-accent-2);
    margin: 1.5rem 0 0.5rem;
}

.doc-content p {
    color: var(--ae-text-muted);
    margin: 0 0 1rem;
}

.doc-content ul, .doc-content ol {
    color: var(--ae-text-muted);
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.doc-content li { margin-bottom: 0.35rem; }

.doc-content strong { color: var(--ae-text); }

.doc-content a {
    color: var(--ae-blue);
    text-decoration: none;
}

.doc-content a:hover { text-decoration: underline; }

.doc-content code {
    background: var(--ae-dark-3);
    border: 1px solid var(--ae-border);
    color: var(--ae-yellow);
    font-family: "Consolas", "SF Mono", monospace;
    font-size: 0.85em;
    padding: 0.15em 0.45em;
    border-radius: 4px;
}

.doc-content pre {
    background: var(--ae-dark-3);
    border: 1px solid var(--ae-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.doc-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--ae-yellow);
}

/* ── Page header hero ── */
.doc-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ae-border);
}

.doc-page-subtitle {
    font-size: 1rem;
    color: var(--ae-text-muted);
    margin: 0.35rem 0 0;
}

/* ── Feature / info cards ── */
.doc-card {
    background: var(--ae-dark-2);
    border: 1px solid var(--ae-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.doc-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ae-text);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.doc-card-title .icon { color: var(--ae-accent-2); }

/* ── Feature grid ── */
.doc-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.doc-feature-card {
    background: var(--ae-dark-2);
    border: 1px solid var(--ae-border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    transition: border-color 0.15s;
}

.doc-feature-card:hover { border-color: var(--ae-accent); }

.doc-feature-icon {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--ae-accent-2);
}

.doc-feature-name {
    font-weight: 700;
    color: var(--ae-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.doc-feature-desc {
    font-size: 0.8rem;
    color: var(--ae-text-muted);
    line-height: 1.5;
}

/* ── Tables ── */
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.875rem;
}

.doc-content table th {
    background: var(--ae-dark-3);
    color: var(--ae-text);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.6rem 0.9rem;
    border-bottom: 2px solid var(--ae-accent);
    text-align: left;
}

.doc-content table td {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--ae-border);
    color: var(--ae-text-muted);
}

.doc-content table tbody tr:hover {
    background: var(--ae-dark-3);
}

/* ── Callout / note ── */
.doc-callout {
    border-left: 3px solid var(--ae-accent);
    background: rgba(124, 58, 237, 0.08);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.85rem 1.1rem;
    margin: 1.25rem 0;
    font-size: 0.875rem;
    color: var(--ae-text-muted);
}

.doc-callout strong { color: var(--ae-accent-2); }

.doc-callout-warning {
    border-left-color: var(--ae-yellow);
    background: rgba(242, 204, 96, 0.08);
}

.doc-callout-warning strong { color: var(--ae-yellow); }

/* ── Home page hero ── */
.doc-home-hero {
    background: linear-gradient(135deg, var(--ae-dark-2) 0%, var(--ae-dark-3) 100%);
    border: 1px solid var(--ae-border);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.doc-home-hero-text h2 {
    border: none;
    padding: 0;
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    color: var(--ae-text);
}

.doc-home-hero-text p {
    margin: 0;
    font-size: 0.95rem;
}

.doc-home-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--ae-border);
    box-shadow: var(--shadow);
}

/* ── Presentation card (replaces image) ── */
.doc-pres-card {
    border: 1px solid var(--ae-border);
    border-radius: 12px;
    background: var(--ae-dark-2);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.doc-pres-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.doc-pres-tile {
    border: 1px solid var(--ae-border);
    border-radius: 8px;
    background: var(--ae-dark-3);
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
    color: var(--ae-text-muted);
    line-height: 1.5;
}

.doc-pres-tile strong { color: var(--ae-text); }

.doc-pres-tile--wide {
    grid-column: span 2;
}

.doc-pres-usages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.doc-pres-usages p { margin: 0 0 0.4rem; }

.doc-pres-usages ul {
    margin: 0;
    padding-left: 1.2rem;
}

.doc-pres-usages ul li { margin-bottom: 0.2rem; }

.doc-pres-logos-inline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.doc-pres-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    border: 1px solid transparent;
}

.doc-pres-badge--excel {
    background: rgba(33, 115, 70, 0.18);
    border-color: rgba(33, 115, 70, 0.5);
    color: #4ade80;
}

.doc-pres-badge--api {
    background: rgba(124, 58, 237, 0.18);
    border-color: rgba(124, 58, 237, 0.5);
    color: var(--ae-accent-2);
}

/* Tech logos bar */
.doc-pres-techbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ae-border);
}

.doc-pres-tech {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ae-text-muted);
    background: var(--ae-dark-3);
    border: 1px solid var(--ae-border);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    transition: border-color 0.2s, color 0.2s;
}

.doc-pres-tech img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.doc-pres-tech:hover {
    color: var(--ae-text);
    border-color: var(--ae-accent);
}

.doc-pres-tech--snowflake { color: #9ecfff; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .doc-sidebar { width: 220px; min-width: 220px; }
    .doc-content { padding: 1.5rem 1.25rem 2rem; }
    .doc-pres-grid { grid-template-columns: repeat(2, 1fr); }
    .doc-pres-tile--wide { grid-column: span 2; }
}

@media (max-width: 640px) {
    .doc-layout { flex-direction: column; }
    .doc-sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--ae-border); }
    .doc-content { padding: 1rem; }
    .doc-home-hero { flex-direction: column; }
    .doc-pres-grid { grid-template-columns: 1fr; }
    .doc-pres-tile--wide { grid-column: span 1; }
}

/* -- API page -- */
.doc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .doc-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .doc-grid-3 { grid-template-columns: 1fr; } }
.doc-use-case-card { background: var(--doc-surface); border: 1px solid var(--doc-border); border-radius: 10px; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.doc-use-case-card h4 { margin: 0; font-size: 0.95rem; color: var(--doc-accent); }
.doc-use-case-card p { margin: 0; font-size: 0.85rem; color: var(--doc-text-muted); line-height: 1.5; }
.doc-use-case-icon { font-size: 1.4rem; color: var(--doc-accent); margin-bottom: 0.3rem; }
.doc-info-box { background: var(--doc-surface); border: 1px solid var(--doc-accent); border-radius: 8px; padding: 1rem 1.2rem; font-size: 0.9rem; color: var(--doc-text); margin: 1.5rem 0; display: flex; gap: 0.7rem; align-items: flex-start; }
.doc-info-box i { font-size: 1.1rem; color: var(--doc-accent); flex-shrink: 0; }

/* -- Download section (Setup page) -- */
.doc-download-section { background: var(--doc-surface); border: 1px solid var(--doc-border); border-radius: 14px; padding: 2rem; margin-bottom: 2.5rem; }
.doc-download-hero { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.8rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--doc-border); }
.doc-download-hero-icon { font-size: 2.5rem; color: var(--doc-accent); flex-shrink: 0; }

/* ===== DOWNLOAD PAGE (Setup.cshtml) ===== */

/* Hero */
.dl-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(135deg, #1a2540 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}
.dl-hero-text h1 { margin: 0 0 .5rem; font-size: 1.9rem; color: #e2e8f0; }
.dl-hero-text p  { margin: 0; color: #94a3b8; font-size: 1rem; line-height: 1.6; }
.dl-hero-cta     { display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; flex-shrink: 0; }
.dl-hero-version { font-size: .8rem; color: #64748b; white-space: nowrap; }

/* Primary / Secondary buttons */
.dl-btn-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--ae-accent-2, #6366f1); color: #fff !important;
    padding: .7rem 1.4rem; border-radius: 6px;
    font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background .2s, transform .1s;
    box-shadow: none; border: none;
    cursor: pointer;
}
.dl-btn-primary:hover { background: #7c3aed; color: #fff !important; transform: translateY(-1px); }
.dl-btn-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: transparent; color: var(--ae-accent-2, #6366f1);
    border: 1px solid var(--ae-accent-2, #6366f1);
    padding: .7rem 1.4rem; border-radius: 6px;
    font-weight: 600; font-size: .95rem; text-decoration: none;
    transition: background .2s;
}
.dl-btn-secondary:hover { background: rgba(99,102,241,.12); color: var(--ae-accent-2); }

/* Edition cards */
.dl-editions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.dl-edition {
    position: relative;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dl-edition--featured {
    border-color: var(--ae-accent-2, #6366f1);
    box-shadow: 0 0 0 1px var(--ae-accent-2, #6366f1), 0 4px 24px rgba(99,102,241,.15);
}
.dl-edition-ribbon {
    position: absolute; top: -1px; right: 1.5rem;
    background: var(--ae-accent-2, #6366f1); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em;
    padding: .2rem .75rem; border-radius: 0 0 6px 6px;
    text-transform: uppercase;
}
.dl-edition-header { display: flex; align-items: flex-start; gap: 1rem; }
.dl-edition-name   { font-size: 1.15rem; font-weight: 700; color: #e2e8f0; margin-bottom: .25rem; }
.dl-edition-desc   { font-size: .88rem; color: #94a3b8; }
.dl-edition-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .45rem; }
.dl-edition-features li { font-size: .88rem; color: #cbd5e1; display: flex; align-items: center; gap: .5rem; }
.dl-edition-features .bi-check-circle-fill { color: #22c55e; flex-shrink: 0; }
.dl-edition-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: auto; }
.dl-edition-meta   { font-size: .78rem; color: #64748b; }

/* Badges */
.dl-badge-latest {
    background: #16a34a; color: #fff;
    font-size: .68rem; font-weight: 700; letter-spacing: .05em;
    padding: .15rem .55rem; border-radius: 4px; text-transform: uppercase;
}
.dl-badge-soon {
    background: #0369a1; color: #fff;
    font-size: .68rem; font-weight: 700; letter-spacing: .05em;
    padding: .15rem .55rem; border-radius: 4px; text-transform: uppercase;
    vertical-align: middle; margin-left: .35rem;
}

/* Versions history */
.dl-versions { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.dl-version-group {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}
.dl-version-group-header {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem 1.25rem; cursor: pointer;
    user-select: none; list-style: none;
    color: #e2e8f0; font-weight: 600;
}
.dl-version-group-header::-webkit-details-marker { display: none; }
.dl-version-group-header:hover { background: #263348; }
.dl-version-year  { font-size: .8rem; color: #64748b; font-weight: 500; }
.dl-version-group-title { flex: 1; }
.dl-chevron       { margin-left: auto; color: #64748b; transition: transform .25s; }
details[open] .dl-chevron { transform: rotate(180deg); }
.dl-version-list  { border-top: 1px solid #334155; }
.dl-version-row {
    display: grid;
    grid-template-columns: 260px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #1e293b;
}
.dl-version-row:last-child { border-bottom: none; }
.dl-version-row--latest { background: rgba(34,197,94,.04); }
.dl-version-info  { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dl-version-num   { font-weight: 600; color: #e2e8f0; font-size: .9rem; }
.dl-version-date  { font-size: .78rem; color: #64748b; }
.dl-version-desc  { font-size: .85rem; color: #94a3b8; }
.dl-version-notes { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.dl-version-note  {
    display: inline-block;
    font-size: .75rem;
    color: #94a3b8;
    background: rgba(148,163,184,.08);
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 999px;
    padding: .15rem .65rem;
    line-height: 1.5;
}
.dl-version-downloads { display: flex; align-items: center; gap: .75rem; }
.dl-version-size  { font-size: .78rem; color: #64748b; white-space: nowrap; }
.dl-btn-small {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #263348; color: #cbd5e1;
    border: 1px solid #475569; border-radius: 5px;
    padding: .35rem .85rem; font-size: .82rem; font-weight: 600;
    text-decoration: none; transition: background .2s, color .2s;
    white-space: nowrap;
}
.dl-btn-small:hover { background: var(--ae-accent-2, #6366f1); color: #fff; border-color: var(--ae-accent-2); }

/* System requirements grid */
.dl-sysreq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.dl-sysreq-item {
    display: flex; align-items: flex-start; gap: .85rem;
    background: #1e293b; border: 1px solid #334155;
    border-radius: 8px; padding: 1rem 1.25rem;
}
.dl-sysreq-item > .bi {
    font-size: 1.5rem; color: var(--ae-accent-2, #6366f1); flex-shrink: 0; margin-top: .1rem;
}
.dl-sysreq-label { font-size: .78rem; color: #64748b; margin-bottom: .2rem; }
.dl-sysreq-value { font-size: .9rem; color: #e2e8f0; font-weight: 500; }

/* Installation steps */
.dl-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .75rem; }
.dl-step {
    display: flex; align-items: flex-start; gap: 1.25rem;
    background: #1e293b; border: 1px solid #334155;
    border-radius: 10px; padding: 1.1rem 1.5rem;
}
.dl-step-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2.4rem; height: 2.4rem; border-radius: 8px; flex-shrink: 0;
    background: rgba(99,102,241,.15); color: var(--ae-accent-2, #6366f1);
    font-size: 1.15rem; margin-top: .1rem;
}
.dl-step-body { flex: 1; }
.dl-step-title { font-weight: 700; color: #e2e8f0; font-size: .95rem; margin-bottom: .3rem; }
.dl-step-desc  { font-size: .88rem; color: #94a3b8; line-height: 1.6; }
.dl-section-title { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.25rem; color: #e2e8f0; font-weight: 700; border-bottom: 1px solid #334155; padding-bottom: .5rem; }

/* Responsive */
@media (max-width: 768px) {
    .dl-hero        { flex-direction: column; align-items: flex-start; }
    .dl-hero-cta    { align-items: flex-start; }
    .dl-editions    { grid-template-columns: 1fr; }
    .dl-version-row { grid-template-columns: 1fr; gap: .5rem; }
}


/* ===== MODALS (ae-modal) =====*/
.ae-modal { background:#1e293b; border:1px solid #334155; border-radius:12px; padding:2rem; max-width:500px; width:90vw; color:#e2e8f0; overflow:visible; }
.ae-modal::backdrop { background:rgba(0,0,0,.7); }
.ae-modal-close-row { display:flex; justify-content:flex-end; margin:-.75rem -.75rem .5rem; border:none; padding:0; background:none; }
.ae-modal-close { background:none; border:none; font-size:1.4rem; color:#64748b; cursor:pointer; line-height:1; padding:.25rem .5rem; border-radius:4px; }
.ae-modal-close:hover { color:#e2e8f0; background:#334155; }
.ae-modal-title { font-size:1.1rem; font-weight:700; margin:0 0 1.25rem; display:flex; align-items:center; gap:.5rem; }
.ae-modal-form { display:flex; flex-direction:column; gap:1rem; }
.ae-modal-form .contact-field { display:flex; flex-direction:column; gap:.4rem; width:100%; }
.ae-modal-form .contact-input { width:100%; box-sizing:border-box; }
.ae-modal-form label { font-size:.88rem; color:#94a3b8; font-weight:500; }
.ae-modal-form .req { color:#f87171; }
.ae-modal-form .dl-btn-primary { width:auto; align-self:flex-start; box-shadow:none; }
/* Machine ID row: input + help button side by side */
.ae-machine-row { display:flex; align-items:center; gap:.5rem; }
.ae-machine-row .contact-input { flex:1; }
.ae-help-btn { background:#263348; border:1px solid #475569; border-radius:5px; color:#94a3b8; cursor:pointer; font-size:.8rem; padding:.4rem .65rem; white-space:nowrap; flex-shrink:0; }
.ae-help-btn:hover { background:#334155; color:#e2e8f0; }
/* Help tooltip popup */
.ae-help-popup { display:none; position:absolute; z-index:100; background:#0f172a; border:1px solid #475569; border-radius:8px; padding:.85rem 1rem; font-size:.82rem; color:#94a3b8; line-height:1.5; max-width:320px; box-shadow:0 8px 24px rgba(0,0,0,.5); }
.ae-help-popup.show { display:block; }
.ae-help-popup code { color:#a5b4fc; background:rgba(99,102,241,.12); padding:.1rem .3rem; border-radius:3px; }
.ae-machine-wrapper { position:relative; overflow:visible; }
