:root {
    --azure-blue: #0078d4;
    --azure-dark: #004578;
    --azure-light: #deecf9;
    --bg-primary: #1e1e2e;
    --bg-secondary: #2d2d44;
    --bg-card: #363652;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-heading: #ffffff;
    --border: #4a4a6a;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --purple: #9c27b0;
    --radius: 8px;

    /* Typography
       - UI font: Inter (loaded from Google Fonts in base.html) with a
         system-font fallback chain in case the network is unavailable.
       - Mono font: OS-native — SF Mono / Menlo on Mac, Consolas on Windows,
         common Linux mono fallbacks after that. Nothing is downloaded for
         mono; we use whatever the device already provides. */
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Cascadia Mono", "DejaVu Sans Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-ui);
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    /* Subtly improve rendering of Inter on dark backgrounds */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";
}

/* Code / monospace surfaces use the OS-native mono stack. */
code, pre, kbd, samp, tt {
    font-family: var(--font-mono);
}

/* ── Sidebar ─────────────────────────────────────────────────────── */

.sidebar {
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    padding: 1.5rem 0;
}

.sidebar-header {
    padding: 0.25rem 1rem 1.1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.sidebar-logo {
    width: 200px;
    max-width: 100%;
    height: auto;
}

.sidebar-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-secondary);
    opacity: 0.75;
}

.sidebar-beta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 152, 0, 0.45);
    background: rgba(255, 152, 0, 0.12);
    color: var(--warning);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-beta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--warning);
    display: inline-block;
    flex-shrink: 0;
}

/* ── Nav ── */
.nav-section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    opacity: 0.7;
    padding: 1rem 1.4rem 0.4rem;
}

.nav-links {
    list-style: none;
    padding: 0 0.6rem;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--bg-card); }
.nav-links a.active { background: var(--azure-blue); color: #fff; }

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.15s;
}
.nav-links a:hover .nav-icon { color: var(--text-primary); }
.nav-links a.active .nav-icon { color: #fff; }

/* ── Footer: user card + sign out ── */
.sidebar-footer {
    padding: 0.85rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
    min-width: 0;
}
.sidebar-user:hover,
.sidebar-user.active { background: var(--bg-card); }

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--azure-blue), var(--azure-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.sidebar-signout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--danger);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.15s, border-color 0.15s;
}
.sidebar-signout:hover {
    background: rgba(244, 67, 54, 0.08);
    border-color: var(--danger);
}

/* ── Content Area ────────────────────────────────────────────────── */

/* Right-hand column: main content + footer, offset by the sidebar. */
.page {
    margin-left: 240px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    padding: 2rem;
    flex: 1;
}

/* ── Global footer ── */
.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.app-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.app-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.app-footer-brand-name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-heading);
}

.app-footer-brand-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 152, 0, 0.5);
    background: rgba(255, 152, 0, 0.12);
    color: var(--warning);
}

.app-footer-copy {
    color: var(--text-secondary);
}

.app-footer-sub {
    color: var(--text-secondary);
    opacity: 0.75;
    font-size: 0.78rem;
}

.app-footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.app-footer-links a:hover {
    color: var(--azure-blue);
}

/* ── Changelog page ────────────────────────────────────────────────
   Server-rendered markdown. We style the raw HTML with clean typography —
   no card wrappers around each version (they were fragile with sibling
   selectors and caused floating orphaned pills). */

.changelog-doc {
    max-width: 780px;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-primary);
}

/* Hide the top-level "# Changelog" — the page already has its own heading. */
.changelog-doc > h1 { display: none; }

