/* ============================================================
   Light theme — public pages (marketing, sign-in, signup,
   onboarding, legal).

   Every rule is scoped to html[data-theme="light"], which
   partials/theme_mode_head.php sets before first paint when this
   device has chosen light. Without the attribute nothing here
   applies and the pages are exactly the dark ones.

   These pages were built dark with hard-coded Tailwind utilities
   (precompiled on the marketing pages, the runtime build on the
   sign-in ones) plus per-page style blocks, so the light theme is a
   remap: the same class names, given light values. The scope adds
   enough specificity to win over both Tailwind builds and the
   per-page blocks without !important — except where the dark rule
   it replaces is itself !important (form fields, the glass card).

   Palette
     page        #f4f3f8      ink         #17161f
     secondary   #45435a      muted       #5f5d76
     hairline    rgba(23,22,31, .07–.16)
     accent      the palette's colour, deepened to stay readable:
                 lavender #65628a  warm #a35a12  ocean #0a76a0
                 orchid #824a8c  terracotta #ab4b29  mint #0b8459
                 silver #5a5d68
   ============================================================ */

html[data-theme="light"] {
    --tl-page: #f4f3f8;
    --tl-card: #ffffff;
    --tl-sunk: #eceaf3;
    --tl-ink: #17161f;
    --tl-ink-2: #45435a;
    --tl-ink-3: #5f5d76;
    --tl-ink-4: #6f6d85;
    --tl-line-rgb: 23, 22, 31;
    --tl-accent: #65628a;
    --tl-accent-rgb: 101, 98, 138;
    --tl-live: #0b8459;
    --tl-live-rgb: 11, 132, 89;
}

/* ── Page ───────────────────────────────────────────────── */
html[data-theme="light"] body {
    background-color: var(--tl-page);
    color: var(--tl-ink);
}
html[data-theme="light"] body::before { opacity: 0.035; mix-blend-mode: multiply; }
html[data-theme="light"] ::selection { background: rgba(var(--tl-accent-rgb), 0.22); }

