/* =====================================================================
   Ecom OS components  v1.0
   Requires tokens.css. Behaviors (lens, hover follow, morph, count-up,
   toast, sticky header, live field) live in behaviors.js.

   Naming: every class starts with eo- so nothing collides with Whop,
   Frosted UI, Tailwind or anything else in the app. (The mockup had a
   bug where a button variant called "ghost" shared its name with the
   hover highlight and turned invisible. The prefix rule prevents that.)
   Modifiers use --, states use .is-* or ARIA attributes.
   ===================================================================== */

/* ============ Base ============
   The mockup's base rules, so controls inherit the body font and nothing
   draws a border or a default margin. tokens.css sets the body font. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

/* ============ Shell ============ */
.eo-app {
  position: fixed; inset: 0;
  display: grid; grid-template-columns: var(--eo-sidebar-w) minmax(0, 1fr);
  padding: var(--eo-p-sheet) max(var(--eo-p-sheet), env(safe-area-inset-right, 0px)) var(--eo-p-sheet) 0;
  background: var(--eo-canvas);
  transition: grid-template-columns .45s var(--eo-ease);
}
.eo-app.is-compact { grid-template-columns: var(--eo-sidebar-w-compact) minmax(0, 1fr); }

.eo-side {
  display: flex; flex-direction: column; gap: 20px; min-height: 0; overflow: hidden;
  padding: 14px 12px 10px max(12px, env(safe-area-inset-left, 0px));
}
.eo-brand { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; flex: none; }
.eo-brand svg { width: 20px; height: 20px; flex: none; }
.eo-wordmark { font: 400 22px/1 var(--eo-font-serif); letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: flex-start; }
.eo-wordmark sup { font-size: 11px; line-height: 1; color: var(--eo-green); margin-left: 1px; position: relative; top: -1px; }

.eo-nav { position: relative; display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; }
.eo-nav__gap { height: 16px; flex: none; }
.eo-nav__fill { flex: 1; }
.eo-nav__item {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px; height: var(--eo-h-nav); padding: 0 10px;
  border-radius: var(--eo-r-ctl); color: var(--eo-ink-2); text-decoration: none; white-space: nowrap;
  font-size: var(--eo-text-14);
  transition: color var(--eo-dur-hover) var(--eo-ease);
}
.eo-nav__item .eo-i { color: var(--eo-ink-3); transition: color var(--eo-dur-hover) var(--eo-ease); }
.eo-nav__item:hover { color: var(--eo-ink); }
.eo-nav__item[aria-current="page"] { color: var(--eo-ink); }
.eo-nav__item[aria-current="page"] .eo-i { color: var(--eo-green); }
@media (prefers-reduced-motion: no-preference) {
  .eo-nav__item[aria-current="page"] .eo-i { animation: eo-nudge .5s var(--eo-spring); }
}
@keyframes eo-nudge { 40% { transform: scale(1.18); } }
.eo-nav__label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.eo-nav__count { font-size: 12.5px; color: var(--eo-ink-3); }
.eo-side__foot { display: grid; gap: 12px; flex: none; padding: 0 2px; }
.eo-trial { font-size: var(--eo-text-13); line-height: 19px; color: var(--eo-ink-3); padding: 0 8px; }
.eo-trial a { color: var(--eo-ink); text-decoration: none; border-bottom: 1px solid var(--eo-ink-4); }
.eo-trial a:hover { border-color: var(--eo-ink); }
.eo-account {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 8px;
  border: 0; border-radius: var(--eo-r-ctl); background: none; text-align: left; color: inherit; font: inherit;
  transition: background-color var(--eo-dur-hover) var(--eo-ease);
}
.eo-account:hover { background: var(--eo-fill); }
.eo-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font: 400 17px/1 var(--eo-font-serif); color: var(--eo-sheet); background: var(--eo-ink);
}
.eo-avatar--round { width: 38px; height: 38px; border-radius: 50%; font-size: 19px; }
.eo-account__text { flex: 1; min-width: 0; display: grid; line-height: 18px; }
.eo-account__text b { font-weight: 500; font-size: var(--eo-text-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-account__text span { font-size: var(--eo-text-12); color: var(--eo-ink-3); }

.eo-app.is-compact .eo-wordmark, .eo-app.is-compact .eo-nav__label, .eo-app.is-compact .eo-nav__count,
.eo-app.is-compact .eo-trial, .eo-app.is-compact .eo-account__text, .eo-app.is-compact .eo-account .eo-chev { display: none; }
.eo-app.is-compact .eo-brand, .eo-app.is-compact .eo-nav__item, .eo-app.is-compact .eo-account { justify-content: center; padding: 0; }

.eo-sheet {
  position: relative; min-width: 0; min-height: 0; overflow: hidden;
  border-radius: var(--eo-r-sheet); background: var(--eo-sheet); box-shadow: var(--eo-shadow-sheet);
}
.eo-scroller {
  position: absolute; inset: 0; overflow: auto; container-type: inline-size;
  scrollbar-width: thin; scrollbar-color: var(--eo-ink-4) transparent;
}

/* Page header: transparent at rest, frosted glass once content scrolls under it */
.eo-header { position: sticky; top: 0; z-index: 10; transition: background-color .3s var(--eo-ease), box-shadow .3s var(--eo-ease); }
.eo-header.is-stuck {
  background: var(--eo-glass); -webkit-backdrop-filter: var(--eo-blur-header); backdrop-filter: var(--eo-blur-header);
  box-shadow: 0 1px 0 var(--eo-line);
}
.eo-header__in {
  max-width: var(--eo-content-max); margin: 0 auto; min-height: 72px; padding: 16px var(--eo-gutter);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px;
}
.eo-header__spacer { flex: 1; }
.eo-h1 { margin: 0; font-weight: var(--eo-weight-bold); font-size: var(--eo-text-20); line-height: 28px; letter-spacing: -.02em; }
.eo-h1 .eo-crumb-sep { color: var(--eo-ink-4); font-weight: 400; margin: 0 10px 0 2px; }
.eo-h1 .eo-back { margin-left: -12px; }
.eo-header__in > .eo-back { margin-left: -8px; flex: none; }   /* Back, at the top left of every page */
.eo-btn--sm.eo-btn--icon { width: var(--eo-h-sm); }

.eo-page {
  max-width: var(--eo-content-max); margin: 0 auto; padding: 8px var(--eo-gutter) 72px;
  display: grid; gap: var(--eo-section-gap);
}
.eo-page > * { min-width: 0; }   /* a wide table scrolls inside .eo-table-wrap, never the page (DESIGN.md 15) */
@media (prefers-reduced-motion: no-preference) {
  .eo-page > * { animation: eo-rise var(--eo-dur-rise) var(--eo-ease) both; }
  .eo-page > *:nth-child(2) { animation-delay: 50ms; }
  .eo-page > *:nth-child(3) { animation-delay: 100ms; }
  .eo-page > *:nth-child(n+4) { animation-delay: 150ms; }
}
@keyframes eo-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============ Type ============ */
.eo-serif { font-family: var(--eo-font-serif); font-weight: 400; }
.eo-greeting { margin: 0 0 12px; font: 400 var(--eo-text-44)/48px var(--eo-font-serif); letter-spacing: -.015em; text-wrap: balance; }
.eo-h3 { margin: 0; font-weight: var(--eo-weight-medium); font-size: var(--eo-text-15); line-height: 22px; letter-spacing: -.01em; }
.eo-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; }
.eo-section-head__spacer { flex: 1; }
.eo-lead { margin: 0; font-weight: var(--eo-weight-light); font-size: var(--eo-text-17); line-height: 27px; color: var(--eo-ink-2); max-width: 58ch; text-wrap: pretty; }
.eo-lead b, .eo-lead strong { font-weight: 400; color: var(--eo-ink); }
.eo-page > .eo-lead:first-child { margin-top: -8px; }
.eo-help { font-size: var(--eo-text-13); line-height: 20px; color: var(--eo-ink-3); }
.eo-big { font-weight: var(--eo-weight-light); font-size: var(--eo-text-36); line-height: 42px; letter-spacing: -.035em; }
.eo-up { color: var(--eo-green-ink); }
.eo-down { color: var(--eo-red); }
.eo-ink2 { color: var(--eo-ink-2); } .eo-ink3 { color: var(--eo-ink-3); }
.eo-tip { text-decoration: underline dotted var(--eo-ink-4); text-underline-offset: 4px; cursor: help; }

/* ============ Icons ============ */
.eo-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.eo-icon-tile { width: 32px; height: 32px; border-radius: var(--eo-r-ctl); display: grid; place-items: center; flex: none; background: var(--eo-fill); color: var(--eo-ink-2); }
.eo-icon-tile .eo-i { width: 15px; height: 15px; }

/* ============ Buttons ============ */
.eo-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--eo-h-ctl); padding: 0 14px; border: 0; border-radius: var(--eo-r-ctl);
  background: var(--eo-fill-2); color: var(--eo-ink);
  font: var(--eo-weight-medium) var(--eo-text-135)/1 var(--eo-font-sans); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--eo-ease), transform var(--eo-dur-press) var(--eo-ease), filter .2s var(--eo-ease);
}
.eo-btn:hover { background: color-mix(in srgb, var(--eo-fill-2), var(--eo-ink) 4%); }
.eo-btn:active { transform: scale(.97); }
.eo-btn .eo-i { color: var(--eo-ink-3); }
.eo-btn .eo-chev { width: 14px; height: 14px; margin-right: -4px; }
.eo-btn--ghost { background: transparent; color: var(--eo-ink-2); }
.eo-btn--ghost:hover { background: var(--eo-fill); color: var(--eo-ink); }
.eo-btn--primary { background: linear-gradient(90deg, var(--eo-brand-grad-from), var(--eo-brand-grad-to)); color: var(--eo-on-green); }
.eo-btn--primary:hover { background: linear-gradient(90deg, var(--eo-brand-grad-from), var(--eo-brand-grad-to)); filter: brightness(1.05); }
.eo-btn--primary .eo-i { color: inherit; opacity: .75; }
/* The button that takes something away for good, inside its own confirmation (a version's Delete, 2026-11-21): the
   plain button in red words, as the red menu items and links are, never the green of going ahead. */