/* Intro paragraphs (before the first version) */
.changelog-doc > p {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

/* Beta callout blockquote */
.changelog-doc > blockquote {
    margin: 0.5rem 0 2.25rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.35);
    border-left: 3px solid var(--warning);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.changelog-doc > blockquote p { margin: 0; }
.changelog-doc > blockquote strong { color: var(--warning); }

/* Version heading — a strong section divider, NOT a card wrapper. */
.changelog-doc h2 {
    margin: 2.25rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--azure-blue);
    color: var(--text-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.changelog-doc > h2:first-of-type { margin-top: 0.5rem; }

/* Version-body paragraphs (the short blurb under [0.1.0]) */
.changelog-doc h2 + p,
.changelog-doc h2 + p + p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Subsection pill: Added / Changed / Fixed / Removed / Security */
.changelog-doc h3 {
    display: inline-block;
    margin: 1.25rem 0 0.5rem;
    padding: 0.22rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.changelog-doc h3[id*="added"]   { color: var(--success);    border-color: rgba(76,175,80,0.4);  background: rgba(76,175,80,0.10); }
.changelog-doc h3[id*="changed"] { color: var(--azure-blue); border-color: rgba(0,120,212,0.4);  background: rgba(0,120,212,0.10); }
.changelog-doc h3[id*="fixed"]   { color: var(--warning);    border-color: rgba(255,152,0,0.4);  background: rgba(255,152,0,0.10); }
.changelog-doc h3[id*="removed"] { color: var(--danger);     border-color: rgba(244,67,54,0.4);  background: rgba(244,67,54,0.10); }
.changelog-doc h3[id*="security"]{ color: var(--purple);     border-color: rgba(156,39,176,0.4); background: rgba(156,39,176,0.10); }

/* Bullets — dot marker, tight spacing, readable indent */
.changelog-doc ul {
    list-style: none;
    padding-left: 0.25rem;
    margin: 0.25rem 0 0.75rem;
}
.changelog-doc ul li {
    position: relative;
    padding-left: 1.1rem;
    margin: 0.5rem 0;
}
.changelog-doc ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--azure-blue);
    opacity: 0.75;
}
.changelog-doc ul li strong { color: var(--text-heading); }

/* Inline code (feature names, file paths) */
.changelog-doc code {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0 5px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Reference links at the bottom (e.g. [0.2.0]: https://…) */
.changelog-doc a { color: var(--azure-blue); text-decoration: none; }
.changelog-doc a:hover { text-decoration: underline; }

/* Links in the main content area — readable on dark backgrounds */
.content a:not(.btn) {
    color: #64b5f6;
    text-decoration: none;
}
.content a:not(.btn):hover {
    color: #90caf9;
    text-decoration: underline;
}

h2 { color: var(--text-heading); margin-bottom: 1rem; }
h3 { color: var(--text-heading); margin-bottom: 0.75rem; }
h4 { color: var(--text-heading); margin-bottom: 0.5rem; margin-top: 1rem; }

/* ── Cards ───────────────────────────────────────────────────────── */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-grid .card {
    text-align: center;
}

.card-grid .card h3 {
    font-size: 2rem;
    color: var(--azure-blue);
    margin-bottom: 0.25rem;
}

.card-grid .card p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* ── Page Header ─────────────────────────────────────────────────── */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Sections ────────────────────────────────────────────────────── */

.section { margin-bottom: 2rem; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th, .detail-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.detail-table th {
    color: var(--text-secondary);
    font-size: 0.85rem;
    width: 180px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    /* Default look = subtle outlined button so a plain `.btn` is always visible.
       Color modifiers below override the background/border. */
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s, border-color 0.15s, background 0.15s;
    color: var(--text-primary);
}

.btn:hover { opacity: 0.85; border-color: var(--azure-blue); }
.btn-primary { background: var(--azure-blue); border-color: var(--azure-blue); color: #fff; }
.btn-secondary { background: var(--bg-secondary); border-color: var(--border); color: var(--text-primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-primary:hover, .btn-danger:hover { border-color: transparent; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* ── Action Bar ──────────────────────────────────────────────────── */

.action-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.inline-form { display: inline; }

/* ── Form Row (horizontal) ───────────────────────────────────────── */

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-row select,
.form-row input {
    padding: 0.4rem 0.6rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.form-row select:focus,
.form-row input:focus {
    outline: none;
    border-color: var(--azure-blue);
}

/* ── Forms ────────────────────────────────────────────────────────── */

/* Global form element styling — dark theme for all inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
    padding: 0.6rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--azure-blue);
}

select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 600px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azure-blue);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--azure-blue);
}

/* ── Alerts ──────────────────────────────────────────────────────── */

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error { background: rgba(244, 67, 54, 0.15); border: 1px solid var(--danger); color: var(--danger); }
.alert-success { background: rgba(76, 175, 80, 0.15); border: 1px solid var(--success); color: var(--success); }

/* ── Badges ──────────────────────────────────────────────────────── */

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending { background: var(--bg-secondary); color: var(--text-secondary); }
.badge-created { background: var(--bg-secondary); color: var(--text-secondary); }
.badge-running { background: rgba(0, 120, 212, 0.2); color: var(--azure-blue); }
.badge-completed { background: rgba(76, 175, 80, 0.2); color: var(--success); }
.badge-failed { background: rgba(244, 67, 54, 0.2); color: var(--danger); }

/* Role badges */
.badge-admin { background: rgba(156, 39, 176, 0.2); color: var(--purple); }
.badge-user { background: var(--bg-secondary); color: var(--text-secondary); }
.badge-architect { background: rgba(0, 120, 212, 0.2); color: var(--azure-blue); }
.badge-engineer { background: rgba(76, 175, 80, 0.2); color: var(--success); }
.badge-reader { background: rgba(255, 152, 0, 0.2); color: var(--warning); }

/* Status badges */
.badge-skipped { background: rgba(160, 160, 176, 0.15); color: var(--text-secondary); }

/* Severity badges */
.badge-danger { background: rgba(244, 67, 54, 0.2); color: var(--danger); }
.badge-warning { background: rgba(255, 152, 0, 0.2); color: var(--warning); }
.badge-info { background: rgba(0, 120, 212, 0.2); color: var(--azure-blue); }

/* ── Team Columns (Customer Detail) ─────────────────────────────── */

.team-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.team-col {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.team-col-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.team-col-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.team-col .data-table { margin-bottom: 0; }

.team-readers {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
    .team-columns { grid-template-columns: 1fr; }
}

/* ── Customer Cards ─────────────────────────────────────────────── */

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}

.customer-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    overflow: hidden;
}

.customer-card:hover {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.04);
    transform: translateY(-2px);
}

.customer-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azure-blue), var(--azure-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.customer-avatar-lg {
    width: 52px;
    height: 52px;
    font-size: 1rem;
}

.customer-card-title {
    flex: 1;
    min-width: 0;
}

.customer-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-card-org {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.1rem;
}

.customer-card-body {
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.customer-card-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.customer-card-label {
    color: var(--text-secondary);
}

.customer-card-value {
    font-weight: 500;
}

/* ── Customer / Deployment Hero Header ────────────────────────────── */

.customer-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--azure-blue);
    flex-wrap: wrap;
    gap: 1rem;
}

.customer-hero-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 600px) {
    .customer-grid { grid-template-columns: 1fr; }
}

/* ── Design Workspace ────────────────────────────────────────────── */

.design-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    height: calc(100vh - 160px);
    min-height: 500px;
}

.design-chat-panel {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.design-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.design-chat-input {
    border-top: 1px solid var(--border);
    padding: 1rem;
    background: var(--bg-secondary);
}

.design-chat-input textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.design-chat-input textarea:focus {
    outline: none;
    border-color: var(--azure-blue);
}

/* ── Design sidebar boxes ── */
.sidebar-box {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.sidebar-box:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-box-title {
    margin: 0 0 0.6rem 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: left;
    margin-bottom: 0.4rem;
}

.sidebar-action-btn:last-child {
    margin-bottom: 0;
}

.sidebar-action-btn:hover:not(:disabled) {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.08);
}

.sidebar-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sidebar-action-btn.completed {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.06);
    color: var(--success);
}

.sidebar-check {
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.artifact-count {
    background: var(--azure-blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 1.2rem;
    height: 1.2rem;
    line-height: 1.2rem;
    text-align: center;
    border-radius: 10px;
    padding: 0 0.35rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.sidebar-approve-btn {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.sidebar-approve-btn.ready {
    border-color: var(--success);
    background: rgba(76, 175, 80, 0.12);
    color: var(--success);
}

.sidebar-approve-btn.ready:hover {
    background: rgba(76, 175, 80, 0.25);
}

.sidebar-approve-btn.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Typing indicator ── */
.typing-dots span {
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-secondary);
    animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.design-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    overflow-y: auto;
}

.design-welcome {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.design-welcome h3 { color: var(--text-heading); margin-bottom: 0.5rem; }

.design-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.design-suggestion {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.design-suggestion:hover {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.1);
}

/* Chat messages */
.chat-msg { margin-bottom: 1rem; }

.chat-msg-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.chat-msg-user .chat-msg-label { color: var(--azure-blue); }
.chat-msg-assistant .chat-msg-label { color: var(--success); }

/* Chat message timestamp — small muted text next to the sender label. */
.chat-msg-time {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.4rem;
    opacity: 0.75;
}

/* Same style for the tool-conversation rows on the step page. */
.conv-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
    opacity: 0.75;
    font-family: var(--font-mono);
}

.chat-msg-body {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-msg-user .chat-msg-body {
    background: rgba(0, 120, 212, 0.1);
    border: 1px solid rgba(0, 120, 212, 0.2);
}

/* Artifact sidebar items */
.design-artifact-item {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: background 0.15s;
    position: relative;
}

.design-artifact-item:hover { background: var(--bg-secondary); }

.design-artifact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.design-artifact-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.design-artifact-size { color: var(--text-secondary); font-size: 0.75rem; flex-shrink: 0; margin-left: 0.5rem; }

.artifact-delete-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
    margin-left: 0.25rem;
    flex-shrink: 0;
    border-radius: 3px;
    transition: color 0.15s, background 0.15s;
}

.design-artifact-item:hover .artifact-delete-btn {
    display: block;
}

.artifact-delete-btn:hover {
    color: var(--danger);
    background: rgba(244, 67, 54, 0.12);
}

@media (max-width: 900px) {
    .design-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .design-sidebar { order: -1; }
}

/* ── Deployment Q&A Chat ────────────────────────────────────────── */

.qa-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.qa-chat-header:hover {
    background: var(--bg-secondary);
}

.qa-toggle-icon {
    color: var(--text-secondary);
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.qa-chat-panel {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
    max-height: 500px;
}

.qa-chat-panel.open {
    display: flex;
}

.qa-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    min-height: 100px;
    max-height: 380px;
}

.qa-welcome {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.qa-chat-input {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
}

.qa-chat-input textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 0.65rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.qa-chat-input textarea:focus {
    outline: none;
    border-color: var(--azure-blue);
}

/* ── Guardrail Filters ───────────────────────────────────────────── */

.guardrail-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-parent {
    padding: 0.45rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.filter-parent:hover { border-color: var(--azure-blue); }
.filter-parent.active {
    background: var(--azure-blue);
    border-color: var(--azure-blue);
    color: #fff;
}

.filter-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding-left: 0.25rem;
}

.filter-sub {
    padding: 0.3rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter-sub:hover { border-color: var(--azure-blue); color: var(--text-primary); }
.filter-sub.active {
    background: rgba(0, 120, 212, 0.15);
    border-color: var(--azure-blue);
    color: var(--azure-blue);
}

.filter-count {
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 0.25rem;
}

.filter-clear {
    padding: 0.3rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    align-self: center;
}

.filter-tag {
    padding: 0.3rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.filter-tag:hover { border-color: var(--azure-blue); color: var(--text-primary); }
.filter-tag.active {
    background: rgba(0, 120, 212, 0.15);
    border-color: var(--azure-blue);
    color: var(--azure-blue);
}
.filter-tag.filter-show-all {
    font-weight: 600;
    color: var(--text-primary);
}
.filter-tag.filter-show-all.active {
    background: var(--azure-blue);
    border-color: var(--azure-blue);
    color: #fff;
}

.tag-dropdown {
    padding: 0.35rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 200px;
}
.tag-dropdown:focus {
    outline: none;
    border-color: var(--azure-blue);
}

.tag-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: rgba(0, 120, 212, 0.1);
    border: 1px solid rgba(0, 120, 212, 0.25);
    border-radius: 8px;
    font-size: 0.65rem;
    color: var(--azure-blue);
    margin-right: 0.2rem;
    margin-top: 0.2rem;
}

/* ── Guardrail review (live SSE) ──────────────────────────────── */
.guardrail-review-item {
    transition: opacity 0.2s, border-color 0.2s;
}
.guardrail-review-item .guardrail-btn {
    transition: opacity 0.15s;
}
.guardrail-review-item .guardrail-btn.active {
    opacity: 1 !important;
    font-weight: 700;
}

.filter-clear:hover { border-color: var(--danger); color: var(--danger); }

/* ── SKU Review (live SSE) ───────────────────────────────────────── */
.sku-review-card h3 {
    color: var(--azure-blue);
}

.sku-resource-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
}

.sku-resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.sku-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.sku-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.5rem 0.85rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    min-width: 110px;
    text-align: center;
    font-size: 0.85rem;
}

.sku-btn:hover {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.08);
    transform: translateY(-1px);
}

.sku-btn-selected {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.15);
    color: #fff;
    font-weight: 600;
}

.sku-btn-selected:hover {
    background: rgba(0, 120, 212, 0.22);
}

.sku-btn-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.sku-btn-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--azure-blue);
    opacity: 0.9;
}

.sku-btn-cost {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sku-btn-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Step Flow ───────────────────────────────────────────────────── */

.step-flow {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.step-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    white-space: nowrap;
    font-size: 0.85rem;
    text-align: center;
    min-width: 120px;
    transition: border-color 0.2s, color 0.2s;
}

.step-item:hover { border-color: var(--azure-blue); }
.step-item.active { border-color: var(--azure-blue); color: var(--azure-blue); }
.step-item.completed { border-color: var(--success); color: var(--success); }
.step-item.skipped { border-color: var(--border); color: var(--text-secondary); opacity: 0.55; }
.step-item.skipped:hover { border-color: var(--text-secondary); opacity: 0.75; }
.step-item.failed { border-color: var(--danger); color: var(--danger); }
.step-item.locked { opacity: 0.4; pointer-events: none; cursor: not-allowed; }

/* ── Flow Sections ──────────────────────────────────────────────── */

.flow-section {
    margin-bottom: 1.5rem;
}

.flow-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.flow-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.flow-title-design { color: var(--azure-blue); }
.flow-title-engineering { color: var(--success); }

/* ── Agent Output ────────────────────────────────────────────────── */

.agent-output {
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* ── Conversation History ───────────────────────────────────────── */

.conversation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 600px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.conv-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.conv-row-agent { flex-direction: row; }
.conv-row-user  { flex-direction: row-reverse; }

.conv-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
}

.conv-avatar-agent { background: var(--azure-blue); color: #fff; }
.conv-avatar-user  { background: var(--success); color: #fff; }

.conv-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius);
    max-width: 80%;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9rem;
}

.conv-bubble-agent    { background: var(--bg-secondary); color: var(--text-primary); }
.conv-bubble-question { background: rgba(0, 120, 212, 0.12); border: 1px solid rgba(0, 120, 212, 0.35); color: var(--text-primary); }
.conv-bubble-user     { background: var(--azure-dark); color: #fff; }

/* Tool call rows (commands, file writes, etc.) */
.conv-tool-row {
    margin-left: 36px;   /* align with bubble content past the avatar */
    font-size: 0.82rem;
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.conv-tool-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-secondary);
    transition: background 0.15s;
}

.conv-tool-header:hover { background: var(--bg-secondary); }

.conv-tool-header code {
    font-family: var(--font-mono);
    color: var(--azure-blue);
    font-size: 0.82rem;
}

.conv-tool-header .conv-tool-icon {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.conv-tool-header.open .conv-tool-icon { transform: rotate(90deg); }

.conv-tool-output {
    display: none;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: var(--text-secondary);
}

.conv-tool-header.open + .conv-tool-output { display: block; }

/* Separator between history and live output */
.conv-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0.5rem 0;
}

.conv-separator::before,
.conv-separator::after {
    content: "";
    flex: 1;
    border-top: 1px dashed var(--border);
}

/* ── Extraction Progress ───────────────────────────────────────── */

.extraction-progress {
    padding: 0.5rem 0;
}

.progress-phases {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    position: relative;
}

/* Connector line behind the phases */
.progress-phases::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    flex: 1;
}

.phase-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.progress-phase.active .phase-dot {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.2);
    color: var(--azure-blue);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.progress-phase.done .phase-dot {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(0, 120, 212, 0); }
}

.phase-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

.progress-phase.active .phase-label { color: var(--azure-blue); font-weight: 600; }
.progress-phase.done .phase-label   { color: var(--success); }

/* Progress bar */
.progress-bar-track {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--azure-blue);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 5%;
}

.progress-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Review actions card */
.review-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.75rem;
}

