/* ==========================================================================
   Variables & Theme Configuration
   ========================================================================== */
:root {
    --bg-main: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #9a9691;
    --text-dim: #757575;
    --border-color: #e8e8e8;
    --accent-color: #1a1a1a;
    --input-bg: transparent;
    --hover-bg: #f8f8f8;
    --scrollbar-thumb: #e0e0e0;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --select-arrow: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1'/%3E%3C/svg%3E");

    /* Compatibility Aliases for Documentation Pages */
    --bg-secondary: var(--hover-bg);
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);
    --accent: var(--accent-color);
    --primary: var(--accent-color);
    --secondary: var(--text-dim);
    --bg-card: var(--bg-main);
    --border-subtle: var(--border-color);
    --bg-color: var(--bg-main);
    --text-color: var(--text-main);
    --border: var(--border-color);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #1a1a1f;
        --text-main: #e8e6e3;
        --text-muted: #9a9691;
        --text-dim: #8a8a8a;
        --border-color: #2d2d32;
        --accent-color: #e8e6e3;
        --input-bg: rgba(255, 255, 255, 0.03);
        --hover-bg: #222227;
        --scrollbar-thumb: #3a3a3f;
        --select-arrow: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b6762' stroke-width='1'/%3E%3C/svg%3E");
    }
}

/* Theme Overrides */
body.light-theme {
    --bg-main: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #9a9691;
    --text-dim: #757575;
    --border-color: #e8e8e8;
    --accent-color: #1a1a1a;
    --input-bg: transparent;
    --hover-bg: #f8f8f8;
    --scrollbar-thumb: #e0e0e0;
    --select-arrow: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239a9a9a' stroke-width='1'/%3E%3C/svg%3E");
}

body.dark-theme {
    --bg-main: #1a1a1f;
    --text-main: #e8e6e3;
    --text-muted: #9a9691;
    --text-dim: #6b6762;
    --border-color: #2d2d32;
    --accent-color: #e8e6e3;
    --input-bg: rgba(255, 255, 255, 0.03);
    --hover-bg: #222227;
    --scrollbar-thumb: #3a3a3f;
    --select-arrow: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b6762' stroke-width='1'/%3E%3C/svg%3E");
}

body.high-contrast {
    --bg-main: #0a0f0a;
    --text-main: #c8e6c9;
    --text-muted: #9a9691;
    --text-dim: #81c784;
    --border-color: #2e4a2e;
    --accent-color: #c8e6c9;
    --input-bg: #0f140f;
    --hover-bg: #1a251a;
    --scrollbar-thumb: #4a6a4a;
    --select-arrow: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b6762' stroke-width='1'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

body.high-contrast * {
    font-weight: 400 !important;
}

body.high-contrast a {
    text-decoration: underline;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1400px;
    width: 100%;
    height: 95vh;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.hero-section {
    padding-right: 40px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transition: all 0.3s ease;
    flex: 1;
}

.hero-section::-webkit-scrollbar,
.dashboard-section::-webkit-scrollbar {
    width: 4px;
}

.hero-section::-webkit-scrollbar-thumb,
.dashboard-section::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
}

.dashboard-section {
    padding-left: 40px;
    overflow-y: auto;
    width: 320px;
    min-width: 320px;
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-section.collapsed {
    width: 50px;
    min-width: 50px;
    padding-left: 0;
    overflow: hidden;
}

.container:has(.dashboard-section.collapsed) .hero-section {
    padding-right: 20px;
    border-right: none;
}

/* ==========================================================================
   Typography & Header
   ========================================================================== */
h1 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 300;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tagline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tagline-row .tagline {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ==========================================================================
   Components: Buttons & Inputs
   ========================================================================== */
.theme-select,
.header-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    font-family: var(--font-main);
    transition: all 0.2s ease;
    height: auto;
}

.theme-select {
    padding-right: 28px;
    appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.theme-select:hover,
.header-btn:hover {
    border-color: var(--text-muted);
}

.theme-select:focus,
.header-btn:focus {
    outline: none;
    border-color: var(--text-main);
}

.header-btn {
    border-color: var(--text-main);
    color: var(--text-main);
    background: transparent;
}

.header-btn:hover,
.header-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main) !important;
    border-color: var(--text-main) !important;
}

/* Theme Select Icons */
body.dark-theme .theme-select,
body.high-contrast .theme-select {
    background: var(--bg-main);
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 8px center;
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* ==========================================================================
   Components: Complexity Rules
   ========================================================================== */
.complexity-rules-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.complexity-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.complexity-label input {
    cursor: pointer;
}

.exclude-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border-color);
}

