:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #f3f4f6;
  --line: #e6e8eb;
  --line-2: #eef0f2;
  --text: #1d2129;
  --muted: #6b7280;
  --blue: #1b74e4;
  --blue-2: #0f62cc;
  --blue-soft: #e8f1fd;
  --green: #22a75c;
  --red: #e5383b;
  --yellow: #f5b70a;
  --radius: 10px;
  font-family: Inter, -apple-system, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 14px; }
p, li, label, .help, td, .card-desc, .muted, .bn-text, .msg .txt { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
h1 { font-size: 22px; font-weight: 600; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
h3 { font-size: 15px; font-weight: 600; }
a { color: var(--blue); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.help { color: var(--muted); font-size: 12px; font-weight: 400; }
.error { color: var(--red); margin: 0; }
.error:empty { display: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.brand-z { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #111; color: #fff; font-size: 14px; }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.06); }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 188px 1fr; height: 100%; }
.sidebar { background: #fafafa; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.sidebar .brand { padding: 4px 8px 6px; }
.account { display: flex; align-items: center; gap: 9px; padding: 10px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -10px; padding-left: 18px; }
.acc-av { position: relative; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #5b5bf7, #9b4dff); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.acc-av em { position: absolute; bottom: -4px; left: -2px; background: var(--blue); color: #fff; font-size: 8px; font-style: normal; font-weight: 800; padding: 0 3px; border-radius: 3px; }
.acc-name { font-size: 12.5px; font-weight: 600; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a, .side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #3a3f47; font-weight: 500; font-size: 13.5px; background: none; border: 0; font: inherit; cursor: pointer; width: 100%; text-align: left; }
.sidebar nav a:hover, .side-link:hover { background: #efefef; }
.sidebar nav a.active { background: #e9e9ea; color: #111; }
.sidebar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.side-bottom { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.badge { margin-left: auto; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }

.view { overflow: auto; min-height: 0; }
.page-head { position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; }
.page { padding: 24px 32px; }
.page.narrow { max-width: 1000px; margin: 0 auto; }

/* ---------- controles ---------- */
.btn, .mbtn { border: 1px solid #d5d9de; background: #fff; color: var(--text); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn:hover, .mbtn:hover { background: #f6f7f8; }
.btn.primary, .mbtn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover, .mbtn.primary:hover { background: var(--blue-2); }
.mbtn:disabled { opacity: .55; cursor: default; }
.btn.danger, .mbtn.danger { color: var(--red); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small, .mbtn.small { padding: 5px 10px; font-size: 12px; }
input, textarea, select { width: 100%; background: #fff; border: 1px solid #d5d9de; color: var(--text); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; }
textarea { resize: vertical; line-height: 1.45; min-height: 60px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
label { display: grid; gap: 5px; font-weight: 500; font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-sb { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: auto; accent-color: var(--blue); }
.sw { position: relative; display: inline-block; width: 38px; height: 22px; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: #cfd4da; border-radius: 99px; transition: .15s; cursor: pointer; }
.sw span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw input:checked + span { background: var(--green); }
.sw input:checked + span::after { transform: translateX(16px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cards { display: grid; gap: 10px; }
.chip { display: inline-flex; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); font-size: 12px; color: var(--muted); }
.chip.kw { background: #eef2ff; color: #4f46e5; }
.chip.green { background: #e7f6ee; color: #18804a; }
.chip.yellow { background: #fff6dc; color: #946c00; }
.chip.red { background: #fde8e8; color: #b42323; }
.chip.blue { background: var(--blue-soft); color: var(--blue-2); }
.live { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .03em; }
.draft { background: #e5e7eb; color: #555; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c4c9cf; display: inline-block; }
.dot.on { background: var(--green); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; display: grid; gap: 12px; background: #fff; }
legend { padding: 0 6px; font-weight: 600; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 32px; background: var(--bg); }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--text); border-color: var(--blue); }

/* ---------- tabelas estilo lista ---------- */
.tbl { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl-head, .tbl-row { display: grid; align-items: center; gap: 12px; padding: 0 20px; }
.tbl-head { height: 44px; font-size: 12px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.tbl-row { min-height: 64px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.tbl-row:hover { background: #fafbfc; }
.tbl-row:last-child { border-bottom: 0; }
.auto-cols { grid-template-columns: 1fr 110px 90px 130px; }
.auto-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.auto-trig { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auto-trig b { color: #4b5563; font-weight: 600; }
.num { font-weight: 600; text-align: right; }
.num small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.ig-ico { flex: none; width: 15px; height: 15px; border-radius: 4px; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); display: inline-block; position: relative; }
.ig-ico::after { content: ''; position: absolute; inset: 4px; border: 1.5px solid #fff; border-radius: 50%; }
.contact-cols { grid-template-columns: 28px 44px 1fr 160px 140px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #e3e7ee; object-fit: cover; display: grid; place-items: center; color: #8a94a3; font-weight: 700; }
.subnav { display: grid; gap: 2px; align-content: start; }
.subnav a { padding: 8px 12px; border-radius: 8px; color: #3a3f47; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.subnav a.active, .subnav a:hover { background: #ebedf0; }
.auto-layout { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 24px 32px; align-items: start; }

/* ---------- inicial ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 18px 0 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi span { color: var(--muted); font-size: 12.5px; }
.kpi b { display: block; font-size: 26px; margin-top: 6px; letter-spacing: -0.02em; }
.hello { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }

/* ---------- caixa de entrada ---------- */
.inbox { display: grid; grid-template-columns: 320px 1fr 300px; height: 100vh; background: #fff; }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inbox-tools { padding: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.filters button.active { color: var(--blue-2); border-color: var(--blue); background: var(--blue-soft); }
.contacts { overflow: auto; flex: 1; }
.contact { padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; display: grid; grid-template-columns: 38px 1fr; gap: 10px; }
.contact:hover, .contact.active { background: #f4f7fb; }
.contact .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.contact .last { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact .flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.thread { display: flex; flex-direction: column; min-height: 0; background: #fafbfc; }
.thread-head { padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.thread-msgs { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.thread-input { border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 10px; background: #fff; }
.thread-input textarea { min-height: 44px; height: 44px; }
.info { border-left: 1px solid var(--line); padding: 20px; overflow: auto; display: grid; gap: 14px; align-content: start; }
.info .avatar { width: 64px; height: 64px; font-size: 22px; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.empty { display: grid; place-items: center; height: 100%; color: var(--muted); padding: 24px; text-align: center; }
.msg { max-width: min(480px, 78%); padding: 9px 13px; border-radius: 18px; line-height: 1.45; word-break: break-word; font-size: 13.5px; }
.msg .txt { white-space: pre-wrap; }
.msg.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.out.flow { background: #5865f2; }
.msg.out.human { background: #1f9d55; }
.msg.system { align-self: center; background: #fff6dc; color: #7a5a00; font-size: 12px; border-radius: 8px; }
.msg .who { display: block; font-size: 10px; opacity: .75; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .05em; }
.msg .time { display: block; font-size: 10px; opacity: .65; margin-top: 4px; }
.msg-btns { display: grid; gap: 6px; margin-top: 8px; }
.msg-btns button, .msg-btns a { background: rgba(255,255,255,.18); color: inherit; border: 0; border-radius: 9px; padding: 8px; font: inherit; font-weight: 600; cursor: pointer; text-align: center; }
.msg.in .msg-btns button, .msg.in .msg-btns a { background: var(--panel-2); }

/* ---------- simulador ---------- */
.sim { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.phone { background: #fff; border: 1px solid var(--line); border-radius: 22px; height: calc(100vh - 170px); min-height: 480px; display: flex; flex-direction: column; overflow: hidden; }
.phone-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.35); display: grid; place-items: start center; padding: 40px 16px; overflow: auto; z-index: 30; }
.modal-card { width: 100%; max-width: 760px; background: #fff; border-radius: 14px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-actions { display: flex; justify-content: space-between; gap: 10px; }
.fu-row { display: grid; grid-template-columns: 110px 130px 1fr auto; gap: 8px; align-items: start; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1d2129; color: #fff; padding: 11px 16px; border-radius: 10px; z-index: 40; max-width: 420px; font-weight: 500; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
.copy { display: flex; gap: 8px; }

/* =========================================================== CONSTRUTOR */
.builder { display: flex; flex-direction: column; height: 100vh; }
.b-top { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); background: #fff; gap: 12px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; }
.crumbs a { color: var(--muted); }
.crumbs input { border: 1px solid transparent; font-weight: 600; font-size: 15px; padding: 4px 6px; width: 340px; max-width: 40vw; }
.crumbs input:hover { border-color: var(--line); }
.b-body { flex: 1; display: grid; grid-template-columns: 300px 1fr auto; min-height: 0; }
.b-metrics { border-right: 1px solid var(--line); background: #fff; padding: 20px; overflow: auto; display: grid; gap: 14px; align-content: start; }
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 4px; }
.mcard span { color: var(--muted); font-size: 12px; }
.mcard b { font-size: 22px; }
.mcard small { color: var(--muted); }
.b-wrap { position: relative; overflow: hidden; background-color: #f2f3f5; background-image: radial-gradient(#cfd3d8 1px, transparent 1px); cursor: grab; touch-action: none; }
.b-wrap.panning { cursor: grabbing; }
.b-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.bedges { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.edge { fill: none; stroke: #9aa3ae; stroke-width: 2; }
.edge.yes { stroke: #2bb673; } .edge.no { stroke: #ef5350; } .edge.link { stroke: #f0b429; } .edge.temp { stroke: var(--blue); stroke-dasharray: 6 5; }
.bnode { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 4px 14px rgba(0,0,0,.05); border: 2px solid transparent; cursor: pointer; user-select: none; padding-bottom: 6px; }
.bnode.sel { border-color: var(--blue); }
.port-in { position: absolute; left: -6px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #9aa3ae; }
.port { position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #8b95a1; cursor: crosshair; z-index: 2; }
.port:hover { background: var(--blue); border-color: var(--blue); }
.port.yes { border-color: #2bb673; } .port.no { border-color: #ef5350; }
.bn-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.bn-head small { display: block; color: var(--muted); font-size: 10.5px; }
.bn-head b { font-size: 14px; }
.bn-head em { color: var(--muted); font-style: normal; font-weight: 500; font-size: 11px; }
.bn-head.trig, .bn-head.cond, .bn-head.delay, .bn-head.act { border-radius: 14px 14px 0 0; margin-bottom: 6px; padding: 10px 14px; }
.bn-head.trig { background: transparent; }
.bn-head.cond { background: #c9f1ec; }
.bn-head.delay { background: #ffd9d6; }
.bn-head.act { background: #ffe9a8; }
.bn-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 10.5px; color: var(--muted); padding: 0 14px 8px; }
.bn-stats b { display: block; color: var(--blue); font-size: 13px; }
.bn-msg { position: relative; margin: 6px 12px; background: #f0f2f5; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.bn-msg.media { color: #444; }
.bn-text { white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow: hidden; }
.var { background: var(--blue); color: #fff; border-radius: 4px; padding: 0 4px; font-size: 11px; }
.bn-btn { position: relative; margin-top: 8px; background: #fff; border-radius: 8px; padding: 8px 10px; text-align: center; font-weight: 600; font-size: 12.5px; }
.bn-btn .lnk { font-size: 11px; }
.bn-wait { margin: 6px 12px; background: #eef2ff; color: #4f46e5; border-radius: 10px; padding: 7px 10px; font-size: 12px; text-align: center; }
.bn-row { position: relative; margin: 6px 12px; padding: 9px 12px; background: #f6f7f9; border-radius: 10px; font-size: 12.5px; }
.bn-row.muted { color: var(--muted); }
.bn-trigger { margin: 0 12px 8px; background: #dcf5e3; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; }
.bn-empty { margin: 6px 12px; color: var(--muted); font-size: 12px; }
.bn-foot { position: relative; text-align: right; color: var(--muted); font-size: 12px; padding: 8px 22px 4px 12px; }
.b-zoom { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: grid; gap: 6px; text-align: center; }
.b-zoom button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; }
.b-zoom span { font-size: 11px; color: var(--muted); }
.b-add { position: absolute; left: 16px; bottom: 16px; }
.b-side { width: 380px; border-left: 1px solid var(--line); background: #fff; overflow: auto; padding: 18px; display: grid; gap: 12px; align-content: start; }
.bs-head { display: flex; justify-content: space-between; align-items: center; }
.bs-head .x { border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--muted); }
.bs-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: #fafbfc; }
.bs-btn { border: 1px dashed #cdd3da; border-radius: 10px; padding: 10px; display: grid; gap: 6px; background: #fff; }
.ib { border: 0; background: none; cursor: pointer; padding: 2px 6px; color: var(--muted); }
.add-row { gap: 6px; }
.bmenu { position: fixed; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.15); padding: 6px; display: grid; min-width: 240px; }
.bmenu button { border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 8px; font: inherit; cursor: pointer; }
.bmenu button:hover { background: var(--panel-2); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
  .account, .side-bottom { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; width: 100%; }
  .sidebar nav a { white-space: nowrap; }
  .page, .auto-layout { padding: 16px; }
  .page-head { padding: 12px 16px; }
  .auto-layout { grid-template-columns: 1fr; }
  .auto-cols { grid-template-columns: 1fr 70px; }
  .auto-cols > :nth-child(3), .auto-cols > :nth-child(4) { display: none; }
  .contact-cols { grid-template-columns: 44px 1fr 90px; }
  .contact-cols > :nth-child(1), .contact-cols > :nth-child(5) { display: none; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .info { display: none; }
  .inbox.has-thread .inbox-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .thread { height: calc(100vh - 110px); }
  .sim, .grid2 { grid-template-columns: 1fr; }
  .b-body { grid-template-columns: 1fr; }
  .b-metrics { display: none; }
  .b-side { position: fixed; inset: auto 0 0 0; width: auto; max-height: 70vh; z-index: 20; box-shadow: 0 -10px 30px rgba(0,0,0,.15); }
}

/* telas antigas dentro de abas */
.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.view-head h1 { font-size: 18px; }
.auto-card { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; cursor: pointer; }
.auto-card .title { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.auto-card .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.auto-stats { display: flex; gap: 18px; color: var(--muted); font-size: 12px; text-align: right; }
.auto-stats b { display: block; color: var(--text); font-size: 15px; }
