/* AirForge Pro: light only, in both shells (contract G.4).
   Nothing is removed and no layout changes: only colours. Every rule is scoped to html.pro-ctx-airforge or
   html.pro-ctx-webforge, so a plain AirForge or a plain WebForge install is untouched.
   Part 1 = AirForge new console. Part 2 = WebForge console (new shell, classic and basic). */

/* =====================================================================================================
   PART 1. AirForge new console
   ===================================================================================================== */

/* The light colour set, pinned whatever data-theme says (frame_inject.php also pins data-theme="light").
   The navy top bar and rail become light through the same variables the console already uses. */
html.pro-ctx-airforge:root,
html.pro-ctx-airforge:root[data-theme]{
  --bg:#f4f1ea; --panel:#ffffff; --panel2:#faf8f3; --ink:#16203a; --dim:#5b6480; --line:#e2dcd0; --line2:#efeae0;
  --side:#ffffff; --side2:#f4f1ea; --side-ink:#16203a; --side-dim:#5b6480;
  --accent-ink:#8a5500; --accent-soft:#fdf0d9;
  --teal:#11a697; --blue:#2e50e6;
  --ok:#2f9e5b; --ok-soft:#e3f5ea; --warn:#b07800; --warn-soft:#fdf3d6; --bad:#d63c42; --bad-soft:#fde6e6;
  --info:#2e50e6; --info-soft:#e6ebfd; --off:#5b6480; --off-soft:#efeae0;
  --shadow:0 1px 2px rgba(22,32,58,.06),0 4px 14px rgba(22,32,58,.06);
  color-scheme:light;
}
html.pro-ctx-airforge body{background:var(--bg); color:var(--ink)}

/* no theme switch anywhere: top bar button, account menu entry, DJ screens */
html.pro-ctx-airforge #themeBtn,
html.pro-ctx-airforge #afSplashTheme,
html.pro-ctx-airforge [data-act="theme"]{display:none!important}
/* the Classic button, only when the install switched it off (allow_classic = false) */
html.pro-no-classic #classicBtn,
html.pro-no-classic .menu [data-act="classic"]{display:none!important}

