/* ==========================================================================
   The glass look: colourful wallpaper, see-through panels and glossy controls.

   Loaded after site.css. EVERY rule is scoped to html:not([data-look="classic"]), so the classic look is exactly
   what site.css draws. Rules that restyle components use :where() so that they stay weaker than the state rules
   in site.css (hover, active, correct, wrong, chosen): those keep working unchanged.

   Real blur is used only where sharp content passes behind (header, search palette, present mode help and toast).
   Panels over the soft wallpaper read as glass from translucency and shine alone, which costs nothing and cannot
   disturb sticky or fixed elements. Checked by RaymondMusa.Tests/GlassLookTests.cs.
   ========================================================================== */

/* ---- Tokens, light ---- */
html:not([data-look="classic"]) {
    --glass: rgba(255, 255, 255, .78);
    --glass-strong: rgba(255, 255, 255, .92);
    --glass-header: rgba(255, 255, 255, .74);
    --glass-line: rgba(255, 255, 255, .85);
    --glass-edge: rgba(30, 70, 130, .13);
    --glass-ring: rgba(255, 255, 255, .62);
    --glass-bubble: rgba(255, 255, 255, .55);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(30, 70, 130, .08), 0 0 0 1px rgba(30, 70, 130, .06), 0 16px 36px -20px rgba(30, 60, 130, .5);
    --glass-gel: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -8px 14px -10px rgba(0, 0, 0, .35);
    --muted: #3f4d63;
    --aviation: #0a4a8c;
    --software: #0a544e;
}

/* ---- Tokens, dark ---- */
html:not([data-look="classic"])[data-theme="dark"] {
    --glass: rgba(17, 28, 50, .72);
    --glass-strong: rgba(17, 28, 50, .94);
    --glass-header: rgba(9, 16, 32, .72);
    --glass-line: rgba(255, 255, 255, .16);
    --glass-edge: rgba(150, 200, 255, .16);
    --glass-ring: rgba(150, 220, 255, .13);
    --glass-bubble: rgba(170, 230, 255, .16);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 0 0 1px rgba(150, 200, 255, .07), 0 20px 42px -22px rgba(0, 0, 0, .8);
    --glass-gel: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -8px 14px -10px rgba(0, 0, 0, .5);
    --muted: #c0d0e4;
    --aviation: #9ad0ff;
    --software: #7eeadb;
}

@media (prefers-color-scheme: dark) {
    html:not([data-look="classic"]):not([data-theme="light"]) {
        --glass: rgba(17, 28, 50, .72);
        --glass-strong: rgba(17, 28, 50, .94);
        --glass-header: rgba(9, 16, 32, .72);
        --glass-line: rgba(255, 255, 255, .16);
        --glass-edge: rgba(150, 200, 255, .16);
        --glass-ring: rgba(150, 220, 255, .13);
        --glass-bubble: rgba(170, 230, 255, .16);
        --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 0 0 1px rgba(150, 200, 255, .07), 0 20px 42px -22px rgba(0, 0, 0, .8);
        --glass-gel: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -8px 14px -10px rgba(0, 0, 0, .5);
        --muted: #c0d0e4;
        --aviation: #9ad0ff;
        --software: #7eeadb;
    }
}

