:root {
  --admin-bg: #f0f0f1;
  --sidebar: #1d2327;
  --sidebar-soft: #2c3338;
  --sidebar-active: #2271b1;
  --text: #1d2327;
  --muted: #646970;
  --line: #c3c4c7;
  --panel: #fff;
  --primary: #2271b1;
  --primary-dark: #135e96;
  --danger: #b32d2e;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

.wp-admin-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 32px;
  padding: 0 12px;
  background: #1d2327;
  color: #c3c4c7;
  font-size: 13px;
  line-height: 32px;
}

.wp-admin-bar a,
.wp-admin-bar button,
.wp-admin-bar span {
  color: inherit;
}

.wp-admin-bar a {
  text-decoration: none;
}

.wp-admin-bar a:hover,
.wp-admin-bar button:hover {
  color: #72aee6;
}

.wp-admin-bar button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.admin-menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  color: #c3c4c7;
}

.admin-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.wp-admin-bar form {
  margin-left: auto;
}

.wp-admin-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wp-admin-home span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #8c8f94;
  border-radius: 50%;
  color: #c3c4c7;
  font-size: 11px;
  line-height: 1;
}

.admin-body {
  background: var(--admin-bg);
}

.admin-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 0 0 18px;
  background: var(--sidebar);
  color: #f0f0f1;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  background: #23282d;
  color: #f0f0f1;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.admin-brand span,
.login-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #8c8f94;
  border-radius: 50%;
  background: transparent;
  color: #c3c4c7;
  font-size: 12px;
  font-weight: 600;
}

.admin-nav {
  display: grid;
  padding-top: 14px;
}

.admin-nav a {
  position: relative;
  min-height: 36px;
  border-left: 0;
  color: #c3c4c7;
  padding: 8px 14px 8px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.admin-nav a:hover {
  background: var(--sidebar-soft);
  color: #72aee6;
}

.admin-nav a.active {
  background: var(--sidebar-active);
  color: #fff;
}

.admin-nav a.active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--admin-bg);
  transform: translateY(-50%);
}

.admin-main {
  min-width: 0;
  padding: 28px 28px 40px;
}

.admin-topbar,
.panel-heading,
.list-row,
.actions,
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-topbar {
  margin-bottom: 28px;
}

