:root {
  color-scheme: dark;
  --vector-bg: #0b1017;
  --vector-sidebar: #0e151e;
  --vector-bar: #0e161f;
  --vector-panel: #111a24;
  --vector-panel-alt: #16212c;
  --vector-border: #273644;
  --vector-text: #f2f6f8;
  --vector-muted: #acbac7;
  --vector-dim: #92a6b8;
  --vector-mint: #79ebbf;
  --vector-mint-text: #9bf2d2;
  --vector-mint-bg: #16362f;
  --vector-mint-edge: #2c5146;
  --vector-red: #f0a1a7;
  --vector-red-bg: #35232a;
  --vector-red-edge: #55323b;
  --vector-focus: #9aefd1;
  --vector-mono: ui-monospace, SFMono-Regular, "DejaVu Sans Mono", Consolas, monospace;
  font-family: "OpenAI Sans Cyrillic", "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--vector-bg);
  color: var(--vector-text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-size: 15px; }
button, input { font: inherit; }
button { color: inherit; padding: 0; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, a, input { outline: none; }
:is(button, a, input):focus-visible { outline: 2px solid var(--vector-focus); outline-offset: 3px; }
button:disabled { opacity: .6; cursor: wait; }
[hidden] { display: none !important; }
::selection { background: var(--vector-mint-bg); color: var(--vector-text); }

.va-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  grid-template-rows: 69px minmax(0, 1fr);
  grid-template-areas: "side top" "side main";
}
.va-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 58px;
  border-right: 1px solid var(--vector-border);
  background: var(--vector-sidebar);
  padding: 26px 17px 20px;
}
.va-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  width: max-content;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.va-side > .va-brand { margin-left: 8px; }
.va-logo {
  display: grid;
  place-items: center;
  height: 34px;
  width: 34px;
  border-radius: 8px;
  background: var(--vector-mint);
  color: #122b23;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}
.va-logo::before {
  content: "";
  width: 21px;
  height: 17px;
  background: currentColor;
  clip-path: polygon(0 78%, 32% 45%, 53% 62%, 77% 27%, 57% 27%, 57% 14%, 96% 14%, 96% 62%, 85% 62%, 85% 40%, 55% 82%, 33% 64%, 7% 94%);
}
.va-nav { display: grid; gap: 6px; }
.va-nav-item, .va-icon-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--vector-muted);
  cursor: pointer;
  text-decoration: none;
}
.va-nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  text-align: left;
}
.va-nav-item:hover, .va-icon-button:hover { color: var(--vector-text); background: var(--vector-panel-alt); }
.va-nav-item[aria-current="page"] {
  border-color: #29453f;
  background: #192e30;
  color: var(--vector-mint-text);
  font-weight: 700;
}
.va-nav-break { height: 1px; background: var(--vector-border); margin: 4px 4px; }
.va-side .va-profile {
  margin-top: auto;
  border-top: 1px solid var(--vector-border);
  padding: 14px 4px 1px;
}
.va-profile { display: flex; align-items: center; gap: 9px; min-width: 0; }
.va-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--vector-text);
  background: #203140;
  border: 1px solid #34495b;
  font-size: 11px;
  font-weight: 700;
}
.va-profile-copy { min-width: 0; }
.va-profile-copy strong, .va-profile-copy small { display: block; overflow-wrap: anywhere; }
.va-profile-copy strong { font-size: 12px; font-weight: 700; }
.va-profile-copy small { color: var(--vector-dim); font-size: 10px; margin-top: 4px; }
.va-profile .va-icon-button { margin-left: auto; }
.va-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 7px;
}
.va-symbol { display: inline-grid; width: 1.25em; min-width: 1.25em; justify-items: center; line-height: 1; font-size: 1.23em; }
.va-symbol:is(.va-symbol--users, .va-symbol--search, .va-symbol--lock, .va-symbol--eye, .va-symbol--copy) { height: 1.15em; position: relative; }
.va-symbol:is(.va-symbol--users, .va-symbol--search, .va-symbol--lock, .va-symbol--eye, .va-symbol--copy)::before,
.va-symbol:is(.va-symbol--users, .va-symbol--search, .va-symbol--lock, .va-symbol--eye, .va-symbol--copy)::after { content: ""; position: absolute; }
.va-symbol--users::before { width: .42em; height: .42em; border: 1.4px solid; border-radius: 50%; top: .05em; left: .27em; box-shadow: .4em .025em 0 -.04em currentColor; }
.va-symbol--users::after { width: .82em; height: .44em; border: 1.4px solid; border-radius: 48% 48% 3px 3px; bottom: .06em; left: .15em; box-shadow: .32em -.01em 0 -.06em currentColor; }
.va-symbol--search::before { width: .61em; height: .61em; border: 1.4px solid; border-radius: 50%; top: .1em; left: .16em; }
.va-symbol--search::after { width: .37em; height: 1.4px; border-radius: 3px; background: currentColor; transform: rotate(47deg); top: .75em; left: .64em; }
.va-symbol--lock::before { width: .54em; height: .44em; border: 1.4px solid; border-bottom: 0; border-radius: .3em .3em 0 0; top: .08em; left: .355em; }
.va-symbol--lock::after { width: .75em; height: .52em; border: 1.4px solid; border-radius: .12em; left: .25em; top: .49em; }
.va-symbol--eye::before { width: .85em; height: .52em; border: 1.4px solid; border-radius: 55%; top: .3em; left: .2em; }
.va-symbol--eye::after { width: .22em; height: .22em; background: currentColor; border-radius: 50%; top: .455em; left: .515em; }
.va-symbol--copy::before { width: .51em; height: .64em; border: 1.4px solid; border-right: 0; border-bottom: 0; border-radius: .1em; top: .15em; left: .22em; }
.va-symbol--copy::after { width: .52em; height: .65em; border: 1.4px solid; border-radius: .1em; top: .35em; left: .43em; }
.va-top {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--vector-border);
  background: var(--vector-bar);
  padding: 0 28px 0 32px;
}
.va-top .va-brand { display: none; }
.va-crumbs { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--vector-dim); }
.va-crumbs strong { color: var(--vector-muted); }
.va-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 23px;
  border: 1px solid var(--vector-border);
  border-radius: 100px;
  padding: 4px 9px;
  color: var(--vector-muted);
  background: #192532;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}
