html[data-theme=light]{--bg:#ffffff;--card:#f5f3ff;--line:#c7d2fe;--txt:#1e1b4b;--mut:#5b5f8a;--a:#a21caf;--b:#0891b2}
html[data-theme=light],html[data-theme=light] body{background:#fff!important;color:#1e1b4b!important}
html[data-theme=light] body::before,html[data-theme=light] body::after{opacity:.10!important}
html[data-theme=light] .card,html[data-theme=light] .tool{background:linear-gradient(180deg,#eeedff,#e6ebff)!important;border:1px solid #c7d2fe!important;box-shadow:0 10px 30px #6366f114!important;backdrop-filter:none!important}
html[data-theme=light] .tool h2,html[data-theme=light] h1{color:#1e1b4b!important}
html[data-theme=light] .tool p,html[data-theme=light] .sub,html[data-theme=light] .mut,html[data-theme=light] footer{color:#5b5f8a!important}
html[data-theme=light] .pill{background:#dfe1ff!important;color:#4338ca!important;border-color:#c7d2fe!important}
html[data-theme=light] .tabs a,html[data-theme=light] .ocn .tabs a{color:#5b5f8a!important}
html[data-theme=light] .tabs a.on,html[data-theme=light] .ocn .tabs a.on{color:#1e1b4b!important;background:#dfe1ff!important;border-color:#c7d2fe!important}
html[data-theme=light] .tabs a.back,html[data-theme=light] .ocn .tabs a.back{color:#0e7490!important;background:#ecfeff!important;border-color:#67e8f9!important}
html[data-theme=light] .logo,html[data-theme=light] .logo .t,html[data-theme=light] .ocn a.logo{color:#1e1b4b!important}
html[data-theme=light] .logo small,html[data-theme=light] .ocn .logo small{color:#0891b2!important}
html[data-theme=light] .drop{background:#dfe1ff!important;border-color:#98a4f0!important}
html[data-theme=light] .drop b{color:#1e1b4b!important}
html[data-theme=light] .drop span.s{color:#5b5f8a!important}
html[data-theme=light] .drop:hover,html[data-theme=light] .drop.over{background:#d3f4ff!important}
html[data-theme=light] .out,html[data-theme=light] textarea.out{background:#dfe1ff!important;color:#1e1b4b!important;border-color:#c7d2fe!important}
html[data-theme=light] .btn.ghost{background:#dfe1ff!important;color:#4338ca!important;border:1px solid #c7d2fe!important}
html[data-theme=light] .or{color:#5b5f8a!important}
html[data-theme=light] .seg button{color:#5b5f8a}
html[data-theme=light] .seg button.on{background:#eef2ff;color:#1e1b4b}
/* Prompt Studio app: invert its dark UI into light */
html[data-theme=light] #root{filter:invert(1) hue-rotate(180deg)}
html[data-theme=light] #root img,html[data-theme=light] #root video,html[data-theme=light] #root canvas{filter:invert(1) hue-rotate(180deg)}
html[data-theme=light] #root main h1{background:linear-gradient(90deg,#1e1b4b 30%,#0891b2 65%,#a21caf)!important;-webkit-background-clip:text!important;background-clip:text!important;filter:invert(1) hue-rotate(180deg)}
html[data-theme=light]{color-scheme:light}html[data-theme=dark]{color-scheme:dark}
html[data-theme=light]{scrollbar-color:#a5b4fc #f5f3ff}
html[data-theme=light]::-webkit-scrollbar,html[data-theme=light] ::-webkit-scrollbar{background:#f5f3ff}
html[data-theme=light]::-webkit-scrollbar-track,html[data-theme=light] ::-webkit-scrollbar-track{background:#f5f3ff}
html[data-theme=light]::-webkit-scrollbar-thumb,html[data-theme=light] ::-webkit-scrollbar-thumb{background:#a5b4fc;border-radius:8px}

.thm{direction:ltr;display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:2px 4px;cursor:pointer;flex:none;font:inherit;color:inherit}
.thm .lb{font-size:13px;font-weight:600;color:#8b8fb5;transition:color .2s,font-weight .2s}
html[data-theme=light] .thm .l1{color:#1e1b4b;font-weight:800}
html[data-theme=dark] .thm .l2{color:#fff;font-weight:800}
.thm .trk{position:relative;width:56px;height:30px;border-radius:99px;background:#2f2d63;box-shadow:inset 0 2px 5px #0006,0 4px 12px #4f46e533;transition:background .25s,box-shadow .25s;display:block}
.thm .knob{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#a5e4ff,#6aa9f5);display:flex;align-items:center;justify-content:center;transition:transform .25s cubic-bezier(.4,.1,.2,1),box-shadow .25s;box-shadow:0 2px 6px #0005}
.thm .knob svg{position:absolute;transition:opacity .2s}
.thm .moon{opacity:0}.thm .sun{opacity:1}
html[data-theme=dark] .thm .trk{background:#12123a;box-shadow:inset 0 2px 5px #000a,0 0 14px #22d3ee44}
html[data-theme=dark] .thm .knob{transform:translateX(26px);box-shadow:0 0 14px #22d3eeaa}
html[data-theme=dark] .thm .sun{opacity:0}html[data-theme=dark] .thm .moon{opacity:1}
.thm:focus-visible .trk{outline:2px solid #22d3ee;outline-offset:2px}
html[data-theme=light]{color-scheme:light}html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark] .thm .trk{border:1px solid #6d74d9aa;background:#1a1b4d}
