/**
 * PolicyBox Reader styles — part 6/7: Path selector, feature panels (audio, annotations, exploration), node images, how-to modal.
 * Split from reader.css (2026-06). Load order matters (cascade);
 * link tags in layouts/policy_reader.html preserve the original order.
 */

/* ===========================
   Path Selector Modal
   =========================== */

.path-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-selector-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.path-selector-modal .modal-content {
    position: relative;
    background: var(--color-bg-secondary);
    border-radius: 16px;
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.path-selector-modal h2 {
    margin: 0 0 var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

.path-selector-modal > .modal-content > p {
    margin: 0 0 var(--spacing-lg);
    color: var(--color-text-secondary);
}

.path-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.path-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border-light);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.path-option:hover {
    border-color: var(--color-accent);
    background: var(--color-bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.path-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.path-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.path-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.skip-path-btn {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.skip-path-btn:hover {
    color: var(--color-text-primary);
}


/* ===========================
   Feature Panels (shared styles)
   =========================== */

.audio-briefing-panel,
.annotations-sidebar,
.exploration-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 360px;
    max-width: 90vw;
    height: calc(100vh - var(--header-height) - var(--input-height, 60px));
    background: var(--color-bg-secondary);
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.audio-briefing-panel .panel-header,
.annotations-sidebar .panel-header,
.exploration-panel .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
}

.audio-briefing-panel .panel-header h2,
.annotations-sidebar .panel-header h2,
.exploration-panel .panel-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.audio-briefing-panel .panel-content,
.annotations-sidebar .panel-content,
.exploration-panel .panel-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}


/* ===========================
   Audio Briefing Panel Specifics
   =========================== */

.audio-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-bg-tertiary);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.audio-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.audio-play-btn:hover {
    background: var(--color-accent-hover);
}

.audio-progress {
    flex: 1;
    height: 6px;
    background: var(--color-border-light);
    border-radius: 3px;
    overflow: hidden;
}

.audio-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.audio-time {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    min-width: 40px;
    text-align: right;
}

.voice-selector,
.speed-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.voice-selector label,
.speed-selector label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.voice-selector select,
.speed-selector select {
    flex: 1;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.briefing-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-primary);
}


/* ===========================
   Annotations Sidebar Specifics
   =========================== */

