/* Meser 10 Studio - interface v2. Loaded after studio.css and overrides it.
   One sidebar (blocks, or the settings of whatever is selected), a quiet top bar, a neutral stage. */

@font-face { font-family: 'Heebo'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/vendor/fonts/heebo-hebrew-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Heebo'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/vendor/fonts/heebo-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root
{
	--ui-font: 'Heebo', 'Segoe UI', system-ui, Arial, sans-serif;
	--ink: #171a21;
	--ink-2: #4b5160;
	--ink-3: #8a90a0;
	--line: #e6e8ee;
	--line-2: #f0f1f5;
	--surface: #ffffff;
	--stage: #eef0f4;
	--accent: #EE5F2B;
	--accent-ink: #c9451a;
	--accent-soft: #fff1ea;
	--focus: #3b6cf6;
	--side-w: 328px;
	--bar-h: 60px;
	--r: 10px;
}

html, body { font-family: var(--ui-font); font-size: 14px; color: var(--ink); background: var(--stage); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }

/* ---------------------------------------------------------------- top bar */
.studio-bar { height: var(--bar-h); flex-basis: var(--bar-h); gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(23,26,33,.02); }
.studio-brand { gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -.1px; }
.studio-brand strong { font-weight: 800; }
.studio-logo { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, #ff8a3d, #ee5f2b 55%, #d9481c); font-weight: 800; font-size: 14px; box-shadow: 0 2px 6px rgba(238,95,43,.35); }

.studio-doc { display: flex; flex-direction: column; justify-content: center; min-width: 120px; max-width: 300px; flex: 1 1 220px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); height: 36px; }
.studio-doc .studio-title-wrap { max-width: none; min-width: 0; flex: 0 0 auto; }
.studio-doc .studio-title { height: 20px; padding: 0 6px; margin-inline-start: -6px; font-size: 14.5px; font-weight: 600; border-radius: 6px; color: var(--ink); }
.studio-doc .studio-preheader-wrap .studio-title { height: 17px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.studio-doc .studio-title:hover { background: var(--line-2); border-color: transparent; }
.studio-doc .studio-title:focus { background: #fff; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.15); }

.studio-center { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.seg-device { display: inline-flex; padding: 3px; gap: 2px; background: var(--line-2); border-radius: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .12s, color .12s; }
.icon-btn svg { width: 18px; height: 18px; display: block; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.seg-device .icon-btn:hover { background: rgba(255,255,255,.7); }
.seg-device .icon-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23,26,33,.14); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.bar-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
html[dir=rtl] .flip-rtl svg { transform: scaleX(-1); }

.studio-status { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.studio-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #35b37e; }
.studio-status:empty::before { display: none; }

.studio-actions { gap: 6px; }
.btn { height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 500; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: #f7f8fa; border-color: #d5d9e2; }
.btn:focus-visible, .icon-btn:focus-visible, .side-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; color: var(--ink); }
.btn-primary { border-color: transparent; background: var(--accent); color: #fff; font-weight: 700; padding: 0 16px; box-shadow: 0 1px 2px rgba(201,69,26,.4), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: #e2531f; border-color: transparent; }
.btn-lang { border-color: transparent; color: var(--ink-3); font-size: 12.5px; padding: 0 8px; }
.badge { background: #ffb547; color: #3a2a00; font-weight: 700; }
.studio-menu-list { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(23,26,33,.14); padding: 6px; min-width: 200px; }
.studio-menu-list button { border-radius: 8px; padding: 9px 10px; font-size: 13.5px; }
.studio-menu-list button:hover { background: var(--line-2); }

/* ---------------------------------------------------------------- stage and sidebar */
.gjs-pn-commands, .gjs-pn-options, .gjs-pn-views, .gjs-pn-devices-c { display: none !important; }
.gjs-editor, .gjs-cv-canvas { background: var(--stage) !important; }
.gjs-cv-canvas { top: 0 !important; height: 100% !important; width: calc(100% - var(--side-w)) !important; }
html[dir=rtl] .gjs-cv-canvas { left: 0 !important; right: auto !important; }
html[dir=ltr] .gjs-cv-canvas { left: var(--side-w) !important; right: auto !important; }
.gjs-frame-wrapper { padding: 28px 0 60px; }
.gjs-frame { border-radius: 4px; box-shadow: 0 1px 2px rgba(23,26,33,.06), 0 12px 40px rgba(23,26,33,.10); background: #fff; }

.gjs-pn-views-container { top: 0 !important; height: 100% !important; width: var(--side-w) !important; padding: 0 !important; display: flex; flex-direction: column; background: var(--surface) !important; box-shadow: none !important; overflow: hidden !important; border: 0 !important; }
html[dir=rtl] .gjs-pn-views-container { right: 0 !important; left: auto !important; border-left: 1px solid var(--line) !important; }
html[dir=ltr] .gjs-pn-views-container { left: 0 !important; right: auto !important; border-right: 1px solid var(--line) !important; }

.side-tabs { flex: 0 0 auto; display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.side-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 6px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-3); font-size: 13.5px; font-weight: 600; cursor: pointer; margin-bottom: -1px; border-radius: 8px 8px 0 0; }
.side-tab svg { width: 17px; height: 17px; }
.side-tab:hover { color: var(--ink); background: var(--line-2); }
.side-tab.is-on { color: var(--accent-ink); border-bottom-color: var(--accent); background: transparent; }

.side-head { flex: 0 0 auto; padding: 12px 12px 10px; display: none; }
.gjs-pn-views-container[data-tab=blocks] .side-head-blocks { display: block; }
.gjs-pn-views-container[data-tab=edit] .side-head-edit { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.side-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.side-quick button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: start; line-height: 1.2; }
.side-quick button svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent); }
.side-quick button:hover { border-color: var(--accent); background: var(--accent-soft); }
.side-search { position: relative; }
.side-search { display: block; }
.side-search svg { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.side-search input { width: 100%; height: 34px; padding: 0 10px; padding-inline-start: 32px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fa; font-size: 13px; color: var(--ink); }
.side-search input:focus { outline: none; border-color: var(--focus); background: #fff; box-shadow: 0 0 0 3px rgba(59,108,246,.15); }
.side-edit-name { font-size: 14px; font-weight: 700; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-empty { display: none; padding: 40px 24px; text-align: center; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.side-empty svg { width: 34px; height: 34px; color: #c5cad6; margin-bottom: 10px; }
.gjs-pn-views-container[data-tab=edit][data-selected='0'] .side-empty { display: block; }
.gjs-pn-views-container[data-tab=edit][data-selected='0'] > [data-view] { display: none !important; }
.gjs-pn-views-container[data-tab=edit][data-selected='0'] .side-head-edit { display: none; }

.gjs-pn-views-container > [data-view] { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.gjs-pn-views-container[data-tab=blocks] > [data-view]:not([data-view=blocks]),
.gjs-pn-views-container[data-tab=layers] > [data-view]:not([data-view=layers]),
.gjs-pn-views-container[data-tab=edit] > [data-view=blocks],
.gjs-pn-views-container[data-tab=edit] > [data-view=layers] { display: none !important; }
.gjs-pn-views-container[data-tab=blocks] > [data-view=blocks],
.gjs-pn-views-container[data-tab=layers] > [data-view=layers],
.gjs-pn-views-container[data-tab=edit] > [data-view=traits],
.gjs-pn-views-container[data-tab=edit] > [data-view=style] { display: block !important; }
.gjs-pn-views-container[data-tab=edit] > [data-view=traits] { flex: 0 0 auto; overflow: visible; }

/* blocks */
.gjs-blocks-cs, .gjs-block-categories { background: transparent !important; }
.gjs-block-category { border: 0 !important; }
.gjs-block-category .gjs-title { background: transparent !important; border: 0 !important; padding: 14px 14px 6px !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-3) !important; }
.gjs-block-category .gjs-caret-icon { display: none; }
.gjs-blocks-c { padding: 0 8px 4px !important; }
.gjs-block { width: calc(50% - 8px) !important; margin: 4px !important; padding: 10px 8px 9px !important; min-height: 104px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: #fff !important; box-shadow: 0 1px 0 rgba(23,26,33,.02) !important; color: var(--ink-2) !important; cursor: grab; transition: border-color .14s, box-shadow .14s, transform .14s !important; justify-content: flex-start !important; }
.gjs-block:hover { border-color: var(--accent) !important; box-shadow: 0 8px 20px rgba(238,95,43,.14) !important; transform: translateY(-2px); color: var(--ink) !important; }
.gjs-block:active { cursor: grabbing; }
.gjs-block svg { width: 100%; height: auto; max-width: 118px; margin: 0 auto 8px !important; border-radius: 6px; }
.gjs-block-label { font-size: 12.5px !important; line-height: 1.3 !important; font-weight: 500; font-family: var(--ui-font) !important; color: inherit !important; }
.gjs-block.is-filtered, .gjs-block-category.is-filtered { display: none !important; }

/* properties (traits + style manager) */
.gjs-trt-header, .gjs-sm-header { display: none !important; }
.gjs-clm-tags { display: none !important; }
.gjs-trt-traits { padding: 10px 12px 4px; background: transparent !important; }
.gjs-trt-trait { padding: 5px 0 !important; align-items: center; font-family: var(--ui-font); }
.gjs-trt-trait__label, .gjs-sm-label, .gjs-label { font-size: 12.5px !important; color: var(--ink-2) !important; font-weight: 500; font-family: var(--ui-font) !important; }
.gjs-field { background: #f7f8fa !important; border: 1px solid var(--line) !important; border-radius: 8px !important; box-shadow: none !important; color: var(--ink) !important; min-height: 32px; }
.gjs-field:focus-within { border-color: var(--focus) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(59,108,246,.13) !important; }
.gjs-field input, .gjs-field select, .gjs-field textarea { font-family: var(--ui-font) !important; font-size: 13px !important; color: var(--ink) !important; padding: 6px 8px !important; }
.gjs-sm-sectors { background: transparent !important; }
.gjs-sm-sector { border: 0 !important; border-top: 1px solid var(--line) !important; }
.gjs-sm-sector .gjs-sm-sector-title, .gjs-sm-sector-title { background: transparent !important; border: 0 !important; padding: 13px 14px !important; font-size: 13px !important; font-weight: 700 !important; color: var(--ink) !important; font-family: var(--ui-font) !important; letter-spacing: 0 !important; }
.gjs-sm-properties { padding: 0 10px 12px !important; }
.gjs-sm-property { padding: 4px 4px !important; }
.gjs-radio-item input:checked + .gjs-radio-item-label { background: var(--accent-soft) !important; color: var(--accent-ink) !important; }
.gjs-field-colorp { border-radius: 0 7px 7px 0 !important; }
.gjs-layer { font-family: var(--ui-font) !important; font-size: 13px !important; }
.gjs-layer-title { background: transparent !important; border-bottom: 1px solid var(--line-2) !important; padding: 7px 10px !important; }
.gjs-layer.gjs-selected .gjs-layer-title, .gjs-layer.gjs-selected > .gjs-layer-item { background: var(--accent-soft) !important; }

/* things that float over the stage */
.gjs-toolbar { background: var(--ink) !important; border-radius: 8px !important; padding: 2px !important; box-shadow: 0 6px 18px rgba(23,26,33,.28) !important; }
.gjs-toolbar-item { width: 28px !important; height: 26px !important; padding: 0 !important; display: inline-grid !important; place-items: center; border-radius: 6px; font-size: 13px !important; }
.gjs-toolbar-item:hover { background: rgba(255,255,255,.16); }
.gjs-badge { background: var(--focus) !important; border-radius: 6px 6px 0 0 !important; font-family: var(--ui-font) !important; font-size: 11.5px !important; padding: 2px 8px !important; }
.gjs-highlighter, .gjs-highlighter-sel { outline-color: var(--focus) !important; }
.gjs-rte-toolbar { border-radius: 10px !important; border: 1px solid var(--line) !important; box-shadow: 0 10px 28px rgba(23,26,33,.16) !important; padding: 3px; }
.gjs-rte-action { border: 0 !important; border-radius: 7px; min-width: 30px !important; height: 28px; font-family: var(--ui-font) !important; }
.gjs-placeholder.horizontal { border-color: var(--focus) transparent !important; }
.gjs-placeholder-int { background: var(--focus) !important; height: 3px !important; border-radius: 2px; box-shadow: 0 0 0 3px rgba(59,108,246,.18) !important; }

/* dialogs */
.studio-dialog { border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(23,26,33,.28); font-family: var(--ui-font); }
.studio-dialog::backdrop { background: rgba(23,26,33,.42); backdrop-filter: blur(3px); }
.dlg-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.gallery-card { border-radius: 14px; border: 1px solid var(--line); transition: border-color .14s, box-shadow .14s, transform .14s; }
.gallery-card:hover { border-color: var(--accent); box-shadow: 0 12px 30px rgba(23,26,33,.12); transform: translateY(-2px); }
.studio-toast { font-family: var(--ui-font); border-radius: 12px; background: var(--ink); box-shadow: 0 12px 30px rgba(23,26,33,.3); }

@media (max-width: 1100px) { .studio-doc { display: none; } :root { --side-w: 292px; } }

/* properties, second pass */
.gjs-pn-views-container > [data-view=traits] > div:first-child:not(.gjs-trt-traits) { padding: 0; }
.gjs-pn-views-container > [data-view=traits] .gjs-traits-label, .gjs-traits-label { display: none !important; }
.gjs-trt-traits { padding: 12px 14px 6px !important; }
.gjs-trt-trait { display: block !important; padding: 0 0 10px !important; }
.gjs-trt-trait .gjs-label-wrp { width: auto !important; min-width: 0 !important; margin: 0 0 5px; text-align: start !important; }
.gjs-trt-trait .gjs-field-wrp, .gjs-trt-trait .gjs-field { width: 100% !important; }
.gjs-sm-sector-title { cursor: pointer; display: flex !important; align-items: center; gap: 6px; }
.gjs-sm-sector-caret { opacity: .5; }
.gjs-sm-property .gjs-sm-label { margin: 2px 0 5px !important; }
.gjs-sm-composite.gjs-sm-property, .gjs-sm-property.gjs-sm-composite .gjs-sm-properties { background: #fafbfc !important; border-radius: 10px; }
html[dir=rtl] .icon-btn.flip-rtl svg { transform: scaleX(-1); }
.gjs-pn-views-container[data-tab=edit] > [data-view=traits] { padding: 12px 14px 2px; }
.gjs-pn-views-container[data-tab=edit] > [data-view=traits] .gjs-trt-traits { padding: 0 !important; }

/* template gallery: real emails, scaled down */
#dlg-gallery { width: min(1080px, 94vw); max-width: none; height: min(820px, 92vh); padding: 26px 28px 0; display: none; flex-direction: column; }
#dlg-gallery[open] { display: flex; }
#dlg-gallery .dlg-sub { margin: 4px 0 14px; color: var(--ink-2); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: #cfd4de; color: var(--ink); }
.chip.is-on { background: var(--accent-soft, #fff1ea); border-color: #f3c5b1; color: #a8380d; }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 18px; padding: 4px 4px 28px; flex: 1 1 auto; align-content: start; }
.gallery-card { padding: 0; gap: 0; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.gallery-card[hidden] { display: none; }
.gt-shot { position: relative; display: block; height: 264px; overflow: hidden; background: #f4f1ec; border-bottom: 1px solid var(--line); }
.gt-shot iframe { position: absolute; top: 0; left: 50%; width: 640px; height: 1400px; border: 0; transform: translateX(-50%) scale(.36); transform-origin: top center; pointer-events: none; background: #fff; }
.gt-shot::after { content: ''; position: absolute; inset: auto 0 0 0; height: 46px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.92)); }
.gt-use { position: absolute; inset: auto 0 14px 0; margin: 0 auto; width: max-content; z-index: 2; padding: 9px 18px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(201,69,26,.35); opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.gallery-card:hover .gt-use, .gallery-card:focus-visible .gt-use { opacity: 1; transform: none; }
.gt-title { padding: 12px 14px 2px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.gt-desc { padding: 0 14px 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }

.gt-shot { flex: 0 0 264px; }
.gallery-grid { grid-auto-rows: max-content; min-height: 0; }
.gallery-card { min-height: 338px; text-align: start; }

/* block cards: the real block, scaled down and centred in a quiet frame */
.gjs-block__media.blk-shot { display: flex; align-items: center; justify-content: center; width: 100%; height: 104px; margin: 0 0 8px; padding: 4px 0; border-radius: 9px; background: #f3f4f7; overflow: hidden; }
.blk-win { position: relative; display: block; width: 129px; height: 86px; overflow: hidden; background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(23,26,33,.14); }
.blk-win iframe { position: absolute; top: 0; left: 0; width: 600px; height: 420px; border: 0; transform: scale(.215); transform-origin: top left; pointer-events: none; }
.gjs-block[data-m10] { min-height: 0 !important; }

/* pass 3: review fixes */
.gjs-trt-trait__wrp-id, .gjs-trt-trait__wrp-title, .gjs-trt-trait__wrp-rel { display: none !important; }
.gjs-pn-views-container[data-tab=edit] > [data-view=traits]:not(:has(.gjs-trt-trait__wrp:not(.gjs-trt-trait__wrp-id):not(.gjs-trt-trait__wrp-title):not(.gjs-trt-trait__wrp-rel))) { display: none !important; }
.gjs-sm-clear { opacity: 0; transition: opacity .12s; color: var(--ink-3); }
.gjs-sm-property:hover > .gjs-sm-label .gjs-sm-clear, .gjs-sm-label:hover .gjs-sm-clear { opacity: 1; }
.gjs-field-integer, .gjs-field-integer input, .gjs-field-units, .gjs-input-unit, .gjs-field-color input, .gjs-field input[type=number] { direction: ltr !important; unicode-bidi: isolate; }
html[dir=rtl] .gjs-field-integer input, html[dir=rtl] .gjs-field-color input, html[dir=rtl] .gjs-field input[type=text] { text-align: left !important; direction: ltr !important; }
html[dir=rtl] .gjs-trt-trait .gjs-field input[type=text] { text-align: left !important; }
.gjs-field-arrows { opacity: .55; }
.gjs-sm-composite > .gjs-fields, .gjs-sm-property__composite, .gjs-sm-composite .gjs-sm-properties { border: 0 !important; background: #f7f8fa !important; border-radius: 10px !important; padding: 6px !important; box-shadow: none !important; }
.gjs-sm-composite .gjs-field { background: #fff !important; }
.side-quick button { font-size: 13px; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; gap: 7px; }
.btn-lang { color: var(--ink-2); border: 1px solid var(--line); }
.studio-status { margin-inline-end: 4px; }
.dlg-head { align-items: center; }
.dlg-x { width: 34px; height: 34px; border-radius: 50%; color: var(--ink-2); margin-inline-start: auto; }
.dlg-x:hover { background: var(--line-2); }
.studio-dialog :focus:not(:focus-visible) { outline: none; }
.gallery-tools { display: flex; align-items: flex-start; gap: 12px; }
.gallery-tools .chips { flex: 1 1 auto; }
.gallery-search { flex: 0 0 220px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fa; font-size: 13px; }
.gallery-search:focus { outline: none; border-color: var(--focus); background: #fff; box-shadow: 0 0 0 3px rgba(59,108,246,.15); }
.form-grid { align-items: start; }
.gjs-frame-wrapper { padding-top: 0; }
.gjs-cv-canvas__frames { top: 0; }

.gjs-block { position: relative; }
.blk-del { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #fff; color: var(--ink-2); box-shadow: 0 1px 4px rgba(23,26,33,.2); opacity: 0; cursor: pointer; }
.blk-del svg { width: 14px; height: 14px; }
.gjs-block:hover .blk-del { opacity: 1; }
.blk-del:hover { color: #c62828; }

html[dir=rtl] .gjs-field:has(.gjs-field-units), html[dir=rtl] .gjs-field:has(.gjs-input-unit), html[dir=rtl] .gjs-field-color { direction: ltr !important; }
.gjs-block-categories { display: flex; flex-direction: column; }
.gjs-block-category.is-mine { order: -1; }
.gjs-radio-item-label { padding: 7px 0 !important; }
.gjs-radio-items { border-radius: 8px; overflow: hidden; }

/* per-device rows */
.gjs-pn-views-container[data-tab=edit][data-selected='1'][data-row='1'] .side-device { display: block; border-bottom: 1px solid var(--line); padding: 10px 12px 12px; }
.side-device-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.seg-show { display: flex; width: 100%; }
.seg-txt { flex: 1 1 0; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg-txt:hover { background: rgba(255,255,255,.7); }
.seg-txt.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23,26,33,.14); }

/* Colour picker: brand palette first, larger swatches */
.sp-container.gjs-editor-sp { border: 1px solid #e3e0da; border-radius: 12px; box-shadow: 0 12px 32px rgba(29, 32, 38, .16); padding: 6px; background: #fff; }
.sp-container.gjs-editor-sp .sp-palette-container { border: 0; padding: 4px 4px 8px; }
.sp-container.gjs-editor-sp .sp-palette .sp-thumb-el { width: 24px; height: 24px; margin: 3px; border: 1px solid rgba(29, 32, 38, .14); border-radius: 6px; }
.sp-container.gjs-editor-sp .sp-palette .sp-thumb-el .sp-thumb-inner { border-radius: 5px; }
.sp-container.gjs-editor-sp .sp-palette .sp-thumb-el:hover, .sp-container.gjs-editor-sp .sp-palette .sp-thumb-el.sp-thumb-active { border-color: #3b6cf6; box-shadow: 0 0 0 2px rgba(59, 108, 246, .25); }

/* Mobile preview sits in a phone frame */
html[data-device=mobile] .gjs-frame-wrapper { margin-top: 22px !important; border: 10px solid #1d2026; border-radius: 38px; box-shadow: 0 24px 60px rgba(23,26,33,.22); overflow: hidden; box-sizing: content-box; padding: 0 !important; background: #1d2026; height: calc(100% - 64px) !important; }
html[data-device=mobile] .gjs-frame-wrapper .gjs-frame { border-radius: 28px; background: #fff; }

/* Edit-state finish */
.gjs-toolbar-item svg { width: 16px !important; height: 16px !important; fill: none !important; }
.gjs-toolbar-item[data-danger] { margin-inline-start: 4px; position: relative; }
.gjs-toolbar-item[data-danger]::before { content: ''; position: absolute; inset-inline-start: -3px; top: 5px; bottom: 5px; width: 1px; background: rgba(255,255,255,.25); }
.gjs-toolbar-item[data-danger]:hover { background: #c62828; }
html[dir=rtl] .gjs-toolbar { left: 0 !important; right: auto !important; }
.gjs-sm-property .gjs-field select, .gjs-trt-trait .gjs-field select { appearance: none; -webkit-appearance: none; padding-inline-end: 26px !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b616b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat; background-size: 14px; }
html[dir=rtl] .gjs-sm-property .gjs-field select, html[dir=rtl] .gjs-trt-trait .gjs-field select { background-position: 8px center; }
html[dir=ltr] .gjs-sm-property .gjs-field select, html[dir=ltr] .gjs-trt-trait .gjs-field select { background-position: calc(100% - 8px) center; }
.gjs-field .gjs-sel-arrow, .gjs-field .gjs-d-s-arrow { display: none !important; }
/* line and style choices in words instead of glyphs */
.gjs-sm-property__text-decoration .gjs-radio-item-label, .gjs-sm-property__font-style .gjs-radio-item-label { font-family: inherit !important; font-size: 12.5px !important; font-weight: 600; line-height: 30px !important; padding: 0 4px !important; }
.gjs-sm-property__text-decoration .gjs-radio-item-label::before, .gjs-sm-property__font-style .gjs-radio-item-label::before { font-family: inherit !important; }
html[lang=he] label[for^="text-decoration-none"]::before { content: 'ללא' !important; }
html[lang=he] label[for^="text-decoration-underline"]::before { content: 'קו תחתון' !important; text-decoration: underline; }
html[lang=he] label[for^="text-decoration-line-through"]::before { content: 'קו חוצה' !important; text-decoration: line-through; }
html[lang=he] label[for^="font-style-normal"]::before { content: 'רגיל' !important; }
html[lang=he] label[for^="font-style-italic"]::before { content: 'נטוי' !important; font-style: italic; }
html[lang=en] label[for^="text-decoration-none"]::before { content: 'None' !important; }
html[lang=en] label[for^="text-decoration-underline"]::before { content: 'Underline' !important; text-decoration: underline; }
html[lang=en] label[for^="text-decoration-line-through"]::before { content: 'Strike' !important; text-decoration: line-through; }
html[lang=en] label[for^="font-style-normal"]::before { content: 'Normal' !important; }
html[lang=en] label[for^="font-style-italic"]::before { content: 'Italic' !important; font-style: italic; }
/* block tiles follow the block */
.gjs-block__media.blk-shot { height: auto; min-height: 46px; }
.gjs-block { min-height: 0 !important; }
/* dialogs */
dialog:focus { outline: none; }
.dlg-x:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 0; background: var(--line-2); border-radius: 10px; overflow: visible; }
.seg-btn { height: 30px; padding: 0 14px; border-radius: 8px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.seg-btn:hover { background: rgba(255,255,255,.7); }
.seg-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23,26,33,.14); }
.seg-btn:focus { outline: none; }
.seg-btn:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.hint, .studio-dialog a.hint { display: inline-block; margin-top: 2px; color: var(--ink-2); font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; }
.hint:hover { color: var(--ink); }
.form-grid select { appearance: none; -webkit-appearance: none; padding-inline-end: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b616b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat; background-size: 15px; }
html[dir=rtl] .form-grid select { background-position: 10px center; }
html[dir=ltr] .form-grid select { background-position: calc(100% - 10px) center; }
.form-grid input[type=color] { height: 40px; padding: 4px; border-radius: 10px; cursor: pointer; }
.form-grid input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.form-grid input[type=color]::-webkit-color-swatch { border: 1px solid rgba(23,26,33,.12); border-radius: 7px; }
.form-grid input[type=color]::-moz-color-swatch { border: 1px solid rgba(23,26,33,.12); border-radius: 7px; }
/* gallery */
.gallery-search { background: #f7f8fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat; background-size: 15px; padding-inline-start: 32px; }
html[dir=rtl] .gallery-search { background-position: calc(100% - 10px) center; }
html[dir=ltr] .gallery-search { background-position: 10px center; }
.gallery-grid { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent); padding-bottom: 40px; }
.gjs-sm-property .gjs-field-units select, .gjs-field-units select { background-image: none !important; padding-inline-end: 0 !important; }

.checks-summary { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.checks-summary.has-problems { background: #FFF4E0; color: #7a4a00; }
.checks-summary.is-clean { background: #EAF7F1; color: #14633f; }
:root { --ink-3: #6f7686; }
/* Text-bearing orange surfaces use a deeper orange so white text passes contrast (4.7:1); the brand orange stays for accents */
.btn-primary, .gt-use { background: #CC4514 !important; }
.btn-primary:hover, .gt-use:hover { background: #B83C0F !important; }

/* Spacing groups: no hard box, and one value for all sides */
.gjs-sm-composite > .gjs-fields, .gjs-sm-property.gjs-sm-composite .gjs-sm-properties, .gjs-sm-composite .gjs-fields { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.gjs-sm-composite .gjs-sm-properties { padding: 0 !important; }
.pad-all { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; padding: 6px 10px; border-radius: 9px; background: var(--line-2); font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.pad-all span { flex: 1 1 auto; }
.pad-all input { width: 64px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 8px; font: inherit; font-weight: 500; color: var(--ink); direction: ltr; text-align: start; }
.pad-all input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.15); }
.pad-all i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.gjs-sm-field.gjs-sm-composite { border: 0 !important; padding: 0 !important; background: transparent !important; }

/* second critique */
.studio-status { min-width: 132px; white-space: nowrap; }
input[type=checkbox] { accent-color: #CC4514; width: 16px; height: 16px; }
html[dir=rtl] .gjs-sm-sector-caret, html[dir=rtl] .gjs-sm-sector-title .gjs-caret-icon, html[dir=rtl] .gjs-sm-sector:not(.gjs-sm-open) .gjs-sm-sector-caret svg { transform: scaleX(-1); }
.gjs-radio-items { border: 1px solid var(--line) !important; border-radius: 9px; overflow: hidden; }
.gjs-field-radio, .gjs-field.gjs-field-radio { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.gjs-radio-item { border: 0 !important; }
.gjs-radio-item + .gjs-radio-item { border-inline-start: 1px solid var(--line) !important; }
.studio-dialog a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.studio-dialog a:hover { color: var(--ink); }

/* colour fields in dialogs: value plus swatch, as in the side panel */
.color-field { display: flex; align-items: center; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; direction: ltr; }
.color-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.15); }
.form-grid .color-field .color-hex { flex: 1 1 auto; min-width: 0; height: 100%; border: 0 !important; outline: none !important; background: transparent; padding: 0 12px; font: inherit; font-size: 13.5px; color: var(--ink); text-transform: uppercase; }
.form-grid .color-field input[type=color] { flex: 0 0 44px; width: 44px; height: 30px; margin: 0 5px; padding: 0; border: 0; border-radius: 7px; background: transparent; }
.gjs-field-colorp { border: 1px solid rgba(23,26,33,.14) !important; border-radius: 6px; }
/* block tiles: the picture area fills the tile so two tiles in a row match */
.gjs-block { justify-content: space-between !important; }
.gjs-block__media.blk-shot { flex: 1 1 auto; }

.btn-new { border: 1px solid var(--line) !important; background: #fff; }

/* AI writing with the user's own key */
.side-ai { display: none; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.gjs-pn-views-container[data-tab=edit][data-selected='1'][data-ai='1'] .side-ai { display: block; }
.btn-ai { width: 100%; justify-content: center; gap: 8px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; cursor: pointer; }
.btn-ai svg { width: 17px; height: 17px; color: var(--accent); }
.btn-ai:hover { border-color: var(--accent); background: var(--accent-soft); }
#dlg-ai { width: min(620px, 96vw); }
#dlg-ai .dlg-note { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
#dlg-ai textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; background: #fff; color: var(--ink); }
#dlg-ai textarea[readonly] { background: #f7f8fa; color: var(--ink-2); }
#dlg-ai textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.15); }
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ai-free { display: flex; gap: 8px; }
.ai-free input { flex: 1 1 auto; min-width: 0; }
.ai-status { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
#dlg-ai.is-busy .ai-actions, #dlg-ai.is-busy .ai-free { opacity: .5; pointer-events: none; }

/* ===== Visual pass 13: the email as a page on a quiet stage, calmer side panel ===== */
:root { --stage: #e9ebf0; }
.gjs-editor, .gjs-cv-canvas { background: radial-gradient(circle at 1px 1px, rgba(23,26,33,.07) 1px, transparent 0) 0 0 / 22px 22px, var(--stage) !important; }
html:not([data-device=mobile]) .gjs-frame-wrapper { margin-top: 22px !important; padding: 0 !important; height: calc(100% - 22px) !important; border-radius: 14px 14px 0 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(23,26,33,.06), 0 2px 6px rgba(23,26,33,.06), 0 24px 60px rgba(23,26,33,.14); }
html[data-device=mobile] .gjs-frame-wrapper { box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 30px 70px rgba(23,26,33,.28); }

/* side panel */
.gjs-pn-views-container { box-shadow: 0 0 0 1px var(--line); background: #fff !important; }
.side-tab { font-size: 13.5px; letter-spacing: .1px; }
.gjs-pn-views-container[data-tab=edit] .side-head-edit { background: #fafbfc; padding-top: 10px; padding-bottom: 10px; }
.side-edit-name { font-size: 14.5px; letter-spacing: .1px; }
.side-ai { background: #fafbfc; }
.btn-ai { background: linear-gradient(180deg, #fff, #fff7f3); border-color: #f3d3c5; }
.side-device-label { text-align: start; }
.gjs-sm-sector { border-bottom: 1px solid var(--line) !important; }
.gjs-sm-sector .gjs-sm-sector-title, .gjs-sm-sector-title { padding: 14px 14px !important; font-size: 13px !important; letter-spacing: .1px; }
.gjs-sm-sector-title:hover { background: #fafbfc !important; }
.gjs-sm-properties { padding: 2px 12px 12px !important; }
.gjs-trt-trait__label, .gjs-sm-label, .gjs-label { font-size: 12px !important; color: #6a7080 !important; font-weight: 500; }
.gjs-field { background: #fff !important; border: 1px solid #dfe2e8 !important; border-radius: 9px !important; min-height: 36px; transition: border-color .12s, box-shadow .12s; }
.gjs-field:hover { border-color: #c9cdd6 !important; }
.gjs-field input, .gjs-field select, .gjs-field textarea { font-size: 13.5px !important; padding: 7px 10px !important; }
.gjs-radio-items { border-color: #dfe2e8 !important; background: #f4f5f8; padding: 3px; gap: 2px; display: flex; }
.gjs-radio-item { flex: 1 1 0; border-radius: 7px; overflow: hidden; }
.gjs-radio-item + .gjs-radio-item { border-inline-start: 0 !important; }
.gjs-radio-item-label { background: transparent !important; border-radius: 7px; color: var(--ink-2) !important; line-height: 28px !important; }
.gjs-radio-item input:checked + .gjs-radio-item-label { background: #fff !important; color: var(--ink) !important; box-shadow: 0 1px 2px rgba(23,26,33,.14); }
.pad-all { background: #f4f5f8; }

/* block cards */
.gjs-block { border-color: #e4e6eb !important; box-shadow: 0 1px 2px rgba(23,26,33,.04) !important; }
.gjs-block__media.blk-shot { background: #f1f2f5; border-radius: 8px; }
.gjs-block-label { font-size: 12.5px !important; font-weight: 500; color: var(--ink-2) !important; }
.gjs-block-category .gjs-title { font-size: 11px !important; letter-spacing: .7px; color: #7a8090 !important; }

/* top bar */
.studio-bar, header.studio-bar { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(23,26,33,.04); position: relative; z-index: 5; }
.gjs-field.gjs-field-integer, .gjs-field.gjs-field-color, .gjs-field-color, .gjs-field-integer { background: #fff !important; }
.gjs-field-color input, .gjs-field-integer input { background: transparent !important; }

/* ===== Pass 14: one grid, one field, one segmented control in the edit panel ===== */
.gjs-trt-trait .gjs-label, .gjs-trt-trait .gjs-label-wrp { text-align: start !important; }
html[dir=rtl] .gjs-trt-trait .gjs-label { direction: rtl; }
.gjs-sm-property.gjs-sm-composite > .gjs-fields { padding: 0 !important; }
.gjs-sm-composite .gjs-sm-properties { margin: 0 -4px !important; width: calc(100% + 8px) !important; }
.pad-all { background: transparent; padding: 0; margin: 0 0 10px; }
.pad-all span { font-weight: 500; font-size: 12px; color: #6a7080; }
.pad-all-field { display: flex; align-items: center; width: 50%; height: 36px; box-sizing: border-box; border: 1px solid #dfe2e8; border-radius: 9px; background: #fff; direction: ltr; font-weight: 400; }
.pad-all-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.13); }
.pad-all .pad-all-field input { flex: 1 1 auto; min-width: 0; width: auto; height: 100%; border: 0; background: transparent; padding: 0 10px; font-size: 13.5px; box-shadow: none; }
.pad-all .pad-all-field input:focus { box-shadow: none; }
.pad-all-field i { padding: 0 10px; font-size: 13px; color: var(--ink-2); }
/* segmented controls: same height everywhere */
.seg-show { height: 36px; box-sizing: border-box; }
.seg-txt { height: 28px; }
.gjs-radio-items { height: 36px; box-sizing: border-box; align-items: stretch; }
.gjs-radio-item { display: flex; }
.gjs-radio-item-label, .gjs-sm-property__text-decoration .gjs-radio-item-label, .gjs-sm-property__font-style .gjs-radio-item-label { flex: 1 1 auto; display: flex !important; align-items: center; justify-content: center; height: 28px; padding: 0 4px !important; line-height: 1 !important; box-sizing: border-box; }
.gjs-sm-property__text-align .gjs-radio-items, .gjs-sm-property__align .gjs-radio-items { direction: ltr; }
/* lone fields take the full row */
.gjs-sm-property__font-weight, .gjs-sm-property__vertical-align, .gjs-sm-property__color, .gjs-sm-property__background-color, .gjs-sm-property__container-background-color { width: 100% !important; }
/* empty size fields read as "automatic", not as disabled */
.gjs-field-integer input::placeholder { color: var(--ink-2) !important; opacity: 1; }
.gjs-field-units:has(option:checked[value=""]) { display: none !important; }
/* colour swatch sits inside the field */
.gjs-field-color { position: relative; }
.gjs-field-colorp { width: 26px !important; height: 26px !important; top: 4px !important; bottom: auto !important; inset-inline-end: 5px !important; right: 5px !important; left: auto !important; border: 0 !important; border-radius: 7px !important; box-shadow: inset 0 0 0 1px rgba(23,26,33,.18); overflow: hidden; position: absolute !important; padding: 0 !important; }
.gjs-field-colorp-c, .gjs-field-color-picker { border-radius: 7px !important; height: 100% !important; width: 100% !important; box-shadow: inset 0 0 0 1px rgba(23,26,33,.18); }
.gjs-checker-bg, .gjs-field-colorp-c { background-image: none !important; }
/* toolbar clears the selection frame */
.gjs-toolbar { transform: translateY(-5px); }
/* block pictures on white, so a short block has no grey bands */
.gjs-block__media.blk-shot { background: #fff; box-shadow: inset 0 0 0 1px #eceef2; }
.btn-new { border-color: transparent !important; background: var(--accent-soft, #fff1ea); color: #a8380d; font-weight: 600; }
.btn-new:hover { background: #ffe5d8; }

.side-hint { margin: 8px 2px 0; font-size: 12px; line-height: 1.45; color: #6a7080; }

/* ===== Pass 18 (fourth critique): one inset, one segmented control, calmer AI dialog ===== */
.gjs-pn-views-container .side-ai, .gjs-pn-views-container .side-head.side-device { padding-left: 16px !important; padding-right: 16px !important; }
.gjs-trt-traits { padding: 12px 16px 4px !important; }
.seg-show { border: 1px solid #dfe2e8; background: #f4f5f8; border-radius: 9px; padding: 3px; }
.seg-txt { border-radius: 7px; height: 28px; }
.pad-all { justify-content: space-between; }
.pad-all span { text-align: start; }
html[lang=he] .gjs-block-category .gjs-title, html[lang=he] .side-device-label { letter-spacing: 0 !important; }
html[lang=he] .gjs-block-category .gjs-title { font-size: 12px !important; font-weight: 600; }
.gallery-grid { padding-left: 0 !important; padding-right: 0 !important; }
#dlg-ai { max-height: 86vh; overflow: auto; }
#dlg-ai textarea { resize: none; }
#dlg-ai .dlg-note { text-wrap: pretty; }
#dlg-ai .dlg-actions { display: flex; justify-content: flex-end; }
.ai-settings { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.ai-settings > summary { cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.ai-settings > summary::-webkit-details-marker { display: none; }
.ai-settings > summary::after { content: ''; margin-inline-start: auto; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b616b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
.ai-settings[open] > summary::after { transform: rotate(180deg); }
.ai-settings > .form-grid { padding: 0 14px 14px; }
.ai-free .btn { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- pass 19: ease of use ---- */
/* Toolbar beside the email, level with the selected element */
html[dir] .gjs-toolbar.is-beside { left: var(--tb-left, 0px) !important; right: auto !important; top: 0 !important; transform: none !important; display: flex !important; flex-direction: column; width: 34px; box-sizing: border-box; padding: 3px !important; gap: 1px; border-radius: 10px !important; }
.gjs-toolbar.is-beside > div { display: flex; flex-direction: column; gap: 1px; }
.gjs-toolbar.is-beside .gjs-toolbar-item { width: 28px !important; height: 28px !important; }
.gjs-toolbar.is-beside .gjs-toolbar-item[data-danger] { margin-inline-start: 0; margin-top: 5px; }
.gjs-toolbar.is-beside .gjs-toolbar-item[data-danger]::before { inset-inline-start: 5px; inset-inline-end: 5px; top: -3px; bottom: auto; width: auto; height: 1px; }
.gjs-toolbar-item[data-add] { background: var(--accent); color: #fff; order: -1; margin-bottom: 4px; }
.gjs-toolbar-item[data-add]:hover { background: #d94f1e; }

/* Blocks: one line that says what a click does */
.side-note { margin: 10px 2px 0; font-size: 12px; line-height: 1.45; color: #6a7080; text-align: start; }
.side-note .note-row { display: none; color: var(--accent); font-weight: 500; }
.gjs-pn-views-container[data-selected='1'] .side-note .note-none { display: none; }
.gjs-pn-views-container[data-selected='1'] .side-note .note-row { display: inline; }
.gjs-block { cursor: pointer !important; }

/* Picture card of the side panel */
.side-image { display: none; padding: 12px 16px !important; border-bottom: 1px solid var(--line); gap: 12px; align-items: center; }
.gjs-pn-views-container[data-tab=edit][data-selected='1'][data-kind=image] .side-image { display: flex; }
.side-image-thumb { flex: 0 0 84px; height: 60px; border-radius: 9px; overflow: hidden; background: #eef0f4; border: 1px solid var(--line); }
.side-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-swap { flex: 1 1 auto; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.btn-swap svg { width: 17px; height: 17px; color: var(--accent); }
.btn-swap:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Picture library */
#dlg-image { width: min(980px, calc(100vw - 48px)); }
.pic-url { display: flex; gap: 8px; margin: 0 0 6px; }
.pic-url input { flex: 1 1 auto; min-width: 0; height: 40px; border: 1px solid #dfe2e8; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); text-align: left; }
.pic-url input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.13); }
.pic-url .btn { height: 40px; white-space: nowrap; }
.pic-error { margin: 0 0 6px; font-size: 12.5px; color: #c62828; }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; grid-auto-rows: 118px; align-content: start; max-height: min(56vh, 520px); overflow: auto; padding: 4px; }
.pic-item { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #eef0f4; height: 118px; cursor: pointer; transition: box-shadow .12s, transform .12s; }
.pic-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-item:hover, .pic-item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent); transform: translateY(-1px); }

/* Few settings first, the rest behind "more options" */
.gjs-pn-views-container:not([data-more='1']) .is-extra { display: none !important; }
.gjs-pn-views-container .gjs-trt-trait__wrp-id, .gjs-pn-views-container .gjs-trt-trait__wrp-title, .gjs-pn-views-container .gjs-trt-trait__wrp-rel { display: none !important; }
.gjs-pn-views-container:not([data-more='1']) .side-head.side-device { display: none !important; }
.side-more { display: none; padding: 10px 16px 12px; background: #fff; border-top: 1px solid var(--line); }
.gjs-pn-views-container[data-tab=edit][data-selected='1'] .side-more { display: block; }
.btn-more { width: 100%; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #cfd4dd; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-more svg { width: 15px; height: 15px; transition: transform .15s; }
.btn-more .more-on, .gjs-pn-views-container[data-more='1'] .btn-more .more-off { display: none; }
.gjs-pn-views-container[data-more='1'] .btn-more .more-on { display: inline; }
.gjs-pn-views-container[data-more='1'] .btn-more svg { transform: rotate(180deg); }
.gjs-pn-views-container[data-more='1'] .side-head.side-device { border-top: 1px solid var(--line); }
/* What people change first comes first */
.gjs-sm-sectors { display: flex; flex-direction: column; }
.gjs-pn-views-container[data-kind=button] .gjs-sm-sector__decorations, .gjs-pn-views-container[data-kind=section] .gjs-sm-sector__decorations,
.gjs-pn-views-container[data-kind=column] .gjs-sm-sector__decorations, .gjs-pn-views-container[data-kind=wrapper] .gjs-sm-sector__decorations,
.gjs-pn-views-container[data-kind=hero] .gjs-sm-sector__decorations, .gjs-pn-views-container[data-kind=divider] .gjs-sm-sector__decorations { order: -2; }
.gjs-pn-views-container[data-kind=button] .gjs-sm-sector__typography { order: -1; }
/* A yes/no setting is a switch on one line */
.gjs-pn-views-container .gjs-trt-trait--checkbox { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.gjs-pn-views-container .gjs-trt-trait--checkbox .gjs-label-wrp { flex: 1 1 auto; margin: 0 !important; width: auto !important; }
.gjs-pn-views-container .gjs-trt-trait--checkbox .gjs-field-wrp { flex: 0 0 auto; width: auto !important; }
.gjs-pn-views-container .gjs-field-checkbox { position: relative; display: block !important; width: 38px !important; height: 22px !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: #d5d9e0 !important; cursor: pointer; transition: background .15s; box-shadow: none !important; }
.gjs-pn-views-container .gjs-field-checkbox input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.gjs-pn-views-container .gjs-field-checkbox .gjs-chk-icon { position: absolute !important; top: 3px; inset-inline-start: 3px; width: 16px !important; height: 16px !important; border: 0 !important; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(23,26,33,.3); transform: none !important; transition: inset-inline-start .15s; margin: 0 !important; display: block !important; }
.gjs-pn-views-container .gjs-field-checkbox:has(input:checked) { background: var(--accent) !important; }
.gjs-pn-views-container .gjs-field-checkbox input:checked + .gjs-chk-icon { inset-inline-start: 19px; }
.gjs-pn-views-container .gjs-field-checkbox:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(59,108,246,.25) !important; }
/* Background picture of a row: a real button */
.gjs-pn-views-container #gjs-sm-images { width: 100%; height: 38px; border: 1px solid var(--line) !important; border-radius: 10px !important; background: #fff !important; color: var(--ink) !important; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; box-shadow: none !important; text-shadow: none !important; opacity: 1 !important; }
.gjs-pn-views-container #gjs-sm-images:hover { border-color: var(--accent) !important; background: var(--accent-soft) !important; }
.gjs-pn-views-container .gjs-sm-btn-c { padding: 0 !important; }
.gjs-pn-views-container .gjs-sm-preview-file { border-radius: 9px; overflow: hidden; margin-top: 8px; }
.gjs-pn-views-container .gjs-field-checkbox { min-width: 38px; flex: 0 0 38px; box-sizing: border-box; }
.gjs-pn-views-container[data-kind=text] .gjs-sm-sector__typography { order: -1; }
/* The text toolbar has a fixed place above the email, so it never covers the line being read */
html:not([data-device=mobile]) .gjs-frame-wrapper { margin-top: 52px !important; height: calc(100% - 52px) !important; }
html[data-device=mobile] .gjs-frame-wrapper { margin-top: 52px !important; height: calc(100% - 94px) !important; }
.gjs-rte-toolbar { position: fixed !important; top: 68px !important; bottom: auto !important; right: auto !important; transform: translateX(-50%); white-space: nowrap; z-index: 20; }
html[dir=rtl] .gjs-rte-toolbar { left: calc((100vw - var(--side-w)) / 2) !important; }
html[dir=ltr] .gjs-rte-toolbar { left: calc(var(--side-w) + (100vw - var(--side-w)) / 2) !important; }
.gjs-pn-views-container .gjs-trt-trait--checkbox label.gjs-field.gjs-field-checkbox { height: 22px !important; min-height: 0 !important; line-height: 0 !important; }

/* ---- pass 19b: after the independent review ---- */
.gjs-rte-toolbar { width: max-content !important; max-width: none !important; padding: 4px !important; border-radius: 12px !important; }
.gjs-rte-actionbar { display: flex !important; align-items: center; gap: 2px; flex-wrap: nowrap; }
.gjs-rte-action { min-width: 34px !important; width: auto !important; height: 34px !important; font-size: 15px !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 6px !important; }
.gjs-rte-action svg { width: 19px; height: 19px; }
.rte-merge { font-size: 13.5px !important; height: 30px; padding: 0 8px !important; border-radius: 8px !important; max-width: none; }
.gjs-badge { display: none !important; }
.side-more { position: relative; z-index: 3; box-shadow: 0 -8px 14px -8px rgba(23,26,33,.12); }
.btn-more { border-style: solid; background: #fafbfc; }
.gjs-pn-views-container[data-tab=edit] > [data-view=style] { padding-bottom: 18px; }
/* Corners are laid out as they are on the screen: left on the left */
.gjs-sm-property__border-radius .gjs-sm-properties { direction: ltr; display: flex !important; flex-wrap: wrap; }
.gjs-sm-property__border-radius .gjs-sm-properties > .gjs-sm-property { direction: rtl; flex: 0 0 50%; box-sizing: border-box; }
html[dir=ltr] .gjs-sm-property__border-radius .gjs-sm-properties > .gjs-sm-property { direction: ltr; }
.gjs-sm-property__border-bottom-left-radius { order: 3; }
.gjs-sm-property__border-bottom-right-radius { order: 4; }
/* Picture, button, line: no "justify", and no label that repeats the title of its group */
.gjs-pn-views-container:is([data-kind=image],[data-kind=button],[data-kind=divider],[data-kind=social]) .gjs-sm-property__align .gjs-radio-item:has(input[value=justify]) { display: none !important; }
.gjs-pn-views-container:is([data-kind=image],[data-kind=divider]) .gjs-sm-property__align > .gjs-sm-label { display: none !important; }
/* Blocks: one picture height for every card */
.gjs-block__media.blk-shot { height: 96px !important; min-height: 0 !important; flex: 0 0 auto !important; }
/* Slider beside the typed value */
.pad-all { flex-wrap: wrap; }
.pad-all span { flex: 1 0 100%; margin-bottom: 4px; }
.pad-range { flex: 1 1 auto; min-width: 0; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; direction: ltr; }
.pad-all .pad-all-field { width: 86px; flex: 0 0 86px; }
/* Kind of link */
.link-kind { margin: 2px 0 8px; }
.seg-link { display: flex; width: 100%; }
.seg-link .seg-txt { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
.link-aux { width: 100%; height: 36px; margin-top: 8px; box-sizing: border-box; border: 1px solid #dfe2e8; border-radius: 9px; padding: 0 10px; font: inherit; font-size: 13.5px; background: #fff; color: var(--ink); text-align: left; }
.link-aux:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.13); }
.link-kind:not([data-kind=web]) + .gjs-field-wrp { display: none !important; }
.link-kind[data-kind=web] { margin-bottom: 8px; }
/* Picture library fills its dialog and marks the picture in use */
.pic-grid { max-height: calc(100vh - 290px) !important; }
.pic-item.is-current { box-shadow: 0 0 0 3px var(--focus); }
.gjs-toolbar:not(:has(.gjs-toolbar-item)) { display: none !important; }
.gjs-rte-action[title="Wrap for style"] { display: none !important; }
.pad-range { -webkit-appearance: none; appearance: none; background: transparent; }
.pad-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #e1e4ea; }
.pad-range::-moz-range-track { height: 4px; border-radius: 2px; background: #e1e4ea; }
.pad-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(23,26,33,.2); }
.pad-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(23,26,33,.2); }
.pad-range:focus-visible { outline: none; }
.pad-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(238,95,43,.2); }
/* The plain building blocks are small icon cards, in the same quiet line style as the rest of the interface */
.gjs-block:not([data-m10]) { min-height: 84px !important; justify-content: center !important; gap: 8px; padding: 12px 8px 10px !important; }
.gjs-block:not([data-m10]) .gjs-block__media { height: 34px; display: flex; align-items: center; justify-content: center; margin: 0 !important; color: #5b616b; }
.gjs-block:not([data-m10]) svg { width: 34px !important; height: 34px !important; max-width: 34px !important; margin: 0 !important; }
.gjs-block:not([data-m10]):hover .gjs-block__media { color: var(--accent); }

/* ---- pass 19c: second independent review ---- */
/* Block toolbar: light, like the rest of the interface; order: add, up, down, then the rest */
html[dir] .gjs-toolbar.is-beside { background: #fff !important; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(23,26,33,.14) !important; }
.gjs-toolbar.is-beside .gjs-toolbar-item { color: var(--ink-2) !important; width: 26px !important; height: 26px !important; }
.gjs-toolbar.is-beside .gjs-toolbar-item:hover { background: var(--line-2); color: var(--ink) !important; }
.gjs-toolbar.is-beside .gjs-toolbar-item[data-add] { color: #fff !important; order: -3; }
.gjs-toolbar.is-beside .gjs-toolbar-item[data-add]:hover { background: #d94f1e; color: #fff !important; }
.gjs-toolbar.is-beside .gjs-toolbar-item[data-up] { order: -2; }
.gjs-toolbar.is-beside .gjs-toolbar-item[data-down] { order: -1; margin-bottom: 4px; }
.gjs-toolbar.is-beside .gjs-toolbar-item[data-danger]::before { background: var(--line); }
.gjs-toolbar.is-beside .gjs-toolbar-item[data-danger]:hover { background: #c62828; color: #fff !important; }
/* The panel fades out under "more options" instead of being cut */
.side-more::before { content: ''; position: absolute; left: 0; right: 0; top: -29px; height: 28px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.side-more { box-shadow: none; border-top: 0; }
.gjs-pn-views-container[data-tab=edit] > [data-view=style] { padding-bottom: 34px; }
.gjs-pn-views-container .is-off { display: none !important; }
/* The spot where a clicked block lands is said in a tinted line */
.gjs-pn-views-container[data-selected='1'] .side-note { background: var(--accent-soft); border-radius: 9px; padding: 8px 10px; margin: 10px 0 0; }
/* An odd block out fills its line */
.gjs-blocks-c > .gjs-block:last-child:nth-child(odd) { width: calc(100% - 8px) !important; }

/* ---- pass 20: picture library by subject, ready colours ---- */
.pic-tools { margin: 4px 0 0; }
.pic-tools .chips { margin-bottom: 10px; }
.pic-item[hidden] { display: none !important; }
.pic-grid { margin-top: 2px; max-height: calc(100vh - 380px) !important; min-height: 120px; }
.pic-none { margin: 18px 0; text-align: center; color: var(--ink-2); font-size: 13.5px; }
.pic-url { display: block; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pic-url label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); text-align: start; }
.pic-url-row { display: flex; gap: 8px; }
.pic-url .btn { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; padding: 0 14px; border-radius: 10px; cursor: pointer; }
.pic-url .btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.pic-error { margin: 6px 0 0; }
/* Ready colours under a colour field */
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; direction: ltr; justify-content: flex-end; }
html[dir=ltr] .swatch-row { justify-content: flex-start; }
.swatch { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid rgba(23,26,33,.16); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: transform .1s, box-shadow .1s; }
.swatch:hover, .swatch:focus-visible { outline: none; transform: scale(1.12); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--focus); }
.gjs-field-color input { text-transform: uppercase; }
/* pass 20b */
.pad-all .pad-all-field { width: 100px; flex: 0 0 100px; }
.pad-all.is-mixed .pad-range { opacity: .4; }
.pad-all.is-mixed .pad-range::-webkit-slider-thumb { border-color: #b9bfca; }
.gjs-pn-views-container[data-tab=edit] > [data-view=style] { padding-bottom: 56px; }

/* ---- pass 21: business details, columns of a row ---- */
.side-quick { flex-wrap: wrap; }
.side-quick .side-quick-wide { flex: 1 0 100%; }
.kit-form input[type=text], .kit-form input[type=url] { height: 40px; border: 1px solid #dfe2e8; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); min-width: 0; }
.kit-form input[type=url] { text-align: left; }
.kit-form input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.13); }
.kit-note { margin: 10px 0 0; font-size: 12px; color: #6a7080; }
#dlg-kit .dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.side-cols { display: none; padding: 12px 16px !important; border-bottom: 1px solid var(--line); }
.gjs-pn-views-container[data-tab=edit][data-selected='1'][data-plain-row='1'] .side-cols { display: block; }
.seg-cols, .seg-share { display: flex; width: 100%; }
.seg-cols .seg-txt, .seg-share .seg-txt { display: grid; place-items: center; height: 34px; }
.side-share { margin-top: 10px; }
.side-share[hidden] { display: none; }
.col-pic { display: flex; gap: 2px; width: 34px; height: 16px; direction: inherit; }
.col-pic b { flex: 1 1 0; border: 1.5px solid currentColor; border-radius: 2.5px; opacity: .75; }
.seg-txt.is-on .col-pic b { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.col-share b:first-child { flex: 0 0 calc(var(--a) * 1% - 1px); }
.side-quick .side-quick-wide { grid-column: 1 / -1; justify-content: center; }

/* ---- pass 23: import an existing email ---- */
#dlg-import textarea { width: 100%; box-sizing: border-box; border: 1px solid #dfe2e8; border-radius: 10px; padding: 10px 12px; font: 12.5px/1.5 ui-monospace, Consolas, monospace; color: var(--ink); background: #fbfbfc; resize: vertical; text-align: left; }
#dlg-import textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,108,246,.13); }
.import-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 10px 0 4px; }
.import-file, .import-open { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 13px; height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; }
.import-file:hover, .import-open:hover { border-color: var(--accent); background: var(--accent-soft); }
.import-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.import-mode input { accent-color: var(--accent); }
#dlg-import .dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.gallery-tools .import-open { flex: 0 0 auto; }

/* ---- send dialog in steps (21/11/2026) ---- */
.send-step[hidden], .send-status[hidden] { display: none !important; }
.send-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--ink-3); }
.send-steps li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 12px; border-radius: 999px; background: var(--line-2); }
.send-steps li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink-2); }
.send-steps li.is-on { background: var(--ink); color: #fff; }
.send-steps li.is-on span { background: #fff; color: var(--ink); }
.send-steps li.is-done span { background: #2e7d32; color: #fff; }
.send-status { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: #eef6ef; color: #1f6a32; }
.send-status .send-result { margin: 0; min-height: 0; color: inherit; }
.send-status.is-error { background: #fdecea; color: #b3261e; }
.send-status.is-busy { background: var(--line-2); color: var(--ink); }
.send-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(23,26,33,.2); border-top-color: var(--ink); animation: send-spin .8s linear infinite; flex: 0 0 auto; }
.send-status.is-busy .send-spinner { display: inline-block; }
@keyframes send-spin { to { transform: rotate(360deg); } }
.field-error { display: block; min-height: 0; color: #b3261e; font-size: 12.5px; }
.field-error:empty { display: none; }
.send-step input[aria-invalid=true] { border-color: #b3261e !important; outline: 2px solid rgba(179,38,30,.25); }
.send-step .dlg-actions { margin-top: 6px; }
.send-alt { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--accent); }

/* ---- settings panel compact + number steppers (21/11/2026, Sharon's notes of 18/11) ---- */
.gjs-field-integer { display: flex !important; align-items: center; gap: 4px; padding-inline-end: 4px !important; }
.gjs-field-integer .gjs-input-holder { flex: 1 1 auto; min-width: 0; width: auto !important; }
.gjs-field-integer .gjs-field-units { position: static !important; flex: 0 0 auto; width: auto !important; }
.gjs-field-integer .gjs-field-arrows { position: static !important; opacity: 1 !important; width: auto !important; height: auto !important; display: flex !important; flex-direction: row-reverse; direction: ltr; gap: 3px; margin: 0 !important; cursor: default; flex: 0 0 auto; }
.gjs-field-arrows .gjs-field-arrow-u, .gjs-field-arrows .gjs-field-arrow-d { position: static !important; display: grid !important; place-items: center; width: 24px !important; height: 24px !important; margin: 0 !important; border: 1px solid var(--line) !important; border-radius: 7px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1; font-weight: 600; cursor: pointer; user-select: none; }
.gjs-field-arrows .gjs-field-arrow-u::before { content: '+'; }
.gjs-field-arrows .gjs-field-arrow-d::before { content: '\2212'; }
.gjs-field-arrows .gjs-field-arrow-u:hover, .gjs-field-arrows .gjs-field-arrow-d:hover { background: var(--line-2); }
.gjs-field-arrows .gjs-field-arrow-u:active, .gjs-field-arrows .gjs-field-arrow-d:active { background: var(--line); }
/* Number settings get a full row (label above) so the value and the - / + buttons fit */
.gjs-sm-property.gjs-sm-number, .gjs-sm-property.gjs-sm-integer { width: 100% !important; box-sizing: border-box; }
.gjs-sm-property.gjs-sm-number > .gjs-sm-label, .gjs-sm-property.gjs-sm-integer > .gjs-sm-label { margin: 0 0 3px !important; }
.gjs-field-integer .gjs-input-holder input { min-width: 34px; width: 100% !important; }
.gjs-sm-property { padding: 3px 4px !important; }
.gjs-sm-sector .gjs-sm-sector-title, .gjs-sm-sector-title { padding-top: 8px !important; padding-bottom: 8px !important; }
.gjs-sm-properties { padding: 0 10px 8px !important; }
.gjs-trt-trait { padding: 0 0 6px !important; }
.gjs-trt-trait .gjs-label-wrp { margin: 0 0 3px; }

/* Preview: mail app picker, phone bezel, and the "what this app will do" list */
#dlg-preview .dlg-head { flex-wrap: wrap; row-gap: 8px; }
#dlg-preview .dlg-head h2, #dlg-preview .switch { white-space: nowrap; }
.preview-client-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--m10-muted, #5b6069); white-space: nowrap; }
.preview-client-pick select { font: inherit; color: #1d2026; padding: 6px 10px; border: 1px solid #d9d4ca; border-radius: 8px; background: #fff; max-width: 320px; }
.preview-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 12px; }
.preview-body .preview-stage { flex: 1 1 auto; }
.preview-device { width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; transition: max-width .25s; }
.preview-device #preview-frame { flex: 1 1 auto; width: 100%; max-width: none; height: auto; min-height: 0; border-radius: 0; }
.preview-device.is-mobile { border: 10px solid #1d2026; border-radius: 34px; box-sizing: border-box; }
/* Room for a full 680px desktop email beside the list (the shared wide dialog is 760px) */
#dlg-preview.studio-dialog-wide { width: min(1180px, 96vw); }
.preview-inbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid #ece8e1; background: #fbfaf8; font-family: Arial, sans-serif; }
.preview-inbox .pi-dot { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #d9d4ca; }
.preview-inbox .pi-lines { min-width: 0; flex: 1 1 auto; display: grid; gap: 1px; }
.preview-inbox .pi-lines > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: #5b6069; }
.preview-inbox .pi-from { font-weight: 700; color: #1d2026 !important; }
.preview-inbox .pi-subject { color: #1d2026 !important; }
.preview-device.is-dark { background: #111; }
.preview-device.is-dark .preview-inbox { background: #1f1f1f; border-bottom-color: #333; }
.preview-device.is-dark .preview-inbox .pi-from, .preview-device.is-dark .preview-inbox .pi-subject { color: #f1f1f1 !important; }
.preview-device.is-dark .preview-inbox .pi-pre { color: #a8a8a8; }
.preview-checks { flex: 0 0 260px; overflow: auto; background: #fff; border: 1px solid #e6e1d8; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.55; }
.preview-checks h3 { margin: 0 0 8px; font-size: 14px; color: #1d2026; }
.preview-checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.preview-checks li { padding: 8px 10px; border-radius: 8px; background: #F7F5F1; border-inline-start: 3px solid #b9b2a5; }
.preview-checks li.check-error { background: #fdecea; border-inline-start-color: #c62828; }
.preview-checks li.check-warn { background: #fff4e0; border-inline-start-color: #e08a00; }
.preview-checks li.check-info { background: #eef3fd; border-inline-start-color: #3b6cf6; }
.preview-checks li.check-ok { background: #e9f6ee; border-inline-start-color: #2e7d4f; }
@media (max-width: 900px) { .preview-body { flex-direction: column; } .preview-checks { flex: 0 0 auto; max-height: 30vh; } }
