/* Copyright (c) 2026 Scott Murray. All rights reserved. */
/* See LICENSE file for details. */
/* === CSS Custom Properties === */
:root {
    --primary: #003B5C;
    --primary-light: #005580;
    --primary-dark: #002940;
    --accent: #0077B6;
    --bg-dark: #1a1a2e;
    --bg-sidebar: #16213e;
    --bg-card: #1e2a3a;
    --bg-input: #253345;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a8b4;
    --text-muted: #6c7580;
    --border: #2d3a4a;
    --success: #00B050;
    --warning: #FFA500;
    --danger: #FF0000;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --transition: 0.2s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Intro Splash Screen === */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    max-width: 720px;
    width: 100%;
    padding: 3rem 2rem;
    text-align: center;
    animation: splashFadeIn 0.8s ease;
}

@keyframes splashFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.splash-logo {
    margin-bottom: 1.25rem;
}

.splash-logo-img {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 20px rgba(0, 119, 182, 0.35));
    animation: splashPulse 3s ease-in-out infinite;
}

@keyframes splashPulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 119, 182, 0.35)); }
    50%      { filter: drop-shadow(0 0 32px rgba(0, 119, 182, 0.55)); }
}

.splash-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.splash-subtitle {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.splash-section {
    margin-bottom: 1.75rem;
}

.splash-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* Dataflow diagram */
.splash-dataflow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.dataflow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    animation: dataflowSlide 0.8s ease both;
}

.dataflow-row:nth-child(1) { animation-delay: 0.3s; }
.dataflow-row:nth-child(2) { animation-delay: 0.5s; }
.dataflow-row:nth-child(3) { animation-delay: 0.7s; }

@keyframes dataflowSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.dataflow-node {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    min-width: 150px;
    justify-content: center;
}

.dataflow-node.dataflow-source {
    border-color: var(--text-muted);
}

.dataflow-node.dataflow-engine {
    border-color: var(--accent);
    background: rgba(0, 119, 182, 0.1);
}

.dataflow-node.dataflow-output {
    border-color: var(--success);
    background: rgba(0, 176, 80, 0.08);
}

.dataflow-node.dataflow-kit {
    border-color: var(--accent);
    background: rgba(0, 119, 182, 0.15);
    box-shadow: 0 0 12px rgba(0, 119, 182, 0.25);
}

.dataflow-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dataflow-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.dataflow-arrow {
    width: 36px;
    height: 2px;
    background: var(--border);
    position: relative;
    flex-shrink: 0;
    margin: 0 0.15rem;
}

.dataflow-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left: 6px solid var(--accent);
}

/* Feature list */
.splash-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 2.25rem;
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.splash-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    animation: splashFadeIn 0.6s ease both;
}

.splash-feature:nth-child(1) { animation-delay: 0.9s; }
.splash-feature:nth-child(2) { animation-delay: 1.0s; }
.splash-feature:nth-child(3) { animation-delay: 1.1s; }
.splash-feature:nth-child(4) { animation-delay: 1.2s; }

.splash-feature-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.splash-feature-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* CTA Button */
.splash-cta {
    display: inline-block;
    padding: 0.85rem 2.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.35);
    animation: splashFadeIn 0.6s ease 1.4s both;
}

.splash-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 119, 182, 0.5);
}

.splash-cta:active {
    transform: translateY(0);
}

.splash-cta-group { text-align: center; }

/* Dashboard — Try It Out */
.dash-tryit {
    display: flex; align-items: center; gap: 0.9rem;
    margin-top: 1.25rem; padding: 0.9rem 1rem;
    background: rgba(0,119,182,0.06); border: 1px dashed var(--accent);
    border-radius: var(--radius);
}
.dash-tryit-btn {
    flex-shrink: 0; padding: 0.45rem 1rem; font-size: 0.82rem; font-weight: 600;
    color: #fff; background: var(--accent); border: none; border-radius: var(--radius);
    cursor: pointer; text-decoration: none; transition: background var(--transition);
}
.dash-tryit-btn:hover { background: var(--accent-hover); }
.dash-tryit-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }

/* Sample Project Modal */
.sample-download-btn {
    display: inline-block; padding: 0.6rem 1.5rem;
    font-size: 0.9rem; font-weight: 600; color: #fff;
    background: var(--accent); border-radius: var(--radius);
    text-decoration: none; transition: background var(--transition);
}
.sample-download-btn:hover { background: var(--accent-hover); }
.sample-steps { padding-left: 1.2rem; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.sample-steps li { margin-bottom: 0.5rem; }
.sample-steps ul { padding-left: 1.2rem; margin-top: 0.3rem; list-style: disc; }
.sample-steps code { background: var(--bg-card); padding: 0.1rem 0.4rem; border-radius: 3px; font-size: 0.82rem; }
.sample-next-steps { padding-left: 1.2rem; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.sample-next-steps li { margin-bottom: 0.3rem; }

/* === Top Navigation === */
.top-nav {
    background: var(--primary);
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
}

.nav-brand h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

/* === Nav Button Group === */
.nav-btn-group {
    display: flex; align-items: center; gap: 0.5rem;
}

/* === Help Button === */
.help-btn {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.8); font-size: 0.78rem; font-weight: 600;
    padding: 0.3rem 0.7rem; border-radius: var(--radius); cursor: pointer;
    transition: all var(--transition); margin-left: 0.5rem;
}
.help-btn:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.35); }

