/* The app around the editor: same look as editor/editor.css */
@font-face { font-family: "Inter"; src: url(/shell/inter-var.woff2) format("woff2"); font-weight: 100 900; }

:root {
  --bg: #0D0E11;
  --panel: #14161A;
  --panel-2: #1A1D22;
  --panel-3: #22262D;
  --line: #262A31;
  --line-2: #323741;
  --text: #E8EAED;
  --muted: #8D93A0;
  --accent: #4C8DFF;
  --danger: #F2555A;
  --ok: #3DD68C;
  --bar-h: 36px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 13px/1.45 "Inter", system-ui, sans-serif; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.error { margin: 0; color: var(--danger); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 7px;
  border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 550; color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--panel-3); }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--text); background: var(--panel-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #5E99FF; }
.btn.small { height: 26px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .45; cursor: default; }

.bar { flex: none; display: flex; align-items: center; gap: 12px; height: var(--bar-h); padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); font-weight: 650; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 450; }
.spacer { flex: 1; }
.who { color: var(--muted); }

#studio { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: var(--bg); }

.start { flex: 1; display: grid; place-items: center; padding: 16px; }
.card { display: grid; gap: 12px; width: min(460px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.card h1 { margin: 0; font-size: 19px; }
.card p { margin: 0; }
.card input { height: 38px; width: 100%; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel-2); font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }

.message { flex: 1; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }

.dialog { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; background: var(--panel); color: var(--text); }
.dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dialog h2 { margin: 0 0 6px; font-size: 17px; }
.dialog p { margin: 0 0 14px; }
.dialog .price { color: var(--text); }
.prog { display: grid; gap: 6px; margin-bottom: 14px; }
.prog .top { display: flex; justify-content: space-between; gap: 8px; }
.bar-track { height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
#render-state.done .bar-track i { background: var(--ok); }
#render-video { display: block; width: 100%; max-height: 46vh; margin-bottom: 14px; border-radius: 8px; background: #000; }
.past { display: grid; gap: 4px; margin-bottom: 14px; }
.past h3 { margin: 0 0 2px; font-size: 12px; font-weight: 550; color: var(--muted); }
.past a { color: var(--accent); }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
