.ep-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px;margin-top:auto}.ep-entry{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.ep-entry small{font-size:12px;color:#627187}.ep-actions .xp-selection-action{margin:0}.ep-actions svg,.crm-power-entry svg{width:20px;height:20px;flex:none}.crm-power-entry{display:inline-flex;align-items:center;gap:8px}
#ep-dialog{box-sizing:border-box;width:min(1050px,calc(100vw - 28px));max-width:none;max-height:92dvh;padding:22px;border:1px solid #e7d9ed;border-radius:22px;color:#1b2943;background:#fff;font-family:inherit;overflow:auto}#ep-dialog::backdrop{background:#17243e88;backdrop-filter:blur(3px)}#ep-dialog .ep-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 0 12px;border-bottom:1px solid #eee4f0;background:none;margin:0;min-height:0}#ep-dialog .ep-heading>div{display:flex;align-items:center;gap:12px}#ep-dialog h2{font-size:22px;line-height:1.25;margin:0;font-weight:700}#ep-dialog svg{display:block}#ep-dialog .ep-heading svg{width:32px;height:32px;color:var(--crm-accent,#eb008b);flex:none}#ep-dialog button{font-family:inherit;font-size:14px;line-height:1.3;cursor:pointer;border-radius:12px;box-shadow:none;min-width:0}#ep-dialog [data-ep-close]{padding:5px;width:38px;height:38px;font-size:25px;border:1px solid #ebd4e8;color:var(--crm-accent,#eb008b);background:#fff;flex:none}#ep-dialog .ep-help{font-size:15px;line-height:1.5;margin:12px 0;color:#53627b}#ep-dialog .ep-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}#ep-dialog .ep-tabs button{display:flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #e5dbec;background:#fff;color:#53627b}#ep-dialog .ep-tabs button[aria-pressed=true]{background:#fff1f9;border-color:var(--crm-accent,#eb008b);color:var(--crm-accent,#eb008b)}#ep-dialog .ep-tabs svg{width:20px;height:20px}#ep-dialog .ep-tabs small{font-size:16px;font-weight:700}#ep-dialog .ep-editor{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:18px;align-items:start}#ep-dialog .ep-plan{min-width:0;border:1px solid #ece4f0;border-radius:14px;overflow:hidden}#ep-dialog .ep-canvas{width:100%;height:min(54vh,530px);min-height:280px;background:#fcfafd;touch-action:none;cursor:crosshair}#ep-dialog .ep-marker{cursor:grab}#ep-dialog .ep-marker:focus rect{stroke:#00a9de;stroke-width:6}#ep-dialog .ep-distances{font-size:12px;text-align:center;min-height:20px;padding:7px 10px;background:#fbf6fa;color:#53627b}#ep-dialog .ep-notes label{display:flex;flex-direction:column;gap:8px;font-weight:600;font-size:14px}#ep-dialog textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #ded4e8;border-radius:12px;font-family:inherit;font-size:14px;line-height:1.5;resize:vertical;background:#fff}#ep-dialog .ep-preview,#ep-dialog .ep-status{font-size:13px;line-height:1.5}#ep-dialog .ep-preview{color:#627187}#ep-dialog .ep-status{color:#247961}#ep-dialog [data-ep-save]{display:block;width:100%;padding:12px 10px;background:var(--crm-accent,#eb008b);color:#fff;border:0;font-weight:700}#ep-dialog button:disabled{opacity:.45;cursor:default}
@media(max-width:700px){#ep-dialog{padding:16px;max-height:95dvh}#ep-dialog h2{font-size:19px}#ep-dialog .ep-editor{grid-template-columns:1fr;gap:12px}#ep-dialog .ep-canvas{height:42vh;min-height:230px}#ep-dialog textarea{min-height:70px}#ep-dialog .ep-preview:empty,#ep-dialog .ep-status:empty{display:none}}

/* Static plan symbols are a key, never additional placement tools. */
#ep-dialog .ep-canvas{cursor:default}#ep-dialog .ep-canvas.is-placing{cursor:crosshair}
#ep-dialog .ep-legend{display:flex;flex-wrap:wrap;gap:9px 18px;margin:12px 0 14px;padding:12px 14px;border:1px solid #eee4ed;border-radius:12px;background:#fcf9fc;font-size:12px;line-height:1.4;color:#53627b}
#ep-dialog .ep-legend>span{display:inline-flex;align-items:center;gap:8px;min-width:0}#ep-dialog .ep-legend i{display:inline-block;box-sizing:border-box;flex:none;font-style:normal}
#ep-dialog .ep-key-tv{width:24px;height:8px;border-radius:2px;background:#121d2c}#ep-dialog .ep-key-table{width:25px;height:13px;background:#fff;border:2px solid #c9a27a;border-radius:3px}
#ep-dialog .ep-key-box{display:inline-grid!important;place-items:center;width:22px;height:22px;border:2px solid #fff;border-radius:5px;background:var(--crm-accent,#eb008b);color:#fff;font-size:14px}
#ep-dialog .ep-placement{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:0 0 14px}#ep-dialog [data-ep-place]{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border:1px solid var(--crm-accent,#eb008b);background:var(--crm-accent,#eb008b);color:#fff;font-weight:700}#ep-dialog [data-ep-place][aria-pressed=true]{outline:3px solid #f6c9e3;outline-offset:2px}#ep-dialog .ep-place-hint{font-size:13px;line-height:1.4;color:#53627b}#ep-dialog .ep-tabs small{font-size:12px}
@media(max-width:700px){#ep-dialog .ep-legend{gap:10px;font-size:12px}#ep-dialog .ep-placement{align-items:stretch;flex-direction:column}#ep-dialog [data-ep-place]{width:100%}}

#ep-dialog .ep-key-box svg{width:14px;height:14px;color:#fff}

/* Equal adjacent actions; a saved-position note occupies its own row. */
.xp-shell #xp-power-choice .ep-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px 10px;width:100%;min-width:0}
.xp-shell #xp-power-choice .ep-actions>.ep-entry{display:contents}
.xp-shell #xp-power-choice .ep-actions .xp-selection-action{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;max-width:100%;min-width:0;min-height:46px;height:100%;margin:0;padding:10px 12px;text-align:center;white-space:normal;line-height:1.4}
.xp-shell #xp-power-choice .ep-actions .xp-selection-action>span{min-width:0;overflow-wrap:anywhere}
.xp-shell #xp-power-choice .ep-actions .ep-entry>small{grid-column:2;font-size:12px;line-height:1.4;margin:0}
