:root {
  --navy: #05092A;
  --navy-2: #0B1340;
  --navy-3: #16205A;
  --ice: #BFD3FF;
  --line: #FFFFFF;
  --magenta: #E6007E;
  --text: #EAF0FF;
  --muted: #8C9AC7;
  --rule: rgba(191, 211, 255, 0.18);
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--navy);
  background-image:
    linear-gradient(rgba(191, 211, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 211, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font: 15px/1.55 'IBM Plex Sans', system-ui, sans-serif;
  min-height: 100vh;
}
h1, h2, h3 { font-family: 'Chivo', system-ui, sans-serif; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(5, 9, 42, 0.88); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
/* Official logo at the 60 px digital minimum; the product name sits a full b height (43 px) away. */
.brand { display: flex; align-items: center; gap: 44px; letter-spacing: 0.02em; min-width: 0; }
.brand .logo { height: 60px; width: auto; flex: none; }
.brand .product { font-family: 'Chivo', sans-serif; font-weight: 700; color: var(--ice); border-left: 1px solid var(--rule); padding-left: 44px; }
.gate-logo { height: 80px; width: auto; margin: 0 auto 8px; }

.gate { min-height: 80vh; display: grid; place-items: center; padding: 24px 16px; }
.gate form { width: min(380px, 100%); display: grid; gap: 14px; text-align: center; }
.gate h1 { font-size: 30px; font-weight: 900; }
.gate input { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--navy-2); }

.layout {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px);
  padding: 28px clamp(16px, 4vw, 40px) 80px; max-width: 1480px; margin: 0 auto;
}
.rail { position: sticky; top: 90px; align-self: start; }
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 4px; }
.rail li { counter-increment: s; padding: 10px 12px; border-left: 2px solid var(--rule); color: var(--muted); font-weight: 500; }
.rail li::before { content: '0' counter(s) '  '; font-family: 'Chivo', sans-serif; font-size: 12px; white-space: pre; }
.rail li.active { color: var(--text); border-color: var(--magenta); }
.rail li.done { color: var(--ice); border-color: var(--ice); }
.rail-note { margin-top: 24px; font-size: 12px; color: var(--muted); }

