/* EverLink design system — the framework-neutral stylesheet of everything local (Jegenye, *.jegenye.everlink.hu).
 *
 * Sources: EverLink ID as built (resources/css/app.css, resources/views/components/) and the owner's decisions in
 * everlink.hu's docs/architecture-STATE.md (Q172, Q173, Q207–Q225, Q271) as gathered in
 * docs/design/design-system-2026-10-29.md. Where ID-as-built and a decision differ, the decision wins: the field edge
 * #94918d (Q216), the error red #a8101a and the status set (Q172), the dialog 460 / radius 20 (Q221), radii 8/12/20/28
 * (Q209). Light only (Q127); the tokens are semantic so a dark set can come later.
 *
 * Use: link this file, keep the fonts/ folder beside it (relative URLs), put classes on plain HTML. Every class starts
 * with `el-`; nothing here styles a bare element except the base (body, headings, links, focus). No inline style, no
 * script, no outside resource: it runs under a strict `default-src 'self'` content policy.
 */

/* ---- fonts: IBM Plex Sans 400/500/600/700 and Mono 400/500, Latin + Latin Extended (OFL, fonts/OFL.txt) ---- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- tokens ---- */
:root {
  /* brand (Q140, Q147): the logo's red is the interface's "press here"; never an error */
  --el-red: #e31e24;
  --el-red-dark: #c20e1a;          /* hover of red, text links (6.2 : 1 on white) */
  --el-logo-black: #2b2a29;        /* the wordmark; toasts, tooltips */
  --el-panel: #1d1d1c;             /* the dark side menu, the black band */
  --el-pink: #ff8a92;              /* a word on the dark panel (kicker, host name) */

  /* neutrals, warm (Q127) */
  --el-page: #f5f4f2;              /* the page ground */
  --el-card: #ffffff;
  --el-tint: #efedeb;              /* a quiet box, the info tint, a track */
  --el-hover: #faf9f8;             /* a hovered row */
  --el-line: #e2dfdb;              /* hairlines, card edges */
  --el-line-soft: #efedeb;         /* lines between table rows */
  --el-line-strong: #d9d6d2;       /* the secondary button's edge */
  --el-field-edge: #94918d;        /* a form field's edge, 3.1 : 1 (Q216) */
  --el-ink: #171717;               /* text */
  --el-text-2: #4a4a4a;            /* secondary text */
  --el-muted: #6b6b6b;             /* the lightest text allowed (5.3 : 1, Q224) */
  --el-faint: #8a8886;             /* placeholders, disabled, marks that are not text */
  --el-disabled: #e2dfdb;          /* a disabled button's fill (Q215) */

  /* status (Q172): fill for dots and icons, text for words, tint behind a notice or badge */
  --el-good: #2e9d57;    --el-good-text: #1f7a42;    --el-good-tint: #e8f4ec;
  --el-careful: #b97600; --el-careful-text: #8f5a00; --el-careful-tint: #fbf1dc;
  --el-failed: #a8101a;  --el-failed-text: #a8101a;  --el-failed-tint: #f9e9e9;
  --el-info: #6b6b6b;    --el-info-text: #4a4a4a;    --el-info-tint: #efedeb;

  /* charts (Q173): red against warm grey; five in order only when the series are the subject */
  --el-chart-main: #e31e24; --el-chart-rest: #d2cfca;
  --el-chart-1: #e31e24; --el-chart-2: #3b6fd4; --el-chart-3: #00938a; --el-chart-4: #6250d6; --el-chart-5: #e06fa0;

  /* type (Q207) */
  --el-font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --el-mono: "IBM Plex Mono", ui-monospace, "DejaVu Sans Mono", monospace;

  /* spacing, the 4 px grid (Q208) */
  --el-s1: 4px; --el-s2: 8px; --el-s3: 12px; --el-s4: 16px; --el-s5: 20px; --el-s6: 24px;
  --el-s8: 32px; --el-s10: 40px; --el-s14: 56px; --el-s18: 72px; --el-s24: 96px;

  /* shape and depth (Q209) */
  --el-r-sm: 8px; --el-r: 12px; --el-r-lg: 20px; --el-r-sheet: 28px; --el-r-round: 999px;
  --el-depth-1: 0 12px 34px rgba(0, 0, 0, .06);
  --el-depth-2: 0 8px 24px rgba(0, 0, 0, .12);
  --el-depth-3: 0 20px 40px rgba(0, 0, 0, .22);
  --el-veil: rgba(23, 23, 23, .45);

  /* layout (Q210): breakpoints 48rem and 80rem (media queries cannot read variables — written out below) */
  --el-w-reading: 680px; --el-w-form: 460px; --el-w-content: 1200px; --el-w-page: 1366px;
  --el-gutter: 16px;
  --el-side-w: 272px;              /* the dark side menu (Q271) */
  --el-top-h: 60px;

  /* motion (Q213) */
  --el-fast: 120ms; --el-base: 200ms; --el-slow: 320ms;
  --el-enter: cubic-bezier(.2, .8, .2, 1); --el-leave: cubic-bezier(.4, 0, 1, 1);

  color-scheme: light;
}
@media (min-width: 48rem) { :root { --el-gutter: 32px; } }
@media (min-width: 80rem) { :root { --el-gutter: 56px; } }

