:root {
  --admin-body-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --admin-heading-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --admin-helper-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --admin-meta-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --admin-body-size: 1rem;
  --admin-helper-size: 0.92rem;
  --admin-meta-size: 0.84rem;
  --admin-heading-size: 1.55rem;
  --admin-text: #1f2937;
  --admin-heading-text: #0f172a;
  --admin-helper-text: #64748b;
  --admin-meta-text: #94a3b8;
  --admin-background: #f6f7fb;
  --admin-panel-bg: #ffffff;
  --admin-border: #dbe1ea;
  --admin-accent: #dc2626;
  --admin-button-bg: #dc2626;
  --admin-button-text: #ffffff;
  --admin-button-border: #dc2626;
  --admin-button-hover-bg: #b91c1c;
  --admin-button-hover-text: #ffffff;
  --admin-button-hover-border: #b91c1c;
  --admin-button-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --admin-button-size: 1rem;
  --admin-button-padding-y: 0.75rem;
  --admin-button-padding-x: 1rem;
  --admin-button-gap: 1rem;
  --admin-button-radius: 999px;
  --admin-field-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --admin-field-size: 1rem;
  --admin-field-bg: #ffffff;
  --admin-field-text: #1f2937;
  --admin-field-border: #dbe1ea;
  --admin-field-hover-bg: #ffffff;
  --admin-field-hover-border: #cbd5e1;
  --admin-field-focus: #dc2626;
  --admin-field-placeholder: #94a3b8;
  --admin-field-disabled-bg: #f8fafc;
  --admin-field-disabled-text: #94a3b8;
  --admin-field-disabled-border: #e2e8f0;
  --admin-field-padding-y: 0.75rem;
  --admin-field-padding-x: 0.9rem;
  --admin-field-radius: 12px;
  --theme-font-family: Georgia, 'Times New Roman', serif;
  --theme-heading-family: Georgia, 'Times New Roman', serif;
  --theme-helper-family: Georgia, 'Times New Roman', serif;
  --theme-meta-family: Georgia, 'Times New Roman', serif;
  --theme-header-family: Georgia, 'Times New Roman', serif;
  --theme-footer-family: Georgia, 'Times New Roman', serif;
  --theme-base-size: 16px;
  --theme-helper-size: 14px;
  --theme-meta-size: 13px;
  --theme-header-size: 16px;
  --theme-footer-size: 15px;
  --theme-fluid-min-scale: 0.72;
  --theme-fluid-max-scale: 1.42;
  --theme-fluid-bias: 0.95vw;
  --theme-base-size-fluid: clamp(calc(var(--theme-base-size) * var(--theme-fluid-min-scale)), calc(calc(var(--theme-base-size) * 0.58) + var(--theme-fluid-bias)), calc(var(--theme-base-size) * var(--theme-fluid-max-scale)));
  --theme-helper-size-fluid: clamp(calc(var(--theme-helper-size) * var(--theme-fluid-min-scale)), calc(calc(var(--theme-helper-size) * 0.58) + var(--theme-fluid-bias)), calc(var(--theme-helper-size) * var(--theme-fluid-max-scale)));
  --theme-meta-size-fluid: clamp(calc(var(--theme-meta-size) * var(--theme-fluid-min-scale)), calc(calc(var(--theme-meta-size) * 0.58) + var(--theme-fluid-bias)), calc(var(--theme-meta-size) * var(--theme-fluid-max-scale)));
  --theme-header-title-size-fluid: clamp(calc(var(--theme-header-title-size, var(--theme-header-size)) * var(--theme-fluid-min-scale)), calc(calc(var(--theme-header-title-size, var(--theme-header-size)) * 0.58) + var(--theme-fluid-bias)), calc(var(--theme-header-title-size, var(--theme-header-size)) * var(--theme-fluid-max-scale)));
  --theme-header-size-fluid: clamp(calc(var(--theme-header-size) * var(--theme-fluid-min-scale)), calc(calc(var(--theme-header-size) * 0.58) + var(--theme-fluid-bias)), calc(var(--theme-header-size) * var(--theme-fluid-max-scale)));
  --theme-nav-font-size-fluid: clamp(calc(var(--theme-nav-font-size) * var(--theme-fluid-min-scale)), calc(calc(var(--theme-nav-font-size) * 0.58) + var(--theme-fluid-bias)), calc(var(--theme-nav-font-size) * var(--theme-fluid-max-scale)));
  --theme-footer-heading-size-fluid: clamp(calc(var(--theme-footer-heading-size, var(--theme-footer-size)) * var(--theme-fluid-min-scale)), calc(calc(var(--theme-footer-heading-size, var(--theme-footer-size)) * 0.58) + var(--theme-fluid-bias)), calc(var(--theme-footer-heading-size, var(--theme-footer-size)) * var(--theme-fluid-max-scale)));
  --theme-footer-size-fluid: clamp(calc(var(--theme-footer-size) * var(--theme-fluid-min-scale)), calc(calc(var(--theme-footer-size) * 0.58) + var(--theme-fluid-bias)), calc(var(--theme-footer-size) * var(--theme-fluid-max-scale)));
  --theme-heading-scale: 1;
  --theme-heading-size-fluid: calc(var(--theme-base-size-fluid) * var(--theme-heading-scale));
  --theme-meta-tracking: normal;
  --theme-meta-case: none;
  --theme-content-width: 1100px;
  --theme-space-scale: 1;
  --theme-surface-radius: 14px;
  --theme-surface-padding: 1.5rem;
  --theme-button-radius: 999px;
  --theme-button-background: #111827;
  --theme-button-text: #ffffff;
  --theme-button-border: #111827;
  --theme-button-font-weight: 500;
  --theme-form-font-family: Georgia, 'Times New Roman', serif;
  --theme-form-font-size: 1rem;
  --theme-form-background: #ffffff;
  --theme-form-text: #111827;
  --theme-form-border: #e5e7eb;
  --theme-form-hover-background: #ffffff;
  --theme-form-hover-border: #cbd5e1;
  --theme-form-focus: #111827;
  --theme-form-placeholder: #94a3b8;
  --theme-form-disabled-background: #f8fafc;
  --theme-form-disabled-text: #94a3b8;
  --theme-form-disabled-border: #e2e8f0;
  --theme-form-radius: 12px;
  --theme-form-padding-y: 0.85rem;
  --theme-form-padding-x: 0.95rem;
  --theme-text: #111827;
  --theme-helper-text: #64748b;
  --theme-meta-text: #6b7280;
  --theme-header-text: #111827;
  --theme-footer-text: #111827;
  --theme-background: #f7f8fa;
  --theme-surface: #ffffff;
  --theme-surface-panel-background: #ffffff;
  --theme-accent: #111827;
  --theme-accent-contrast: #ffffff;
  --theme-muted: #64748b;
  --theme-border: #e5e7eb;
  --theme-nav-font-size: 1rem;
  --theme-header-spacing: 1rem;
  --theme-footer-background: transparent;
  --theme-footer-border: rgba(17, 24, 39, 0.08);
}

html, body {
  margin: 0;
  padding: 0;
  font-size: var(--theme-base-size-fluid);
  font-family: var(--theme-font-family);
  background: var(--theme-background);
  color: var(--theme-text);
}

body {
  font-size: 1rem;
}

body:not(.admin-body) {
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:not(.admin-body) > main {
  flex: 1 0 auto;
}

body,
input,
textarea,
select,
button {
  font-family: var(--theme-font-family);
}

.admin-main,
.admin-main p,
.admin-main li,
.admin-main small,
.admin-main td,
.admin-main th,
.admin-main label,
.admin-main div,
.admin-main span,
.admin-main strong,
.panel,
.panel p,
.panel li,
.panel small,
.panel td,
.panel th,
.panel label,
.panel div,
.panel span,
.panel strong,
.site-header,
.site-header p,
.site-header li,
.site-header small,
.site-header label,
.site-header div,
.site-header span,
.shell,
.shell p,
.shell li,
.shell small,
.shell td,
.shell th,
.shell label,
.shell div,
.shell span,
.shell strong {
  font-family: var(--theme-font-family);
}

.shell {
  max-width: min(720px, calc(100vw - 2rem));
  margin: calc(3vh * var(--theme-space-scale)) auto calc(8vh * var(--theme-space-scale));
  padding: calc(2rem * var(--theme-space-scale));
}

.shell-wide {
  width: min(var(--theme-content-width), calc(100vw - 2rem));
  max-width: none;
}

.site-header {
  border-bottom: 0;
  background: var(--theme-header-background);
  backdrop-filter: blur(10px);
  color: var(--theme-header-text);
  font-family: var(--theme-header-family);
  font-size: var(--theme-header-size);
}

.site-johanodin {
  background: var(--theme-background);
  color: var(--theme-text);
}

.nav-shell {
  margin: 0 auto;
  max-width: min(var(--theme-content-width), calc(100vw - 2rem));
  padding-top: calc(var(--theme-header-spacing) * var(--theme-space-scale));
  padding-bottom: calc(var(--theme-header-spacing) * var(--theme-space-scale));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brandmark {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--theme-header-text);
  font-family: var(--theme-header-family);
}

.brandmark-copy {
  display: grid;
  gap: 0.08rem;
}

.brandmark-title {
  display: block;
  font-family: var(--theme-header-title-family, var(--theme-header-family));
  font-size: var(--theme-header-title-size-fluid);
  line-height: 1.1;
  color: var(--theme-header-title-text, var(--theme-header-text));
}

.site-header .brandmark-title,
.site-header .header-title-text {
  font-family: var(--theme-header-title-family, var(--theme-header-family));
}

.brandmark-tagline {
  display: block;
  font-family: var(--theme-header-family);
  font-size: var(--theme-header-size-fluid);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.3;
  color: color-mix(in srgb, var(--theme-header-text) 74%, transparent);
}

.site-header .brandmark-tagline,
.site-header .header-tagline-text {
  font-family: var(--theme-header-family);
}

.header-title-text {
  font-family: var(--theme-header-title-family, var(--theme-header-family));
  font-size: var(--theme-header-title-size-fluid);
  color: var(--theme-header-title-text, var(--theme-header-text));
}

.header-tagline-text {
  font-family: var(--theme-header-family);
  font-size: var(--theme-header-size-fluid);
  color: var(--theme-header-text);
}

.brandmark-logo {
  display: block;
  max-height: var(--theme-logo-height);
  width: auto;
}

.admin-brand-logo {
  display: block;
  max-width: 180px;
  max-height: calc(var(--theme-logo-height) + 12px);
  width: auto;
}

.site-nav {
  display: flex;
  gap: var(--theme-nav-gap);
  flex-wrap: wrap;
}

.site-nav a,
.admin-nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--theme-nav-padding-y) var(--theme-nav-padding-x);
  border-radius: var(--theme-nav-radius);
  border: 1px solid var(--theme-nav-border);
  background: var(--theme-nav-background);
  font-size: var(--theme-nav-font-size);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.site-nav a {
  text-decoration: none;
  color: var(--theme-nav-text, var(--theme-header-text));
  font-family: var(--theme-nav-family, var(--theme-header-family));
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.admin-nav a {
  font-family: var(--theme-nav-family, var(--theme-header-family));
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.site-header p,
.site-header .muted,
.site-header .eyebrow {
  color: inherit;
  font-family: inherit;
}

.johan-site-header {
  background: var(--theme-header-background);
  border-bottom-color: var(--theme-header-border);
}

.johan-site-header .nav-shell,
.johan-site-header .johan-brand {
  border-bottom: 0;
  box-shadow: none;
}

.johan-nav-shell {
  align-items: end;
}

.johan-brand p {
  margin: 0.35rem 0 0;
  font-family: var(--theme-header-family);
  font-size: var(--theme-header-size-fluid);
  line-height: 1.3;
  color: color-mix(in srgb, var(--theme-header-text) 74%, transparent);
}

.johan-site-nav a {
  position: relative;
  color: var(--theme-nav-text, var(--theme-header-text));
  font-family: var(--theme-nav-family, var(--theme-header-family));
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.johan-site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--theme-accent) 70%, transparent);
  opacity: var(--theme-nav-underline-opacity);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 140ms ease;
}

.site-nav a:hover,
.admin-nav a:hover {
  background: var(--theme-nav-hover-background);
  border-color: var(--theme-nav-hover-border);
  color: var(--theme-nav-hover-text, var(--theme-nav-text, var(--theme-header-text)));
}

.admin-sidebar .admin-nav a:hover {
  background: color-mix(in srgb, var(--theme-accent-contrast) 12%, transparent);
  border-color: color-mix(in srgb, var(--theme-accent-contrast) 24%, transparent);
  color: var(--theme-accent-contrast);
}

.johan-site-nav a:hover::after {
  transform: scaleX(1);
}

.eyebrow {
  font-family: var(--theme-heading-family, var(--theme-font-family));
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

h1 {
  font-family: var(--theme-heading-family, var(--theme-font-family));
  font-size: var(--theme-heading-size-fluid);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--theme-heading-text, var(--theme-text));
}

h2 {
  font-size: calc(var(--theme-heading-size-fluid) * 0.95);
  line-height: 1.12;
}

h3 {
  font-size: calc(var(--theme-heading-size-fluid) * 0.9);
  line-height: 1.15;
}

h4 {
  font-size: calc(var(--theme-heading-size-fluid) * 0.86);
  line-height: 1.2;
}

h5 {
  font-size: calc(var(--theme-heading-size-fluid) * 0.82);
  line-height: 1.22;
}

h6 {
  font-size: calc(var(--theme-heading-size-fluid) * 0.78);
  line-height: 1.25;
}

h2,
h3,
h4,
h5,
h6,
.brandmark,
.eyebrow,
.field > span,
.table th,
.status-pill,
.admin-sidebar h2,
.admin-header h1,
.stat-card h2,
.seo-preview-title,
.social-preview-title {
  font-family: var(--theme-heading-family, var(--theme-font-family));
  letter-spacing: var(--theme-heading-tracking);
  text-transform: var(--theme-heading-case);
}

.panel h1,
.panel h2,
.panel h3,
.panel h4,
.panel h5,
.panel h6,
.admin-header h1,
.admin-header h2,
.site-header h1,
.site-header h2,
.site-header h3,
.shell h1,
.shell h2,
.shell h3,
.shell h4 {
  font-family: var(--theme-heading-family, var(--theme-font-family));
  letter-spacing: var(--theme-heading-tracking);
  text-transform: var(--theme-heading-case);
  color: var(--theme-heading-text, var(--theme-text));
}

.admin-body,
.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body button {
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
}

.admin-body .admin-shell,
.admin-body .admin-main,
.admin-body .admin-sidebar,
.admin-body .panel,
.admin-body .stack,
.admin-body .field,
.admin-body .field-grid,
.admin-body label,
.admin-body p,
.admin-body li,
.admin-body a,
.admin-body small,
.admin-body strong,
.admin-body legend {
  font-family: var(--admin-body-font);
  color: var(--admin-text);
}

.admin-body .eyebrow,
.admin-body .status-pill,
.admin-body .admin-sidebar h2,
.admin-body .admin-header h1,
.admin-body .stat-card h2,
.admin-body .seo-preview-title,
.admin-body .social-preview-title,
.admin-body .panel h1,
.admin-body .panel h2,
.admin-body .panel h3,
.admin-body .panel h4,
.admin-body .panel h5,
.admin-body .panel h6 {
  font-family: var(--admin-heading-font);
  letter-spacing: normal;
  text-transform: none;
  color: var(--admin-heading-text);
}

.admin-body .template-editor-preview {
  font-family: var(--theme-font-family);
}

.admin-body .template-editor-preview .brandmark,
.admin-body .template-editor-preview .brandmark-title,
.admin-body .template-editor-preview .header-title-text {
  font-family: var(--theme-header-title-family, var(--theme-header-family));
}

.admin-body .template-editor-preview .brandmark-tagline,
.admin-body .template-editor-preview .header-tagline-text,
.admin-body .template-editor-preview .footer-body-text,
.admin-body .template-editor-preview .lead {
  font-family: var(--theme-header-family, var(--theme-font-family));
}

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

.admin-body .panel,
.admin-body .alert,
.admin-body .template-settings-group {
  background: var(--admin-panel-bg);
  border-color: var(--admin-border);
}

.admin-body .panel,
.admin-body .stat-card,
.admin-body .bulk-actions-bar,
.admin-body .traffic-visit-card {
  box-shadow: none;
}

.admin-body .panel,
.admin-body .stat-card,
.admin-body .traffic-visit-card {
  border-radius: 16px;
}

.admin-body .admin-shell,
.admin-body .admin-main {
  background: var(--admin-background);
}

.admin-body .muted,
.admin-body small {
  font-family: var(--admin-helper-font);
  font-size: var(--admin-helper-size);
  color: var(--admin-helper-text);
}

.admin-body .field > span,
.admin-body legend,
.admin-body .filter-actions,
.admin-body .mini-actions,
.admin-body .row-actions-inline,
.admin-body .row-action-link,
.admin-body .row-action-button,
.admin-body .button-link {
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
  color: var(--admin-text);
}

.admin-body code,
.admin-body pre {
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-text);
}

.admin-body .admin-appearance-shell,
.admin-body .admin-appearance-shell form,
.admin-body .admin-appearance-shell label,
.admin-body .admin-appearance-shell span,
.admin-body .admin-appearance-shell p,
.admin-body .admin-appearance-shell h3 {
  font-family: var(--admin-body-font);
}

.admin-body .eyebrow,
.admin-body .status-pill {
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-meta-text);
}

.admin-body a {
  color: var(--admin-accent);
  text-decoration: none;
}

.admin-body a:hover {
  color: color-mix(in srgb, var(--admin-accent) 78%, var(--admin-heading-text));
  text-decoration: none;
}

.admin-body .field input,
.admin-body .field textarea,
.admin-body .field select {
  border-color: var(--admin-field-border);
  background: var(--admin-field-bg);
  color: var(--admin-field-text);
  font-family: var(--admin-field-font);
  font-size: var(--admin-field-size);
  padding: var(--admin-field-padding-y) var(--admin-field-padding-x);
  border-radius: var(--admin-field-radius);
}

.admin-body .field input:hover,
.admin-body .field textarea:hover,
.admin-body .field select:hover {
  background: var(--admin-field-hover-bg);
  border-color: var(--admin-field-hover-border);
}

.admin-body .field input:focus,
.admin-body .field textarea:focus,
.admin-body .field select:focus {
  outline: none;
  border-color: var(--admin-field-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-field-focus) 14%, transparent);
}

.admin-body .field input::placeholder,
.admin-body .field textarea::placeholder {
  color: var(--admin-field-placeholder);
}

.admin-body .field input:disabled,
.admin-body .field textarea:disabled,
.admin-body .field select:disabled {
  background: var(--admin-field-disabled-bg);
  color: var(--admin-field-disabled-text);
  border-color: var(--admin-field-disabled-border);
  cursor: not-allowed;
}

.admin-body .alert {
  background: color-mix(in srgb, var(--admin-accent) 7%, var(--admin-panel-bg));
  border-left: 4px solid var(--admin-accent);
}

.admin-body .alert-error {
  background: color-mix(in srgb, #b91c1c 8%, var(--admin-panel-bg));
  border-left-color: #b91c1c;
}

.admin-body .table th,
.admin-body .table td {
  border-bottom-color: var(--admin-border);
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
}

.admin-body .table td {
  color: var(--admin-text);
}

.admin-body .table th {
  color: var(--admin-meta-text);
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  font-weight: 600;
}

.admin-body .table td strong,
.admin-body .table td b {
  font-family: inherit;
}

.admin-body .table td a:not(.button):not(.status-pill):not(.tag-chip),
.admin-body .row-actions-inline a,
.admin-body .mini-actions a,
.admin-body .row-action-link,
.admin-body .row-action-button,
.admin-body .button-link {
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
  color: var(--admin-accent);
  text-decoration: none;
}

.admin-body .table td a:not(.button):not(.status-pill):not(.tag-chip):hover,
.admin-body .row-actions-inline a:hover,
.admin-body .mini-actions a:hover,
.admin-body .row-action-link:hover,
.admin-body .row-action-button:hover,
.admin-body .button-link:hover {
  color: color-mix(in srgb, var(--admin-accent) 78%, var(--admin-heading-text));
  text-decoration: none;
}

.admin-body .danger-link,
.admin-body .danger-link:hover {
  color: #b91c1c;
  text-decoration: none;
}

.admin-body .row-action-separator,
.admin-body .status-icon {
  font-family: var(--admin-meta-font);
  color: var(--admin-meta-text);
}

.admin-body .table td code,
.admin-body .table td .block-list-meta,
.admin-body .table td .block-list-meta span {
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-meta-text);
}

.admin-body .media-card,
.admin-body .media-picker-card {
  border-color: var(--admin-border);
  background: var(--admin-panel-bg);
}

.admin-body .media-card-body,
.admin-body .media-card-form .field > span,
.admin-body .media-card-form .field small,
.admin-body .media-card-form .field input,
.admin-body .media-card-form .field textarea,
.admin-body .media-picker-copy strong,
.admin-body .media-picker-copy small,
.admin-body .media-picker-field legend {
  font-family: var(--admin-body-font);
  color: var(--admin-text);
}

.admin-body .media-card-title {
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
  color: var(--admin-text);
}

.admin-body .media-card-badge,
.admin-body .media-card-meta,
.admin-body .media-card-detail dt,
.admin-body .media-picker-copy small,
.admin-body .media-picker-none-preview {
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-meta-text);
}

.admin-body .media-card-detail dd,
.admin-body .media-card-path,
.admin-body .media-usage-list,
.admin-body .media-usage-list li {
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
  color: var(--admin-text);
}

.admin-body .admin-text-body {
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
  color: var(--admin-text);
  line-height: 1.4;
}

.admin-body .admin-text-heading {
  font-family: var(--admin-heading-font);
  font-size: max(var(--admin-body-size), calc(var(--admin-meta-size) + 0.26rem));
  color: var(--admin-heading-text);
  line-height: 1.2;
}

