/*
 * Sectioned modal ("eo") design system — the app's modern modal look:
 * gradient hero header, left section rail with switchable panels, stacked
 * label-above fields, labelled toggle rows, sticky footer.
 *
 * Shared by: Edit Organization Details, Notification view/edit, and any
 * future sectioned modal. Mockups live in source/docs/mockups/
 * (edit-organization-redesign.html, notification-view-redesign.html,
 * notification-edit-redesign.html).
 *
 * Markup contract:
 *   .eo-hero-header              — modal-header replacement (gradient hero)
 *   .eo-edit                     — wrapper, holds the CSS vars + section-rail controller
 *     .eo-edit-body              — grid: rail | content
 *       .eo-rail > a[data-section]           — rail links (section-rail targets)
 *       .eo-content > .eo-panel[data-section] — panels; .show displays one
 *
 * Validation: the section-rail Stimulus controller adds .has-error to rail
 * links whose panel contains an invalid field, switches to the first errored
 * panel, and injects a .section-rail-alert banner.
 */

.eo-edit {
    --eo-ink: #1f2630;
    --eo-soft: #6c7686;
    --eo-muted: #94a0b0;
    --eo-line: #eceff3;
    --eo-line-2: #e3e8ef;
    --eo-brand-1: #2674a6;
    --eo-brand-2: #112a54;
}