.eo-btn--danger, .eo-btn--danger .eo-i { color: var(--eo-red); }
.eo-btn--sm { height: var(--eo-h-sm); padding: 0 12px; font-size: var(--eo-text-13); }
.eo-btn--icon { width: var(--eo-h-ctl); padding: 0; }
.eo-btn--xl { height: var(--eo-h-xl); padding: 0 22px; border-radius: var(--eo-r-sheet); font-size: var(--eo-text-14); }
.eo-btn.is-set .eo-i { color: var(--eo-green); }      /* filter icon when a non-default range or comparison is on */
.eo-btn[disabled] { opacity: .45; pointer-events: none; }
.is-morphed { opacity: 0 !important; transition: none !important; }

.eo-link { border: 0; background: none; padding: 0; color: var(--eo-ink); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--eo-ink-4); text-underline-offset: 4px; }
.eo-link:hover { text-decoration-color: var(--eo-ink); }
.eo-link--danger { color: var(--eo-red); text-decoration-color: color-mix(in srgb, var(--eo-red) 35%, transparent); }

/* The font shorthand above resets font-variant, so say tabular figures again
   (DESIGN.md 5.3: digits always line up). The mockup inherited them from body. */
.eo-btn, .eo-seg > button, .eo-menu__item, .eo-pop__ghost, .eo-chart text { font-variant-numeric: tabular-nums; }

/* ============ Segmented control + lens ============ */
.eo-seg {
  position: relative; display: inline-flex; align-items: center; gap: 2px; flex: none;
  height: var(--eo-h-seg); padding: var(--eo-p-seg); border-radius: var(--eo-r-seg); background: var(--eo-fill);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.eo-seg::-webkit-scrollbar { display: none; }
.eo-seg > button {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border: 0; border-radius: var(--eo-r-ctl); background: none;
  color: var(--eo-ink-3); font: 400 var(--eo-text-13)/1 var(--eo-font-sans); white-space: nowrap; cursor: pointer;
  transition: color var(--eo-dur-hover) var(--eo-ease);
}
.eo-seg > button:hover { color: var(--eo-ink-2); }
.eo-seg > button[aria-pressed="true"] { color: var(--eo-ink); }
.eo-seg__count { color: var(--eo-ink-4); }
.eo-seg > button[aria-pressed="true"] .eo-seg__count { color: var(--eo-ink-3); }

/* The lens: a lifted plate that slides to the chosen item. Created by behaviors.js */
.eo-lens {
  position: absolute; z-index: 1; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
  border-radius: var(--eo-r-ctl); background: var(--eo-lens); box-shadow: var(--eo-shadow-lens);
  opacity: 0; transition: opacity .2s var(--eo-ease);
}
/* The hover follow: a soft fill that glides between items. Created by behaviors.js */
.eo-hover {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0; pointer-events: none;
  border-radius: var(--eo-r-ctl); background: var(--eo-fill); opacity: 0;
  transition: opacity var(--eo-dur-hover) var(--eo-ease), left .22s var(--eo-ease), top .22s var(--eo-ease), width .22s var(--eo-ease), height .22s var(--eo-ease);
}
.eo-hover.is-snap { transition: opacity var(--eo-dur-hover) var(--eo-ease); }
[data-eo-lens], [data-eo-track] { position: relative; }
[data-eo-track] [data-eo-item], [data-eo-lens] > :not(.eo-lens):not(.eo-hover) { position: relative; z-index: 1; }

/* ============ Fields ============ */
.eo-field, .eo-select, .eo-textarea {
  height: var(--eo-h-field); padding: 0 14px; border: 0; border-radius: var(--eo-r-ctl);
  background: var(--eo-fill); color: var(--eo-ink); font: inherit; outline: 0; min-width: 0;
  transition: background-color .2s var(--eo-ease), box-shadow .2s var(--eo-ease);
}
.eo-field:hover, .eo-select:hover, .eo-textarea:hover { background: var(--eo-fill-2); }
.eo-field:focus, .eo-select:focus, .eo-textarea:focus { background: var(--eo-sheet); box-shadow: 0 0 0 1px var(--eo-ink-4), 0 0 0 4px var(--eo-fill); }
.eo-field::placeholder, .eo-textarea::placeholder { color: var(--eo-ink-3); }
.eo-textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 22px; }
.eo-select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238F8F8F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.eo-label { display: block; margin: 0 0 8px; font-size: var(--eo-text-13); color: var(--eo-ink-2); }
.eo-copy-field {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  height: 52px; padding: 0 var(--eo-p-pop) 0 18px; border-radius: var(--eo-r-pop); background: var(--eo-fill);
}
.eo-copy-field > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--eo-text-15); }
.eo-copy-field .eo-btn { height: 40px; } /* 52 - 6 - 6 = 40, radius 10 = 16 - 6 */

