/* 客服聊天质检台 — 样式 */
:root {
  --primary: #0f766e; --primary-hover: #115e59; --primary-soft: #e6f4f2; --primary-ring: rgba(15, 118, 110, .25);
  --bg: #f4f6f8; --surface: #ffffff; --line: #e5e8ec; --line-strong: #d4d9df;
  --text: #1f2933; --text-2: #52606d; --text-3: #8a94a0;
  --r3: #dc2626; --r3-bg: #fef2f2; --r3-line: #fecaca;
  --r2: #ea580c; --r2-bg: #fff7ed; --r2-line: #fed7aa;
  --r1: #ca8a04; --r1-bg: #fefce8; --r1-line: #fde68a;
  --r0: #16a34a; --r0-bg: #f0fdf4; --r0-line: #bbf7d0;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
  --radius: 10px; --radius-sm: 8px;
  --sidebar: 216px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "PingFang SC", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 13px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; min-width: 1280px; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h2 { font-size: 18px; }
h3 { font-size: 14px; }
code { font-family: var(--mono); font-size: 12px; background: #f1f3f5; padding: 1px 5px; border-radius: 4px; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.inline { display: inline-flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- 登录 ---------- */
.login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #e9f3f2 0%, var(--bg) 60%); }
.login-card { width: 360px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 36px 32px; text-align: center; }
.login-logo { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.login-logo .icon { width: 26px; height: 26px; }
.login-card h1 { font-size: 20px; }
.login-card .field { text-align: left; margin: 20px 0 10px; }
.btn-block { width: 100%; justify-content: center; margin-top: 10px; }
.form-error { color: var(--r3); font-size: 12px; text-align: left; margin-bottom: 6px; }

/* ---------- 框架 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex: none; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; font-size: 15px; font-weight: 600; color: var(--primary); }
.brand .icon { width: 22px; height: 22px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s; }
.nav a:hover { background: #f1f3f5; color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav-badge { margin-left: auto; background: var(--r3); color: #fff; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; padding: 0 5px; }
.sidebar-foot { margin-top: auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.main { flex: 1; min-width: 0; padding: 22px 28px 40px; }
.page { display: none; }
.page.active { display: block; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; }
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.card-head h3 { flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3-1 { display: grid; grid-template-columns: 2.2fr 1fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 1.8fr 1fr; gap: 16px; align-items: start; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.sticky-side { position: sticky; top: 16px; }

/* ---------- 指标卡 ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi-label { color: var(--text-2); font-size: 12px; }
.kpi-value { font-size: 26px; font-weight: 600; margin: 4px 0 2px; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.kpi-warn .kpi-value { color: var(--r2); }
.kpi-sub { color: var(--text-3); font-size: 11.5px; min-height: 17px; }
.chart-box { position: relative; height: 240px; }
.chart-box-sm { height: 200px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- 按钮 / 表单 ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: #f6f8fa; border-color: #c3c9d0; }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: #eef1f4; border-color: transparent; }
.btn-danger-ghost { border-color: transparent; background: transparent; color: var(--r3); }
.btn-danger-ghost:hover { background: var(--r3-bg); border-color: transparent; }
.btn-danger { background: var(--r3); border-color: var(--r3); color: #fff; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn:focus-visible, .input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); border-color: var(--primary); }
.input { height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--text); min-width: 0; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
select.input { padding-right: 26px; appearance: none; 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='%2352606d' 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 8px center; }
textarea.input { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.55; width: 100%; }
input[type="date"].input { width: 138px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; color: var(--text-2); font-weight: 500; }
.field-wide { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-actions { display: flex; gap: 8px; margin-top: 14px; grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; }
.filters .input { height: 32px; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .icon { position: absolute; left: 9px; top: 8px; color: var(--text-3); }
.search .input { width: 100%; padding-left: 30px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 0 12px; height: 32px; font: inherit; color: var(--text-2); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: #f6f8fa; }
.seg button.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { border: 0; background: transparent; padding: 8px 14px; font: inherit; font-weight: 500; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-count { color: var(--text-3); font-weight: 400; }
.toggle { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #cfd5dc; border: 0; cursor: pointer; transition: background .15s; flex: none; padding: 0; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.toggle.on { background: var(--primary); }
.toggle.on::after { left: 16px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; font-weight: 500; color: var(--text-2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafbfc; }
.table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-hover tbody tr { cursor: pointer; }
.table-hover tbody tr:hover { background: #f6f8fa; }
.table td.wrap { white-space: normal; max-width: 360px; }
.link { color: var(--primary); cursor: pointer; font-weight: 500; }
.link:hover { text-decoration: underline; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 0; color: var(--text-2); font-size: 12px; }
.pager .inline button { min-width: 30px; justify-content: center; }
.pager .cur { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary); font-weight: 600; }
.batch-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 10px; background: var(--primary-soft); border-radius: var(--radius-sm); }

/* ---------- 徽章 / 语义色 ---------- */
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; border: 1px solid transparent; }
.badge-plat { background: #eef1f4; color: var(--text-2); }
.badge-plat[data-p="天猫"], .badge-plat[data-p="淘宝"] { background: #fff1f0; color: #c0392b; }
.badge-plat[data-p="京东"] { background: #fdeeee; color: #b91c1c; }
.badge-plat[data-p="拼多多"] { background: #fff4ec; color: #c2410c; }
.badge-plat[data-p="抖店"] { background: #ededf5; color: #3b3b6b; }
.badge-plat[data-p="企微"] { background: #e8f3ff; color: #1d4ed8; }
.sev-3, .risk-3 { background: var(--r3-bg); color: var(--r3); border-color: var(--r3-line); }
.sev-2, .risk-2 { background: var(--r2-bg); color: var(--r2); border-color: var(--r2-line); }
.sev-1, .risk-1 { background: var(--r1-bg); color: var(--r1); border-color: var(--r1-line); }
.sev-0, .risk-0 { background: var(--r0-bg); color: var(--r0); border-color: var(--r0-line); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot-3 { background: var(--r3); } .dot-2 { background: var(--r2); } .dot-1 { background: var(--r1); } .dot-0 { background: var(--r0); }
.tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; background: #f1f3f5; color: var(--text-2); margin-right: 4px; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.status-open { color: var(--r2); } .status-confirmed { color: #1d4ed8; } .status-false_positive { color: var(--text-3); } .status-resolved { color: var(--r0); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: #f1f3f5; padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--text-2); }
.ordered-yes { color: var(--r0); font-weight: 500; }
.ordered-no { color: var(--text-3); }
.slow { color: var(--r2); font-weight: 500; }

/* ---------- 空状态 ---------- */
.empty { padding: 48px 20px; text-align: center; color: var(--text-2); }
.empty .icon { width: 36px; height: 36px; color: var(--text-3); stroke-width: 1.5; margin-bottom: 10px; }
.empty b { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- 规则 ---------- */
.rule-group { margin-bottom: 14px; }
.rule-group-head { display: flex; align-items: center; gap: 10px; padding: 0 0 8px; }
.rule-group-head h3 { font-size: 13.5px; }
.rule { display: grid; grid-template-columns: 40px 1fr 110px 110px 90px auto; gap: 10px; align-items: start; padding: 12px 14px; border-top: 1px solid var(--line); }
.rule:first-of-type { border-top: 0; }
.rule.disabled .rule-main { opacity: .55; }
.rule-main { min-width: 0; }
.rule-name { font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rule-name .tag { font-weight: 400; }
.rule-main .input { width: 100%; font-family: var(--mono); font-size: 12px; }
.rule-hint { color: var(--text-3); font-size: 11.5px; margin-top: 4px; }
.rule-hint input { width: 100%; border: 0; border-bottom: 1px dashed transparent; background: transparent; font: inherit; color: inherit; padding: 0; }
.rule-hint input:hover, .rule-hint input:focus { border-bottom-color: var(--line-strong); outline: none; }
.rule .input-sm { height: 28px; font-size: 12px; width: 100%; }
.rule-actions { display: flex; gap: 4px; align-items: center; height: 28px; }
.rule-col-label { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.rule.dirty { background: #fffbeb; }
.rt-result { margin-top: 12px; }
.rt-hit { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); margin-bottom: 6px; border: 1px solid; }
.rt-none { color: var(--r0); display: flex; align-items: center; gap: 6px; }

/* ---------- 导入 ---------- */
.dropzone { display: flex; align-items: center; gap: 14px; padding: 24px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer; transition: border-color .12s, background .12s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .icon { width: 30px; height: 30px; color: var(--primary); stroke-width: 1.5; }
.preview { margin-top: 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-2); }
.preview table { margin-top: 6px; }
.preview td { padding: 2px 8px 2px 0; vertical-align: top; }
.tips { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 12px; }
.tips li { margin-bottom: 4px; }
.result-ok { color: var(--r0); }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.result-grid div { background: #f8fafc; border-radius: 6px; padding: 8px; text-align: center; }
.result-grid b { display: block; font-size: 18px; }

/* ---------- 设置 ---------- */
.token-row { display: flex; align-items: center; gap: 8px; }
#st-webhook { display: flex; }
.sync-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px 12px; background: #fafbfc; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 12px; }
.sync-status .m-label { color: var(--text-3); font-size: 11px; }
.sync-status .m-value { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.sync-error { padding: 8px 12px; margin-bottom: 12px; background: var(--r3-bg); border: 1px solid var(--r3-line); border-radius: var(--radius-sm); color: var(--r3); font-size: 12px; word-break: break-all; }
.fs-table { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.fs-ok { color: var(--r0); } .fs-bad { color: var(--r3); }
.token { flex: 1; font-size: 13px; padding: 7px 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius-sm); letter-spacing: .3px; overflow: hidden; text-overflow: ellipsis; }
.steps { padding-left: 20px; color: var(--text-2); margin: 14px 0; }
.steps li { margin-bottom: 8px; line-height: 1.6; }
.note { display: flex; gap: 10px; padding: 10px 12px; background: var(--r1-bg); border: 1px solid var(--r1-line); border-radius: var(--radius-sm); color: #854d0e; font-size: 12px; }
.note .icon { color: var(--r1); margin-top: 1px; }

/* ---------- 抽屉 ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(16, 24, 40, .35); z-index: 40; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 640px; background: var(--surface); z-index: 41; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s ease; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.drawer-meta { padding: 12px 18px; background: #fafbfc; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 14px; font-size: 12px; }
.drawer-meta .m-label { color: var(--text-3); font-size: 11px; }
.drawer-meta .m-value { font-weight: 500; }
.drawer-meta .m-wide { grid-column: 1 / -1; }
.drawer-alerts { border-bottom: 1px solid var(--line); max-height: 220px; overflow: auto; }
.drawer-alerts:empty { display: none; }
.dr-alert { display: flex; align-items: flex-start; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.dr-alert:last-child { border-bottom: 0; }
.dr-alert .snippet { color: var(--text-2); cursor: pointer; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-alert .snippet:hover { color: var(--primary); }
.dr-alert .acts { display: flex; gap: 3px; flex: none; }
.dr-alert .acts .btn-xs.on { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary); }
.drawer-body { flex: 1; overflow: auto; padding: 16px 18px; background: #f7f8fa; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; max-width: 76%; }
.msg-customer { align-self: flex-start; }
.msg-agent { align-self: flex-end; align-items: flex-end; }
.msg-system { align-self: center; max-width: 90%; }
.msg-meta { font-size: 11px; color: var(--text-3); margin-bottom: 3px; }
.bubble { padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; background: var(--surface); border: 1px solid var(--line); }
.msg-customer .bubble { border-top-left-radius: 4px; }
.msg-agent .bubble { background: var(--primary-soft); border-color: #cde7e3; border-top-right-radius: 4px; }
.msg-system .bubble { background: transparent; border: 0; color: var(--text-3); font-size: 11.5px; text-align: center; padding: 2px 8px; }
.msg.flag-3 .bubble { background: var(--r3-bg); border-color: var(--r3-line); }
.msg.flag-2 .bubble { background: var(--r2-bg); border-color: var(--r2-line); }
.msg.flag-1 .bubble { background: var(--r1-bg); border-color: var(--r1-line); }
.msg-tags { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.msg.focus .bubble { box-shadow: 0 0 0 3px var(--primary-ring); animation: pulse 1.2s ease 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--primary-ring); } }
.wait-mark { font-size: 11px; color: var(--r2); margin-left: 6px; }

/* ---------- 弹窗 / toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(16, 24, 40, .4); z-index: 60; display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.modal-card { width: 420px; background: var(--surface); border-radius: 12px; padding: 22px 24px; box-shadow: var(--shadow-lg); }
.modal-body { margin: 10px 0 4px; color: var(--text-2); }
.modal-body .input { width: 100%; margin-top: 8px; }
.toasts { position: fixed; top: 16px; right: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #1f2933; color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 13px; max-width: 420px; display: flex; align-items: center; gap: 8px; animation: fade .15s; }
.toast-ok { border-left: 3px solid #22c55e; }
.toast-err { border-left: 3px solid #ef4444; }
.toast-info { border-left: 3px solid #38bdf8; }

/* 加载中 */
.loading { position: relative; pointer-events: none; opacity: .6; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
