/* ==========================================================================
   THE WHITE THEME.

   Loaded ONLY when somebody has chosen light — layouts/base.blade.php links it
   behind the same cookie that decides the `dark` class, so in the default dark
   panel this file is never fetched and can cost nothing and break nothing.

   That is why it is a separate file rather than `:root:not(.dark)` blocks
   appended to each dark stylesheet. Those have to be carried on every page
   whether or not anybody wants them, they leave two palettes interleaved in
   one file, and a half-applied flip — a lightened card still sitting on a dark
   ground — looks worse than no light mode at all.

   HOW IT WORKS

   The panel is drawn by five stylesheets, each with its own palette of custom
   properties: deck.css (.dk-root), launch-shell.css (.gl-root),
   post-studio.css (.ps-root), ai-studio.css (.ais-root), and Tailwind's own
   utilities in app.css. Every rule in the first four paints with var(--…), so
   redefining the tokens turns each screen over in one go. What follows the
   palettes is the remainder: the rules that paint with a literal colour, and
   the decorative layers built to glow against near-black.

   Hand-written, deliberately. app.css is a Tailwind build that nothing in this
   repo regenerates, so a `dark:`/light pair added to a template would never
   reach the browser. A rule written here does.

   Loaded LAST, so it beats the !important rules the dark sheets carry without
   having to out-specify them.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0 · The ground everything else sits on.
   -------------------------------------------------------------------------- */

html, body {
  background-color: #f5f7fb;
  color: #0d1128;
}

/* --------------------------------------------------------------------------
   1 · The Command Deck — the dashboard and every page on layouts/app.

   deck.css repaints Tailwind's dark utilities BY CLASS NAME rather than under
   a `.dark` ancestor: `.dk-root .dark\:text-gray-200 { color: var(--hi) }`.
   Those rules apply whatever the theme, which is why removing the class alone
   changed nothing. Redefining the palette is what turns that whole family
   light, because every one of them paints through a token.
   -------------------------------------------------------------------------- */

.dk-root {
  --void: #eef1f7;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f7f9fd;
  --panel-3: #eef1f8;

  --line: rgba(15, 23, 55, .14);
  --line-soft: rgba(184, 118, 31, .26);

  --hi: #0b1020;
  --mid: #3f4a68;
  --low: #5b6580;

  --blue: #b8761f;
  --blue-text: #7a4a0d;
  --green: #0f8f55;
  --red: #c92a4d;
  --purple: #6b39d4;
  --gold: #9a5a16;
  --gold-glow: #c07a28;
}

/* The tints that paint with a literal white, restated in ink at the same
   relative weight — a .05 touch stays the lightest, the scrollbar the firmest.
   Without these the page keeps its hover feedback and its dividers only in
   theory: white on white is nothing. */

.dk-root .app-sidebar .sidebar-item:hover { background: rgba(15, 23, 55, .06) !important; }
.dk-root > div > header .hover\:bg-gray-100:hover { background: rgba(15, 23, 55, .06) !important; }
.dk-root table tbody tr { border-color: rgba(15, 23, 55, .10) !important; }
.dk-root table tbody tr:hover { background: rgba(15, 23, 55, .04) !important; }
.dk-att { background: rgba(15, 23, 55, .05); }
.dk-btn.is-ghost { background: rgba(15, 23, 55, .04); }

.dk-root *:hover { scrollbar-color: rgba(15, 23, 55, .26) transparent; }
.dk-root *:hover::-webkit-scrollbar-thumb { background: rgba(15, 23, 55, .26); }

.dk-root .bg-gray-200,
.dk-root .bg-gray-300,
.dk-root .dark\:bg-zinc-700,
.dk-root .dark\:bg-zinc-600 { background-color: rgba(15, 23, 55, .10) !important; }

.dk-root .text-gray-200 { background-color: rgba(15, 23, 55, .08) !important; }

.dk-root .recharts-cartesian-grid line,
.dk-root svg .grid line { stroke: rgba(15, 23, 55, .13) !important; }

.dk-root .hover\:bg-gray-50:hover,
.dk-root .hover\:bg-gray-100:hover,
.dk-root .hover\:bg-gray-200:hover,
.dk-root .hover\:bg-white:hover,
.dk-root .hover\:bg-blue-50:hover,
.dk-root .dark\:hover\:bg-zinc-800:hover,
.dk-root .dark\:hover\:bg-zinc-700:hover,
.dk-root .dark\:hover\:bg-gray-700:hover { background-color: rgba(15, 23, 55, .06) !important; }

.dk-root .bg-white\/70,
.dk-root .bg-white\/60,
.dk-root .bg-white\/50,
.dk-root .bg-white\/30,
.dk-root .bg-white\/20,
.dk-root .bg-gray-50\/70,
.dk-root .bg-gray-50\/60,
.dk-root .bg-gray-50\/50,
.dk-root .bg-gray-500\/10,
.dk-root .dark\:bg-zinc-950\/40 { background-color: rgba(15, 23, 55, .035) !important; }

.dk-root [data-dropdown-menu] a:hover,
.dk-root [data-dropdown-menu] button:hover,
.dk-root [role="menu"] a:hover,
.dk-root [role="menu"] button:hover { background: rgba(15, 23, 55, .07) !important; }

/* --------------------------------------------------------------------------
   1b · The surfaces deck.css paints with a LITERAL colour.

   This is the part tokens cannot reach, and the reason a palette swap alone
   left the cards and the rails dark while the page behind them went white.

   deck.css does not tint these — it replaces them outright, with !important:

       .dk-root .bg-white, .dk-root .dark\:bg-zinc-900 { background-color:
           rgba(13, 17, 40, .74) !important }

   So every white card in every template is repainted dark whatever the theme.
   Each of those rules is answered here, in the same order deck.css states
   them, with white where it used ink and a light tint where it used a dark
   one. The reference is the super-admin panel, which was already white: plain
   white cards, a hairline border, and colour only where it means something.
   -------------------------------------------------------------------------- */

