/* EOCube Design System — component stylesheet.
   Colours and faces always come from tokens.css; lengths come from the spacing, radius and size tokens,
   with a few optical corrections (6px, 10px) inside components. Media-query widths mirror the breakpoint tokens. */

/* ---- base ------------------------------------------------------------- */
.eo, .eo * { box-sizing: border-box; }
.eo {
  font-family: var(--font-sans);
  font-size: 14px; line-height: 22px;
  color: var(--ink); background: var(--page);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: proportional-nums;
}
.eo a { color: var(--link); text-decoration: none; }
.eo a:hover { text-decoration: underline; }
.eo-prose a, .eo-callout a, .eo-banner a, .eo-footer a, .eo-auth-footer a, .eo-auth-card p a, .eo-auth-row a, .eo-help a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }
.eo-prose a:hover, .eo-callout a:hover, .eo-banner a:hover, .eo-footer a:hover, .eo-auth-card a:hover { text-decoration-color: currentColor; }
.eo :focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* ---- type styles (generated from tokens.json by the repository build; do not edit by hand) ---- */
.eo .eo-display { font-family: var(--font-sans); font-size: 44px; line-height: 50px; font-weight: 600; letter-spacing: -0.02em; }
.eo .eo-display-sm { font-family: var(--font-sans); font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.015em; }
.eo .eo-title-1 { font-family: var(--font-sans); font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; }
.eo .eo-title-2 { font-family: var(--font-sans); font-size: 20px; line-height: 28px; font-weight: 600; }
.eo .eo-title-3 { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.eo .eo-body-lg { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; }
.eo .eo-body { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; }
.eo .eo-body-sm { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 400; }
.eo .eo-label { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.eo .eo-caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-muted); }
.eo .eo-caption-sm { font-family: var(--font-sans); font-size: 11px; line-height: 16px; font-weight: 400; color: var(--ink-muted); }
.eo .eo-mono { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; }
.eo .eo-code-sm { font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 400; }
.eo .eo-num { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
/* ---- /type styles ---- */
.eo code, .eo kbd { font-family: var(--font-mono); font-size: 13px; }
.eo .eo-muted { color: var(--ink-muted); }
.eo .eo-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.eo .eo-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.eo .eo-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eo .eo-icon-sm { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .eo * { transition: none !important; animation: none !important; } }

/* ---- header ----------------------------------------------------------- */
.eo-header {
  position: relative; z-index: var(--z-header);
  display: flex; align-items: center; gap: var(--space-4);
  height: var(--header-height); padding: 0 var(--space-4);
  background: var(--brand-navy); color: var(--on-brand);
  font-family: var(--font-sans); font-size: 14px; line-height: 22px;
}
.eo-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--header-rule); background: var(--brand-teal); }
.eo-header .eo-brand { display: flex; align-items: center; gap: var(--space-3); color: var(--on-brand); text-decoration: none; }
.eo-header .eo-brand img { height: 36px; width: auto; display: block; }
.eo-header .eo-brand-mark { width: 28px; height: 28px; display: grid; place-items: center; }
.eo-header .eo-brand-mark svg { width: 28px; height: 28px; stroke: var(--on-brand); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.eo-header .eo-product { padding-left: var(--space-3); border-left: 1px solid var(--on-brand-border); font-weight: 500; }
.eo-header nav { display: flex; gap: var(--space-1); margin-left: var(--space-2); }
.eo-header nav a {
  color: var(--on-brand-muted); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-md); min-height: var(--control-height-sm); display: inline-flex; align-items: center;
}
.eo-header nav a:hover { background: var(--brand-navy-hover); color: var(--on-brand); text-decoration: none; }
.eo-header nav a[aria-current="page"] { background: var(--brand-navy-hover); color: var(--on-brand); box-shadow: inset 0 -2px 0 var(--brand-teal); }
.eo-header nav a:focus-visible { box-shadow: var(--focus-ring); }
.eo-header nav a[aria-current="page"]:focus-visible { box-shadow: var(--focus-ring), inset 0 -2px 0 var(--brand-teal); }
.eo-header .eo-spacer { flex: 1; }
.eo-header .eo-hbtn { display: inline-flex; align-items: center; gap: 6px; height: var(--control-height-sm); padding: 0 10px; border-radius: var(--radius-md); background: transparent; border: 1px solid var(--on-brand-border); color: var(--on-brand); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.eo-header .eo-hbtn.eo-btn-icon, .eo-header .eo-menu-btn { width: var(--control-height-sm); padding: 0; justify-content: center; }
.eo-header-sticky { position: sticky; top: 0; }
.eo-header .eo-hbtn:hover { background: var(--brand-navy-hover); }
.eo-header .eo-hbtn .eo-icon { width: 16px; height: 16px; }

/* ---- footer ----------------------------------------------------------- */
.eo-footer { padding: var(--space-6) var(--space-4); border-top: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); font-size: 12px; line-height: 16px; }
.eo-footer .eo-footer-inner { max-width: var(--content-max); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-4); }
.eo-footer .eo-partners { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.eo-footer .eo-partner { height: 44px; min-width: 72px; padding: 0 var(--space-3); display: grid; place-items: center; background: var(--logo-plate); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--ink-faint); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.eo-footer .eo-partner img { height: 28px; width: auto; max-width: 140px; display: block; }
.eo-footer .eo-partner.eo-pending { background: transparent; border-style: dashed; border-color: var(--border-strong); }
.eo-footer .eo-footer-row { display: flex; gap: var(--space-6); align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.eo-footer .eo-funding { max-width: 60ch; margin: 0; }
.eo-footer .eo-funding strong { color: var(--ink-2); font-weight: 500; }
.eo-footer .eo-funding .eo-code-sm { white-space: nowrap; }
.eo-footer .eo-footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); }
.eo-footer .eo-footer-links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.eo-footer .eo-footer-links a { display: inline-flex; align-items: center; min-height: var(--control-height-sm); }