/* ---- Wallpaper colours: home and other pages purple, orange and blue; aviation sky and violet; software teal and green ---- */
html:not([data-look="classic"]) body { --wall-base: #eee5ff; --wall-1: #d5b4ff; --wall-2: #ffbd8a; --wall-3: #9ccbff; }
html:not([data-look="classic"]) body:has(.zone-aviation) { --wall-base: #e0f0ff; --wall-1: #94caff; --wall-2: #c8b4ff; --wall-3: #8fe6f8; }
html:not([data-look="classic"]) body:has(.zone-software) { --wall-base: #e0f7f1; --wall-1: #8ce4cb; --wall-2: #c2eba6; --wall-3: #a5d2ff; }

html:not([data-look="classic"])[data-theme="dark"] body { --wall-base: #120b26; --wall-1: #4c2380; --wall-2: #61290f; --wall-3: #0d3670; }
html:not([data-look="classic"])[data-theme="dark"] body:has(.zone-aviation) { --wall-base: #05152a; --wall-1: #0a4f82; --wall-2: #34247e; --wall-3: #065468; }
html:not([data-look="classic"])[data-theme="dark"] body:has(.zone-software) { --wall-base: #03181a; --wall-1: #08584c; --wall-2: #1a5226; --wall-3: #0c4272; }

@media (prefers-color-scheme: dark) {
    html:not([data-look="classic"]):not([data-theme="light"]) body { --wall-base: #120b26; --wall-1: #4c2380; --wall-2: #61290f; --wall-3: #0d3670; }
    html:not([data-look="classic"]):not([data-theme="light"]) body:has(.zone-aviation) { --wall-base: #05152a; --wall-1: #0a4f82; --wall-2: #34247e; --wall-3: #065468; }
    html:not([data-look="classic"]):not([data-theme="light"]) body:has(.zone-software) { --wall-base: #03181a; --wall-1: #08584c; --wall-2: #1a5226; --wall-3: #0c4272; }
}

/* ---- The wallpaper itself: two fixed layers behind everything, drifting very slowly ---- */
html:not([data-look="classic"]) body { background: transparent; }
html:not([data-look="classic"]) :is(.zone-aviation, .zone-software) .site-main { background: transparent; }

html:not([data-look="classic"]) body::before,
html:not([data-look="classic"]) body::after {
    content: ""; position: fixed; inset: -14vmax; pointer-events: none; will-change: transform;
}

html:not([data-look="classic"]) body::before {
    z-index: -2; background-color: var(--wall-base);
    background-image:
        radial-gradient(56vmax 48vmax at 24% 28%, var(--wall-1) 18%, transparent 74%),
        radial-gradient(50vmax 46vmax at 80% 22%, var(--wall-2) 14%, transparent 74%),
        radial-gradient(64vmax 46vmax at 66% 76%, var(--wall-3) 16%, transparent 74%),
        radial-gradient(44vmax 40vmax at 20% 80%, var(--wall-2) 8%, transparent 72%);
    animation: glass-drift 80s ease-in-out infinite alternate;
}

/* Large rings and small bubbles of light. */
html:not([data-look="classic"]) body::after {
    z-index: -1;
    background-image:
        radial-gradient(circle at 76% 34%, transparent 0 8.4vmax, var(--glass-ring) 8.5vmax 9.4vmax, transparent 9.8vmax),
        radial-gradient(circle at 76% 34%, var(--glass-bubble) 0, transparent 7vmax),
        radial-gradient(circle at 24% 70%, transparent 0 12.6vmax, var(--glass-ring) 12.7vmax 13.2vmax, transparent 13.7vmax),
        radial-gradient(circle at 63% 62%, var(--glass-bubble) 0 1.1vmax, transparent 1.5vmax),
        radial-gradient(circle at 31% 33%, var(--glass-bubble) 0 .7vmax, transparent 1vmax),
        radial-gradient(circle at 89% 74%, var(--glass-bubble) 0 2.2vmax, transparent 2.8vmax),
        radial-gradient(circle at 48% 16%, var(--glass-bubble) 0 .45vmax, transparent .7vmax),
        radial-gradient(circle at 9% 46%, var(--glass-bubble) 0 1.5vmax, transparent 2vmax);
    animation: glass-float 64s ease-in-out infinite alternate;
}

@keyframes glass-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vmax, -3vmax, 0) scale(1.08); } }
@keyframes glass-float { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-3vmax, 4vmax, 0) rotate(3deg); } }

/* ---- Glass surfaces ---- */
html:not([data-look="classic"]) :where(.card, .tile, .tool-body, .tools-nav, .study-streak, .table-wrap, .steps li, .faq details, .auth-card, .manage-nav, .conv-turn, .briefing, .slot, .predict, .notice) {
    background-color: var(--glass);
    box-shadow: var(--glass-shadow);
}

/* Only the sides and the bottom get the glass outline, so that coloured top stripes and state colours stay. */
html:not([data-look="classic"]) :where(.card, .tile, .tool-body, .tools-nav, .study-streak, .table-wrap, .steps li, .faq details, .auth-card, .manage-nav, .conv-turn, .briefing, .slot) {
    border-left-color: var(--glass-line); border-right-color: var(--glass-line); border-bottom-color: var(--glass-edge);
}

html:not([data-look="classic"]) .tools-layout > .tools-nav { background-color: var(--glass); box-shadow: var(--glass-shadow); }
html:not([data-look="classic"]) :where(.predict) { border-radius: 16px; padding: 12px 14px; }
html:not([data-look="classic"]) :where(.table) { --bs-table-bg: transparent; --bs-table-color: var(--text); }

/* Cards in a grid glow in their own colour. */
html:not([data-look="classic"]) :where(.grid > .card) { box-shadow: var(--glass-shadow), 0 18px 34px -24px var(--tile, var(--accent)); }
html:not([data-look="classic"]) :where(.tile) { box-shadow: var(--glass-shadow), 0 20px 38px -26px var(--tile, var(--red)); }

/* Result tiles and answer options sit on glass panels, so they are a little more solid. */
html:not([data-look="classic"]) :where(.result, .option) {
    background-color: var(--glass-strong); border-left-color: var(--glass-edge); border-right-color: var(--glass-edge);
    box-shadow: inset 0 1px 0 var(--glass-line), 0 8px 18px -14px rgba(20, 50, 110, .55);
}

/* ---- Header, menus and overlays: the only places with real blur ---- */
html:not([data-look="classic"]) .site-header {
    background: var(--glass-header);
    -webkit-backdrop-filter: saturate(1.9) blur(18px); backdrop-filter: saturate(1.9) blur(18px);
    box-shadow: inset 0 1px 0 var(--glass-line), 0 1px 0 var(--glass-edge), 0 14px 30px -22px rgba(10, 30, 80, .55);
}

/* A blur inside the blurred header cannot see the page, so the drop-down menus are nearly solid. */
@media (min-width: 1021px) {
    html:not([data-look="classic"]) .nav-sub { background: var(--glass-strong); border-color: var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 1px var(--glass-edge), 0 24px 46px -18px rgba(10, 25, 70, .55); }
}

html:not([data-look="classic"]) .palette {
    background: var(--glass-strong); -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
    box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 1px var(--glass-edge), 0 40px 80px -20px rgba(0, 0, 0, .6);
}

html:not([data-look="classic"]) #present-help,
html:not([data-look="classic"]) .present-toast {
    background: var(--glass-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}

html:not([data-look="classic"]) .site-footer { background: var(--glass); box-shadow: inset 0 1px 0 var(--glass-line); }

/* ---- Glossy controls ---- */
html:not([data-look="classic"]) :where(.btn-ghost, .theme-toggle, .accent-toggle, .icon-link, .palette-open, .btn-ghost-solid, .chip) {
    background-color: var(--glass-strong);
    box-shadow: inset 0 1px 0 var(--glass-line), inset 0 -6px 10px -9px rgba(0, 0, 0, .4), 0 6px 14px -10px rgba(10, 30, 80, .55);
}

html:not([data-look="classic"]) :where(.chip.active, .chip[aria-pressed="true"]) { box-shadow: var(--glass-gel), 0 8px 18px -10px var(--red); }

html:not([data-look="classic"]) :where(.btn) { border-radius: 999px; }

html:not([data-look="classic"]) :where(.btn-solid, .btn-ferrari) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04) 48%, rgba(255, 255, 255, 0) 49%), linear-gradient(145deg, var(--red-bright), var(--red) 55%, var(--red-deep));
    box-shadow: var(--glass-gel), 0 10px 22px -10px var(--red);
}

/* In dark mode the accent is light, so the gel is deepened to keep the white label readable. */
html:not([data-look="classic"])[data-theme="dark"] :where(.btn-solid, .btn-ferrari) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 49%), linear-gradient(145deg, color-mix(in srgb, var(--red) 82%, #000), color-mix(in srgb, var(--red) 62%, #000));
}

@media (prefers-color-scheme: dark) {
    html:not([data-look="classic"]):not([data-theme="light"]) :where(.btn-solid, .btn-ferrari) {
        background-image: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 49%), linear-gradient(145deg, color-mix(in srgb, var(--red) 82%, #000), color-mix(in srgb, var(--red) 62%, #000));
    }
}

html:not([data-look="classic"]) :where(.btn-aviation, .btn-software, .btn-primary-solid) { box-shadow: var(--glass-gel), 0 10px 22px -12px rgba(0, 0, 0, .6); }

html:not([data-look="classic"]) :where(.field input:not([type="range"], [type="checkbox"], [type="radio"]), .field select, .field textarea, .answer-row .grow, .tools-search) {
    background-color: var(--glass-strong);
    box-shadow: inset 0 2px 5px -3px rgba(10, 30, 80, .3);
}

html:not([data-look="classic"]) :where(.data-table thead th) { background: color-mix(in srgb, var(--accent) 12%, transparent); }

html:not([data-look="classic"]) :where(.streak-number) { box-shadow: var(--glass-gel), 0 10px 20px -10px var(--red); }
html:not([data-look="classic"]) :where(.badge) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
html:not([data-look="classic"]) :where(.bar-fill) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }

/* ---- Glossy orbs for the tile and card icons ---- */
html:not([data-look="classic"]) .tile-icon {
    width: 58px; height: 58px; border-radius: 50%;
    background: radial-gradient(circle at 32% 24%, #fff 0 9%, color-mix(in srgb, var(--tile, var(--red)) 14%, #fff) 38%, color-mix(in srgb, var(--tile, var(--red)) 52%, #fff) 100%);
    box-shadow: inset 0 -8px 12px -8px color-mix(in srgb, var(--tile, var(--red)) 80%, #000), 0 12px 20px -10px var(--tile, var(--red));
}

html:not([data-look="classic"]) .tile-icon.mono { color: color-mix(in srgb, var(--tile, var(--red)) 40%, #06121f); }

html:not([data-look="classic"]) .card .icon {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; margin-bottom: 12px;
    background: radial-gradient(circle at 32% 24%, #fff 0 9%, color-mix(in srgb, var(--tile, var(--accent)) 14%, #fff) 38%, color-mix(in srgb, var(--tile, var(--accent)) 48%, #fff) 100%);
    box-shadow: inset 0 -8px 12px -8px color-mix(in srgb, var(--tile, var(--accent)) 80%, #000), 0 12px 20px -12px var(--tile, var(--accent));
    color: #06121f;
}

html:not([data-look="classic"]) .panel-icon { border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .75), rgba(255, 255, 255, .18) 45%, rgba(255, 255, 255, .08)); box-shadow: inset 0 -8px 12px -8px rgba(0, 0, 0, .45), 0 12px 24px -12px rgba(0, 0, 0, .6); }

/* ---- Heroes and the two world panels: rings and bubbles over their own colours ---- */
html:not([data-look="classic"]) .hero::before,
html:not([data-look="classic"]) .panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 82% 22%, transparent 0 130px, rgba(255, 255, 255, .13) 132px 148px, transparent 154px),
        radial-gradient(circle at 82% 22%, rgba(140, 230, 255, .28), transparent 130px),
        radial-gradient(circle at 58% 112%, transparent 0 190px, rgba(255, 255, 255, .09) 192px 200px, transparent 206px),
        radial-gradient(circle at 44% 18%, rgba(255, 255, 255, .22) 0 9px, transparent 15px),
        radial-gradient(circle at 71% 72%, rgba(255, 255, 255, .16) 0 22px, transparent 30px),
        radial-gradient(520px 300px at 96% 96%, rgba(168, 85, 247, .32), transparent 70%);
}

html:not([data-look="classic"]) .panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 26px 50px -26px rgba(20, 40, 100, .75); }
html:not([data-look="classic"]) :where(.hero-links a, .hero-side .home-weather) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 18px 36px -22px rgba(0, 0, 0, .7); }

/* ---- Other backdrops, picked in the look menu (bubbles above is the default) ---- */
html:not([data-look="classic"])[data-wall="aurora"] body { --wall-base: #e4f7f3; --wall-1: #8fe6cf; --wall-2: #cdbaff; --wall-3: #a6dcff; }
html:not([data-look="classic"])[data-wall="sunset"] body { --wall-base: #fff0ea; --wall-1: #a8ccff; --wall-2: #ffc2a0; --wall-3: #ffcbe2; }
html:not([data-look="classic"])[data-theme="dark"][data-wall="aurora"] body { --wall-base: #03131f; --wall-1: #084438; --wall-2: #34247a; --wall-3: #093a56; }
html:not([data-look="classic"])[data-theme="dark"][data-wall="sunset"] body { --wall-base: #0d0c29; --wall-1: #1c2b6e; --wall-2: #632a13; --wall-3: #561f52; }

@media (prefers-color-scheme: dark) {
    html:not([data-look="classic"]):not([data-theme="light"])[data-wall="aurora"] body { --wall-base: #03131f; --wall-1: #084438; --wall-2: #34247a; --wall-3: #093a56; }
    html:not([data-look="classic"]):not([data-theme="light"])[data-wall="sunset"] body { --wall-base: #0d0c29; --wall-1: #1c2b6e; --wall-2: #632a13; --wall-3: #561f52; }
}

/* Northern lights: slanted curtains of colour. :where keeps these as weak as the default, so the safety switches below still win. */
html:not([data-look="classic"]):where([data-wall="aurora"]) body::before {
    background-image:
        linear-gradient(108deg, transparent 8%, var(--wall-1) 24%, transparent 37%, var(--wall-3) 50%, transparent 63%, var(--wall-2) 77%, transparent 92%),
        radial-gradient(70vmax 30vmax at 50% 8%, var(--wall-1), transparent 72%),
        radial-gradient(60vmax 34vmax at 78% 92%, var(--wall-2), transparent 72%);
}

html:not([data-look="classic"]):where([data-wall="aurora"]) body::after {
    background-image:
        linear-gradient(101deg, transparent 18%, var(--glass-bubble) 22%, transparent 27%, transparent 44%, var(--glass-ring) 47%, transparent 51%, transparent 70%, var(--glass-bubble) 73%, transparent 79%);
}

/* Evening sky above the clouds. */
html:not([data-look="classic"]):where([data-wall="sunset"]) body::before {
    background-image: linear-gradient(180deg, var(--wall-1) 12%, var(--wall-3) 46%, var(--wall-2) 68%, var(--wall-base) 92%);
}

html:not([data-look="classic"]):where([data-wall="sunset"]) body::after {
    background-image:
        radial-gradient(circle at 70% 60%, var(--glass-ring) 0 5vmax, transparent 11vmax),
        radial-gradient(30vmax 7vmax at 18% 78%, var(--glass-bubble) 35%, transparent 70%),
        radial-gradient(22vmax 8vmax at 34% 74%, var(--glass-bubble) 30%, transparent 70%),
        radial-gradient(36vmax 8vmax at 62% 84%, var(--glass-bubble) 35%, transparent 70%),
        radial-gradient(24vmax 9vmax at 80% 79%, var(--glass-bubble) 30%, transparent 70%),
        radial-gradient(60vmax 9vmax at 45% 90%, var(--glass-ring) 40%, transparent 75%);
    animation-name: glass-clouds;
}

@keyframes glass-clouds { from { transform: translate3d(-3vmax, 0, 0); } to { transform: translate3d(3vmax, 0, 0); } }

/* Plain: one calm colour. */
html:not([data-look="classic"]):where([data-wall="plain"]) body::before { background-image: none; animation: none; }
html:not([data-look="classic"]):where([data-wall="plain"]) body::after { display: none; }

/* ---- The look menu and the dock are glass too ---- */
html:not([data-look="classic"]) .look-menu {
    background: var(--glass-strong); border-color: var(--glass-line); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 1px var(--glass-edge), 0 30px 60px -22px rgba(0, 0, 0, .55);
}

html:not([data-look="classic"]) .tool-dock {
    background: var(--glass-header); border-color: var(--glass-line); -webkit-backdrop-filter: saturate(1.9) blur(18px); backdrop-filter: saturate(1.9) blur(18px);
    box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 1px var(--glass-edge), 0 22px 44px -18px rgba(10, 25, 70, .6);
}

html:not([data-look="classic"]) .dock-orb {
    background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .75) 0 8%, transparent 42%), var(--c, var(--accent));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -10px 12px -9px rgba(0, 0, 0, .5), 0 8px 14px -8px var(--c, var(--accent));
}

/* Teaching diagrams get their own pane, so that they stand out from the glass around them. */
html:not([data-look="classic"]) :where(.tool-view svg.diagram, .tool-view svg.lfc-svg, .tool-view svg.wb-chart) {
    background-color: var(--glass-strong); border-radius: 18px; box-shadow: inset 0 1px 0 var(--glass-line), 0 0 0 1px var(--glass-edge), 0 14px 28px -20px rgba(20, 50, 110, .55);
}

/* The coloured group names in the tool menu are lifted towards white on dark glass. */
html:not([data-look="classic"])[data-theme="dark"] .tools-nav :is(.tab-group-label, .group-name) { color: color-mix(in srgb, var(--g, var(--red)) 55%, #fff); }

@media (prefers-color-scheme: dark) {
    html:not([data-look="classic"]):not([data-theme="light"]) .tools-nav :is(.tab-group-label, .group-name) { color: color-mix(in srgb, var(--g, var(--red)) 55%, #fff); }
}

/* ---- Safety switches ---- */
@media (prefers-reduced-motion: reduce) {
    html:not([data-look="classic"]) body::before,
    html:not([data-look="classic"]) body::after { animation: none; will-change: auto; }
}

/* Present mode: nothing moves behind the lesson, and the tool is nearly solid for the projector. */
html:not([data-look="classic"]).present body::before,
html:not([data-look="classic"]).present body::after { animation: none; }
html:not([data-look="classic"]).present .tool-body { background-color: var(--glass-strong); }

/* Asked for less transparency (for example Windows with "Transparency effects" off): every panel is solid and nothing is blurred. The coloured background stays, since nothing shows through.
   A visitor who picks full glass with the header button (data-look="glass") has asked for it, and gets it. */
@media (prefers-reduced-transparency: reduce) {
    html:not([data-look="classic"]):not([data-look="glass"]):is([data-theme], :not([data-theme])) { --glass: var(--surface); --glass-strong: var(--surface); --glass-header: var(--surface); }
    html:not([data-look="classic"]):not([data-look="glass"]) :is(.site-header, .palette, .look-menu, .tool-dock, #present-help, .present-toast) { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Asked for more contrast: solid surfaces and a plain background. */
@media (prefers-contrast: more) {
    html:not([data-look="classic"]):is([data-theme], :not([data-theme])) { --glass: var(--surface); --glass-strong: var(--surface); --glass-header: var(--surface); --glass-line: var(--border); --glass-edge: var(--border); }
    html:not([data-look="classic"]) body::before { background-image: none; animation: none; }
    html:not([data-look="classic"]) body::after { display: none; }
    html:not([data-look="classic"]) :is(.site-header, .palette, .look-menu, .tool-dock, #present-help, .present-toast) { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html:not([data-look="classic"]):is([data-theme], :not([data-theme])) { --glass-header: var(--surface); }
}

@media (forced-colors: active) {
    html:not([data-look="classic"]) body::before,
    html:not([data-look="classic"]) body::after { display: none; }
    html:not([data-look="classic"]) :is(.site-header, .palette, .look-menu, .tool-dock, #present-help, .present-toast) { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media print {
    html:not([data-look="classic"]) body::before,
    html:not([data-look="classic"]) body::after { display: none; }
    html:not([data-look="classic"]) body { background: #fff; }
    html:not([data-look="classic"]) :is(.card, .tile, .tool-body, .table-wrap, .result, .notice, .briefing) { background-color: #fff; box-shadow: none; }
}