/* ===== Gradient hero modal header ===== */
.eo-hero-header {
    background: linear-gradient(115deg, #112a54 0%, #1a3a5c 45%, #2674a6 120%) !important;
    color: #fff;
    border: none !important;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.eo-hero-header .eo-hero-ic {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: #fff;
    display: grid;
    place-items: center;
    color: #112a54;
    font-size: 1.4rem;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
    overflow: hidden;
}
.eo-hero-header .eo-hero-ic img { max-width: 84%; max-height: 84%; object-fit: contain; }
.eo-hero-header .eo-hero-txt { flex: 1 1 auto; min-width: 0; }
.eo-hero-header .modal-title { color: #fff !important; font-size: 1.2rem; font-weight: 700; }
.eo-hero-header .eo-hero-sub {
    opacity: .85;
    font-size: .82rem;
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.eo-hero-header .btn-close { flex: 0 0 auto; border: 3px solid #fff; filter: invert(1) grayscale(100%) brightness(200%); }

/* Second hero row: test buttons, status pills, master toggles */
.eo-hero-actions {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.eo-hero-actions .eo-gap { flex: 1 1 auto; }
.eo-hbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .27);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-radius: 9px;
    padding: 6px 13px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.eo-hbtn:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* Master toggle pill in the hero (wraps a Bootstrap form-switch checkbox) */
.eo-hd-tog {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .07);
    border-radius: 99px;
    padding: 4px 7px 4px 13px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
}
.eo-hd-tog .form-check { margin: 0; padding: 0; min-height: 0; display: flex; align-items: center; }
.eo-hd-tog .form-check-input {
    width: 38px;
    height: 21px;
    margin: 0;
    cursor: pointer;
    background-color: rgba(255, 255, 255, .24);
    border-color: rgba(255, 255, 255, .35);
    box-shadow: none;
}
.eo-hd-tog .form-check-input:checked { background-color: #1d9e52; border-color: #1d9e52; }
.eo-hd-tog .form-check-label { display: none; }

/* Status pills (view modal header + inline statuses) */
.eo-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: .7rem;
    font-weight: 700;
}
.eo-pill-on { background: #dcfce7; color: #166534; }
.eo-pill-off { background: #fee2e2; color: #991b1b; }
.eo-pill-warn { background: #fef3c7; color: #b45309; }
.eo-pill-ghost { background: rgba(255, 255, 255, .13); color: #fff; border: 1px solid rgba(255, 255, 255, .23); font-weight: 600; }
.eo-pill-ghost code { color: #bfe0ff; font-size: .68rem; }

/* ===== Body layout: rail + content ===== */
.eo-edit-body { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 420px; }
@media (max-width: 780px) { .eo-edit-body { grid-template-columns: 1fr; } }

/* rail */
.eo-edit .eo-rail {
    border-right: 1px solid var(--eo-line);
    padding: 6px 12px 6px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
@media (max-width: 780px) {
    .eo-edit .eo-rail { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--eo-line); padding: 0 0 10px; }
}
.eo-edit .eo-rail a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--eo-soft);
    font-weight: 600;
    font-size: .85rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
@media (max-width: 780px) { .eo-edit .eo-rail a { white-space: normal; } }
.eo-edit .eo-rail a i { width: 18px; text-align: center; font-size: 1rem; }
.eo-edit .eo-rail a:hover { background: #f7f9fc; color: var(--eo-ink); }
.eo-edit .eo-rail a.active { background: #fff; color: var(--eo-brand-2); border-color: var(--eo-line-2); box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.eo-edit .eo-rail a.active i { color: var(--eo-brand-1); }

/* rail status dot (channel enabled etc.) */
.eo-edit .eo-rail .eo-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.eo-dot-on { background: #22c55e; }
.eo-dot-off { background: #cdd4de; }

/* rail link error state — set by the section-rail controller when its panel
   contains an invalid field */
.eo-edit .eo-rail a.has-error { color: #b91c1c; }
.eo-edit .eo-rail a.has-error::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc3545;
    display: inline-block;
    margin-left: auto;
    flex: 0 0 auto;
}
/* when both a status dot and the error dot would show, drop the status dot */
.eo-edit .eo-rail a.has-error .eo-dot { display: none; }

/* content */
.eo-edit .eo-content { padding: 4px 6px 6px 22px; max-height: 62vh; overflow: auto; }
@media (max-width: 780px) { .eo-edit .eo-content { padding: 14px 2px 2px; } }
.eo-edit .eo-panel { display: none; }
.eo-edit .eo-panel.show { display: block; animation: eoFade .2s ease; }
@keyframes eoFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.eo-edit .eo-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--eo-muted);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.eo-edit .eo-eyebrow:not(:first-child) { margin-top: 22px; }
.eo-edit .eo-eyebrow .eo-gap { flex: 1 1 auto; }

/* ===== Stacked label-above fields ===== */
.eo-edit .eo-ff { display: flex; flex-direction: column; margin-bottom: 14px; }
.eo-edit .eo-ff label {
    order: -1;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--eo-soft);
    margin: 0 0 5px 1px;
}
.eo-edit .eo-ff .eo-input,
.eo-edit .eo-ff input,
.eo-edit .eo-ff select,
.eo-edit .eo-ff textarea {
    width: 100%;
    height: auto;
    min-height: 0;
    border: 1px solid var(--eo-line-2);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: .86rem;
    color: var(--eo-ink);
    background: #fff;
    transition: .14s;
    line-height: 1.4;
}
.eo-edit .eo-ff textarea { min-height: 90px; resize: vertical; }
.eo-edit .eo-ff select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%2394a0b0'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}
.eo-edit .eo-ff input:focus,
.eo-edit .eo-ff select:focus,
.eo-edit .eo-ff textarea:focus { outline: none; border-color: #2f72d8; box-shadow: 0 0 0 3px rgba(47, 114, 216, .14); }
.eo-edit .eo-ff input.is-invalid,
.eo-edit .eo-ff select.is-invalid,
.eo-edit .eo-ff textarea.is-invalid { border-color: #dc3545; }
.eo-edit .eo-hint { order: 2; font-size: .71rem; color: var(--eo-muted); margin-top: 5px; padding-left: 1px; }
.eo-edit .eo-grid { display: grid; gap: 0 13px; grid-template-columns: 1fr 1fr; }
.eo-edit .eo-grid.c3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .eo-edit .eo-grid, .eo-edit .eo-grid.c3 { grid-template-columns: 1fr; } }
.eo-edit .span2 { grid-column: 1 / -1; }

/* ===== Locked (read-only) field row — e.g. trigger event after creation ===== */
.eo-edit .eo-locked {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--eo-line);
    border-radius: 10px;
    background: #f6f8fb;
    padding: 10px 13px;
    margin-bottom: 14px;
    font-size: .85rem;
    flex-wrap: wrap;
}
.eo-edit .eo-locked .eo-lock { color: var(--eo-muted); }
.eo-edit .eo-locked code { font-size: .75rem; color: var(--eo-soft); }
.eo-edit .eo-locked .eo-why { margin-left: auto; font-size: .7rem; color: var(--eo-muted); }

/* ===== Labelled row wrapping a segmented .bit-seg pill (see _segmented-toggle.css) ===== */
.eo-edit .eo-seg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--eo-line);
    border-radius: 12px;
    margin-bottom: 9px;
}
.eo-edit .eo-seg-row .eo-tx { min-width: 0; }
.eo-edit .eo-seg-row .eo-tx b { font-size: .84rem; font-weight: 600; display: block; }
.eo-edit .eo-seg-row .eo-tx span { font-size: .72rem; color: var(--eo-soft); }
.eo-edit .eo-seg-row > div[data-controller] { margin-left: auto; }
/* the field name is shown in .eo-tx, so the checkbox's own label is
   redundant — hide it; its varying width misaligned the toggles. */
.eo-edit .eo-seg-row .form-check-label { display: none; }

/* ===== Labelled row wrapping a Bootstrap switch ===== */
.eo-edit .eo-tog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (max-width: 560px) { .eo-edit .eo-tog-grid { grid-template-columns: 1fr; } }
.eo-edit .eo-tog {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid var(--eo-line);
    border-radius: 12px;
    background: #fff;
    margin: 0 0 9px;
}
.eo-edit .eo-tog .eo-ic {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: .9rem;
    flex: 0 0 auto;
}
.eo-edit .eo-tog .eo-tx { min-width: 0; }
.eo-edit .eo-tog .eo-tx b { font-size: .83rem; font-weight: 600; display: block; }
.eo-edit .eo-tog .eo-tx span { font-size: .71rem; color: var(--eo-soft); }
.eo-edit .eo-tog .form-check { margin-left: auto; padding: 0; min-height: 0; display: flex; align-items: center; }
.eo-edit .eo-tog .form-check-input {
    width: 42px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    background-color: #cdd4de;
    border-color: #cdd4de;
    box-shadow: none;
}
.eo-edit .eo-tog .form-check-input:checked { background-color: #1d9e52; border-color: #1d9e52; }
.eo-edit .eo-tog .form-check-input:focus { box-shadow: 0 0 0 3px rgba(47, 114, 216, .14); border-color: #2f72d8; }
.eo-edit .eo-tog .form-check-input.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, .18); }
.eo-edit .eo-tog .form-check-label { display: none; }

/* recipient/user icon chips */
.eo-who {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    font-size: .85rem;
    flex: 0 0 auto;
    vertical-align: middle;
}
.eo-who-student { background: #dbeafe; color: #1d4ed8; }
.eo-who-parent { background: #fce7f3; color: #be185d; }
.eo-who-instructor { background: #dcfce7; color: #15803d; }
.eo-who-office { background: #fef3c7; color: #b45309; }
.eo-who-plus { background: #ede9fe; color: #6d28d9; }
.eo-who-email { background: #e0f2fe; color: #0369a1; }
.eo-who-sms { background: #dcfce7; color: #15803d; }
.eo-who-bell { background: #fef3c7; color: #b45309; }

/* ===== Recipient matrix table (recipient rows × Email/SMS columns) ===== */
.eo-edit .eo-rcp-table {
    width: 100%;
    border: 1px solid var(--eo-line);
    border-radius: 14px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}
.eo-edit .eo-rcp-table th {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--eo-muted);
    background: #fafbfd;
    padding: 9px 14px;
    border-bottom: 1px solid var(--eo-line);
}
.eo-edit .eo-rcp-table th.c { text-align: center; width: 120px; }
.eo-edit .eo-rcp-table td {
    padding: 9px 14px;
    font-size: .85rem;
    font-weight: 600;
    border-bottom: 1px solid var(--eo-line);
    vertical-align: middle;
}
.eo-edit .eo-rcp-table tr:last-child td { border-bottom: none; }
.eo-edit .eo-rcp-table td.c { text-align: center; }
.eo-edit .eo-rcp-table td .eo-who { margin-right: 9px; }
.eo-edit .eo-rcp-table .form-check { display: inline-flex; justify-content: center; margin: 0; padding: 0; min-height: 0; vertical-align: middle; }
.eo-edit .eo-rcp-table .form-check-input {
    width: 42px;
    height: 24px;
    margin: 0;
    cursor: pointer;
    background-color: #cdd4de;
    border-color: #cdd4de;
    box-shadow: none;
    float: none;
}
.eo-edit .eo-rcp-table .form-check-input:checked { background-color: #1d9e52; border-color: #1d9e52; }
.eo-edit .eo-rcp-table .form-check-input:focus { box-shadow: 0 0 0 3px rgba(47, 114, 216, .14); border-color: #2f72d8; }
.eo-edit .eo-rcp-table .form-check-label { display: none; }
.eo-edit .eo-rcp-table .eo-rcp-input {
    border: 1px solid var(--eo-line-2);
    border-radius: 8px;
    font-size: .78rem;
    padding: 5px 9px;
    width: 100%;
    max-width: 220px;
}
.eo-edit .eo-rcp-table .eo-rcp-input:focus { outline: none; border-color: #2f72d8; box-shadow: 0 0 0 3px rgba(47, 114, 216, .14); }
/* view-mode check marks */
.eo-edit .eo-rcp-table .eo-chk { color: #16a34a; font-size: 1.05rem; }
.eo-edit .eo-rcp-table .eo-nochk { color: #cdd4de; font-size: 1.05rem; }
.eo-edit .eo-rcp-table .eo-rcp-extra { font-size: .72rem; color: var(--eo-soft); font-weight: 500; display: block; margin-top: 2px; }

/* ===== Composer: editor/textarea + placeholder chip tray ===== */
.eo-edit .eo-composer { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: start; }
@media (max-width: 700px) { .eo-edit .eo-composer { grid-template-columns: 1fr; } }
.eo-edit .eo-tray {
    border: 1px solid var(--eo-line);
    border-radius: 14px;
    background: #fafbfd;
    padding: 12px;
    max-height: 380px;
    overflow: auto;
}
.eo-edit .eo-tray .eo-tray-title {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--eo-muted);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.eo-edit .eo-tray .eo-grp { font-size: .64rem; font-weight: 700; color: var(--eo-muted); margin: 10px 0 5px; }
.eo-edit .eo-tray .eo-grp:first-of-type { margin-top: 0; }
.eo-edit .eo-tray .eo-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.eo-edit .eo-tray .variable-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .66rem;
    font-weight: 600;
    border-radius: 99px;
    padding: 3px 9px;
    cursor: pointer;
    border: none;
    color: #fff;
}
.eo-edit .eo-tray .variable-tag:hover { filter: brightness(.92); }
.eo-edit .eo-tray .variable-tag i { font-size: .6rem; }
.eo-edit .eo-tray .eo-tip { font-size: .64rem; color: var(--eo-muted); margin-top: 10px; display: flex; align-items: center; gap: 5px; }

/* SMS char/segment counter under the textarea */
.eo-edit .eo-sms-count { display: flex; gap: 14px; font-size: .74rem; color: var(--eo-soft); margin-top: 6px; padding-left: 2px; flex-wrap: wrap; }
.eo-edit .eo-sms-count b { color: var(--eo-ink); }

/* Informational note strip (e.g. "global footer is appended automatically") */
.eo-edit .eo-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    color: #92600a;
    background: #fff8e6;
    border: 1px solid #f3dfae;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 10px;
}
.eo-edit .eo-note-plain { color: var(--eo-soft); background: #f6f8fb; border-color: var(--eo-line); }

/* ===== Read-only view pieces ===== */
/* fact cards */
.eo-edit .eo-fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .eo-edit .eo-fact-grid { grid-template-columns: 1fr; } }
.eo-edit .eo-fact { border: 1px solid var(--eo-line); border-radius: 12px; padding: 10px 13px; background: #fff; }
.eo-edit .eo-fact label {
    display: block;
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--eo-muted);
    margin-bottom: 2px;
}
.eo-edit .eo-fact b { font-size: .87rem; font-weight: 600; }
.eo-edit .eo-fact code { font-size: .78rem; }

/* delivery-channel summary rows */
.eo-edit .eo-sum-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--eo-line);
    border-radius: 12px;
    margin-bottom: 9px;
    background: #fff;
}
.eo-edit .eo-sum-row .eo-who { width: 34px; height: 34px; font-size: 1rem; }
.eo-edit .eo-sum-row .eo-tx b { font-size: .84rem; font-weight: 600; display: block; }
.eo-edit .eo-sum-row .eo-tx span { font-size: .73rem; color: var(--eo-soft); }
.eo-edit .eo-sum-row .eo-pill { margin-left: auto; flex: 0 0 auto; }

/* inbox-style email preview frame */
.eo-edit .eo-mail-frame { border: 1px solid var(--eo-line-2); border-radius: 14px; overflow: hidden; background: #fff; }
.eo-edit .eo-mail-frame .eo-mf-head { background: #fafbfd; border-bottom: 1px solid var(--eo-line); padding: 11px 16px; }
.eo-edit .eo-mail-frame .eo-mf-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--eo-muted); }
.eo-edit .eo-mail-frame .eo-mf-subject { font-size: .92rem; font-weight: 700; margin-top: 2px; }
.eo-edit .eo-mail-frame .eo-mf-body { padding: 16px 18px; font-size: .86rem; line-height: 1.55; color: var(--eo-ink); max-height: 300px; overflow: auto; }
.eo-edit .eo-mail-frame .eo-mf-foot {
    border-top: 1px dashed var(--eo-line-2);
    background: #fafbfd;
    padding: 9px 16px;
    font-size: .72rem;
    color: var(--eo-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* phone-frame SMS preview */
.eo-edit .eo-sms-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .eo-edit .eo-sms-wrap { grid-template-columns: 1fr; } }
.eo-edit .eo-phone {
    border: 1px solid var(--eo-line-2);
    border-radius: 26px;
    background: #f6f8fb;
    padding: 16px 14px 20px;
    box-shadow: inset 0 0 0 5px #fff, 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .08);
}
.eo-edit .eo-phone .eo-notch { width: 70px; height: 5px; border-radius: 99px; background: #dfe4ec; margin: 0 auto 14px; }
.eo-edit .eo-phone .eo-from { text-align: center; font-size: .72rem; font-weight: 700; color: var(--eo-soft); margin-bottom: 12px; text-transform: uppercase; }
.eo-edit .eo-bubble {
    background: #e9e9eb;
    border-radius: 18px 18px 18px 5px;
    padding: 10px 13px;
    font-size: .8rem;
    line-height: 1.45;
    color: #111;
    max-width: 95%;
    white-space: pre-wrap;
    word-break: break-word;
}
.eo-edit .eo-sms-stats { font-size: .75rem; color: var(--eo-soft); }
.eo-edit .eo-sms-stats .eo-stat {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid var(--eo-line);
    border-radius: 11px;
    background: #fff;
    margin-bottom: 8px;
}
.eo-edit .eo-sms-stats .eo-stat i { color: var(--eo-brand-1); }
.eo-edit .eo-sms-stats .eo-stat b { color: var(--eo-ink); }

/* ===== Asset uploaders (org branding panel) ===== */
.eo-edit .eo-assets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .eo-edit .eo-assets { grid-template-columns: 1fr; } }
.eo-edit .eo-up { border: 1px dashed var(--eo-line-2); border-radius: 14px; padding: 14px; text-align: center; background: #fafbfd; }
.eo-edit .eo-up .eo-pv {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--eo-line-2);
    color: var(--eo-brand-2);
    font-size: 1.5rem;
}
.eo-edit .eo-up .eo-pv img { max-width: 84%; max-height: 84%; object-fit: contain; }
.eo-edit .eo-up .eo-nm { font-size: .8rem; font-weight: 600; }
.eo-edit .eo-up .eo-meta { font-size: .69rem; color: var(--eo-muted); margin: 2px 0 8px; }
.eo-edit .eo-up input[type="file"] { font-size: .74rem; }

/* signature / placeholder variable tags outside the tray (legacy badges) */
.eo-edit .variable-tag { cursor: pointer; color: #fff; border: none; }
