/* Tomorrowish XENEON EDGE demo and setup pages (tomorrowish.dev/widgets/<name>/). Loads after /shared/tw.css and /shared/tool.css.
   The dark screen (.screen, .slot) is the product: its colours stay. Everything around it uses the shared tokens. */
:root { --desk:#0d0e10; }
body.demo-page { --page-w:1320px; }

.top { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:.75rem 1.5rem; padding:44px 0 22px; }
.top .tool-hero { padding:0; }
.top .tool-hero h1 { margin-bottom:.2em; }
.buy { display:flex; align-items:center; gap:.9rem; flex-wrap:wrap; }
.price { font-weight:650; font-size:1.15rem; }
.get.soon, .get.soon:hover { cursor:default; background:transparent; color:var(--mut); border-color:var(--line2); }

.demo { display:grid; grid-template-columns:minmax(0, 1fr); gap:1.25rem; align-items:start; }
@media (min-width: 1100px) { .demo { grid-template-columns:minmax(0, 1fr) 21rem; } }
.desk { background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:clamp(.6rem, 2vw, 1.1rem); min-width:0; }
.screen { background:var(--desk); border-radius:12px; padding:clamp(.6rem, 2vw, 1.4rem); color:#c9cbd1; }
.stage { display:flex; justify-content:center; align-items:center; min-height:9rem; width:100%; }
.slot { position:relative; overflow:hidden; background:#000; border-radius:6px; box-shadow:0 0 0 6px #1c1d21, 0 0 0 7px #2b2c31, 0 10px 30px rgba(0,0,0,.55); }
.slot iframe { position:absolute; left:0; top:0; border:0; transform-origin:0 0; background:#000; display:block; }
.slot::after { content:"Starting\2026"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:.9rem; color:#777a82; pointer-events:none; transition:opacity .3s; }
.slot.on::after { opacity:0; }
.under { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.6rem 1rem; margin-top:1rem; }
.desk .caption { font-size:.85rem; color:var(--mut); margin:0; }
.desk > .caption { margin-top:.7rem; }
.sizes { display:flex; flex-wrap:wrap; gap:.5rem; }

/* size and orientation buttons, and the settings' tab buttons: same look as the shared .seg group */
.seg { display:inline-flex; flex-wrap:wrap; gap:3px; padding:3px; border:1px solid var(--line2); border-radius:10px; background:var(--sub); }
.seg button { font-size:.88rem; padding:5px 12px; min-height:34px; border:0; border-radius:7px; background:transparent; color:var(--mut); }
.seg button:hover { background:var(--tag); color:var(--fg); }
.seg button[aria-pressed="true"], .seg button[aria-checked="true"] { background:var(--card); color:var(--fg); box-shadow:0 0 0 1px var(--line2); }

/* the settings column imitates iCUE's panel */
.settings { background:var(--card); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); padding:1rem 1.1rem 1.1rem; }
.settings h2 { font-size:1.05rem; margin:0 0 .2rem; }
.settings .muted { margin:0 0 .6rem; }
.group { border:0; border-top:1px solid var(--line); border-radius:0; margin:.6rem 0 0; padding:.7rem 0 0; min-width:0; }
.group legend { font-weight:650; font-size:.92rem; padding:0; float:left; width:100%; margin-bottom:.35rem; }
.group > *:not(legend) { clear:both; }
.set { margin:.45rem 0; font-size:.92rem; }
.set label, .set .lab { display:block; }
.set-switch { display:flex; align-items:center; gap:.55rem; }
.set-switch label { display:inline; }
.set-switch input { width:1.15rem; height:1.15rem; accent-color:var(--acc); margin:0; }
.set-head { display:flex; justify-content:space-between; gap:.5rem; }
.set output { color:var(--mut); font-variant-numeric:tabular-nums; }
.set input[type=range] { width:100%; accent-color:var(--acc); margin:.25rem 0 0; }
.set select, .set input[type=text] { font-size:.92rem; min-height:38px; padding:6px 10px; margin-top:.2rem; }
.set-color { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.set.set-color input[type=color]:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]) { width:2.6rem; min-height:0; height:1.9rem; padding:1px; border-radius:6px; margin:0; background:transparent; }
.set-tabs .seg { margin-top:.25rem; }
.info { font-size:.84rem; color:var(--mut); margin:.4rem 0 0; }
.sim { background:color-mix(in srgb, var(--acc) 9%, transparent); border-radius:10px; padding:.6rem .7rem .7rem; border-top:0; }
.sim .info { color:var(--fg); font-weight:550; }
.settings .reset { margin-top:.9rem; min-height:36px; font-size:.88rem; padding:6px 14px; background:var(--card); color:var(--fg); border-color:var(--line2); }
.settings .reset:hover { background:var(--sub); border-color:var(--mut); }

.about { max-width:48rem; margin:2.2rem 0 0; }
.about h2 { font-size:1.15rem; margin:2rem 0 .5rem; }
.about li { margin:.35rem 0; }
.about .muted, .muted { color:var(--mut); font-size:.92rem; }
.more { margin-top:2rem; display:flex; flex-wrap:wrap; gap:.6rem 1.2rem; font-size:.95rem; }
footer.site .fine { max-width:48rem; }
footer.site .fine p { margin:.4rem 0; }
.prose h3 { margin-top:1.4rem; }
.prose li { margin:.35rem 0; }
.prose .table-wrap { max-width:30rem; }
