:root { --b: #f4f2ee; --c: #fff; --t: #1b2433; --m: #5c6676; --l: #d9d5cc; --p: #14263f; --pt: #fff; --a: #b8401b; --ok: #1c6b45; --sel: #fdeee7; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --b: #12161d; --c: #1b212b; --t: #eef1f6; --m: #a0a9b8; --l: #333c4a; --p: #f0b54a; --pt: #1b1300; --a: #ff9a73; --ok: #77d6a5; --sel: #33241d; color-scheme: dark; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--b); color: var(--t); font: 15px/1.5 'Inter', system-ui, sans-serif; }
header { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--c); border-bottom: 1px solid var(--l); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: inherit; text-decoration: none; }
#credits { margin-left: auto; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 40px; }
button, select, input, textarea { font: inherit; color: inherit; border: 1px solid var(--l); border-radius: 8px; background: var(--c); padding: 8px 12px; }
button { cursor: pointer; } button:hover { border-color: var(--m); } button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--p); color: var(--pt); border-color: var(--p); font-weight: 600; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
input, select, textarea { width: 100%; } textarea { resize: vertical; } input[type=checkbox] { width: auto; }
label { display: block; font-size: 13px; color: var(--m); } label > :is(input, select, textarea) { margin-top: 4px; color: var(--t); font-size: 15px; }
.muted { color: var(--m); font-size: 13px; } .err { color: var(--a); }
.titlebar { display: flex; gap: 10px; } #title { font-size: 20px; font-weight: 700; }
#steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
#steps button[aria-current] { background: var(--p); color: var(--pt); border-color: var(--p); font-weight: 600; }
#status { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--sel); border: 1px solid var(--l); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.card { background: var(--c); border: 1px solid var(--l); border-radius: 12px; padding: 16px; } .stack { display: flex; flex-direction: column; gap: 14px; }
h2 { font-size: 16px; margin: 0 0 8px; } p { margin: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .styles button { padding: 0; overflow: hidden; } .styles button[aria-pressed=true] { outline: 3px solid var(--a); }
.styles .sw { height: 54px; display: grid; place-items: center; font-weight: 700; background: var(--bg); color: var(--ink); font-family: var(--dfont); } .styles .sw b { color: var(--ac); } .styles small { display: block; padding: 4px; color: var(--m); }
.view { position: relative; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #000; } .view > .studio { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.ghost { position: absolute; z-index: 300; display: grid; place-items: center; background: rgba(120, 130, 150, .35); border-radius: 300px 300px 0 0; font: 600 34px Inter; color: #fff; }
.line { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--l); width: 100%; } .line:first-of-type { border-top: 0; } .line .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
button.line { border-width: 1px 0 0; border-radius: 0; background: none; text-align: left; padding: 8px 4px; } button.line.sel { background: var(--sel); }
video { display: block; max-width: 100%; max-height: 560px; margin: 0 auto; border-radius: 12px; background: #000; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } .thumbs img { width: 100%; max-height: 480px; object-fit: contain; border-radius: 10px; }
.avs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; } .avs button { padding: 0; overflow: hidden; font-size: 12px; } .avs img { width: 100%; height: 110px; object-fit: cover; display: block; } .avs button[aria-pressed=true] { outline: 3px solid var(--a); }
@media (max-width: 860px) { .grid, .two { grid-template-columns: minmax(0, 1fr); } header { flex-wrap: wrap; padding: 10px 14px; } main { padding: 14px; } #steps { grid-template-columns: repeat(2, 1fr); } .avs { grid-template-columns: repeat(3, 1fr); } }
a.btn { display: inline-block; border: 1px solid var(--l); border-radius: 8px; padding: 8px 12px; color: inherit; text-decoration: none; background: var(--c); }
.login { max-width: 340px; margin: 12vh auto 0; } .login h1 { margin: 0; font-size: 22px; }
@media (pointer: coarse), (max-width: 860px) { button, select, input:not([type=range]), textarea, a.btn { min-height: 44px; font-size: 16px; } label > :is(input, select, textarea) { font-size: 16px; } button.line { min-height: 48px; } }
@media (max-width: 860px) {
  header { gap: 8px; padding: 8px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); } #credits { order: 5; width: 100%; margin: 0; line-height: 1; } header .brand { font-size: 0; gap: 0; } header button { padding: 6px 12px; } header #new-btn { margin-left: auto; order: 1; } header #history-btn { order: 2; } header #logout-btn { order: 3; }
  main { padding-bottom: calc(40px + env(safe-area-inset-bottom)); } #steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } #steps button { padding: 4px 2px; font-size: 12px; overflow: hidden; } .titlebar { flex-wrap: wrap; } #title { flex: 1 1 180px; min-width: 0; }
  .grid > .stack:nth-child(2) { order: -1; } .login { margin: 10vh 16px 0; } .avs img { height: 90px; } .line { flex-wrap: wrap; } .line .grow { flex: 1 1 100%; } .line:has(> button) .grow { flex: 1 1 60%; } video { max-height: 60vh; } .vtabs { display: flex; gap: 4px; } .vtabs button { flex: 1; padding: 4px; } .vtabs button[aria-current] { background: var(--sel); border-color: var(--a); font-weight: 600; } .stack { gap: 10px; } .card { padding: 12px; }
}
