/* BestVoy Admin — theme tokens & components (mirrors reference/bestvoy-admin web-antd look) */
:root {
  --brand: #0066e6;
  --ink: #242833;
  --ink-body: #474f5e;
  --ink-muted: #62708d;
  --page: #ffffff;
  --panel: #f7f8fb;
  --hair: #eaedf1;
  --ctl: #d7dbe7;
  --ok: #008051; --ok-bg: #e0f2ec; --ok-border: #cce6dd;
  --warn: #ffc453; --err: #D33612;
  --sidebar-w: 200px;
  --header-h: 60px;
  --radius: 8px;
  --float-shadow: 0 6px 16px 0 rgb(0 0 0 / 8%), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%);
}

html, body { height: 100%; }
body { font-size: 14px; line-height: 1.5; color: var(--ink); }
* { -webkit-font-smoothing: antialiased; }

/* ---------- Sidebar ---------- */
.app-sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: transparent;
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column;
  height: 100%;
}
.brand-row { height: var(--header-h); display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--hair); }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.nav-scroll { flex: 1; overflow-y: auto; padding: 8px; }
.nav-group-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); color: var(--ink-body); font-size: 14px; cursor: pointer; user-select: none; white-space: nowrap; }
.nav-item:hover { background: var(--panel); }
.nav-item.active { background: #ebf0ff; color: #356dff; font-weight: 600; }
.nav-item.active .nav-ico { color: #356dff; }
.nav-ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--ink-muted); }
.nav-badge { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.nav-item.active .nav-badge { color: var(--brand); }
.nav-sub { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 38px; border-radius: var(--radius); color: var(--ink-body); font-size: 13.5px; cursor: pointer; }
.nav-sub:hover { background: var(--panel); }
.nav-sub.active { background: #e6f0ff; color: var(--brand); font-weight: 600; }
.nav-caret { margin-left: auto; transition: transform .15s; color: var(--ink-muted); }
.nav-caret.open { transform: rotate(90deg); }
.nav-subs.collapsed { display: none; }

/* ---------- Header ---------- */
.app-header { height: var(--header-h); flex: 0 0 var(--header-h); background: #f2f5ff; display: flex; align-items: center; gap: 12px; padding: 0 24px 0 12px; }
/* ---- App shell: top full-width header + body(sidebar + white content card), mirrors bestvoy-admin basic.vue ---- */
.shell-root { flex-direction: column; background: #f2f5ff; }
.app-body { flex: 1; min-height: 0; display: flex; background: #fff; border-radius: 24px 24px 0 0; overflow: hidden; }
.shell-view { background: transparent; }
#root { padding: 20px 24px 40px; }

/* ---- Unsaved-changes bar (UnSavedChanges.tsx) — shared by every edit page ----
   Dark, fixed to the very top of the viewport, full width (covers the 60px header),
   square top corners. Centered alert icon + "You have unsaved changes" with a ghost
   Discard + primary on the right. Rendered by UI.unsavedBar(); toggled by UI.setUnsavedBar(). */
.unsaved-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; min-height: var(--header-h); display: flex; align-items: center; gap: 8px; background: #242833; color: #fff; padding: 0 24px; box-shadow: 0 4px 12px rgb(0 0 0 / 18%); }
.unsaved-bar .btn-primary { height: 32px; }
.unsaved-bar .unsaved-discard { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / 55%); height: 32px; }
.unsaved-bar .unsaved-discard:hover { background: rgb(255 255 255 / 12%); border-color: rgb(255 255 255 / 75%); }
.hdr-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.hdr-logo-name { font-weight: 600; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.nav-footer { padding: 8px; margin-top: auto; }
/* ---- Detail/edit container: fixed 1200px centered + 275px right rail (matches real admin) ---- */
.detail-wrap { width: 1200px; margin: 0 auto; padding: 0 20px 24px; }
.detail-cols { display: flex; gap: 24px; align-items: flex-start; }
.detail-main { flex: 1; min-width: 0; }
.detail-rail { width: 275px; flex: 0 0 275px; }
.bn-num input::-webkit-outer-spin-button, .bn-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bn-num input { -moz-appearance: textfield; appearance: textfield; }
.search-box { flex: 1; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--panel); border: 1px solid var(--hair); border-radius: var(--radius); color: var(--ink-muted); font-size: 13px; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--radius); background: #EEF0F7; border: none; display: grid; place-items: center; color: var(--ink-body); cursor: pointer; }
.icon-btn:hover { background: #e3e6f0; }
.hdr-ico { width: 32px; height: 32px; border-radius: var(--radius); background: transparent; border: none; display: grid; place-items: center; color: var(--ink-muted); cursor: pointer; }
.hdr-ico:hover { background: var(--panel); color: var(--ink-body); }
.avatar { width: 28px; height: 28px; border-radius: 7px; background: #111827; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }

/* ---------- Page / content ---------- */
.view-wrap { padding: 0; }
.page-title { font-size: 20px; font-weight: 600; color: var(--ink); }
.muted { color: var(--ink-muted); }
.subtle { color: var(--ink-body); }

/* ---------- Cards ---------- */
.panel { background: #fff; border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 1px 2px 0 rgb(16 24 40 / 4%); }
/* main product-edit sections: grey fill, white controls inside (mirrors real admin Add product) */
.panel.sec-grey { background: var(--panel); }
.sec-grey .tbl, .sec-grey textarea { background: #fff; }
/* soft grey content box INSIDE a white card (mirrors reference global .b-c, #f7f8fb).
   The white card padding becomes the gap around it — i.e. grey is inset, not edge-to-edge.
   Used by product-edit sections and settings blocks; controls inside stay white. */
.b-c { background: #f7f8fb; border-radius: 8px; }
.b-c .input, .b-c textarea, .b-c .tbl { background: #fff; }
/* datalist autocomplete inputs (e.g. product variant name) — hide the native dropdown
   arrow so they read as a clean input like the live Ant AutoComplete (no chevron overflow). */
input[list]::-webkit-calendar-picker-indicator { display: none !important; }
.card-pad { padding: 16px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.card-link-title { font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; }
.card-link-title:hover { text-decoration: underline; }
.stat-value { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.delta-up { color: var(--ok); font-size: 12px; font-weight: 500; }
.delta-down { color: var(--err); font-size: 12px; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn { height: 32px; padding: 0 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #0058c4; }
.btn-default { background: #fff; color: var(--ink); border-color: var(--ctl); }
.btn-default:hover { background: var(--panel); }
.btn-gray { background: rgb(0 39 155 / 7%); color: var(--ink); }
.btn-gray:hover { background: rgb(0 39 155 / 12%); }

/* Back button — match bestvoy-admin .back-button */
.back-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; background: #eef0f7; border: none; border-radius: 8px; color: var(--ink); cursor: pointer; transition: background-color .2s; flex: none; }
.back-btn:hover { background: #e2e6f1; }
/* row-action icons inside list tables: plain icon, grey only on hover (matches real admin) */
.tbl .back-btn { background: transparent; }
.tbl .back-btn:hover { background: #eef0f7; }
/* sortable column header: stacked caret with breathing room + 3-state hover tooltip */
.sort-caret { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-left: 6px; vertical-align: middle; line-height: 1; }
.sort-caret span { font-size: 8px; line-height: 8px; }
.tbl th[data-tip] { position: relative; }
.tbl th[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 12px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; font-weight: 400; padding: 5px 9px; border-radius: 6px; box-shadow: var(--float-shadow); z-index: 40; pointer-events: none; }

/* Manage-filters grouped dropdown header */
.opt-group { padding: 8px 10px 4px; font-size: 11px; color: var(--ink-muted); font-weight: 600; }
.sel-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; cursor: pointer; height: 34px; padding: 0 12px; border: 1px solid var(--ctl); border-radius: var(--radius); background: #fff; font-size: 13px; color: var(--ink); }
.sel-trigger:hover { border-color: var(--brand); }

/* ---------- Pills / tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 9999px; font-size: 12.5px; font-weight: 500; color: #111827; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill-blue { background: #dbeafe; } .pill-blue .dot { background: #2563eb; }
.pill-orange { background: #ffedd5; } .pill-orange .dot { background: #f97316; }
.pill-green { background: var(--ok-bg); } .pill-green .dot { background: var(--ok); }
.pill-red { background: #fee2e2; } .pill-red .dot { background: #ef4444; }
.pill-gray { background: #f3f4f6; } .pill-gray .dot { background: #6b7280; }
.pill-purple { background: #ede9fe; } .pill-purple .dot { background: #7c3aed; }

/* count badge on tabs */
.count-badge { display: inline-flex; align-items: center; border: 1px solid var(--hair); background: #fff; border-radius: 9999px; padding: 1px 8px; font-size: 12px; color: var(--ink-body); margin-left: 6px; }

/* ---------- Chips (date range / comparison etc.) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--ctl); background: #fff; border-radius: var(--radius); font-size: 13px; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--panel); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); }
.tab { padding: 10px 12px; font-size: 14px; color: var(--ink-body); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }

/* ---------- Table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl thead th { background: #fff; text-align: left; font-weight: 600; color: var(--ink); padding: 12px 16px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.tbl tbody td { padding: 12px 16px; border-bottom: 1px solid var(--hair); color: var(--ink-body); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--panel); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody td { white-space: nowrap; }
/* horizontal scroll when columns overflow (e.g. after adding many via Edit) */
#table-area, #ptable, .tbl-wrap { overflow-x: auto; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--hair); }
.chart { width: 100%; height: 280px; }
.chart-sm { width: 100%; height: 64px; }
.placeholder { display: grid; place-items: center; min-height: 320px; color: var(--ink-muted); text-align: center; }
.kbd { border: 1px solid var(--ctl); border-radius: 5px; padding: 1px 6px; font-size: 11px; color: var(--ink-muted); background: var(--panel); }
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #d7dbe7; border-radius: 8px; }

/* ---------- Source tag (Commerce / Behavior / Derived) ---------- */
.src-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 9999px; font-size: 11.5px; font-weight: 500; }
.src-tag .dot { width: 6px; height: 6px; border-radius: 50%; }
.src-Commerce { background: #e6f0ff; color: #0058c4; } .src-Commerce .dot { background: #0066e6; }
.src-Behavior { background: #efe9ff; color: #6d28d9; } .src-Behavior .dot { background: #7c3aed; }
.src-Derived { background: var(--ok-bg); color: #00684a; } .src-Derived .dot { background: var(--ok); }

/* ---------- Filters (reports list) ---------- */
.filter-input { height: 34px; padding: 0 12px 0 32px; border: 1px solid var(--ctl); border-radius: var(--radius); font-size: 13px; color: var(--ink); width: 280px; background: #fff; }
.filter-input:focus { outline: none; border-color: var(--brand); }
/* search clear button (shown only when the input has text, via :placeholder-shown) */
.kw-clear { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--ctl); color: #fff; display: grid; place-items: center; font-size: 12px; line-height: 1; cursor: pointer; }
.kw-clear:hover { background: var(--ink-muted); }
#kw-input:placeholder-shown ~ .kw-clear { display: none; }
/* segmented filter controls overlap via margin-left:-1px; lift the hovered/focused one so all 4 borders show */
.ui-select:hover, .ui-range:hover, .filter-input:hover, .filter-input:focus, .filter-select:hover { position: relative; z-index: 2; }
.filter-select { height: 34px; padding: 0 10px; border: 1px solid var(--ctl); border-radius: var(--radius); font-size: 13px; color: var(--ink); background: #fff; }
/* hairline under every list filter bar + symmetric top/bottom padding (overrides inline padding-bottom:8px) */
.card-pad:has(.filter-select), .card-pad:has(.filter-input) { border-bottom: 1px solid var(--hair); padding-top: 16px !important; padding-bottom: 16px !important; }

/* ---------- Builder (report detail / explore) ---------- */
.builder { display: flex; gap: 16px; align-items: flex-start; }
.builder-main { flex: 1; min-width: 0; }
.builder-side { width: 300px; flex: 0 0 300px; }
.ctrl-sec { padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.ctrl-sec:last-child { border-bottom: none; }
.ctrl-label { font-size: 12px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.field-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 6px; background: var(--panel); border: 1px solid var(--hair); font-size: 12.5px; color: var(--ink); margin: 0 6px 6px 0; }
.field-pill .x { cursor: pointer; color: var(--ink-muted); font-size: 14px; line-height: 1; }
.field-pill .x:hover { color: var(--err); }
.add-field { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; border: 1px dashed var(--ctl); background: #fff; font-size: 12.5px; color: var(--brand); cursor: pointer; }
.add-field:hover { background: var(--brand-50, #e6f0ff); }
.menu-pop { position: absolute; z-index: 30; background: #fff; border: 1px solid var(--hair); border-radius: 8px; box-shadow: var(--float-shadow); padding: 6px; max-height: 260px; overflow: auto; min-width: 200px; }
.menu-pop .opt { padding: 7px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-body); cursor: pointer; white-space: nowrap; }
.menu-pop .opt:hover { background: var(--panel); color: var(--ink); }
.viz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.viz-opt { display: grid; place-items: center; height: 40px; border: 1px solid var(--hair); border-radius: 6px; cursor: pointer; color: var(--ink-muted); }
.viz-opt:hover { border-color: var(--ctl); }
.viz-opt.active { border-color: var(--brand); color: var(--brand); background: #e6f0ff; }

/* Pagination — match bestvoy-admin (Ant Design Vue) */
.pg { display: inline-flex; align-items: center; gap: 8px; }
.pg-item { min-width: 32px; height: 32px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ctl); border-radius: 6px; background: #fff; color: var(--ink-body); font-size: 14px; cursor: pointer; user-select: none; }
.pg-item:hover { border-color: var(--brand); color: var(--brand); }
.pg-item.active { border-color: var(--brand); color: var(--brand); font-weight: 500; }
.pg-item.disabled { color: var(--ink-muted); border-color: var(--hair); cursor: not-allowed; }
.pg-size { height: 32px; border: 1px solid var(--ctl); border-radius: 6px; padding: 0 8px 0 10px; font-size: 14px; color: var(--ink-body); background: #fff; cursor: pointer; margin-left: 4px; }

/* BestQL editor */
.ql-wrap { border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.ql-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--hair); }
.ql-name { font-size: 12px; font-weight: 600; color: var(--ink-muted); letter-spacing: .03em; }
.ql-editor { width: 100%; border: none; outline: none; padding: 12px; font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.7; color: #1f2937; resize: vertical; min-height: 132px; background: #fff; }
.ql-kw { color: #0058c4; font-weight: 600; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgb(15 23 42 / 35%); display: grid; place-items: center; z-index: 70; }
.modal { background: #fff; border-radius: 12px; width: 420px; box-shadow: var(--float-shadow); overflow: hidden; }
.modal-head { padding: 18px 18px 4px; font-size: 15px; font-weight: 600; }
.modal-warn { color: #f59e0b; display: inline-flex; align-items: center; }
.modal-body { padding: 18px; }
.modal-foot { padding: 4px 18px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--ctl); border-radius: var(--radius); font-size: 14px; background: #fff; }
.input:focus { outline: none; border-color: var(--brand); }
/* Inline validation — mirrors .sh-fld-input.has-error / .sh-fld-error so .input fields
   show a red border + red helper text instead of a toast. Stays red even on focus. */
.input.has-error, .input.has-error:focus { border-color: var(--err); box-shadow: 0 0 0 2px rgb(211 54 18 / 10%); }

/* metric tooltip */
.tipbox { position: fixed; z-index: 90; max-width: 264px; background: #fff; border: 1px solid var(--hair); border-radius: 8px; box-shadow: var(--float-shadow); padding: 10px 12px; pointer-events: none; }
.tip-title { font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.tip-desc { font-size: 12px; color: var(--ink-body); line-height: 1.5; }
.tip-formula { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--brand); margin-top: 6px; background: var(--panel); padding: 4px 6px; border-radius: 5px; }

/* popover layer + calendar */
.pop-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.pop-layer .menu-pop { pointer-events: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 30px); gap: 2px; }
.cal-h { text-align: center; font-size: 11px; color: var(--ink-muted); height: 24px; line-height: 24px; }
.cal-day { text-align: center; font-size: 12.5px; height: 30px; line-height: 30px; border-radius: 6px; cursor: pointer; }
.cal-day:hover { background: var(--panel); }
.cal-day.sel { background: var(--brand); color: #fff; }

/* live ping dot */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 0 rgb(0 128 81 / 50%); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(0 128 81 / 40%); } 70% { box-shadow: 0 0 0 8px rgb(0 128 81 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(0 128 81 / 0%); } }

/* ---------- "By date range" report (chart metric selector + info banner) ---------- */
.info-banner { display: flex; align-items: center; gap: 10px; background: #e6f0ff; border: 1px solid #cfe1ff; color: #1e3a8a; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.info-banner .x { margin-left: auto; cursor: pointer; color: var(--ink-muted); font-size: 12px; }
.info-banner .x:hover { color: var(--ink); }
.metric-sel { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--ctl); border-radius: var(--radius); background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.metric-sel:hover { border-color: var(--brand); }
.lnk { color: var(--brand); font-size: 13px; cursor: pointer; }
.lnk:hover { text-decoration: underline; }

/* ---------- Edit drawer (right slide-in, catalog-driven column/metric picker) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgb(15 23 42 / 35%); z-index: 60; display: flex; justify-content: flex-end; }
.drawer { width: 380px; max-width: 92vw; height: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 24px rgb(0 0 0 / 12%); animation: drawerIn .18s ease; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: .5; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--hair); }
.drawer-x { cursor: pointer; color: var(--ink-muted); display: inline-flex; }
.drawer-x:hover { color: var(--ink); }
.drawer-search { padding: 12px 18px; position: relative; border-bottom: 1px solid var(--hair); }
.drawer-search .search-ico { position: absolute; left: 28px; top: 21px; color: var(--ink-muted); }
.drawer-search .filter-input { padding-left: 32px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 18px 16px; }
.edit-sec-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--ink-muted); padding: 12px 0 2px; }
.edit-group { border-bottom: 1px solid var(--hair); padding: 4px 0 6px; }
.edit-group-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 6px 0; }
.edit-caret { color: var(--ink-muted); transition: transform .15s; display: inline-flex; }
.edit-caret.col { transform: rotate(-90deg); }
.edit-selall { display: inline-block; margin: 2px 0 4px; }
.edit-check { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; color: var(--ink-body); cursor: pointer; }
.edit-check input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; flex: none; }
.drawer-foot { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--hair); }

/* Social→platform drill-down rows in commerce by-dimension reports */
.drill-caret { display: inline-flex; cursor: pointer; color: var(--ink-muted); transform: rotate(-90deg); transition: transform .15s; margin-right: 4px; vertical-align: middle; }
.drill-caret.open { transform: rotate(0deg); }
.drill-row td { background: var(--panel); color: var(--ink-muted); }
.drill-row td:first-child { padding-left: 20px; }

/* ---------- Reports library (SHOPLINE card-grid) ---------- */
.rep-grid { column-count: 3; column-gap: 16px; }
@media (max-width: 1180px) { .rep-grid { column-count: 2; } }
@media (max-width: 760px) { .rep-grid { column-count: 1; } }
.rep-card { break-inside: avoid; -webkit-column-break-inside: avoid; background: #fff; border: 1px solid var(--hair); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; box-shadow: 0 1px 2px 0 rgb(16 24 40 / 4%); display: inline-block; width: 100%; }
.rep-card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.rep-card-desc { font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; margin-bottom: 12px; }
.rep-card-sub { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-muted); text-transform: uppercase; margin-bottom: 4px; }
.rep-link { font-size: 13.5px; color: var(--brand); cursor: pointer; padding: 5px 0; }
.rep-link:hover { text-decoration: underline; }

/* ======================================================================
   Prototype hub — shared shell extras, landing map, changelog, mobile
   (additions on top of the bestvoy-admin theme above; shared by all pages)
   ====================================================================== */

/* brand row works as a link back to the hub */
a.brand-row { text-decoration: none; color: inherit; }

/* planned (not-yet-built) modules in the sidebar */
.nav-item.planned { color: var(--ink-muted); cursor: default; }
.nav-item.planned:hover { background: transparent; }
.nav-soon { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-muted); background: var(--panel); border: 1px solid var(--hair); border-radius: 9999px; padding: 1px 7px; }
.nav-item.active .nav-soon { color: var(--brand); border-color: #cfe1ff; background: #e6f0ff; }

/* header: mobile sidebar toggle (hidden on desktop) */
.sidebar-toggle { display: none; }
.sidebar-backdrop { display: none; }

/* ---- Hub landing ---- */
.hub-hero { padding: 6px 0 14px; }
.hub-h1 { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.hub-sub { color: var(--ink-muted); font-size: 14px; margin-top: 4px; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); margin: 22px 0 10px; }
.hub-cols { align-items: flex-start; }
.mod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .mod-grid { grid-template-columns: 1fr; } }
.mod-card { display: flex; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 1px 2px 0 rgb(16 24 40 / 4%); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.mod-card:hover { border-color: var(--brand); box-shadow: var(--float-shadow); transform: translateY(-1px); }
.mod-card.planned { opacity: .7; }
.mod-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: #e6f0ff; color: var(--brand); display: grid; place-items: center; }
.mod-ico .nav-ico { width: 22px; height: 22px; }
.mod-card.planned .mod-ico { background: var(--panel); color: var(--ink-muted); }
.mod-body { min-width: 0; }
.mod-name { font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.mod-desc { font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; margin-top: 3px; }
.mod-foot { margin-top: 10px; display: flex; align-items: center; gap: 8px; }

/* status + version badges */
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; border-radius: 9999px; padding: 2px 9px; }
.st .dot { width: 6px; height: 6px; border-radius: 50%; }
.st-ready { background: var(--ok-bg); color: #00684a; } .st-ready .dot { background: var(--ok); }
.st-planned { background: var(--panel); color: var(--ink-muted); border: 1px solid var(--hair); } .st-planned .dot { background: var(--ink-muted); }
.st-beta { background: #fff4e0; color: #9a6400; } .st-beta .dot { background: var(--warn); }
.ver { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--brand); background: #e6f0ff; border-radius: 9999px; padding: 1px 8px; }

/* ---- Changelog (timeline) ---- */
.cl-item { display: flex; gap: 14px; }
.cl-rail { display: flex; flex-direction: column; align-items: center; flex: 0 0 12px; }
.cl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #cfe1ff; margin-top: 5px; flex: none; }
.cl-line { flex: 1; width: 2px; background: var(--hair); margin: 4px 0; }
.cl-body { padding-bottom: 18px; min-width: 0; }
.cl-head { display: flex; align-items: center; gap: 10px; }
.cl-ver { font-size: 14px; font-weight: 700; color: var(--ink); }
.cl-date { font-size: 12px; color: var(--ink-muted); }
.cl-title { font-size: 13px; color: var(--ink-body); margin-top: 2px; line-height: 1.5; }
.cl-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.cl-li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-body); }
.cl-li .nav-ico { width: 14px; height: 14px; color: var(--ink-muted); margin-top: 2px; flex: none; }
.cl-mod { font-size: 12px; color: var(--brand); text-decoration: none; }
.cl-mod:hover { text-decoration: underline; }

/* ---- "Scaffold / planned" placeholder (stub module pages) ---- */
.coming { max-width: 560px; margin: 48px auto; text-align: center; }
.coming-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; background: #e6f0ff; color: var(--brand); display: grid; place-items: center; }
.coming-ico .nav-ico { width: 30px; height: 30px; }
.coming h2 { font-size: 19px; font-weight: 700; color: var(--ink); }
.coming p { color: var(--ink-muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ---- Mobile: off-canvas sidebar ---- */
@media (max-width: 768px) {
  .app-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--float-shadow); }
  .app-sidebar.open { transform: none; }
  .sidebar-toggle { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius); background: transparent; border: none; color: var(--ink-body); cursor: pointer; }
  .sidebar-toggle:hover { background: var(--panel); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: rgb(15 23 42 / 35%); z-index: 45; }
  .hub-cols { flex-direction: column; }
  .hub-cols .builder-side { width: 100%; flex: none; }
  .view-wrap { padding: 16px 18px 40px; }
  .search-box { display: none; }
}

/* ---- Settings menu context (sidebar header bar + close X), mirrors basic.vue ---- */
.settings-bar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px; font-weight: 600; font-size: 16px; color: var(--ink); }
.set-close { width: 32px; height: 32px; border-radius: 8px; background: #eef0f7; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.set-close:hover { background: #e2e6f1; }
.set-close .nav-ico { width: 16px; height: 16px; }

/* ---- Native <select> -> Ant-style chevron arrow (match the live admin Select), #3 ---- */
select { -webkit-appearance: none; -moz-appearance: none; 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='%2362708d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 9px center !important; padding-right: 30px !important; }
select::-ms-expand { display: none; }

/* ---- Header right: store switcher + user (matches live admin) ---- */
.app-header .hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-store { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 8px; }
.hdr-store:hover { background: rgb(0 0 0 / 4%); }
.hdr-store .nav-ico { width: 16px; height: 16px; color: var(--ink-muted); }
.hdr-user { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; display: grid; place-items: center; color: var(--ink-body); cursor: pointer; }
.hdr-user:hover { background: var(--panel); }
.hdr-user .nav-ico { width: 18px; height: 18px; }

/* ---- Full-screen Settings modal (matches live admin: Settings + X header, left nav, content) ---- */
/* starts BELOW the main app header (header stays visible, like the live admin) */
.settings-modal { position: fixed; inset: var(--header-h) 0 0 0; z-index: 60; background: #fff; display: flex; flex-direction: column; }
.settings-modal-head { height: 56px; flex: 0 0 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 24px; border-bottom: 1px solid var(--hair); }
/* dirty state: dark unsaved-changes bar (mirrors the product-edit UnSavedChanges bar) */
.settings-modal-head.dirty { background: var(--ink); border-bottom: none; padding: 0 24px; }
.settings-head-sp { flex: 1; }
.settings-unsaved { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; }
.settings-unsaved-actions { flex: 1; display: flex; justify-content: flex-end; gap: 12px; }
.settings-modal-head.dirty .btn-primary { height: 32px; }
.settings-discard { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / 55%); height: 32px; }
.settings-discard:hover { background: rgb(255 255 255 / 12%); }
.settings-modal-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.settings-modal-x { width: 32px; height: 32px; border-radius: 8px; background: #eef0f7; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.settings-modal-x:hover { background: #e2e6f1; }
.settings-modal-x .nav-ico { width: 16px; height: 16px; }
.settings-modal-body { flex: 1; min-height: 0; display: flex; }
.settings-nav { width: 240px; flex: 0 0 240px; border-right: 1px solid var(--hair); padding: 12px 10px; overflow-y: auto; }
.settings-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--ink-body); font-size: 14px; cursor: pointer; text-decoration: none; margin-bottom: 2px; }
.settings-nav-item:hover { background: var(--panel); }
.settings-nav-item.active { background: #ebf0ff; color: #356dff; font-weight: 600; }
.settings-nav-item.active .nav-ico { color: #356dff; }
.settings-nav-item .nav-ico { width: 18px; height: 18px; flex: 0 0 18px; color: var(--ink-muted); }
.settings-subs { padding-left: 0; } /* indent lives on .settings-sub so the row/active pill aligns with the parent items (like the main shell .nav-sub) */
.settings-sub { display: block; padding: 7px 12px 7px 40px; border-radius: 8px; color: var(--ink-body); font-size: 13.5px; text-decoration: none; margin-bottom: 2px; } /* 40px left pad = parent text x (12 pad + 18 icon + 10 gap), so sub text aligns AND the pill starts at the parent pill's edge */
.settings-sub:hover { background: var(--panel); }
.settings-sub.active { background: #ebf0ff; color: #356dff; font-weight: 600; }
.settings-content { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 30px 48px; }

/* ---- Shared widgets: antd-style custom Select + dual-month RangePicker (widgets.js) ---- */
.ui-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; user-select: none; box-sizing: border-box; }
.ui-select:hover { border-color: var(--brand); }
.ui-select .ui-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-select .ui-chev { flex: 0 0 14px; color: var(--ink-muted); }
.ui-select-pop .opt { padding: 7px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-body); cursor: pointer; white-space: nowrap; }
.ui-select-pop .opt:hover { background: var(--panel); color: var(--ink); }
.ui-select-pop .opt.sel { background: #ebf0ff; color: #356dff; font-weight: 600; }

.ui-range { display: flex; align-items: center; cursor: pointer; user-select: none; box-sizing: border-box; }
.ui-range:hover { border-color: var(--brand); }
.ui-range .ui-range-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-range .ui-range-text.muted { color: var(--ink-muted); }
.ui-range .ui-range-ico { flex: 0 0 auto; color: var(--ink-muted); display: inline-flex; margin-left: 8px; }

/* date range popover — presets + dual month + footer; NO scrollbar, roomy (mirrors analytics, bigger) */
.cal-pop { padding: 0; max-height: none; overflow: visible; }
.cal-body { display: flex; }
.cal-presets { border-right: 1px solid var(--hair); padding: 12px 8px; min-width: 134px; display: flex; flex-direction: column; gap: 2px; }
.cal-preset { padding: 8px 12px; border-radius: 6px; font-size: 13px; color: var(--ink-body); cursor: pointer; white-space: nowrap; }
.cal-preset:hover { background: var(--panel); color: var(--ink); }
.cal-wrap { display: flex; gap: 26px; padding: 16px 20px; }
.cal { width: 240px; }
.cal-hd { display: flex; align-items: center; height: 32px; margin-bottom: 6px; }
.cal-hd .cal-sp { flex: 1; }
.cal-title { font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 0 6px; }
.cal-nav { width: 26px; height: 26px; border: none; background: transparent; color: var(--ink-muted); cursor: pointer; border-radius: 6px; font-size: 15px; line-height: 1; }
.cal-nav:hover { background: var(--panel); color: var(--ink); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-week span { text-align: center; font-size: 12px; color: var(--ink-muted); height: 30px; line-height: 30px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { height: 34px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-body); cursor: pointer; border-radius: 7px; }
.cal-cell:hover { background: var(--panel); }
.cal-cell.out { color: var(--ink-muted); opacity: .5; }
.cal-cell.today { box-shadow: inset 0 0 0 1px var(--brand); }
.cal-cell.in { background: #ebf0ff; border-radius: 0; }
.cal-cell.in:hover { background: #dfe7ff; }
.cal-cell.sel { background: var(--brand); color: #fff; font-weight: 600; }
.cal-cell.sel:hover { background: var(--brand); }
.cal-cell.sel.start { border-radius: 7px 0 0 7px; }
.cal-cell.sel.end { border-radius: 0 7px 7px 0; }
.cal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--hair); }
.cal-sel-text { font-size: 13px; color: var(--ink-muted); }

/* ---- SelectFile modal: media library picker (products app.js) ---- */
.sf-toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.sf-search { position: relative; flex: 1; }
.sf-search input { width: 100%; height: 34px; border: 1px solid var(--ctl); border-radius: var(--radius); padding: 0 12px 0 32px; font-size: 13px; color: var(--ink); box-sizing: border-box; }
.sf-search input:focus { outline: none; border-color: var(--brand); }
.sf-search .ic { position: absolute; left: 10px; top: 9px; color: var(--ink-muted); display: inline-flex; }
.sf-drop { border: 1px dashed var(--ctl); border-radius: 10px; padding: 18px; text-align: center; color: var(--ink-muted); font-size: 13px; margin-bottom: 14px; transition: border-color .12s, background .12s; }
.sf-drop.drag { border-color: var(--brand); background: #f4f7ff; }
.sf-drop .btn { margin-top: 10px; }
.sf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-height: 392px; overflow-y: auto; padding: 2px; }
.sf-tile { cursor: pointer; }
.sf-thumb { position: relative; aspect-ratio: 1; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--panel); }
.sf-tile.sel .sf-thumb { border: 2px solid var(--brand); }
.sf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-raw { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-muted); }
.sf-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / 18%); }
.sf-check { position: absolute; left: 6px; top: 6px; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--ctl); background: #fff; display: grid; place-items: center; color: transparent; }
.sf-tile.sel .sf-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.sf-name { font-size: 12px; color: var(--ink-body); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-type { font-size: 11px; color: var(--ink-muted); }
.sf-pager { display: flex; justify-content: flex-end; margin-top: 14px; }

/* ---- Price-range popover inputs ($ prefix), mirrors real admin ---- */
.pr-field { position: relative; flex: 1; }
.pr-cur { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: 13px; pointer-events: none; }
.pr-input { width: 100%; height: 34px; border: 1px solid var(--ctl); border-radius: var(--radius); padding: 0 10px 0 22px; font-size: 13px; color: var(--ink); box-sizing: border-box; }
.pr-input:focus { outline: none; border-color: var(--brand); }

/* ---- Header dropdowns: store switcher + account menu (V1.129 SSO multi-store) ---- */
.hdr-menu-wrap { position: relative; display: inline-flex; }
.hdr-menu { position: absolute; top: 44px; right: 0; min-width: 244px; background: #fff; border: 1px solid var(--hair); border-radius: 10px; box-shadow: var(--float-shadow); padding: 6px; z-index: 70; }
.hdr-menu-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--ink); font-size: 14px; }
.hdr-menu-head svg { width: 16px; height: 16px; color: var(--ink-muted); flex: 0 0 auto; }
.hdr-menu-divider { height: 1px; background: var(--hair); margin: 4px 0; }
.hdr-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; color: var(--ink); font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.hdr-menu-item:hover { background: var(--panel); }
.hdr-menu-item svg { width: 16px; height: 16px; color: var(--ink-muted); flex: 0 0 auto; }
.hdr-store-list { display: flex; flex-direction: column; }
.hdr-store-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; }
.hdr-store-row:hover { background: var(--panel); }
.hdr-store-row.current { background: #eef2ff; }
.hdr-store-ico { position: relative; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 6px; background: #edf2ff; }
.hdr-store-ico::before { content: ''; position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 18px; height: 5px; border-radius: 2px 2px 0 0; background: repeating-linear-gradient(to right, #b8c9ff 0, #b8c9ff 3px, #edf2ff 3px, #edf2ff 4.5px); }
.hdr-store-ico::after { content: ''; position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: 18px; height: 12px; border-radius: 0 0 3px 3px; background: #fff; }
.hdr-store-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hdr-store-name { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-store-url { font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-store-check { display: inline-flex; color: #3b66ff; flex: 0 0 auto; }
.hdr-store-check svg { width: 16px; height: 16px; }
.hdr-menu-foot { display: block; margin-top: 4px; padding: 9px 10px; border-top: 1px solid var(--hair); color: #3b66ff; font-size: 13px; text-decoration: none; }
.hdr-menu-foot:hover { background: var(--panel); border-radius: 0 0 8px 8px; }

/* ---- Shell-level dialog (account Change password) ---- */
.sh-modal-bd { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgb(33 40 56 / 45%); }
.sh-modal { width: 520px; max-width: calc(100vw - 32px); background: #fff; border-radius: 12px; box-shadow: 0 24px 60px rgb(20 28 52 / 24%); overflow: hidden; }
.sh-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 4px; font-size: 17px; font-weight: 700; color: var(--ink); }
.sh-modal-head button { display: inline-flex; padding: 4px; border: 0; background: none; color: var(--ink-muted); cursor: pointer; }
.sh-modal-head button svg { width: 18px; height: 18px; }
.sh-modal-body { padding: 12px 22px 4px; }
.sh-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px; }
.sh-fld { margin-bottom: 16px; }
.sh-fld-label { display: block; margin-bottom: 7px; color: #2f3542; font-size: 13.5px; font-weight: 600; }
.sh-fld-input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid #d7deec; border-radius: 4px; background: #fff; color: var(--ink); font-size: 14px; box-sizing: border-box; outline: none; }
.sh-fld-input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgb(59 102 255 / 10%); }
.sh-fld-input.has-error { border-color: var(--err); }
.sh-fld-error { margin-top: 6px; color: var(--err); font-size: 13px; }
.sh-fld-error:empty { display: none; }