/* ---- top bar and left rail ---- */
html.pro-ctx-airforge .top{background:var(--side); color:var(--side-ink); border-bottom:1px solid var(--line)}
html.pro-ctx-airforge .rail{background:var(--side); color:var(--side-ink); border-right:1px solid var(--line)}
html.pro-ctx-airforge .logo i{box-shadow:inset 0 0 0 5px var(--accent),inset 0 0 0 9px #ffffff}
html.pro-ctx-airforge .picker{background:var(--panel2); border-color:var(--line); color:var(--ink)}
html.pro-ctx-airforge .picker:hover{border-color:var(--dim)}
html.pro-ctx-airforge .iconbtn{color:var(--ink)}
html.pro-ctx-airforge .iconbtn:hover{background:var(--side2)}
html.pro-ctx-airforge .iconbtn.classic{border-color:var(--line)}
html.pro-ctx-airforge .st-ok{background:var(--ok-soft); color:#1f7a44}
html.pro-ctx-airforge .st-ok .dot{background:#2f9e5b}
html.pro-ctx-airforge .st-warn{background:var(--warn-soft); color:#7a5300}
html.pro-ctx-airforge .st-warn .dot{background:#e0a100}
html.pro-ctx-airforge .st-bad{background:var(--bad-soft); color:#a3262b}
html.pro-ctx-airforge .st-bad .dot{background:#d63c42}
html.pro-ctx-airforge .rail a.on{background:var(--accent); color:#16203a}
html.pro-ctx-airforge .rail a .c-info{background:#dfe5ff; color:#2338a8}
html.pro-ctx-airforge .bootblock{background:var(--bg)}

/* ---- status bars above the top bar (free trial, offline grace, licence lock): same texts, light colours ---- */
html.pro-ctx-airforge .afbar{color:#7a1416; background:#fde6e6; border-bottom:1px solid #f1bfc1}
html.pro-ctx-airforge .afbar.trial{background:#fde6e6; color:#7a1416}
html.pro-ctx-airforge .afbar.grace{background:#fdf3d6; color:#6b4a00; border-bottom-color:#ecd9a0}
html.pro-ctx-airforge .afbar.lic{background:#fbd5d6; color:#5b1a1a; border-bottom-color:#e9a9ab}
html.pro-ctx-airforge .afbar button{background:#ffffff; color:#7a1416; box-shadow:inset 0 0 0 1px currentColor}

/* ---- dark-on-light pieces: selected chips, selection bar, save bars, toasts, the dark button ---- */
html.pro-ctx-airforge .chip.on{background:var(--accent-soft); color:var(--ink); border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent)}
html.pro-ctx-airforge .btn.dark{background:var(--panel); color:var(--ink); border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink)}
html.pro-ctx-airforge .selbar{background:var(--accent-soft); color:var(--ink); border:1px solid var(--accent); box-shadow:0 4px 14px rgba(22,32,58,.10)}
html.pro-ctx-airforge .selbar .btn{background:var(--panel); color:var(--ink); border-color:var(--line)}
html.pro-ctx-airforge .selbar .btn:hover{border-color:var(--dim)}
html.pro-ctx-airforge .selbar .seldanger{color:var(--bad)}
html.pro-ctx-airforge .savebar,
html.pro-ctx-airforge #dirtybar{background:var(--panel); color:var(--ink); border:1px solid var(--accent); box-shadow:0 0 0 3px var(--accent-soft),0 8px 24px rgba(22,32,58,.16)}
html.pro-ctx-airforge .btn.ghostinv{background:var(--panel); color:var(--ink); border-color:var(--line)}
html.pro-ctx-airforge .toast{background:var(--panel); color:var(--ink); border:1px solid var(--ink); box-shadow:0 8px 24px rgba(22,32,58,.18)}
html.pro-ctx-airforge .toast.err{background:var(--bad-soft); color:#7d1418; border-color:var(--bad)}
html.pro-ctx-airforge .scrim{background:rgba(22,32,58,.28)}
html.pro-ctx-airforge .phonepv{border-color:var(--line)}
html.pro-ctx-airforge .swatch.on{border-color:var(--ink)}

/* ---- big navy panels: Now Playing (On Air), the On Air strip, the DJ deck ---- */
html.pro-ctx-airforge .np,
html.pro-ctx-airforge .ax-now,
html.pro-ctx-airforge .bo-deck{background:linear-gradient(135deg,#ffffff 0%,#fdf6e8 60%,#fbecd2 100%); color:var(--ink); border:1px solid var(--line)}
html.pro-ctx-airforge .ax-now.ax-off{background:var(--panel2)}

/* ---- the DJ header bar ---- */
html.pro-ctx-airforge .djh{background:var(--side); color:var(--side-ink); border-bottom:1px solid var(--line)}
html.pro-ctx-airforge .djh .btn{background:var(--panel); border-color:var(--line); color:var(--ink)}
html.pro-ctx-airforge .djh .btn.dangerfill{background:var(--bad); border-color:var(--bad); color:#fff}
html.pro-ctx-airforge .djh .seg{background:var(--side2); border-color:var(--line)}
html.pro-ctx-airforge .djh .inp{background:var(--panel); border-color:var(--line); color:var(--ink)}

/* native controls and scrollbars */
html.pro-ctx-airforge input, html.pro-ctx-airforge select, html.pro-ctx-airforge textarea{color-scheme:light}

/* children of the three panels above: the light text they carried becomes dark text */
html.pro-ctx-airforge .np .eyebrow, html.pro-ctx-airforge .np .dim,
html.pro-ctx-airforge .ax-l1 .eyebrow, html.pro-ctx-airforge .ax-next .eyebrow, html.pro-ctx-airforge .ax-next .dim,
html.pro-ctx-airforge .bo-deck .eyebrow, html.pro-ctx-airforge .bo-deck .dim,
html.pro-ctx-airforge .np-intro span{color:var(--dim)}
html.pro-ctx-airforge .np-t, html.pro-ctx-airforge .np .big2, html.pro-ctx-airforge .np-intro b,
html.pro-ctx-airforge .ax-t, html.pro-ctx-airforge .ax-nt, html.pro-ctx-airforge .ax-next .eyebrow b,
html.pro-ctx-airforge .bo-song b, html.pro-ctx-airforge .bo-mic b{color:var(--ink)}
html.pro-ctx-airforge .np-a, html.pro-ctx-airforge .ax-a{color:#414b68}
html.pro-ctx-airforge .np .tag, html.pro-ctx-airforge .ax-now .tag{background:rgba(22,32,58,.08)!important; color:var(--ink)!important}
html.pro-ctx-airforge .np .btn.ghost2{color:var(--ink)}
html.pro-ctx-airforge .np .btn.ghost2:hover{border-color:var(--dim)}
html.pro-ctx-airforge .np-intro{background:#ffffff; border-color:var(--line)}
html.pro-ctx-airforge .np-intro.on{background:var(--accent-soft); border-color:var(--accent)}
html.pro-ctx-airforge .np-intro.on b{color:var(--accent-ink)}
html.pro-ctx-airforge .np-intro.hot{background:#e8a33d; border-color:#e8a33d}
html.pro-ctx-airforge .np-intro.hot b, html.pro-ctx-airforge .np-intro.hot span{color:#16203a}
html.pro-ctx-airforge .np-intro.end{background:var(--bad-soft); border-color:var(--bad)}
html.pro-ctx-airforge .np-intro.end b{color:#a3262b}
html.pro-ctx-airforge .np-track{background:rgba(22,32,58,.12)}
html.pro-ctx-airforge .np-track i{background:linear-gradient(90deg,#e8a33d,#f0bb62)}
html.pro-ctx-airforge .np-track .mk{background:#8a5500}
html.pro-ctx-airforge .np-track .mk.out{background:#d63c42}
html.pro-ctx-airforge .np .warn2, html.pro-ctx-airforge .ax-rem{color:var(--accent-ink)}
html.pro-ctx-airforge .ax-next{border-left-color:var(--line)}
html.pro-ctx-airforge .bo-song, html.pro-ctx-airforge .bo-mic{background:#ffffff; border-color:var(--line)}
html.pro-ctx-airforge .bo-mic.rec .eyebrow{color:#c22f35}
html.pro-ctx-airforge .lvhero{background:linear-gradient(135deg,#ffffff,#fde9f1); color:var(--ink); border:1px solid #f3c6d8}
html.pro-ctx-airforge .lvhero .dim, html.pro-ctx-airforge .lvhero .eyebrow{color:#9b2c5b}
html.pro-ctx-airforge .qr{background:conic-gradient(#5b6480 25%,transparent 0 50%,#5b6480 0 75%,transparent 0) 0 0/16px 16px}

/* ---- DJ screens: the studio has its own light / dark switch (afStudioTheme). It is pinned to light
        (frame_inject.php) and the switch is hidden. The pieces that were dark in the light studio too: ---- */
html.pro-ctx-airforge [data-act="lvtheme"]{display:none!important}
html.pro-ctx-airforge #a11y-btn{background:#ffffff; color:#0b3d2e; border-color:#0b3d2e}
html.pro-ctx-airforge #a11y-btn[aria-pressed="true"]{background:#ffd24a; color:#111; border-color:#111}
html.pro-ctx-airforge .lvb-now{background:#ffffff; color:#16203a; box-shadow:inset 0 0 0 1px #e2dcd0}
html.pro-ctx-airforge .lvb-now.live{background:#fdeceb; box-shadow:inset 0 0 0 1px #f1bfc1}
html.pro-ctx-airforge .lvb-lbl{color:#5b6480}
html.pro-ctx-airforge .lvb-now.live .lvb-lbl{color:#a3262b}
html.pro-ctx-airforge .lvb-prog{background:rgba(22,32,58,.12)}
html.pro-ctx-airforge .lvb-prog i{background:#2f9e5b}
html.pro-ctx-airforge .lvb-now.live .lvb-prog i{background:#d63c42}
html.pro-ctx-airforge .lvb-prog b{background:#16203a}
html.pro-ctx-airforge .lvb4 .lvb-c{background:#faf8f3}
html.pro-ctx-airforge .lvb4 .lvb-a{color:#5b6480}
html.pro-ctx-airforge .lvb4 .lvb-post{background:#ffe08a; color:#3a2400}
html.pro-ctx-airforge .lvb4 .lvb-post.run{background:#f5a623}
html.pro-ctx-airforge .lvb4 .lvb-post.hot{background:#fbd5d6; color:#7d1418; box-shadow:inset 0 0 0 2px #d92b2b}
html.pro-ctx-airforge .lvb4 .lvb-post.hot .lvb-pl{color:#7d1418}
html.pro-ctx-airforge .lvb4 .lvb-post.hot .lvb-pm i{background:#d92b2b}
html.pro-ctx-airforge .lvb4 .lvb-pm i{background:#8a5500}
html.pro-ctx-airforge .lv-wait{background:#fdf1d8; color:#92600e; border-color:#f3d79a}
html.pro-ctx-airforge .st-brk.lv-soon{background:#fdf3d6; color:#6b4e12}
html.pro-ctx-airforge .st-brk.lv-over2{background:#fde6e6; color:#7f1d1d; border-color:#ef4444}
html.pro-ctx-airforge .lv-badge{background:#e6ebfd; color:#1e3a5f}
html.pro-ctx-airforge .lv-badge.host{background:#fde6e6; color:#a3262b}

/* =====================================================================================================
   PART 2. WebForge console (new shell appadmin.html, appadmin-classic.html, appadmin-basic.html)
   ===================================================================================================== */

/* The light colour set of the WebForge console (its own :root block), pinned whatever data-theme says,
   with the navy top bar and rail turned light through the same variables. The classic and basic consoles
   use the same variable names with dark defaults, so they turn light with it. */
html.pro-ctx-webforge:root,
html.pro-ctx-webforge:root[data-theme]{
  --bg:#f4f1ea; --bg2:#ffffff; --bg3:#faf8f3; --bg4:#d9d2c2; --bg5:#cfc7b6;
  --border:#e2dcd0; --border2:#c9c1ae;
  --text:#16203a; --text2:#414b68; --text3:#5b6480;
  --accent:#e8a33d; --accent2:#8a5500; --accent-grad:linear-gradient(#e8a33d,#e8a33d);
  --rose:#d63c42; --emerald:#2f9e5b; --amber:#b07800; --sky:#2e50e6;
  --shadow:0 1px 2px rgba(22,32,58,.06),0 4px 14px rgba(22,32,58,.06);
  --side:#ffffff; --side2:#f4f1ea; --side-ink:#16203a; --side-dim:#5b6480; --side-line:#e2dcd0;
  --on-accent:#16203a; --accent-soft:#fdf0d9;
  --ok-soft:#e3f5ea; --warn-soft:#fdf3d6; --bad-soft:#fde6e6; --info-soft:#e6ebfd; --off-soft:#efeae0;
  color-scheme:light;
}
html.pro-ctx-webforge body{background:var(--bg); color:var(--text)}
html.pro-ctx-webforge #wfTheme{display:none!important}
html.pro-ctx-webforge select, html.pro-ctx-webforge input, html.pro-ctx-webforge textarea{color-scheme:light}
html.pro-ctx-webforge select option, html.pro-ctx-webforge select optgroup{background:#ffffff; color:#16203a}
html.pro-ctx-webforge select option:checked{background:#e8a33d; color:#16203a}
html.pro-ctx-webforge ::-webkit-scrollbar-thumb{background:#c9c1ae}

/* ---- new shell: top bar and rail ---- */
html.pro-ctx-webforge .wf-top{border-bottom:1px solid var(--border)}
html.pro-ctx-webforge .wf-rail{border-right:1px solid var(--border)}
html.pro-ctx-webforge .wf-logo i{box-shadow:inset 0 0 0 5px var(--accent),inset 0 0 0 9px #ffffff}
html.pro-ctx-webforge .wf-pill{background:var(--ok-soft); color:#1f7a44}
html.pro-ctx-webforge .wf-pill .dot{background:#2f9e5b}
html.pro-ctx-webforge .wf-pill.warn{background:var(--warn-soft); color:#7a5300}
html.pro-ctx-webforge .wf-pill.warn .dot{background:#e0a100}
html.pro-ctx-webforge .wf-top .preview-btn:hover,
html.pro-ctx-webforge .wf-top .logout-btn:hover,
html.pro-ctx-webforge .wf-ib:hover,
html.pro-ctx-webforge .wf-top .admin-right button:hover{background:var(--side2); color:var(--text); border-color:var(--text3)}

/* ---- save bar, backdrops ---- */
html.pro-ctx-webforge .save-bar{background:#ffffff; border:1px solid var(--accent); backdrop-filter:none;
  box-shadow:0 0 0 3px var(--accent-soft),0 8px 24px rgba(22,32,58,.16)}
html.pro-ctx-webforge .save-bar .info .ttl{color:var(--text)}
html.pro-ctx-webforge .save-bar .info .sub{color:var(--text3)}
html.pro-ctx-webforge .save-bar .save-discard{color:var(--text); border-color:var(--border2)}
html.pro-ctx-webforge .modal-bg,
html.pro-ctx-webforge .wf-scrim{background:rgba(22,32,58,.28); backdrop-filter:none}
html.pro-ctx-webforge .cc-wrap{background:rgba(244,241,234,.96)}

/* ---- pieces that carry a dark colour inline (widget preview frame, report frame) ---- */
html.pro-ctx-webforge div[style*="background:#0a0a14"],
html.pro-ctx-webforge iframe[style*="background:#0a0a14"],
html.pro-ctx-webforge iframe[style*="background:#0b0e17"]{background:#ffffff!important}

/* ---- classic and basic consoles: their sheet hard-codes white text for a dark page ---- */
html.pro-ctx-webforge input[type=text], html.pro-ctx-webforge input[type=email], html.pro-ctx-webforge input[type=password],
html.pro-ctx-webforge input[type=number], html.pro-ctx-webforge input[type=url], html.pro-ctx-webforge input[type=tel],
html.pro-ctx-webforge input[type=search], html.pro-ctx-webforge input[type=time], html.pro-ctx-webforge input[type=date],
html.pro-ctx-webforge input[type=datetime-local], html.pro-ctx-webforge input:not([type]),
html.pro-ctx-webforge textarea, html.pro-ctx-webforge select{color:var(--text); background-color:var(--bg2); border-color:var(--border2)}
html.pro-ctx-webforge input::placeholder, html.pro-ctx-webforge textarea::placeholder{color:var(--text3)!important; opacity:.75}
html.pro-ctx-webforge .nav-row input[type=text], html.pro-ctx-webforge .nav-row select,
html.pro-ctx-webforge .preroll-current .pc-meta strong, html.pro-ctx-webforge .preroll-row .pr-title,
html.pro-ctx-webforge .preroll-upload input, html.pro-ctx-webforge .preroll-type-select,
html.pro-ctx-webforge .preroll-input, html.pro-ctx-webforge .preroll-textarea,
html.pro-ctx-webforge .invoice-form select, html.pro-ctx-webforge .invoice-form input[type=date],
html.pro-ctx-webforge .login-card input, html.pro-ctx-webforge .fu input[type=text]{color:var(--text)}
html.pro-ctx-webforge .admin-header, html.pro-ctx-webforge .admin-tabs{background:var(--bg2); backdrop-filter:none}

/* Lead ruling K.7: updates arrive as a whole AirForge Pro release. AirForge's own "install automatically" switch and
   its "Install now" / "Schedule" buttons are not offered (the server refuses them too, pro/bridge/airforge_hook.php). */
html.pro-ctx-airforge .togrow:has(input[data-act="siupdoptin"]),
html.pro-ctx-airforge [data-act="updnow"], html.pro-ctx-airforge [data-act="updsched"]{display:none !important}

/* Lead ruling K.8: the station chooser of the console shows no company name in AirForge Pro (the release number stays). */
html.pro .afsplash .ssh-by, html.pro .afsplash .station-splash-foot .ssf-copy:not(#afSplashRel){display:none !important}
