/* =========================================================
   Light theme — hand-tuned tokens and fixes on top of light-auto.css.
   White and Apple's light grey (#f5f5f7), near-black text, and one palette in both themes: the
   WAHAJ green #00FF6F and the purple #8B5CF6. Green words on white are ink, with green icons.
   ========================================================= */
:root[data-theme="light"] {
  color-scheme: light;
  --qf-ink: #000000;
  --void: #f5f5f7;
  --bg: #f5f5f7;
  --bg-deep: #ebebf0;
  --side: #ffffff;
  --panel: #ffffff;
  --panel-2: #f5f5f7;
  --tile: #f0f0f2;
  --tile-hi: #e8e8ed;
  --line: #e8e8ed;
  --line-2: #d2d2d7;
  --line-3: #c7c7cc;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --faint: #aeaeb2;
  /* the same green as the dark theme */
  --accent: #00FF6F;
  --accent-fill: #00FF6F;
  --accent-hi: #00FF6F;
  --accent-deep: #00FF6F;
  --accent-ink: #000000;
  --accent-soft: rgba(0, 255, 111, .10);
  --accent-soft-2: rgba(0, 255, 111, .16);
  --accent-line: rgba(0, 255, 111, .6);
  --accent-2: #8B5CF6;
  --accent-2-text: #8B5CF6;
  --accent-2-soft: rgba(139, 92, 246, .10);
  --accent-2-line: rgba(139, 92, 246, .45);
  --glow: none;
  --nebula-400: #7C3AED; --orbit-400: #2563EB;
  --warn: #C95E00;
  --orange: #C95E00;
  --red: #C2185B;
  --blue: #7C3AED;
  --sky: #7C3AED;
  --shadow-float: none;
  --shadow-modal: none}
[data-theme="light"] body { background: var(--void)}
[data-theme="light"] #viewport { background: #f5f5f7}
[data-theme="light"] #stage { box-shadow: none}