.exclude-label {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.exclude-input {
    padding: 6px 12px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-main);
    color: var(--text-main);
    width: 120px;
}

/* ==========================================================================
   Components: Passphrase Items
   ========================================================================== */
.hero-passphrases-container {
    display: grid;
    gap: 50px;
}

.hero-passphrase-item {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    position: relative;
    overflow: visible;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hero-passphrase-item:hover {
    background-color: rgba(200, 230, 201, 0.15);
}

body.light-theme .hero-passphrase-item:hover,
:root .hero-passphrase-item:hover {
    background-color: rgba(200, 230, 201, 0.4);
}

body.dark-theme .hero-passphrase-item:hover {
    background-color: rgba(165, 214, 167, 0.08);
}

body.high-contrast .hero-passphrase-item:hover {
    background-color: rgba(129, 199, 132, 0.12);
}

.hero-passphrase-item.regenerating {
    opacity: 0.5;
    pointer-events: none;
}

.hero-passphrase-input {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-main);
    font-family: var(--font-mono);
    margin-bottom: 16px;
    word-break: break-all;
    letter-spacing: -0.5px;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--text-main) !important;
    padding: 8px 0 !important;
    transition: border-color 0.2s !important;
    width: 100% !important;
    cursor: pointer !important;
}

.hero-passphrase-input:hover {
    border-bottom-color: var(--text-muted) !important;
}

.hero-passphrase-input:focus {
    outline: none !important;
    border-bottom-color: var(--text-main) !important;
}

.btn-regenerate {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: all 0.2s ease;
    position: absolute;
    top: 24px;
    right: 0;
    opacity: 0;
    z-index: 10;
}

.hero-passphrase-item:hover .btn-regenerate {
    opacity: 1;
}

.hero-passphrase-item .btn-regenerate:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

body.high-contrast .btn-regenerate {
    color: var(--text-main);
    opacity: 1;
}

.passphrase-highlight,
mark.passphrase-highlight {
    background: rgba(167, 196, 160, 0.25);
    color: inherit;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: inherit;
}

body.dark-theme .passphrase-highlight,
body.dark-theme mark.passphrase-highlight {
    background: rgba(167, 196, 160, 0.15);
}

body.high-contrast .passphrase-highlight,
body.high-contrast mark.passphrase-highlight {
    background: rgba(129, 199, 132, 0.2);
}

.passphrase-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
}