.admin-body .admin-text-meta {
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-meta-text);
  line-height: 1.35;
}

.admin-body .section-admin-card h3,
.admin-body .block-list-type strong,
.admin-body .block-list-title strong,
.admin-body .type-card strong {
  font-family: var(--admin-heading-font);
  font-size: max(var(--admin-body-size), calc(var(--admin-meta-size) + 0.26rem));
  color: var(--admin-heading-text);
  line-height: 1.2;
}

.admin-body .section-admin-meta,
.admin-body .section-admin-meta span,
.admin-body .section-admin-columns,
.admin-body .section-admin-columns span,
.admin-body .block-list-meta,
.admin-body .block-list-meta span,
.admin-body .block-list-preview,
.admin-body .type-card span {
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-meta-text);
  line-height: 1.35;
}

.admin-body .section-admin-card .eyebrow,
.admin-body .block-list-mini-eyebrow,
.admin-body .block-list-mini-chip {
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-meta-text);
}

.admin-body .stat-card {
  background: var(--admin-panel-bg);
  border: 1px solid var(--admin-border);
}

.admin-body .stat-card p {
  color: var(--admin-helper-text);
}

.admin-body .bulk-actions-bar {
  border-color: var(--admin-border);
  background: color-mix(in srgb, var(--admin-panel-bg) 92%, var(--admin-background));
}

.admin-body .tag-chip {
  border-color: var(--admin-border);
  background: var(--admin-panel-bg);
  color: var(--admin-helper-text);
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
}

.admin-body .tag-chip span {
  color: var(--admin-heading-text);
}

.admin-body .tag-chip.is-active,
.admin-body .tag-chip:hover {
  border-color: color-mix(in srgb, var(--admin-accent) 35%, var(--admin-border));
  color: var(--admin-accent);
}

.admin-body .row-action-link,
.admin-body .row-action-button {
  color: var(--admin-accent);
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
}

h1 {
  letter-spacing: var(--theme-heading-tracking);
  text-transform: var(--theme-heading-case);
  font-variant-caps: normal;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: var(--theme-heading-link-text, var(--theme-heading-text, var(--theme-text)));
  text-decoration: var(--theme-heading-link-decoration, none);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.12em;
}

h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
  color: var(--theme-heading-link-hover-text, var(--theme-link-hover-text, var(--theme-accent)));
  text-decoration: var(--theme-heading-link-hover-decoration, underline);
}

:root[style*="--theme-heading-case: none"] h1,
:root[style*="--theme-heading-case: none"] h2,
:root[style*="--theme-heading-case: none"] h3,
:root[style*="--theme-heading-case: none"] h4,
:root[style*="--theme-heading-case: none"] h5,
:root[style*="--theme-heading-case: none"] h6 {
  font-variant-caps: normal;
}

p {
  font-size: var(--theme-base-size-fluid);
  line-height: var(--theme-body-line-height);
}

body:not(.admin-body) main p,
body:not(.admin-body) main li,
body:not(.admin-body) article p,
body:not(.admin-body) article li,
body:not(.admin-body) section p,
body:not(.admin-body) section li {
  font-size: var(--theme-base-size-fluid);
  letter-spacing: var(--theme-body-tracking, normal);
  text-transform: var(--theme-body-case, none);
}

body:not(.admin-body) main a:not(.button),
body:not(.admin-body) article a:not(.button),
body:not(.admin-body) section a:not(.button) {
  color: var(--theme-body-link-text, var(--theme-link-text, var(--theme-text)));
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: var(--theme-body-link-decoration, var(--theme-link-decoration, underline));
  text-decoration-thickness: from-font;
  text-underline-offset: 0.12em;
}

body:not(.admin-body) main a:not(.button):hover,
body:not(.admin-body) article a:not(.button):hover,
body:not(.admin-body) section a:not(.button):hover {
  color: var(--theme-body-link-hover-text, var(--theme-link-hover-text, var(--theme-accent)));
  text-decoration: var(--theme-body-link-hover-decoration, var(--theme-link-hover-decoration, underline));
}

.button:hover {
  color: var(--theme-button-text);
}

.admin-body .button {
  padding: var(--admin-button-padding-y) var(--admin-button-padding-x);
  border: 1px solid var(--admin-button-border);
  background: var(--admin-button-bg);
  color: var(--admin-button-text);
  border-radius: var(--admin-button-radius);
  font-family: var(--admin-button-font);
  font-size: var(--admin-button-size);
  font-weight: 600;
}

.admin-body .button:hover {
  color: var(--admin-button-hover-text);
  border-color: var(--admin-button-hover-border);
  background: var(--admin-button-hover-bg);
}

.admin-body .button-secondary {
  background: transparent;
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-body .button-secondary:hover {
  color: var(--admin-button-hover-text);
  border-color: var(--admin-button-hover-border);
  background: var(--admin-button-hover-bg);
}

.actions {
  display: flex;
  gap: var(--admin-button-gap, 1rem);
  margin-top: calc(2rem * var(--theme-space-scale));
  flex-wrap: wrap;
}

.actions-compact {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--theme-button-padding-y) var(--theme-button-padding-x);
  border: 1px solid var(--theme-button-border);
  background: var(--theme-button-background);
  color: var(--theme-button-text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--theme-button-font-size);
  font-weight: var(--theme-button-font-weight);
  border-radius: var(--theme-button-radius);
}

.button-secondary {
  background: transparent;
  color: var(--theme-text);
  border-color: var(--theme-border);
}

.button-secondary:hover {
  color: var(--theme-accent);
  border-color: color-mix(in srgb, var(--theme-accent) 35%, var(--theme-border));
}

.admin-sidebar .button-secondary:hover {
  color: var(--theme-accent-contrast);
  background: color-mix(in srgb, var(--theme-accent-contrast) 10%, transparent);
  border-color: color-mix(in srgb, var(--theme-accent-contrast) 28%, transparent);
}

.button-danger {
  background: #7c1d12;
  border-color: #7c1d12;
  color: #fff8f5;
}

.button-small {
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

.admin-body .button,
.admin-body a.button,
.admin-body button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--admin-button-padding-y) var(--admin-button-padding-x);
  border: 1px solid var(--admin-button-border);
  background: var(--admin-button-bg);
  color: var(--admin-button-text);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--admin-button-font);
  font-size: var(--admin-button-size);
  font-weight: 600;
  border-radius: var(--admin-button-radius);
}

.admin-body .button:hover,
.admin-body a.button:hover,
.admin-body button.button:hover {
  color: var(--admin-button-hover-text);
  border-color: var(--admin-button-hover-border);
  background: var(--admin-button-hover-bg);
  text-decoration: none;
}

.admin-body .button-secondary,
.admin-body a.button-secondary,
.admin-body button.button-secondary {
  background: transparent;
  color: var(--admin-text);
  border-color: var(--admin-border);
}

.admin-body .button-secondary:hover,
.admin-body a.button-secondary:hover,
.admin-body button.button-secondary:hover {
  color: var(--admin-button-hover-text);
  border-color: var(--admin-button-hover-border);
  background: var(--admin-button-hover-bg);
}

.admin-body .button-danger,
.admin-body a.button-danger,
.admin-body button.button-danger {
  border-color: #7c1d12;
  background: #7c1d12;
  color: #fff8f5;
}

.admin-body .button-danger:hover,
.admin-body a.button-danger:hover,
.admin-body button.button-danger:hover {
  border-color: #991b1b;
  background: #991b1b;
  color: #fff8f5;
}

.admin-body .button-small,
.admin-body a.button-small,
.admin-body button.button-small {
  font-size: calc(var(--admin-button-size) * 0.92);
  padding: calc(var(--admin-button-padding-y) * 0.82) calc(var(--admin-button-padding-x) * 0.82);
}

.admin-body {
  background: var(--admin-background);
  min-height: 100vh;
}

.auth-shell {
  max-width: 520px;
  margin: 10vh auto;
  padding: 1.5rem;
}

.auth-card,
.panel {
  background: var(--theme-surface-panel-background, var(--theme-surface));
  border: 1px solid var(--theme-surface-border);
  padding: calc(var(--theme-surface-padding) * var(--theme-space-scale));
  box-shadow: var(--theme-surface-shadow);
  border-radius: var(--theme-surface-radius);
}

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

.admin-sidebar {
  padding: calc(2rem * var(--theme-space-scale));
  background: var(--admin-background);
  color: var(--admin-text);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid var(--admin-border);
}

.admin-sidebar-note {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  background: var(--admin-panel-bg);
}

.admin-sidebar-note p {
  margin: 0;
}

.admin-sidebar-note a {
  color: var(--admin-accent);
  text-decoration: none;
}

.admin-sidebar .button-secondary {
  border-color: var(--admin-border);
  color: var(--admin-text);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-nav a {
  text-decoration: none;
  color: inherit;
}

.admin-sidebar .admin-nav a {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--admin-body-size);
  font-family: var(--admin-body-font);
  transition: color 140ms ease;
}

.admin-sidebar .admin-nav > a {
  color: var(--admin-accent);
}

.admin-sidebar .admin-nav > a:hover,
.admin-sidebar .admin-nav > a[aria-current="page"] {
  color: color-mix(in srgb, var(--admin-accent) 78%, var(--admin-heading-text));
  background: transparent;
  border-color: transparent;
}

.admin-nav > a[aria-current="page"] {
  font-weight: 700;
}

.admin-subnav {
  display: grid;
  gap: 0.35rem;
  margin: -0.35rem 0 0.35rem 0.85rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--admin-border);
}

.admin-subnav a {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: var(--admin-body-size);
  font-family: var(--admin-body-font);
  color: var(--admin-accent);
  text-decoration: none;
}

.admin-sidebar .admin-subnav a:hover,
.admin-sidebar .admin-subnav a[aria-current="page"] {
  color: color-mix(in srgb, var(--admin-accent) 78%, var(--admin-heading-text));
  background: transparent;
  border-color: transparent;
  font-weight: 600;
}

.admin-body .admin-main a:not(.button):not(.button-secondary):not(.button-danger):not(.button-small):not(.status-pill):not(.tag-chip) {
  color: var(--admin-accent, #0042aa) !important;
  text-decoration: none !important;
}

.admin-body .admin-main a:not(.button):not(.button-secondary):not(.button-danger):not(.button-small):not(.status-pill):not(.tag-chip):hover {
  color: color-mix(in srgb, var(--admin-accent, #0042aa) 78%, var(--admin-heading-text, #0f172a)) !important;
  text-decoration: none !important;
}

.admin-body .admin-main .danger-link,
.admin-body .admin-main .danger-link:hover {
  color: #b91c1c !important;
}

.admin-main {
  padding: calc(2rem * var(--theme-space-scale));
  display: grid;
  gap: 1.5rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.admin-subpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-body .admin-subpage-nav a {
  color: var(--admin-accent) !important;
  text-decoration: none !important;
  font: inherit;
}

.admin-body .admin-subpage-nav a:hover,
.admin-body .admin-subpage-nav a.is-current {
  color: color-mix(in srgb, var(--admin-accent) 72%, var(--admin-heading-text) 28%) !important;
}

.stack {
  display: grid;
  gap: calc(1rem * var(--theme-space-scale));
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field input {
  padding: var(--theme-form-padding-y) var(--theme-form-padding-x);
  border: 1px solid var(--theme-form-border);
  background: var(--theme-form-background);
  color: var(--theme-form-text);
  font-family: var(--theme-form-font-family);
  font-size: var(--theme-form-font-size);
  border-radius: var(--theme-form-radius);
}

.field input[type="url"],
.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  box-sizing: border-box;
}

.field input[type="color"] {
  width: 5.25rem;
  min-height: 3rem;
  padding: 0.3rem;
  border: 1px solid var(--theme-form-border);
  border-radius: var(--theme-form-radius);
  background: var(--theme-form-background);
  box-sizing: border-box;
  cursor: pointer;
}

.field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.field input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 8px;
}

.field input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 8px;
}

.field textarea,
.field select {
  padding: var(--theme-form-padding-y) var(--theme-form-padding-x);
  border: 1px solid var(--theme-form-border);
  background: var(--theme-form-background);
  color: var(--theme-form-text);
  font-family: var(--theme-form-font-family);
  font-size: var(--theme-form-font-size);
  border-radius: var(--theme-form-radius);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
body:not(.admin-body) input[type="text"]:focus,
body:not(.admin-body) input[type="email"]:focus,
body:not(.admin-body) input[type="url"]:focus,
body:not(.admin-body) input[type="search"]:focus,
body:not(.admin-body) input[type="number"]:focus,
body:not(.admin-body) input[type="password"]:focus,
body:not(.admin-body) textarea:focus,
body:not(.admin-body) select:focus {
  outline: none;
  border-color: var(--theme-form-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-form-focus) 14%, transparent);
}

.field input:hover,
.field textarea:hover,
.field select:hover,
body:not(.admin-body) input[type="text"]:hover,
body:not(.admin-body) input[type="email"]:hover,
body:not(.admin-body) input[type="url"]:hover,
body:not(.admin-body) input[type="search"]:hover,
body:not(.admin-body) input[type="number"]:hover,
body:not(.admin-body) input[type="password"]:hover,
body:not(.admin-body) textarea:hover,
body:not(.admin-body) select:hover {
  background: var(--theme-form-hover-background);
  border-color: var(--theme-form-hover-border);
}

body:not(.admin-body) input[type="text"],
body:not(.admin-body) input[type="email"],
body:not(.admin-body) input[type="url"],
body:not(.admin-body) input[type="search"],
body:not(.admin-body) input[type="number"],
body:not(.admin-body) input[type="password"],
body:not(.admin-body) textarea,
body:not(.admin-body) select {
  padding: var(--theme-form-padding-y) var(--theme-form-padding-x);
  border: 1px solid var(--theme-form-border);
  background: var(--theme-form-background);
  color: var(--theme-form-text);
  font-family: var(--theme-form-font-family);
  font-size: var(--theme-form-font-size);
  border-radius: var(--theme-form-radius);
  box-sizing: border-box;
}

.field input::placeholder,
.field textarea::placeholder,
body:not(.admin-body) input[type="text"]::placeholder,
body:not(.admin-body) input[type="email"]::placeholder,
body:not(.admin-body) input[type="url"]::placeholder,
body:not(.admin-body) input[type="search"]::placeholder,
body:not(.admin-body) input[type="number"]::placeholder,
body:not(.admin-body) input[type="password"]::placeholder,
body:not(.admin-body) textarea::placeholder {
  color: var(--theme-form-placeholder);
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled,
body:not(.admin-body) input[type="text"]:disabled,
body:not(.admin-body) input[type="email"]:disabled,
body:not(.admin-body) input[type="url"]:disabled,
body:not(.admin-body) input[type="search"]:disabled,
body:not(.admin-body) input[type="number"]:disabled,
body:not(.admin-body) input[type="password"]:disabled,
body:not(.admin-body) textarea:disabled,
body:not(.admin-body) select:disabled {
  background: var(--theme-form-disabled-background);
  color: var(--theme-form-disabled-text);
  border-color: var(--theme-form-disabled-border);
  cursor: not-allowed;
}

.field small {
  color: var(--theme-helper-text);
  font-family: var(--theme-helper-family);
  font-size: var(--theme-helper-size);
  line-height: 1.55;
}

.muted,
code {
  color: var(--theme-helper-text);
}

.muted {
  font-family: var(--theme-helper-family);
  font-size: var(--theme-helper-size-fluid, var(--theme-helper-size));
  line-height: 1.3;
}

.checkbox {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.permission-grid {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--theme-border);
  padding: calc(1rem * var(--theme-space-scale));
}

.alert {
  padding: 1rem 1.1rem;
  background: #eef2ff;
  border-left: 4px solid #4f46e5;
}

.alert-error {
  background: #fef2f2;
  border-left-color: #dc2626;
}

.panel-danger {
  border-color: rgba(124, 29, 18, 0.22);
}

.panel-subtle {
  background: color-mix(in srgb, var(--theme-background) 65%, var(--theme-surface));
}

.inheritance-panel {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.inheritance-panel h3,
.inheritance-panel p {
  margin: 0;
}

.inheritance-panel-copy {
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 900px) {
  .inheritance-panel {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.type-chooser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.compact-type-chooser {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.type-card {
  display: grid;
  gap: 0.35rem;
  padding: calc(1rem * var(--theme-space-scale));
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-surface-radius);
  text-decoration: none;
  background: color-mix(in srgb, var(--theme-background) 70%, var(--theme-surface));
}

.type-card span,
.type-card small {
  color: var(--theme-muted);
}

.type-card.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  background: #eff6ff;
}

.type-card.is-disabled {
  opacity: 0.65;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.editor-form-section-heading {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px solid color-mix(in srgb, var(--theme-border) 82%, transparent);
}

.editor-form-section-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.editor-form-section-heading h3,
.editor-form-section-heading p {
  margin: 0;
}

.field-grid-single-branding {
  grid-template-columns: 1fr;
}

.field select {
  min-width: 0;
}

.template-settings-group {
  display: grid;
  gap: calc(1rem * var(--theme-space-scale));
  padding: calc(1.25rem * var(--theme-space-scale));
}

.template-settings-group:first-of-type {
  margin-top: 0;
}

.template-settings-heading {
  display: grid;
  gap: 0.35rem;
}

.template-settings-heading h4 {
  margin: 0;
}

.template-settings-heading p {
  margin: 0;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.preset-card {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  padding: calc(var(--theme-surface-padding) * 0.9);
  background: var(--theme-surface-panel-background, var(--theme-surface));
  border: 1px solid var(--theme-surface-border);
  border-radius: var(--theme-surface-radius);
  box-shadow: var(--theme-surface-shadow);
}

.preset-card.is-active,
.saved-preset-item.is-active {
  border-color: color-mix(in srgb, var(--theme-accent) 32%, var(--theme-surface-border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-accent) 16%, transparent), var(--theme-surface-shadow);
}

.preset-card .button {
  width: 100%;
}

.preset-card-copy {
  display: grid;
  gap: 0.5rem;
}

.preset-card-copy h4,
.preset-card-copy p {
  margin: 0;
}

.preset-save-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-surface-border);
}

.saved-preset-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.saved-preset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(var(--theme-surface-padding) * 0.8);
  background: var(--theme-surface-panel-background, var(--theme-surface));
  border: 1px solid var(--theme-surface-border);
  border-radius: var(--theme-surface-radius);
}

.saved-preset-copy {
  display: grid;
  gap: 0.35rem;
}

.saved-preset-copy h4,
.saved-preset-copy p {
  margin: 0;
}

.preset-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.preset-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--theme-surface-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface-panel-background, var(--theme-surface)) 82%, var(--theme-background));
  color: var(--theme-helper-text);
  font-size: 0.84rem;
}

.preset-summary-chip strong {
  color: var(--theme-text);
  font-weight: 600;
}

.preset-summary-chip-color {
  padding-right: 0.65rem;
}

.preset-summary-swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--preset-swatch, var(--theme-accent));
  border: 1px solid rgba(15, 23, 42, 0.16);
  flex: 0 0 auto;
}

.preset-update-form {
  display: inline-flex;
}

.template-settings-group .field-grid:last-child {
  margin-bottom: 0;
}

.template-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.template-section-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-background) 65%, var(--theme-surface));
  text-decoration: none;
  color: var(--theme-text);
  font-family: var(--theme-helper-family);
  font-size: var(--theme-helper-size);
}

.template-section-nav a:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 28%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface));
}