/* ---- base ---- */
:where(.el), :where(.el) *, :where(.el) *::before, :where(.el) *::after { box-sizing: border-box; }
:where(.el) [hidden] { display: none !important; }
body.el { margin: 0; background: var(--el-page); color: var(--el-ink); font: 400 16px/1.55 var(--el-font);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
:where(.el) :where(h1, h2, h3, h4) { margin: 0; font-weight: 600; letter-spacing: -.01em; color: var(--el-ink); }
:where(.el) p { margin: 0 0 var(--el-s3); }
:where(.el) a { color: var(--el-red-dark); text-underline-offset: 3px; }
:where(.el) :where(code, kbd, samp) { font-family: var(--el-mono); font-size: .92em; }
:where(.el) :focus { outline: none; }
:where(.el) :focus-visible { outline: 2px solid var(--el-ink); outline-offset: 2px; }   /* one ring (Q224) */
.el-on-dark :focus-visible, .el-on-dark:focus-visible { outline-color: #fff; }
.el-tnum { font-variant-numeric: tabular-nums; }
.el-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the skip link (Q224): a dark pill top left on the first Tab */
.el-skip { position: absolute; left: var(--el-s3); top: -120px; z-index: 100; padding: 10px 16px; border-radius: var(--el-r-round);
  background: var(--el-ink); color: #fff !important; font-weight: 600; text-decoration: none; box-shadow: var(--el-depth-2); }
.el-skip:focus { top: var(--el-s3); }

/* ---- the type roles (Q207): a view names the role, never a size; phone sizes below 48rem ---- */
.el-display { font-size: 50px; line-height: 1.12; font-weight: 600; letter-spacing: -.015em; }
.el-title-1 { font-size: 42px; line-height: 1.15; font-weight: 600; }
.el-title-2 { font-size: 26px; line-height: 1.2; font-weight: 600; }
.el-title-3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.el-lead { font-size: 19px; line-height: 1.6; color: var(--el-text-2); }
.el-body { font-size: 16px; line-height: 1.55; }
.el-small { font-size: 14.5px; line-height: 1.45; }
.el-caption { font-size: 13.5px; line-height: 1.4; }
.el-micro { font-size: 12px; line-height: 1.35; }
.el-kicker { font: 500 13px/1.3 var(--el-mono); letter-spacing: .02em; color: var(--el-muted); }
.el-figure { font: 500 32px/1.1 var(--el-mono); font-variant-numeric: tabular-nums; }
.el-muted { color: var(--el-muted); }
.el-mono { font-family: var(--el-mono); }
@media (max-width: 47.99rem) {
  .el-display { font-size: 30px; }
  .el-title-1 { font-size: 26px; line-height: 1.2; }
  .el-title-2 { font-size: 22px; line-height: 1.25; }
  .el-title-3 { font-size: 18px; }
  .el-lead { font-size: 17px; line-height: 1.55; }
  .el-body { font-size: 15.5px; line-height: 1.5; }
  .el-micro { font-size: 11px; line-height: 1.3; }
  .el-kicker { font-size: 12.5px; }
  .el-figure { font-size: 26px; }
}

/* ---- icons (Q212): a 24 grid, 2-unit lines, round caps and joins, currentColor ---- */
.el-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; vertical-align: -4px; }
.el-ic--16 { width: 16px; height: 16px; vertical-align: -3px; }
.el-ic--24 { width: 24px; height: 24px; }

/* ---- the mark: the logo, a hairline, the product's word (Q181) ---- */
.el-mark { display: inline-flex; align-items: center; gap: 9px; color: var(--el-ink); text-decoration: none; }
.el-mark img, .el-mark svg { display: block; width: 52px; height: 30px; }
.el-mark i { display: block; width: 1px; height: 16px; background: #d6d3cf; }
.el-mark b { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.el-on-dark .el-mark, .el-mark.el-on-dark { color: #fff; }
.el-on-dark .el-mark i, .el-mark.el-on-dark i { background: rgba(255, 255, 255, .35); }

/* the live dot (the logo's dots echoed): red with a soft halo */
.el-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--el-red);
  box-shadow: 0 0 0 4px rgba(227, 30, 36, .16); }

/* ---- buttons (Q215): primary, secondary, quiet, danger; 36 / 44 / 52; six states ---- */
.el-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--el-s2); height: 44px; padding: 0 var(--el-s4);
  border-radius: var(--el-r); border: 1px solid var(--el-line-strong); background: var(--el-card); color: var(--el-ink);
  font: 600 15px/1 var(--el-font); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--el-fast) var(--el-enter), border-color var(--el-fast) var(--el-enter); }
