.hyperpro-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hyperpro-menu-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #6b7280;
}

.hyperpro-menu-link:hover {
    background: #f3f4f6;
    color: var(--color-primary);
}

.hyperpro-font-select {
    max-width: 110px;
}

.diara-custom-select.hyperpro-font-select {
    max-width: 110px;
    width: auto;
    flex-shrink: 0;
}

.diara-custom-select.hyperpro-font-select .diara-custom-select__trigger {
    max-width: 110px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.dark .hyperpro-menu-link {
    color: #e5e7eb;
}

.dark .hyperpro-menu-link svg {
    color: #9ca3af;
}

.dark .hyperpro-menu-link:hover {
    background: #1f242c;
    color: var(--color-primary);
}

.dark .hyperpro-font-select {
    background: #151d27;
    border-color: #374151;
    color: #e5e7eb;
}

.dark .diara-custom-select.hyperpro-font-select .diara-custom-select__trigger {
    background: #151d27;
    border-color: #374151;
    color: #e5e7eb;
}

.hyperpro-menu-link--static {
    cursor: default;
}

.hyperpro-menu-link--static:hover {
    background: transparent;
    color: inherit;
}

.dark .hyperpro-menu-link--static:hover {
    background: transparent;
    color: #e5e7eb;
}

.hyperpro-menu-version {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.dark .hyperpro-menu-version {
    color: #9ca3af;
}

.hyperpro-menu-download .hyperpro-menu-version {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-primary, #5865F2) 12%, transparent);
    color: var(--color-primary, #5865F2);
}

.hyperpro-menu-download:hover .hyperpro-menu-version {
    background: color-mix(in srgb, var(--color-primary, #5865F2) 20%, transparent);
}

.hyperpro-theme-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.hyperpro-theme-modal.hidden {
    display: none;
}

.hyperpro-theme-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hyperpro-theme-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.15);
}

.dark .hyperpro-theme-modal__panel {
    background: #111820;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
    .hyperpro-theme-modal {
        align-items: center;
    }

    .hyperpro-theme-modal__panel {
        border-radius: 16px;
    }
}

/* Custom color picker — avoids broken Android WebView <input type="color"> dialog */
.diara-safe-color-swatch {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    appearance: none;
}

.dark .diara-safe-color-swatch {
    border-color: #4b5563;
}

.diara-safe-color-palette {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dark .diara-safe-color-palette {
    background: #0f172a;
    border-color: #334155;
}

.diara-safe-color-palette[hidden] {
    display: none !important;
}

.diara-safe-color-chip {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
}

.diara-safe-color-chip.is-selected {
    outline: 2px solid var(--color-primary, #0d9488);
    outline-offset: 2px;
}

.diara-safe-color-chip[data-color="#FFFFFF"],
.diara-safe-color-chip[data-color="#ffffff"] {
    border-color: #cbd5e1;
}