.topbar-actions,
.actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.eyebrow {
  display: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: #1d2327;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}

h2 {
  color: #1d2327;
  font-size: 18px;
  font-weight: 600;
}

.panel,
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel {
  margin-bottom: 20px;
  padding: 16px;
}

form.panel {
  max-width: 1180px;
  border: 0;
  background: transparent;
  padding: 0;
}

.stats-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat {
  padding: 18px;
}

.stat span,
.list-row span,
.muted {
  color: var(--muted);
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.two-col,
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.wide {
  grid-column: auto;
}

.form-grid > h2 {
  grid-column: 1 / -1;
  max-width: 1000px;
  margin: 32px 0 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.form-grid > h2:first-of-type {
  margin-top: 0;
}

.form-grid > label,
.form-grid > .wide.logo-preview-box {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  align-items: start;
  column-gap: 16px;
  max-width: 1000px;
  margin: 0;
  padding: 12px 0;
  font-weight: 600;
}

.form-grid > label > input,
.form-grid > label > select,
.form-grid > label > textarea {
  justify-self: start;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 600;
}

.inline {
  display: flex;
  align-items: center;
  gap: 9px;
}

.inline input {
  width: auto;
}

input,
textarea,
select {
  width: min(100%, 440px);
  min-height: 30px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #2c3338;
  padding: 3px 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  box-shadow: 0 0 0 transparent;
}

textarea {
  width: min(100%, 640px);
  min-height: 96px;
  line-height: 1.5;
  resize: vertical;
}

input[type="color"] {
  width: 72px;
  min-height: 32px;
  padding: 2px;
}

input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #2271b1;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 1px #2271b1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 2;
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary,
.button.ghost {
  background: #f6f7f7;
  border-color: #c3c4c7;
  color: var(--text);
}

.button.danger {
  background: #fff4f4;
  border-color: var(--danger);
  color: var(--danger);
}

.topbar-actions .button {
  background: #f6f7f7;
}

.notice {
  max-width: 1000px;
  margin: 0 0 16px;
  border-left: 4px solid #00a32a;
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 6px 20px rgba(0, 163, 42, 0.15);
  animation: cms-notice-in 320ms ease;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.notice.error {
  border-left-color: #d63638;
  box-shadow: 0 6px 20px rgba(214, 54, 56, 0.18);
}

@keyframes cms-notice-in {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.logo-preview-box strong {
  grid-column: 1;
}

.logo-preview-box > :not(strong) {
  grid-column: 2;
}

.logo-preview-box img.favicon-preview {
  max-width: 64px;
  max-height: 64px;
}

.logo-preview-box img {
  max-width: 220px;
  max-height: 90px;
  width: auto;
  height: auto;
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  background: #fff;
  padding: 8px;
}

.theme-slide-field {
  display: grid;
  grid-template-columns: 260px 84px minmax(0, 360px) auto auto;
  align-items: center;
  gap: 10px 16px;
  max-width: 1000px;
  padding: 12px 0;
}

.theme-slide-field strong {
  font-weight: 600;
}

.theme-slide-field input[readonly] {
  background: #f6f7f7;
}

.theme-slide-thumb {
  display: grid;
  place-items: center;
  width: 84px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
}

.theme-slide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-grid > div.wide:not(.logo-preview-box) {
  max-width: 1000px;
  margin-top: 18px;
  padding-left: 276px;
}

.link-danger {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--danger);
  padding: 0;
  cursor: pointer;
}

.list-row {
  border-top: 1px solid #edf0f2;
  padding: 14px 0;
}

.list-row:first-of-type {
  border-top: 0;
}

.list-row strong,
.list-row span {
  display: block;
}

.cms-version-panel .panel-heading {
  align-items: flex-start;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #2271b1;
  border-radius: 3px;
  background: #f0f6fc;
  color: #135e96;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.cms-version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.cms-version-meta span {
  border: 1px solid #dcdcde;
  border-radius: 3px;
  background: #f6f7f7;
  padding: 4px 8px;
  color: #50575e;
  font-size: 13px;
}

.cms-changelog {
  border-top: 1px solid #edf0f2;
  padding-top: 8px;
}

.changelog-entry {
  border-bottom: 1px solid #edf0f2;
  padding: 10px 0;
}

.changelog-entry summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.changelog-entry summary::-webkit-details-marker {
  display: none;
}

.changelog-entry summary strong {
  color: #1d2327;
}

.changelog-entry summary span {
  color: #646970;
  font-size: 13px;
}

.changelog-section {
  margin-top: 10px;
}

.changelog-section h3 {
  margin: 0 0 6px;
  color: #1d2327;
  font-size: 13px;
  font-weight: 600;
}

.changelog-section ul {
  margin: 0;
  padding-left: 18px;
  color: #50575e;
  font-size: 13px;
}

.changelog-section li + li {
  margin-top: 4px;
}

.admin-sidebar-version {
  margin-top: auto;
  padding: 14px 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.system-update-panel,
.system-update-preview-panel {
  margin-top: 18px;
}

.system-update-block {
  border-top: 1px solid #edf0f2;
  padding-top: 14px;
  margin-top: 14px;
}

.system-update-block h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.system-update-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-update-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f0f0f1;
  padding: 8px 0;
  font-size: 13px;
}

.system-update-list code {
  font-size: 12px;
}

.update-action {
  display: inline-flex;
  min-width: 58px;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.update-action.add {
  background: #edfaef;
  color: #006b1f;
}

.update-action.update {
  background: #f0f6fc;
  color: #135e96;
}

.release-notes {
  margin: 0;
  border: 1px solid #dcdcde;
  border-radius: 3px;
  background: #f6f7f7;
  padding: 12px;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}

.system-update-actions {
  border-top: 1px solid #edf0f2;
  margin-top: 18px;
  padding-top: 18px;
}

.confirm-apply {
  display: block;
  margin-bottom: 12px;
  color: #1d2327;
  font-size: 13px;
}

.confirm-apply input {
  margin-right: 8px;
}

.release-prepare-form textarea {
  min-height: 88px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
}

.site-health-panel .panel-heading {
  align-items: flex-start;
}

.site-health-panel h2,
.site-health-panel p {
  margin-bottom: 4px;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  background: #f6f7f7;
  color: #2c3338;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.health-badge.good {
  border-color: #00a32a;
  background: #edfaef;
  color: #006b1f;
}

.health-badge.warning {
  border-color: #dba617;
  background: #fff8e5;
  color: #8a5f00;
}

.health-badge.critical {
  border-color: #d63638;
  background: #fcf0f1;
  color: #b32d2e;
}

.site-health-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.site-health-summary span {
  border: 1px solid #dcdcde;
  border-radius: 3px;
  background: #f6f7f7;
  padding: 4px 8px;
  color: #50575e;
  font-size: 13px;
}

.health-list {
  display: grid;
  border-top: 1px solid #edf0f2;
}

.health-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0f2;
  padding: 12px 0;
}

.health-row strong,
.health-row span {
  display: block;
}

.health-row div span {
  margin-top: 2px;
  color: var(--muted);
}

.health-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8c8f94;
}

.health-row.good .health-status-dot {
  background: #00a32a;
}

.health-row.warning .health-status-dot {
  background: #dba617;
}

.health-row.critical .health-status-dot {
  background: #d63638;
}

.media-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.media-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e9edf1 25%, transparent 25%),
    linear-gradient(-45deg, #e9edf1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9edf1 75%),
    linear-gradient(-45deg, transparent 75%, #e9edf1 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.media-card div {
  padding: 12px;
}

.media-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.media-card-actions details {
  flex: 1 1 auto;
}

.media-card-actions .button.danger {
  margin-left: auto;
}

.logo-preview-box {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.logo-preview-box img {
  display: block;
  max-width: 220px;
  max-height: 120px;
  object-fit: contain;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e9edf1 25%, transparent 25%),
    linear-gradient(-45deg, #e9edf1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e9edf1 75%),
    linear-gradient(-45deg, transparent 75%, #e9edf1 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  padding: 10px;
}

.visual-builder,
.row-builder,
.media-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.visual-builder {
  background: #fbfbfc;
}

.intro-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbfc;
  padding: 16px;
}

.hidden-editor-field {
  display: none;
}

.editor-tabs,
.editor-toolbar,
.mini-editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-tabs .active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.icon-button {
  width: 34px;
  padding: 4px;
}

.icon-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.toolbar-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.toolbar-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.toolbar-select select {
  min-width: 190px;
}

select.toolbar-select {
  display: inline-block;
  min-width: 150px;
  height: 32px;
  font-weight: 600;
}

.mini-editor-toolbar select.toolbar-select {
  min-width: 130px;
  height: 28px;
  font-size: 12px;
}

.toolbar-color {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}

.toolbar-color span {
  line-height: 1;
}

.toolbar-color input[type="color"] {
  width: 28px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.builder-field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.builder-field-label {
  flex: 0 0 100%;
  font-size: 13px;
  font-weight: 600;
}

.builder-bg-opacity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.builder-bg-opacity input {
  width: 72px;
  min-height: 32px;
}

.intro-visual-editor,
.form-grid .code-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.intro-code-editor {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 240px;
  margin-top: 12px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  padding: 10px 12px;
  background: #fafafa;
  resize: vertical;
}

.intro-code-editor[hidden] {
  display: none !important;
}

.intro-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-top: 12px;
}

.intro-visual-editor {
  min-height: 240px;
}

.has-open-modal {
  overflow: hidden;
}

.media-modal[hidden] {
  display: none;
}

.media-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}

.media-modal-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 80px);
  margin: 40px auto;
  border: 1px solid #8c8f94;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.media-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f6f7f7;
}

.media-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.media-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  overflow: auto;
  padding: 18px;
}