.passphrase-info a {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.passphrase-info a:hover {
    border-bottom-color: var(--text-main);
}

/* ==========================================================================
   Components: Top Suggestions & Inline Form
   ========================================================================== */
.top-suggestions-section {
    display: none;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.suggestion-panel-open {
    display: block !important;
    animation: slideDown 0.3s ease-out forwards;
}

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

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

.inline-form-container {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.inline-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.7rem;
    color: var(--text-main);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inline-form-input {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 300;
}

.inline-form-input:focus {
    outline: none;
    border-bottom-color: var(--text-main);
}

.inline-form-input::placeholder {
    color: var(--text-dim);
    opacity: 0.7;
}

.inline-form-error {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.7rem;
    margin-top: 8px;
    display: none;
}

.inline-form-hint {
    color: var(--text-main);
    font-weight: 300;
    font-size: 0.65rem;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.inline-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-submit-inline {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--text-main);
    cursor: pointer;
    color: var(--text-main);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-submit-inline:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

.top-suggestions-list {
    display: grid !important;
    gap: 0 !important;
}

.top-suggestion-item,
.suggestion-item {
    padding: 16px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.top-suggestion-item:hover,
.suggestion-item:hover {
    padding-left: 8px !important;
}

.top-suggestion-item:last-child,
.suggestion-item:last-child {
    border-bottom: none !important;
}

.top-suggestion-name,
.suggestion-name {
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    border-bottom: 1px solid transparent !important;
}

.top-suggestion-item:hover .top-suggestion-name,
.suggestion-item:hover .suggestion-name {
    color: var(--text-main) !important;
    border-bottom-color: var(--text-muted) !important;
}

.top-suggestion-count,
.suggestion-count {
    font-size: 0.65rem !important;
    color: var(--text-muted) !important;
    background: transparent !important;
    padding: 4px 10px !important;
    border: 1px solid var(--border-color) !important;
    min-width: 30px !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    font-weight: 300 !important;
    transition: all 0.2s !important;
}

.top-suggestion-item:hover .top-suggestion-count,
.suggestion-item:hover .suggestion-count {
    border-color: var(--text-main) !important;
    color: var(--text-main) !important;
}

/* ==========================================================================
   Components: Dashboard Controls
   ========================================================================== */
.controls-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: 50px;
}

.toolbar-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-item {
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-size: 0.7rem;
    color: var(--text-main);
    font-weight: 300;
    letter-spacing: 0.5px;
}

select.control-item {
    cursor: pointer;
    appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

select.control-item:focus {
    outline: none;
    border-bottom-color: var(--text-main);
}



.toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-btn .hidden-checkbox {
    display: none;
}

.toggle-btn .btn-label {
    color: var(--text-dim);
    transition: color 0.2s;
}

.toggle-btn:hover .btn-label {
    color: var(--text-main);
}

.toggle-btn:has(.hidden-checkbox:checked) .btn-label {
    color: var(--text-main);
}

.toggle-btn:has(.hidden-checkbox:checked)::before {
    content: '✓';
    font-size: 0.6rem;
    color: var(--text-main);
}

.action-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 10px 0;
    font-weight: 300;
    cursor: pointer;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

.toolbar-stats {
    font-size: 0.65rem;
    color: var(--text-dim);
    padding: 10px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid var(--border-color);
}

.count-badge {
    color: var(--text-main);
    font-weight: 400;
    margin-right: 4px;
}

/* Filters Toggle */
.filters-toggle {
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 50px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: auto;
}

.filters-toggle:hover {
    color: var(--text-main);
}

.filters-toggle .toggle-hint {
    display: none;
}

.filters-toggle .toggle-collapsed-label {
    display: none;
}

.filters-toggle .toggle-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    writing-mode: horizontal-tb;
}

.dashboard-section.collapsed .filters-toggle {
    position: absolute;
    left: -1px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-bottom: none;
    border-left: 1px solid var(--border-color);
    border-right: none;
    padding: 16px 0;
    margin-bottom: 0;
    height: auto;
    width: 50px;
    justify-content: center;
    gap: 12px;
}

.dashboard-section.collapsed .filters-toggle .toggle-label {
    display: none;
}

.dashboard-section.collapsed .filters-toggle .toggle-collapsed-label {
    display: block;
}

.dashboard-section.collapsed .filters-toggle .toggle-arrow {
    transform: rotate(180deg);
    writing-mode: horizontal-tb;
}

.dashboard-section.collapsed .controls-toolbar {
    display: none;
}

/* ==========================================================================
   Components: Element Selection
   ========================================================================== */
.element-selection-row {
    padding-top: 12px;
}

.element-toggle-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: var(--font-main);
    transition: color 0.2s;
}

.element-toggle-btn:hover {
    color: var(--text-main);
}

.element-toggle-btn .toggle-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.element-selection-panel {
    padding: 12px 0 0 0;
    margin-top: 8px;
}

.element-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.element-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: var(--text-dim);
    transition: color 0.2s;
    padding: 4px 0;
}

.element-checkbox:hover {
    color: var(--text-main);
}

.element-checkbox input[type="checkbox"] {
    width: 12px;
    height: 12px;
    cursor: pointer;
    accent-color: var(--text-main);
}

.element-checkbox .checkbox-icon,
.element-checkbox .checkbox-emoji {
    display: none;
}

.element-checkbox .checkbox-text {
    white-space: nowrap;
}

.element-checkbox:has(input:checked) {
    color: var(--text-main);
}

/* ==========================================================================
   Components: Sliders
   ========================================================================== */
.slider-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.slider-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.slider-number {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 400;
    width: 32px;
    text-align: center;
    padding: 2px 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.slider-number:hover,
.slider-number:focus {
    border-bottom-color: var(--text-main);
    outline: none;
}

.slider-number::-webkit-outer-spin-button,
.slider-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.slider-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
}

.slider-range:focus {
    outline: none;
}

.slider-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 1px;
    cursor: pointer;
    background: var(--border-color);
}

.slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    margin-top: -4.5px;
    border: none;
    transition: transform 0.1s ease;
}

