:root {
  --brand: #4b4de4;
  --ink: #1d2367;
  --bg: #f4f5fa;
  --line: #e6e7ef;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo-mark { color: var(--brand); font-size: 30px; }
.brand h1 { margin: 0; font-size: 39px; line-height: 0.9; letter-spacing: 0.4px; color: #262f8f; }
.brand small { color: #9095b3; font-weight: 600; }

.top-actions { display: flex; gap: 10px; }
.chip { border: 1px solid #d8daeb; border-radius: 10px; padding: 10px 18px; background: #fff; color: #222b74; font-weight: 700; }
.chip.purple { background: linear-gradient(135deg, #7f3ff5, #a64bf6); color: #fff; border: 0; }
.chip.orange { background: linear-gradient(135deg, #f9aa17, #f68f0f); color: #fff; border: 0; }
.chip.blue { background: linear-gradient(135deg, #4e58e8, #4349bf); color: #fff; border: 0; }

.workspace {
  height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: 1fr 470px;
}

.viewport-wrap {
  border-right: 1px solid var(--line);
  overflow: hidden;
}

#previewCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #181a78;
}

.sidebar {
  background: #f8f8fc;
  overflow: hidden;
}
.scroll {
  height: 100%;
  overflow: auto;
  padding: 18px 18px 24px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.control-group { margin-bottom: 12px; }
label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #252c78; }

input, select, button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d8daeb;
  background: #fff;
  color: #20286f;
  padding: 10px 12px;
  font: inherit;
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.slider .line {
  display: grid;
  grid-template-columns: 1fr 90px;
  align-items: center;
  gap: 10px;
}

input[type='range'] {
  accent-color: #5a61f0;
  border: 0;
  padding: 0;
  background: transparent;
}
input[type='color'] { padding: 4px; height: 42px; }

.btn {
  border: 0;
  background: linear-gradient(135deg, #4f56eb, #454bc2);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn.light {
  background: #ececf4;
  border: 1px solid #dddff0;
  color: #252c78;
}

.pricing-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.pricing-box summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 6px 0; border-bottom: 1px solid #ececf4; }
th { text-align: left; }
td { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td, tr.total th { color: #4a54e5; font-size: 15px; border-bottom: 0; }

.statusbar {
  height: 40px;
  background: #f0f1f7;
  border-top: 1px solid #dfe1ef;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  font-size: 14px;
  color: #6e739a;
}

@media (max-width: 1200px) {
  .workspace { grid-template-columns: 1fr; height: auto; }
  .viewport-wrap { height: 60vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar { height: calc(100vh - 172px); }
}