.annotations-filter {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.annotations-filter .filter-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.annotations-filter .filter-btn:hover,
.annotations-filter .filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.annotations-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.annotations-empty {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    text-align: center;
    padding: var(--spacing-lg);
}


/* ===========================
   Exploration Panel Specifics
   =========================== */

.exploration-section {
    margin-bottom: var(--spacing-lg);
}

.exploration-section h3 {
    margin: 0 0 var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exploration-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.exploration-empty {
    color: var(--color-text-tertiary);
    font-size: 0.875rem;
    font-style: italic;
}

.exploration-item {
    padding: var(--spacing-sm);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.exploration-item:hover {
    border-color: var(--color-accent);
    background: var(--color-bg-secondary);
}

.exploration-item-title {
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.exploration-item-desc {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}


/* ===========================
   Header Button Active State
   =========================== */

.header-btn.active {
    background: var(--color-accent);
    color: #fff;
}

.header-btn.active:hover {
    background: var(--color-accent-hover);
}


/* ===========================
   Mobile Adjustments for Panels
   =========================== */

@media (max-width: 768px) {
    .audio-briefing-panel,
    .annotations-sidebar,
    .exploration-panel {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
    }

    .path-selector-modal .modal-content {
        padding: var(--spacing-lg);
        margin: var(--spacing-md);
    }

    .path-options {
        gap: var(--spacing-xs);
    }

    .path-option {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .path-icon {
        font-size: 1.5rem;
    }
}


/* =============================================================================
   NODE IMAGES - Header and inline images for policy nodes
   Constrained to fit inline with text, not dominate the view
   ============================================================================= */

/* Base figure styling */
.node-image {
    margin: 1.5rem auto;
    padding: 0;
    position: relative;
    max-width: 600px;
    text-align: center;
}

/* Ensure images don't dominate - constrain both width and height */
/* NOTE: Chart images (.chart class) override these in the chart section above */
.node-image img,
.conversation-node .node-image img,
.assistant-response-node .node-image img,
figure.node-image img {
    display: block;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    max-height: 350px;
    margin: 0 auto;
    border-radius: 6px;
    background: var(--color-bg-tertiary);
    object-fit: contain;
}

/* Chart images can be larger for data readability */
.node-image.chart img,
figure.node-image.chart img,
.node-inline-images .chart img {
    max-width: 608px !important;
    max-height: 450px !important;
}

/* Loading state - shimmer animation */
.node-image img[loading="lazy"] {
    min-height: 200px;
    background: linear-gradient(
        90deg,
        var(--color-bg-tertiary) 25%,
        var(--color-border-light) 50%,
        var(--color-bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: img-shimmer 1.5s infinite;
}

.node-image img[loading="lazy"].loaded {
    min-height: auto;
    background: transparent;
    animation: none;
}

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

/* Header image - floats left so body text wraps around it.
   Uses 40% max-width so text beside it stays readable (~60% width).
   When inside .node-source-layout, flex rules take over instead. */
.node-image.header-image {
    float: left !important;
    max-width: 40% !important;
    margin: 0.25rem 1.5rem 1rem 0 !important;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    shape-outside: margin-box;
}

/* Inline images container — grid layout, does not float */
.conversation-node .node-inline-images {
    float: none !important;
    clear: both !important;
    width: 100% !important;
}

.node-image.header-image img {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 310px !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
    border-radius: 8px;
}

/* Disable shimmer for header images - they should load cleanly */
.node-image.header-image img[loading="lazy"],
figure.header-image img[loading="lazy"] {
    min-height: auto;
    background: transparent;
    animation: none;
}

/* Inline image - floats left so body text wraps around it.
   40% max-width keeps text readable beside it.
   Inside .node-inline-images grid, float is overridden. */
.node-image.inline-image {
    float: left !important;
    max-width: 40% !important;
    margin: 0.5rem 1.5rem 1rem 0 !important;
    padding: 0;
    shape-outside: margin-box;
}

.node-image.inline-image img {
    display: block !important;
    float: none !important;
    max-width: 100% !important;
    max-height: 350px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

/* Chart/data visualization images - slightly larger */
.node-image.chart-image img,
.node-image[data-type="chart"] img {
    max-height: 450px;
    max-width: 700px;
}

/* Cover/hero images - constrained but prominent */
.node-image.cover-image img,
.node-image[data-type="cover"] img {
    max-height: 300px;
    max-width: 500px;
}

/* Figcaption styling */
.node-image figcaption {
    padding: 0.5rem 0 0.25rem;
    text-align: left;
    max-width: 100%;
}

.node-image .image-caption {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.node-image .image-source {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--color-text-tertiary);
    margin-top: 0.25rem;
}

/* Header image caption - constrained to figure width */
.node-image.header-image figcaption {
    display: block !important;
    max-width: 100% !important;
    padding: 0.5rem 0 0.25rem 0;
    background: transparent;
    border: none;
    text-align: left;
}

.node-image.header-image .image-caption {
    font-size: 0.8125rem;
}

/* Mobile responsive — no float on small screens, full-width images */
@media (max-width: 768px) {
    .node-image {
        margin: 1rem 0;
    }

    .node-image.header-image,
    .node-image.inline-image {
        float: none !important;
        max-width: 100% !important;
        margin: 1rem 0 !important;
    }

    .node-image.header-image img {
        max-height: 200px;
    }

    .node-image .image-caption {
        font-size: 0.8125rem;
    }

    .node-image .image-source {
        font-size: 0.6875rem;
    }

    .node-image.header-image figcaption {
        padding: 0.375rem 0.75rem;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .node-image img {
    background: #2d2d2d;
}

[data-theme="dark"] .node-image img[loading="lazy"] {
    background: linear-gradient(
        90deg,
        #2d2d2d 25%,
        #3d3d3d 50%,
        #2d2d2d 75%
    );
    background-size: 200% 100%;
}

[data-theme="dark"] .node-image.header-image figcaption {
    background: transparent;
    border: none;
}

/* Sepia mode adjustments */
[data-theme="sepia"] .node-image img {
    background: #f0e8d8;
}

[data-theme="sepia"] .node-image img[loading="lazy"] {
    background: linear-gradient(
        90deg,
        #f0e8d8 25%,
        #e0d5c7 50%,
        #f0e8d8 75%
    );
    background-size: 200% 100%;
}

[data-theme="sepia"] .node-image.header-image figcaption {
    background: transparent;
    border: none;
}


/* =============================================================================
   HOW TO BANTERBOX MODAL
   Static help modal with tabbed content explaining BanterBox features
   ============================================================================= */

.howto-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.howto-modal.open {
    display: flex;
}

.howto-modal-content {
    background: var(--color-bg-secondary);
    border-radius: 12px;
    width: 100%;
    max-width: 820px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: howto-modal-appear 0.25s ease;
}

@keyframes howto-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header with branding */
.howto-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-tertiary);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.howto-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.howto-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.howto-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-sans);
    margin: 0;
    color: var(--color-text-primary);
}

.howto-header .modal-close {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--color-text-secondary);
    border-radius: 6px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.howto-header .modal-close:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

/* Tab Navigation */
.howto-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

.howto-tabs::-webkit-scrollbar {
    height: 3px;
}

.howto-tabs::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.howto-tab {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.howto-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

.howto-tab.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    background: transparent;
}

.howto-tab.active svg {
    color: var(--color-accent);
}

/* Tab Panels */
.howto-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.howto-panel {
    display: none;
    padding: var(--spacing-lg);
}

.howto-panel.active {
    display: block;
    animation: howto-fadeIn 0.2s ease;
}

@keyframes howto-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Intro text at top of panel */
.howto-intro {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

/* Feature List Items */
.howto-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.howto-feature:last-child {
    margin-bottom: 0;
}

.howto-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    color: var(--color-accent);
}

.howto-feature-icon svg {
    width: 20px;
    height: 20px;
}

.howto-feature-content {
    flex: 1;
    min-width: 0;
}

.howto-feature-content h4 {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 0.25rem 0;
}

.howto-feature-content p {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Keyboard shortcuts */
.howto-kbd {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* Color swatches for highlights */
.howto-colors {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.howto-color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
}

.howto-color-swatch.yellow { background: #fef08a; }
.howto-color-swatch.green { background: #86efac; }
.howto-color-swatch.blue { background: #93c5fd; }
.howto-color-swatch.pink { background: #f9a8d4; }
.howto-color-swatch.purple { background: #c4b5fd; }
.howto-color-swatch.orange { background: #fdba74; }

/* Nav type badges inline */
.howto-nav-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.howto-nav-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.howto-nav-badge.deeper { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.howto-nav-badge.related { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.howto-nav-badge.broader { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.howto-nav-badge.why { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.howto-nav-badge.explore { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

/* Language list */
.howto-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.howto-lang-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

/* Short viewport (small laptops) - tighten how-to modal chrome */
@media (max-height: 800px) {
    .howto-header {
        padding: 0.625rem 1.25rem;
    }

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

    .howto-tab {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }

    .howto-panel {
        padding: 1rem;
    }

    .howto-intro {
        margin-bottom: 0.75rem;
        font-size: 0.8125rem;
    }

    .howto-feature {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .howto-feature-icon {
        width: 32px;
        height: 32px;
    }

    .howto-feature-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .howto-modal {
        padding: 0;
        align-items: flex-end;
    }

    .howto-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        animation: howto-slide-up 0.3s ease;
    }

    @keyframes howto-slide-up {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .howto-header {
        border-radius: 16px 16px 0 0;
    }

    .howto-tabs {
        overflow-x: auto;
    }

    .howto-tab {
        padding: 0.75rem 0.875rem;
        font-size: 0.75rem;
    }

    /* Show only icons on very small screens */
    @media (max-width: 480px) {
        .howto-tab span {
            display: none;
        }

        .howto-tab {
            padding: 0.75rem 1rem;
        }
    }

    .howto-body {
        max-height: calc(95vh - 120px);
    }

    .howto-panel {
        padding: var(--spacing-md);
    }

    .howto-feature {
        padding: 0.875rem;
    }

    .howto-feature-icon {
        width: 36px;
        height: 36px;
    }

    .howto-feature-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .howto-header {
    background: var(--color-bg-tertiary);
}

[data-theme="dark"] .howto-feature {
    background: var(--color-bg-tertiary);
}

[data-theme="dark"] .howto-feature-icon {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

[data-theme="dark"] .howto-color-swatch {
    border-color: rgba(255,255,255,0.1);
}

/* Sepia theme adjustments */
[data-theme="sepia"] .howto-header {
    background: var(--color-bg-tertiary);
}

[data-theme="sepia"] .howto-feature {
    background: var(--color-bg-tertiary);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .howto-modal-content,
    .howto-panel.active {
        animation: none;
    }

    /* Reduce all transitions and animations */
    .reader-input,
    .reader-input.keyboard-visible,
    .policy-side-nav,
    .next-step-card,
    .suggestion-button,
    .header-btn,
    .action-btn {
        transition-duration: 0.01s !important;
        animation-duration: 0.01s !important;
    }

    /* Disable hover transforms */
    .next-step-card:hover,
    .gf-entry-card:hover,
    .gf-leopard-card:hover {
        transform: none !important;
    }
}