.slider-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-range::-moz-range-track {
    width: 100%;
    height: 1px;
    cursor: pointer;
    background: var(--border-color);
}

.slider-range::-moz-range-thumb {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    border: none;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    padding: 8px 0;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    margin-top: -6px;
    border: 2px solid var(--bg-main);
    box-shadow: 0 0 0 1px var(--border-color);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    cursor: pointer;
    background: var(--border-color);
    border-radius: 1px;
}

input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px var(--text-main);
}

/* ==========================================================================
   Components: Complexity Info
   ========================================================================== */
.complexity-info {
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.info-item {
    color: var(--text-dim);
}

.info-item b {
    color: var(--text-main);
    font-weight: 400;
}

/* ==========================================================================
   Footer & Site Info
   ========================================================================== */
.site-info {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.site-links {
    margin-bottom: 12px;
}

.site-info a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.site-info a:hover {
    color: var(--text-main);
}

.separator {
    margin: 0 8px;
    color: var(--border-color);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    background: var(--bg-main);
    color: var(--text-main);
    padding: 10px;
    border: 2px solid var(--accent-color);
    text-decoration: none;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
}

.wikipedia-link,
.wikipedia-link-small {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    border: none !important;
}

.wikipedia-link a,
.wikipedia-link-small {
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.wikipedia-link a:hover,
.wikipedia-link-small:hover {
    color: var(--text-main);
    border-bottom-color: var(--border-color);
}

.btn-report {
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    padding: 12px 0 0 0;
    margin-top: 16px;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
    display: block;
    width: 100%;
    text-align: left;
    font-family: var(--font-main);
}

.btn-report:hover {
    color: var(--text-muted);
}

.btn-report:focus {
    outline: none;
    color: var(--text-main);
}

body.high-contrast .btn-report {
    border-top-color: var(--border-color);
    color: var(--text-muted);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1280px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        gap: 0;
        height: 98vh;
    }

    .hero-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 30px;
        max-height: none;
    }

    .dashboard-section {
        padding-top: 0;
        padding-left: 0;
        max-height: none;
        position: static;
        width: 100%;
        min-width: 100%;
        display: flex;
        flex-direction: column-reverse;
    }

    .dashboard-section.collapsed {
        width: 100%;
        min-width: 100%;
    }

    .controls-toolbar {
        margin-left: 0;
        padding: 20px 40px;
    }

    .filters-toggle {
        position: static;
        transform: none;
        width: 100%;
        writing-mode: horizontal-tb;
        text-orientation: initial;
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 1px solid var(--border-color);
        padding: 12px 0;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
    }

    .dashboard-section.collapsed .filters-toggle {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        border-left: none;
        border-bottom: none;
        border-top: 1px solid var(--border-color);
        padding: 12px 0;
        height: auto;
        position: static;
        transform: none;
        width: 100%;
    }

    .dashboard-section.collapsed .filters-toggle .toggle-label {
        display: none;
    }

    .dashboard-section.collapsed .filters-toggle .toggle-collapsed-label {
        display: block;
    }

    .dashboard-section.collapsed .controls-toolbar {
        display: none;
    }
}

/* Form Utilities */
.form-group {
    margin-bottom: 12px;
}

.suggestion-feedback {
    margin-top: 12px;
    display: none;
}

.element-checkbox.checkbox-checked {
    color: var(--text-main);
}