/* ============ Switch ============ */
.eo-switch {
  position: relative; width: 38px; height: 22px; flex: none; padding: 0; border: 0; border-radius: 11px;
  background: var(--eo-fill-2); cursor: pointer; transition: background-color .3s var(--eo-ease);
}
.eo-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 9px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.05);
  transition: transform .4s var(--eo-spring), width .2s var(--eo-ease);
}
.eo-switch:active::after { width: 22px; }                       /* the squish */
.eo-switch[aria-checked="true"] { background: var(--eo-green); }
.eo-switch[aria-checked="true"]::after { transform: translateX(16px); }
.eo-switch[aria-checked="true"]:active::after { transform: translateX(12px); }

/* ============ Status (ring, never a colored dot) ============ */
.eo-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--eo-ink-3); font-size: var(--eo-text-135); }
.eo-status.is-you { color: var(--eo-ink); }
.eo-status .eo-i { width: 14px; height: 14px; }
.eo-ring { width: 14px; height: 14px; flex: none; overflow: visible; }
.eo-ring__track { fill: none; stroke: var(--eo-ink-4); stroke-opacity: .6; stroke-width: 1.5; }
.eo-ring__arc { fill: none; stroke: var(--eo-ink-2); stroke-width: 1.5; stroke-linecap: round; }
.eo-ring__dot { fill: var(--eo-ink); transform-origin: 7px 7px; }
.eo-ring.is-done .eo-ring__arc { stroke: var(--eo-green); }
@media (prefers-reduced-motion: no-preference) {
  .eo-ring__arc { animation: eo-arc var(--eo-dur-ring) var(--eo-ease) both; }
  .eo-ring__dot { animation: eo-pop .5s var(--eo-spring) .5s both; }
}
@keyframes eo-arc { from { stroke-dasharray: 0 40; } }
@keyframes eo-pop { from { transform: scale(0); } }

/* ============ Lists ============ */
.eo-list { display: grid; }
.eo-row {
  position: relative; display: flex; align-items: center; gap: 16px; min-width: 0;
  min-height: var(--eo-h-row); padding: 10px var(--eo-bleed); margin: 0 calc(var(--eo-bleed) * -1);
  border-radius: var(--eo-r-ctl);
}
.eo-row + .eo-row::before {
  content: ""; position: absolute; left: var(--eo-bleed); right: var(--eo-bleed); top: 0; height: 1px; background: var(--eo-line);
  transition: opacity .2s;
}
.eo-row:hover::before, .eo-row:hover + .eo-row::before { opacity: 0; }   /* the hairline steps aside for the hover plate */
.eo-row--click { cursor: pointer; }
.eo-row__main { flex: 1; min-width: 0; }
.eo-row__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-row__desc { font-size: var(--eo-text-13); line-height: 20px; color: var(--eo-ink-3); overflow: hidden; text-overflow: ellipsis; }
.eo-row .eo-chevron { color: var(--eo-ink-4); transition: color .2s var(--eo-ease), transform .3s var(--eo-spring); }
.eo-row:hover .eo-chevron { color: var(--eo-ink-2); transform: translateX(2px); }
.eo-reveal { opacity: 0; transition: opacity var(--eo-dur-hover) var(--eo-ease); }
.eo-row:hover .eo-reveal, tr:hover .eo-reveal, .eo-reveal:focus-within { opacity: 1; }