/* ---- buttons ---------------------------------------------------------- */
.eo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--control-height); padding: 0 var(--space-3);
  border-radius: var(--radius-md); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap; transition: background .15s ease-out, border-color .15s ease-out;
}
.eo-btn:hover { background: var(--surface-2); }
.eo-btn:active { background: var(--surface-3); }
.eo-btn:disabled { color: var(--ink-faint); border-color: var(--border); background: var(--surface); cursor: not-allowed; }
.eo-btn .eo-icon { width: 16px; height: 16px; }
.eo-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.eo-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.eo-btn-primary:active { background: var(--accent-hover); }
.eo-btn-primary:disabled { background: var(--surface-3); border-color: var(--surface-3); color: var(--ink-faint); }
.eo-btn-brand { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--on-brand); }
.eo-btn-brand:hover { background: var(--brand-navy-hover); border-color: var(--brand-navy-hover); }
.eo-btn-quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.eo-btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.eo-btn-danger { background: transparent; border-color: transparent; color: var(--danger); }
.eo-btn-danger:hover { background: var(--danger-tint); }
.eo-btn-sm { height: var(--control-height-sm); padding: 0 10px; font-size: 13px; }
.eo-btn-icon { width: var(--control-height); padding: 0; }
.eo-btn-icon.eo-btn-sm { width: var(--control-height-sm); }
.eo-btn-group { display: inline-flex; }
.eo-btn-group .eo-btn { border-radius: 0; margin-left: -1px; }
.eo-btn-group .eo-btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); margin-left: 0; }
.eo-btn-group .eo-btn:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.eo-btn-group .eo-btn[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); position: relative; z-index: 1; }
.eo-btn-group .eo-btn:focus-visible { position: relative; z-index: 2; }
.eo-btn-lg { height: var(--control-height-lg); padding: 0 var(--space-4); font-size: 16px; }

