:root {
    --bg-dark: #000000;
    --card-bg: #111111;
    --card-bg-transparent: rgba(17, 17, 17, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-blue: #0078d4;
    --accent-purple: #8b5cf6;
    --success: #10b981;
    --glass-border: rgba(255, 255, 255, 0.1);
    --subtle-bg: rgba(255, 255, 255, 0.03);
    --subtle-bg-hover: rgba(255, 255, 255, 0.06);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    position: sticky;
    top: 56px; /* Account for fixed nav bar height */
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    margin: -2rem -1.5rem 2rem -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--subtle-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.breadcrumb-item:hover {
    background: var(--subtle-bg-hover);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.breadcrumb-item.active {
    background: rgba(0, 120, 212, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.breadcrumb-item.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.breadcrumb-item.completed .breadcrumb-check {
    display: inline;
    color: var(--success);
}

.breadcrumb-number {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--subtle-bg-hover);
    border-radius: 50%;
    font-weight: 600;
    font-size: 11px;
}

.breadcrumb-item.completed .breadcrumb-number {
    display: none;
}

.breadcrumb-label {
    font-weight: 500;
}

.breadcrumb-check {
    display: none;
    font-size: 14px;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-size: 16px;
    opacity: 0.5;
}

/* Collapsible Sections */
.step.collapsible .step-header {
    cursor: pointer;
    user-select: none;
}

.step.collapsible .step-header::after {
    content: '▼';
    margin-left: auto;
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.step.collapsible.collapsed .step-header::after {
    transform: rotate(-90deg);
}

.step.collapsible .step-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 1;
}

.step.collapsible.collapsed .step-content {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Animated Step Transitions */
.step {
    animation: stepFadeIn 0.4s ease-out;
    scroll-margin-top: 140px; /* Account for fixed nav (56px) + sticky breadcrumb (~80px) */
}

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

.step.hidden {
    display: none;
}

.step.fade-out {
    animation: stepFadeOut 0.3s ease-in forwards;
}

@keyframes stepFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Onboarding Tutorial Overlay */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.onboarding-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.onboarding-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.onboarding-icon-image {
    font-size: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}

.onboarding-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.onboarding-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.onboarding-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
}

.onboarding-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.onboarding-feature-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.onboarding-feature-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.onboarding-feature-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.onboarding-dot.active {
    background: var(--accent-blue);
    width: 24px;
    border-radius: 4px;
}

.onboarding-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.onboarding-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.onboarding-btn-primary {
    background: var(--accent-blue);
    border: none;
    color: white;
}

.onboarding-btn-primary:hover {
    background: #0066b8;
    transform: translateY(-2px);
}

.onboarding-btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.onboarding-btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Configuration Preview Modal */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.preview-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h2 {
    margin: 0;
    color: var(--accent-blue);
    font-size: 20px;
}

.preview-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}

.preview-close:hover {
    color: var(--text-primary);
}

.preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.preview-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.preview-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.preview-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
}

.preview-item-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.preview-item-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.preview-item-value.missing {
    color: var(--accent-purple);
    font-style: italic;
}

.preview-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.preview-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.preview-status.ready {
    color: var(--success);
}

.preview-status.incomplete {
    color: var(--accent-purple);
}

/* Keyboard Shortcuts Help */
.shortcuts-help {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shortcuts-help:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.kbd {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
}

/* Preview Button Style */
.preview-button {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2)) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

.preview-button:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3)) !important;
    border-color: rgba(139, 92, 246, 0.6) !important;
}

.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 15%, rgba(0, 120, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

/* Header title wrapper - desktop layout */
.header-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 1rem;
}

.header-logo-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-logo-wrapper img {
    max-height: 200px;
    width: auto;
}

.header-version {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    white-space: nowrap;
}

header h1,
header .header-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

