@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Google+Sans+Flex:opsz,slnt,wdth,wght,GRAD,ROND@6..144,-10..0,25..151,1..1000,0..100,0..100&display=swap');

:root {
    /* Consistent Color variables mapped from palette.css */
    --background: #121016;
    --surface: #1d1b20;
    --surface-variant: #2d2a33;
    --primary: #8859ff;
    --primary-container: #4527a0;
    --on-primary: #ffffff;
    --on-surface: #e6e1e5;
    --on-surface-variant: #cac4d0;
    --outline: #49454f;
    --highlight-color: #8859ff;
    --highlight-bg: #f2edff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Google Sans Flex', sans-serif;
    -webkit-user-drag: none;
}

img {
    -webkit-user-select: none;
    -webkit-user-drag: none;
    user-select: none;
}

::placeholder {
    -webkit-user-select: none;
    user-select: none;
}

*::selection {
    color: var(--highlight-color);
    background: var(--highlight-bg);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.pfp-wrapper,
.portal-title,
.portal-header,
.portal-card,
button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--on-surface);
    font-family: 'Google Sans Flex', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 15px;
    gap: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Edge Floating Accent Bubble */
.ambient-bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ambient-bubble {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(450px, 55vw, 800px);
    height: clamp(450px, 55vw, 800px);
    margin-top: calc(-1 * clamp(450px, 55vw, 800px) / 2);
    margin-left: calc(-1 * clamp(450px, 55vw, 800px) / 2);
    border-radius: 50%;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--primary) 22%, transparent) 0%, color-mix(in srgb, var(--primary) 10%, transparent) 35%, color-mix(in srgb, var(--primary) 2%, transparent) 65%, transparent 85%);
    filter: blur(80px);
    pointer-events: none;
    will-change: transform, opacity;
}

:root.light-mode .ambient-bubble {
    background: radial-gradient(circle at center, color-mix(in srgb, var(--primary) 28%, transparent) 0%, color-mix(in srgb, var(--primary) 14%, transparent) 35%, color-mix(in srgb, var(--primary) 3%, transparent) 65%, transparent 85%);
    filter: blur(70px);
}

.pfp-wrapper {
    width: clamp(130px, 15.6vw, 156px);
    height: clamp(130px, 15.6vw, 156px);
    clip-path: url('#active-clip');
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.pfp-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.portal-container {
    width: 100%;
    max-width: 850px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    font-variation-settings: 'ROND' 100, 'wdth' 85;
    width: fit-content;
    margin: 0 auto;
    color: var(--on-surface);
}

.home-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.live-status-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: var(--surface-variant);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--on-surface);
    margin: 0.2rem auto 0 auto;
    width: fit-content;
    -webkit-user-select: none;
    user-select: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.live-status-bar:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #888888;
    animation: live-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.live-status-bar[data-status="at-work"] .live-dot {
    background-color: #00a862;
}

.live-status-bar[data-status="busy"] .live-dot {
    background-color: #f59e0b;
}

.live-status-bar[data-status="listening"] .live-dot {
    background-color: #1db954;
}

.live-status-bar[data-status="available"] .live-dot {
    background-color: #22c55e;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Grid Layout for Portals */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
}

/* Material 3 Card Style - Flat border, zero shadow */
.portal-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 24px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--on-surface);
    gap: 1.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.portal-card:hover {
    background: var(--surface-variant);
    border-color: var(--primary);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--outline);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    color: var(--primary);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.portal-card:hover .card-icon {
    background: var(--primary-container);
    color: var(--on-primary-container, #ffffff);
    border-color: var(--primary-container);
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    font-variation-settings: 'ROND' 100, 'wdth' 80;
}

.card-text p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    line-height: 1.4;
}

.card-action {
    display: flex;
    align-items: center;
    color: var(--on-surface-variant);
    transition: color 0.2s ease, transform 0.2s ease;
}

.portal-card:hover .card-action {
    color: var(--primary);
}

