/* ================================================================
   Sustainability Intelligence — Dark Professional Theme
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --border: #334155;
    --border-light: #475569;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-glow-strong: rgba(59, 130, 246, 0.3);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --risk-transition: #ef4444;
    --risk-physical: #f59e0b;
    --opp-green: #22c55e;
    --status-current: #22c55e;
    --status-anticipated: #a855f7;
    --score-low: #22c55e;
    --score-mid: #f59e0b;
    --score-high: #ef4444;
    --score-good-low: #475569;
    --score-good-mid: #86efac;
    --score-good-high: #22c55e;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --transition: 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.app-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    min-height: 100vh;
}

/* --- Header --- */
.app-header {
    text-align: center;
    padding: 48px 0 40px;
}

.app-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.app-header .subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Progress bar --- */
.progress-dots {
    margin-bottom: 32px;
    padding: 0 4px;
}

.progress-track {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

/* --- Questions (one at a time) --- */
.question {
    display: none;
    animation: fadeIn 0.35s ease;
    max-width: 560px;
    margin: 0 auto;
}

.question.active {
    display: block;
}

.question-label {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.question-optional {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.question-hint {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.question-nav {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.back-btn {
    margin-bottom: 16px;
    padding: 6px 12px;
    font-size: 13px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* --- Form elements --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Searchable select */
.search-select {
    position: relative;
}

.search-select input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-select input::placeholder {
    color: var(--text-muted);
}

.search-select input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-select .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 4px;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow);
}

.search-select .dropdown.open {
    display: block;
}

.search-select .dropdown-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.search-select .dropdown-item:hover,
.search-select .dropdown-item.highlighted {
    background: var(--bg-tertiary);
}

.search-select .dropdown-group {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Radio pills */
.radio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-pills.vertical {
    flex-direction: column;
    gap: 10px;
}

.radio-pill {
    display: inline-flex;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.radio-pill:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-secondary);
    transform: translateX(4px);
}

.radio-pill.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.radio-pill.large {
    padding: 20px 24px;
    flex-direction: row;
    gap: 0;
}

.radio-pill .pill-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.radio-pill .pill-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.radio-pill.selected .pill-title,
.radio-pill.selected .pill-desc {
    color: white;
}

.radio-pill input {
    display: none;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    min-height: 72px;
    transition: var(--transition);
}

textarea::placeholder {
    color: var(--text-muted);
}

textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 28px var(--accent-glow-strong);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 16px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* (wizard-nav removed — questions auto-advance) */

/* --- Scenario cards --- */
.scenario-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.scenario-card {
    padding: 16px 20px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.scenario-card:hover {
    border-color: var(--border-light);
}

.scenario-card.selected {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.scenario-card .scenario-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.scenario-card .scenario-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Mode toggle --- */
.mode-toggle {
    display: flex;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.mode-toggle button {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.mode-toggle button.active {
    background: var(--accent);
    color: white;
}

.mode-toggle button:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* --- Horizon inputs --- */
.horizon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.horizon-grid input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    -moz-appearance: textfield;
}

.horizon-grid input[type="number"]::-webkit-outer-spin-button,
.horizon-grid input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.horizon-grid input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* --- Summary (Step 4) --- */
.summary-grid {
    display: grid;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.summary-item .label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.summary-item .value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* --- Loading state --- */
.loading-progress {
    margin-bottom: 32px;
}

.loading-progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.6s ease;
}

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.loading-subtext {
    font-size: 13px;
    color: var(--text-muted);
}

.loading-steps {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.loading-step:last-child {
    border-bottom: none;
}

.loading-step-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 2px;
}

.loading-step-icon.thinking {
    animation: pulse 1.5s ease infinite;
    color: var(--accent);
}

.loading-step-icon.done {
    color: var(--opp-green);
}

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

.loading-step-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.loading-step-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Skeleton cards */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-light) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}

.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-90 { width: 90%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Results view --- */
.results-container {
    animation: fadeIn 0.4s ease;
}

.results-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.results-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.results-chip strong {
    color: var(--text-primary);
    margin-left: 4px;
}

.btn-new-analysis {
    margin-left: auto;
}

/* Horizon pills */
.horizon-pills {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
}

.horizon-pill {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.horizon-pill:hover {
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.horizon-pill.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Result group */
.result-group {
    margin-bottom: 32px;
}

.result-group-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--accent);
}

.result-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 12px;
    padding-left: 4px;
}

.result-section-title.transition { color: var(--risk-transition); }
.result-section-title.physical { color: var(--risk-physical); }
.result-section-title.opportunity { color: var(--opp-green); }

/* Result card */
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.result-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.result-card.transition { border-left-color: var(--risk-transition); }
.result-card.physical { border-left-color: var(--risk-physical); }
.result-card.opportunity { border-left-color: var(--opp-green); }

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-subcategory {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.result-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.result-status.current {
    background: rgba(34, 197, 94, 0.15);
    color: var(--status-current);
}

.result-status.anticipated {
    background: rgba(168, 85, 247, 0.15);
    color: var(--status-anticipated);
}

.result-statement {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Horizon badges in result cards */
.result-horizons {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.horizon-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.horizon-badge.active {
    background: var(--accent);
    color: white;
}

.horizon-badge.applicable {
    background: var(--accent-glow);
    color: var(--accent);
}

.horizon-badge.na {
    background: var(--bg-primary);
    color: var(--text-muted);
}

/* Score bars */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 6px;
}

.score-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-label {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 110px;
    flex-shrink: 0;
}

.score-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    min-width: 60px;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.score-value {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 28px;
    text-align: right;
}

/* --- Tackle section --- */
.tackle-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.tackle-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tackle-section .hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.tackle-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}

.tackle-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tackle-type.avoid { color: var(--risk-transition); }
.tackle-type.reduce { color: var(--risk-physical); }
.tackle-type.transfer { color: var(--accent); }
.tackle-type.accept { color: var(--text-muted); }
.tackle-type.opportunity { color: var(--opp-green); }
.tackle-type.act-now { color: var(--opp-green); }
.tackle-type.build-capability { color: var(--accent); }
.tackle-type.partner-up { color: var(--status-anticipated); }
.tackle-type.watch-and-wait { color: var(--text-muted); }

.tackle-recommendation {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.tackle-example {
    padding: 10px 14px;
    margin: 6px 0;
    border-left: 3px solid var(--border);
    border-radius: 0 6px 6px 0;
    background: var(--bg-primary);
}

.tackle-example .who {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.tackle-example .what {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tackle-example .result {
    font-size: 12px;
    color: var(--opp-green);
}

/* --- Audit record --- */
.audit-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.audit-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.audit-toggle {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    padding: 4px 10px;
    border: 1px solid var(--accent);
    border-radius: 12px;
}

.audit-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.audit-json {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 12px;
    font-family: 'DM Sans', monospace;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.5;
}

/* --- Export & actions bar --- */
.actions-bar {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* --- Disclaimer modal --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
}

.modal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.modal-content .btn {
    margin-top: 12px;
}

/* --- Footer --- */
.app-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.app-footer .sources {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.app-footer .links {
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.app-footer .links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.app-footer .links a:hover {
    color: var(--text-secondary);
}

.app-footer .copyright {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* --- Privacy note --- */
.privacy-note {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 6px;
}

/* --- Industry description --- */
.industry-desc {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: none;
}

.industry-desc.visible {
    display: block;
}

.industry-desc-text {
    margin-bottom: 14px;
    line-height: 1.6;
}

.industry-confirm {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.industry-confirm .btn {
    font-size: 13px;
    padding: 10px 18px;
}

/* --- Supply chain optional section --- */
.optional-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .app-container {
        padding: 16px 14px 60px;
    }

    .app-header {
        padding: 32px 0 28px;
    }

    .app-header h1 {
        font-size: 22px;
    }

    .progress-step .step-label {
        display: none;
    }

    .radio-pills {
        gap: 6px;
    }

    .radio-pill {
        padding: 7px 12px;
        font-size: 12px;
    }

    .horizon-grid {
        grid-template-columns: 1fr 1fr;
    }

    .score-grid {
        grid-template-columns: 1fr;
    }

    .wizard-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .results-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-new-analysis {
        margin-left: 0;
    }
}