.media-modal-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
}

.media-modal-item:hover,
.media-modal-item:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  outline: 0;
}

.media-modal-item img,
.media-modal-item video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0f0f1;
}

.media-modal-item[hidden] {
  display: none;
}

.form-grid .media-picker-field {
  max-width: 1000px;
}

.media-modal-item span {
  overflow: hidden;
  color: #2c3338;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-library-panel {
  max-width: 760px;
}

.icon-library-search-wrap {
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--line);
}

.icon-library-search {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
}

.icon-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  padding: 16px 20px 20px;
  overflow: auto;
}

.icon-library-item {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #2c3338;
  cursor: pointer;
}

.icon-library-item:hover,
.icon-library-item:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  outline: 0;
}

.icon-library-item svg {
  display: block;
  width: 28px;
  height: 28px;
}

.icon-library-item span {
  overflow: hidden;
  max-width: 100%;
  color: #646970;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-library-item[hidden] {
  display: none;
}

.builder-icon,
.theme-content-col .builder-icon,
.builder-content-box .builder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: 1.25em;
  height: 1.25em;
  margin: 0 0.15em;
  color: currentColor;
  flex-shrink: 0;
}

.builder-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-spacing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mini-editor-toolbar {
  margin-top: 10px;
}

.mini-editor-toolbar .button {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 13px;
}

.builder-rows {
  display: grid;
  gap: 18px;
}

.builder-row-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.builder-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f7f7;
}

.builder-row-card.is-collapsed .builder-row-header {
  border-bottom: none;
}

.builder-row-card.is-collapsed .builder-row-body {
  display: none;
}

.builder-row-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #50575e;
  cursor: pointer;
  flex-shrink: 0;
}

.builder-row-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.builder-row-chevron {
  display: block;
  transition: transform 0.15s ease;
}

.builder-row-card:not(.is-collapsed) .builder-row-chevron {
  transform: rotate(90deg);
}

.builder-row-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-row-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f4fd;
  color: #135e96;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.builder-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-map-settings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.builder-map-settings .builder-col-section-head,
.builder-map-settings .builder-map-note {
  grid-column: 1 / -1;
}

.builder-map-preview {
  width: 100%;
}

.builder-map-preview .map-frame {
  width: 100%;
  border: 0;
}

.builder-row-body {
  padding: 14px;
}

.builder-row-drag-handle,
.builder-col-drag-handle {
  display: inline-flex;
  align-items: center;
  cursor: grab;
  color: #aab0b7;
  padding: 4px 3px;
  user-select: none;
  flex-shrink: 0;
  line-height: 0;
}

.builder-row-drag-handle:hover,
.builder-col-drag-handle:hover {
  color: #555d66;
}

.builder-row-drag-handle:active,
.builder-col-drag-handle:active {
  cursor: grabbing;
}

.theme-section-card {
  grid-column: 1 / -1;
  max-width: 1000px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  margin-top: 24px;
}

.theme-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #f6f7f7;
}

.theme-section-card.is-collapsed .theme-section-header {
  border-bottom: none;
}

.theme-section-card.is-collapsed .theme-section-body {
  display: none;
}

.theme-section-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.theme-section-card:not(.is-collapsed) .builder-row-chevron {
  transform: rotate(90deg);
}

.theme-section-body {
  padding: 0 14px 14px;
}

.form-grid .theme-section-body > label,
.form-grid .theme-section-body > .wide.logo-preview-box {
  display: grid;
  grid-template-columns: 260px minmax(0, 720px);
  align-items: start;
  column-gap: 16px;
  max-width: none;
  margin: 0;
  padding: 12px 0;
  font-weight: 600;
}

.form-grid .theme-section-body > label > input,
.form-grid .theme-section-body > label > select,
.form-grid .theme-section-body > label > textarea {
  justify-self: start;
}

.form-grid .theme-section-body > label.inline {
  display: flex;
  grid-template-columns: none;
}

.form-grid .theme-section-body > p.wide.muted {
  margin: 0;
  padding: 8px 0 12px;
}

.form-grid .theme-section-body .builder-col-section-head {
  margin-top: 8px;
}