.flow { display: grid; gap: 28px; min-width: 0; }
.step { scroll-margin-top: 80px; border: 1px solid var(--rule); border-radius: 16px; padding: clamp(16px, 2.5vw, 28px); background: rgba(11, 19, 64, 0.55); }
.step[data-state="locked"] { opacity: 0.35; pointer-events: none; }
.step[data-state="locked"] > :not(h2) { display: none; }
.step h2 { font-size: 22px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.step h2 span { color: var(--magenta); font-size: 14px; letter-spacing: 0.1em; }
.hint { color: var(--muted); margin: 6px 0 18px; }
.muted { color: var(--muted); }
.err { color: #FF7AB8; }

.btn { border: 1px solid var(--ice); background: transparent; color: var(--ice); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: default; }
/* The main action reads clearly as ready; when it cannot be used it becomes an outline, not a faded fill. */
.btn.primary:not(:disabled) { box-shadow: 0 0 0 0 rgba(230, 0, 126, 0.5), 0 6px 20px rgba(230, 0, 126, 0.35); }
.btn.primary:not(:disabled):hover { filter: brightness(1.1); }
.btn.primary:disabled { opacity: 1; background: transparent; border-color: var(--rule); color: var(--muted); }
.btn:focus-visible, .card:focus-visible, .chip:focus-visible, .tabs button:focus-visible, .photo-pick:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { text-align: left; background: var(--navy-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0; cursor: pointer; overflow: hidden; display: grid; }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card div { padding: 12px 14px 14px; }
.card b { display: block; font-family: 'Chivo', sans-serif; }
.card small { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.card[aria-pressed="true"] { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta); }

.new-account { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 14px; }
.new-account summary { cursor: pointer; color: var(--ice); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; align-items: end; }
.form-grid label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 9px 10px; color: var(--text); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.photo-pick { padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none; }
.photo-pick img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.photo-pick span { display: block; font-size: 11px; color: var(--muted); padding: 6px 8px; text-align: left; }
.drop { display: grid; place-items: center; text-align: center; padding: 26px 16px; border: 1.5px dashed var(--ice); border-radius: var(--radius); cursor: pointer; color: var(--ice); }
.drop.over { background: rgba(230, 0, 126, 0.12); border-color: var(--magenta); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop small { color: var(--muted); }

.reveal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.tabs-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tabs-actions .btn { white-space: nowrap; }
.tabs button { background: none; border: 1px solid var(--rule); color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; }
.tabs button[aria-selected="true"] { color: var(--navy); background: var(--ice); border-color: var(--ice); }
.tabs button:disabled { opacity: 0.35; cursor: default; }

.reveal { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: var(--navy-2); border: 1px solid var(--rule); touch-action: pan-y; user-select: none; }
.reveal .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.6, 0, .2, 1); }
.reveal .layer.base { clip-path: none; transition: none; }
.reveal .layer.shown { clip-path: inset(0 0 0 0); }
.reveal.split .layer.split-right { transition: none; clip-path: inset(0 0 0 var(--pos)); }
.reveal.split.soft .layer.split-right { clip-path: none;
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--pos) - 7%), #000 calc(var(--pos) + 7%));
  mask-image: linear-gradient(90deg, transparent calc(var(--pos) - 7%), #000 calc(var(--pos) + 7%)); }
.reveal .scan { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; color: var(--ice); font-family: 'Chivo', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px;
  background: linear-gradient(90deg, transparent, rgba(191, 211, 255, 0.12), transparent) no-repeat; background-size: 30% 100%; animation: scan 2.2s linear infinite; }
@keyframes scan { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; cursor: ew-resize; display: none; z-index: 5; }
.handle::before { content: ''; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--line); box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); }
.handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--line); color: var(--navy); display: grid; place-items: center; font-weight: 700; }
.reveal.split .handle { display: block; }
.reveal.split.soft .handle::before { opacity: 0.35; }

.hotspot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--magenta); padding: 0; cursor: pointer; z-index: 6;
  background: #fff; color: var(--navy); font: 700 13px/26px 'Chivo', sans-serif; text-align: center; box-shadow: 0 0 0 4px rgba(5, 9, 42, 0.55), 0 0 18px rgba(255, 255, 255, 0.7);
  opacity: 0; transform: scale(0.4); transition: opacity .4s, transform .4s; pointer-events: none; }
.hotspot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--magenta); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.reveal.show-hotspots .hotspot { opacity: 1; transform: none; pointer-events: auto; }
.popover { position: fixed; z-index: 50; max-width: 300px; background: var(--navy); border: 1px solid var(--magenta); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.popover b { font-family: 'Chivo', sans-serif; display: block; margin-bottom: 4px; }
.popover small { display: block; margin-top: 8px; color: var(--muted); }

.split-opts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.split-opts .sep { border-left: 1px solid var(--rule); padding-left: 14px; }
.progress { min-height: 1.5em; margin: 12px 0 0; color: var(--ice); font-size: 14px; }
.progress .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); margin-right: 8px; animation: pulse 1.4s infinite; vertical-align: middle; }

