/* بوابة مزوّدي الخدمة — نظام تصميم مستقل بذاته، بنفس رموز الألوان
 * المستعملة في بقية المنصّة (تناسقاً بصرياً) لكن بلا أي مشاركة كود
 * أو حالة مع web/app.js أو web/admin/admin.js (القاعدة 28). */

:root {
  --bg: #F4F6F3;
  --surface: #FFFFFF;
  --surface-2: #ECF0EC;
  --line: #D5DBD6;
  --ink: #111714;
  --muted: #55605A;
  --primary: #2D5A3F;
  --primary-ink: #FFFFFF;
  --primary-soft: #E4EDE7;
  --danger: #A63A3A;
  --danger-soft: #F7E7E7;
  --radius: 12px;
  --radius-sm: 9px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1210; --surface: #18201C; --surface-2: #202A24;
    --line: #2A3831; --ink: #F0F4F1; --muted: #A2AFA7;
    --primary: #5C9D75; --primary-ink: #0E1210; --primary-soft: #1D2A22;
    --danger: #E57373; --danger-soft: #2E1C1C;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  min-height: 100vh;
}

.screen { min-height: 100vh; }

/* ── الدخول والتسجيل ── */
#login { display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.login-card h1 { margin: 0 0 8px; font-size: 1.3rem; color: var(--primary); }
.hint { color: var(--muted); font-size: .85rem; margin: 0 0 16px; }

.switch-row { display: flex; gap: 8px; margin-bottom: 16px; }
.switch-btn {
  flex: 1; padding: 9px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}
.switch-btn.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ── النماذج ── */
label { display: block; margin: 10px 0 5px; font-size: .85rem; font-weight: 600; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font: inherit; margin-bottom: 4px;
}
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

button {
  font: inherit; cursor: pointer; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 10px 16px;
}
button.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); width: 100%; margin-top: 12px; }
button.ghost { background: transparent; }
button:disabled { opacity: .6; cursor: default; }
button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.danger-text { color: var(--danger); }
.toolbar button.primary { width: auto; margin-top: 0; white-space: nowrap; }

.error { color: var(--danger); background: var(--danger-soft); padding: 8px 10px; border-radius: var(--radius-sm); font-size: .88rem; margin-top: 10px; }

/* ── الشريط العلوي والتبويبات ── */
#topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.topbar-text { min-width: 0; }
.brand { font-weight: 700; color: var(--primary); font-size: .95rem; }
#who { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#topbar button { flex: 0 0 auto; padding: 8px 14px; }
#topbar #logout { min-height: 44px; }   /* DP-28 (T-61): هدف 44 */

