/* SeaFly.ai cookie consent — own solution (assets/js/consent.js). Self-contained: no page tokens needed. */
.sfc-root {
    --sfc-bg: #ffffff; --sfc-text: #0f1b33; --sfc-muted: #4b5a78; --sfc-border: rgba(20,40,90,.14);
    --sfc-accent: #2f5fe0; --sfc-accent-text: #ffffff; --sfc-link: #2f5fe0; --sfc-card: #f6f8fc;
    position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.5; box-sizing: border-box;
}
:root[data-theme="dark"] .sfc-root {
    --sfc-bg: #0e1628; --sfc-text: #e8eefc; --sfc-muted: #a6b4d4; --sfc-border: rgba(99,140,255,.28);
    --sfc-accent: #3b7bff; --sfc-link: #93b4ff; --sfc-card: #131f38;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .sfc-root {
        --sfc-bg: #0e1628; --sfc-text: #e8eefc; --sfc-muted: #a6b4d4; --sfc-border: rgba(99,140,255,.28);
        --sfc-accent: #3b7bff; --sfc-link: #93b4ff; --sfc-card: #131f38;
    }
}
.sfc-root *, .sfc-root *::before, .sfc-root *::after { box-sizing: border-box; }
.sfc-block { background: rgba(8,13,26,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sfc-soft { inset: auto 0 0 0; justify-content: center; padding: 0 16px 16px; pointer-events: none; }
.sfc-soft .sfc-dialog { pointer-events: auto; box-shadow: 0 10px 40px rgba(8,13,26,.35); }

.sfc-dialog {
    width: 100%; max-width: 540px; max-height: calc(100dvh - 32px); overflow: auto; outline: none;
    background: var(--sfc-bg); color: var(--sfc-text); border: 1px solid var(--sfc-border); border-radius: 20px; padding: 24px;
    box-shadow: 0 24px 70px rgba(8,13,26,.45);
}
.sfc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sfc-title { margin: 0 0 10px; font-size: 1.3rem; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--sfc-text); }
.sfc-x { flex: none; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; border-radius: 10px; background: transparent; color: var(--sfc-muted); font-size: 26px; line-height: 1; cursor: pointer; }
.sfc-x:hover { background: var(--sfc-card); color: var(--sfc-text); }
.sfc-text { margin: 0 0 18px; font-size: .95rem; color: var(--sfc-muted); }
.sfc-link { color: var(--sfc-link); text-decoration: none; font-weight: 600; }
.sfc-link:hover { text-decoration: underline; }

.sfc-cats { display: grid; gap: 10px; margin: 0 0 18px; }
.sfc-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--sfc-border); border-radius: 14px; background: transparent; cursor: pointer; }
.sfc-cat-fixed { cursor: default; }
.sfc-cat-info { display: grid; gap: 3px; min-width: 0; }
.sfc-cat-info strong { font-size: .95rem; color: var(--sfc-text); }
.sfc-cat-info small { font-size: .8rem; font-weight: 600; color: var(--sfc-muted); line-height: 1.4; }
.sfc-always { flex: none; font-style: normal; font-size: .8rem; font-weight: 700; color: var(--sfc-muted); }
.sfc-cat input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--sfc-accent); cursor: pointer; }

.sfc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sfc-btn { min-height: 46px; padding: 11px 14px; border-radius: 12px; font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; border: 1px solid var(--sfc-border); transition: transform .12s, box-shadow .12s, background .12s; }
.sfc-btn:active { transform: translateY(1px); }
.sfc-ghost { background: var(--sfc-bg); color: var(--sfc-text); }
.sfc-ghost:hover { background: var(--sfc-card); }
.sfc-primary { background: var(--sfc-accent); color: var(--sfc-accent-text); border-color: var(--sfc-accent); box-shadow: 0 6px 18px rgba(47,95,224,.28); }
.sfc-primary:hover { filter: brightness(1.07); }
.sfc-wide { grid-column: 1 / -1; }
.sfc-settings-link { grid-column: 1 / -1; justify-self: center; margin-top: 4px; padding: 8px 12px; border: 0; background: none; color: var(--sfc-text); font: inherit; font-size: .9rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sfc-settings-link:hover { color: var(--sfc-link); }
.sfc-root button:focus-visible, .sfc-root a:focus-visible, .sfc-root input:focus-visible { outline: 3px solid var(--sfc-accent); outline-offset: 2px; }

html.sfc-lock { overflow: hidden !important; }
@media (max-width: 520px) {
    .sfc-block { align-items: flex-end; padding: 10px; }
    .sfc-dialog { padding: 20px 18px; border-radius: 18px; }
    .sfc-btns { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sfc-btn { transition: none; } }