@media (max-width: 768px) {
    .portal-container {
        max-width: 450px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    h1 {
        font-size: 2rem;
    }

    .portal-card {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .card-left {
        gap: 0.75rem;
    }
}



#spotify-widget {
    display: none;
}

.spotify-card.active .eq-bar {
    animation: eq-bounce 1.2s ease-in-out infinite alternate;
}

.spotify-card.active .eq-bar:nth-child(1) {
    animation-delay: -0.4s;
}

.spotify-card.active .eq-bar:nth-child(2) {
    animation-delay: -0.8s;
}

.spotify-card.active .eq-bar:nth-child(3) {
    animation-delay: -0.2s;
}

.spotify-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.eq-bar {
    width: 2.5px;
    height: 3px;
    background-color: currentColor;
    border-radius: 1px;
    transition: background-color 0.2s ease;
}

@keyframes eq-bounce {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    -webkit-user-select: none;
    user-select: none;
}

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid var(--outline);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
    -webkit-user-select: none;
    user-select: none;
}

.theme-dot:focus {
    outline: none;
}

.theme-red {
    background-color: #eb3f56;
}

.theme-orange {
    background-color: #ff7524;
}

.theme-yellow {
    background-color: #f5b500;
}

.theme-green {
    background-color: #00c853;
}

.theme-blue {
    background-color: #00b0ff;
}

.theme-purple {
    background-color: #8859ff;
}

.theme-white {
    background-color: #ffffff;
}

.theme-dot.active {
    transform: scale(1.35);
}

.theme-dot:hover:not(.active) {
    transform: scale(1.15);
}

/* Card right-arrow slide animation */
.portal-card .card-action svg {
    transition: transform 0.2s ease;
}

.portal-card:hover .card-action svg {
    transform: translateX(4px);
}

/* Help Button, Version tag & Help Modal Styles */
.top-left-info {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

.help-btn {
    background: transparent;
    border: none;
    padding: 6px;
    color: var(--on-surface-variant);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.help-btn:hover {
    color: var(--primary);
    background-color: var(--surface-variant);
}

.version-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    opacity: 0.7;
    user-select: none;
    -webkit-user-select: none;
}

.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.help-modal.active {
    display: flex;
}

.help-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 16, 22, 0.75);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.help-modal-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 24px;
    z-index: 1001;
    overflow: hidden;
    animation: helpModalFadeIn 0.2s ease-out;
}

@keyframes helpModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.help-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

.help-close-btn {
    background: transparent;
    border: none;
    color: var(--on-surface-variant);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

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

.help-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.help-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

.help-section p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--on-surface-variant);
    margin: 0;
}

.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    user-select: none;
    -webkit-user-select: none;
}

