:root{
  --bg:#07111f;
  --panel:rgba(255,255,255,.07);
  --panel-border:rgba(255,255,255,.10);
  --text:#fff;
  --muted:rgba(255,255,255,.72);
  --accent:#3f7cff;
  --danger:#ff4b4b;
  --radius:20px;
  --shadow:0 18px 60px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(circle at top right, rgba(63,124,255,.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(124,92,255,.15), transparent 35%),
    linear-gradient(180deg,#06101d 0%, #0a1424 100%);
  color:var(--text);
}
button,input,select{font:inherit}
.app-shell{
  display:grid;
  grid-template-columns:380px 1fr;
  gap:20px;
  min-height:100vh;
  padding:20px;
}
.panel{
  background:var(--panel);
  border:1px solid var(--panel-border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}
.controls{padding:20px}
.workspace{
  display:grid;
  grid-template-rows:1fr 320px;
  gap:20px;
}
.preview-panel,.output-panel{padding:20px}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}
.brand h1{margin:0;font-size:1.4rem}
.brand p{margin:4px 0 0;color:var(--muted)}
.brand-mark{
  width:54px;height:54px;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#3f7cff,#7c5cff);
  font-weight:700;
}
.field,.field-group{margin-bottom:14px}
.field label{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-size:.92rem;
}
.field input[type="text"], .field select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
}
.field input[type="color"]{
  width:100%;
  height:46px;
  border:none;
  background:none;
  padding:0;
}
.field-inline{
  display:grid;
  grid-template-columns:1fr 140px;
  gap:12px;
}
.checkbox-wrap{
  display:flex;
  flex-direction:column;
  justify-content:end;
}
.checkbox-wrap input{
  width:20px;height:20px;
  accent-color:var(--accent);
}
.divider{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:18px 0;
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.actions.stacked{
  flex-direction:column;
  align-items:flex-start;
}
button{
  border:none;
  border-radius:14px;
  padding:12px 16px;
  cursor:pointer;
  background:rgba(255,255,255,.12);
  color:var(--text);
}
button.primary{
  background:linear-gradient(135deg,#3f7cff,#7c5cff);
}
.status{
  margin:0;
  color:var(--muted);
  font-size:.92rem;
}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.section-head h2{margin:0;font-size:1.1rem}
.section-head p{margin:0;color:var(--muted)}
.preview{
  border-radius:18px;
  background:#02060c;
  min-height:420px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.yaml-output{
  margin:0;
  height:230px;
  overflow:auto;
  padding:16px;
  border-radius:16px;
  background:#02060c;
  border:1px solid rgba(255,255,255,.08);
  color:#d7e6ff;
}
.pv-stage{
  height:420px;
  display:grid;
  place-items:center;
  padding:24px;
}
.pv-screen{
  position:relative;
  width:min(100%,980px);
  aspect-ratio:16/9;
  border-radius:20px;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(63,124,255,.26), transparent 22%),
    radial-gradient(circle at 80% 70%, rgba(124,92,255,.24), transparent 28%),
    linear-gradient(135deg,#0d1930,#060b14 70%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
}
.pv-dog{
  position:absolute;
  top:22px;
  right:22px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:16px;
  background:rgba(6,12,22,.82);
  border:1px solid rgba(255,255,255,.10);
}
.pv-logo{font-weight:700;letter-spacing:.04em}
.pv-live{
  font-size:.78rem;
  padding:5px 8px;
  border-radius:999px;
  background:var(--danger);
  font-weight:700;
}
.pv-lt{
  position:absolute;
  left:26px;
  bottom:26px;
  display:flex;
  align-items:stretch;
  min-width:420px;
  max-width:75%;
  border-radius:18px;
  overflow:hidden;
  background:rgba(6,12,22,.86);
  border:1px solid rgba(255,255,255,.10);
}
.pv-lt-bar{
  width:10px;
  background:var(--accent);
}
.pv-lt-copy{
  padding:16px 18px;
}
.pv-lt-title{
  font-size:1.5rem;
  font-weight:700;
}
.pv-lt-subtitle{
  margin-top:6px;
  color:rgba(255,255,255,.78);
}
.pv-nn{
  position:absolute;
  left:26px;
  bottom:26px;
  min-width:460px;
  max-width:78%;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(6,12,22,.86);
  border:1px solid rgba(255,255,255,.10);
}
.pv-nn-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
}
.pv-nn-row + .pv-nn-row{
  margin-top:12px;
}
.pv-pill{
  padding:6px 10px;
  border-radius:999px;
  background:var(--accent);
  font-weight:700;
  font-size:.8rem;
}
.pv-pill-next{
  background:rgba(255,255,255,.14);
}
.pv-text{
  font-weight:600;
}
.pv-time{
  color:rgba(255,255,255,.72);
}
@media (max-width: 980px){
  .app-shell{grid-template-columns:1fr}
  .workspace{grid-template-rows:auto auto}
}