/* ---- forms ------------------------------------------------------------ */
.eo-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eo-field > label, .eo-field > legend { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0; }
fieldset.eo-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.eo-field label .eo-req { color: var(--danger); margin-left: 2px; }
.eo-input, .eo-select, .eo-textarea {
  width: 100%; height: var(--control-height); padding: 0 var(--space-3);
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-sans); font-size: 14px; line-height: 22px;
  transition: border-color .15s ease-out;
}
.eo-textarea { height: auto; padding: var(--space-2) var(--space-3); resize: vertical; }
.eo-input::placeholder, .eo-textarea::placeholder { color: var(--ink-muted); }
.eo-input:hover, .eo-select:hover, .eo-textarea:hover { border-color: var(--ink-muted); }
.eo-input:focus, .eo-select:focus, .eo-textarea:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus-ring); }
.eo-input[aria-invalid="true"] { border-color: var(--danger); }
.eo-input.eo-mono { font-family: var(--font-mono); font-size: 13px; }
.eo-input:disabled { background: var(--surface-2); color: var(--ink-muted); }
.eo-select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2374839a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6l6 -6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }
[data-theme="dark"] .eo-select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f7196' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6l6 -6'/></svg>"); }
.eo-help { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.eo-error { font-size: 12px; line-height: 16px; color: var(--danger); display: flex; gap: 4px; align-items: center; }
.eo-error .eo-icon { width: 14px; height: 14px; }
.eo-input-group { display: flex; }
.eo-input-group .eo-input { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.eo-input-group .eo-addon { display: flex; align-items: center; padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--surface-2); color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.eo-check { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; cursor: pointer; min-height: var(--control-height-sm); }
.eo-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.eo-switch { position: relative; display: inline-block; width: 32px; height: 18px; flex: none; }
.eo-switch::before { content: ""; position: absolute; inset: -7px -4px; }
.eo-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.eo-switch span { position: absolute; inset: 0; border-radius: var(--radius-full); background: var(--border-strong); transition: background .15s ease-out; }
.eo-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .15s ease-out; }
.eo-switch input:checked + span { background: var(--accent); }
.eo-switch input:checked + span::after { transform: translateX(14px); }
.eo-switch input:focus-visible + span { box-shadow: var(--focus-ring); }
.eo-range { width: 100%; accent-color: var(--accent); height: 18px; }

/* ---- chips ------------------------------------------------------------ */
.eo-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500; line-height: 1;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent;
}
.eo-chip .eo-icon { width: 13px; height: 13px; }
.eo-chip .eo-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.eo-chip-success { background: var(--success-tint); color: var(--success); }
.eo-chip-warning { background: var(--warning-tint); color: var(--warning); }
.eo-chip-danger  { background: var(--danger-tint);  color: var(--danger); }
.eo-chip-info    { background: var(--info-tint);    color: var(--info); }
.eo-chip-accent  { background: var(--accent-tint); color: var(--accent); }
.eo-chip-outline { background: transparent; border-color: var(--border-strong); color: var(--ink-2); }
.eo-chip-square  { border-radius: var(--radius-sm); font-family: var(--font-mono); font-weight: 500; }
.eo-chip-filter, .eo-chip-active { height: var(--control-height-sm); padding: 0 var(--space-3); font-size: 13px; }
.eo-chip-filter  { cursor: pointer; border-color: var(--border-strong); background: var(--surface); font-family: inherit; }
.eo-chip-filter:hover { background: var(--surface-2); }
.eo-chip-filter[aria-pressed="true"], .eo-chip-active { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }
.eo-chip-active { padding-right: var(--space-1); }
.eo-chip .eo-x { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; color: inherit; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.eo-chip .eo-x:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.eo-chip-info .eo-dot { animation: eo-pulse 1.6s ease-in-out infinite; }
@keyframes eo-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- session chip ----------------------------------------------------- */
.eo-session { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-height-sm); padding: 0 10px 0 4px; border-radius: var(--radius-full); border: 1px solid var(--on-brand-border); color: var(--on-brand); font-size: 13px; cursor: pointer; background: transparent; font-family: inherit; }
.eo-session:hover { background: var(--brand-navy-hover); }
.eo-session .eo-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-teal); color: var(--brand-navy); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.eo-session .eo-exp { font-family: var(--font-mono); font-size: 11px; color: var(--on-brand-muted); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.eo-session .eo-exp .eo-icon { width: 13px; height: 13px; }
.eo-session.eo-session-warn .eo-exp { color: var(--on-brand-warning); }
.eo-session.eo-on-surface.eo-session-warn .eo-exp { color: var(--warning); }
.eo-session.eo-on-surface { border-color: var(--border-strong); color: var(--ink); }
.eo-session.eo-on-surface .eo-exp { color: var(--ink-muted); }
.eo-session.eo-on-surface:hover { background: var(--surface-2); }
.eo-session.eo-on-surface .eo-avatar { background: var(--brand-navy); color: var(--on-brand); }
.eo-session-menu { width: 260px; padding: var(--space-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.eo-session-menu .eo-who { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); margin-bottom: var(--space-1); }
.eo-session-menu .eo-who b { display: block; font-weight: 600; }
.eo-session-menu .eo-who span { font-size: 12px; color: var(--ink-muted); font-family: var(--font-mono); }
.eo-session-menu a, .eo-session-menu button { display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--control-height); padding: 6px var(--space-3); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.eo-session-menu a:hover, .eo-session-menu button:hover { background: var(--surface-2); text-decoration: none; }
.eo-session-menu .eo-icon { width: 16px; height: 16px; color: var(--ink-muted); }

/* ---- cards & callouts ------------------------------------------------- */
.eo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); }
.eo-card-title { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0 0 var(--space-3); display: flex; align-items: center; gap: var(--space-2); }
.eo-card-title .eo-chip { margin-left: auto; }
.eo-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--space-4); font-size: 13px; line-height: 20px; }
.eo-kv dt { color: var(--ink-muted); margin: 0; }
.eo-kv dd { margin: 0; color: var(--ink); font-family: var(--font-mono); font-size: 13px; }
.eo-callout { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--info-tint); color: var(--ink); border: 1px solid transparent; font-size: 14px; line-height: 22px; }
.eo-callout .eo-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--info); }
.eo-callout b { font-weight: 600; }
.eo-callout-success { background: var(--success-tint); } .eo-callout-success .eo-icon { color: var(--success); }
.eo-callout-warning { background: var(--warning-tint); } .eo-callout-warning .eo-icon { color: var(--warning); }
.eo-callout-danger  { background: var(--danger-tint); }  .eo-callout-danger  .eo-icon { color: var(--danger); }
.eo-callout-brand   { background: var(--surface); border: 1px solid var(--border); } .eo-callout-brand .eo-icon { color: var(--brand-text); }
.eo-callout code { background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 1px 5px; border-radius: var(--radius-sm); font-size: 12px; }
.eo-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-toast); display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--brand-navy-tint); color: var(--ink); border-top: 1px solid var(--border); font-size: 14px; line-height: 22px; }
.eo-banner .eo-icon { color: var(--brand-text); flex: none; }
.eo-banner .eo-banner-actions { margin-left: auto; display: flex; gap: var(--space-2); flex: none; }
.eo-banner-warning { background: var(--warning-tint); } .eo-banner-warning .eo-icon { color: var(--warning); }
.eo-banner-inline { position: static; border-radius: var(--radius-md); border: 1px solid var(--border); }