/* ── Tailwind utilities: text ───────────────────────────── */
html[data-theme="light"] .text-white:not(.bg-primary),
html[data-theme="light"] .hover\:text-white:hover:not(.bg-primary) { color: var(--tl-ink); }
/* …but anything sitting on a filled button keeps its white label. */
html[data-theme="light"] .bg-primary .text-white,
html[data-theme="light"] .bg-primary.hover\:text-white:hover { color: #ffffff; }
html[data-theme="light"] .text-gray-300,
html[data-theme="light"] .hover\:text-gray-300:hover { color: var(--tl-ink-2); }
html[data-theme="light"] .text-gray-400,
html[data-theme="light"] .hover\:text-gray-400:hover { color: #55536b; }
html[data-theme="light"] .text-gray-500 { color: var(--tl-ink-3); }
html[data-theme="light"] .text-gray-600 { color: var(--tl-ink-4); }
html[data-theme="light"] .text-gray-500\/40 { color: rgba(95, 93, 118, 0.5); }
html[data-theme="light"] .text-primary,
html[data-theme="light"] .hover\:text-primary:hover { color: var(--tl-accent); }
html[data-theme="light"] .hover\:text-primary-hover:hover { color: var(--tl-ink); }
html[data-theme="light"] .text-secondary { color: var(--tl-live); }
html[data-theme="light"] .text-green-400 { color: #15803d; }
html[data-theme="light"] .text-amber-400 { color: #a8530a; }
html[data-theme="light"] .text-orange-400 { color: #c2410c; }
html[data-theme="light"] .text-rose-400 { color: #be123c; }
html[data-theme="light"] .text-red-400 { color: #b91c1c; }
html[data-theme="light"] .text-blue-400 { color: #1d4ed8; }
html[data-theme="light"] .text-red-300 { color: #b91c1c; }
html[data-theme="light"] .text-amber-300 { color: #a8530a; }
html[data-theme="light"] .text-emerald-300 { color: #15803d; }
html[data-theme="light"] .placeholder-gray-500::placeholder,
html[data-theme="light"] .placeholder-gray-600::placeholder { color: #8a889d; }

/* ── Tailwind utilities: surfaces ───────────────────────── */
html[data-theme="light"] .bg-background,
html[data-theme="light"] .bg-\[\#0a0a0a\] { background-color: var(--tl-page); }
html[data-theme="light"] .bg-\[\#0a0a0a\]\/80 { background-color: rgba(255, 255, 255, 0.72); }
html[data-theme="light"] .bg-\[\#0a0a0a\]\/90 { background-color: rgba(250, 249, 253, 0.9); }
html[data-theme="light"] .bg-\[\#0a0a0a\]\/95 { background-color: rgba(244, 243, 248, 0.96); }
html[data-theme="light"] .bg-\[\#0d0d0d\] { background-color: #fbfafd; }
html[data-theme="light"] .bg-surface,
html[data-theme="light"] .bg-surface\/70,
html[data-theme="light"] .bg-surface\/80 { background-color: var(--tl-card); }
html[data-theme="light"] .bg-tertiary { background-color: var(--tl-sunk); }
html[data-theme="light"] .bg-white\/5,
html[data-theme="light"] .hover\:bg-white\/5:hover { background-color: rgba(var(--tl-line-rgb), 0.045); }
html[data-theme="light"] .bg-white\/10,
html[data-theme="light"] .hover\:bg-white\/10:hover { background-color: rgba(var(--tl-line-rgb), 0.08); }
html[data-theme="light"] .bg-primary { background-color: var(--tl-accent); }
html[data-theme="light"] .bg-primary\/10 { background-color: rgba(var(--tl-accent-rgb), 0.10); }
html[data-theme="light"] .bg-primary\/15 { background-color: rgba(var(--tl-accent-rgb), 0.14); }
html[data-theme="light"] .bg-primary\/20 { background-color: rgba(var(--tl-accent-rgb), 0.18); }
html[data-theme="light"] .bg-secondary\/10 { background-color: rgba(var(--tl-live-rgb), 0.10); }
html[data-theme="light"] .bg-red-900\/30 { background-color: rgba(220, 38, 38, 0.08); }
html[data-theme="light"] .bg-green-900\/30 { background-color: rgba(21, 128, 61, 0.08); }
html[data-theme="light"] .from-\[\#0a0a0a\] {
    --tw-gradient-from: var(--tl-page) var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(244, 243, 248, 0) var(--tw-gradient-to-position);
}
/* The menu button's three bars are drawn with bg-white. */
html[data-theme="light"] #mobileMenuBtn .bg-white { background-color: var(--tl-ink); }

/* ── Tailwind utilities: lines ──────────────────────────── */
html[data-theme="light"] .border-white\/5 { border-color: rgba(var(--tl-line-rgb), 0.07); }
html[data-theme="light"] .border-white\/10 { border-color: rgba(var(--tl-line-rgb), 0.12); }
html[data-theme="light"] .border-white\/15 { border-color: rgba(var(--tl-line-rgb), 0.16); }
html[data-theme="light"] .border-gray-600 { border-color: rgba(var(--tl-line-rgb), 0.35); }
html[data-theme="light"] .border-surface { border-color: var(--tl-card); }
html[data-theme="light"] .border-primary\/20 { border-color: rgba(var(--tl-accent-rgb), 0.28); }
html[data-theme="light"] .border-primary\/30 { border-color: rgba(var(--tl-accent-rgb), 0.40); }
html[data-theme="light"] .border-secondary\/20 { border-color: rgba(var(--tl-live-rgb), 0.28); }
html[data-theme="light"] .border-red-800\/30 { border-color: rgba(185, 28, 28, 0.28); }
html[data-theme="light"] .border-green-800\/30 { border-color: rgba(21, 128, 61, 0.28); }
html[data-theme="light"] .focus\:border-primary:focus { border-color: var(--tl-accent); }
html[data-theme="light"] .glass-border { border-color: rgba(var(--tl-line-rgb), 0.10); }
html[data-theme="light"] .shadow-2xl { --tw-shadow: 0 25px 50px -18px rgba(40, 36, 70, 0.22); }

/* Cards lift off the page with a soft shadow instead of a glow on black. */
html[data-theme="light"] .bg-surface.glass-border { box-shadow: 0 1px 2px rgba(40, 36, 70, 0.04), 0 10px 30px -18px rgba(40, 36, 70, 0.18); }
html[data-theme="light"] .card-hover:hover {
    border-color: rgba(var(--tl-accent-rgb), 0.35);
    box-shadow: 0 0 0 1px rgba(var(--tl-accent-rgb), 0.10), 0 14px 34px -14px rgba(40, 36, 70, 0.26);
}
html[data-theme="light"] .hero-gradient { background: radial-gradient(circle at 50% 0%, rgba(var(--tl-accent-rgb), 0.10) 0%, rgba(244, 243, 248, 0) 60%); }
/* The provider marks are drawn fill="white". */
html[data-theme="light"] .logo-bar svg { fill: var(--tl-ink); }

/* ── The switch in the top bar (partials/theme_mode_toggle.php) ──
   Its dark look is here too, under the :not() scope, so the button
   needs no rule in each page's own style block. */
html[data-theme="light"] .theme-toggle,
html:not([data-theme="light"]) .theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; flex-shrink: 0;
    border-radius: 10px; border: 0.5px solid transparent; background: transparent;
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
html[data-theme="light"] .theme-toggle .material-symbols-outlined,
html:not([data-theme="light"]) .theme-toggle .material-symbols-outlined { font-size: 20px; line-height: 1; }
html[data-theme="light"] .theme-toggle:focus-visible,
html:not([data-theme="light"]) .theme-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html:not([data-theme="light"]) .theme-toggle { color: #9ca3af; }
html:not([data-theme="light"]) .theme-toggle:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
html:not([data-theme="light"]) .theme-toggle .theme-toggle-moon { display: none; }
html[data-theme="light"] .theme-toggle { color: #55536b; }
html[data-theme="light"] .theme-toggle:hover { color: var(--tl-ink); background: rgba(var(--tl-line-rgb), 0.05); border-color: rgba(var(--tl-line-rgb), 0.10); }
html[data-theme="light"] .theme-toggle .theme-toggle-sun { display: none; }

/* ── Fibre background ───────────────────────────────────── */
/* Stand-in when WebGL2 is unavailable: the same soft band, in ink. */
html[data-theme="light"] #fibersBg.ghost-fibers-fallback {
    background:
        radial-gradient(30% 6% at 50% 50%, rgba(93, 104, 132, 0.22), transparent 70%),
        radial-gradient(62% 16% at 50% 50%, rgba(93, 104, 132, 0.10), transparent 72%),
        radial-gradient(96% 34% at 50% 50%, rgba(93, 104, 132, 0.05), transparent 76%);
}

/* ── Landing: hero phone ────────────────────────────────── */
/* The handset stays a dark device; only the shadow it casts softens. */
html[data-theme="light"] .ph-shadow { background: rgba(40, 36, 70, 0.32); }
html[data-theme="light"] .ph-shadow::after { background: radial-gradient(50% 50% at 50% 50%, rgba(40, 36, 70, 0.22), transparent 70%); }

/* ── Landing: live demo ─────────────────────────────────── */
html[data-theme="light"] .dm2-chip { background: rgba(255, 255, 255, 0.7); border-color: rgba(var(--tl-line-rgb), 0.12); color: var(--tl-ink-2); }
html[data-theme="light"] .dm2-chip:hover { background: #ffffff; }
html[data-theme="light"] .dm2-chip.on { border-color: var(--tl-accent); background: rgba(var(--tl-accent-rgb), 0.12); color: var(--tl-ink); }
html[data-theme="light"] .dm2-chip span { color: var(--tl-ink-3); }
html[data-theme="light"] .dm2-chip .dm2-av { color: #16131e; }
html[data-theme="light"] .dm2-ring { border-color: var(--tl-accent); }
html[data-theme="light"] .dm2-listening .dm2-userring { border-color: rgba(var(--tl-live-rgb), 0.6); }
html[data-theme="light"] .dm2-prev { color: var(--tl-ink-4); opacity: 0.8; }
html[data-theme="light"] .dm2-spk,
html[data-theme="light"] .dm2-miclabel { color: var(--tl-ink-3); }
html[data-theme="light"] .dm2-txt { color: var(--tl-ink); }
html[data-theme="light"] .dm2-strip,
html[data-theme="light"] .dm2-status { color: var(--tl-ink-3); }
html[data-theme="light"] .dm2-st { border-color: rgba(var(--tl-line-rgb), 0.16); }
html[data-theme="light"] .dm2-listening #demoStL,
html[data-theme="light"] .dm2-thinking #demoStT,
html[data-theme="light"] .dm2-speaking #demoStS { border-color: var(--tl-accent); color: var(--tl-accent); background: rgba(var(--tl-accent-rgb), 0.10); }
html[data-theme="light"] .dm2-mic { background: var(--tl-accent); }
html[data-theme="light"] .dm2-mic.live { background: #e0245e; }

/* ── Landing: the dashboard picture, shown as the light dashboard ── */
html[data-theme="light"] .dbm-field .db3 { background: radial-gradient(circle, rgba(var(--tl-accent-rgb), 0.20), transparent 65%); }
html[data-theme="light"] .dbm-glass {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 0.5px rgba(var(--tl-line-rgb), 0.08), 0 12px 28px -18px rgba(40, 36, 70, 0.28);
}
html[data-theme="light"] .dbm-head .ttl,
html[data-theme="light"] .dbm-head .rfr,
html[data-theme="light"] .dbm-sub,
html[data-theme="light"] .dbm-h .lnk,
html[data-theme="light"] .dbm-call .who .num,
html[data-theme="light"] .dbm-agent .who span { color: var(--tl-ink-3); }
html[data-theme="light"] .dbm-head .rfr { border-color: rgba(var(--tl-line-rgb), 0.14); }
html[data-theme="light"] .dbm-greet,
html[data-theme="light"] .dbm-panel .hd h4,
html[data-theme="light"] .dbm-h h4,
html[data-theme="light"] .dbm-call .who b,
html[data-theme="light"] .dbm-agent .who b { color: var(--tl-ink); }
html[data-theme="light"] .dbm-sub .live-seg,
html[data-theme="light"] .dbm-call .dur { color: var(--tl-live); }
html[data-theme="light"] .dbm-pulse,
html[data-theme="light"] .dbm-wave i { background: var(--tl-live); }
html[data-theme="light"] .dbm-pulse::after { border-color: rgba(var(--tl-live-rgb), 0.5); }
html[data-theme="light"] .dbm-orb .ring { border-color: rgba(var(--tl-live-rgb), 0.4); }
html[data-theme="light"] .dbm-badge { background: rgba(var(--tl-line-rgb), 0.07); color: var(--tl-ink-3); }
html[data-theme="light"] .dbm-badge.live { background: rgba(var(--tl-live-rgb), 0.13); color: var(--tl-live); }
html[data-theme="light"] .dbm-call { border-color: rgba(var(--tl-live-rgb), 0.28); background: rgba(var(--tl-live-rgb), 0.06); }
html[data-theme="light"] .dbm-agent.oncall { border-color: rgba(var(--tl-live-rgb), 0.40); background: linear-gradient(180deg, rgba(var(--tl-live-rgb), 0.10), rgba(255, 255, 255, 0.62) 60%); }
html[data-theme="light"] .dbm-agent.oncall .av::after { border-color: rgba(var(--tl-live-rgb), 0.55); }
html[data-theme="light"] .dbm-agent .row { border-top-color: rgba(var(--tl-line-rgb), 0.08); }
html[data-theme="light"] .dbm-agent .row .k,
html[data-theme="light"] .dbm-agent .foot .hint { color: var(--tl-ink-4); }
html[data-theme="light"] .dbm-agent .row .v,
html[data-theme="light"] .dbm-agent .foot .hint b { color: var(--tl-ink-2); }

/* ── Articles, guides and developer docs landing ────────── */
html[data-theme="light"] .prose-body p,
html[data-theme="light"] .prose-body ul,
html[data-theme="light"] .prose-body ol,
html[data-theme="light"] .prose-links p,
html[data-theme="light"] .prose-table td,
html[data-theme="light"] .toc a { color: #34323f; }
html[data-theme="light"] .prose-body p a,
html[data-theme="light"] .prose-body li a,
html[data-theme="light"] .prose-links p a { color: var(--tl-accent); }
html[data-theme="light"] .prose-body p a:hover,
html[data-theme="light"] .prose-body li a:hover,
html[data-theme="light"] .prose-links p a:hover,
html[data-theme="light"] .toc a:hover { color: var(--tl-ink); }
html[data-theme="light"] .prose-body h2,
html[data-theme="light"] .prose-body h3,
html[data-theme="light"] .prose-table thead th,
html[data-theme="light"] .prose-table td:first-child { color: var(--tl-ink); }
html[data-theme="light"] .prose-body code { background: rgba(var(--tl-accent-rgb), 0.12); color: #4a4770; }
html[data-theme="light"] .prose-body pre { background: #fbfafd; border-color: rgba(var(--tl-line-rgb), 0.12); }
html[data-theme="light"] .prose-body pre code { background: none; color: #2b2a3a; }
html[data-theme="light"] .prose-table-wrap,
html[data-theme="light"] .toc { border-color: rgba(var(--tl-line-rgb), 0.12); }
html[data-theme="light"] .prose-table-wrap { background: var(--tl-card); }
html[data-theme="light"] .toc { background: rgba(255, 255, 255, 0.6); }
html[data-theme="light"] .prose-table th,
html[data-theme="light"] .prose-table td { border-bottom-color: rgba(var(--tl-line-rgb), 0.08); }
html[data-theme="light"] .prose-table thead th { background: rgba(var(--tl-accent-rgb), 0.08); }
html[data-theme="light"] .callout { border-left-color: var(--tl-accent); background: rgba(var(--tl-accent-rgb), 0.08); }
html[data-theme="light"] .toc p,
html[data-theme="light"] .article-meta,
html[data-theme="light"] .legal-note,
html[data-theme="light"] .hero-note { color: var(--tl-ink-3); }
html[data-theme="light"] .article-meta .dot { background: #a09eb3; }
html[data-theme="light"] .legal-note { border-top-color: rgba(var(--tl-line-rgb), 0.12); }
html[data-theme="light"] .category-chip,
html[data-theme="light"] .step-num,
html[data-theme="light"] .cap-icon { background: rgba(var(--tl-accent-rgb), 0.12); color: var(--tl-accent); }
html[data-theme="light"] .card-hover:hover .cap-icon { background: rgba(var(--tl-accent-rgb), 0.20); color: #4a4770; }
html[data-theme="light"] .avail-badge { background: rgba(var(--tl-live-rgb), 0.08); border-color: rgba(var(--tl-live-rgb), 0.28); color: #0a6e4b; }
html[data-theme="light"] .m-get { background: rgba(11, 132, 89, 0.12); color: #0a6e4b; }
html[data-theme="light"] .m-post { background: rgba(var(--tl-accent-rgb), 0.14); color: #4a4770; }
html[data-theme="light"] .m-patch { background: rgba(168, 83, 10, 0.12); color: #8a4508; }
html[data-theme="light"] .m-del { background: rgba(185, 28, 28, 0.10); color: #a11a1a; }

/* ── Legal pages and the accept-terms screen ────────────── */
html[data-theme="light"] .legal-header,
html[data-theme="light"] .legal-footer { border-color: rgba(var(--tl-accent-rgb), 0.25); }
html[data-theme="light"] .legal-header h1,
html[data-theme="light"] .legal-body h2,
html[data-theme="light"] .accept-card h1 { color: var(--tl-ink); }
html[data-theme="light"] .legal-body h3 { color: #2b2a3a; }
html[data-theme="light"] .legal-body p,
html[data-theme="light"] .legal-body li,
html[data-theme="light"] .accept-card p,
html[data-theme="light"] .accept-check label { color: #34323f; }
html[data-theme="light"] .legal-header .updated,
html[data-theme="light"] .legal-back,
html[data-theme="light"] .legal-body a,
html[data-theme="light"] .legal-footer a,
html[data-theme="light"] .accept-card a { color: var(--tl-accent); }
html[data-theme="light"] .legal-back:hover,
html[data-theme="light"] .legal-body a:hover,
html[data-theme="light"] .legal-footer a:hover { color: var(--tl-ink); }
html[data-theme="light"] .legal-body .highlight,
html[data-theme="light"] .accept-card { background: rgba(var(--tl-accent-rgb), 0.07); border-color: rgba(var(--tl-accent-rgb), 0.22); }
html[data-theme="light"] .legal-body .warning-box { background: rgba(220, 38, 38, 0.06); border-color: rgba(185, 28, 28, 0.28); }
html[data-theme="light"] .legal-body .warning-box p { color: #991b1b; }
html[data-theme="light"] .legal-body table td { color: #34323f; border-bottom-color: rgba(var(--tl-line-rgb), 0.12); }
html[data-theme="light"] .legal-body table th { color: var(--tl-ink); border-bottom-color: rgba(var(--tl-line-rgb), 0.12); }
html[data-theme="light"] .accept-btn { background: var(--tl-accent); color: #ffffff; }
html[data-theme="light"] .accept-footer a,
html[data-theme="light"] .accept-footer button { color: var(--tl-ink-3); }

/* ── Sign-in, signup, onboarding: palette and glass ─────────
   The device's palette still colours the buttons and tints the
   page; each accent is deepened so white labels and links stay
   readable on light. One light backdrop for every background
   choice. */
html[data-theme="light"] [data-palette] {
    --theme: #65628a;  --theme-rgb: 101, 98, 138;  --theme-ink: #ffffff;  --theme-link: #4f4c78;
    --tl-accent: var(--theme);
    --tl-accent-rgb: var(--theme-rgb);
    --color-bg-primary: #f4f3f8;
    --color-primary-hover: color-mix(in srgb, var(--theme) 85%, black);
    --color-text-muted: #5f5d76;
    --glass-bg: rgba(255, 255, 255, 0.44);
    --glass-bg-strong: rgba(255, 255, 255, 0.62);
    --glass-edge: rgba(255, 255, 255, 0.75);
    --glass-hi: rgba(255, 255, 255, 0.95);
    --glass-sheen: linear-gradient(160deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.18) 32%,
        rgba(255, 255, 255, 0.06) 62%,
        rgba(255, 255, 255, 0.22) 100%);
    --glass-inner-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
    --glass-inner-edge: rgba(23, 22, 31, 0.08);
    --glass-inner-hi: rgba(255, 255, 255, 0.9);
    --aurora-1: radial-gradient(60% 55% at 12% 8%, rgba(var(--theme-rgb), 0.26), transparent 70%);
    --aurora-2: radial-gradient(45% 45% at 88% 12%, rgba(10, 118, 160, 0.13), transparent 70%);
    --aurora-3: radial-gradient(55% 50% at 70% 92%, rgba(11, 132, 89, 0.10), transparent 70%);
    --aurora-4: radial-gradient(50% 60% at 25% 85%, rgba(130, 74, 140, 0.15), transparent 70%);
}
html[data-theme="light"] [data-palette="lavender"]   { --theme: #65628a; --theme-rgb: 101, 98, 138; --theme-link: #4f4c78; }
html[data-theme="light"] [data-palette="warm"]       { --theme: #a35a12; --theme-rgb: 163, 90, 18;  --theme-link: #8a4a0c; }
html[data-theme="light"] [data-palette="ocean"]      { --theme: #0a76a0; --theme-rgb: 10, 118, 160; --theme-link: #086485; }
html[data-theme="light"] [data-palette="orchid"]     { --theme: #824a8c; --theme-rgb: 130, 74, 140; --theme-link: #6d3c76; }
html[data-theme="light"] [data-palette="terracotta"] { --theme: #ab4b29; --theme-rgb: 171, 75, 41;  --theme-link: #923d1f; }
html[data-theme="light"] [data-palette="mint"]       { --theme: #0b8459; --theme-rgb: 11, 132, 89;  --theme-link: #0a6e4b; }
html[data-theme="light"] [data-palette="silver"]     { --theme: #5a5d68; --theme-rgb: 90, 93, 104;  --theme-link: #45485a; }

/* A faint wash of the palette behind the fibres, so the glass has
   something to frost. */
html[data-theme="light"] body[data-palette] {
    background:
        radial-gradient(70% 60% at 12% 0%, rgba(var(--theme-rgb), 0.13), transparent 70%),
        radial-gradient(60% 55% at 92% 100%, rgba(var(--theme-rgb), 0.09), transparent 70%),
        var(--tl-page);
    background-attachment: fixed;
}
/* One light backdrop: whatever background this device last used, show the aurora. */
html[data-theme="light"] [data-bg] .theme-backdrop > .tb-layer { opacity: 0; visibility: hidden; }
html[data-theme="light"] [data-bg] .theme-backdrop > .tb-aurora { opacity: 1; visibility: visible; }
html[data-theme="light"] .tb-aurora .tb-orb { opacity: 0.45; }
html[data-theme="light"] .tb-aurora .tb-o2 { background: rgba(11, 132, 89, 0.10); }

html[data-theme="light"] .auth-card.glass-border,
html[data-theme="light"] .auth-card .glass-border {
    border-color: var(--glass-edge);
    box-shadow:
        inset 0 1px 0 var(--glass-hi),
        0 0 0 0.5px rgba(var(--tl-line-rgb), 0.07),
        0 30px 60px -28px rgba(40, 36, 70, 0.35),
        0 10px 24px -14px rgba(40, 36, 70, 0.18);
}
html[data-theme="light"] .vosy-wordmark .vosy-v,
html[data-theme="light"] .vosy-wordmark .vosy-osy { color: var(--tl-ink); }
html[data-theme="light"] [data-palette] .text-gray-600 { color: var(--tl-ink-3); }
html[data-theme="light"] [data-palette] .auth-card .bg-primary,
html[data-theme="light"] [data-palette]:not([data-palette="lavender"]) .auth-card .bg-primary { color: #ffffff; }

/* Fields: the dark theme forces these with !important, so the light
   values have to as well. */
html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="email"] {
    color: var(--tl-ink) !important;
    background-color: #ffffff !important;
    caret-color: var(--tl-ink);
}
html[data-theme="light"] [data-palette] .auth-card .bg-tertiary,
html[data-theme="light"] [data-palette] .auth-card input[type="text"],
html[data-theme="light"] [data-palette] .auth-card input[type="password"],
html[data-theme="light"] [data-palette] .auth-card input[type="email"] {
    background-color: rgba(255, 255, 255, 0.72) !important;
}
html[data-theme="light"] .auth-card .border-white\/10 { border-color: rgba(var(--tl-line-rgb), 0.16); }
html[data-theme="light"] input:-webkit-autofill,
html[data-theme="light"] input:-webkit-autofill:hover,
html[data-theme="light"] input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--tl-ink) !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    caret-color: var(--tl-ink);
}
html[data-theme="light"] input:autofill {
    background-color: #ffffff !important;
    color: var(--tl-ink) !important;
}

/* Two-step sign-in: recovery codes, the setup key, the "trust this device" choices. */
html[data-theme="light"] .rc-code,
html[data-theme="light"] .secret-box { background: rgba(255, 255, 255, 0.72); border-color: rgba(var(--tl-line-rgb), 0.14); }
html[data-theme="light"] .trust-pills label { color: #55536b; background: rgba(255, 255, 255, 0.55); border-color: rgba(var(--tl-line-rgb), 0.14); }
html[data-theme="light"] .trust-pills label:hover { color: var(--tl-ink); border-color: rgba(var(--tl-line-rgb), 0.28); }
html[data-theme="light"] .trust-pills input[type=radio]:checked + label { color: var(--tl-ink); border-color: var(--tl-accent); background: rgba(var(--tl-accent-rgb), 0.14); }
