:root {
    --app-font: 'Space Grotesk Qwantium', sans-serif;
}

h1,
h2 {
    font-family: var(--title-font, var(--app-font, 'Space Grotesk Qwantium', sans-serif));
}

.logo-small {
    font-family: var(--title-font, var(--app-font, 'Space Grotesk Qwantium', sans-serif));
}

.setting-item.setting-disabled {
    display: none !important;
}

.setting-item.search-item-hidden {
    display: none !important;
}

.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgb(var(--fg));
    color: rgb(var(--bg));
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1), opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: var(--toast-success, #22c55e);
    fill: none;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    padding: 1rem;
}

.confirm-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.confirm-box {
    background: rgb(var(--card, var(--bg)));
    color: rgb(var(--fg));
    border: 1px solid rgb(var(--border));
    border-radius: var(--btn-radius, 0.75rem);
    padding: 1.5rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s;
}

.confirm-overlay.show .confirm-box {
    transform: translateY(0) scale(1);
}

.confirm-box p {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sections-box p {
    margin-bottom: .85rem;
    font-weight: 600;
}

.sections-all,
.sections-list label {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .45rem .6rem;
    border-radius: .5rem;
    font-size: .88rem;
    cursor: pointer;
}

.sections-all {
    margin-bottom: .35rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgb(var(--border));
    border-radius: .5rem .5rem 0 0;
    font-weight: 600;
}

.sections-list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    margin: 0 0 1.1rem;
}

.sections-all:hover,
.sections-list label:hover {
    background: rgb(var(--muted));
}

.sections-all input,
.sections-list input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: rgb(var(--primary));
}

#sectionsOkBtn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.confirm-btn-ok {
    background: transparent;
    border: 1.5px solid #22d3ee;
    color: rgb(var(--fg));
    padding: 0.5rem 1.5rem;
    border-radius: var(--btn-radius, 0.5rem);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.confirm-btn-ok:hover {
    background: rgba(34, 211, 238, 0.12);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.confirm-btn-cancel {
    background: none;
    border: none;
    color: rgb(var(--fg) / 0.6);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
}

.confirm-btn-cancel:hover {
    color: rgb(var(--fg));
}