/* شريط اللغة — عادي الموضع لا عائماً فوق المحتوى */
#lang-bar { display: flex; justify-content: flex-end; padding: 8px 16px 0; }
/* DP-19: شريط اللغة جزء من سطح الترويسة؛ لا يُمسّ في شاشة الدخول حيث هو عائم (auth_v2.css:211) */
body:not(:has(#login.auth-screen:not([hidden]))) #lang-bar { background: var(--surface); }
.lang-select {
  width: auto; max-width: 150px; min-height: 44px; margin: 0; padding: 6px 10px; font-size: .85rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
/* AUD-13 (T-61): اللغة في صف الترويسة، بشكل الزر وارتفاعه، واللغة و«خروج» متجاوران في نهاية الصف */
#topbar { gap: 8px; }
#topbar .topbar-text { flex: 1 1 auto; }
#topbar .lang-select { min-height: 44px; margin: 0; margin-inline-end: 8px; border-radius: var(--radius-sm); }
#lang-bar:not(:has(select)) { display: none; }

.tabs {
  display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.tabs button { position: relative; flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

#view { padding: 16px 16px 90px; max-width: 900px; margin: 0 auto; }

/* ── البطاقات والجداول ── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.card h2 { margin: 0 0 12px; font-size: 1rem; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 8px 10px; text-align: start; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .82rem; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 20px; text-align: center; }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; background: var(--surface-2); }
.pill.ok { background: var(--primary-soft); color: var(--primary); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.warn { background: #FFF1D6; color: #8A5A00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.warn { background: #3A2E12; color: #F0C36B; } }

/* ── نافذة منبثقة (openModal/closeModal) ── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50;
}
.modal-box {
  background: var(--surface); border-radius: var(--radius); padding: 20px;
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
}
/* نافذة البوابة (T-61): زر إغلاق 44 في الزاوية بطابع البوابة الفاتح؛ العنوان يترك له مكاناً */
.modal-box.has-close { position: relative; }
.modal-box.has-close > h2:first-of-type, .modal-box.has-close > h3:first-of-type { padding-inline-end: 44px; }
.modal-close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; min-height: 44px; padding: 0;
  display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}

#toast {
  position: fixed; bottom: 16px; inset-inline: 16px; margin: 0 auto; max-width: 420px;
  background: var(--ink); color: var(--surface); padding: 12px 16px;
  border-radius: var(--radius-sm); text-align: center; z-index: 60;
}
#toast.bad { background: var(--danger); }
/* Independent portal loading indicator. */
.brand-loading { display: flex; align-items: center; justify-content: center; min-height: 100px; padding: 12px; }
.brand-loader { position: relative; display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: white; }
.brand-loader-ring { position: absolute; inset: 0; border: 3px solid #ddebe2; border-top-color: #246947; border-right-color: #c5a052; border-radius: 50%; animation: marah-loading 1.2s linear infinite; }
.brand-loader { flex-direction: column; gap: 2px; }
.brand-loader img { width: 36px; height: 36px; object-fit: contain; }
.brand-loader img.brand-loader-art { width: 60px; height: auto; }
.brand-loader-name { font: 700 12px/1.4 inherit; color: #246947; }
@keyframes marah-loading { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-loader-ring { animation-duration: 3s; } }

/* ── ألوان المتجر التي يختارها المورّد ── */
html[data-accent="teal"]  { --primary: #1F6F78; --primary-soft: #DDEEF0; }
html[data-accent="gold"]  { --primary: #8A6A1E; --primary-soft: #F3EAD3; }
html[data-accent="clay"]  { --primary: #A5532F; --primary-soft: #F4E3DB; }
html[data-accent="blue"]  { --primary: #2F5D9E; --primary-soft: #DEE8F5; }
html[data-accent="plum"]  { --primary: #7A3F6E; --primary-soft: #F0E1EC; }
@media (prefers-color-scheme: dark) {
  html[data-accent="teal"]:not([data-theme="light"]) { --primary: #5CB8C2; --primary-soft: #16282B; }
  html[data-accent="gold"]:not([data-theme="light"]) { --primary: #D6B25A; --primary-soft: #2B2412; }
  html[data-accent="clay"]:not([data-theme="light"]) { --primary: #E08A63; --primary-soft: #2D1C14; }
  html[data-accent="blue"]:not([data-theme="light"]) { --primary: #7FA8E6; --primary-soft: #16202E; }
  html[data-accent="plum"]:not([data-theme="light"]) { --primary: #C98BBB; --primary-soft: #2A1A26; }
}

/* ── نماذج ── */
.field { display: block; margin: 0 0 10px; }
.field > span { display: block; margin-bottom: 5px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.field small { display: block; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .form-grid { grid-template-columns: 1fr; } }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.modal-actions button { min-width: 96px; }
.modal-box h2 { margin: 0 0 12px; font-size: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.row.nowrap { flex-wrap: nowrap; }
.row.nowrap input { margin-bottom: 0; }
.sticky-save { position: sticky; bottom: 12px; z-index: 5; margin-bottom: 14px; }
.sticky-save button { width: 100%; margin: 0; box-shadow: 0 6px 20px rgba(0,0,0,.18); }

/* ── مفتاح التبديل ── */
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 6px 0; font-size: .9rem; color: var(--ink); font-weight: 500; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch-track { position: relative; width: 40px; height: 22px; flex: 0 0 auto; border-radius: 999px; background: var(--line); transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::after { inset-inline-start: 21px; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── شريط الأدوات والشرائح ── */
.toolbar { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.toolbar input, .toolbar select { margin: 0; flex: 1; min-width: 0; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; flex: 0 0 auto; }
.seg { border: 0; border-radius: 0; padding: 9px 14px; background: var(--surface); }
.seg.on { background: var(--primary); color: var(--primary-ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: .85rem; background: var(--surface); }
.chip.on { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; line-height: 18px; text-align: center; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; padding: 0; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }

/* ── بطاقات المنتجات ── */
.product-grid { display: grid; gap: 12px; }
.product-grid.grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-grid.list { grid-template-columns: 1fr; }
.product { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.product.is-featured { border-color: var(--primary); box-shadow: inset 0 3px 0 var(--primary); }
.product.is-hidden { opacity: .62; }
.product.dragging { opacity: .4; }
.product.drop-target { outline: 2px dashed var(--primary); outline-offset: 2px; }
.product[draggable="true"] { cursor: grab; }
.product-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.product-head h3 { margin: 0 0 2px; font-size: 1rem; }
.product-tools { display: flex; gap: 2px; flex: 0 0 auto; }
.icon-btn { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; font-size: 1.05rem; }
.icon-btn.on { color: var(--primary); }
.price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.price small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.desc { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stock-edit { display: flex; gap: 6px; }
.stock-edit input { margin: 0; flex: 1; min-width: 0; padding: 7px 10px; }
.small-btn { padding: 7px 12px; font-size: .85rem; }
.product-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: auto; }

/* ── نظرة عامة ── */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; text-align: start; background: var(--surface); border-radius: var(--radius); }
.tile strong { font-size: 1.35rem; }
.tile span { font-size: .8rem; color: var(--muted); }
.tile.warn { border-color: #D9A441; }
.tile.danger { border-color: var(--danger); }
.tile.ok strong { color: var(--primary); }
.open-row { display: flex; flex-direction: column; gap: 4px; }
.todo { display: flex; justify-content: space-between; min-height: 44px; width: 100%; text-align: start; margin-bottom: 6px; background: var(--surface-2); border: 0; }

/* ── الطلبات ── */
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.card .order { background: var(--surface-2); border: 0; }
.order-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.lines { list-style: none; margin: 0 0 8px; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.order-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.order-actions input { margin: 0; }
.order-actions .primary { width: auto; margin: 0; flex: 1; }

.preview-store { margin-bottom: 8px; }
.empty.big { padding: 40px 16px; }
.empty.big .primary { width: auto; margin-top: 8px; }

/* جداول الأسطول على الجوال */
.card table { display: block; overflow-x: auto; }

/* ── النموذج كورقة سفلية: رأس وأزرار ثابتة والمحتوى يتمرّر ── */
.modal-box.sheet { display: flex; flex-direction: column; padding: 0; max-height: 92vh; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; font-size: 1.05rem; }
.sheet-body { padding: 12px 16px; overflow-y: auto; flex: 1; }
.sheet-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot button { flex: 1; margin: 0; width: auto; padding: 10px 8px; }
.sheet-foot .primary { flex: 1.4; }
.sheet .field { margin-bottom: 8px; }
.sheet .field > span, .sheet label.field > span { margin-bottom: 3px; }
.sheet input, .sheet select, .sheet textarea { margin-bottom: 0; padding: 9px 10px; }
.sheet textarea { resize: none; }
.form-grid.always { grid-template-columns: 1fr 1fr; gap: 8px; }
.chip-row.compact { margin: 2px 0 6px; gap: 5px; }
.chip-row.compact .chip { padding: 4px 10px; font-size: .8rem; }
.field-error { color: var(--danger); font-size: .8rem; margin-top: 3px; display: block; }
input[aria-invalid="true"] { border-color: var(--danger); }
.switch-list { display: grid; gap: 6px; margin-top: 6px; }
.switch-list small { display: block; margin-inline-start: 48px; margin-top: -2px; }
@media (max-width: 640px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal-box.sheet { max-width: none; border-radius: 16px 16px 0 0; max-height: 94vh; }
}

/* ── صور المنتجات والخصم والرفوف ── */
.product-img { aspect-ratio: 16 / 10; max-height: 170px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.old-price { color: var(--muted); font-size: .85rem; font-weight: 400; margin-inline-start: 8px; }
.price .pill { margin-inline-start: 6px; vertical-align: middle; }
.img-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.img-preview { width: 84px; height: 63px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.shelf-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin-bottom: 12px; }
.shelf-row input { margin: 0; }
.shelf-row small { grid-column: 1 / -1; }
.shelf-items { list-style: none; margin: 8px 0; padding: 0; }
.shelf-items li { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.pick-list { display: grid; gap: 4px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; margin: 0; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--ink); }
.pick-row input { width: auto; margin: 0; }
.pick-row span:nth-of-type(1) { flex: 1; }
.shelf-title { margin: 12px 0 4px; font-size: .95rem; }

/* ── تفاصيل الطلب: التسليم والسجل والتقييم ── */
.tabs { gap: 4px; }
.tabs button { padding: 8px 12px; font-size: .9rem; }
.delivery-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; margin: 8px 0; display: grid; gap: 6px; }
.kv { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: .9rem; }
.kv strong { text-align: end; }
.kv.total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.order-sum { margin: 6px 0; display: grid; gap: 3px; }
.timeline { list-style: none; margin: 8px 0; padding: 0; border-inline-start: 2px solid var(--line); padding-inline-start: 10px; display: grid; gap: 4px; font-size: .82rem; }
.timeline li { display: flex; justify-content: space-between; gap: 8px; }
.rating-box { background: var(--primary-soft); border-radius: var(--radius-sm); padding: 8px 12px; margin: 8px 0; }
.rating-box p { margin: 4px 0 0; font-size: .9rem; }
.stars { color: #C98A00; letter-spacing: 2px; }
a.button { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
a.button.small-btn { padding: 7px 12px; font-size: .85rem; }
.sm-note { background: var(--surface-2); padding: 8px 10px; border-radius: 8px; font-size: .85rem; margin: 8px 0; }
.sheet textarea { resize: none; }

/* ملف الطبيب: خانات اختيار ومحرّرات القوائم */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 10px; }
.check-inline { display: flex; align-items: center; gap: 6px; }
.check-inline input { width: auto; margin: 0; }
.editor-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line, #ddd); }
.editor-row input, .editor-row select { margin-bottom: 0; }

/* غلاف المتجر وشعاره (WAVE2/D6) */
.store-img-slot { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.store-img-preview { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); object-fit: cover; }
.store-img-preview.cover { width: 100%; max-height: 160px; aspect-ratio: 16 / 6; }
.store-img-preview.logo { width: 72px; height: 72px; }
.store-img-empty { display: grid; place-items: center; min-height: 64px; border-radius: var(--radius-sm); background: var(--surface-2); }
.store-img-slot[hidden], .store-img-slot [hidden] { display: none !important; }
.store-img-slot .small-btn { min-height: 48px; }

/* ── إيقاف الاستقبال والطلبات الجديدة للطبيب ── */
#vet-banners { display: grid; gap: 8px; margin-bottom: 12px; }
.banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; }
.banner .txt { flex: 1 1 220px; font-weight: 700; }
.banner button { min-height: 48px; width: auto; margin: 0; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border-color: currentColor; }
.banner.info { background: var(--primary-soft); color: var(--primary); border-color: currentColor; }
button.tonal { background: var(--surface); color: var(--primary); border-color: var(--primary); min-height: 48px; }
.sw-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sw-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; min-width: 48px; border-radius: 999px; padding: 4px 14px; width: auto; }
.sw-track { position: relative; display: inline-block; flex: none; width: 56px; height: 32px; border-radius: 999px; background: var(--line); }
.sw-track::after { content: ""; position: absolute; top: 4px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); transition: inset-inline-start .15s; }
.sw-track.on { background: var(--primary); }
.sw-track.on::after { inset-inline-start: 28px; }
.card.is-new { border-inline-start: 4px solid var(--primary); }
.new-pill { display: inline-block; background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 800; vertical-align: middle; }
.vb-card button, .vb-card input, .vb-card select { min-height: 48px; }
.file-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.file-picker .file-btn { width: auto; min-height: 48px; margin: 0; padding: 8px 18px; }
.file-picker .file-name { min-width: 0; overflow-wrap: anywhere; }
.sr-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.file-picker .file-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