/* Requirements rendered output */
.requirements-content {
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.7;
    max-height: 600px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── File Upload Area ───────────────────────────────────────────── */

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.upload-area:hover {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.05);
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ── Data Table ──────────────────────────────────────────────────── */

.data-table, .table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td,
.table th, .table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th, .table th {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table tr:hover, .table tr:hover { background: var(--bg-secondary); }

.data-table a:not(.btn) {
    color: var(--azure-blue);
    text-decoration: none;
}

.data-table a:not(.btn):hover { text-decoration: underline; }

/* ── Auth ─────────────────────────────────────────────────────────── */

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h2 { text-align: center; margin-bottom: 1.5rem; }
.auth-card .btn { width: 100%; text-align: center; margin-top: 0.5rem; }

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}

/* ── Utilities ───────────────────────────────────────────────────── */

.muted { color: var(--text-secondary); }

/* Inline select in data table */
.data-table select {
    padding: 0.25rem 0.4rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.8rem;
}

/* ── Wiki ────────────────────────────────────────────────────────── */

.wiki-layout {
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 4rem);
}

.wiki-nav {
    width: 220px;
    flex-shrink: 0;
    padding: 1rem 0;
    border-right: 1px solid var(--border);
}

.wiki-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    padding: 1rem 1rem 0.4rem;
    font-weight: 600;
}