/* ============ Table ============ */
.eo-table-wrap { overflow-x: auto; min-width: 0; margin: 0 calc(var(--eo-bleed) * -1); }
.eo-table { width: 100%; border-collapse: separate; border-spacing: 0; font: inherit; color: inherit; }
.eo-table th {
  height: 36px; padding: 0 var(--eo-bleed); text-align: left; white-space: nowrap;
  font-weight: 400; font-size: var(--eo-text-13); color: var(--eo-ink-3); border: 0; border-bottom: 1px solid var(--eo-line);
}
.eo-table td { height: var(--eo-h-td); padding: 0 var(--eo-bleed); white-space: nowrap; border: 0; border-top: 1px solid var(--eo-line); transition: background-color .2s var(--eo-ease); }
.eo-table tbody tr:first-child td { border-top-color: transparent; }
.eo-table .is-right { text-align: right; }
.eo-table tbody tr { cursor: pointer; }
.eo-table tbody tr:hover td, .eo-table tbody tr[aria-selected="true"] td { background: var(--eo-fill); border-top-color: transparent; }
.eo-table tbody tr:hover + tr td, .eo-table tbody tr[aria-selected="true"] + tr td { border-top-color: transparent; }
.eo-table tbody td:first-child { border-radius: var(--eo-r-ctl) 0 0 var(--eo-r-ctl); }
.eo-table tbody td:last-child { border-radius: 0 var(--eo-r-ctl) var(--eo-r-ctl) 0; }
.eo-table td .eo-sub { display: block; font-size: var(--eo-text-13); line-height: 18px; color: var(--eo-ink-3); }
.eo-thumb { width: 44px; height: 44px; border-radius: var(--eo-r-ctl); object-fit: cover; background: #fff; flex: none; box-shadow: 0 0 0 1px var(--eo-line); }
.eo-thumb--sm { width: 32px; height: 32px; border-radius: 8px; }
.eo-product { display: flex; align-items: center; gap: 14px; }
.eo-product > div { min-width: 0; max-width: min(46ch, 34cqw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a supplier's long title stays one line; the row opens the product */

/* ============ Number tile ("flat until you point") ============ */
.eo-numbers { display: grid; grid-template-columns: repeat(var(--eo-cols, 3), minmax(0, 1fr)); gap: 24px 40px; }
.eo-numbers--4 { --eo-cols: 4; }   /* Analytics. A class, not an inline style, so the 760px container query can bring it to 2 */
.eo-tile {
  position: relative; display: grid; gap: 6px; align-content: start; cursor: pointer;
  margin: -14px -8px -14px -16px; padding: 14px 8px 14px 16px;      /* bleed left 16, right 8: never touches the next column (gap 40) */
  border-radius: var(--eo-r-pop); outline-offset: 0;
  transition: background-color var(--eo-dur-tile) var(--eo-ease);
}
.eo-tile:hover, .eo-tile:focus-visible { background: var(--eo-fill); }
.eo-tile__label, .eo-tile__note { font-size: var(--eo-text-13); color: var(--eo-ink-3); }
.eo-tile__more {
  position: absolute; top: 16px; right: 14px; width: 14px; height: 14px; color: var(--eo-ink-3);
  opacity: 0; transform: translate(-3px, 3px);
  transition: opacity var(--eo-dur-hover) var(--eo-ease), transform .4s var(--eo-spring);
}
.eo-tile:hover .eo-tile__more, .eo-tile:focus-visible .eo-tile__more { opacity: 1; transform: none; }
/* On Home the tile picks the graph (the chosen one keeps the quiet plate) and the arrow is the button that opens the breakdown. */
/* In a tracked row of tiles (Home, Analytics) the hover plate glides and the chosen tile's plate slides, like the sidebar. */
.eo-tile.is-on .eo-tile__label { color: var(--eo-ink); }
[data-eo-track] > .eo-tile:hover { background: transparent; }
.eo-numbers > .eo-lens { background: var(--eo-fill); box-shadow: none; border-radius: var(--eo-r-pop); }
/* The Email home's three blocks below its numbers glide the same plate (2026-11-10, Tommy: "The same animation on all 6"). */
:is(.eo-numbers, .eo-blocks) > .eo-hover { border-radius: var(--eo-r-pop); }
button.eo-tile__more { border: 0; background: none; padding: 0; margin: 0; cursor: pointer; display: grid; place-items: center; border-radius: 4px; }
button.eo-tile__more .eo-i { width: 14px; height: 14px; }
.eo-tile__more:focus-visible { opacity: 1; transform: none; }

/* ============ Popover that grows out of its trigger (morph) ============ */
.eo-pop {
  position: fixed; z-index: 400; overflow: hidden;
  background: var(--eo-glass); -webkit-backdrop-filter: var(--eo-blur); backdrop-filter: var(--eo-blur);
  box-shadow: var(--eo-shadow-pop);
  transition: left var(--eo-dur-grow) var(--eo-spring), top var(--eo-dur-grow) var(--eo-spring), width var(--eo-dur-grow) var(--eo-spring), height var(--eo-dur-grow) var(--eo-spring), border-radius .3s var(--eo-ease);
}
.eo-pop.is-closing { transition: left var(--eo-dur-close) var(--eo-out), top var(--eo-dur-close) var(--eo-out), width var(--eo-dur-close) var(--eo-out), height var(--eo-dur-close) var(--eo-out), border-radius var(--eo-dur-close) var(--eo-out); }
.eo-pop__tint { position: absolute; inset: 0; border-radius: inherit; transition: opacity .3s var(--eo-ease); }
.eo-pop.is-open .eo-pop__tint { opacity: 0; }
.eo-pop.is-closing .eo-pop__tint { opacity: 1; transition-duration: .2s; }
.eo-pop__ghost { position: absolute; left: 0; top: 0; display: flex; align-items: center; white-space: nowrap; transition: opacity .14s var(--eo-ease); }
.eo-pop.is-open .eo-pop__ghost { opacity: 0; }
.eo-pop.is-closing .eo-pop__ghost { opacity: 1; transition-delay: 60ms; }
.eo-pop__body { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(-3px); transition: opacity .26s var(--eo-ease) 80ms, transform .4s var(--eo-spring) 80ms; }
.eo-pop.is-open .eo-pop__body { opacity: 1; transform: none; }
.eo-pop.is-closing .eo-pop__body { opacity: 0; transition-delay: 0s; transition-duration: .1s; }

.eo-menu { padding: var(--eo-p-pop); display: grid; max-height: calc(100vh - 24px); overflow: auto; overscroll-behavior: contain; }   /* a long menu (New email) scrolls inside a short frame (UI review 2026-11-08 D15) */
.eo-menu__item {
  display: flex; align-items: center; gap: 12px; width: 100%; height: var(--eo-h-mi); padding: 0 10px;
  border: 0; border-radius: var(--eo-r-ctl); background: none; color: var(--eo-ink); text-align: left; white-space: nowrap;
  font: 400 var(--eo-text-135)/1 var(--eo-font-sans); cursor: pointer;
}
.eo-menu__item .eo-i { color: var(--eo-ink-3); }
.eo-menu__meta { margin-left: auto; font-size: var(--eo-text-13); color: var(--eo-ink-3); }
.eo-menu__item--danger, .eo-menu__item--danger .eo-i { color: var(--eo-red); }
.eo-menu__head { padding: 8px 10px 4px; font-size: var(--eo-text-12); color: var(--eo-ink-3); }
.eo-menu__group { padding: 8px 10px 4px; font-size: var(--eo-text-12); color: var(--eo-ink-3); }   /* a heading inside a menu's list (the editor's page picker) */
.eo-menu__sep { height: 1px; margin: 4px 10px; background: var(--eo-line); }
.eo-menu__intro { padding: 12px 10px 6px; display: grid; gap: 4px; }
.eo-menu__title { font-weight: 500; font-size: var(--eo-text-15); }
.eo-menu__text { color: var(--eo-ink-3); font-size: var(--eo-text-13); line-height: 19px; }
.eo-menu__actions { display: flex; gap: 6px; padding-top: 10px; }
.eo-menu__actions .eo-btn { flex: 1; }
.eo-kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 10px 0 0; font-size: var(--eo-text-135); }   /* no column gap so the total hairline runs unbroken */
.eo-kv dt { color: var(--eo-ink-3); }
.eo-kv dd { margin: 0; padding-left: 16px; text-align: right; }
.eo-kv .is-total { color: var(--eo-ink); padding-top: 8px; border-top: 1px solid var(--eo-line); }
.eo-kv dd.eo-up { color: var(--eo-green-ink); }   /* "You keep" totals */
.eo-breakdown { display: grid; gap: 14px; padding: 10px 10px 12px; }
.eo-breakdown__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: var(--eo-text-135); }
.eo-breakdown__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--eo-fill-2); overflow: hidden; }
.eo-breakdown__bar i { display: block; height: 100%; border-radius: 2px; background: var(--eo-ink-3); }
.eo-breakdown__row:first-child .eo-breakdown__bar i { background: var(--eo-green); }

/* ============ Toast ============ */
.eo-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 500;
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 14px; border-radius: 21px;
  font-size: var(--eo-text-135); color: var(--eo-ink);
  background: var(--eo-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--eo-shadow-pop);
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  transition: transform .45s var(--eo-spring), opacity var(--eo-dur-hover) var(--eo-ease);
}
.eo-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.eo-toast .eo-i { color: var(--eo-green); }

/* ============ Drawer (detail sheet over the page) ============ */
.eo-drawer {
  position: absolute; z-index: 20; top: var(--eo-p-sheet); right: var(--eo-p-sheet); bottom: var(--eo-p-sheet);
  width: 380px; max-width: calc(100% - 16px); overflow: auto;
  border-radius: var(--eo-r-ctl);   /* 18 sheet - 8 inset = 10 */
  background: var(--eo-glass); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: var(--eo-shadow-pop);
  transform: translateX(calc(100% + 24px)); transition: transform var(--eo-dur-drawer) var(--eo-spring);
}
.eo-drawer.is-open { transform: none; }
.eo-drawer__in { padding: 20px 22px 22px; display: grid; gap: 28px; }
.eo-drawer__head { display: flex; align-items: center; gap: 10px; margin: -6px -8px 0 -12px; }
.eo-drawer__head > .eo-spacer { flex: 1; }
.eo-caption { font-size: var(--eo-text-13); color: var(--eo-ink-3); margin: 0 0 12px; }
.eo-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.eo-steps li { position: relative; padding: 0 0 16px 22px; font-size: var(--eo-text-135); line-height: 20px; }
.eo-steps li:last-child { padding-bottom: 0; }
.eo-steps li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--eo-ink-4); }
.eo-steps li::after { content: ""; position: absolute; left: 3.5px; top: 18px; bottom: 2px; width: 1px; background: var(--eo-line); }
.eo-steps li:last-child::after { display: none; }
.eo-steps li.is-done::before { background: var(--eo-ink-2); }
.eo-steps li.is-now::before { background: var(--eo-sheet); box-shadow: inset 0 0 0 1.5px var(--eo-ink); }
.eo-steps li.is-todo { color: var(--eo-ink-3); }
.eo-steps li span { display: block; font-size: 12.5px; color: var(--eo-ink-3); }
.eo-copy { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: copy; }
.eo-copy .eo-i { width: 13px; height: 13px; color: var(--eo-ink-3); opacity: 0; transition: opacity .2s var(--eo-ease); }
.eo-copy:hover .eo-i, .eo-copy:focus-visible .eo-i { opacity: 1; }

