:root {
  --background: 220 18% 97%;
  --foreground: 220 20% 10%;
  --card: 0 0% 100%;
  --muted: 220 14% 92%;
  --muted-foreground: 220 10% 50%;
  --border: 220 14% 90%;
  --primary: 216 83% 54%;
  --primary-soft: 216 88% 95%;
  --magenta: 332 86% 51%;
  --magenta-soft: 332 88% 96%;
  --success: 152 60% 42%;
  --danger: 0 65% 55%;
  --shadow: 0 2px 4px rgb(18 24 38 / .04), 0 18px 40px rgb(18 24 38 / .05);
  --media-overlay-color: #476A82;
  --media-overlay-gradient: linear-gradient(0deg, var(--media-overlay-color) 0%, rgba(255, 255, 255, 0) 85%);
  --section-spacing-y: 39px;
  --section-spacing-y-mobile: 29px;
  --hero-slider-content-bottom: clamp(28px, 3.2vw, 56px);
  --hero-slider-content-bottom-mobile: clamp(22px, 6vw, 34px);
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  letter-spacing: 0;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.mobile-only { display: none !important; }

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px;
  background: #fff;
  border-right: 1px solid #e8ebf1;
  box-shadow: 10px 0 30px rgb(18 24 38 / .03);
  z-index: 80;
}
.admin-logo {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-weight: 800;
  font-size: 19px;
}
.logo-mark, .login-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: hsl(var(--primary));
  font-weight: 850;
}
.sidebar-nav {
  display: grid;
  gap: 3px;
  overflow-y: auto;
}
.sidebar-nav p {
  margin: 20px 12px 9px;
  font-size: 15px;
  font-weight: 780;
}
.nav-link, .logout-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  color: #6f7788;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  transition: .18s ease;
}
.nav-link:hover, .logout-link:hover, .nav-link.active {
  color: hsl(var(--magenta));
  background: hsl(var(--magenta-soft));
}
.nav-link.active { position: relative; }
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: hsl(var(--magenta));
}
.nav-subgroup {
  display: grid;
  gap: 3px;
  margin: 2px 0 8px 18px;
  padding-left: 12px;
  border-left: 2px solid #e6edf7;
}
.nav-sublink {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7c8698;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
.nav-sublink:hover,
.nav-sublink.active {
  background: #eef4ff;
  color: hsl(var(--primary));
}
.sidebar-profile {
  margin-top: auto;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 10px;
  border: 0;
  border-top: 1px solid #eef1f5;
  border-radius: 14px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sidebar-profile:hover { background: #f6f8fb; }
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-weight: 850;
}
.sidebar-profile strong { display: block; font-size: 13px; }
.sidebar-profile span { display: block; color: #747d90; font-size: 12px; }
.sidebar-backdrop { display: none; }

.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(320px, 560px) auto;
  gap: 16px;
  align-items: center;
  padding: 0 28px;
  background: rgb(255 255 255 / 86%);
  border-bottom: 1px solid #e9edf3;
  backdrop-filter: blur(18px);
}
.topbar-title strong { display: block; font-size: 15px; }
.topbar-title span { color: #747d90; font-size: 13px; }
.search-box {
  min-height: 48px;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  background: #f7f8fb;
  border: 1px solid #e2e7ef;
  border-radius: 16px;
}
.search-box:focus-within {
  background: #fff;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .16);
}
.search-box input { min-width: 0; border: 0; background: transparent; outline: 0; }
kbd {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe1ea;
  color: #747d90;
  font-size: 12px;
}
.topbar-actions { display: flex; gap: 8px; justify-content: end; align-items: center; }
.top-language {
  position: relative;
}
.top-language::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  min-width: 190px;
  height: 24px;
}
.top-language-trigger {
  min-width: 68px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 13px;
  color: #747d90;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.top-language-trigger:hover,
.top-language:focus-within .top-language-trigger {
  color: hsl(var(--magenta));
  background: hsl(var(--magenta-soft));
}
.top-language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 80;
  display: grid;
  min-width: 190px;
  gap: 6px;
  padding: 8px;
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}
.top-language:hover .top-language-menu,
.top-language:focus-within .top-language-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.top-language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #5d6678;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.top-language-menu a:hover,
.top-language-menu a.active {
  color: hsl(var(--magenta));
  background: hsl(var(--magenta-soft));
}
.top-language-menu span {
  color: #8992a3;
  font-size: 11px;
  font-weight: 850;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: #747d90;
  background: transparent;
}
.icon-btn:hover, .icon-btn.active {
  color: hsl(var(--magenta));
  background: hsl(var(--magenta-soft));
}
.bottom-nav { display: none; }
.content {
  max-width: 1520px;
  padding: 30px 34px;
}
.panel { display: none; }
.panel.active { display: block; }
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(30px, 4vw, 38px); line-height: 1.08; font-weight: 780; }
h2 { margin-bottom: 14px; font-size: 18px; }
.page-head p, .muted { color: hsl(var(--muted-foreground)); line-height: 1.55; }
.card, .metric-card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.metric-card {
  min-height: 104px;
  display: grid;
  gap: 5px;
}
.metric-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
}
.metric-card strong { font-size: 32px; line-height: 1; }
.metric-card em { color: #747d90; font-style: normal; font-size: 13px; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.row {
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #edf0f4;
}
.row span {
  display: grid;
  gap: 3px;
}
.row span em {
  color: #7b8496;
  font-size: 12px;
  font-style: normal;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.card-title-row h2 {
  margin: 0;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}
.btn.primary { color: #fff; background: hsl(var(--primary)); box-shadow: 0 10px 22px hsl(var(--primary) / .18); }
.btn.primary:hover { background: hsl(var(--magenta)); box-shadow: 0 10px 22px hsl(var(--magenta) / .18); }
.btn.secondary { color: #727b8d; background: #f3f5f8; }
.btn.secondary:hover { color: hsl(var(--magenta)); background: hsl(var(--magenta-soft)); }
.btn.warning { color: #b45309; background: #fff7ed; }
.btn.warning:hover { color: #9a3412; background: #fed7aa; }
.toolbar, .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar { margin-bottom: 14px; }
label span, .toolbar label {
  display: block;
  color: #747d90;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d9dee7;
  border-radius: 14px;
  background: #fff;
  color: hsl(var(--foreground));
  outline: 0;
}
input:focus, select:focus, textarea:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .16);
}
textarea { min-height: 138px; resize: vertical; }
.code-area {
  min-height: 310px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.code-area.small { min-height: 170px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.span-2 { grid-column: span 2; }
.plugins-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.plugin-list-card,
.plugin-editor-card {
  min-height: 220px;
}
.plugin-list {
  display: grid;
  gap: 10px;
}
.plugin-item {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-align: left;
}
.plugin-item.active {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / .12);
}
.plugin-item-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-weight: 900;
}
.plugin-item strong,
.plugin-item small {
  display: block;
}
.plugin-item strong {
  font-size: 15px;
}
.plugin-item small {
  margin-top: 3px;
  color: #747d90;
  line-height: 1.35;
}
.plugin-item em {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.plugin-item em.is-on {
  color: #168052;
  background: #e9f8f1;
}
.plugin-item em.is-off {
  color: #8791a2;
  background: #f2f4f7;
}
.plugin-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf0f4;
  margin-bottom: 16px;
}
.plugin-editor-head > div > span {
  color: hsl(var(--magenta));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.plugin-editor-head h2 {
  margin-bottom: 4px;
  font-size: 26px;
}
.plugin-editor-head p {
  margin-bottom: 0;
  color: #747d90;
}
.switch-line {
  min-width: 150px;
  display: inline-flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #f8fafc;
}
.switch-line.compact {
  min-width: 0;
}
.switch-line input {
  width: 22px;
  min-height: 22px;
  padding: 0;
}
.plugin-settings-grid,
.cookie-category-grid,
.cookie-text-grid,
.plugin-appearance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.plugin-appearance-card {
  margin: 18px 0;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.plugin-appearance-card summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  font-weight: 900;
}
.plugin-appearance-card summary span {
  color: #747d90;
  font-size: 13px;
}
.plugin-appearance-grid {
  padding: 14px;
}
.plugin-appearance-grid .span-2 {
  grid-column: 1 / -1;
}
.settings-subcard {
  padding: 16px;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  background: #f8fafc;
}
.language-manager {
  display: grid;
  gap: 14px;
}
.language-manager-list {
  display: grid;
  gap: 10px;
}
.language-row {
  display: grid;
  grid-template-columns: minmax(92px, .7fr) minmax(140px, 1.2fr) minmax(132px, auto) minmax(132px, auto) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e3e8f0;
  border-radius: 14px;
  background: #fff;
}
.language-row label span {
  min-height: auto;
}
.language-manager-add {
  display: grid;
  grid-template-columns: minmax(92px, .7fr) minmax(140px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
}
.settings-section-head.compact {
  margin-bottom: 14px;
}
.settings-section-head.compact h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.settings-section-head.compact p {
  margin: 0;
}
.health-admin-shell {
  padding: 0;
  overflow: hidden;
}
.health-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid #e8edf5;
  background: linear-gradient(135deg, #fff, #f8fbff);
}
.health-admin-head h2 {
  margin: 0 0 4px;
}
.health-admin-head p {
  margin: 0;
  color: #747d90;
}
.health-admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 520px;
}
.health-admin-side {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid #e8edf5;
  background: #f8fafc;
}
.health-admin-side > strong {
  margin-top: 4px;
  color: #7c8698;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.health-admin-main {
  min-width: 0;
  padding: 18px;
}
.health-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #fff;
}
.health-admin-toolbar span {
  color: #111827;
  font-weight: 900;
}
.health-admin-toolbar small {
  color: #7c8698;
  font-weight: 800;
}
.health-admin-tabs {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  background: #fff;
}
.health-admin-tabs button {
  width: 100%;
  min-height: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 0;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: #667085;
}
.health-admin-tabs button.active {
  background: hsl(var(--primary));
  color: #fff;
  box-shadow: 0 10px 24px hsl(var(--primary) / .2);
}
.health-admin-tabs em {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: hsl(var(--primary));
  font-style: normal;
  font-size: 12px;
}
.health-admin-tabs button.active em {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.health-admin-list {
  display: grid;
  gap: 12px;
}
.health-record {
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.health-record[open] {
  border-color: hsl(var(--primary) / .42);
  box-shadow: 0 16px 38px rgba(15,23,42,.08);
}
.health-record summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  list-style: none;
}
.health-record summary::-webkit-details-marker {
  display: none;
}
.health-record summary strong,
.health-record summary em {
  display: block;
}
.health-record summary em {
  color: #747d90;
  font-style: normal;
  font-size: 13px;
}
.health-record summary b {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #087443;
  font-size: 12px;
}
.health-record-form {
  padding: 0 16px 16px;
}
.health-relation-field {
  display: grid;
  gap: 9px;
}
.health-relation-field > span {
  color: #7b8495;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.health-relation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px dashed #c8d6ea;
  border-radius: 16px;
  background: #f8fbff;
}
.health-relation-options button {
  width: auto;
  min-height: 36px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #dce5f2;
  border-radius: 999px;
  background: #fff;
  color: #4f5f76;
  font-size: 13px;
  font-weight: 900;
}
.health-relation-options button.active {
  border-color: hsl(var(--primary));
  background: #eaf2ff;
  color: hsl(var(--primary));
}
.health-relation-options em {
  color: #7c8698;
  font-style: normal;
  font-weight: 800;
}
.health-selected-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.health-selected-badges b,
.health-selected-badges small {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #4f5f76;
  font-size: 12px;
  font-weight: 900;
}
.health-selected-badges small {
  background: #f1f5f9;
  color: #8893a5;
}
.health-empty-state {
  padding: 34px;
  text-align: center;
}
.plugin-color-field > span:last-child {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.plugin-color-field input[type="color"] {
  width: 46px;
  min-height: 46px;
  padding: 4px;
}
.settings-section-head.compact {
  margin: 20px 0 10px;
}
.settings-section-head.compact h2 {
  margin-bottom: 3px;
}
.cookie-category-admin {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fbfcfe;
}
.cookie-category-admin input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  margin-top: 2px;
}
.cookie-category-admin strong,
.cookie-category-admin small {
  display: block;
}
.cookie-category-admin small {
  color: #747d90;
}
.cookie-category-admin.is-locked {
  background: #f3f8ff;
}
.cookie-language-list {
  display: grid;
  gap: 12px;
}
.cookie-language-card {
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.cookie-language-card summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  font-weight: 900;
}
.cookie-language-card summary span {
  color: #747d90;
}
.cookie-text-grid {
  padding: 14px;
}
.legal-content-field {
  display: grid;
}
.legal-content-editor {
  min-height: 360px;
  max-height: 520px;
}
.legal-language-card .cookie-text-grid {
  gap: 12px;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}
.inspector {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}
.page-publish-panel,
.block-add-panel {
  display: grid;
  gap: 12px;
}
.page-publish-panel {
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  background: #fafbfc;
}
.page-publish-panel h2,
.block-add-panel h2 {
  margin-bottom: 0;
  font-size: 17px;
}
.page-publish-panel p {
  margin: 3px 0 0;
  color: #747d90;
  font-size: 12px;
  font-weight: 700;
}
.canvas-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-top: 22px;
}
.canvas-head span { color: #747d90; font-size: 13px; }
.editor-canvas {
  display: grid;
  gap: 14px;
  min-height: 430px;
  padding: 16px;
  border: 2px dashed #d7dde7;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.canvas-menu-preview {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #fff;
}
.canvas-menu-preview div { display: flex; gap: 8px; align-items: center; }
.canvas-menu-preview strong { font-size: 14px; }
.canvas-menu-preview em {
  padding: 3px 7px;
  border-radius: 999px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.canvas-menu-preview nav { display: flex; gap: 7px; flex-wrap: wrap; justify-content: end; }
.canvas-menu-preview span {
  padding: 6px 9px;
  border-radius: 10px;
  background: #f3f5f8;
  color: #647084;
  font-size: 12px;
  font-weight: 750;
}
.canvas-menu-preview span.highlighted { color: #fff; background: hsl(var(--primary)); }
.block-list, .card-list { display: grid; gap: 10px; }
.page-list-pane,
.page-editor-pane {
  display: grid;
  gap: 18px;
}
.page-list-pane[hidden],
.page-editor-pane[hidden] {
  display: none;
}
.page-manager-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.page-manager-list {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
}
.page-manager-list h2 { margin-bottom: 0; }
.page-card-list {
  display: grid;
  gap: 12px;
  width: 100%;
}
.template-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 16px;
  align-items: start;
}
.template-canvas-shell {
  overflow: hidden;
  border: 1px solid #e2e7ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(17 24 39 / .06);
}
.template-canvas-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  background: #111827;
}
.template-canvas-bar label {
  min-width: min(260px, 100%);
  color: #94a3b8;
}
.template-canvas-bar label span {
  color: #94a3b8;
  font-size: 10px;
}
.template-canvas-bar select,
.template-canvas-bar input {
  width: 100%;
  min-height: 34px;
  border-color: #293548;
  background: #0b1120;
  color: #e5e7eb;
  font-size: 13px;
}
.template-language-pills,
.template-device-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #243044;
  border-radius: 14px;
  background: #0b1120;
}
.template-language-pills a,
.template-device-switch button {
  min-width: 36px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #94a3b8;
  background: transparent;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}
.template-language-pills a.active,
.template-device-switch button.active {
  color: #fff;
  background: hsl(var(--primary));
}
.template-device-switch .icon {
  width: 16px;
  height: 16px;
}
.template-page-actions {
  display: inline-flex;
  align-items: end;
  gap: 6px;
  align-self: end;
}
.template-canvas-viewport {
  min-height: 620px;
  display: flex;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  background: #0b1120;
}
.template-device-frame {
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #243044;
  border-radius: 24px;
  background: #f8fafc;
  box-shadow: 0 24px 80px rgb(0 0 0 / .25);
}
.template-canvas-viewport.mobile .template-device-frame {
  width: 390px;
  border-width: 8px;
  border-color: #1f2937;
  border-radius: 34px;
}
.template-topbar-chrome,
.template-site-chrome {
  display: grid;
  gap: 0;
  background: #f8fafc;
}
.template-topbar-chrome {
  position: relative;
  z-index: 20;
  padding: 0;
}
.template-site-chrome {
  padding: 0;
  border-bottom: 1px solid #e6ebf2;
}
.template-client-preview-field {
  min-width: 230px;
}
.template-client-preview-shell {
  background: #0f172a;
  color: #172033;
  overflow: hidden;
}
.template-block-canvas.is-client-preview {
  min-height: 860px;
  padding: 0;
  background: #0f172a;
}
.template-client-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 10px 14px;
  color: #dbe7ff;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.template-client-preview-toolbar strong,
.template-client-preview-toolbar span {
  display: block;
}
.template-client-preview-toolbar strong {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.template-client-preview-toolbar span {
  margin-top: 2px;
  color: #9fb0ce;
  font-size: 12px;
  font-weight: 800;
}
.template-client-preview-toolbar a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  background: #2f7df0;
  border-radius: 10px;
}
.template-client-preview-frame {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  background: #ffffff;
}
.template-canvas-viewport.mobile .template-block-canvas.is-client-preview {
  min-height: 780px;
}
.template-canvas-viewport.mobile .template-client-preview-toolbar {
  align-items: flex-start;
  flex-direction: column;
}
.template-canvas-viewport.mobile .template-client-preview-frame {
  height: 780px;
}
.template-live-preview {
  --brand-primary: #2563eb;
  --brand-accent: #e11d72;
  --ink: #111827;
  --muted: #667085;
  --line: #e6ebf2;
  --soft: #f6f8fb;
  color: #172033;
}
.template-live-preview a {
  color: inherit;
}
.template-live-preview img {
  max-width: 100%;
  height: auto;
}
.template-live-preview .site-header,
.template-live-preview .site-footer {
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}
.template-live-preview .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 850;
}
.template-live-preview .brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--brand-primary);
}
.template-live-preview .site-nav,
.template-live-preview .site-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}
.template-live-preview .site-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.template-live-preview .site-menu a,
.template-live-preview .site-header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #526071;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.template-live-preview .site-header-cta {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  color: #fff;
  background: var(--brand-primary);
}
.template-live-preview .mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
}
.template-live-preview .mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.template-live-preview .block {
  padding: var(--section-spacing-y) 24px;
}
.template-live-preview .block-layout-grid {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}
.template-live-preview .block-layout-wide {
  width: 100%;
  max-width: none;
}
.template-live-preview .block-layout-narrow {
  width: min(860px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}
.template-live-preview .block-layout-grid,
.template-live-preview .block-layout-wide.block-content-grid,
.template-live-preview .block-layout-wide.block-content-full {
  padding-right: 0;
  padding-left: 0;
}
.template-live-preview .block-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.template-live-preview .block-content-grid > .block-inner {
  width: 100%;
  max-width: none;
}
.template-live-preview .block-content-grid.block-layout-wide > .block-inner {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}
.template-live-preview .block-content-full > .block-inner {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}
.template-live-preview .block-slider.block-content-grid.block-layout-wide > .block-inner,
.template-live-preview .block-hero.block-content-grid.block-layout-wide > .block-inner {
  width: 100%;
  max-width: none;
}
.template-live-preview .block-slider.block-content-grid.block-layout-wide .slide,
.template-live-preview .block-hero.block-content-grid.block-layout-wide .hero-grid {
  padding-right: max(32px, calc((100% - 1440px) / 2 + 32px));
  padding-left: max(32px, calc((100% - 1440px) / 2 + 32px));
}
.template-live-preview .hero-grid,
.template-live-preview .split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}
.template-live-preview .block-hero .hero-grid {
  align-items: start;
}
.template-live-preview .hero-image-left .hero-media {
  order: -1;
}
.template-live-preview .hero-image-right .hero-copy {
  grid-column: 1;
  grid-row: 1;
}
.template-live-preview .hero-image-right .hero-media {
  grid-column: 2;
  grid-row: 1;
}
.template-live-preview .hero-image-left .hero-media {
  grid-column: 1;
  grid-row: 1;
  order: 0;
}
.template-live-preview .hero-image-left .hero-copy {
  grid-column: 2;
  grid-row: 1;
}
.template-live-preview .split.reverse .prose {
  order: 2;
}
.template-live-preview h1,
.template-live-preview h2,
.template-live-preview h3,
.template-live-preview p {
  letter-spacing: 0;
}
.template-live-preview h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: .98;
}
.template-live-preview h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}
.template-live-preview h3 {
  margin: 0 0 8px;
}
.template-live-preview .lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}
.template-live-preview .prose,
.template-live-preview .block-html,
.template-live-preview .content-form-copy .prose,
.template-live-preview .blog-detail-body {
  max-width: 100%;
  overflow-x: auto;
}
.template-live-preview .prose .responsive-table,
.template-live-preview .block-html .responsive-table,
.template-live-preview .content-form-copy .responsive-table,
.template-live-preview .blog-detail-body .responsive-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0 26px;
  border-radius: 16px;
}
.template-live-preview .prose table,
.template-live-preview .block-html table,
.template-live-preview .content-form-copy table,
.template-live-preview .blog-detail-body table {
  width: 100%;
  min-width: 620px;
  display: table;
  margin: 20px 0 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  table-layout: auto;
}
.template-live-preview .prose .responsive-table table,
.template-live-preview .block-html .responsive-table table,
.template-live-preview .content-form-copy .responsive-table table,
.template-live-preview .blog-detail-body .responsive-table table {
  width: 100%;
  min-width: 100%;
  margin: 0;
}
.template-live-preview .prose .responsive-table :where(th, td),
.template-live-preview .block-html .responsive-table :where(th, td),
.template-live-preview .content-form-copy .responsive-table :where(th, td),
.template-live-preview .blog-detail-body .responsive-table :where(th, td) {
  overflow-wrap: anywhere;
}
.template-live-preview .prose :where(th, td),
.template-live-preview .block-html :where(th, td),
.template-live-preview .content-form-copy :where(th, td),
.template-live-preview .blog-detail-body :where(th, td) {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}
.template-live-preview .prose :where(th:last-child, td:last-child),
.template-live-preview .block-html :where(th:last-child, td:last-child),
.template-live-preview .content-form-copy :where(th:last-child, td:last-child),
.template-live-preview .blog-detail-body :where(th:last-child, td:last-child) {
  border-right: 0;
}
.template-live-preview .prose tr:last-child :where(th, td),
.template-live-preview .block-html tr:last-child :where(th, td),
.template-live-preview .content-form-copy tr:last-child :where(th, td),
.template-live-preview .blog-detail-body tr:last-child :where(th, td) {
  border-bottom: 0;
}
.template-live-preview .prose th,
.template-live-preview .block-html th,
.template-live-preview .content-form-copy th,
.template-live-preview .blog-detail-body th {
  background: var(--soft);
  font-weight: 850;
}
.template-live-preview .button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 11px 16px;
  border-radius: 14px;
  color: #fff;
  background: var(--brand-primary);
  text-decoration: none;
  font-weight: 800;
}
.template-live-preview .content-form-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.template-live-preview .content-form-copy {
  min-width: 0;
  padding: clamp(12px, 1.8vw, 28px) clamp(16px, 2.4vw, 32px);
}
.template-live-preview .content-form-copy .prose {
  max-width: none;
  overflow-x: visible;
}
.template-live-preview .content-form-copy .prose :where(p, div):empty,
.template-live-preview .content-form-copy .prose p:has(> br:only-child) {
  display: none;
}
.template-live-preview .content-form-copy .prose > br:last-child,
.template-live-preview .content-form-copy .prose > div:last-child > br:last-child {
  display: none;
}
.template-live-preview .content-form-copy table {
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}
.template-live-preview .content-form-copy :where(th, td) {
  overflow-wrap: anywhere;
  word-break: normal;
}
.template-live-preview .content-form-card {
  align-self: stretch;
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--block-radius, 22px);
  background: #fff;
  box-shadow: 0 18px 40px rgb(18 24 38 / .05);
}
.template-live-preview .block-content-form {
  max-width: 100%;
  min-width: 0;
  background: transparent !important;
  box-shadow: none !important;
}
@media (max-width: 1100px) {
  .template-live-preview .content-form-panel {
    grid-template-columns: 1fr;
  }
}
.template-live-preview .hero-media,
.template-live-preview .split-image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--soft);
  box-shadow: 0 22px 55px rgb(18 24 38 / .12);
}
.template-live-preview .block-hero .hero-media {
  isolation: isolate;
}
.template-live-preview .block-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--media-overlay-color);
  background: var(--media-overlay-gradient);
}
.template-live-preview .hero-media img,
.template-live-preview .split-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}
.template-live-preview .block-slider {
  overflow: hidden;
  background: var(--soft);
}
.template-live-preview .slider-shell {
  position: relative;
}
.template-live-preview .slider-track {
  position: relative;
  min-height: clamp(520px, 46vw, 600px);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 55px rgb(18 24 38 / .10);
}
.template-live-preview .slide {
  position: absolute;
  inset: 0;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  opacity: 0;
  pointer-events: none;
}
.template-live-preview .slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.template-live-preview .slide img {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
  background: var(--line);
}
.template-live-preview .hero-layout-wide .hero-grid,
.template-live-preview .hero-layout-wide .slider-track {
  min-height: clamp(520px, 46vw, 600px);
}
.template-live-preview .hero-layout-wide .hero-media img,
.template-live-preview .hero-layout-wide .slide img {
  min-height: clamp(380px, 48vh, 560px);
  aspect-ratio: auto;
}
.template-live-preview .slide-content {
  position: absolute;
  left: clamp(28px, 5vw, 64px);
  bottom: var(--hero-slider-content-bottom);
  z-index: 2;
  width: min(760px, calc(100% - clamp(56px, 10vw, 128px)));
  max-width: 100%;
  order: -1;
  margin-bottom: 0;
}
.template-live-preview .slide-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--media-overlay-color);
  background: var(--media-overlay-gradient);
}
.template-live-preview .slider-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / .82);
  box-shadow: 0 16px 38px rgb(18 24 38 / .12);
}
.template-live-preview .slider-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font-size: 24px;
  font-weight: 800;
}
.template-live-preview .slider-dots {
  display: flex;
  gap: 6px;
}
.template-live-preview .slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: #c8d0dc;
}
.template-live-preview .slider-dots button.is-active {
  width: 24px;
  background: var(--brand-primary);
}
.template-live-preview .feature-grid,
.template-live-preview .testimonial-grid,
.template-live-preview .team-grid,
.template-live-preview .post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.template-live-preview .feature-card,
.template-live-preview .quote-card,
.template-live-preview .team-card,
.template-live-preview .post-teaser {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgb(18 24 38 / .05);
}
.template-live-preview .feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary), white 88%);
  font-weight: 850;
}
.template-live-preview .prose {
  color: #344054;
  font-size: 18px;
}
.template-live-preview .block-richtext .prose {
  max-width: 860px;
}
.template-live-preview .block-richtext.block-content-full .prose,
.template-live-preview .block-richtext.block-layout-wide .prose {
  max-width: none;
}
.template-live-preview .block-richtext .prose > .responsive-table {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  margin-right: 0;
  margin-left: 50%;
  transform: translateX(-50%);
}
.template-live-preview .block-richtext.block-layout-grid .prose > .responsive-table,
.template-live-preview .block-richtext.block-layout-wide .prose > .responsive-table,
.template-live-preview .block-richtext.block-content-full .prose > .responsive-table {
  width: min(1440px, calc(100vw - 64px));
}
.template-canvas-viewport.mobile .template-live-preview .block-richtext .prose > .responsive-table,
.template-canvas-viewport.mobile .template-live-preview .block-richtext.block-layout-grid .prose > .responsive-table,
.template-canvas-viewport.mobile .template-live-preview .block-richtext.block-layout-wide .prose > .responsive-table,
.template-canvas-viewport.mobile .template-live-preview .block-richtext.block-content-full .prose > .responsive-table {
  width: calc(100vw - 32px);
}
.template-live-preview .team-card {
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: center;
}
.template-live-preview .team-card .avatar-img {
  width: 78px;
  height: 78px;
  margin: 0 auto 8px;
  border-radius: 50%;
  object-fit: cover;
}
.template-live-preview .team-card strong {
  color: var(--ink);
  font-size: 18px;
}
.template-live-preview .team-card span,
.template-live-preview .team-card p {
  color: var(--muted);
}
.template-live-preview .team-card p {
  margin: 0;
  font-size: 14px;
}
.template-live-preview .logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}
.template-live-preview .logo-grid a,
.template-live-preview .logo-grid .logo-item {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgb(18 24 38 / .045);
}
.template-live-preview .logo-grid img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}
.template-live-preview .logo-grid strong {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary), white 88%);
}
.template-live-preview .feature-icon svg {
  width: 24px;
  height: 24px;
}
.template-live-preview .logo-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.template-live-preview .social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.template-live-preview .social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 15px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 12px 24px rgb(18 24 38 / .04);
}
.template-live-preview .social-pill span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-primary);
  font-size: 12px;
}
.template-live-preview .public-form {
  display: grid;
  gap: 12px;
}
.template-live-preview .public-form.form-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.template-live-preview .public-form .form-field-wide,
.template-live-preview .public-form .form-message,
.template-live-preview .public-form button {
  grid-column: 1 / -1;
}
.template-live-preview .public-form label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.template-live-preview .public-form input,
.template-live-preview .public-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #d9dee7;
  border-radius: 13px;
}
.template-live-preview .public-form textarea {
  min-height: 118px;
}
.template-live-preview .gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.template-live-preview .gallery-grid figure {
  margin: 0;
}
.template-live-preview .gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: var(--line);
}
.template-live-preview .gallery-display-carousel .gallery-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.template-live-preview .gallery-display-carousel .gallery-grid::-webkit-scrollbar {
  display: none;
}
.template-live-preview .gallery-display-carousel .gallery-grid figure {
  flex: 0 0 calc((100% - 48px) / 5);
}
.template-live-preview .gallery-display-carousel .gallery-grid img {
  box-shadow: none !important;
}
.template-live-preview .gallery-display-masonry .gallery-grid {
  display: block;
  column-count: 4;
  column-gap: 18px;
}
.template-live-preview .gallery-display-masonry .gallery-grid figure {
  break-inside: avoid;
  margin-bottom: 18px;
}
.template-live-preview .quote-card p,
.template-live-preview .quote-text {
  color: #344054;
  font-size: 18px;
}
.template-live-preview .quote-card span,
.template-live-preview .post-teaser p,
.template-live-preview .post-teaser span {
  color: var(--muted);
}
.template-live-preview .block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.template-live-preview .block-head h2 {
  margin: 0;
}
.template-live-preview .block-head a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-primary);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
}
.template-live-preview .services-head {
  max-width: 980px;
  margin: 0 auto clamp(28px, 5vw, 58px);
  text-align: center;
}
.template-live-preview .services-head p {
  margin: 0 0 16px;
  color: var(--brand-primary);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.template-live-preview .services-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5.2vw, 78px);
  line-height: 1.02;
}
.template-live-preview .services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.template-live-preview .service-card {
  position: relative;
  min-height: clamp(320px, 31vw, 480px);
  display: block;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .5);
  border-radius: 22px;
  background: color-mix(in srgb, var(--service-gradient-color, var(--media-overlay-color)), white 84%);
  color: var(--service-text-color, #fff);
  box-shadow: 0 22px 60px rgb(15 23 42 / .08);
  text-decoration: none;
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease;
}
.template-live-preview .service-card img,
.template-live-preview .service-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.template-live-preview .service-card img {
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), filter .55s ease;
}
.template-live-preview .service-card-placeholder {
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / .92);
  background: var(--media-overlay-color);
  background: var(--media-overlay-gradient), var(--media-overlay-color);
  font-size: 74px;
  font-weight: 900;
}
.template-live-preview .service-card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--media-overlay-color);
  background: var(--media-overlay-gradient);
  transition: opacity .35s ease;
}
.template-live-preview .service-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 34px);
  color: var(--service-text-color, #fff);
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.2, .8, .2, 1);
}
.template-live-preview .service-card-eyebrow {
  color: color-mix(in srgb, var(--service-text-color, #fff), var(--brand-accent, #ff7468) 30%);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}
.template-live-preview .service-card strong {
  max-width: 92%;
  color: var(--service-text-color, #fff);
  font-size: clamp(24px, 2.2vw, 35px);
  line-height: 1.12;
}
.template-live-preview .service-card-reveal {
  max-height: 0;
  display: grid;
  gap: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height .42s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, transform .38s cubic-bezier(.2, .8, .2, 1);
}
.template-live-preview .service-card em {
  max-width: 90%;
  display: block;
  color: color-mix(in srgb, var(--service-text-color, #fff), transparent 10%);
  font-style: normal;
  font-size: 15px;
  line-height: 1.55;
}
.template-live-preview .service-card-button {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--service-text-color, #fff), transparent 58%);
  border-radius: 999px;
  background: rgb(255 255 255 / .16);
  color: var(--service-text-color, #fff);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  backdrop-filter: blur(12px);
  transition: background .25s ease;
}
.template-live-preview .service-card:hover,
.template-live-preview .service-card:focus-visible,
.template-live-preview .service-card:focus-within {
  color: var(--service-text-color, #fff);
  transform: translateY(-4px);
}
.template-live-preview .service-card:hover img,
.template-live-preview .service-card:focus-visible img,
.template-live-preview .service-card:focus-within img {
  transform: scale(1.07);
  filter: saturate(1.04);
}
.template-live-preview .service-card:hover .service-card-shade,
.template-live-preview .service-card:focus-visible .service-card-shade,
.template-live-preview .service-card:focus-within .service-card-shade {
  opacity: .94;
}
.template-live-preview .service-card:hover .service-card-content,
.template-live-preview .service-card:focus-visible .service-card-content,
.template-live-preview .service-card:focus-within .service-card-content {
  transform: translateY(-12px);
}
.template-live-preview .service-card:hover .service-card-reveal,
.template-live-preview .service-card:focus-visible .service-card-reveal,
.template-live-preview .service-card:focus-within .service-card-reveal {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}
.template-live-preview .service-card:hover .service-card-button,
.template-live-preview .service-card:focus-visible .service-card-button,
.template-live-preview .service-card:focus-within .service-card-button {
  background: rgb(255 255 255 / .23);
}
.template-live-preview .post-teaser {
  overflow: hidden;
  padding: 0;
}
.template-live-preview .post-teaser-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: var(--brand-primary);
}
.template-live-preview .post-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.template-live-preview .post-teaser:not(.post-teaser-featured):not(.post-teaser-compact) > div,
.template-live-preview .latest-posts-list .post-teaser > div {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.template-live-preview .post-teaser h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}
.template-live-preview .post-teaser h3 a {
  text-decoration: none;
}
.template-live-preview .latest-posts-grid .post-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
}
.template-live-preview .latest-posts-grid .post-teaser {
  height: 100%;
}
.template-live-preview .latest-posts-grid .post-teaser-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.template-live-preview .latest-posts-grid .post-teaser-featured .post-teaser-image {
  aspect-ratio: 16 / 9;
}
.template-live-preview .latest-posts-grid .post-teaser-featured .post-teaser-body {
  gap: 13px;
  padding: 24px;
}
.template-live-preview .latest-posts-grid .post-teaser-featured h3 {
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -0.02em;
}
.template-live-preview .latest-posts-grid .post-teaser-compact .post-teaser-image {
  aspect-ratio: 16 / 8.6;
}
.template-live-preview .latest-posts-grid .post-teaser-compact .post-teaser-body {
  gap: 8px;
  padding: 15px;
}
.template-live-preview .latest-posts-grid .post-teaser-compact h3 {
  font-size: clamp(18px, 1.45vw, 22px);
}
.template-live-preview .latest-posts-grid .post-teaser-compact p:not(.post-teaser-meta) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
}
.template-live-preview .post-teaser-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.template-live-preview .post-teaser-meta span {
  color: var(--brand-accent);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-live-preview .post-teaser-more {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 2px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-primary);
  background: #fff;
  text-decoration: none;
  font-weight: 900;
}
.template-live-preview .post-teaser-more::after {
  content: "→";
  margin-left: 8px;
}
.template-live-preview .latest-posts-grid .post-teaser {
  position: relative;
  min-height: clamp(240px, 22vw, 360px);
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .5);
  border-radius: 22px;
  background: color-mix(in srgb, var(--post-gradient-color, var(--media-overlay-color)), white 84%);
  color: var(--post-overlay-color, #fff);
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease;
}
.template-live-preview .latest-posts-grid .post-teaser-featured {
  min-height: clamp(500px, 43vw, 680px);
}
.template-live-preview .latest-posts-grid .post-teaser-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--brand-primary);
}
.template-live-preview .latest-posts-grid .post-teaser-image img,
.template-live-preview .latest-posts-grid .post-teaser-image span {
  width: 100%;
  height: 100%;
}
.template-live-preview .latest-posts-grid .post-teaser-image img {
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), filter .55s ease;
}
.template-live-preview .latest-posts-grid .post-teaser-image span {
  display: grid;
  place-items: center;
  background: var(--media-overlay-color);
  background: var(--media-overlay-gradient), var(--media-overlay-color);
  color: rgb(255 255 255 / .92);
  font-size: 74px;
  font-weight: 900;
}
.template-live-preview .latest-posts-grid .post-teaser-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--media-overlay-color);
  background: var(--media-overlay-gradient);
  transition: opacity .35s ease;
}
.template-live-preview .latest-posts-grid .post-teaser-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2vw, 30px);
  color: var(--post-overlay-color, #fff);
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.2, .8, .2, 1);
}
.template-live-preview .latest-posts-grid .post-teaser-featured .post-teaser-body {
  gap: 13px;
  padding: clamp(24px, 2.6vw, 38px);
}
.template-live-preview .latest-posts-grid .post-teaser h3 a,
.template-live-preview .latest-posts-grid .post-teaser p,
.template-live-preview .latest-posts-grid .post-teaser-meta,
.template-live-preview .latest-posts-grid .post-teaser-meta time {
  color: var(--post-overlay-color, #fff);
}
.template-live-preview .latest-posts-grid .post-teaser-meta span {
  color: color-mix(in srgb, var(--post-overlay-color, #fff), var(--brand-accent, #ff7468) 30%);
}
.template-live-preview .latest-posts-grid .post-teaser p:not(.post-teaser-meta) {
  color: color-mix(in srgb, var(--post-overlay-color, #fff), transparent 10%);
}
.template-live-preview .latest-posts-grid .post-teaser-reveal {
  max-height: 0;
  display: grid;
  gap: 10px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height .42s cubic-bezier(.2, .8, .2, 1), opacity .3s ease, transform .38s cubic-bezier(.2, .8, .2, 1);
}
.template-live-preview .latest-posts-grid .post-teaser-reveal p {
  margin: 0;
}
.template-live-preview .latest-posts-grid .post-teaser-more {
  width: max-content;
  border-color: color-mix(in srgb, var(--post-overlay-color, #fff), transparent 58%);
  background: rgb(255 255 255 / .16);
  color: var(--post-overlay-color, #fff);
  backdrop-filter: blur(12px);
}
.template-live-preview .latest-posts-grid .post-teaser:hover,
.template-live-preview .latest-posts-grid .post-teaser:focus-within {
  transform: translateY(-4px);
}
.template-live-preview .latest-posts-grid .post-teaser:hover .post-teaser-image img,
.template-live-preview .latest-posts-grid .post-teaser:focus-within .post-teaser-image img {
  transform: scale(1.07);
  filter: saturate(1.04);
}
.template-live-preview .latest-posts-grid .post-teaser:hover .post-teaser-shade,
.template-live-preview .latest-posts-grid .post-teaser:focus-within .post-teaser-shade {
  opacity: .94;
}
.template-live-preview .latest-posts-grid .post-teaser:hover .post-teaser-body,
.template-live-preview .latest-posts-grid .post-teaser:focus-within .post-teaser-body {
  transform: translateY(-12px);
}
.template-live-preview .latest-posts-grid .post-teaser:hover .post-teaser-reveal,
.template-live-preview .latest-posts-grid .post-teaser:focus-within .post-teaser-reveal {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}
.template-live-preview .latest-posts-grid .post-teaser:hover .post-teaser-more,
.template-live-preview .latest-posts-grid .post-teaser:focus-within .post-teaser-more {
  background: rgb(255 255 255 / .23);
}
.template-live-preview .posts-slider {
  --posts-slider-bg: var(--block-background, transparent);
  --posts-slider-color: var(--block-text-color, inherit);
  color: var(--posts-slider-color);
  background: var(--posts-slider-bg);
}
.template-live-preview .posts-slider-inner {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}
.template-live-preview .posts-slider-head {
  align-items: center;
  margin-bottom: 0;
}
.template-live-preview .posts-slider-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}
.template-live-preview .posts-slider-track {
  position: relative;
  min-height: clamp(340px, 34vw, 460px);
  overflow: hidden;
  border-radius: var(--block-radius, 0);
  background: transparent;
  box-shadow: none;
}
.template-live-preview .posts-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
  align-items: center;
  gap: clamp(22px, 4vw, 48px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(14px);
  transition: opacity .25s ease, transform .25s ease;
}
.template-live-preview .posts-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.template-live-preview .posts-slide img,
.template-live-preview .posts-slide-placeholder {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: clamp(310px, 33vw, 450px);
  border-radius: var(--block-radius, 18px);
  background: var(--soft);
  box-shadow: none;
}
.template-live-preview .posts-slide img {
  object-fit: cover;
}
.template-live-preview .posts-slide-shade {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  position: relative;
  z-index: 1;
  min-height: clamp(310px, 33vw, 450px);
  border-radius: var(--block-radius, 18px);
  pointer-events: none;
  background: var(--media-overlay-color);
  background: var(--media-overlay-gradient);
}
.template-live-preview .posts-slide-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--media-overlay-color);
  background: var(--media-overlay-gradient), var(--media-overlay-color);
  font-size: clamp(52px, 10vw, 100px);
  font-weight: 950;
}
.template-live-preview .posts-slide-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.template-live-preview .posts-slide-copy span {
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-live-preview .posts-slide h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 3.7vw, 46px);
  line-height: 1.05;
}
.template-live-preview .posts-slide p {
  margin: 0;
  color: color-mix(in srgb, currentColor, transparent 24%);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}
.template-live-preview .posts-slide a {
  justify-self: start;
  width: auto;
  max-width: max-content;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 999px;
}
.template-live-preview .posts-slider .slider-controls,
.template-live-preview .posts-slider .posts-slider-controls {
  display: flex;
  gap: 8px;
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  transform: none !important;
}
.template-live-preview .posts-slider .slider-controls button,
.template-live-preview .posts-slider .posts-slider-controls button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  font-size: 22px;
}
.template-live-preview .block-design-rounded-off .posts-slider-track,
.template-live-preview .block-design-rounded-off .posts-slide img,
.template-live-preview .block-design-rounded-off .posts-slide-placeholder {
  border-radius: 0 !important;
}
.template-live-preview .block-design-shadow-off .posts-slider-track,
.template-live-preview .block-design-shadow-off .posts-slide,
.template-live-preview .block-design-shadow-off .posts-slide img,
.template-live-preview .block-design-shadow-off .posts-slide-placeholder {
  box-shadow: none !important;
}
.template-live-preview .blog-archive,
.template-live-preview .blog-detail {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  margin: 0 auto;
  padding: 58px 0 76px;
}
.template-live-preview .page-breadcrumbs {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  margin: 34px auto 0;
}
.template-live-preview main > .page-breadcrumbs + .block {
  padding-top: clamp(18px, 2.1vw, 30px);
}
.template-live-preview main > .page-breadcrumbs ~ .block:not(:last-child) {
  padding-bottom: 0;
}
.template-live-preview main > .page-breadcrumbs ~ .block + .block {
  padding-top: clamp(14px, 1.5vw, 22px);
}
.template-live-preview main > .page-breadcrumbs ~ .block-hero + .block-hero {
  padding-top: clamp(34px, 3.2vw, 54px);
}
.template-live-preview main > .page-breadcrumbs ~ .block-content-form .content-form-copy {
  padding-top: 0;
  padding-bottom: 0;
}
.template-live-preview main > .page-breadcrumbs ~ .block + .block > .block-inner > h2:first-child {
  margin-top: 0;
}
.template-live-preview .blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.template-live-preview .blog-breadcrumbs a {
  color: #516071;
  text-decoration: none;
}
.template-live-preview .blog-breadcrumbs a:not(:last-child)::after,
.template-live-preview .blog-breadcrumbs span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b3bdca;
}
.template-live-preview .blog-archive-head,
.template-live-preview .blog-detail-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}
.template-live-preview .blog-archive-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.template-live-preview .blog-archive-head > div > span,
.template-live-preview .blog-detail-meta span,
.template-live-preview .blog-detail-meta a,
.template-live-preview .blog-meta span {
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-live-preview .blog-archive h1,
.template-live-preview .blog-detail h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
}
.template-live-preview .blog-archive-head p,
.template-live-preview .blog-detail-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}
.template-live-preview .blog-category-pills,
.template-live-preview .blog-meta,
.template-live-preview .blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.template-live-preview .blog-category-pills {
  justify-content: flex-end;
}
.template-live-preview .blog-category-pills a,
.template-live-preview .blog-back,
.template-live-preview .blog-more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-primary);
  background: #fff;
  text-decoration: none;
  font-weight: 850;
}
.template-live-preview .blog-category-pills a.is-active {
  color: #fff;
  border-color: var(--brand-primary);
  background: var(--brand-primary);
}
.template-live-preview .blog-list-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.template-live-preview .blog-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 34px rgb(18 24 38 / .055);
}
.template-live-preview .blog-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  color: #fff;
  background: var(--brand-primary);
  text-decoration: none;
  font-size: 42px;
  font-weight: 900;
}
.template-live-preview .blog-card-media img,
.template-live-preview .blog-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.template-live-preview .blog-card-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
}
.template-live-preview .blog-card h2 {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.12;
}
.template-live-preview .blog-card h2 a {
  text-decoration: none;
}
.template-live-preview .blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.template-live-preview .blog-more {
  align-self: end;
  justify-self: start;
  width: auto;
  max-width: max-content;
}
.template-live-preview .blog-detail-hero figure {
  margin: 18px 0 0;
}
.template-live-preview .blog-detail-hero img {
  max-height: 560px;
  border-radius: 22px;
}
.template-live-preview .blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.template-live-preview .blog-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
  font-weight: 800;
}
.template-live-preview .block-cta {
  --cta-background: var(--block-background, linear-gradient(135deg, var(--brand-primary), #0f4fe1));
  --cta-color: var(--block-text-color, #fff);
}
.template-live-preview .block-cta.block-layout-wide {
  color: var(--cta-color);
  background: var(--cta-background);
}
.template-live-preview .block-cta.block-layout-wide.block-content-grid > .block-inner {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}
.template-live-preview .block-cta.block-layout-wide.block-content-full > .block-inner {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}
.template-live-preview .cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 4vw, 34px);
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--cta-color), transparent 84%);
  border-radius: var(--block-radius, 22px);
  color: var(--cta-color);
  background: var(--cta-background);
  box-shadow: var(--block-shadow, 0 22px 58px rgb(22 88 232 / .16));
}
.template-live-preview .block-cta.block-layout-wide .cta-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.template-live-preview .block-cta.block-layout-wide.block-content-grid .cta-panel {
  border-radius: var(--block-radius, 22px);
}
.template-live-preview .block-cta.block-layout-wide.block-design-rounded-off .cta-panel {
  border-radius: 0 !important;
}
.template-live-preview .cta-panel::before {
  content: "";
  position: absolute;
  inset: -50% auto auto 48%;
  z-index: -1;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgb(255 255 255 / .22), transparent 68%);
  pointer-events: none;
}
.template-live-preview .cta-copy {
  min-width: 0;
  max-width: 720px;
}
.template-live-preview .cta-copy h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.04;
}
.template-live-preview .cta-text {
  margin-top: 10px;
  color: color-mix(in srgb, currentColor, transparent 13%);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
}
.template-live-preview .cta-text > :first-child { margin-top: 0; }
.template-live-preview .cta-text > :last-child { margin-bottom: 0; }
.template-live-preview .cta-panel .button,
.template-live-preview .cta-panel .cta-button {
  position: relative;
  z-index: 1;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid rgb(255 255 255 / .45);
  border-radius: 999px;
  color: var(--brand-primary);
  background: color-mix(in srgb, #fff, var(--brand-primary) 4%);
  box-shadow: 0 14px 30px rgb(15 23 42 / .14);
  font-weight: 900;
  white-space: nowrap;
}
.template-preview-topbar {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 850;
}
.template-preview-topbar.position-sticky,
.template-preview-topbar.position-fixed {
  position: sticky;
  top: 0;
  z-index: 25;
  box-shadow: 0 10px 28px rgb(15 23 42 / .10);
}
.template-preview-topbar.position-fixed::after {
  content: "fixed";
  position: absolute;
  right: 14px;
  top: calc(100% + 6px);
  padding: 3px 7px;
  border-radius: 999px;
  color: #647084;
  background: #fff;
  box-shadow: 0 8px 20px rgb(15 23 42 / .10);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.template-preview-topbar-inner {
  width: min(1440px, calc(100% - 64px));
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}
.template-preview-topbar.content-grid .template-preview-topbar-inner {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  padding: 0;
}
.template-preview-topbar.content-full .template-preview-topbar-inner {
  width: 100%;
  max-width: none;
}
.template-preview-topbar-inner > div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.template-preview-topbar.width-full .template-preview-topbar-inner {
  width: 100%;
  max-width: none;
  padding: 0 34px;
}
.template-preview-topbar.width-full {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}
.template-preview-topbar.width-contained {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  margin: 14px auto 0;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.template-preview-topbar.width-contained .template-preview-topbar-inner {
  width: 100%;
  padding: 0 22px;
}
.template-preview-topbar.content-grid .template-preview-topbar-inner {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  padding: 0;
}
.template-preview-topbar a,
.template-preview-topbar .topbar-contact {
  color: inherit;
  text-decoration: none;
}
.template-preview-topbar .topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  white-space: nowrap;
}
.template-preview-topbar .topbar-contact-icon {
  display: inline-grid;
  place-items: center;
  width: 1.38em;
  height: 1.38em;
  font-size: 1.34em;
  line-height: 1;
}
.template-preview-topbar .topbar-contact-icon svg,
.template-preview-topbar .topbar-social-link svg {
  width: 1em;
  height: 1em;
  display: block;
}
.template-preview-topbar .topbar-contact-text {
  line-height: 1;
}
.template-preview-topbar .topbar-social-link {
  width: 1.38em;
  height: 1.38em;
  display: inline-grid;
  place-items: center;
  opacity: .92;
}
.template-preview-topbar .topbar-hours-text {
  white-space: nowrap;
}
.template-preview-topbar .topbar-hours-dropdown {
  display: none;
}
.template-preview-topbar .topbar-hours-dropdown summary {
  list-style: none;
}
.template-preview-topbar .topbar-hours-dropdown summary::-webkit-details-marker {
  display: none;
}
.template-preview-header {
  width: 100%;
  max-width: none;
  margin: 18px auto;
  display: block;
}
.template-live-preview .template-preview-header.width-contained {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
}
.template-live-preview .template-preview-header.width-full {
  width: 100%;
  max-width: none;
}
.template-preview-header.width-full,
.template-preview-topbar.width-full {
  border-radius: 0;
}
.template-preview-header-inner {
  width: 100%;
  max-width: none;
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.template-preview-header.content-grid .template-preview-header-inner {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
}
.template-preview-header.content-full .template-preview-header-inner {
  width: 100%;
  max-width: none;
}
.template-preview-header.layout-centered {
  justify-content: initial;
}
.template-preview-header.layout-centered .template-preview-header-inner {
  justify-content: center;
}
.template-preview-header.menu-position-left .site-nav {
  margin-left: 0;
  margin-right: auto;
}
.template-preview-header.menu-position-center .site-nav {
  margin-left: auto;
  margin-right: auto;
}
.template-preview-header.menu-position-right .site-nav {
  margin-left: auto;
  margin-right: 0;
}
.template-preview-header.layout-logo-right-menu-left .site-brand {
  order: 3;
}
.template-preview-header.layout-logo-right-menu-left .site-nav {
  margin-left: 0;
  margin-right: auto;
}
.template-preview-header.layout-split-menu-logo-center .template-preview-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
  align-items: center;
}
.template-preview-header.layout-split-menu-logo-center .site-brand {
  justify-self: center;
}
.template-preview-header.layout-split-menu-logo-center .split-left {
  justify-self: end;
}
.template-preview-header.layout-split-menu-logo-center .split-right {
  justify-self: start;
}
.template-preview-header .site-brand.has-logo img {
  height: var(--logo-height, 54px);
  max-height: none;
  width: auto;
  max-width: min(260px, 100%);
  object-fit: contain;
}

.template-canvas-viewport.mobile .template-live-preview .template-preview-header .site-brand.has-logo img {
  height: var(--logo-mobile-height, var(--logo-height, 46px));
  max-height: none;
}

.rich-editor.is-source .rich-surface {
  display: none;
}

.rich-source-area {
  display: block;
  width: 100%;
  min-height: 360px;
  padding: 18px;
  border: 0;
  border-top: 1px solid hsl(var(--border));
  border-radius: 0 0 14px 14px;
  outline: 0;
  background: #0f172a;
  color: #e5eefc;
  font: 500 14px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}
.rich-source-area[hidden] {
  display: none !important;
}
.rich-editor.is-source .rich-source-area {
  display: block;
}
.block-modal .rich-source-area {
  min-height: 420px;
}
.block-modal[data-block-type="richtext"] .rich-source-area,
.block-modal[data-block-type="html"] .rich-source-area {
  min-height: 520px;
}

.design-gradient-input {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
}
.template-preview-nav .site-menu {
  list-style: none;
}
.template-preview-nav .active > a {
  color: var(--brand-primary, hsl(var(--primary)));
}
.template-mobile-menu-preview {
  display: grid;
  gap: 12px;
  margin: -4px 0 16px;
  padding: 16px;
  border: 1px solid #e4e9f1;
  border-radius: 18px;
  background: #fff;
}
.template-mobile-menu-preview nav {
  display: grid;
  gap: 0;
}
.template-mobile-menu-preview nav a {
  padding: 12px 0;
  border-bottom: 1px solid #edf0f4;
  color: #172033;
  text-decoration: none;
  font-weight: 900;
}
.template-mobile-menu-preview p,
.template-mobile-menu-preview small {
  margin: 0;
  color: #6f798c;
}
.template-mobile-cta {
  display: inline-flex;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: hsl(var(--primary));
  text-decoration: none;
  font-weight: 900;
}
.template-mobile-social {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.template-mobile-social a,
.template-mobile-social span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #111827;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}
.template-mobile-social svg {
  width: 18px;
  height: 18px;
  display: block;
}
.template-mobile-menu-brand .site-brand {
  justify-content: center;
  margin: 0 auto 10px;
  color: #172033;
}
.template-mobile-menu-brand .site-brand.has-logo img {
  height: var(--logo-mobile-height, var(--logo-height, 72px));
  max-width: min(78vw, 300px);
  max-height: 96px;
}
.template-mobile-menu-brand .site-brand:not(.has-logo) .brand-mark {
  width: 52px;
  height: 52px;
}
.template-mobile-menu-brand .site-brand:not(.has-logo) {
  font-size: 22px;
}
.template-footer-chrome {
  padding: 0 18px 18px;
  background: #f8fafc;
}
.template-preview-footer {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: block !important;
  padding: 0 !important;
}
.template-preview-footer.width-contained {
  width: min(1440px, calc(100% - 64px)) !important;
  max-width: 1440px !important;
  margin: 0 auto 34px !important;
}
.template-preview-footer.width-full {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.template-preview-footer.content-grid.width-full .template-preview-footer-inner {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  margin: 0 auto;
}
.template-preview-footer.content-full .template-preview-footer-inner {
  width: 100%;
  max-width: none;
}
.template-preview-footer.width-contained .template-preview-footer-inner {
  width: 100%;
}
.template-preview-footer-inner {
  display: grid;
  gap: 34px;
  padding: 34px 34px 26px;
}
.template-preview-footer.cols-1 .template-preview-footer-inner { grid-template-columns: 1fr; }
.template-preview-footer.cols-2 .template-preview-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.template-preview-footer.cols-3 .template-preview-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.template-preview-footer.cols-4 .template-preview-footer-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.template-preview-footer.cols-5 .template-preview-footer-inner { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Isto kot na frontendu (themes/default/templates/layout.php) — brez tega so
   povezave inline in brez presledka med njimi. */
.footer-links-column,
.footer-links-column-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.template-preview-footer-inner > small {
  grid-column: 1 / -1;
}
.template-footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 12px 0 0;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 1.4;
}
.template-footer-bottom small {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  border: 0 !important;
  color: inherit;
  opacity: .84;
}
.template-footer-bottom::before,
.template-footer-bottom::after,
.template-footer-author::before,
.template-footer-author::after {
  display: none !important;
  content: none !important;
}
.template-footer-bottom a {
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}
.template-footer-bottom small.template-footer-author a {
  margin: 0;
}
.template-footer-bottom small:last-child {
  justify-self: end;
  gap: 4px;
  white-space: nowrap;
  text-align: right;
}
.template-footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.osnovna-footer .template-footer-bottom {
  border-top: 0 !important;
}
.osnovna-footer .template-footer-bottom small {
  grid-column: auto !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.osnovna-footer .template-footer-bottom small:first-child {
  justify-self: start;
  text-align: left;
}
.osnovna-footer .template-footer-bottom small:last-child,
.osnovna-footer .template-footer-author {
  justify-self: end;
  text-align: right;
}
.template-preview-footer .newsletter-form {
  display: grid;
  gap: 10px;
}
.template-preview-footer .newsletter-input-row {
  display: flex;
  align-items: stretch;
  min-height: 50px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .18);
  border-radius: 16px;
  background: rgb(255 255 255 / .06);
}
.template-preview-footer .newsletter-input-row input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 14px;
  color: inherit;
  background: transparent;
}
.template-preview-footer .newsletter-input-row input::placeholder {
  color: color-mix(in srgb, currentColor 54%, transparent);
}
.template-preview-footer .newsletter-input-row button {
  display: grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: rgb(255 255 255 / .13);
  font-size: 28px;
  font-weight: 950;
}
.template-preview-footer .newsletter-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 0;
  font-size: 12px;
  line-height: 1.38;
}
.template-preview-footer .newsletter-consent input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-top: 2px;
}
.template-preview-footer .newsletter-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.template-site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.template-site-brand b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: hsl(var(--primary));
}
.template-site-brand strong {
  overflow: hidden;
  color: #172033;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-site-chrome nav {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.template-site-chrome nav span {
  padding: 6px 9px;
  border-radius: 10px;
  color: #647084;
  background: #f3f5f8;
  font-size: 11px;
  font-weight: 800;
}
.template-canvas-viewport.mobile .template-site-chrome nav {
  display: none;
}
.template-block-canvas {
  min-width: 0;
  display: grid;
  gap: 0;
  padding: 0 0 18px;
}
.template-canvas-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.template-canvas-card:hover,
.template-canvas-card.active {
  border-color: hsl(var(--primary));
  border-radius: 18px;
  box-shadow: 0 0 0 3px hsl(var(--primary) / .12);
}
.template-canvas-card.is-hidden {
  opacity: .58;
}
.template-card-meta {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgb(15 23 42 / .10);
  border-radius: 999px;
  background: rgb(255 255 255 / .9);
  box-shadow: 0 12px 28px rgb(15 23 42 / .10);
  opacity: 0;
  backdrop-filter: blur(12px);
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.template-canvas-card:hover .template-card-meta,
.template-canvas-card.active .template-card-meta {
  opacity: 1;
  transform: translateY(0);
}
.template-card-meta b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-weight: 900;
}
.template-card-meta span {
  display: grid;
  gap: 2px;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
}
.template-card-meta small {
  color: #7b8598;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.template-card-actions {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid #1f2937;
  border-radius: 12px;
  background: #111827;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease;
}
.template-canvas-card:hover .template-card-actions,
.template-canvas-card.active .template-card-actions {
  opacity: 1;
  transform: translateY(0);
}
.template-card-actions button {
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  color: #cbd5e1;
  background: #1f2937;
  font-size: 11px;
  font-weight: 900;
}
.template-card-actions button:hover {
  color: #fff;
  background: hsl(var(--primary));
}
.template-card-actions button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.template-card-actions .icon {
  width: 14px;
  height: 14px;
}
.template-canvas-card .canvas-block-preview {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 22px;
  min-height: 126px;
}
.template-canvas-card .canvas-block-preview strong {
  font-size: 18px;
  line-height: 1.25;
}
.template-canvas-card .canvas-block-preview p {
  max-width: 680px;
  margin-top: 7px;
  line-height: 1.5;
}
.template-canvas-card .mini-card-grid,
.template-canvas-card .mini-media-grid,
.template-canvas-card .mini-form-lines {
  margin-top: 12px;
}
.template-live-preview .template-canvas-card > .block {
  width: min(1440px, calc(100% - 64px)) !important;
  max-width: 1440px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
.template-live-preview .template-canvas-card > .block.block-layout-wide,
.template-live-preview .template-canvas-card > .block.hero-layout-wide {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.template-live-preview .template-canvas-card > .block .block-inner {
  max-width: none;
}
.template-live-preview .template-canvas-card > .block.block-content-grid.block-layout-wide > .block-inner {
  width: min(1440px, calc(100% - 64px));
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}
.template-live-preview .template-canvas-card > .block.block-slider.block-content-grid.block-layout-wide > .block-inner,
.template-live-preview .template-canvas-card > .block.block-hero.block-content-grid.block-layout-wide > .block-inner,
.template-live-preview .template-canvas-card > .block.block-content-full > .block-inner {
  width: 100%;
  max-width: none;
}
.template-canvas-viewport.mobile .template-live-preview .site-nav,
.template-canvas-viewport.mobile .template-live-preview .site-header-cta {
  display: none;
}
.template-canvas-viewport.mobile .template-live-preview .mobile-menu-toggle {
  display: inline-flex;
}
.template-canvas-viewport.mobile .template-live-preview .block {
  padding: var(--section-spacing-y-mobile) 18px;
}
.template-canvas-viewport.mobile .template-live-preview .hero-grid,
.template-canvas-viewport.mobile .template-live-preview .split,
.template-canvas-viewport.mobile .template-live-preview .testimonial-grid,
.template-canvas-viewport.mobile .template-live-preview .gallery-grid,
.template-canvas-viewport.mobile .template-live-preview .post-card-grid,
.template-canvas-viewport.mobile .template-live-preview .slide,
.template-canvas-viewport.mobile .template-live-preview .posts-slide {
  grid-template-columns: 1fr;
}
.template-canvas-viewport.mobile .template-live-preview .hero-image-left .hero-copy,
.template-canvas-viewport.mobile .template-live-preview .hero-image-left .hero-media,
.template-canvas-viewport.mobile .template-live-preview .hero-image-right .hero-copy,
.template-canvas-viewport.mobile .template-live-preview .hero-image-right .hero-media {
  grid-column: auto;
  grid-row: auto;
}
.template-canvas-viewport.mobile .template-live-preview .block-features .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.template-canvas-viewport.mobile .template-live-preview .block-features .feature-card {
  padding: 16px 12px;
}
.template-canvas-viewport.mobile .template-live-preview .block-features .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}
.template-canvas-viewport.mobile .template-live-preview .block-features .feature-card h3 {
  font-size: 16px;
}
.template-canvas-viewport.mobile .template-live-preview .block-features .feature-card p {
  font-size: 14px;
  line-height: 1.45;
}
.template-canvas-viewport.mobile .template-live-preview .posts-slider-head {
  flex-direction: row;
  align-items: center;
}
.template-canvas-viewport.mobile .template-live-preview .posts-slider-head h2 {
  max-width: 72%;
  font-size: clamp(26px, 8vw, 36px);
}
.template-canvas-viewport.mobile .template-live-preview .posts-slider-track {
  min-height: 560px;
}
.template-canvas-viewport.mobile .template-live-preview .posts-slide {
  gap: 18px;
  align-content: start;
}
.template-canvas-viewport.mobile .template-live-preview .posts-slide img {
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.template-canvas-viewport.mobile .template-live-preview .posts-slide-copy {
  max-width: none;
}
.template-canvas-viewport.mobile .template-live-preview .posts-slide h3 {
  font-size: clamp(24px, 7vw, 32px);
}
.template-canvas-viewport.mobile .template-live-preview .page-breadcrumbs {
  margin-top: 24px;
}
.template-canvas-viewport.mobile .template-live-preview main > .page-breadcrumbs + .block {
  padding-top: 16px;
}
.template-canvas-viewport.mobile .template-live-preview main > .page-breadcrumbs ~ .block:not(:last-child) {
  padding-bottom: 0;
}
.template-canvas-viewport.mobile .template-live-preview main > .page-breadcrumbs ~ .block + .block {
  padding-top: 16px;
}
.template-canvas-viewport.mobile .template-live-preview main > .page-breadcrumbs ~ .block-hero + .block-hero {
  padding-top: 26px;
}
.template-canvas-viewport.mobile .template-live-preview .services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.template-canvas-viewport.mobile .template-live-preview .services-head {
  margin-bottom: 24px;
}
.template-canvas-viewport.mobile .template-live-preview .services-head p {
  margin-bottom: 10px;
}
.template-canvas-viewport.mobile .template-live-preview .service-card {
  min-height: clamp(220px, 56vw, 320px);
  border-radius: 18px;
}
.template-canvas-viewport.mobile .template-live-preview .service-card-content {
  padding: 16px;
  gap: 7px;
  transform: none;
}
.template-canvas-viewport.mobile .template-live-preview .service-card-eyebrow {
  font-size: 10px;
}
.template-canvas-viewport.mobile .template-live-preview .service-card strong {
  max-width: none;
  font-size: clamp(17px, 5.4vw, 24px);
}
.template-canvas-viewport.mobile .template-live-preview .service-card em {
  max-width: none;
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.template-canvas-viewport.mobile .template-live-preview .service-card-reveal {
  max-height: none;
  gap: 8px;
  opacity: 1;
  transform: none;
}
.template-canvas-viewport.mobile .template-live-preview .service-card-button {
  padding: 8px 11px;
  font-size: 12px;
}
.template-canvas-viewport.mobile .template-live-preview .latest-posts-grid .post-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.template-canvas-viewport.mobile .template-live-preview .gallery-display-grid .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.template-canvas-viewport.mobile .template-live-preview .gallery-display-masonry .gallery-grid {
  column-count: 2;
  column-gap: 12px;
}
.template-canvas-viewport.mobile .template-live-preview .gallery-display-masonry .gallery-grid figure {
  margin-bottom: 12px;
}
.template-canvas-viewport.mobile .template-live-preview .gallery-display-carousel .gallery-grid {
  gap: 12px;
}
.template-canvas-viewport.mobile .template-live-preview .gallery-display-carousel .gallery-grid figure {
  flex-basis: calc((100% - 12px) / 2);
}
.template-canvas-viewport.mobile .template-live-preview .latest-posts-grid .post-teaser-featured {
  grid-column: 1 / -1;
  grid-row: auto;
  min-height: clamp(360px, 88vw, 520px);
}
.template-canvas-viewport.mobile .template-live-preview .latest-posts-grid .post-teaser {
  min-height: clamp(260px, 62vw, 360px);
}
.template-canvas-viewport.mobile .template-live-preview .latest-posts-grid .post-teaser-body {
  gap: 8px;
  padding: 16px;
  transform: none;
}
.template-canvas-viewport.mobile .template-live-preview .latest-posts-grid .post-teaser-featured h3 {
  font-size: clamp(24px, 7vw, 34px);
}
.template-canvas-viewport.mobile .template-live-preview .latest-posts-grid .post-teaser-compact p:not(.post-teaser-meta) {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.template-canvas-viewport.mobile .template-live-preview .latest-posts-grid .post-teaser-reveal {
  max-height: none;
  gap: 8px;
  opacity: 1;
  transform: none;
}
.template-canvas-viewport.mobile .template-live-preview .post-teaser-more {
  width: max-content;
  justify-content: flex-start;
}
.template-canvas-viewport.mobile .template-live-preview .cta-panel {
  grid-template-columns: 1fr;
  align-items: flex-start;
  padding: 22px;
}
.template-canvas-viewport.mobile .template-live-preview .cta-panel .button,
.template-canvas-viewport.mobile .template-live-preview .cta-panel .cta-button {
  width: 100%;
  justify-content: center;
  white-space: normal;
}
.template-canvas-viewport.mobile .template-live-preview h1 {
  font-size: clamp(34px, 11vw, 48px);
}
.template-canvas-viewport.mobile .template-live-preview h2 {
  font-size: clamp(28px, 9vw, 38px);
}
.template-canvas-viewport.mobile .template-live-preview .slider-track {
  min-height: clamp(360px, 54vh, 500px);
}
.template-canvas-viewport.mobile .template-live-preview .slide {
  align-content: end;
  gap: 18px;
  padding: clamp(20px, 6vw, 28px);
}
.template-canvas-viewport.mobile .template-live-preview .slide-content {
  right: clamp(20px, 6vw, 28px);
  left: clamp(20px, 6vw, 28px);
  bottom: var(--hero-slider-content-bottom-mobile);
  width: auto;
  order: 0;
  margin-bottom: 0;
}
.template-canvas-viewport.mobile .template-live-preview .slide img {
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.template-canvas-viewport.mobile .template-live-preview .hero-layout-wide .hero-grid,
.template-canvas-viewport.mobile .template-live-preview .hero-layout-wide .slider-track {
  min-height: clamp(360px, 54vh, 500px);
}
.template-canvas-viewport.mobile .template-live-preview .hero-layout-wide .hero-media img,
.template-canvas-viewport.mobile .template-live-preview .hero-layout-wide .slide img {
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar.osnovna-topbar {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar-inner {
  gap: 10px;
  padding-right: 12px !important;
  padding-left: 12px !important;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar.content-grid .template-preview-topbar-inner,
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar.width-contained .template-preview-topbar-inner {
  width: 100%;
  padding-right: 12px !important;
  padding-left: 12px !important;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar-inner > div {
  gap: 8px;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar-inner > div:first-child {
  flex: 1 1 auto;
  justify-content: flex-start;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar-inner > div:last-child {
  flex: 0 0 auto;
  justify-content: flex-end;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-contact {
  width: 50px;
  height: 50px;
  min-height: 50px;
  justify-content: center;
  border-radius: 999px;
  background: rgb(255 255 255 / .18);
  font-size: 23px;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-contact-icon {
  width: 23px;
  height: 23px;
  font-size: 23px;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-contact-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-hours-text {
  display: none;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-hours-dropdown {
  position: relative;
  display: block;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-hours-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgb(255 255 255 / .16);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-hours-dropdown summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: .75;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-hours-dropdown[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-topbar .topbar-hours-dropdown span {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: max-content;
  max-width: calc(100vw - 24px);
  min-width: 220px;
  padding: 10px 15px;
  border: 1px solid rgb(71 106 130 / .16);
  border-radius: 14px;
  color: #476a82;
  background: #fff;
  box-shadow: 0 18px 42px rgb(15 23 42 / .16);
  font-size: 16px;
  line-height: 1.35;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-header.rounded-off,
.template-canvas-viewport.mobile .template-live-preview .template-preview-header.rounded-off .template-preview-header-inner {
  border-radius: 0 !important;
}
.template-canvas-viewport.mobile .template-live-preview .blog-archive,
.template-canvas-viewport.mobile .template-live-preview .blog-detail {
  width: min(100% - 28px, 1440px);
  padding: 38px 0 50px;
}
.template-canvas-viewport.mobile .template-live-preview .page-breadcrumbs {
  width: min(100% - 28px, 1440px);
}
.template-canvas-viewport.mobile .template-live-preview .blog-archive-head {
  grid-template-columns: 1fr;
  gap: 22px;
}
.template-canvas-viewport.mobile .template-live-preview .blog-archive h1,
.template-canvas-viewport.mobile .template-live-preview .blog-detail h1 {
  font-size: clamp(42px, 13vw, 62px);
}
.template-canvas-viewport.mobile .template-live-preview .blog-category-pills {
  justify-content: flex-start;
}
.template-canvas-viewport.mobile .template-live-preview .blog-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.template-canvas-viewport.mobile .template-live-preview .blog-card-media {
  aspect-ratio: 4 / 3;
  font-size: 30px;
}
.template-canvas-viewport.mobile .template-live-preview .blog-card-body {
  gap: 8px;
  padding: 13px;
}
.template-canvas-viewport.mobile .template-live-preview .blog-card h2 {
  font-size: clamp(16px, 4.6vw, 20px);
}
.template-canvas-viewport.mobile .template-live-preview .blog-card p {
  font-size: 13px;
}
.template-canvas-viewport.mobile .template-live-preview .blog-more {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-footer.width-contained,
.template-canvas-viewport.mobile .template-live-preview .template-preview-footer.content-grid.width-full .template-preview-footer-inner {
  width: min(100% - 28px, 1440px) !important;
}
.template-canvas-viewport.mobile .template-live-preview .template-preview-footer-inner {
  grid-template-columns: 1fr !important;
  gap: 22px;
  padding: 24px 20px;
}
.template-canvas-viewport.mobile .template-live-preview .footer-brand-logo {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
}
.template-canvas-viewport.mobile .template-live-preview .template-footer-bottom {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.template-empty-state {
  display: grid;
  gap: 14px;
  place-items: center;
  min-height: 520px;
  padding: 28px;
  border: 2px dashed #d8dee9;
  border-radius: 24px;
  background: #fff;
  text-align: center;
}
.template-empty-state > b {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
}
.template-empty-state > b .icon {
  width: 24px;
  height: 24px;
}
.template-empty-state strong {
  color: #172033;
  font-size: 18px;
}
.template-empty-state p {
  max-width: 620px;
  margin: 0;
  color: #6f798c;
}
.template-empty-grid {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.template-empty-grid button,
.template-block-library button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.template-empty-grid button:hover,
.template-block-library button:hover {
  border-color: hsl(var(--primary) / .55);
  background: hsl(var(--primary) / .05);
}
.template-empty-grid em,
.template-block-library b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-style: normal;
  font-weight: 900;
}
.template-empty-grid span,
.template-block-library span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.template-empty-grid strong,
.template-block-library strong {
  overflow: hidden;
  color: #222b3a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-empty-grid small,
.template-block-library small {
  overflow: hidden;
  color: #7b8598;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-inspector {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}
.template-inspector.card {
  padding: 14px;
  border-radius: 18px;
}
.template-global-panel,
.template-quick-panel,
.template-selected-panel,
.template-add-panel {
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}
.template-quick-panel {
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, #fff, #fbfcff);
}
.template-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.template-quick-grid button {
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e4eaf4;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}
.template-quick-grid button:hover {
  border-color: hsl(var(--primary) / .45);
  background: hsl(var(--primary) / .05);
}
.template-quick-grid b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
}
.template-quick-grid .icon {
  width: 18px;
  height: 18px;
}
.template-quick-grid span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.template-quick-grid strong {
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-quick-grid small {
  overflow: hidden;
  color: #7b8598;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}
.template-preview-tools {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  background: #f8fafc;
}
.template-preview-tools > span {
  color: #7b8598;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-preview-tool-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.template-preview-tool-buttons button {
  min-height: 34px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid #dfe5ee;
  border-radius: 11px;
  background: #fff;
  color: #657086;
  font-size: 12px;
  font-weight: 900;
}
.template-preview-tool-buttons button.active {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: #fff;
}
.template-preview-tool-buttons .icon {
  width: 15px;
  height: 15px;
}
.template-global-panel {
  display: grid;
  gap: 10px;
  background: #fbfcfe;
}
.template-global-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #f6f8fb;
}
.template-global-tabs button {
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  color: #6f798c;
  background: transparent;
  font-weight: 900;
  font-size: 12px;
}
.template-global-tabs button.active {
  color: #fff;
  background: hsl(var(--primary));
}
.template-global-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.template-global-fields .span-2 {
  grid-column: 1 / -1;
}
.template-global-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.template-global-fields label > span,
.template-footer-links > div > strong {
  color: #7b8598;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-global-fields input,
.template-global-fields select {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}
.template-fieldset {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  background: #fff;
}
.template-fieldset > strong {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b8598;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-fieldset > strong::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: hsl(var(--primary));
}
.template-css-fieldset {
  gap: 10px;
}
.template-css-editor {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid #19243a;
  border-radius: 14px;
  background: #080d1b;
  color: #e7edf8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  tab-size: 2;
}
.template-css-editor:focus {
  outline: 0;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), .15), inset 0 0 0 1px rgba(255,255,255,.05);
}
.template-help {
  margin: 0;
  color: #7b8598;
  font-size: 12px;
  line-height: 1.45;
}
.template-color-line {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px;
}
.template-color-line input[type="color"] {
  min-height: 34px;
  padding: 3px;
}
.template-check-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e4e9f1;
  border-radius: 12px;
  background: #fbfcfe;
}
.template-check-row span {
  display: grid;
  gap: 3px;
}
.template-check-row strong {
  color: #172033;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.template-check-row em {
  color: #7b8598;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.template-check-row input[type="checkbox"],
.template-check-group input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: hsl(var(--primary));
}
.template-check-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #fff;
}
.template-check-group > strong {
  color: hsl(var(--primary));
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.template-check-group label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.template-check-group label span {
  color: #172033;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.template-footer-links {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #e4e9f1;
  border-radius: 14px;
  background: #fff;
}
.template-footer-links > div:first-child,
.template-footer-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.template-footer-link-row {
  grid-template-columns: minmax(0, 1fr) minmax(64px, .48fr) 32px;
}
.template-footer-links button {
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-weight: 900;
}
.template-footer-link-row button {
  color: #df4b43;
  background: #fae6e5;
}
.template-footer-link-row .icon {
  width: 15px;
  height: 15px;
}
.template-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.template-panel-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}
.template-panel-head h2 span,
.template-panel-head h2 .icon {
  color: hsl(var(--primary));
}
.template-panel-head > span,
.template-panel-head button {
  color: #7b8598;
  font-size: 10px;
  font-weight: 850;
}
.template-panel-head button {
  border: 0;
  background: transparent;
}
.template-selected-panel {
  display: grid;
  gap: 10px;
}
.template-design-open {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid hsl(var(--primary) / .18);
  border-radius: 14px;
  background: hsl(var(--primary-soft));
  color: hsl(var(--primary));
  font-size: 13px;
  font-weight: 900;
}
.template-design-open .icon {
  width: 17px;
  height: 17px;
}
.template-selected-panel.is-idle {
  color: #647084;
}
.template-page-editor {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.template-page-editor label {
  display: grid;
  gap: 6px;
}
.template-page-editor span {
  color: #7b8598;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-block-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fafbfc;
  font-size: 11px;
}
.template-block-facts span {
  display: block;
  color: #7b8598;
  font-weight: 800;
}
.template-block-facts strong,
.template-block-facts code {
  display: block;
  overflow: hidden;
  color: #172033;
  font-weight: 900;
  text-overflow: ellipsis;
}
.template-inspector-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0;
}
.template-inspector-actions .full {
  grid-column: 1 / -1;
}
.template-inspector-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.template-inspector-actions .btn.danger {
  color: #df4b43;
  background: #fae6e5;
}
.template-add-panel {
  display: grid;
  gap: 8px;
}
.template-block-library {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
}
.template-block-library button {
  min-height: 58px;
  grid-template-columns: 30px minmax(0, 1fr);
}
.template-presets-card {
  margin-bottom: 18px;
}
.template-preset-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.template-preset-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
}
.template-preset-card.active {
  border-color: hsl(var(--primary) / .5);
  background: hsl(var(--primary) / .06);
}
.template-preset-card strong {
  display: block;
  overflow: hidden;
  color: #172033;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.template-preset-card span {
  display: block;
  margin-top: 3px;
  color: #7b8598;
  font-size: 12px;
  font-weight: 700;
}
.template-preset-card em {
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  color: #2f8b61;
  background: #e8f8f0;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.template-preset-card:not(.active) em {
  color: #718096;
  background: #f3f5f8;
}
.template-preset-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}
.page-filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #f3f5f8;
}
.page-filter-tabs button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  color: #6d7688;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
}
.page-filter-tabs button.active {
  color: #fff;
  background: hsl(var(--primary));
}
.page-filter-tabs span {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / .35);
  font-size: 11px;
}
.page-card-list-inner {
  display: grid;
  gap: 10px;
  width: 100%;
}
.page-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #edf0f4;
  border-radius: 15px;
  background: #fff;
  box-sizing: border-box;
}
.page-card.active {
  border-color: hsl(var(--primary) / .42);
  background: hsl(var(--primary) / .06);
}
.page-card strong {
  display: block;
  overflow: hidden;
  color: #232936;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-card span,
.page-card em {
  display: block;
  overflow: hidden;
  color: #747d90;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-quality-badges {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.quality-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.quality-badge.ok {
  color: #168557;
  background: #dbf5e9;
}
.quality-badge.missing {
  color: #df4b43;
  background: #fae6e5;
}
.page-head.compact {
  margin: 0;
  padding: 0;
}
.page-head.compact h2 {
  margin: 0 0 4px;
}
.page-editor-actions {
  position: relative;
}
.page-status-pill {
  background: #eef7ff;
  color: hsl(var(--primary)) !important;
}
.sync-control {
  position: relative;
}
.sync-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: min(320px, 86vw);
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.sync-menu[hidden] {
  display: none;
}
.sync-menu strong {
  font-size: 14px;
}
.sync-menu p {
  margin: 0;
  color: #747d90;
  font-size: 12px;
  line-height: 1.45;
}
.sync-options {
  display: grid;
  gap: 6px;
}
.sync-options label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fafbfc;
  font-weight: 800;
}
.sync-options em {
  color: #8992a3;
  font-size: 11px;
  font-style: normal;
}
.block-row, .page-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
}
.block-row.active { border-color: hsl(var(--magenta)); background: hsl(var(--magenta-soft)); }
.block-row strong, .page-row strong { display: block; }
.block-row span, .page-row span { color: #747d90; font-size: 13px; }
.visual-block-list .block-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
}
.block-kicker {
  margin-bottom: 8px;
  color: hsl(var(--magenta));
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.canvas-block-preview {
  display: grid;
  gap: 8px;
}
.block-preview-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .10);
  font-size: 15px;
  font-weight: 950;
}
.canvas-block-preview strong { font-size: 17px; color: #172033; }
.canvas-block-preview p { margin: 0; color: #657085; line-height: 1.55; }
.canvas-block-preview button {
  width: fit-content;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: hsl(var(--primary));
  font-size: 12px;
  font-weight: 800;
}
.hero-preview { padding: 10px 0; }
.mini-card-grid, .mini-media-grid, .mini-form-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mini-card-grid span, .mini-form-lines span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #f4f6fa;
  color: #5c6678;
  font-size: 12px;
  font-weight: 750;
}
.mini-media-grid { grid-template-columns: repeat(4, 52px); }
.mini-media-grid span, .mini-media-grid img {
  width: 52px;
  height: 42px;
  border-radius: 10px;
  background: #e9edf4;
  object-fit: cover;
}
.mini-form-lines { grid-template-columns: 1fr; max-width: 340px; }
.mini-actions { display: flex; gap: 6px; }
.mini-actions button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #747d90;
  background: #f3f5f8;
}
.mini-actions button:hover { color: hsl(var(--magenta)); background: #fff; }
.mini-actions button.is-danger:hover { color: #fff; background: hsl(var(--danger)); }
.users-shell {
  padding: 18px;
}
.users-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.user-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #fff;
}
.user-card.disabled {
  opacity: .62;
  background: #f7f8fb;
}
.user-card-main {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.user-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-weight: 900;
}
.user-card strong {
  display: block;
  overflow: hidden;
  color: #202838;
  font-size: 17px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-card span {
  color: #747d90;
  font-size: 13px;
  font-weight: 760;
}
.user-card-permissions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.user-card-permissions b,
.permission-badges button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 0;
  border-radius: 999px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .10);
  font-size: 11px;
  font-weight: 900;
}
.user-card-permissions em {
  color: #8a93a5;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  background: #fafbfc;
}
.profile-summary strong { display: block; }
.profile-summary span { color: #747d90; font-weight: 760; }
.user-modal {
  width: min(760px, 100%);
}
.user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.permission-picker {
  display: grid;
  gap: 10px;
}
.permission-results {
  max-height: 220px;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 3px;
}
.permission-results button {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.permission-results button:hover {
  border-color: hsl(var(--primary) / .35);
  background: hsl(var(--primary) / .05);
}
.permission-results span {
  color: #202838;
  font-weight: 900;
}
.permission-results em {
  color: #7d8799;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}
.permission-badges {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px dashed #d7dfec;
  border-radius: 16px;
  background: #fafbfc;
}
.permission-badges button {
  cursor: pointer;
}
.permission-badges button span {
  font-size: 13px;
}
.block-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.block-library button {
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 9px 7px;
  border: 1px solid #e6ebf2;
  border-radius: 13px;
  background: #fff;
  color: #50596b;
  font-size: 12px;
  font-weight: 700;
}
.block-library button b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .10);
  font-size: 12px;
  font-weight: 950;
}
.block-library button span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-library button:hover { color: hsl(var(--magenta)); border-color: hsl(var(--magenta)); background: hsl(var(--magenta-soft)); }
@media (max-width: 720px) {
  .block-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.media-tabs {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: #f3f5f8;
}
.media-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  color: #6d7688;
  background: transparent;
  font-weight: 850;
}
.media-tabs button.active {
  color: #fff;
  background: hsl(var(--primary));
}
.media-dropzone {
  margin-top: 14px;
  min-height: 142px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px dashed #cfd7e5;
  border-radius: 20px;
  background: #fff;
}
.media-dropzone.drag-over {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / .06);
}
.media-dropzone > div {
  display: grid;
  gap: 6px;
}
.media-dropzone .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 13px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .10);
}
.media-dropzone strong {
  color: #172033;
  font-size: 18px;
}
.media-dropzone span {
  color: #747d90;
  line-height: 1.5;
}
.media-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.media-card {
  overflow: hidden;
  border: 1px solid #eef1f5;
  border-radius: 13px;
  background: #fff;
}
.media-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; object-position: center; display: block; background: #f3f5f8; }
.media-file {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #f3f5f8;
  color: #6b7280;
  font-weight: 850;
  letter-spacing: .08em;
}
.media-card-info {
  display: grid;
  gap: 4px;
  padding: 8px;
  font-size: 11px;
  color: #747d90;
}
.media-card strong {
  display: block;
  overflow: hidden;
  color: #232936;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-card span,
.media-card em {
  display: block;
  overflow: hidden;
  color: #747d90;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding-top: 4px;
}
.icon-btn.small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 15px;
}
.icon-btn.danger:hover {
  color: #df4b43;
  background: #fae6e5;
}
.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(15 23 42 / .42);
  backdrop-filter: blur(10px);
}
.upload-overlay[hidden] {
  display: none;
}
.upload-progress-card {
  width: min(460px, 100%);
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid #e4e9f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(17 24 39 / .24);
}
.upload-progress-card strong {
  color: #172033;
  font-size: 20px;
}
.upload-progress-card span,
.upload-progress-card em {
  color: #747d90;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
.upload-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}
.upload-progress-track i {
  width: 0%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: hsl(var(--primary));
  transition: width .18s ease;
}
.modal-layer.compact-modal-layer {
  z-index: 220;
}
.compact-modal {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid #e2e7ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(17 24 39 / .24);
}
.compact-modal-body {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
}
.compact-modal-body .modal-actions {
  justify-content: flex-end;
}
.newsletter-feedback-layer {
  z-index: 245;
}
.newsletter-feedback-modal {
  width: min(560px, 100%);
}
.rich-table-paste-layer {
  z-index: 248;
}
.rich-table-paste-modal {
  width: min(780px, 100%);
}
.rich-table-paste-head {
  align-items: flex-start;
}
.rich-table-paste-body {
  gap: 14px;
}
.rich-table-paste-zone {
  min-height: 240px;
  max-height: min(46vh, 430px);
  overflow: auto;
  padding: 18px;
  border: 1px dashed #b8c5d8;
  border-radius: 18px;
  outline: 0;
  background: #f8fbff;
  color: #111827;
  font: 15px/1.58 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rich-table-paste-zone:empty::before {
  content: attr(data-placeholder);
  color: #7b8494;
  font-weight: 750;
}
.rich-table-paste-zone:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / .12);
  background: #fff;
}
.rich-table-paste-zone .responsive-table {
  max-width: 100%;
  overflow-x: auto;
}
.rich-table-paste-zone table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.rich-table-paste-zone th,
.rich-table-paste-zone td {
  padding: 9px 11px;
  border: 1px solid #d9dee7;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}
.rich-table-paste-zone th {
  background: #eef5ff;
  font-weight: 850;
}
.rich-table-paste-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.rich-table-paste-options label {
  width: auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}
.rich-table-paste-options input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: hsl(var(--primary));
}
.rich-table-paste-feedback {
  margin: 0;
  color: #687386;
  font-size: 13px;
  font-weight: 750;
}
.rich-table-paste-feedback.danger {
  color: #c24137;
}
.newsletter-feedback-head {
  align-items: flex-start;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.newsletter-feedback-head .icon-btn {
  flex: 0 0 auto;
}
.newsletter-feedback-body {
  gap: 18px;
}
.newsletter-feedback-state {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d9e6ee;
  border-radius: 18px;
  color: #476a82;
  background: #f4f8fb;
}
.newsletter-feedback-state span {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: #476a82;
}
.newsletter-feedback-state span .icon {
  width: 22px;
  height: 22px;
}
.newsletter-feedback-state strong {
  min-width: 0;
  color: #172033;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.newsletter-feedback-state.warning {
  border-color: #f3d59a;
  color: #9a6418;
  background: #fff8e8;
}
.newsletter-feedback-state.warning span {
  background: #c47b15;
}
.session-expired-layer {
  z-index: 260;
}
.session-expired-modal {
  width: min(620px, 100%);
}
.session-expired-body p {
  margin: 0;
  color: #647084;
  font-size: 18px;
  line-height: 1.45;
}
.session-expired-body .modal-actions {
  justify-content: flex-end;
}
.seo-section {
  margin-top: 0;
}
.seo-panel {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fafbfc);
}
.seo-panel-head {
  display: grid;
  gap: 10px;
}
.seo-panel-head h2 {
  margin-bottom: 4px;
}
.seo-panel-head p {
  margin: 0;
  color: #747d90;
  font-size: 13px;
}
.seo-panel-head .btn {
  min-height: 38px;
  font-size: 13px;
}
.seo-accordion {
  display: grid;
  gap: 8px;
}
.seo-collapse {
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 15px;
  background: #fff;
}
.seo-collapse summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}
.seo-collapse summary::-webkit-details-marker {
  display: none;
}
.seo-collapse summary::after {
  content: "⌄";
  color: #8791a3;
  font-size: 18px;
  font-weight: 900;
  transition: transform .16s ease;
}
.seo-collapse[open] summary::after {
  transform: rotate(180deg);
}
.seo-collapse summary span {
  color: #222b3a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.seo-collapse summary em {
  overflow: hidden;
  color: #8a94a6;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seo-collapse .seo-form-grid,
.seo-collapse .xlang-box {
  margin: 0;
  padding: 12px;
  border-top: 1px solid #edf0f4;
}
.seo-collapse .xlang-box {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
}
.seo-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.seo-form-grid textarea {
  min-height: 104px;
}
.seo-measured > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.char-counter {
  color: #8992a3;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.char-counter.ok { color: #168557; }
.char-counter.warn { color: #b7791f; }
.char-counter.bad { color: #df4b43; }
.collection-field {
  display: grid;
  gap: 12px;
}
.collection-head,
.collection-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.collection-head strong,
.collection-item-head strong {
  color: #172033;
  font-size: 14px;
}
.collection-head span {
  color: #8992a3;
  font-size: 12px;
  font-weight: 800;
}
.collection-items {
  display: grid;
  gap: 10px;
}
.collection-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fafbfc;
}
.collection-item.is-collapsible {
  padding: 10px;
}
.collection-item.is-collapsible.is-open {
  border-color: hsl(var(--primary) / .32);
  background: #fff;
}
.collection-toggle {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.collection-toggle span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-size: 18px;
  font-weight: 900;
}
.collection-toggle strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.collection-toggle em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #168557;
  background: #edf7f2;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.collection-toggle em.is-inactive {
  color: #8a5960;
  background: #fae6e5;
}
.collection-item:not(.is-open) .collection-toggle em.is-active {
  color: #747d90;
  background: #eef1f5;
}
.collection-item-body[hidden] {
  display: none;
}
.gallery-groups-field {
  grid-column: 1 / -1;
}
.gallery-group-toggle {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.gallery-group-toggle img {
  width: 46px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef1f5;
}
.gallery-group-body {
  display: grid;
  gap: 12px;
}
.gallery-group-body[hidden] {
  display: none;
}
.gallery-images-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  align-items: start;
}
.gallery-bulk-drop {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px;
  border: 1.5px dashed #bfd0ea;
  border-radius: 16px;
  background: #f8fbff;
  color: #657085;
  text-align: center;
}
.gallery-bulk-drop.drag-over {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
}
.gallery-bulk-drop b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
}
.gallery-bulk-drop .icon {
  width: 20px;
  height: 20px;
}
.gallery-bulk-drop span {
  font-weight: 760;
}
.gallery-bulk-drop em {
  display: block;
  max-width: 420px;
  color: #7b8598;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}
.gallery-bulk-drop .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}
.gallery-image-item {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  background: #fff;
}
.gallery-image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gallery-image-head strong {
  color: #5d6678;
  font-size: 13px;
}
.gallery-image-card {
  overflow: hidden;
  border: 1px solid #eef1f5;
  border-radius: 13px;
  background: #fff;
  cursor: grab;
  transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease, transform .16s ease;
}
.gallery-image-card:hover {
  border-color: #d9e2f1;
  box-shadow: 0 10px 22px rgb(17 24 39 / .08);
}
.gallery-image-card:active {
  cursor: grabbing;
}
.gallery-image-card.is-dragging {
  opacity: .45;
  transform: scale(.98);
}
.gallery-image-card.is-drop-target {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / .16);
}
.gallery-thumb img,
.gallery-thumb span {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #f3f5f8;
}
.gallery-thumb img {
  display: block;
  object-fit: contain;
  object-position: center;
}
.gallery-thumb span {
  color: #7b8598;
}
.gallery-thumb .icon {
  width: 28px;
  height: 28px;
}
.gallery-card-info {
  display: grid;
  gap: 4px;
  padding: 8px;
  font-size: 11px;
  color: #747d90;
}
.gallery-card-info strong,
.gallery-card-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-card-info strong {
  color: #232936;
  font-size: 12px;
  line-height: 1.25;
}
.gallery-card-info span {
  color: #747d90;
  font-size: 11px;
  line-height: 1.25;
}
.gallery-card-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 4px;
}
.gallery-card-actions .icon-btn.small {
  width: 100%;
}
.gallery-card-actions .icon-btn:disabled {
  opacity: .34;
  cursor: not-allowed;
}
.compact-rich {
  min-width: 0;
}
.compact-rich .rich-surface {
  min-height: 150px;
}
.media-upload-field {
  display: grid;
  gap: 10px;
}
.date-picker-field {
  min-width: 0;
}
.date-picker-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
}
.date-picker-control input[type="datetime-local"],
.date-picker-control input[type="date"] {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  min-width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.date-picker-button {
  width: 46px;
  height: 46px;
  color: #6f7d95;
}
.post-cover-upload .media-upload-grid {
  grid-template-columns: minmax(240px, .9fr) minmax(260px, 1.1fr);
}
.post-cover-upload .media-upload-preview,
.post-cover-upload .media-upload-drop {
  min-height: 150px;
}
.post-cover-upload .media-upload-preview img {
  object-fit: contain;
  background: #f8fafc;
}
.media-upload-hint {
  margin: -2px 0 0;
  color: #788399;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}
.media-upload-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.media-upload-grid {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr);
  gap: 14px;
  align-items: stretch;
}
.template-asset-upload,
.template-asset-upload .media-upload-line,
.template-asset-upload .media-upload-grid,
.template-asset-upload input {
  min-width: 0;
  max-width: 100%;
}
.template-asset-upload {
  overflow: hidden;
}
.template-asset-upload.span-2 {
  grid-column: auto;
}
.template-form-section .template-asset-upload {
  padding: 10px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #fff;
}
.template-asset-upload label {
  font-size: 11px;
}
.template-asset-upload .media-upload-line {
  grid-template-columns: minmax(0, 1fr) 38px;
}
.template-asset-upload .media-upload-line .icon-btn {
  width: 38px;
  height: 38px;
}
.template-asset-upload .media-upload-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 10px;
}
.template-asset-upload .media-upload-preview,
.template-asset-upload .media-upload-drop {
  min-height: 84px;
  padding: 10px;
}
.template-asset-upload .media-upload-drop span {
  max-width: 24ch;
  line-height: 1.25;
}
.media-upload-preview,
.media-upload-drop {
  min-height: 128px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  overflow: hidden;
  border: 1px dashed #cfd7e5;
  border-radius: 15px;
  background: #fafbfc;
  color: #747d90;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.media-upload-preview {
  border-style: solid;
  background: #fff;
}
.media-upload-drop.drag-over {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / .06);
}
.media-upload-preview img {
  width: 100%;
  height: 100%;
  min-height: 104px;
  max-height: 168px;
  border-radius: 12px;
  object-fit: cover;
}
.template-asset-upload .media-upload-preview img {
  min-height: 92px;
  max-height: 118px;
}
.media-upload-preview b,
.media-upload-drop b {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .10);
}
.media-upload-drop .icon {
  width: 22px;
  height: 22px;
}
.og-dropzone {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px dashed #d7dde7;
  border-radius: 16px;
  background: #fff;
}
.og-dropzone.drag-over {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / .06);
}
.og-image-preview {
  min-height: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f5f8;
  color: #747d90;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.og-image-preview img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.og-image-preview span {
  padding: 10px;
}
.xlang-box {
  margin-top: 14px;
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fafbfc;
}
.xlang-box strong { font-size: 13px; }
.xlang-box span,
.xlang-box em { color: #747d90; font-size: 12px; font-style: normal; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  padding: 10px 12px;
  color: #747d90;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid #edf0f4;
}
.table td { padding: 12px; border-bottom: 1px solid #edf0f4; vertical-align: top; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef0f4;
  color: #717a8b;
  font-size: 12px;
  font-weight: 800;
}
.badge.new { color: #df4b43; background: #fae6e5; }
.badge.done { color: #168557; background: #dbf5e9; }
.badge.success { color: #0f7a52; background: #e0f6eb; }
.badge.warning { color: #9b5d00; background: #fff0cf; }
.badge.danger { color: #df4b43; background: #fae6e5; }
.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  color: #476a82;
  background: #e9f1f7;
  font-size: 11px;
  font-weight: 800;
}
.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.newsletter-command-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #dfe8ee;
  border-radius: 14px;
  background: #f8fbfd;
}
.newsletter-command-panel strong,
.newsletter-command-panel span {
  display: block;
}
.newsletter-command-panel strong {
  color: #172033;
  font-size: 16px;
}
.newsletter-command-panel span {
  margin-top: 3px;
  color: #5d6879;
  font-size: 13px;
}
.newsletter-audience-summary {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  gap: 6px;
  align-items: stretch;
}
.newsletter-audience-summary span {
  min-width: 92px;
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #e5edf3;
  border-radius: 11px;
  background: #fff;
}
.newsletter-audience-summary b {
  max-width: 150px;
  overflow: hidden;
  color: #172033;
  font-size: 17px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.newsletter-audience-summary em {
  color: #747d90;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.newsletter-subscribers-card {
  padding-bottom: 16px;
}
.newsletter-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.newsletter-segment-bar {
  display: grid;
  gap: 8px;
  margin: 14px 0 6px;
}
.newsletter-segment-bar > span {
  color: #747d90;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.newsletter-segment-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.newsletter-segment-bar button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #dfe6ef;
  border-radius: 999px;
  color: #465166;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}
.newsletter-segment-bar button.active {
  border-color: #476a82;
  color: #fff;
  background: #476a82;
}
.newsletter-segment-bar button b {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / .22);
  color: inherit;
  font-size: 11px;
  text-align: center;
}
.newsletter-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(126px, .75fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}
.newsletter-field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.newsletter-tools label,
.newsletter-field-grid label,
.newsletter-modal-card label {
  display: grid;
  gap: 6px;
  color: #747d90;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.newsletter-tools input,
.newsletter-tools select,
.newsletter-field-grid input,
.newsletter-modal-card input {
  width: 100%;
  border: 1px solid #d9e0eb;
  border-radius: 12px;
  padding: 11px 12px;
  color: #172033;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.newsletter-field-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}
.newsletter-selection-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fafbfd;
  color: #647084;
  font-size: 12px;
  font-weight: 750;
}
.newsletter-selection-bar button {
  border: 0;
  color: #476a82;
  background: transparent;
  font-size: 12px;
  font-weight: 850;
}
.newsletter-selection-bar em {
  color: #8a93a4;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}
.newsletter-table {
  table-layout: auto;
}
.newsletter-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: #2563eb;
  vertical-align: middle;
}
.newsletter-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}
.newsletter-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}
.newsletter-table td strong,
.newsletter-table td em {
  display: block;
}
.newsletter-table td em {
  margin-top: 4px;
  color: #747d90;
  font-size: 11px;
  font-style: normal;
}
.newsletter-pager {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  color: #647084;
  font-size: 13px;
  font-weight: 800;
}
.newsletter-pager button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  color: #476a82;
  background: #fff;
  font-weight: 850;
}
.newsletter-pager button:disabled {
  color: #9aa3b2;
  background: #f4f7fb;
  cursor: not-allowed;
}
.newsletter-campaign-list {
  display: grid;
  gap: 10px;
}
.newsletter-campaign-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
}
.newsletter-campaign-row.active {
  border-color: #476a82;
  box-shadow: 0 0 0 3px rgb(71 106 130 / .12);
}
.newsletter-campaign-row strong,
.newsletter-campaign-row span,
.newsletter-campaign-row em {
  display: block;
}
.newsletter-campaign-row strong { color: #172033; }
.newsletter-campaign-row span { margin-top: 3px; color: #465166; font-size: 13px; }
.newsletter-campaign-row em { margin-top: 4px; color: #747d90; font-size: 12px; font-style: normal; }
.newsletter-campaign-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
}
.newsletter-campaign-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.newsletter-campaign-stats b {
  padding: 4px 7px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #747d90;
  font-size: 11px;
}
.newsletter-sent-card {
  min-width: 0;
}
.newsletter-sent-list {
  display: grid;
  gap: 10px;
}
.newsletter-sent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 150px) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  background: #fff;
}
.newsletter-sent-copy {
  min-width: 0;
}
.newsletter-sent-copy strong,
.newsletter-sent-copy span,
.newsletter-sent-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.newsletter-sent-copy strong {
  color: #172033;
  font-size: 14px;
}
.newsletter-sent-copy span {
  margin-top: 3px;
  color: #465166;
  font-size: 12px;
}
.newsletter-sent-copy em {
  margin-top: 4px;
  color: #747d90;
  font-size: 11px;
  font-style: normal;
}
.newsletter-open-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f4f8fb;
  color: #476a82;
}
.newsletter-open-metric b {
  color: #172033;
  font-size: 15px;
  line-height: 1;
}
.newsletter-open-metric span {
  color: #647084;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.newsletter-open-metric em {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #476a82;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.newsletter-open-bar {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8f0;
}
.newsletter-open-bar span {
  width: var(--open-rate, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #476a82;
}
.newsletter-sent-actions {
  justify-content: flex-end;
}
.newsletter-toolbox-card {
  margin-top: 0;
  padding-top: 18px;
  padding-bottom: 18px;
}
.newsletter-toolbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.newsletter-tool-link {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  color: #172033;
  background: #fff;
  text-decoration: none;
}
.newsletter-tool-link:hover {
  border-color: #476a82;
  box-shadow: 0 8px 20px rgb(25 36 54 / .08);
}
.newsletter-tool-link .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #476a82;
}
.newsletter-tool-link span,
.newsletter-tool-link strong,
.newsletter-tool-link em {
  display: block;
}
.newsletter-tool-link strong {
  font-size: 13px;
}
.newsletter-tool-link em {
  margin-top: 4px;
  color: #747d90;
  font-size: 12px;
  font-style: normal;
}
.newsletter-cron-note {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 12px;
}
.newsletter-cron-note code {
  display: block;
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f4f7fb;
  color: #465166;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 1280px) {
  .newsletter-toolbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .newsletter-sent-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .newsletter-open-metric {
    min-width: 132px;
  }
  .newsletter-sent-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
.newsletter-campaign-modal {
  width: min(1380px, calc(100vw - 44px));
  height: min(900px, calc(100vh - 44px));
}
.newsletter-modal-head .modal-actions {
  align-items: center;
}
.newsletter-modal-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  flex: 1;
  overflow: hidden;
}
.newsletter-modal-side {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border-right: 1px solid #edf0f4;
  background: #f8fafc;
  overflow: auto;
}
.newsletter-modal-main {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}
.newsletter-modal-summary {
  display: grid;
  gap: 6px;
  padding: 15px;
  border: 1px solid #e2ebf1;
  border-radius: 16px;
  background: #fff;
}
.newsletter-modal-summary span,
.newsletter-modal-summary em {
  color: #747d90;
  font-size: 12px;
  font-style: normal;
}
.newsletter-modal-summary strong {
  color: #172033;
  font-size: 20px;
}
.newsletter-modal-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.newsletter-modal-stats span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  background: #fff;
}
.newsletter-modal-stats b {
  color: #172033;
  font-size: 18px;
}
.newsletter-modal-stats em {
  color: #747d90;
  font-size: 12px;
  font-style: normal;
}
.newsletter-editor-tabs {
  display: grid;
  gap: 8px;
}
.newsletter-editor-tabs button {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #465166;
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}
.newsletter-editor-tabs button:hover {
  background: #fff;
}
.newsletter-editor-tabs button.active {
  border-color: #d9e6ee;
  color: #476a82;
  background: #fff;
  box-shadow: 0 8px 22px rgb(25 36 54 / .08);
}
.newsletter-editor-tabs .icon {
  width: 18px;
  height: 18px;
}
.newsletter-token-box {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
}
.newsletter-token-box strong {
  flex: 1 0 100%;
  color: #172033;
  font-size: 12px;
}
.newsletter-token-box code {
  padding: 5px 7px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #476a82;
  font-size: 11px;
  font-weight: 800;
}
.newsletter-tab-panel { display: none; }
.newsletter-tab-panel.active {
  display: grid;
  gap: 18px;
}
.newsletter-rich-shell {
  display: grid;
  min-height: 0;
}
.newsletter-rich-field,
.newsletter-rich-editor {
  min-width: 0;
}
.newsletter-rich-surface {
  min-height: 420px;
  line-height: 1.65;
}
.newsletter-send-grid,
.newsletter-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.newsletter-modal-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 230px;
  padding: 18px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
}
.newsletter-modal-card h3 {
  margin: 0;
  color: #172033;
  font-size: 18px;
}
.newsletter-modal-card p {
  margin: 0;
  color: #747d90;
  font-size: 13px;
  line-height: 1.55;
}
.chart-bars {
  min-height: 220px;
  display: flex;
  gap: 10px;
  align-items: end;
  padding-top: 24px;
}
.chart-bar {
  flex: 1;
  min-width: 34px;
  display: grid;
  gap: 7px;
  align-items: end;
  text-align: center;
  color: #747d90;
  font-size: 11px;
  font-weight: 700;
}
.chart-bar span {
  display: block;
  min-height: 12px;
  border-radius: 12px 12px 0 0;
  background: hsl(var(--primary));
}
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.preset-grid button {
  min-height: 64px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #fff;
  color: #50596b;
  font-weight: 800;
}
.preview-style-card {
  padding: 22px;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  background: #fff;
}
.preview-style-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: hsl(var(--magenta));
  font-size: 12px;
  font-weight: 850;
}
.form-stack { display: grid; gap: 14px; }
.full { width: 100%; margin-top: 14px; }
.console {
  min-height: 220px;
  padding: 14px;
  border-radius: 16px;
  background: #111827;
  color: #d1d5db;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow: auto;
}
.clients-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.clients-hero > div {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.clients-hero > div > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
}
.clients-hero h1 {
  margin-bottom: 6px;
  font-size: 22px;
}
.clients-hero p {
  max-width: 780px;
  margin: 0;
  color: #657085;
  line-height: 1.45;
}
.client-editor-card {
  margin-bottom: 28px;
}
.client-editor-card h2,
.client-editor-card h3 {
  color: #3b4658;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.client-form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px 16px;
}
.client-form-grid label {
  grid-column: span 3;
}
.client-form-grid .toggle-card {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}
.client-form-grid .toggle-card input {
  accent-color: #3478ea;
  flex: 0 0 auto;
  height: 20px;
  margin: 0;
  width: 20px;
}
.client-form-grid .toggle-card span {
  display: grid;
  gap: 3px;
}
.client-form-grid .toggle-card strong {
  color: #172033;
  font-size: 15px;
  font-weight: 850;
}
.client-form-grid .toggle-card small {
  color: #738096;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}
.client-form-grid > input {
  grid-column: span 2;
}
.client-form-grid .span-2 {
  grid-column: 1 / -1;
}
.client-form-grid h3 {
  margin: 10px 0 0;
  padding-top: 16px;
  border-top: 1px solid #edf0f4;
}
.client-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
.client-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.client-card-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
}
.client-logo {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  background: #f2f5fa;
}
.client-logo.placeholder {
  display: grid;
  place-items: center;
  color: hsl(var(--primary));
  font-size: 16px;
  font-weight: 900;
}
.client-card-head strong {
  display: block;
  color: #172033;
  font-size: 19px;
  line-height: 1.2;
}
.client-card-head span {
  display: block;
  margin-top: 4px;
  color: #a4adbc;
  font-size: 13px;
}
.client-card-tools {
  display: flex;
  gap: 4px;
}
.client-details {
  display: grid;
  grid-template-columns: minmax(115px, 1fr) minmax(0, 1fr);
  gap: 9px 12px;
  padding: 18px;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  background: #fcfdff;
}
.client-details span {
  color: #657085;
}
.client-details strong,
.client-details code {
  min-width: 0;
  color: #2b3547;
  text-align: right;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}