.el-btn:hover { background: var(--el-page); text-decoration: none; }
.el-btn:active { transform: translateY(1px); }
.el-btn--primary { background: var(--el-red); border-color: var(--el-red); color: #fff; }
.el-btn--primary:hover { background: var(--el-red-dark); border-color: var(--el-red-dark); }
.el-btn--primary:active, .el-btn--danger:active { box-shadow: inset 0 2px 0 rgba(0, 0, 0, .18); }
.el-btn--quiet { background: transparent; border-color: transparent; color: var(--el-red-dark); padding: 0 var(--el-s2); }
.el-btn--quiet:hover { background: var(--el-tint); }
.el-btn--danger { background: var(--el-failed); border-color: var(--el-failed); color: #fff; }
.el-btn--danger:hover { background: #8e0d16; border-color: #8e0d16; }
.el-btn--sm { height: 36px; padding: 0 var(--el-s3); font-size: 13.5px; }
.el-btn--lg { height: 52px; padding: 0 var(--el-s5); font-size: 16px; }
.el-btn--block { width: 100%; }
.el-btn:disabled, .el-btn[aria-disabled="true"] { background: var(--el-disabled); border-color: var(--el-disabled); color: var(--el-faint);
  cursor: not-allowed; transform: none; box-shadow: none; }
.el-btn .el-ic { width: 18px; height: 18px; }
/* loading: a spinner beside the kept label, the width does not jump */
.el-btn.is-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor;
  border-right-color: transparent; animation: el-spin .8s linear infinite; }
@keyframes el-spin { to { transform: rotate(360deg); } }

/* ---- form parts (Q216): label above, 44 px, 16 px text, edge #94918d, dark ring when focused ---- */
.el-label { display: block; margin-bottom: var(--el-s1); font-size: 14.5px; font-weight: 500; color: var(--el-ink); }
.el-input, .el-select, .el-textarea { display: block; width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--el-field-edge);
  border-radius: var(--el-r); background: var(--el-card); color: var(--el-ink); font: 400 16px/1.4 var(--el-font);
  transition: box-shadow var(--el-fast) var(--el-enter); }
.el-textarea { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; }
.el-input::placeholder, .el-textarea::placeholder { color: var(--el-faint); }
.el-input:focus, .el-select:focus, .el-textarea:focus { outline: none; border-color: var(--el-ink);
  box-shadow: 0 0 0 1px var(--el-ink), 0 0 0 4px rgba(23, 23, 23, .08); }
.el-input[aria-invalid="true"], .el-select[aria-invalid="true"], .el-textarea[aria-invalid="true"] { border-color: var(--el-failed);
  box-shadow: 0 0 0 1px var(--el-failed); }
.el-hint { margin-top: var(--el-s1); font-size: 13.5px; line-height: 1.4; color: var(--el-muted); }
.el-error { display: flex; gap: 6px; align-items: flex-start; margin-top: var(--el-s1); font-size: 13.5px; color: var(--el-failed-text); }
.el-error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--el-failed);
  color: #fff; font: 700 11px/16px var(--el-font); text-align: center; }
