/* Strength & Bloom email builder (bloom.strongersystems.uk/emails). Forest green, blush and coral, Fraunces + DM Sans.
   The same stylesheet as the BRIGADE and Blueprint builders with the colours as variables (--yellow is the accent
   slot, here &Bloom blush); the "Save to HighLevel" step is near the end. */
:root {
  --bg: #1B332C; --surface: #28483F; --surface-2: #31564B; --line: rgba(248, 236, 216, .16);
  --text: #F8ECD8; --soft: #EFE0CB; --muted: #C9B8A3; --yellow: #FFB7A8; --on-accent: #28483F; --accent-rgb: 255, 183, 168;
  --ok: #86efac; --warn: #fbbf24; --bad: #fda4af; --r: 8px;
  --f-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; --f-head: 'Fraunces', Georgia, serif; --f-mono: 'DM Sans', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 32px); --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.hb { overflow-x: clip; }
a { color: var(--yellow); }
button { font-family: inherit; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.form-error { color: #fda4af; font-weight: 700; }
.h3 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 1.4rem; margin: 0; }
.h4 { font-family: var(--f-head); font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 0; background: var(--yellow); color: var(--on-accent); font-family: var(--f-body); font-weight: 700; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--yellow); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--soft); letter-spacing: .02em; }
.field input, .field select { width: 100%; min-height: 50px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .16); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; font-weight: 400; padding: 0 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }

/* header */
.hub-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px 20px; padding: 10px var(--gutter); background: rgba(0, 0, 0, .94); backdrop-filter: blur(12px); border-bottom: 3px solid var(--yellow); flex-wrap: wrap; }
.hub-top__logo img { display: block; height: 21px; width: auto; }
.hub-top__meta { margin-left: auto; font-size: .82rem; color: var(--muted); }
.hub-top__meta a { color: var(--yellow); }
.hcard { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; min-width: 0; }
.hcard h2 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1.15rem; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hcard h2 small { font-family: var(--f-body); font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: none; letter-spacing: 0; }
@media (max-width: 760px) { .hub-top__meta { margin-left: 0; width: 100%; } }

/* login */
.hb-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(60% 50% at 50% 0%, rgba(var(--accent-rgb), .08), transparent 70%), var(--bg); }
.hb-card { width: min(420px, 100%); display: grid; gap: 14px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--yellow); border-radius: 6px; padding: 32px 24px; }
.hb-card img { margin: 0 auto 4px; }
.hb-card h1 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 1.9rem; margin: 0; letter-spacing: -.01em; }
.hb-card p { margin: 0; }
.hb-card .field { text-align: left; }

