/* Orbit Browser (app/commands/browser.js). Design v3: theme surfaces, thin lines,
   flat colored tiles. Motion is at the bottom, behind the usual no-animations prefix. */

#browser-fullscreen.bx {
    --bx-line: var(--ok-line, color-mix(in srgb, var(--on-surface, #ffffff) 11%, transparent));
    --bx-muted: var(--ok-muted, color-mix(in srgb, var(--on-surface, #ffffff) 60%, transparent));
    --bx-card: var(--ok-card, var(--surface-color, #0d1117));
    --bx-soft: color-mix(in srgb, var(--on-surface, #ffffff) 6%, transparent);
    --bx-accent: var(--app-hue, #0ea5e9);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-main);
    color: var(--on-surface);
    background: var(--background);
}

/* ---------- Top: close, address bar, tabs ---------- */
.bx-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex-shrink: 0; border-bottom: 1px solid var(--bx-line); background: var(--background); }
.bx-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--on-surface); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bx-icon-btn:disabled { opacity: 0.35; cursor: default; }
.bx-omni { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 44px; padding: 0 4px 0 12px; gap: 8px; border: 1px solid var(--bx-line); border-radius: 999px; background: var(--bx-soft); }
.bx.is-typing .bx-omni { border-color: color-mix(in srgb, var(--bx-accent) 70%, transparent); background: var(--bx-card); }
.bx-omni-badge { display: inline-flex; flex-shrink: 0; color: var(--bx-muted); }
.bx-omni-badge.is-secure { color: #22a35a; }
.bx-url { flex: 1; min-width: 0; height: 100%; padding: 0; border: none !important; outline: none; background: transparent !important; color: var(--on-surface); font: 500 15px var(--font-main); text-overflow: ellipsis; }
.bx-url::placeholder { color: var(--bx-muted); }
.bx-omni-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; padding: 0; border: none; border-radius: 50%; background: transparent; color: var(--bx-muted); cursor: pointer; }
.bx-omni-btn[hidden] { display: none; }
.bx-tabs-btn { width: 40px; }
.bx-tabs-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 3px; box-sizing: border-box; border: 2px solid currentColor; border-radius: 7px; font: 800 0.72rem var(--font-main); }

/* Loading bar under the top bar. */
.bx-progress { position: relative; height: 0; flex-shrink: 0; z-index: 3; }
.bx-progress span { position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: linear-gradient(90deg, var(--bx-accent), #6366f1); transform-origin: left center; transform: scaleX(0); opacity: 0; pointer-events: none; }
.bx-progress.is-loading span { opacity: 1; transform: scaleX(0.7); }
.bx-progress.is-done span { opacity: 0; transform: scaleX(1); }

/* ---------- Pages ---------- */
.bx-stage { position: relative; flex: 1; min-height: 0; background: var(--background); }
.bx-tab { position: absolute; inset: 0; display: none; background: #ffffff; }
.bx-tab.is-on { display: block; }
.bx-tab.is-start { background: var(--background); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bx-frame { display: block; width: 100%; height: 100%; border: none; background: #ffffff; }

/* ---------- Start page ---------- */
.bx-start { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 640px; margin: 0 auto; padding: 22px 16px 28px; box-sizing: border-box; }
.bx-hello { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 6px; text-align: center; }
.bx-hello-icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 23px; background: linear-gradient(150deg, #0ea5e9, #6366f1); color: #ffffff; box-shadow: 0 12px 30px color-mix(in srgb, #0ea5e9 28%, transparent); }
.bx-hello h2 { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.bx-engine-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid var(--bx-line); border-radius: 999px; background: var(--bx-soft); color: var(--bx-muted); font: 700 0.72rem var(--font-main); cursor: pointer; }
.bx-engine-chip svg { color: var(--bx-accent); }
.bx-hero { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border: 1px solid var(--bx-line); border-radius: 999px; background: var(--bx-card); color: var(--bx-muted); }
.bx-hero:focus-within { border-color: color-mix(in srgb, var(--bx-accent) 65%, transparent); }
.bx-hero input { flex: 1; min-width: 0; height: 100%; border: none !important; outline: none; background: transparent !important; color: var(--on-surface); font: 500 16px var(--font-main); }
.bx-section { display: flex; align-items: center; justify-content: space-between; margin: 10px 4px 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bx-muted); }
.bx-section-btn { padding: 4px 8px; border: none; border-radius: 8px; background: none; color: var(--bx-accent); font: 700 0.8rem var(--font-main); text-transform: none; letter-spacing: 0; cursor: pointer; }
.bx-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
.bx-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bx-link-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: var(--bx-hue); color: #ffffff; font: 800 1.3rem var(--font-main); }
.bx-link-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.76rem; font-weight: 600; }
.bx-link-x { position: absolute; top: -4px; right: calc(50% - 34px); display: none; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 2px solid var(--background); border-radius: 50%; background: var(--error, #e5534b); color: #ffffff; cursor: pointer; }
.bx-editing .bx-link-x { display: inline-flex; }
.bx-hint { margin: -2px 4px 0; font-size: 0.82rem; color: var(--bx-muted); }
.bx-list, .bx-slist, .bx-hlist { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bx-line); border-radius: 20px; background: var(--bx-card); }
.bx-row, .bx-srow, .bx-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 56px; padding: 10px 14px; border: none; background: transparent; color: var(--on-surface); text-align: left; font-family: var(--font-main); cursor: pointer; -webkit-tap-highlight-color: transparent; }
:is(.bx-row, .bx-srow, .bx-choice, .bx-hrow) + :is(.bx-row, .bx-srow, .bx-choice, .bx-hrow) { border-top: 1px solid var(--bx-line); }
.bx-row-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--bx-hue); color: #ffffff; font: 800 0.95rem var(--font-main); }
.bx-row-text { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.bx-row-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; font-weight: 700; }
.bx-row-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.78rem; color: var(--bx-muted); }
.bx-row-meta { flex-shrink: 0; font-size: 0.72rem; color: var(--bx-muted); }
.bx-about-card { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px; border: 1px solid var(--bx-line); border-radius: 20px; background: color-mix(in srgb, var(--bx-accent) 8%, var(--bx-card)); color: var(--on-surface); text-align: left; font-family: var(--font-main); cursor: pointer; }
.bx-about-card > svg { flex-shrink: 0; color: var(--bx-muted); }
.bx-about-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 13px; background: var(--bx-accent); color: #ffffff; }

/* ---------- Couldn't open ---------- */
.bx-fail { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: var(--background); color: var(--on-surface); }
.bx-fail-icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 22px; background: color-mix(in srgb, var(--bx-accent) 14%, transparent); color: var(--bx-accent); }
.bx-fail h3 { margin: 6px 0 0; font-size: 1.2rem; font-weight: 800; }
.bx-fail p { margin: 0; max-width: 320px; font-size: 0.88rem; line-height: 1.45; color: var(--bx-muted); }
.bx-fail-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ---------- Buttons ---------- */
.bx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 22px; border: 1px solid var(--bx-line); border-radius: 999px; background: var(--bx-soft); color: var(--on-surface); font: 700 0.92rem var(--font-main); cursor: pointer; }
.bx-btn--ink { border-color: transparent; background: var(--bx-accent); color: #ffffff; }
.bx-btn--danger { border-color: transparent; background: color-mix(in srgb, var(--error, #e5534b) 16%, transparent); color: var(--error, #e5534b); }

/* ---------- Bottom bar ---------- */
.bx-bar { display: flex; align-items: center; justify-content: space-around; gap: 4px; flex-shrink: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--bx-line); background: var(--background); }
body.has-as-bar.app-open:not(.nav-buttons) .bx-bar { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.bx-bar-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 44px; padding: 0; border: none; border-radius: 16px; background: transparent; color: var(--on-surface); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bx-bar-btn:disabled { opacity: 0.3; cursor: default; }
.bx-bar-btn.is-on { color: #f59e0b; }
.bx-bar-btn.is-on svg { fill: currentColor; }
body.kb-open .bx-bar { display: none; }

/* ---------- Sheets ---------- */
.bx-sheet { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0); }
.bx-sheet.is-on { background: rgba(0, 0, 0, 0.45); }
.bx-sheet-card { position: relative; width: 100%; max-width: 560px; max-height: 82%; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; border: 1px solid var(--bx-line); border-bottom: none; border-radius: 28px 28px 0 0; background: var(--background); color: var(--on-surface); }
.bx-sheet.is-tall .bx-sheet-card { max-height: 92%; }
body.has-as-bar.app-open:not(.nav-buttons) .bx-sheet-card { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
.bx-grab { width: 40px; height: 5px; margin: 4px auto 8px; border-radius: 3px; background: var(--bx-line); }
.bx-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 2px 12px; }
.bx-sheet-head h3 { margin: 4px 0 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 1.2rem; font-weight: 800; }
.bx-sheet-head p { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.82rem; color: var(--bx-muted); }
.bx-sheet-head > div { min-width: 0; }
.bx-sheet-x { background: var(--bx-soft); }
.bx-sheet-actions { display: flex; gap: 8px; margin-top: 14px; }
.bx-sheet-actions .bx-btn { flex: 1; }
.bx-srow-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 11px; background: var(--bx-hue, var(--bx-accent)); color: #ffffff; }
.bx-srow > svg, .bx-srow > span:last-child > svg { flex-shrink: 0; color: var(--bx-muted); }

/* Menu: four round actions, then rows. */
.bx-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.bx-qbtn { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 4px 0; border: none; background: none; color: var(--on-surface); font: 600 0.74rem var(--font-main); cursor: pointer; }
.bx-qbtn > span { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 18px; border: 1px solid var(--bx-line); background: var(--bx-card); }
.bx-qbtn.is-on > span { color: #f59e0b; }
.bx-qbtn.is-on svg { fill: currentColor; }
.bx-qbtn:disabled { opacity: 0.35; cursor: default; }

/* Tabs grid. */
.bx-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bx-tcard { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid var(--bx-line); border-radius: 20px; background: var(--bx-card); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bx-tcard.is-on { border-color: var(--bx-accent); }
.bx-tcard-top { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 6px 8px 10px; }
.bx-tcard-top i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; background: var(--bx-hue); color: #ffffff; font: 800 0.7rem var(--font-main); font-style: normal; }
.bx-tcard-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }
.bx-tcard-x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; border: none; border-radius: 50%; background: var(--bx-soft); color: var(--on-surface); cursor: pointer; }
.bx-tcard-body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 110px; background: color-mix(in srgb, var(--bx-hue) 16%, var(--background)); }
.bx-tcard-big { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 17px; background: var(--bx-hue); color: #ffffff; font: 800 1.4rem var(--font-main); }
.bx-tcard-host { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.74rem; color: var(--bx-muted); }

/* History and bookmarks. */
.bx-hrow { display: flex; align-items: center; min-width: 0; }
.bx-hrow .bx-row { flex: 1; }
.bx-hrow-x { margin-right: 6px; color: var(--bx-muted); }
.bx-empty { margin: 0; padding: 22px 16px; text-align: center; font-size: 0.88rem; color: var(--bx-muted); }

/* Settings. */
.bx-set { display: flex; flex-direction: column; gap: 10px; }
.bx-set-head { margin: 8px 6px 0; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bx-muted); }
.bx-row-text span.bx-wrap, .bx-choice .bx-row-text span { white-space: normal; }
.bx-radio { width: 22px; height: 22px; flex-shrink: 0; box-sizing: border-box; border: 2px solid var(--bx-line); border-radius: 50%; }
.bx-choice.is-on .bx-radio { border: 7px solid var(--bx-accent); }
.bx-switch { position: relative; width: 46px; height: 28px; flex-shrink: 0; border-radius: 999px; background: var(--bx-line); }
.bx-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; }
.bx-switch.is-on { background: var(--bx-accent); }
.bx-switch.is-on i { transform: translateX(18px); }

/* The engine notice. */
.bx-notice-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 14px; text-align: center; }
.bx-notice-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 22px; background: linear-gradient(150deg, #0ea5e9, #6366f1); color: #ffffff; }
.bx-notice-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bx-accent); }
.bx-notice-hero h3 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.bx-notice-body { display: flex; flex-direction: column; gap: 10px; }
.bx-ncard { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--bx-line); border-radius: 20px; background: var(--bx-card); color: var(--on-surface); text-align: left; font-family: var(--font-main); }
.bx-ncard b { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.bx-ncard p { margin: 0; font-size: 0.84rem; line-height: 1.45; color: var(--bx-muted); }
.bx-ncard ul { margin: 0; padding-left: 18px; font-size: 0.84rem; line-height: 1.45; color: var(--bx-muted); }
.bx-ncard li + li { margin-top: 3px; }
.bx-ncard--gh { width: 100%; cursor: pointer; }
.bx-check { display: flex; align-items: center; gap: 10px; margin: 14px 4px 0; font-size: 0.86rem; color: var(--bx-muted); cursor: pointer; }
.bx-check input { position: absolute; opacity: 0; pointer-events: none; }
.bx-check-box { position: relative; width: 22px; height: 22px; flex-shrink: 0; box-sizing: border-box; border: 2px solid var(--bx-line); border-radius: 7px; }
.bx-check input:checked + .bx-check-box { border-color: var(--bx-accent); background: var(--bx-accent); }
.bx-check input:checked + .bx-check-box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #ffffff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

@media (min-width: 700px) {
    .bx-links { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .bx-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bx-sheet { align-items: center; }
    .bx-sheet-card { border-bottom: 1px solid var(--bx-line); border-radius: 28px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    :root:not(.no-animations) body:not(.no-animations) .bx-progress span { transition: transform 0.25s var(--os-ease-out, ease), opacity 0.35s var(--os-ease, ease) 0.15s; }
    :root:not(.no-animations) body:not(.no-animations) .bx-progress.is-loading span { transition: opacity 0.1s linear; animation: bxLoad 7s cubic-bezier(0.1, 0.7, 0.2, 1) both; }
    :root:not(.no-animations) body:not(.no-animations) .bx-omni { transition: border-color 0.2s var(--os-ease, ease), background-color 0.2s var(--os-ease, ease); }
    :root:not(.no-animations) body:not(.no-animations) .bx-tabs-count.is-bump { animation: osPop 0.35s var(--os-spring, ease); }
    :root:not(.no-animations) body:not(.no-animations) .bx-tab.is-on { animation: bxTabIn 0.28s var(--os-ease-out, ease) both; }
    :root:not(.no-animations) body:not(.no-animations) .bx-hello-icon { animation: osPop 0.5s var(--os-spring, ease) both; }
    :root:not(.no-animations) body:not(.no-animations) :is(.bx-hello h2, .bx-engine-chip, .bx-hero) { animation: osRise 0.4s var(--os-ease-out, ease) 0.04s backwards; }
    :root:not(.no-animations) body:not(.no-animations) .bx-link { animation: osPop 0.36s var(--os-ease-out, ease) backwards; animation-delay: calc(0.08s + var(--i, 0) * 28ms); }
    :root:not(.no-animations) body:not(.no-animations) .bx-start .bx-row { animation: osRise 0.36s var(--os-ease-out, ease) backwards; animation-delay: calc(0.14s + var(--i, 0) * 30ms); }
    :root:not(.no-animations) body:not(.no-animations) .bx-about-card { animation: osRise 0.4s var(--os-ease-out, ease) 0.22s backwards; }
    :root:not(.no-animations) body:not(.no-animations) .bx-editing .bx-link-icon { animation: heWiggle 0.3s ease-in-out infinite alternate; }
    :root:not(.no-animations) body:not(.no-animations) .bx-fail { animation: osRise 0.35s var(--os-ease-out, ease) both; }
    :root:not(.no-animations) body:not(.no-animations) .bx-fail-icon { animation: osPop 0.5s var(--os-spring, ease) 0.05s both; }
    :root:not(.no-animations) body:not(.no-animations) :is(.bx-icon-btn, .bx-bar-btn, .bx-btn, .bx-omni-btn, .bx-qbtn > span, .bx-link-icon, .bx-tcard, .bx-engine-chip, .bx-about-card, .bx-ncard--gh) { transition: transform 0.15s var(--os-ease, ease), background-color 0.15s var(--os-ease, ease), opacity 0.2s var(--os-ease, ease), color 0.2s var(--os-ease, ease); }
    :root:not(.no-animations) body:not(.no-animations) :is(.bx-icon-btn, .bx-bar-btn, .bx-btn, .bx-omni-btn, .bx-engine-chip):not(:disabled):active { transform: scale(0.9); }
    :root:not(.no-animations) body:not(.no-animations) :is(.bx-qbtn:not(:disabled):active > span, .bx-link:active .bx-link-icon) { transform: scale(0.9); }
    :root:not(.no-animations) body:not(.no-animations) :is(.bx-tcard, .bx-about-card, .bx-ncard--gh):active { transform: scale(0.97); }
    :root:not(.no-animations) body:not(.no-animations) :is(.bx-row, .bx-srow, .bx-choice):active { background: var(--bx-soft); }
    :root:not(.no-animations) body:not(.no-animations) .bx-bar-btn.is-on svg { animation: osPop 0.4s var(--os-spring, ease); }
    :root:not(.no-animations) body:not(.no-animations) .bx-sheet { transition: background-color 0.24s var(--os-ease, ease); }
    :root:not(.no-animations) body:not(.no-animations) .bx-sheet .bx-sheet-card { transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1); }
    :root:not(.no-animations) body:not(.no-animations) .bx-sheet.is-on .bx-sheet-card { transform: none; }
    :root:not(.no-animations) body:not(.no-animations) .bx-sheet.is-leaving .bx-sheet-card { transform: translateY(100%); transition-duration: 0.22s; transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
    :root:not(.no-animations) body:not(.no-animations) .bx-sheet.is-on :is(.bx-qbtn, .bx-tcard, .bx-ncard, .bx-hrow, .bx-slist) { animation: osRise 0.34s var(--os-ease-out, ease) backwards; animation-delay: calc(0.08s + var(--i, 0) * 35ms); }
    :root:not(.no-animations) body:not(.no-animations) .bx-sheet.is-on .bx-notice-icon { animation: osPop 0.55s var(--os-spring, ease) 0.1s backwards; }
    :root:not(.no-animations) body:not(.no-animations) .bx-tcard.is-leaving { transform: scale(0.85); opacity: 0; transition: transform 0.18s ease-in, opacity 0.18s ease-in; }
    :root:not(.no-animations) body:not(.no-animations) :is(.bx-radio, .bx-switch, .bx-switch i, .bx-check-box) { transition: border-width 0.2s var(--os-spring, ease), background-color 0.2s var(--os-ease, ease), transform 0.22s var(--os-spring, ease), border-color 0.2s var(--os-ease, ease); }
    @media (min-width: 700px) {
        :root:not(.no-animations) body:not(.no-animations) .bx-sheet .bx-sheet-card { transform: translateY(24px) scale(0.96); opacity: 0; transition: transform 0.3s var(--os-spring, ease), opacity 0.2s ease; }
        :root:not(.no-animations) body:not(.no-animations) .bx-sheet.is-on .bx-sheet-card { transform: none; opacity: 1; }
    }
}
@keyframes bxLoad { from { transform: scaleX(0.04); } to { transform: scaleX(0.86); } }
@keyframes bxTabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Settings note, "Read more" on notice cards. */
.bx-set-note { margin: 2px 8px 0; font-size: 0.78rem; line-height: 1.4; color: var(--bx-muted); }
.bx-ncard-more { display: inline-block; margin-top: 6px; font-size: 0.8rem; font-weight: 700; color: var(--bx-accent); }
.bx-fail--blocked .bx-fail-icon { background: color-mix(in srgb, #ef4444 15%, transparent); color: #ef4444; }
.bx-fail--blocked b { color: var(--on-surface); word-break: break-all; }