.wiki-nav ul {
    list-style: none;
    margin-bottom: 0.5rem;
}

.wiki-nav li a {
    display: block;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.wiki-nav li a:hover { background: var(--bg-card); }
.wiki-nav li a.active {
    color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.1);
    font-weight: 600;
}

.wiki-content {
    flex: 1;
    max-width: 900px;
    line-height: 1.7;
}

/* ── Wiki typography ─────────────────────────────────────────────── */

.wiki-content h2 { margin-top: 0; margin-bottom: 1rem; }
.wiki-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.wiki-content h4 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.wiki-content p { margin-bottom: 1rem; color: var(--text-primary); }
.wiki-content strong { color: var(--text-heading); }
.wiki-content a { color: var(--azure-blue); text-decoration: none; }
.wiki-content a:hover { text-decoration: underline; }

.wiki-content ul,
.wiki-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.wiki-content li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

/* ── Wiki tables ─────────────────────────────────────────────────── */

.wiki-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.wiki-content th, .wiki-content td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.wiki-content th {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
}

.wiki-content tr:hover { background: var(--bg-secondary); }

.wiki-content td code {
    background: var(--bg-secondary);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.85em;
}

/* ── Wiki code blocks ────────────────────────────────────────────── */

.wiki-content pre {
    background: #1a1a2e;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.wiki-content pre code {
    background: none;
    padding: 0;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.wiki-content code {
    font-family: var(--font-mono);
    color: var(--azure-blue);
    font-size: 0.88em;
}

/* ── Wiki cards ──────────────────────────────────────────────────── */

.wiki-content .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.wiki-content .card h4 {
    margin-top: 0;
    color: var(--azure-blue);
}

.wiki-content .card p:last-child { margin-bottom: 0; }

/* ── Wiki callouts ───────────────────────────────────────────────── */

.wiki-content .callout {
    border-left: 4px solid var(--azure-blue);
    background: rgba(0, 120, 212, 0.08);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.wiki-content .callout.warning {
    border-left-color: var(--warning);
    background: rgba(255, 152, 0, 0.08);
}

.wiki-content .callout.success {
    border-left-color: var(--success);
    background: rgba(76, 175, 80, 0.08);
}

.wiki-content .callout strong { color: var(--text-heading); }

/* ── Wiki diagrams ───────────────────────────────────────────────── */

.wiki-content .diagram {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.wiki-content .diagram-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.wiki-content .diagram-flow .node {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--text-primary);
}

.wiki-content .diagram-flow .node.tool {
    border-color: var(--azure-blue);
    color: var(--azure-blue);
}

.wiki-content .diagram-flow .node.gate {
    border-color: var(--warning);
    color: var(--warning);
}

.wiki-content .diagram-flow .arrow {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ── Wiki step flow ──────────────────────────────────────────────── */

.wiki-content .step-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.wiki-content .step-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    text-align: center;
    min-width: 80px;
}

.wiki-content .step-box.gate {
    border-color: var(--warning);
    background: rgba(255, 152, 0, 0.08);
}

.wiki-content .step-num {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.wiki-content .step-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-heading);
}

.wiki-content .step-box.gate .step-name { color: var(--warning); }

/* ── Wiki badges ─────────────────────────────────────────────────── */

.wiki-content .badge-agent {
    background: rgba(0, 120, 212, 0.15);
    color: var(--azure-blue);
}

.wiki-content .badge-gate {
    background: rgba(255, 152, 0, 0.15);
    color: var(--warning);
}

/* ── Wiki responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
    .wiki-layout {
        flex-direction: column;
    }
    .wiki-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
    }
}

/* ── Dashboard ──────────────────────────────────────────────────── */

.dash-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ── Admin sections ── */
.admin-section {
    margin-bottom: 2rem;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.admin-section-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-heading);
}