/* === Project Selector === */
.project-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-selector-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.project-selector-dropdown {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    min-width: 180px;
    max-width: 280px;
    cursor: pointer;
}

.project-selector-dropdown:focus {
    outline: none;
    border-color: var(--accent);
}

.project-selector-dropdown option {
    background: var(--bg-sidebar);
    color: var(--text-primary);
}

.btn-new-project {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background var(--transition);
}

.btn-new-project:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Query response */
.response-content {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--text-primary);
    max-height: 600px;
    overflow-y: auto;
}

/* --- Markdown: Headings --- */
.response-content h1,
.response-content h2,
.response-content h3,
.response-content h4 {
    color: var(--accent);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border);
}

.response-content h1 { font-size: 1.3rem; }
.response-content h2 { font-size: 1.15rem; }
.response-content h3 { font-size: 1.05rem; border-bottom: none; }
.response-content h4 { font-size: 0.95rem; border-bottom: none; color: var(--text-primary); }

.response-content h1:first-child,
.response-content h2:first-child,
.response-content h3:first-child {
    margin-top: 0;
}

/* --- Markdown: Paragraphs --- */
.response-content p {
    margin-bottom: 0.75rem;
}

.response-content p:last-child {
    margin-bottom: 0;
}

/* --- Markdown: Bold & Italic --- */
.response-content strong {
    color: #fff;
    font-weight: 600;
}

.response-content em {
    color: var(--text-secondary);
    font-style: italic;
}

/* --- Markdown: Lists --- */
.response-content ul,
.response-content ol {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1.5rem;
}

.response-content li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

.response-content li::marker {
    color: var(--accent);
}

.response-content ol li::marker {
    color: var(--accent);
    font-weight: 600;
}

/* Nested lists */
.response-content li ul,
.response-content li ol {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}

/* --- Markdown: Tables --- */
.response-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.88rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.response-content thead th {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none;
}

.response-content tbody td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.response-content tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.response-content tbody tr:hover {
    background: rgba(0, 119, 182, 0.08);
}

/* --- Markdown: Code --- */
.response-content code {
    background: rgba(0, 119, 182, 0.12);
    color: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.88em;
    font-family: "Consolas", "Monaco", monospace;
}

.response-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin: 0.75rem 0;
    overflow-x: auto;
}

.response-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.85rem;
}

/* --- Markdown: Blockquotes --- */
.response-content blockquote {
    border-left: 3px solid var(--accent);
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 119, 182, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
}

.response-content blockquote p {
    margin-bottom: 0.25rem;
}

/* --- Markdown: Horizontal Rule --- */
.response-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1rem 0;
}

/* --- Markdown: Links --- */
.response-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.response-content a:hover {
    color: var(--primary-light);
}

.provider-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* === App Layout === */
.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* === Sidebar === */
.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: 56px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    text-align: left;
    transition: color var(--transition);
}

.sidebar-toggle:hover {
    color: var(--text-primary);
}

.module-list {
    list-style: none;
    padding: 0.5rem 0;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.module-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.module-item.active {
    background: rgba(0, 119, 182, 0.15);
    border-left-color: var(--accent);
}

.module-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.module-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: opacity var(--transition);
}

.module-item.active .module-label {
    color: var(--text-primary);
    font-weight: 500;
}

.sidebar.collapsed .module-label {
    opacity: 0;
}

/* === Main Content === */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 56px - 40px);
}

.module-panel {
    display: none;
}

.module-panel.active {
    display: block;
}

.module-panel h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.module-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.stub-notice {
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin-top: 1rem;
}

/* === Field Help Tooltips === */
.field-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 0.35rem;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.field-help:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.field-help:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 400;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    z-index: 200;
    box-shadow: var(--shadow);
    pointer-events: none;
}

.field-help:hover::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--border);
    z-index: 201;
    pointer-events: none;
}

/* === Forms === */
.module-form {
    max-width: 900px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 180px;
}

input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    resize: vertical;
}

