/* ==========================================================================
   Earth Central — design system
   True Earth Empires palette: near-black, maroon, EE red, pale pink.
   ========================================================================== */

:root {
  --ee-bg: #050506;
  --ee-bg-alt: #0b0708;
  --ee-surface: #120b0d;
  --ee-panel: #1a1013;
  --ee-panel-2: #211417;
  --ee-border: #2b191d;
  --ee-border-bright: #44242a;
  --ee-red: #cc3333;
  --ee-red-bright: #e84848;
  --ee-pink: #ffcccc;
  --ee-cream: #ffeecc;
  --ee-text: #f5eaea;
  --ee-muted: #a88f93;
  --ee-muted-2: #8f787d;
  --ee-green: #99ffbb;
  --ee-warn: #ffcc66;
  --ee-danger: #ffaaaa;
  --ee-blue: #7db7ff;
  --ee-orange: #ffb45e;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --shadow-red: 0 0 0 1px rgba(204, 51, 51, .18), 0 18px 50px rgba(204, 51, 51, .08);
  --font-display: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --header-h: 66px;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body.ec-body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ee-bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 15% -10%, rgba(204, 51, 51, .12), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 0%, rgba(255, 204, 204, .055), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  color: var(--ee-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--ee-pink); text-decoration: none; transition: color .16s ease; }
a:hover { color: #fff; }
::selection { background: rgba(204, 51, 51, .45); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ee-text);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: #fff; font-weight: 600; }
small { color: var(--ee-muted); }
hr { border: 0; border-top: 1px solid var(--ee-border); margin: 1.25rem 0; }

:focus-visible {
  outline: 2px solid var(--ee-red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.ec-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--ee-red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: transform .16s ease;
}
.ec-skip:focus { transform: translateY(0); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Icons
   -------------------------------------------------------------------------- */

.ec-icon { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.ec-chevron { width: 14px; height: 14px; transition: transform .18s ease; }
.ec-menu-wrap.is-open > .ec-menu-trigger .ec-chevron { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.ec-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 5, 6, .9);
  border-bottom: 1px solid var(--ee-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ec-header-inner {
  width: 100%;
  max-width: 1440px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.ec-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ee-text);
}
.ec-brand:hover { color: #fff; }
.ec-brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(204, 51, 51, .28));
}
.ec-brand-copy { display: flex; flex-direction: column; line-height: 1; }
.ec-brand-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ee-pink);
}
.ec-brand-sub {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ee-muted-2);
}

.ec-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  min-width: 0;
}

.ec-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ee-muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.ec-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.ec-nav-link.is-active {
  color: var(--ee-pink);
  background: rgba(204, 51, 51, .12);
  border-color: rgba(204, 51, 51, .22);
}

.ec-server-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--dot, var(--ee-pink));
  box-shadow: 0 0 10px var(--dot, var(--ee-pink));
  flex: 0 0 auto;
}

.ec-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 10px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ee-red), #a32626);
  border: 1px solid rgba(255, 204, 204, .16);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(204, 51, 51, .22);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ec-play:hover {
  color: #fff;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--ee-red-bright), var(--ee-red));
  box-shadow: 0 10px 30px rgba(204, 51, 51, .3);
}
.ec-play-icon { width: 14px; height: 14px; }

/* Dropdowns */
.ec-menu-wrap { position: relative; }

.ec-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 80;
  width: 286px;
  padding: 9px;
  border: 1px solid var(--ee-border-bright);
  border-radius: 14px;
  background: #0d080a;
  box-shadow: var(--shadow), 0 0 0 1px rgba(204, 51, 51, .06);
  display: none;
  animation: ec-pop .14s ease-out;
}
.ec-menu-wrap.is-open .ec-menu { display: block; }
.ec-menu-tools { width: 320px; max-height: calc(100vh - 96px); overflow-y: auto; left: auto; right: 0; }
.ec-menu-wrap.is-end .ec-menu { left: auto; right: 0; }
/* Contrast-safe text on solid red chips used by the ported strategy pages. */
#ec-main .bg-ee-orange.text-ee-dark,
#ec-main .bg-ee-orange.text-ee-amber { color: #fff !important; }
#ec-main a.bg-ee-orange:hover { color: #050506 !important; }

@keyframes ec-pop {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.ec-menu-head {
  padding: 10px 11px 11px;
  border-bottom: 1px solid var(--ee-border);
  border-left: 2px solid var(--server-accent, var(--ee-red));
  margin-bottom: 7px;
}
.ec-menu-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ee-muted-2);
}
.ec-menu-head strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 15.5px;
  letter-spacing: .05em;
  color: var(--ee-pink);
}

.ec-menu-section { padding: 4px 0 6px; }
.ec-menu-label {
  display: block;
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ee-muted-2);
}
.ec-menu-link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ee-muted);
  font-size: 14.5px;
  line-height: 1.35;
  transition: background .14s ease, color .14s ease;
}
.ec-menu-link:hover { background: rgba(204, 51, 51, .1); color: #fff; }
.ec-menu-link.is-active { background: rgba(204, 51, 51, .14); color: var(--ee-pink); }
.ec-menu-link small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ee-muted-2);
}
.ec-menu-icon { width: 16px; height: 16px; margin-top: 1px; color: var(--ee-red-bright); }
.ec-menu-divider { height: 1px; margin: 7px 8px; background: var(--ee-border); }
.ec-submenu { margin: 2px 0; }
.ec-submenu-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ee-muted);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.ec-submenu-trigger::-webkit-details-marker { display: none; }
.ec-submenu-trigger:hover { background: rgba(204, 51, 51, .1); color: #fff; }
.ec-submenu-trigger.is-active { color: var(--ee-pink); }
.ec-submenu-trigger .ec-chevron {
  width: 13px;
  height: 13px;
  margin-left: auto;
  transition: transform .16s ease;
}
.ec-submenu[open] > .ec-submenu-trigger .ec-chevron { transform: rotate(180deg); }
.ec-submenu-links {
  margin: 1px 0 4px 17px;
  padding: 1px 0 2px 7px;
  border-left: 1px solid var(--ee-border);
}
.ec-submenu-links .ec-menu-link { padding: 7px 10px; font-size: 14px; }
.ec-submenu-links .ec-menu-link small { font-size: 11.5px; }
.ec-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding: 10px 11px;
  border-top: 1px solid var(--ee-border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ee-pink);
}
.ec-menu-footer:hover { color: #fff; }

/* Mobile */
.ec-mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ee-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  color: var(--ee-pink);
  cursor: pointer;
}
.ec-mobile-toggle .ec-icon { width: 22px; height: 22px; }