/* The deployment grid normally lives inside a card block (which supplies its
   inset). Standalone on the admin page it must drop that padding and match the
   customer grid's column width so all sections left-align on the same edge. */
.admin-section .dash-dep-grid {
    padding: 0;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

/* Clickable summary cards lift on hover */
a.dash-summary-card {
    color: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
a.dash-summary-card:hover {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.04);
    transform: translateY(-2px);
}

.dash-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
}

.dash-summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azure-blue);
    line-height: 1;
}

.dash-summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

/* ── Customer block ── */

.dash-customer-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dash-customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-customer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-customer-title a {
    color: var(--text-heading);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.dash-customer-title a:hover {
    color: var(--azure-blue);
}

.dash-customer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Activity dots */
.dash-activity {
    display: flex;
    gap: 4px;
    align-items: center;
}

.dash-activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    transition: background 0.2s;
}

.dash-activity-dot.active {
    background: var(--azure-blue);
    border-color: var(--azure-blue);
}

.dash-customer-counts {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dash-meta-sep {
    color: var(--border);
}

/* Deployment card grid */
.dash-dep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.dash-dep-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-dep-card:hover {
    border-color: var(--azure-blue);
    background: rgba(0, 120, 212, 0.04);
}

.dash-dep-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border);
    gap: 0.5rem;
}