/* surfaces: white cards on Apple light grey */
[data-theme="light"] .app { background: var(--bg)}
[data-theme="light"] .side { background: #ffffff; border-inline-end-color: var(--line)}
[data-theme="light"] .topbar { background: transparent}
[data-theme="light"] .side-nav button { color: var(--text-2)}
[data-theme="light"] .side-nav button:hover { background: var(--tile)}
[data-theme="light"] .side-nav button.on { background: rgba(124, 124, 124, 0.18); color: var(--text); box-shadow: none}
[data-theme="light"] .fm, [data-theme="light"] .fields, [data-theme="light"] .ai, [data-theme="light"] .mt-head, [data-theme="light"] .mt-conv, [data-theme="light"] .mt-cur,
[data-theme="light"] .mt-tools, [data-theme="light"] .mt-prof, [data-theme="light"] .mt-box, [data-theme="light"] .p-side, [data-theme="light"] .m-side .ms-card,
[data-theme="light"] .mcard, [data-theme="light"] .ccard, [data-theme="light"] .pcard2, [data-theme="light"] .pstat, [data-theme="light"] .newp, [data-theme="light"] .prow { background: #ffffff}
[data-theme="light"] .field-tile, [data-theme="light"] .tool, [data-theme="light"] .res button { background: var(--panel-2)}
[data-theme="light"] .mcard, [data-theme="light"] .pcard2, [data-theme="light"] .ccard, [data-theme="light"] .fm, [data-theme="light"] .fields, [data-theme="light"] .kdb, [data-theme="light"] .h-hero { box-shadow: none}
[data-theme="light"] .modal { background: #ffffff; border-color: var(--line)}
[data-theme="light"] .modal-wrap { background: rgba(20, 20, 20, 0.38)}
[data-theme="light"] .dd-menu, [data-theme="light"] .pop, [data-theme="light"] .toast { background: #ffffff; border-color: var(--line-2)}
/* buttons keep the brand pairing: Glow fill with On-green labels */
[data-theme="light"] .btn-primary { background: #00FF6F; color: #0a0a0b}
[data-theme="light"] .btn-primary:hover { background: #00FF6F; box-shadow: none}
[data-theme="light"] .btn-primary:active { background: #00FF6F}
[data-theme="light"] .btn-primary[disabled], [data-theme="light"] .btn-primary.is-disabled { background: #e5e5ea; color: #98989d; box-shadow: none}
[data-theme="light"] .btn-ghost { background: #ffffff}
[data-theme="light"] .btn-outline { background: rgba(124, 124, 124, 0.1); color: var(--text); border-color: var(--accent)}
[data-theme="light"] .bstep.done i, [data-theme="light"] .st-check .check.on, [data-theme="light"] .t-check .check.on, [data-theme="light"] .badge.solid { background: #00FF6F; border-color: #00FF6F; color: #0a0a0b}
[data-theme="light"] .tgl { background: #d2d2d7}
[data-theme="light"] .tgl i { background: #ffffff; box-shadow: none}
[data-theme="light"] .tgl.on { background: #00FF6F}
[data-theme="light"] .radio { border-color: #98989d}
/* logo on light: Night letters, Glow sparks; the all-glow sidebar variant uses Glow 700 */
[data-theme="light"] .wordmark .wm-l, [data-theme="light"] .wordmark .wm-s, [data-theme="light"] .wordmark .wm-t, [data-theme="light"] .logo-mark .wm-l, [data-theme="light"] .logo-mark .wm-s { fill: #111112}
[data-theme="light"] .wordmark-thin { stroke: var(--text)}
[data-theme="light"] .splash .wordmark .wm-l, [data-theme="light"] .splash .wordmark .wm-s, [data-theme="light"] .splash .wordmark .wm-t { fill: #ffffff}
[data-theme="light"] .badge { color: #000000; background: var(--accent); border-color: var(--accent)}
[data-theme="light"] .badge.blue { color: #8b5cf6; background: rgba(255, 255, 255, 0.92); border-color: rgba(139, 92, 246, 0.4)}
[data-theme="light"] .badge.warn { color: #C95E00; background: rgba(255, 255, 255, 0.92); border-color: rgba(255, 159, 10, 0.5)}
[data-theme="light"] .badge.gray { color: var(--text-2); background: rgba(255, 255, 255, 0.92)}
[data-theme="light"] .chip { background: var(--tile)}
[data-theme="light"] .msg .bub { background: var(--panel-2)}
[data-theme="light"] .msg.me .bub { background: rgba(124, 124, 124, 0.12); border-color: var(--accent-line)}

/* home hero keeps its photo: text sits on a white fade */
/* the home hero stays a dark tile in both themes, like the dark product tiles on apple.com */
[data-theme="light"] .h-hero { --text: #f5f5f7; --text-2: #a1a1a6; --muted: #86868b; --line-2: #424245; --line-3: #545458; --tile: #1d1d1f; --accent: #00FF6F; background: #000000; border-color: #000000; color: #f5f5f7}
[data-theme="light"] .h-hero h1, [data-theme="light"] .h-hero p { color: #f5f5f7}
[data-theme="light"] .h-hero .acts .btn-ghost { background: rgba(0, 0, 0, 0.6); border-color: #545458; color: #f5f5f7}
[data-theme="light"] .h-hero .acts .btn-ghost:hover { background: #1d1d1f}
[data-theme="light"] .h-hero .acts .btn-ghost .pc { border-color: #d2d2d7}

/* WAHAJ AI surfaces */
[data-theme="light"] .ai-frame { --ai-bg: #ffffff}
[data-theme="light"] .tb-ai { --ai-bg: #ffffff}
[data-theme="light"] .ai-panel { --ai-bg: #ffffff; box-shadow: none}
[data-theme="light"] .aip-bb { background: #f5f5f7; border-color: #e5e5ea}
[data-theme="light"] .ai-bub { background: rgba(255, 255, 255, 0.98); box-shadow: none}
[data-theme="light"] .ai-home { --ai-bg: #ffffff}
[data-theme="light"] .ask { background: #f5f5f7; border-color: #d2d2d7}
[data-theme="light"] .ask .send { color: var(--text-2)}
[data-theme="light"] .tb-next { background: #ffffff; border-color: var(--line)}
[data-theme="light"] .gp-me-av { border-color: #ffffff}
[data-theme="light"] .gp-med { outline: 5px solid var(--panel); outline-offset: 0; box-shadow: none}
[data-theme="light"] .gp-road-done { filter: none}
[data-theme="light"] .av-ring { box-shadow: none}

/* onboarding (Part 1) */
[data-theme="light"] #stage.part1 { background: #f5f5f7}
[data-theme="light"] .ob-hero::after { background: none}

/* 3D and video stay dark: they are scenes, not surfaces */
[data-theme="light"] .s3d-host { background: #0a0a0b}
[data-theme="light"] .vid, [data-theme="light"] .vid video { background: #000000}

/* gradient headings need deeper colours on white */
[data-theme="light"] .st-mentor h3, [data-theme="light"] .t-mentor h3, [data-theme="light"] .mt-prof h3, [data-theme="light"] .c-mentor b { color: #7C3AED}

/* gradient surfaces for WAHAJ AI and the Mentor Conversation, daylight version */
[data-theme="light"] .ai.ai-home.ai-frame {
  background: #ffffff !important}
[data-theme="light"] .mt-conv {
  background: #ffffff;
  border-color: rgba(139,92,246,.25)}
[data-theme="light"] .mt-conv .qp button, [data-theme="light"] .mt-conv .mt-input { background-color: rgba(255, 255, 255, 0.8)}

/* iPad controls in light mode */
[data-theme="light"] .ip-tgl.on i { background: var(--accent)}
[data-theme="light"] .ip-tgl i::after { background: #ffffff}
[data-theme="light"] .side-nav button.on { box-shadow: none; color: var(--text)}
[data-theme="light"] .side-nav button.on .ico { color: var(--accent)}

/* Mentor chat in light mode: a white composer on a neutral page */
[data-theme="light"] .chatpage .mh { background: #f5f5f7}
[data-theme="light"] .cv-box { background: #ffffff; border-color: #e5e5ea; box-shadow: none}
[data-theme="light"] .cv-box:focus-within { border-color: #c7c7cc}
[data-theme="light"] .cv-ub { background: #e8e8ed}
[data-theme="light"] .cv-box.has .cv-send { color: #000000; background: var(--accent-deep)}
[data-theme="light"] .set-nav > button.on, [data-theme="light"] .set-nav > button.on b { color: var(--text)}
[data-theme="light"] .set-nav > button.on .ico { color: var(--accent)}

/* Quick Guide: a soft dark scrim keeps the spotlight readable on the light theme */
[data-theme="light"] #qg .qg-shade { background: rgba(16, 16, 16, 0.5)}

/* Build: a building's state keeps its colour in the light theme */
[data-theme="light"] .bd-st.built, [data-theme="light"] .bd-zone.built .bd-zh em { color: var(--text); border-color: var(--accent)}
[data-theme="light"] .bd-st.construction { color: #7c3aed; border-color: rgba(139, 92, 246, 0.5)}
[data-theme="light"] .bd-zone.built { border-color: var(--accent-line)}
[data-theme="light"] .bd-zone.construction { border-color: rgba(139, 92, 246, 0.55)}
[data-theme="light"] .bd-leg .built i { border-color: var(--accent)}
[data-theme="light"] .bd-leg .construction i { border-color: #8b5cf6}

/* the steps: a done step fills with its phase colour, as in the dark theme */
[data-theme="light"] .mx-s.done .n { background: var(--pc-fill)}

/* one palette: the WAHAJ green is the same in both themes. Green fills, lines and icons stay green;
   green words on light surfaces are ink, so they stay readable */
[data-theme="light"] .badge .ico { color: #000000}
[data-theme="light"] .mst.ok { color: var(--text)}
[data-theme="light"] .mst.ok .ico { color: var(--accent)}
[data-theme="light"] .mx-pg.do .mx-pgl { color: var(--text)}
[data-theme="light"] .mx-pg.do .mx-pgl .ico { color: var(--accent)}
[data-theme="light"] .mx-pg.become .mx-pgl { color: var(--text)}
[data-theme="light"] .mx-pg.become .mx-pgl .ico { color: var(--accent-2)}
[data-theme="light"] .mx-pg.do .mx-s.now .n { color: var(--text)}

/* v96: the selected inventory shelf count is ink in the light theme, like other green words */
[data-theme="light"] .mx-itabs button.on em { color: #1c1c23}