.shortcut-keys {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.shortcut-keys .plus-sign {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    opacity: 0.7;
    padding: 0 1px;
}

kbd, code, pre {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.shortcut-item kbd {
    background-color: var(--surface-variant);
    border: 1px solid var(--outline);
    border-radius: 6px;
    padding: 2px 8px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    color: var(--on-surface);
    min-width: 28px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.shortcut-item span {
    color: var(--on-surface-variant);
    user-select: none;
    -webkit-user-select: none;
}

.debug-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.debug-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.debug-item span {
    color: var(--on-surface-variant);
    user-select: none;
    -webkit-user-select: none;
}

.debug-item code {
    background-color: var(--surface-variant);
    border: 1px solid var(--outline);
    border-radius: 6px;
    padding: 2px 8px;
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    color: var(--on-surface);
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.debug-item code:hover {
    border-color: var(--primary, #8859ff);
}

/* Settings Button, Settings Modal & Appearance Toggle Styles */
.settings-btn {
    background: transparent;
    border: none;
    padding: 6px;
    color: var(--on-surface-variant);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.settings-btn:hover {
    color: var(--primary);
    background-color: var(--surface-variant);
}

.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.settings-modal.active {
    display: flex;
}

.settings-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 16, 22, 0.75);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

:root.light-mode .settings-modal-overlay {
    background-color: rgba(253, 251, 255, 0.75);
}

.settings-modal-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 24px;
    z-index: 1001;
    overflow: hidden;
    animation: settingsModalFadeIn 0.2s ease-out;
}

@keyframes settingsModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

:root.light-mode .settings-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.settings-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

.settings-close-btn {
    background: transparent;
    border: none;
    color: var(--on-surface-variant);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.settings-close-btn:hover {
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
}

:root.light-mode .settings-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.settings-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Custom Select Dropdown Styling */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.select-trigger {
    background-color: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.select-trigger:hover {
    border-color: var(--primary);
    background-color: var(--surface-variant);
}

.select-trigger-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.select-arrow {
    color: var(--on-surface-variant);
    transition: transform 0.2s ease;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 12px;
    z-index: 1002;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
}

.custom-select.open .select-options {
    display: flex;
}

.select-option {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-option:hover {
    background-color: var(--surface-variant);
}

.select-option.selected {
    background-color: color-mix(in srgb, var(--primary-container) 15%, transparent);
}

/* Custom Dropdown Option Accent Colors */
.option-red { color: #eb3f56 !important; }
:root.light-mode .option-red { color: #b32638 !important; }
.option-orange { color: #ff7524 !important; }
:root.light-mode .option-orange { color: #bf4100 !important; }
.option-yellow { color: #f5b500 !important; }
:root.light-mode .option-yellow { color: #bf8d00 !important; }
.option-green { color: #00c853 !important; }
:root.light-mode .option-green { color: #1f793c !important; }
.option-blue { color: #00b0ff !important; }
:root.light-mode .option-blue { color: #1976d2 !important; }
.option-purple { color: #8859ff !important; }
:root.light-mode .option-purple { color: #6536ec !important; }
.option-white { color: #ffffff !important; }
:root.light-mode .option-white { color: #121016 !important; }

/* Light/Dark Toggle Pill Switch Styling */
.appearance-toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    user-select: none;
    -webkit-user-select: none;
}

.appearance-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--on-surface);
}

.theme-toggle-pill {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--surface-variant);
    border: 1px solid var(--outline);
    border-radius: 30px;
    padding: 4px;
    cursor: pointer;
    width: 96px;
    height: 48px;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    box-sizing: border-box;
}

:root.light-mode .theme-toggle-pill {
    background-color: var(--surface-variant);
}

.toggle-pill-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 42px;
    height: 38px;
    background-color: var(--surface);
    border-radius: 20px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
    z-index: 1;
}

:root.light-mode .toggle-pill-thumb {
    background-color: var(--surface);
}

.toggle-pill-option {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 2;
    color: var(--on-surface-variant);
    opacity: 0.4;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.theme-toggle-pill:hover .toggle-pill-option {
    opacity: 0.7;
}

.theme-toggle-pill[data-active="light"] .option-light {
    color: var(--on-surface);
    opacity: 1;
}

.theme-toggle-pill[data-active="dark"] .option-dark {
    color: #ffffff;
    opacity: 1;
}

.theme-toggle-pill[data-active="dark"] .toggle-pill-thumb {
    transform: translateX(44px);
}

/* Card Icon background dynamically driven */
.card-icon {
    background: var(--card-icon-bg, rgba(255, 255, 255, 0.05));
}

/* Help Modal Footer Styling */
.help-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

:root.light-mode .help-modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.help-modal-footer .version-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    opacity: 0.7;
    user-select: none;
    -webkit-user-select: none;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--outline, #49454f);
    border-radius: 8px;
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.github-btn:hover {
    background: var(--surface-variant, #2d2a33);
    border-color: var(--primary, #8859ff);
    color: #ffffff;
}

.github-btn svg {
    display: block;
}

@media (max-width: 768px) {
    .shortcuts-section,
    .context-menu-help {
        display: none;
    }
}

/* Motion Toggle Pill & Reduced Motion Rules */
.motion-toggle-pill {
    position: relative;
    width: 52px;
    height: 28px;
    background-color: var(--surface-variant);
    border: 1px solid var(--outline);
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.motion-toggle-pill[data-active="true"] {
    background-color: var(--primary);
    border-color: var(--primary);
}

.motion-toggle-pill .toggle-pill-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--on-surface);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.motion-toggle-pill[data-active="true"] .toggle-pill-thumb {
    transform: translateX(24px);
    background-color: var(--on-primary);
}