/* Khu quản lý Nắng Xuân — đồng bộ nhận diện nangxuanedu.com (tím thương hiệu + hồng nhấn) */
:root {
  --brand-50: #f6f3fe; --brand-100: #ece3fc; --brand-200: #ddc9f8; --brand-500: #9160da;
  --brand-600: #7c49c6; --brand-700: #633aa0; --brand-800: #4b2d79;
  --accent: #e05585; --sun: #f5b82e;
  --ink: #241b33; --ink-2: #40374f; --muted: #6c6480;
  --canvas: #f6f4fb; --surface: #ffffff; --surface-2: #faf8fe; --line: #ece7f6; --line-strong: #ddd4ee;
  --ok: #1f7f56; --ok-bg: #e6f6ee; --warn: #8a5d00; --warn-bg: #fcf1dc;
  --danger: #b53340; --danger-bg: #fbe7e9; --info: #2c63a8; --info-bg: #e5effb;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(36,27,51,.04), 0 6px 24px rgba(36,27,51,.06);
  --focus: 0 0 0 3px rgba(124,73,198,.35);
  --side-w: 248px;
  --glow-1: var(--brand-100); --glow-2: #fde4ec;
  --on-brand: #fff;
  --series-1: #7c49c6; --series-2: #13906a; --grid: #ece7f6;
  --glow-spot: rgba(145,96,218,.30); --glow-edge: rgba(124,73,198,1);
  --glow-halo: 0 0 0 1px rgba(145,96,218,.35), 0 12px 40px rgba(124,73,198,.22);
  --hero: linear-gradient(120deg, #633aa0, #9160da 60%, #e05585);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-50: #241a36; --brand-100: #2d2142; --brand-200: #3b2b57; --brand-500: #b393ec;
    --brand-600: #a47fe6; --brand-700: #c6a7f0; --brand-800: #ddc9f8;
    --ink: #f1edf8; --ink-2: #d6cfe3; --muted: #a8a1b8;
    --canvas: #15111d; --surface: #1d1828; --surface-2: #231d30; --line: #2f2840; --line-strong: #3d3452;
    --ok: #6fd3a3; --ok-bg: #173226; --warn: #f0c46b; --warn-bg: #3a2d12;
    --danger: #f28b95; --danger-bg: #3d1a20; --info: #8fb9ef; --info-bg: #182a40;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
    --glow-1: #2a1d42; --glow-2: #2c1624;
    --on-brand: #15111d;
    --series-1: #9160da; --series-2: #199e70; --grid: #2f2840;
    --glow-spot: rgba(179,147,236,.26); --glow-edge: rgba(214,190,250,1);
    --glow-halo: 0 0 0 1px rgba(179,147,236,.4), 0 12px 40px rgba(124,73,198,.35);
    --hero: linear-gradient(120deg, #3b2b57, #4b2d79 60%, #6b2a48);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-50: #241a36; --brand-100: #2d2142; --brand-200: #3b2b57; --brand-500: #b393ec;
  --brand-600: #a47fe6; --brand-700: #c6a7f0; --brand-800: #ddc9f8;
  --ink: #f1edf8; --ink-2: #d6cfe3; --muted: #a8a1b8;
  --canvas: #15111d; --surface: #1d1828; --surface-2: #231d30; --line: #2f2840; --line-strong: #3d3452;
  --ok: #6fd3a3; --ok-bg: #173226; --warn: #f0c46b; --warn-bg: #3a2d12;
  --danger: #f28b95; --danger-bg: #3d1a20; --info: #8fb9ef; --info-bg: #182a40;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
  --glow-1: #2a1d42; --glow-2: #2c1624;
  --on-brand: #15111d;
  --series-1: #9160da; --series-2: #199e70; --grid: #2f2840;
  --glow-spot: rgba(179,147,236,.26); --glow-edge: rgba(214,190,250,1);
  --glow-halo: 0 0 0 1px rgba(179,147,236,.4), 0 12px 40px rgba(124,73,198,.35);
  --hero: linear-gradient(120deg, #3b2b57, #4b2d79 60%, #6b2a48);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 15px/1.55 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand-600); text-underline-offset: 2px; }
h1, h2 { line-height: 1.25; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 8px; border-radius: 8px; max-width: 420px; }
small { display: block; color: var(--muted); font-size: .82rem; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.nx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nx-skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.nx-skip:focus { left: 8px; }
.nx-muted { color: var(--muted); }
.nx-right { text-align: right; }
.nx-nowrap { white-space: nowrap; }
.nx-mt { margin-top: 16px; }

/* ---------- Logo ---------- */
.nx-logo {
  display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; font-weight: 800; color: #fff; font-size: 1.15rem;
  background: linear-gradient(135deg, var(--brand-600), var(--accent));
}

/* ---------- Trang đăng nhập ---------- */
.nx-auth {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--glow-1), transparent 60%), radial-gradient(900px 500px at 110% 110%, var(--glow-2), transparent 60%), var(--canvas);
}
.nx-auth__card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; box-shadow: var(--shadow); }
.nx-auth__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.nx-auth__brand b, .nx-side__brand b { display: block; font-weight: 800; color: var(--brand-800); }
.nx-auth__title { font-size: 1.45rem; }
.nx-auth__sub { color: var(--muted); }
.nx-auth__foot { color: var(--muted); font-size: .8rem; margin-top: 18px; }

/* ---------- Form ---------- */
.nx-form { display: grid; gap: 14px; }
.nx-form--inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 12px 0; }
.nx-field { display: grid; gap: 6px; }
.nx-field label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.nx-field--end { align-content: end; }
.nx-input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
}
.nx-input:focus { border-color: var(--brand-500); box-shadow: var(--focus); outline: none; }
.nx-input--code { letter-spacing: .3em; font-size: 1.2rem; font-weight: 700; max-width: 220px; }
select.nx-input { appearance: auto; }
.nx-check { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; }
.nx-check input, .nx-perm input { width: 18px; height: 18px; accent-color: var(--brand-600); }
.nx-row-between { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.nx-hint { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.nx-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.nx-grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.nx-span-2 { grid-column: 1 / -1; }

/* ---------- Nút ---------- */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; border: 1.5px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--brand-600); color: var(--on-brand); transition: background .15s, transform .05s;
}
.nx-btn:hover { background: var(--brand-700); }
.nx-btn:active { transform: translateY(1px); }
.nx-btn--block { width: 100%; }
.nx-btn--sm { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.nx-btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--line-strong); }
.nx-btn--ghost:hover { background: var(--brand-50); }
.nx-btn--danger { background: var(--danger); color: var(--on-brand); }
.nx-btn--danger:hover { background: #9a2632; }
.nx-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nx-icon-btn { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- Thông báo, badge ---------- */
.nx-alert { padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; font-weight: 600; font-size: .92rem; }
.nx-alert--ok { background: var(--ok-bg); color: var(--ok); }
.nx-alert--info { background: var(--info-bg); color: var(--info); }
.nx-alert--danger { background: var(--danger-bg); color: var(--danger); }
.nx-alert--warn { background: var(--warn-bg); color: var(--warn); }
.nx-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.nx-badge--ok { background: var(--ok-bg); color: var(--ok); }
.nx-badge--warn { background: var(--warn-bg); color: var(--warn); }
.nx-badge--danger { background: var(--danger-bg); color: var(--danger); }
.nx-badge--info { background: var(--info-bg); color: var(--info); }
.nx-badge--brand { background: var(--brand-100); color: var(--brand-700); }
.nx-badge--muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.nx-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 700; font-size: .85rem; }

/* ---------- Khung ứng dụng ---------- */
.nx-app { display: flex; min-height: 100vh; }
.nx-side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
  background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px;
  overflow-y: auto; transform: translateX(-100%); transition: transform .2s;
}
.nx-side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(21,17,29,.45); }
.nx-side__brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; }
.nx-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nx-nav {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px;
  border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 600;
}
.nx-nav i { font-style: normal; width: 22px; text-align: center; color: var(--muted); }
.nx-nav:hover { background: var(--brand-50); }
.nx-nav.is-active { background: var(--brand-100); color: var(--brand-800); }
.nx-nav.is-active i { color: var(--brand-600); }
.nx-nav--soon { opacity: .55; cursor: default; }
.nx-nav--soon em { margin-left: auto; white-space: nowrap; font-style: normal; font-size: .7rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.nx-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nx-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nx-ctx select { min-height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; padding: 6px 10px; }
.nx-ctx, .nx-ctx__static { min-width: 0; flex: 1 1 auto; }
.nx-ctx select { width: 100%; text-overflow: ellipsis; }
.nx-ctx__static { font-weight: 700; color: var(--brand-700); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-top__right { flex: none; }
.nx-logout-txt { display: none; }
@media (min-width: 600px) { .nx-logout-txt { display: inline; } .nx-logout-ico { display: none; } .nx-ctx, .nx-ctx__static { flex: 0 1 auto; } }
.nx-user { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.nx-user__name { display: none; }
.nx-avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-weight: 800; }
.nx-main { padding: 20px 16px 48px; max-width: 1200px; width: 100%; margin: 0 auto; }
.nx-page-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.nx-page-head p { color: var(--muted); margin: 0; }

@media (min-width: 960px) {
  .nx-side { transform: none; position: sticky; top: 0; height: 100vh; flex: none; }
  .nx-menu-btn { display: none; }
  .nx-user__name { display: inline; }
  .nx-main { padding: 28px 32px 56px; }
}

/* ---------- Thẻ, thống kê ---------- */
.nx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.nx-card--narrow { max-width: 480px; }
.nx-card--soft { background: var(--brand-50); border-color: var(--brand-100); box-shadow: none; }
.nx-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nx-hero {
  border-radius: 22px; padding: 24px; margin-bottom: 18px; color: #fff;
  background: var(--hero);
}
.nx-hero h1 { color: #fff; font-size: 1.5rem; }
.nx-hero p { margin: 0 0 4px; opacity: .92; }
.nx-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: 18px; }
.nx-stat { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand-500); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.nx-stat b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.nx-stat--text b { font-size: 1.15rem; padding: 6px 0 4px; }
.nx-stat span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.nx-stat--info { border-left-color: var(--info); }
.nx-stat--ok { border-left-color: var(--ok); }
.nx-stat--warn { border-left-color: var(--sun); }

/* ---------- Bảng ---------- */
.nx-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.nx-toolbar .nx-input { max-width: 280px; }
.nx-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nx-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.nx-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.nx-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nx-table tbody tr:hover { background: var(--surface-2); }
.nx-table td small { margin-top: 2px; }
.nx-matrix th small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.nx-matrix tbody th { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); white-space: nowrap; }
.nx-perm { display: grid; grid-template-columns: repeat(5, auto); gap: 4px 6px; }
.nx-perm label { display: grid; justify-items: center; gap: 2px; font-size: .68rem; color: var(--muted); cursor: pointer; }
.nx-perm input:disabled + span { opacity: .6; }

/* ---------- Danh sách, trạng thái rỗng ---------- */
.nx-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.nx-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.nx-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.nx-empty__icon { font-size: 2.2rem; margin-bottom: 8px; }
.nx-copy { display: flex; gap: 8px; }

/* ---------- 2FA ---------- */
.nx-steps { padding-left: 1.2em; margin: 0 0 16px; }
.nx-steps li { margin-bottom: 4px; }
.nx-2fa { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: start; }
.nx-qr { background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.nx-qr img, .nx-qr svg { display: block; width: 200px; height: 200px; }
.nx-secret { display: inline-block; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-weight: 700; letter-spacing: .08em; word-break: break-all; }
.nx-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding-left: 1.4em; }
.nx-codes code { font-size: 1rem; font-weight: 700; }

/* ---------- Hộp thoại sắp hết phiên ---------- */
.nx-idle { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(21,17,29,.55); padding: 16px; }
.nx-idle__box { background: var(--surface); border-radius: 20px; padding: 24px; max-width: 380px; box-shadow: var(--shadow); }


/* ---------- Đội ngũ ---------- */
h3 { font-size: 1rem; margin: 1em 0 .3em; }
.nx-inline { display: inline; font-size: .9rem; font-weight: 600; }
.nx-person { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.nx-person:hover b { color: var(--brand-600); }
.nx-avatar--img { border-radius: 50%; object-fit: cover; flex: none; }
.nx-avatar { flex: none; }
.nx-profile-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.nx-profile-head .nx-avatar { font-size: 1.6rem; }
.nx-profile-head h1 { margin: 0 0 2px; }
.nx-profile-head p { color: var(--muted); margin: 0 0 8px; }
.nx-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.nx-tabs a { white-space: nowrap; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.nx-tabs a:hover { background: var(--brand-50); color: var(--brand-700); }
.nx-card { scroll-margin-top: 80px; }
.nx-card--warn { border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); background: color-mix(in srgb, var(--warn-bg) 55%, var(--surface)); }
.nx-dl { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0; }
.nx-dl dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.nx-dl dd { margin: 2px 0 0; font-weight: 600; }
.nx-details summary { cursor: pointer; font-weight: 700; color: var(--brand-700); padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.nx-details[open] summary { margin-bottom: 8px; }
textarea.nx-input { min-height: 90px; resize: vertical; }

.nx-week { border-collapse: separate; border-spacing: 6px; }
.nx-week th { font-size: .82rem; color: var(--muted); font-weight: 700; text-align: center; }
.nx-week tbody th { text-align: left; padding-right: 6px; color: var(--ink-2); }
.nx-slot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px dashed var(--line-strong); cursor: pointer; font-weight: 800; color: #fff; position: relative; }
.nx-slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.nx-slot:has(input:checked), .nx-slot.is-on { background: var(--brand-600); border: 1.5px solid var(--brand-600); }
.nx-slot:has(input:focus-visible) { box-shadow: var(--focus); }
.nx-slot:has(input:disabled) { cursor: default; }
@media (max-width: 420px) {
  .nx-week { border-spacing: 3px; }
  .nx-week tbody th { font-size: .75rem; padding-right: 2px; }
  .nx-slot { width: 32px; height: 38px; border-radius: 9px; }
  .nx-card { padding: 16px; }
}

.nx-trend { margin: 0 0 14px; }
.nx-trend figcaption { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.nx-trend__bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.nx-trend__bar { flex: 1; max-width: 44px; height: var(--h); background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); border-radius: 8px 8px 2px 2px; position: relative; min-height: 6px; }
.nx-trend__bar i { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .75rem; font-weight: 700; color: var(--ink-2); }

.nx-criteria { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.nx-criteria legend { font-weight: 700; margin-bottom: 8px; }
.nx-criteria legend small { display: inline; margin-left: 6px; }
.nx-criterion { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.nx-score { display: flex; gap: 6px; }
.nx-score label { position: relative; }
.nx-score input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.nx-score span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong); font-weight: 800; color: var(--ink-2); }
.nx-score input:checked + span { background: var(--brand-600); border-color: var(--brand-600); color: var(--on-brand); }
.nx-score input:focus-visible + span { box-shadow: var(--focus); }
.nx-stars { color: var(--sun); letter-spacing: 2px; font-size: 1.05rem; }


/* ---------- Lớp & lịch học ---------- */
.nx-btn--lg { min-height: 52px; font-size: 1.02rem; }
.nx-badge--lg { font-size: .9rem; padding: 6px 14px; }
.nx-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nx-chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.nx-chips small { display: inline; }
.nx-tag { display: inline-block; font-style: normal; font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); margin-left: 4px; }
.nx-sched { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 12px; margin: 12px 0; display: grid; gap: 8px; }
.nx-sched legend { font-weight: 700; padding: 0 6px; }
.nx-sched__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }

.nx-cal-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.nx-cal-bar .nx-toolbar { width: 100%; margin-bottom: 0; }
.nx-cal-label { font-size: 1.05rem; margin-left: 6px; align-self: center; }
.nx-seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.nx-seg__btn { padding: 8px 16px; min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; color: var(--ink-2); }
.nx-seg__btn.is-active { background: var(--brand-600); color: var(--on-brand); }

.nx-week-cal { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 1100px) { .nx-week-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); } .nx-week-cal.is-day { grid-template-columns: 1fr; } }
.nx-day { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; transition: background .15s, border-color .15s; }
.nx-day.is-today { border-color: var(--brand-500); box-shadow: 0 0 0 2px var(--brand-100); }
.nx-day header { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; }
.nx-day header a { text-decoration: none; color: var(--ink); }
.nx-day__empty { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
.nx-day.is-drop, .nx-month__cell.is-drop { background: var(--brand-50); border-color: var(--brand-500); border-style: dashed; }

.nx-sess { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--surface-2); border-left: 4px solid var(--brand-500); font-size: .85rem; line-height: 1.35; }
.nx-sess b { font-size: .9rem; }
.nx-sess:hover { background: var(--brand-50); }
.nx-sess[draggable="true"] { cursor: grab; }
.nx-sess.is-dragging { opacity: .5; }
.nx-sess__time { font-weight: 800; color: var(--ink-2); font-size: .8rem; }
.nx-sess__meta, .nx-sess__status { color: var(--muted); font-size: .78rem; }
.nx-sess--info { border-left-color: var(--info); }
.nx-sess--brand { border-left-color: var(--brand-600); background: var(--brand-50); }
.nx-sess--ok { border-left-color: var(--ok); }
.nx-sess--danger { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger-bg) 60%, var(--surface)); }
.nx-sess--muted { border-left-color: var(--line-strong); opacity: .65; text-decoration: line-through; }
.nx-sess.has-conflict { outline: 2px solid var(--sun); outline-offset: -2px; }
.nx-holiday { font-size: .78rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: 3px 8px; }