.elements { margin-top: 18px; }
.elements h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { border: 1px solid var(--rule); background: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.chip[aria-pressed="true"] { border-color: var(--magenta); color: #fff; background: rgba(230, 0, 126, 0.22); }

.story { border-left: 2px solid var(--magenta); padding-left: 20px; display: grid; gap: 14px; }
.story .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--magenta); font-weight: 600; }
.story h3 { font-size: 26px; font-weight: 900; line-height: 1.15; }
.story .sub { color: var(--ice); }
.story .cta { color: var(--magenta); font-weight: 600; }
.story .pp { background: var(--navy-2); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.story ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.story ol b { color: #fff; }
.skeleton { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--navy-2), var(--navy-3), var(--navy-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.asset-opts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 18px; font-size: 14px; }
.asset-opts select { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; }
.asset-strip { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.asset-strip figure { margin: 0; display: grid; gap: 6px; }
.asset-strip canvas { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--rule); background: var(--navy-2); }
.asset-strip figcaption { font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) { .reveal-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; padding-top: 16px; }
  .rail { position: static; }
  .rail ol { grid-template-columns: repeat(4, 1fr); }
  .rail li { border-left: 0; border-top: 2px solid var(--rule); padding: 8px 4px; font-size: 12px; }
  .rail-note { display: none; }
  .brand .product { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.photo-pick.saved { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta); }
.photo-pick.saved b { color: #fff; }
.marker { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 2px solid var(--magenta); border-radius: 7px; background: rgba(230, 0, 126, 0.3);
  color: #fff; font: 700 13px/24px 'Chivo', sans-serif; text-align: center; z-index: 7; pointer-events: none; display: none; box-shadow: 0 0 0 3px rgba(5, 9, 42, 0.5); }
.reveal.show-markers .marker { display: block; }
.reveal.placing { cursor: crosshair; }
.panel { margin-top: 18px; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; display: grid; gap: 12px; background: rgba(5, 9, 42, 0.45); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.panel h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ice); }
.small { font-size: 13px; }
.sub-head { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toggle { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--text); }
.panel select, .field textarea { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; color: var(--text); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field textarea { font: 14px/1.45 'IBM Plex Sans', sans-serif; resize: vertical; }
.linkish { background: none; border: 0; color: var(--ice); cursor: pointer; padding: 0; font-size: 14px; text-align: left; justify-self: start; }
.linkish:hover { text-decoration: underline; }
.markers { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.markers li { display: grid; grid-template-columns: 30px minmax(0, 150px) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.markers .num { width: 26px; height: 26px; border: 2px solid var(--magenta); border-radius: 7px; display: grid; place-items: center; font: 700 12px 'Chivo', sans-serif; }
.markers input, .markers select { min-width: 0; background: var(--navy); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; color: var(--text); font-size: 13px; }
.markers button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; padding: 0 4px; }
.markers .why { grid-column: 2 / -1; font-size: 12px; color: var(--muted); margin-top: -4px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--muted); padding: 7px 14px; cursor: pointer; font-weight: 600; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--ice); color: var(--navy); }
.story-controls { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.story [contenteditable="true"] { outline: none; border-radius: 4px; transition: background .2s; }
.story [contenteditable="true"]:hover { background: rgba(191, 211, 255, 0.06); }
.story [contenteditable="true"]:focus { background: rgba(191, 211, 255, 0.1); box-shadow: 0 0 0 1px var(--rule); }
.edit-note { font-size: 12px; color: var(--muted); }
.asset-opts label { display: flex; gap: 6px; align-items: center; }
.custom-size { margin-top: -6px; }
.custom-size input { width: 90px; background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; color: var(--text); }
.how { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; background: rgba(191, 211, 255, 0.04); }
.how summary { cursor: pointer; color: var(--ice); font-weight: 600; font-size: 14px; }
.how ol { margin: 10px 0 2px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--text); }
.cards-head { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 18px 0 10px; }
.cards-head:first-child { margin-top: 0; }

/* ---------- asset cards ---------- */
.asset-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-flow: dense; gap: 18px; align-items: start; }
.asset-card { margin: 0; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--navy-2); }
.asset-card.wide { grid-column: span 2; }
.asset-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.asset-card figcaption .muted { color: var(--muted); }
.card-actions { display: flex; gap: 12px; align-items: center; }
/* The frame takes the asset's own shape, so there is no blank bumper around it. */
.asset-frame { display: grid; place-items: center; background: var(--navy); border-radius: 8px; overflow: hidden; }
.asset-strip .asset-frame canvas { width: 100%; height: auto; border: 0; border-radius: 4px; cursor: zoom-in; }
.asset-card.tall { grid-row: span 2; }
.asset-strip canvas:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
@media (max-width: 760px) { .asset-card.wide { grid-column: auto; } .asset-card.tall { grid-row: auto; } }

/* ---------- asset editor (near full screen) ---------- */
.editor { border: 1px solid var(--rule); border-radius: 14px; background: var(--navy); color: var(--text); padding: 0; width: 98vw; max-width: 98vw; height: 96vh; max-height: 96vh; }
.editor::backdrop { background: rgba(2, 4, 20, 0.85); }
.ed-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr); height: 100%; }
.ed-head { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--rule); }
.ed-head > div:first-child { min-width: 200px; }
.ed-head h3 { margin: 2px 0 0; font-family: Chivo, sans-serif; font-size: 20px; }
.ed-head .eyebrow { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--magenta); font-weight: 600; }
.ed-sizes { flex: 1; display: flex; gap: 6px; overflow-x: auto; padding: 2px; }
.ed-sizes button { flex: none; background: none; border: 1px solid var(--rule); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ed-sizes button[aria-current="true"] { background: var(--ice); color: var(--navy); border-color: var(--ice); }
.ed-sizes button i { color: var(--magenta); font-style: normal; }
.ed-sizes button:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.ed-nav { display: flex; gap: 8px; }
.ed-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 32vw, 560px); min-height: 0; }
.ed-stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px; min-height: 0; place-items: center; background: #030628; }
.ed-stage canvas { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 0 0 1px var(--rule); touch-action: none; }
.ed-stage canvas.dragging { cursor: grabbing !important; }
.ed-stage canvas:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
.ed-panel { display: grid; gap: 14px; align-content: start; padding: 16px 20px; overflow-y: auto; border-left: 1px solid var(--rule); }
.ed-group { border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
.ed-group legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.ed-group .seg { display: grid; grid-template-columns: repeat(4, 1fr); }
.ed-group .seg button { padding: 8px 6px; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button:focus-visible { outline: 2px solid var(--magenta); outline-offset: -2px; }
.ed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.ed-row output { min-width: 2.4em; text-align: center; font-weight: 700; }
.btn.sm { padding: 5px 14px; font-size: 13px; }
.ed-field { display: grid; gap: 6px; }
.ed-field + .ed-field { margin-top: 6px; }
.ed-toggle { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.ed-field input[type="text"], .ed-field textarea { width: 100%; background: var(--navy-2); color: var(--text); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; resize: vertical; }
.ed-field input[type="text"]:focus, .ed-field textarea:focus { outline: 2px solid var(--magenta); outline-offset: 0; }
@media (max-width: 960px) {
  .ed-body { grid-template-columns: 1fr; grid-template-rows: 55vh auto; overflow-y: auto; }
  .ed-panel { border-left: 0; border-top: 1px solid var(--rule); overflow: visible; }
  .ed-head { flex-wrap: wrap; }
}
.ed-num { width: 26px; height: 26px; border-radius: 50%; background: var(--magenta); color: #fff; display: grid; place-items: center; font: 700 13px Chivo, sans-serif; margin-top: 6px; }
.ed-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; font-size: 13px; color: var(--text); }
.ed-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ed-legend .k { width: 16px; height: 10px; border: 2px dashed; border-radius: 2px; display: inline-block; }
.ed-legend .k.text { border-color: #00C7FE; }
.ed-legend .k.co { border-color: #FDD600; }
.ed-legend .k.img { border: 2px solid var(--muted); }
.ed-stage canvas[data-hover="text"], .ed-stage canvas[data-hover="label"], .ed-stage canvas[data-hover="marker"] { cursor: move; }
.ed-stage canvas[data-hover="image"] { cursor: grab; }
.ed-select { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; font-size: 14px; }
.ed-select select { background: var(--navy-2); color: var(--text); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 14px; }
.ed-row input[type="range"] { flex: 1; accent-color: var(--magenta); }
.ed-callout { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--rule); }
.ed-callout:first-child { border-top: 0; padding-top: 0; }
.ed-callout.off .ed-co-body > label { opacity: 0.5; }
.ed-co-body { display: grid; gap: 8px; }
.ed-co-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-num.none { background: var(--navy-3); color: var(--muted); }
.ed-sub { display: grid; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.ed-sub input, .ed-sub textarea { text-transform: none; letter-spacing: normal; font-weight: 400; width: 100%; background: var(--navy-2); color: var(--text); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; resize: vertical; }
.ed-sub input { font-weight: 700; }
.ed-sub input:focus, .ed-sub textarea:focus { outline: 2px solid var(--magenta); outline-offset: 0; }
.ed-sub-fixed { margin: 0; font-size: 14px; }
.linkish.small { font-size: 12px; }
.ed-stage canvas.placing, .ed-stage canvas.placing[data-hover] { cursor: crosshair !important; }
#ed-co-add[aria-pressed="true"] { background: var(--magenta, #F50650); border-color: var(--magenta, #F50650); color: #fff; }
.linkish.danger { color: #F50650; }

/* ---------- render progress ---------- */
.run-status { margin-top: 12px; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: rgba(5, 9, 42, 0.6); display: grid; gap: 10px; }
.run-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: 'Chivo', sans-serif; }
.run-bar { height: 6px; border-radius: 999px; background: var(--navy-3); overflow: hidden; }
.run-bar span { display: block; height: 100%; width: 0; background: var(--magenta); border-radius: 999px; transition: width 1s linear; }
.run-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.run-steps li::before { content: '○'; margin-right: 6px; }
.run-steps li.done { color: var(--ice); }
.run-steps li.done::before { content: '✓'; }
.run-steps li.active { color: #fff; font-weight: 600; }
.run-steps li.active::before { content: '●'; color: var(--magenta); }
.run-status .muted { margin: 0; }
.run-status.slow .run-bar span { background: var(--ice); }

/* ---------- recent runs ---------- */
.recent { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; }
.recent-head .cards-head { margin: 0; }
.recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.recent-card { position: relative; }
.recent-open { width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; text-align: left; padding: 6px; background: var(--navy-2); border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; }
.recent-open:hover { border-color: var(--ice); }
.recent-open:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.recent-open img { width: 96px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--navy-3); }
.recent-open b { display: block; font-family: 'Chivo', sans-serif; font-size: 14px; line-height: 1.25; padding-right: 18px; }
.recent-open small { color: var(--muted); font-size: 12px; }
.recent-x { position: absolute; top: 4px; right: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 4px; }
.recent-x:hover { color: #fff; }
#reset-story { justify-self: start; }
.card-actions { white-space: nowrap; flex: none; }
.card-name { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.card-name .pick { width: 18px; height: 18px; accent-color: var(--magenta); flex: none; margin: 0; }
.asset-card.picked { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta); }
.asset-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: -4px 0 18px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: rgba(5, 9, 42, 0.45); }

/* ---------- team library ---------- */
.library { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; }
#lib-filter { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 10px; color: var(--text); width: min(260px, 50%); }
.lib-empty { color: var(--muted); font-size: 14px; margin: 0; }
.recent-x.confirm { font-size: 12px; color: #fff; background: #B0003A; border-radius: 6px; padding: 3px 8px; }
.save-panel { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: -6px 0 18px; padding: 12px 14px; border: 1px solid var(--magenta); border-radius: 12px; background: rgba(230, 0, 126, 0.08); }
.save-panel label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.save-panel input { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; color: var(--text); width: min(320px, 70vw); }
.top #go-library { flex: none; }
.asset-card figcaption { flex-wrap: wrap; row-gap: 6px; }
.lib-tools { display: flex; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; }
.lib-tools #lib-filter { width: 220px; }
@media (max-width: 760px) { .lib-tools { flex-wrap: wrap; width: 100%; } .lib-tools #lib-filter, #lib-account { width: 100%; max-width: none; } }
#lib-account { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 8px; color: var(--text); max-width: 220px; }
.recent-head { gap: 12px; flex-wrap: wrap; }
/* A long library scrolls inside its own panel rather than pushing the accounts down the page. */
#lib-list.scroll { max-height: 460px; overflow-y: auto; padding: 4px 6px 4px 0; overscroll-behavior: contain; }
#lib-more { justify-self: start; }

/* ---------- full team library (opened from the header or step 1) ---------- */
.lib-dialog { border: 1px solid var(--rule); border-radius: 14px; background: var(--navy); color: var(--text); padding: 0; width: min(1240px, 96vw); max-width: 96vw; height: min(860px, 92vh); max-height: 92vh; }
.lib-dialog::backdrop { background: rgba(2, 4, 20, 0.85); }
.ld-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.ld-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.ld-head > div:first-child { flex: 1; min-width: 180px; }
.ld-head .eyebrow { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--magenta); font-weight: 600; }
.ld-head h3 { margin: 2px 0 0; font-size: 20px; }
.ld-head select, .ld-head input { background: var(--navy-2); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 10px; color: var(--text); }
.ld-head .lib-tools #ld-filter { width: 220px; }
.ld-grid { overflow-y: auto; padding: 18px 20px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-content: start; }
.ld-grid .recent-open { grid-template-columns: 120px 1fr; }
.ld-grid .recent-open img { width: 120px; }
@media (max-width: 760px) { .ld-head .lib-tools { width: 100%; flex-wrap: wrap; } .ld-head .lib-tools > * { width: 100%; } .ld-head .lib-tools #ld-filter { width: 100%; } }
.save-panel { margin: 22px 0 0; }
.save-head { display: grid; gap: 2px; flex: 1 1 100%; }
.save-head b { font-family: 'Chivo', sans-serif; }
.recent-rename { position: absolute; top: 4px; right: 30px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; }
.recent-rename:hover, .recent-rename:focus-visible { color: #fff; }
.recent-open b { padding-right: 44px; }
.rename-form { display: grid; gap: 8px; padding: 10px 12px; background: var(--navy-2); border: 1px solid var(--magenta); border-radius: var(--radius); }
.rename-form label { display: grid; gap: 4px; }
.rename-form input { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 9px; color: var(--text); font-weight: 600; }

/* ---------- UX pass: navigation, guidance and safety ---------- */
#open-help { margin-top: 10px; }
.gate .remember { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }

.welcome { border: 1px solid var(--magenta); border-radius: 12px; padding: 14px 18px; margin: 12px 0 18px; background: rgba(230, 0, 126, 0.07); display: grid; gap: 8px; }
.welcome p { margin: 0; }
.welcome ul { margin: 0; padding-left: 18px; color: var(--ice); font-size: 14px; display: grid; gap: 2px; }
.start-head { margin: 6px 0 0; }
.continue { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.continue .library { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
details.recent { margin: 0; padding: 0; border: 0; }
details.recent > summary { cursor: pointer; list-style: none; }
details.recent > summary::-webkit-details-marker { display: none; }
details.recent > summary .cards-head::before { content: '▸ '; }
details.recent[open] > summary .cards-head::before { content: '▾ '; }
details.recent .recent-head { margin: 8px 0; }

.photo-confirm { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr); gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--magenta); border-radius: 12px; background: rgba(5, 9, 42, 0.6); }
.photo-confirm img { width: 100%; border-radius: 8px; border: 1px solid var(--rule); }
.pc-side { display: grid; gap: 8px; }
.pc-side p { margin: 0; }
@media (max-width: 760px) { .photo-confirm { grid-template-columns: 1fr; } }

.story .story-title { font-size: 14px; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ice); }
.main-row { margin-top: 2px; }
details.fine { border-top: 1px solid var(--rule); padding-top: 10px; display: grid; gap: 12px; }
details.fine[open] { display: grid; }
details.fine > summary { cursor: pointer; color: var(--ice); font-weight: 600; font-size: 14px; }
details.fine[open] > summary { margin-bottom: 4px; }
details.fine > * + * { margin-top: 12px; }
.rewrite-confirm { border: 1px solid var(--magenta); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; background: rgba(230, 0, 126, 0.08); }
.rewrite-confirm p { margin: 0; }

.assets-wait { border: 1px dashed var(--ice); border-radius: 12px; padding: 18px; display: grid; gap: 8px; justify-items: start; }
.assets-wait p { margin: 0; }
details.add-size { position: relative; }
details.add-size > summary { list-style: none; cursor: pointer; }
details.add-size > summary::-webkit-details-marker { display: none; }
details.add-size[open] .custom-size { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
#split-at-wrap input { width: 120px; accent-color: var(--magenta); }
#split-at-wrap input[type="number"] { width: 4.2em; padding: 3px 6px; font: inherit; font-size: 13px; text-align: right; color: var(--text); background: var(--navy-2); border: 1px solid var(--rule); border-radius: 6px; }
#split-at-wrap input[type="number"]:focus { outline: 2px solid var(--magenta); outline-offset: 1px; }
#split-at-wrap .unit { font-size: 13px; color: var(--muted); margin-left: -2px; }
.save-panel.unsaved #save-lib::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-left: 8px; vertical-align: middle; }
.save-panel.unsaved .save-head b::after { content: ' · not saved'; color: var(--ice); font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; font-size: 13px; }

.mini-dialog { border: 1px solid var(--rule); border-radius: 14px; background: var(--navy); color: var(--text); padding: 0; width: min(520px, 92vw); }
.mini-dialog.help { width: min(680px, 94vw); }
.mini-dialog::backdrop { background: rgba(2, 4, 20, 0.8); }
.md-body { padding: 20px 22px; display: grid; gap: 12px; }
.md-body h3 { font-size: 20px; }
.md-body p { margin: 0; }
.md-body ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; gap: 12px; align-items: center; background: var(--navy-2); border: 1px solid var(--ice); border-radius: 999px; padding: 8px 10px 8px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); font-size: 14px; max-width: 92vw; }

/* Account details (step 02) */
.acc-panel { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; margin: 4px 0 16px; background: rgba(4, 10, 40, 0.35); }
.acc-panel > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.acc-panel > summary::-webkit-details-marker { display: none; }
.acc-panel .acc-title { font-weight: 600; }
.acc-panel .acc-open { margin-left: auto; border: 1px solid var(--magenta); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(230, 0, 126, 0.18); }
.acc-panel > summary:hover .acc-open { background: rgba(230, 0, 126, 0.32); }
.acc-panel .acc-open::after { content: ' ▾'; }
.acc-panel[open] .acc-open::after { content: ' ▴'; }
.acc-panel .o-open, .acc-panel[open] .o-closed { display: none; }
.acc-panel[open] .o-open { display: inline; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--magenta); color: #fff; background: rgba(230, 0, 126, 0.18); }
.acc-view { display: grid; gap: 10px; margin: 12px 0; }
.acc-row { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 4px 16px; }
.acc-row.edited dt::after { content: ' · edited'; color: var(--magenta); font-weight: 400; }
.acc-row dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.acc-row dd { margin: 0; font-size: 14px; }
.acc-row dd p { margin: 0; }
.acc-row dd ul { margin: 0; padding-left: 18px; }
.acc-sources a { color: var(--ice, #BFD3FF); overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule); margin: 0 4px 4px 0; }
.acc-actions { flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.acc-form textarea { width: 100%; }
.acc-els { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.acc-els legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
@media (max-width: 560px) { .acc-row { grid-template-columns: 1fr; } }

/* Manage elements (Fine-tune) */
.el-manage > summary { cursor: pointer; }
.el-manage-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.el-row { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; align-items: flex-start; border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; }
.el-row > div:first-child { flex: 1 1 260px; min-width: 0; }
.el-row p { margin: 2px 0 0; }
.el-row .el-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.el-row .confirm { font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.el-row.editing form { width: 100%; }
.el-row .err { width: 100%; }
.btn.danger { border-color: #F50650; color: #fff; background: rgba(245, 6, 80, 0.25); }
.acc-form .acc-els label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.acc-form .acc-els label.check input { width: auto; margin: 0; }
.acc-facts .src, .acc-panel summary .src { font-size: 12px; color: var(--muted); text-decoration: underline; }
.badge.warn { border-color: #FE8A01; background: rgba(254, 138, 1, 0.15); }
.acc-factsed { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; }
.acc-factsed legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.fact-rows { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.fact-row { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.fact-row:last-child { border-bottom: 0; }
.fact-row textarea { width: 100%; font: 14px/1.45 'IBM Plex Sans', sans-serif; resize: vertical; min-height: 3.2em; }
.fact-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.fact-meta input { font-size: 12px; color: var(--muted); }
.acc-fill { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: end; }
.acc-fill [data-fill-status] { grid-column: 1 / -1; margin: 0; }
.acc-facts li { margin-bottom: 6px; }

/* Connectivity panel: always open, in numbered steps. */
.panel.conn { gap: 0; }
.conn-step { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--rule); }
.conn-step:first-of-type { border-top: 0; padding-top: 8px; }
.conn-step h4 { font: 700 14px 'Chivo', sans-serif; color: #fff; display: flex; align-items: center; gap: 8px; margin: 0; }
.conn-step h4 > span:first-child { width: 22px; height: 22px; border-radius: 50%; background: var(--magenta); color: #fff; display: grid; place-items: center; font-size: 12px; flex: none; }
.conn-step h4 .muted { font: 400 12px 'IBM Plex Sans', sans-serif; color: var(--muted); }
.conn-step .chips { margin-bottom: 0; }
.panel.conn > .how { margin-top: 6px; }
.btn[aria-pressed="true"] { background: var(--ice); color: var(--navy); border-color: var(--ice); }
.el-manage { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; }
.markers li.flash { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
.markers .from { color: var(--ice); }
.erase-size { display: inline-flex; align-items: center; gap: 6px; }
.erase-size input { width: 100px; }
/* Points on the image: always visible, draggable. */
.marker { pointer-events: auto; cursor: grab; padding: 0; touch-action: none; }
.marker.dragging { cursor: grabbing; transform: scale(1.15); }
.reveal.placing .marker { cursor: grab; }
.reveal.erasing { cursor: none; }
.reveal.erasing .marker { display: none !important; }
.brush { position: absolute; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,0,0,.4); pointer-events: none; z-index: 9; left: -999px; }

/* ---------- connectivity: make, then edit ---------- */
.conn-phase { margin: 14px 0 0; font: 700 11px 'Chivo', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta); }
.conn-phase .muted { font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; }
.conn-phase + .conn-step { border-top: 0; padding-top: 10px; }
.conn-step[aria-disabled="true"] { opacity: 0.4; }
.conn-step[aria-disabled="true"] > :not(h4) { pointer-events: none; }
.panel.conn > .how { margin: 4px 0 6px; }
.seg.density { display: inline-flex; }
.seg.density button { padding: 7px 16px; }
#open-help { margin-top: 14px; justify-self: start; }
.tidy-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--magenta); border-radius: 12px; background: rgba(230, 0, 126, 0.08); }
.tidy-bar b { font-family: 'Chivo', sans-serif; }
.reveal .preview { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 8; }

/* account panel: new fields and "what the website added" */
.acc-pages { grid-column: 1 / -1; }
.acc-pages textarea { min-height: 3.4em; }
.fresh, .fact-row.fresh { box-shadow: inset 3px 0 0 var(--magenta); padding-left: 8px; }
.badge.new { border-color: var(--magenta); background: rgba(230, 0, 126, 0.28); margin-left: 6px; }
.acc-form label.fresh { border-left: 0; box-shadow: none; }
.acc-form label.fresh textarea, .acc-form label.fresh input { border-color: var(--magenta); box-shadow: 0 0 0 1px rgba(230, 0, 126, 0.5); }
.acc-add-el { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; align-items: end; margin-top: 6px; }
.acc-add-el label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.acc-add-el input { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; color: var(--text); }

/* editor: save, undo and tight-fit flags */
.ed-unsaved { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--magenta); background: rgba(230, 0, 126, 0.1); font-size: 14px; }
.ed-nav .state { font-size: 12px; color: var(--muted); align-self: center; white-space: nowrap; }
.flag { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid #FDD600; color: #FDD600; }
.ed-stage canvas.erasing, .ed-stage canvas.erasing[data-hover] { cursor: crosshair !important; }
.ed-brush { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ed-brush input { width: 90px; accent-color: var(--magenta); }
#ed-erase[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); color: #fff; }
#ed-logo-pos { display: grid; grid-template-columns: repeat(4, 1fr); flex: 1; }
.ed-stage canvas[data-hover="text-edge"], .ed-stage canvas[data-hover="co-edge"] { cursor: ew-resize; }