.el-field + .el-field { margin-top: var(--el-s3); }
.el-check { width: 18px; height: 18px; accent-color: var(--el-ink); }
/* the switch: a checkbox drawn as one, black when on */
.el-switch { appearance: none; position: relative; width: 44px; height: 24px; margin: 0; border-radius: var(--el-r-round);
  background: var(--el-line-strong); cursor: pointer; transition: background-color var(--el-fast) var(--el-enter); }
.el-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform var(--el-fast) var(--el-enter); }
.el-switch:checked { background: var(--el-ink); }
.el-switch:checked::after { transform: translateX(20px); }

/* ---- cards and rows ---- */
.el-card { background: var(--el-card); border: 1px solid #e7e5e2; border-radius: var(--el-r-lg); padding: var(--el-s5); }
.el-card--raised { box-shadow: var(--el-depth-1); }
.el-card > h2, .el-card > h3, .el-card__title { margin: 0 0 var(--el-s3); font-size: 16px; font-weight: 600; display: flex; align-items: center;
  gap: var(--el-s2); }
.el-row { display: flex; align-items: center; gap: var(--el-s3); padding: var(--el-s3) var(--el-s4); background: var(--el-card);
  border: 1px solid var(--el-line); border-radius: var(--el-r); }

/* ---- small messages (Q222) ---- */
.el-notice { display: flex; gap: var(--el-s3); align-items: flex-start; padding: var(--el-s3) 14px; border-radius: var(--el-r);
  background: var(--el-info-tint); color: var(--el-ink); font-size: 13.5px; line-height: 1.45; }
.el-notice > .el-ic { width: 20px; height: 20px; margin-top: 1px; color: var(--el-info); }
.el-notice b, .el-notice__title { display: block; font-size: 14.5px; font-weight: 600; }
.el-notice--good { background: var(--el-good-tint); }    .el-notice--good > .el-ic { color: var(--el-good); }
.el-notice--careful { background: var(--el-careful-tint); } .el-notice--careful > .el-ic { color: var(--el-careful); }
.el-notice--failed { background: var(--el-failed-tint); }  .el-notice--failed > .el-ic { color: var(--el-failed); }
.el-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--el-s2); border-radius: var(--el-r-sm);
  background: var(--el-info-tint); color: var(--el-info-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.el-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--el-info); flex: none; }
.el-badge--good { background: var(--el-good-tint); color: var(--el-good-text); }       .el-badge--good::before { background: var(--el-good); }
.el-badge--careful { background: var(--el-careful-tint); color: var(--el-careful-text); } .el-badge--careful::before { background: var(--el-careful); }
.el-badge--failed { background: var(--el-failed-tint); color: var(--el-failed-text); }   .el-badge--failed::before { background: var(--el-failed); }
.el-badge--plain::before { display: none; }
.el-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--el-s2); border-radius: var(--el-r-sm);
  background: var(--el-tint); color: var(--el-text-2); font-size: 12px; font-weight: 600; }
