/* Modern theme layer: loaded after style.css and only restyles (same class names). */
:root {
  --bg: #f3f5fb; --panel: #ffffff; --text: #141a2e; --muted: #687089; --line: #e4e8f2;
  --accent: #5b5bf6; --accent-2: #8b5cf6; --accent-soft: #eef0ff; --ok: #12a46b; --warn: #e08a00; --bad: #e5484d;
  --side: #0c1124; --side-2: #151c3a; --side-text: #aeb7d6;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --shadow-sm: 0 1px 2px rgba(20, 26, 46, .04), 0 1px 3px rgba(20, 26, 46, .06);
  --shadow: 0 2px 6px rgba(20, 26, 46, .04), 0 8px 24px rgba(20, 26, 46, .07);
  --shadow-lg: 0 12px 40px rgba(20, 26, 46, .16);
  --radius: 16px;
  --ring: 0 0 0 4px rgba(91, 91, 246, .16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0e1a; --panel: #121829; --text: #e8ecf8; --muted: #8e98b5; --line: #222b44;
    --accent: #7c7cff; --accent-2: #a78bfa; --accent-soft: #1d2142; --side: #070a14; --side-2: #0e1428; --side-text: #a3acc9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 16px 48px rgba(0, 0, 0, .5);
    --ring: 0 0 0 4px rgba(124, 124, 255, .22);
  }
}

body {
  font: 15px/1.55 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Tahoma, sans-serif;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(139, 92, 246, .10), transparent 60%),
    radial-gradient(900px 500px at 20% 0%, rgba(91, 91, 246, .08), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(91, 91, 246, .22); }