/* ---- progress --------------------------------------------------------- */
.eo-progress { height: 6px; border-radius: var(--radius-full); background: var(--surface-3); overflow: hidden; }
.eo-progress > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s ease-out; }
.eo-progress-success > span { background: var(--success); }
.eo-progress-danger  > span { background: var(--danger); }
.eo-progress-indeterminate > span { width: 40%; animation: eo-indeterminate 1.4s ease-in-out -.7s infinite; }
@keyframes eo-indeterminate { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.eo-job { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.eo-job:last-child { border-bottom: 0; }
.eo-job .eo-job-name { font-family: var(--font-mono); font-size: 13px; }
.eo-job .eo-progress { grid-column: 1 / -1; }
.eo-job .eo-job-meta { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ---- map: toolbar, panels, legend ------------------------------------ */
.eo-map { position: relative; background: var(--surface-3); overflow: hidden; font-family: var(--font-sans); font-size: 14px; color: var(--ink); }
.eo-map-toolbar { position: absolute; z-index: var(--z-map-controls); display: flex; flex-direction: column; gap: var(--space-2); }
.eo-map-toolbar .eo-tool-group { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; }
.eo-map-toolbar .eo-tool { width: var(--control-height); height: var(--control-height); display: grid; place-items: center; background: transparent; border: 0; color: var(--ink-2); cursor: pointer; font: inherit; }
.eo-map-toolbar .eo-tool + .eo-tool { border-top: 1px solid var(--border); }
.eo-map-toolbar .eo-tool:hover { background: var(--surface-2); color: var(--ink); }
.eo-map-toolbar .eo-tool[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); }
.eo-map-toolbar .eo-tool .eo-icon { width: 18px; height: 18px; }
.eo-map-scale { position: absolute; z-index: var(--z-map-controls); display: flex; gap: var(--space-3); align-items: flex-end; }
.eo-scaleline { border: 2px solid var(--ink); border-top: 0; height: 6px; width: 96px; position: relative; font-size: 11px; line-height: 1; }
.eo-scaleline span { position: absolute; left: 0; right: 0; top: -14px; text-align: center; color: var(--ink); text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface); }
.eo-map-attrib { font-size: 11px; line-height: 16px; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 82%, transparent); padding: 2px 6px; border-radius: var(--radius-sm); }
.eo-map-toolbar .eo-tool:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.eo-pos-tl { top: var(--space-3); left: var(--space-3); } .eo-pos-tr { top: var(--space-3); right: var(--space-3); } .eo-pos-bl { bottom: var(--space-3); left: var(--space-3); } .eo-pos-br { bottom: var(--space-3); right: var(--space-3); }
.eo-map-readout { position: absolute; z-index: var(--z-map-controls); font-family: var(--font-mono); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 8px; box-shadow: var(--shadow-sm); }
.eo-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: var(--panel-width); max-width: 100%; }
.eo-panel-head { display: flex; align-items: center; gap: var(--space-2); padding: 10px var(--space-4); border-bottom: 1px solid var(--border); font-weight: 600; }
.eo-panel-head .eo-btn { margin-left: auto; }
.eo-panel-body { padding: var(--space-3) var(--space-4); }
.eo-layer { display: grid; grid-template-columns: auto 1fr auto; gap: 4px var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.eo-layer:last-child { border-bottom: 0; }
.eo-layer .eo-layer-name { font-weight: 500; display: flex; align-items: center; gap: 6px; min-width: 0; }
.eo-layer .eo-layer-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-layer .eo-layer-sub { grid-column: 2 / -1; font-size: 12px; color: var(--ink-muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-layer .eo-range { grid-column: 2 / -1; margin-top: 2px; }
.eo-layer.eo-off .eo-layer-name, .eo-layer.eo-off .eo-layer-sub { color: var(--ink-muted); }
.eo-legend { display: flex; flex-direction: column; gap: 6px; }
.eo-legend-title { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: var(--space-2); }
.eo-legend-title small { font-weight: 400; color: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; }
.eo-colorbar { height: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.eo-colorbar-ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.eo-legend-classes { display: grid; grid-template-columns: 14px 1fr max-content; gap: 4px var(--space-2); align-items: center; font-size: 13px; line-height: 16px; }
.eo-legend-classes .eo-swatch { width: 14px; height: 14px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.eo-legend-classes .eo-range-txt { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eo-legend-classes .eo-nodata { background: repeating-linear-gradient(45deg, var(--surface-3) 0 3px, var(--surface) 3px 6px); }

/* ---- tables ----------------------------------------------------------- */
.eo-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; background: var(--surface); }
.eo-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-2); padding: 6px var(--space-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
.eo-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border); vertical-align: middle; }
.eo-table tr:hover td { background: var(--surface-2); }
.eo-table tr[aria-current="true"] td { background: var(--accent-tint); }
.eo-table .eo-num, .eo-table td.eo-num { text-align: right; font-family: var(--font-mono); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.eo-table th.eo-num { text-align: right; }
.eo-table .eo-id { font-family: var(--font-mono); font-size: 13px; }
.eo-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; }
.eo-table-wrap .eo-table th:first-child, .eo-table-wrap .eo-table td:first-child { padding-left: var(--space-4); }
.eo-table-foot { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4); font-size: 12px; color: var(--ink-muted); border-top: 1px solid var(--border); background: var(--surface); }
.eo-table-foot .eo-spacer { flex: 1; }

/* ---- STAC item card --------------------------------------------------- */
.eo-item { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-3); padding: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: border-color .15s ease-out; }
.eo-item:hover { border-color: var(--border-strong); }
.eo-item[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.eo-item:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.eo-item .eo-thumb { width: 96px; height: 96px; border-radius: var(--radius-sm); background: var(--surface-3); overflow: hidden; display: grid; place-items: center; color: var(--ink-faint); }
.eo-item .eo-thumb svg { width: 100%; height: 100%; display: block; }
.eo-item.eo-item-compact { grid-template-columns: 72px 1fr; }
.eo-item.eo-item-compact .eo-thumb { width: 72px; height: 72px; }
.eo-item .eo-item-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.eo-item .eo-item-id { font-family: var(--font-mono); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-item .eo-item-coll { font-size: 12px; color: var(--ink-muted); }
.eo-item .eo-item-meta { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: auto; }
.eo-item .eo-item-meta span { display: inline-flex; align-items: center; gap: 4px; }
.eo-item .eo-item-meta .eo-icon { width: 13px; height: 13px; color: var(--ink-muted); }
.eo-item .eo-item-meta b { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---- code block ------------------------------------------------------- */
.eo-code { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 13px; line-height: 20px; overflow: auto; }
.eo-code pre { margin: 0; padding: var(--space-3) var(--space-4); }
.eo-code .eo-code-head { display: flex; align-items: center; gap: var(--space-2); padding: 4px var(--space-2) 4px var(--space-4); border-bottom: 1px solid var(--border); font-family: var(--font-sans); font-size: 12px; color: var(--ink-muted); }
.eo-code .eo-code-head .eo-btn { margin-left: auto; }
.eo-code .k { color: var(--code-keyword); font-weight: 500; }
.eo-code .s { color: var(--code-string); }
.eo-code .n { color: var(--code-number); }
.eo-code .c { color: var(--code-comment); font-style: italic; }
.eo-code .f { color: var(--code-function); }

/* ---- docs prose ------------------------------------------------------- */
.eo-prose { max-width: var(--prose-measure); font-size: 16px; line-height: 26px; color: var(--ink); }
.eo-prose h1 { font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 var(--space-4); text-wrap: balance; }
.eo-prose h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin: var(--space-8) 0 var(--space-3); }
.eo-prose h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.eo-prose p { margin: 0 0 var(--space-4); }
.eo-prose code { font-family: var(--font-mono); font-size: 14px; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 5px; border-radius: var(--radius-sm); }
.eo-prose .eo-code { margin: 0 0 var(--space-4); }
.eo-prose .eo-callout { margin: 0 0 var(--space-4); }
.eo-prose ul { padding-left: 22px; margin: 0 0 var(--space-4); }
.eo-prose li { margin-bottom: 4px; }
.eo-docs { display: grid; grid-template-columns: var(--nav-width) 1fr; gap: var(--space-8); max-width: var(--content-max); margin: 0 auto; padding: var(--space-8) var(--space-4); }
.eo-docs-nav { font-size: 13px; line-height: 20px; }
.eo-docs-nav .eo-label { margin: var(--space-4) 0 var(--space-2); }
.eo-docs-nav .eo-label:first-child { margin-top: 0; }
.eo-docs-nav a { display: flex; align-items: center; min-height: var(--control-height-sm); padding: 4px var(--space-2); border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; }
.eo-docs-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.eo-docs-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 500; }

/* ---- app shell ------------------------------------------------------- */
.eo-shell { display: grid; grid-template-rows: var(--header-height) 1fr; height: 100%; }
.eo-shell-body { display: grid; grid-template-columns: var(--sidebar-width) 1fr; min-height: 0; }
.eo-sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.eo-sidebar-section { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
.eo-sidebar-section .eo-label { margin-bottom: var(--space-2); }
.eo-sidebar-section:last-child { border-bottom: 0; }
.eo-graticule { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 64px 64px; opacity: .7; }

/* ---- custom elements -------------------------------------------------- */
eo-icon { display: inline-flex; line-height: 0; }
eo-legend { display: block; }
eo-session { display: inline-flex; }

/* ---- header: signed-out ------------------------------------------------ */
.eo-header .eo-hbtn-accent { background: var(--brand-teal); border-color: var(--brand-teal); color: var(--brand-navy); font-weight: 600; }
.eo-header .eo-hbtn-accent:hover { background: var(--brand-teal-hover); border-color: var(--brand-teal-hover); }

/* ---- landing: hero ------------------------------------------------------ */
.eo-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; max-width: var(--content-max); margin: 0 auto; padding: var(--space-16) var(--space-4); }
.eo-hero .eo-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-4); display: inline-flex; align-items: center; gap: 8px; }
.eo-hero h1 { font-size: 44px; line-height: 50px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 var(--space-4); text-wrap: balance; }
.eo-hero p { font-size: 16px; line-height: 26px; color: var(--ink-2); margin: 0 0 var(--space-6); max-width: 52ch; }
.eo-hero .eo-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.eo-hero .eo-cta .eo-btn { height: var(--control-height-lg); padding: 0 var(--space-4); font-size: 16px; }
.eo-hero .eo-cta-note { font-size: 12px; color: var(--ink-muted); width: 100%; margin-top: var(--space-1); }
.eo-hero-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-md); }
.eo-hero-media .eo-media-caption { position: absolute; left: var(--space-3); bottom: var(--space-3); display: flex; gap: var(--space-2); align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px 8px; }
.eo-hero-media .eo-media-caption .eo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* ---- landing: stats ----------------------------------------------------- */
.eo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); }
.eo-stat { padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 2px; }
.eo-stat .eo-stat-label { font-size: 13px; color: var(--ink-muted); }
.eo-stat .eo-stat-value { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.eo-stat .eo-stat-value small { font-size: 16px; font-weight: 500; color: var(--ink-2); margin-left: 3px; }
.eo-stat .eo-stat-delta { font-size: 12px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 4px; }
.eo-stat .eo-stat-delta b { color: var(--success); font-weight: 500; }
.eo-stat .eo-stat-delta.eo-down b { color: var(--danger); }
a.eo-stat { color: inherit; text-decoration: none; } a.eo-stat:hover { border-color: var(--border-strong); text-decoration: none; }
.eo-stat .eo-spark { height: 24px; margin-top: 6px; }
.eo-stat .eo-spark svg { width: 100%; height: 24px; display: block; }
.eo-stat .eo-spark path { fill: none; stroke: var(--data-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eo-stat .eo-spark circle { fill: var(--accent); }

/* ---- landing: product cards --------------------------------------------- */
.eo-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); }
.eo-product-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color .15s ease-out, transform .15s ease-out; }
.eo-product-card:hover { border-color: var(--border-strong); text-decoration: none; }
.eo-product-card:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.eo-product-card .eo-product-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--brand-navy-tint); color: var(--brand-text); display: grid; place-items: center; }
.eo-product-card .eo-product-icon .eo-icon { width: 22px; height: 22px; }
.eo-product-card .eo-product-title { font-size: 16px; line-height: 24px; font-weight: 600; display: flex; align-items: center; gap: var(--space-2); }
.eo-product-card .eo-product-title .eo-chip { margin-left: auto; }
.eo-product-card p { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-2); }
.eo-product-card .eo-product-link { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 500; font-size: 14px; }
.eo-product-card .eo-product-link .eo-icon { width: 16px; height: 16px; transition: transform .15s ease-out; }
.eo-product-card:hover .eo-product-link .eo-icon { transform: translateX(2px); }
.eo-product-card.eo-product-locked .eo-product-icon { background: var(--surface-2); color: var(--ink-muted); }