.templates-editor:has(#template-section-branding:target) .template-section-nav a[href="#template-section-branding"],
.templates-editor:has(#template-section-header:target) .template-section-nav a[href="#template-section-header"],
.templates-editor:has(#template-section-footer:target) .template-section-nav a[href="#template-section-footer"],
.templates-editor:has(#template-section-surfaces:target) .template-section-nav a[href="#template-section-surfaces"],
.templates-editor:has(#template-section-layout:target) .template-section-nav a[href="#template-section-layout"],
.templates-editor:has(#template-section-navigation:target) .template-section-nav a[href="#template-section-navigation"],
.templates-editor:has(#template-section-links:target) .template-section-nav a[href="#template-section-links"],
.templates-editor:has(#template-section-buttons:target) .template-section-nav a[href="#template-section-buttons"] {
  border-color: color-mix(in srgb, var(--theme-accent) 58%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-accent) 16%, var(--theme-surface));
  color: var(--theme-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-accent) 24%, transparent);
}

.templates-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.templates-editor.is-typography {
  grid-template-columns: minmax(0, 1fr);
}

.templates-editor.is-view-branding {
  grid-template-columns: minmax(0, 1fr);
}

.templates-editor.is-view-surfaces {
  grid-template-columns: minmax(0, 1fr);
}

.templates-editor.is-view-navigation {
  grid-template-columns: minmax(0, 1fr);
}

.templates-editor-form {
  min-width: 0;
}

.templates-editor.is-view-branding .template-editor-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.templates-editor.is-view-surfaces .template-editor-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.templates-editor.is-view-navigation .template-editor-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.templates-editor.is-view-branding .template-settings-group {
  gap: 0.55rem;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.templates-editor.is-view-surfaces .template-settings-group {
  gap: 0.55rem;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.templates-editor.is-view-navigation .template-settings-group {
  gap: 0.55rem;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.templates-editor.is-view-branding .template-settings-heading {
  gap: 0.15rem;
}

.templates-editor.is-view-surfaces .template-settings-heading {
  gap: 0.15rem;
}

.templates-editor.is-view-navigation .template-settings-heading {
  gap: 0.15rem;
}

.templates-editor.is-view-branding .template-settings-heading .eyebrow {
  display: none;
}

.templates-editor.is-view-surfaces .template-settings-heading .eyebrow {
  display: none;
}

.templates-editor.is-view-navigation .template-settings-heading .eyebrow {
  display: none;
}

.templates-editor.is-view-branding .template-settings-heading p.muted {
  display: none;
}

.templates-editor.is-view-surfaces .template-settings-heading p.muted {
  display: none;
}

.templates-editor.is-view-navigation .template-settings-heading p.muted {
  display: none;
}

.templates-editor.is-view-navigation .template-section-nav {
  display: none;
}

.templates-editor.is-view-surfaces .template-section-nav {
  display: none;
}

.templates-editor.is-view-branding .muted:not([data-preview-text="header-tagline"]) {
  display: none;
}

.templates-editor.is-view-navigation .muted {
  display: none;
}

.templates-editor.is-view-branding .template-settings-heading h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.templates-editor.is-view-branding .preview-link-typography,
.templates-editor.is-view-branding .preview-link-links,
.templates-editor.is-view-branding .preview-link-buttons,
.templates-editor.is-view-branding .preview-link-surfaces,
.templates-editor.is-view-branding .preview-link-layout,
.templates-editor.is-view-branding .preview-link-navigation,
.templates-editor.is-view-surfaces .preview-link-branding,
.templates-editor.is-view-surfaces .preview-link-header,
.templates-editor.is-view-surfaces .preview-link-home,
.templates-editor.is-view-surfaces .preview-link-footer,
.templates-editor.is-view-surfaces .preview-link-typography,
.templates-editor.is-view-surfaces .preview-link-links,
.templates-editor.is-view-navigation .preview-link-branding,
.templates-editor.is-view-navigation .preview-link-header,
.templates-editor.is-view-navigation .preview-link-home,
.templates-editor.is-view-navigation .preview-link-footer,
.templates-editor.is-view-navigation .preview-link-typography,
.templates-editor.is-view-navigation .preview-link-links,
.templates-editor.is-view-navigation .preview-link-surfaces,
.templates-editor.is-view-navigation .preview-link-layout,
.templates-editor.is-view-navigation .preview-link-buttons {
  display: none;
}


.template-settings-group {
  scroll-margin-top: 1.5rem;
}

.template-settings-group:target {
  border-color: color-mix(in srgb, var(--theme-accent) 58%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-accent) 6%, var(--theme-surface));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  outline: 2px solid color-mix(in srgb, var(--theme-accent) 42%, transparent);
}

.template-settings-group:target .template-settings-heading h4,
.template-settings-group:target .template-settings-heading .eyebrow {
  color: var(--theme-accent);
}

.template-settings-group:target .template-settings-heading {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border));
}

.template-preview-section {
  padding: calc(0.75rem * var(--theme-space-scale));
  border: 1px solid transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-text) 8%, var(--theme-border));
  border-radius: var(--theme-surface-radius);
}

.template-preview-section:last-child {
  border-bottom: 0;
}

.template-surface-panel,
.template-surface-accent {
  margin: 0;
  padding: calc(var(--theme-surface-padding) * var(--theme-space-scale));
  border: 1px solid var(--theme-surface-border);
  border-radius: var(--theme-surface-radius);
  background: var(--theme-surface-panel-background, var(--theme-surface));
  box-shadow: var(--theme-surface-shadow);
  color: var(--theme-surface-panel-text);
  font-family: var(--theme-panel-family);
  font-size: var(--theme-panel-size);
}

.template-surface-panel {
  background: var(--theme-surface-panel-background, var(--theme-surface));
  border-color: var(--theme-surface-border);
  color: var(--theme-surface-panel-text);
  font-family: var(--theme-panel-family);
  font-size: var(--theme-panel-size);
}

.template-surface-accent {
  background: var(--theme-surface-accent-background);
  border-color: var(--theme-surface-accent-border);
  color: var(--theme-surface-accent-text);
  font-family: var(--theme-accent-family);
  font-size: var(--theme-accent-size);
}

.template-editor-preview {
  margin: 0;
  padding: 0.15rem 0 0.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.template-editor-preview .site-header,
.template-editor-preview .site-footer {
  margin: 0;
}

.template-editor-preview .home-intro {
  margin: 0;
}

.template-branding-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "heading controls"
    "preview controls";
  gap: 0.45rem 0.9rem;
  align-items: start;
}

.template-branding-row > .template-settings-heading {
  grid-area: heading;
}

.template-branding-row > .template-editor-preview {
  grid-area: preview;
  margin: 0;
}

.template-branding-row > .template-branding-controls {
  grid-area: controls;
}

.template-branding-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem 0.65rem;
  align-content: start;
}

.templates-editor.is-view-branding .template-branding-controls .field-grid:not(.field-grid-single-branding) {
  display: contents;
}

.templates-editor.is-view-branding .template-branding-controls .field {
  min-width: 0;
}

.templates-editor.is-view-branding .template-branding-controls .field > span {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.2;
  color: color-mix(in srgb, var(--theme-text) 72%, transparent);
}

.templates-editor.is-view-branding .template-branding-controls .field input[type="text"],
.templates-editor.is-view-branding .template-branding-controls .field input[type="number"],
.templates-editor.is-view-branding .template-branding-controls .field input[type="color"],
.templates-editor.is-view-branding .template-branding-controls .field textarea,
.templates-editor.is-view-branding .template-branding-controls .field select {
  min-height: 2rem;
  padding: calc(var(--admin-field-padding-y) * 0.5) calc(var(--admin-field-padding-x) * 0.55);
  font-family: var(--admin-field-font);
  font-size: calc(var(--admin-field-size) * 0.84);
  line-height: 1.2;
  color: var(--admin-field-text);
  border: 1px solid var(--admin-field-border);
  border-radius: calc(var(--admin-field-radius) * 0.6);
  background: var(--admin-field-bg);
}

.templates-editor.is-view-branding .template-branding-controls .field small {
  display: none;
}

.templates-editor.is-view-branding .template-branding-controls .field:has(textarea),
.templates-editor.is-view-branding .template-branding-controls .field-grid-single-branding,
.templates-editor.is-view-branding .template-branding-controls .field-grid-single-branding + .field-grid {
  grid-column: 1 / -1;
}

.templates-editor.is-view-branding .template-branding-controls .field textarea {
  min-height: 3.8rem;
}

.templates-editor.is-view-branding .template-branding-controls .field-grid-single-branding {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  align-items: start;
}

.templates-editor.is-view-branding .template-branding-controls .field-grid-single-branding + .field-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px);
  gap: 0.45rem 0.65rem;
  margin: 0;
}

.templates-editor.is-view-branding .media-picker-field {
  gap: 0.35rem;
}

.templates-editor.is-view-branding .media-picker-field legend {
  font-size: 0.76rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--theme-text) 72%, transparent);
  margin-bottom: 0.1rem;
}

.templates-editor.is-view-branding .media-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}

.templates-editor.is-view-branding .media-picker-card {
  display: inline-grid;
  grid-template-columns: auto;
  justify-items: center;
  align-content: start;
  width: auto;
  min-width: 0;
  gap: 0.18rem;
  padding: 0.22rem;
  border-radius: 999px;
  box-shadow: none;
}

.templates-editor.is-view-branding .media-picker-thumb-wrap {
  width: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 999px;
}

.templates-editor.is-view-branding .media-picker-thumb {
  width: 2.25rem;
  height: 2.25rem;
  max-height: none;
  object-fit: contain;
}

.templates-editor.is-view-branding .media-picker-copy,
.templates-editor.is-view-branding .media-picker-card-none .media-picker-copy {
  display: none;
}

.templates-editor.is-view-branding .media-picker-field > small {
  display: none;
}

.templates-editor.is-view-branding .media-picker-none-preview {
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

.templates-editor.is-view-branding .site-header,
.templates-editor.is-view-branding .site-footer,
.templates-editor.is-view-branding .home-intro {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.templates-editor.is-view-branding .home-intro-copy.panel {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.templates-editor.is-view-branding .template-editor-preview .brandmark-title,
.templates-editor.is-view-branding .template-editor-preview h1 {
  font-size: 1.05rem;
  line-height: 1.1;
}

.templates-editor.is-view-branding .template-editor-preview .footer-heading-text {
  line-height: 1.12;
}

.templates-editor.is-view-branding .template-editor-preview .brandmark-tagline,
.templates-editor.is-view-branding .template-editor-preview .footer-body-text,
.templates-editor.is-view-branding .template-editor-preview .lead,
.templates-editor.is-view-branding .template-editor-preview .muted {
  font-size: 0.82rem;
  line-height: 1.35;
}

.templates-editor.is-view-branding .template-branding-favicon {
  width: 36px;
  height: 36px;
}

.admin-appearance-shell {
  display: grid;
  gap: 1rem;
}

.admin-appearance-font-upload {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--admin-border) 78%, transparent);
}

.admin-appearance-section-heading {
  display: grid;
  gap: 0.15rem;
}

.admin-appearance-section-heading h3 {
  margin: 0;
  font-family: var(--admin-heading-font);
  color: var(--admin-heading-text);
}

.admin-appearance-section-heading .eyebrow {
  margin: 0;
}

.admin-appearance-upload-grid {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.admin-appearance-form {
  gap: 1rem;
}

.admin-appearance-row {
  display: grid;
  gap: 0.8rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--admin-border) 78%, transparent);
}

.admin-appearance-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-appearance-preview {
  display: grid;
  gap: 0.35rem;
}

.admin-appearance-kicker,
.admin-appearance-preview-meta {
  margin: 0;
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-meta-text);
}

.admin-appearance-preview-heading {
  margin: 0;
  font-family: var(--admin-heading-font);
  font-size: var(--admin-heading-size);
  line-height: 1.05;
  color: var(--admin-heading-text);
}

.admin-appearance-preview-body {
  margin: 0;
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
  line-height: 1.45;
  color: var(--admin-text);
}

.admin-appearance-preview-helper {
  margin: 0;
  font-family: var(--admin-helper-font);
  font-size: var(--admin-helper-size);
  line-height: 1.45;
  color: var(--admin-helper-text);
}

.admin-appearance-preview-meta {
  font-family: var(--admin-meta-font);
}

.admin-appearance-controls {
  grid-template-columns: repeat(auto-fit, minmax(8.25rem, 11rem));
  gap: 0.7rem 0.8rem;
  align-items: start;
}

.admin-appearance-controls .field {
  min-width: 0;
  align-content: start;
}

.admin-appearance-controls .field > span {
  display: flex;
  align-items: end;
  min-height: 2.1rem;
  font-family: var(--admin-body-font);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--admin-text);
}

.admin-appearance-controls .field input,
.admin-appearance-controls .field select,
.admin-appearance-controls .field textarea {
  width: 100%;
  min-height: 2.5rem;
  padding: calc(var(--admin-field-padding-y) * 0.7) calc(var(--admin-field-padding-x) * 0.75);
  font-family: var(--admin-field-font);
  font-size: calc(var(--admin-field-size) * 0.94);
  box-sizing: border-box;
}

.admin-appearance-controls .field input[type="color"] {
  width: 2.6rem;
  min-width: 2.6rem;
  height: 2.5rem;
  padding: 0.15rem;
  border-radius: 999px;
  justify-self: start;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.admin-appearance-controls .field input[type="number"] {
  max-width: 6.25rem;
}

.admin-appearance-controls .field select,
.admin-appearance-controls .field input[type="text"] {
  max-width: 100%;
}

.admin-appearance-controls-surface,
.admin-appearance-controls-buttons,
.admin-appearance-controls-fields {
  grid-template-columns: repeat(auto-fit, minmax(8.25rem, 10.75rem));
}

.admin-appearance-controls-fields {
  grid-template-columns: repeat(auto-fit, minmax(7.75rem, 10rem));
  align-items: start;
}

.admin-appearance-controls-buttons {
  grid-template-columns: repeat(auto-fit, minmax(7.75rem, 10rem));
  align-items: start;
}

.admin-appearance-controls-buttons .field input[type="color"] {
  width: 2.6rem;
  min-width: 2.6rem;
}

.admin-appearance-controls .field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.admin-appearance-controls .field input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}

.admin-appearance-controls .field input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 999px;
}

.admin-appearance-controls-buttons .field input[type="text"],
.admin-appearance-controls-buttons .field input[type="number"],
.admin-appearance-controls-buttons .field select {
  max-width: 100%;
}

.admin-appearance-controls-fields .field input[type="color"] {
  width: 2.6rem;
  min-width: 2.6rem;
}

.admin-appearance-controls-fields .field input[type="text"],
.admin-appearance-controls-fields .field input[type="number"],
.admin-appearance-controls-fields .field select {
  max-width: 100%;
}

.admin-appearance-preview-surface {
  align-items: start;
}

.admin-appearance-surface-preview,
.admin-appearance-button-preview,
.admin-appearance-field-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-appearance-field-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-appearance-field-preview input,
.admin-appearance-field-preview select,
.admin-appearance-field-preview textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--admin-field-font);
  font-size: var(--admin-field-size);
  color: var(--admin-field-text);
  background: var(--admin-field-bg);
  border: 1px solid var(--admin-field-border);
  border-radius: var(--admin-field-radius);
  padding: var(--admin-field-padding-y) var(--admin-field-padding-x);
}

.admin-appearance-field-preview textarea {
  min-height: 5.2rem;
  resize: vertical;
}

.admin-appearance-field-preview input:disabled {
  grid-column: 1 / 2;
}

.admin-appearance-field-preview input::placeholder,
.admin-appearance-field-preview textarea::placeholder {
  color: var(--admin-field-placeholder);
}

.admin-appearance-field-preview input:disabled,
.admin-appearance-field-preview select:disabled,
.admin-appearance-field-preview textarea:disabled {
  background: var(--admin-field-disabled-bg);
  color: var(--admin-field-disabled-text);
  border-color: var(--admin-field-disabled-border);
}

.admin-appearance-surface-preview {
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--admin-border) 78%, transparent);
  border-radius: 1rem;
  background: var(--admin-panel-bg);
}

.admin-appearance-accent-link {
  color: var(--admin-accent);
  text-decoration: none;
}

.admin-appearance-font-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-appearance-font-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--admin-border);
  border-radius: 999px;
  background: var(--admin-panel-bg);
  font-size: 0.92rem;
}

.admin-appearance-font-chip button {
  border: 0;
  background: transparent;
  color: var(--admin-accent);
  cursor: pointer;
  padding: 0;
}

.admin-appearance-shell .actions {
  margin-top: 0.25rem;
}

@media (max-width: 860px) {
  .admin-appearance-controls,
  .admin-appearance-controls-surface,
  .admin-appearance-controls-buttons,
  .admin-appearance-controls-fields,
  .admin-appearance-upload-grid {
    grid-template-columns: 1fr;
  }

  .admin-appearance-field-preview {
    grid-template-columns: 1fr;
  }

  .admin-appearance-field-preview input:disabled {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .template-branding-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "preview"
      "controls";
  }

  .template-branding-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .templates-editor.is-view-branding .template-branding-controls .field-grid-single-branding {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .template-branding-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .templates-editor.is-view-branding .template-branding-controls .field-grid-single-branding {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .template-branding-controls {
    grid-template-columns: 1fr;
  }
}

.template-surface-accent .eyebrow,
.template-surface-accent h3,
.template-surface-accent p {
  color: inherit;
}

.template-surface-accent h3 {
  font-family: var(--theme-accent-family);
  font-size: calc(var(--theme-accent-size) * 1.18);
  letter-spacing: normal;
  text-transform: none;
}

.template-surface-accent p {
  font-size: inherit;
  line-height: var(--theme-body-line-height);
}

.template-surface-panel h3,
.template-surface-panel p,
.template-surface-panel .eyebrow,
.template-surface-accent .eyebrow {
  color: inherit;
}

.template-surface-panel h3 {
  font-family: var(--theme-panel-family);
  font-size: calc(var(--theme-panel-size) * 1.18);
  letter-spacing: normal;
  text-transform: none;
}

.template-editor-preview > .site-header,
.template-editor-preview > .site-footer {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: calc(var(--theme-header-spacing) * 0.95) calc(var(--theme-header-spacing) + 0.1rem);
  border-radius: var(--theme-surface-radius);
}

.template-editor-preview > .site-header {
  background: var(--theme-header-background);
  border: 1px solid var(--theme-header-border);
  color: var(--theme-header-text);
  font-family: var(--theme-header-family);
  font-size: var(--theme-header-size);
}

.template-editor-preview > .site-footer {
  background: var(--theme-footer-background);
  border: 1px solid var(--theme-footer-border);
  color: var(--theme-footer-text);
  font-family: var(--theme-footer-family);
  font-size: var(--theme-footer-size);
}

.template-editor-preview > .site-footer .footer-inner {
  display: grid;
  gap: 0.15rem;
}

.template-editor-preview > .site-footer .footer-inner p {
  margin: 0;
}

.template-editor-preview > .site-footer .footer-heading-text {
  font-family: var(--theme-footer-heading-family, var(--theme-footer-family));
  font-size: var(--theme-footer-heading-size-fluid);
  color: var(--theme-footer-heading-text, var(--theme-footer-text));
}

.template-editor-preview > .site-footer .footer-body-text {
  font-family: var(--theme-footer-family);
  font-size: var(--theme-footer-size-fluid);
  color: var(--theme-footer-text);
}

.template-editor-preview > .site-header a,
.template-editor-preview > .site-header p,
.template-editor-preview > .site-header .muted,
.template-editor-preview > .site-footer a,
.template-editor-preview > .site-footer p,
.template-editor-preview > .site-footer .muted {
  color: inherit;
  font-family: inherit;
}

.template-layout-rhythm {
  display: grid;
  gap: 0.7rem;
}

.template-layout-rhythm span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-text) 10%, var(--theme-surface));
}

.template-layout-rhythm span:nth-child(1) {
  width: 100%;
}

.template-layout-rhythm span:nth-child(2) {
  width: 82%;
}

.template-layout-rhythm span:nth-child(3) {
  width: 68%;
}


.media-thumb {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--theme-border);
  background: color-mix(in srgb, var(--theme-background) 70%, var(--theme-surface));
}

.media-thumb-large {
  width: 100%;
  height: 180px;
}

.media-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-helper-text);
  text-align: center;
  padding: 1rem;
}

.media-library {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.media-card {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  gap: 0.85rem;
  padding: calc(1rem * var(--theme-space-scale));
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-surface-radius);
  background: var(--theme-surface);
  align-items: start;
}

.media-card-preview {
  min-width: 0;
}

