/* Email Builder — layout on top of /kit/kit.css */
.eb { max-width: 1440px; }
.eb-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 18px 0 12px; }
.eb-head .grow { min-width: 220px; }
.eb-name { width: 100%; font: 700 clamp(22px, 3.4vw, 28px)/1.2 var(--font); letter-spacing: -.02em; background: transparent; border: 0; border-bottom: 1px dashed transparent; padding: 2px 0; color: var(--text); }
.eb-name:hover, .eb-name:focus { border-bottom-color: var(--line-strong); }
.eb-name::placeholder { color: var(--text-3); }
.eb-head .faint { margin: 4px 0 0; }
.eb-ic { display: inline-flex; }
.eb-work { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
@media (max-width: 1100px) { .eb-work { grid-template-columns: 230px minmax(0, 1fr); } .eb-right { grid-column: 1 / -1; } }
@media (max-width: 760px) { .eb-work { grid-template-columns: minmax(0, 1fr); } }
.eb-left, .eb-right { display: grid; gap: 10px; min-width: 0; }
.eb-right { padding: 14px; position: sticky; top: 70px; max-height: calc(100vh - 84px); overflow-y: auto; }
@media (max-width: 1100px) { .eb-right { position: static; max-height: none; } }
.eb-ltabs { width: 100%; }
.eb-ltabs button { flex: 1; }
.eb-lcard { padding: 12px; }
.eb-lcard h2, .eb-right h2 { margin: 0 0 8px; font-size: 14px; }
.eb-h2b { margin-top: 14px !important; }
.eb-palette { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.eb-pal { padding: 9px 6px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--text); }
.eb-pal:hover { border-color: var(--accent); color: var(--accent); }
.eb-layers { display: grid; gap: 4px; }
.eb-layer { display: flex; align-items: center; gap: 2px; padding: 2px 2px 2px 4px; border-radius: 9px; border: 1px solid transparent; }
.eb-layer.is-sel { border-color: var(--accent); background: var(--accent-soft); }
.eb-layer.is-over { border-color: var(--accent); border-style: dashed; }
.eb-layer.is-drag { opacity: .4; }
.eb-lname { flex: 1; min-width: 0; display: grid; text-align: start; padding: 4px; cursor: grab; }
.eb-lname b { font-size: 12.5px; }
.eb-lname .faint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.eb-center { padding: 10px; min-width: 0; }
.eb-pbar { margin-bottom: 8px; gap: 8px; }
.eb-stage { border-radius: 10px; background: #e9edf2; padding: 0; overflow: auto; max-height: calc(100vh - 170px); }
.eb-stage[data-device="mobile"] .eb-host { width: 375px; max-width: 100%; margin: 0 auto; border-left: 1px solid #d6dbe1; border-right: 1px solid #d6dbe1; }
.eb-host { display: block; }
.eb-ihead { margin-bottom: 4px; }
.eb-rbar { gap: 4px; margin-bottom: 4px; }
.eb-b { font-weight: 800; } .eb-i { font-style: italic; }
.eb-rich { min-height: 90px; max-height: 300px; overflow-y: auto; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 1.55; font-weight: 450; }
.eb-rich:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.eb-rich p { margin: 0 0 8px; }
.eb-rich a { color: var(--accent); }
.eb-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.eb-color input[type="color"] { width: 100%; }
.eb-val { color: var(--text); font-weight: 600; }
.eb-h3 { margin: 10px 0 0; font-size: 13px; }
.eb-social { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 6px; align-items: center; }
.eb-del:hover:not(:disabled) { color: var(--danger); }
.eb-warn { color: var(--warn); }
.eb-menu { position: relative; }
.eb-menu summary { list-style: none; cursor: pointer; }
.eb-menu summary::-webkit-details-marker { display: none; }
.eb-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; padding: 6px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-pop); display: grid; }
.eb-menu-list button { text-align: start; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text); }
.eb-menu-list button:hover, .eb-menu-list button:focus-visible { background: var(--surface-2); }
.eb-menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
.eb-keys { display: grid; gap: 7px; }
.eb-keys kbd { min-width: 150px; text-align: center; }