.client-details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}
.client-details b {
  justify-self: end;
  padding: 4px 8px;
  border: 1px solid #9fecc6;
  border-radius: 7px;
  color: #138a5a;
  background: #ecfdf4;
  font-size: 11px;
}
.client-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.client-actions .btn {
  min-width: 0;
  font-size: 14px;
}
.client-actions .icon {
  width: 17px;
  height: 17px;
}
.deploy-log-card {
  padding: 26px;
  border-radius: 20px;
  background: #050917;
  color: #d7deea;
  box-shadow: 0 18px 46px rgb(15 23 42 / .18);
}
.deploy-log-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgb(255 255 255 / .72);
  color: #d7deea;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.deploy-log-card h2 span { color: #3b82f6; }
.deploy-console {
  min-height: 190px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: 15px;
  color: #657085;
  background: #080d1d;
  font: italic 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow: auto;
}
.deploy-console.has-logs {
  place-items: start stretch;
  color: #d7deea;
  font-style: normal;
}
.notice {
  padding: 11px 13px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
}
.notice.danger { color: #df4b43; background: #fae6e5; }
.menu-builder {
  display: grid;
  gap: 16px;
}
.menu-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}
.menu-page-picker {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}
.menu-page-picker h2 {
  margin-bottom: 0;
}
.menu-page-list {
  display: grid;
  gap: 8px;
}
.menu-page-option {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  color: #232936;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.menu-page-option:hover {
  border-color: hsl(var(--primary) / .38);
  background: hsl(var(--primary) / .06);
}
.menu-page-option.system-page {
  border-color: hsl(var(--primary) / .24);
  background: linear-gradient(180deg, #fff, hsl(var(--primary) / .055));
}
.menu-page-option.draft-page {
  border-color: #e7eaf0;
  color: #8a93a4;
  background: #f5f7fa;
}
.menu-page-option.draft-page:hover {
  border-color: #d7dce6;
  background: #f0f3f8;
}
.menu-page-option span {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.menu-page-option strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-page-option em {
  overflow: hidden;
  color: #8992a3;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-page-option small {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .10);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.menu-page-option.draft-page small {
  color: #7b8495;
  background: #e7ebf2;
}
.menu-page-option b {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .10);
  font-size: 18px;
}
.menu-page-option .draft-publish-cta {
  width: auto;
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  color: #fff;
  background: #8d96a8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
.segmented-tabs {
  width: min(320px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: #f3f5f8;
}
.segmented-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  color: #647084;
  background: transparent;
  font-weight: 850;
}
.segmented-tabs button.active {
  color: #fff;
  background: hsl(var(--primary));
}
.menu-structure-guide {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e8ecf3;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fafbfc);
}
.menu-structure-guide div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.menu-structure-guide p {
  max-width: 760px;
  margin: 0;
  color: #647084;
  font-size: 13px;
  font-weight: 650;
}
.menu-guide-level {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #5d6678;
  background: #f3f5f8;
  font-size: 12px;
  font-weight: 850;
}
.menu-guide-level.level-1 {
  margin-left: 16px;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .10);
}
.menu-guide-level.level-2 {
  margin-left: 32px;
  color: hsl(var(--magenta));
  background: hsl(var(--magenta-soft));
}
.menu-items-grid {
  display: grid;
  gap: 10px;
}
.menu-item-card {
  display: grid;
  gap: 0;
  padding: 10px 12px;
  border: 1px solid #edf0f4;
  border-radius: 15px;
  background: #fff;
}
.menu-item-card.is-editing {
  gap: 14px;
  padding: 14px;
  box-shadow: 0 16px 34px rgb(18 24 38 / .07);
}
.menu-item-card.menu-level-1 { margin-left: 34px; border-left: 4px solid hsl(var(--primary)); }
.menu-item-card.menu-level-2 { margin-left: 68px; border-left: 4px solid hsl(var(--magenta)); }
.menu-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.menu-item-card.is-editing .menu-item-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f4;
}
.menu-level-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.menu-level-title strong {
  overflow: hidden;
  color: #232936;
  font-size: 16px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.menu-level-title span {
  color: hsl(var(--magenta));
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu-edit-drawer {
  display: grid;
  gap: 12px;
}
.menu-edit-drawer[hidden] {
  display: none;
}
.menu-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.mini-actions button:disabled {
  opacity: .36;
  cursor: not-allowed;
}
body.modal-open { overflow: hidden; }
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 30px);
}
.modal-layer[hidden] { display: none; }
.modal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(15 23 42 / .42);
  backdrop-filter: blur(12px);
}
.block-modal {
  position: relative;
  width: min(1500px, calc(100vw - 60px));
  height: min(1040px, calc(100vh - 60px));
  max-height: calc(100vh - 60px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e2e7ef;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgb(17 24 39 / .24);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}
.modal-head span {
  color: hsl(var(--magenta));
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modal-head h2 { margin-bottom: 5px; font-size: 26px; }
.modal-head p { margin: 0; color: #747d90; }
.modal-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.autosave-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf7f2;
  color: #168557 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.modal-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  overflow: hidden;
}
.template-settings-modal {
  width: min(1120px, calc(100vw - 44px));
  height: min(900px, calc(100vh - 44px));
}
.template-global-modal {
  width: min(1060px, calc(100vw - 44px));
  height: min(920px, calc(100vh - 44px));
}
.template-global-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #f7f9fc;
}
.template-global-modal .template-global-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgb(15 23 42 / .08);
}
.template-global-modal .template-global-fields {
  gap: 10px;
}
.template-global-modal .template-fieldset {
  padding: 12px;
}
.template-settings-body {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: #f7f9fc;
}
.template-settings-section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid #e4e9f1;
  border-radius: 18px;
  background: #fff;
}
.template-settings-section-wide {
  grid-column: 1 / -1;
}
.template-settings-section-head h3 {
  margin: 0 0 3px;
  color: #172033;
  font-size: 18px;
}
.template-settings-section-head p {
  margin: 0;
  color: #747d90;
  font-size: 13px;
  line-height: 1.45;
}
.template-settings-grid,
.template-button-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.template-settings-grid label,
.template-button-settings label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.template-settings-grid label > span,
.template-button-settings label > span,
.template-type-head {
  color: #7b8598;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.template-settings-grid input,
.template-settings-grid select,
.template-button-settings input {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 14px;
}
.template-type-table {
  display: grid;
  gap: 7px;
}
.template-type-row {
  display: grid;
  grid-template-columns: 88px repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.template-type-row strong {
  color: #172033;
  font-size: 13px;
}
.template-type-row span {
  color: #7b8598;
  font-size: 11px;
  font-weight: 900;
}
.template-type-row input {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
}
.template-button-settings > div {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fbfcfe;
}
.template-button-settings h4 {
  margin: 0;
  color: #172033;
  font-size: 15px;
}
@media (max-width: 900px) {
  .template-settings-body,
  .template-settings-grid,
  .template-button-settings {
    grid-template-columns: 1fr;
  }
  .template-type-row {
    grid-template-columns: 64px repeat(3, minmax(0, 1fr));
  }
}
.modal-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 16px 22px;
  border-right: 1px solid #edf0f4;
  background: #fafbfc;
  overflow: auto;
}
.modal-design-fields:empty,
.modal-side-fields:empty {
  display: none;
}
.modal-design-fields,
.modal-side-fields {
  display: grid;
  gap: 12px;
}
.design-panel {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  background: #fff;
}
.design-panel > strong {
  display: block;
  color: #172033;
  font-size: 15px;
}
.design-panel label {
  display: grid;
  gap: 6px;
}
.design-panel .design-check-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e4e9f1;
  border-radius: 12px;
  background: #fbfcfe;
}
.design-check-row span {
  display: grid;
  gap: 3px;
}
.design-check-row strong {
  color: #172033;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
.design-check-row em {
  color: #7b8598;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.design-check-row input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: hsl(var(--primary));
}
.design-panel input,
.design-panel select {
  min-height: 42px;
}
.design-color-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.design-color-line input[type="color"] {
  width: 46px;
  height: 42px;
  min-height: 42px;
  padding: 4px;
  border-radius: 13px;
}
.modal-fields {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px 44px;
  scrollbar-gutter: stable;
}
.modal-fields > label {
  grid-column: span 6;
  min-width: 0;
}
.modal-fields > .rich-field,
.modal-fields > .media-upload-field,
.modal-fields > .collection-field {
  grid-column: 1 / -1;
}
.rich-field { display: grid; gap: 8px; }
.rich-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rich-fullscreen-close {
  display: none;
}
.rich-editor {
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: 18px;
  background: #fff;
}
.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px;
  border-bottom: 1px solid #edf0f4;
  background: #fafbfc;
}
.rich-toolbar-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.rich-table-tools {
  padding: 3px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #fff;
}
.rich-toolbar .rich-table-tools button {
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 11px;
}
.rich-toolbar .rich-table-tools [data-rich-table] {
  color: hsl(var(--primary));
  background: hsl(var(--primary) / .08);
}
.rich-toolbar .rich-table-tools .rich-table-paste-btn {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #476a82;
  background: #edf6fb;
}
.rich-toolbar .rich-table-tools .rich-table-paste-btn .icon {
  width: 14px;
  height: 14px;
}
.rich-toolbar button, .emoji-row button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}
.rich-toolbar button:hover, .emoji-row button:hover {
  color: hsl(var(--magenta));
  border-color: hsl(var(--magenta));
  background: hsl(var(--magenta-soft));
}
.rich-toolbar button .icon {
  width: 16px;
  height: 16px;
}
.rich-toolbar select {
  width: auto;
  min-height: 34px;
  padding: 6px 28px 6px 9px;
  border-radius: 10px;
  font-size: 12px;
}
.rich-toolbar input[type="color"] {
  width: 42px;
  min-height: 34px;
  padding: 4px;
  border-radius: 10px;
}
.emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 9px;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}
.emoji-row[hidden] { display: none; }
.rich-surface {
  min-height: 240px;
  max-height: 420px;
  overflow: auto;
  padding: 22px 24px;
  outline: 0;
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.block-modal[data-block-type="richtext"] .rich-surface,
.block-modal[data-block-type="html"] .rich-surface {
  min-height: 520px;
  max-height: none;
}
.compact-rich .rich-surface,
.block-modal[data-block-type="richtext"] .compact-rich .rich-surface,
.block-modal[data-block-type="html"] .compact-rich .rich-surface {
  min-height: 190px;
  max-height: 360px;
}
.rich-surface:focus { box-shadow: inset 0 0 0 3px hsl(var(--primary) / .12); }
.rich-surface h1, .rich-surface h2, .rich-surface h3 { line-height: 1.18; }
.rich-surface img { max-width: 100%; height: auto; border-radius: 14px; }
.rich-surface figure { margin: 18px 0; }
.rich-surface figcaption { color: #747d90; font-size: 13px; text-align: center; }
.rich-surface table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.rich-surface .responsive-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 12px;
}
.rich-surface .responsive-table table {
  width: 100%;
  min-width: 100%;
  margin: 0;
}
.rich-surface .responsive-table :where(th, td) {
  overflow-wrap: anywhere;
}
.rich-surface td, .rich-surface th {
  min-width: 90px;
  padding: 9px 11px;
  border: 1px solid #d9dee7;
}
.rich-field.rich-fullscreen {
  position: fixed;
  inset: 18px;
  z-index: 260;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 90px rgb(15 23 42 / .28);
}
.rich-field.rich-fullscreen .rich-fullscreen-close {
  display: grid;
  color: #df4b43;
  background: #fae6e5;
}
.rich-field.rich-fullscreen .rich-editor {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.rich-field.rich-fullscreen .rich-surface,
.rich-field.rich-fullscreen .rich-source-area,
.block-modal[data-block-type="richtext"] .rich-field.rich-fullscreen .rich-surface,
.block-modal[data-block-type="html"] .rich-field.rich-fullscreen .rich-surface,
.rich-field.rich-fullscreen.compact-rich .rich-surface {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: none;
}
body.rich-fullscreen-open { overflow: hidden; }
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}
.login-card {
  width: min(420px, 100%);
  padding: 34px;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.login-mark { margin-bottom: 16px; }
.login-card h1 { font-size: 34px; }
.form-stack { display: grid; gap: 14px; }

.post-tools {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 240px) minmax(180px, 240px);
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}
.post-tools h2 {
  margin: 0;
}
.post-card-row {
  grid-template-columns: 92px 1fr auto;
}
.post-card-thumb {
  width: 76px;
  height: 76px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: hsl(var(--primary));
  background: hsl(var(--primary-soft));
  font-size: 28px;
  font-weight: 900;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-category-manager {
  margin-top: 16px;
}
.category-chip-list {
  display: grid;
  gap: 10px;
}
.category-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: #fff;
}
.category-chip input {
  min-height: 40px;
}
.category-chip code {
  max-width: 180px;
  overflow: hidden;
  color: #7b8497;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settings-shell {
  display: grid;
  gap: 18px;
}
.settings-tabs {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: #f3f5f8;
}
.settings-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #6d7688;
  background: transparent;
  font-weight: 900;
  font-size: 13.5px;
  white-space: nowrap;
  flex: none;
}
.settings-tabs button.active {
  color: #fff;
  background: hsl(var(--primary));
}
.settings-panel {
  display: none;
}
.settings-panel.active {
  display: grid;
  gap: 16px;
}
.settings-section-head {
  max-width: 760px;
}
.settings-section-head h2 {
  margin-bottom: 4px;
  font-size: 22px;
}
.settings-section-head p {
  margin: 0;
  color: #747d90;
  line-height: 1.45;
}
.smtp-test-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .mobile-only { display: grid !important; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(318px, 88vw);
    height: 100dvh;
    transform: translateX(-104%);
    transition: transform .22s ease;
    box-shadow: 22px 0 60px rgb(18 24 38 / .18);
  }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgb(15 23 42 / .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  body.sidebar-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 10px 16px;
    gap: 8px;
  }
  .topbar-title { display: none; }
  .top-language-trigger { min-width: 58px; }
  .search-box { grid-column: 1 / -1; }
  .icon-btn { width: 42px; height: 42px; border-radius: 14px; }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin: 10px 12px 0;
    padding: 8px;
    border: 1px solid hsl(var(--border));
    border-radius: 22px;
    background: rgb(255 255 255 / 92%);
    box-shadow: var(--shadow);
  }
  .bottom-nav button {
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    color: #747d90;
    background: transparent;
  }
  .bottom-nav button.active { color: hsl(var(--magenta)); background: hsl(var(--magenta-soft)); }
  .content { padding: 22px 16px 32px; }
  .page-head, .grid-2, .editor-grid, .form-grid, .plugins-layout, .plugin-settings-grid, .cookie-category-grid, .cookie-text-grid, .menu-items-grid, .menu-workspace, .page-manager-grid, .client-form-grid, .template-workspace, .post-tools, .user-form-grid, .newsletter-layout, .newsletter-tools, .newsletter-field-grid, .newsletter-secondary-grid, .newsletter-toolbox-grid, .newsletter-send-grid, .newsletter-settings-grid { grid-template-columns: 1fr; display: grid; }
  .language-row,
  .language-manager-add {
    grid-template-columns: 1fr;
  }
  .page-head { gap: 12px; }
  .page-head-actions { justify-content: flex-start; }
  .newsletter-command-panel { align-items: flex-start; flex-direction: column; }
  .newsletter-audience-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .newsletter-audience-summary span { min-width: 0; }
  .newsletter-command-badges { justify-content: flex-start; }
  .newsletter-campaign-row { grid-template-columns: 1fr; }
  .newsletter-campaign-actions { justify-items: start; }
  .newsletter-sent-row { grid-template-columns: 1fr; }
  .newsletter-open-metric { min-width: 0; }
  .newsletter-cron-note { grid-template-columns: 1fr; }
  .newsletter-campaign-modal {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
  }
  .newsletter-modal-body { grid-template-columns: 1fr; }
  .newsletter-modal-side {
    border-right: 0;
    border-bottom: 1px solid #edf0f4;
  }
  .newsletter-editor-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .newsletter-editor-tabs button {
    justify-content: center;
    text-align: center;
  }
  .newsletter-modal-main { padding: 16px; }
  .health-admin-shell { padding: 0; }
  .health-admin-head { align-items: stretch; flex-direction: column; }
  .health-admin-layout { grid-template-columns: 1fr; }
  .health-admin-side { border-right: 0; border-bottom: 1px solid #e8edf5; }
  .health-admin-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .health-admin-toolbar { align-items: flex-start; flex-direction: column; }
  .health-record summary { grid-template-columns: minmax(0, 1fr) auto; }
  .health-record summary .icon-btn { grid-column: 2; }
  .clients-hero { display: grid; padding: 18px; }
  .clients-hero > div { align-items: flex-start; }
  .clients-hero .btn { width: 100%; }
  .client-form-grid label,
  .client-form-grid > input,
  .client-form-grid .span-2 { grid-column: 1 / -1; }
  .clients-grid { grid-template-columns: 1fr; gap: 14px; }
  .client-card { padding: 18px; }
  .client-actions { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .span-2 { grid-column: auto; }
  .page-manager-list { position: static; width: 100%; }
  .template-block-library { grid-template-columns: 1fr; }
  .template-global-tabs,
  .template-global-fields {
    grid-template-columns: 1fr;
  }
  .template-footer-link-row {
    grid-template-columns: 1fr;
  }
  .template-canvas-bar { flex-wrap: wrap; }
  .template-canvas-bar label { flex: 1 1 220px; }
  .menu-item-card.menu-level-1 { margin-left: 18px; }
  .menu-item-card.menu-level-2 { margin-left: 36px; }
  .menu-page-picker { position: static; }
  .settings-tabs { width: 100%; }
  .smtp-test-row { grid-template-columns: 1fr; }
  .inspector, .template-inspector { position: static; }
  .template-canvas-bar { align-items: stretch; flex-direction: column; }
  .template-canvas-bar label { min-width: 0; }
  .template-canvas-viewport { min-height: 520px; padding: 12px; }
  .template-canvas-viewport.mobile .template-device-frame { width: min(390px, 100%); }
  .template-card-actions {
    position: static;
    opacity: 1;
    transform: none;
    border-radius: 0;
  }
  .template-empty-grid { grid-template-columns: 1fr; }
  .canvas-menu-preview { align-items: flex-start; flex-direction: column; }
  .mini-card-grid { grid-template-columns: 1fr; }
  .modal-layer { padding: 10px; align-items: stretch; }
  .block-modal {
    width: 100%;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }
  .modal-head, .modal-body { display: grid; grid-template-columns: 1fr; }
  .modal-actions { justify-content: stretch; }
  .modal-actions .btn { flex: 1; }
  .modal-side { border-right: 0; border-bottom: 1px solid #edf0f4; }
  .modal-fields { grid-template-columns: 1fr; padding: 16px 16px 40px; }
  .modal-fields > label,
  .modal-fields > .rich-field,
  .modal-fields > .media-upload-field,
  .modal-fields > .collection-field { grid-column: 1 / -1; }
  .rich-surface { min-height: 220px; padding: 16px; }
  .block-modal[data-block-type="richtext"] .rich-surface,
  .block-modal[data-block-type="html"] .rich-surface { min-height: 340px; }
  .media-upload-grid {
    grid-template-columns: 1fr;
  }
  .post-cover-upload .media-upload-grid {
    grid-template-columns: 1fr;
  }
  .media-upload-preview,
  .media-upload-drop {
    min-height: 112px;
  }
  .template-asset-upload .media-upload-grid {
    grid-template-columns: 1fr;
  }
  .template-asset-upload .media-upload-preview,
  .template-asset-upload .media-upload-drop {
    min-height: 96px;
  }
  .media-dropzone {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-filter-tabs {
    grid-template-columns: 1fr;
  }
  .page-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .post-card-row {
    grid-template-columns: 72px 1fr;
  }
  .category-chip {
    grid-template-columns: 1fr auto;
  }
  .category-chip code {
    grid-column: 1 / -1;
  }
  .page-card .mini-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .page-card strong {
    white-space: normal;
  }
}

/* Template preview: block-level design settings override theme defaults. */
.template-live-preview .block-has-text-color :where(
  .hero-copy,
  .hero-copy h1,
  .hero-copy h2,
  .hero-copy .lead,
  .hero-copy .eyebrow,
  .slide-content,
  .slide-content h1,
  .slide-content h2,
  .slide-content .lead,
  .slide-content .slide-eyebrow,
  .cta-copy,
  .cta-copy h2,
  .cta-text,
  .services-head,
  .services-head h2,
  .services-head p
) {
  color: var(--block-text-color) !important;
}

.template-live-preview .block-has-background.block-hero,
.template-live-preview .block-has-background.block-slider,
.template-live-preview .block-has-background.block-cta,
.template-live-preview .block-has-background.block-services {
  background: var(--block-background) !important;
}

.template-live-preview .block-has-background.block-hero :where(.hero-grid),
.template-live-preview .block-has-background.block-slider :where(.slider-track),
.template-live-preview .block-has-background.block-cta :where(.cta-panel),
.template-live-preview .block-has-background.block-services :where(.block-inner) {
  background: var(--block-background) !important;
}

.template-live-preview .block-content-form,
.template-live-preview .block-content-form .content-form-panel {
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.template-live-preview .block-slider .slide-content {
  position: absolute !important;
  right: auto !important;
  bottom: var(--hero-slider-content-bottom) !important;
  left: clamp(28px, 5vw, 64px) !important;
  width: min(760px, calc(100% - clamp(56px, 10vw, 128px))) !important;
  max-width: 100% !important;
  margin-bottom: 0 !important;
}

@media (max-width: 800px) {
  .template-live-preview .block-slider .slide-content {
    right: clamp(20px, 6vw, 28px) !important;
    bottom: var(--hero-slider-content-bottom-mobile) !important;
    left: clamp(20px, 6vw, 28px) !important;
    width: auto !important;
  }
}

.template-live-preview .block-has-button-style :where(
  .hero-copy .button,
  .slide-content .button,
  .cta-panel .button,
  .cta-panel .cta-button,
  .content-form-panel .button,
  .form-panel .button,
  .blog-featured-card .button,
  .blog-card .button,
  .services-card .button
) {
  background: var(--block-button-background, var(--brand-primary)) !important;
  border-color: transparent !important;
  color: var(--block-button-text-color, #fff) !important;
  box-shadow: none !important;
}

/* Plan odstrela (modul) */
.plan-year-picker { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.plan-year-picker select { padding: 8px 10px; border-radius: 10px; border: 1px solid hsl(var(--border)); font-weight: 700; }
.plan-locked-notice {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: hsl(var(--magenta-soft));
  color: hsl(var(--magenta));
  font-weight: 700;
  font-size: 13px;
}
.plan-table th, .plan-table td { text-align: left; }
.plan-species-cell { vertical-align: middle !important; border-right: 1px solid hsl(var(--border)); }
.plan-species-abbr { display: block; font-size: 11px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.plan-value-cell { width: 84px; }
.plan-value-btn,
.plan-edit-input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  background: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
}
.plan-value-btn { cursor: pointer; }
.plan-value-btn:disabled { opacity: .6; cursor: default; }
.plan-edit-input { border-color: hsl(var(--primary)); -moz-appearance: textfield; }
.plan-edit-input::-webkit-outer-spin-button,
.plan-edit-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plan-take-cell .plan-stepper { display: flex; align-items: center; gap: 8px; }
.plan-stepper strong { min-width: 22px; text-align: center; font-size: 15px; }
.plan-percent-cell .plan-progress {
  --plan-pct: 0%;
  position: relative;
  min-width: 92px;
  height: 20px;
  border-radius: 999px;
  background: hsl(var(--muted));
  overflow: hidden;
}
.plan-percent-cell .plan-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--plan-pct);
  background: hsl(var(--primary));
}
.plan-percent-cell .plan-progress span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  color: hsl(var(--foreground));
}
tr.is-plan-complete .plan-percent-cell .plan-progress::before { background: hsl(var(--success)); }
.plan-history-modal .table th, .plan-history-modal .table td { font-size: 12px; padding: 8px; }
.plan-structure-body { display: flex; flex-direction: column; gap: 22px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.plan-structure-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.plan-structure-section-head h3 { margin: 0; font-size: 15px; }
.plan-structure-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.plan-structure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: #fff;
}
.plan-structure-species-block {
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  background: hsl(var(--card));
}
.plan-structure-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.plan-structure-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: hsl(var(--primary-soft));
  color: hsl(var(--primary));
  font-size: 12px;
  font-weight: 700;
}
.plan-structure-category-chip button {
  border: none;
  background: none;
  color: inherit;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.plan-structure-add-row { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-structure-add-row input, .plan-structure-add-row select {
  flex: 1 1 160px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
}
.plan-structure-add-species input, .plan-structure-add-species select { flex: 1 1 140px; }

@media (max-width: 800px) {
  .plan-year-picker { width: 100%; }
  .plan-year-picker select { width: 100%; }
  .plan-percent-cell .plan-progress { min-width: 64px; }
  .plan-structure-add-row, .plan-structure-add-species { flex-direction: column; }
  .plan-structure-add-row input, .plan-structure-add-row select { flex: 1 1 auto; width: 100%; }
}
