.site-workspace { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 18px; }
.site-status, .site-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.site-status p { margin: 6px 0 0; }
.site-controls { min-width: 0; }
.site-controls .v1-panel { margin-bottom: 16px; }
.site-templates, .site-hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.site-template { display: grid; gap: 8px; padding: 9px; border: 1px solid #d9e7f7; border-radius: 9px; }
.site-template:has(input:checked) { border-color: #1677ff; background: #f0f7ff; }
.site-template img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.site-template input { width: auto; }
.site-check { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.site-check input { width: auto; }
.site-hours label { display: grid; gap: 6px; }
.site-hours input { min-width: 0; width: 100%; box-sizing: border-box; }
.site-preview { min-width: 0; align-self: start; padding: 12px; }
.site-preview iframe { width: 100%; height: 850px; border: 1px solid #e1e8ee; border-radius: 8px; background: white; }
.site-reference { width: 100%; height: auto; }
.site-intake { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e5edf5; }
.site-intake p { margin: 5px 0; overflow-wrap: anywhere; }
.site-intake button { align-self: start; flex-shrink: 0; }
.website-editor { max-height: 92dvh; padding: 0; border: 1px solid #dce6ee; border-radius: 12px; }
.website-editor .dialog-head { display: flex; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #e1e8ee; }
.website-editor .dialog-head h2 { margin: 4px 0; font-size: 20px; }
.website-editor .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.website-editor label { display: grid; gap: 7px; }
.website-editor input, .website-editor textarea, .website-editor select { box-sizing: border-box; width: 100%; }
.website-editor input[type=checkbox] { width: auto; }
.website-editor .full { grid-column: 1 / -1; }
.website-editor .form-footer { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 900px) { .site-workspace { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .site-intake { flex-direction: column; }
  .site-status { align-items: start; flex-direction: column; }
  .site-preview iframe { height: 680px; }
  .website-editor .form-grid { grid-template-columns: 1fr; }
  .website-editor-body { padding: 14px; }
}
.site-edit-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.site-edit-entry h3 {
  margin: 0 0 6px;
}
.site-edit-entry p {
  margin: 0;
}
.website-editor-simple[open] {
  display: flex;
  flex-direction: column;
  height: min(860px, 92dvh);
}
.website-editor-simple .dialog-head {
  position: static;
  flex-shrink: 0;
}
.website-editor-simple .website-editor-body {
  overflow-y: auto;
  flex: 1;
}
.website-editor-simple > .form-footer {
  flex-shrink: 0;
  padding: 14px 24px;
  border-top: 1px solid #dce6ee;
  background: white;
}
.website-editor-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.website-editor-tabs button {
  border: 1px solid #dce6ee;
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
}
.website-editor-tabs button[aria-pressed=true] {
  background: #eaf3ff;
  color: #1260c4;
  border-color: #1677ff;
}
.website-editor-simple [hidden] {
  display: none;
}
.website-editor-simple .website-editor-template {
  display: none;
}
.website-media-picker {
  min-width: 0;
  border: 1px solid #dce6ee;
  border-radius: 10px;
  margin: 16px 0;
  padding: 16px;
}
.website-media-picker legend {
  font-weight: 600;
}
.website-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.website-media-grid label {
  position: relative;
  border: 1px solid #dce6ee;
  border-radius: 8px;
  padding: 8px;
}
.website-media-grid label:has(input:checked) {
  border-color: #1677ff;
  background: #f0f7ff;
}
.website-media-grid img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-radius: 5px;
}
.website-media-grid span {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.website-media-picker > label {
  margin-bottom: 12px;
}
.website-media-picker p {
  font-size: 13px;
}
@media (max-width: 600px) {
  .site-edit-entry {
    align-items: flex-start;
    flex-direction: column;
  }
  .website-editor-simple > .form-footer {
    padding: 12px 16px;
    flex-direction: row;
  }
  .website-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .website-editor-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .website-editor-tabs button {
    padding: 10px;
  }
}