.form-grid .theme-section-body > div.wide:not(.logo-preview-box) {
  max-width: none;
  margin-top: 18px;
  padding-left: 276px;
}

.form-grid .theme-section-body .visual-builder {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.form-grid .theme-section-body .media-picker-field {
  max-width: none;
}

.builder-row-card.is-dragging,
.builder-column.is-dragging {
  opacity: 0.4;
  outline: 2px dashed var(--primary);
  outline-offset: 2px;
}

.builder-row-toolbar {
  display: grid;
  grid-template-columns: auto 1.3fr 1.3fr 110px 100px 120px auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.builder-row-toolbar.compact {
  grid-template-columns: repeat(5, minmax(100px, 1fr)) auto auto auto;
}

.builder-row-preview {
  border: 1px dashed #b8c0c8;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
}

.builder-columns {
  display: grid;
}

.builder-column {
  min-width: 0;
  outline: 1px solid rgba(29, 35, 39, 0.16);
  outline-offset: 0;
  background: rgba(255, 255, 255, 0.92);
}

.builder-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tc-auto-width {
  font-weight: 600;
  color: var(--primary);
}

/* Mobile popup button */
.builder-mobile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.builder-mobile-btn:hover {
  background: #e5e7eb;
  color: #111;
}
.builder-mobile-btn.is-active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

/* Mobile popup panel */
.builder-row-mobile-popup {
  grid-column: 1 / -1;
  margin: 0 0 8px;
}

.builder-row-card > .builder-row-mobile-popup {
  margin: 0 14px 12px;
}

.builder-row-card.is-collapsed > .builder-row-mobile-popup {
  margin-top: -4px;
  margin-bottom: 12px;
}
.builder-mobile-popup {
  position: relative;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px 12px;
  margin-bottom: 8px;
}
.builder-mobile-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2563eb;
  margin-bottom: 8px;
}
.builder-mobile-popup-head button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #6b7280;
  padding: 0 2px;
}
.builder-mobile-popup-head button:hover { color: #111; }
.builder-mobile-popup label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #374151;
  margin-top: 6px;
}
.builder-mobile-popup label.inline {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.builder-mobile-popup input,
.builder-mobile-popup select {
  margin-top: 3px;
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

/* Border per-side grid */
.builder-border-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.builder-border-grid label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  gap: 2px;
}
.builder-border-grid input {
  width: 100%;
  text-align: center;
  padding: 3px 2px;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

/* Border sub-section heading */
.builder-col-section-head {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  margin: 10px 0 4px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.builder-col-mode-bar {
  display: flex;
  gap: 2px;
  margin-top: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0;
}

.builder-mode-btn {
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 600;
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  color: #6b7280;
  margin-bottom: -1px;
}

.builder-mode-btn.active {
  background: #fff;
  border-color: #ddd;
  color: #111;
}

.builder-code-editor {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', monospace;
  font-size: 12px;
  line-height: 1.6;
  border: 1px solid #8c8f94;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 10px 12px;
  background: #fafafa;
  resize: vertical;
  min-height: 120px;
}

.builder-code-editor:focus {
  outline: none;
  border-color: var(--primary);
}

.builder-content-box {
  min-height: 150px;
  margin-top: 0;
  border: 1px solid #8c8f94;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: #fff;
  padding: 14px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  overflow: auto;
}

.builder-content-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.builder-content-box img {
  display: block;
  max-width: 100%;
  min-width: 80px;
  min-height: 60px;
  resize: both;
  overflow: auto;
}

.builder-content-box img.is-selected-editor-image {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.builder-content-box img.align-left,
.intro-site-section img.align-left {
  float: left;
  margin: 0 22px 14px 0;
}

.builder-content-box img.align-center,
.intro-site-section img.align-center {
  display: block;
  float: none;
  margin: 16px auto;
}

.builder-content-box img.align-right,
.intro-site-section img.align-right {
  float: right;
  margin: 0 0 14px 22px;
}

.builder-content-box img.align-none,
.intro-site-section img.align-none {
  display: inline-block;
  float: none;
  margin: 0;
}

.row-fields,
.menu-fields {
  display: grid;
  grid-template-columns: 1.4fr 120px 120px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.menu-fields {
  grid-template-columns: auto 1.2fr 1fr 1.4fr 1.4fr auto auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-fields--child {
  margin-left: 28px;
  border-left: 3px solid #c3c4c7;
  background: #fafafa;
}

.sortable-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  background: #f6f7f7;
  color: #50575e;
  cursor: grab;
  font-size: 18px;
  line-height: 1;
  user-select: none;
  touch-action: none;
  -webkit-user-drag: element;
}

.sortable-handle:active {
  cursor: grabbing;
}

.sortable-item.is-dragging {
  opacity: 0.55;
}

.gallery-photo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.gallery-photo-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.gallery-photo-item {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: grab;
}

.gallery-photo-item img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-photo-add-title {
  margin: 0 0 10px;
  font-weight: 700;
}

.gallery-photo-add-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.gallery-photo-add-card {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px dashed #c3c4c7;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.gallery-photo-add-card:hover {
  border-color: #2271b1;
}

.gallery-photo-add-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.page-editor-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 12px 18px;
  background: #1d2327;
  color: #fff;
  font-size: 14px;
}

.preview-banner a {
  color: #fff;
  text-decoration: underline;
}

.page-revisions {
  margin-top: 20px;
}

input.is-disabled,
input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-readonly form input:not([type="hidden"]),
.admin-readonly form select,
.admin-readonly form textarea,
.admin-readonly form button {
  opacity: 0.85;
}

.stack {
  display: grid;
  gap: 12px;
}

.media-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.media-picker legend {
  padding: 0 8px;
  font-weight: 700;
}

.media-choice {
  border: 1px solid var(--line);
  padding: 8px;
  font-weight: 400;
}

.media-choice img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #eef1f4;
}

.login-card {
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.recaptcha-box {
  min-height: 78px;
  overflow-x: auto;
}

.login-mark {
  margin-bottom: 18px;
}

.hidden {
  position: absolute;
  left: -10000px;
}

.site-body {
  background: #fbfaf7;
  color: var(--site-body-color, #181818);
  font-family: var(--site-body-font, 'Raleway', Helvetica, Arial, Lucida, sans-serif);
  font-size: var(--site-body-font-size, 17px);
  line-height: var(--site-body-line-height, 1.8);
}

.site-body.has-site-bg {
  background: transparent;
}

#site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#site-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#site-bg-overlay {
  position: absolute;
  inset: 0;
}

@media (max-width: 767px) {
  #site-bg video {
    display: none;
  }
}

.site-hero {
  position: relative;
  display: grid;
  align-items: center;
  color: #fff;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.site-hero--static-image {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 18, 20, 0.7), rgba(16, 18, 20, 0.18));
}

.site-hero-slider,
.site-hero-slide {
  position: absolute;
  inset: 0;
}

.site-hero-slider {
  z-index: 0;
}

.site-hero-slide {
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 900ms ease;
}

.site-hero-slide.active {
  opacity: 1;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100%, var(--site-header-width, 100%));
  height: var(--site-header-height, 12vh);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--site-header-gap, 16px);
  padding: var(--site-header-padding-top, 0) var(--site-header-padding-right, 10%) var(--site-header-padding-bottom, 0) var(--site-header-padding-left, 6%);
  box-sizing: border-box;
  background: rgba(0, 0, 0, var(--header-base-opacity, 0));
  backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
}

.site-header.is-scrolled {
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.site-header.is-scrolled .site-logo {
  color: #111111;
}

.site-header.is-scrolled .site-menu a {
  color: #111111;
}

.site-header.is-scrolled .site-menu a:hover {
  color: var(--theme-accent, #b89153);
}

.site-header.is-scrolled .site-book {
  border-color: var(--theme-accent, #b89153);
  background: var(--theme-accent, #b89153);
  color: #ffffff;
}

.site-header.is-scrolled .site-menu-toggle {
  background: rgba(0, 0, 0, 0.08);
  color: #111111;
}

.site-header--minimal {
  position: relative;
  z-index: 20;
  left: 50%;
  width: min(100%, var(--site-header-width, 100%));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--site-header-gap, 16px);
  padding: var(--site-header-padding-top, 0) var(--site-header-padding-right, 10%) var(--site-header-padding-bottom, 0) var(--site-header-padding-left, 6%);
  box-sizing: border-box;
  height: var(--site-header-height, 12vh);
  background: var(--theme-primary, #1f3a37);
}

.site-header--minimal .site-logo {
  color: #fff;
  text-decoration: none;
  font-size: var(--site-logo-font-size, 25px);
}

.site-header--minimal .site-book {
  justify-self: end;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 0;
  margin: 0;
  line-height: 1;
  min-height: 0;
  font-family: var(--site-heading-font, 'Raleway', Helvetica, Arial, Lucida, sans-serif);
  font-size: var(--site-logo-font-size, 25px);
  font-weight: var(--site-heading-weight, 700);
  text-decoration: none;
  letter-spacing: var(--site-heading-letter-spacing, 0);
  text-transform: var(--site-heading-transform, none);
}

.site-logo img {
  --logo-slot-height: calc(var(--site-header-height, 12vh) - var(--site-header-padding-top, 0px) - var(--site-header-padding-bottom, 0px) - 6px);
  display: block;
  width: auto;
  max-width: min(320px, 46vw);
  height: min(var(--logo-slot-height), var(--site-logo-height-config, 96px));
  object-fit: contain;
}

.site-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  padding: 9px;
}

.site-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.site-menu > .menu-item {
  display: inline-flex;
  align-items: center;
  align-self: center;
  line-height: 1;
}

.site-menu a {
  color: #fff;
  font-size: var(--site-nav-font-size, 13px);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}

.site-menu-backdrop {
  display: none;
}

.site-book {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: color-mix(in srgb, var(--theme-accent), transparent 12%);
  color: #fff;
  padding: 12px 18px;
  font-size: var(--site-button-font-size, 13px);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-book-mobile {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 80%);
  margin-left: 10%;
  padding-top: 80px;
}

.hero-copy h1 {
  margin-bottom: 14px;
  color: var(--site-hero-title-color, #fff);
  font-family: var(--site-hero-title-font, var(--site-heading-font, 'Raleway', Helvetica, Arial, Lucida, sans-serif));
  font-size: clamp(42px, 7vw, var(--site-hero-title-size, 82px));
  font-weight: var(--site-hero-title-weight, var(--site-heading-weight, 700));
  line-height: 0.95;
  letter-spacing: var(--site-hero-title-letter-spacing, var(--site-heading-letter-spacing, 0));
  text-shadow: var(--site-hero-title-shadow, none);
  text-transform: var(--site-hero-title-transform, var(--site-heading-transform, none));
}

.hero-copy p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
  font-size: calc(var(--site-body-font-size, 17px) + 1px);
  line-height: var(--site-body-line-height, 1.8);
}

.content-section {
  padding: 76px 10%;
}

.content-narrow {
  max-width: 860px;
}

.intro-site-section {
  width: 100%;
}

.intro-site-title {
  margin: 0 0 18px;
  color: var(--site-content-title-color, var(--site-heading-color, #181818));
  font-family: var(--site-content-title-font, var(--site-heading-font, 'Raleway', Helvetica, Arial, Lucida, sans-serif));
  font-weight: var(--site-content-title-weight, var(--site-heading-weight, 700));
  letter-spacing: var(--site-content-title-letter-spacing, var(--site-heading-letter-spacing, 0));
  line-height: 1.1;
  text-align: center;
  text-transform: var(--site-content-title-transform, var(--site-heading-transform, none));
}

h1.intro-site-title {
  font-size: calc(var(--site-section-title-size, 38px) + 12px);
}

h2.intro-site-title {
  font-size: var(--site-section-title-size, 38px);
}

h3.intro-site-title {
  font-size: calc(var(--site-section-title-size, 38px) - 8px);
}

h4.intro-site-title {
  font-size: calc(var(--site-section-title-size, 38px) - 14px);
}

h5.intro-site-title,
h6.intro-site-title {
  font-size: calc(var(--site-section-title-size, 38px) - 18px);
}

.intro-site-section > :last-child {
  margin-bottom: 0;
}

.content-section h2 {
  margin-bottom: 18px;
  color: var(--site-content-title-color, var(--site-heading-color, #181818));
  font-family: var(--site-content-title-font, var(--site-heading-font, 'Raleway', Helvetica, Arial, Lucida, sans-serif));
  font-size: var(--site-section-title-size, 38px);
  font-weight: var(--site-content-title-weight, var(--site-heading-weight, 700));
  letter-spacing: var(--site-content-title-letter-spacing, var(--site-heading-letter-spacing, 0));
  text-transform: var(--site-content-title-transform, var(--site-heading-transform, none));
}

.content-section p {
  color: var(--site-muted-color, #4d555d);
  font-size: var(--site-body-font-size, 17px);
  line-height: var(--site-body-line-height, 1.8);
}

.section-columns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 24px;
}

.builder-site-column {
  flex: 1 1 0;
  min-width: 0;
  max-width: var(--col-width, 100%);
}

.feature-box,
.contact-box {
  border: 1px solid #e0d7c8;
  background: #fff;
  padding: 24px;
}

.builder-site-column img {
  max-width: 100%;
  height: auto;
}

.builder-site-column > :last-child {
  margin-bottom: 0;
}

.builder-button-wrap {
  display: block;
}

.builder-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border-radius: var(--site-button-radius, 4px);
  font-size: var(--site-button-font-size, 15px);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.builder-button--sm {
  min-height: 36px;
  padding: 0.45rem 1rem;
  font-size: 13px;
}

.builder-button--lg {
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  font-size: 17px;
}

.builder-button--full {
  display: flex;
  width: 100%;
}

.builder-button.primary {
  background: var(--site-button-bg, var(--primary, #2271b1));
  border: 1px solid var(--site-button-bg, var(--primary, #2271b1));
  color: var(--site-button-text, #fff);
}

.builder-button.primary:hover {
  opacity: 0.92;
}

.builder-button.secondary {
  background: #f6f7f7;
  border: 1px solid #c3c4c7;
  color: var(--text, #1d2327);
}

.builder-button.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--primary, #2271b1);
}

.builder-button.outline {
  background: transparent;
  border: 1px solid var(--site-button-outline-border, var(--primary, #2271b1));
  color: var(--primary, #2271b1);
}

.builder-button-settings {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #dcdcde);
}

.builder-button-preview-wrap {
  margin-top: 8px;
}

.builder-button-preview {
  margin-top: 6px;
}

.builder-button--inline {
  display: inline-flex;
  vertical-align: middle;
  margin: 0.35rem 0 0.35rem 0.5rem;
}

.builder-button-wrap--block {
  display: block;
  margin-top: 1rem;
}

.intro-site-section .builder-button--inline,
.builder-site-column .builder-button--inline,
.builder-content-box .builder-button--inline,
.intro-visual-editor .builder-button--inline {
  margin-left: 0.35rem;
}

.builder-inline-button-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
}

.builder-inline-button-modal[hidden] {
  display: none !important;
}

.builder-inline-button-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.builder-inline-button-modal-card {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--border, #dcdcde);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 16px;
}

.builder-inline-button-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.builder-inline-button-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modern-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-thumb {
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #111;
  padding: 0;
  cursor: pointer;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 240ms ease, opacity 240ms ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus img {
  opacity: 0.88;
  transform: scale(1.04);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 24px 72px;
}

.gallery-lightbox figure {
  display: grid;
  gap: 12px;
  margin: 0;
  color: #fff;
  text-align: center;
}

.gallery-lightbox img {
  display: block;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-arrow {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.gallery-lightbox-close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.gallery-lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 72px;
  border-radius: 6px;
  font-size: 54px;
  transform: translateY(-50%);
}

.gallery-lightbox-arrow.prev {
  left: 18px;
}

.gallery-lightbox-arrow.next {
  right: 18px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
}

.contact-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
}

.contact-box .required-mark {
  color: #b32d2e;
  font-weight: 700;
}

.contact-box .field-label {
  display: inline-block;
}

.map-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.builder-map-embed {
  border-radius: 4px;
}

.theme-content-section {
  position: relative;
}

.theme-content-row {
  background-position: center;
  background-size: cover;
}

.theme-content-row h2 {
  margin-bottom: 24px;
  color: var(--site-content-title-color, var(--site-heading-color, #181818));
  font-family: var(--site-content-title-font, var(--site-heading-font, 'Raleway', Helvetica, Arial, Lucida, sans-serif));
  font-size: var(--site-section-title-size, 38px);
  font-weight: var(--site-content-title-weight, var(--site-heading-weight, 700));
  letter-spacing: var(--site-content-title-letter-spacing, var(--site-heading-letter-spacing, 0));
  text-transform: var(--site-content-title-transform, var(--site-heading-transform, none));
}

.theme-content-row-inner {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  width: var(--row-width, 100%);
}
@media (max-width: 768px) {
  .theme-content-row-inner {
    width: var(--row-mobile-width, var(--row-width, 100%)) !important;
  }
}

.site-footer {
  background: #171615;
  color: #f6efe2;
  padding: 48px 10% 0;
}

.site-footer--compact {
  padding-top: 0;
}

.site-footer--compact .footer-bottom {
  margin-top: 0;
  border-top: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-cols div {
  color: #d8cdbb;
  font-size: var(--site-footer-font-size, 16px);
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c7baa5;
  text-align: center;
}

.footer-bottom a {
  color: inherit;
}

@media (max-width: 980px) {
  .wp-admin-bar {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 24px;
  }

  .admin-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .form-grid > label,
  .form-grid > .wide.logo-preview-box,
  .form-grid .theme-section-body > label,
  .form-grid .theme-section-body > .wide.logo-preview-box,
  .theme-slide-field {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .logo-preview-box strong,
  .logo-preview-box > :not(strong) {
    grid-column: auto;
  }

  .form-grid > div.wide:not(.logo-preview-box),
  .form-grid .theme-section-body > div.wide:not(.logo-preview-box) {
    padding-left: 0;
  }

  .admin-shell,
  .two-col,
  .form-grid,
  .intro-spacing-grid,
  .intro-title-grid,
  .contact-preview,
  .footer-cols {
    grid-template-columns: 1fr !important;
  }

  .admin-sidebar {
    display: none;
    position: static;
    height: auto;
    padding-bottom: 0;
  }

  .admin-sidebar.open {
    display: block;
  }

  .admin-brand {
    display: none;
  }

  .admin-nav {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .admin-nav a.active::after {
    display: none;
  }

  .stats-grid,
  .row-fields,
  .builder-row-toolbar,
  .builder-row-toolbar.compact,
  .builder-columns,
  .menu-fields {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-menu-toggle {
    display: block;
    justify-self: start;
    z-index: 4001;
  }

  .site-logo {
    justify-self: center;
    grid-column: 2;
  }

  .site-header > .site-book {
    display: none;
  }

  .site-menu-backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 40%;
    z-index: 3999;
    background: rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .site-menu-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.site-menu-open {
    overflow: hidden;
  }

  .site-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 40%;
    min-width: 220px;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.32s ease;
    z-index: 4000;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: rgba(0, 0, 0, 0.94);
    padding: calc(18px + 46px + 5vh) 8% 32px 18px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.35);
    text-align: left;
  }

  .site-menu.open {
    transform: translateX(0);
  }

  body.site-menu-open .site-menu-toggle,
  .site-header.menu-open .site-menu-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 4002;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: transparent;
    color: #fff;
  }

  body.site-menu-open .site-menu-toggle span,
  .site-header.menu-open .site-menu-toggle span {
    background: #fff;
  }

  .site-menu > .menu-item.has-children ~ .menu-item:not(.has-children) > a {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    margin-top: 12px;
    padding-top: 16px;
  }

  .site-menu > .menu-item {
    display: block;
  }

  .site-menu a,
  .site-header.is-scrolled .site-menu a,
  .site-header.overlay-light .site-menu a {
    color: #fff !important;
    padding: 13px 0;
    border-bottom: 0;
    text-align: left;
    letter-spacing: 0.06em;
  }

  .site-menu > .menu-item > a {
    display: block;
  }

  .site-menu > .menu-item.has-children > a {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    margin: 12px 0 8px;
    padding: 16px 28px 16px 0;
    cursor: pointer;
  }

  .site-menu > .menu-item.has-children > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .site-menu > .menu-item.has-children.is-expanded > a::after {
    transform: translateY(-35%) rotate(-135deg);
  }

  .site-menu a:hover,
  .site-header.is-scrolled .site-menu a:hover,
  .site-header.overlay-light .site-menu a:hover {
    color: var(--theme-accent, #b89153) !important;
  }

  .site-menu .menu-children {
    position: static;
    display: none;
    gap: 0;
    background: transparent;
    padding: 0 0 8px 14px;
  }

  .site-menu .menu-item.has-children.is-expanded > .menu-children {
    display: grid;
  }

  .site-menu .menu-children a {
    font-size: var(--site-nav-font-size, 13px);
    opacity: 1;
    padding: 11px 0;
    border: 0;
    text-align: left;
  }

  .site-menu .menu-children .menu-item {
    text-align: left;
  }

  .site-header--minimal {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-header--minimal .site-menu-toggle {
    display: block;
    justify-self: start;
  }

  .site-header--minimal > .site-book {
    display: none;
  }

  .modern-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .gallery-lightbox {
    padding: 18px 48px;
  }

  .gallery-lightbox img {
    max-width: calc(100vw - 96px);
    max-height: calc(100vh - 120px);
  }
}

@media (max-width: 640px) {
  .admin-main,
  .content-section,
  .theme-content-row,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-topbar,
  .list-row,
  .site-health-panel .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .health-row {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .health-row .button {
    grid-column: 2;
    justify-self: start;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 0 6%;
  }

  .hero-copy {
    width: auto;
    margin-left: 0;
    padding-left: 6%;
    padding-right: 6%;
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .site-book-mobile {
    display: inline-flex;
    margin-top: 10px;
    justify-self: center;
  }

  .gallery-lightbox {
    padding: 18px 14px 84px;
  }

  .gallery-lightbox img {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 150px);
  }

  .gallery-lightbox-arrow {
    top: auto;
    bottom: 18px;
    width: 48px;
    height: 52px;
    font-size: 42px;
    transform: none;
  }

  .gallery-lightbox-arrow.prev {
    left: calc(50% - 58px);
  }

  .gallery-lightbox-arrow.next {
    right: calc(50% - 58px);
  }
}

/* --- CMS expansion --- */
.modern-gallery.layout-masonry { columns: 3; column-gap: 18px; }
.modern-gallery.layout-masonry .gallery-thumb { break-inside: avoid; margin-bottom: 18px; display: block; }
.gallery-caption { display: block; padding: 8px 0; font-size: 14px; color: var(--site-muted-color); }
.site-hero:not([style*="background-image"]) { background-image: var(--hero-desktop-image); background-size: cover; background-position: center center; background-repeat: no-repeat; }
@media (max-width: 900px) { .modern-gallery.layout-masonry { columns: 2; } }
@media (max-width: 640px) {
  .site-hero { background-image: var(--hero-mobile-image, var(--hero-desktop-image)) !important; background-position: center center !important; background-size: cover !important; background-repeat: no-repeat !important; }
}
@media (max-width: 900px) {
  .builder-site-column {
    max-width: var(--col-tablet-width, var(--col-width, 100%));
  }
}

@media (max-width: 768px) {
  .section-columns {
    flex-wrap: wrap;
    column-gap: 0 !important;
  }
  /* Per-column mobile flex/width are emitted as inline <style> blocks by layout.blade.php */
}
.theme-content-row.hide-desktop { display: none; }
@media (max-width: 900px) { .theme-content-row.hide-tablet { display: none; } .theme-content-row.hide-desktop { display: block; } }
@media (max-width: 640px) { .theme-content-row.hide-mobile { display: none; } }
.theme-content-row.align-center { text-align: center; }
.theme-content-row.align-right { text-align: right; }
.site-header.is-static { position: absolute; }
.site-header.overlay-light { color: #111; }
.site-header.overlay-light .site-menu a { color: #111; }
.site-header.overlay-light:not(.is-scrolled) {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}
.menu-item.has-children { position: relative; }
.menu-children { display: none; position: absolute; top: 100%; left: 0; background: rgba(0,0,0,.88); padding: 10px; min-width: 180px; z-index: 30; }
.menu-children .menu-item { display: block; line-height: 1.4; }
.menu-item.has-children:hover .menu-children { display: grid; gap: 8px; }
.footer-social, .footer-menu, .footer-newsletter { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  line-height: 1.45;
}
.cookie-consent[hidden],
.cookie-consent.is-dismissed {
  display: none !important;
}
.cookie-consent p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  max-width: 72ch;
}
.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 12px;
}
.cookie-consent-actions a {
  color: #fff;
  opacity: 0.85;
  font-size: 12px;
}
.cookie-consent-actions .button {
  font-size: 12px;
  padding: 8px 14px;
}
.media-drop-zone { border: 2px dashed #c8c2b8; padding: 24px; text-align: center; border-radius: 8px; }
.media-drop-zone.is-dragover { border-color: var(--theme-accent, #b89153); background: #faf8f4; }
.media-bulk-picker input[type="file"] { display: none; }
.media-bulk-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--theme-accent, #b89153);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.media-bulk-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.media-bulk-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}
.media-bulk-queue-item {
  padding: 10px 12px;
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.media-bulk-queue-item.is-invalid {
  border-color: #d63638;
  background: #fcf0f1;
  color: #8a1f1f;
}
.media-bulk-progress {
  height: 8px;
  border-radius: 999px;
  background: #eceff2;
  overflow: hidden;
}
.media-bulk-progress-bar {
  height: 100%;
  width: 0;
  background: var(--theme-accent, #b89153);
  transition: width 0.2s ease;
}
.media-list .media-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.list-row.is-read { opacity: 0.65; }
.template-full-width .content-section { max-width: none; }

.shortcode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.shortcode-pill code,
.shortcode-embed code {
  background: #f0f2f4;
  border: 1px solid #dfe3e6;
  border-radius: 6px;
  padding: 3px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #1d2327;
}
.shortcode-embed {
  background: #f6f8fa;
  border: 1px solid #e2e6ea;
  border-radius: 10px;
  padding: 14px 16px;
}
.shortcode-embed-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.shortcode-embed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.shortcode-embed p.muted { margin-top: 8px; margin-bottom: 0; }