.va-tag--active { color: var(--vector-mint-text); background: var(--vector-mint-bg); border-color: var(--vector-mint-edge); }
.va-tag--disabled { color: var(--vector-red); background: var(--vector-red-bg); border-color: var(--vector-red-edge); }
.va-tag--pending { color: #f0d7a1; background: #33291d; border-color: #59472f; }
.va-tag-dot {
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.va-main { grid-area: main; width: 100%; max-width: 1400px; margin: 0 auto; padding: 33px 26px 32px 32px; }
.va-bottom { display: none; }
.va-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.va-heading h1 {
  font-size: clamp(33px, 3.4vw, 44px);
  letter-spacing: -.04em;
  line-height: 1.14;
  overflow-wrap: anywhere;
}
.va-heading p { margin-top: 9px; color: var(--vector-muted); font-size: 14px; line-height: 1.5; }
.va-heading > .va-button { flex-shrink: 0; }
.va-button, .va-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--vector-text);
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.2;
}
.va-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #354858;
  border-radius: 8px;
  background: #192732;
  text-align: center;
}
.va-button:hover { background: #203343; }
.va-button--primary { background: var(--vector-mint); color: #122b23; border-color: var(--vector-mint-text); }
.va-button--primary:hover { background: #9af6d3; }
.va-button--danger { color: var(--vector-red); border-color: var(--vector-red-edge); background: transparent; }
.va-button--danger:hover { background: var(--vector-red-bg); }
.va-link-button { border: 0; background: transparent; color: var(--vector-mint-text); min-height: 34px; }
.va-link-button:hover { text-decoration: underline; }
.va-back { display: inline-flex; color: var(--vector-muted); margin-bottom: 18px; }
.va-back .va-link-button { color: inherit; }
.va-panel {
  border: 1px solid var(--vector-border);
  border-radius: 13px;
  background: var(--vector-panel);
}
.va-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--vector-border);
}
.va-search { position: relative; flex: 0 1 255px; }
.va-search > .va-symbol {
  position: absolute;
  top: 11px;
  left: 9px;
  color: var(--vector-dim);
  pointer-events: none;
}
.va-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #344858;
  border-radius: 8px;
  color: var(--vector-text);
  background: #0d1720;
  font-size: 14px;
}
.va-input::placeholder { color: var(--vector-dim); opacity: 1; }
.va-search > .va-input { min-height: 38px; padding: 7px 10px 7px 34px; font-size: 13px; }
.va-filters { display: flex; align-items: center; gap: 5px; }
.va-filter {
  padding: 5px 9px;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--vector-muted);
  font-size: 12px;
  cursor: pointer;
}
.va-filter:hover, .va-filter[aria-pressed="true"] { background: #203140; border-color: #34495b; color: var(--vector-text); }
.va-count { padding: 12px 14px; border-top: 1px solid var(--vector-border); font-size: 12px; color: var(--vector-dim); }
.va-table { width: 100%; border-collapse: collapse; text-align: left; }
.va-table th, .va-table td { padding: 11px 14px; font-size: 13px; }
.va-table th {
  color: var(--vector-dim);
  background: var(--vector-panel-alt);
  font-size: 11px;
  font-weight: 650;
}
.va-table th:last-child, .va-table td:last-child { text-align: right; }
.va-table td { border-top: 1px solid var(--vector-border); }
.va-table td:not(:first-child) { white-space: nowrap; }
.va-data { font: 12px var(--vector-mono); color: var(--vector-muted); }
.va-empty { padding: 30px 16px; text-align: center; color: var(--vector-muted); font-size: 14px; }
.va-mobile-rows { display: none; }
.va-mobile-row { padding: 12px 11px; }
.va-mobile-row + .va-mobile-row { border-top: 1px solid var(--vector-border); }
.va-mobile-row-head, .va-mobile-row-tail { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.va-mobile-row-head > .va-tag { flex-shrink: 0; }
.va-mobile-row-tail { margin-top: 5px; }
.va-mobile-row-tail p { color: var(--vector-muted); font-size: 11px; }
.va-mobile-row-tail .va-link-button { font-size: 12px; }
.va-cards {
  display: grid;
  grid-template-columns: minmax(0, 530px) minmax(0, 300px);
  gap: 16px;
  align-items: start;
}
.va-form-card, .va-help { padding: 18px; }
.va-form-card h2, .va-help h2 { letter-spacing: -.02em; }
.va-form-card h2 { font-size: 19px; }
.va-help { display: grid; grid-template-columns: auto 1fr; gap: 9px; }
.va-help > .va-symbol { color: var(--vector-mint-text); }
.va-help h2 { font-size: 14px; margin-bottom: 6px; }
.va-help p, .va-hint { color: var(--vector-muted); font-size: 12px; line-height: 1.5; }
.va-field { display: grid; gap: 7px; color: var(--vector-muted); font-size: 13px; font-weight: 650; }
.va-field + .va-field { margin-top: 16px; }
.va-form-card > * + .va-hint, .va-form-card .va-field + .va-hint { margin-top: 13px; }
.va-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.va-actions--stack { display: grid; }
.va-card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 14px;
  border: 1px solid var(--vector-mint-edge);
  border-radius: 10px;
  background: var(--vector-mint-bg);
  color: var(--vector-mint-text);
  font-size: 19px;
}
.va-credentials {
  margin-top: 15px;
  padding: 6px 10px;
  border: 1px solid #344554;
  border-radius: 8px;
  background: #0d1720;
}
.va-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 37px;
  padding: 5px 0;
}
.va-detail-row + .va-detail-row { border-top: 1px solid var(--vector-border); }
.va-detail-row dt { color: var(--vector-muted); font-size: 12px; }
.va-detail-row dd { font: 13px var(--vector-mono); text-align: right; overflow-wrap: anywhere; max-width: 60%; }
.va-alert {
  display: block;
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid var(--vector-red-edge);
  border-radius: 8px;
  color: var(--vector-red);
  background: var(--vector-red-bg);
  font-size: 13px;
  line-height: 1.4;
}
.va-alert:empty { display: none; }
.va-status { margin-top: 12px; color: var(--vector-muted); font-size: 13px; }
.va-status:empty { display: none; }