.el-toast { display: inline-flex; align-items: center; gap: var(--el-s3); min-height: 48px; padding: 0 var(--el-s2) 0 var(--el-s4);
  border-radius: var(--el-r); background: var(--el-logo-black); color: #fff; font-size: 14.5px; box-shadow: var(--el-depth-2); }
.el-toast a, .el-toast button { color: var(--el-pink); }

/* ---- the data table (Q218) ---- */
.el-table-wrap { overflow-x: auto; background: var(--el-card); border: 1px solid var(--el-line); border-radius: var(--el-r); }
.el-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.el-table th { height: 42px; padding: 0 var(--el-s3); text-align: left; font-size: 13.5px; font-weight: 600; color: var(--el-muted);
  background: var(--el-card); border-bottom: 1px solid var(--el-line); white-space: nowrap; }
.el-table th[aria-sort] { color: var(--el-ink); }
.el-table td { height: 48px; padding: var(--el-s2) var(--el-s3); border-bottom: 1px solid var(--el-line-soft); vertical-align: middle; }
.el-table tbody tr:last-child td { border-bottom: 0; }
.el-table tbody tr:hover td { background: var(--el-hover); }
.el-table tr.is-selected td { background: var(--el-page); }
.el-table .el-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- tabs, segmented control, accordion (Q220) ---- */
.el-tabs { display: flex; gap: var(--el-s5); border-bottom: 1px solid var(--el-line); overflow-x: auto; }
.el-tabs a, .el-tabs button { display: inline-flex; align-items: center; height: 44px; padding: 0; border: 0; background: none;
  color: var(--el-text-2); font: 500 14.5px var(--el-font); text-decoration: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.el-tabs [aria-current], .el-tabs [aria-selected="true"] { color: var(--el-ink); font-weight: 600; border-bottom-color: var(--el-red); }
.el-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--el-r); background: #e9e7e4; }
.el-seg a, .el-seg button { display: inline-flex; align-items: center; height: 34px; padding: 0 var(--el-s3); border: 0; border-radius: var(--el-r-sm);
  background: none; color: var(--el-text-2); font: 500 14px var(--el-font); text-decoration: none; cursor: pointer; }
.el-seg [aria-current], .el-seg [aria-pressed="true"] { background: #fff; color: var(--el-ink); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.el-acc { border-top: 1px solid var(--el-line); }
.el-acc > summary { display: flex; align-items: center; gap: var(--el-s2); min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; }
.el-acc > summary::-webkit-details-marker { display: none; }
.el-acc > summary::before { content: "›"; display: inline-block; width: 16px; color: var(--el-muted); font-size: 20px;
  transition: transform var(--el-base) var(--el-enter); }
.el-acc[open] > summary::before { transform: rotate(90deg); }

/* ---- dialog, drawer, sheet (Q221) ---- */
.el-dialog { width: min(var(--el-w-form), calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: var(--el-s6);
  border: 0; border-radius: var(--el-r-lg); background: var(--el-card); color: var(--el-ink); box-shadow: var(--el-depth-3); }
.el-dialog::backdrop { background: var(--el-veil); }
.el-dialog h2 { font-size: 20px; line-height: 1.3; margin: 0 var(--el-s8) var(--el-s2) 0; }
.el-dialog__close { position: absolute; top: var(--el-s3); right: var(--el-s3); width: 36px; height: 36px; border: 0; border-radius: var(--el-r);
  background: none; color: var(--el-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.el-dialog__close:hover { background: var(--el-tint); color: var(--el-ink); }
.el-dialog__actions { display: flex; justify-content: flex-end; gap: var(--el-s2); margin-top: var(--el-s5); }
.el-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); margin: 0 0 0 auto; height: 100%; max-height: 100%;
  border: 0; padding: var(--el-s6); background: var(--el-card); box-shadow: var(--el-depth-3); }
.el-drawer::backdrop { background: var(--el-veil); }
@media (max-width: 47.99rem) {
  .el-dialog, .el-drawer { width: 100%; max-width: 100%; margin: auto 0 0; top: auto; height: auto; max-height: calc(100vh - 56px);
    border-radius: var(--el-r-sheet) var(--el-r-sheet) 0 0; padding: var(--el-s6) var(--el-s4) calc(var(--el-s5) + env(safe-area-inset-bottom)); }
  .el-dialog::before, .el-drawer::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px;
    border-radius: 2px; background: var(--el-line-strong); }
  .el-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .el-dialog__actions .el-btn { width: 100%; }
}

/* ---- states (Q223) ---- */
.el-empty { display: flex; flex-direction: column; align-items: center; gap: var(--el-s2); padding: var(--el-s10) var(--el-s4); text-align: center; }
.el-empty__sign { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--el-page); color: var(--el-text-2); }
.el-empty__what { font-size: 15px; font-weight: 600; margin: 0; }
.el-empty__why { font-size: 13.5px; color: var(--el-muted); margin: 0; }
.el-skeleton { display: flex; flex-direction: column; gap: 10px; }
.el-skeleton span { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--el-tint), var(--el-hover), var(--el-tint));
  background-size: 200% 100%; animation: el-shimmer 1.4s linear infinite; }
@keyframes el-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- the frame (Q187, Q199, Q271): the dark side menu, the white top bar, the page; on a phone a dark strip ---- */
.el-frame { display: grid; grid-template-columns: var(--el-side-w) minmax(0, 1fr); min-height: 100vh; }
.el-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden auto;
  padding: 18px 14px 18px; background: var(--el-panel); color: #d9d6d2; }
