@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;0,800;0,900;1,800;1,900&display=swap");

/* Neon pairs: --ej-hi (bright) and --ej-lo (deep) per tone */
.ej-blue   { --ej-hi: var(--neon-blue);   --ej-lo: var(--neon-blue-deep); }
.ej-pink   { --ej-hi: var(--neon-pink);   --ej-lo: var(--neon-pink-deep); }
.ej-yellow { --ej-hi: var(--neon-yellow); --ej-lo: var(--neon-yellow-deep); }
.ej-green  { --ej-hi: var(--neon-green);  --ej-lo: var(--neon-green-deep); }

/* NeonTitle */
.ej-neon { margin: 0; font-family: var(--font-sans); font-weight: 900; font-style: italic; letter-spacing: -0.02em;
  color: var(--ej-lo); -webkit-text-stroke: var(--stroke-neon) var(--ej-hi); paint-order: stroke fill; }
.ej-neon-display  { font-size: clamp(60px, 9vw, 112px); line-height: .95; -webkit-text-stroke-width: clamp(3px, 0.35vw, 5px); }
.ej-neon-headline { font-size: clamp(36px, 5vw, 48px); line-height: 1.05; -webkit-text-stroke-width: 3px; }
.ej-neon-title    { font-size: 24px; line-height: 30px; font-weight: 800; -webkit-text-stroke-width: 2px; }

/* Button: flat rounded rectangle, sentence case */
.ej-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box;
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0; text-transform: none;
  min-height: 36px; padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--radius-control); cursor: pointer;
  color: var(--ink); background: var(--border); transition: filter .15s ease, background-color .15s ease; }
.ej-btn-regular:hover { background-image: linear-gradient(var(--border), var(--border)); }
.ej-btn-flat { background: transparent; }
.ej-btn-flat:hover { background: var(--border); }
.ej-btn-filled { background: var(--ej-hi); color: var(--ej-lo); }
.ej-btn-tinted { background: var(--ej-lo); color: var(--ej-hi); }
.ej-btn-filled:hover, .ej-btn-tinted:hover { filter: brightness(1.12); }

.ej-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; background-image: none; }
@media (prefers-reduced-motion: reduce) { .ej-btn { transition: none; } }

/* Tag */
.ej-tag { display: inline-block; align-self: flex-start; width: max-content; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--ej-lo); color: var(--ej-hi); }

/* MenuItem */
.ej-menu { font-family: var(--font-sans); background: var(--surface-200); border-radius: var(--radius-md); padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2); max-width: 360px; box-sizing: border-box; }
.ej-menu-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.ej-menu-name { margin: 0; font-size: 24px; line-height: 30px; font-weight: 800; font-style: italic; color: var(--ink); }
.ej-menu-desc { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.ej-menu-price { align-self: flex-start; font-size: 16px; line-height: 24px; font-weight: 800; padding: 0 var(--space-2);
  border-radius: var(--radius-sm); background: var(--neon-yellow-deep); color: var(--neon-yellow); }

/* Neon art: Blob, Ripple and the LavaLamp background that drifts them */
.ej-art-svg { display: block; width: 100%; height: 100%; overflow: visible; --ej-gap: var(--surface-100); }
.ej-art-outline { fill: var(--ej-lo); stroke: var(--ej-hi); stroke-width: var(--stroke-line); vector-effect: non-scaling-stroke; }
.ej-art-ring { fill: var(--ej-lo); }
.ej-art-gap  { fill: var(--ej-gap); }
.ej-art-core { fill: var(--ej-hi); }
.ej-lava { position: relative; overflow: hidden; isolation: isolate; background: var(--surface-100); }
.ej-lava-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ej-art { position: absolute; left: var(--x); top: var(--y); width: var(--size); aspect-ratio: 1;
  animation: ej-art-spin var(--spin, 90s) linear infinite var(--dir, normal); }
/* LavaLamp ripples stay in place: they turn slowly and their rings pulse outward, like a drop hitting water */
.ej-art .ej-art-svg path { transform-box: view-box; transform-origin: 100px 100px; animation: ej-art-pulse 5s ease-in-out infinite; }
.ej-art .ej-art-svg path:nth-child(2) { animation-delay: -0.4s; }
.ej-art .ej-art-svg path:nth-child(3) { animation-delay: -0.8s; }
.ej-art .ej-art-svg path:nth-child(4) { animation-delay: -1.2s; }
.ej-art .ej-art-svg path:nth-child(5) { animation-delay: -1.6s; }
.ej-art .ej-art-svg path:nth-child(6) { animation-delay: -2s; }
.ej-art .ej-art-svg path:nth-child(7) { animation-delay: -2.4s; }
.ej-art .ej-art-svg path:nth-child(8) { animation-delay: -2.8s; }
.ej-lava-content { position: relative; }
.ej-lava-goo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill-rule: evenodd; }
@keyframes ej-art-spin { to { transform: rotate(360deg); } }
@keyframes ej-art-pulse { 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .ej-art, .ej-art .ej-art-svg path { animation: none; } }