.va-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr);
}
.va-auth-hero {
  display: flex;
  flex-direction: column;
  padding: 34px clamp(28px, 4vw, 56px);
  background: #101e27;
  border-right: 1px solid var(--vector-border);
}
.va-auth-intro { margin-top: clamp(46px, 12vh, 116px); }
.va-auth-intro h1 { max-width: 520px; font-size: clamp(42px, 5vw, 64px); letter-spacing: -.055em; line-height: 1.08; }
.va-auth-intro p { margin-top: 13px; color: var(--vector-muted); font-size: 15px; line-height: 1.5; }
.va-auth-content { display: grid; place-items: center; padding: 34px; }
.va-auth-form { width: min(100%, 360px); }
.va-auth-copy { margin-bottom: 25px; }
.va-auth-copy h2 { font-size: 31px; letter-spacing: -.03em; line-height: 1.16; }
.va-auth-copy p { margin-top: 9px; color: var(--vector-muted); font-size: 13px; line-height: 1.5; }
.va-auth-form .va-actions .va-button { width: 100%; }
.va-auth-back { margin-top: 11px; font-size: 12px; }
.va-password-control { position: relative; }
.va-password-control .va-input { padding-right: 43px; }
.va-password-control .va-icon-button { position: absolute; right: 5px; top: 5px; }
.va-loading { display: grid; place-items: center; min-height: 55vh; color: var(--vector-muted); }