header p,
header .header-description {
    color: var(--text-primary);
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Wizard progress */
.wizard-progress {
    position: sticky;
    top: 1rem;
    z-index: 5;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.wizard-progress__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.wizard-progress__title {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.wizard-progress__text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.wizard-progress__bar {
    height: 10px;
    width: 100%;
    background: var(--subtle-bg-hover);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    overflow: hidden;
}

.wizard-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(0, 120, 212, 0.85), rgba(139, 92, 246, 0.85));
}

/* Report: switchless storage diagram */
.switchless-diagram {
    margin-top: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    overflow-x: auto;
}

.switchless-diagram__svg {
    display: block;
    min-width: 680px;
    height: auto;
}

.switchless-diagram__legend {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.switchless-diagram__legend-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.switchless-diagram__legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.5rem 1rem;
}

.switchless-diagram__legend-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.switchless-diagram__legend-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.switchless-diagram__note {
    margin-top: 0.65rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ARM JSON viewer (syntax highlighted) */
.json-viewer {
    width: 100%;
    min-height: 360px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    white-space: pre;
    overflow-x: auto;
    overflow-y: visible;
}

.json-viewer__code {
    display: block;
    color: var(--text-secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.35;
}

.json-token--key { color: var(--accent-blue); }
.json-token--string { color: var(--accent-purple); }
.json-token--number { color: var(--success); }
.json-token--boolean { color: var(--text-primary); }
.json-token--null { color: var(--text-secondary); }
.json-token--punct { color: var(--text-secondary); }

/* Steps */
.step {
    margin-bottom: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    /* transition: opacity 0.3s ease; */
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(0, 120, 212, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.step h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Info and knowledge links */
.info-link {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-blue);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.info-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.step-info-link {
    margin-left: auto;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.step-info-link:hover {
    opacity: 1;
}

/* Sub-steps styling */
.sub-step h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
}

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

/* Compact option grid (used for Azure Local Instance Region) */
.options-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.options-grid.compact .option-card {
    padding: 0.9rem 1rem;
}

.options-grid.compact .option-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.options-grid.compact .option-card p {
    font-size: 0.85rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.option-card:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.option-card.selected {
    background: rgba(0, 120, 212, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue),
        0 4px 20px rgba(0, 120, 212, 0.2);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: checkmark-pop 0.2s ease-out;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.option-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: none;
}

/* Icons */
.icon {
    margin-bottom: 1rem;
    color: var(--accent-blue);
    transition: color 0.3s ease;
}

.option-card:hover .icon {
    color: var(--accent-purple);
}

.option-card.selected .icon {
    color: var(--accent-blue);
}

.option-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.option-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* PRIVATE-PATH-PREVIEW: Remove this section when Private Path is GA */
.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.option-card .preview-note {
    margin-top: 0.75rem;
    padding: 6px 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: #fbbf24;
    line-height: 1.4;
}
/* END PRIVATE-PATH-PREVIEW */

/* Summary Panel */
/* Layout Wrapper */
.layout-flex {
    display: flex;
    gap: 2rem;
    /* align-items: stretch; default needed for sticky sidebar */
}

.steps-column {
    flex: 1;
    min-width: 0;
}

.summary-column {
    width: 460px;
    flex-shrink: 0;
}

/* Summary Panel (Sidebar) */
#summary-panel {
    position: sticky;
    top: 2rem;
    width: 100%;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    background: var(--card-bg-transparent);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

#summary-panel.hidden {
    opacity: 0.5;
    /* Dim it instead of hiding completely? */
    filter: grayscale(1);
    /* Or keep it visible but empty? */
}

.summary-diagram {
    margin-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

#summary-panel h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

/* Summary Content (readability) */
#summary-content {
    font-size: 0.95rem;
    line-height: 1.55;
}

.summary-section {
    background: var(--subtle-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 0.9rem;
}

.summary-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.summary-section-title--infra { color: var(--accent-blue); }
.summary-section-title--net { color: var(--accent-purple); }
.summary-section-title--mgmt { color: var(--success); }

.summary-row {
    display: grid;
    grid-template-columns: 165px 1fr;
    gap: 10px;
    padding: 0.35rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.summary-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.summary-value {
    color: var(--text-primary);
    min-width: 0;
    word-break: break-word;
}

.summary-value.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
}

.summary-multiline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Report button (Step 16) */
.report-button {
    width: 100%;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.report-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Report actions (report.html) */
.report-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.report-actions--floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    margin-top: 0;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
}

.report-actions--floating .report-action-button {
    flex: none;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .report-actions--floating {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--glass-border);
    }

    .report-actions--floating .report-action-button {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Add padding to container so content isn't hidden behind fixed buttons */
    body:has(.report-actions--floating) .container {
        padding-bottom: 70px;
    }

    /* ARM/Report page improvements */
    .container {
        padding: 1rem;
    }

    .step {
        padding: 1rem;
    }

    .step-header h2 {
        font-size: 1.1rem;
    }

    /* ARM placeholder inputs container */
    #arm-placeholder-inputs > div {
        padding: 0.75rem !important;
    }

    /* ARM template links */
    #arm-template-links a {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.9rem !important;
    }

    /* JSON viewer */
    .json-viewer {
        font-size: 0.8rem;
        padding: 0.75rem;
        max-height: 400px;
        overflow-y: auto;
    }
}

.report-action-button {
    flex: 1;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* Rack Aware: make the zones confirmation action more prominent */
.rack-aware-zones-confirm-btn {
    font-weight: 700;
    border-width: 2px;
    border-color: rgba(0, 120, 212, 0.55);
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.22), rgba(139, 92, 246, 0.10));
    box-shadow: 0 8px 22px rgba(0, 120, 212, 0.16);
}

.rack-aware-zones-confirm-btn:hover {
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.30), rgba(139, 92, 246, 0.14));
    border-color: rgba(0, 120, 212, 0.75);
    box-shadow: 0 10px 26px rgba(0, 120, 212, 0.22);
}

.rack-aware-zones-confirm-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.35), 0 10px 26px rgba(0, 120, 212, 0.22);
}