.ec-mobile {
  border-top: 1px solid var(--ee-border);
  background: #0a0607;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ec-mobile-inner { max-width: 1440px; margin: 0 auto; padding: 14px 18px 22px; }
.ec-mobile-home,
.ec-mobile-single,
.ec-mobile-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 9px;
  color: var(--ee-muted);
  font-size: 15.5px;
}
.ec-mobile-home { color: var(--ee-pink); font-weight: 600; }
.ec-mobile-single:hover,
.ec-mobile-links a:hover { background: rgba(255, 255, 255, .05); color: #fff; }

.ec-mobile-subgroup {
  margin: 2px 0 5px 14px;
  border-left: 1px solid var(--ee-border);
}
.ec-mobile-subgroup summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ee-pink);
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.ec-mobile-subgroup summary::-webkit-details-marker { display: none; }
.ec-mobile-subgroup summary .ec-chevron {
  margin-left: auto;
  transition: transform .16s ease;
}
.ec-mobile-subgroup[open] > summary .ec-chevron { transform: rotate(180deg); }
.ec-mobile-subgroup .ec-mobile-links { padding-left: 4px; padding-bottom: 5px; }
.ec-mobile-subgroup .ec-mobile-links a { font-size: 14.5px; }

.ec-mobile-group { border-bottom: 1px solid var(--ee-border); }
.ec-mobile-group summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 12px;
  color: var(--ee-text);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.ec-mobile-group summary::-webkit-details-marker { display: none; }
.ec-mobile-group summary .ec-chevron { margin-left: auto; }
.ec-mobile-group[open] summary { color: var(--ee-pink); }
.ec-mobile-group[open] > summary .ec-chevron { transform: rotate(180deg); }
.ec-mobile-links { padding: 0 0 9px 10px; }
.ec-mobile-links a { padding: 9px 12px; font-size: 15px; }
.ec-play-mobile { margin: 14px 0 0; justify-content: center; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ec-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ee-border);
  background:
    radial-gradient(ellipse 60% 100% at 8% 0%, rgba(204, 51, 51, .16), transparent 65%),
    linear-gradient(180deg, rgba(26, 16, 19, .55), transparent);
}
.ec-hero-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 204, 204, .08), transparent 60%);
  pointer-events: none;
}
.ec-hero-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 24px 30px;
}
.ec-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ee-muted-2);
}
.ec-breadcrumb a { color: var(--ee-muted); }
.ec-breadcrumb a:hover { color: var(--ee-pink); }
.ec-breadcrumb-current { color: var(--ee-pink); }

.ec-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.ec-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 5px 10px;
  border: 1px solid rgba(204, 51, 51, .22);
  border-radius: 99px;
  background: rgba(204, 51, 51, .08);
  color: var(--ee-pink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ec-hero-title {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  background: linear-gradient(92deg, #fff 0%, var(--ee-pink) 45%, var(--ee-red-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(204, 51, 51, .12);
}
.ec-hero-sub {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--ee-muted);
  font-size: 16.5px;
}
.ec-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

.ec-hero-art {
  position: absolute;
  top: 50%;
  right: 48px;
  width: 188px;
  height: 188px;
  transform: translateY(-50%);
  opacity: .55;
  filter: drop-shadow(0 0 34px rgba(204, 51, 51, .28));
  pointer-events: none;
}
.ec-hero.has-art .ec-hero-row { padding-right: 230px; }
@media (max-width: 1000px) {
  .ec-hero-art { display: none; }
  .ec-hero.has-art .ec-hero-row { padding-right: 0; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.ec-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 34px 24px 78px;
}
.ec-main-narrow { max-width: 980px; }
.ec-main-wide { max-width: 1600px; }

.ec-stack { display: flex; flex-direction: column; gap: 22px; }
.ec-stack-sm { display: flex; flex-direction: column; gap: 12px; }
.ec-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ec-row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ec-grow { flex: 1 1 auto; min-width: 0; }

.ec-grid-2,
.ec-grid-3,
.ec-grid-4 {
  display: grid;
  gap: 18px;
}
.ec-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Cards / panels
   -------------------------------------------------------------------------- */

.ec-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 16, 19, .92), rgba(18, 11, 13, .92));
  border: 1px solid var(--ee-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ec-card-pad { padding: 22px; }
.ec-card-hover { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ec-card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(204, 51, 51, .38);
  box-shadow: var(--shadow-red);
}
.ec-card-accent { border-top: 2px solid var(--accent, var(--ee-red)); }

.ec-panel {
  background: rgba(18, 11, 13, .72);
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  padding: 18px;
}
.ec-panel-flat { background: rgba(255, 255, 255, .02); }

.ec-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ec-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ee-red-bright);
}
.ec-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ee-red);
}
.ec-section-title { font-size: clamp(1.25rem, 2.1vw, 1.65rem); letter-spacing: .01em; }
.ec-section-desc { margin-top: 5px; color: var(--ee-muted); font-size: 15px; }

.ec-card-title { font-family: var(--font-display); font-size: 16.5px; letter-spacing: .04em; }
.ec-card-sub { color: var(--ee-muted); font-size: 14px; margin-top: 4px; }

/* Server cards */
.ec-server-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ec-server-card {
  --accent: var(--ee-red);
  position: relative;
  display: block;
  padding: 18px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(26, 16, 19, .95), rgba(12, 8, 9, .95));
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ec-server-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: .8;
}
.ec-server-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--ee-border));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  color: inherit;
}
.ec-server-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16.5px;
  letter-spacing: .03em;
  color: var(--ee-text);
}
.ec-server-card-meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ee-muted-2);
}
.ec-server-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--ee-pink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ec-server-card-cta .ec-icon { width: 13px; height: 13px; color: var(--accent); transition: transform .16s ease; }
.ec-server-card:hover .ec-server-card-cta .ec-icon { transform: translateX(2px); }

/* --------------------------------------------------------------------------
   Buttons / badges / tabs
   -------------------------------------------------------------------------- */

.ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--ee-border-bright);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  color: var(--ee-text);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.ec-btn:hover { background: rgba(255, 255, 255, .07); border-color: var(--ee-muted-2); color: #fff; }
.ec-btn:active { transform: translateY(1px); }
.ec-btn-primary {
  background: linear-gradient(135deg, var(--ee-red), #a32626);
  border-color: rgba(255, 204, 204, .18);
  color: #fff;
  box-shadow: 0 8px 25px rgba(204, 51, 51, .18);
}
.ec-btn-primary:hover { background: linear-gradient(135deg, var(--ee-red-bright), var(--ee-red)); color: #fff; }
.ec-btn-ghost { background: transparent; }
.ec-btn-sm { min-height: 32px; padding: 6px 11px; font-size: 13px; }
.ec-btn-block { width: 100%; }
.ec-btn .ec-icon { width: 15px; height: 15px; }

.ec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid var(--ee-border-bright);
  background: rgba(255, 255, 255, .035);
  color: var(--ee-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ec-badge-red { color: var(--ee-pink); background: rgba(204, 51, 51, .12); border-color: rgba(204, 51, 51, .3); }
.ec-badge-green { color: var(--ee-green); background: rgba(153, 255, 187, .08); border-color: rgba(153, 255, 187, .24); }
.ec-badge-warn { color: var(--ee-warn); background: rgba(255, 204, 102, .08); border-color: rgba(255, 204, 102, .24); }
.ec-badge-danger { color: var(--ee-danger); background: rgba(255, 170, 170, .08); border-color: rgba(255, 170, 170, .24); }
.ec-badge-blue { color: var(--ee-blue); background: rgba(125, 183, 255, .08); border-color: rgba(125, 183, 255, .24); }
.ec-badge-muted { color: var(--ee-muted-2); }

.ec-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.ec-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--ee-border);
  border-radius: 99px;
  background: rgba(255, 255, 255, .025);
  color: var(--ee-muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: all .16s ease;
}
.ec-tab:hover { color: #fff; border-color: var(--ee-border-bright); }
.ec-tab.is-active {
  color: #fff;
  background: rgba(204, 51, 51, .16);
  border-color: rgba(204, 51, 51, .4);
  box-shadow: 0 0 20px rgba(204, 51, 51, .1);
}

/* --------------------------------------------------------------------------
   Stats / metrics
   -------------------------------------------------------------------------- */

.ec-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ec-stat {
  padding: 15px 16px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
}
.ec-stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ee-muted-2);
}
.ec-stat-value {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 600;
  color: var(--ee-pink);
  letter-spacing: -.01em;
}
.ec-stat-note { margin-top: 2px; color: var(--ee-muted); font-size: 12.5px; }

.ec-reset-progress {
  position: relative;
  height: 8px;
  margin-top: 16px;
  border: 1px solid var(--ee-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden;
}
.ec-reset-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ee-red), var(--ee-pink));
  box-shadow: 0 0 12px rgba(204, 51, 51, .45);
}
.ec-reset-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--ee-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ec-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(43, 25, 29, .8); font-size: 14.5px; }
.ec-kv:last-child { border-bottom: 0; }
.ec-kv dt { color: var(--ee-muted); }
.ec-kv dd { margin: 0; color: var(--ee-text); font-family: var(--font-mono); font-size: 13.5px; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.ec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  background: rgba(9, 5, 6, .45);
  -webkit-overflow-scrolling: touch;
}
.ec-table-wrap:focus-visible { outline: 2px solid var(--ee-red-bright); outline-offset: 2px; }
.ec-table-wrap.is-scrollable:not(.is-scroll-end) {
  box-shadow: inset -20px 0 18px -18px rgba(0, 0, 0, .95);
}
.ec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ec-tech-table { table-layout: fixed; }
.ec-tech-table th:nth-child(1), .ec-tech-table td:nth-child(1) { width: 42%; }
.ec-tech-table th:nth-child(2), .ec-tech-table td:nth-child(2),
.ec-tech-table th:nth-child(3), .ec-tech-table td:nth-child(3) { width: 29%; }
.ec-tech-table .ec-input { width: 100%; min-width: 0; }
.ec-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  background: #150d0f;
  border-bottom: 1px solid var(--ee-border-bright);
  color: var(--ee-cream);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.ec-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(43, 25, 29, .65);
  color: var(--ee-text);
  vertical-align: middle;
}
.ec-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .016); }
.ec-table tbody tr:hover { background: rgba(204, 51, 51, .07); }
.ec-table tbody tr:last-child td { border-bottom: 0; }
.ec-table a { color: var(--ee-pink); }
.ec-table a:hover { color: #fff; }
.ec-table .ec-num, .ec-num { font-family: var(--font-mono); font-size: 13.5px; }
.ec-table .ec-pos { color: var(--ee-green); }
.ec-table .ec-neg { color: var(--ee-danger); }
.ec-table .ec-warn { color: var(--ee-warn); }
.ec-table tfoot th {
  padding: 9px 12px;
  background: #150d0f;
  border-top: 1px solid var(--ee-border-bright);
  color: var(--ee-cream);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
}

.ec-empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--ee-muted);
}
.ec-empty strong { display: block; margin-bottom: 4px; color: var(--ee-pink); font-family: var(--font-display); }
.ec-empty p { max-width: 520px; margin: 4px auto 0; color: var(--ee-muted); font-size: 14.5px; line-height: 1.6; }
.ec-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border: 1px solid var(--ee-border-bright);
  border-radius: 99px;
  background: rgba(204, 51, 51, .08);
  color: var(--ee-pink);
}
.ec-empty-icon .ec-icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.ec-form { display: flex; flex-direction: column; gap: 16px; }
.ec-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ec-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ec-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ee-muted);
}
.ec-hint { color: var(--ee-muted-2); font-size: 13px; line-height: 1.5; }
.ec-input,
.ec-select,
.ec-textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--ee-border-bright);
  border-radius: 9px;
  background: #0c0809;
  color: var(--ee-text);
  font-family: var(--font-mono);
  font-size: 14.5px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.ec-input::placeholder, .ec-textarea::placeholder { color: #5f4b4f; }
.ec-input:focus,
.ec-select:focus,
.ec-textarea:focus {
  outline: none;
  border-color: var(--ee-red);
  box-shadow: 0 0 0 3px rgba(204, 51, 51, .16);
  background: #100a0b;
}
.ec-textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.ec-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ee-pink) 50%), linear-gradient(135deg, var(--ee-pink) 50%, transparent 50%);
  background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.ec-check { display: flex; align-items: center; gap: 9px; color: var(--ee-muted); font-size: 14.5px; }
.ec-check input { accent-color: var(--ee-red); width: 16px; height: 16px; }

.ec-search-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.ec-search-bar .ec-input { flex: 1 1 220px; }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.ec-alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--ee-border-bright);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  color: var(--ee-text);
  font-size: 15px;
}
.ec-alert .ec-icon { width: 20px; height: 20px; margin-top: 1px; }
.ec-alert strong { color: #fff; }
.ec-alert-danger { border-color: rgba(255, 170, 170, .3); background: rgba(255, 170, 170, .06); }
.ec-alert-danger .ec-icon { color: var(--ee-danger); }
.ec-alert-warn { border-color: rgba(255, 204, 102, .3); background: rgba(255, 204, 102, .06); }
.ec-alert-warn .ec-icon { color: var(--ee-warn); }
.ec-alert-success { border-color: rgba(153, 255, 187, .28); background: rgba(153, 255, 187, .055); }
.ec-alert-success .ec-icon { color: var(--ee-green); }
.ec-alert-info { border-color: rgba(125, 183, 255, .28); background: rgba(125, 183, 255, .055); }
.ec-alert-info .ec-icon { color: var(--ee-blue); }

/* --------------------------------------------------------------------------
   Feed status
   -------------------------------------------------------------------------- */

.ec-feed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ec-feed-card {
  padding: 16px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  background: rgba(18, 11, 13, .78);
  border-top: 2px solid var(--feed-color, var(--ee-red));
}
.ec-feed-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 13.5px; letter-spacing: .05em; color: var(--feed-color, var(--ee-pink)); }
.ec-feed-schedule { margin-top: 3px; color: var(--ee-muted-2); font-size: 12px; font-family: var(--font-mono); }
.ec-feed-card .ec-status, .ec-feed-card .ec-feed-state { margin-top: 11px; }
/* One status token system for feeds, dashboards and cards.
   .ec-feed-state is kept as a legacy alias. */