select {
    cursor: pointer;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.generation-status {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-style: italic;
}

.optional-fields {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.optional-fields summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.optional-fields[open] summary {
    margin-bottom: 0.75rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Results Panel === */
.results-panel {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.results-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* === Results Header (title + export buttons) === */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.results-header h3 {
    margin-bottom: 0;
}

.export-actions {
    display: flex;
    gap: 0.4rem;
}

.btn-export {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-export:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 119, 182, 0.08);
}

.btn-export.copied {
    border-color: var(--success);
    color: var(--success);
}

.download-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background var(--transition);
}

.download-btn:hover {
    background: var(--primary-dark);
}

.token-usage {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* === Follow-Up Form === */
.follow-up-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.follow-up-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.follow-up-form textarea {
    margin-bottom: 0.75rem;
}

.follow-up-form .btn {
    margin-right: 0.5rem;
}

/* === Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

th {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

td {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* === RAG Badges === */
.rag-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rag-red { background: var(--danger); color: #fff; }
.rag-amber { background: var(--warning); color: #000; }
.rag-green { background: var(--success); color: #fff; }

/* === Toast Notifications === */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 3.7s;
    animation-fill-mode: forwards;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); color: #000; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}

/* === Footer === */
.app-footer {
    text-align: center;
    padding: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
}

/* === Upload Warning === */
.upload-warning {
    font-size: 0.75rem;
    color: var(--warning);
    margin-top: 0.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.4;
}

.upload-warning-icon {
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* === Drag & Drop Zone === */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    transition: border-color var(--transition), background var(--transition);
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(0, 119, 182, 0.05);
}

/* === Loading Overlay === */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: var(--radius);
}

.loading-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* === RAID Log Tabs === */
.raid-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.raid-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--transition), border-color var(--transition);
}

.raid-tab:hover {
    color: var(--text-secondary);
}

.raid-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.raid-fields {
    display: none;
}

.raid-fields.active {
    display: block;
}

/* === RAG Selector === */
.rag-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.rag-option {
    padding: 0.4rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.rag-option:hover {
    border-color: var(--text-muted);
}

.rag-green-btn.active {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.rag-amber-btn.active {
    background: var(--warning);
    border-color: var(--warning);
    color: #000;
}

.rag-red-btn.active {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* === Checkbox Grid === */
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 0.35rem;
}

/* === Resource List Builder === */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.resource-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.resource-input {
    padding: 0.5rem 0.6rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
}

.resource-input:focus {
    outline: none;
    border-color: var(--accent);
}

.resource-input:first-child {
    flex: 2;
}

.resource-input:nth-child(2) {
    flex: 2;
}

.resource-fte {
    width: 70px;
    flex: 0 0 70px !important;
}

.btn-icon {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-icon:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* === Secondary Button === */
.btn-secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* === Conditional Sections === */
.conditional-section {
    transition: opacity var(--transition);
}

/* === PM Alerts Toggle Button (Nav) === */
.alerts-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background var(--transition);
    margin-left: 0.75rem;
}

.alerts-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logout-btn {
    color: var(--text-muted); font-size: 0.78rem; text-decoration: none;
    padding: 0.3rem 0.7rem; border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius); transition: all var(--transition); margin-left: 0.25rem;
}
.logout-btn:hover { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); }

.alerts-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.alerts-badge.badge-critical { background: var(--danger); }
.alerts-badge.badge-high { background: #e65100; }
.alerts-badge.badge-medium { background: var(--warning); color: #000; }
.alerts-badge.badge-low { background: var(--text-muted); }

/* === PM Alerts Panel (Right Sidebar) === */
.alerts-panel {
    width: 0;
    min-width: 0;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
    flex-shrink: 0;
}

.alerts-panel.open {
    width: 380px;
    min-width: 380px;
}

.alerts-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.alerts-panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.alerts-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}

.alerts-close-btn:hover {
    color: var(--text-primary);
}

.alerts-bulk-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.btn-sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

.btn-alert-accept {
    background: var(--success);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
}

.btn-alert-accept:hover {
    opacity: 0.9;
}

.btn-alert-dismiss {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
}

.btn-alert-dismiss:hover {
    background: var(--bg-card);
}

.alerts-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.alerts-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
    font-style: italic;
}

/* Alert Groups */
.alerts-group {
    margin-bottom: 0.5rem;
}

.alerts-group-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 3px;
}

.alerts-group-header.priority-critical { color: var(--danger); background: rgba(255, 0, 0, 0.1); }
.alerts-group-header.priority-high { color: #e65100; background: rgba(230, 81, 0, 0.1); }
.alerts-group-header.priority-medium { color: var(--warning); background: rgba(255, 165, 0, 0.1); }
.alerts-group-header.priority-low { color: var(--text-muted); background: rgba(108, 117, 128, 0.1); }

/* Alert Cards */
.alert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.4rem;
    overflow: hidden;
    transition: border-color var(--transition);
}

.alert-card:hover {
    border-color: var(--text-muted);
}

.alert-card.priority-critical { border-left: 3px solid var(--danger); }
.alert-card.priority-high { border-left: 3px solid #e65100; }
.alert-card.priority-medium { border-left: 3px solid var(--warning); }
.alert-card.priority-low { border-left: 3px solid var(--text-muted); }

.alert-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.alert-type-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.alert-type-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-summary {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-priority-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.alert-priority-badge.priority-critical { background: var(--danger); color: #fff; }
.alert-priority-badge.priority-high { background: #e65100; color: #fff; }
.alert-priority-badge.priority-medium { background: var(--warning); color: #000; }
.alert-priority-badge.priority-low { background: var(--bg-input); color: var(--text-muted); }

/* Alert Card Body (expanded) */
.alert-card-body {
    display: none;
    padding: 0 0.6rem 0.6rem;
    font-size: 0.78rem;
}

.alert-card.expanded .alert-card-body {
    display: block;
}

.alert-details {
    margin-bottom: 0.5rem;
}

.alert-detail-row {
    padding: 0.15rem 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.alert-detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

.alert-snow-action {
    background: rgba(0, 119, 182, 0.1);
    border: 1px solid rgba(0, 119, 182, 0.2);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.snow-label {
    font-weight: 600;
}

.alert-source {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
}

.alert-actions .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
}

/* === Mode Toggle (Query vs Add Data) === */
.mode-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: var(--bg-input);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 360px;
}

.mode-btn {
    flex: 1;
    padding: 0.6rem 1.2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.mode-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.mode-btn.active {
    background: var(--accent);
    color: #fff;
}

.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

/* === Prompt Template Chips === */
.prompt-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.prompt-chip {
    background: var(--bg-input); border: 1px solid var(--border); border-radius: 16px;
    color: var(--text-secondary); font-size: 0.78rem; padding: 0.3rem 0.85rem;
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.prompt-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,119,182,0.08); }

/* === Chat Conversation Turns === */
.chat-turn { margin-bottom: 1.25rem; }
.chat-user { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.4rem; padding: 0.3rem 0.5rem; background: rgba(0,119,182,0.05); border-radius: var(--radius); }
.chat-assistant { margin-top: 0.35rem; }

/* === Dashboard === */
/* Dashboard — Getting Started */
.dash-getting-started {
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; max-width: 640px;
}
.dash-getting-started h3 { font-size: 1.05rem; color: var(--accent); margin-bottom: 0.5rem; }
.dash-getting-started > p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.dash-gs-channels { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-gs-item {
    font-size: 0.84rem; color: var(--text-secondary); padding: 0.6rem 0.75rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.dash-gs-primary { border-color: var(--accent); background: rgba(0,119,182,0.08); }
.dash-gs-item strong { color: var(--text-primary); }
.dash-gs-item em { color: var(--accent); font-style: normal; font-weight: 600; }

.dash-meta {
    display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1.5rem;
    font-size: 0.9rem; color: var(--text-secondary); align-items: center;
}
.dash-phase-badge {
    background: var(--accent); color: #fff; padding: 0.2rem 0.75rem; border-radius: 12px;
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.dash-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem; margin-bottom: 1rem;
}
.dash-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; text-align: center; position: relative; transition: all 0.25s ease;
}
.dash-card-icon { font-size: 1.3rem; margin-bottom: 0.25rem; }
.dash-card-clickable { cursor: pointer; }
.dash-card-clickable:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.dash-card-active { border-color: var(--accent); background: rgba(0,119,182,0.08); }
.dash-card-expand { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-card-ok { border-left: 3px solid var(--success); }
.dash-card-warning { border-left: 3px solid var(--warning); }
.dash-card-danger { border-left: 3px solid var(--danger); }
.dash-card-neutral { border-left: 3px solid var(--accent); }
.dash-card-value { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.dash-card-ok .dash-card-value { color: var(--success); }
.dash-card-warning .dash-card-value { color: var(--warning); }
.dash-card-danger .dash-card-value { color: var(--danger); }
.dash-card-neutral .dash-card-value { color: var(--accent); }
.dash-card-label { font-size: 0.78rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.35rem; font-weight: 600; }
.dash-card-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem; line-height: 1.6; }
.dash-bar { height: 6px; background: var(--bg-input); border-radius: 3px; margin-top: 0.6rem; overflow: hidden; }
.dash-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.dash-bar-dash-color-success { background: var(--success); }
.dash-bar-dash-color-warning { background: var(--warning); }
.dash-bar-dash-color-danger { background: var(--danger); }

/* Dashboard chips (inline colored badges) */
.dash-chip { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 8px; font-size: 0.7rem; font-weight: 600; }
.dash-chip-success { background: rgba(0,176,80,0.15); color: #4cdf8a; }
.dash-chip-danger { background: rgba(255,0,0,0.12); color: #ff6b6b; }
.dash-chip-warning { background: rgba(255,165,0,0.12); color: #ffb347; }
.dash-chip-info { background: rgba(0,119,182,0.12); color: #5ec5f0; }
.dash-chip-muted { background: rgba(108,117,128,0.15); color: var(--text-muted); }
.dash-chip-small { font-size: 0.63rem; padding: 0.05rem 0.35rem; }

/* Drilldown panels */
.dd-panels { margin-top: 0.5rem; }
.dd-panel { background: var(--bg-card); border: 1px solid var(--accent); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; animation: ddSlide 0.25s ease; }
@keyframes ddSlide { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 1000px; } }
.dd-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: rgba(0,119,182,0.08); border-bottom: 1px solid var(--border); }
.dd-header h3 { font-size: 0.95rem; color: var(--accent); margin: 0; }
.dd-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.dd-export { background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-secondary); font-size: 0.75rem; padding: 0.25rem 0.65rem; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.dd-export:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,119,182,0.08); }
.dd-close { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; padding: 0 0.3rem; line-height: 1; }
.dd-close:hover { color: var(--danger); }
.dd-body { padding: 0.75rem 1rem; max-height: 400px; overflow-y: auto; }
.dd-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.dd-table th { text-align: left; padding: 0.4rem 0.6rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.dd-table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid rgba(45,58,74,0.5); color: var(--text-secondary); }
.dd-table tbody tr:hover { background: rgba(0,119,182,0.05); }
.dd-row-danger { background: rgba(255,0,0,0.04); }
.dd-row-danger td { color: #ff6b6b; }
.dd-empty { color: var(--text-muted); font-size: 0.85rem; padding: 0.5rem 0; }
.dd-section-title { font-size: 0.85rem; margin: 0.75rem 0 0.4rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--border); }
.dd-section-danger { color: var(--danger); }
.dd-section-info { color: var(--accent); }
.dd-section-success { color: var(--success); }
.dd-section-muted { color: var(--text-muted); }

/* Drilldown status badges */
.dd-badge { display: inline-block; padding: 0.12rem 0.5rem; border-radius: 10px; font-size: 0.7rem; font-weight: 600; text-transform: capitalize; }
.dd-badge-success { background: rgba(0,176,80,0.15); color: #4cdf8a; }
.dd-badge-danger { background: rgba(255,0,0,0.15); color: #ff6b6b; }
.dd-badge-warning { background: rgba(255,165,0,0.15); color: #ffb347; }
.dd-badge-info { background: rgba(0,119,182,0.15); color: #5ec5f0; }
.dd-badge-muted { background: rgba(108,117,128,0.15); color: var(--text-muted); }

/* Portfolio banner */
.dash-portfolio-banner {
    background: linear-gradient(135deg, rgba(0,119,182,0.15), rgba(0,176,80,0.08));
    border: 1px solid var(--accent); border-radius: var(--radius);
    padding: 0.7rem 1.2rem; margin-bottom: 1.25rem; font-weight: 600;
    color: var(--accent); font-size: 0.95rem; text-align: center;
}

/* Portfolio sub-project cards */
.dash-portfolio-section { margin-top: 1.5rem; }
.dash-section-heading { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.4rem; }
.dash-sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.dash-sub-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; transition: all 0.2s ease; }
.dash-sub-card:hover { border-color: var(--text-muted); }
.dash-sub-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.dash-sub-name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.dash-sub-health-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dash-health-green .dash-sub-health-dot { background: var(--success); box-shadow: 0 0 6px rgba(0,176,80,0.5); }
.dash-health-amber .dash-sub-health-dot { background: var(--warning); box-shadow: 0 0 6px rgba(255,165,0,0.5); }
.dash-health-red .dash-sub-health-dot { background: var(--danger); box-shadow: 0 0 6px rgba(255,0,0,0.5); }
.dash-health-green { border-left: 3px solid var(--success); }
.dash-health-amber { border-left: 3px solid var(--warning); }
.dash-health-red { border-left: 3px solid var(--danger); }
.dash-sub-clickable { cursor: pointer; }
.dash-sub-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.dash-sub-drill-hint { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.5rem; text-align: center; }
.dash-sub-stats { font-size: 0.82rem; color: var(--text-secondary); display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.5rem; }

/* === File Table === */
.file-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }

/* === Timeline Visualization === */
/* === Timeline === */
.tl-banner {
    font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 1.25rem;
    padding: 0.5rem 1rem; background: rgba(0,119,182,0.08); border: 1px solid var(--accent);
    border-radius: var(--radius); text-align: center;
}
.tl-project { margin-bottom: 2.5rem; }
.tl-hdr {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap;
}
.tl-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.tl-chip {
    font-size: 0.72rem; color: var(--text-muted); background: var(--bg-input);
    padding: 0.15rem 0.6rem; border-radius: 10px;
}
.tl-chip-gl { background: rgba(0,176,80,0.1); color: var(--success); font-weight: 600; }

/* Chart container */
.tl-chart {
    position: relative; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0 2rem; overflow: visible;
}

/* ── Month bar (central dark strip) ── */
.tl-bar {
    position: relative; height: 36px;
    background: rgba(0,59,92,0.75); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; overflow: hidden;
}
.tl-mo {
    position: absolute; top: 0; height: 100%;
    border-left: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; color: rgba(255,255,255,0.8);
    text-transform: uppercase; letter-spacing: 0.04em; user-select: none;
}
.tl-mo:first-child { border-left: none; }

/* ── Above / Below zones ── */
.tl-above, .tl-below { position: relative; }

/* ── Milestone items ── */
.tl-ms { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 2; cursor: default; }
.tl-ms:hover { z-index: 8; }
.tl-ms:hover .tl-ms-label { background: var(--bg-input); box-shadow: 0 2px 10px rgba(0,0,0,0.35); }
.tl-ms:hover .tl-ms-nm { max-width: 240px; white-space: normal; }

/* Above: grows upward from bottom */
.tl-ms-up { bottom: 0; }
/* Below: grows downward from top */
.tl-ms-down { top: 0; }

.tl-ms-label {
    text-align: center; padding: 3px 6px; border-radius: 4px;
    transition: all 0.15s ease;
}
.tl-ms-nm {
    display: block; font-size: 0.62rem; color: var(--text-secondary); line-height: 1.35;
    white-space: nowrap; max-width: 105px; overflow: hidden; text-overflow: ellipsis;
}
.tl-ms-dt { display: block; font-size: 0.52rem; color: var(--text-muted); line-height: 1.3; }

/* Stem (connector line) */
.tl-ms-stem { width: 1.5px; flex-shrink: 0; }

/* Arrow (above milestones — points down toward bar) */
.tl-ms-arrow {
    width: 0; height: 0; flex-shrink: 0;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 6px solid;
}

/* Dots (below milestones — top dot on bar, end dot at label) */
.tl-ms-dot-top, .tl-ms-dot-end {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid var(--bg-card); box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* ── Overlay: Today + Go-Live vertical lines ── */
.tl-over {
    position: absolute; top: 0; bottom: 0; left: 2rem; right: 2rem;
    pointer-events: none; z-index: 5;
}
.tl-today-line {
    position: absolute; top: 0; bottom: 0;
    border-left: 2px dashed rgba(220,53,69,0.55);
}
.tl-today-tag {
    position: absolute; top: 6px; left: 6px;
    font-size: 0.55rem; color: var(--danger); font-weight: 700;
    text-transform: uppercase; white-space: nowrap;
    background: rgba(26,26,46,0.85); padding: 1px 5px; border-radius: 3px;
    letter-spacing: 0.03em;
}
.tl-gl-line {
    position: absolute; top: 0; bottom: 0;
    border-left: 2px dashed rgba(0,176,80,0.5);
}
.tl-gl-diamond {
    position: absolute; top: 4px; left: -7px;
    width: 12px; height: 12px; background: #00b050;
    transform: rotate(45deg); border: 1.5px solid var(--bg-card);
    box-shadow: 0 0 8px rgba(0,176,80,0.5);
}
.tl-gl-tag {
    position: absolute; bottom: 6px; left: 6px;
    font-size: 0.55rem; color: var(--success); font-weight: 700;
    text-transform: uppercase; white-space: nowrap;
    background: rgba(26,26,46,0.85); padding: 1px 5px; border-radius: 3px;
}

/* ── Legend ── */
.tl-leg { margin-top: 0.75rem; }
.tl-leg-colors { display: flex; gap: 1rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.tl-lc { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.3rem; }
.tl-lcd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.tl-det { margin-top: 0.25rem; }
.tl-det summary {
    cursor: pointer; font-size: 0.75rem; color: var(--accent);
    font-weight: 600; margin-bottom: 0.4rem;
}
.tl-tbl { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.tl-tbl th {
    text-align: left; padding: 0.35rem 0.5rem; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}
.tl-tbl td { padding: 0.3rem 0.5rem; color: var(--text-secondary); border-bottom: 1px solid rgba(45,58,74,0.4); }
.tl-tbl tbody tr:hover { background: rgba(0,119,182,0.04); }

/* === Artifact Privacy Warning === */
.artifact-warning {
    background: rgba(255,165,0,0.08); border: 1px solid var(--warning); border-left: 3px solid var(--warning);
    border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1.25rem;
    font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55;
}

/* === Artifact Checkbox Grid === */
.artifact-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.artifact-checkbox {
    cursor: pointer;
    display: block;
}

.artifact-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.artifact-checkbox-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.artifact-checkbox input:checked + .artifact-checkbox-content {
    border-color: var(--accent);
    background: rgba(0, 119, 182, 0.1);
}

.artifact-checkbox:hover .artifact-checkbox-content {
    border-color: var(--text-muted);
}

.artifact-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.artifact-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.artifact-format {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* === Artifact Result Cards === */
.artifact-result-card {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.artifact-result-success {
    border-left: 3px solid var(--success);
    background: rgba(0, 176, 80, 0.05);
}

.artifact-result-error {
    border-left: 3px solid var(--danger);
    background: rgba(255, 0, 0, 0.05);
}

.artifact-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.artifact-result-icon {
    font-size: 1.1rem;
}

.artifact-result-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.artifact-result-message {
    color: var(--danger);
    font-size: 0.85rem;
}

/* === Artifact Upload Button (per-card) === */
.artifact-upload {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem 0.5rem;
}

.btn-artifact-upload {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-artifact-upload:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.artifact-upload-name {
    font-size: 0.72rem;
    color: var(--accent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

/* === Disabled Artifact Card (Future Development) === */
.artifact-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.artifact-disabled .artifact-checkbox-content {
    pointer-events: none;
}

/* === Generate Artifacts Button === */
.btn-generate-artifacts {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* === New Project Wizard === */

/* Progress bar */
.wizard-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0;
    overflow-x: auto;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    min-width: 60px;
}

.progress-step::after {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.completed::after {
    background: var(--accent);
}

.progress-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all var(--transition);
}

.progress-step.active .progress-num {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.progress-step.completed .progress-num {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.progress-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-align: center;
    white-space: nowrap;
    transition: color var(--transition);
}

.progress-step.active .progress-label {
    color: var(--accent);
    font-weight: 600;
}

.progress-step.completed .progress-label {
    color: var(--text-secondary);
}

/* Wizard step panels */
.wizard-step {
    display: none;
    max-width: 900px;
}

.wizard-step.active {
    display: block;
}

.wizard-step h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

/* Wizard upload area */
.wizard-upload-area {
    margin-top: 0.5rem;
}

/* Wizard file list */
.wizard-file-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    min-height: 1.5rem;
}

.wizard-filename {
    font-size: 0.85rem;
    color: var(--accent);
}

.btn-file-remove {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition);
    padding: 0;
}

.btn-file-remove:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Wizard navigation bar */
.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    max-width: 900px;
}

.wizard-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Wizard review table */
.wizard-review-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.wizard-review-table td {
    padding: 0.45rem 0.8rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.wizard-review-table .review-label {
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    width: 150px;
}

/* Wizard overview result area */
.wizard-overview {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 900px;
}

.wizard-overview h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.wizard-overview h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.wizard-overview ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.wizard-overview li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

/* === Help Modal === */
.help-overlay {
    position: fixed; inset: 0; z-index: 8000;
    background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
}
.help-overlay[hidden] { display: none; }
.help-modal {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    width: 95%; max-width: 720px; max-height: 85vh; display: flex; flex-direction: column;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.help-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.help-modal-header h2 { font-size: 1.15rem; color: var(--text-primary); }
.help-modal-close {
    background: none; border: none; color: var(--text-muted); font-size: 1.5rem;
    cursor: pointer; line-height: 1; padding: 0.2rem;
}
.help-modal-close:hover { color: var(--text-primary); }
.help-modal-body { padding: 1.5rem; overflow-y: auto; }
.help-section { margin-bottom: 1.75rem; }
.help-section:last-child { margin-bottom: 0; }
.help-section h3 { font-size: 1rem; color: var(--accent); margin-bottom: 0.6rem; }
.help-section p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.6rem; }
.help-channels { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
.help-channel {
    background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.1rem; display: flex; gap: 0.8rem; align-items: flex-start;
    flex-wrap: wrap;
}
.help-channel-primary { border-color: var(--accent); background: rgba(0,119,182,0.08); }
.help-channel-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.2; }
.help-channel-title {
    font-size: 0.92rem; font-weight: 700; color: var(--text-primary);
    width: 100%; margin-bottom: 0.15rem; margin-left: 2.3rem;
    margin-top: -1.6rem;
}
.help-channel p { font-size: 0.82rem; margin: 0; margin-left: 2.3rem; }
.help-tag {
    background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 700;
    padding: 0.15rem 0.45rem; border-radius: 10px; margin-left: 0.4rem; vertical-align: middle;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.help-prompts { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.help-prompts li {
    font-size: 0.82rem; color: var(--text-secondary); padding: 0.35rem 0;
    border-bottom: 1px solid rgba(45,58,74,0.5);
}
.help-prompts li:last-child { border-bottom: none; }
.help-prompts strong { color: var(--accent); }

/* === Splash — Primary Fuel Badge === */
.dataflow-badge {
    display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    color: var(--accent); letter-spacing: 0.05em; margin-top: 0.15rem;
}
.dataflow-primary { border-color: var(--accent) !important; box-shadow: 0 0 8px rgba(0,119,182,0.3); }

/* ============================================================
   RESPONSIVE — Sidebar Backdrop (base rule, hidden until mobile)
   ============================================================ */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}

/* ============================================================
   RESPONSIVE — Tablet (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    /* --- Prevent background scroll when sidebar open --- */
    body.sidebar-active { overflow: hidden; }

    /* --- Sidebar: off-screen overlay --- */
    .sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        bottom: 0;
        width: 240px;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }
    .sidebar.sidebar-open { transform: translateX(0); }
    /* Override desktop collapsed state on mobile — keep full width */
    .sidebar.collapsed {
        width: 240px;
        transform: translateX(-100%);
    }
    .sidebar.collapsed.sidebar-open { transform: translateX(0); }
    .sidebar.collapsed .module-label { opacity: 1; }

    /* --- Sidebar backdrop visible --- */
    .sidebar-backdrop.active { display: block; }

    /* --- Hamburger toggle in top-nav --- */
    .sidebar-toggle {
        position: static;
        padding: 0.5rem 0.75rem;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    /* --- Top nav: compact --- */
    .top-nav {
        padding: 0 0.75rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    .nav-logo { width: 28px; height: 28px; }
    .nav-brand h1 { font-size: 1rem; }
    .nav-brand { gap: 0.5rem; }
    .project-selector-dropdown { min-width: 120px; max-width: 180px; font-size: 0.78rem; }
    .project-selector-label { font-size: 0.7rem; }
    .help-btn { font-size: 0.72rem; padding: 0.25rem 0.55rem; margin-left: 0.25rem; }
    .alerts-toggle-btn { font-size: 0.72rem; padding: 0.25rem 0.6rem; margin-left: 0.25rem; }
    .logout-btn { font-size: 0.72rem; padding: 0.25rem 0.5rem; }
    .provider-badge { font-size: 0.7rem; padding: 0.2rem 0.5rem; }

    /* --- Alerts panel: full-width overlay --- */
    .alerts-panel {
        position: fixed;
        top: 56px;
        right: 0;
        bottom: 0;
        z-index: 200;
    }
    .alerts-panel.open { width: 100%; min-width: 100%; }

    /* --- Main content: breathing room --- */
    .main-content {
        padding: 1rem;
        max-height: calc(100vh - 56px);
    }
    /* Remove all max-width caps on forms/wizard/overview */
    .module-form,
    .wizard-step,
    .wizard-nav,
    .wizard-review-table,
    .dash-getting-started,
    .splash-content { max-width: 100%; }

    /* --- Grids: tablet columns --- */
    .dash-cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .dash-sub-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .artifact-checkbox-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

    /* --- Splash features: single column --- */
    .splash-features { grid-template-columns: 1fr; }
    .dataflow-row { flex-wrap: wrap; justify-content: center; }

    /* --- Tables: horizontal scroll --- */
    .file-table,
    .dd-table,
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dd-panel { overflow: hidden; }

    /* --- Wizard progress: scrollable --- */
    .wizard-progress { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .progress-step { min-width: 50px; }
    .progress-label { font-size: 0.55rem; }

    /* --- Help modal: near-full-screen --- */
    .help-modal { width: 98%; max-width: none; max-height: 92vh; }

    /* --- Touch targets: 44px minimum --- */
    .sidebar-toggle,
    .module-item,
    .help-btn,
    .alerts-toggle-btn,
    .logout-btn,
    .btn-export,
    .download-btn,
    .btn-primary,
    .btn-secondary,
    .btn-generate-artifacts,
    .chip,
    .drop-zone { min-height: 44px; }

    /* --- Results/drilldown headers: stack vertically --- */
    .results-header,
    .dd-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .export-actions { flex-wrap: wrap; }
    .dd-header-actions { flex-wrap: wrap; }

    /* --- Timeline chart: horizontal scroll --- */
    .tl-chart { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* --- Dashboard try-it: stack on tablet --- */
    .dash-tryit { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — Small Phone (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {

    /* --- Nav: shorter, icons-only for action buttons --- */
    .top-nav { height: 50px; }
    .sidebar { top: 50px; }
    .alerts-panel { top: 50px; }
    .main-content { max-height: calc(100vh - 50px); }

    /* Hide text labels on nav buttons, keep icon via ::before */
    .help-btn { font-size: 0; padding: 0.3rem 0.6rem; min-width: 44px; }
    .help-btn::before { content: "\003F"; font-size: 0.9rem; }
    .alerts-toggle-btn { font-size: 0; padding: 0.3rem 0.6rem; min-width: 44px; }
    .alerts-toggle-btn::before { content: "\01F514"; font-size: 0.9rem; }
    .alerts-badge { font-size: 0.65rem; }
    .logout-btn { font-size: 0; padding: 0.3rem 0.6rem; min-width: 44px; }
    .logout-btn::before { content: "\2192"; font-size: 0.9rem; color: var(--text-muted); }

    /* Hide provider badge on small phones */
    .provider-badge { display: none; }
    .project-selector-label { display: none; }

    /* --- Grids: single column --- */
    .dash-cards,
    .dash-sub-grid,
    .artifact-checkbox-grid { grid-template-columns: 1fr; }

    /* --- Splash: compact --- */
    .splash-title { font-size: 1.6rem; }
    .splash-content { padding: 1.5rem 1rem; }
    .splash-features { gap: 0.5rem; }

    /* Dataflow: stack vertically */
    .dataflow-row { flex-direction: column; align-items: center; gap: 0.3rem; }
    .dataflow-arrow {
        width: 2px;
        height: 24px;
        margin: 0;
        transform: rotate(90deg);
    }
    .dataflow-arrow::after {
        top: auto;
        right: auto;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        border-width: 0 2px 2px 0;
    }

    /* --- Forms: stack vertically --- */
    .form-row { flex-direction: column; }
    .form-row .form-group { min-width: 100%; }

    /* --- Wizard: smaller progress indicators --- */
    .progress-num { width: 24px; height: 24px; font-size: 0.65rem; }
    .progress-step::after { top: 12px; left: calc(50% + 12px); width: calc(100% - 24px); }
    .progress-label { font-size: 0.5rem; }
    .progress-step { min-width: 36px; }

    /* --- Help modal: full-screen --- */
    .help-modal { width: 100%; border-radius: 0; max-height: 100vh; }
    .help-overlay { align-items: stretch; }

    /* --- Buttons: full-width generate, flex export --- */
    .btn-generate-artifacts { width: 100%; text-align: center; }
    .export-actions { width: 100%; }
    .btn-export { flex: 1; text-align: center; }
    .download-btn { width: 100%; justify-content: center; }

    /* --- Dashboard try-it: fully stacked --- */
    .dash-tryit { gap: 0.5rem; }
    .dash-tryit-btn { width: 100%; text-align: center; }
}