.dash-dep-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-dep-card-body {
    padding: 0.6rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dash-dep-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.dash-dep-card-label {
    color: var(--text-secondary);
}

.dash-dep-card-value {
    font-weight: 600;
}

.dash-dep-card-footer {
    padding: 0.5rem 0.9rem;
    border-top: 1px solid var(--border);
}

.dash-dep-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Progress pips */
.dash-dep-progress {
    display: flex;
    gap: 3px;
    align-items: center;
}

.dash-pip {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
}

.dash-pip.filled {
    background: var(--success);
    border-color: var(--success);
}

.dash-pip.running {
    background: var(--warning);
    border-color: var(--warning);
    animation: pipPulse 1.5s ease-in-out infinite;
}

@keyframes pipPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.dash-empty {
    padding: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .dash-dep-grid {
        grid-template-columns: 1fr;
    }
}

/* Role badges */
.badge-admin { background: rgba(156,39,176,0.2); color: var(--purple); }
.badge-architect { background: rgba(0,120,212,0.2); color: var(--azure-blue); }
.badge-engineer { background: rgba(76,175,80,0.2); color: var(--success); }
.badge-reader { background: rgba(160,160,176,0.15); color: var(--text-secondary); }

/* ── Delivery Tollgate ──────────────────────────────────────────── */

.tollgate-check {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.tollgate-check.done {
    border-color: var(--success);
}

.tollgate-check-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.tollgate-check-status {
    flex-shrink: 0;
}

.tollgate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.tollgate-icon.pending {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.tollgate-icon.done {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid var(--success);
    color: var(--success);
    font-size: 1.1rem;
}

.tollgate-check-info {
    flex: 1;
    min-width: 0;
}

.tollgate-check-title {
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
}

.tollgate-check-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tollgate-check-action {
    flex-shrink: 0;
}

.tollgate-output {
    border-top: 1px solid var(--border);
    max-height: 600px;
    overflow-y: auto;
}

.tollgate-output-content {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    line-height: 1.6;
    word-wrap: break-word;
    color: var(--text-primary);
}

/* Rendered markdown inside tollgate output */
.tollgate-md {
    white-space: normal !important;
}
.tollgate-md h1, .tollgate-md h2, .tollgate-md h3, .tollgate-md h4 {
    color: var(--text-heading);
    margin: 0.75rem 0 0.3rem 0;
}
.tollgate-md h1 { font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.tollgate-md h2 { font-size: 1.05rem; }
.tollgate-md h3 { font-size: 0.95rem; }
.tollgate-md h4 { font-size: 0.88rem; color: var(--text-secondary); }
.tollgate-md p { margin: 0.3rem 0; }
.tollgate-md ul, .tollgate-md ol { margin: 0.2rem 0 0.2rem 1.5rem; }
.tollgate-md li { margin-bottom: 0.15rem; }
.tollgate-md > *:first-child { margin-top: 0; }
.tollgate-md strong { color: var(--text-heading); }
.tollgate-md code {
    background: var(--bg-primary);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.82rem;
}
.tollgate-md pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}
.tollgate-md pre code {
    background: none;
    padding: 0;
}
.tollgate-md table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    font-size: 0.82rem;
}
.tollgate-md th, .tollgate-md td {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    text-align: left;
}
.tollgate-md th {
    background: var(--bg-primary);
    color: var(--text-heading);
    font-weight: 600;
}
.tollgate-md hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.75rem 0;
}
.tollgate-md blockquote {
    border-left: 3px solid var(--azure-blue);
    margin: 0.5rem 0;
    padding: 0.3rem 0.75rem;
    color: var(--text-secondary);
}
.tollgate-md a {
    color: #64b5f6;
    text-decoration: none;
}
.tollgate-md a:hover {
    text-decoration: underline;
    color: #90caf9;
}

/* ── Global rendered markdown ───────────────────────────────────── */
/* Applied automatically by the DOMContentLoaded renderer in base.html
   or manually via renderMarkdown() for SSE-streamed content.          */

/* Override pre-wrap that was needed for raw text but breaks rendered HTML.
   Without this, newlines between <p> tags are displayed as extra blank
   lines on top of the paragraph margins.                                */
.md-rendered {
    white-space: normal !important;
}

.md-rendered h1, .md-rendered h2, .md-rendered h3, .md-rendered h4 {
    color: var(--text-heading);
    margin: 0.75rem 0 0.3rem 0;
}
.md-rendered h1 { font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.md-rendered h2 { font-size: 1.05rem; }
.md-rendered h3 { font-size: 0.95rem; }
.md-rendered h4 { font-size: 0.88rem; color: var(--text-secondary); }
.md-rendered p { margin: 0.3rem 0; }
.md-rendered ul, .md-rendered ol { margin: 0.2rem 0 0.2rem 1.5rem; }
.md-rendered li { margin-bottom: 0.15rem; }
/* Remove top margin from the very first element to avoid gap at top of bubble */
.md-rendered > *:first-child { margin-top: 0; }
.md-rendered strong { color: var(--text-heading); }
.md-rendered code {
    background: var(--bg-primary);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.82rem;
}
.md-rendered pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}
.md-rendered pre code {
    background: none;
    padding: 0;
}
.md-rendered table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    font-size: 0.82rem;
}
.md-rendered th, .md-rendered td {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    text-align: left;
}
.md-rendered th {
    background: var(--bg-primary);
    color: var(--text-heading);
    font-weight: 600;
}
.md-rendered hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.75rem 0;
}
.md-rendered blockquote {
    border-left: 3px solid var(--azure-blue);
    margin: 0.5rem 0;
    padding: 0.3rem 0.75rem;
    color: var(--text-secondary);
}
.md-rendered a {
    color: #64b5f6;
    text-decoration: none;
}
.md-rendered a:hover {
    text-decoration: underline;
    color: #90caf9;
}

