/* Depthwave.exe - Windows XP "Luna" skin, matching ImagineFX. Same DOM and ids as the dark build. */
:root {
  --face: #ece9d8;
  --edge: #919b9c;
  --field: #7f9db9;
  --sel: #316ac5;
  --sel-soft: #c1d2ee;
  --xp-blue: #0054e3;
  --pane: #d6dff7;
  --green: #21a121;
  --ui: Tahoma, "Segoe UI", Geneva, Verdana, sans-serif;
  --xp: "Trebuchet MS", Tahoma, sans-serif;
  --mono: "Lucida Console", Consolas, "Courier New", monospace;
  --btn: linear-gradient(180deg, #fff, #ecebe6 86%, #d6d0c5);
  --btn-down: linear-gradient(180deg, #cdcac3, #e3e3db 8%, #e5e5de 94%, #f2f2f1);
  --btn-hover: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 12px/1.35 var(--ui); color: #000; background: #245edb; overflow: hidden; }
.mono { font-family: var(--mono); }
.dim { color: #6d6c60; }
.hidden { display: none !important; }
.spacer { flex: 1; }
button { font: inherit; color: inherit; }

/* ---------- desktop + window ---------- */
.desktop {
  position: fixed; inset: 0 0 30px 0; padding: 10px;
  background:
    radial-gradient(ellipse 28% 10% at 20% 20%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(ellipse 20% 8% at 68% 12%, rgba(255,255,255,.8), transparent 70%),
    radial-gradient(ellipse 24% 9% at 88% 36%, rgba(255,255,255,.65), transparent 70%),
    radial-gradient(ellipse 140% 55% at 35% 118%, #7cc242 0, #4e9a2a 50%, #3b8a1f 55%, transparent 55.5%),
    linear-gradient(#245fdc, #5e9cf0 55%, #a9cdf6);
}
.window {
  height: 100%; display: flex; flex-direction: column;
  background: var(--face); border: 3px solid var(--xp-blue); border-top: 0; border-radius: 8px 8px 0 0;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .35); overflow: hidden;
}
.titlebar {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  height: 30px; margin: 0 -3px; padding: 0 5px 0 8px; color: #fff; user-select: none;
  background: linear-gradient(180deg, #0997ff, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7);
  border-radius: 8px 8px 0 0;
}
.titlebar .title { display: flex; align-items: center; gap: 8px; font: bold 13px var(--xp); text-shadow: 1px 1px #0f1089; }
.titlebar small { font-weight: normal; opacity: .85; font-size: 11px; }
.orb { width: 16px; height: 16px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, #ffd6b5, #ff1f4a 30%, #b81ce0 55%, #3424ff 75%, #04010c 100%); box-shadow: 0 0 0 1px #ffffff88, 0 0 10px #ff3d7f88; animation: orb 8s linear infinite; }
@keyframes orb { to { filter: hue-rotate(360deg); } }
.tb-btns { display: flex; gap: 2px; }
.tb-btns button {
  width: 21px; height: 21px; padding: 0; border: 1px solid #fff; border-radius: 3px; font: bold 12px/1 var(--ui); color: #fff; cursor: default;
  background: radial-gradient(circle at 90% 90%, #0054e9, #2263d5 55%, #4479e4 70%, #a3bbec 90%, #fff);
}
.tb-btns button.close { background: radial-gradient(circle at 90% 90%, #cc4600, #dc6527 55%, #cd7546 70%, #ffccb2 90%, #fff); }

/* ---------- buttons + fields ---------- */
.btn {
  font: 12px var(--ui); color: #000; background: var(--btn); border: 1px solid #003c74; border-radius: 3px;
  padding: 3px 10px; min-height: 23px; cursor: pointer; white-space: nowrap;
}
.btn:hover:not(:disabled) { box-shadow: var(--btn-hover); }
.btn:active:not(:disabled) { background: var(--btn-down); box-shadow: none; }
.btn:disabled { color: #a0a094; border-color: #c9c7ba; background: #f4f3ee; cursor: default; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.btn.primary { font-weight: bold; box-shadow: inset 0 0 0 2px #98b8ea; }
.btn.primary:hover:not(:disabled) { box-shadow: var(--btn-hover); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--btn); border-color: #ceceC3; box-shadow: none; }
.btn.icon { width: 30px; padding: 0; display: grid; place-items: center; }
.btn.small { padding: 1px 8px; min-height: 20px; font-size: 11px; }
.wide-btn { width: 100%; margin-top: 10px; }
.caret { margin-left: 8px; font-size: 9px; }
.pill {
  font-size: 11px; padding: 2px 8px; border: 1px solid; border-color: #848484 #fff #fff #848484; background: #f6f5ee; color: #444; white-space: nowrap;
}
.pill.ok { color: #0a6a0a; } .pill.warn { color: #9a5200; }

input[type=text], select { font: 12px var(--ui); border: 1px solid var(--field); background: #fff; padding: 2px 4px; min-height: 22px; border-radius: 0; color: #000; }
select.mini { font-size: 11px; padding: 1px 3px; min-height: 22px; }
select.mini.wide { flex: 1; }
input[type=color] { width: 40px; height: 22px; padding: 1px; border: 1px solid var(--field); background: #fff; cursor: pointer; }

/* ---------- toolbar ---------- */
.top {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px 6px;
  border-bottom: 1px solid #d5d2c2; box-shadow: 0 1px #fff;
}
.top .btn { border-color: transparent; background: transparent; }
.top .btn:hover:not(:disabled) { border-color: #ceceC3; background: var(--btn); box-shadow: none; }
.top .btn:active:not(:disabled) { border-color: #9d9d92; background: var(--btn-down); }
.top .btn.primary { border-color: #003c74; background: var(--btn); }
.top .btn:disabled { background: transparent; border-color: transparent; }
.top .btn.primary:disabled { border-color: #c9c7ba; background: #f4f3ee; }
.top .live-btn.on { border-color: #b81c1c; color: #b81c1c; background: var(--btn-down); }
.clip-picker { position: relative; }
#clipBtn { max-width: 300px; overflow: hidden; text-overflow: ellipsis; border-color: var(--field); background: #fff; }
.popover {
  position: absolute; top: 28px; left: 0; z-index: 50; width: 380px; max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid #000; box-shadow: 3px 3px 5px rgba(0,0,0,.4); padding: 2px;
}
.pop-head { padding: 4px 8px; font-weight: bold; color: #fff; background: linear-gradient(90deg, #0a246a, #3a6ea5); font-size: 11px; }
.lib-item { display: flex; align-items: center; gap: 10px; padding: 4px 8px; cursor: default; }
.lib-item:hover, .lib-item.on { background: var(--sel); color: #fff; }
.lib-item .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-item .meta { opacity: .7; font-size: 11px; }
.lib-item .del { opacity: 0; border: none; background: none; cursor: pointer; color: inherit; }
.lib-item:hover .del { opacity: 1; }
.lib-empty { padding: 10px; color: #6d6c60; }

/* ---------- layout ---------- */
main { flex: 1; display: flex; gap: 8px; min-height: 0; padding: 8px; }
.stage { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.viewport {
  flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0;
  border: 2px solid; border-color: #848484 #fff #fff #848484; box-shadow: inset 1px 1px #404040;
  background: radial-gradient(ellipse at 50% 40%, #1c2540, #05060c 75%);
}
#canvas { display: block; background: #000; box-shadow: 0 0 0 1px #000, 3px 3px 12px rgba(0,0,0,.6); }
.viewport.split #canvas { cursor: ew-resize; }

.empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 30px; color: #e8eeff; }
.empty h1 { margin: 10px 0 0; font: bold 22px var(--xp); text-shadow: 1px 1px #0f1089; }
.empty p { max-width: 460px; color: #b9c6ea; margin: 0 0 12px; }
.empty-orb { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd6b5, #ff1f4a 30%, #b81ce0 55%, #3424ff 75%, #04010c 100%); box-shadow: 0 0 80px #ff3d7f55, 0 0 140px #4b5bff44; animation: orb 8s linear infinite, float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) scale(1.03); } }
.empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 20, 60, .45); }
.busy-card { width: min(380px, 86%); background: var(--face); border: 3px solid var(--xp-blue); border-top: 0; border-radius: 8px 8px 0 0; box-shadow: 3px 3px 12px rgba(0,0,0,.5); padding-bottom: 14px; text-align: center; overflow: hidden; }
.busy-title {
  height: 26px; line-height: 26px; padding: 0 8px; margin: 0 -3px 14px; text-align: left; color: #fff; font: bold 12px/26px var(--xp); text-shadow: 1px 1px #0f1089;
  background: linear-gradient(180deg, #0997ff, #0053ee 8%, #0050ee 40%, #06f 88%, #003dd7);
}
.busy-card > :not(.busy-title) { margin-left: 16px; margin-right: 16px; }
.busy-msg { margin-top: 10px; margin-bottom: 12px; min-height: 16px; color: #444; font-size: 11px; }
.bar { height: 16px; padding: 2px; border: 1px solid #686868; border-radius: 3px; background: #fff; overflow: hidden; }
.bar > div { height: 100%; width: 0; transition: width .25s; background: repeating-linear-gradient(90deg, transparent 0 1px, #2ec92e 1px 8px, transparent 8px 10px); }
.drop-hint { position: absolute; inset: 10px; border: 2px dashed #ffd36b; display: grid; place-items: center; font: bold 20px var(--xp); color: #fff; background: rgba(255, 211, 107, .12); pointer-events: none; }

/* ---------- transport ---------- */
.transport {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 6px; flex-wrap: wrap;
  border: 1px solid var(--edge); background: linear-gradient(#fff, #ecebe5);
}
.time { font-size: 11px; min-width: 62px; text-align: center; font-variant-numeric: tabular-nums; }
.scrub { flex: 1; }
.transport > input[type=range] { flex: 1; min-width: 100px; }
.seg { display: inline-flex; border: 1px solid #003c74; border-radius: 3px; overflow: hidden; background: var(--btn); }
.seg button { background: var(--btn); border: 0; border-right: 1px solid #9d9c99; padding: 3px 10px; min-height: 21px; cursor: pointer; font-size: 11px; }
.seg button:last-child { border-right: 0; }
.seg button:hover { box-shadow: var(--btn-hover); }
.seg button.on { background: var(--btn-down); font-weight: bold; box-shadow: inset 0 -3px var(--green); }
.seg.wide { flex: 1; } .seg.wide button { flex: 1; }

/* ---------- sliders (green-thumb XP trackbars, filled to the value) ---------- */
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 22px; margin: 0; cursor: pointer; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border: 1px solid #9d9c99; border-radius: 2px; background: linear-gradient(90deg, #8fd88f var(--p), #f0efe9 var(--p)); box-shadow: inset 1px 1px #d4d2c8; }
input[type=range]::-moz-range-track { height: 4px; border: 1px solid #9d9c99; border-radius: 2px; background: #f0efe9; }
input[type=range]::-moz-range-progress { height: 4px; background: #8fd88f; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 21px; margin-top: -9px; border: 1px solid #1c5180; border-radius: 2px 2px 5px 5px;
  background: linear-gradient(180deg, #fff, #f0efea 50%, #dedcd2); box-shadow: inset 0 -3px var(--green);
}
input[type=range]::-moz-range-thumb { width: 9px; height: 19px; border: 1px solid #1c5180; border-radius: 2px 2px 5px 5px; background: linear-gradient(180deg, #fff, #dedcd2); box-shadow: inset 0 -3px var(--green); }
.scrub::-webkit-slider-runnable-track { background: linear-gradient(90deg, #f5a623 var(--p), #f0efe9 var(--p)); }

/* ---------- right panel = XP task pane ---------- */
.panel { width: 372px; flex: none; display: flex; flex-direction: column; min-height: 0; border-radius: 4px; padding: 10px 0 0 10px; background: linear-gradient(180deg, #7ba2e7, #6375d6); }
.panel-scroll { overflow-y: auto; padding: 0 10px 10px 0; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.card, .group { background: var(--pane); border: 1px solid #fff; border-radius: 6px 6px 0 0; position: relative; padding: 0 0 10px; }
.group { padding: 0; margin-bottom: 10px; }
.card > :not(.card-head):not(.menu), .engine > :not(.card-head) { margin-left: 10px; margin-right: 10px; }
.card-head, .group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 5px 10px;
  background: linear-gradient(90deg, #fff, #c6d3f7); border-radius: 5px 5px 0 0; color: #215dc6;
}
.card-head h3 { margin: 0; font: bold 12px var(--ui); color: #215dc6; }
.head-actions { display: flex; gap: 4px; }
.small-t { font-size: 11px; }
.hint { color: #4a5a85; font-size: 11px; margin: 8px 10px 0; }
.hint.foot { text-align: center; line-height: 1.7; padding-bottom: 10px; color: #fff; text-shadow: 1px 1px #0f1089; margin: 0 10px 0 0; }
.empty .hint, .viewport .hint { margin: 0; }

.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.preset { position: relative; border: 1px solid var(--edge); padding: 0; overflow: hidden; cursor: pointer; background: #fff; text-align: left; }
.preset .strip { height: 24px; }
.preset .nm { display: block; padding: 3px 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preset:hover { border-color: #e68b2c; }
.preset.on { border-color: var(--sel); background: var(--sel-soft); box-shadow: 0 0 0 1px var(--sel); }
.preset .x { position: absolute; top: 2px; right: 3px; background: #fffc; border: 1px solid #999; color: #000; cursor: pointer; font-size: 10px; padding: 0 4px; display: none; }
.preset:hover .x { display: block; }
.menu { position: absolute; right: 8px; top: 30px; z-index: 30; background: #fff; border: 1px solid #000; padding: 2px; display: flex; flex-direction: column; box-shadow: 3px 3px 5px rgba(0,0,0,.4); }
.menu button { background: none; border: none; text-align: left; padding: 4px 18px 4px 12px; cursor: default; }
.menu button:hover { background: var(--sel); color: #fff; }

.pal-bar { position: relative; height: 30px; cursor: copy; border: 1px solid #686868; box-shadow: inset 1px 1px #fff, 0 0 0 1px #fff; margin-top: 8px; margin-left: 17px; margin-right: 17px; }
.stop { position: absolute; top: -5px; bottom: -5px; width: 14px; margin-left: -7px; cursor: grab; touch-action: none; }
.stop span { position: absolute; left: 1px; right: 1px; top: 0; bottom: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px #000, 0 1px 4px #0008; }
.stop.sel span { border-color: #ffd36b; box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--sel); }
.stop.removing { opacity: .3; }
.pal-axis { display: flex; justify-content: space-between; font-size: 10px; color: #4a5a85; margin: 6px 17px 0; text-transform: uppercase; }
.pal-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.swatch { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.swatch input { width: 28px; height: 22px; }
.pal-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.pal-swatches button { height: 18px; border: 1px solid #686868; cursor: pointer; padding: 0; }
.pal-swatches button:hover { outline: 2px solid #e68b2c; }

.group-head { margin: 0; cursor: pointer; user-select: none; }
.group-head .ic { width: 18px; text-align: center; color: #e07b00; }
.group-head .t { flex: 1; font: bold 12px var(--ui); }
.group-head .chev { transition: transform .2s; font-size: 10px; }
.group.closed .chev { transform: rotate(-90deg); }
.group.closed .group-body { display: none; }
.group.closed .group-head { border-radius: 5px; }
.group-head .rst { opacity: 0; font-size: 11px; color: #215dc6; background: none; border: none; cursor: pointer; text-decoration: underline; }
.group-head:hover .rst { opacity: 1; }
.group-body { padding: 8px 10px 8px; }
.row { display: flex; align-items: center; gap: 6px; min-height: 28px; }
.row > label:first-child { width: 104px; flex: none; font-size: 12px; cursor: default; user-select: none; }
.row input[type=range] { flex: 1; min-width: 0; }
.row output, .row .num { width: 52px; flex: none; text-align: right; font: 11px var(--mono); color: #000; background: #fff; border: 1px solid var(--field); padding: 1px 4px; }
.row .num:focus { outline: 1px dotted #000; }
.row.modded > label:first-child { color: #c04a00; font-weight: bold; }
.lfo { width: 22px; height: 20px; flex: none; border: 1px solid transparent; background: none; color: #6d7fb0; cursor: pointer; font-size: 13px; padding: 0; line-height: 1; }
.lfo:hover { color: #000; border-color: #9d9d92; background: var(--btn); }
.lfo.on { color: #fff; border-color: #8a5a00; background: #e07b00; }
.lfo-cfg { display: flex; gap: 8px; align-items: center; padding: 2px 0 6px 110px; font-size: 11px; color: #333; }
.lfo-cfg input[type=range] { width: 70px; flex: 1; }
.lfo-cfg select { font-size: 11px; }
.row select.mini { flex: 1; }
.switch { position: relative; width: 16px; height: 16px; flex: none; cursor: pointer; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: #fff; border: 1px solid #1c5180; }
.switch input:checked + span::after { content: '✔'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font-size: 13px; font-weight: bold; }

/* ---------- dialogs ---------- */
.dlg { background: var(--face); color: #000; border: 3px solid var(--xp-blue); border-top: 0; border-radius: 8px 8px 0 0; padding: 0 0 4px; width: 440px; box-shadow: 3px 3px 14px rgba(0,0,0,.5); }
.dlg::backdrop { background: rgba(0, 20, 60, .35); }
.dlg h2 {
  margin: 0 -3px 12px; height: 28px; padding: 0 8px; font: bold 13px/28px var(--xp); color: #fff; text-shadow: 1px 1px #0f1089; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #0997ff, #0053ee 8%, #0050ee 40%, #06f 88%, #06f 93%, #005bff 95%, #003dd7 96%, #003dd7);
}
.dlg form > :not(h2) { margin-left: 14px; margin-right: 14px; }
.dlg .row { margin-bottom: 4px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; margin-bottom: 10px; }
#expProgress { margin-top: 12px; }
.exp-done { margin-top: 12px; padding: 8px 10px; border: 1px solid #686868; background: #ffffe1; display: flex; flex-direction: column; gap: 6px; }
.exp-done a { color: #0033cc; word-break: break-all; }
.exp-done .acts { display: flex; gap: 6px; }

.toast { position: fixed; left: 50%; bottom: 44px; transform: translate(-50%, 20px); background: #ffffe1; border: 1px solid #000; border-radius: 6px; padding: 6px 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; box-shadow: 2px 2px 4px rgba(0,0,0,.3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #ffe1e1; border-color: #a00; color: #700; }

/* ---------- taskbar + start menu ---------- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 30px; display: flex; align-items: center; gap: 6px; z-index: 60;
  background: linear-gradient(180deg, #1f2f86 0, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
}
.start {
  height: 30px; padding: 0 22px 0 12px; border: 0; border-radius: 0 12px 12px 0; cursor: pointer; font: italic bold 18px var(--xp); color: #fff; text-shadow: 1px 1px 2px #1d3a10;
  background: radial-gradient(circle at 10% 50%, #6fd36a, #39a33a 40%, #2d8a2e 80%, #1f6e1f); box-shadow: inset 0 1px 1px #9be796, 2px 0 4px rgba(0,0,0,.4);
}
.start:hover, .start.open { filter: brightness(1.1); }
.task { height: 24px; display: flex; align-items: center; padding: 0 12px; min-width: 170px; color: #fff; font: 11px var(--ui); border-radius: 3px; background: #1e52b7; box-shadow: inset 1px 1px 2px rgba(0,0,0,.5), inset -1px -1px #3c7ef0; }
.tray { margin-left: auto; height: 100%; display: flex; align-items: center; padding: 0 14px; color: #fff; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #0c59b9 1%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0d8dea 63%, #0d9ff1 81%, #0f9eed 88%, #119be9 91%, #1392e2 94%, #137ed7 97%, #095bc9); border-left: 1px solid #1042af; box-shadow: inset 1px 0 #18bbff; }
.startmenu { position: fixed; left: 0; bottom: 30px; z-index: 70; width: 260px; background: #fff; border: 2px solid #0a3fa8; border-bottom: 0; border-radius: 8px 8px 0 0; box-shadow: 3px 0 8px rgba(0,0,0,.4); overflow: hidden; }
.sm-head { padding: 10px 12px; color: #fff; font: bold 14px var(--xp); text-shadow: 1px 1px #0f1089; background: linear-gradient(180deg, #1c5bd6, #3a8af0 50%, #1c5bd6); }
.sm-item { display: grid; grid-template-columns: 22px 1fr; align-items: center; padding: 6px 12px; color: #000; text-decoration: none; font-weight: bold; }
.sm-item small { grid-column: 2; font-weight: normal; opacity: .65; }
.sm-item:hover { background: var(--sel); color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  body { overflow: auto; }
  .desktop { position: static; min-height: calc(100vh - 30px); padding: 6px; }
  .window { height: auto; }
  main { flex-direction: column; }
  .panel { width: 100%; padding: 8px; }
  .stage { min-height: 60vh; }
  .top { overflow-x: auto; }
  .task { display: none; }
}

/* stills vs clips */
body:not(.is-image) .img-only { display: none !important; }
body.is-image .vid-only { display: none !important; }
body.browser-mode .server-only { display: none !important; }
body:not(.browser-mode) .browser-only { display: none !important; }
body:not(.is-live) .live-only { display: none !important; }
body.is-live .no-live { visibility: hidden; }
.live-btn.on { border-color: #b81c1c; color: #b81c1c; }
.rec-btn.rec { background: #d62020; border-color: #7a0000; color: #fff; animation: recpulse 1.2s ease-in-out infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 4px #d6202055; } }

/* the empty canvas should not show as a black box behind the welcome text */
.viewport:has(.empty:not(.hidden)) #canvas { visibility: hidden; }
.dlg { overflow-x: hidden; }
.dlg form > :not(h2) { max-width: calc(100% - 28px); }
.card-head h3 { white-space: nowrap; }
#engineState { text-align: right; min-width: 0; }

/* full-screen window: no desktop backdrop, no taskbar */
.desktop { inset: 0; padding: 0; background: var(--face); }
.window { border: 0; border-radius: 0; box-shadow: none; }
.titlebar { margin: 0; border-radius: 0; }
.toast { bottom: 24px; }
@media (max-width: 900px) { .desktop { min-height: 100vh; padding: 0; } }