/* ===================== UI kit ===================== */
.ej-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ej-icon { display: inline-block; flex: none; vertical-align: middle; }
.ej-caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ej-outlined { font-weight: 900; font-style: italic; color: var(--ej-lo); -webkit-text-stroke: 2px var(--ej-hi); paint-order: stroke fill; }
:where(.ej-btn, .ej-iconbtn, .ej-chip, .ej-tab, .ej-acc-btn, .ej-menu-item, .ej-day, .ej-car-dot, .ej-switch, .ej-check-input, .ej-slider-input, .ej-stepper-btn, .ej-input-trail, .ej-search-go, .ej-th-sort, .ej-crumb-link, .ej-crumb-more, .ej-tabbar-item, .ej-fact-link, .ej-skip, .ej-topbar-name, .ej-toast-action, .ej-table-scroll, .ej-tabpanel):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Button sizes, icons and loading (base styles above) */
.ej-btn { min-height: var(--control-h); text-decoration: none; }
.ej-btn-sm { min-height: var(--control-h-sm); padding: 6px 12px; font-size: 14px; }
.ej-btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.ej-btn-block { width: 100%; }
.ej-btn[aria-busy="true"] { cursor: progress; }
.ej-mini-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ej-spin .8s linear infinite; }
.ej-iconbtn { display: inline-grid; place-items: center; width: var(--control-h); height: var(--control-h); padding: 0; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.ej-iconbtn:hover { background: var(--border); }
.ej-iconbtn-regular { background: var(--border); }
.ej-iconbtn-regular:hover { background-image: linear-gradient(var(--border), var(--border)); }
.ej-iconbtn-sm { width: var(--control-h-sm); height: var(--control-h-sm); }
.ej-iconbtn:disabled { color: var(--ink-disabled); cursor: not-allowed; background: transparent; }

/* Text patterns */
.ej-label { margin: 0; font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ej-label-yellow { color: var(--warning-text); } .ej-label-blue { color: var(--info-text); } .ej-label-pink { color: var(--error-text); } .ej-label-green { color: var(--success-text); }
.ej-sechead { display: flex; flex-direction: column; gap: var(--space-3); font-family: var(--font-sans); }
.ej-sechead .ej-neon-headline { font-size: clamp(36px, 5vw, 48px); line-height: 1.05; }
.ej-sechead-sub { margin: 0; font-size: 22px; line-height: 28px; font-weight: 800; color: var(--ink-muted); }
.ej-bullets, .ej-numbered { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-sans); color: var(--ink-muted); line-height: 26px; }
.ej-bullets > li { position: relative; padding-left: var(--space-6); }
.ej-bullets > li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--dot); }
.ej-bullets-yellow { --dot: var(--neon-yellow); } .ej-bullets-pink { --dot: var(--neon-pink); } .ej-bullets-blue { --dot: var(--neon-blue); } .ej-bullets-green { --dot: var(--neon-green); }
.ej-bullets-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--space-2) var(--space-6); }
.ej-numbered { gap: var(--space-3); counter-reset: n; }
.ej-numbered > li { position: relative; padding-left: 44px; counter-increment: n; }
.ej-numbered > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 900; font-style: italic; color: var(--warning-text); }
.ej-bullets strong, .ej-numbered strong { color: var(--ink); }

/* Navigation */
.ej-skip { position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-skip); padding: var(--space-2) var(--space-4); border-radius: var(--radius-control); background: var(--neon-pink); color: var(--neon-pink-deep); font: 700 15px/20px var(--font-sans); text-decoration: none; }
.ej-skip:focus { top: var(--space-2); }
.ej-topbar { position: sticky; top: 0; z-index: var(--z-topbar); background: var(--surface-200); font-family: var(--font-sans); }
.ej-topbar-inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--layout-topbar-h); max-width: var(--layout-page-max); margin: 0 auto; padding: 0 var(--layout-gutter); box-sizing: border-box; }
.ej-topbar-name { margin-right: auto; font-size: 18px; line-height: 24px; font-weight: 800; font-style: italic; color: var(--ink); text-decoration: none; white-space: nowrap; border-radius: var(--radius-sm); }
.ej-topnav { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.ej-navlink { min-height: 40px; color: var(--ink); }
.ej-navlink.is-active { background: var(--border); }
@media (max-width: 860px) { .ej-topbar-cta { display: none; } }
@media (max-width: 760px) { .ej-topbar-inner { flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-4); padding-block: var(--space-2); } .ej-topbar-name { margin: 0; } .ej-topnav { width: 100%; justify-content: center; } }
.ej-tabbar { display: none; position: fixed; inset: auto 0 0 0; z-index: var(--z-topbar); height: var(--layout-tabbar-h); background: var(--surface-200); font-family: var(--font-sans); }
.ej-tabbar, .ej-tabbar-static { grid-auto-flow: column; grid-auto-columns: 1fr; }
@media (max-width: 600px) { .ej-tabbar { display: grid; } }
.ej-tabbar-static { display: grid; position: static; }
.ej-tabbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 700; text-decoration: none; }
.ej-tabbar-item.is-active { color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
.ej-footer { background: var(--surface-200); font-family: var(--font-sans); color: var(--ink-muted); }
.ej-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-6); max-width: var(--layout-page-max); margin: 0 auto; padding: var(--space-6) var(--layout-gutter) var(--space-8); box-sizing: border-box; font-size: 15px; line-height: 22px; }
.ej-footer-small { margin: 0; font-size: 12px; line-height: 16px; }
.ej-footer a { color: var(--link); }
.ej-crumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; font: 700 14px/20px var(--font-sans); overflow: hidden; }
.ej-crumbs li { display: inline-flex; align-items: center; gap: var(--space-1); min-width: 0; }
.ej-crumb-link { color: var(--ink-muted); text-decoration: none; border-radius: var(--radius-sm); padding: 2px 4px; white-space: nowrap; }
.ej-crumb-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ej-crumb-current { color: var(--ink); padding: 2px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ej-crumb-sep { color: var(--ink-disabled); }
.ej-crumb-more { min-width: 28px; height: 28px; border: 0; border-radius: var(--radius-sm); background: var(--border); color: var(--ink); font: inherit; cursor: pointer; }
.ej-tabs { font-family: var(--font-sans); }
.ej-tablist { display: flex; gap: var(--space-1); overflow-x: auto; box-shadow: inset 0 -2px 0 var(--border); }
.ej-tab { flex: none; min-height: var(--control-h); padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--radius-control) var(--radius-control) 0 0; background: transparent; color: var(--ink-muted); font: 700 15px/20px var(--font-sans); cursor: pointer; }
.ej-tab:hover { color: var(--ink); background: var(--border); }
.ej-tab.is-active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.ej-tabpanel { padding: var(--space-4) 0; color: var(--ink-muted); line-height: 24px; border-radius: var(--radius-sm); }
.ej-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ej-chip { display: inline-flex; align-items: center; min-height: 40px; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-control); background: var(--surface-200); color: var(--ink-muted); font: 700 14px/20px var(--font-sans); text-decoration: none; cursor: pointer; }
.ej-chip:hover { color: var(--ink); }
.ej-chip.is-active { background: var(--neon-pink-deep); color: var(--neon-pink-light); }

