/* mayrr. — shared interface foundations */
:root {
  color-scheme: dark;
  --bg-body: #0d0f14;
  --bg-side: #111319;
  --bg-card: #151820;
  --bg-surface: #1b1f29;
  --bg-input: #101319;
  --bg-hover: #262b35;
  --border: #303642;
  --border-light: #262b35;
  --accent: #5274ff;
  --accent-rgb: 82, 116, 255;
  --accent-soft: #5274ff12;
  --success: #a4dab0;
  --success-rgb: 164, 218, 176;
  --ok: var(--success);
  --warn: #f0c779;
  --warn-rgb: 240, 199, 121;
  --danger: #f49894;
  --danger-rgb: 244, 152, 148;
  --text: #f2f4fa;
  --text-2: #a4adbf;
  --text-3: #7f899d;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
::selection {
  background: var(--accent);
  color: #ffffff;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
img {
  display: block;
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2.15rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1rem;
}
p {
  overflow-wrap: break-word;
}
.eyebrow,
.card-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow {
  color: var(--accent);
}
.muted {
  color: var(--text-2);
}
.page-description {
  font-size: 0.9375rem;
  color: var(--text-2);
  margin-top: 9px;
  max-width: 620px;
}
.hidden,
[hidden] {
  display: none !important;
}
.mb-row {
  margin-bottom: 24px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px;
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 0;
  white-space: nowrap;
}
.btn,
.btn-tariff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
  white-space: normal;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: #7591ff;
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  border-color: #3d475b;
  color: var(--text);
}
.btn-outline:hover {
  background: var(--bg-hover);
  border-color: #647393;
  color: var(--text);
}
.btn-danger-o {
  background: transparent;
  border-color: #70423f;
  color: var(--danger);
}
.btn-danger-o:hover {
  background: #f4989410;
}
.btn-sm {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.875rem;
}
.btn-full {
  width: 100%;
}
.btn:disabled {
  pointer-events: none;
}
.icon-btn,
.modal-x,
.ni-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 22px;
  cursor: pointer;
}
.icon-btn:hover,
.modal-x:hover,
.ni-del:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.modal-x {
  position: relative;
  padding: 0;
  font-size: 0;
  line-height: 1;
}
.modal-x::before,
.modal-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  background: var(--bg-input);
  border: 1px solid #343d4e;
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 0.9375rem;
  line-height: 1.4;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #5274ff14;
}
input::placeholder,
textarea::placeholder {
  color: #7f899d;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  min-height: 18px;
  height: 18px;
}
input[readonly],
input:disabled {
  color: var(--text-3);
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
label.field > span {
  font-size: 0.875rem;
  color: var(--text-2);
  font-weight: 500;
}
.field-help {
  font-size: 0.8125rem;
  color: var(--text-3);
}
.field .field-help {
  font-size: 0.8125rem;
  font-weight: 400;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 246px;
  min-width: 246px;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 20px;
  background: var(--bg-side);
  border-right: 1px solid var(--border-light);
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 36px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: #141c0b;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 25px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.15em;
  padding-right: 4px;
}
.brand-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.brand h1,
.wordmark {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 7px;
}
.nav-label {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 12px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.si {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 11px 13px;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.35;
  width: 100%;
  transition:
    background 0.16s,
    color 0.16s;
}
.si svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
}
.si:hover {
  background: #ffffff08;
  color: var(--text);
}
.si.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
.si.out {
  margin-top: 24px;
  color: var(--text-3);
}
.si.out:hover {
  color: var(--danger);
  background: #f498940b;
}
.side-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-light);
  margin-top: 15px;
  padding: 18px 12px 0;
  font-size: 0.75rem;
  color: var(--text-3);
}
.live {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.sidebar-note {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 28px 0 0;
  color: var(--text-2);
  font-size: 0.8125rem;
}
.sidebar-note strong {
  color: var(--text);
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
}
.sidebar-note a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}
.main {
  flex: 1;
  min-width: 0;
  padding: 46px clamp(24px, 3.3vw, 56px) 64px;
  max-width: 1800px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.page-head-left .eyebrow {
  margin-bottom: 10px;
}
.page-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mobile-bar {
  display: none;
}
.view-panel {
  display: none;
}
.view-panel.active {
  display: block;
  animation: fadeUp 0.25s var(--ease);
}
.card {
  padding: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.card-head h3 {
  margin-top: 7px;
}
.card-head > div {
  min-width: 0;
}
.card-icon,
.prod-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #5274ff0c;
  color: var(--accent);
  border: 1px solid #5274ff24;
}
.card-val {
  font-size: 1.8rem;
  font-weight: 550;
  letter-spacing: -0.04em;
  margin-top: 15px;
  line-height: 1.2;
}
.card-sub {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: 10px;
}
.hero-card {
  border-color: #425793;
  background: #181f37;
}
.g {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.g6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.s2 {
  grid-column: span 2;
}
.s3 {
  grid-column: span 3;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}
.tab-btn {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.tab-btn.active {
  background: var(--bg-surface);
  color: var(--text);
  box-shadow: 0 1px 3px #0003;
}
.tab-body {
  display: none;
}
.tab-body.active {
  display: block;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.015em;
}
.badge-accent {
  background: #5274ff14;
  color: var(--accent);
}
.badge-ok {
  background: #a4dab014;
  color: var(--success);
}
.badge-warn {
  background: #f0c77914;
  color: var(--warn);
}
.badge-err,
.badge-bad {
  background: #f4989414;
  color: var(--danger);
}
.badge-dim {
  background: #ffffff09;
  color: var(--text-2);
}
.prod {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 0;
  border-top: 1px solid var(--border-light);
  min-width: 0;
}
.prod-txt {
  flex: 1;
  min-width: 0;
}
.prod-txt h4 {
  line-height: 1.5;
  font-size: 1rem;
}
.prod-txt p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: 4px;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--border-light);
  border-radius: 10px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.tbl th {
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  background: var(--bg-input);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.tbl td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl tr:hover td {
  background: #ffffff02;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.9375rem;
  grid-column: 1/-1;
}
.empty::before {
  content: "—";
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
  color: var(--text-3);
}
.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s,
    visibility 0.18s;
  padding: 24px;
  isolation: isolate;
}
.modal-wrap.open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #070b08ba;
  backdrop-filter: blur(8px);
  z-index: -1;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid #465574;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  scrollbar-width: thin;
  padding: 30px;
  box-shadow: 0 28px 100px #0008;
  transform: translateY(10px);
  transition: transform 0.18s;
}
.modal-box:focus-visible { outline: none; }
.modal-top > div { min-width: 0; overflow-wrap: anywhere; }
.modal-wrap.open .modal-box {
  transform: none;
}
.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}
.modal-top h3 {
  font-size: 1.6rem;
  margin-top: 6px;
}
.toasts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  max-width: calc(100vw - 32px);
}
.toast {
  border: 1px solid #465574;
  background: var(--bg-surface);
  padding: 16px 20px;
  max-width: 420px;
  border-radius: 12px;
  font-size: 0.875rem;
  box-shadow: 0 10px 40px #0006;
  animation: fadeUp 0.2s;
}
.toast-ok {
  border-left: 3px solid var(--success);
}
.toast-err {
  border-left: 3px solid var(--danger);
}
.toggle-sw,
.um-toggle {
  display: inline-flex;
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  cursor: pointer;
}
.toggle-sw input,
.um-toggle input {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  z-index: 1;
  cursor: pointer;
}
.sw-track,
.um-toggle-track {
  position: absolute;
  inset: 0;
  border: 1px solid #66728b;
  border-radius: 20px;
  background: #292f3d;
  transition: background 0.18s;
}
.sw-thumb,
.um-toggle-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #bcc7de;
  border-radius: 50%;
  transition: transform 0.18s;
}
.toggle-sw input:checked + .sw-track,
.um-toggle input:checked + .um-toggle-track {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-sw input:checked + .sw-track .sw-thumb,
.um-toggle input:checked + .um-toggle-track .um-toggle-thumb {
  transform: translateX(16px);
  background: #ffffff;
}
.toggle-sw input:focus-visible + .sw-track,
.um-toggle input:focus-visible + .um-toggle-track {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1800px) {
  .main {
    margin: 0 auto;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 218px;
    min-width: 218px;
    padding-inline: 14px;
  }
  .main {
    padding: 32px 24px;
  }
  .g6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g3 > .card:last-child:nth-child(3) {
    grid-column: 1/-1;
  }
  .card {
    padding: 22px;
  }
  .s3 {
    grid-column: auto;
  }
}
@media (max-width: 800px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: min(300px, 85vw);
    height: calc(100dvh - 64px);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 10px 0 50px #0006;
  }
  .nav-open .sidebar {
    transform: none;
  }
  .nav-scrim {
    display: none;
    position: fixed;
    inset: 64px 0 0;
    background: #0008;
    z-index: 80;
    border: 0;
  }
  .nav-open .nav-scrim {
    display: block;
  }
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 64px;
    background: #111319f5;
    border-bottom: 1px solid var(--border);
  }
  .mobile-bar .wordmark {
    font-size: 1.6rem;
  }
  .main {
    padding: 28px 20px 48px;
  }
  .page-head {
    margin-bottom: 26px;
    align-items: flex-start;
    gap: 16px;
  }
  .page-head h2 {
    font-size: 1.85rem;
  }
  .page-head-actions {
    gap: 8px;
  }
  .sidebar .brand {
    padding-bottom: 28px;
  }
  .g3 {
    grid-template-columns: 1fr;
  }
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .s2,
  .s3 {
    grid-column: auto;
  }
  .card-head {
    flex-wrap: wrap;
  }
  .tbl {
    min-width: 680px;
  }
  .modal-wrap {
    padding: 12px;
  }
  .modal-box {
    padding: 24px;
    max-height: calc(100dvh - 24px);
  }
  .modal-top h3 {
    font-size: 1.4rem;
  }
  .card {
    padding: 22px;
  }
  .mb-row {
    margin-bottom: 20px;
  }
}
@media (max-width: 480px) {
  .g2 {
    grid-template-columns: 1fr;
  }
  .g6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-head {
    flex-wrap: wrap;
  }
  .card {
    padding: 20px;
  }
  .main {
    padding-inline: 16px;
  }
  .card-head > div[style*="display:flex"] {
    flex-wrap: wrap;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: #3a4257;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
.nav-scrim {
  display: none;
}
.dialog-open {
  overflow: hidden;
}
.shop-layout {
  display: none;
}
.shop-layout.active {
  display: grid;
}
.sidebar .brand a {
  color: var(--text);
}
.card-head input[aria-label] {
  font-size: 0.875rem;
}
.card-head {
  overflow-wrap: anywhere;
}

.view-panel:not(.active) {
  display: none !important;
}
.btn {
  background-color: transparent;
}
.btn-primary {
  background-color: var(--accent);
}
.btn-primary:hover {
  background-color: #7591ff;
}
.rail-support .btn {
  background: transparent;
}
.nav-scrim {
  display: none;
}
@media (max-width: 800px) {
  .nav-open .nav-scrim {
    display: block;
  }
}

/* mayrr. — horizontal workspace composition */
:root {
  --r-sm: 5px;
  --r-md: 7px;
  --r-lg: 8px;
  --r-xl: 10px;
  --font: "Segoe UI", Arial, sans-serif;
}
body {
  background: #0d0f14;
}
.layout {
  display: block;
}
.main {
  width: 100%;
  max-width: 1400px;
  padding: 48px 48px 80px;
  margin: 0 auto;
}
.workspace-header {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 24px 40px;
  border-bottom: 1px solid #292d38;
  background: #101219;
  min-height: 96px;
}
.workspace-header .brand {
  padding: 0;
  min-width: 135px;
}
.wordmark {
  color: #fff !important;
  font-size: 2rem;
  letter-spacing: -0.07em;
  font-weight: 700;
  white-space: nowrap;
}
.wordmark::after {
  content: ".";
  color: var(--accent);
}
.workspace-header .brand small {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-top: 5px;
}
.workspace-header nav {
  display: flex;
  gap: 5px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.workspace-header .si {
  width: auto;
  min-height: 40px;
  white-space: nowrap;
  font-size: 0.8125rem;
  padding: 10px 13px;
  border-radius: 4px;
  gap: 7px;
}
.workspace-header .si svg {
  display: none;
}
.workspace-header .si.active {
  color: #fff;
  background: #5274ff20;
  border-color: #5274ff38;
}
.workspace-header .si:hover {
  color: #fff;
  background: #ffffff06;
}
.workspace-header .si.out {
  margin: 0;
  padding-right: 0;
  color: var(--text-3);
}
.workspace-header #admin-nav-link {
  margin-left: auto;
}
.workspace-header nav > a {
  margin-left: auto;
}
.page-head {
  margin-bottom: 34px;
  align-items: flex-end;
}
.page-head h2 {
  font-size: 3rem;
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.page-head .eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  color: var(--text-3);
}
.page-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 16px;
}
.card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.card-head {
  margin-bottom: 24px;
}
.card-head h3 {
  font-size: 1.5rem;
  font-weight: 450;
  margin-top: 10px;
  letter-spacing: -0.035em;
}
.card-label {
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
}
.btn {
  background: transparent;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 42px;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: #7591ff;
  color: white;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font: 500 0.8125rem var(--font);
  padding: 9px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #495a8d;
  color: #a9bbff;
  cursor: pointer;
  white-space: nowrap;
}
.text-button:hover {
  color: white;
  border-color: var(--accent);
}
.tbl th {
  background: #151923;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}
.tbl td {
  padding: 21px 18px;
}
.table-scroll {
  border-radius: 5px;
}
.badge {
  border-radius: 4px;
  padding: 5px 8px;
  font-weight: 450;
  font-size: 0.75rem;
}
.empty {
  padding: 50px 20px;
  border-top: 1px solid var(--border-light);
}
.modal-box {
  background: #151922;
  border-color: #3d465a;
  border-radius: 10px;
  padding: 30px;
}
.modal-top {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}
.modal-top h3 {
  font-weight: 450;
  font-size: 1.7rem;
}
.toasts .toast {
  border-radius: 6px;
  background: #1c2333;
}
.prod-ico {
  border-radius: 4px;
  background: #5274ff0d;
  border-color: #34416b;
  color: #a9bbff;
}
.card-icon {
  border-radius: 4px;
}
input,
textarea,
select {
  border-radius: 5px;
  background: #10141d;
  border-color: #394357;
}
.tabs {
  border-radius: 5px;
  background: #0d111b;
}
.tab-btn {
  border-radius: 3px;
}
.tab-btn.active {
  background: #202940;
}
.btn-outline {
  border-color: #46516a;
}
.icon-btn,
.modal-x,
.ni-del {
  border-radius: 5px;
}
.dialog-open {
  overflow: hidden;
}
.g {
  gap: 24px;
}
.mb-row {
  margin-bottom: 36px;
}
.workspace-section {
  min-width: 0;
}
.nav-scrim {
  display: none;
}
.ui-select {
  min-width: 0;
  position: relative;
  width: 100%;
}
.native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.select-trigger {
  min-height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 13px;
  background: #10141d;
  border: 1px solid #394357;
  border-radius: 5px;
  color: var(--text);
  font: 400 0.9375rem var(--font);
  text-align: left;
}
.select-trigger:hover,
.select-trigger[aria-expanded="true"] {
  border-color: var(--accent);
}
.select-trigger > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-chevron {
  font-size: 14px;
  color: var(--text-3);
}
.select-menu {
  margin: 0;
  padding: 6px;
  background: #1a2030;
  color: var(--text);
  border: 1px solid #465879;
  border-radius: 6px;
  box-shadow: 0 16px 50px #0008;
  position: fixed;
  min-width: 180px;
  max-width: calc(100vw - 24px);
  overflow-y: auto;
}
.select-menu:popover-open {
  display: block;
}
.select-menu::backdrop {
  background: transparent;
}
.select-option {
  padding: 11px 12px;
  font-size: 0.875rem;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow-wrap: anywhere;
}
.select-option[aria-selected="true"] {
  background: #5274ff29;
  color: #c6d1ff;
}
.select-option[aria-selected="true"]::after {
  content: "✓";
  color: #94abff;
}
.select-option:hover,
.select-option:focus {
  background: #2b3652;
  color: white;
}
.select-option[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.select-search {
  position: sticky;
  top: 0;
  min-height: 38px;
  font-size: 0.875rem;
  margin-bottom: 5px;
  background: #10141d;
}
.select-empty {
  font-size: 0.8125rem;
  padding: 16px;
  color: var(--text-3);
}
@media (max-width: 1150px) {
  .workspace-header {
    gap: 18px;
    padding-inline: 24px;
  }
  .workspace-header .brand {
    min-width: 110px;
  }
  .workspace-header .si {
    padding: 9px 10px;
    font-size: 0.75rem;
  }
  .workspace-header nav {
    gap: 1px;
  }
  .main {
    padding: 36px 32px 60px;
  }
  .page-head h2 {
    font-size: 2.6rem;
  }
}
@media (max-width: 800px) {
  .workspace-header {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: min(330px, 90vw);
    height: calc(100dvh - 64px);
    z-index: 90;
    transform: translateX(-105%);
    transition: transform 0.2s;
    background: #11151f;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px;
    gap: 28px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
  }
  .nav-open .workspace-header {
    transform: none;
  }
  .workspace-header nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex: 1;
  }
  .workspace-header .si {
    font-size: 0.9375rem;
    min-height: 44px;
    padding: 12px 14px;
  }
  .workspace-header nav > a,
  .workspace-header #admin-nav-link {
    margin-left: 0;
  }
  .workspace-header .si.out {
    padding: 12px 14px;
  }
  .workspace-header .brand {
    padding-bottom: 10px;
  }
  .mobile-bar {
    background: #101219;
  }
  .main {
    padding: 32px 24px 56px;
  }
  .page-head h2 {
    font-size: 2.3rem;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-description {
    font-size: 0.875rem;
  }
  .nav-open .nav-scrim {
    display: block;
  }
  .modal-box {
    padding: 24px;
  }
  .card {
    padding: 0;
  }
  .mb-row {
    margin-bottom: 30px;
  }
}
@media (max-width: 480px) {
  .main {
    padding-inline: 20px;
  }
  .page-head h2 {
    font-size: 2.05rem;
  }
  .page-head {
    gap: 14px;
  }
  .btn {
    font-size: 0.8125rem;
  }
  .card {
    padding: 0;
  }
  .modal-box {
    padding: 22px;
  }
  .wordmark {
    font-size: 1.8rem;
  }
}

.eyebrow,
.card-label,
.stat-lbl,
.workspace-header .brand small {
  font-size: 0.75rem;
}
.badge-accent {
  color: #a6b9ff;
}
.workspace-header .si {
  font-size: 0.875rem;
}
.btn-primary,
.tariff-popular .btn-tariff {
  background: #4764e8;
  border-color: #4764e8;
}
.btn-primary:hover,
.tariff-popular .btn-tariff:hover {
  background: #607df5;
}
.info-item span,
.field-help {
  font-size: 0.8125rem;
}
.select-menu {
  inset: auto;
}
.select-menu:popover-open {
  animation: none;
}
.skip-link:focus {
  color: white;
}