/* ============ Welcome modal ============ */
.eo-scrim {
  position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 16px;
  background: transparent; transition: background-color .5s var(--eo-ease), backdrop-filter .5s var(--eo-ease), -webkit-backdrop-filter .5s var(--eo-ease);
}
.eo-scrim.is-on { background: var(--eo-scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.eo-modal {
  width: min(520px, 100%); max-height: 100%; overflow: auto; padding: var(--eo-p-sheet);
  border-radius: var(--eo-r-modal); background: var(--eo-sheet); box-shadow: var(--eo-shadow-pop);
  display: grid; gap: var(--eo-p-sheet);
  opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .45s var(--eo-ease), transform var(--eo-dur-modal) var(--eo-spring);
}
.eo-scrim.is-on .eo-modal { opacity: 1; transform: none; }
.eo-modal > * { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--eo-ease), transform .6s var(--eo-spring); }
.eo-scrim.is-on .eo-modal > * { opacity: 1; transform: none; }
.eo-scrim.is-on .eo-modal > *:nth-child(2) { transition-delay: 80ms; }
.eo-scrim.is-on .eo-modal > *:nth-child(3) { transition-delay: 160ms; }
.eo-field-art {           /* live green field. r 18 inside a 26 modal with 8 padding */
  position: relative; overflow: hidden; isolation: isolate; height: 220px; cursor: crosshair;
  border-radius: var(--eo-r-sheet); clip-path: inset(0 round var(--eo-r-sheet));   /* clip-path keeps corners round while the canvas animates */
  display: grid; place-items: center; background: #3A9A4E;
}
.eo-field-art canvas { position: absolute; inset: -12%; width: 124%; height: 124%; z-index: -2; filter: blur(14px); }
.eo-field-art::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; mix-blend-mode: multiply;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.eo-pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 20px;
  background: var(--eo-brand-ink); color: var(--eo-brand-gray);
  font: 400 21px/1 var(--eo-font-serif); letter-spacing: -.005em;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.12), 0 8px 24px -10px rgba(0,0,0,.5);
  transition: transform .9s var(--eo-ease);
}
.eo-modal__body { padding: 20px 18px 6px; display: grid; gap: 14px; }
.eo-modal__body p { margin: 0; font-weight: 300; font-size: 16px; line-height: 25px; color: var(--eo-ink-2); }
.eo-modal__body p b { font-weight: 400; color: var(--eo-ink); }
.eo-modal__foot { display: flex; align-items: center; gap: 12px; padding: 6px 0 0 18px; }
.eo-modal__foot > span { flex: 1; font-size: var(--eo-text-13); color: var(--eo-ink-3); }

/* ============ Loading (ROLLOUT.md 3) ============
   Quiet bars the size of the text they stand in for, no shimmer; the page fades in over them. */
.eo-loading { display: grid; gap: 10px; }
.eo-bar { display: block; height: 14px; border-radius: 6px; background: var(--eo-fill); }

/* ============ Empty state ============ */
.eo-empty { padding: 8px 0; display: grid; gap: 6px; }
.eo-empty em { font: italic 400 26px/30px var(--eo-font-serif); color: var(--eo-ink-2); }
.eo-empty--hero em { font-size: 34px; line-height: 38px; }
.eo-empty span { font-size: var(--eo-text-135); color: var(--eo-ink-3); max-width: 34ch; }

/* ============ Data display ============ */
.eo-chart { position: relative; }
.eo-chart svg { display: block; width: 100%; overflow: visible; }
.eo-chart text { font: 12px var(--eo-font-sans); fill: var(--eo-ink-3); }
.eo-tooltip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 12px;
  font-size: var(--eo-text-13); line-height: 20px;
  background: var(--eo-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--eo-shadow-pop);
  opacity: 0; transform: translateY(4px);
  transition: opacity .16s var(--eo-ease), transform .25s var(--eo-spring), left .12s var(--eo-ease);
}
.eo-tooltip.is-on { opacity: 1; transform: none; }
.eo-tooltip__title { color: var(--eo-ink-3); margin-bottom: 2px; }
.eo-tooltip__row { display: flex; justify-content: space-between; gap: 16px; }
/* The ? beside a label or a column (2026-11-10), and its tip: the same glass as the chart tooltip, fixed so a table that
   scrolls inside itself never clips it. The ? is drawn like the old pages' help button (18px ring, 11px medium). */
.eo-q {
  display: inline-grid; place-items: center; flex: none; box-sizing: border-box; width: 18px; height: 18px; min-height: 0;
  margin: 0 0 0 6px; padding: 0; border: 1px solid var(--eo-ink-4); border-radius: var(--eo-r-pill); background: transparent;
  color: var(--eo-ink-3); font: var(--eo-weight-medium) var(--eo-text-11)/16px var(--eo-font-sans); letter-spacing: 0;
  vertical-align: middle; position: relative; top: -1px; cursor: help;
}
.eo-q:hover, .eo-q[aria-expanded="true"] { border-color: var(--eo-ink-3); color: var(--eo-ink-2); }
.eo-tooltip--help { position: fixed; z-index: 60; min-width: 0; color: var(--eo-ink); text-align: left; white-space: normal; transition: opacity .16s var(--eo-ease), transform .25s var(--eo-spring); }
.eo-legend { display: flex; gap: 16px; font-size: var(--eo-text-13); color: var(--eo-ink-3); }
.eo-legend i { display: inline-block; width: 12px; height: 2px; border-radius: 1px; margin-right: 8px; vertical-align: middle; }

.eo-funnel { display: grid; gap: 18px; }
.eo-funnel__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.eo-funnel__track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--eo-fill); }
.eo-funnel__track i { display: block; height: 100%; border-radius: 4px; background: var(--eo-ink-4); min-width: 6px; }
.eo-funnel__row.is-goal .eo-funnel__track i { background: var(--eo-green); }

.eo-split { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.eo-split i { display: block; height: 100%; transition: width .8s var(--eo-ease); }
.eo-split-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.eo-split-legend > div { display: grid; gap: 4px; }
.eo-split-legend .eo-k { display: flex; align-items: center; gap: 8px; font-size: var(--eo-text-13); color: var(--eo-ink-3); }
.eo-split-legend .eo-k i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.eo-split-legend .eo-v { font-weight: 300; font-size: var(--eo-text-20); line-height: 28px; letter-spacing: -.02em; }

.eo-weekbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; height: 160px; }
.eo-weekbars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.eo-weekbars i { display: block; width: 100%; max-width: 30px; border-radius: 7px; background: var(--eo-fill-2); transform-origin: bottom; transition: background-color var(--eo-dur-hover) var(--eo-ease), transform .4s var(--eo-spring); }
.eo-weekbars .is-best i { background: var(--eo-green); }
.eo-weekbars > div:hover i { background: var(--eo-ink-4); transform: scaleY(1.03); }
.eo-weekbars .is-best:hover i { background: var(--eo-green); }
.eo-weekbars span { font-size: var(--eo-text-12); color: var(--eo-ink-3); }
.eo-weekbars em { font-style: normal; font-size: var(--eo-text-12); color: var(--eo-ink-2); opacity: 0; transform: translateY(4px); transition: opacity .2s var(--eo-ease), transform .3s var(--eo-spring); }
.eo-weekbars > div:hover em, .eo-weekbars .is-best em { opacity: 1; transform: none; }

