/*
 * Shared 5of10 tool shell
 * Loaded after each tool's local stylesheet so the navigation, controls,
 * preview stage and responsive layout stay consistent across the collection.
 */

:root {
    --brand: #635bff;
    --brand-strong: #4f46e5;
    --brand-soft: #eeedff;
    --accent: #f97316;
    --accent-strong: #ea580c;
    --surface-page: #f5f7fb;
    --surface-panel: #ffffff;
    --surface-muted: #f8fafc;
    --surface-raised: #ffffff;
    --ink: #172033;
    --ink-muted: #5d6678;
    --ink-subtle: #7c8699;
    --line: #dde2ea;
    --line-strong: #cbd2dd;
    --rail: #182033;
    --rail-hover: #273149;
    --focus-ring: rgba(99, 91, 255, 0.2);
    --shadow-card: 0 1px 2px rgba(20, 29, 48, 0.04), 0 12px 32px rgba(20, 29, 48, 0.08);
    --shadow-float: 0 12px 32px rgba(20, 29, 48, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    /* Compatibility with the variables already used by individual tools. */
    --bg-primary: var(--surface-page);
    --bg-secondary: var(--surface-panel);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-muted);
    --text-tertiary: var(--ink-subtle);
    --border-color: var(--line);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: rgba(20, 29, 48, 0.08);
}

[data-theme="dark"] {
    --brand: #8b83ff;
    --brand-strong: #a39dff;
    --brand-soft: rgba(139, 131, 255, 0.14);
    --accent: #fb923c;
    --accent-strong: #fdba74;
    --surface-page: #0c1220;
    --surface-panel: #121a2b;
    --surface-muted: #0f1727;
    --surface-raised: #182236;
    --ink: #f3f6fb;
    --ink-muted: #b7c0d0;
    --ink-subtle: #8f9aaf;
    --line: #2a3549;
    --line-strong: #3a465c;
    --rail: #080d18;
    --rail-hover: #1d273a;
    --focus-ring: rgba(139, 131, 255, 0.28);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.2), 0 16px 36px rgba(0, 0, 0, 0.28);
    --shadow-float: 0 16px 38px rgba(0, 0, 0, 0.42);
    --nav-bg: rgba(18, 26, 43, 0.9);
    --shadow-sm: rgba(0, 0, 0, 0.3);
}

html {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html,
body {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface-page);
}

body {
    min-width: 320px;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:where(button, a, input, select, textarea):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    min-height: 72px;
    padding: 12px 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(20, 29, 48, 0.02);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.navbar-container {
    width: 100%;
    max-width: 1440px;
    padding: 0 28px;
    gap: 18px;
}

.navbar-logo {
    height: 38px;
}

.navbar-nav {
    gap: 4px;
}

.nav-link {
    padding: 9px 13px;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-strong);
    background: var(--brand-soft);
    text-decoration: none;
}

.theme-toggle,
.mobile-menu-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
    color: var(--ink-muted);
    background: var(--surface-panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-color: var(--brand);
}

.share-toggle {
    min-height: 40px;
    padding: 8px 13px;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: none;
}

.share-toggle:hover {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(99, 91, 255, 0.24);
}

.nav-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: #ffffff;
    background: var(--accent);
    border-radius: 10px;
    box-shadow: none;
}

.nav-cta:hover {
    background: var(--accent-strong);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.22);
    transform: translateY(-1px);
}

.share-dropdown-menu,
.navbar-nav.active {
    background: var(--surface-raised);
    border-color: var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
}

.share-dropdown-item {
    color: var(--ink-muted);
    border-radius: var(--radius-sm);
}

.share-dropdown-item:hover {
    color: var(--brand-strong);
    background: var(--brand-soft);
}

/* Primary tool layout */
.app-container {
    min-height: calc(100vh - 72px);
    margin-top: 72px;
    background: var(--surface-page);
}

.control-groups-nav {
    width: 76px;
    padding: 16px 8px;
    gap: 8px;
    background: var(--rail);
    border-color: var(--rail);
}

.group-tab {
    width: 60px;
    min-height: 88px;
    height: auto;
    margin: 0;
    padding: 12px 7px;
    gap: 8px;
    color: rgba(255, 255, 255, 0.62);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
}

.group-tab:hover {
    color: rgba(255, 255, 255, 0.94);
    background: var(--rail-hover);
}