.media-card-body {
  display: grid;
  gap: 0.65rem;
  font-family: var(--theme-body-font, inherit);
  color: var(--theme-text-color, #111827);
}

.media-card-header {
  display: grid;
  gap: 0.35rem;
}

.media-card-title {
  display: block;
  margin: 0;
  font-family: var(--theme-heading-font, var(--theme-body-font, inherit));
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--theme-text-color, #111827);
}

.media-card-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--theme-text-color, #111827) 12%, white);
  background: color-mix(in srgb, var(--theme-background-color, #f6f7fb) 80%, white);
  color: color-mix(in srgb, var(--theme-text-color, #111827) 72%, white);
  font-family: var(--theme-helper-font, var(--theme-body-font, inherit));
  font-size: 0.76rem;
  line-height: 1;
}

.media-card-details {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.media-card-detail {
  display: grid;
  grid-template-columns: minmax(88px, 104px) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.media-card-detail dt,
.media-card-detail dd {
  margin: 0;
  font-family: var(--theme-body-font, inherit);
  font-size: 0.92rem;
  line-height: 1.45;
}

.media-card-detail dt {
  color: color-mix(in srgb, var(--theme-text-color, #111827) 62%, white);
}

.media-card-detail dt::after {
  content: ":";
}

.media-card-detail dd {
  color: var(--theme-text-color, #111827);
  word-break: break-word;
}

.media-card-form {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.8rem;
}

.media-card-form .field {
  margin: 0;
}

.media-card-form .field:nth-of-type(3) {
  grid-column: 1 / -1;
}

.media-card-form .mini-actions {
  grid-column: 1 / -1;
}

.media-picker-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.media-picker-field legend {
  margin-bottom: 0.6rem;
  font: inherit;
  font-weight: 600;
  color: var(--theme-text-color, #111827);
}

.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.media-picker-card {
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--theme-text-color, #111827) 12%, white);
  border-radius: var(--theme-panel-radius, 22px);
  background: color-mix(in srgb, var(--theme-surface-panel-bg, #fff) 92%, white);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.media-picker-card:hover {
  border-color: color-mix(in srgb, var(--theme-accent-color, #e32400) 40%, white);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.media-picker-card.is-selected {
  border-color: var(--theme-accent-color, #e32400);
  background: color-mix(in srgb, var(--theme-accent-color, #e32400) 8%, white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--theme-accent-color, #e32400) 25%, transparent);
}

.media-picker-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.media-picker-thumb-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-radius: calc(var(--theme-panel-radius, 22px) - 8px);
  background: color-mix(in srgb, var(--theme-surface-panel-bg, #fff) 86%, var(--theme-background-color, #f6f7fb));
  overflow: hidden;
}

.media-picker-thumb {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.media-picker-none-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 1rem;
  border: 1px dashed color-mix(in srgb, var(--theme-text-color, #111827) 18%, white);
  border-radius: calc(var(--theme-panel-radius, 22px) - 8px);
  color: color-mix(in srgb, var(--theme-text-color, #111827) 65%, white);
  background: color-mix(in srgb, var(--theme-background-color, #f6f7fb) 88%, white);
  text-align: center;
}

.media-picker-copy {
  display: grid;
  gap: 0.2rem;
}

.media-picker-copy strong,
.media-picker-copy small {
  font-family: var(--theme-body-font, inherit);
  color: var(--theme-text-color, #111827);
}

.media-picker-copy small {
  color: color-mix(in srgb, var(--theme-text-color, #111827) 62%, white);
}

.media-card-path {
  word-break: break-all;
}

.media-card-meta {
  margin: 0;
  color: var(--theme-helper-text);
  font-size: var(--theme-helper-size);
  font-family: var(--theme-body-font, inherit);
}

.media-usage {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.2rem;
  border-top: 1px solid color-mix(in srgb, var(--theme-text-color, #111827) 10%, white);
}

.media-usage strong {
  display: block;
  margin: 0;
  font-family: var(--theme-body-font, inherit);
  font-size: 0.92rem;
  color: var(--theme-text-color, #111827);
}

.media-usage-list {
  margin: 0;
  padding-left: 1rem;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 72%, white);
  font-size: 0.88rem;
  font-family: var(--theme-body-font, inherit);
}

.media-usage-list li + li {
  margin-top: 0.18rem;
}

.media-card-actions {
  display: flex;
  justify-content: flex-start;
  grid-column: 2;
}

.media-card-form .field > span,
.media-card-form .field small,
.media-card-form .field input,
.media-card-form .field textarea {
  font-family: var(--theme-body-font, inherit);
}

.article-image {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.article-image-large {
  margin-bottom: 1.5rem;
}

.block-editor-preview-inline {
  margin: 0.35rem 0 1.5rem;
}

.block-editor-preview-inline .block-preview {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.block-preview {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--theme-border);
  --block-spacing-top: 1.5rem;
  --block-spacing-bottom: 1.5rem;
  --block-inner-padding: 1.2rem;
}

.block-preview-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.block-preview-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--theme-text-color, #111827) 10%, white);
  background: color-mix(in srgb, var(--theme-surface, #ffffff) 88%, var(--theme-background, #f8fafc));
  color: color-mix(in srgb, var(--theme-text-color, #111827) 76%, white);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.field-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.field-unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 62%, white);
}

.field.is-visual-select select[data-visual-select],
.field.is-visual-select select[data-layout-visual-select] {
  position: absolute;
  inset: auto auto auto -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.visual-select {
  margin-top: 0.55rem;
}

.visual-select-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.visual-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--theme-border, #dbe3f0) 88%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface, #fff) 92%, white);
  color: color-mix(in srgb, var(--theme-text-color, #111827) 76%, white);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.visual-select-button:hover {
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 28%, white);
  color: color-mix(in srgb, var(--theme-accent, #2563eb) 72%, black);
  transform: translateY(-1px);
}

.visual-select-button.is-active {
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 34%, white);
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 10%, white);
  color: color-mix(in srgb, var(--theme-accent, #2563eb) 78%, black);
  box-shadow: 0 10px 22px -18px rgba(37, 99, 235, 0.9);
}

.visual-select-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.toggle-group {
  display: grid;
  gap: 0.65rem;
}

.toggle-group legend {
  margin-bottom: 0.15rem;
}

.toggle-group .checkbox,
.checkbox.toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--theme-border, #dbe3f0) 88%, white);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--theme-surface, #fff) 92%, white);
  color: color-mix(in srgb, var(--theme-text-color, #111827) 78%, white);
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

.toggle-group .checkbox:hover,
.checkbox.toggle-option:hover {
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 24%, white);
  transform: translateY(-1px);
}

.toggle-group .checkbox input,
.checkbox.toggle-option input {
  accent-color: var(--theme-accent, #2563eb);
}

.toggle-group .checkbox span,
.checkbox.toggle-option span {
  font-weight: 700;
  line-height: 1.2;
}

.toggle-group .checkbox:has(input:checked),
.checkbox.toggle-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 34%, white);
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 10%, white);
  color: color-mix(in srgb, var(--theme-accent, #2563eb) 78%, black);
  box-shadow: 0 10px 22px -18px rgba(37, 99, 235, 0.9);
}

.flow-selection-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.flow-selection-card {
  display: grid;
  gap: 0.25rem;
  min-height: 5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--theme-border, #dbe3f0) 88%, white);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--theme-surface, #fff) 94%, var(--theme-background, #f8fafc));
}

.flow-selection-card strong {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 52%, white);
}

.flow-selection-card span {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 82%, white);
}

.flow-picked-items {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--theme-border, #dbe3f0) 88%, white);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--theme-surface, #fff) 95%, var(--theme-background, #f8fafc));
}

.flow-picked-items-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.flow-picked-items-header strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 82%, white);
}

.flow-picked-items-header span {
  font-size: 0.82rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 56%, white);
}

.flow-picked-items-list {
  display: grid;
  gap: 0.55rem;
}

.flow-picked-items-empty {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 56%, white);
}

.flow-picked-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #2563eb) 14%, white);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 6%, white);
}

.flow-picked-item-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface, #fff) 92%, white);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #2563eb) 16%, white);
  color: color-mix(in srgb, var(--theme-accent, #2563eb) 78%, black);
  font-size: 0.82rem;
  font-weight: 700;
}

.flow-picked-item-label {
  min-width: 0;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 84%, white);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.flow-picked-item-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.flow-picked-item-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--theme-border, #dbe3f0) 88%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface, #fff) 95%, white);
  color: color-mix(in srgb, var(--theme-text-color, #111827) 72%, white);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.flow-picked-item-button:hover {
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 24%, white);
  color: color-mix(in srgb, var(--theme-accent, #2563eb) 76%, black);
  transform: translateY(-1px);
}

.flow-picked-item-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.flow-picked-item-button.is-danger:hover {
  border-color: color-mix(in srgb, #dc2626 24%, white);
  color: #b91c1c;
}

.block-box-editor {
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--theme-border, #dbe3f0) 88%, white);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--theme-surface, #fff) 92%, var(--theme-background, #f8fafc));
}

.block-box-editor-middle {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.9fr);
  gap: 1rem;
  align-items: center;
}

.block-box-editor-stage {
  position: relative;
  min-height: 16rem;
  padding: 1rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--theme-accent, #2563eb) 6%, transparent), transparent 22%),
    color-mix(in srgb, var(--theme-background, #f8fafc) 84%, white);
  border: 1px dashed color-mix(in srgb, var(--theme-border, #dbe3f0) 92%, white);
}

.block-box-editor-space {
  position: relative;
  border-radius: 0.9rem;
  border: 1px dashed color-mix(in srgb, var(--theme-accent, #2563eb) 28%, white);
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 8%, white);
}

.block-box-editor-space-label,
.block-box-editor-card-label,
.block-box-editor-inner-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-surface, #fff) 92%, white);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #2563eb) 16%, white);
  color: color-mix(in srgb, var(--theme-text-color, #111827) 74%, white);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.4);
}

.block-box-editor-space-label {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
}

.block-box-editor-space-top {
  height: var(--block-spacing-top-preview, 1.5rem);
  min-height: 0.5rem;
  margin-bottom: 0.75rem;
}

.block-box-editor-space-bottom {
  height: var(--block-spacing-bottom-preview, 1.5rem);
  min-height: 0.5rem;
  margin-top: 0.75rem;
}

.block-box-editor-card {
  position: relative;
  width: min(100%, var(--block-max-width-preview, 32rem));
  min-height: 7rem;
  margin-inline: auto;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--theme-accent, #2563eb) 26%, white);
  background: color-mix(in srgb, var(--theme-surface, #fff) 96%, var(--theme-accent, #2563eb) 4%);
  box-shadow: 0 18px 36px -30px rgba(15, 23, 42, 0.35);
}

.block-box-editor-card-inner {
  display: grid;
  gap: 0.35rem;
  min-height: 7rem;
  padding: var(--block-inner-padding-preview, 1.2rem);
  color: color-mix(in srgb, var(--theme-text-color, #111827) 88%, white);
}

.block-box-editor-card-inner strong {
  font-size: 1rem;
}

.block-box-editor-card-inner span {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 64%, white);
}

.block-box-editor-card-label {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
}

.block-box-editor-inner-label {
  justify-self: start;
  margin-top: 0.35rem;
}

.block-box-editor-field {
  margin: 0;
}

.block-box-editor-bottom-fields {
  margin: 0;
}

.block-box-editor-help {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .block-box-editor-middle {
    grid-template-columns: 1fr;
  }

  .visual-select-options {
    gap: 0.45rem;
  }

  .visual-select-button {
    min-height: 2.15rem;
    padding-inline: 0.8rem;
    font-size: 0.88rem;
  }
}

.block-preview-quick-group {
  display: grid;
  gap: 0.45rem;
}

.block-preview-quick-group strong {
  font-size: 0.84rem;
  color: color-mix(in srgb, var(--theme-text-color, #111827) 74%, white);
}

.block-preview-quick-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.block-preview-quick-button {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--theme-text-color, #111827) 10%, white);
  background: color-mix(in srgb, var(--theme-surface, #ffffff) 90%, var(--theme-background, #f8fafc));
  color: color-mix(in srgb, var(--theme-text-color, #111827) 78%, white);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.block-preview-quick-button:hover,
.block-preview-quick-button:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 28%, white);
}

.block-preview-quick-button.is-active {
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 40%, white);
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 14%, white);
  color: color-mix(in srgb, var(--theme-accent, #2563eb) 78%, black);
}

.editor-preview-surface {
  position: relative;
}

.editor-preview-field {
  position: relative;
  margin-top: 0.45rem;
  padding-top: 1.1rem;
}

.editor-preview-tag {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 14%, white);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #2563eb) 28%, white);
  color: color-mix(in srgb, var(--theme-accent, #2563eb) 78%, black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.editor-preview-tag:hover,
.editor-preview-tag:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 20%, white);
  border-color: color-mix(in srgb, var(--theme-accent, #2563eb) 40%, white);
  outline: none;
}

.editor-preview-tag[data-editor-target]::after {
  content: " ->";
  margin-left: 0.22rem;
  opacity: 0.55;
}

.editor-jump-target {
  border-radius: 14px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #2563eb) 18%, transparent);
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 6%, var(--theme-surface, #ffffff));
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

.inline-edit-frame {
  position: relative;
  --block-spacing-top: 1.5rem;
  --block-spacing-bottom: 1.5rem;
  --block-inner-padding: 1.2rem;
  margin-top: var(--block-spacing-top);
  margin-bottom: var(--block-spacing-bottom);
}

.block-spacing-top-none {
  margin-top: 0;
}

.block-spacing-top-sm {
  margin-top: 0.75rem;
}

.block-spacing-top-md {
  margin-top: 1.5rem;
}

.block-spacing-top-lg {
  margin-top: 2.5rem;
}

.block-spacing-bottom-none {
  margin-bottom: 0;
}

.block-spacing-bottom-sm {
  margin-bottom: 0.75rem;
}

.block-spacing-bottom-md {
  margin-bottom: 1.5rem;
}

.block-spacing-bottom-lg {
  margin-bottom: 2.5rem;
}

.site-inline-editor-active .inline-edit-frame.is-editable {
  outline: 2px dashed color-mix(in srgb, #b91c1c 48%, white);
  outline-offset: 6px;
  border-radius: 18px;
  transition: outline-color 140ms ease;
}

.site-inline-editor-active .inline-edit-frame.is-editable.is-inline-edited,
.site-inline-editor-active .home-intro.inline-edit-frame.is-editable.is-inline-edited {
  outline-color: color-mix(in srgb, #f59e0b 70%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, #f59e0b 34%, transparent);
  background: color-mix(in srgb, #f59e0b 7%, transparent);
}

.site-inline-editor-active .inline-edit-frame.is-editable[data-inline-label]::before {
  content: attr(data-inline-label);
  position: absolute;
  top: -0.85rem;
  left: 0.5rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: 1rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: #fff7d6;
  border: 1px solid color-mix(in srgb, #b91c1c 24%, #e5e7eb);
  color: #7f1d1d;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.inline-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #b91c1c 38%, white);
  background: color-mix(in srgb, #b91c1c 12%, var(--theme-surface, #ffffff));
  color: color-mix(in srgb, #b91c1c 86%, black);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: opacity 140ms ease, transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.inline-edit-link:hover,
.inline-edit-link:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, #b91c1c 52%, white);
  background: color-mix(in srgb, #b91c1c 18%, var(--theme-surface, #ffffff));
  outline: none;
}

.inline-edit-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.inline-edit-actions .inline-edit-link {
  min-height: 1.1rem;
  padding: 0.06rem 0.32rem;
  font-size: 0.62rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.inline-edit-actions-floating {
  position: absolute;
  top: -0.82rem;
  right: 0.5rem;
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
}

.site-has-inline-editor .inline-edit-frame.is-editable > .inline-edit-actions-floating,
.site-has-inline-editor .home-intro.inline-edit-frame.is-editable > .inline-edit-actions-floating {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .site-has-inline-editor .inline-edit-frame.is-editable > .inline-edit-actions-floating,
  .site-has-inline-editor .home-intro.inline-edit-frame.is-editable > .inline-edit-actions-floating {
    opacity: 1;
    pointer-events: auto;
  }
}

.inline-editor-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0;
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 1px solid #eab308;
  backdrop-filter: blur(6px);
}

.inline-editor-bar.is-active {
  background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
}

.inline-editor-bar-inner {
  width: min(var(--theme-content-width), calc(100vw - 1rem));
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 5px;
  padding-inline: 0;
}

.inline-editor-bar-copy {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  line-height: 1.2;
}

.inline-editor-bar-copy strong {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111111;
}

.inline-editor-bar-copy span {
  color: #111111;
}

.inline-editor-bar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.inline-edit-toolbar-button,
.inline-edit-toolbar-link {
  position: static;
  opacity: 1;
  pointer-events: auto;
  min-height: 0;
  padding: 0;
  font-size: 0.68rem;
  box-shadow: none;
  border: 0;
  background: none;
  border-radius: 0;
  color: #111111;
  text-decoration: none;
}

.inline-edit-toolbar-button:hover,
.inline-edit-toolbar-button:focus-visible,
.inline-edit-toolbar-link:hover,
.inline-edit-toolbar-link:focus-visible {
  color: #111111;
  background: none;
  border-color: transparent;
}

@media (max-width: 720px) {
  .inline-editor-bar-inner {
    width: calc(100vw - 1rem);
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-editor-bar-actions {
    justify-content: flex-start;
  }
}

.inline-editor-panel[hidden] {
  display: none;
}

.inline-editor-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.inline-editor-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
}

.inline-editor-panel-shell {
  position: absolute;
  top: 0;
  right: 0;
  width: min(820px, 96vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--theme-surface, #ffffff);
  border-left: 1px solid color-mix(in srgb, var(--theme-border, #cbd5e1) 70%, white);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
}

.inline-editor-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--theme-border, #dbe2ea);
  background: color-mix(in srgb, var(--theme-surface, #ffffff) 94%, #f8fafc);
}

.inline-editor-panel-copy {
  display: grid;
  gap: 0.12rem;
}

.inline-editor-panel-copy .eyebrow {
  margin: 0;
}

.inline-editor-panel-copy strong {
  font-size: 1rem;
  color: #0f172a;
}

.inline-editor-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.inline-editor-panel-link,
.inline-editor-panel-close {
  color: #0f172a;
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.inline-editor-panel-body {
  min-height: 0;
  position: relative;
}

.inline-editor-panel-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--theme-background, #f8fafc);
}

.inline-editor-panel-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.65rem;
  align-content: center;
  background: color-mix(in srgb, var(--theme-surface, #ffffff) 92%, rgba(248, 250, 252, 0.88));
  z-index: 2;
}

.inline-editor-panel-loading[hidden] {
  display: none;
}

.inline-editor-panel-loading strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.inline-editor-panel-loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--theme-border, #cbd5e1) 72%, transparent);
  border-top-color: color-mix(in srgb, var(--theme-accent, #2563eb) 76%, black);
  animation: inline-editor-spin 0.8s linear infinite;
}

@keyframes inline-editor-spin {
  to {
    transform: rotate(360deg);
  }
}

.site-inline-editor-panel-open {
  overflow: hidden;
}

.admin-body-inline {
  background: color-mix(in srgb, var(--theme-background, #f8fafc) 96%, white);
}

.admin-main-inline {
  min-height: 100vh;
  padding: 1rem;
  gap: 1rem;
}

.admin-body-inline .admin-header {
  align-items: start;
}

.admin-body-inline .panel {
  box-shadow: none;
}

.seo-preview {
  padding: calc(1rem * var(--theme-space-scale)) calc(1.1rem * var(--theme-space-scale));
  border-radius: var(--theme-surface-radius);
  border: 1px solid var(--theme-border);
  background: color-mix(in srgb, var(--theme-background) 70%, var(--theme-surface));
}

.seo-preview-label {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-muted);
}

.seo-preview-card {
  padding: 1rem;
  border-radius: 12px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
}

.seo-preview-title,
.seo-preview-url,
.seo-preview-description {
  margin: 0;
}

.seo-preview-title {
  color: var(--theme-accent);
  font-size: 1.1rem;
  line-height: 1.35;
}

.seo-preview-url {
  margin-top: 0.35rem;
  color: var(--theme-helper-text);
  font-size: 0.92rem;
  word-break: break-all;
}

.seo-preview-description {
  margin-top: 0.55rem;
  color: var(--theme-text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.social-preview {
  padding: calc(1rem * var(--theme-space-scale)) calc(1.1rem * var(--theme-space-scale));
  border-radius: var(--theme-surface-radius);
  border: 1px solid var(--theme-border);
  background: color-mix(in srgb, var(--theme-background) 70%, var(--theme-surface));
}

.social-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
}

.social-preview-image {
  width: 100%;
  min-height: 148px;
  object-fit: cover;
  border-radius: 10px;
  background: color-mix(in srgb, var(--theme-background) 40%, var(--theme-surface));
}

.social-preview-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--theme-muted);
  font-size: 0.92rem;
  text-align: center;
  border: 1px dashed color-mix(in srgb, var(--theme-muted) 45%, transparent);
}

.social-preview-body {
  min-width: 0;
}

.social-preview-domain,
.social-preview-title,
.social-preview-description,
.social-preview-url {
  margin: 0;
}

.social-preview-domain {
  color: var(--theme-helper-text);
  font-size: var(--theme-helper-size);
  font-family: var(--theme-helper-family);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-preview-title {
  margin-top: 0.35rem;
  color: var(--theme-text);
  font-size: 1.05rem;
  line-height: 1.4;
}

.social-preview-description {
  margin-top: 0.45rem;
  color: var(--theme-text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.social-preview-url {
  margin-top: 0.65rem;
  color: var(--theme-helper-text);
  font-size: 0.9rem;
  word-break: break-all;
}

@media (max-width: 860px) {
  .social-preview-card {
    grid-template-columns: 1fr;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--theme-border);
  vertical-align: top;
}

.table th {
  color: var(--theme-helper-text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  padding: calc(1.25rem * var(--theme-space-scale));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  border-radius: var(--theme-surface-radius);
}

.stat-card h2 {
  margin: 0.1rem 0 0.5rem;
  font-size: 2.4rem;
}

.filter-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-field {
  min-width: 220px;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.bulk-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--theme-border);
  border-radius: calc(var(--theme-surface-radius) * 0.8);
  background: color-mix(in srgb, var(--theme-surface) 88%, var(--theme-background));
  flex-wrap: wrap;
}

.bulk-actions-toggle {
  margin: 0;
}

.layout-section {
  margin: calc(2.2rem * var(--theme-space-scale, 1)) 0;
  width: 100%;
}

.layout-section-header {
  margin: 0 0 1rem;
}

.layout-section-header h2 {
  margin: 0;
}

.layout-section-grid {
  display: grid;
  gap: calc(1.4rem * var(--theme-space-scale, 1));
  align-items: start;
  width: 100%;
  justify-items: stretch;
}

.layout-section-single {
  width: 100%;
}

.layout-section-single > .section-block:first-child {
  margin-top: 0;
}

.layout-section-grid-one {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.layout-section-grid-two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.layout-section-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-section-column {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.layout-section-column > .section-block:first-child {
  margin-top: 0;
}

.admin-only-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.24rem 0.55rem;
  border: 1px dashed color-mix(in srgb, var(--theme-accent) 34%, var(--theme-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent) 6%, transparent);
  color: var(--theme-helper-text);
}

.layout-section-grid-one .layout-section-column > .hero-block:not(.hero-block-narrow),
.layout-section-grid-one .layout-section-column > .johan-hero:not(.hero-block-narrow) {
  width: 100%;
}

@media (max-width: 900px) {
  .layout-section-grid-two,
  .layout-section-grid-three {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mini-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mini-actions form {
  margin: 0;
}

.row-action-link,
.row-action-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-link-text, var(--theme-text));
  font: inherit;
  font-family: var(--theme-link-family, var(--theme-helper-family));
  font-size: var(--theme-link-size, var(--theme-helper-size));
  text-decoration: var(--theme-link-decoration, none);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.row-action-link:hover,
.row-action-button:hover {
  color: var(--theme-link-hover-text, var(--theme-accent));
  text-decoration: var(--theme-link-hover-decoration, underline);
}

.admin-body .row-action-link,
.admin-body .row-action-button,
.admin-body .danger-link {
  color: var(--admin-accent);
  font-family: var(--admin-body-font);
  font-size: var(--admin-body-size);
  text-decoration: none;
}

.admin-body .row-action-link:hover,
.admin-body .row-action-button:hover,
.admin-body .danger-link:hover {
  color: color-mix(in srgb, var(--admin-accent) 78%, var(--admin-heading-text));
  text-decoration: none;
}

.admin-body .danger-link,
.admin-body .danger-link:hover {
  color: #b91c1c;
}

.row-action-danger:hover {
  color: #b91c1c;
}

.row-actions-inline {
  white-space: nowrap;
}

.row-actions-inline form {
  display: inline;
  margin: 0;
}

.row-placement-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.row-placement-form label {
  display: grid;
  gap: 0.2rem;
  min-width: 7rem;
}

.row-placement-form label span {
  color: var(--theme-muted);
  font-size: 0.78rem;
}

.row-placement-form select {
  min-width: 0;
}

.row-placement-form .button {
  padding: 0.45rem 0.7rem;
}

.article-admin-table .article-sort-column {
  width: 1%;
  white-space: nowrap;
}

.article-admin-table .table-sort-input {
  width: 5.2ch !important;
  min-width: 5.2ch !important;
  max-width: 5.2ch !important;
  box-sizing: content-box;
  padding-inline: 0.3rem;
  text-align: center;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  vertical-align: middle;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-text) 12%, transparent);
}

.status-icon-published {
  background: #16a34a;
  color: #ffffff;
}

.status-icon-draft {
  background: #f59e0b;
  color: #ffffff;
}

.phones-page {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.phones-shell {
  width: min(90vw, 1680px);
}

.phones-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
}

.phones-page-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.phones-user {
  margin: 0;
  color: var(--theme-helper-text);
  font-size: 0.84rem;
}

.phones-count {
  margin: 0.15rem 0 0.8rem;
  color: #6b7280;
}

.phones-grid {
  display: grid;
  gap: 1.25rem;
}

.phones-searchbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin: 0.5rem 0 1rem;
}

.phones-search-form {
  display: flex;
  gap: 0.5rem;
  flex: 1 1 420px;
  flex-wrap: wrap;
}

.phones-search-input {
  padding: 0.5rem;
  min-width: 340px;
  width: min(100%, 520px);
  border: 1px solid #d9dee4;
  border-radius: 0;
  background: #fff;
  color: #111827;
}

.city-block {
  padding: 0.2rem 0 0.4rem;
}

.city-title {
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.6rem;
  background: transparent;
  color: #1f2937;
  border-left: 8px solid #ff6e32;
  font-size: 0.96rem;
}

table.phones-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d9dee4;
  background: #fff;
}

table.phones-table th,
table.phones-table td {
  padding: 0.5rem 0.6rem;
  vertical-align: top;
  border-top: 1px solid #e7ebf0;
}

.phones-table thead th {
  border-top: 0;
  background: #f7f9fc;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
}

.phones-table thead th:first-child {
  border-left: 8px solid #000;
}

.phones-table thead th:nth-child(2) {
  width: 38%;
}

.phones-table thead th:nth-child(3) {
  width: 24%;
  text-align: right;
}

.node-row td {
  background: #f8fafc;
}

.node-name {
  font-weight: 700;
  color: #243447;
  font-size: 0.9rem;
}

.node-path-current {
  color: #111827;
  font-weight: 700;
  font-size: 0.9rem;
}

.node-path-parent {
  margin-left: 1rem;
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.8rem;
}

.phone-number {
  white-space: nowrap;
  text-align: right;
  font-size: 0.86rem;
  color: #111827;
}

.phone-number-link {
  color: #111827;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: inherit;
}

.unit-cell {
  color: #6b7280;
  font-size: 0.84rem;
  white-space: normal;
}

.phone-row-label {
  color: #4b5563;
}

.status-cell {
  width: 180px;
  white-space: nowrap;
  text-align: right;
}

.phone-row-meta {
  margin-top: 0.1rem;
  color: #8b95a1;
  font-size: 0.76rem;
}

.phone-row td:first-child {
  padding-left: calc(0.6rem + var(--phone-depth, 1) * 1.05rem);
}

.phone-node-notes {
  display: inline-block;
  margin-left: 0.5rem;
  color: #6b7280;
  font-size: 0.78rem;
}

.status-actions {
  display: inline;
}

.status-actions form {
  display: inline;
  margin: 0;
}

.status-btn {
  display: inline;
  border: 0;
  background: transparent;
  color: #4b5563;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.status-btn.ok,
.status-btn.bad {
  color: #4b5563;
}

.status-btn:hover,
.status-btn:focus,
.status-btn:active {
  background: transparent;
  color: #4b5563;
  outline: none;
}

.status-sep {
  color: #9ca3af;
}

.status-summary {
  display: inline;
  margin-left: 0.4rem;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1;
}

.node-row.node-cat-kommun td:first-child,
.phone-row.node-cat-kommun td:first-child {
  border-left: 8px solid #6f8fb8;
}

.node-row.node-cat-sjukhus td:first-child,
.phone-row.node-cat-sjukhus td:first-child {
  border-left: 8px solid #cc0000;
}

.node-row.node-cat-hemtjanst td:first-child,
.phone-row.node-cat-hemtjanst td:first-child {
  border-left: 8px solid #00bc1d;
}

.node-row.node-cat-hemsjukvard td:first-child,
.phone-row.node-cat-hemsjukvard td:first-child {
  border-left: 8px solid #4aa2e3;
}

.node-row.node-cat-primarvard td:first-child,
.phone-row.node-cat-primarvard td:first-child {
  border-left: 8px solid #0f8b8d;
}

.node-row.node-cat-vob td:first-child,
.phone-row.node-cat-vob td:first-child {
  border-left: 8px solid #f5e800;
}

.node-row.node-cat-servicebostad td:first-child,
.phone-row.node-cat-servicebostad td:first-child {
  border-left: 8px solid #8e6bbe;
}

.node-row.node-cat-gruppbostad td:first-child,
.phone-row.node-cat-gruppbostad td:first-child {
  border-left: 8px solid #d97a2b;
}

.node-row.node-cat-service td:first-child,
.phone-row.node-cat-service td:first-child {
  border-left: 8px solid #282828;
}

@media (max-width: 860px) {
  .phones-page-head,
  .phones-search-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .phones-page-actions {
    align-items: flex-start;
  }

  .phones-search-input {
    min-width: 0;
    width: 100%;
  }

  .phones-table,
  .phones-table thead,
  .phones-table tbody,
  .phones-table tr,
  .phones-table th,
  .phones-table td {
    display: block;
    width: 100%;
  }

  .phones-table thead {
    display: none;
  }

  .phones-table td {
    border-top: 0;
  }

  .phone-number,
  .belongs-cell {
    text-align: left;
  }
}

.block-list-type strong,
.block-list-title strong {
  display: block;
}

.block-list-type strong {
  text-transform: capitalize;
}

.block-list-title strong {
  color: var(--theme-text);
}

.block-list-meta,
.block-list-preview {
  margin-top: 0.25rem;
  color: var(--theme-helper-text);
  font-size: var(--theme-helper-size);
  line-height: 1.55;
}

.block-list-mini {
  display: grid;
  gap: 0.18rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--theme-border) 82%, transparent);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--theme-surface) 88%, var(--theme-background));
}

.block-list-mini-image-wrap {
  display: block;
  width: 100%;
  max-width: 8rem;
  margin-bottom: 0.3rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--theme-border) 70%, transparent);
}

.block-list-mini-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.block-list-mini-eyebrow {
  color: var(--theme-helper-text);
  font-family: var(--theme-helper-family);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.block-list-mini-title {
  color: var(--theme-text);
  line-height: 1.35;
}

.block-list-mini-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-accent) 10%, transparent);
  color: var(--theme-text);
  font-size: 0.74rem;
}

.block-list-preview {
  max-width: 48rem;
}

.section-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-admin-card {
  border: 1px solid var(--theme-border);
  border-radius: 14px;
  background: var(--theme-surface);
  padding: 1rem;
}

.section-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.section-admin-card-head h3 {
  margin: 0.15rem 0 0;
  font-size: 1rem;
}

.section-admin-meta,
.section-admin-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  color: var(--theme-muted);
  font-size: 0.92rem;
}

.section-admin-columns span,
.section-admin-meta span {
  white-space: nowrap;
}

.section-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.split-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.article-section {
  margin-top: 2rem;
}

.article-section-surface-panel {
  padding: calc(1rem * var(--theme-space-scale));
  border: 1px solid var(--theme-surface-border);
  border-radius: var(--theme-surface-radius);
  background: var(--theme-surface-panel-background, var(--theme-surface));
  box-shadow: var(--theme-surface-shadow);
}

.article-section-surface-accent {
  padding: calc(1rem * var(--theme-space-scale));
  border: 1px solid color-mix(in srgb, var(--theme-accent-color, #e32400) 22%, white);
  border-radius: var(--theme-surface-radius);
  background: color-mix(in srgb, var(--theme-accent-color, #e32400) 8%, var(--theme-surface, #fff));
}

.article-section-layout {
  display: grid;
  gap: 1rem;
}

.article-section-layout-image_left,
.article-section-layout-image_right {
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  align-items: start;
}

.article-section-layout-image_right .article-section-image {
  order: 2;
}

.article-section-layout-image_right .article-section-copy {
  order: 1;
}

.article-section-image {
  margin: 1rem 0 1.25rem;
}

.article-section-link {
  margin-top: 1rem;
}

.article-section-panel {
  margin-top: 1.5rem;
}

.article-section-preview {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-surface-radius);
  padding: calc(1rem * var(--theme-space-scale));
  background: var(--theme-surface);
}

.admin-article-sections {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-article-section-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-article-section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  color: var(--theme-helper-text);
  font-size: 0.88rem;
}

.admin-article-section-order,
.admin-article-section-state,
.admin-article-section-layout {
  white-space: nowrap;
}

.compact-empty-state {
  margin-top: 1rem;
}

.admin-collapse {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-surface-radius);
  background: color-mix(in srgb, var(--theme-surface) 92%, white);
}

.admin-collapse summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.admin-collapse summary::-webkit-details-marker {
  display: none;
}

.admin-collapse-body {
  border-top: 1px solid var(--theme-border);
  padding: 1rem;
}

.admin-inline-create {
  margin-top: 1rem;
}

.admin-inline-editor {
  margin-top: 0.9rem;
}

.checkbox-align-end {
  align-self: end;
}

.article-section-preview h3 {
  margin-top: 0;
}

.grouped-options {
  min-width: 0;
}

.grouped-options legend {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.grouped-options .checkbox {
  margin-bottom: 0.45rem;
}

.taxonomy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
}

.taxonomy-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border-color, #d6dae2);
  background: var(--surface-panel-background, #fff);
  color: var(--text-color, #1f2937);
  text-decoration: none;
  font-size: 0.92em;
}

.taxonomy-chip:hover {
  border-color: var(--accent-color, #1f4ed8);
  color: var(--accent-color, #1f4ed8);
}

.taxonomy-chip-muted {
  opacity: 0.85;
}

.traffic-visit-list {
  display: grid;
  gap: 0.6rem;
}

.traffic-visit-card {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-surface-radius);
  padding: calc(0.7rem * var(--theme-space-scale));
  background: var(--theme-surface);
}

.traffic-visit-card-suspicious {
  border-color: color-mix(in srgb, #b45309 50%, var(--theme-border));
  background: color-mix(in srgb, #fff7ed 55%, var(--theme-surface));
}

.traffic-visit-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.85fr) auto;
  align-items: flex-start;
  gap: 1rem;
}

.traffic-visit-primary {
  min-width: 0;
}

.traffic-visit-path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.traffic-visit-meta-stack {
  display: grid;
  gap: 0.2rem;
}

.traffic-visit-meta-row {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.traffic-visit-meta-key {
  font-family: var(--theme-font-family);
  font-size: var(--theme-helper-size);
  color: var(--theme-helper-text);
  text-transform: none;
  letter-spacing: normal;
}

.traffic-visit-meta-value {
  min-width: 0;
  font-family: var(--theme-font-family);
  font-size: 0.94rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.traffic-visit-meta-value code {
  font-family: inherit;
  font-size: inherit;
  white-space: nowrap;
}

.traffic-visit-path,
.traffic-visit-path code,
.traffic-visit-meta-key,
.traffic-visit-meta-value,
.traffic-visit-meta-value code,
.traffic-inline-action,
.traffic-visit-state {
  font-family: var(--theme-font-family);
  color: var(--theme-text);
}

.traffic-visit-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  flex-shrink: 0;
}

.traffic-visit-meta-row-detail {
  margin-top: 0.2rem;
  padding-top: 0.25rem;
  border-top: 1px dashed color-mix(in srgb, var(--theme-border) 75%, transparent);
}

.traffic-visit-pages {
  min-width: 0;
  padding-left: 0.75rem;
  border-left: 1px dashed color-mix(in srgb, var(--theme-border) 75%, transparent);
}

.traffic-visit-pages-heading {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--theme-helper-text);
}

.traffic-visit-pages-list {
  display: grid;
  gap: 0.28rem;
  max-height: 8.5rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.traffic-visit-page-row {
  font-size: 0.88rem;
  line-height: 1.3;
}

.traffic-visit-page-row code {
  font-family: var(--theme-font-family);
  font-size: inherit;
  color: var(--theme-text);
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .traffic-visit-top {
    grid-template-columns: 1fr;
  }

  .traffic-visit-actions {
    align-items: flex-start;
  }

  .traffic-visit-pages {
    padding-left: 0;
    padding-top: 0.3rem;
    border-left: 0;
    border-top: 1px dashed color-mix(in srgb, var(--theme-border) 75%, transparent);
  }

  .traffic-visit-meta-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .screenpipe-session-card {
    grid-template-columns: 1fr;
  }

  .screenpipe-session-meta {
    text-align: left;
  }
}

.traffic-inline-form {
  margin: 0;
}

.traffic-inline-action {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--theme-text);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.traffic-inline-action:hover {
  text-decoration: underline;
}

.traffic-visit-state {
  font-size: 0.84rem;
  color: var(--theme-helper-text);
}

.traffic-admin-grid {
  align-items: start;
}

.traffic-admin-panel {
  padding: 0.9rem;
}

.traffic-admin-panel h3 {
  margin-bottom: 0.55rem;
}

.traffic-admin-form {
  gap: 0.7rem;
}

.traffic-admin-form .field-grid {
  margin-bottom: 0;
}

.traffic-admin-form textarea {
  min-height: 4.8rem;
}

.admin-body .traffic-visit-card {
  border-color: var(--admin-border);
  background: var(--admin-panel-bg);
}

.admin-body .traffic-visit-card-suspicious {
  border-color: color-mix(in srgb, #b45309 45%, var(--admin-border));
  background: color-mix(in srgb, #fff7ed 45%, var(--admin-panel-bg));
}

.admin-body .traffic-visit-meta-key {
  font-family: var(--admin-meta-font);
  font-size: var(--admin-meta-size);
  color: var(--admin-meta-text);
}

.admin-body .traffic-visit-meta-value,
.admin-body .traffic-visit-path,
.admin-body .traffic-inline-action,
.admin-body .traffic-visit-state,
.admin-body .traffic-visit-path code,
.admin-body .traffic-visit-meta-value code,
.admin-body .traffic-visit-page-row code {
  font-family: var(--admin-body-font);
  color: var(--admin-text);
}

.admin-body .traffic-visit-pages,
.admin-body .traffic-visit-meta-row-detail {
  border-color: color-mix(in srgb, var(--admin-border) 75%, transparent);
}

.admin-body .traffic-visit-pages-heading,
.admin-body .traffic-visit-state {
  color: var(--admin-helper-text);
  font-family: var(--admin-helper-font);
  font-size: var(--admin-helper-size);
}

.screenpipe-range-switch {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.screenpipe-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.screenpipe-side-grid {
  display: grid;
  gap: 10px;
}

.screenpipe-side-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.screenpipe-side-section + .screenpipe-side-section {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--theme-border) 82%, transparent);
}

.screenpipe-side-section h3 {
  margin-bottom: 0.6rem;
}

.screenpipe-timeline {
  display: grid;
  gap: 0.9rem;
}

.screenpipe-timeline-item {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.screenpipe-timeline-marker {
  position: relative;
}

.screenpipe-timeline-marker::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--accent-color, #1f4ed8);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color, #1f4ed8) 14%, transparent);
}

.screenpipe-timeline-marker::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: color-mix(in srgb, var(--theme-border) 82%, transparent);
}

.screenpipe-timeline-item:last-child .screenpipe-timeline-marker::after {
  display: none;
}

.screenpipe-timeline-card {
  border: 1px solid var(--theme-border);
  border-radius: calc(var(--theme-surface-radius) * 0.9);
  padding: 0.95rem 1rem;
  background: color-mix(in srgb, var(--theme-surface) 92%, white);
}

.screenpipe-timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.screenpipe-timeline-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.screenpipe-timeline-card h4,
.screenpipe-session-card h4 {
  margin: 0 0 0.25rem;
}

.screenpipe-rank-list {
  display: grid;
  gap: 0.55rem;
}

.screenpipe-rank-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--theme-border);
  border-radius: calc(var(--theme-surface-radius) * 0.75);
  background: color-mix(in srgb, var(--theme-surface) 90%, white);
}

.screenpipe-rank-row span {
  color: var(--theme-helper-text);
  font-variant-numeric: tabular-nums;
}

.screenpipe-session-list {
  display: grid;
  gap: 0.75rem;
}

.screenpipe-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  border: 1px solid var(--theme-border);
  border-radius: calc(var(--theme-surface-radius) * 0.85);
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--theme-surface) 92%, white);
}

.screenpipe-session-meta {
  display: grid;
  gap: 0.3rem;
  text-align: right;
  color: var(--theme-helper-text);
  font-size: 0.92rem;
}

.admin-domain-switcher {
  margin: 0 0 1rem;
}

.admin-domain-switcher .field {
  gap: 0.35rem;
}

.admin-domain-switcher select {
  width: 100%;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-background) 72%, var(--theme-surface));
  color: var(--theme-text);
  text-decoration: none;
  font-size: 0.92rem;
}

.tag-chip span {
  color: var(--theme-helper-text);
  font-size: 0.86em;
}

.tag-chip.is-active,
.tag-chip:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 48%, var(--theme-border));
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface));
}

.row-action-separator {
  color: var(--theme-helper-text);
  margin: 0 0.2rem;
}

.status-pill {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.status-draft {
  background: color-mix(in srgb, var(--theme-background) 82%, var(--theme-surface));
  border-color: var(--theme-border);
}

.status-published {
  background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 26%, var(--theme-border));
}

.simple-list {
  margin: 0;
  padding-left: 1.25rem;
}

.article-list {
  display: grid;
  gap: 1rem;
}

.links-list {
  display: grid;
  gap: 0.9rem;
}

.links-list-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.7rem 0.9rem;
  align-items: baseline;
}

.links-list-main,
.links-list-side {
  min-width: 0;
}

.links-list-main {
  max-width: 100%;
  align-self: baseline;
}

.links-list-side {
  align-self: baseline;
}

.links-list-main h2,
.links-list-main h3,
.links-list-main a,
.links-list-side p,
.links-list-side span {
  margin: 0;
}

.links-list-main h2,
.links-list-main h2 a,
.links-list-main h3,
.links-list-main h3 a,
.links-list-main a {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: inherit;
}

.links-list-side,
.links-list-side p,
.links-list-side span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.links-list-side .muted {
  color: var(--theme-meta-text, var(--theme-helper-text, var(--theme-muted)));
}

.links-list-cards .links-list-item {
  padding: 1rem 1.1rem;
}

.links-list-compact .links-list-item {
  padding: 0.2rem 0;
}

.articles-block-width-narrow {
  max-width: 54rem;
  margin-left: auto;
  margin-right: auto;
}

.articles-block-width-wide {
  max-width: min(100%, 92rem);
}

.articles-block-align-center .section-heading,
.articles-block-align-center .johan-section-heading {
  text-align: center;
}

.articles-block-align-center .article-card,
.articles-block-align-center .article-compact-item,
.articles-block-align-center .article-editorial-feature {
  text-align: center;
}

.article-archive-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.article-archive-card {
  display: grid;
  gap: 0.8rem;
}

.article-archive-card h2 {
  margin: 0;
}

.article-archive-card h2 a {
  text-decoration: none;
}

.article-archive-card h2 a:hover {
  text-decoration: none;
}

.article-archive-meta {
  display: grid;
  gap: 0.45rem;
}

.article-archive-meta .muted {
  margin: 0;
}

.metadata,
.article-archive-meta .muted,
.article-compact-date,
.article-card-date,
.article-meta-inline {
  color: var(--theme-meta-text, var(--theme-helper-text, var(--theme-muted)));
  font-family: var(--theme-meta-family, var(--theme-helper-family, var(--theme-font-family)));
  font-size: var(--theme-meta-size-fluid, var(--theme-helper-size-fluid));
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--theme-meta-tracking, normal);
  text-transform: var(--theme-meta-case, none);
}

.metadata a,
.article-archive-meta .muted a,
.article-compact-date a,
.article-card-date a,
.article-meta-inline a {
  color: var(--theme-meta-link-text, var(--theme-body-link-text, var(--theme-link-text, var(--theme-meta-text, var(--theme-helper-text)))));
  text-decoration: var(--theme-meta-link-decoration, var(--theme-body-link-decoration, var(--theme-link-decoration, underline)));
}

.metadata a:hover,
.article-archive-meta .muted a:hover,
.article-compact-date a:hover,
.article-card-date a:hover,
.article-meta-inline a:hover {
  color: var(--theme-meta-link-hover-text, var(--theme-body-link-hover-text, var(--theme-link-hover-text, var(--theme-accent))));
  text-decoration: var(--theme-meta-link-hover-decoration, var(--theme-body-link-hover-decoration, var(--theme-link-hover-decoration, underline)));
}

.article-archive-excerpt {
  margin: 0;
}

.content-text-type-heading,
.content-text-type-body,
.content-text-type-helper,
.content-text-type-meta {
  color: var(--content-type-color, var(--theme-text));
  font-family: var(--content-type-family, var(--theme-font-family));
  font-size: var(--content-type-size, var(--theme-base-size-fluid));
  font-weight: var(--content-type-weight, 400);
  letter-spacing: var(--content-type-tracking, normal);
  text-transform: var(--content-type-case, none);
}

.content-text-type-heading {
  --content-type-family: var(--theme-heading-family, var(--theme-font-family));
  --content-type-size: var(--theme-heading-size-fluid);
  --content-type-weight: 400;
  --content-type-color: var(--theme-heading-text, var(--theme-text));
  --content-type-tracking: var(--theme-heading-tracking, normal);
  --content-type-case: var(--theme-heading-case, none);
  --content-type-link-text: var(--theme-heading-link-text, var(--theme-heading-text, var(--theme-text)));
  --content-type-link-hover-text: var(--theme-heading-link-hover-text, var(--theme-link-hover-text, var(--theme-accent)));
  --content-type-link-decoration: var(--theme-heading-link-decoration, none);
  --content-type-link-hover-decoration: var(--theme-heading-link-hover-decoration, underline);
}

.content-text-type-body {
  --content-type-family: var(--theme-font-family);
  --content-type-size: var(--theme-base-size-fluid);
  --content-type-weight: 400;
  --content-type-color: var(--theme-text);
  --content-type-tracking: var(--theme-body-tracking, normal);
  --content-type-case: var(--theme-body-case, none);
  --content-type-link-text: var(--theme-body-link-text, var(--theme-link-text, var(--theme-text)));
  --content-type-link-hover-text: var(--theme-body-link-hover-text, var(--theme-link-hover-text, var(--theme-accent)));
  --content-type-link-decoration: var(--theme-body-link-decoration, var(--theme-link-decoration, underline));
  --content-type-link-hover-decoration: var(--theme-body-link-hover-decoration, var(--theme-link-hover-decoration, underline));
}

.content-text-type-helper {
  --content-type-family: var(--theme-helper-family, var(--theme-font-family));
  --content-type-size: var(--theme-helper-size-fluid, var(--theme-base-size-fluid));
  --content-type-weight: 400;
  --content-type-color: var(--theme-helper-text, var(--theme-text));
  --content-type-tracking: var(--theme-helper-tracking, normal);
  --content-type-case: var(--theme-helper-case, none);
  --content-type-link-text: var(--theme-helper-link-text, var(--theme-body-link-text, var(--theme-link-text, var(--theme-helper-text))));
  --content-type-link-hover-text: var(--theme-helper-link-hover-text, var(--theme-body-link-hover-text, var(--theme-link-hover-text, var(--theme-accent))));
  --content-type-link-decoration: var(--theme-helper-link-decoration, var(--theme-body-link-decoration, var(--theme-link-decoration, underline)));
  --content-type-link-hover-decoration: var(--theme-helper-link-hover-decoration, var(--theme-body-link-hover-decoration, var(--theme-link-hover-decoration, underline)));
}

.content-text-type-meta {
  --content-type-family: var(--theme-meta-family, var(--theme-helper-family, var(--theme-font-family)));
  --content-type-size: var(--theme-meta-size-fluid, var(--theme-helper-size-fluid, var(--theme-base-size-fluid)));
  --content-type-weight: 400;
  --content-type-color: var(--theme-meta-text, var(--theme-helper-text, var(--theme-text)));
  --content-type-tracking: var(--theme-meta-tracking, normal);
  --content-type-case: var(--theme-meta-case, none);
  --content-type-link-text: var(--theme-meta-link-text, var(--theme-body-link-text, var(--theme-link-text, var(--theme-meta-text))));
  --content-type-link-hover-text: var(--theme-meta-link-hover-text, var(--theme-body-link-hover-text, var(--theme-link-hover-text, var(--theme-accent))));
  --content-type-link-decoration: var(--theme-meta-link-decoration, var(--theme-body-link-decoration, var(--theme-link-decoration, underline)));
  --content-type-link-hover-decoration: var(--theme-meta-link-hover-decoration, var(--theme-body-link-hover-decoration, var(--theme-link-hover-decoration, underline)));
}

.content-text-type-heading a,
.content-text-type-body a,
.content-text-type-helper a,
.content-text-type-meta a {
  color: var(--content-type-link-text, var(--theme-link-text, var(--theme-text)));
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: var(--content-type-link-decoration, underline);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.12em;
}

.content-text-type-heading a:hover,
.content-text-type-body a:hover,
.content-text-type-helper a:hover,
.content-text-type-meta a:hover {
  color: var(--content-type-link-hover-text, var(--theme-link-hover-text, var(--theme-accent)));
  text-decoration: var(--content-type-link-hover-decoration, underline);
}

.article-archive-link {
  margin: 0.2rem 0 0;
}

.article-archive-link a {
  text-decoration: none;
}

.taxonomy-list-secondary {
  margin-top: -0.15rem;
}

.article-compact-list,
.article-editorial-list {
  display: grid;
  gap: 0.9rem;
}

.article-compact-item {
  display: grid;
  gap: 0.3rem;
}

.article-compact-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0.85rem;
  row-gap: 0.35rem;
  align-items: baseline;
}

.article-compact-date {
  margin: 0;
  white-space: nowrap;
}

.article-compact-title {
  margin: 0;
  line-height: 1.15;
}

.article-compact-copy {
  min-width: 0;
}

.article-compact-item h3,
.article-editorial-feature h3 {
  margin: 0;
}

.article-editorial {
  display: grid;
  gap: 1rem;
}

.article-editorial-feature {
  display: grid;
  gap: 0.75rem;
}

.article-card-style-soft {
  background: color-mix(in srgb, var(--theme-surface) 72%, var(--theme-background));
}

.article-card-style-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.article-card {
  display: grid;
  gap: 0.55rem;
}

.article-card-meta {
  display: grid;
  gap: 0.3rem;
}

.article-card-date {
  margin: 0;
}

.article-card h3 {
  margin: 0;
}

.article-title-small {
  font-size: calc(var(--content-type-size, var(--theme-heading-size-fluid)) * 0.92);
}

.article-title-normal {
  font-size: var(--content-type-size, var(--theme-heading-size-fluid));
}

.article-title-large {
  font-size: calc(var(--content-type-size, var(--theme-heading-size-fluid)) * 1.08);
}

h3.article-title-small,
h3.article-title-normal,
h3.article-title-large {
  font-size: inherit;
}

.content-text-type-heading.article-title-small,
.content-text-type-body.article-title-small,
.content-text-type-helper.article-title-small,
.content-text-type-meta.article-title-small {
  font-size: calc(var(--content-type-size, var(--theme-heading-size-fluid)) * 0.92);
}

.content-text-type-heading.article-title-normal,
.content-text-type-body.article-title-normal,
.content-text-type-helper.article-title-normal,
.content-text-type-meta.article-title-normal {
  font-size: var(--content-type-size, var(--theme-heading-size-fluid));
}

.content-text-type-heading.article-title-large,
.content-text-type-body.article-title-large,
.content-text-type-helper.article-title-large,
.content-text-type-meta.article-title-large {
  font-size: calc(var(--content-type-size, var(--theme-heading-size-fluid)) * 1.08);
}

.article-compact-title.content-text-type-body,
.article-compact-title.content-text-type-helper,
.article-compact-title.content-text-type-meta,
.article-card h3.content-text-type-body,
.article-card h3.content-text-type-helper,
.article-card h3.content-text-type-meta,
.article-editorial-feature h3.content-text-type-body,
.article-editorial-feature h3.content-text-type-helper,
.article-editorial-feature h3.content-text-type-meta,
.article-editorial-list h3.content-text-type-body,
.article-editorial-list h3.content-text-type-helper,
.article-editorial-list h3.content-text-type-meta {
  font-family: var(--content-type-family, var(--theme-font-family));
  font-weight: var(--content-type-weight, 400);
  letter-spacing: var(--content-type-tracking, normal);
  text-transform: var(--content-type-case, none);
  color: var(--content-type-color, var(--theme-text));
}

.article-compact-title.content-text-type-body a,
.article-compact-title.content-text-type-helper a,
.article-compact-title.content-text-type-meta a,
.article-compact-title.content-text-type-heading a,
.article-card h3.content-text-type-body a,
.article-card h3.content-text-type-helper a,
.article-card h3.content-text-type-meta a,
.article-card h3.content-text-type-heading a,
.article-editorial-feature h3.content-text-type-body a,
.article-editorial-feature h3.content-text-type-helper a,
.article-editorial-feature h3.content-text-type-meta a,
.article-editorial-feature h3.content-text-type-heading a,
.article-editorial-list h3.content-text-type-body a,
.article-editorial-list h3.content-text-type-helper a,
.article-editorial-list h3.content-text-type-meta a,
.article-editorial-list h3.content-text-type-heading a {
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--content-type-link-text, var(--theme-link-text, var(--theme-text)));
  text-decoration: var(--content-type-link-decoration, var(--theme-link-decoration, underline));
}

.article-compact-title.content-text-type-body a:hover,
.article-compact-title.content-text-type-helper a:hover,
.article-compact-title.content-text-type-meta a:hover,
.article-compact-title.content-text-type-heading a:hover,
.article-card h3.content-text-type-body a:hover,
.article-card h3.content-text-type-helper a:hover,
.article-card h3.content-text-type-meta a:hover,
.article-card h3.content-text-type-heading a:hover,
.article-editorial-feature h3.content-text-type-body a:hover,
.article-editorial-feature h3.content-text-type-helper a:hover,
.article-editorial-feature h3.content-text-type-meta a:hover,
.article-editorial-feature h3.content-text-type-heading a:hover,
.article-editorial-list h3.content-text-type-body a:hover,
.article-editorial-list h3.content-text-type-helper a:hover,
.article-editorial-list h3.content-text-type-meta a:hover,
.article-editorial-list h3.content-text-type-heading a:hover {
  color: var(--content-type-link-hover-text, var(--theme-link-hover-text, var(--theme-accent)));
  text-decoration: var(--content-type-link-hover-decoration, var(--theme-link-hover-decoration, underline));
}

.article-tone-muted p:not(.eyebrow):not(.article-card-date):not(.muted) {
  color: var(--theme-helper-text);
}

.article-tone-strong p:not(.eyebrow):not(.article-card-date):not(.muted) {
  color: var(--theme-text);
  font-weight: 500;
}

.article-card-excerpt {
  margin: 0;
}

.article-card-link {
  margin: 0.15rem 0 0;
}

.article-card-link a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .article-compact-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    align-items: start;
  }
}

.divider-block {
  display: block;
  margin: calc(1.6rem * var(--theme-space-scale)) 0;
}

.divider-block-narrow {
  max-width: 480px;
}

.divider-block-line {
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--theme-text-color, #111827) 12%, white);
}

.divider-block-tone-subtle .divider-block-line {
  opacity: 0.45;
}

.divider-block-tone-strong .divider-block-line {
  opacity: 1;
  height: 2px;
}

.divider-block-accent .divider-block-line {
  height: 2px;
  background: color-mix(in srgb, var(--theme-accent-color, #e32400) 45%, white);
}

.divider-block-space .divider-block-line {
  background: transparent;
}

.image-block {
  margin: calc(1.4rem * var(--theme-space-scale)) 0;
}

.image-block-narrow {
  max-width: 42rem;
}

.image-block-wide {
  max-width: 76rem;
}

.image-block-shell {
  display: grid;
  gap: 0.85rem;
}

.image-block-shell-soft {
  background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-border));
  box-shadow: none;
}

.image-block-media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--theme-surface-radius) * 0.8);
}

.image-block-caption {
  margin: 0;
}

.image-block-align-center,
.image-block-align-center .section-heading,
.image-block-align-center .johan-section-heading,
.image-block-align-center .image-block-caption {
  text-align: center;
}

.article-body {
  max-width: min(72rem, 100%);
}

.home-intro {
  margin-bottom: calc(1.5rem * var(--theme-space-scale));
}

.home-intro-copy {
  display: grid;
  gap: 0.6rem;
}

.home-intro-copy > h1 {
  margin: 0;
}

.home-intro-copy > .lead {
  margin: 0;
  max-width: min(48rem, 100%);
}

.article-meta-inline {
  margin: 0.22rem 0 0.68rem;
  line-height: 1.25;
}

.article-body > h1,
.johan-article-header > h1 {
  margin-bottom: 0.3rem;
}

.article-body > .lead,
.johan-article-header > .lead {
  margin-top: 0.4rem;
  max-width: var(--theme-body-measure);
}

.article-section > h2 {
  margin-bottom: 0.28rem;
}

.article-section-copy > .richtext:first-child > *:first-child {
  margin-top: 0;
}

.article-section-copy .richtext p:first-child,
.article-body > .richtext p:first-child,
.johan-panel.richtext p:first-child {
  margin-top: 0;
}

.johan-home {
  margin: calc(1.25rem * var(--theme-space-scale)) auto 0;
  padding-top: 0;
}

.johan-hero {
  display: block;
}

.johan-hero-stacked {
  text-align: left;
}

.johan-panel,
.johan-article-header {
  background: var(--theme-hero-background);
  border: 1px solid var(--theme-hero-border);
  box-shadow: var(--theme-hero-shadow);
  border-radius: var(--theme-surface-radius);
}

.johan-hero > div {
  padding: 1rem 0;
}

.johan-article-header {
  padding: 1.5rem;
}

.johan-hero h1,
.johan-section-heading h1,
.johan-article h1 {
  color: var(--theme-text);
  letter-spacing: -0.03em;
}

.johan-home .lead,
.johan-content-shell .lead {
  color: var(--theme-helper-text);
}

.johan-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.johan-home > .johan-grid:first-child {
  margin-top: 0;
}

.johan-main-column,
.johan-side-column,
.johan-stack,
.johan-link-grid {
  display: grid;
  gap: 1rem;
}

.johan-link-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.johan-link-list li {
  display: grid;
  gap: 0.2rem;
}

.johan-link-list span {
  color: var(--theme-helper-text);
  font-size: 0.95rem;
}

.johan-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.johan-section-heading {
  margin-bottom: 1.25rem;
}

.johan-content-shell {
  margin-top: 0;
}

.johan-content-shell > .johan-grid:first-child {
  margin-top: 0;
}

.johan-main-column > .section-block:first-child,
.johan-side-column > .section-block:first-child {
  margin-top: 0;
}

.johan-article {
  display: grid;
  gap: 1rem;
  max-width: 980px;
}

.johan-footer {
  margin-top: 6rem;
}

.johan-footer .footer-inner {
  border-top: 0;
}

.site-johanodin .button {
  background: var(--theme-button-background);
  border-color: var(--theme-button-border);
  color: var(--theme-button-text);
  border-radius: var(--theme-button-radius);
}

.site-johanodin .button-secondary {
  background: transparent;
  color: var(--theme-text);
  border-color: var(--theme-border);
}

.site-johanodin .panel,
.site-johanodin .johan-panel,
.site-johanodin .johan-article-header {
  backdrop-filter: none;
}

.site-johanodin .eyebrow {
  color: var(--theme-helper-text);
}

.site-johanodin .muted {
  color: var(--theme-helper-text);
}

.johan-cta-accent {
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 24%, var(--theme-border));
}

.johan-quote .quote-card {
  background: color-mix(in srgb, var(--theme-background) 72%, var(--theme-surface));
}

.johan-notice-info {
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface));
}

.johan-notice-success {
  background: color-mix(in srgb, #16a34a 10%, var(--theme-surface));
}

.johan-notice-warning {
  background: color-mix(in srgb, #d97706 10%, var(--theme-surface));
}

.cta-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 92%, #000000 8%) 0%, color-mix(in srgb, var(--theme-accent) 78%, #1f2937 22%) 100%);
  color: var(--theme-accent-contrast);
  padding: calc(2rem * var(--theme-space-scale));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  border-radius: calc(var(--theme-surface-radius) + 4px);
}

.cta-card-neutral {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 92%, #000000 8%) 0%, color-mix(in srgb, var(--theme-accent) 78%, #1f2937 22%) 100%);
}

.cta-card-accent {
  background: linear-gradient(135deg, color-mix(in srgb, var(--theme-accent) 70%, #0f172a 30%) 0%, color-mix(in srgb, var(--theme-accent) 86%, #ffffff 14%) 100%);
}

.cta-card .eyebrow,
.cta-card p,
.cta-card h2 {
  color: inherit;
}

.cta-block-narrow .cta-card,
.cta-block-narrow.johan-cta {
  max-width: 42rem;
}

.cta-block-wide .cta-card,
.cta-block-wide.johan-cta {
  max-width: 68rem;
}

.cta-block-style-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.cta-card-plain {
  background: transparent;
  color: var(--theme-text);
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.cta-card-plain .eyebrow,
.cta-card-plain p,
.cta-card-plain h2 {
  color: inherit;
}

.cta-card-soft {
  background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface));
  color: var(--theme-text);
  border: 1px solid color-mix(in srgb, var(--theme-accent) 16%, var(--theme-border));
  box-shadow: none;
}

.cta-card-soft .eyebrow,
.cta-card-soft p,
.cta-card-soft h2 {
  color: inherit;
}

.cta-card-layout-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.2rem;
  row-gap: 0.55rem;
}

.cta-card-layout-inline .eyebrow,
.cta-card-layout-inline h2,
.cta-card-layout-inline p {
  grid-column: 1;
  margin-right: 0;
}

.cta-card-layout-inline .actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
}

.cta-block-align-center,
.cta-block-align-center .cta-card,
.cta-block-align-center.johan-cta {
  text-align: center;
}

.cta-block-align-center .actions {
  justify-content: center;
}

.cta-block-align-center .cta-card-layout-inline {
  grid-template-columns: minmax(0, 1fr);
}

.cta-block-align-center .cta-card-layout-inline .actions,
.cta-block-align-center .cta-card-layout-inline .eyebrow,
.cta-block-align-center .cta-card-layout-inline h2,
.cta-block-align-center .cta-card-layout-inline p {
  grid-column: 1;
  grid-row: auto;
  justify-self: center;
}

.cta-block-emphasis-strong .cta-card h2,
.cta-block-emphasis-strong.johan-cta h2 {
  font-size: clamp(1.65rem, calc(1.3rem + 1vw), 2.8rem);
  line-height: 1.02;
}

.quote-card {
  margin: 0;
  padding: calc(1.5rem * var(--theme-space-scale)) calc(1.6rem * var(--theme-space-scale));
  border-left: 4px solid color-mix(in srgb, var(--theme-accent) 32%, transparent);
  background: color-mix(in srgb, var(--theme-background) 72%, var(--theme-surface));
  border-radius: 0 var(--theme-surface-radius) var(--theme-surface-radius) 0;
}

.quote-card p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.7;
}

.quote-card footer {
  margin-top: 1rem;
  color: var(--theme-helper-text);
  font-size: var(--theme-helper-size);
  font-family: var(--theme-helper-family);
}

.quote-block-tone-strong .quote-card p {
  font-size: clamp(1.3rem, calc(1.12rem + 0.48vw), 1.62rem);
  line-height: 1.6;
}

.quote-block-style-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.quote-block-style-soft .quote-card {
  background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-border));
  box-shadow: none;
}

.quote-card-plain {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

.quote-block-align-center,
.quote-block-align-center .section-heading,
.quote-block-align-center .quote-card {
  text-align: center;
}

.notice-block {
  padding: calc(1.25rem * var(--theme-space-scale)) calc(1.4rem * var(--theme-space-scale));
  border-radius: var(--theme-surface-radius);
  border: 1px solid var(--theme-border);
}

.notice-block-narrow {
  max-width: 42rem;
}

.notice-block-wide {
  max-width: 64rem;
}

.notice-block-density-compact {
  padding: calc(0.85rem * var(--theme-space-scale)) calc(1rem * var(--theme-space-scale));
}

.notice-block-style-plain {
  padding: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.notice-block-style-soft {
  box-shadow: none;
}

.notice-block-info.notice-block-tone-soft {
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 18%, var(--theme-border));
}

.notice-block-info.notice-block-tone-strong {
  background: color-mix(in srgb, var(--theme-accent) 18%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 34%, var(--theme-border));
}

.notice-block-success.notice-block-tone-soft {
  background: color-mix(in srgb, #16a34a 10%, var(--theme-surface));
  border-color: color-mix(in srgb, #16a34a 18%, var(--theme-border));
}

.notice-block-success.notice-block-tone-strong {
  background: color-mix(in srgb, #16a34a 18%, var(--theme-surface));
  border-color: color-mix(in srgb, #16a34a 34%, var(--theme-border));
}

.notice-block-warning.notice-block-tone-soft {
  background: color-mix(in srgb, #d97706 10%, var(--theme-surface));
  border-color: color-mix(in srgb, #d97706 22%, var(--theme-border));
}

.notice-block-warning.notice-block-tone-strong {
  background: color-mix(in srgb, #d97706 18%, var(--theme-surface));
  border-color: color-mix(in srgb, #d97706 38%, var(--theme-border));
}

.notice-block-align-center,
.notice-block-align-center .section-heading,
.notice-block-align-center p {
  text-align: center;
}

.image-text-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: center;
}

.image-text-width-narrow {
  max-width: 56rem;
}

.image-text-width-wide {
  max-width: 78rem;
}

.image-text-ratio-media-heavy {
  grid-template-columns: minmax(260px, 1.2fr) minmax(0, 0.95fr);
}

.image-text-right {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.95fr);
}

.image-text-right.image-text-ratio-media-heavy {
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1.2fr);
}

.image-text-right .image-text-media {
  order: 2;
}

.image-text-right .image-text-content {
  order: 1;
}

.image-text-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--theme-surface-radius);
}

.image-text-style-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.image-text-content-soft {
  background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-border));
  box-shadow: none;
}

.image-text-align-center .image-text-content {
  text-align: center;
}

.image-text-style-plain .image-text-content {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.featured-article-width-narrow {
  max-width: 56rem;
}

.featured-article-width-wide {
  max-width: min(100%, 92rem);
}

.featured-article-align-center,
.featured-article-align-center .section-heading,
.featured-article-align-center .johan-section-heading,
.featured-article-align-center .article-feature-card,
.featured-article-align-center .article-feature-embed {
  text-align: center;
}

.featured-article-style-soft .article-feature-card,
.featured-article-style-soft .article-feature-embed {
  background: color-mix(in srgb, var(--theme-surface) 74%, var(--theme-background));
}

.featured-article-style-plain .article-feature-card,
.featured-article-style-plain .article-feature-embed {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.links-block-width-narrow,
.phones-block-width-narrow {
  max-width: 42rem;
}

.links-block-width-wide,
.phones-block-width-wide {
  max-width: 68rem;
}

.links-block-align-center,
.links-block-align-center .section-heading,
.links-block-align-center .article-compact-item,
.links-block-align-center .links-card,
.links-block-align-center .links-list-item,
.phones-block-align-center,
.phones-block-align-center .section-heading,
.phones-block-align-center .article-compact-item,
.phones-block-align-center .phones-card {
  text-align: center;
}

.links-block-align-center .links-list-item {
  grid-template-columns: 1fr;
}

.featured-article-heading.content-text-type-heading,
.featured-article-heading.content-text-type-body,
.featured-article-heading.content-text-type-helper,
.featured-article-heading.content-text-type-meta,
.featured-article-heading.content-text-type-heading a,
.featured-article-heading.content-text-type-body a,
.featured-article-heading.content-text-type-helper a,
.featured-article-heading.content-text-type-meta a {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-decoration: inherit;
}

.links-list-page {
  display: grid;
  gap: 1rem;
}

.links-list-page .links-list-item {
  align-items: start;
}

@media (max-width: 720px) {
  .links-list-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

.links-card-style-soft,
.phones-card-style-soft {
  background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-border));
  box-shadow: none;
}

.links-card-style-plain,
.phones-card-style-plain,
.links-block-style-plain,
.phones-block-style-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.links-card-style-plain,
.phones-card-style-plain {
  padding: 0;
}

.section-block {
  margin-top: calc(3rem * var(--theme-space-scale));
}

.inline-edit-frame.has-custom-max-width > .section-block,
.inline-edit-frame.has-custom-max-width > .notice-block,
.inline-edit-frame.has-custom-max-width > .johan-notice {
  max-width: min(100%, var(--block-max-width));
  margin-inline: auto;
}

.inline-edit-frame.has-custom-max-width .hero-block-inner,
.inline-edit-frame.has-custom-max-width .text-block-body,
.inline-edit-frame.has-custom-max-width .list-block-shell,
.inline-edit-frame.has-custom-max-width .columns-block-shell,
.inline-edit-frame.has-custom-max-width .quote-card,
.inline-edit-frame.has-custom-max-width .image-block-shell,
.inline-edit-frame.has-custom-max-width .cta-card,
.inline-edit-frame.has-custom-max-width .article-list,
.inline-edit-frame.has-custom-max-width .article-editorial,
.inline-edit-frame.has-custom-max-width .article-compact-list,
.inline-edit-frame.has-custom-max-width .links-list,
.inline-edit-frame.has-custom-max-width .phone-compact-list,
.inline-edit-frame.has-custom-max-width .image-text-block,
.inline-edit-frame.has-custom-max-width .article-body,
.inline-edit-frame.has-custom-max-width .article-feature-card,
.inline-edit-frame.has-custom-max-width .article-feature-embed {
  max-width: 100% !important;
  margin-inline: 0;
}

.shell > .section-block:first-child {
  margin-top: 0;
}

.hero-block-stacked,
.layout-section-grid-one .hero-block-stacked,
.layout-section-grid-one .johan-hero-stacked {
  text-align: left;
}

.layout-section-grid-one .hero-block .hero-block-inner,
.layout-section-grid-one .johan-hero > div {
  max-width: none;
  margin-inline: 0;
}

.hero-section-layout-one .hero-block-inner,
.hero-section-layout-one.johan-hero > div {
  max-width: none;
  margin-inline: 0;
  text-align: left;
  width: 100%;
}

.hero-section-layout-one,
.hero-section-layout-one .hero-block-inner,
.hero-section-layout-one .eyebrow,
.hero-section-layout-one h1,
.hero-section-layout-one p,
.hero-section-layout-one .lead {
  text-align: left;
}

.hero-block-narrow .hero-block-inner,
.hero-block-narrow.johan-hero > div {
  max-width: 42rem;
  margin-inline: auto;
}

.hero-block-wide .hero-block-inner,
.hero-block-wide.johan-hero > div {
  max-width: 68rem;
  margin-inline: auto;
}

.layout-section-grid-one .hero-block.hero-block-narrow .hero-block-inner,
.layout-section-grid-one .johan-hero.hero-block-narrow > div {
  max-width: none;
  margin-inline: 0;
}

.hero-section-layout-one.hero-block-narrow .hero-block-inner,
.hero-section-layout-one.johan-hero.hero-block-narrow > div {
  max-width: none;
  margin-inline: 0;
}

.hero-block-style-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-block-style-soft .hero-block-inner,
.hero-block-style-soft.johan-hero > div {
  background: color-mix(in srgb, var(--theme-accent) 6%, var(--theme-surface));
  border: 1px solid color-mix(in srgb, var(--theme-accent) 12%, var(--theme-border));
  box-shadow: none;
  border-radius: var(--theme-surface-radius);
  padding: clamp(1.1rem, 2vw, 1.9rem);
}

.hero-block-align-center,
.hero-block-align-center .hero-block-inner {
  text-align: center;
}

.hero-block-emphasis-strong h1 {
  font-size: calc(var(--theme-heading-size-fluid) * 1.12);
  line-height: 0.95;
}

.hero-block-tone-quiet .eyebrow,
.hero-block-tone-quiet p,
.hero-block-tone-quiet .lead {
  color: var(--theme-helper-text);
}

.hero-block-tone-strong .hero-block-inner h1,
.hero-block-tone-strong.johan-hero h1 {
  letter-spacing: -0.04em;
}

.text-block-narrow .panel,
.text-block-narrow .richtext,
.johan-text-block-narrow .richtext,
.quote-block-narrow .quote-card {
  max-width: 42rem;
}

.text-block-wide .panel,
.text-block-wide .richtext,
.johan-text-block-wide .richtext {
  max-width: 64rem;
}

.text-block-style-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.text-block-style-plain .text-block-body {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.text-block-style-soft .text-block-body {
  background: color-mix(in srgb, var(--theme-accent) 6%, var(--theme-surface));
  border: 1px solid color-mix(in srgb, var(--theme-accent) 12%, var(--theme-border));
  box-shadow: none;
}

.text-block-variant-lead .text-block-body {
  font-size: clamp(1.05rem, calc(0.96rem + 0.7vw), 1.28rem);
  line-height: 1.75;
}

.text-block-variant-note .text-block-body {
  color: var(--theme-helper-text);
  font-size: calc(var(--theme-base-size-fluid) * 0.93);
}

.text-block-variant-statement .text-block-body {
  font-size: clamp(1.18rem, calc(1.02rem + 0.72vw), 1.6rem);
  line-height: 1.6;
}

.text-block-align-center,
.text-block-align-center .section-heading,
.text-block-align-center .text-block-body {
  text-align: center;
}

.text-block-heading-h1 .section-heading h1,
.text-block-heading-h1 > h1 {
  font-size: calc(var(--theme-heading-size-fluid) * 1.04);
  line-height: 1.02;
}

.text-block-heading-h3 .section-heading h3,
.text-block-heading-h3 > h3 {
  font-size: calc(var(--theme-heading-size-fluid) * 0.9);
  line-height: 1.15;
}

.text-block-tone-quiet .section-heading h1,
.text-block-tone-quiet .section-heading h2,
.text-block-tone-quiet .section-heading h3,
.text-block-tone-quiet .text-block-body {
  color: var(--theme-helper-text);
}

.text-block-tone-strong .section-heading h1,
.text-block-tone-strong .section-heading h2,
.text-block-tone-strong .section-heading h3 {
  letter-spacing: -0.035em;
}

.text-block-tone-strong .text-block-body {
  font-size: clamp(1.02rem, calc(0.96rem + 0.38vw), 1.14rem);
}

.list-block-narrow,
.list-block-narrow .list-block-shell {
  max-width: 42rem;
}

.list-block-wide,
.list-block-wide .list-block-shell {
  max-width: 64rem;
}

.list-block-style-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.list-block-style-plain .list-block-shell {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.list-block-shell {
  padding: 1.15rem 1.35rem;
  border-radius: var(--theme-panel-radius);
}

.list-block-shell-soft {
  background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-border));
  box-shadow: none;
}

.list-block-items {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.list-block-density-compact .list-block-items {
  gap: 0.48rem;
}

.list-block-density-airy .list-block-items {
  gap: 1.05rem;
}

.list-block-items li {
  color: var(--theme-text);
  line-height: 1.7;
}

.list-block-marker-dash .list-block-items,
.list-block-marker-check .list-block-items {
  list-style: none;
  padding-left: 0;
}

.list-block-marker-dash .list-block-items li,
.list-block-marker-check .list-block-items li {
  position: relative;
  padding-left: 1.5rem;
}

.list-block-marker-dash .list-block-items li::before,
.list-block-marker-check .list-block-items li::before {
  position: absolute;
  left: 0;
  top: 0.08rem;
  font-weight: 700;
  color: var(--theme-accent);
}

.list-block-marker-dash .list-block-items li::before {
  content: "\2013";
}

.list-block-marker-check .list-block-items li::before {
  content: "\2713";
}

.list-block-align-center,
.list-block-align-center .section-heading,
.list-block-align-center .list-block-shell {
  text-align: center;
}

.list-block-align-center .list-block-items {
  padding-left: 0;
  list-style-position: inside;
}

.list-block-align-center.list-block-marker-dash .list-block-items li,
.list-block-align-center.list-block-marker-check .list-block-items li {
  padding-left: 0;
}

.list-block-align-center.list-block-marker-dash .list-block-items li::before,
.list-block-align-center.list-block-marker-check .list-block-items li::before {
  position: static;
  margin-right: 0.5rem;
}

.columns-block-narrow,
.columns-block-narrow .columns-block-shell {
  max-width: 56rem;
}

.columns-block-wide,
.columns-block-wide .columns-block-shell {
  max-width: 76rem;
}

.columns-block-style-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.columns-block-style-plain .columns-block-shell {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.columns-block-shell {
  padding: 1.2rem 1.35rem;
  border-radius: var(--theme-panel-radius);
}

.columns-block-shell-soft {
  background: color-mix(in srgb, var(--theme-accent) 5%, var(--theme-surface));
  border-color: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-border));
  box-shadow: none;
}

.columns-block-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.columns-density-compact .columns-block-grid {
  gap: 0.85rem;
}

.columns-density-airy .columns-block-grid {
  gap: 2rem;
}

.columns-ratio-left-heavy .columns-block-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
}

.columns-ratio-right-heavy .columns-block-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
}

.columns-block-column > :first-child {
  margin-top: 0;
}

.columns-block-heading {
  margin: 0 0 0.55rem;
}

.columns-block-align-center .section-heading,
.columns-block-align-center .columns-block-column {
  text-align: center;
}

@media (max-width: 900px) {
  .columns-block-grid,
  .columns-ratio-left-heavy .columns-block-grid,
  .columns-ratio-right-heavy .columns-block-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section-heading h2,
.panel h3 {
  margin: 0;
}

.lead {
  font-size: clamp(1rem, calc(0.9rem + 0.9vw), 1.25rem);
  color: rgba(17, 24, 39, 0.72);
}

.richtext {
  font-size: var(--theme-base-size-fluid);
  line-height: calc(var(--theme-body-line-height) + 0.1);
  max-width: var(--theme-body-measure);
}

.muted {
  color: var(--theme-helper-text);
  font-family: var(--theme-helper-family, var(--theme-font-family));
  font-size: var(--theme-helper-size-fluid, var(--theme-helper-size));
  line-height: 1.3;
  letter-spacing: var(--theme-helper-tracking, normal);
  text-transform: var(--theme-helper-case, none);
}

.muted a {
  color: var(--theme-helper-link-text, var(--theme-body-link-text, var(--theme-link-text, var(--theme-helper-text))));
  text-decoration: var(--theme-helper-link-decoration, var(--theme-body-link-decoration, var(--theme-link-decoration, underline)));
}

.muted a:hover {
  color: var(--theme-helper-link-hover-text, var(--theme-body-link-hover-text, var(--theme-link-hover-text, var(--theme-accent))));
  text-decoration: var(--theme-helper-link-hover-decoration, var(--theme-body-link-hover-decoration, var(--theme-link-hover-decoration, underline)));
}

.metadata,
.article-archive-meta .muted,
.article-compact-date,
.article-compact-date.muted,
.article-card-date,
.article-card-date.muted,
.article-meta-inline {
  color: var(--theme-meta-text, var(--theme-helper-text, var(--theme-muted)));
  font-family: var(--theme-meta-family, var(--theme-helper-family, var(--theme-font-family)));
  font-size: var(--theme-meta-size-fluid, var(--theme-helper-size-fluid));
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--theme-meta-tracking, normal);
  text-transform: var(--theme-meta-case, none);
}

.metadata a,
.article-archive-meta .muted a,
.article-compact-date a,
.article-card-date a,
.article-meta-inline a {
  color: var(--theme-meta-link-text, var(--theme-body-link-text, var(--theme-link-text, var(--theme-meta-text, var(--theme-helper-text)))));
  text-decoration: var(--theme-meta-link-decoration, var(--theme-body-link-decoration, var(--theme-link-decoration, underline)));
}

.metadata a:hover,
.article-archive-meta .muted a:hover,
.article-compact-date a:hover,
.article-card-date a:hover,
.article-meta-inline a:hover {
  color: var(--theme-meta-link-hover-text, var(--theme-body-link-hover-text, var(--theme-link-hover-text, var(--theme-accent))));
  text-decoration: var(--theme-meta-link-hover-decoration, var(--theme-body-link-hover-decoration, var(--theme-link-hover-decoration, underline)));
}

.site-footer {
  border-top: 0;
  background: var(--theme-footer-background);
  margin-top: 4rem;
  color: var(--theme-footer-text);
  font-family: var(--theme-footer-family);
  font-size: var(--theme-footer-size);
}

.site-footer .footer-heading-text {
  font-family: var(--theme-footer-heading-family, var(--theme-footer-family));
  font-size: var(--theme-footer-heading-size-fluid);
  color: var(--theme-footer-heading-text, var(--theme-footer-text));
}

.site-footer .footer-body-text {
  font-family: var(--theme-footer-family);
  font-size: var(--theme-footer-size-fluid);
  color: var(--theme-footer-text);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--theme-nav-gap) * 0.7);
  margin: 0 0 calc(0.8rem * var(--theme-space-scale));
}

.footer-menu a {
  color: inherit;
  text-decoration: none;
  font-family: var(--theme-nav-family, var(--theme-footer-family));
  font-size: min(var(--theme-nav-font-size-fluid), var(--theme-footer-size-fluid));
}

.footer-menu a:hover {
  color: var(--theme-nav-hover-text, var(--theme-accent));
}

.site-nav a,
.johan-site-nav a {
  font-size: var(--theme-nav-font-size-fluid);
}

.site-footer a,
.site-footer p,
.site-footer .muted,
.site-footer .eyebrow {
  color: inherit;
  font-family: inherit;
}

.footer-inner {
  margin: 0 auto;
  max-width: min(var(--theme-content-width), calc(100vw - 2rem));
  padding-top: calc((var(--theme-header-spacing) + 0.1rem) * var(--theme-space-scale));
  padding-bottom: calc((var(--theme-header-spacing) + 1rem) * var(--theme-space-scale));
 }

.template-editor-jump-target {
  border-radius: 14px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent, #2563eb) 18%, transparent);
  background: color-mix(in srgb, var(--theme-accent, #2563eb) 6%, var(--theme-surface, #ffffff));
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

.template-preview-typography-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.template-typography-rows {
  --type-col-font: 9.5rem;
  --type-col-scale: 4.25rem;
  --type-col-color: 2.2rem;
  --type-col-track: 5.4rem;
  --type-col-case: 5.4rem;
  --type-col-link-color: 2.2rem;
  --type-col-hover: 2.2rem;
  --type-col-decoration: 6.1rem;
  --type-col-hover-decoration: 6.1rem;
  display: grid;
  gap: 0;
}

.template-typography-columns {
  display: grid;
  grid-template-columns:
    var(--type-col-font)
    var(--type-col-scale)
    var(--type-col-color)
    var(--type-col-track)
    var(--type-col-case)
    var(--type-col-link-color)
    var(--type-col-hover)
    var(--type-col-decoration)
    var(--type-col-hover-decoration);
  gap: 0.2rem 0.35rem;
  align-items: center;
  justify-content: start;
  padding: 0 0 0.42rem;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
}

.template-typography-columns span {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
  color: color-mix(in srgb, var(--theme-text) 72%, transparent);
}

.template-navigation-rows {
  --nav-col-font: 11rem;
  --nav-col-scale: 4.3rem;
  --nav-col-size: 5.8rem;
  --nav-col-variant: 6.8rem;
  --nav-col-density: 5.8rem;
  --nav-col-gap: 4.2rem;
  --nav-col-bg: 2.8rem;
  --nav-col-color: 2.8rem;
  --nav-col-hover-bg: 3.2rem;
  --nav-col-hover: 2.8rem;
  display: grid;
  gap: 0;
}

.template-navigation-columns {
  display: grid;
  grid-template-columns:
    var(--nav-col-font)
    var(--nav-col-scale)
    var(--nav-col-size)
    var(--nav-col-variant)
    var(--nav-col-density)
    var(--nav-col-gap)
    var(--nav-col-bg)
    var(--nav-col-color)
    var(--nav-col-hover-bg)
    var(--nav-col-hover);
  gap: 0.2rem 0.35rem;
  align-items: center;
  justify-content: start;
  padding: 0 0 0.42rem;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
}

.template-navigation-columns span {
  display: block;
  font-size: 0.74rem;
  font-family: var(--admin-font-family, system-ui, sans-serif) !important;
  font-weight: 400 !important;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  color: color-mix(in srgb, var(--theme-text) 72%, transparent);
}

.template-navigation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
  border-radius: 0;
  background: transparent;
}

.template-editor-nav,
.template-navigation-controls {
  display: grid;
  gap: 0.75rem;
}

.template-editor-surfaces,
.template-editor-layout {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  align-content: start;
}

.template-editor-surfaces {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-editor-surfaces > .panel,
.template-layout-panel {
  margin: 0;
}

.template-layout-stack {
  display: grid;
  gap: 0.85rem;
}

.template-layout-panel .richtext,
.template-editor-surfaces .richtext {
  max-width: none;
}

.template-editor-layout .template-layout-rhythm {
  min-height: 3.5rem;
  align-content: center;
}

.template-editor-nav {
  min-width: 0;
  align-content: start;
}

.template-editor-nav {
  margin: 0;
  padding: 0;
}

.template-editor-nav .nav-shell {
  max-width: none;
  margin: 0;
  padding: calc(var(--theme-header-spacing, 1rem) * var(--theme-space-scale, 1)) 1rem;
}

.template-editor-nav .site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-nav-gap, 1rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.template-editor-nav .site-nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--theme-nav-padding-y, 0.2rem) var(--theme-nav-padding-x, 0);
  border-radius: var(--theme-nav-radius, 0);
  border: 1px solid var(--theme-nav-border, transparent);
  background: var(--theme-nav-background, transparent);
  color: var(--theme-nav-text, var(--theme-header-text, var(--theme-text))) !important;
  font-family: var(--theme-nav-family, var(--theme-header-family, var(--theme-font-family)));
  font-size: var(--theme-nav-font-size, 1rem);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none !important;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  cursor: default;
}

.template-editor-nav .site-nav a:hover,
.template-editor-nav .site-nav a.is-hover {
  background: var(--theme-nav-hover-background, transparent);
  border-color: var(--theme-nav-hover-border, transparent);
  color: var(--theme-nav-hover-text, var(--theme-nav-text, var(--theme-header-text, var(--theme-text)))) !important;
  text-decoration: none !important;
}

.template-navigation-controls {
  grid-template-columns:
    var(--nav-col-font)
    var(--nav-col-scale)
    var(--nav-col-size)
    var(--nav-col-variant)
    var(--nav-col-density)
    var(--nav-col-gap)
    var(--nav-col-bg)
    var(--nav-col-color)
    var(--nav-col-hover-bg)
    var(--nav-col-hover);
  gap: 0.2rem 0.35rem;
  align-items: end;
  justify-content: start;
}

.template-navigation-controls .field {
  margin: 0;
}

.template-navigation-controls .field > span {
  display: none;
}

.template-navigation-controls .field,
.template-navigation-controls .field select,
.template-navigation-controls .field input {
  font-family: var(--admin-font-family, system-ui, sans-serif) !important;
  font-weight: 400 !important;
}

.template-navigation-controls .field input[type="number"],
.template-navigation-controls .field select {
  width: 100%;
  max-width: 100%;
}

.template-navigation-controls .field input[type="color"] {
  width: 2.35rem;
  min-width: 2.35rem;
  justify-self: start;
}

@media (max-width: 780px) {
  .template-editor-surfaces {
    grid-template-columns: minmax(0, 1fr);
  }
}

.template-editor-shell.is-typography {
  padding-bottom: 1rem;
}

.template-typography-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-border) 72%, transparent);
  border-radius: 0;
  background: transparent;
}

.template-typography-preview,
.template-typography-controls {
  display: grid;
  gap: 0.75rem;
}

.template-typography-preview {
  min-width: 0;
  align-content: start;
  min-height: 0;
  padding-right: 0;
}

.template-typography-preview h1,
.template-typography-preview h2,
.template-typography-preview h3,
.template-typography-preview .richtext,
.template-typography-preview p {
  margin: 0;
}

.template-typography-preview .site-header,
.template-typography-preview .home-intro,
.template-typography-preview .panel {
  margin: 0;
}

.template-typography-preview .site-header {
  border-radius: var(--theme-surface-radius);
}

.template-typography-preview .site-header .nav-shell {
  max-width: none;
  margin: 0;
  justify-content: flex-start;
}

.template-typography-preview .home-intro-copy {
  padding: 0;
  max-width: none;
}

.template-typography-panel {
  padding: calc(var(--theme-surface-padding) * var(--theme-space-scale));
}

.template-typography-site-heading {
  line-height: 1.1;
  margin: 0;
}

.template-typography-preview .richtext {
  max-width: none;
}

.template-typography-body-text {
  line-height: calc(var(--theme-body-line-height) + 0.1);
}

.template-typography-helper-text {
  line-height: 1.3;
}

.template-typography-meta-text {
  margin: 0;
  line-height: 1.3;
}

.template-typography-link-text {
  color: var(--theme-link-text, var(--theme-text));
  font-family: var(--theme-link-family, var(--theme-font-family));
  font-size: var(--theme-link-size, inherit);
  letter-spacing: var(--theme-link-tracking, normal);
  text-transform: var(--theme-link-case, none);
  text-decoration: var(--theme-link-decoration, underline);
  text-decoration-thickness: from-font;
  text-underline-offset: 0.12em;
}

.template-typography-link-text:hover {
  color: var(--theme-link-hover-text, var(--theme-accent));
  text-decoration: var(--theme-link-hover-decoration, underline);
}

.template-typography-controls {
  grid-template-columns:
    var(--type-col-font)
    var(--type-col-scale)
    var(--type-col-color)
    var(--type-col-track)
    var(--type-col-case)
    var(--type-col-link-color)
    var(--type-col-hover)
    var(--type-col-decoration)
    var(--type-col-hover-decoration);
  gap: 0.25rem 0.35rem;
  align-content: start;
  justify-content: start;
}

.template-typography-controls .field-grid {
  display: contents;
}

.template-typography-controls .field {
  min-width: 0;
}

.template-typography-cell-spacer {
  display: block;
  width: 2.2rem;
  min-width: 2.2rem;
}

.template-typography-controls .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.template-typography-controls .field small {
  display: none;
}

.template-typography-controls .field input,
.template-typography-controls .field select {
  appearance: auto;
  -webkit-appearance: auto;
  border: initial;
  border-radius: initial;
  background: initial;
  box-shadow: none;
  color: inherit;
  font: inherit;
  padding: initial;
}

.template-typography-controls .field input[type="text"],
.template-typography-controls .field input[type="number"],
.template-typography-controls .field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
  font-family: var(--admin-field-font);
  font-size: calc(var(--admin-field-size) * 0.84);
  line-height: 1.2;
  padding: calc(var(--admin-field-padding-y) * 0.45) calc(var(--admin-field-padding-x) * 0.42);
  border: 1px solid var(--admin-field-border);
  border-radius: calc(var(--admin-field-radius) * 0.66);
  background: var(--admin-field-bg);
  color: var(--admin-field-text);
  box-sizing: border-box;
}

.template-typography-controls .field select[name$="_font_id"] {
  min-width: 0;
}

.template-typography-controls .field input[type="number"] {
  width: 4.25rem;
  min-width: 4.25rem;
}

.template-typography-controls .field input[type="color"] {
  width: 2.2rem;
  min-width: 2.2rem;
  max-width: 2.2rem;
  min-height: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--admin-field-border);
  border-radius: 999px;
  box-sizing: border-box;
  justify-self: start;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.template-typography-controls .field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.template-typography-controls .field input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}

.template-typography-controls .field input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 999px;
}

.template-typography-preview h2:last-child,
.template-typography-preview h3:last-child,
.template-typography-preview p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .template-form-grid {
    grid-template-columns: 1fr;
  }

  .template-preview-typography-grid {
    grid-template-columns: 1fr;
  }

  .template-typography-row {
    grid-template-columns: 1fr;
  }

  .template-navigation-row {
    grid-template-columns: 1fr;
  }

  .template-typography-columns {
    display: none;
  }

  .template-navigation-columns {
    display: none;
  }

  .template-typography-preview {
    min-height: 0;
    padding-right: 0;
  }

  .template-editor-nav {
    min-height: 0;
    padding-right: 0;
  }

  .template-typography-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-navigation-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-typography-controls .field input[type="text"],
  .template-typography-controls .field input[type="number"],
  .template-typography-controls .field select {
    max-width: 100%;
  }

  .template-navigation-controls .field > span {
    display: inline;
  }
}

.template-branding-favicon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.template-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.template-editor-preview .template-form-grid input[type="text"],
.template-editor-preview .template-form-grid select,
.template-editor-preview .template-form-grid textarea {
  width: 100%;
  box-sizing: border-box;
  padding: var(--theme-form-padding-y) var(--theme-form-padding-x);
  border: 1px solid var(--theme-form-border);
  background: var(--theme-form-background);
  color: var(--theme-form-text);
  font-family: var(--theme-form-font-family);
  font-size: var(--theme-form-font-size);
  border-radius: var(--theme-form-radius);
}

.template-editor-preview .template-form-grid textarea {
  resize: vertical;
}

.template-editor-preview .template-form-grid input[type="text"]::placeholder,
.template-editor-preview .template-form-grid textarea::placeholder {
  color: var(--theme-form-placeholder);
}

.template-editor-preview .template-form-grid input[type="text"]:disabled,
.template-editor-preview .template-form-grid select:disabled,
.template-editor-preview .template-form-grid textarea:disabled {
  background: var(--theme-form-disabled-background);
  color: var(--theme-form-disabled-text);
  border-color: var(--theme-form-disabled-border);
}

@media (max-width: 900px) {
  .cta-card-layout-inline {
    grid-template-columns: 1fr;
  }

  .cta-card-layout-inline .actions,
  .cta-card-layout-inline .eyebrow,
  .cta-card-layout-inline h2,
  .cta-card-layout-inline p {
    grid-column: auto;
    grid-row: auto;
  }

  .cta-card-layout-inline .actions {
    justify-self: start;
    margin-top: 0.35rem;
  }

  .article-meta-row {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }

  .article-section-layout-image_left,
  .article-section-layout-image_right {
    grid-template-columns: 1fr;
  }

  .article-section-layout-image_right .article-section-image,
  .article-section-layout-image_right .article-section-copy {
    order: initial;
  }

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

  .admin-header {
    align-items: start;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .templates-editor {
    grid-template-columns: 1fr;
  }

  .templates-preview-shell {
    position: static;
  }

  .template-preview-focus-grid-overview,
  .template-preview-focus-grid {
    grid-template-columns: 1fr;
  }

  .johan-hero,
  .johan-grid,
  .johan-link-grid,
  .image-text-block,
  .image-text-right {
    grid-template-columns: 1fr;
  }

  .shell {
    margin: calc(0.35rem * var(--theme-space-scale)) auto calc(1.5rem * var(--theme-space-scale));
    padding: calc(0.85rem * var(--theme-space-scale));
  }

  body:not(.admin-body) > main.shell,
  body:not(.admin-body) > main.shell.shell-wide {
    margin-top: 0;
    padding-top: calc(0.2rem * var(--theme-space-scale));
  }

  .shell-wide,
  .footer-inner,
  .nav-shell {
    max-width: calc(100vw - 1.25rem);
  }

  .nav-shell {
    padding-top: calc(0.4rem * var(--theme-space-scale));
    padding-bottom: calc(0.35rem * var(--theme-space-scale));
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .site-nav {
    width: 100%;
    gap: calc(var(--theme-nav-gap) * 0.75);
  }

  .layout-section {
    margin: calc(0.35rem * var(--theme-space-scale)) 0;
  }

  .layout-section:first-child {
    margin-top: 0;
  }

  .section-block {
    margin-top: calc(0.9rem * var(--theme-space-scale));
  }

  .layout-section-single > .section-block:first-child,
  .layout-section-column > .section-block:first-child {
    margin-top: 0;
  }

  .site-nav a {
    max-width: 100%;
  }

  .actions {
    gap: 0.75rem;
  }

  .johan-home,
  .johan-content-shell {
    margin-top: 0;
  }

  .johan-hero > div,
  .johan-hero-meta,
  .johan-article-header,
  .panel,
  .notice-block,
  .cta-card,
  .quote-card {
    padding-left: calc(1rem * var(--theme-space-scale));
    padding-right: calc(1rem * var(--theme-space-scale));
  }

  .brandmark-copy,
  .johan-brand {
    max-width: 100%;
  }

  .brandmark-copy {
    gap: 0.02rem;
  }

  .brandmark-title,
  .header-title-text {
    line-height: 1.15;
  }

  .brandmark-tagline,
  .header-tagline-text,
  .johan-brand p {
    line-height: 1.35;
  }
}

@media (max-width: 900px) {
  .media-card {
    grid-template-columns: 1fr;
  }

  .media-card-form {
    grid-template-columns: 1fr;
  }

  .media-card-form .field:nth-of-type(3),
  .media-card-form .mini-actions {
    grid-column: auto;
  }

  .media-card-actions {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .media-picker-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .johan-link-grid {
    grid-template-columns: 1fr;
  }

  .article-image,
  .image-text-media img {
    aspect-ratio: 16 / 10;
  }
}

.layout-engine-grid {
  display: grid;
  grid-template-columns: repeat(var(--layout-columns, 12), minmax(0, 1fr));
  gap: var(--layout-gap-y, 1.5rem) var(--layout-gap-x, 1.5rem);
  width: min(100%, var(--layout-max-width, var(--shell-wide-width)));
  margin-inline: auto;
  padding-inline: var(--layout-outer-margin, 0);
  position: relative;
}

.layout-engine-slot {
  min-width: 0;
  position: relative;
  outline: 1px dashed transparent;
  outline-offset: 0.35rem;
  transition: outline-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  min-height: 7rem;
}

.layout-engine-slot.is-active {
  outline-color: color-mix(in srgb, var(--admin-accent, #dc2626) 45%, transparent);
}

.layout-engine-empty-node {
  min-height: 8rem;
  display: grid;
  align-content: center;
  justify-items: start;
  border-style: dashed;
  opacity: 0.9;
}

.layout-editor-node-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 11;
  border: 1px solid var(--admin-border, #dbe1ea);
  background: color-mix(in srgb, var(--admin-panel-bg, #fff) 92%, transparent);
  color: var(--admin-accent, #dc2626);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-grid;
  gap: 0.1rem;
  text-align: left;
  max-width: calc(100% - 1.5rem);
}

.layout-editor-node-chip.is-active {
  border-color: color-mix(in srgb, var(--admin-accent, #dc2626) 35%, var(--admin-border, #dbe1ea));
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.layout-engine-slot > .site-header,
.layout-engine-slot > .site-footer,
.layout-engine-slot > .home-intro,
.layout-engine-slot > .section-layout,
.layout-engine-slot > .block-section,
.layout-engine-slot > .panel {
  border-radius: 1rem;
}

.layout-editor-node-chip-meta {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--admin-muted, #64748b) 88%, transparent);
}

.layout-editor-hidden-fields {
  display: none;
}

.block-inner-padding-none > .section-block .panel,
.block-inner-padding-none > .section-block .hero-block-inner,
.block-inner-padding-none > .section-block .text-block-body,
.block-inner-padding-none > .section-block .list-block-shell,
.block-inner-padding-none > .section-block .columns-block-shell,
.block-inner-padding-none > .section-block .image-block-shell,
.block-inner-padding-none > .section-block .cta-card,
.block-inner-padding-none > .section-block .quote-card,
.block-inner-padding-none > .section-block .image-text-content,
.block-inner-padding-none > .section-block.notice-block {
  padding: 0;
}

.block-inner-padding-sm > .section-block .panel,
.block-inner-padding-sm > .section-block .hero-block-inner,
.block-inner-padding-sm > .section-block .text-block-body,
.block-inner-padding-sm > .section-block .list-block-shell,
.block-inner-padding-sm > .section-block .columns-block-shell,
.block-inner-padding-sm > .section-block .image-block-shell,
.block-inner-padding-sm > .section-block .cta-card,
.block-inner-padding-sm > .section-block .quote-card,
.block-inner-padding-sm > .section-block .image-text-content,
.block-inner-padding-sm > .section-block.notice-block {
  padding: 0.85rem 1rem;
}

.block-inner-padding-md > .section-block .panel,
.block-inner-padding-md > .section-block .hero-block-inner,
.block-inner-padding-md > .section-block .text-block-body,
.block-inner-padding-md > .section-block .list-block-shell,
.block-inner-padding-md > .section-block .columns-block-shell,
.block-inner-padding-md > .section-block .image-block-shell,
.block-inner-padding-md > .section-block .cta-card,
.block-inner-padding-md > .section-block .quote-card,
.block-inner-padding-md > .section-block .image-text-content,
.block-inner-padding-md > .section-block.notice-block {
  padding: 1.2rem 1.35rem;
}

.block-inner-padding-lg > .section-block .panel,
.block-inner-padding-lg > .section-block .hero-block-inner,
.block-inner-padding-lg > .section-block .text-block-body,
.block-inner-padding-lg > .section-block .list-block-shell,
.block-inner-padding-lg > .section-block .columns-block-shell,
.block-inner-padding-lg > .section-block .image-block-shell,
.block-inner-padding-lg > .section-block .cta-card,
.block-inner-padding-lg > .section-block .quote-card,
.block-inner-padding-lg > .section-block .image-text-content,
.block-inner-padding-lg > .section-block.notice-block {
  padding: 1.65rem 1.85rem;
}

.inline-edit-frame > .section-block .panel,
.inline-edit-frame > .section-block .hero-block-inner,
.inline-edit-frame > .section-block .text-block-body,
.inline-edit-frame > .section-block .list-block-shell,
.inline-edit-frame > .section-block .columns-block-shell,
.inline-edit-frame > .section-block .image-block-shell,
.inline-edit-frame > .section-block .cta-card,
.inline-edit-frame > .section-block .quote-card,
.inline-edit-frame > .section-block .image-text-content,
.inline-edit-frame > .section-block.notice-block,
.block-preview > .panel,
.block-preview > .hero-block-inner,
.block-preview > .text-block-body,
.block-preview > .list-block-shell,
.block-preview > .columns-block-shell,
.block-preview > .image-block-shell,
.block-preview > .cta-card,
.block-preview > .quote-card,
.block-preview > .image-text-content,
.block-preview > .notice-block {
  padding: var(--block-inner-padding);
}

.block-preview .section-block,
.block-preview .notice-block,
.block-preview .johan-notice {
  margin-top: var(--block-spacing-top);
  margin-bottom: var(--block-spacing-bottom);
}

.block-preview[style*="--block-max-width"] > .section-block,
.block-preview[style*="--block-max-width"] > .notice-block,
.block-preview[style*="--block-max-width"] > .johan-notice {
  max-width: min(100%, var(--block-max-width));
  margin-inline: auto;
}

.layout-editor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(20rem, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.layout-editor-canvas {
  min-width: 0;
}

.layout-editor-canvas-mini {
  --layout-editor-preview-scale: 0.72;
  position: relative;
  overflow: hidden;
}

.layout-editor-canvas-mini .layout-engine-editor-shell {
  transform: scale(var(--layout-editor-preview-scale));
  transform-origin: top left;
  width: calc(100% / var(--layout-editor-preview-scale));
}

.layout-editor-inspector-panel {
  position: sticky;
  top: 1rem;
  align-self: start;
  border: 1px solid var(--admin-border, #dbe1ea);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--admin-panel-bg, #fff);
}

.layout-admin-preview {
  padding: 0.5rem 0;
}

.layout-admin-preview-mini {
  --layout-admin-preview-scale: 0.62;
  position: relative;
  overflow: hidden;
}

.layout-admin-preview-mini .layout-engine-editor-shell {
  transform: scale(var(--layout-admin-preview-scale));
  transform-origin: top left;
  width: calc(100% / var(--layout-admin-preview-scale));
}

.layout-editor-selected-summary,
.layout-editor-inspector-placeholder {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, #eff6ff 80%, white 20%);
  color: var(--admin-text, #0f172a);
}

.layout-editor-placement-tools {
  margin-bottom: 1rem;
}

.layout-editor-placement-label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--admin-muted, #64748b);
  font-size: 0.92rem;
}

.layout-editor-placement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.layout-editor-placement-actions .button.is-active {
  border-color: color-mix(in srgb, var(--admin-accent, #dc2626) 45%, var(--admin-border, #dbe1ea));
  background: color-mix(in srgb, #fee2e2 65%, white 35%);
}

.layout-engine-editor-shell {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.layout-engine-corner-marker {
  width: 3rem;
  min-height: 2.25rem;
}

.layout-engine-column-ruler {
  display: grid;
  grid-template-columns: repeat(var(--layout-columns, 12), minmax(0, 1fr));
  gap: var(--layout-gap-x, 1.5rem);
}

.layout-engine-column-marker,
.layout-engine-row-marker {
  border: 1px solid var(--admin-border, #dbe1ea);
  background: color-mix(in srgb, white 84%, #eff6ff 16%);
  color: var(--admin-text, #0f172a);
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 2.25rem;
  cursor: pointer;
}

.layout-engine-column-marker:hover,
.layout-engine-row-marker:hover {
  border-color: color-mix(in srgb, #60a5fa 55%, var(--admin-border, #dbe1ea));
  background: color-mix(in srgb, white 68%, #dbeafe 32%);
}

.layout-engine-column-marker.is-active,
.layout-engine-row-marker.is-active {
  border-color: color-mix(in srgb, #2563eb 50%, var(--admin-border, #dbe1ea));
  background: color-mix(in srgb, white 58%, #bfdbfe 42%);
  color: #1d4ed8;
  box-shadow: 0 8px 20px -18px rgba(37, 99, 235, 0.95);
}

.layout-engine-column-marker.is-target,
.layout-engine-row-marker.is-target {
  border-color: color-mix(in srgb, var(--admin-accent, #dc2626) 48%, var(--admin-border, #dbe1ea));
  background: color-mix(in srgb, white 62%, #fee2e2 38%);
  color: color-mix(in srgb, var(--admin-accent, #dc2626) 88%, #7f1d1d);
}

.layout-engine-row-ruler {
  display: grid;
  grid-template-rows: repeat(var(--layout-editor-rows, 4), minmax(var(--layout-editor-row-height, 8rem), auto));
  gap: var(--layout-gap-y, 1.5rem);
}

.layout-engine-row-marker {
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout-engine-grid-editor {
  isolation: isolate;
  grid-auto-rows: minmax(var(--layout-editor-row-height, 8rem), auto);
  border-radius: 1.25rem;
  background-color: color-mix(in srgb, var(--admin-panel-bg, #fff) 80%, #eff6ff 20%);
  background-image:
    linear-gradient(
      to right,
      transparent calc(100% - 1px),
      color-mix(in srgb, #93c5fd 70%, transparent) calc(100% - 1px),
      color-mix(in srgb, #93c5fd 70%, transparent) 100%
    ),
    linear-gradient(
      to bottom,
      transparent calc(100% - 1px),
      color-mix(in srgb, #cbd5e1 55%, transparent) calc(100% - 1px),
      color-mix(in srgb, #cbd5e1 55%, transparent) 100%
    );
  background-size:
    calc(100% / var(--layout-columns, 12)) 100%,
    100% 8rem;
  background-repeat: repeat-x, repeat-y;
}

.layout-engine-grid-editor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px dashed color-mix(in srgb, #93c5fd 70%, #dbeafe 30%);
  border-radius: 1.25rem;
  pointer-events: none;
}

.layout-engine-grid-editor .layout-engine-slot {
  outline: 2px solid color-mix(in srgb, #60a5fa 75%, #bfdbfe 25%);
  outline-offset: -2px;
  border-radius: 1rem;
  background: color-mix(in srgb, #dbeafe 24%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #93c5fd 70%, transparent),
    0 0 0 1px color-mix(in srgb, #ffffff 65%, transparent);
  cursor: pointer;
}

.layout-engine-grid-editor .layout-engine-slot.is-active {
  outline-color: color-mix(in srgb, var(--admin-accent, #dc2626) 72%, #fb7185 28%);
  background: color-mix(in srgb, #fee2e2 34%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #fca5a5 80%, transparent),
    0 0 0 1px color-mix(in srgb, #ffffff 65%, transparent);
}

.layout-engine-placement-preview {
  pointer-events: none;
  z-index: 0;
  border-radius: 1rem;
  border: 2px dashed color-mix(in srgb, var(--admin-accent, #dc2626) 58%, #fca5a5 42%);
  background:
    linear-gradient(135deg, color-mix(in srgb, #fee2e2 65%, transparent) 0 20%, transparent 20% 40%, color-mix(in srgb, #fee2e2 45%, transparent) 40% 60%, transparent 60% 80%, color-mix(in srgb, #fee2e2 35%, transparent) 80% 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, white 48%, transparent);
}

.layout-engine-grid-editor a,
.layout-engine-grid-editor button:not(.layout-editor-node-chip) {
  pointer-events: none;
}

.layout-editor-inspector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.layout-editor-inspector-grid .field {
  margin: 0;
}

.field-stepper {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.field-stepper-decimal input {
  text-align: center;
}

.field-stepper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--admin-border, #dbe1ea);
  border-radius: 999px;
  background: color-mix(in srgb, white 94%, #eff6ff 6%);
  color: var(--admin-text, #0f172a);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.field-stepper-button:hover {
  border-color: color-mix(in srgb, #60a5fa 55%, var(--admin-border, #dbe1ea));
  background: color-mix(in srgb, white 84%, #dbeafe 16%);
  transform: translateY(-1px);
}

.layout-component-picker-field {
  grid-column: 1 / -1;
}

.layout-component-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.layout-component-card {
  display: grid;
  gap: 0.2rem;
  min-height: 5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--admin-border, #dbe1ea);
  border-radius: 1rem;
  background: color-mix(in srgb, white 95%, #eff6ff 5%);
  color: var(--admin-text, #0f172a);
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.layout-component-card strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.layout-component-card span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--admin-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.layout-component-card:hover {
  border-color: color-mix(in srgb, #60a5fa 55%, var(--admin-border, #dbe1ea));
  background: color-mix(in srgb, white 88%, #dbeafe 12%);
  transform: translateY(-1px);
}

.layout-component-card.is-active {
  border-color: color-mix(in srgb, #2563eb 36%, white);
  background: color-mix(in srgb, #2563eb 10%, white);
  box-shadow: 0 10px 22px -18px rgba(37, 99, 235, 0.9);
}

.layout-placement-presets {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.layout-placement-presets-label {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--admin-muted, #64748b);
}

.layout-placement-presets-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.layout-editor-inspector-grid .checkbox-field {
  align-self: center;
}

@media (max-width: 900px) {
  .layout-editor-workspace {
    grid-template-columns: 1fr;
  }

  .layout-editor-inspector-panel {
    position: static;
  }

  .layout-engine-editor-shell {
    grid-template-columns: 1fr;
  }

  .layout-engine-corner-marker,
  .layout-engine-row-ruler {
    display: none;
  }

  .layout-editor-node-chip {
    position: static;
    margin-bottom: 0.5rem;
  }

  .layout-editor-inspector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