/* ---- landing: sections & feature ---------------------------------------- */
.eo-section { max-width: var(--content-max); margin: 0 auto; padding: var(--space-12) var(--space-4); }
.eo-section-head { max-width: 62ch; margin-bottom: var(--space-6); }
.eo-section-head .eo-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-2); }
.eo-section-head h2 { font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 var(--space-3); text-wrap: balance; }
.eo-section-head p { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink-2); }
.eo-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.eo-feature.eo-reverse .eo-feature-text { order: 2; }
.eo-feature-text h3 { font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 var(--space-3); text-wrap: balance; }
.eo-feature-text p { font-size: 16px; line-height: 26px; color: var(--ink-2); margin: 0 0 var(--space-4); }
.eo-feature-text ul { margin: 0 0 var(--space-5); padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font-size: 14px; line-height: 22px; }
.eo-feature-text li { display: flex; gap: var(--space-2); align-items: flex-start; }
.eo-feature-text li .eo-icon { color: var(--ink-muted); margin-top: 2px; }
.eo-feature-media { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.eo-feature-media .eo-map { height: 320px; }

/* ---- landing: search teaser --------------------------------------------- */
.eo-search-teaser { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }
.eo-search-teaser .eo-search-bar { display: flex; align-items: center; gap: var(--space-2); height: var(--space-12); padding: 0 var(--space-2) 0 var(--space-4); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.eo-search-teaser .eo-search-bar:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
.eo-search-teaser .eo-search-bar .eo-icon { color: var(--ink-muted); }
.eo-search-teaser .eo-search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.eo-search-teaser .eo-search-bar input::placeholder { color: var(--ink-muted); }
.eo-search-teaser .eo-search-bar .eo-btn { height: 36px; }
.eo-search-teaser .eo-search-hints { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ink-muted); }

/* ---- auth: sign-in (Keycloak login theme) ------------------------------- */
.eo-auth { min-height: 100%; display: grid; grid-template-rows: 1fr auto; background: var(--page); }
.eo-auth-main { display: grid; place-items: center; padding: var(--space-10) var(--space-4); }
.eo-auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); box-shadow: var(--shadow-sm); }
.eo-auth-card .eo-auth-logo { display: flex; justify-content: center; }
.eo-auth-card .eo-auth-logo img { height: 44px; width: auto; }
.eo-auth-card h1 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; text-align: center; }
.eo-auth-card .eo-auth-realm { text-align: center; font-size: 13px; color: var(--ink-muted); margin: -8px 0 0; }
.eo-auth-card form { display: flex; flex-direction: column; gap: var(--space-4); }
.eo-auth-card .eo-btn { height: var(--control-height-lg); font-size: 16px; }
.eo-auth-card .eo-auth-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.eo-auth-card .eo-auth-divider { display: flex; align-items: center; gap: var(--space-3); font-size: 12px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.eo-auth-card .eo-auth-divider::before, .eo-auth-card .eo-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.eo-auth-card .eo-idp { display: flex; flex-direction: column; gap: var(--space-2); }
.eo-auth-card .eo-idp .eo-btn { justify-content: flex-start; gap: var(--space-3); font-weight: 500; }
.eo-auth-card .eo-idp .eo-idp-mark { width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--logo-plate); border: 1px solid var(--border); color: var(--ink-2); font-size: 11px; font-weight: 600; display: grid; place-items: center; overflow: hidden; }
.eo-auth-card .eo-idp .eo-idp-mark img { width: 100%; height: 100%; object-fit: contain; }
.eo-auth-card .eo-auth-foot { text-align: center; font-size: 13px; color: var(--ink-muted); }
.eo-auth-card .eo-otp { display: flex; gap: var(--space-2); justify-content: center; }
.eo-auth-card .eo-otp input { width: 44px; height: 52px; text-align: center; font-family: var(--font-mono); font-size: 20px; font-weight: 500; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); }
.eo-auth-card .eo-otp input:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus-ring); }
.eo-auth-footer { padding: var(--space-4); text-align: center; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.eo-auth-footer a { color: var(--ink-2); }

/* ---- auth: account console ----------------------------------------------- */
.eo-account { display: grid; grid-template-columns: var(--nav-width) 1fr; gap: var(--space-8); max-width: var(--content-max); margin: 0 auto; padding: var(--space-8) var(--space-4); }
.eo-account-nav { font-size: 14px; line-height: 22px; }
.eo-account-nav .eo-label { margin: var(--space-4) 0 var(--space-2); }
.eo-account-nav .eo-label:first-child { margin-top: 0; }
.eo-account-nav a { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-height); padding: 6px var(--space-2); border-radius: var(--radius-md); color: var(--ink-2); text-decoration: none; }
.eo-account-nav a .eo-icon { width: 16px; height: 16px; color: var(--ink-muted); }
.eo-account-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.eo-account-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 500; }
.eo-account-nav a[aria-current="page"] .eo-icon { color: var(--accent); }
.eo-account-main { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.eo-account-main h1 { font-size: 26px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.eo-account-main .eo-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.eo-account-main .eo-form-grid .eo-span { grid-column: 1 / -1; }
.eo-account-main .eo-form-actions { display: flex; gap: var(--space-3); justify-content: flex-end; padding-top: var(--space-4); border-top: 1px solid var(--border); }
.eo-account-main .eo-security-row { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--space-4); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.eo-account-main .eo-security-row:last-child { border-bottom: 0; padding-bottom: 0; }
.eo-account-main .eo-security-row b { grid-column: 1; grid-row: 1; font-weight: 600; display: flex; align-items: center; gap: var(--space-2); }
.eo-account-main .eo-security-row span { font-size: 13px; color: var(--ink-muted); grid-column: 1; }
.eo-account-main .eo-security-row .eo-btn { grid-column: 2; grid-row: 1 / span 2; }

/* ---- anchors styled as buttons or cards keep their own colour ------------ */
.eo a.eo-btn, .eo a.eo-product-card { color: var(--ink); text-decoration: none; }
.eo a.eo-btn-primary { color: var(--on-accent); }
.eo a.eo-btn-brand { color: var(--on-brand); }
.eo a.eo-btn-quiet { color: var(--ink-2); }
.eo a.eo-btn-danger { color: var(--danger); }
.eo a.eo-btn:hover, .eo a.eo-product-card:hover { text-decoration: none; }
/* landing blocks fill their row even inside a flex column (auto margins would shrink-wrap them) */
.eo-hero, .eo-stats, .eo-products, .eo-section, .eo-search-teaser, .eo-footer, .eo-header { width: 100%; box-sizing: border-box; }

/* ---- dialog ------------------------------------------------------------ */
.eo-dialog-backdrop { position: fixed; inset: 0; z-index: var(--z-dialog); display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: color-mix(in srgb, var(--brand-navy) 55%, transparent); }
/* The backdrop is a flex container with a definite height (inset: 0), so max-height: 100% resolves to the viewport minus the padding; the body is the only part that scrolls, so the head and the actions stay in view. */
.eo-dialog { width: 100%; max-width: 560px; max-height: 100%; display: flex; flex-direction: column; min-height: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.eo-dialog-wide { max-width: 960px; }
.eo-dialog-head { flex: none; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); font-size: 20px; line-height: 28px; font-weight: 600; }
.eo-dialog-head .eo-btn { margin-left: auto; }
.eo-dialog-body { flex: 1 1 auto; min-height: 0; padding: var(--space-5); overflow: auto; overscroll-behavior: contain; font-size: 14px; line-height: 22px; }
.eo-dialog-foot { flex: none; display: flex; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); }
.eo-dialog-foot .eo-btn-quiet:first-child { margin-right: auto; }
.eo-dialog-demo { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.eo-dialog-demo .eo-dialog-backdrop { position: absolute; }

/* ---- theme utilities ---------------------------------------------------- */
.eo-only-dark { display: none; }
[data-theme="dark"] .eo-only-light { display: none; }
[data-theme="dark"] .eo-only-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eo-only-light { display: none; }
  :root:not([data-theme="light"]) .eo-only-dark { display: block; }
  :root:not([data-theme="light"]) .eo-select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f7196' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6l6 -6'/></svg>"); }
}

/* ---- responsive: widths mirror the breakpoint tokens (bp-nav 720, bp-md 900, bp-sm 640) ---- */
@media (min-width: 900px) { .eo-section { padding-block: var(--space-16); } }
@media (max-width: 899px) {
  .eo-hero { grid-template-columns: 1fr; padding-block: var(--space-12); }
  .eo-hero h1 { font-size: 32px; line-height: 38px; }
  .eo-feature { grid-template-columns: 1fr; }
  .eo-feature.eo-reverse .eo-feature-text { order: 0; }
  .eo-docs, .eo-account { grid-template-columns: 1fr; gap: var(--space-6); }
  .eo-shell-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .eo-sidebar { order: 2; border-right: 0; border-top: 1px solid var(--border); max-height: 40vh; }
  .eo-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eo-panel { width: 100%; }
}
@media (max-width: 719px) {
  .eo-header nav { display: none; }
  .eo-header .eo-menu-btn { display: inline-flex; }
  .eo-header .eo-product { display: none; }
}
@media (min-width: 720px) { .eo-header .eo-menu-btn { display: none; } }
@media (max-width: 639px) {
  .eo-products { grid-template-columns: 1fr; }
  .eo-dialog-foot { flex-wrap: wrap; } .eo-dialog-foot .eo-btn { flex: 1 1 auto; }
  .eo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eo-auth-main { align-items: start; padding: var(--space-6) var(--space-4); }
  .eo-auth-card { padding: var(--space-6) var(--space-4); }
  .eo-account-main .eo-form-grid { grid-template-columns: 1fr; }
  .eo-hero h1 { font-size: 28px; line-height: 34px; }
}