/* Hybrid touches on the builder */
.eb-title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; }
.eb-num { border-radius: 4px !important; font-weight: 700; color: var(--on-accent) !important; }
.eb-seg span, .eb-looks label > span, .eb-photo, .eb-blocks li, .eb-ask, .eb-result, .eb-drop, .field textarea, .eb-frame, .eb-dialog, .eb-history button, .eb-note { border-radius: 6px !important; }
.eb-inbox { border-radius: 6px !important; }
.eb-lib { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eb-lib__btn { border: 1px solid var(--line); background: var(--bg); color: #fff; border-radius: 4px; padding: 10px 14px; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.eb-lib__btn:hover { border-color: var(--yellow); }
.eb-photo__kind { display: inline-block; background: var(--yellow); color: var(--on-accent); font-size: .66rem; font-weight: 900; letter-spacing: .08em; padding: 1px 5px; border-radius: 2px; margin-right: 4px; text-transform: uppercase; }
.eb-libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 8px; max-height: 58vh; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.eb-libgrid button { position: relative; display: block; padding: 0; border: 2px solid transparent; background: var(--bg); border-radius: 4px; overflow: hidden; cursor: pointer; min-height: 0; }
.eb-libgrid button img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.eb-libgrid button[aria-pressed="true"] { border-color: var(--yellow); }
.eb-libgrid button[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; background: var(--yellow); color: var(--on-accent); font-weight: 900; border-radius: 4px; }
.eb-libgrid span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 6px 5px; font-size: .68rem; line-height: 1.25; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.eb-libtabs { display: flex; gap: 4px; }
.eb-libtabs button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.eb-libtabs button[aria-pressed="true"] { background: var(--surface-2); color: #fff; }
.eb-dialog--wide { width: min(760px, calc(100vw - 24px)) !important; }

/* Builder layout (ported from the etc builder). */
.eb-title { font-family: var(--f-head); font-size: 1.05rem; }
.eb-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.eb-pills span { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.eb-pills span.on::before { content: '●'; color: #86efac; margin-right: 5px; }
.eb-pills span.off::before { content: '●'; color: #fbbf24; margin-right: 5px; }
.eb-link { border: 0; background: none; color: var(--yellow); font: inherit; padding: 0; cursor: pointer; }

.eb-main { max-width: 1400px; margin: 0 auto; padding: 24px var(--gutter) 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
@media (max-width: 980px) { .eb-main { grid-template-columns: 1fr; } }
.eb-compose { display: grid; gap: 16px; min-width: 0; }
.eb-compose .hcard { margin: 0; display: grid; gap: 14px; }
.eb-compose .hcard h2 { margin: 0; align-items: center; justify-content: flex-start; }
.eb-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #0a0a0a; font-size: .9rem; flex: none; }
.eb-hint { margin: -6px 0 0; color: var(--muted); font-size: .85rem; }
.eb-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; font-size: .92rem; }

.field textarea { width: 100%; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; font-weight: 400; line-height: 1.5; padding: 12px 14px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
.eb-compose .field input { padding-right: 16px; }
.field small, .field i { font-weight: 400; color: var(--muted); font-style: normal; }
.eb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .eb-row { grid-template-columns: 1fr; } }

.eb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 561px) { .eb-seg--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .eb-seg--3 { grid-template-columns: 1fr; } }
.eb-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--soft); cursor: pointer; }
.eb-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yellow); flex: none; }
.eb-check small { color: var(--muted); }
.eb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.eb-seg span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; height: 100%; }
.eb-seg small { color: var(--muted); font-size: .8rem; }
.eb-seg input:checked + span { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.eb-seg input:focus-visible + span { outline: 3px solid var(--yellow); }

.eb-drop { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 26px 16px; border: 2px dashed rgba(255, 255, 255, .2); border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.eb-drop:hover, .eb-drop.is-over { border-color: var(--yellow); background: rgba(var(--accent-rgb), .06); }
.eb-drop__icon { font-size: 1.8rem; color: var(--yellow); line-height: 1; }
.eb-drop small { color: var(--muted); max-width: 42ch; }
.eb-photos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eb-photos:empty { display: none; }
.eb-photo { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.eb-photo img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.eb-photo > div { display: grid; gap: 6px; min-width: 0; }
.eb-photo__meta { font-size: .8rem; color: var(--muted); }
.eb-photo__meta b { color: var(--yellow); }
.eb-photo input { width: 100%; min-height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; padding: 0 10px; }
.eb-photo__tools { display: flex; gap: 4px; }
.eb-photo__tools button, .eb-block__head button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--soft); cursor: pointer; }
.eb-photo__tools button:hover, .eb-block__head button:hover:not(:disabled) { border-color: var(--yellow); color: #fff; }
.eb-block__head button:disabled { opacity: .3; cursor: default; }

.eb-create { font-size: 1.1rem; min-height: 60px; }
.eb-create:disabled, .eb-step .btn:disabled { opacity: .5; cursor: progress; }
.eb-go { display: grid; gap: 10px; }
.eb-go .form-error { margin: 0; }
.eb-progress { display: grid; gap: 8px; }
.eb-progress__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.eb-progress__bar i { display: block; height: 100%; width: 6%; background: var(--yellow); border-radius: inherit; transition: width .5s var(--ease); }
.eb-progress p { margin: 0; color: var(--soft); font-size: .92rem; }

.eb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.eb-chips:empty { display: none; }
.eb-chips button { border: 1px solid var(--line); background: var(--bg); color: var(--soft); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; text-align: left; }
.eb-chips button:hover { border-color: var(--yellow); color: #fff; }
.eb-ask { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.eb-ask .eb-chips { margin: 0; }
.eb-ask .btn { justify-self: start; }

.eb-edit { border-top: 1px solid var(--line); padding-top: 12px; }
.eb-edit summary { cursor: pointer; font-weight: 700; color: var(--yellow); }
.eb-edit[open] { display: grid; gap: 14px; }
.eb-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eb-blocks li { display: grid; gap: 6px; padding: 10px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.eb-blocks textarea, .eb-blocks input, .eb-blocks select { width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; line-height: 1.45; padding: 8px 10px; resize: vertical; }
.eb-blocks p { margin: 0; font-size: .88rem; }
.eb-block__head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eb-block__head span { display: flex; gap: 4px; }
.eb-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.eb-add button { border: 1px dashed rgba(255, 255, 255, .25); background: none; color: var(--soft); border-radius: 10px; padding: 6px 10px; font: inherit; cursor: pointer; }
.eb-add button:hover { border-color: var(--yellow); color: #fff; }

.eb-result { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid rgba(134, 239, 172, .3); }
.eb-result .h4 { font-family: var(--f-head); font-size: 1rem; margin: 4px 0 0; }
.eb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-weight: 700; }
.eb-steps .ok { color: #86efac; }
.eb-steps .skip { color: var(--soft); font-weight: 400; }
.eb-next { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--soft); }
.eb-copyrow { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-copy { border: 1px solid var(--line); background: var(--surface-2); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.eb-copy:hover { border-color: var(--yellow); }

.eb-preview { position: sticky; top: 84px; display: grid; gap: 10px; min-width: 0; }
@media (max-width: 980px) { .eb-preview { position: static; } }
.eb-inbox { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; color: #111; }
.eb-inbox img { border-radius: 50%; background: #000; padding: 4px; }
.eb-inbox div { display: grid; min-width: 0; font-size: .9rem; line-height: 1.35; }
.eb-inbox b { font-size: .8rem; color: #555; }
.eb-inbox strong, .eb-inbox span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-inbox span { color: #666; }
.eb-device { display: flex; gap: 4px; align-items: center; }
.eb-device button { border: 0; background: none; padding: 8px 14px; border-radius: 99px; font-weight: 700; color: var(--muted); cursor: pointer; font: inherit; }
.eb-device button[aria-pressed="true"] { background: var(--surface-2); color: #fff; }
.eb-words { margin-left: auto; color: var(--muted); font-size: .85rem; }
.eb-frame { border-radius: 18px; overflow: hidden; background: #EDEDED; border: 1px solid var(--line); transition: max-width .3s var(--ease); max-width: 100%; margin: 0 auto; width: 100%; }
.eb-frame iframe { display: block; width: 100%; height: min(78vh, 1100px); border: 0; background: #EDEDED; }
.eb-frame.is-mobile { max-width: 390px; }
@media (max-width: 980px) { .eb-frame iframe { height: 80vh; } }

.eb-dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); padding: 24px; width: min(560px, calc(100vw - 32px)); }
.eb-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.eb-dialog form { display: grid; gap: 14px; }
.eb-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.eb-history button { width: 100%; display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); background: var(--bg); color: #fff; border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.eb-history button:hover { border-color: var(--yellow); }
.eb-history small { color: var(--muted); }

/* style picker */
.eb-looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .eb-looks { grid-template-columns: repeat(2, 1fr); } }
.eb-looks input { position: absolute; opacity: 0; pointer-events: none; }
.eb-looks label > span { display: grid; gap: 3px; justify-items: center; text-align: center; padding: 12px 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; height: 100%; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.eb-looks label:hover > span { transform: translateY(-2px); }
.eb-looks svg { width: 100%; max-width: 110px; height: auto; margin-bottom: 6px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.eb-looks b { font-size: .95rem; }
.eb-looks small { color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.3; }
.eb-looks input:checked + span { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.eb-looks input:focus-visible + span { outline: 3px solid var(--yellow); }
.w-bg { fill: #fff; } .w-ink { fill: #000; } .w-teal, .w-pink, .w-grad { fill: #00A6E8; } .w-line { fill: #0B0F14; } .w-soft { fill: #D9D9D9; }
.w-photo { fill: #8C8C8C; } .w-paper { fill: #F6F6F4; } .w-card { fill: #F6F6F4; } .w-white { fill: #fff; }
@media (max-width: 420px) { .eb-looks { gap: 6px; } .eb-looks label > span { padding: 8px 6px; } .eb-looks svg { max-width: 84px; } }
.eb-switch { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.eb-switch button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 99px; font: inherit; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.eb-switch button[aria-pressed="true"] { background: var(--yellow); color: var(--on-accent); }
.eb-reshape { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .35); font-size: .88rem; color: var(--soft); }
.eb-reshape button { border: 0; border-radius: 99px; padding: 8px 14px; background: var(--yellow); color: var(--on-accent); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.eb-add__rich { display: contents; }
.eb-add__rich[hidden] { display: none; }
.eb-blocks .eb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 560px) { .eb-blocks .eb-pair { grid-template-columns: 1fr; } }
.eb-blocks .eb-hint2 { margin: 0; font-size: .8rem; color: var(--muted); }

/* voice notes */
.eb-voice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -4px; }
.eb-voice__btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); color: #fff; border-radius: 99px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.eb-voice__btn:hover { border-color: var(--yellow); }
.eb-voice__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: none; }
.eb-voice.is-rec .eb-voice__btn { border-color: #f43f5e; background: rgba(244, 63, 94, .12); }
.eb-voice.is-rec .eb-voice__dot { display: inline-block; background: #f43f5e; animation: ebpulse 1s ease-in-out infinite; }
.eb-voice__status { color: var(--muted); font-size: .88rem; }
@keyframes ebpulse { 50% { opacity: .25; } }

/* hidden radio inputs behind the look / option cards: never let them take up width (they sat inside .field
   and inherited width:100%, which pushed the page sideways on phones) */
.eb-looks label, .eb-seg label { position: relative; display: block; }
.eb-looks input, .eb-seg input { width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; margin: 0; border: 0; top: 0; left: 0; }
.hb { overflow-x: clip; }

/* no-ai-slop "what changed" */
.eb-slop { padding: 10px 14px; border-radius: 6px; background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .3); font-size: .9rem; color: var(--soft); }
.eb-slop summary { cursor: pointer; font-weight: 700; color: var(--yellow); }
.eb-slop ul { margin: 8px 0 2px; padding-left: 20px; display: grid; gap: 4px; }

.w-link { fill: #1a56db; }
.eb-plaincopy { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.eb-switch { overflow-x: auto; }
.eb-switch button { flex: 1 0 auto; }

.eb-photo__tools button:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- multi-site: "Save to HighLevel" (same in every multi-site builder; colours from :root) ---------- */
.eb-seg--aud { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.eb-seg--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .eb-seg--2 { grid-template-columns: 1fr; } }
.eb-sites { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); }
.eb-sites > span { margin-right: 2px; }
.eb-sites button { border: 1px solid var(--line); background: var(--surface); color: var(--soft); padding: 7px 12px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; border-radius: var(--r); }
.eb-sites button[aria-pressed="true"] { background: var(--yellow); color: var(--on-accent); border-color: var(--yellow); }
.eb-where { display: grid; gap: 10px; }
.eb-site { border: 1px solid var(--line); background: var(--bg); padding: 12px 14px; display: grid; gap: 10px; border-radius: var(--r); }
.eb-site.is-on { border-color: rgba(var(--accent-rgb), .7); box-shadow: inset 3px 0 0 var(--yellow); }
.eb-site__head { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.eb-site__head input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--yellow); flex: none; }
.eb-site__head span { display: grid; gap: 1px; }
.eb-site__head small { color: var(--muted); font-size: .8rem; }
.eb-site__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .72rem; font-weight: 700; padding: 3px 8px; background: var(--surface-2); color: var(--soft); border-radius: var(--r); letter-spacing: .02em; }
.chip::before { content: '●'; margin-right: 5px; }
.chip.ok::before { color: var(--ok); } .chip.warn::before { color: var(--warn); } .chip.bad::before { color: var(--bad); }
.eb-site__body { display: grid; gap: 8px; }
.eb-site__body .eb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .eb-site__body .eb-pair { grid-template-columns: 1fr; } }
.eb-site__foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.eb-count { font-weight: 700; color: var(--yellow); font-size: .9rem; }
.eb-site__time { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--muted); }
.eb-site__time input { min-height: 36px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; padding: 0 8px; border-radius: var(--r); color-scheme: dark; }
.eb-hint2 { margin: 0; font-size: .8rem; color: var(--muted); }
.eb-when, .eb-test, .eb-actions { display: grid; gap: 10px; }
.eb-when input[type="datetime-local"], .eb-test input { color-scheme: dark; }
.eb-test { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.eb-row--test { grid-template-columns: 1.3fr 1fr auto; align-items: end; }
@media (max-width: 700px) { .eb-row--test { grid-template-columns: 1fr; } }
.eb-test p { margin: 0; }
.eb-ok { color: var(--ok); font-weight: 700; }
.eb-plan-out { overflow-x: auto; }
.eb-plan { width: 100%; border-collapse: collapse; font-size: .85rem; }
.eb-plan th, .eb-plan td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.eb-plan th { color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.eb-plan tfoot td { border-bottom: 0; font-weight: 700; }
.eb-tokens { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.eb-tokens button { border: 1px solid var(--line); background: var(--surface-2); color: var(--soft); font-family: var(--f-mono, monospace); font-size: .75rem; padding: 3px 6px; cursor: pointer; border-radius: var(--r); }


/* ---------- &Bloom: Fraunces headings, forest green, blush and coral ---------- */
.hcard h2, .hb-card h1, .eb-title, .h3 { font-family: var(--f-head); font-weight: 500; text-transform: none; letter-spacing: -.02em; }
.btn { border-radius: 999px; }
.hub-top { background: rgba(27, 51, 44, .97); border-bottom: 3px solid #FF6647; }
.hub-top__logo img { height: 34px; width: auto; }
.eb-inbox img { border-radius: 50%; background: #28483F; }
.w-teal, .w-pink, .w-grad { fill: #FFB7A8; } .w-ink { fill: #28483F; } .w-soft { fill: #F8ECD8; } .w-paper, .w-card { fill: #FFFAF4; } .w-photo { fill: #FF6647; }
.hb-login__logo { width: 220px; height: auto; }

/* ---------- step 4: template folders (same in every builder; colours from :root) ---------- */
.eb-folder { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 16px 0; }
.eb-folder .field { flex: 1 1 240px; margin: 0; }
.eb-linkbtn { background: none !important; border: 0 !important; box-shadow: none !important; min-height: 0; color: var(--yellow); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; padding: 12px 0; }
.eb-folders { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.eb-folders > li { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.eb-folders > li.muted, .eb-folders > li.form-error { border: 0; background: none; padding: 6px 0; }
.eb-folders summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; cursor: pointer; }
.eb-folders__name { font-weight: 600; overflow-wrap: anywhere; }
.eb-folders summary small { color: var(--muted); }
.eb-folders__acts { margin-left: auto; display: flex; gap: 6px; }
.eb-folders__acts button { border: 1px solid var(--line); background: var(--surface); color: var(--soft); border-radius: var(--r); padding: 4px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
.eb-folders__acts button:disabled { opacity: .4; cursor: not-allowed; }
.eb-folders__in { margin: 0; padding: 0 12px 10px 36px; font-size: .85rem; color: var(--soft); }
.eb-folders-add { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.eb-folders-add .field { flex: 1 1 220px; margin: 0; }
.eb-folders-add .eb-check { margin: 0 0 10px; }