/* ============ Overview blocks with an envelope stack (Email) ============ */
.eo-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.eo-stack { position: relative; height: 118px; margin-top: 12px; }
.eo-env {
  position: absolute; left: 0; right: 8px; top: 0; height: 62px; padding: 8px 14px; border-radius: 12px;
  background: var(--eo-sheet); box-shadow: 0 0 0 1px var(--eo-line), 0 10px 22px -16px rgba(0,0,0,.4);
  display: grid; align-content: start; transform-origin: 50% 0; transition: transform .6s var(--eo-spring);
}
.eo-env span { font-size: var(--eo-text-12); line-height: 16px; color: var(--eo-ink-3); }
.eo-env b { font-weight: 400; font-size: var(--eo-text-135); line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-stack .eo-env:nth-child(1) { transform: translateY(0) scale(.9); background: color-mix(in srgb, var(--eo-sheet), var(--eo-ink) 4%); }
.eo-stack .eo-env:nth-child(2) { transform: translateY(22px) scale(.95); background: color-mix(in srgb, var(--eo-sheet), var(--eo-ink) 2%); }
.eo-stack .eo-env:nth-child(-n+2) b { visibility: hidden; }
.eo-stack .eo-env:nth-child(3), .eo-stack .eo-env.is-solo { transform: translateY(44px); }
.eo-stack .eo-env.is-solo { background: var(--eo-sheet); }
.eo-stack .eo-env.is-solo b { visibility: visible; }
.eo-tile:hover .eo-env:nth-child(1) { transform: translateY(-6px) scale(.9) rotate(-1.5deg); }
.eo-tile:hover .eo-env:nth-child(2) { transform: translateY(18px) scale(.95) rotate(1deg); }
.eo-tile:hover .eo-env:nth-child(3) { transform: translateY(50px) rotate(-.5deg); }
.eo-tile:hover .eo-env.is-solo { transform: translateY(36px) rotate(-1deg); }

/* ============ Mail view (inside Email > a section) ============ */
.eo-mail { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: clamp(560px, calc(100vh - 230px), 780px); margin: 0 calc(var(--eo-bleed) * -1); }
.eo-mail__list { border-right: 1px solid var(--eo-line); overflow: auto; padding: 0 8px; }
.eo-mail__items { display: grid; align-content: start; padding-bottom: 8px; }
.eo-mail__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px; border-radius: var(--eo-r-ctl); cursor: pointer; }
.eo-mail__item + .eo-mail__item::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--eo-line); transition: opacity .2s; }
.eo-mail__item[aria-selected="true"]::before, .eo-mail__item[aria-selected="true"] + .eo-mail__item::before,
.eo-mail__item:hover::before, .eo-mail__item:hover + .eo-mail__item::before { opacity: 0; }
.eo-mail__subject { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-mail__meta { grid-column: 1 / -1; font-size: 12.5px; line-height: 18px; color: var(--eo-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-mail__preview { grid-column: 1 / -1; font-size: var(--eo-text-13); line-height: 19px; color: var(--eo-ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eo-mail__reader { overflow: auto; padding: 2px var(--eo-bleed) 24px 32px; }
.eo-mail__from { display: flex; align-items: center; gap: 12px; }
.eo-mail__from > div { flex: 1; min-width: 0; line-height: 20px; }
.eo-mail__title { margin: 22px 0 2px; font-weight: 600; font-size: var(--eo-text-22); line-height: 30px; letter-spacing: -.02em; }
@container (max-width: 640px) { .eo-mail { grid-template-columns: minmax(0, 1fr); height: auto; } .eo-mail__list { border: 0; } .eo-mail__reader { padding: 28px var(--eo-bleed) 0; } }

/* ============ Layout helpers ============ */
.eo-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.eo-plate { border-radius: var(--eo-r-sheet); background: var(--eo-canvas); padding: 24px; }   /* the gray stage behind previews (email, phone, signup box) */
.eo-media { border-radius: var(--eo-r-sheet); overflow: hidden; aspect-ratio: 1; background: #fff; box-shadow: 0 0 0 1px var(--eo-line); transition: transform .45s var(--eo-spring), box-shadow .45s var(--eo-ease); }
.eo-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eo-card-link:hover .eo-media { transform: translateY(-3px); box-shadow: var(--eo-shadow-lift); }

/* ============ Responsive ============ */
/* 641 to 980 only: below 640 the mail view stacks (the rule above), and this one came later and won (UI review 2026-11-08 C8). */
@container (min-width: 641px) and (max-width: 980px) { .eo-mail { grid-template-columns: 260px minmax(0, 1fr); } }
@container (max-width: 860px) { .eo-two { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 760px) {
  .eo-numbers { --eo-cols: 2; }
  .eo-blocks { grid-template-columns: minmax(0, 1fr); }
  .eo-split-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 640px) {
  .eo-header__in { padding: 14px 20px; }
  .eo-header__in > .eo-back { display: none; }   /* at phone width the sidebar is one tap away and the title shares its one row with its control, as the mockup fixed; the editor keeps Back (EO_EDITOR_CSS) */
  .eo-page { padding: 4px 20px 56px; gap: 44px; }
  .eo-greeting { font-size: 36px; line-height: 40px; }
  .eo-big { font-size: 30px; line-height: 36px; }
  .eo-legend { display: none; }
}
@media (max-width: 900px) {
  .eo-app { grid-template-columns: var(--eo-sidebar-w-compact) minmax(0, 1fr); }
  .eo-wordmark, .eo-nav__label, .eo-nav__count, .eo-trial, .eo-account__text, .eo-account .eo-chev { display: none; }
  .eo-brand, .eo-nav__item, .eo-account { justify-content: center; padding: 0; }
}

/* ============ Screen parts ported from the mockup (2026-11-04) ============
   Everything below came from handoff/mockup/index.html with the mockup's
   class names mapped to eo- names and its values to tokens. */

/* Page header: the back button inside a detail title, and the drawer head spacer */
.eo-h1 .eo-back { font-size: var(--eo-text-135); }
.eo-drawer__head .eo-spacer { flex: 1; }
.eo-drawer .eo-kv--drawer { margin: 0; gap: 10px 16px; }
.eo-drawer .eo-kv--drawer dd { padding-left: 0; }
.eo-drawer .eo-kv--drawer .is-total { padding-top: 10px; }

/* Storefront editor: section list, the gray stage with the phone, settings rows */
.eo-ed { display: grid; grid-template-columns: 200px minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.eo-ed__list { display: grid; gap: 2px; }
.eo-ed__group { padding: 14px 10px 6px; font-size: var(--eo-text-12); color: var(--eo-ink-3); }
.eo-ed__group:first-child { padding-top: 0; }
.eo-ed__item { display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--eo-r-ctl); color: var(--eo-ink-2); font-size: var(--eo-text-135); cursor: pointer; transition: color .2s var(--eo-ease); }
.eo-ed__item:hover, .eo-ed__item.is-on { color: var(--eo-ink); }
.eo-ed__stage { display: grid; place-items: center; padding: 40px 16px; border-radius: var(--eo-r-sheet); background: var(--eo-canvas); }
.eo-ed__row { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: var(--eo-text-135); }
.eo-ed__row + .eo-ed__row { border-top: 1px solid var(--eo-line); }
.eo-ed__grow { flex: 1; }
@container (max-width: 860px) { .eo-ed { grid-template-columns: minmax(0, 1fr); } .eo-ed__list, .eo-ed__settings { display: none; } }

/* The phone preview of the live store (the store's own look, not the dashboard's) */
.eo-phone { width: 280px; max-width: 100%; border-radius: 40px; background: #111; padding: 9px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45), 0 0 0 .5px rgba(0,0,0,.2); }
.eo-phone__screen { border-radius: 31px; overflow: hidden; background: #fafaf8; color: #141414; height: 540px; font-size: var(--eo-text-13); line-height: 18px; }
.eo-phone__ann { background: #141414; color: #fafaf8; font-size: var(--eo-text-11); text-align: center; padding: 6px; }
.eo-phone__hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 600; font-size: var(--eo-text-15); border-bottom: 1px solid #eee; }
.eo-phone__hero { height: 250px; background: #1f5d45; display: flex; flex-direction: column; justify-content: center; padding: 20px; color: #fff; }
.eo-phone__hero h4 { margin: 0 0 16px; font-size: 24px; line-height: 28px; font-weight: 700; }
.eo-phone__b { display: inline-block; background: #fff; color: #141414; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 12.5px; margin-right: 8px; }
.eo-phone__b.is-outline { background: none; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.eo-phone__shop { padding: 18px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eo-phone__shop h5 { grid-column: 1 / -1; margin: 0; font-size: 17px; }
.eo-phone__shop img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #fff; }
.eo-phone__shop small { display: block; font-size: 11.5px; margin-top: 4px; }
.eo-phone__frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }   /* the real store, live */

/* Analytics: where the money went */
.eo-money { display: grid; gap: 20px; }

/* Email: the customer's email on the gray plate, the signup box preview, the reader's parts */
.eo-mail-preview { margin-top: 20px; }
.eo-mail-preview__body { background: #fff; color: #1b1c1a; border-radius: 12px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.eo-mail-preview__logo { font-weight: 600; font-size: var(--eo-text-15); margin-bottom: 22px; }
.eo-mail-preview h5 { margin: 0 0 8px; font-size: 21px; line-height: 28px; font-weight: 600; }
.eo-mail-preview p { margin: 0 0 16px; color: #4a4b46; font-size: var(--eo-text-14); line-height: 21px; }
.eo-mail-preview__item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.eo-mail-preview__item img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.eo-mail-preview__item div { flex: 1; }
.eo-mail-preview__name { font-weight: 500; font-size: var(--eo-text-14); }
.eo-mail-preview__sub { font-size: var(--eo-text-12); color: #6b6c66; }   /* the store's email, not the dashboard: its own gray */
.eo-mail-preview__amount { font-size: var(--eo-text-14); }
.eo-mail-preview__frame { display: block; width: 100%; height: 520px; border: 0; border-radius: 12px; background: #fff; }   /* the real email, live */
.eo-mail-preview__total { display: flex; justify-content: space-between; padding: 12px 0 0; font-weight: 600; }
.eo-mail-preview__cta { display: block; text-align: center; margin-top: 20px; background: #216e50; color: #fff; border-radius: 8px; padding: 12px; font-weight: 600; font-size: var(--eo-text-14); }
.eo-mail__switch, .eo-mail__from > .eo-mail__switch { display: flex; align-items: center; gap: 10px; font-size: var(--eo-text-13); flex: none; }   /* .eo-mail__from > div grows; this one must not */
.eo-mail__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.eo-mail__reader .eo-empty { padding-top: 48px; }
.eo-tile--block { padding-bottom: 18px; }
.eo-signup { width: min(340px, 100%); background: #fff; color: #141414; border-radius: 14px; padding: 24px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.eo-signup b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.eo-signup p { margin: 0 0 16px; font-size: var(--eo-text-135); line-height: 20px; color: #5a5a55; }
.eo-signup__form { display: flex; gap: 6px; }
.eo-signup__form span { flex: 1; height: 40px; border-radius: 8px; border: 1px solid #e3e3df; padding: 0 12px; display: flex; align-items: center; font-size: var(--eo-text-135); color: #9a9a95; }
.eo-signup__form em { font-style: normal; height: 40px; padding: 0 16px; border-radius: 8px; background: #1f5d45; color: #fff; display: flex; align-items: center; font-weight: 600; font-size: var(--eo-text-135); }

/* Research: the search line and the grid of products */
.eo-search { display: flex; gap: 8px; align-items: center; }
.eo-search .eo-field { flex: 1; }
.eo-search .eo-btn { height: var(--eo-h-field); }
.eo-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 24px; }
.eo-rc { display: grid; gap: 12px; cursor: pointer; }
.eo-rc__title { font-size: var(--eo-text-14); line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eo-rc__price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.eo-rc__price b { font-weight: 400; font-size: 18px; letter-spacing: -.02em; }

/* Domain: the browser preview of the store */
.eo-browser { border-radius: var(--eo-r-sheet); overflow: hidden; background: var(--eo-canvas); }
.eo-browser__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; }
.eo-browser__lights { display: flex; gap: 6px; }
.eo-browser__lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--eo-ink-4); opacity: .6; }
.eo-browser__addr { flex: 1; max-width: 400px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 8px; background: var(--eo-sheet); font-size: var(--eo-text-13); min-width: 0; }
.eo-browser__addr .eo-i { width: 12px; height: 12px; color: var(--eo-ink-3); }
.eo-browser__view { height: 240px; background: #fafaf8 center 40% / cover; position: relative; }
.eo-browser__view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), transparent 60%); }
.eo-browser__view span { position: absolute; left: 32px; bottom: 28px; z-index: 1; color: #fff; font: 400 38px/40px var(--eo-font-serif); }

/* Suppliers: the logo tile */
.eo-logo { width: 36px; height: 36px; border-radius: var(--eo-r-ctl); flex: none; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--eo-line); }
/* Suppliers (Tommy, 2026-11-10): the list, where a whole row opens the supplier's own page, and that page. One
   column of sections on the sheet, no boxes; long setting names wrap instead of cutting off. */
.eo-supp { width: 100%; max-width: 800px; min-width: 0; scroll-margin-top: 88px; }   /* clears the sticky header when a link opens a section */
.eo-supp__help { margin: -8px 0 16px; max-width: 64ch; text-wrap: pretty; }
.eo-supp__help:empty { display: none; }
.eo-supp__after { margin: 12px 0 0; max-width: 64ch; text-wrap: pretty; }
.eo-supp .eo-row__title { white-space: normal; text-wrap: pretty; }
.eo-supp .eo-row__desc { text-wrap: pretty; max-width: 62ch; }
.eo-sup-row__name { display: block; max-width: 100%; padding: 0; border: 0; background: none; color: var(--eo-ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-sup-row .eo-row__desc { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 2px; }
.eo-sup-row .eo-status { font-size: var(--eo-text-13); }
.eo-sup-row__note { color: var(--eo-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.eo-supp__num { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.eo-supp__num .eo-field { width: 88px; text-align: right; }
.eo-supp__fields { display: grid; gap: 20px; max-width: 560px; }
.eo-supp__fields .eo-field, .eo-supp__fields .eo-textarea, .eo-supp__fields .eo-select { width: 100%; }
.eo-supp__fields #es-hour { max-width: 240px; }
.eo-supp__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.eo-supp__acts:last-child { margin-bottom: 0; }
.eo-supp__step { max-width: 560px; margin: 8px 0 16px; }
.eo-supp__step .eo-help:empty, #sup-res:empty, #cj-test-res:empty, #ae-res:empty { display: none; }
.eo-supp .eo-search { flex-wrap: wrap; max-width: 560px; }
.eo-supp .eo-search .eo-select { flex: 0 1 220px; min-width: 0; }
.eo-supp .eo-search .eo-field { min-width: 160px; }
.eo-supp__kv { max-width: 560px; margin: 0 0 20px; }
.eo-supp__gap { margin-top: 20px; }
.eo-supp__under { margin: 8px 0 0; }
.eo-supp__checks { display: grid; gap: 10px; }
.eo-supp__beta { font-size: var(--eo-text-13); font-weight: 400; letter-spacing: 0; }
.eo-select--sm { height: 30px; padding: 0 32px 0 12px; font-size: var(--eo-text-13); background-position: right 10px center; }
#es-sheet-acts { display: flex; align-items: center; gap: 8px; }
.eo-table--static tbody tr { cursor: default; }
@container (max-width: 640px) {
  .eo-sup-row__sw { display: none; }
}

/* Self-fulfillment: two options side by side */
.eo-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.eo-opt { display: grid; gap: 10px; align-content: start; }
.eo-opt p { margin: 0; color: var(--eo-ink-3); font-size: var(--eo-text-14); line-height: 22px; max-width: 40ch; }
@container (max-width: 640px) { .eo-opts { grid-template-columns: 1fr; gap: 32px; } .eo-numbers { row-gap: 28px; } }
/* Two options as one choice (Domain: Connect a domain / Buy a domain). Both share four rows, title, sentence, the field
   with its button, then what the action shows, so each part sits level with its twin however the sentences wrap. */
.eo-opts--even { row-gap: var(--eo-space-2); }
.eo-opts--even > .eo-opt { grid-row: span 4; grid-template-rows: subgrid; gap: inherit; }
.eo-opts--even > .eo-opt > .eo-h3 { margin: 0; }
.eo-opts--even > .eo-opt > .eo-search { margin-top: var(--eo-space-2); }
@container (max-width: 640px) {
  .eo-opts--even { row-gap: var(--eo-space-8); }
  .eo-opts--even > .eo-opt { grid-row: auto; grid-template-rows: none; row-gap: var(--eo-space-2); }
}

/* Support: the form */
.eo-form { display: grid; gap: 22px; }

/* Welcome: the job rows */
.eo-modal__list { display: grid; }
.eo-modal__list .eo-menu__item { height: auto; min-height: 44px; padding: 10px; margin: 0 -10px; width: calc(100% + 20px); white-space: normal; }

/* ============ Analytics: the graph that drags, its arrows, rows on the sheet (2026-11-14) ============ */
/* Dragging sideways moves the graph's days; up and down still scroll the page on a phone. */
.eo-chart--pan { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: var(--eo-r-ctl); }
.eo-chart--pan.is-dragging { cursor: grabbing; }
.eo-chart--pan:focus-visible { outline: 2px solid var(--eo-ink-4); outline-offset: 4px; }
.eo-pan { display: inline-flex; gap: 2px; align-self: center; }
.eo-pan[hidden] { display: none; }
/* A breakdown's rows straight on the sheet (Where visitors came from), not inside a menu. */
.eo-breakdown--flat { padding: 0; gap: 16px; }
/* A table whose rows open nothing (Pages people look at): no pointer, the hover plate still follows. */
.eo-table--static tbody tr { cursor: default; }

/* A row with a label, a value to copy and a button (Domain: Your free address and Your store address, 2026-11-16): at
   phone width the label takes its own line and the address and its button sit under it, rather than the label being
   squeezed into a column of single words and the button pushed off the sheet. */
@media (max-width: 560px) {
  .eo-row--wrap { flex-wrap: wrap; row-gap: 4px; }
  .eo-row--wrap > .eo-row__main { flex-basis: 100%; }
  .eo-row--wrap > .eo-copy { flex: 1; min-width: 0; text-align: left; overflow-wrap: anywhere; }
}

/* ============ Storefront: your versions and the templates (2026-11-21) ============ */
/* A store drawn small in its own colours, the way a theme library shows each theme: the announcement bar, the photo
   beside the buy box, then four bands of the page. Its colours are the store's (inline, like a photo), never tokens. */
.eo-cp { gap: 16px; }
.eo-cp__acts { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.eo-stp { display: grid; grid-template-rows: 4px 22px repeat(4, minmax(0, 1fr)); width: 48px; height: 64px; flex: none; border-radius: var(--eo-r-ctl); overflow: hidden; box-shadow: 0 0 0 1px var(--eo-line); }
.eo-stp > i { display: block; min-height: 0; }
.eo-stp__pa { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; overflow: hidden; }
.eo-stp__ph { display: block; border-radius: 2px; }
.eo-stp__ph.is-stack { display: grid; gap: 2px; background: transparent !important; }
.eo-stp__ph.is-stack > b { display: block; border-radius: 2px; }
.eo-stp__bx { display: grid; align-content: start; gap: 2px; padding-top: 1px; }
.eo-stp__bx > b { display: block; height: 2px; border-radius: 1px; opacity: .75; }
.eo-stp__bx > b.is-short { width: 60%; }
.eo-stp__bx > b.is-btn { height: 5px; opacity: 1; }
.eo-stp__band { display: flex !important; align-items: center; padding: 0 5px; }
.eo-stp__band > b { display: block; width: 55%; height: 2px; border-radius: 1px; opacity: .7; }
/* Phone width: the drawing and the words on one line, the ring and the buttons under them. */
@media (max-width: 560px) {
  .eo-cp { flex-wrap: wrap; row-gap: 8px; }
  .eo-cp > .eo-row__main { flex: 1 1 0; }
  .eo-cp__acts { flex-basis: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .eo-cp .eo-row__title { white-space: normal; }
}
/* The live store's peek (in the browser frame the Domain page draws a live domain in), each template as a card like the
   Email Look page's themes, and a template's own page. The store is drawn a computer screen wide (1280) and scaled to
   the frame (--eo-peek-s, set by app.js cpScale); on a phone it is 390 wide, unscaled. It fades in once it has loaded. */
.eo-peek { position: relative; overflow: hidden; background: var(--eo-sheet); }
.eo-peek > iframe { position: absolute; top: 0; left: 0; width: 1280px; height: calc(100% / var(--eo-peek-s, .5)); border: 0; transform: scale(var(--eo-peek-s, .5)); transform-origin: 0 0; pointer-events: none; opacity: 0; }
.eo-peek.is-in > iframe { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .eo-peek > iframe { transition: opacity var(--eo-dur-tile) var(--eo-ease); } }
.eo-peek--card { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--eo-r-ctl); box-shadow: 0 0 0 1px var(--eo-line); }
.eo-peek--live > iframe { pointer-events: auto; }
.eo-peek--phone { width: 390px; max-width: 100%; margin: 0 auto; }
.eo-peek--phone > iframe { width: 100%; height: 100%; transform: none; }
.eo-cp__live { display: grid; gap: 16px; max-width: 760px; }
.eo-cp__view { display: block; height: 300px; }
.eo-cp__view > .eo-peek { height: 100%; }
.eo-cp__big .eo-peek { height: min(72vh, 820px); }
.eo-cp__big .eo-peek--phone { background: var(--eo-canvas); }
.eo-cp__host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-cp__barpad { width: 46px; flex: none; }
.eo-cp__strip { border: 0; width: 100%; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
.eo-cp__full { margin: 12px 0 0; }
.eo-lead + .eo-cp__show { margin-top: 20px; }
.eo-cp__looks .eo-look__meta { flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 560px) {
  .eo-cp__view { height: 220px; }
}
/* A version's picture in its row: the version itself, a computer screen wide, scaled to 96 (Enduragoods test, 2026-11-21:
   the line drawings did not look like the store), and the point a right-click menu grows from. */
.eo-peek--thumb { width: 96px; height: 64px; flex: none; border-radius: var(--eo-r-ctl); box-shadow: 0 0 0 1px var(--eo-line); }
.eo-cp__at { position: fixed; width: 1px; height: 1px; pointer-events: none; }
/* The editor header's store state (2026-11-21): a green dot with Live, a gray one with Offline or Not live. DESIGN.md
   2 makes status a ring, never a colored dot; this one control is Tommy's own call ("just have it be like a green dot
   that says live"), and the dot is used nowhere else. */
.eo-livedot { display: inline-flex; align-items: center; gap: 8px; }
.eo-livedot__dot { width: 8px; height: 8px; flex: none; border-radius: var(--eo-r-pill); background: var(--eo-ink-4); }
.eo-livedot.is-live .eo-livedot__dot { background: var(--eo-green); }
