/* The studio stays quiet so that the clinic's email design carries the color. */
@font-face { font-family: 'DM Sans'; src: url('/fonts/email/DM-Sans.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zairi Editorial'; src: url('/fonts/email/Bodoni-Moda.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zairi Geometric'; src: url('/fonts/email/Montserrat-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zairi Wide'; src: url('/fonts/email/Archivo-Expanded.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zairi Condensed'; src: url('/fonts/email/Barlow-Condensed-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
.zes-studio {
  --zes-ink: #25303a;
  --zes-muted: #626f7a;
  --zes-border: #dce1e5;
  --zes-surface: #ffffff;
  --zes-soft: #f4f6f7;
  --zes-canvas: #e9edef;
  --zes-focus: #426678;
  --zes-action: #253c36;
  --zes-on-action: #ffffff;
  --zes-success-bg: #edf6ef;
  --zes-success: #245b39;
  --zes-error-bg: #fff2ee;
  --zes-error: #a23c25;
  --zes-ease: cubic-bezier(0.23, 1, 0.32, 1);
  color: var(--zes-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  max-width: 1440px;
  margin: 0 auto;
  min-width: 0;
}
html[data-theme="dark"] .zes-studio {
  --zes-ink: #eff2f4;
  --zes-muted: #b0bcc4;
  --zes-border: #37434c;
  --zes-surface: #1b242b;
  --zes-soft: #242e36;
  --zes-canvas: #111a21;
  --zes-focus: #9cc3d2;
  --zes-action: #d4e4dc;
  --zes-on-action: #1b3228;
  --zes-success-bg: #1d382b;
  --zes-success: #a4dbb5;
  --zes-error-bg: #40271f;
  --zes-error: #ffc1ad;
}
html .zes-studio * { box-sizing: border-box; }
html .zes-studio button { font-family: inherit; font-size: inherit; cursor: pointer; }
html .zes-studio button:disabled { cursor: default; opacity: .48; }
html .zes-studio button:focus-visible,
html .zes-studio input:focus-visible,
html .zes-studio select:focus-visible,
html .zes-studio textarea:focus-visible,
html .zes-studio summary:focus-visible { outline: 3px solid var(--zes-focus); outline-offset: 3px; box-shadow: none; }
html .zes-studio input, html .zes-studio textarea, html .zes-studio select {
  width: 100%; margin: 0; border: 1px solid var(--zes-border); border-radius: 7px;
  background: var(--zes-surface); color: var(--zes-ink); font: inherit; font-size: 14px;
  min-height: 44px; padding: 10px 11px; box-shadow: none;
}
html .zes-studio textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
html .zes-studio input::placeholder, html .zes-studio textarea::placeholder { color: var(--zes-muted); opacity: .85; }
html .zes-studio input:focus, html .zes-studio select:focus, html .zes-studio textarea:focus { border-color: var(--zes-focus); }
html .zes-studio input[type="checkbox"] { appearance: auto; width: 17px; min-height: 17px; height: 17px; margin: 2px 0 0; padding: 0; accent-color: var(--zes-action); flex: 0 0 17px; }
html .zes-studio label { color: var(--zes-ink); font-size: 13px; font-weight: 550; margin: 0; }
html .zes-studio h2, html .zes-studio h3, html .zes-studio h4 { color: var(--zes-ink); font-family: inherit; margin: 0; }
html .zes-studio h2 { font-size: clamp(24px, 2.7vw, 31px); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
html .zes-studio h3 { font-size: 18px; font-weight: 650; letter-spacing: -.018em; line-height: 1.3; }
html .zes-studio h4 { font-size: 13px; font-weight: 650; letter-spacing: .005em; line-height: 1.4; }
.zes-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 5px 0 23px; }
.zes-header p { color: var(--zes-muted); margin: 8px 0 0; font-size: 14px; max-width: 620px; }
.zes-eyebrow { color: var(--zes-muted); letter-spacing: .14em; font-size: 10px; font-weight: 600; margin-bottom: 8px; }
.zes-audience { display: flex; gap: 13px; align-items: center; padding-left: 22px; border-left: 1px solid var(--zes-border); flex: 0 0 auto; }
.zes-audience > svg { color: var(--zes-muted); }
.zes-audience strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.zes-audience small { display: block; color: var(--zes-muted); font-size: 12px; margin-top: 2px; }
.zes-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; margin-bottom: 3px; border-top: 1px solid var(--zes-border); }
.zes-toolbar-start, .zes-toolbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
html .zes-studio .zes-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px;
  background: var(--zes-surface); color: var(--zes-ink); border: 1px solid var(--zes-border);
  border-radius: 7px; padding: 9px 14px; font-size: 13px; font-weight: 550; line-height: 1.35;
  white-space: nowrap; box-shadow: 0 1px 1px rgba(16, 26, 36, .035);
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms var(--zes-ease);
}
html .zes-studio .zes-button-primary { background: var(--zes-action); color: var(--zes-on-action); border-color: var(--zes-action); }
html .zes-studio .zes-button.is-active { border-color: var(--zes-ink); background: var(--zes-soft); }
html .zes-studio .zes-icon-button { width: 44px; padding: 9px; }
html .zes-studio .zes-button:active:not(:disabled) { transform: scale(.98); }
.zes-draft-status { display: inline-flex; gap: 5px; align-items: center; color: var(--zes-muted); font-size: 12px; padding: 0 6px; }
.zes-draft-status svg { color: var(--zes-success); }
.zes-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.zes-section-head p { color: var(--zes-muted); margin: 5px 0 0; font-size: 13px; }
.zes-library { border: 1px solid var(--zes-border); border-radius: 11px; background: var(--zes-surface); padding: 24px; margin: 0 0 22px; }
.zes-filter { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
html .zes-studio .zes-filter select { width: 180px; font-size: 13px; min-height: 40px; }
.zes-template-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 23px 18px; }
html .zes-studio .zes-template { border: 0; color: var(--zes-ink); background: transparent; padding: 0; text-align: left; min-width: 0; border-radius: 7px; }
.zes-template-thumb { position: relative; display: block; width: 100%; height: 165px; border: 1px solid var(--zes-border); border-radius: 7px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(18, 31, 43, .035); }
.zes-template-thumb iframe { border: 0; width: 600px; height: 900px; position: absolute; left: 50%; top: 0; transform: translateX(-50%) scale(.3); transform-origin: top center; pointer-events: none; background: #fff; }
.zes-template.is-selected .zes-template-thumb { outline: 2px solid var(--zes-focus); outline-offset: 2px; }
.zes-template-check { position: absolute; right: 8px; top: 8px; width: 23px; height: 23px; background: var(--zes-action); color: var(--zes-on-action); border: 1px solid var(--zes-surface); display: grid; place-items: center; border-radius: 50%; }
.zes-template-name { display: block; font-weight: 650; font-size: 13px; margin-top: 10px; letter-spacing: -.01em; line-height: 1.3; }
.zes-template-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; font-weight: 400; color: var(--zes-muted); line-height: 1.45; margin-top: 4px; }
.zes-library-foot { color: var(--zes-muted); margin: 21px 0 0; font-size: 12px; border-top: 1px solid var(--zes-border); padding-top: 16px; }
.zes-workspace { display: grid; grid-template-columns: minmax(290px, 345px) minmax(0, 1fr); min-height: 740px; border: 1px solid var(--zes-border); border-radius: 11px; overflow: hidden; background: var(--zes-surface); }
.zes-workspace-legacy { grid-template-columns: minmax(0, 1fr); }
.zes-inspector { min-width: 0; border-right: 1px solid var(--zes-border); }
.zes-inspector-title { padding: 18px 19px 15px; border-bottom: 1px solid var(--zes-border); }
.zes-inspector-title > span { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.012em; }
.zes-inspector-title small { display: block; margin-top: 3px; color: var(--zes-muted); font-size: 12px; }
.zes-inspector-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 10px; border-bottom: 1px solid var(--zes-border); gap: 4px; }
html .zes-studio .zes-inspector-tabs button { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 4px; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 1px 10px; min-height: 60px; font-size: 11px; font-weight: 550; color: var(--zes-muted); }
html .zes-studio .zes-inspector-tabs button.is-active { color: var(--zes-ink); border-bottom-color: var(--zes-ink); }
html .zes-studio .zes-controls { display: block; border: 0; margin: 0; padding: 0 19px; min-width: 0; max-height: 901px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--zes-border) transparent; }
.zes-control-section { padding: 19px 0; border-bottom: 1px solid var(--zes-border); }
.zes-control-section:last-child { border-bottom: 0; }
.zes-control-section h4 { margin: 0 0 14px !important; }
.zes-control-section > .zes-field:last-child { margin-bottom: 0; }
.zes-field { display: block; margin: 0 0 15px; }
.zes-field > label, .zes-field > span { display: block; margin-bottom: 6px !important; font-size: 12px; font-weight: 550; }
.zes-field small, .zes-helper { display: block; color: var(--zes-muted); font-size: 12px; font-weight: 400; line-height: 1.5; margin-top: 6px; }
.zes-control-section > .zes-helper { margin: 0 0 13px; }
.zes-field .zes-error { color: var(--zes-error); }
.zes-color-field { display: flex; gap: 7px; }
html .zes-studio .zes-color-field input[type="color"] { width: 42px; padding: 4px; border-radius: 7px; flex: 0 0 42px; }
.zes-color-field input:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 12px !important; letter-spacing: .025em; }
.zes-palette-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
html .zes-studio .zes-palette { display: flex; gap: 0; height: 44px; min-width: 44px; padding: 5px; border: 1px solid var(--zes-border); background: var(--zes-surface); border-radius: 7px; }
.zes-palette span { width: 11px; height: 24px; }
.zes-palette span:first-child { border-radius: 3px 0 0 3px; }
.zes-palette span:last-child { border-radius: 0 3px 3px 0; }
.zes-typography-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.zes-typography-head h4 { margin: 0 !important; }
html .zes-studio .zes-type-reset { border: 0; background: transparent; padding: 4px 0 4px 6px; min-height: 44px; color: var(--zes-muted); font-size: 10px; line-height: 1.35; text-decoration: underline; text-underline-offset: 3px; max-width: 114px; text-align: right; }
.zes-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zes-type-option { display: flex !important; flex-direction: column; position: relative; padding: 12px 10px 10px; border: 1px solid var(--zes-border); border-radius: 7px; cursor: pointer; min-width: 0; background: var(--zes-surface); }
.zes-type-option.is-selected { border-color: var(--zes-focus); background: var(--zes-soft); }
.zes-type-option:has(input:focus-visible) { outline: 3px solid var(--zes-focus); outline-offset: 3px; }
html .zes-studio .zes-type-radio { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; margin: 0; opacity: 0; }
.zes-type-name { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 10px; font-weight: 550; line-height: 1.3; margin-bottom: 12px; color: var(--zes-muted); }
.zes-type-option.is-selected .zes-type-name { color: var(--zes-ink); }
.zes-type-heading { display: block; font-size: 20px; min-height: 44px; overflow-wrap: anywhere; font-optical-sizing: auto; padding-bottom: 4px; color: var(--zes-ink); }
.zes-type-body { display: block; font-size: 10px; font-weight: 400; line-height: 1.5; color: var(--zes-ink); margin-top: 4px; }
.zes-type-pair { display: block; font-size: 9px; font-weight: 400; line-height: 1.45; color: var(--zes-muted); margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--zes-border); }
.zes-type-note { font-size: 11px; line-height: 1.5; margin: 12px 0 0; color: var(--zes-muted); }
.zes-check { display: flex !important; align-items: start; gap: 10px; min-height: 44px; padding: 4px 0; cursor: pointer; margin: 4px 0 13px !important; }
.zes-check > span { display: block; font-size: 13px; font-weight: 500; }
.zes-check small { display: block; color: var(--zes-muted); font-weight: 400; font-size: 12px; margin-top: 4px; }
.zes-image-picker { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--zes-border); border-bottom: 0; border-radius: 7px 7px 0 0; background: var(--zes-soft); }
.zes-image-picker img, .zes-image-empty { width: 71px; height: 68px; border-radius: 4px; object-fit: cover; background: var(--zes-surface); flex: 0 0 71px; }
.zes-image-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; color: var(--zes-muted); }
.zes-image-empty span { font-size: 9px; font-weight: 400; }
.zes-image-picker > div:last-child { flex: 1; }
html .zes-studio .zes-image-picker .zes-button { font-size: 11px; padding: 8px 10px; min-height: 44px; white-space: normal; }
html .zes-studio .zes-text-button { border: 0; background: transparent; color: var(--zes-muted); display: block; min-height: 44px; padding: 5px 1px; text-align: left; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
html .zes-studio .zes-file-input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; padding: 0; overflow: hidden; pointer-events: none; }
html .zes-studio .zes-image-field > input[type="url"] { border-radius: 0 0 7px 7px; font-size: 12px; }
.zes-product-list { display: flex; flex-direction: column; gap: 5px; }
.zes-product { display: flex !important; align-items: center; gap: 8px; padding: 8px; min-height: 65px; border: 1px solid var(--zes-border); border-radius: 7px; cursor: pointer; }
.zes-product.is-selected { border-color: var(--zes-focus); background: var(--zes-soft); }
.zes-product > img, .zes-product-placeholder { width: 40px; height: 44px; object-fit: cover; border-radius: 4px; flex: 0 0 40px; }
.zes-product-placeholder { background: var(--zes-soft); color: var(--zes-muted); display: grid; place-items: center; }
.zes-product > span:last-child { min-width: 0; }
.zes-product strong { font-size: 12px; line-height: 1.35; display: block; font-weight: 550; overflow-wrap: anywhere; }
.zes-product small { color: var(--zes-muted); font-size: 11px; font-weight: 400; margin-top: 4px; display: block; }
.zes-product .zes-product-price { display: flex; flex-direction: column; gap: 4px; }
.zes-product-prices { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; }
.zes-product-prices s { color: var(--zes-muted); text-decoration-thickness: 1px; }
.zes-product-current { color: var(--zes-ink); font-weight: 550; }
.zes-product-discount { border-radius: 999px; padding: 2px 7px; font-size: 10px; font-weight: 550; line-height: 1.5; background: var(--zes-success-bg); color: var(--zes-success); white-space: nowrap; }
.zes-chosen-products { display: grid; gap: 2px; }
.zes-refresh-prices { margin: 0 0 15px; width: 100%; }
.zes-mode-tabs { display: flex; gap: 4px; padding: 4px; width: fit-content; margin: 0 0 22px; border-radius: 999px; background: var(--zes-soft); border: 1px solid var(--zes-border); }
html .zes-studio .zes-mode-tabs button { min-height: 44px; min-width: 105px; padding: 9px 20px; border: 0; border-radius: 999px; color: var(--zes-muted); background: transparent; font-weight: 550; font-size: 13px; }
.zes-mode-tabs button[aria-selected="true"] { color: var(--zes-ink) !important; background: var(--zes-surface) !important; box-shadow: 0 1px 4px rgba(16,26,36,.09); }
.zes-gallery-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.zes-gallery-head h4 { margin: 0 !important; }
.zes-gallery-head > span { color: var(--zes-muted); font-size: 12px; }
.zes-gallery-items { display: grid; gap: 18px; margin-top: 18px; }
.zes-gallery-item { padding: 13px 11px; background: var(--zes-soft); border-radius: 9px; min-width: 0; }
.zes-gallery-item-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 16px; }
.zes-gallery-item-head strong { font-size: 12px; font-weight: 550; }
.zes-gallery-item-head > div { display: flex; gap: 5px; }
html .zes-studio .zes-gallery-item-head button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--zes-border); border-radius: 7px; color: var(--zes-muted); background: var(--zes-surface); }
.zes-gallery-item .zes-field:last-child { margin-bottom: 0; }
.zes-gallery-add { margin-top: 16px; width: 100%; }
.zes-sender { display: flex; align-items: flex-start; gap: 11px; padding: 17px 19px; border-radius: 9px; background: var(--zes-soft); margin-bottom: 24px; font-size: 13px; overflow-wrap: anywhere; }
.zes-sender > svg { color: var(--zes-muted); margin-top: 2px; flex: 0 0 auto; }
.zes-sender strong { font-weight: 550; line-height: 1.5; display: block; }
.zes-sender strong span { color: var(--zes-muted); font-weight: 400; }
.zes-sender p { margin: 4px 0 0; color: var(--zes-muted); font-size: 12px; line-height: 1.65; }
.zes-sender-compact { padding: 13px; margin: 14px 0; }
.zes-reports { padding: 25px; border: 1px solid var(--zes-border); border-radius: 11px; background: var(--zes-surface); min-width: 0; font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', Arial, sans-serif; }
.zes-report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.zes-report-heading > div:first-child { min-width: 0; }
.zes-report-heading h3 { font-size: 23px !important; font-weight: 600 !important; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.zes-report-heading p { margin: 7px 0 0; color: var(--zes-muted); font-size: 13px; line-height: 1.6; }
.zes-report-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; }
html .zes-studio .zes-report-back { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0; margin-bottom: 7px; border: 0; background: transparent; font-size: 12px; color: var(--zes-muted); }
.zes-report-context, .zes-report-configuration { padding: 18px 20px; background: var(--zes-soft); border-radius: 9px; margin: 0 0 24px; font-size: 13px; }
.zes-report-context strong, .zes-report-configuration strong { font-weight: 550; }
.zes-report-context p, .zes-report-configuration p { color: var(--zes-muted); margin: 5px 0 0; line-height: 1.65; font-size: 13px; max-width: 750px; }
.zes-report-configuration { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.zes-report-metrics { margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.zes-report-metric { min-width: 0; padding: 17px 17px 22px 0; }
.zes-report-metric dt { color: var(--zes-muted); font-size: 12px; line-height: 1.5; font-weight: 500; }
.zes-report-metric dd { margin: 8px 0 6px; font-size: 33px; font-weight: 550; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.zes-report-metric small { display: block; color: var(--zes-muted); font-size: 12px; line-height: 1.55; }
.zes-report-unknown { font-size: 20px; letter-spacing: -.015em; color: var(--zes-muted); font-weight: 400; }
.zes-report-count-notes { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 14px 0 23px; color: var(--zes-muted); font-size: 12px; }
.zes-report-links { margin: 3px 0 27px; padding: 20px; border-radius: 9px; background: var(--zes-soft); }
.zes-report-links h4 { margin-bottom: 16px !important; }
.zes-report-links > div { display: flex; gap: 18px; align-items: baseline; justify-content: space-between; padding: 9px 0; font-size: 13px; }
.zes-report-links > div > span { min-width: 0; overflow-wrap: anywhere; }
.zes-report-links strong { font-weight: 550; flex: 0 0 auto; }
.zes-report-links > div > span > small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.zes-report-links small { display: inline-block; font-size: 12px; font-weight: 400; color: var(--zes-muted); }
.zes-report-filter { display: grid; grid-template-columns: minmax(200px,1fr) minmax(250px,1.3fr) auto; gap: 12px; align-items: end; margin: 0 0 24px; }
.zes-report-filter label > span { display: block; font-size: 12px; font-weight: 500; margin-bottom: 7px; }
.zes-report-table { min-width: 0; }
.zes-report-table table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; table-layout: fixed; }
.zes-report-table th { color: var(--zes-muted); font-size: 11px; font-weight: 500; line-height: 1.5; padding: 12px; border-bottom: 1px solid var(--zes-border); }
.zes-report-table th:first-child { width: 34%; padding-left: 0; }
.zes-recipient-table th:first-child { width: 28%; }
.zes-report-table td { padding: 17px 12px; border-bottom: 1px solid var(--zes-border); vertical-align: top; line-height: 1.7; overflow-wrap: anywhere; }
.zes-report-table td:first-child { padding-left: 0; }
.zes-report-table td strong { display: block; font-weight: 550; }
.zes-report-table td > span, .zes-report-table td small { display: block; color: var(--zes-muted); font-size: 12px; line-height: 1.65; }
html .zes-studio .zes-report-campaign { display: block; min-height: 44px; text-align: left; background: transparent; color: var(--zes-ink); border: 0; padding: 0; font-weight: 550; font-size: 14px; width: 100%; line-height: 1.5; overflow-wrap: anywhere; }
.zes-report-campaign span { color: var(--zes-muted); font-size: 12px; font-weight: 400; display: block; margin-top: 5px; }
.zes-report-table .zes-report-status { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; line-height: 1.5; background: var(--zes-soft); color: var(--zes-ink); margin-bottom: 4px; }
.zes-report-table .zes-report-status-delivered { background: var(--zes-success-bg); color: var(--zes-success); }
.zes-report-table .zes-report-status-failed, .zes-report-table .zes-report-status-bounced { background: var(--zes-error-bg); color: var(--zes-error); }
.zes-report-table .zes-recipient-error { color: var(--zes-error); }
.zes-report-pagination { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; color: var(--zes-muted); font-size: 12px; }
.zes-report-pagination > div { display: flex; gap: 8px; }
.zes-report-loading, .zes-report-empty { min-height: 290px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 13px; text-align: center; color: var(--zes-muted); padding: 30px; }
.zes-report-empty h4 { font-size: 17px !important; font-weight: 550 !important; }
.zes-report-empty p { margin: 0; font-size: 13px; line-height: 1.65; max-width: 390px; }
.zes-chosen-product { display: flex; align-items: center; gap: 3px; padding: 7px 0; border-bottom: 1px solid var(--zes-border); }
.zes-chosen-product:last-child { border-bottom: 0; }
.zes-chosen-product > span { flex: 1; min-width: 0; font-size: 12px; font-weight: 500; }
html .zes-studio .zes-chosen-product button { background: var(--zes-surface); border: 1px solid var(--zes-border); color: var(--zes-muted); min-height: 44px; width: 34px; padding: 4px; border-radius: 5px; }
.zes-catalog-error { color: var(--zes-error); font-size: 12px; }
.zes-catalog-error p { margin-bottom: 10px; }
.zes-canvas { min-width: 0; background: var(--zes-canvas); display: flex; flex-direction: column; }
.zes-preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; color: var(--zes-muted); border-bottom: 1px solid var(--zes-border); min-height: 65px; }
.zes-preview-toolbar > span { font-size: 12px; font-weight: 550; }
.zes-device-control { display: flex; padding: 3px; background: var(--zes-surface); border: 1px solid var(--zes-border); border-radius: 7px; gap: 2px; }
html .zes-studio .zes-device-control button { border: 0; background: transparent; color: var(--zes-muted); padding: 7px 12px; font-size: 12px; font-weight: 500; min-height: 38px; border-radius: 4px; }
html .zes-studio .zes-device-control button.is-active { background: var(--zes-soft); color: var(--zes-ink); }
.zes-envelope { display: flex; gap: 12px; align-items: center; padding: 17px 24px; margin: 18px 24px 0; background: var(--zes-surface); border: 1px solid var(--zes-border); border-radius: 8px 8px 0 0; }
.zes-envelope-avatar { width: 35px; height: 35px; border-radius: 50%; background: var(--zes-soft); color: var(--zes-muted); display: grid; place-items: center; flex: 0 0 35px; }
.zes-envelope > div:last-child { min-width: 0; }
.zes-envelope strong { font-size: 11px; font-weight: 650; display: block; }
.zes-envelope span { display: block; color: var(--zes-ink); font-size: 13px; font-weight: 550; margin: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zes-envelope small { display: block; font-size: 11px; color: var(--zes-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zes-paper-area { position: relative; padding: 23px; display: flex; justify-content: center; align-items: start; flex: 1; }
.zes-preview-fit { display: flex; justify-content: center; width: 100%; min-width: 0; }
.zes-paper { position: relative; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(12, 24, 35, .09); width: 600px; max-width: 100%; min-width: 0; border: 1px solid #dde2e5; }
.zes-paper-mobile { width: 375px; }
.zes-paper iframe { position: absolute; left: 0; top: 0; display: block; border: 0; background: #fff; transform-origin: top left; max-width: none; }
.zes-preview-foot { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--zes-muted); font-size: 11px; margin: 0 16px 16px; text-align: center; }
.zes-preview-foot svg { flex: 0 0 14px !important; }
.zes-rendering { position: absolute; inset: 0; background: color-mix(in srgb, var(--zes-surface) 90%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 24px; backdrop-filter: blur(3px); }
.zes-rendering strong { color: var(--zes-ink); font-size: 16px; font-weight: 600; }
.zes-rendering > span { color: var(--zes-muted); font-size: 12px; }
.zes-loading { padding: 60px 24px 70px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; background: var(--zes-surface); border: 1px solid var(--zes-border); border-radius: 11px; }
.zes-loading h3 { margin-top: 12px !important; }
.zes-loading p { color: var(--zes-muted); font-size: 13px; }
.zes-notice { display: flex; gap: 10px; align-items: center; padding: 12px 15px; background: var(--zes-soft); border: 1px solid var(--zes-border); border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.zes-notice > span { flex: 1; }
.zes-notice-success { background: var(--zes-success-bg); color: var(--zes-success); border-color: color-mix(in srgb, var(--zes-success) 23%, var(--zes-surface)); }
.zes-notice-error, .zes-notice-warning { background: var(--zes-error-bg); color: var(--zes-error); border-color: color-mix(in srgb, var(--zes-error) 23%, var(--zes-surface)); }
html .zes-studio .zes-notice button { border: 0; background: transparent; color: inherit; min-height: 44px; min-width: 44px; border-radius: 4px; padding: 5px; display: grid; place-items: center; }
.zes-scheduled { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 18px; background: var(--zes-surface); border: 1px solid var(--zes-border); border-left: 3px solid var(--zes-focus); border-radius: 8px; margin-bottom: 18px; }
.zes-scheduled > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.zes-scheduled strong { font-size: 13px; font-weight: 600; display: block; }
.zes-scheduled small { display: block; font-size: 12px; color: var(--zes-muted); margin-top: 3px; }
.zes-legacy { display: flex; align-items: center; gap: 14px; background: var(--zes-soft); border: 1px solid var(--zes-border); padding: 19px; border-radius: 8px; margin: 0 0 18px; }
.zes-legacy > div { flex: 1; }
.zes-legacy p { margin-top: 6px; font-size: 13px; color: var(--zes-muted); }
.zes-delivery { margin-top: 23px; padding: 24px; background: var(--zes-surface); border: 1px solid var(--zes-border); border-radius: 11px; scroll-margin-top: 24px; }
.zes-delivery:focus { outline: 0; }
.zes-delivery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.zes-delivery-column { min-width: 0; }
.zes-delivery-column + .zes-delivery-column { border-left: 1px solid var(--zes-border); padding-left: 34px; }
.zes-delivery-column h4 { display: flex; align-items: center; gap: 8px; font-size: 14px !important; margin: 0 0 12px !important; }
.zes-delivery-column > p { color: var(--zes-muted); font-size: 13px; margin: 0 0 18px; }
.zes-delivery-column form > label { display: block; margin: 0 0 6px !important; font-size: 12px !important; }
.zes-inline-form { display: flex; gap: 8px; align-items: center; }
.zes-inline-form input { min-width: 0; flex: 1; }
.zes-delivery-note { color: var(--zes-muted); font-size: 12px; padding: 13px; background: var(--zes-soft); border-radius: 6px; margin-top: 17px; }
.zes-recipients { padding: 12px 0 0; line-height: 1.5; color: var(--zes-ink) !important; font-size: 13px; }
.zes-recipients > strong { font-size: 24px; font-weight: 600; color: var(--zes-ink); margin-right: 5px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.zes-recipients small { display: block; color: var(--zes-muted); font-size: 12px; margin-top: 2px; }
html .zes-studio .zes-send-button { width: 100%; margin: 2px 0 12px; }
.zes-schedule-options { border: 1px solid var(--zes-border); border-radius: 7px; padding: 0 13px; margin-bottom: 12px; }
.zes-schedule-options summary { list-style: none; padding: 13px 0; cursor: pointer; font-size: 13px; font-weight: 550; }
.zes-schedule-options summary::-webkit-details-marker { display: none; }
.zes-schedule-options summary > svg { margin-right: 6px; }
.zes-schedule-options summary::after { content: '+'; float: right; color: var(--zes-muted); font-size: 17px; line-height: 1; }
.zes-schedule-options[open] summary::after { content: '−'; }
.zes-schedule-options > button { margin-bottom: 13px; }
.zes-schedule-options > small, .zes-monthly-rule { display: block; color: var(--zes-muted); font-size: 12px; line-height: 1.5; margin-bottom: 11px; }
.zes-preflight { display: flex; align-items: start; gap: 10px; margin-top: 20px; padding: 13px; color: var(--zes-error); background: var(--zes-error-bg); font-size: 12px; border-radius: 7px; }
.zes-last-campaign { margin: 18px 0 0; color: var(--zes-muted); font-size: 12px; }
@media (hover: hover) and (pointer: fine) {
  html .zes-studio .zes-button:hover:not(:disabled) { background: var(--zes-soft); border-color: var(--zes-focus); }
  html .zes-studio .zes-button-primary:hover:not(:disabled) { background: var(--zes-action); opacity: .9; border-color: var(--zes-action); }
  .zes-template:hover:not(:disabled) .zes-template-thumb { border-color: var(--zes-focus); box-shadow: 0 3px 12px rgba(18, 31, 43, .09); }
  html .zes-studio .zes-inspector-tabs button:hover { color: var(--zes-ink); }
  html .zes-studio .zes-palette:hover { border-color: var(--zes-focus); }
}
@media (max-width: 1200px) {
  .zes-template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zes-workspace { grid-template-columns: minmax(270px, 310px) minmax(0, 1fr); }
  .zes-workspace-legacy { grid-template-columns: minmax(0, 1fr); }
  .zes-envelope { margin: 16px 16px 0; padding: 15px; }
  .zes-paper-area { padding: 16px; }
}
@media (max-width: 940px) {
  .zes-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zes-header p { max-width: 430px; }
  .zes-toolbar { gap: 12px; }
  .zes-draft-status { display: none; }
  .zes-toolbar-start { gap: 0; }
  .zes-toolbar-actions { gap: 6px; }
  html .zes-studio .zes-toolbar-actions .zes-button { padding: 9px 11px; }
  .zes-workspace { grid-template-columns: minmax(240px, 285px) minmax(0, 1fr); }
  .zes-workspace-legacy { grid-template-columns: minmax(0, 1fr); }
  .zes-paper-area { padding: 12px; }
  .zes-envelope { margin: 12px 12px 0; }
  .zes-preview-toolbar { padding: 13px 12px; }
  .zes-preview-toolbar > span { display: none; }
  .zes-device-control { margin: 0 auto; }
  .zes-delivery-grid { gap: 22px; }
  .zes-delivery-column + .zes-delivery-column { padding-left: 22px; }
  .zes-inline-form { flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .zes-header { align-items: start; margin-bottom: 17px; gap: 14px; }
  .zes-header p { font-size: 13px; }
  .zes-audience { padding-left: 13px; min-width: 82px; }
  .zes-audience > svg { display: none; }
  .zes-audience strong { font-size: 21px; }
  .zes-audience small { font-size: 10px; max-width: 80px; }
  .zes-library { padding: 20px 16px; }
  .zes-section-head { align-items: start; flex-wrap: wrap; gap: 15px; }
  .zes-section-head h3 { font-size: 17px; }
  .zes-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .zes-filter { width: 100%; }
  html .zes-studio .zes-filter select { flex: 1; width: auto; }
  .zes-template-thumb { height: 155px; }
  .zes-template-thumb iframe { transform: translateX(-50%) scale(.27); }
  .zes-toolbar { gap: 10px; padding: 11px 0; }
  .zes-toolbar-actions { flex: 1; justify-content: flex-end; }
  html .zes-studio .zes-toolbar-actions .zes-button { font-size: 12px; }
  .zes-toolbar-actions .zes-icon-button { display: none; }
  .zes-workspace { display: flex; flex-direction: column; }
  .zes-inspector { border-right: 0; border-bottom: 1px solid var(--zes-border); }
  html .zes-studio .zes-controls { max-height: 455px; }
  .zes-inspector-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; }
  .zes-inspector-title small { text-align: right; font-size: 10px; max-width: 135px; margin: 0; }
  .zes-inspector-title > span { font-size: 13px; }
  .zes-inspector-tabs { padding: 0 13px; }
  html .zes-studio .zes-inspector-tabs button { flex-direction: row; gap: 6px; min-height: 46px; padding: 11px 1px; font-size: 12px; }
  .zes-preview-toolbar { min-height: 60px; }
  .zes-preview-toolbar > span { display: block; }
  .zes-device-control { margin: 0; }
  .zes-envelope { padding: 14px; }
  .zes-preview-foot { font-size: 10px; margin-top: 3px; }
  .zes-delivery { padding: 20px 16px; }
  .zes-delivery-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .zes-delivery-column + .zes-delivery-column { padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--zes-border); }
  .zes-inline-form { flex-direction: row; }
  .zes-legacy { align-items: start; flex-wrap: wrap; }
  .zes-scheduled { flex-wrap: wrap; padding: 14px; gap: 12px; }
}
@media (max-width: 420px) {
  .zes-toolbar { align-items: stretch; }
  .zes-toolbar-start { width: 100%; }
  .zes-toolbar-actions { width: 100%; justify-content: stretch; }
  html .zes-studio .zes-toolbar-actions > .zes-button { flex: 1; }
  .zes-library { padding: 17px 12px; }
  .zes-template-grid { gap: 18px 12px; }
  .zes-template-thumb { height: 134px; }
  .zes-template-thumb iframe { transform: translateX(-50%) scale(.23); }
  .zes-template-name { font-size: 12px; }
  .zes-template-description { font-size: 11px; }
  .zes-library-foot { font-size: 11px; }
  .zes-inspector-title small { display: none; }
  .zes-inspector-tabs { padding: 0 8px; gap: 1px; }
  html .zes-studio .zes-inspector-tabs button { font-size: 11px; }
  .zes-paper-area { padding: 9px; }
  .zes-envelope { margin: 9px 9px 0; }
  .zes-inline-form { flex-direction: column; align-items: stretch; }
  .zes-notice { font-size: 12px; padding: 11px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html .zes-studio .zes-button { transition: background-color 120ms ease, border-color 120ms ease; }
  html .zes-studio .zes-button:active:not(:disabled) { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .zes-rendering { background: var(--zes-surface); backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .zes-studio { --zes-border: #798692; --zes-muted: #3c4853; }
  html[data-theme="dark"] .zes-studio { --zes-border: #9aa9b4; --zes-muted: #d8e1e7; }
}
@media (max-width: 1000px) {
  .zes-report-heading { flex-direction: column; }
  .zes-report-actions { justify-content: flex-start; width: 100%; }
  .zes-report-filter { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .zes-report-filter > button { justify-self: start; }
}
@media (max-width: 640px) {
  .zes-reports { padding: 20px 15px; }
  .zes-report-heading { gap: 17px; }
  .zes-report-heading h3 { font-size: 21px !important; }
  .zes-report-actions { gap: 7px; }
  html .zes-studio .zes-report-actions .zes-button { white-space: normal; font-size: 12px; padding: 9px 11px; flex: 1 1 auto; }
  .zes-report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .zes-report-metric { padding-right: 10px; }
  .zes-report-metric dd { font-size: 30px; }
  .zes-report-filter { grid-template-columns: minmax(0,1fr); }
  .zes-report-filter > button { width: 100%; justify-self: stretch; }
  .zes-report-table table, .zes-report-table tbody { display: block; }
  .zes-report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .zes-report-table tr { display: block; background: var(--zes-soft); border-radius: 9px; padding: 13px 15px; margin-bottom: 12px; }
  .zes-report-table td, .zes-report-table td:first-child { display: grid; grid-template-columns: minmax(95px,.8fr) minmax(0,1.3fr); padding: 7px 0; gap: 4px 12px; border: 0; align-items: baseline; }
  .zes-report-table td::before { content: attr(data-label); color: var(--zes-muted); font-size: 11px; line-height: 1.5; }
  .zes-report-table td > span, .zes-report-table td > small { grid-column: 2; }
  .zes-report-table td .zes-report-status { justify-self: start; }
  .zes-report-configuration { flex-direction: column; align-items: flex-start; padding: 16px; }
  .zes-report-links { padding: 16px; }
  .zes-report-links > div { flex-direction: column; gap: 5px; }
  .zes-report-links strong { flex: 0 1 auto; }
  .zes-report-pagination { flex-wrap: wrap; }
  .zes-report-pagination > div { width: 100%; }
  .zes-report-pagination .zes-button { flex: 1; }
  .zes-sender { padding: 14px; gap: 8px; }
  .zes-sender strong span { display: block; }
}

.zes-archived-draft { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--zes-border); border-radius: 9px; background: var(--zes-surface); margin-bottom: 18px; }
.zes-archived-draft > div { display: grid; gap: 4px; min-width: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.zes-archived-draft strong { font-weight: 550; }
.zes-archived-draft span, .zes-archived-draft small { color: var(--zes-muted); }
.zes-archived-draft small { font-size: 12px; }
.zes-archived-draft .zes-button { flex: 0 0 auto; }
@media (max-width: 640px) {
  .zes-archived-draft { flex-direction: column; align-items: stretch; padding: 15px; gap: 12px; }
  .zes-archived-draft .zes-button { width: 100%; white-space: normal; }
  html .zes-studio .zes-toolbar-actions .zes-discard-button { flex-basis: 100%; }
}
