:root{
  --bg:#f6f8fb;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --stroke:rgba(15, 23, 42, .12);

  --brandY:#ebc12d;
  --brandB:#2879ad;

  --accent: var(--brandB);
  --accentSoft: rgba(40,121,173,.14);
  --danger:#ef4444;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color:var(--text);
}

#app{
  height:100vh;
  display:grid;
  grid-template-columns: 270px 1fr 320px;
  gap:14px;
  padding:14px;
}

#left,#right{
  background: var(--panel);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
  overflow:auto;
}

#center{
  display:flex;
  flex-direction:column;
  gap:10px;
}

#topbar{
  display:flex;
  gap:10px;
  align-items:center;
}

.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: #fff;
  font-size:13px;
}
.pill.muted{color:var(--muted)}

#stageWrap{
  flex:1;
  background:
    radial-gradient(900px 450px at 50% 0%, rgba(235,193,45,.18), transparent 60%),
    radial-gradient(900px 450px at 10% 70%, rgba(40,121,173,.14), transparent 60%),
    #fff;
  border:1px solid var(--stroke);
  border-radius:18px;
  position:relative;
  overflow:hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

#stage{width:100%;height:100%;}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:14px;
  background: linear-gradient(180deg, rgba(235,193,45,.18), rgba(40,121,173,.08));
  border:1px solid rgba(40,121,173,.18);
}
.brand .dot{
  width:12px;height:12px;border-radius:50%;
  background: var(--brandY);
  box-shadow:0 0 0 6px rgba(235,193,45,.25);
}
.brand .title{font-weight:800}
.brand .sub{font-size:12px;color:var(--muted)}

.section{margin-top:14px}
.section-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
  margin-bottom:10px;
}

.btn-col{display:flex;flex-direction:column;gap:8px}
.btn{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: #fff;
  color:var(--text);
  cursor:pointer;
  font-weight:700;
}
.btn:hover{border-color: rgba(40,121,173,.35)}
.btn.active{
  border-color: rgba(40,121,173,.75);
  box-shadow: 0 0 0 4px rgba(40,121,173,.10);
}
.btn.danger{
  border-color: rgba(239,68,68,.35);
}
.btn.danger:hover{border-color: rgba(239,68,68,.65)}

.hint .small{line-height:1.5;color:var(--muted)}
.small{font-size:12px}
.muted{color:var(--muted)}

.prop{margin-bottom:10px}
.prop label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}
input,select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background: #fff;
  color:var(--text);
  outline:none;
}
input:focus,select:focus{
  border-color: rgba(40,121,173,.65);
  box-shadow: 0 0 0 4px rgba(40,121,173,.10);
}
.readonly{
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(15,23,42,.18);
  color:var(--muted);
  background: rgba(2,6,23,.02);
}
.prop-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.divider{
  height:1px;
  background: rgba(15,23,42,.10);
  margin:12px 0;
}

#productsList{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.product-item{
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.product-item:hover{border-color: rgba(40,121,173,.35)}
.product-item.active{
  border-color: rgba(40,121,173,.75);
  box-shadow: 0 0 0 4px rgba(40,121,173,.10);
}
.badge{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background: rgba(235,193,45,.22);
  border:1px solid rgba(235,193,45,.35);
}