.group-tab.active {
    color: #ffffff;
    background: var(--brand);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.group-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.controls-panel {
    width: 352px;
    max-height: calc(100vh - 72px);
    color: var(--ink);
    background: var(--surface-panel);
    border-color: var(--line);
    scrollbar-color: var(--line-strong) transparent;
}

.control-group {
    padding: 24px;
}

.group-title {
    margin-bottom: 20px;
    padding-bottom: 13px;
    color: var(--ink);
    border-color: var(--line);
    font-size: 0.9375rem;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.control-row {
    margin-bottom: 17px;
}

.control-label {
    margin-bottom: 7px;
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.control-input,
.control-select,
.control-textarea,
.color-input,
.series-name-input,
.item-input,
.data-input,
.custom-color-input {
    min-height: 38px;
    padding: 8px 11px;
    color: var(--ink);
    background: var(--surface-panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.control-textarea,
textarea.control-input {
    min-height: 84px;
    line-height: 1.5;
}

.control-input:hover,
.control-select:hover,
.control-textarea:hover,
.color-input:hover {
    border-color: var(--brand);
}

.control-input:focus,
.control-select:focus,
.control-textarea:focus,
.color-input:focus,
.series-name-input:focus,
.item-input:focus,
.data-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-color: var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 2px var(--surface-panel);
}

.color-swatch:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.slider {
    height: 5px;
    background: var(--line);
}

.slider::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    background: var(--brand);
    border: 3px solid var(--surface-panel);
    box-shadow: 0 0 0 1px var(--brand), 0 2px 6px rgba(20, 29, 48, 0.18);
}

.slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    background: var(--brand);
    border: 3px solid var(--surface-panel);
    box-shadow: 0 0 0 1px var(--brand), 0 2px 6px rgba(20, 29, 48, 0.18);
}

.slider-value {
    min-width: 52px;
    padding: 5px 8px;
    color: var(--ink-muted);
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.toggle-slider {
    background: var(--line-strong);
}

input:checked + .toggle-slider {
    background: var(--brand);
}

.export-btn,
.control-btn,
.add-group-btn,
.add-item-btn,
.palette-btn,
.preset-btn {
    min-height: 38px;
    padding: 9px 13px;
    color: var(--ink-muted);
    background: var(--surface-panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.export-btn:hover,
.control-btn:hover,
.add-group-btn:hover,
.add-item-btn:hover,
.palette-btn:hover,
.preset-btn:hover {
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-color: var(--brand);
    transform: translateY(-1px);
}

.export-btn.primary,
.control-btn.primary {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.export-btn.primary:hover,
.control-btn.primary:hover {
    color: #ffffff;
    background: var(--brand-strong);
    border-color: var(--brand-strong);
    box-shadow: 0 8px 18px rgba(99, 91, 255, 0.22);
}

/* Preview stage */
.result-panel {
    min-width: 0;
    padding: clamp(24px, 4vw, 56px);
    background:
        radial-gradient(circle at 84% 12%, rgba(99, 91, 255, 0.08), transparent 28rem),
        var(--surface-muted);
}

.result-container {
    gap: 18px;
}

.chart-container {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.chart-title {
    color: var(--ink);
    letter-spacing: -0.025em;
}

.chart-subtitle {
    color: var(--ink-muted);
}

.chart-info,
.app-info {
    color: var(--ink-muted);
    background: var(--surface-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 18px rgba(20, 29, 48, 0.05);
}

.color-picker-popover,
.icon-picker,
.privacy-modal-content {
    color: var(--ink);
    background: var(--surface-raised);
    border-color: var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
}

.app-footer {
    color: var(--ink-muted);
    background: var(--surface-panel);
    border-color: var(--line);
}

.privacy-link,
.app-footer a {
    color: var(--brand-strong);
}

/* Social export presets */
.social-export-presets {
    margin: 22px 0;
    padding: 16px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.social-export-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 9px;
}

.social-export-option {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 9px;
    color: var(--ink-muted);
    background: var(--surface-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.social-export-option:hover {
    color: var(--ink);
    border-color: var(--brand);
    transform: translateY(-1px);
}

.social-export-option:has(input:checked) {
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--focus-ring);
}

.social-export-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.social-export-ratio {
    width: 32px;
    max-height: 38px;
    aspect-ratio: var(--export-ratio);
    justify-self: center;
    background: var(--brand-soft);
    border: 1.5px solid currentColor;
    border-radius: 3px;
}

.social-export-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.social-export-copy strong {
    color: inherit;
    font-size: 0.72rem;
    line-height: 1.15;
}

.social-export-copy small {
    color: var(--ink-subtle);
    font-size: 0.6rem;
    line-height: 1.25;
    white-space: normal;
}

.social-export-note {
    margin: 11px 0 0;
    color: var(--ink-subtle);
    font-size: 0.675rem;
    line-height: 1.45;
}

.social-typography-controls {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.social-typography-field {
    display: grid;
    gap: 7px;
}

.social-typography-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink-muted);
    font-size: 0.7rem;
    font-weight: 600;
}

.social-typography-value {
    color: var(--brand-strong);
    font-variant-numeric: tabular-nums;
}

.social-typography-slider {
    width: 100%;
}

.social-typography-note {
    margin: -2px 0 0;
    color: var(--ink-subtle);
    font-size: 0.64rem;
    line-height: 1.4;
}

[data-social-typography="title"] {
    max-width: 92%;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.15 !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

[data-social-typography="subtitle"] {
    max-width: 92%;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.export-btn[aria-busy="true"] {
    cursor: wait;
    opacity: 0.78;
}

.result-container.has-social-export-zoom {
    width: 100%;
    min-width: 0;
}

.social-export-dimension-target {
    width: var(--social-export-width) !important;
    height: var(--social-export-height) !important;
    min-width: var(--social-export-width) !important;
    min-height: var(--social-export-height) !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box !important;
}

.social-export-dimension-target.social-export-align-center {
    display: flex !important;
    flex-direction: column !important;
    justify-content: safe center !important;
}

.social-export-dimension-target :is(svg, canvas) {
    max-width: 100% !important;
    max-height: 100% !important;
}

.social-export-dimension-target .horizontal-timeline {
    min-width: 0;
    width: 100%;
}

#logoOverlay {
    right: 24px !important;
    bottom: 24px !important;
}

#logoOverlay > svg {
    display: block !important;
    width: 135px !important;
    height: 35px !important;
}

.social-layout-editor {
    display: grid;
    max-width: 100%;
    gap: 10px;
    justify-items: center;
}

.social-layout-toolbar {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.social-layout-toolbar button,
.social-layout-selection-label {
    min-height: 30px;
    padding: 6px 9px;
    color: var(--ink-muted);
    background: var(--surface-panel);
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    font-size: 0.68rem;
}

.social-layout-toolbar button {
    cursor: pointer;
}

.social-layout-toolbar button:hover,
.social-layout-toolbar button.is-active {
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-color: var(--brand);
}

.social-layout-selection-label {
    min-width: 76px;
    color: var(--brand-strong);
    font-weight: 700;
    text-align: center;
}

.social-export-zoom-stage {
    --social-export-preview-scale: 1;
    position: relative;
    box-sizing: content-box;
    flex: 0 0 auto;
    overflow: hidden;
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border: 0;
    border-radius: 0;
}

.social-layout-canvas {
    position: relative;
    overflow: hidden;
    transform: scale(var(--social-export-preview-scale));
    transform-origin: top left;
}

.social-layout-canvas > :is(#chart, #comparisonCard, #testimonialCard, .chart-container) {
    margin: 0 !important;
    touch-action: none;
}

.social-layout-canvas > .chart-container.social-export-dimension-target {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

[data-layout-movable] {
    position: relative;
    z-index: 2;
    cursor: grab;
    touch-action: none;
}

[data-layout-movable][data-layout-selected]:not([data-layout-movable="chart"]) {
    outline: calc(2px / var(--social-export-preview-scale)) solid var(--brand);
    outline-offset: calc(4px / var(--social-export-preview-scale));
}

[data-layout-movable]:active {
    cursor: grabbing;
}

.social-layout-plot-size {
    width: var(--social-layout-plot-width) !important;
    height: var(--social-layout-plot-height) !important;
    max-width: none !important;
    max-height: none !important;
    box-sizing: border-box !important;
}

.social-layout-canvas #logoOverlay {
    visibility: hidden !important;
}

.social-layout-logo {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    width: 135px;
    height: 35px;
    opacity: 0.8;
    pointer-events: none;
}

.social-layout-selection {
    position: absolute;
    z-index: 5;
    box-sizing: border-box;
    border: calc(2px / var(--social-export-preview-scale)) solid var(--brand);
    pointer-events: none;
}

.social-layout-handle {
    position: absolute;
    width: calc(14px / var(--social-export-preview-scale));
    height: calc(14px / var(--social-export-preview-scale));
    padding: 0;
    background: var(--surface-panel);
    border: calc(2px / var(--social-export-preview-scale)) solid var(--brand);
    border-radius: 50%;
    pointer-events: auto;
    touch-action: none;
}

.social-layout-handle.is-nw,
.social-layout-handle.is-n,
.social-layout-handle.is-ne {
    top: calc(-7px / var(--social-export-preview-scale));
}

.social-layout-handle.is-sw,
.social-layout-handle.is-s,
.social-layout-handle.is-se {
    bottom: calc(-7px / var(--social-export-preview-scale));
}

.social-layout-handle.is-nw,
.social-layout-handle.is-w,
.social-layout-handle.is-sw {
    left: calc(-7px / var(--social-export-preview-scale));
}

.social-layout-handle.is-ne,
.social-layout-handle.is-e,
.social-layout-handle.is-se {
    right: calc(-7px / var(--social-export-preview-scale));
}

.social-layout-handle.is-n,
.social-layout-handle.is-s {
    left: 50%;
    transform: translateX(-50%);
}

.social-layout-handle.is-w,
.social-layout-handle.is-e {
    top: 50%;
    transform: translateY(-50%);
}

.social-layout-handle.is-nw,
.social-layout-handle.is-se {
    cursor: nwse-resize;
}

.social-layout-handle.is-ne,
.social-layout-handle.is-sw {
    cursor: nesw-resize;
}

.social-layout-handle.is-n,
.social-layout-handle.is-s {
    cursor: ns-resize;
}

.social-layout-handle.is-e,
.social-layout-handle.is-w {
    cursor: ew-resize;
}

.social-layout-guide {
    position: absolute;
    z-index: 6;
    background: #ec4899;
    pointer-events: none;
}

.social-layout-guide-vertical {
    top: 0;
    bottom: 0;
    width: calc(1px / var(--social-export-preview-scale));
}

.social-layout-guide-horizontal {
    right: 0;
    left: 0;
    height: calc(1px / var(--social-export-preview-scale));
}

.social-export-zoom-stage.is-exporting {
    overflow: visible;
}

.social-export-zoom-stage.is-exporting .social-layout-canvas {
    transform: none !important;
}

/* Dark mode fixes for controls that previously used hard-coded white. */
[data-theme="dark"] .controls-panel,
[data-theme="dark"] .control-input,
[data-theme="dark"] .control-select,
[data-theme="dark"] .control-textarea,
[data-theme="dark"] .color-input,
[data-theme="dark"] .series-name-input,
[data-theme="dark"] .item-input,
[data-theme="dark"] .data-input,
[data-theme="dark"] .custom-color-input,
[data-theme="dark"] .export-btn,
[data-theme="dark"] .control-btn,
[data-theme="dark"] .add-group-btn,
[data-theme="dark"] .add-item-btn,
[data-theme="dark"] .palette-btn,
[data-theme="dark"] .preset-btn {
    color: var(--ink);
    background: var(--surface-panel);
    border-color: var(--line);
}

[data-theme="dark"] .group-title,
[data-theme="dark"] .control-label,
[data-theme="dark"] .slider-value {
    color: var(--ink-muted);
}

/* One consistent tablet composition: tabs above controls and preview. */
@media (min-width: 769px) and (max-width: 1024px) {
    .app-container {
        flex-flow: row wrap;
    }

    .control-groups-nav {
        width: 100%;
        height: 68px;
        flex-direction: row;
        padding: 8px 16px;
        gap: 8px;
        border-right: 0;
        border-bottom: 1px solid var(--rail);
        overflow-x: auto;
        overflow-y: hidden;
    }

    .group-tab {
        width: auto;
        min-width: 94px;
        min-height: 50px;
        flex-direction: row;
        padding: 9px 14px;
    }

    .group-label {
        writing-mode: horizontal-tb;
    }

    .controls-panel {
        width: 340px;
        max-height: none;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .result-panel {
        width: calc(100% - 340px);
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .navbar {
        min-height: 60px;
        padding: 9px 0;
    }

    .navbar-container {
        padding: 0 16px;
        gap: 8px;
    }

    .navbar-logo {
        height: 31px;
    }

    .nav-cta {
        display: none;
    }

    .app-container {
        min-height: calc(100vh - 60px);
        margin-top: 60px;
        flex-direction: column;
    }

    .navbar-nav {
        top: calc(100% + 6px);
        right: 16px;
        min-width: 190px;
        padding: 8px;
    }

    .control-groups-nav {
        position: sticky;
        top: 60px;
        z-index: 20;
        width: 100%;
        height: 62px;
        flex-direction: row;
        padding: 7px 12px;
        gap: 6px;
        border-right: 0;
        border-bottom: 1px solid var(--rail);
        overflow-x: auto;
        overflow-y: hidden;
    }

    .group-tab {
        width: auto;
        min-width: 84px;
        min-height: 46px;
        flex: 1 0 auto;
        flex-direction: row;
        padding: 8px 11px;
        gap: 7px;
    }

    .group-tab i {
        font-size: 0.875rem;
    }

    .group-label {
        writing-mode: horizontal-tb;
        font-size: 0.625rem;
    }

    .controls-panel {
        width: 100%;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .control-group {
        padding: 22px 18px;
    }

    .result-panel {
        width: 100%;
        min-height: 420px;
        padding: 24px 14px 36px;
    }

    .chart-container {
        max-width: calc(100vw - 28px);
        border-radius: var(--radius-md);
    }
}

@media (max-width: 420px) {
    .theme-toggle,
    .share-toggle,
    .mobile-menu-btn {
        min-width: 36px;
        min-height: 36px;
        padding: 7px 8px;
    }

    .control-group {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