/* The cards. The single most important rule in this file. */
.dk-root .bg-white,
.dk-root .dark\:bg-zinc-900,
.dk-root .dark\:bg-gray-900,
.dk-root .dark\:bg-zinc-800 { background-color: #ffffff !important; }

.dk-rail > .dk-guide,
.dk-card,
.dk-strip { background: #ffffff; }

/*
 * The rails. These carried .82 alpha over a dark page so the content behind
 * showed through; white at the same alpha would be a grey haze, so they are
 * opaque with a hairline to separate them instead.
 */
.dk-root .app-sidebar { background: #ffffff !important; border-right: 1px solid rgba(15, 23, 55, .10); }
.dk-root > div > header { background: #ffffff !important; border-bottom: 1px solid rgba(15, 23, 55, .10); }

.dk-speech { background: #f4f6fb; }

/*
 * The tinted states — info, warning, success, danger.
 *
 * Tailwind's own -50 and -100 shades are what the templates asked for and what
 * the super-admin panel uses, so these go back to roughly those rather than to
 * a washed-out version of the dark tint.
 */
.dk-root .bg-blue-50, .dk-root .bg-blue-100,
.dk-root .bg-sky-50, .dk-root .bg-sky-100,
.dk-root .bg-indigo-50,
.dk-root .bg-primary\/5, .dk-root .bg-primary\/10 { background-color: #eff4ff !important; }

.dk-root .bg-gradient-to-br.from-primary\/10,
.dk-root .bg-gradient-to-br.from-primary\/20,
.dk-root .bg-gradient-to-br.dark\:from-zinc-800,
.dk-root .bg-gradient-to-br.from-blue-50,
.dk-root .bg-gradient-to-br.from-white,
.dk-root .bg-gradient-to-br.from-gray-100 { background: #fbf6ee !important; }

.dk-root .bg-amber-50, .dk-root .bg-amber-100,
.dk-root .bg-yellow-50, .dk-root .bg-yellow-100,
.dk-root .bg-orange-50, .dk-root .bg-orange-100 { background-color: #fdf4e7 !important; }

.dk-root .bg-green-50, .dk-root .bg-green-100,
.dk-root .bg-emerald-50, .dk-root .bg-emerald-100,
.dk-root .bg-teal-50 { background-color: #e9f8f0 !important; }

.dk-root .bg-red-50, .dk-root .bg-red-100,
.dk-root .bg-rose-50, .dk-root .bg-rose-100 { background-color: #fdedf0 !important; }

.dk-root .bg-purple-50, .dk-root .bg-purple-100,
.dk-root .bg-violet-50, .dk-root .bg-violet-100 { background-color: #f3eefd !important; }

.dk-btn { background: #eff4ff; }

/* The active sidebar item and gold button keep their colour, at a weight that
   reads on white rather than one tuned to glow on black. */
.dk-root .app-sidebar .sidebar-item.bg-primary,
.dk-btn.is-gold { background: rgba(154, 90, 22, .12) !important; }

.dk-root *::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 55, .34); }

/* The guide's glow is a radial bloom built for a dark stage. */
.dk-pose-stage .dk-glow { opacity: .28; }

/* --------------------------------------------------------------------------
   1bb · THE CARD COMPONENT, and everything that floats.

   `.bg-surface` is the shared <x-card> — the calendar's account filter, the
   WhatsApp stat tiles, the Ads network cards, and most panels on most pages.
   deck.css pins it to #0f1430 with !important, so every one of them stayed
   black while the text on them turned dark: unreadable, on page after page.

   The floating layers are grouped with it in deck.css for a good reason — a
   menu over the page needs a solid ground, not the 74% alpha a card sitting IN
   the page can have. That still holds on white, so they keep their own opaque
   ground and a shadow deep enough to read as a layer.
   -------------------------------------------------------------------------- */

.dk-root .bg-surface {
  background-color: #ffffff !important;
  border: 1px solid rgba(15, 23, 55, .13) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 55, .05) !important;
}

.dk-root [data-dropdown-menu],
.dk-root [role="menu"],
.dk-root [role="listbox"] {
  background-color: #ffffff !important;
  border: 1px solid rgba(15, 23, 55, .13) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 55, .16) !important;
}

/*
 * Tooltips go light with everything else.
 *
 * The usual argument for keeping them inverted is that they float over
 * unpredictable ground — a chart, an avatar, a photo — and a white label on
 * white is hard to find. In this panel they sit over the rail and the page
 * chrome, which is now white, so a navy chip is the thing that looks out of
 * place. The border and shadow are what separate it instead.
 */
.dk-root [role="tooltip"],
.dk-root .group-hover\/tooltip\:opacity-100 {
  background-color: #ffffff !important;
  color: #0b1020 !important;
  border: 1px solid rgba(15, 23, 55, .13) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 55, .16) !important;
}

.dk-root [role="tooltip"] * { color: inherit !important; }

/*
 * The rail's tooltip already takes --panel-2 and --hi, so the palette turns it
 * light on its own. Its SHADOW does not: it is a 45%-black drop with a white
 * inner highlight, which is how a chip lifts off a dark page and how it smears
 * on a white one.
 */
.dk-root .app-sidebar .sidebar-tooltip > span[role="tooltip"] {
  box-shadow: 0 8px 24px rgba(15, 23, 55, .16), 0 0 0 1px rgba(15, 23, 55, .10) !important;
}

/* The translucent whites — sticky headers and toolbars that let the page show
   through. Dark ink over a dark scene becomes white over a white one. */
.dk-root .bg-white\/95,
.dk-root .bg-white\/90,
.dk-root .bg-white\/80 {
  background-color: rgba(255, 255, 255, .92) !important;
}

/* --------------------------------------------------------------------------
   1c · The page wash, the rail toggle, and the impersonation strip.
   -------------------------------------------------------------------------- */

/*
 * THE HERO'S GREY HAZE.
 *
 * .dk-root lays two dark radial washes over the whole page — #101838 from the
 * top left and #0f1436 from the top right — to lift the hero off the ground in
 * the dark theme. On white they are exactly that: two grey smears across the
 * top of the page, heaviest behind the greeting.
 *
 * Replaced rather than removed, because the hero does want some lift. These
 * are the same two positions in the accent's own hue, at an alpha that reads
 * as a tint instead of a stain.
 */
.dk-root {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(199, 138, 45, .09) 0%, transparent 60%),
    radial-gradient(900px 560px at 95% 0%, rgba(154, 90, 22, .06) 0%, transparent 55%),
    var(--bg) !important;
  color: var(--hi);
}

/* The circular rail toggle beside the logo, which is a literal #141a38. */
.dk-root .app-sidebar button[data-sidebar-toggle] {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 55, .14) !important;
  color: #3f4a68 !important;
}

.dk-root .app-sidebar button[data-sidebar-toggle]:hover {
  border-color: rgba(154, 90, 22, .55) !important;
  color: #9a5a16 !important;
}

/*
 * The super-admin impersonation strip.
 *
 * bg-slate-900 across the top of a white page is a slab of near-black, and it
 * is the first thing on screen. It has to stay conspicuous — somebody is
 * inside a customer's account and must not forget it — so it becomes a warning
 * band rather than a quiet one: amber ground, dark text, amber rule beneath.
 */
.impersonation-bar {
  background-color: #fdf4e7 !important;
  color: #5c3a0c !important;
  border-bottom: 1px solid rgba(154, 90, 22, .30);
}

.impersonation-bar strong,
.impersonation-bar b { color: #3d2607 !important; }

/* --------------------------------------------------------------------------
   2 · The decorative scene.

   A fixed grid, drifting particles and a 210px skyline, all built to glow
   against near-black. On white the skyline reads as a row of heavy grey
   blocks across the page — the single worst thing about a naive flip — so it
   goes, and the grid is softened to a hint rather than removed, because it is
   what stops the page looking like an empty sheet.
   -------------------------------------------------------------------------- */

.dk-scene .dk-sky { display: none; }

.dk-scene .dk-grid {
  background-image:
    linear-gradient(rgba(184, 118, 31, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 118, 31, .07) 1px, transparent 1px);
}

.dk-scene .dk-particle { opacity: .35; }

/* --------------------------------------------------------------------------
   3 · The launch builders — Google, Meta, LinkedIn and X.

   One palette, four screens: they all share launch-shell.css.
   -------------------------------------------------------------------------- */

.gl-root {
  --void: #eef1f7;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #f7f9fd;
  --panel-3: #eef1f8;

  --line: rgba(15, 23, 55, .14);
  --line-soft: rgba(184, 118, 31, .26);

  --hi: #0b1020;
  --mid: #3f4a68;
  --low: #5b6580;

  --blue: #b8761f;
  --blue-glow: rgba(184, 118, 31, .26);
  --green: #0f8f55;
  --red: #c92a4d;
  --purple: #6b39d4;
  --amber: #a4620f;
  --cyan: #0b7f9e;

  --gold: #9a5a16;
  --gold-glow: #c07a28;

  /* Fallback only — script sets --gl-accent inline once a format is chosen,
     and an inline style beats this, which is the intended order. */
  --gl-accent: #b8761f;
  --gl-accent-text: #7a4a0d;

  /* The guided setup's status colours (google-ads-launch.js: SU_RED / SU_AMBER / SU_GREEN, drawn inline). The script keeps the pale dark-theme
     values as its own fallback; on white they are unreadable, so here are the same three hues dark enough for 4.5:1 text, and the faint
     separators and panel tint it draws. */
  --su-red: #b3203d;
  --su-amber: #8a5200;
  --su-green: #0a7a43;
  --su-sep: rgba(15, 23, 55, .12);
  --su-tint: rgba(15, 23, 55, .03);
}

.gl-root .gl-step .gl-lbl { color: rgba(15, 23, 55, .80); }
.gl-root .gl-btn-ghost { background: rgba(15, 23, 55, .04); }

/*
 * The wizard's own furniture — the panels the questions are asked in.
 *
 * These name their colour outright rather than taking a token, so the palette
 * above cannot reach them: the mission panel, the guide column behind the
 * mascot and the speech bubble all stayed near-black while the text on them
 * turned dark.
 */
.gl-stage-card,
.gl-preview-card { background: #ffffff; }

.gl-char-col { background: #f7f9fd; }
.gl-zone { background: #f1f4fb; }
.gl-speech { background: #f1f4fb; }
.gl-success { background: #ffffff; }
.gl-worldmap { background: rgba(184, 118, 31, .07); }

/* A modal scrim stays dark — it exists to push the page back — but nothing
   like as heavy, because there is far less contrast to overcome on white. */
.gl-overlay { background: rgba(15, 23, 55, .45); }

/* The desk strip above the chapter. */
.ml-desk { background: #f1f4fb; border-bottom-color: rgba(15, 23, 55, .12); }
/* The mascot's name tag. It was a dark chip so it could sit ON the hologram;
   on a white stage it is the one dark rectangle left in the scene. White
   ground, the accent kept on the border, and the type darkened — 9.5px mono at
   #b8761f on white is a label you have to lean in to read. */
.ml-id-tag {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(184, 118, 31, .55);
  color: #7a4a0d;
}

/* LinkedIn's two extra panels. */
.li-root .gl-budget-card { background: #ffffff; }
.li-root .gl-pill { background: #f1f4fb; }

/*
 * ------------------------------------------------------------------
 * KEPT DARK, on purpose. Restated so they count as decided rather
 * than forgotten, and so the coverage test stays honest.
 *
 * Every one of these is a PICTURE OF SOMEBODY ELSE'S INTERFACE — a
 * phone frame, a YouTube player, an X post, an Instagram reel — or a
 * letterbox behind media. Re-themed, they would be pictures of
 * something that does not exist, and the advertiser is looking at
 * them to judge how the ad will really appear.
 * ------------------------------------------------------------------
 */
.gl-device-dark { background: #0f0f0f; }
.gl-device-dark .gl-device-bar { background: #202020; }
.gl-device-dark .gl-device-bar span { background: #3d3d3d; }

.gl-yt-av { background: #383838; }
.gl-yt-bd { background: rgba(0, 0, 0, .75); }
.gl-yt-sk { background: rgba(0, 0, 0, .6); }
.gl-yt-st { background: linear-gradient(135deg, #2a2d35, #16181c); }

.ml-root .ml-screen { background: rgba(10, 14, 30, .55); }
.ml-root .ml-reels { background: linear-gradient(200deg, #000 0%, #111 100%); }
.ml-root .ml-msgr-btn { background: #1030cd; }
.ml-root .ml-shot .ml-shot-bar { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); }

.x-root .x-card-body,
.x-root .x-cta,
.x-root .x-media,
.x-root .x-strip > div { background: #16181c; }

.x-root .x-preroll-skip,
.x-root .x-preroll-tag { background: rgba(0, 0, 0, .7); }

.x-root .x-strip-h { background: linear-gradient(transparent, #16181c); }

/*
 * The YouTube and Google SERP mock-ups keep their own colours in both themes.
 * They are pictures of somebody else's interface — a re-themed one would be a
 * picture of something that does not exist.
 */

/* --------------------------------------------------------------------------
   4 · The post composer.
   -------------------------------------------------------------------------- */

.ps-root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --card: #ffffff;
  --card-2: #f7f9fd;
  --line: rgba(15, 23, 55, .14);
  --line-soft: rgba(15, 23, 55, .09);

  --text: #0b1020;
  --muted: #3f4a68;
  --dim: #6b7590;

  --gold: #9a5a16;
  --gold-deep: #7d4810;
  --blue: #b8761f;
  --blue-bright: #7a4a0d;
  --sky: #8a5210; /* the last blue carrying type — see section 19 */
  --green: #0f8f55;
  --red: #c92a4d;
}

/*
 * The composer's own furniture.
 *
 * Like the deck, these name their colour rather than taking a token, so the
 * palette above cannot reach them.
 */
.ps-screen { background: linear-gradient(160deg, #f7f9fd 0%, #eef2fa 100%); }
.ps-bubble,
.ps-bubble::after { background: #ffffff; }

.ps-chip,
.ps-frame,
.ps-picker,
.ps-pub-card { background: #ffffff; }

.ps-menu { background: #ffffff; }
.ps-drop { background: rgba(184, 118, 31, .07); }
.ps-tile .ps-dot { background: #c3cbdd; }

/* A modal scrim still pushes the page back, just far less heavily. */
.ps-pub-modal { background: rgba(15, 23, 55, .45); }

/* The permission tags of Meta-review mode: a navy chip with pale type in the
   dark, a pale chip with navy type here. */
.ps-scope-chip { background: #eef1ff; border-color: #c5cdf5; color: #1d2a7a; }

/* Text fields — the one group where getting this wrong means somebody cannot
   read what they are typing. */
.ps-root input[type="text"],
.ps-root input[type="date"],
.ps-root input[type="time"] {
  background: #ffffff;
  color: #0b1020;
}

.ps-type .ps-glyph { background: linear-gradient(160deg, #fbf0da, #f3e2bf); }
.ps-type.is-sel .ps-glyph { background: linear-gradient(160deg, #c78a2d, #9a5a16); }

/* The "posted" toast: a deep-green card with pale type in the dark, a pale
   green card with dark-green type here. */
.ps-toast { background: #e8f8f0; color: #0b3d27; box-shadow: 0 12px 30px rgba(15, 23, 55, .14); }
.ps-toast p { color: #23593f; }
.ps-toast-x { color: #23593f; }

/* A Page's initials sit on the blue disc, so they stay white on either ground. */
.ps-page-av,
.ps-found button.has-av .ps-page-av { color: #ffffff; }

/*
 * KEPT DARK in the composer, for two reasons.
 *
 * The phone frame and everything inside it is a preview of the post as it will
 * appear — a picture of Instagram, not part of this panel. And every surface
 * that sits UNDER an image or video stays dark because it is letterboxing:
 * white bars around a photo read as a rendering fault, and the controls that
 * float on top of media need a dark ground to stay legible over any picture.
 */
.ps-phone { background: #0b143a; }
.ps-phone .ps-canvas { background: #080e28; }
.ps-phone .ps-link { background: #0a1030; }
.ps-phone .ps-link-img { background: #080e28; }
.ps-phone .ps-canvas .ps-vid img,
.ps-phone .ps-canvas .ps-vid video { background: #080e28; }
.ps-phone .ps-play { background: rgba(8, 14, 40, .72); }
.ps-phone .ps-play:hover { background: rgba(8, 14, 40, .88); }

.ps-chip img,
.ps-chip video,
.ps-frame img,
.ps-picked img { background: #080e28; }

.ps-chip .ps-move-btn,
.ps-chip .ps-rm,
.ps-chip .ps-shape { background: rgba(6, 11, 30, .86); }

.ps-chip .ps-play { background: rgba(10, 16, 48, .72); }
.ps-frame .ps-t { background: rgba(6, 11, 30, .8); }
.ps-slide-n { background: rgba(6, 11, 30, .72); }
.ps-swipe { background: rgba(6, 11, 30, .72); }
.ps-swipe:hover { background: rgba(6, 11, 30, .92); }

/* Network marks keep the network's own colour. */
.ps-ico { background: #1b2a5e; }
.ps-ico.linkedin { background: #0a66c2; }
.ps-ico.youtube { background: #ff0000; }
.ps-btn.is-blue:hover { background: #1d55c9; }

/* --------------------------------------------------------------------------
   5 · AI Studio.

   Its player stays black: it frames video, and a light box round moving
   pictures fights them.
   -------------------------------------------------------------------------- */

.ais-root {
  --ink: #0b1020;
  --ink-2: #26304d;
  --muted: #3f4a68;
  --faint: #6b7590;

  --paper: #ffffff;
  --wash: #f7f9fd;
  --wash-2: rgba(15, 23, 55, .05);

  --line: rgba(15, 23, 55, .14);
  --line-2: rgba(15, 23, 55, .22);

  --acc: #a4620f;
  --acc-soft: rgba(164, 98, 15, .10);
  --acc-line: rgba(164, 98, 15, .45);
  --acc-deep: #7d4810;
  --acc-glow: rgba(164, 98, 15, .18);
  --go-ink: #ffffff;

  --gate: #6b39d4;
  --gate-soft: rgba(107, 57, 212, .10);
  --gate-line: rgba(107, 57, 212, .42);

  --ok: #0f8f55;
  --ok-soft: rgba(15, 143, 85, .10);
  --ok-line: rgba(15, 143, 85, .38);

  --bad: #c92a4d;
  --bad-soft: rgba(201, 42, 77, .10);
  --bad-line: rgba(201, 42, 77, .40);

  --shadow: 0 18px 60px rgba(15, 23, 55, .14);

  /*
   * The player stays black in both themes, and is restated here rather than
   * left out so that is a decision on the page instead of an omission.
   *
   * It frames generated video. A light box around moving pictures competes
   * with them, and every video player anywhere is dark for the same reason.
   */
  --player: #05070f;
}

/* The busy scrim over the studio while something generates. */
.ais-working { background: rgba(15, 23, 55, .55); }

/* The empty-document artwork, which is a drawing rather than a photograph. */
.ais-doc-art,
.ais-root .ais-doc-art {
  background: linear-gradient(170deg, #eef2fa 0%, #dfe6f5 100%);
}

/*
 * KEPT DARK: controls that float on generated media, and the two lamps.
 *
 * A clear button or a pose tag sitting on a picture needs a dark ground to be
 * readable over any picture at all. The lamps are indicators — grey for idle,
 * red for recording — and an indicator that changes colour with the theme
 * stops indicating anything.
 */
.ais-frame.filled .fs-clear,
.ais-ref-chip button { background: rgba(20, 22, 26, .72); }

.ais-history button .st { background: rgba(0, 0, 0, .6); }
.ais-pose-tag { background: rgba(0, 0, 0, .55); }

.ais-lamp i { background: #4A4E57; }
.ais-lamp.live i { background: #D7263D; }

/* --------------------------------------------------------------------------
   6 · Tailwind's own dark utilities.

   Roughly ninety screens write `bg-white dark:bg-zinc-900` and the like. With
   the class off, the light half already wins and nothing is needed — except
   where a template wrote the dark value with no light partner. These are the
   surfaces that would otherwise stay black on a white page.
   -------------------------------------------------------------------------- */

.bg-zinc-950, .bg-zinc-900 { background-color: #ffffff; }
.bg-zinc-800 { background-color: #f3f5fa; }

.border-zinc-800, .border-zinc-700 { border-color: rgba(15, 23, 55, .14); }

/* Inputs and selects: app.css carries only the light half of the pair, so the
   control is already white — its TEXT is what inherits a near-white body
   colour on some screens. */
.dk-root input, .dk-root select, .dk-root textarea,
.ps-root input, .ps-root select, .ps-root textarea { color: #0b1020; }

/* --------------------------------------------------------------------------
   7 · The Keyword Planner.

   Its own palette plus forty-nine surfaces that name a colour outright, which
   is why the whole screen stayed dark while the rest of the panel turned.
   Grouped below by what they are rather than by the order they appear, so the
   next person can see the shape of it.
   -------------------------------------------------------------------------- */

.kp-root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel2: #f7f9fd;
  --panel3: #eef2fa;
  --line: rgba(15, 23, 55, .13);
  --line2: rgba(15, 23, 55, .20);
  --muted: #5b6580;
  --text: #0b1020;

  --gold: #9a5a16;
  --gold2: #b8761f;
  --indigo: #8a5210;
  --indigo2: #a8681a;
  --blue: #b8761f;
  --green: #0f8f55;
  --red: #c92a4d;
  --amber: #a4620f;
}

/* Panels, cards and the things that hold them. */
.kp-root .panel { background: rgba(255, 255, 255, .96); }
.kp-root .bubble,
.kp-root .bubble:after { background: #ffffff; }
.kp-root .stat-card { background: linear-gradient(160deg, #ffffff, #f4f7fd); }
.kp-root .secondary,
.kp-root .suggest-box,
.kp-root .loc-dropdown,
.kp-root .loc-group-label,
.kp-root .kw-table .grouphead td { background: #f2f5fc; }

.kp-root .steprow { background: #eef2fa; }
.kp-root .kw-table tr:hover td { background: #f5f8fd; }

/* Anything typed into. Getting these wrong means you cannot read your own
   words, so they are plain white with ink on top. */
.kp-root .chip-input,
.kp-root .fsection input,
.kp-root .fsection select,
.kp-root .fsection textarea,
.kp-root .lang-select,
.kp-root .loc-selected,
.kp-root .loc-dropdown .ld-search { background: #ffffff; color: #0b1020; }

/* Segmented controls, steps and the selectable rows. */
.kp-root .seg,
.kp-root .step-pill,
.kp-root .cust-switch,
.kp-root .kcard .kc-check,
.kp-root .choice { background: #f2f5fc; }

.kp-root .choice.on,
.kp-root .step-pill.active,
.kp-root .seg button.on,
.kp-root .chip { background: #fbf0da; }

.kp-root .loc-item:hover,
.kp-root .suggest-item:hover { background: #fdf7ea; }

.kp-root .loc-item.active { background: #f8e8cd; }
.kp-root .loc-item .li-type { background: #e9edf8; }

.kp-root .toggle { background: #c9d2e6; }
.kp-root .donut { background: conic-gradient(#d7ddee 0 100%); }

/*
 * The semantic badges.
 *
 * Each keeps its meaning — green easy, red hard, amber medium — as a tint
 * rather than a deep block, and each states its TEXT colour too. The dark
 * versions relied on near-white text they inherited; a pale tint with that
 * same text would be a badge nobody can read.
 */
.kp-root .badge.easy { background: #e3f6ed; color: #0c6b42; }
.kp-root .badge.medium { background: #fdf2dd; color: #7d4d08; }
.kp-root .badge.hard { background: #fbe6eb; color: #96203c; }
.kp-root .badge.na { background: #eceffa; color: #3f4a68; }
.kp-root .ok-badge { background: #e3f6ed; color: #0c6b42; }
.kp-root .banner.err { background: #fbe6eb; color: #96203c; }

/* The format chips and the idea blocks behind them, same hues, lifted. */
.kp-root .fmt-chip.ads { background: #fdf1de; color: #7d4d08; }
.kp-root .fmt-chip.blog { background: #e2f5f1; color: #0b5f52; }
.kp-root .fmt-chip.local { background: #e4eefb; color: #16496f; }
.kp-root .fmt-chip.rise { background: #e3f6ed; color: #0c6b42; }
.kp-root .fmt-chip.social { background: #fae7f5; color: #7c1a63; }
.kp-root .fmt-chip.win { background: #fbf2dd; color: #6f5209; }

.kp-root .idea-block.ads { background: linear-gradient(135deg, #fdf3e4, #fbe9d2); }
.kp-root .idea-block.blog { background: linear-gradient(135deg, #e6f6f2, #d8efe9); }
.kp-root .idea-block.local { background: linear-gradient(135deg, #e7f0fb, #dae7f8); }
.kp-root .idea-block.social { background: linear-gradient(135deg, #fbeaf7, #f6dcef); }

/* --------------------------------------------------------------------------
   8 · Google Business Profile connect.

   A teal-ink screen: its own palette, plus twenty surfaces naming a colour.
   -------------------------------------------------------------------------- */

.gb-root {
  --bg: #f4f8fb;
  --panel: #ffffff;
  --panel2: #f2f7fa;
  --line: rgba(15, 40, 55, .14);
  --line2: rgba(15, 40, 55, .22);
  --muted: #4b6675;
  --dim: #5f7d8c;
  --text: #06222e;

  --cyan: #0b7f9e;
  --blue: #b8761f;
  --green: #0f8f55;
  --amber: #a4620f;
  --red: #c92a4d;
}

.gb-root { background: radial-gradient(900px 500px at 50% 0%, rgba(11, 127, 158, .07), transparent 60%), #f4f8fb; }
.gb-root .gb-panel { background: rgba(255, 255, 255, .96); }
.gb-root .gb-bubble,
.gb-root .gb-bubble:after { background: #ffffff; }

.gb-root .gb-steps { background: #eaf2f7; }
.gb-root .gb-step,
.gb-root .gb-pick,
.gb-root .gb-next a,
.gb-root .gb-next div,
.gb-root .gb-btn.is-ghost { background: #f1f6fa; }

.gb-root .gb-step.is-on,
.gb-root .gb-pick.is-on { background: #dcecf4; }

/* Status colours keep their meaning, and state their own text — a pale tint
   with the near-white it used to inherit would be unreadable. */
.gb-root .gb-badge.is-ok,
.gb-root .gb-check-row.is-ok .gb-mark,
.gb-root .gb-ok,
.gb-root .gb-note.is-ok { background: #e3f6ed; color: #0c6b42; }

.gb-root .gb-badge.is-warn,
.gb-root .gb-check-row.is-todo .gb-mark,
.gb-root .gb-note.is-warn { background: #fdf2dd; color: #7d4d08; }

.gb-root .gb-note.is-bad { background: #fbe6eb; color: #96203c; }

/* --------------------------------------------------------------------------
   9 · The Google Ads wizard.

   The "ocean" screen. Almost no tokens — twenty-seven surfaces name their own
   colour — so this section is longer than the others by necessity rather than
   by choice.
   -------------------------------------------------------------------------- */

.ocean {
  --accent: #1f74c7;
  --accent-text: #185ea6;
}

.ocean { background: radial-gradient(120% 90% at 50% 0%, #f7fafd 0%, #eef3f9 100%); }
.stage { background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(244, 248, 253, .9)); }
.rail { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(240, 245, 251, .95)); }

.sb,
.nsec,
.rev,
.est { background: rgba(255, 255, 255, .92); }

.tcard,
.goals button,
.opt { background: #f5f8fc; }

.tcard:hover { background: #eaf1fa; }

.kw-row { background: #f7f9fd; }
.kw-row.is-on { background: #e7effa; }

.ta__list { background: #f2f6fc; }

.doc__bub,
.doc__bub:after { background: #ffffff; }

.ocean input,
.ocean select,
.ocean textarea { background: #ffffff; color: #0b1020; }

.gauge { background: linear-gradient(180deg, rgba(31, 116, 199, .10), rgba(31, 116, 199, .04)); }
.kelp span { background: linear-gradient(to top, rgba(31, 116, 199, .18), transparent); }
.worldmap { background: rgba(31, 116, 199, .06); }

/*
 * KEPT DARK: the YouTube preview and the skeleton placeholders that sit on
 * media. Same reasoning as everywhere else — a picture of YouTube, and bars
 * that stand in for an image while it loads.
 */
.srf--dark { background: #0f0f10; }
.gl-skel.dk { background: #2a2f36; }
.yt-row > i { background: #2a2f36; }
.yt-sk { background: rgba(0, 0, 0, .72); }
.yt-st { background: radial-gradient(circle at 50% 45%, #2a2d35, #16181c); }

/* --------------------------------------------------------------------------
   10 · TEXT.
   
   The mirror of the surfaces above, and the reason a screen could look white
   and still be unreadable: these rules set a near-white colour with a literal
   value, written for a near-black ground. The label is there, it occupies
   space, and on white it cannot be read.
   
   Generated from the twelve stylesheets rather than typed, and filtered twice:
   
     · anything inside a mock-up keeps white text, because the ground under it
       is still dark on purpose — the YouTube player, an Instagram story, an X
       post, a device frame, a control floating on media;
     · any rule that paints its OWN ground is left alone, because that white
       belongs to the button rather than to the page. Darkening a gold button's
       label because the page turned white is its own bug.
   
   Each colour maps onto an ink ramp by how light it was, so the hierarchy the
   original had — primary, secondary, caption — survives the change of ground.
   -------------------------------------------------------------------------- */

.actions button { color: #0b1020; }
.ais-canvas.player .ais-working .txt { color: #26304d; }
.allset p { color: #26304d; }
.as-b > div > span { color: #26304d; }
.as-l li { color: #26304d; }
.as-l li.on { color: #0b1020; }
.auto-f { color: #26304d; }
.btn.ghost { color: #0b1020; }
.chips span { color: #26304d; }
.chk { color: #0b1020; }
.cid { color: #26304d; }
.cid b { color: #0b1020; }
.cid button { color: #4a5570; }
.cnt { color: #26304d; }
.cnt.over { color: #854747; }
.doc__bub p { color: #0b1020; }
.doc__cap em { color: #26304d; }
.doc__foot { color: #26304d; }
.doc__id > div > span { color: #26304d; }
.doc__tip p { color: #26304d; }
.drop { color: #26304d; }
.est span { color: #26304d; }
.fine { color: #26304d; }
.fld label { color: #0b1020; }
.gauge__exit { color: #0b1020; }
.gauge__s .now button { color: #0b1020; }
.gauge__s button { color: #26304d; }
.gb-root .gb-btn.is-ghost:hover { color: #0b1020; }
.gb-root .gb-exit:hover { color: #0b1020; }
.gb-root .gb-note b { color: #0b1020; }
.gb-root .gb-step.is-done { color: #26304d; }
.gb-root .gb-step:hover { color: #0b1020; }
.gl-notice { color: #26304d; }
.gl-sh-r { color: #7f4b10; }
.helper { color: #26304d; }
.kp-root .banner b { color: #0b1020; }
.kp-root .box .flabel { color: #0b1020; }
.kp-root .brand { color: #26304d; }
.kp-root .chip .x:hover { color: #0b1020; }
.kp-root .crumb-current { color: #26304d; }
.kp-root .exit:hover { color: #0b1020; }
.kp-root .fsection .flabel { color: #0b1020; }
.kp-root .geo-bd .geo-n { color: #26304d; }
.kp-root .ghost:hover { color: #0b1020; }
.kp-root .idea-block .ib-text { color: #0b1020; }
.kp-root .idea-block.ads .ib-tag { color: #85582f; }
.kp-root .idea-block.blog .ib-tag { color: #31664f; }
.kp-root .idea-block.local .ib-tag { color: #425873; }
.kp-root .idea-block.social .ib-tag { color: #854860; }
.kp-root .kw-table .kwname { color: #0b1020; }
.kp-root .loading { color: #26304d; }
.kp-root .loc-item .li-name { color: #0b1020; }
.kp-root .sectionhead h1 { color: #0b1020; }
.kp-root .step-pill.done { color: #4a5570; }
.kp-root .step-pill:hover { color: #0b1020; }
.kp-root .suggest-chip:hover { color: #0b1020; }
.kp-root .suggest-item .si-name { color: #0b1020; }
.kw-head { color: #26304d; }
.kw-name { color: #0b1020; }
.kw-pick { color: #26304d; }
.kw-vol.unknown { color: #4a5570; }
.kwt__h { color: #26304d; }
.kwt__k { color: #0b1020; }
.kwt__more { color: #26304d; }
.kwt__t { color: #26304d; }
.next p { color: #26304d; }
.notice.bad-notice > span { color: #854747; }
.nsec__h > div > span { color: #26304d; }
.nsec__h strong em { color: #26304d; }
.nsec__m { color: #26304d; }
.okline { color: #26304d; }
.opt__h { color: #0b1020; }
.opt__h em { color: #26304d; }
.path > span { color: #26304d; }
.pills button { color: #26304d; }
.ps-bubble.is-nudge { color: #26304d; }
.ps-check { color: #0b1020; }
.ps-pub-row.is-busy .ps-pub-pill { color: #26304d; }
.ps-pub-timer { color: #26304d; }
.pv-box h3 { color: #0b1020; }
.pv-dismiss { color: #4a5570; }
.pv-empty { color: #4a5570; }
.pv-note p { color: #26304d; }
.pv-tbl span { color: #26304d; }
.rail__foot { color: #4a5570; }
.rev__b span { color: #26304d; }
.sb__r > span { color: #26304d; }
.sh-r { color: #7f4b10; }
.slider label { color: #26304d; }
.status > div > span { color: #26304d; }
.sub { color: #26304d; }
.switchrow .dim { color: #0b1020; }
.switchrow p { color: #26304d; }
.ta__list .muted { color: #4a5570; }
.ta__list button { color: #0b1020; }
.tags em { color: #4a5570; }
.tags span button { color: #26304d; }
.tags span button:hover { color: #0b1020; }
.tcard__d { color: #26304d; }
.tcard__h { color: #26304d; }
.tcard__soon { color: #855d3d; }
.whatsnext { color: #26304d; }
.whyblocked { color: #855d3d; }

/* --------------------------------------------------------------------------
   11 · The text that is CORRECTLY white, restated.

   Everything below sits on a ground this file deliberately leaves dark — a
   YouTube player, an Instagram story or reel, an X post, a LinkedIn avatar, a
   map pin, a banner over imagery, a gated button with its own colour.
   Flipping these would be the mirror of the bug above: dark text on a dark
   surface.

   They are written out rather than skipped so the decision is on the page, and
   so the coverage test can reach zero honestly instead of carrying a list of
   exceptions nobody maintains.
   -------------------------------------------------------------------------- */

/* The launch shell's YouTube preview, map pins and image banners. */
.gl-bnr-a { color: #fff; }
.gl-bnr-c em { color: #fff; }
.gl-mp-b button { color: #fff; }
.gl-mp-pin { color: #fff; }
.gl-yt-cta { color: #fff; }
.gl-yt-meta > div span { color: #aaa; }
.gl-yt-meta strong { color: #f1f1f1; }
.gl-yt-pl { color: rgba(255, 255, 255, .85); }

/* Selection keeps a white knockout against the accent behind it. */
.gl-root ::selection { color: #fff; }

/* Instagram and Messenger previews. */
.ml-root .ml-cta { color: #fff; }
.ml-root .ml-reels-btm .ml-sp { color: rgba(255, 255, 255, .75); }
.ml-root .ml-reels-btm .ml-who { color: #fff; }
.ml-root .ml-reels-side { color: #fff; }
.ml-root .ml-reels-top { color: #fff; }
.ml-root .ml-story-btm .ml-msg { color: #fff; }
.ml-root .ml-story-top .ml-sp { color: rgba(255, 255, 255, .85); }
.ml-root .ml-story-top .ml-who { color: #fff; }
.ml-root .ml-tick-q { color: #fff; }

/* LinkedIn's avatars and message call-to-action. */
.li-root .li-av { color: #fff; }
.li-root .li-msg-cta { color: #fff; }
.li-root .li-spot-av { color: #fff; }

/* The X post preview, which is X's own dark interface. */
.x-root .x-av { color: #fff; }
.x-root .x-card-h { color: #e7e9ea; }
.x-root .x-card-n { color: #fff; }
.x-root .x-name { color: #e7e9ea; }
.x-root .x-screen { color: #e7e9ea; }
.x-root .x-text { color: #e7e9ea; }

/* The composer's phone mock-up and the controls that float on media. */
.ps-chip .ps-cover-flag { color: #fff; }
.ps-phone .ps-av { color: #fff; }
.ps-phone .ps-cap { color: #cfd9f5; }
.ps-phone .ps-link-title { color: #e7edff; }
.ps-picked button { color: #a9f0c9; }

/* AI Studio's gate button carries its own colour. */
.ais-btn-gate { color: #fff !important; }
.ais-flag.gate { color: #fff; }

/* The Google Ads wizard's YouTube preview, pins and banners. */
.bnr__a { color: #fff; }
.bnr__c em { color: #fff; }
.mp-b button { color: #fff; }
.mp-pin { color: #fff; }
.wm-pin { color: #fff; }
.yt-meta > div > span { color: #aaa; }
.yt-next > span { color: #aaa; }
.yt-pl { color: rgba(255, 255, 255, .85); }

/* --------------------------------------------------------------------------
   12 · And the four that were genuinely unreadable.
   -------------------------------------------------------------------------- */

.ps-ack { color: #7d4d08; }
.ps-ack.is-on { color: #0c6b42; }
.gl-notice.is-ok { color: #0c6b42; }
.notice.ok { color: #0c6b42; }
.tags span.neg { color: #96203c; }

/* --------------------------------------------------------------------------
   13 · Glows.

   A warm halo behind a headline is how a word lifts off near-black. On white
   the same halo is a smudge around the letters — it reads as a rendering
   fault rather than as emphasis, and it costs contrast on the very word the
   emphasis was for.

   The highlight keeps its colour; only the glow goes.
   -------------------------------------------------------------------------- */

.gl-hero h1 .gl-hl,
.gl-success h2 .gl-a,
.ps-work-head.is-crew h3 { text-shadow: none; }

/*
 * The one that stays: an Instagram story's caption is white text laid over a
 * photograph, and the drop shadow is what keeps it readable against whatever
 * the picture happens to be. Nothing about the page theme changes that.
 */
.ml-root .ml-story-btm .ml-msg { text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }

/*
 * And the hero's own colour, stated rather than inherited.
 *
 * .gl-root sets `color: var(--hi)` and the headline takes it from there, which
 * works — but it is the largest text on the screen and the one most obviously
 * wrong if the cascade ever changes above it. A line costs nothing.
 */
.gl-hero h1 { color: var(--hi); }

/* --------------------------------------------------------------------------
   14 · Two full-bleed layers that a palette cannot reach.
   -------------------------------------------------------------------------- */

/*
 * THE SKYLINE ON THE ADS WIZARD.
 *
 * .gl-skyline is a 34vh SVG city at 55% opacity across the foot of the page.
 * Against near-black it reads as a horizon the mascot is standing on; on white
 * it is a row of heavy grey towers with the copy sitting in front of them, and
 * the buttons underneath have to compete with it.
 *
 * Hidden rather than lightened. At that size there is no opacity where it
 * stops being a wall of blocks and starts being atmosphere — the deck's own
 * skyline was hidden for the same reason.
 */
.gl-skyline { display: none; }

/*
 * THE KEYWORD PLANNER'S TOP GLOW.
 *
 * .kp-root paints a radial from #16224f down to var(--bg). The palette answered
 * the --bg at the end of it and could do nothing about the two navy stops in
 * front, so the page turned white with a dark bruise across the top of it.
 *
 * Kept as a glow, in the accent's hue, at an alpha that lifts the header
 * without staining it.
 */
.kp-root {
  background: radial-gradient(1000px 520px at 50% -160px, rgba(199, 138, 45, .13) 0, rgba(199, 138, 45, .05) 55%, var(--bg) 100%);
}

/* --------------------------------------------------------------------------
   15 · The remaining atmosphere.

   Glows, horizons, caustics and sonar rings — the layers that give each
   builder its depth. Every one is light cast on darkness, which is a thing
   that cannot happen on a white page: what was a glow becomes a stain.

   Softened rather than deleted where they still shape the composition, and
   hidden where they only worked as light.
   -------------------------------------------------------------------------- */

/* The wizard's vignette and the strip's inner bloom. */
.gl-void { opacity: .35; }
.dk-strip::before { opacity: .4; }

/* The horizon behind the mascot, and the floor he stands on. Both were beams
   across near-black; on white they are a blue bruise and a grey puddle. */
.ml-tron-horizon::after { opacity: .18; }
.ml-holo-floor { opacity: .25; }

/* The sonar rings. They read as a ripple on white at a lower strength. */
.gl-sonar { opacity: .45; }
.sonar { opacity: .45; }

/* The ocean wizard's caustics — moving light on water, which is exactly the
   effect that has nothing to bite on once the water is white. */
.oc-caustics { opacity: .22; }

/*
 * KEPT: three layers inside something that stays dark.
 *
 * The phone screen's inner shade and the reel's own background image are part
 * of the Instagram preview; the busy overlay sits on a generated picture.
 */
.ml-root .ml-screen::before { opacity: 1; }
.ml-root .ml-reels img.ml-bg { opacity: 1; }
.ais-ref-chip.busy::after { opacity: 1; }

/* --------------------------------------------------------------------------
   16 · The accent, restated in the brand's gold.

   The dark theme runs two accents: a blue for structure — active steps, rings,
   the horizon, the grid — and the gold for the brand. That reads because on
   near-black the blue is a light source. On white it is just a second brand
   colour competing with the first, and the screen ends up looking like two
   products stitched together.

   So light mode keeps one accent, and it is the gold. The tokens above already
   carry it; what follows is the part that named a blue outright.

   The gold ramp, once:
     #b8761f  the accent — borders, marks, the edge of an active control
     #7a4a0d  the accent as TEXT, dark enough to read on white
     #c78a2d  the accent as LIGHT, for the glows that survive the move
     #fbf0da  the accent as a FILL behind text
     #fdf7ea  the same, one step lighter, for hover

   NOT touched: the network marks (Facebook, LinkedIn, Messenger), the Google
   Ads and Business Profile mock-ups, and the ocean wizard's teal. Those are
   somebody else's blue, and repainting them would be a lie about the product
   the screen is imitating.
   -------------------------------------------------------------------------- */

/* The hologram stage: the floor grid, the horizon across it, the rings around
   the mascot and the light he throws on the floor. Every one was a blue beam. */
.ml-tron-grid {
  background-image:
    linear-gradient(rgba(184, 118, 31, .24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 118, 31, .24) 1px, transparent 1px);
}

.ml-tron-horizon {
  opacity: .55;
  background: linear-gradient(90deg, transparent, rgba(184, 118, 31, .5) 20%, #c78a2d 50%, rgba(184, 118, 31, .5) 80%, transparent);
  box-shadow: none;
}
.ml-tron-horizon::after {
  opacity: .5;
  background: linear-gradient(180deg, rgba(199, 138, 45, .12), transparent);
}

.ml-holo-ring { border-color: rgba(184, 118, 31, .30); }
.ml-holo-ring.r2 { border-color: rgba(154, 90, 22, .24); }

.ml-holo-floor {
  opacity: .5;
  background: radial-gradient(ellipse at center, rgba(199, 138, 45, .20), transparent 70%);
}

/* The figure himself. The second drop-shadow was a 30px pool of pure black
   under his boots — on white that is a stain, not a shadow. */
.ml-scan img { filter: drop-shadow(0 0 26px rgba(199, 138, 45, .20)) drop-shadow(0 14px 22px rgba(15, 23, 55, .14)); }
.ml-scan::after { background: linear-gradient(180deg, transparent, rgba(199, 138, 45, .26), transparent); }

.ml-portrait {
  border-color: rgba(15, 23, 55, .10);
  box-shadow: 0 0 0 7px rgba(184, 118, 31, .10), 0 10px 26px rgba(15, 23, 55, .12);
}

/* THE ACTIVE CONTROLS.
 *
 * Every one of these said the same thing in the dark theme — "this is the one
 * you are on" — with a blue edge and a blue glow. Light mode says it with a
 * gold edge and a gold fill, and no glow at all: a ring of coloured blur on
 * white reads as a rendering artefact rather than as emphasis. */
.ml-tab.is-on,
.ml-hear,
.ml-hear-navy {
  background: #fbf0da;
  color: #7a4a0d;
  border-color: #c78a2d;
  box-shadow: none;
}

.kp-root .step-pill.active,
.kp-root .choice.on,
.kp-root .seg button.on {
  color: #7a4a0d;
  border-color: #c78a2d;
  box-shadow: none;
}

.gl-goal.is-on { box-shadow: 0 0 0 1px var(--c, #c78a2d); }
.ps-type.is-sel { box-shadow: 0 0 0 2px rgba(184, 118, 31, .45); }

/* The planner's eyebrow — MISSION 1 OF 5 — was a periwinkle that gen_text left
   alone because it was already mid-toned. Mid-toned on near-black; on white it
   is a pale line of type nobody reads. */
.kp-root .mission .eyebrow { color: #8a5210; }

/* Two glows behind type. The headline's gold halo did the work of a highlight
   on near-black; on white it blurs the letters it was meant to lift. */
.gl-hero h1 .gl-hl,
.ml-hero-title .ml-gold { text-shadow: none; }

/* --------------------------------------------------------------------------
   17 · The drop shadows.

   A shadow is a hole in the light. On a near-black page `0 18px 60px #0009`
   is invisible until it meets the edge of a card, where it reads as depth. On
   white the same rule is a grey smudge under every panel, and a screen full of
   them stops looking layered and starts looking dirty.

   Three answers, by what the thing IS:

     · A panel sitting ON the page — removed. It already has a border, and on
       white a border is enough to say where it ends.
     · A thing FLOATING OVER the page — kept, at a tenth of the weight and in
       the page's own ink rather than black. A dropdown with no shadow at all
       does not read as being in front of anything.
     · A physical OBJECT in a mock-up — a phone, a map pin — kept light. Those
       cast a shadow because that is what objects do.
   -------------------------------------------------------------------------- */

/* ON the page. */
.kp-root .panel,
.gb-root .gb-panel,
.gl-char-col,
.gl-speech,
.gl-success,
.ps-bubble,
.ps-pub-card,
.ps-type .ps-glyph { box-shadow: none; }

/* OVER the page. */
.kp-root .suggest-box,
.kp-root .loc-dropdown,
.gl-help-pop,
.gl-results-list,
.ps-menu,
.ta__list { box-shadow: 0 10px 28px rgba(15, 23, 55, .10); }

.ais-toast { box-shadow: 0 8px 24px rgba(15, 23, 55, .14); }

.dk-root .app-sidebar button[data-sidebar-toggle] { box-shadow: 0 3px 10px rgba(15, 23, 55, .14) !important; }

/* OBJECTS in a mock-up. */
.gl-device { box-shadow: 0 0 0 1px rgba(15, 23, 55, .12), 0 14px 32px rgba(15, 23, 55, .16); }
.li-root .li-screen,
.x-root .x-screen { box-shadow: 0 14px 32px rgba(15, 23, 55, .16); }

.gl-mp-pin,
.mp-pin { box-shadow: 0 6px 14px -6px rgba(15, 23, 55, .40); }

.kp-root .kcard .kc-ribbon { box-shadow: 0 2px 6px rgba(15, 23, 55, .18); }

/* KEPT as written: the knob's 1px shadow is already a light-theme shadow, and
   the two tab underlines are Google's own indicator inside a mock-up of the
   Google interface. */

/* --------------------------------------------------------------------------
   18 · The text left behind on a repainted ground.

   Section 11 deliberately skips any rule that paints its own background — the
   white label on a gold button belongs to the button, not to the page, and
   darkening it gives you a gold button nobody can read.

   That is right, except where THIS FILE then turns that same ground white. The
   planner's speech bubble was the case: the navy behind it became white, the
   pale gold type came along unchanged, and the sentence vanished.

   Each keeps its own hue and loses its lightness — the bubble stays gold, the
   Business Profile bubble stays teal — so the screen still colour-codes the
   way it did, in ink instead of in light.
   -------------------------------------------------------------------------- */

.kp-root .bubble { color: #7a4a0d; }
.ps-bubble { color: #7a4a0d; }
.kp-root .secondary { color: #26304d; }
.kp-root .cust-switch { color: #3f4a68; }
.gb-root .gb-bubble { color: #0b4f63; }

/* --------------------------------------------------------------------------
   19 · The composer's two lights.

   THE SAME BUG AS THE PLANNER'S DARK BAND, which is why it now has a scan of
   its own rather than a fix each time somebody spots one.

   .ps-root paints the studio as a room: two lights, one from the top left and
   one from the top right, over `var(--bg)`. Only the --bg is a token. The
   palette answered it, the page turned white, and the two navy lights came
   through untouched — a wedge of deep blue in each top corner of an otherwise
   white page.

   It defeats both of the other passes. A palette cannot reach a literal, and
   the full-bleed scan looks for layers that declare their size (`inset: 0`,
   `height: 40vh`) — a page root never declares it, because it is big by being
   the root. The literal STOP is the only thing the three cases had in common,
   and that is what stops.php looks for.

   Same room, same two lights, in the accent's hue at an alpha a white page can
   carry. (The composer's --sky, which carried OPENING SCENE, is repointed in
   its palette in section 4.)
   -------------------------------------------------------------------------- */

.ps-root {
  background:
    radial-gradient(1100px 620px at 12% -12%, rgba(199, 138, 45, .10) 0%, transparent 62%),
    radial-gradient(900px 520px at 92% 2%, rgba(184, 118, 31, .07) 0%, transparent 58%),
    var(--bg);
}

/* The pool of light the guide stands in, on the left of every screen. A 40%
   blue at full strength on white is a haze around him, not a light on him. */
.ps-stage {
  background: radial-gradient(300px 320px at 50% 78%, rgba(199, 138, 45, .14), transparent 72%);
}

/* --------------------------------------------------------------------------
   20 · Ink on ink — the filled buttons.

   The dark theme's accents are LIGHTS: #f7b733 gold, #5476ff blue. Near-black
   type on them is the only readable choice, which is why the primary button
   says `background: var(--gold); color: #241700` and is right to.

   Light mode inverts that. The same token also has to read as TEXT on white,
   so --gold became #9a5a16 — and every button built on it turned deep brown
   with near-black type on it. The fill still says "this is the primary
   action"; the label quietly stopped being readable.

   Section 11 cannot catch these, by design: it skips any rule that paints its
   own ground, precisely so it never darkens the label on a gold button. That
   rule is correct and this is its blind spot — the ground here did not get
   lighter, it got darker.

   Nineteen of them, found by scanning for a near-black label on a fill built
   from a token light mode turned into ink.
   -------------------------------------------------------------------------- */

/* The launch wizard. */
.gl-note .gl-ico,
.gl-section .gl-n,
.gl-step.is-done .gl-dot { color: #ffffff; }

/* The composer — the Start Marketing button, the format tick, the AI toggle. */
.ps-btn.is-primary,
.ps-type .ps-pick,
.ps-aibtn.is-on { color: #ffffff; }

/* The NEW badge on Share to Instagram, on the same gold. */
.ps-new-badge { color: #ffffff; }

/* The planner — its primary button, the winner ribbon, the logo tile. */
.kp-root .primary,
.kp-root .kcard .kc-ribbon,
.kp-root .brand .mark { color: #ffffff; }

/* Business Profile. */
.gb-root .gb-btn.is-primary { color: #ffffff; }

/* The Google Ads wizard. Its accent stays BLUE — that one is Google's, not
   ours — but light mode deepened it to #1f74c7 to carry as text, which puts it
   in exactly the same position. */
.actions button.on,
.btn.solid,
.gauge__s .now .dot,
.kw-row.is-on .kw-pick,
.nsec__n,
.pills button.on,
.yt-cta { color: #ffffff; }

/*
 * KEPT, and why.
 *
 * .ml-reels-cta is Instagram's own call-to-action inside the reel preview, and
 * that preview sits on a photograph that stays dark in both themes. It should
 * look like Instagram, not like us — so it gets the BRIGHT gold back rather
 * than a white label on our deep one.
 */
.ml-root .ml-reels-cta { background: #f7b733; color: #000000; }

/*
 * .gl-goal .gl-check is left alone. Its ground is `var(--c, var(--blue))`, and
 * --c is set inline on every goal card from that format's own accent — all six
 * of them bright (#ff5a5f, #ffb020, #2fbf71, #00d6c2, #4c6fff). The deep
 * fallback is the branch that never runs, and white on #ffb020 would be worse
 * than the ink that is there.
 */

/* --------------------------------------------------------------------------
   Editor (editor.css, .me-root).

   The stage, the camera and the timeline's film strips stay dark in both
   themes, for the same reason the AI Studio's player does: they frame
   pictures, and a white box round a photograph competes with it. They are
   named below so that is a decision on the page rather than an omission.
   -------------------------------------------------------------------------- */

.me-root {
  --ink: #0b1020;
  --ink-2: #26304d;
  --muted: #3f4a68;
  --faint: #6b7590;

  --paper: #ffffff;
  --wash: #f7f9fd;
  --wash-2: rgba(15, 23, 55, .05);

  --line: rgba(15, 23, 55, .14);
  --line-2: rgba(15, 23, 55, .22);

  --acc: #3554e0;
  --acc-2: #7a4ee0;
  --acc-soft: rgba(53, 84, 224, .10);
  --acc-line: rgba(53, 84, 224, .45);
  --acc-deep: #2a43b8;
  --acc-glow: rgba(53, 84, 224, .18);
  --go-ink: #ffffff;

  --ok: #0f8f55;
  --ok-soft: rgba(15, 143, 85, .10);
  --ok-line: rgba(15, 143, 85, .38);

  --bad: #c92a4d;
  --bad-soft: rgba(201, 42, 77, .10);
  --bad-line: rgba(201, 42, 77, .40);

  --warn: #a4620f;
  --warn-soft: rgba(164, 98, 15, .10);
  --warn-line: rgba(164, 98, 15, .42);

  --rec: #e11d48;
  --shadow: 0 18px 60px rgba(15, 23, 55, .14);

  /* Kept black: see above. */
  --player: #05070f;
}

/* Surfaces that should turn over with the page. */
.me-root .me-doc-art,
.me-doc-art { background: radial-gradient(420px 360px at 50% 70%, #e6ebfb 0%, #f7f9fd 70%); }
.me-say img { background: radial-gradient(circle at 50% 70%, #e6ebfb, #f7f9fd); }
.me-style { background: #26304d; }
.me-modal { background: rgba(15, 23, 55, .45); }

/* Kept dark on purpose — they sit on the black stage, the camera or a film
   strip, where white would be the wrong colour in either theme. */
.me-stage canvas.out { background: #000000; }
.me-look canvas, .me-look .sw { background: #000000; }
.me-clip { background: #000000; }
.me-busy { background: rgba(5, 7, 15, .82); }
.me-cam, .me-cam-review, .me-cam-bottom { background: #000000; }

/* Labels on the black stage, the camera, the film strip and the coloured
   timeline bars: white on dark is right in both themes, so restated as is. */
.me-tile .badge { background: rgba(0, 0, 0, .65); color: #ffffff; }
.me-stage-hint { background: rgba(0, 0, 0, .6); color: #ffffff; }
.me-compare .me-btn { background: rgba(0, 0, 0, .6); color: #ffffff; }
.me-badge-before { background: rgba(0, 0, 0, .65); color: #ffffff; }
.me-clip .lbl { background: rgba(0, 0, 0, .65); color: #ffffff; }
.me-clip .spd { color: #ffffff; }
.me-bar { color: #ffffff; }
.me-bar.text { background: #5b4bd6; }
.me-bar.sticker { background: #c2410c; }
.me-bar.spot { background: #475569; }
.me-bar.voice { background: #be185d; }
.me-steps li.on b { color: #ffffff; }
.me-btn.go { color: #ffffff; }
.me-btn.rec { color: #ffffff; }
.me-door.cam .ic { color: #e11d48; }
.me-tile[aria-pressed="true"]::after { color: #ffffff; }
.me-sel .h.del { color: #ffffff; }
.me-cam-top { background: linear-gradient(rgba(0, 0, 0, .6), transparent); }
.me-cam-top .me-btn { background: rgba(0, 0, 0, .45); color: #ffffff; }
.me-cam-side .me-btn { background: rgba(0, 0, 0, .45); color: #ffffff; }
.me-cam-rec { background: rgba(0, 0, 0, .55); }
.me-cam-prompt { background: rgba(0, 0, 0, .55); }
.me-cam-modes button { color: #cfd3e6; }
.me-cam-count { color: #ffffff; }
.me-cam-msg { color: #e5e7f0; }
.me-cam-msg b { color: #ffffff; }
/* Photo coach (EDITOR_COACH): the tip over the live camera stays dark in both themes, like the rest of the camera. */
.me-cam-coach { background: rgba(10, 13, 32, .86); }
.me-cam-coach p { color: #ffffff; }
.me-cam-coach .me-btn { background: rgba(255, 255, 255, .12); color: #ffffff; }
.me-cam-coach .me-btn.quiet { color: #cfd3e6; }
.me-coach-ic { background: rgba(76, 111, 255, .35); color: #ffffff; }
/* The Editor's layer, effect and sound-effect bars keep their colours: white labels on them. */
.me-bar.media { background: #2563eb; }
.me-bar.fx { background: #a21caf; }
.me-bar.sfx { background: #b45309; }

/* Editor, designer feedback round (Oct 2026). Tiles that show pictures or
   white-on-dark samples stay dark in both themes. */
.me-cover, .me-bin-tile, .me-fxtile canvas { background: #000000; }
.me-preset, .me-captile canvas { background: #2b3150; }
.me-cover span, .me-bin-tile .nm, .me-bin-tile .dur { color: #ffffff; }

/* Editor, newer controls: the stage zoom, the typed playhead clock, the
   Simple-mode switch, the empty-track button, the clip action bar and the
   "start from a design" sheet turn over with the page. The stage behind the
   zoom stays black (see above), so the zoom becomes a white chip on it. */
.me-zoom { background: rgba(255, 255, 255, .94); box-shadow: 0 2px 10px rgba(15, 23, 55, .28); }
.me-zb { color: #0b1020; }
.me-zb:hover:not(:disabled) { background: rgba(15, 23, 55, .08); }
.me-zl { color: #3f4a68; }
.me-time.editable:hover { background: rgba(15, 23, 55, .06); }
.me-time-input { background: #ffffff; border-color: rgba(15, 23, 55, .22); }
.me-lane-add { border-color: rgba(15, 23, 55, .22); color: #3f4a68; }
.me-lane-add:hover { border-color: rgba(15, 23, 55, .40); color: #0b1020; }
.me-mode { border-color: rgba(15, 23, 55, .22); color: #3f4a68; }
.me-mode:hover { border-color: rgba(15, 23, 55, .40); color: #0b1020; }
.me-mode.on { border-color: rgba(164, 98, 15, .42); color: #a4620f; background: rgba(164, 98, 15, .10); }
.me-tpl:hover { border-color: rgba(15, 23, 55, .30); }
.me-tpl-nm { color: #0b1020; }
.me-tpl-d { color: #3f4a68; }
.me-start { background: rgba(247, 249, 253, .96); }
.me-start-in h2 { color: #0b1020; }
.me-start-in > p { color: #3f4a68; }
.me-start-skip { color: #3f4a68; }
.me-start-skip:hover { color: #0b1020; }
.me-act { color: #26304d; }
.me-act:hover { background: rgba(15, 23, 55, .06); }
.me-act-what { color: #3f4a68; }
/* On the accent colour in both themes: white labels on them. */
.me-clip .tr.on { color: #ffffff; }
.me-io-flag { color: #ffffff; }
.me-sfx-play.on { color: #ffffff; }