@media (max-width: 935px) and (min-width: 721px) {
  .va-shell { grid-template-columns: 185px minmax(0, 1fr); }
  .va-top { padding-left: 25px; }
  .va-main { padding-left: 25px; }
  .va-table th, .va-table td { padding-inline: 10px; }
  .va-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .va-table { display: none; }
  .va-mobile-rows { display: block; }
}
@media (max-width: 720px) {
  .va-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 60px minmax(0, 1fr) auto;
    grid-template-areas: "top" "main" "bottom";
  }
  .va-side, .va-crumbs { display: none; }
  .va-top { padding: 0 16px; }
  .va-top .va-brand { display: inline-flex; }
  .va-brand { font-size: 20px; }
  .va-logo { width: 30px; height: 30px; font-size: 23px; }
  .va-main { padding: 19px 16px 24px; }
  .va-heading { align-items: stretch; flex-direction: column; margin-bottom: 16px; gap: 13px; }
  .va-heading h1 { font-size: 32px; }
  .va-heading p { font-size: 13px; margin-top: 7px; }
  .va-back { margin-bottom: 12px; }
  .va-bottom {
    position: sticky;
    bottom: 0;
    isolation: isolate;
    z-index: 2;
    grid-area: bottom;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: var(--vector-bar);
    border-top: 1px solid var(--vector-border);
  }
  .va-bottom .va-nav-item {
    min-height: 58px;
    display: grid;
    place-items: center;
    justify-content: center;
    align-content: center;
    gap: 4px;
    border-radius: 0;
    font-size: 11px;
    padding: 0 4px;
    text-align: center;
  }
  .va-bottom .va-nav-item[aria-current="page"] { background: transparent; border-color: transparent; }
  .va-bottom .va-nav-item .va-symbol { font-size: 19px; }
  .va-cards { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .va-form-card, .va-help { padding: 15px; }
  .va-tools { gap: 6px; flex-wrap: wrap; justify-content: space-between; padding: 9px 11px; }
  .va-search { flex: 1 1 100%; }
  .va-filters { gap: 2px; flex-wrap: wrap; }
  .va-filter { padding-inline: 7px; }
  .va-auth { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .va-auth-hero { border-right: 0; border-bottom: 1px solid var(--vector-border); padding: 20px 17px 26px; }
  .va-auth-intro { margin-top: 31px; }
  .va-auth-intro h1 { font-size: 39px; }
  .va-auth-intro p { font-size: 13px; }
  .va-auth-content { place-items: start center; padding: 27px 17px; }
  .va-auth-copy h2 { font-size: 27px; }
}
@media (max-width: 340px) {
  .va-main { padding-inline: 12px; }
  .va-heading h1 { font-size: 28px; }
  .va-form-card .va-actions:not(.va-actions--stack) > button { flex: 1 1 100%; }
}

.va-confirmation { margin-top: 13px; }
.va-table .va-empty { padding: 30px 16px; text-align: center; }
:is(h1,h2,h3,h4,h5,h6)[tabindex="-1"]:focus { outline: none; }