.nx-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; overflow-x: auto; }
.nx-month__head { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.nx-month__cell { min-height: 96px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nx-month__cell.is-out { opacity: .45; }
.nx-month__cell.is-today { border-color: var(--brand-500); }
.nx-month__day { font-weight: 800; font-size: .85rem; text-decoration: none; color: var(--ink); }
.nx-month .nx-sess { padding: 3px 6px; font-size: .72rem; border-left-width: 3px; }
.nx-month .nx-sess b { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-more { font-size: .75rem; font-weight: 700; }
@media (max-width: 700px) { .nx-month { grid-template-columns: repeat(7, 92px); } }

.nx-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.nx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.nx-dot--info { background: var(--info); } .nx-dot--brand { background: var(--brand-600); } .nx-dot--ok { background: var(--ok); } .nx-dot--danger { background: var(--danger); } .nx-dot--muted { background: var(--line-strong); }

.nx-session-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.nx-session-head h1 { margin-bottom: 4px; }
.nx-session-head p { margin: 0 0 4px; color: var(--ink-2); }
.nx-checkin h2 { margin-bottom: 6px; }
.nx-checkin p { margin: 0 0 8px; }
.nx-checkin__ok { font-weight: 700; color: var(--ok); }
.nx-card--danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); background: color-mix(in srgb, var(--danger-bg) 55%, var(--surface)); }
.nx-att__row.is-lech, .nx-list li.is-lech { background: color-mix(in srgb, var(--warn-bg) 80%, var(--surface)); border-color: var(--sun); }
.nx-kid-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.nx-kid { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; }
.nx-kid.is-absent { opacity: .7; }
.nx-kid .nx-hint { margin: 0; }
.nx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-chip { position: relative; }
.nx-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nx-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: .85rem; font-weight: 600; }
.nx-chip input:focus-visible + span { box-shadow: var(--focus); }
.nx-chip--pos input:checked + span { background: var(--ok); border-color: var(--ok); color: var(--on-brand); }
.nx-chip--neg input:checked + span { background: var(--sun); border-color: var(--sun); color: #241b33; }
.nx-input--sm { min-height: 38px; font-size: .9rem; }
.nx-msg { font-size: .92rem; line-height: 1.5; white-space: pre-wrap; background: var(--surface-2, var(--surface)); }
.nx-kid-list .nx-msg { margin: 6px 0; }
.nx-xn form { flex-wrap: wrap; justify-content: flex-end; }
.nx-lang { font-weight: 800; letter-spacing: .04em; }

.nx-att__bar { justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nx-att__sum { font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.nx-att__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nx-att__row { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
@media (min-width: 760px) { .nx-att__row { grid-template-columns: minmax(140px, 1fr) auto minmax(160px, 1fr); align-items: center; } }
.nx-att__name b { display: block; }
.nx-att__opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nx-att__opt { position: relative; }
.nx-att__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nx-att__opt span { display: grid; place-items: center; min-height: 44px; padding: 4px 6px; border-radius: 10px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: .8rem; line-height: 1.15; text-align: center; }
.nx-att__opt input:focus-visible + span { box-shadow: var(--focus); }
.nx-att__opt--ok input:checked + span { background: var(--ok); border-color: var(--ok); color: var(--on-brand); }
.nx-att__opt--danger input:checked + span { background: var(--danger); border-color: var(--danger); color: var(--on-brand); }
.nx-att__opt--warn input:checked + span { background: var(--sun); border-color: var(--sun); color: #241b33; }
.nx-att__opt--info input:checked + span { background: var(--info); border-color: var(--info); color: var(--on-brand); }
.nx-att__note { min-height: 40px; font-size: .9rem; }

.nx-leave h2 { margin-bottom: 2px; }
.nx-leave p { margin: 0 0 4px; }
.nx-sub { border: 0; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.nx-sub legend { font-weight: 700; margin-bottom: 6px; }
.nx-sub__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.nx-sub__opt:has(input:checked) { border-color: var(--brand-500); background: var(--brand-50); }
.nx-sub__opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand-600); }


/* ---------- Học sinh ---------- */
.nx-card .nx-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); }
.nx-card .nx-stat { box-shadow: none; padding: 12px 14px; }
.nx-avatar--kid { background: #fde4ec; color: #b23a67; }
:root[data-theme="dark"] .nx-avatar--kid { background: #3a1d2a; color: #f5a5c0; }
.nx-alert-tag { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 8px; }
.nx-card--health { border-left: 5px solid var(--accent); }
.nx-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-dotbox { width: 22px; height: 22px; border-radius: 6px; background: var(--line-strong); }
.nx-dotbox--ok { background: var(--ok); } .nx-dotbox--warn { background: var(--sun); } .nx-dotbox--info { background: var(--info); } .nx-dotbox--danger { background: var(--danger); }
.nx-timeline { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.nx-timeline li { position: relative; }
.nx-timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 3px var(--surface); }
.nx-timeline__date { font-weight: 700; font-size: .85rem; margin-right: 8px; color: var(--ink-2); }
.nx-timeline p { margin: 4px 0 0; }
.nx-table tr.is-error td { background: color-mix(in srgb, var(--danger-bg) 55%, transparent); }


/* ---------- Dashboard & biểu đồ ---------- */
.nx-stat small { display: block; margin-top: 2px; }
.nx-alert-strip { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.nx-alert-strip a { text-decoration: none; }
.nx-list li.is-today { border-color: var(--brand-500); background: var(--brand-50); }
.nx-compare th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ink-2); font-weight: 600; white-space: normal; }
.nx-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.nx-key.nx-s1, .nx-chart-legend i.nx-s1 { background: var(--series-1); }
.nx-key.nx-s2, .nx-chart-legend i.nx-s2 { background: var(--series-2); }
.nx-chart-wrap { margin: 0; position: relative; }
.nx-chart-wrap figcaption { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.nx-chart-legend { display: flex; gap: 14px; font-size: .85rem; color: var(--ink-2); margin-bottom: 6px; }
.nx-chart-legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.nx-chart { width: 100%; height: auto; display: block; overflow: visible; }
.nx-chart__grid { stroke: var(--grid); stroke-width: 1; }
.nx-chart__tick { fill: var(--muted); font-size: 11px; font-family: inherit; }
.nx-chart__label, .nx-chart__value, .nx-chart__cat { fill: var(--ink-2); font-size: 12px; font-weight: 600; font-family: inherit; }
.nx-chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nx-chart__line.nx-s1 { stroke: var(--series-1); } .nx-chart__line.nx-s2 { stroke: var(--series-2); }
.nx-chart__dot { stroke: var(--surface); stroke-width: 2; }
.nx-chart__dot.nx-s1, .nx-chart__key.nx-s1 { fill: var(--series-1); } .nx-chart__dot.nx-s2, .nx-chart__key.nx-s2 { fill: var(--series-2); }
.nx-chart__hit { fill: transparent; cursor: default; }
.nx-chart__track { fill: var(--surface-2); }
.nx-chart__bar { fill: var(--series-1); }
.nx-chart__bar.nx-bar--warn { fill: var(--sun); }
.nx-chart__bar.nx-bar--muted { fill: var(--brand-200); }
.nx-chart__hit:hover + *, .nx-chart rect.nx-chart__hit:hover { fill: color-mix(in srgb, var(--brand-500) 8%, transparent); }
.nx-chart-table { margin-top: 8px; font-size: .88rem; }
.nx-chart-table summary { cursor: pointer; color: var(--brand-700); font-weight: 600; }
.nx-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink); color: var(--surface); padding: 6px 10px; border-radius: 8px; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; }

/* ---------- Hiệu ứng ánh sáng theo con trỏ ---------- */
.nx-glow { position: relative; isolation: isolate; transition: box-shadow .25s ease, transform .25s ease; }
.nx-card.nx-glow:hover, .nx-stat.nx-glow:hover, .nx-auth__card.nx-glow:hover { box-shadow: var(--glow-halo); }
.nx-btn.nx-glow:not(.nx-btn--ghost):hover { box-shadow: 0 6px 22px rgba(124,73,198,.45), 0 0 0 3px rgba(145,96,218,.18); transform: translateY(-1px); }
.nx-btn--danger.nx-glow:hover { box-shadow: 0 6px 22px rgba(181,51,64,.4) !important; }
.nx-stat.nx-glow:hover { transform: translateY(-2px); }
.nx-glow::before, .nx-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
}
.nx-glow::before {
  z-index: -1;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--glow-spot), transparent 65%);
}
.nx-glow::after {
  padding: 1.5px;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), var(--glow-edge), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.nx-glow:hover::before, .nx-glow:hover::after { opacity: 1; }