* { scrollbar-width: thin; scrollbar-color: rgba(128, 138, 170, .35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(128, 138, 170, .35); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- sidebar ---------- */
.sidebar {
  width: 248px; padding: 20px 14px; overflow-y: auto;
  background: linear-gradient(180deg, var(--side-2) 0%, var(--side) 100%);
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.brand { padding: 2px 8px 22px; gap: 12px; }
.brand strong { font-size: 16px; letter-spacing: -.01em; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); box-shadow: 0 6px 18px rgba(91, 91, 246, .45); font-size: 19px; }
.nav-group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(174, 183, 214, .55); padding: 14px 12px 6px; }
.nav-group:first-of-type { padding-top: 0; }
.sidebar a {
  align-items: center; padding: 9px 12px; border-radius: 10px; margin-bottom: 2px; font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s, transform .15s;
}
.sidebar a .nav-label { display: flex; align-items: center; gap: 11px; }
.nav-ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.sidebar a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sidebar a.active { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(91, 91, 246, .35); }
.sidebar a.active .nav-ico { opacity: 1; }
.sidebar .badge { background: #ff5d6c; box-shadow: 0 0 0 3px rgba(255, 93, 108, .18); font-weight: 600; }
.sidebar-user { border-top: 1px solid rgba(255, 255, 255, .07); padding: 14px 12px 6px; }
.sidebar-user b { font-size: 14px; }
.status-pick select { border-radius: 8px; }

/* ---------- layout & type ---------- */
main { padding: 32px 40px 48px; max-width: 1240px; min-width: 0; }  /* min-width: wide tables scroll inside their card */
h1 { font-size: 28px; font-weight: 750; letter-spacing: -.025em; margin-bottom: 20px; }
h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-weight: 650; }
.page.active { animation: page-in .28s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page > .muted:first-of-type, .page > p.muted { margin-top: -8px; }

/* ---------- cards ---------- */
.card, .kpi, .wb-tile, .modal-box, .login-box {
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card { padding: 20px 22px; margin-bottom: 18px; }
.card:hover { box-shadow: var(--shadow); }
.card, .kpi, .wb-tile { transition: box-shadow .2s, transform .2s, border-color .2s; }
.stats { gap: 18px; }
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--grad); opacity: .08;
}
.stat:hover, .kpi:hover, .wb-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat .num, .kpi .num, .wb-tile .num { font-weight: 750; letter-spacing: -.03em; }
.stat .num { font-size: 34px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi { padding: 16px 18px; }
.kpi.hero, .wb-tile.good { position: relative; }
.kpi.hero { background: var(--grad); border: 0; box-shadow: 0 10px 30px rgba(91, 91, 246, .35); }
.agent-card { background: linear-gradient(135deg, var(--panel) 60%, var(--accent-soft)); }
.agent-state { font-size: 22px; letter-spacing: -.01em; }
.dot.online { box-shadow: 0 0 0 4px rgba(18, 164, 107, .18); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(18, 164, 107, .06); } }

/* ---------- buttons ---------- */
.btn {
  border-radius: 10px; padding: 8px 16px; font-weight: 550; background: var(--panel);
  box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s, border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: var(--grad); border-color: transparent; box-shadow: 0 6px 18px rgba(91, 91, 246, .32); }
.btn.primary:hover { box-shadow: 0 10px 26px rgba(91, 91, 246, .42); filter: brightness(1.05); }
.btn.danger { background: linear-gradient(135deg, #e5484d, #f06b5a); border-color: transparent; }
.btn.danger-outline { border-color: rgba(229, 72, 77, .35); }
.btn.danger-outline:hover { background: rgba(229, 72, 77, .07); border-color: var(--bad); }
.btn.small { border-radius: 8px; padding: 5px 11px; }
.btn:disabled { transform: none; box-shadow: none; }

/* ---------- forms ---------- */
label { font-weight: 500; }
input, select, textarea {
  border-radius: 10px; background: var(--panel); border-color: var(--line); padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: rgba(91, 91, 246, .4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23687089' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.status-pick select { background-image: none; padding-right: 8px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
.mode { border-radius: 12px; transition: border-color .15s, background .15s, box-shadow .15s; }
.mode:has(input:checked) { box-shadow: var(--ring); }
details summary { font-weight: 550; }
.save-bar { background: linear-gradient(180deg, transparent, var(--bg) 35%); padding: 18px 0 14px; }
.slider { background: #cfd5e4; }
.switch input:checked + .slider { background: var(--grad); }

/* ---------- tables ---------- */
.table-card { border-radius: var(--radius); }
th { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; background: transparent; }
th, td { padding: 12px 16px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(91, 91, 246, .04); }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- pills, badges, boxes ---------- */
.pill { padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 11.5px; letter-spacing: .01em; }
.rules-box { border-radius: 12px; border: 1px solid rgba(91, 91, 246, .18); background: linear-gradient(135deg, var(--accent-soft), rgba(139, 92, 246, .06)); }
#ai-cap-warning { border-color: rgba(224, 138, 0, .35); background: linear-gradient(135deg, #fff6e5, #fff1e0); color: #7a4b00; }
@media (prefers-color-scheme: dark) { #ai-cap-warning { background: #2a210f; color: #ffcf7a; } }
.dropzone { border-radius: 14px; transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.log { border-radius: 12px; }

/* ---------- conversation bubbles ---------- */
.msg, .cmsg { border-radius: 16px; box-shadow: var(--shadow-sm); }
.msg.agent, .cmsg.ai { background: var(--accent-soft); border-bottom-left-radius: 6px; }
.cmsg.ai, .cmsg.agent { border-bottom-right-radius: 6px; border-bottom-left-radius: 16px; }
.cmsg.agent { background: linear-gradient(135deg, #dff7ec, #e9fbf2); }
.cmsg.customer, .msg.caller { border-bottom-left-radius: 6px; }
.msg.caller { border-bottom-right-radius: 6px; border-bottom-left-radius: 16px; }
.cmsg.system { box-shadow: none; }
.chat-item { border-radius: 12px; border-bottom: 0; margin-bottom: 2px; transition: background .12s; }
.chat-item.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.chat-view { border-radius: var(--radius); }
.chat-msgs { background: linear-gradient(180deg, var(--bg), var(--panel)); }

/* ---------- live call visual ---------- */
.call-icon { background: var(--grad); box-shadow: 0 10px 30px rgba(91, 91, 246, .4); }
.call-visual.listening .call-icon { background: linear-gradient(135deg, #12a46b, #34d399); box-shadow: 0 10px 30px rgba(18, 164, 107, .35); }
.call-visual.thinking .call-icon { background: linear-gradient(135deg, #e08a00, #fbbf24); }
.ring { border-color: var(--accent-2); }
.keypad button { border-radius: 12px; transition: background .12s, transform .08s; }
.keypad button:hover { background: var(--accent-soft); }
.keypad button:active { transform: scale(.95); }

/* ---------- workforce & charts ---------- */
.shift-chip { background: linear-gradient(135deg, var(--accent-soft), rgba(139, 92, 246, .12)); font-weight: 550; }
.bar .ai, .sw.ai, .hbar .fill { background: var(--grad); }
.abar > span { background: linear-gradient(90deg, #12a46b, #34d399); }
.hbar .track, .progress, .abar { border-radius: 999px; }
.progress span { background: linear-gradient(90deg, #12a46b, #34d399); }

/* ---------- overlays ---------- */
.toast {
  background: rgba(20, 26, 46, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 20px; font-weight: 500;
  animation: toast-in .25s ease both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.modal { background: rgba(10, 14, 26, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box { box-shadow: var(--shadow-lg); border-radius: 20px; padding: 24px; animation: page-in .2s ease both; }
.ringer { border-radius: 18px; box-shadow: var(--shadow-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- sign-in ---------- */
.login-screen {
  background:
    radial-gradient(700px 400px at 15% 10%, rgba(91, 91, 246, .35), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(139, 92, 246, .30), transparent 60%),
    linear-gradient(160deg, #0c1124, #151c3a);
}
.login-box { border: 1px solid rgba(255, 255, 255, .5); border-radius: 22px; padding: 34px 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); background: var(--panel); }
.big-logo { width: 56px; height: 56px; border-radius: 16px; }
.login-box .btn.primary { width: 100%; padding: 11px; font-size: 15px; }

@media (max-width: 800px) {
  .sidebar { width: 100%; padding: 10px; }
  .nav-group { display: none; }
  main { padding: 18px 16px 32px; }
  h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- AI features ---------- */
.ai-hero { background: linear-gradient(135deg, var(--panel) 40%, var(--accent-soft)); border-color: rgba(91, 91, 246, .25); }
.ai-box { background: linear-gradient(135deg, var(--accent-soft), rgba(139, 92, 246, .08)); border: 1px dashed rgba(91, 91, 246, .35); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.ins-examples { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.ai-answer { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border-left: 4px solid var(--accent); white-space: pre-wrap; box-shadow: var(--shadow-sm); }
.brief-head { font-size: 17px; font-weight: 650; margin: 4px 0 12px; }
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.brief-col { border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); }
.brief-col h3 { margin: 0 0 6px; }
.brief-col ul { margin: 0; padding-left: 18px; font-size: 14px; }
.brief-col.good { background: rgba(18, 164, 107, .06); } .brief-col.bad { background: rgba(229, 72, 77, .06); } .brief-col.act { background: var(--accent-soft); }
.topic-row { grid-template-columns: 170px 1fr 40px 260px; }
.chat-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 10px 0; border-top: 1px solid var(--line); }
.chat-tools + .chat-reply { border-top: 0; }
.cmsg .tr { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .brief-grid { grid-template-columns: 1fr; } .topic-row { grid-template-columns: 120px 1fr 32px; } .topic-row > :last-child { grid-column: 1 / -1; } }
.warn-box { border-color: rgba(229, 72, 77, .35); background: linear-gradient(135deg, #fdecec, #fff3f0); color: #7a1f22; }
@media (prefers-color-scheme: dark) { .warn-box { background: #2c1416; color: #ffb3b5; } }

/* ---------- knowledge base ---------- */
.kb-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--muted); box-shadow: var(--shadow-sm); }
.kb-stat b { color: var(--text); font-size: 15px; margin-right: 2px; }
.kb-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 18px; }
.kb-tab { border: 0; background: none; font: inherit; font-weight: 550; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 10px 10px 0 0; display: inline-flex; gap: 6px; align-items: center; }
.kb-tab:hover { color: var(--text); background: var(--accent-soft); }
.kb-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.kb-count { font-size: 11px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 0 7px; }
.kb-count:empty { display: none; }
.kb-add { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.kb-add-card { margin: 0; display: flex; flex-direction: column; gap: 4px; justify-content: center; text-align: left; padding: 18px 20px; min-height: 150px; }
.kb-add-ico { font-size: 26px; }
.kb-web-form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.kb-web-form input, .kb-web-form select { margin: 0; }
.kb-web-form .inline-form select { width: auto; flex: 1; }
.kb-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.kb-toolbar input[type=search] { flex: 1; min-width: 220px; margin: 0; padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687089' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; }
.kb-toolbar select { width: auto; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: none; font: inherit; font-size: 14px; padding: 8px 14px; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.active { background: var(--grad); color: #fff; }
.kb-bulk { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px;
  background: linear-gradient(135deg, #fff1f1, #fff6f2); border: 1px solid rgba(229, 72, 77, .25); font-weight: 550; }
@media (prefers-color-scheme: dark) { .kb-bulk { background: #2c1416; } }
.kb-list-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.src-row { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 10px; transition: background .12s; }
.src-row:hover { background: rgba(91, 91, 246, .04); }
.src-row.selected { background: var(--accent-soft); }
.src-row input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; }
.src-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; background: var(--accent-soft); }
.src-ico.file { background: rgba(224, 138, 0, .12); }
.src-main { flex: 1; min-width: 0; }
.src-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.src-actions { display: flex; gap: 6px; flex: none; }
.site-pages { margin: 4px 0 12px 58px; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 12px 12px 0; }
.sp-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sp-tools input { flex: 1; min-width: 200px; margin: 0; }
#sp-list { max-height: 360px; overflow-y: auto; }
.sp-row { display: flex; gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.sp-row input { width: 16px; height: 16px; margin: 0; flex: none; }
.sp-path { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-size { flex: none; font-size: 12px; }
#sp-more { margin-top: 8px; }
@media (max-width: 800px) {
  .kb-add { grid-template-columns: 1fr; }
  .site-pages { margin-left: 0; }
  .src-actions .btn { padding: 5px 8px; }
}
.act-form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 6px; }
.act-out .ai-answer { margin-top: 8px; font-size: 13.5px; word-break: break-word; }
/* ---------- AI agents ---------- */
.prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 18px; }
.prof-card { margin: 0; }
.prof-card.off { opacity: .6; }
.prof-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.prof-avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; box-shadow: 0 6px 18px rgba(91, 91, 246, .3); }
.prof-meta { font-size: 13px; color: var(--muted); margin: 3px 0; }
.prof-role { font-size: 13px; margin-top: 8px; padding: 8px 10px; background: var(--bg); border-radius: 10px; }

/* ---------- feedback & satisfaction ---------- */
.fb-q { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fb-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.fb-avg { font-size: 20px; font-weight: 750; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fb-dist { display: flex; gap: 8px; align-items: flex-end; height: 70px; margin: 18px 0 18px; }
.fb-bar { position: relative; width: 34px; height: 100%; display: flex; align-items: flex-end; }
.fb-bar span { display: block; width: 100%; background: var(--grad); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.fb-bar small { position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); }
.fb-bar em { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-size: 11px; font-style: normal; }
.fb-ans { font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.csat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.csat-block { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.csat-num { font-size: 34px; font-weight: 750; }
.csat-num small { font-size: 15px; color: var(--muted); font-weight: 500; }
.csat-stars { color: #f5a524; letter-spacing: 2px; }

/* ---------- test lab ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 18px; }
.lab-card { margin: 0; border-left: 4px solid var(--line); }
.lab-card.ok { border-left-color: var(--ok); }
.lab-card.bad { border-left-color: var(--bad); }
.lab-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.lab-txt { font-size: 13px; margin: 3px 0; }
.ver-diff { font-size: 13px; margin: 6px 0; }
.ver-old { background: rgba(229, 72, 77, .08); border-radius: 8px; padding: 4px 8px; margin: 2px 0; white-space: pre-wrap; text-decoration: line-through; opacity: .8; }
.ver-new { background: rgba(18, 164, 107, .08); border-radius: 8px; padding: 4px 8px; margin: 2px 0; white-space: pre-wrap; }