/* Cards & content */
.ej-card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-md); background: var(--surface-200); font-family: var(--font-sans); color: var(--ink); overflow: hidden; }
.ej-card-body { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding: var(--card-pad); }
.ej-card-title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 800; font-style: italic; }
.ej-card-text { color: var(--ink-muted); line-height: 24px; }
.ej-card-text p { margin: 0; }
.ej-card-foot { margin-top: auto; padding-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ej-card-img { aspect-ratio: 16 / 9; background: var(--ej-lo, var(--surface-300)); display: grid; place-items: center; color: var(--ink-muted); }
.ej-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ej-card-toned { background: var(--ej-lo); }
.ej-card-toned .ej-card-title { color: var(--ej-hi); }
.ej-card-toned .ej-card-text { color: #ffffffd9; }
.ej-card-toned .ej-tag { background: var(--surface-200); }
[data-theme="light"] .ej-card-toned .ej-card-text { color: #ffffffe6; }
@media (max-width: 600px) { .ej-card-body { padding: var(--card-pad-narrow); } }
.ej-fact { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--card-pad-narrow); border-radius: var(--radius-md); background: var(--surface-200); font-family: var(--font-sans); color: var(--ink); text-decoration: none; }
.ej-fact-link { flex-wrap: wrap; }
.ej-fact-link:hover { background-image: linear-gradient(var(--border), var(--border)); }
.ej-fact-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-control); background: var(--ej-lo); color: var(--ej-hi); flex: none; }
.ej-fact-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.ej-fact-value { font-size: 16px; line-height: 22px; font-weight: 800; }
.ej-fact-go { flex-basis: 100%; display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-size: 13px; line-height: 16px; font-weight: 700; }
.ej-highlight { position: relative; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8); border-radius: var(--radius-md); background: var(--ej-lo); font-family: var(--font-sans); }
.ej-highlight-tag { background: var(--surface-200); color: var(--ej-hi); }
.ej-highlight-quote { margin: 0; max-width: 28em; font-size: 28px; line-height: 34px; font-weight: 800; color: var(--ej-hi); }
.ej-highlight-note { max-width: 44em; color: #ffffffd9; line-height: 24px; }
.ej-highlight-waves { border-radius: 0; margin-block: 36px; }
.ej-highlight-waves::before, .ej-highlight-waves::after { content: ""; position: absolute; left: 0; right: 0; height: 36px; background: var(--ej-lo); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='36' viewBox='0 0 320 36'%3E%3Cpath d='M0 36V20C20 20 28 6 50 6S82 24 110 24 144 4 174 4 214 20 244 20 276 30 290 30 310 20 320 20V36z'/%3E%3C/svg%3E") repeat-x 0 0 / 320px 36px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='36' viewBox='0 0 320 36'%3E%3Cpath d='M0 36V20C20 20 28 6 50 6S82 24 110 24 144 4 174 4 214 20 244 20 276 30 290 30 310 20 320 20V36z'/%3E%3C/svg%3E") repeat-x 0 0 / 320px 36px; animation: ej-wave-l 14s linear infinite; }
.ej-highlight-waves::before { bottom: calc(100% - 1px); }
.ej-highlight-waves::after { top: calc(100% - 1px); transform: scaleY(-1); animation-name: ej-wave-r; animation-duration: 11s; }
@media (max-width: 600px) { .ej-highlight { padding: var(--space-6); } .ej-highlight-quote { font-size: 22px; line-height: 28px; } }
.ej-wave { height: 36px; background: var(--wave-fill);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='36' viewBox='0 0 320 36'%3E%3Cpath d='M0 36V20C20 20 28 6 50 6S82 24 110 24 144 4 174 4 214 20 244 20 276 30 290 30 310 20 320 20V36z'/%3E%3C/svg%3E") repeat-x 0 0 / 320px 36px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='36' viewBox='0 0 320 36'%3E%3Cpath d='M0 36V20C20 20 28 6 50 6S82 24 110 24 144 4 174 4 214 20 244 20 276 30 290 30 310 20 320 20V36z'/%3E%3C/svg%3E") repeat-x 0 0 / 320px 36px; }
.ej-wave-flip { transform: scaleY(-1); }
.ej-wave-anim { animation: ej-wave-l 14s linear infinite; }
@keyframes ej-wave-l { to { -webkit-mask-position: -320px 0; mask-position: -320px 0; } }
@keyframes ej-wave-r { to { -webkit-mask-position: 320px 0; mask-position: 320px 0; } }
.ej-entry { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); font-family: var(--font-sans); }
.ej-entry-when { flex: 0 0 160px; display: flex; flex-direction: column; gap: var(--space-1); }
.ej-entry-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); color: var(--ink-muted); line-height: 24px; }
.ej-entry-title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 800; font-style: italic; color: var(--ink); }
.ej-entry-sub { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
@media (max-width: 600px) { .ej-entry-when { flex-basis: 100%; } }
.ej-stage { display: flex; flex-direction: column; gap: var(--space-2); padding: 20px; border-radius: var(--radius-md); background: var(--ej-lo); font-family: var(--font-sans); }
.ej-stage-n { font-size: 40px; line-height: 40px; }
.ej-stage-title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 800; color: #ffffff; }
.ej-stage-text { color: #ffffffd9; font-size: 15px; line-height: 22px; }
.ej-accordion { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-sans); }
.ej-acc-item { border-radius: var(--radius-md); background: var(--surface-200); }
.ej-acc-h { margin: 0; }
.ej-acc-btn { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 52px; padding: var(--space-3) var(--space-6); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font: 800 16px/22px var(--font-sans); text-align: left; cursor: pointer; }
.ej-acc-btn:hover { background: var(--border); }
.ej-acc-btn:disabled { color: var(--ink-disabled); cursor: not-allowed; background: transparent; }
.ej-acc-icon { margin-left: auto; color: var(--warning-text); }
.ej-acc-panel { padding: 0 var(--space-6) var(--space-6); color: var(--ink-muted); line-height: 24px; }
@media (max-width: 600px) { .ej-acc-btn { padding: var(--space-3) var(--space-4); } .ej-acc-panel { padding: 0 var(--space-4) var(--space-4); } }

/* Feedback */
.ej-fb-info    { --fb-bg: var(--info-surface);    --fb-fg: var(--info-text); }
.ej-fb-success { --fb-bg: var(--success-surface); --fb-fg: var(--success-text); }
.ej-fb-warning { --fb-bg: var(--warning-surface); --fb-fg: var(--warning-text); }
.ej-fb-error   { --fb-bg: var(--error-surface);   --fb-fg: var(--error-text); }
.ej-fb-neutral { --fb-bg: var(--surface-200);     --fb-fg: var(--ink-muted); }
.ej-fb-icon { color: var(--fb-fg); flex: none; }
.ej-alert { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-md); background: var(--fb-bg); color: var(--ink); font-family: var(--font-sans); }
.ej-alert-body { flex: 1; display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.ej-alert-title { margin: 0; font-weight: 800; font-size: 16px; line-height: 24px; color: var(--fb-fg); }
.ej-alert-text { line-height: 24px; }
.ej-alert-action { margin-top: var(--space-2); }
.ej-alert-close { margin: -6px -6px 0 0; }
.ej-banner { background: var(--fb-bg); color: var(--ink); font-family: var(--font-sans); }
.ej-banner-inner { display: flex; align-items: center; gap: var(--space-3); max-width: var(--layout-page-max); margin: 0 auto; padding: var(--space-2) var(--layout-gutter); box-sizing: border-box; min-height: 52px; }
.ej-banner-text { flex: 1; margin: 0; font-size: 15px; line-height: 22px; }
.ej-banner-text strong { color: var(--fb-fg); }
.ej-toast-region { position: fixed; inset-inline: 0; bottom: var(--space-6); z-index: var(--z-toast); display: flex; flex-direction: column; align-items: center; gap: var(--space-2); pointer-events: none; padding: 0 var(--space-4); }
.ej-toast-region-static { position: static; padding: var(--space-4); }
.ej-toast { pointer-events: auto; display: inline-flex; align-items: center; gap: var(--space-3); max-width: 480px; min-height: 48px; padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4); border-radius: var(--radius-control); background: var(--fb-bg); color: var(--ink); font: 700 15px/20px var(--font-sans); animation: ej-toast-in .2s ease-out; }
.ej-toast-text { padding-block: var(--space-2); }
.ej-toast:not(:has(.ej-iconbtn)) { padding-right: var(--space-4); }
.ej-toast-action { border: 0; background: transparent; color: var(--fb-fg); font: inherit; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); cursor: pointer; }
.ej-toast-action:hover { background: var(--border); }
@keyframes ej-toast-in { from { opacity: 0; transform: translateY(8px); } }
.ej-loading { display: inline-flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-md); background: var(--surface-200); font: 700 15px/20px var(--font-sans); color: var(--ink); }
.ej-loading-inline { flex-direction: row; padding: var(--space-2) var(--space-3); gap: var(--space-2); }
.ej-spinner circle { fill: none; stroke-width: 4; }
.ej-spinner-track { stroke: var(--ej-lo); }
.ej-spinner-arc { stroke: var(--ej-hi); stroke-linecap: round; stroke-dasharray: 40 126; transform-origin: 24px 24px; animation: ej-spin 1s linear infinite; }
.ej-spinner-core { fill: var(--ej-hi) !important; stroke: none !important; transform-origin: 24px 24px; animation: ej-art-pulse 1.6s ease-in-out infinite; }
@keyframes ej-spin { to { transform: rotate(360deg); } }
.ej-skel-group { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; min-width: 0; }
.ej-skel { display: block; background: var(--border); border-radius: var(--radius-sm); animation: ej-skel-pulse 1.6s ease-in-out infinite; }
.ej-skel-text { height: 14px; width: 100%; }
.ej-skel-rect { height: 120px; width: 100%; border-radius: var(--radius-md); }
.ej-skel-circle { width: 48px; height: 48px; border-radius: 50%; }
@keyframes ej-skel-pulse { 50% { opacity: .45; } }
.ej-skel-swap { position: relative; display: grid; }
.ej-skel-swap > * { grid-area: 1 / 1; }
.ej-skel-layer { transition: opacity .3s ease; }
.ej-skel-layer.is-gone { opacity: 0; pointer-events: none; }
.ej-skel-content { animation: ej-fade-in .3s ease; }
@keyframes ej-fade-in { from { opacity: 0; } }
.ej-badge-wrap { position: relative; display: inline-flex; }
.ej-badge-wrap > .ej-badge { position: absolute; top: -6px; right: -6px; }
.ej-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; font: 900 12px/1 var(--font-sans); box-shadow: 0 0 0 2px var(--surface-100); }
.ej-badge-dot { min-width: 12px; width: 12px; height: 12px; padding: 0; }
.ej-fb-solid-info { background: var(--info-solid); color: var(--on-info); } .ej-fb-solid-success { background: var(--success-solid); color: var(--on-success); }
.ej-fb-solid-warning { background: var(--warning-solid); color: var(--on-warning); } .ej-fb-solid-error { background: var(--error-solid); color: var(--on-error); }
.ej-tip-wrap { position: relative; display: inline-flex; }
.ej-tip { position: absolute; z-index: var(--z-popover); width: max-content; max-width: 240px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--ink); color: var(--surface-100); font: 400 14px/20px var(--font-sans); opacity: 0; visibility: hidden; transition: opacity .12s ease; pointer-events: none; }
.ej-tip.is-open { opacity: 1; visibility: visible; }
.ej-tip-top { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.ej-tip-bottom { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); }
.ej-tip-right { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }
.ej-tip-left { right: calc(100% + 8px); top: 50%; transform: translateY(-50%); }