.el-side__mark { position: relative; z-index: 1; padding: 0 8px 16px; }
.el-side__who { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 0 8px 12px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .12); }
.el-side__who > div > b { display: block; font-size: 13.5px; font-weight: 600; color: #fff; }
.el-side__who > div > span { display: block; font-size: 12px; color: #b9b5b0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--el-red);
  color: #fff; font-size: 12.5px; font-weight: 600; }
.el-avatar--quiet { background: #3a3937; }
.el-side__nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.el-side__group { display: flex; align-items: center; padding: 12px 10px 5px; font: 500 10.5px/1.2 var(--el-mono); letter-spacing: .06em;
  text-transform: uppercase; color: #a7a4a1; }
.el-side__item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 10px;
  color: #d9d6d2; font-size: 14px; line-height: 1.3; text-decoration: none; }
.el-side__item .el-ic { width: 18px; height: 18px; color: #a7a4a1; }
.el-side__item:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.el-side__item.is-active, .el-side__item[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600;
  box-shadow: inset 3px 0 0 var(--el-red); }
.el-side__item.is-active .el-ic, .el-side__item[aria-current="page"] .el-ic { color: #fff; }
.el-side__count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--el-r-round); background: var(--el-red);
  color: #fff; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.el-side__count--quiet { background: rgba(255, 255, 255, .14); color: #e2dfdb; }
.el-side__foot { position: relative; z-index: 1; margin-top: auto; padding: var(--el-s4) 8px 0; font: 400 12px/1.4 var(--el-mono); color: var(--el-pink); }
/* the swoosh at the menu's foot (Q211: 30 % on the dark ground) */
.el-side__swoosh { position: absolute; left: -80px; bottom: -126px; width: 390px; z-index: 0; opacity: .3; pointer-events: none; }
.el-main { min-width: 0; display: flex; flex-direction: column; }
.el-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--el-s3); min-height: var(--el-top-h);
  padding: 0 var(--el-s6); background: var(--el-card); border-bottom: 1px solid var(--el-line); }
.el-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--el-muted); font-size: 13.5px; white-space: nowrap; }
.el-crumbs a { color: var(--el-muted); text-decoration: none; }
.el-crumbs a:hover { color: var(--el-ink); }
.el-crumbs [aria-current] { color: var(--el-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.el-page { flex: 1; width: 100%; max-width: var(--el-w-page); padding: var(--el-s6) var(--el-s8) var(--el-s10); }
.el-strip { display: none; }
.el-tabbar { display: none; }
@media (max-width: 47.99rem) {
  .el-frame { grid-template-columns: minmax(0, 1fr); }
  .el-frame > .el-side { display: none; }
  .el-strip { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--el-s3); height: 56px; padding: 0 var(--el-s4);
    background: var(--el-panel); color: #fff; }
  .el-top { position: static; min-height: 48px; padding: 0 var(--el-s4); }
  .el-page { padding: var(--el-s4) var(--el-s4) var(--el-s8); }
  /* the bottom tab bar (Q117, Q125): 82 px with the safe area; the active tab red with a pill behind its icon */
  .el-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--el-card); border-top: 1px solid var(--el-line); }
  .el-tabbar a, .el-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px;
    padding: 4px 2px; border: 0; background: none; color: var(--el-muted); font: 500 11px/1.3 var(--el-font); text-decoration: none; cursor: pointer; }
  .el-tabbar .el-ic { width: 22px; height: 22px; padding: 0; }
  .el-tabbar [aria-current="page"] { color: var(--el-red-dark); font-weight: 600; }
  .el-tabbar [aria-current="page"] .el-ic { width: 52px; border-radius: var(--el-r-round); background: #fdeaea; padding: 0 15px; box-sizing: border-box; }
  body.el-has-tabbar { padding-bottom: 88px; }
}

/* ---- the swoosh motif on a light page (13 %) ---- */
.el-motif { position: relative; overflow: hidden; }
.el-motif > .el-motif__swoosh { position: absolute; right: -120px; bottom: -160px; width: 520px; opacity: .13; pointer-events: none; z-index: 0; }

/* ---- reduced motion (Q213): only fades remain ---- */
@media (prefers-reduced-motion: reduce) {
  :where(.el) *, :where(.el) *::before, :where(.el) *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; }
}