.nx-btn.nx-glow, .nx-hero.nx-glow { --glow-spot: rgba(255,255,255,.55); --glow-edge: rgba(255,255,255,.9); }
.nx-btn--ghost.nx-glow, .nx-nav.nx-glow { --glow-spot: rgba(145,96,218,.28); --glow-edge: rgba(124,73,198,.9); }
.nx-btn.nx-glow::before, .nx-hero.nx-glow::before { z-index: 0; mix-blend-mode: soft-light; }
.nx-btn.nx-glow > *, .nx-hero.nx-glow > * { position: relative; z-index: 1; }
.nx-auth__card.nx-glow::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow-spot), transparent 60%); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .nx-glow::before, .nx-glow::after { display: none; } .nx-glow:hover { transform: none !important; } }
.nx-chart-wrap .nx-chart { max-width: 960px; }
.nx-chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .nx-chart-scroll .nx-chart { min-width: 600px; }
  .nx-chart-scroll .nx-chart--bar { min-width: 430px; }
  .nx-compare th[scope="row"] { min-width: 150px; }
  .nx-compare td { white-space: nowrap; }
}

/* ---------- 2.5: Tuyển sinh, Công việc, Chấm công, Lương ---------- */
.nx-tabs a.is-active { background: var(--brand-600); border-color: var(--brand-600); color: var(--on-brand); }
.nx-count { display: inline-block; min-width: 1.5em; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 700; text-align: center; }
.nx-tabs a.is-active .nx-count { background: color-mix(in srgb, var(--on-brand) 22%, transparent); color: var(--on-brand); }
.nx-input--sm { min-height: 36px; padding: 4px 8px; font-size: .88rem; width: auto; }
.nx-text-warn { color: var(--warn); font-weight: 600; }
.nx-text-danger { color: var(--danger); font-weight: 600; }
.nx-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
fieldset.nx-plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.nx-table tfoot th { border-top: 2px solid var(--line-strong); text-align: left; }
.nx-table td small, .nx-table td .nx-text-warn { display: block; }
.nx-board { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
.nx-board__col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.nx-board__col h2 { font-size: .95rem; margin: 0 0 2px; display: flex; align-items: center; }
.nx-board__empty { margin: 4px 0; font-size: .88rem; }
.nx-task { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.nx-task.is-late { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.nx-task__title { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; }
.nx-task__title:hover { color: var(--brand-700); text-decoration: underline; }
.nx-task__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .82rem; }
.nx-task__move { margin: 0; }
.nx-task__move .nx-input--sm { width: 100%; }
@media (max-width: 900px) { .nx-board { grid-template-columns: 1fr; overflow: visible; } }

/* ---------- 2.6: Thông báo ---------- */
.nx-bell { position: relative; text-decoration: none; }
.nx-bell.is-active { background: var(--brand-50); }
.nx-bell__n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
.nx-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nx-notes a { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink-2); }
.nx-notes a:hover { border-color: var(--brand-500); background: var(--brand-50); }
.nx-notes b { color: var(--ink); }
.nx-notes span { font-size: .92rem; }
.nx-notes small { color: var(--muted); }
.nx-notes li.is-unread a { border-left: 4px solid var(--brand-600); background: color-mix(in srgb, var(--brand-50) 60%, var(--surface)); }
.nx-notes li.is-unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); margin-right: 8px; vertical-align: middle; }
.nx-check small { display: block; color: var(--muted); font-weight: 400; }