/* ── Generic modal ─────────────────────────────────────────────────── */
.modal-overlay {
    display: none;                 /* toggled to flex by openModalEl() */
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 1rem;
    overflow-y: auto;
}
.modal-dialog {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 92vh;
}
.modal-dialog-wide { max-width: 920px; }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; color: var(--text-heading); font-size: 1.05rem; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 1.25rem; overflow-y: auto; }
.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ── Engagement chat ───────────────────────────────────────────────── */
.eng-chat-log {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.25rem;
    margin-bottom: 0.75rem;
}
.eng-chat-log:empty { display: none; }
.eng-msg { max-width: 85%; }
.eng-msg-user { align-self: flex-end; text-align: right; }
.eng-msg-assistant { align-self: flex-start; }
.eng-msg-body {
    display: inline-block;
    text-align: left;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
}
.eng-msg-user .eng-msg-body {
    background: var(--azure-blue);
    border-color: var(--azure-blue);
    color: #fff;
}
.eng-chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.eng-chat-form textarea {
    width: 100%;
    resize: vertical;
}
.eng-chat-actions {
    display: flex;
    gap: 0.5rem;
}

/* ── Sidebar unread-feedback badge ─────────────────────────────────── */
.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    min-width: 1.1rem;
    text-align: center;
}
.nav-links a.active .nav-badge { background: #fff; color: var(--azure-blue); }

/* ── File input (e.g. feedback screenshot upload) ──────────────────── */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s;
}
input[type="file"]:hover { border-color: var(--azure-blue); }
input[type="file"]:focus { outline: none; border-color: var(--azure-blue); }

input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    margin-right: 0.9rem;
    background: var(--azure-blue);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
input[type="file"]::file-selector-button:hover { background: var(--azure-dark); }

/* ── "New version" toast (bottom-right, dismiss remembered per version) ── */
.version-toast {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1100;
    background: var(--bg-card);
    border: 1px solid var(--azure-blue);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 0.9rem 2.2rem 0.9rem 1rem;
    max-width: 320px;
    align-items: flex-start;
    animation: versionToastIn 0.3s ease-out;
}
@keyframes versionToastIn {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.version-toast-close {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem;
}
.version-toast-close:hover { color: var(--text-primary); }
.version-toast-link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-decoration: none;
}
.version-toast-link strong {
    color: var(--azure-blue);
    font-size: 0.92rem;
}
.version-toast-link span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
