:root {
  --bg: #f8fafc;
  --panel: #fff;
  --text: #18181b;
  --muted: #64748b;
  --line: #e2e8f0;
  --hover: #f1f5f9;
  --accent: #047857;
  --good: #047857;
  --amber: #b45309;
  --bad: #be123c;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    13px/1.5 Inter,
    system-ui,
    -apple-system,
    sans-serif;
}
body.dark {
  --bg: #09090b;
  --panel: #18181b;
  --text: #fafafa;
  --muted: #a1a1aa;
  --line: #303036;
  --hover: #242429;
  --accent: #34d399;
  --good: #34d399;
  --amber: #fbbf24;
  --bad: #fb7185;
  color-scheme: dark;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
  padding: 6px 10px;
  min-height: 32px;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
button:hover:not(:disabled) {
  background: var(--hover);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary {
  background: #047857;
  color: #fff;
  border-color: #047857;
}
button.primary:hover:not(:disabled) {
  background: #065f46;
}
button.danger {
  color: var(--bad);
}
button.quiet {
  border-color: transparent;
  background: transparent;
}
button.icon {
  padding: 7px;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  min-height: 0;
  width: 14px;
  height: 14px;
  margin: 0;
}
input[type="file"] {
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
h1 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin: 0 0 7px;
  font-weight: 650;
}
h2 {
  font-size: 15px;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 12px;
}
small,
.muted {
  color: var(--muted);
}
.mono,
code,
pre {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.boot {
  padding: 40px;
}
.app {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 12px 12px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 28px;
}
.brand-mark {
  background: #18181b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 4px;
}
.brand strong {
  font-size: 15px;
  letter-spacing: -0.3px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
}
.nav-group {
  margin: 0 8px 9px;
}
.nav-button {
  width: 100%;
  justify-content: flex-start;
  border: none;
  padding: 9px 10px;
  margin-bottom: 3px;
  color: var(--muted);
}
.nav-button[aria-current="page"] {
  background: var(--hover);
  color: var(--text);
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: 8px;
}
.nav-button kbd {
  margin-left: auto;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.sidebar-bottom a {
  display: block;
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
}
.sidebar .account {
  padding: 10px 8px;
  overflow: hidden;
}
.account .mono {
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace {
  min-width: 0;
}
.header {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 15;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 500;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 15px;
}
.environment {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.status i {
  width: 6px;
  height: 6px;
  background: currentColor;
  display: inline-block;
  border-radius: 3px;
}
.status.good {
  color: var(--good);
}
.status.warn {
  color: var(--amber);
}
.status.bad {
  color: var(--bad);
}
.command-trigger {
  min-width: 218px;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 12px;
  background: var(--bg);
}
kbd {
  font-family: inherit;
  font-size: 10px;
  color: var(--muted);
}
.command-trigger kbd {
  margin-left: auto;
}
.content {
  padding: 28px;
  max-width: 1800px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.metric {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 5px;
  padding: 17px 19px;
}
.metric .value {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 10px 0 7px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 11px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-body {
  padding: 16px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.toolbar .search {
  min-width: 190px;
  flex: 1;
  max-width: 310px;
}
.toolbar .spacer {
  flex: 1;
}
.table-scroll {
  overflow: auto;
  max-height: 58vh;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th button {
  border: 0;
  padding: 0;
  min-height: 20px;
  background: none;
  font-size: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
  justify-content: flex-start;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--hover);
}
td .mono {
  font-size: 11px;
}
td.changed {
  background: #fffbeb;
  box-shadow: inset 2px 0 #d97706;
  color: #78350f;
}
td.editable {
  cursor: text;
}
td.editable:hover {
  outline: 1px dashed var(--muted);
  outline-offset: -4px;
}
.table-foot {
  border-top: 1px solid var(--line);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: var(--muted);
}
details.columns {
  position: relative;
}
summary {
  cursor: pointer;
  list-style: none;
}
details.columns summary {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
details.columns .column-menu {
  position: absolute;
  right: 0;
  top: 36px;
  min-width: 170px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px;
  z-index: 10;
  border-radius: 4px;
  box-shadow: 0 4px 12px #0001;
}
.column-menu label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 12px;
  font-weight: 400;
}
.field small {
  font-size: 10px;
  font-weight: 400;
}
.compose {
  padding: 20px;
}
.compose textarea {
  min-height: 310px;
  font: 12px/1.65 var(--mono);
}
.preview {
  padding: 26px;
  overflow-wrap: anywhere;
  max-height: 78vh;
  overflow: auto;
}
.preview h1 {
  font-size: 26px;
}
.preview img {
  max-width: 100%;
  max-height: 220px;
}
.markdown p {
  white-space: pre-wrap;
  min-height: 8px;
}
.markdown h2 {
  font-size: 20px;
  margin: 22px 0 12px;
}
.markdown h3 {
  font-size: 17px;
  margin: 18px 0 10px;
}
.markdown h4 {
  font-size: 15px;
  margin: 16px 0 10px;
}
.markdown li {
  margin-left: 20px;
}
.markdown code {
  background: var(--hover);
  padding: 2px 4px;
}
.error-message {
  color: var(--bad);
  font-size: 12px;
  white-space: pre-wrap;
}
.notice {
  background: var(--hover);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 12px;
}
.dirty-indicator {
  font-size: 11px;
  color: var(--amber);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(490px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  z-index: 60;
  box-shadow: -10px 0 30px #0001;
  display: flex;
  flex-direction: column;
}
.drawer header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer .drawer-body {
  padding: 20px;
  overflow: auto;
  flex: 1;
}
.drawer footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  padding: 0;
  max-width: calc(100vw - 32px);
  box-shadow: 0 16px 48px #0002;
}
dialog::backdrop {
  background: #09090b66;
}
.dialog-head {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-body {
  padding: 20px;
  max-height: 65vh;
  overflow: auto;
}
.dialog-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  font: 11px/1.6 var(--mono);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 12px;
}
.diff > div {
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.diff .before {
  background: #be123c09;
  border-right: 1px solid var(--line);
}
.diff .after {
  background: #04785709;
}
.diff .eyebrow {
  font: 10px system-ui;
  margin-bottom: 6px;
}
.command-dialog {
  width: 620px;
  align-self: flex-start;
  margin-top: 13vh;
}
.command-dialog input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 17px 20px;
  font-size: 15px;
  outline: none;
}
.command-results {
  padding: 8px;
  max-height: 50vh;
  overflow: auto;
}
.command-results button {
  display: flex;
  width: 100%;
  border: 0;
  justify-content: flex-start;
  text-align: left;
  padding: 10px;
}
.command-results button:focus {
  background: var(--hover);
}
.command-results small {
  margin-left: auto;
  font-size: 10px;
}
.activity {
  position: fixed;
  left: 224px;
  right: 0;
  bottom: 0;
  height: 265px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: 0 -3px 16px #0001;
  z-index: 25;
}
.activity header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}
.activity .events {
  height: 208px;
  overflow: auto;
}
.event {
  display: grid;
  grid-template-columns: 85px 1fr 80px;
  gap: 12px;
  padding: 7px 20px;
  border-bottom: 1px solid var(--line);
  font: 11px var(--mono);
}
.event.bad {
  color: var(--bad);
}
.event small {
  font: 10px var(--mono);
}
.toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--good);
  border-radius: 4px;
  padding: 10px 14px;
  box-shadow: 0 3px 15px #0001;
  max-width: 450px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.toast.bad {
  border-left-color: var(--bad);
}
.toast button {
  font-size: 11px;
}
.collapsed .app {
  grid-template-columns: 64px minmax(0, 1fr);
}
.collapsed .sidebar {
  padding-left: 8px;
  padding-right: 8px;
}
.collapsed .brand {
  padding: 0 8px 28px;
}
.collapsed .brand-copy,
.collapsed .nav-group,
.collapsed .nav-label,
.collapsed .nav-button kbd,
.collapsed .sidebar-bottom a,
.collapsed .account {
  display: none;
}
.collapsed .nav-button {
  justify-content: center;
}
.collapsed .activity {
  left: 64px;
}
.login-layout {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.login-box {
  width: min(400px, calc(100vw - 32px));
  padding: 30px;
}
.login-box .brand {
  padding: 0 0 26px;
}
.login-box h1 {
  font-size: 20px;
}
.login-box p {
  font-size: 12px;
  color: var(--muted);
}
.map-view {
  height: 500px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.terminal-view {
  height: 380px;
  background: #09090b;
  padding: 8px;
  border-radius: 4px;
}
.file-list button {
  max-width: 300px;
  white-space: normal;
  text-align: left;
}
.inline-input {
  min-width: 170px;
  width: 100%;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  .app {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .activity {
    left: 190px;
  }
  .header {
    padding: 0 18px;
  }
  .content {
    padding: 22px 18px;
  }
  .command-trigger {
    min-width: 150px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 14px;
  }
  .header-right {
    gap: 9px;
  }
}
@media (max-width: 800px) {
  .app {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 8px;
    padding-right: 8px;
  }
  .brand-copy,
  .nav-group,
  .nav-label,
  .nav-button kbd,
  .sidebar-bottom a,
  .account {
    display: none;
  }
  .sidebar .brand {
    padding: 0 8px 28px;
  }
  .nav-button {
    justify-content: center;
  }
  .activity {
    left: 64px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .header .command-trigger {
    min-width: 0;
  }
  .command-trigger .trigger-label,
  .command-trigger kbd,
  .environment {
    display: none;
  }
  .header {
    gap: 8px;
  }
  .breadcrumb > span {
    display: none;
  }
  .header-right {
    gap: 6px;
  }
  .header-right .status {
    font-size: 10px;
  }
  .content {
    padding: 20px 14px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .diff {
    grid-template-columns: 1fr;
  }
  .event {
    grid-template-columns: 65px 1fr 50px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.1s;
  }
}
body:has(.activity:not([hidden])) .content {
  padding-bottom: 285px;
}

.table-scroll td.mono {
  white-space: nowrap;
}
.toasts {
  max-width: calc(100vw - 32px);
  max-height: 45vh;
  overflow: auto;
}
.toast {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .header {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 6px;
  }
  .header-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .header-right .command-trigger {
    margin-left: auto;
  }
  .toasts {
    max-width: calc(100vw - 96px);
    right: 16px;
    bottom: 16px;
  }
  .toast {
    font-size: 11px;
    gap: 7px;
    padding: 8px;
  }
  .toast button {
    padding: 4px 6px;
  }
  .table-foot {
    flex-wrap: wrap;
    gap: 8px;
  }
  .table-foot .row {
    justify-content: flex-start;
  }
}

.sidebar nav {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.sidebar-bottom,
.brand {
  flex-shrink: 0;
}
.site-editor-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
  padding: 10px;
}
.site-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
}
.site-canvas-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  border-radius: 4px;
}
.site-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 620px;
  background: var(--panel);
}
#site-editor-frame {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  border: 0;
  background: #fff;
  max-width: none;
}
.site-inspector {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  max-height: 80vh;
  overflow: auto;
  position: sticky;
  top: 74px;
  align-self: start;
}
.site-inspector summary {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.site-inspector details {
  border-bottom: 1px solid var(--line);
}
.site-inspector-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-inspector-body p {
  font-size: 11px;
  margin: 0;
  overflow-wrap: anywhere;
}
.site-inspector-body .field textarea {
  min-height: 65px;
}
.site-inspector-body details > div {
  padding: 10px 0;
}
.site-structure {
  padding: 8px;
  max-height: 360px;
  overflow: auto;
}
.site-structure button {
  display: block;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  font-size: 11px;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 7px;
}
.site-inspector-body input[type="checkbox"] {
  width: 14px;
}
@media (max-width: 1000px) {
  .site-builder {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-inspector {
    position: static;
    max-height: 500px;
  }
  .site-editor-bar .row {
    width: 100%;
  }
  .site-inspector-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .site-inspector-body details,
  .site-inspector-body p {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .site-inspector-body {
    display: flex;
  }
}

/* ── Website builder panels (builder.js) ─────────────────────────────── */
.builder-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.builder-tabs button {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 4px;
}
.builder-tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.builder-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.builder-body > p,
.builder-body small {
  font-size: 11px;
  margin: 0;
}
.builder-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  margin: 4px 0;
}
.builder-sections,
.builder-blocks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.builder-section,
.builder-block {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}
.builder-section > summary,
.builder-block > summary,
.builder-sub > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  list-style-position: inside;
}
.builder-section > summary {
  background: var(--hover);
}
.builder-section[open] > .builder-blocks,
.builder-section[open] > .builder-sub {
  margin: 8px;
}
.builder-sub {
  border: 1px dashed var(--line);
  border-radius: 4px;
}
.builder-sub > .builder-form {
  padding: 0 10px 10px;
}
.builder-block > .builder-form,
.builder-block > .builder-tools {
  padding: 0 10px 10px;
}
.builder-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.builder-summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.builder-summary small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.builder-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--hover);
  font-weight: 700;
  flex-shrink: 0;
}
.builder-tools {
  gap: 4px;
}
.builder-form .field textarea {
  min-height: 70px;
}
.builder-column {
  border-left: 2px solid var(--line);
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.builder-add {
  border-style: dashed;
  font-size: 12px;
}
.builder-add-section {
  width: 100%;
}
.builder-empty {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
}
.builder-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.builder-palette-button {
  height: auto;
  white-space: normal;
  justify-content: flex-start;
  text-align: left;
  padding: 10px;
}
.builder-palette-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
}
.builder-palette-item > b {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--hover);
}
.builder-palette-item > span {
  font-weight: 600;
}
.builder-palette-item > small {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
}
.builder-palette-item:not(:has(b)) {
  grid-template-columns: 1fr;
}
.builder-palette-item:not(:has(b)) > small {
  grid-column: 1;
}
.builder-color input[type="color"] {
  width: 44px;
  min-height: 32px;
  padding: 2px;
}
.builder-color input.mono {
  width: 90px;
}
.builder-color select {
  flex: 1;
}
.builder-link,
.builder-image {
  gap: 6px;
}
.builder-thumb {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--hover);
}
.builder-image input[type="file"] {
  width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  position: absolute;
}
.builder-range input {
  flex: 1;
  padding: 0;
}
.builder-range output {
  font-size: 11px;
  min-width: 52px;
  text-align: right;
}
.builder-check {
  font-size: 12px;
}
.builder-format {
  gap: 2px;
}
.builder-format button {
  min-height: 26px;
  padding: 2px 8px;
  font-size: 12px;
}
.builder-swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.builder-layout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
}
.builder-layout > p {
  font-size: 11px;
  margin: 0;
}
.builder-layout-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
}
.builder-layout-row.is-added {
  border-style: dashed;
  border-color: var(--accent);
}
.builder-layout-row.is-hidden {
  opacity: 0.55;
}
.builder-layout-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--hover);
  font-weight: 700;
  font-size: 11px;
}
.builder-layout-row.is-added .builder-layout-badge {
  color: var(--accent);
}
.builder-layout-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder-layout-tools {
  grid-column: 1 / -1;
  gap: 2px;
}
.builder-layout-tools button {
  min-height: 26px;
  padding: 2px 8px;
  font-size: 11px;
}
.builder-section[open] > .builder-section-tools {
  margin: 8px 8px 0;
}
.site-inspector-body > button.delete-element {
  align-self: flex-start;
}
.delete-state p {
  margin: 0;
}