/* Forms */
.ej-field { display: flex; flex-direction: column; gap: var(--field-gap); font-family: var(--font-sans); min-width: 0; border: 0; padding: 0; margin: 0; }
.ej-field-label { padding: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }
.ej-field-opt { font-weight: 400; color: var(--ink-muted); }
.ej-field-hint, .ej-field-error { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ej-field-error { color: var(--error-text); font-weight: 700; }
.ej-field-error .ej-icon { margin-top: 1px; }
.ej-input { position: relative; display: flex; align-items: center; min-height: var(--control-h); border-radius: var(--radius-control); background: var(--field); box-shadow: inset 0 0 0 2px var(--control-border); color: var(--ink); }
.ej-input:hover { box-shadow: inset 0 0 0 2px var(--ink-muted); }
.ej-input:focus-within { box-shadow: inset 0 0 0 2px var(--accent); outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.is-invalid .ej-input { box-shadow: inset 0 0 0 2px var(--error-text); }
.is-disabled .ej-input { opacity: var(--opacity-disabled); }
.ej-input-control { flex: 1; min-width: 0; width: 100%; height: 100%; min-height: var(--control-h); padding: 10px var(--control-pad-x); box-sizing: border-box; border: 0; background: transparent; color: inherit; font: 400 16px/24px var(--font-sans); outline: none; border-radius: inherit; }
.ej-input-control::placeholder { color: var(--ink-placeholder); opacity: 1; }
.ej-input-control:disabled { cursor: not-allowed; }
.has-icon .ej-input-control { padding-left: 44px; }
.ej-input-icon { position: absolute; left: 12px; color: var(--ink-muted); pointer-events: none; }
.ej-input-multi { align-items: stretch; }
.ej-input-multi textarea { resize: vertical; min-height: 96px; }
.has-trail .ej-input-control { padding-right: 4px; }
.ej-input-trail, .ej-search-go { display: grid; place-items: center; width: 40px; height: 36px; margin-right: 4px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.ej-input-trail:hover, .ej-search-go:hover { background: var(--border); }
.ej-search { position: relative; font-family: var(--font-sans); display: flex; flex-direction: column; gap: var(--field-gap); }
.ej-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.ej-popover { position: absolute; z-index: var(--z-popover); margin: 0; padding: var(--space-1); list-style: none; border-radius: var(--radius-md); background: var(--surface-300); color: var(--ink); box-shadow: 0 0 0 1px var(--border); font-family: var(--font-sans); }
.ej-listbox { top: calc(100% + 6px); left: 0; right: 0; }
.ej-listbox-head { padding: var(--space-2) var(--space-3) var(--space-1); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ej-option { display: flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-control); cursor: pointer; color: var(--ink); font-size: 15px; }
.ej-option .ej-icon { color: var(--ink-muted); }
.ej-option:hover, .ej-option.is-active { background: var(--border); }
.ej-check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; font-family: var(--font-sans); min-height: 24px; }
.ej-check-input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ej-check-box, .ej-radio-dot { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 24px; height: 24px; box-sizing: border-box; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 2px var(--control-border); background: var(--field); color: transparent; }
.ej-radio-dot { border-radius: 50%; }
.ej-check-input:hover ~ .ej-check-box, .ej-check-input:hover ~ .ej-radio-dot { box-shadow: inset 0 0 0 2px var(--ink-muted); }
.ej-check-input:checked ~ .ej-check-box, .ej-check-input:indeterminate ~ .ej-check-box { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.ej-check-input:checked ~ .ej-check-box .ej-icon { stroke-width: 3; }
.ej-check-input:checked ~ .ej-radio-dot { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 0 7px var(--field), inset 0 0 0 12px var(--accent); }
.ej-check-input:focus-visible ~ .ej-check-box, .ej-check-input:focus-visible ~ .ej-radio-dot { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ej-check-label { grid-column: 2; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; font-size: 16px; line-height: 20px; color: var(--ink); cursor: pointer; }
.ej-check-hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ej-check.is-disabled { opacity: var(--opacity-disabled); }
.ej-check.is-disabled .ej-check-label, .ej-check.is-disabled .ej-check-input { cursor: not-allowed; }
.ej-radios { display: flex; flex-direction: column; gap: var(--space-3); font-family: var(--font-sans); border: 0; margin: 0; padding: 0; min-width: 0; }
.ej-radios > legend { margin-bottom: var(--space-3); }
.ej-radios-row { flex-direction: row; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.ej-radio-boxed { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-200); }
.ej-radio-boxed .ej-check-input { left: var(--space-4); top: var(--space-3); }
.ej-radio-boxed:has(:checked) { box-shadow: inset 0 0 0 2px var(--accent); }
.ej-radio-boxed .ej-check-label::after { content: ""; position: absolute; inset: 0; }
.ej-toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-family: var(--font-sans); }
.ej-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.ej-toggle .ej-check-label { padding: 0; }
.ej-switch { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 0; border-radius: 16px; background: var(--control-border); cursor: pointer; transition: background .15s ease; }
.ej-switch-knob { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #ffffff; color: var(--control-border); display: grid; place-items: center; transition: transform .15s ease; }
.ej-switch.is-on { background: var(--accent); }
.ej-switch.is-on .ej-switch-knob { transform: translateX(20px); color: var(--neon-pink-deep); }
.ej-switch-knob .ej-icon path { stroke-width: 3; }
.ej-toggle.is-disabled { opacity: var(--opacity-disabled); }
.ej-switch:disabled { cursor: not-allowed; }
.ej-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.ej-slider-value { font: 900 16px/20px var(--font-sans); font-style: italic; color: var(--ink); }
.ej-slider-track { position: relative; height: 32px; }
.ej-slider-rail, .ej-slider-fill { position: absolute; top: 13px; height: 6px; border-radius: 3px; }
.ej-slider-rail { left: 0; right: 0; background: var(--control-border); }
.ej-slider-fill { left: 0; width: var(--pct); background: var(--accent); }
.ej-slider-input { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; border-radius: var(--radius-sm); }
.ej-slider-input::-webkit-slider-runnable-track { height: 32px; background: transparent; }
.ej-slider-input::-moz-range-track { height: 32px; background: transparent; }
.ej-slider-input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 4px var(--accent); }
.ej-slider-input::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 4px var(--accent); }
.ej-slider-input:active::-webkit-slider-thumb { box-shadow: 0 0 0 6px var(--accent); transform: scale(1.08); }
.ej-slider-marks { position: relative; height: 18px; margin: 0 14px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ej-slider-marks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ej-stepper-box { display: inline-flex; align-items: stretch; align-self: flex-start; border-radius: var(--radius-control); background: var(--field); box-shadow: inset 0 0 0 2px var(--control-border); }
.ej-stepper-box:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.ej-stepper-btn { display: grid; place-items: center; width: var(--control-h); border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius-control); }
.ej-stepper-btn:hover { background: var(--border); }
.ej-stepper-btn:disabled { color: var(--ink-disabled); cursor: not-allowed; background: transparent; }
.ej-stepper-input { width: 4ch; min-height: var(--control-h); border: 0; background: transparent; color: var(--ink); text-align: center; font: 800 16px/24px var(--font-sans); font-variant-numeric: tabular-nums; outline: none; }
.ej-stepper-sm .ej-stepper-btn { width: var(--control-h-sm); } .ej-stepper-sm .ej-stepper-input { min-height: var(--control-h-sm); font-size: 14px; }
.ej-stepper-lg .ej-stepper-btn { width: 56px; } .ej-stepper-lg .ej-stepper-input { min-height: 56px; font-size: 20px; width: 5ch; }
.ej-date { position: relative; }
.ej-cal { top: calc(100% + 4px); left: 0; width: 320px; padding: var(--space-3); box-sizing: border-box; }
.ej-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.ej-cal-title { margin: 0; font-weight: 800; font-style: italic; text-transform: capitalize; }
.ej-cal-grid { width: 100%; border-collapse: collapse; }
.ej-cal-grid th { padding: 4px 0; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-muted); text-transform: capitalize; }
.ej-cal-grid td { padding: 1px; text-align: center; }
.ej-day { width: 40px; height: 40px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); font: 700 14px/1 var(--font-sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.ej-day:hover { background: var(--border); }
.ej-day.is-out { color: var(--ink-muted); font-weight: 400; }
.ej-day.is-today { box-shadow: inset 0 0 0 2px var(--neon-yellow); }
.ej-day.is-range { background: var(--neon-pink-deep); color: #ffffff; border-radius: 0; }
.ej-day.is-selected { background: var(--accent); color: var(--on-accent); }
.ej-day:disabled { color: var(--ink-disabled); text-decoration: line-through; cursor: not-allowed; background: transparent; }
.ej-cal-foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-2); }

/* Overlays */
.ej-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: var(--space-4); background: var(--overlay); animation: ej-fade-in .15s ease; }
.ej-overlay-contained { position: absolute; }
.ej-modal { display: flex; flex-direction: column; width: min(520px, 100%); max-height: calc(100% - 32px); border-radius: var(--radius-md); background: var(--surface-300); color: var(--ink); font-family: var(--font-sans); outline: none; animation: ej-pop .18s ease-out; }
.ej-modal-lg { width: min(760px, 100%); }
.ej-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); padding: var(--space-6) var(--space-4) 0 var(--space-6); }
.ej-modal-title { margin: 10px 0 0; font-size: 22px; line-height: 28px; font-weight: 800; font-style: italic; }
.ej-modal-desc { margin: var(--space-1) 0 0; color: var(--ink-muted); line-height: 24px; }
.ej-modal-body { padding: var(--space-2) var(--space-6) var(--space-6); overflow-y: auto; line-height: 24px; }
.ej-modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); padding: var(--space-4) var(--space-6); background: var(--surface-200); border-radius: 0 0 var(--radius-md) var(--radius-md); }
@keyframes ej-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (max-width: 600px) { .ej-overlay:not(.ej-overlay-drawer) { padding: 0; } .ej-modal { width: 100%; height: 100%; max-height: none; border-radius: 0; } .ej-modal-foot { border-radius: 0; margin-top: auto; } .ej-modal-foot .ej-btn { flex: 1; } }
.ej-overlay-drawer { place-items: stretch; padding: 0; }
.ej-drawer-right { justify-items: end; } .ej-drawer-left { justify-items: start; }
.ej-drawer { display: flex; flex-direction: column; width: min(400px, 92%); height: 100%; background: var(--surface-300); color: var(--ink); font-family: var(--font-sans); outline: none; }
.ej-drawer-right .ej-drawer { animation: ej-slide-r .2s ease-out; } .ej-drawer-left .ej-drawer { animation: ej-slide-l .2s ease-out; }
.ej-drawer-body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-6); line-height: 24px; }
.ej-drawer-foot { border-radius: 0; }
@keyframes ej-slide-r { from { transform: translateX(100%); } } @keyframes ej-slide-l { from { transform: translateX(-100%); } }
.ej-dropdown { position: relative; display: inline-flex; font-family: var(--font-sans); }
.ej-menu-list { top: calc(100% + 6px); left: 0; min-width: 220px; }
.ej-dropdown-end .ej-menu-list:not(.ej-submenu) { left: auto; right: 0; }
.ej-menu-li { position: relative; }
.ej-submenu { top: -4px; left: calc(100% - 4px); }
.ej-menu-item { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); font: 400 15px/20px var(--font-sans); text-align: left; cursor: pointer; }
.ej-menu-item .ej-icon { color: var(--ink-muted); }
.ej-menu-item:hover, .ej-menu-item:focus-visible, .ej-menu-item[aria-expanded="true"] { background: var(--border); outline: none; }
.ej-menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-ring); }
.ej-menu-item:disabled { color: var(--ink-disabled); cursor: not-allowed; background: transparent; }
.ej-menu-item:disabled .ej-icon { color: var(--ink-disabled); }
.ej-menu-item.is-danger, .ej-menu-item.is-danger .ej-icon { color: var(--error-text); }
.ej-menu-label { flex: 1; }
.ej-menu-iconpad { width: 20px; flex: none; }
.ej-menu-kbd { font: 700 12px/16px var(--font-sans); color: var(--ink-muted); }
.ej-menu-sep { height: 2px; margin: var(--space-1) var(--space-2); background: var(--border); }

