@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");

.vp-sa {
  --blue:#444DF9; --teal:#00C3C4; --violet:#8C2FFC;
  --green:#15803D; --green-bg:#DCFCE7;
  --red:#B91C1C; --red-bg:#FEE2E2;
  --amber:#B45309; --amber-bg:#FEF3C7;
  --ink:#0F172A; --text:#1E293B; --muted:#5A6B82; --soft:#94A3B8;
  --line:#E4E9F2; --line-soft:#EEF2F8;
  --bg:#F7F9FC; --surface:#FFFFFF; --hover:#F8FAFF;
  --r:9px; --mono:"JetBrains Mono","Roboto Mono",ui-monospace,monospace;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.vp-sa h1, .vp-sa h2 { margin: 0; color: var(--ink); letter-spacing: -.02em; }
.vp-sa button { font-family: inherit; cursor: pointer; }
.vp-sa a { color: var(--blue); text-decoration: none; }
.vp-sa a:hover { text-decoration: underline; }
.vp-sa :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.vp-sa svg { width: 15px; height: 15px; display: block; flex-shrink: 0; }
.vp-sa .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.vp-sa .appbar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); margin: 0; }
.vp-sa .appbar-in { max-width: none; width: 100%; margin: 0; padding: 13px 8px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vp-sa .appbar-in > div:first-child { min-width: 0; }
.vp-sa .crumb { font-size: 12.5px; color: var(--soft); }
.vp-sa .crumb a { color: var(--muted); }
.vp-sa .gwtitle { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; min-width: 0; }
.vp-sa .gwtitle h1 { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.vp-sa .gwtitle .id { font-family: var(--mono); font-size: 12px; color: var(--soft); }
.vp-sa .spacer { flex: 1; }
.vp-sa .dirty { display: none; align-items: center; gap: 7px; font-size: 12.5px; color: var(--amber);
  background: var(--amber-bg); padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.vp-sa .dirty.on { display: inline-flex; }

.vp-sa .btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text);
  transition: border-color .14s, background .14s; text-decoration: none !important; }
.vp-sa .btn:hover { border-color: #C9D3E6; background: #FCFDFF; }
.vp-sa .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.vp-sa .btn-primary:hover { background: #3A42D8; }
.vp-sa .btn-sm { padding: 7px 12px; font-size: 13px; }

.vp-sa .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.vp-sa .chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.vp-sa .chip.ok { background: var(--green-bg); color: var(--green); }
.vp-sa .chip.ok .dot { background: var(--green); }
.vp-sa .chip.off { background: var(--red-bg); color: var(--red); }
.vp-sa .chip.off .dot { background: var(--red); }
.vp-sa .chip.warn { background: var(--amber-bg); color: var(--amber); }
.vp-sa .chip.warn .dot { background: var(--amber); }

.vp-sa .shell { max-width: none; width: 100%; margin: 0; padding: 18px 0 120px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 940px) { .vp-sa .shell { grid-template-columns: 1fr; } .vp-sa .sidenav { position: static !important; } }

.vp-sa .sidenav { position: sticky; top: 78px; }
.vp-sa .navsearch { position: relative; margin-bottom: 12px; }
.vp-sa .navsearch input { width: 100%; padding: 9px 12px 9px 32px; font-family: inherit; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); }
.vp-sa .navsearch input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68,77,249,.10); }
.vp-sa .navsearch svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--soft); }
.vp-sa .navlist { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.vp-sa .navlist a { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 7px;
  font-size: 13.5px; color: var(--muted); text-decoration: none; transition: background .12s, color .12s; }
.vp-sa .navlist a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.vp-sa .navlist a.active { background: #EEF0FF; color: var(--blue); font-weight: 600; }
.vp-sa .navlist .step { width: 19px; height: 19px; border-radius: 50%; background: #EEF2F8; color: var(--soft);
  font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vp-sa .navlist a.active .step { background: var(--blue); color: #fff; }
.vp-sa .navlist .n { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--soft);
  background: #EEF2F8; padding: 1px 6px; border-radius: 999px; }
.vp-sa .navlist a.active .n { background: #DFE3FF; color: var(--blue); }

.vp-sa .livebox { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.vp-sa .livebox h3 { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--soft); margin: 0 0 9px; }
.vp-sa .livebox p { font-size: 12.5px; color: var(--text); line-height: 1.6; margin: 0; }
.vp-sa .livebox .mono { background: #F1F4FA; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }
.vp-sa .livebox .todo { color: var(--amber); font-weight: 600; }

.vp-sa .sec { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 14px;
  scroll-margin-top: 78px; overflow: visible; }
.vp-sa .sec-head { padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.vp-sa .sec-head .t { display: flex; align-items: center; gap: 10px; }
.vp-sa .sec-head h2 { font-size: 15.5px; font-weight: 700; }
.vp-sa .sec-head .step { width: 21px; height: 21px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vp-sa .sec-head .desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.vp-sa .sec-body { padding: 18px 20px 22px; }

.vp-sa .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
@media (max-width: 1200px) { .vp-sa .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .vp-sa .grid { grid-template-columns: 1fr; } }
.vp-sa .sub { margin-top: 22px; }
.vp-sa .sub:first-child { margin-top: 0; }
.vp-sa .sub-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--soft);
  padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.vp-sa .vp-sa-pair { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; min-width: 0; }
@media (max-width: 720px) { .vp-sa .vp-sa-pair { grid-column: span 1; grid-template-columns: 1fr; } }

.vp-sa .fld.hide, .vp-sa .sub.hide, .vp-sa .sec.hide, .vp-sa li.input.hide { display: none !important; }
.vp-sa .flash { margin: 12px 24px 0; }

.vp-sa li.input { list-style: none; margin: 0; padding: 0; min-width: 0; max-width: 100%; position: relative; }
.vp-sa .vp-sa-lab { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; min-width: 0; }
.vp-sa .vp-sa-lab > label.label, .vp-sa .vp-sa-lab > label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin: 0; flex: 1; min-width: 0; }
.vp-sa li.input > label.label, .vp-sa li.input > label:not(:has(input[type=checkbox])) {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.vp-sa li.input abbr { color: var(--red); text-decoration: none; border: 0; margin-left: 2px; }
.vp-sa li.input input[type=text], .vp-sa li.input input[type=number], .vp-sa li.input input[type=password],
.vp-sa li.input input[type=email], .vp-sa li.input select, .vp-sa li.input textarea {
  width: 100%; padding: 9px 11px; font-family: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: none !important; }
.vp-sa li.input textarea { min-height: 76px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
.vp-sa li.input input:focus, .vp-sa li.input select:focus, .vp-sa li.input textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68,77,249,.10) !important; }
.vp-sa li.input .inline-hints, .vp-sa li.input .help, .vp-sa .vp-sa-help, .vp-sa .inline-help {
  font-size: 11.5px; color: var(--soft); margin-top: 5px; line-height: 1.45; }
.vp-sa li.input.has-help > .inline-hints { display: none; }
.vp-sa li.input .inline-errors { color: var(--red); font-size: 12px; margin-top: 4px; }

.vp-sa li.input.required-empty input[type=text],
.vp-sa li.input.required-empty input[type=number],
.vp-sa li.input.required-empty select,
.vp-sa li.input.required-empty .ts-wrapper .ts-control {
  border-color: #E8C9C9 !important; background: #FFFCFC !important; }

.vp-sa li.input { display: block; }
.vp-sa form.formtastic li.boolean {
  padding: 14px 16px !important; border: 1px solid var(--line); border-radius: var(--r);
  background: #FBFCFE; min-width: 0; box-sizing: border-box;
}
.vp-sa form.formtastic li.boolean > label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding-left: 0 !important;
  position: relative;
}
.vp-sa form.formtastic li.boolean input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  margin: 2px 0 0 0 !important;
  flex: 0 0 16px;
  position: static !important;
  float: none !important;
}
.vp-sa li.boolean input[type=hidden] { display: none; }
.vp-sa li.boolean .inline-hints, .vp-sa li.boolean .vp-sa-help, .vp-sa li.boolean .inline-help {
  margin-left: 26px; margin-top: 6px; }

.vp-sa .qbtn { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--soft); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0; padding: 0; line-height: 1; transition: all .12s;
  position: relative; z-index: 3; pointer-events: auto; cursor: pointer; }
.vp-sa .qbtn:hover, .vp-sa .qbtn[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.vp-sa-pop { position: fixed; z-index: 2147483646; width: 320px; max-width: calc(100vw - 32px);
  background: #0F172A !important; color: #E2E8F5; border-radius: 11px; padding: 14px 15px;
  box-shadow: 0 16px 40px rgba(15,23,42,.45); font-size: 12.5px; line-height: 1.55;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .14s, transform .14s, visibility .14s;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate; pointer-events: auto; }
.vp-sa-pop.on { opacity: 1 !important; visibility: visible; transform: none; }
.vp-sa-pop h4 { font-size: 13px; color: #fff; margin: 0 0 6px; font-weight: 700; }
.vp-sa-pop p { margin: 0 0 9px; color: #B9C6DE; }
.vp-sa-pop .ex { background: #1B2436; border-radius: 7px; padding: 9px 11px; margin-top: 2px; }
.vp-sa-pop .ex .exl { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #7E8CA8; margin-bottom: 4px; }
.vp-sa-pop .ex code { font-family: "JetBrains Mono","Roboto Mono",ui-monospace,monospace; font-size: 11.5px; color: #7EE0C3; display: block; word-break: break-all; }
.vp-sa-pop .ex .note { color: #94A3B8; font-size: 11.5px; margin-top: 6px; }
.vp-sa-pop::after { content: ""; position: absolute; left: 22px; top: -5px; width: 10px; height: 10px;
  background: #0F172A; transform: rotate(45deg); border-radius: 2px; }
.vp-sa-pop.above::after { top: auto; bottom: -5px; }

.vp-sa .ts-wrapper { width: 100% !important; max-width: 100% !important; }
.vp-sa .ts-wrapper .ts-control { border: 1px solid var(--line) !important; border-radius: var(--r) !important;
  padding: 8px 11px !important; min-height: 40px; background: var(--surface) !important; }
.vp-sa .ts-wrapper.focus .ts-control { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(68,77,249,.10) !important; }
.vp-sa form.formtastic select,
.vp-sa form.formtastic input[type=text],
.vp-sa form.formtastic input[type=number],
.vp-sa form.formtastic textarea { max-width: 100% !important; width: 100% !important; }

body.customers_auths.edit #vp-dash .vpm,
body.customers_auths.new #vp-dash .vpm { padding-left: 20px; padding-right: 24px; }
body.customers_auths.edit #main_content_wrapper,
body.customers_auths.new #main_content_wrapper,
body.customers_auths.edit #main_content,
body.customers_auths.new #main_content,
body.customers_auths.edit #active_admin_content,
body.customers_auths.new #active_admin_content {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

.vp-sa .savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.vp-sa .savebar-in { max-width: none; width: 100%; margin: 0; padding: 13px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.vp-sa .savebar .msg { font-size: 13px; color: var(--muted); }
.vp-sa .savebar .msg b { color: var(--ink); font-weight: 700; }
.vp-sa .warnpill { display: none; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--amber); background: var(--amber-bg); padding: 5px 12px; border-radius: 999px; }
.vp-sa .warnpill.on { display: inline-flex; }

.vp-sa-src { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.vp-sa .errors, .vp-sa .semantic-errors { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }

.vp-sa .appbar .dropdown_menu { display: inline-block; }
.vp-sa .appbar .dropdown_menu_button { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); }
body.customers_auths.edit #title_bar, body.customers_auths.new #title_bar,
body.customers_auths.edit #sidebar, body.customers_auths.new #sidebar,
body.customers_auths.edit #footer, body.customers_auths.new #footer { display: none !important; }