.ec-status,
.ec-feed-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ec-status.is-ok,
.ec-feed-state.is-ok { color: var(--ee-green); background: rgba(153, 255, 187, .08); }
.ec-status.is-warning,
.ec-feed-state.is-warning { color: var(--ee-warn); background: rgba(255, 204, 102, .08); }
.ec-status.is-critical,
.ec-feed-state.is-critical { color: var(--ee-danger); background: rgba(255, 170, 170, .1); }
.ec-status.is-pending,
.ec-feed-state.is-pending { color: var(--ee-muted); background: rgba(255, 255, 255, .04); }
.ec-live-dot { width: 7px; height: 7px; border-radius: 99px; background: var(--ee-green); box-shadow: 0 0 10px var(--ee-green); display: inline-block; animation: ec-pulse 2.2s infinite; }
@keyframes ec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ec-feed-meta { margin-top: 11px; color: var(--ee-muted); font-size: 13px; line-height: 1.55; }
.ec-feed-meta strong { color: var(--ee-text); font-family: var(--font-mono); font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Section cards / dashboard
   -------------------------------------------------------------------------- */

.ec-section-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 16, 19, .9), rgba(12, 8, 9, .92));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ec-section-card:hover { transform: translateY(-3px); border-color: rgba(204, 51, 51, .35); box-shadow: var(--shadow-red); color: inherit; }
.ec-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(204, 51, 51, .12);
  border: 1px solid rgba(204, 51, 51, .26);
  color: var(--ee-pink);
}
.ec-section-icon .ec-icon { width: 21px; height: 21px; }
.ec-section-card h3 { font-size: 16.5px; letter-spacing: .04em; }
.ec-section-card p { color: var(--ee-muted); font-size: 14px; line-height: 1.55; }
.ec-section-card .ec-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ee-red-bright); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }

.ec-dashboard-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ee-border);
  background:
    radial-gradient(ellipse 50% 90% at 85% 10%, rgba(204, 51, 51, .16), transparent 60%),
    radial-gradient(ellipse 45% 80% at 10% 0%, rgba(255, 204, 204, .06), transparent 55%),
    linear-gradient(180deg, rgba(26, 16, 19, .6), transparent);
}
.ec-dashboard-hero-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 58px 24px 46px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
  align-items: center;
}
.ec-dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(204, 51, 51, .24);
  border-radius: 99px;
  background: rgba(204, 51, 51, .09);
  color: var(--ee-pink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ec-dashboard-title {
  margin-top: 18px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, #fff 0%, var(--ee-pink) 35%, var(--ee-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ec-dashboard-lede { max-width: 620px; margin-top: 18px; color: var(--ee-muted); font-size: 17.5px; line-height: 1.65; }
.ec-dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ec-dashboard-art { position: relative; display: flex; align-items: center; justify-content: center; }
.ec-dashboard-art img { width: 100%; max-width: 330px; filter: drop-shadow(0 0 50px rgba(204, 51, 51, .25)); }
.ec-dashboard-art::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(204, 51, 51, .18);
  border-radius: 50%;
  animation: ec-orbit 22s linear infinite;
}
@keyframes ec-orbit { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.ec-footer { border-top: 1px solid var(--ee-border); background: #070405; }
.ec-footer-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 24px 20px;
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.8fr);
  gap: 18px 42px;
  align-items: start;
}
.ec-brand-footer { margin-bottom: 0; }
.ec-footer-copy { max-width: 760px; }
.ec-footer p { color: var(--ee-muted); font-size: 14px; line-height: 1.65; }
.ec-footer-bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 13px 24px 18px;
  border-top: 1px solid var(--ee-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ec-footer-bottom p { color: var(--ee-muted-2); font-size: 13px; }
.ec-footer p a { text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Strategy Vault
   -------------------------------------------------------------------------- */

.ec-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 34px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 24px 72px;
  align-items: start;
}
.ec-guide-main,
.ec-guide-aside { min-width: 0; }
.ec-guide-print-head { display: none; }

.ec-guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ee-border);
}
.ec-guide-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.ec-guide-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ee-muted); font-size: 13.5px; }
.ec-guide-byline strong { color: var(--ee-pink); font-weight: 600; }
.ec-guide-byline-sep { color: var(--ee-border-bright); }
.ec-guide-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ec-guide-body { display: flex; flex-direction: column; gap: 18px; }
.ec-guide-body > * { margin: 0; }
.ec-guide-body h2,
.ec-guide-body h3 { scroll-margin-top: calc(var(--header-h) + 20px); }

.ec-guide-card {
  padding: 26px 28px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 16, 19, .92), rgba(12, 7, 8, .95));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}
.ec-guide-card > * + * { margin-top: 14px; }

.ec-guide-h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ee-red-bright);
}
.ec-guide-h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ee-pink);
}
.ec-guide-h3-alt { color: var(--ee-cream); }