.rack-aware-zones-confirm-btn.is-confirmed {
    border-color: rgba(16, 185, 129, 0.75);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0.12));
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.18);
}

.rack-aware-zones-confirm-btn.is-confirmed:hover {
    border-color: rgba(16, 185, 129, 0.92);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(16, 185, 129, 0.16));
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.24);
}

.rack-aware-zones-confirm-btn.is-confirmed:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35), 0 12px 30px rgba(16, 185, 129, 0.24);
}

.report-action-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

@media print {
    .no-print {
        display: none !important;
    }

    /* Fit diagrams to page width (avoid right-side clipping) */
    .switchless-diagram {
        overflow: visible !important;
    }

    .switchless-diagram__svg {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

.report-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Nodes Grid */
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.node-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.node-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.node-chip.selected {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.node-chip.disabled {
    opacity: 0.3;
    filter: grayscale(1);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.node-context,
.info-box {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 120, 212, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    font-size: 0.95rem;
    color: var(--text-primary);
    display: none;
    animation: fadeIn 0.3s ease;
}

.info-box.warning {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.info-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--accent-blue);
}

.node-context.visible,
.info-box.visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Rack Aware: Local availability zones */
.rack-az-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.rack-az-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
}

.rack-az-card__title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.rack-az-field {
    margin-bottom: 0.85rem;
}

.rack-az-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.rack-az-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    outline: none;
}

.rack-az-input:focus {
    border-color: rgba(0, 120, 212, 0.6);
}

.rack-az-drop {
    min-height: 52px;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rack-az-drop.is-over {
    border-color: rgba(0, 120, 212, 0.7);
    background: rgba(0, 120, 212, 0.06);
}

.rack-az-node {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    cursor: grab;
    user-select: none;
    font-size: 0.9rem;
}

.rack-az-node:active {
    cursor: grabbing;
}

.rack-az-node__id {
    font-weight: 700;
    color: var(--accent-blue);
}

.rack-az-empty {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding: 0.2rem 0.1rem;
}

/* NIC Visualizer */
.nic-visualizer {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: none;
}

.nic-visualizer.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.nic-visualizer h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confirm-button {
    margin-top: 1rem;
    padding: 0.65rem 0.9rem;
    background: rgba(0, 120, 212, 0.12);
    border: 1px solid rgba(0, 120, 212, 0.35);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.confirm-button:hover {
    background: rgba(0, 120, 212, 0.18);
    border-color: rgba(0, 120, 212, 0.55);
}

.confirm-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.nic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.nic-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.nic-card-header {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nic-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.nic-tags {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 60px;
    justify-content: center;
}

.traffic-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tag-mgmt {
    background: rgba(0, 120, 212, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(0, 120, 212, 0.3);
}

.tag-compute {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag-storage {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag-rdma {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
    font-size: 0.65rem;
    margin-top: 0.25rem;
}

.custom-select {
    width: 100%;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    outline: none;
}

.custom-select:focus {
    border-color: var(--accent-blue);
}

/* Port Configuration Section */
.port-config-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.port-config-section.visible {
    display: block;
}

.port-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.port-config-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 3px solid var(--text-secondary);
    /* Default border color */
    transition: all 0.2s;
}

.port-config-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.port-config-card h5 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.config-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Speed Select */
.speed-select {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    width: 100%;
    outline: none;
    cursor: pointer;
}

.speed-select:focus {
    border-color: var(--accent-blue);
}

/* RDMA Checkbox */
.rdma-check-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.rdma-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--text-secondary);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.rdma-checkbox:checked {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.rdma-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

.rdma-label {
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Port Status Colors based on config? Optional */
.port-config-card.rdma-active {
    border-top-color: var(--accent-purple);
}

/* Port config confirmed state */
.port-config-card.confirmed {
    opacity: 0.7;
    pointer-events: none;
}

.port-config-card.confirmed .speed-select,
.port-config-card.confirmed .rdma-checkbox {
    opacity: 0.6;
}

/* Confirm Port Configuration Button */
.confirm-port-config-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.confirm-port-config-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.confirm-port-config-btn:active {
    transform: translateY(0);
}

.confirm-port-config-btn.is-confirmed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(16, 185, 129, 0.7));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.confirm-port-config-btn.is-confirmed:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.confirm-port-config-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Intent Overrides (Layer 7) */
.intent-overrides {
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
}

.intent-overrides h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.intent-overrides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.override-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.9rem;
}

.override-card h5 {
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.override-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Recommended Badge */
.badge-recommended {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-purple);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

/* Required Badge */
.badge-required {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.rack-az-node.is-selected {
    border-color: rgba(139, 92, 246, 0.85);
    background: rgba(139, 92, 246, 0.12);
}

.rack-az-locked .rack-az-node {
    cursor: default;
    opacity: 0.85;
}

.rack-az-locked .rack-az-input {
    opacity: 0.85;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
}

.security-toggle-item:hover {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Drag & Drop Adapter Mapping */
.adapter-mapping {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: none;
}

.adapter-mapping.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.adapter-mapping-header h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.adapter-pool {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.adapter-pool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.adapter-pool-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.adapter-pool-hint {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.adapter-drop-zone {
    min-height: 60px;
    padding: 0.75rem;
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.adapter-drop-zone.pool-zone {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.adapter-drop-zone.is-over {
    border-color: rgba(0, 120, 212, 0.7);
    background: rgba(0, 120, 212, 0.08);
    box-shadow: 0 0 15px rgba(0, 120, 212, 0.15);
}

.adapter-drop-zone.is-valid-target {
    border-color: rgba(34, 197, 94, 0.5);
}

.adapter-drop-zone.is-invalid-target {
    border-color: rgba(239, 68, 68, 0.5);
}

.adapter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    cursor: grab;
    user-select: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.adapter-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.adapter-pill:active {
    cursor: grabbing;
}

.adapter-pill.is-selected {
    background: rgba(0, 120, 212, 0.2);
    border-color: rgba(0, 120, 212, 0.5);
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.2);
}

.adapter-pill.is-dragging {
    opacity: 0.5;
}

.adapter-pill.is-rdma {
    border-color: rgba(139, 92, 246, 0.4);
}

.adapter-pill.is-rdma .adapter-pill-rdma {
    display: inline-flex;
}

.adapter-pill__id {
    font-weight: 700;
    color: var(--accent-blue);
}

.adapter-pill-rdma {
    display: none;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 4px;
    color: var(--accent-purple);
    font-weight: 600;
}

.adapter-pill-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.adapter-empty {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.5rem;
    font-style: italic;
}

/* Intent Zones Grid */
.intent-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.intent-zone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.intent-zone-card.has-adapters {
    border-color: rgba(0, 120, 212, 0.3);
}

.intent-zone-card.is-complete {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.intent-zone-card.has-error {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.intent-zone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.intent-zone-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.intent-zone-title.mgmt {
    color: #3b82f6;
}

.intent-zone-title.compute {
    color: #22c55e;
}

.intent-zone-title.storage {
    color: #8b5cf6;
}

.intent-zone-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.intent-zone-badge.required {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.intent-zone-badge.optional {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.intent-zone-badge.rdma-required {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.intent-zone-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.intent-zone-drop {
    min-height: 52px;
    padding: 0.5rem;
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.intent-zone-drop.is-over {
    border-color: rgba(0, 120, 212, 0.7);
    background: rgba(0, 120, 212, 0.08);
}

.intent-zone-min {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.intent-zone-min.met {
    color: #22c55e;
}

.intent-zone-min.not-met {
    color: #ef4444;
}

/* Locked state for confirmed mapping */
.adapter-mapping.is-locked .adapter-pill {
    cursor: default;
    opacity: 0.8;
}

.adapter-mapping.is-locked .adapter-drop-zone {
    border-style: solid;
    pointer-events: none;
}

.adapter-mapping.is-locked .intent-zone-drop {
    border-style: solid;
}

/* ===========================================
   Mobile Responsive Styles
   =========================================== */

/* Tablets and smaller (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem 1rem;
    }

    header h1,
    header .header-title {
        font-size: 2rem;
    }

    .preview-content {
        width: 95%;
        max-height: 90vh;
    }

    .preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: 6rem;
    }

    .container {
        padding: 1rem 0.75rem;
    }

    /* Header mobile - stack logo and title */
    .header-title-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .header-logo-wrapper {
        position: static;
        order: -1;
        margin-bottom: 0.5rem;
    }

    .header-logo-wrapper img {
        max-height: 80px;
    }

    .header-version {
        font-size: 11px;
        white-space: normal;
        text-align: center;
        display: block !important;
        visibility: visible !important;
    }

    /* Layout - stack columns on mobile */
    .layout-flex {
        flex-direction: column !important;
        display: flex !important;
    }

    .steps-column {
        order: 1 !important;
        width: 100% !important;
    }

    .summary-column {
        order: 2 !important;
        width: 100% !important;
        flex-shrink: 1 !important;
    }

    #summary-panel {
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        z-index: 1 !important;
    }

    header {
        margin-bottom: 2rem;
    }

    header h1,
    header .header-title {
        font-size: 1.5rem;
    }

    header p,
    header .header-description {
        font-size: 0.95rem;
    }

    /* Breadcrumb navigation mobile */
    .breadcrumb-nav {
        margin: -1rem -0.75rem 1.5rem -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .breadcrumb-item {
        padding: 6px 10px;
        font-size: 11px;
    }

    .breadcrumb-number {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* Wizard progress mobile */
    .wizard-progress {
        padding: 0.75rem 1rem;
    }

    .wizard-progress__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .wizard-progress__text {
        font-size: 0.85rem;
    }

    /* Step styling mobile */
    .step {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .step-header h2,
    .step h2 {
        font-size: 1.1rem;
    }

    .step-header p,
    .step p {
        font-size: 0.9rem;
    }

    /* Options grid mobile - gap adjustment (grid-template already handled at line 736) */
    .options-grid {
        gap: 1rem;
    }

    .option-card {
        padding: 1rem;
    }

    .option-card .icon svg {
        width: 36px;
        height: 36px;
    }

    .option-card h3 {
        font-size: 1rem;
    }

    .option-card p {
        font-size: 0.85rem;
    }

    /* Selected checkmark mobile */
    .option-card.selected::after {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }

    /* Input groups mobile */
    .input-group {
        margin-bottom: 1rem;
    }

    .input-group label {
        font-size: 0.85rem;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.75rem;
    }

    /* Info boxes mobile */
    .info-box {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Preview modal mobile */
    .preview-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .preview-header {
        padding: 16px;
    }

    .preview-header h2 {
        font-size: 16px;
    }

    .preview-body {
        padding: 16px;
    }

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

    .preview-footer {
        flex-direction: column;
        padding: 12px 16px;
    }

    /* Onboarding mobile */
    .onboarding-card {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .onboarding-icon {
        font-size: 48px;
    }

    .onboarding-title {
        font-size: 20px;
    }

    .onboarding-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .onboarding-buttons {
        flex-direction: column;
    }

    .onboarding-btn {
        width: 100%;
    }

    /* Shortcuts help mobile - hide on small screens */
    .shortcuts-help {
        display: none;
    }

    /* Note: .report-actions--floating mobile styles handled by existing 640px breakpoint */

    /* Node settings table mobile */
    .node-settings-table {
        display: block;
        overflow-x: auto;
    }

    /* Adapter mapping mobile */
    .adapter-mapping {
        padding: 1rem;
    }

    .adapter-drop-zone,
    .intent-zone-drop {
        min-height: 48px;
    }

    .adapter-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Intent zones mobile */
    .intent-zones-grid {
        grid-template-columns: 1fr;
    }

    .intent-zone-card {
        padding: 1rem;
    }

    /* Switchless diagram mobile */
    .switchless-diagram {
        padding: 0.5rem;
    }

    .switchless-diagram__legend-grid {
        grid-template-columns: 1fr;
    }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0.75rem 0.5rem;
    }

    header h1,
    header .header-title {
        font-size: 1.3rem;
    }

    header p,
    header .header-description {
        font-size: 0.85rem;
    }

    /* Compact breadcrumbs */
    .breadcrumb-item {
        padding: 5px 8px;
        font-size: 10px;
    }

    .breadcrumb-label {
        display: none;
    }

    .breadcrumb-separator {
        font-size: 12px;
    }

    /* Step styling */
    .step {
        padding: 0.75rem;
    }

    .step-header h2,
    .step h2 {
        font-size: 1rem;
    }

    /* Option cards */
    .option-card {
        padding: 0.75rem;
    }

    .option-card .icon {
        margin-bottom: 0.5rem;
    }

    .option-card .icon svg {
        width: 32px;
        height: 32px;
    }

    .option-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .option-card p {
        font-size: 0.8rem;
    }

    /* Preview modal */
    .preview-item {
        padding: 10px;
    }

    .preview-item-label {
        font-size: 11px;
    }

    .preview-item-value {
        font-size: 13px;
    }

    /* Buttons */
    .btn,
    button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Report actions - position at bottom, not blocking content */
    .report-actions--floating {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
        border-radius: 0 !important;
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-top: 1px solid var(--glass-border) !important;
    }

    .report-actions--floating .report-action-button {
        flex: 1 1 auto !important;
        min-width: 100px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    /* Add bottom padding to main container so content isn't hidden behind fixed buttons */
    body:has(.report-actions--floating) .container {
        padding-bottom: 80px !important;
    }

    /* Toast notifications mobile */
    .toast {
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
    }

    /* ARM/Report page specific mobile styles */
    .json-viewer {
        font-size: 0.75rem !important;
        padding: 0.75rem !important;
    }

    .json-viewer__code {
        font-size: 0.75rem !important;
    }

    /* ARM page input fields on mobile */
    #arm-placeholder-inputs input {
        font-size: 0.85rem !important;
        padding: 0.6rem !important;
    }

    /* ARM template links on mobile */
    #arm-template-links a {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.75rem !important;
    }

    #arm-template-links span {
        display: block !important;
    }

    /* Report buttons stack on mobile */
    .report-button {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.75rem !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .option-card {
        min-height: 80px;
    }

    .breadcrumb-item {
        min-height: 36px;
    }

    /* Remove hover effects on touch devices */
    .option-card:hover {
        transform: none;
    }
}

/* ── Disclaimer banner wrapper ── */
.disclaimer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.disclaimer-banner {
    font-size: 12px;
    color: var(--text-primary);
    padding: 12px;
    background: var(--disclaimer-bg, rgba(255, 193, 7, 0.15));
    border: 1px solid var(--disclaimer-border, rgba(255, 193, 7, 0.4));
    border-radius: 8px;
}

/* ── Header "What's New" link ── */
.whats-new-link {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ── Page statistics bar ── */
#page-statistics {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
}

.stats-container {
    display: flex;
    gap: 24px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    font-size: 13px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.stat-value {
    color: var(--text-primary);
    font-weight: 600;

    .onboarding-btn-primary:hover {
        transform: none;
    }

    /* Ensure tap feedback */
    .option-card:active {
        background: rgba(255, 255, 255, 0.08);
    }

    .breadcrumb-item:active {
        background: rgba(255, 255, 255, 0.1);
    }
}