.nx-logo--img { background: none; padding: 0; border-radius: 50%; object-fit: cover; box-shadow: none; }
.nx-reports > li { display: block; padding: 12px 0; }
.nx-reports > li p { margin: 6px 0; }
.nx-reports form { margin-top: 6px; flex-wrap: wrap; }
.nx-reports .nx-input--sm { flex: 1 1 240px; }
.nx-fee { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.nx-fee p { margin: 4px 0; }
.nx-lessons { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.nx-lessons textarea { min-height: 64px; font-size: .9rem; }

/* Chế độ "Xem như nhân sự" (3.5.0) */
.nx-viewas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 12px; background: var(--warn-bg); color: var(--warn); border: 1px solid currentColor; font-size: .9rem; }
.nx-lesson-pick { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: .5rem; margin-bottom: .4rem; }

/* App trên điện thoại & Face ID (3.6.0) */
.nx-app-card { position: relative; }
.nx-app-card h2 { margin-top: 0; }
.nx-link-btn { position: absolute; top: .8rem; right: 1rem; background: none; border: 0; color: var(--muted, #8a83a0); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.nx-passkey-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.nx-auth__or { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--muted, #8a83a0); font-size: .85rem; }
.nx-auth__or::before, .nx-auth__or::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: .35; }
.nx-att__row { position: relative; }
.nx-att__note-btn { background: none; border: 1px dashed var(--line-strong, #ddd4ee); color: var(--muted); border-radius: 10px; min-width: 40px; min-height: 40px; font-size: 1rem; cursor: pointer; }
.nx-att__save { position: sticky; bottom: 0; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--surface) 70%, transparent); z-index: 5; margin-top: .5rem; }
.nx-ai { margin-top: .5rem; }
.nx-ai__out { margin-top: .6rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-strong); }
.nx-ai__text { white-space: pre-wrap; margin: .3rem 0 .6rem; color: var(--ink); }
