/*! Binar admin. */
@font-face { font-family: "VS Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
:root {
  --bg: #f6f8fb; --side: #ffffff; --panel: #ffffff; --panel2: #f8fafc; --field: #ffffff; --line: #e6eaf1; --line2: #d6dce6;
  --ink: #0f172a; --ink2: #334155; --mute: #64748b; --a: #2563eb; --a2: #2563eb; --a-d: #1d4ed8; --a-50: #eff4ff; --a-100: #dce7fe;
  --ok: #15803d; --ok-bg: #ecfdf3; --warn: #b45309; --warn-bg: #fff7e8; --bad: #dc2626; --bad-bg: #fef2f2; --r: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .05);
}
* { box-sizing: border-box; }
.vsa [hidden] { display: none !important; }
body.vsa { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 "VS Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.vsa a { color: var(--a); text-decoration: none; } .vsa a:hover { text-decoration: underline; }
.vsa :focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.vsa-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.vsa-side { background: var(--side); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.vsa-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; color: var(--ink) !important; text-decoration: none !important; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.vsa-brand img { width: 30px; height: 30px; border-radius: 8px; }
.vsa-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink2); font-weight: 550; margin-bottom: 2px; }
.vsa-nav a:hover { background: var(--panel2); text-decoration: none; color: var(--ink); }
.vsa-nav a.is-on { background: var(--a-50); color: var(--a-d); }
.vsa-nav svg { width: 18px; height: 18px; opacity: .85; flex: none; }
.vsa-nav .vsa-sep { height: 1px; background: var(--line); margin: 12px 10px; }
.vsa-user { margin-top: 20px; padding: 12px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.vsa-main { padding: 26px 30px 60px; min-width: 0; }
.vsa-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.vsa-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; font-weight: 700; }
.vsa-head p { margin: 4px 0 0; color: var(--mute); }
.vsa-crumb { font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.vsa-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vsa-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.vsa-btn:hover { border-color: var(--a); }
.vsa-btn.is-primary { background: var(--a2); border-color: var(--a2); color: #fff; }
.vsa-btn.is-primary:hover { background: var(--a-d); border-color: var(--a-d); }
.vsa-btn.is-danger { color: var(--bad); }
.vsa-btn.is-small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.vsa-btn[disabled] { opacity: .5; cursor: not-allowed; }
.vsa-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.vsa-card h2 { margin: 0 0 12px; font-size: 16px; letter-spacing: -.01em; }
.vsa-card h2 small { color: var(--mute); font-weight: 500; font-size: 13px; margin-left: 6px; }
.vsa-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .vsa-grid.c2 { grid-template-columns: 1fr 1fr; } .vsa-grid.c3 { grid-template-columns: repeat(3, 1fr); } .vsa-grid.side { grid-template-columns: 1fr 320px; align-items: start; } }
.vsa-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.vsa-kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.vsa-kpi small { display: block; color: var(--mute); font-size: 12.5px; margin-bottom: 4px; }
.vsa-kpi b { white-space: nowrap; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vsa-kpi span { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.vsa-kpi.is-good b { color: var(--ok); } .vsa-kpi.is-bad b { color: var(--bad); }
.vsa-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow); }
table.vsa-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vsa-table th { text-align: left; font-weight: 600; color: var(--mute); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel2); position: sticky; top: 0; }
.vsa-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vsa-table tr:last-child td { border-bottom: 0; }
.vsa-table tbody tr:hover td { background: #fafbfd; }
.vsa-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vsa-table tfoot td { font-weight: 700; background: var(--panel2); border-top: 1px solid var(--line2); }
.vsa-pos { color: var(--ok); } .vsa-neg { color: var(--bad); } .vsa-dim { color: var(--mute); }
.vsa-who { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.vsa-who img, .vsa-who .vsa-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.vsa-av { display: grid; place-items: center; background: var(--a2); color: #fff; font-weight: 800; font-size: 13px; }
.vsa-who b { display: block; } .vsa-who small { color: var(--mute); }
.vsa-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: #f1f5f9; color: var(--ink2); }
.vsa-badge.is-live { background: var(--ok-bg); color: var(--ok); }
.vsa-badge.is-draft { background: var(--warn-bg); color: var(--warn); }
.vsa-badge.is-bad { background: var(--bad-bg); color: var(--bad); }
.vsa-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.vsa-tabs a { padding: 10px 14px; color: var(--mute); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none !important; }
.vsa-tabs a.is-on { color: var(--a); border-color: var(--a); }
.vsa-form { display: grid; gap: 14px; max-width: 760px; }
.vsa-field { display: grid; gap: 6px; }
.vsa-field > span { font-weight: 600; font-size: 13.5px; color: var(--ink2); }
.vsa-field small { color: var(--mute); font-size: 12.5px; }
.vsa-field .vsa-ferr { color: var(--bad); font-weight: 600; }
.vsa input[type=text], .vsa input[type=email], .vsa input[type=url], .vsa input[type=password], .vsa input[type=number], .vsa input[type=date], .vsa input[type=datetime-local], .vsa input[type=search], .vsa input[type=tel], .vsa select, .vsa textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 12px; outline: none; }
.vsa textarea { min-height: 90px; resize: vertical; }
.vsa textarea.is-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; min-height: 120px; }
.vsa input:focus, .vsa select:focus, .vsa textarea:focus { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-100); }
.vsa input[type=color] { width: 54px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--line2); background: var(--field); }
.vsa-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.vsa-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--a2); flex: none; }
.vsa-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vsa-row > * { flex: 1; min-width: 140px; }
.vsa-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.vsa-filters select, .vsa-filters input { width: auto; min-width: 150px; }
.vsa-flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; }
.vsa-flash.is-ok { background: var(--a-50); border-color: var(--a-100); color: #1e3a8a; }
.vsa-flash.is-err { background: var(--bad-bg); border-color: #fecaca; color: #991b1b; }
.vsa-flash.is-warn { background: var(--warn-bg); border-color: #fde3b0; color: #92400e; }
.vsa-empty { text-align: center; padding: 36px 18px; color: var(--mute); }
.vsa-empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.vsa-copy { display: flex; gap: 6px; align-items: center; }
.vsa-copy code { background: var(--panel2); border: 1px solid var(--line); padding: 5px 8px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; color: var(--ink2); }
.vsa-muted { color: var(--mute); }
.vsa-chart { width: 100%; height: 220px; }
.vsa-bars { display: grid; gap: 8px; }
.vsa-bar { display: grid; grid-template-columns: 210px 1fr 90px; gap: 10px; align-items: center; font-size: 13.5px; }
.vsa-bar i { display: block; height: 22px; border-radius: 6px; background: var(--a); min-width: 2px; }
.vsa-bar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink2); }
@media (max-width: 860px) {
  .vsa-shell { grid-template-columns: 1fr; }
  .vsa-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .vsa-brand { width: 100%; padding-bottom: 8px; }
  .vsa-nav { display: flex; flex-wrap: wrap; gap: 2px; } .vsa-nav .vsa-sep, .vsa-user { display: none; }
  .vsa-main { padding: 18px 14px 50px; }
  .vsa-bar { grid-template-columns: 120px 1fr 70px; }
}
/* login / installer */
.vsa-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.vsa-auth .vsa-card { width: 100%; max-width: 420px; padding: 26px; }
.vsa-auth.is-wide .vsa-card { max-width: 640px; }
.vsa-auth h1 { margin: 10px 0 4px; font-size: 22px; }
.vsa-checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 13.5px; }
.vsa-checks li::before { content: "\2713"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.vsa-checks li.is-bad::before { content: "\2715"; color: var(--bad); }
/* timeline builder */
.vsa-tl-track { position: relative; height: 64px; margin: 6px 0 10px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.vsa-tl-track .ruler { position: absolute; left: 12px; right: 12px; top: 26px; height: 4px; border-radius: 4px; background: var(--line2); }
.vsa-tl-track .pin { position: absolute; top: 14px; width: 14px; height: 28px; margin-left: -7px; border-radius: 7px; border: 2px solid #fff; background: var(--c); cursor: pointer; }
.vsa-tl-track .span { position: absolute; top: 26px; height: 4px; background: var(--c); opacity: .55; border-radius: 4px; }
.vsa-tl-track .tick { position: absolute; bottom: 4px; font-size: 11px; color: var(--mute); transform: translateX(-50%); }
.vsa-tl-row { display: grid; grid-template-columns: 92px 140px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.vsa-tl-row.is-off { opacity: .55; }
.vsa-tl-row .t { font-variant-numeric: tabular-nums; font-weight: 700; }
.vsa-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; color: #fff; background: var(--c, #64748b); }
.vsa-modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; z-index: 50; padding: 18px; }
.vsa-modal[hidden] { display: none; }
.vsa-modal .vsa-card { width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; margin: 0; }
.vsa-opts { display: grid; gap: 6px; }
.vsa-opt { display: flex; gap: 6px; }
@media (max-width: 860px) { .vsa-tl-row { grid-template-columns: 70px 1fr; } }

/* page design picker and custom HTML editor */
.vsa-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 4px; }
.vsa-design { position: relative; display: grid; gap: 4px; padding: 10px 10px 12px; border: 1.5px solid var(--line); background: var(--panel); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.vsa-design input { position: absolute; opacity: 0; pointer-events: none; }
.vsa-design:has(input:checked) { border-color: var(--a); background: var(--a-50); }
.vsa-design:has(input:focus-visible) { outline: 2px solid var(--a); outline-offset: 2px; }
.vsa-design-thumb { display: block; border-radius: 9px; background: var(--panel2); color: var(--a); margin-bottom: 4px; }
.vsa-design-thumb svg { display: block; width: 100%; height: auto; }
.vsa-design b { font-size: 14px; }
.vsa-design small { font-size: 12px; line-height: 1.4; opacity: .7; }
.vsa-design-prev { font-size: 12.5px; font-weight: 600; margin-top: 4px; width: max-content; }
.vsa textarea.is-html { min-height: 320px; }
.vsa-tokens { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.vsa-token { font: 12px/1 ui-monospace, Menlo, Consolas, monospace; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--a-100); background: var(--a-50); color: inherit; cursor: pointer; }
.vsa-token:hover { background: var(--a-100); }
.vsa-more { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 12px; }
.vsa-more > summary { cursor: pointer; font-weight: 650; }
.vsa-more[open] > summary { margin-bottom: 4px; }