/* People & media */
.ej-avatar { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: var(--radius-round); background: var(--ej-lo); color: var(--ej-hi); font-family: var(--font-sans); font-weight: 900; font-style: italic; }
.ej-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ej-avatar-sm { width: var(--avatar-sm); height: var(--avatar-sm); font-size: 13px; }
.ej-avatar-md { width: var(--avatar-md); height: var(--avatar-md); font-size: 18px; }
.ej-avatar-lg { width: var(--avatar-lg); height: var(--avatar-lg); font-size: 34px; }
.ej-avup { display: flex; align-items: center; gap: var(--space-4); font-family: var(--font-sans); }
.ej-avup-pic { position: relative; cursor: pointer; border-radius: 50%; }
.ej-avup-edit { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--neon-yellow); color: var(--neon-yellow-deep); box-shadow: 0 0 0 3px var(--surface-100); }
.ej-avup-text { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.ej-avup input:focus-visible + * , .ej-avup:focus-within .ej-avup-text > label { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ej-carousel { font-family: var(--font-sans); }
.ej-car-viewport { overflow: hidden; border-radius: var(--radius-md); }
.ej-car-track { display: flex; gap: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.ej-car-slide { flex: 0 0 84%; box-sizing: border-box; padding: 0 var(--space-2); opacity: .4; transform: scale(.94); transition: opacity .45s, transform .45s; }
.ej-car-slide.is-current { opacity: 1; transform: none; }
.ej-car-controls { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.ej-car-dots { display: flex; gap: var(--space-1); }
.ej-car-dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.ej-car-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--control-border); transition: width .2s; }
.ej-car-dot.is-current::before { width: 20px; background: var(--accent); }
.ej-car-count { font: 700 13px/16px var(--font-sans); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* Data */
.ej-table-wrap { display: flex; flex-direction: column; gap: var(--space-3); font-family: var(--font-sans); }
.ej-table-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; }
.ej-table-search { flex: 1 1 260px; max-width: 360px; }
.ej-table-scroll { overflow: auto; max-height: var(--table-max-h, none); border-radius: var(--radius-md); background: var(--surface-200); }
.ej-table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--ink); font-size: 15px; line-height: 20px; }
.ej-table-caption { caption-side: top; text-align: left; padding: var(--space-3) var(--space-4) 0; font-weight: 800; }
.ej-table th, .ej-table td { padding: var(--row-pad-y) var(--space-4); text-align: left; vertical-align: middle; }
.ej-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-200); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: inset 0 -2px 0 var(--border); }
.ej-table tbody tr:nth-child(even) { background: var(--surface-row-alt); }
.ej-table tbody tr:hover { background-image: linear-gradient(var(--border), var(--border)); }
.ej-table tbody th { font-weight: 800; font-style: italic; }
.ej-table .is-end { text-align: right; } .ej-table .is-center { text-align: center; }
.ej-th-sort { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px; margin: -2px -4px; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.ej-th-sort:hover { color: var(--ink); }
.ej-th-idle { opacity: .35; }
.ej-row-actions { white-space: nowrap; }
.ej-table-empty { text-align: center !important; color: var(--ink-muted); padding: var(--space-8) !important; }
.is-dense .ej-table th, .is-dense .ej-table td { padding: 8px 12px; font-size: 14px; }
.ej-table-pages { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.ej-table-hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
@media (min-width: 861px) { .ej-table-hint { display: none; } }
.ej-table td[class*="ej-cell-"], .ej-sw { border-radius: var(--radius-sm); font-weight: 900; text-align: center; box-shadow: inset 0 0 0 2px var(--surface-200); }
.ej-cell-low     { background: var(--neon-blue-deep); color: #ffffff; }
.ej-cell-caution { background: var(--neon-yellow-deep); color: var(--neon-yellow); }
.ej-cell-unsafe  { background: var(--neon-pink-deep); color: #ffffff; }
.ej-cell-danger  { background: var(--neon-pink); color: var(--neon-pink-deep); }
.ej-cell-unknown { background: var(--surface-100); color: var(--ink-muted); }
.ej-cell-good    { background: var(--neon-green-deep); color: var(--neon-green); }
.ej-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) 20px; margin: 0; padding: 0; list-style: none; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.ej-legend li { display: flex; align-items: center; gap: var(--space-2); }
.ej-sw { display: inline-grid; place-items: center; width: 28px; height: 24px; font-size: 13px; box-shadow: none; }
.ej-timeline { --tl-label: 112px; display: flex; flex-direction: column; gap: var(--space-4); margin: 0; font-family: var(--font-sans); }
.ej-tl-axis { position: relative; height: 16px; margin-left: var(--tl-label); color: var(--ink-muted); font-size: 12px; line-height: 16px; }
.ej-tl-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ej-tl-axis span:first-child { transform: none; } .ej-tl-axis span:last-child { transform: translateX(-100%); }
.ej-tl-row { display: grid; grid-template-columns: var(--tl-label) 1fr; gap: 6px 0; align-items: center; }
.ej-tl-name { font-weight: 800; font-style: italic; color: var(--ink); }
.ej-tl-track { position: relative; height: 28px; overflow: hidden; border-radius: var(--radius-control); background: var(--surface-200); }
.ej-tl-seg { position: absolute; top: 0; bottom: 0; }
.ej-tl-up { background: var(--ej-lo); } .ej-tl-on { background: var(--ej-hi); } .ej-tl-after { background: var(--ej-hi); opacity: .3; }
.ej-tl-note { grid-column: 2; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
@media (max-width: 600px) { .ej-timeline { --tl-label: 0px; } .ej-tl-row { grid-template-columns: 1fr; } .ej-tl-note { grid-column: 1; } }

/* Motion: everything calms down for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ej-mini-spin, .ej-spinner-arc, .ej-spinner-core, .ej-skel, .ej-toast, .ej-overlay, .ej-modal, .ej-drawer, .ej-car-track, .ej-car-slide, .ej-switch, .ej-switch-knob, .ej-skel-layer, .ej-skel-content, .ej-highlight-waves::before, .ej-highlight-waves::after, .ej-wave-anim, .ej-tip { animation: none !important; transition: none !important; }
}

/* preview helpers */
.ej-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-4); }
.ej-stack { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); }