.ec-guide-p { color: #d9c9cb; font-size: 15.5px; line-height: 1.7; }
.ec-guide-lede { font-size: 15.5px; }
.ec-guide-strong { font-weight: 600; color: var(--ee-text); }
.ec-guide-accent { color: var(--ee-pink); font-family: var(--font-mono); font-size: .92em; }
.ec-guide-total { color: var(--ee-green); font-family: var(--font-mono); font-size: .92em; }
.ec-guide-note-text { color: var(--ee-muted); font-size: 13.5px; line-height: 1.65; }
.ec-guide-note { color: var(--ee-muted-2); font-family: var(--font-mono); font-size: 13px; }
.ec-italic { font-style: italic; }

.ec-guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ec-guide-list-sm { gap: 5px; font-size: 13.5px; }
.ec-guide-item { display: flex; align-items: flex-start; gap: 9px; color: #d9c9cb; font-size: 15.5px; line-height: 1.65; }
.ec-guide-item-tight { gap: 8px; }
.ec-guide-item > span:last-child { min-width: 0; }
.ec-guide-bullet {
  flex: 0 0 auto;
  width: 14px;
  margin-top: 1px;
  color: var(--ee-red-bright);
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.5;
}
.ec-guide-bullet-alt { color: var(--ee-pink); }
.ec-guide-bullet-muted { color: var(--ee-muted-2); }
.ec-guide-bullet-warn { color: var(--ee-warn); font-weight: 700; }
.ec-guide-bullet-danger { color: var(--ee-danger); font-weight: 700; }

.ec-guide-callout {
  padding: 16px 18px;
  border: 1px solid rgba(255, 204, 204, .16);
  border-left: 3px solid var(--ee-pink);
  border-radius: 12px;
  background: rgba(255, 204, 204, .05);
}
.ec-guide-callout > * + * { margin-top: 8px; }
.ec-guide-callout-title {
  display: block;
  color: var(--ee-pink);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ec-guide-callout p { color: #d9c9cb; font-size: 14.5px; line-height: 1.65; }
.ec-guide-callout-warn { border-left-color: var(--ee-warn); background: rgba(255, 204, 102, .05); }
.ec-guide-callout-warn .ec-guide-callout-title { color: var(--ee-warn); }
.ec-guide-callout-danger { border-left-color: var(--ee-danger); background: rgba(255, 170, 170, .05); }
.ec-guide-callout-danger .ec-guide-callout-title { color: var(--ee-danger); }
.ec-guide-callout-alt { border-left-color: var(--ee-red-bright); background: rgba(204, 51, 51, .06); }
.ec-guide-callout-alt .ec-guide-callout-title { color: var(--ee-red-bright); }
.ec-guide-callout-neutral { border-left-color: var(--ee-border-bright); background: rgba(255, 255, 255, .03); }

.ec-guide-details {
  border: 1px solid var(--ee-border);
  border-radius: var(--radius-lg);
  background: rgba(18, 11, 13, .78);
  overflow: hidden;
}
.ec-guide-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ee-red-bright);
}
.ec-guide-summary::-webkit-details-marker { display: none; }
.ec-guide-summary:hover { color: var(--ee-pink); }
.ec-guide-summary-alt { color: var(--ee-pink); }
.ec-guide-summary-alt:hover { color: var(--ee-red-bright); }
.ec-guide-details[open] { border-color: rgba(204, 51, 51, .28); }
.ec-guide-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 99px; background: var(--ee-red-bright); box-shadow: 0 0 10px rgba(232, 72, 72, .7); }
.ec-guide-dot-alt { background: var(--ee-pink); box-shadow: 0 0 10px rgba(255, 204, 204, .5); }
.ec-guide-details-body { padding: 0 26px 24px; }

.ec-guide-rule { height: 1px; border: 0; margin: 18px 0; background: var(--ee-border); }
.ec-guide-rule-sm { margin: 8px 0; }
.ec-guide-total-row td { border-top: 1px solid var(--ee-border-bright); background: rgba(204, 51, 51, .06); }

.ec-guide-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.ec-guide-stat {
  padding: 8px;
  border: 1px solid var(--ee-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  text-align: center;
}

.ec-guide-aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ec-guide-toc {
  padding: 18px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  background: rgba(18, 11, 13, .82);
}
.ec-guide-aside-title {
  margin-bottom: 10px;
  color: var(--ee-red-bright);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.ec-guide-toc-link {
  display: block;
  padding: 5px 0 5px 9px;
  border-left: 2px solid transparent;
  color: var(--ee-muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.ec-guide-toc-link:hover { color: var(--ee-pink); border-left-color: var(--ee-red); }
.ec-guide-toc-link.is-h3 { padding-left: 22px; color: var(--ee-muted-2); font-size: 12.5px; }
.ec-guide-aside-card {
  padding: 18px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  background: rgba(204, 51, 51, .05);
}
.ec-guide-aside-card p { margin: 8px 0 14px; color: var(--ee-muted); font-size: 13.5px; line-height: 1.6; }

.ec-guide-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}
.ec-guide-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  background: rgba(18, 11, 13, .72);
}
.ec-guide-pager-link:hover { border-color: var(--ee-border-bright); background: rgba(204, 51, 51, .06); }
.ec-guide-pager-link.is-empty { visibility: hidden; pointer-events: none; }
.ec-guide-pager-label { color: var(--ee-muted-2); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.ec-guide-pager-title { color: var(--ee-pink); font-family: var(--font-display); font-size: 14px; letter-spacing: .02em; }
.ec-guide-pager-link.is-next { text-align: right; align-items: flex-end; }

.ec-guide-related { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--ee-border); }
.ec-guide-related-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ec-guide-related-title { font-family: var(--font-display); font-size: 15px; letter-spacing: .02em; color: var(--ee-cream); }
.ec-guide-related-desc { margin-top: 6px; color: var(--ee-muted); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 1020px) {
  .ec-guide-layout { grid-template-columns: 1fr; gap: 22px; padding: 30px 20px 60px; }
  .ec-guide-aside { position: static; order: -1; }
  .ec-guide-toc { padding: 14px 16px; min-width: 0; }
  .ec-guide-toc-links { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; overflow: visible; }
  .ec-guide-toc-link { max-width: 100%; white-space: normal; overflow-wrap: anywhere; border: 1px solid var(--ee-border); border-radius: 10px; padding: 5px 10px; }
  .ec-guide-toc-link.is-h3 { display: none; }
  .ec-guide-aside-card { display: none; }
}

@media (max-width: 640px) {
  .ec-guide-layout { padding: 24px 16px 52px; }
  .ec-guide-card { padding: 20px; }
  .ec-guide-summary { padding: 16px 18px; }
  .ec-guide-details-body { padding: 0 18px 20px; }
  .ec-guide-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-guide-pager { grid-template-columns: 1fr; }
  .ec-guide-pager-link.is-next { text-align: left; align-items: flex-start; }
  .ec-guide-actions { width: 100%; }
}

@media print {
  .ec-header,
  .ec-footer,
  .ec-skip,
  .ec-hero,
  .ec-guide-aside,
  .ec-guide-pager,
  .ec-guide-related,
  .ec-guide-actions { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .ec-guide-layout { display: block; max-width: none; padding: 0; }
  .ec-guide-main { max-width: none; }
  .ec-guide-print-head { display: block; margin-bottom: 24px; }
  .ec-guide-print-head h1 { color: #111; font-family: var(--font-display); font-size: 26px; }
  .ec-guide-print-head p { margin-top: 6px; color: #333; font-size: 13px; }
  .ec-guide-print-meta { color: #555 !important; }
  .ec-guide-body { display: block; }
  .ec-guide-body > * + * { margin-top: 16px; }
  .ec-guide-card,
  .ec-guide-details { background: #fff !important; border-color: #ccc !important; box-shadow: none !important; break-inside: avoid; }
  .ec-guide-p,
  .ec-guide-item,
  .ec-guide-note-text,
  .ec-guide-callout p { color: #111 !important; }
  .ec-guide-h2,
  .ec-guide-h3,
  .ec-guide-bullet,
  .ec-guide-accent,
  .ec-guide-strong { color: #111 !important; }
  .ec-guide-total { color: #333 !important; }
  .ec-guide-table, .ec-table { color: #111 !important; }
  .ec-table thead th { background: #eee !important; color: #111 !important; }
  .ec-table tbody td { color: #111 !important; border-color: #ddd !important; }
  a { color: #111 !important; text-decoration: none; }
}

/* --------------------------------------------------------------------------
   Changelog
   -------------------------------------------------------------------------- */

.ec-changelog-section { margin-top: 64px; }
.ec-changelog-section-last { margin-bottom: 64px; }
.ec-changelog-wrap {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ec-changelog-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 24px 4px;
}
.ec-changelog-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ec-changelog-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ec-changelog-jump-link {
  padding: 8px 14px;
  border: 1px solid var(--ee-border);
  border-radius: 9px;
  background: rgba(255, 255, 255, .02);
  color: var(--ee-muted);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.ec-changelog-jump-link:hover {
  color: var(--ee-pink);
  border-color: var(--ee-border-bright);
  background: rgba(204, 51, 51, .07);
}
.ec-changelog-jump-link.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--ee-red-bright), var(--ee-red));
  box-shadow: 0 6px 18px rgba(204, 51, 51, .25);
}
.ec-changelog-toplink-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 1440px;
  margin: 22px auto 0;
  padding: 0 24px;
}
@media (max-width: 820px) {
  .ec-changelog-toplink-row { padding: 0 16px; }
}

.ec-changelog-legend-wrap { margin-top: 22px; margin-bottom: 6px; }
.ec-changelog-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
  font-size: 12px;
}
.ec-changelog-legend-title {
  margin-right: 2px;
  color: var(--ee-muted-2);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.ec-changelog-legend-item { display: inline-flex; align-items: center; gap: 7px; color: var(--ee-muted); }
.ec-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.ec-legend-dot.is-active { background: #6fe0a0; }
.ec-legend-dot.is-modified { background: var(--ee-orange); }
.ec-legend-dot.is-reverted { background: var(--ee-danger); }
.ec-legend-dot.is-server { background: #c9a5ff; }

.ec-changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.ec-changelog-head-spaced { margin-bottom: 22px; }
.ec-changelog-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ec-changelog-num {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ee-red-bright), var(--ee-red));
  color: #190b0d;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
}
.ec-changelog-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, #fff 0%, var(--ee-pink) 45%, var(--ee-red-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ec-changelog-h3 {
  color: var(--ee-cream);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ec-changelog-sub { margin-top: 6px; color: var(--ee-muted); font-size: 14px; line-height: 1.6; }
.ec-changelog-sub-sm { margin-top: 3px; color: var(--ee-muted-2); font-size: 12px; line-height: 1.5; }
.ec-changelog-meta {
  padding: 5px 11px;
  border: 1px solid var(--ee-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  color: var(--ee-muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.ec-changelog-panel {
  padding: 30px;
  border: 1px solid var(--ee-border);
  border-top: 2px solid rgba(232, 72, 72, .55);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(26, 16, 19, .95), rgba(11, 7, 8, .97));
  box-shadow: var(--shadow);
}
.ec-changelog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ec-changelog-card {
  padding: 22px 24px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .022);
}
.ec-changelog-card-wide { grid-column: 1 / -1; }
.ec-changelog-card-danger { border-color: rgba(255, 120, 120, .2); background: rgba(204, 51, 51, .045); }
.ec-changelog-card-title {
  margin-bottom: 14px;
  color: var(--ee-red-bright);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ec-changelog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d6c6c9;
  font-size: 14.5px;
  line-height: 1.6;
}
.ec-changelog-item { display: flex; align-items: flex-start; gap: 9px; }
.ec-changelog-item > span:last-child { min-width: 0; }
.ec-changelog-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 7px; border-radius: 2px; }
.ec-changelog-dot.is-active { background: #6fe0a0; box-shadow: 0 0 8px rgba(111, 224, 160, .35); }
.ec-changelog-dot.is-modified { background: var(--ee-orange); box-shadow: 0 0 8px rgba(255, 180, 94, .3); }
.ec-changelog-dot.is-reverted { background: var(--ee-danger); box-shadow: 0 0 8px rgba(255, 170, 170, .3); }
.ec-changelog-dot.is-server { background: #c9a5ff; box-shadow: 0 0 8px rgba(201, 165, 255, .3); }

.ec-changelog-strong { color: var(--ee-text); font-weight: 600; }
.ec-changelog-strike { text-decoration: line-through; text-decoration-color: rgba(255, 170, 170, .65); text-decoration-thickness: 2px; }
.ec-changelog-ref {
  color: var(--ee-warn);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}
.ec-changelog-ref.is-modified { color: var(--ee-orange); }
.ec-changelog-ref.is-reverted { color: var(--ee-danger); }
.ec-changelog-ref.is-server { color: #c9a5ff; }
.ec-changelog-ref-inline { color: var(--ee-muted-2); font-family: var(--font-mono); font-size: 11px; }
.ec-changelog-live { color: var(--ee-green); font-weight: 600; }
.ec-changelog-modified { color: var(--ee-orange); }
.ec-changelog-reverted { color: var(--ee-danger); }
.ec-changelog-accent { color: var(--ee-warn); }
.ec-changelog-code { color: var(--ee-warn); font-family: var(--font-mono); font-size: .86em; }
.ec-changelog-formula {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ee-border);
  border-radius: 10px;
  background: rgba(5, 5, 6, .8);
  color: var(--ee-warn);
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-x: auto;
}

.ec-changelog-server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ec-changelog-server {
  padding: 16px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius);
  background: rgba(5, 5, 6, .45);
}
.ec-changelog-server-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ee-cream);
  font-size: 14px;
  font-weight: 700;
}
.ec-changelog-server-dot { color: var(--ee-green); font-size: 12px; line-height: 1; }
.ec-changelog-server-note { color: var(--ee-muted-2); font-family: var(--font-mono); font-size: 10px; font-weight: 400; }
.ec-changelog-server-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--ee-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.ec-changelog-server-list b { color: var(--ee-text); }
.ec-changelog-footnote { margin-top: 16px; color: var(--ee-muted-2); font-size: 12px; }
.ec-changelog-warn { color: var(--ee-warn); font-weight: 600; }
.ec-changelog-removed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 26px;
  color: #d6c6c9;
  font-size: 13.5px;
}
.ec-changelog-removed-grid > div { display: flex; align-items: flex-start; gap: 7px; }
.ec-changelog-x { flex: 0 0 auto; margin-top: 2px; color: var(--ee-danger); font-family: var(--font-mono); font-size: 11px; }
.ec-changelog-ref-muted { margin-left: auto; padding-left: 8px; color: var(--ee-muted-2); font-size: 11px; white-space: nowrap; }

.ec-changelog-rule {
  height: 1px;
  margin: 18px 0 34px;
  background: linear-gradient(90deg, transparent, rgba(204, 51, 51, .3) 20%, var(--ee-red) 50%, rgba(204, 51, 51, .3) 80%, transparent);
}
.ec-changelog-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 0 8px;
  padding: 0 0 0 30px;
  border-left: 1px solid var(--ee-border-bright);
  list-style: none;
}
.ec-changelog-timeline-item { position: relative; }
.ec-changelog-node {
  position: absolute;
  left: -38px;
  top: 20px;
  width: 15px;
  height: 15px;
  border-radius: 99px;
  background: var(--ee-red-bright);
  box-shadow: 0 0 0 4px rgba(204, 51, 51, .16), 0 0 12px rgba(232, 72, 72, .55);
}
.ec-changelog-node.is-active { background: #6fe0a0; box-shadow: 0 0 0 4px rgba(111, 224, 160, .14), 0 0 12px rgba(111, 224, 160, .5); }
.ec-changelog-node.is-quiet { background: #7d6b70; box-shadow: 0 0 0 4px rgba(125, 107, 112, .14); }
.ec-changelog-node.is-note { background: #584a4e; box-shadow: none; }
.ec-changelog-node.is-extra { background: var(--ee-blue); box-shadow: 0 0 0 4px rgba(125, 183, 255, .14), 0 0 12px rgba(125, 183, 255, .4); }

.ec-changelog-entry {
  overflow: hidden;
  border: 1px solid var(--ee-border);
  border-radius: 13px;
  background: linear-gradient(155deg, rgba(26, 16, 19, .92), rgba(12, 7, 8, .96));
  transition: border-color .16s ease;
}
.ec-changelog-entry:hover { border-color: var(--ee-border-bright); }
.ec-changelog-entry[open] { border-color: rgba(204, 51, 51, .3); }
.ec-changelog-entry-head,
.ec-changelog-details-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 20px;
  cursor: pointer;
  list-style: none;
}
.ec-changelog-details-head { padding: 20px 24px; }
.ec-changelog-entry-head:hover,
.ec-changelog-details-head:hover { background: rgba(255, 255, 255, .03); }
.ec-changelog-entry-head::-webkit-details-marker,
.ec-changelog-details-head::-webkit-details-marker { display: none; }
.ec-changelog-chev { flex: 0 0 auto; color: var(--ee-warn); font-size: 10px; transition: transform .2s ease; }
details[open] > summary .ec-changelog-chev { transform: rotate(90deg); }
.ec-changelog-chev-end { margin-left: auto; }
.ec-changelog-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid rgba(204, 51, 51, .24);
  border-radius: 6px;
  background: rgba(204, 51, 51, .12);
  color: var(--ee-warn);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.ec-changelog-tag.is-active { border-color: rgba(111, 224, 160, .24); background: rgba(111, 224, 160, .08); color: var(--ee-green); }
.ec-changelog-tag.is-extra { border-color: rgba(125, 183, 255, .24); background: rgba(125, 183, 255, .08); color: var(--ee-blue); }
.ec-changelog-tag.is-patch { border-color: var(--ee-border); background: rgba(255, 255, 255, .05); color: var(--ee-muted); }
.ec-changelog-entry-title { min-width: 0; flex: 1 1 150px; color: var(--ee-text); font-size: 14px; font-weight: 600; line-height: 1.4; }
.ec-changelog-entry-meta { margin-left: auto; color: var(--ee-muted-2); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.ec-changelog-entry-body { padding: 2px 20px 20px; color: var(--ee-muted); font-size: 13.5px; line-height: 1.7; }
.ec-changelog-entry-body-stack { display: block; }
.ec-changelog-entry-body p { margin: 0; }
.ec-changelog-entry-body b { color: var(--ee-text); font-weight: 600; }
.ec-changelog-entry-body code { color: var(--ee-warn); font-family: var(--font-mono); font-size: .9em; }
.ec-changelog-note {
  padding: 12px 18px;
  border: 1px dashed var(--ee-border);
  border-radius: 11px;
  color: var(--ee-muted-2);
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.6;
}

.ec-changelog-details-body { display: flex; flex-direction: column; gap: 18px; padding: 0 24px 24px; }
.ec-changelog-details-body-tight { padding-bottom: 22px; }

.ec-changelog-foundation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ec-changelog-foundation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--ee-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .022);
  font-size: 13.5px;
}
.ec-changelog-span-2 { grid-column: span 2; }
@media (min-width: 641px) and (max-width: 900px) {
  .ec-changelog-md-wide { grid-column: span 2; }
}
.ec-changelog-foundation-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ee-cream); font-size: 15px; font-weight: 700; }
.ec-changelog-foundation-date { color: var(--ee-muted-2); font-family: var(--font-mono); font-size: 10px; font-weight: 400; }
.ec-changelog-foundation-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--ee-muted);
  line-height: 1.65;
}
.ec-changelog-foundation-list b { color: var(--ee-text); }
.ec-changelog-foundation-list code { color: var(--ee-warn); font-family: var(--font-mono); font-size: .9em; }
.ec-changelog-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--font-mono); font-size: 10.5px; }
.ec-changelog-link { color: rgba(255, 204, 204, .55); }
.ec-changelog-link:hover { color: var(--ee-pink); }
.ec-changelog-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; font-family: var(--font-mono); font-size: 11.5px; }
.ec-changelog-source { overflow: hidden; color: rgba(255, 204, 204, .68); text-overflow: ellipsis; white-space: nowrap; }
.ec-changelog-source:hover { color: var(--ee-pink); }
.ec-changelog-credit { max-width: 1080px; margin: 36px auto 0; padding: 0 24px; color: var(--ee-muted-2); font-size: 11.5px; line-height: 1.6; text-align: center; }

@media (max-width: 900px) {
  .ec-changelog-grid { grid-template-columns: 1fr; }
  .ec-changelog-server-grid,
  .ec-changelog-removed-grid,
  .ec-changelog-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-changelog-foundation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-changelog-panel { padding: 24px; }
}

@media (max-width: 640px) {
  .ec-changelog-intro { padding: 22px 16px 2px; }
  .ec-changelog-wrap { padding-left: 16px; padding-right: 16px; }
  .ec-changelog-section { margin-top: 46px; }
  .ec-changelog-panel { padding: 18px; border-radius: var(--radius-lg); }
  .ec-changelog-card { padding: 18px; }
  .ec-changelog-head-spaced { margin-bottom: 16px; }
  .ec-changelog-entry-head { flex-wrap: wrap; gap: 8px; padding: 13px 14px; }
  .ec-changelog-entry-title { order: 3; flex-basis: 100%; }
  .ec-changelog-entry-meta { display: none; }
  .ec-changelog-entry-body { padding: 2px 14px 16px; }
  .ec-changelog-details-head { padding: 16px; }
  .ec-changelog-details-meta { display: none; }
  .ec-changelog-details-body { padding: 0 16px 18px; }
  .ec-changelog-timeline { margin-left: 2px; padding-left: 22px; }
  .ec-changelog-node { left: -29px; top: 17px; width: 13px; height: 13px; }
  .ec-changelog-server-grid,
  .ec-changelog-removed-grid,
  .ec-changelog-sources,
  .ec-changelog-foundation-grid { grid-template-columns: 1fr; }
  .ec-changelog-span-2,
  .ec-changelog-md-wide { grid-column: span 1; }
  .ec-changelog-removed-grid > div { gap: 8px; }
  .ec-changelog-credit { margin-top: 26px; padding: 0 16px; }
}

@media print {
  .ec-changelog-intro,
  .ec-changelog-legend-wrap,
  .ec-changelog-toplink-row,
  .ec-changelog-credit { display: none !important; }
  .ec-changelog-wrap { max-width: none; padding: 0; }
  .ec-changelog-section { margin-top: 22px; }
  .ec-changelog-panel,
  .ec-changelog-card,
  .ec-changelog-entry,
  .ec-changelog-server,
  .ec-changelog-foundation-card {
    background: #fff !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .ec-changelog-h2,
  .ec-changelog-h3,
  .ec-changelog-entry-title,
  .ec-changelog-strong,
  .ec-changelog-foundation-title { color: #111 !important; -webkit-text-fill-color: #111 !important; background: none !important; }
  .ec-changelog-sub,
  .ec-changelog-sub-sm,
  .ec-changelog-list,
  .ec-changelog-entry-body,
  .ec-changelog-foundation-list { color: #222 !important; }
  .ec-changelog-timeline { border-color: #ccc; }
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.ec-prose { max-width: 820px; }
.ec-prose h2 { margin: 1.6em 0 .5em; font-size: 1.3rem; color: var(--ee-pink); }
.ec-prose h3 { margin: 1.4em 0 .4em; font-size: 1.08rem; color: var(--ee-cream); }
.ec-prose p, .ec-prose li { color: #d9c9cb; line-height: 1.75; }
.ec-prose ul, .ec-prose ol { padding-left: 1.3em; margin: .6em 0 1em; }
.ec-prose code { padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .06); color: var(--ee-pink); font-family: var(--font-mono); font-size: .88em; }
.ec-prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.ec-divider { height: 1px; background: var(--ee-border); margin: 4px 0; }
.ec-mono { font-family: var(--font-mono); }
.ec-muted { color: var(--ee-muted); }
.ec-muted-2 { color: var(--ee-muted-2); }
.ec-pink { color: var(--ee-pink); }
.ec-red { color: var(--ee-red-bright); }
.ec-green { color: var(--ee-green); }
.ec-warn { color: var(--ee-warn); }
.ec-danger { color: var(--ee-danger); }
.ec-blue { color: var(--ee-blue); }
.ec-orange { color: var(--ee-orange); }
.ec-cream { color: var(--ee-cream); }

/* Small utility set for the most repeated inline styles. */
.ec-right { text-align: right; }
.ec-center { text-align: center; }
.ec-small { font-size: 13.5px; }
.ec-label-sm { font-size: 11.5px; }
.ec-block { display: block; }
.ec-pb-0 { padding-bottom: 0; }
.ec-mt-6px { margin-top: 6px; }
.ec-mb-05 { margin-bottom: 2px; }
.ec-p0 { padding: 0; }
.ec-pad-14 { padding: 14px; }
.ec-overflow-hidden { overflow: hidden; }
.ec-subpanel-head { padding: 12px 15px; border-bottom: 1px solid var(--ee-border); background: rgba(204, 51, 51, .06); }
.ec-subpanel-title { font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ee-pink); }
.ec-mini-title { text-align: center; font-family: var(--font-display); font-size: 14.5px; letter-spacing: .06em; color: var(--ee-pink); padding: 2px 0 6px; }
.ec-code-well { margin: 14px; border: 1px solid var(--ee-border); border-radius: 12px; overflow: auto; background: rgba(5, 5, 6, .5); }
.ec-ml-6 { margin-left: 6px; }
.ec-mt-05 { margin-top: 2px; }
.ec-gap-14 { gap: 14px; }
.ec-fs-110 { font-size: 1.1rem; }
.ec-fs-115 { font-size: 1.15rem; }
.ec-fs-145 { font-size: 14.5px; }
.ec-lh-16 { line-height: 1.6; }
.ec-w-110 { width: 110px; }
.ec-stat-md { font-size: 17.5px; }
.ec-max-680 { max-width: 680px; }
.ec-two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-m-4 { margin: 16px; }
.ec-rounded { border-radius: 12px; }
.ec-maxh-620 { max-height: 620px; }
.ec-scroll-y { overflow-y: auto; }
.ec-stat-sm { font-size: 19px; }
.ec-stat-lg { font-size: 20px; }
.ec-max-700 { max-width: 700px; }
.ec-w-204 { width: 204px; }
.ec-flex-wrap { flex-wrap: wrap; }
.ec-items-start { align-items: flex-start; }
.ec-min-220 { min-width: 220px; }
.ec-scroll-y-420 { max-height: 420px; overflow-y: auto; }
.ec-mt-1 { margin-top: 4px; }
.ec-mt-2 { margin-top: 8px; }
.ec-mt-3 { margin-top: 12px; }
.ec-mt-4 { margin-top: 16px; }
.ec-mt-5 { margin-top: 18px; }
.ec-mt-6 { margin-top: 24px; }
.ec-mt-10 { margin-top: 10px; }
.ec-mt-14 { margin-top: 14px; }
.ec-mt-20 { margin-top: 20px; }
.ec-mb-1 { margin-bottom: 4px; }
.ec-mb-2 { margin-bottom: 8px; }
.ec-mb-3 { margin-bottom: 12px; }
.ec-mb-4 { margin-bottom: 16px; }
.ec-mb-5 { margin-bottom: 18px; }
.ec-mb-6 { margin-bottom: 24px; }
.ec-mb-10 { margin-bottom: 10px; }
.ec-mb-14 { margin-bottom: 14px; }
.ec-mb-18 { margin-bottom: 18px; }
.ec-gap-1 { gap: 4px; }
.ec-gap-2 { gap: 8px; }
.ec-gap-3 { gap: 12px; }
.ec-gap-4 { gap: 16px; }
.ec-gap-6 { gap: 6px; }
.ec-gap-10 { gap: 10px; }
.ec-nowrap { white-space: nowrap; }
.ec-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #080506; }
::-webkit-scrollbar-thumb { background: #3a2025; border-radius: 20px; border: 2px solid #080506; }
::-webkit-scrollbar-thumb:hover { background: var(--ee-red); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 1181px) and (max-width: 1320px) {
  .ec-header-inner { gap: 12px; }
  .ec-nav-link { padding: 8px 7px; font-size: 14px; }
  .ec-nav-link .ec-chevron { width: 12px; height: 12px; }
  .ec-play { margin-left: 4px; padding: 8px 11px; font-size: 12.5px; letter-spacing: .04em; }
}

@media (max-width: 1180px) {
  .ec-nav { display: none; }
  .ec-mobile-toggle { display: inline-flex; }
  .ec-header-inner { gap: 14px; }
  .ec-server-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ec-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-dashboard-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .ec-dashboard-art { display: none; }
}

@media (max-width: 820px) {
  .ec-main { padding: 26px 16px 58px; }
  .ec-hero-inner { padding: 22px 16px 26px; }
  .ec-header-inner { padding: 0 16px; }
  .ec-brand-name { font-size: 14px; }
  .ec-brand-sub { font-size: 8.5px; }
  .ec-grid-2, .ec-grid-3 { grid-template-columns: 1fr; }
  .ec-server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-form-grid { grid-template-columns: 1fr; }
  .ec-hero-row { flex-direction: column; align-items: flex-start; }
  .ec-section-head { flex-direction: column; align-items: flex-start; }
  .ec-footer-grid { grid-template-columns: 1fr; padding: 24px 16px 18px; gap: 14px; }
  .ec-footer-copy { max-width: none; }
  .ec-footer-bottom { padding: 13px 16px 18px; }
  .ec-dashboard-hero-inner { padding: 40px 16px 34px; }
  .ec-dashboard-lede { font-size: 16.5px; }
}

@media (max-width: 540px) {
  .ec-table { font-size: 13.5px; }
  .ec-table thead th { padding: 8px 9px; font-size: 11px; }
  .ec-table tbody td, .ec-table tfoot th { padding: 8px 9px; }
  .ec-grid-4 { grid-template-columns: 1fr; }
  .ec-server-grid { grid-template-columns: 1fr; }
  .ec-feed-grid { grid-template-columns: 1fr; }
  .ec-stat-grid { grid-template-columns: 1fr; }
  .ec-brand-mark { width: 33px; height: 33px; }
  .ec-brand-name { letter-spacing: .1em; }
  .ec-dashboard-actions .ec-btn { width: 100%; }
}

/* Reference price tables stack into labelled cards on phones. */
@media (max-width: 600px) {
  .ec-price-table thead { display: none; }
  .ec-price-table,
  .ec-price-table tbody { display: block; width: 100%; }
  .ec-price-table tbody tr {
    display: block;
    padding: 6px 14px;
    border-bottom: 1px solid rgba(43, 25, 29, .65);
  }
  .ec-price-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .016); }
  .ec-price-table tbody tr:last-child { border-bottom: 0; }
  .ec-price-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }
  .ec-price-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--ee-muted-2);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: left;
  }
  .ec-price-table tbody td:first-child { color: var(--ee-cream); font-weight: 600; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
