/* src/styles/tokens.css */
:root {
  --brand-50: #eef3fd;
  --brand-100: #d9e4fa;
  --brand-500: #2653c5;
  --brand-600: #1e44a6;
  --brand-700: #183783;
  --accent-500: #f7941d;
  --accent-600: #e07f0a;
  --accent-soft: #fef3e2;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e8f0;
  --border-strong: #d3d9e4;
  --text: #17203a;
  --text-2: #5a6478;
  --text-3: #8a93a8;
  --text-on-brand: #ffffff;
  --hot: #e11d2e;
  --hot-soft: #fdeaec;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --warn: #e07f0a;
  --warn-soft: #fdf2e0;
  --info: #2563eb;
  --info-soft: #e8effd;
  --neutral: #64748b;
  --neutral-soft: #eef1f5;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(23, 32, 58, .05), 0 1px 3px rgba(23, 32, 58, .06);
  --shadow-2: 0 4px 14px rgba(23, 32, 58, .08);
  --shadow-3: 0 10px 30px rgba(23, 32, 58, .14);
  --sidebar-bg: #101a33;
  --sidebar-text: #aeb9d2;
  --sidebar-text-active: #ffffff;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --sidebar-active: rgba(247, 148, 29, .14);
  --sidebar-border: rgba(255, 255, 255, .08);
  --sidebar-width: 264px;
  --font:
    "Segoe UI",
    system-ui,
    -apple-system,
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  --font-head: var(--font);
  --fs-scale: 1;
  --fs-xs: calc(11.5px * var(--fs-scale));
  --fs-sm: calc(13px * var(--fs-scale));
  --fs-base: calc(14px * var(--fs-scale));
  --fs-md: calc(15px * var(--fs-scale));
  --fs-lg: calc(17px * var(--fs-scale));
  --fs-h3: calc(19px * var(--fs-scale));
  --fs-h2: calc(22px * var(--fs-scale));
  --fs-h1: calc(28px * var(--fs-scale));
  --fw-base: 400;
  --fw-med: 600;
  --fw-semi: 700;
  --fw-bold: 800;
  --lh-base: 1.45;
  --lh-head: 1.2;
  --ls-head: -.01em;
  --btn-radius: 9px;
  --btn-pad-y: 8.5px;
  --btn-pad-x: 15px;
  --btn-fs: var(--fs-sm);
  --btn-fw: var(--fw-med);
  --btn-primary-bg: var(--brand-600);
  --btn-primary-bg-hover: var(--brand-700);
  --btn-primary-text: var(--text-on-brand);
  --btn-primary-shadow: 0 2px 8px rgba(30, 68, 166, .3);
  --btn-outline-bg: var(--surface);
  --btn-outline-text: var(--text);
  --btn-outline-border: var(--border-strong);
  --btn-outline-accent: var(--brand-500);
  --btn-ghost-text: var(--text-2);
  --btn-ghost-bg-hover: var(--neutral-soft);
  --btn-accent-bg: var(--accent-500);
  --btn-accent-bg-hover: var(--accent-600);
  --btn-accent-text: #ffffff;
  --btn-accent-shadow: 0 3px 10px rgba(247, 148, 29, .4);
  --input-radius: 9px;
  --input-pad-y: 8.5px;
  --input-pad-x: 11px;
  --input-fs: var(--fs-sm);
  --input-bg: var(--surface-2);
  --input-bg-focus: var(--surface);
  --input-text: var(--text);
  --input-border: var(--border);
  --input-border-focus: var(--brand-500);
  --badge-radius: 7px;
  --badge-pad-y: 4.5px;
  --badge-pad-x: 10px;
  --badge-fs: var(--fs-xs);
  --badge-fw: var(--fw-semi);
  --badge-hot-bg: var(--hot);
  --badge-hot-text: #ffffff;
  --badge-contract-bg: var(--ok);
  --badge-contract-text: #ffffff;
  --badge-soft-bg: var(--brand-50);
  --badge-soft-text: var(--brand-500);
  --chip-radius: 999px;
  --chip-pad-y: 6.5px;
  --chip-pad-x: 12px;
  --chip-fs: var(--fs-sm);
  --chip-fw: var(--fw-med);
  --chip-bg: var(--surface);
  --chip-text: var(--text-2);
  --chip-border: var(--border-strong);
  --chip-active-bg: var(--brand-600);
  --chip-active-text: #ffffff;
  --card-bg: var(--surface);
  --card-border: var(--border);
  --card-radius: var(--radius);
  --card-shadow: var(--shadow-1);
}
:root[data-theme=dark] {
  --bg: #0d1220;
  --surface: #161d30;
  --surface-2: #1b2338;
  --border: #262f48;
  --border-strong: #333d5a;
  --text: #e6eaf4;
  --text-2: #a3adc4;
  --text-3: #6d7893;
  --brand-50: #1a2440;
  --brand-100: #21305a;
  --brand-500: #5c85f2;
  --brand-600: #4a72e0;
  --brand-700: #3a5fc4;
  --accent-soft: #33270f;
  --hot-soft: #38151a;
  --ok-soft: #10291a;
  --warn-soft: #33250e;
  --info-soft: #16223d;
  --neutral-soft: #222a3f;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-3: 0 10px 30px rgba(0, 0, 0, .5);
  --sidebar-bg: #0b1122;
  --sidebar-border: rgba(255, 255, 255, .06);
}

/* src/styles/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
select {
  font: inherit;
  color: inherit;
}
.icon {
  flex: none;
  display: block;
}
.muted {
  color: var(--text-3);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}
body,
.card,
.sidebar,
.header,
.input,
.chip,
.btn {
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease;
}

/* src/styles/typography.css */
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}
input,
select,
textarea,
button {
  font-family: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
}
h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
}
h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}
h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semi);
}
h4 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semi);
}
h5,
h6 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
}
.p-page,
.p-shell,
.content,
.a3-canvas {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}
.blk :is(h1, h2, h3),
.blk :is(.hero-brand-name, .rail-title, .cta-title, .banner-accent-title, .sec-title) {
  font-family: var(--font-head);
  letter-spacing: var(--ls-head);
}

/* src/styles/layout.css */
.shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.sidebar {
  width: var(--sidebar-width);
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  transition: width .22s ease, margin-left .22s ease;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--sidebar-border);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      var(--accent-500),
      #fbb03b);
  color: #fff;
  box-shadow: 0 4px 10px rgba(247, 148, 29, .35);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-text b {
  color: #fff;
  font-size: var(--fs-lg);
  letter-spacing: .12em;
}
.brand-sub {
  font-size: var(--fs-xs);
  color: var(--sidebar-text);
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  background-clip: content-box;
}
.nav-group {
  margin-bottom: 6px;
}
.nav-group-title {
  padding: 12px 10px 5px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-med);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(174, 185, 210, .55);
  white-space: nowrap;
  overflow: hidden;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8.5px 10px;
  margin: 1px 0;
  border-radius: 9px;
  font-size: var(--fs-sm);
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  transition: background .15s ease, color .15s ease;
}
.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-active);
  box-shadow: inset 2.5px 0 0 var(--accent-500);
  font-weight: var(--fw-med);
}
.nav-item.active .icon {
  color: var(--accent-500);
}
.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--sidebar-border);
}
.nav-portal {
  color: #ffc880;
}
.nav-portal:hover {
  background: var(--sidebar-hover);
  color: #ffd9a8;
}
.sidebar-collapsed .sidebar {
  width: 68px;
}
.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-group-title {
  display: none;
}
.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 10px;
}
.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 18px 10px 14px;
}
.shell-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  flex: none;
  padding: 0 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.header-titles {
  min-width: 0;
}
.header-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
}
.header-subtitle {
  font-size: var(--fs-xs);
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.header-sep {
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 4px;
}
.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  margin-left: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.profile-chip:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--brand-500),
      var(--brand-700));
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
}
.profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.profile-name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
}
.profile-role {
  font-size: var(--fs-xs);
  color: var(--accent-600);
  font-weight: var(--fw-med);
}
.content {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}
.page {
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .header .btn span {
    display: none;
  }
  .profile-meta {
    display: none;
  }
}

/* src/styles/components.css */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  font-size: var(--btn-fs);
  font-weight: var(--btn-fw);
  border: 1px solid transparent;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .05s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn.sm {
  padding: calc(var(--btn-pad-y) - 2px) calc(var(--btn-pad-x) - 3px);
  font-size: var(--btn-fs);
}
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--btn-primary-shadow);
}
.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
}
.btn-outline {
  border-color: var(--btn-outline-border);
  color: var(--btn-outline-text);
  background: var(--btn-outline-bg);
}
.btn-outline:hover {
  border-color: var(--btn-outline-accent);
  color: var(--btn-outline-accent);
}
.btn-ghost {
  color: var(--btn-ghost-text);
}
.btn-ghost:hover {
  background: var(--btn-ghost-bg-hover);
  color: var(--text);
}
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease;
}
.icon-btn:hover {
  background: var(--neutral-soft);
  color: var(--text);
}
.icon-btn.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.icon-btn.has-dot::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hot);
  border: 2px solid var(--surface);
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
}
.card-title .icon {
  color: var(--brand-500);
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--chip-pad-y) var(--chip-pad-x);
  border: 1px solid var(--chip-border);
  border-radius: var(--chip-radius);
  font-size: var(--chip-fs);
  font-weight: var(--chip-fw);
  color: var(--chip-text);
  background: var(--chip-bg);
  transition: all .15s ease;
}
.chip:hover {
  border-color: var(--chip-active-bg);
  color: var(--chip-active-bg);
}
.chip.active {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-bg);
  color: var(--chip-active-text);
  box-shadow: 0 2px 6px rgba(30, 68, 166, .3);
}
.chip-select {
  background: var(--surface-2);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: var(--badge-pad-y) var(--badge-pad-x);
  border-radius: var(--badge-radius);
  font-size: var(--badge-fs);
  font-weight: var(--badge-fw);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.badge-hot {
  background: var(--badge-hot-bg);
  color: var(--badge-hot-text);
}
.badge-contract {
  background: var(--badge-contract-bg);
  color: var(--badge-contract-text);
}
.badge-deposit {
  background: var(--warn);
}
.badge-archive {
  background: var(--neutral);
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--badge-pad-x);
  border-radius: 999px;
  background: var(--badge-soft-bg);
  color: var(--badge-soft-text);
  font-size: var(--badge-fs);
  font-weight: var(--badge-fw);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.input {
  width: 100%;
  padding: var(--input-pad-y) var(--input-pad-x);
  background: var(--input-bg);
  color: var(--input-text);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  font-size: var(--input-fs);
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}
.input:hover {
  border-color: var(--border-strong);
}
.input:focus {
  outline: none;
  border-color: var(--input-border-focus);
  background: var(--input-bg-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--input-border-focus) 18%, transparent);
}
.select {
  appearance: none;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--text-3) 50%),
    linear-gradient(
      135deg,
      var(--text-3) 50%,
      transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 20px;
  color: var(--text-3);
  text-align: center;
}
.empty-state p {
  font-size: var(--fs-md);
  font-weight: var(--fw-med);
  color: var(--text-2);
}
.empty-state.big {
  padding: 96px 20px;
}
.empty-state.big h2 {
  color: var(--text);
  font-size: var(--fs-h3);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: var(--brand-50);
  color: var(--brand-500);
  margin-bottom: 6px;
}

/* src/styles/pages.css */
.quick-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  text-align: left;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .12s ease;
}
.quick-card:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}
.quick-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-500);
}
.quick-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  flex: 1;
}
.quick-count {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-600);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}
.dashboard-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.analytics {
  overflow: hidden;
}
.land-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 16px 12px;
  padding: 11px 16px;
  border-radius: 10px;
  background:
    linear-gradient(
      120deg,
      var(--accent-500),
      #fbb03b);
  color: #fff;
}
.land-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
}
.land-value {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  letter-spacing: .02em;
}
.price-block {
  padding: 0 16px 14px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th {
  text-align: left;
  padding: 9px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.price-table th:first-child {
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: var(--fs-sm);
  border-radius: 8px 0 0 0;
}
.pt-note {
  color: var(--text-3);
  font-weight: 500;
  font-size: var(--fs-xs);
}
.price-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.price-table td.pt-seg {
  color: var(--text-2);
}
.price-table td.pt-val {
  font-weight: var(--fw-semi);
  font-variant-numeric: tabular-nums;
}
.actions-card {
  padding: 6px;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  text-align: left;
  transition: background .15s ease;
}
.action-row:hover {
  background: var(--surface-2);
}
.action-row .icon:first-child {
  color: var(--accent-600);
}
.action-row span {
  flex: 1;
}
.action-row .icon:last-child {
  color: var(--text-3);
}
.action-row + .action-row {
  border-top: 1px solid var(--border);
  border-radius: 0 0 9px 9px;
}
.task-list {
  padding: 2px 16px 14px;
}
.task-item {
  display: flex;
  gap: 12px;
  position: relative;
}
.task-time {
  width: 42px;
  flex: none;
  padding-top: 1px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.task-rail {
  width: 10px;
  flex: none;
  position: relative;
}
.task-rail::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 20%, transparent);
}
.task-item.task-call .task-rail::before {
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent);
}
.task-item.task-docs .task-rail::before {
  background: var(--warn);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent);
}
.task-item.task-showing .task-rail::before {
  background: var(--accent-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-500) 22%, transparent);
}
.task-item:not(:last-child) .task-rail::after {
  content: "";
  position: absolute;
  left: 7.5px;
  top: 17px;
  bottom: -4px;
  width: 1.5px;
  background: var(--border);
}
.task-body {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  min-width: 0;
}
.task-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
}
.task-note {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.cal-month {
  text-transform: capitalize;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 4px 12px 14px;
}
.cal-dow {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  padding: 4px 0;
}
.cal-cell {
  position: relative;
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 8px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: background .12s ease;
}
.cal-cell:hover:not(.empty) {
  background: var(--surface-2);
}
.cal-cell.today {
  background: var(--brand-600);
  color: #fff;
  font-weight: var(--fw-bold);
  box-shadow: 0 2px 8px rgba(30, 68, 166, .35);
}
.cal-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: var(--accent-500);
}
.cal-cell.today .cal-dot {
  background: #fff;
}
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cat-tab {
  padding: 8.5px 17px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  color: var(--text-2);
  transition: all .15s ease;
}
.cat-tab:hover {
  border-color: var(--brand-500);
  color: var(--brand-500);
}
.cat-tab.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 3px 10px rgba(30, 68, 166, .35);
}
.filters {
  padding: 16px;
  margin-bottom: 12px;
}
.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px 14px;
  align-items: end;
}
.filters-buttons {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chips-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sort-btn {
  padding: 6.5px 13px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  color: var(--text-2);
}
.sort-btn:hover {
  color: var(--text);
  background: var(--neutral-soft);
}
.sort-btn.active {
  background: var(--surface);
  border-color: var(--brand-500);
  color: var(--brand-500);
  box-shadow: var(--shadow-1);
}
.sort-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.found-label {
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.found-label b {
  color: var(--text);
}
.objects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
}
.object-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition:
    box-shadow .18s ease,
    transform .18s ease,
    border-color .18s ease;
}
.object-card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.object-card.archived {
  opacity: .62;
}
.object-card.archived:hover {
  opacity: .85;
}
.card-media {
  position: relative;
  height: 168px;
  background:
    radial-gradient(
      ellipse 120% 90% at 30% 0%,
      color-mix(in srgb, var(--brand-500) 9%, transparent),
      transparent),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.card-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-3);
  opacity: .75;
}
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(4px);
  color: var(--text-2);
  box-shadow: var(--shadow-1);
  transition: color .15s ease, transform .12s ease;
}
.fav-btn:hover {
  transform: scale(1.08);
  color: var(--hot);
}
.fav-btn.active {
  color: var(--hot);
}
.fav-btn.active .icon {
  fill: var(--hot);
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px 13px;
}
.obj-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
}
.obj-addr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.obj-addr .icon {
  color: var(--text-3);
  flex: none;
}
.obj-addr span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.obj-price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.obj-price {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--brand-500);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.obj-price-m2 {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.obj-props {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.obj-prop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.obj-prop .icon {
  color: var(--text-3);
}
.obj-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding-top: 3px;
}
.obj-action {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-2);
  background: var(--surface-2);
  transition: all .13s ease;
}
.obj-action:hover {
  border-color: var(--brand-500);
  color: var(--brand-500);
  background: var(--brand-50);
}
.obj-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
}
.agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.obj-agent {
  font-weight: var(--fw-med);
  color: var(--text-2);
}
.obj-district {
  margin-left: auto;
  color: var(--text-3);
}
@media (max-width: 1280px) {
  .quick-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .filters-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}
@media (max-width: 820px) {
  .quick-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content {
    padding: 14px;
  }
}

/* src/styles/portal.css */
.p-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.p-content {
  flex: 1;
}
.p-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 22px 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 18px;
  align-items: start;
}
.p-page > * {
  grid-column: span 12;
  min-width: 0;
}
.p-page > .bs-col-9 {
  grid-column: span 9;
}
.p-page > .bs-col-8 {
  grid-column: span 8;
}
.p-page > .bs-col-6 {
  grid-column: span 6;
}
.p-page > .bs-col-4 {
  grid-column: span 4;
}
.p-page > .bs-col-3 {
  grid-column: span 3;
}
.blk {
  margin-bottom: 22px;
}
.p-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.p-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  height: 58px;
}
.p-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-md);
  flex: none;
}
.p-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.p-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.p-nav::-webkit-scrollbar {
  display: none;
}
.p-nav-link {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  color: var(--text-2);
  white-space: nowrap;
  transition: background .13s ease, color .13s ease;
}
.p-nav-link:hover {
  background: var(--neutral-soft);
  color: var(--text);
}
.p-nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-600);
}
.p-topbar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 1 auto;
  min-width: 0;
}
.p-topbar-right .btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  padding: 5.5px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--text-3);
  transition: all .13s ease;
}
.lang-btn.active {
  background: var(--brand-600);
  color: #fff;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
.hero-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark.lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.hero-brand-names {
  display: flex;
  flex-direction: column;
}
.hero-brand-name {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: .01em;
}
.hero-brand-sub {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.hero-tagline {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: .06em;
  color: var(--accent-600);
  padding: 8px 14px;
  background: var(--accent-soft);
  border-radius: 9px;
}
.hero-slogan {
  font-size: var(--fs-md);
  font-weight: var(--fw-semi);
  color: var(--brand-600);
  margin-left: auto;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.deal-tabs {
  display: flex;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid var(--accent-600);
  box-shadow: var(--shadow-1);
}
.deal-tab {
  padding: 10px 22px;
  font-size: var(--fs-base);
  font-weight: var(--fw-semi);
  background: var(--surface);
  color: var(--accent-600);
  transition: all .13s ease;
}
.deal-tab + .deal-tab {
  border-left: 1px solid var(--accent-600);
}
.deal-tab:hover {
  background: var(--accent-soft);
}
.deal-tab.active {
  background: var(--accent-500);
  color: #fff;
}
.action-mid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-accent {
  background: var(--btn-accent-bg);
  color: var(--btn-accent-text);
  box-shadow: var(--btn-accent-shadow);
}
.btn-accent:hover {
  background: var(--btn-accent-bg-hover);
}
.btn-accent.lg {
  padding: 11px 22px;
  font-size: var(--fs-base);
  margin-left: auto;
}
.btn-dark {
  background: #1a2233;
  color: #fff;
}
.btn-dark:hover {
  background: #2a3550;
}
.btn-on-accent {
  background: rgba(255, 255, 255, .92);
  color: var(--accent-600);
  font-weight: var(--fw-semi);
}
.btn-on-accent:hover {
  background: #fff;
}
.w100 {
  width: 100%;
  justify-content: center;
}
.search-panel {
  padding: 16px;
}
.search-panel .cat-tabs {
  margin-bottom: 16px;
}
.search-panel .chips-row {
  margin: 14px 0 0;
}
.banner-accent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      115deg,
      var(--accent-500),
      #fbb03b);
  color: #fff;
  box-shadow: 0 6px 18px rgba(247, 148, 29, .35);
}
.banner-accent-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rail-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.rail-more {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  transition: all .13s ease;
}
.rail-more:hover {
  background: var(--brand-600);
  color: #fff;
}
.rail-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 13px;
}
.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow .16s ease, transform .16s ease;
}
.p-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.p-card-media {
  position: relative;
  height: 120px;
  background:
    radial-gradient(
      ellipse 120% 90% at 30% 0%,
      color-mix(in srgb, var(--brand-500) 8%, transparent),
      transparent),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.p-card-media .badge {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: var(--fs-xs);
  padding: 3.5px 8px;
}
.p-card-media .fav-btn {
  width: 28px;
  height: 28px;
  top: 7px;
  right: 7px;
  border-radius: 8px;
}
.p-card-body {
  padding: 11px 13px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-card-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
}
.p-card-price {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--brand-500);
  font-variant-numeric: tabular-nums;
}
.p-card-meta {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.qr-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.qr-box {
  display: grid;
  grid-template-columns: repeat(8, 7px);
  grid-auto-rows: 7px;
  gap: 1.5px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  flex: none;
}
.qr-cell {
  background: #e9edf3;
  border-radius: 1px;
}
.qr-cell.on {
  background: #17203a;
}
.qr-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: var(--fs-base);
}
.page-header-blk {
  padding: 26px 0 2px;
}
.page-header-blk h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  letter-spacing: -.01em;
}
.page-header-blk p {
  margin-top: 6px;
  font-size: var(--fs-base);
}
.text-section h2,
.feature-cards h2,
.steps-section h2 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: 10px;
}
.text-section p {
  margin: 0 0 10px;
  max-width: 860px;
  color: var(--text-2);
  font-size: var(--fs-base);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 13px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-600);
}
.feature-card b {
  font-size: var(--fs-base);
}
.feature-card p {
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
.step-text {
  font-size: var(--fs-sm);
  color: var(--text-2);
  padding-top: 4px;
}
.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      115deg,
      var(--brand-600),
      var(--brand-700));
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 68, 166, .3);
}
.cta-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.login-blk {
  display: flex;
  justify-content: center;
  padding: 10px 0 30px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.login-tabs {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.login-tab {
  flex: 1;
  padding: 9px 8px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--text-2);
  background: var(--surface-2);
}
.login-tab.active {
  background: var(--brand-600);
  color: #fff;
}
.login-hints {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.login-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.login-forgot {
  font-size: var(--fs-sm);
  color: var(--brand-500);
  align-self: flex-end;
}
.login-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.reg-note {
  margin-bottom: 12px;
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.role-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.role-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-md);
}
.role-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.role-part {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.role-part-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
}
.role-part p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.5;
}
.role-card .btn {
  margin-top: auto;
}
.p-footer {
  margin-top: 30px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
}
.p-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 24px;
  padding: 32px 22px 22px;
}
.p-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-sm);
}
.p-footer-col b {
  color: #fff;
  font-size: var(--fs-sm);
}
.p-footer-col a {
  color: var(--sidebar-text);
}
.p-footer-col a:hover {
  color: #fff;
}
.p-footer .p-brand b {
  color: #fff;
}
.p-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  border-top: 1px solid var(--sidebar-border);
  font-size: var(--fs-xs);
  color: rgba(174, 185, 210, .6);
}
@media (max-width: 900px) {
  .p-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero-slogan {
    margin-left: 0;
  }
  .btn-accent.lg {
    margin-left: 0;
  }
}
.bs-pt-none {
  padding-top: 0;
}
.bs-pt-s {
  padding-top: 12px;
}
.bs-pt-m {
  padding-top: 28px;
}
.bs-pt-l {
  padding-top: 56px;
}
.bs-pt-xl {
  padding-top: 88px;
}
.bs-pb-none {
  padding-bottom: 0;
}
.bs-pb-s {
  padding-bottom: 12px;
}
.bs-pb-m {
  padding-bottom: 28px;
}
.bs-pb-l {
  padding-bottom: 56px;
}
.bs-pb-xl {
  padding-bottom: 88px;
}
.bs-px-s {
  padding-left: 12px;
  padding-right: 12px;
}
.bs-px-m {
  padding-left: 24px;
  padding-right: 24px;
}
.bs-px-l {
  padding-left: 40px;
  padding-right: 40px;
}
.bs-bg-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.bs-bg-soft {
  background: var(--brand-50);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.bs-bg-accent {
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.bs-bg-brand {
  background: var(--brand-600);
  color: var(--text-on-brand);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.bs-bg-dark {
  background: var(--sidebar-bg);
  color: #e8edf8;
  border-radius: var(--radius-lg);
  padding: 18px;
}
.bs-bg-brand :is(h1, h2, h3, h4, p, li, span, b),
.bs-bg-dark :is(h1, h2, h3, h4, p, li, span, b) {
  color: inherit;
}
.bs-w-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.bs-w-narrow {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.bs-w-text {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.bs-al-start {
  justify-self: start;
}
.bs-al-center {
  justify-self: center;
}
.bs-al-end {
  justify-self: end;
}
.bs-ta-left {
  text-align: left;
}
.bs-ta-center {
  text-align: center;
}
.bs-ta-right {
  text-align: right;
}
.bs-r-none {
  border-radius: 0;
}
.bs-r-s {
  border-radius: var(--radius-sm);
}
.bs-r-m {
  border-radius: var(--radius);
}
.bs-r-l {
  border-radius: var(--radius-lg);
}
.bs-sh-s {
  box-shadow: var(--shadow-1);
}
.bs-sh-m {
  box-shadow: var(--shadow-2);
}
.bs-sh-l {
  box-shadow: var(--shadow-3);
}
.bs-bd {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bs-ord {
  order: var(--ord-d, 0);
}
.bs-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
}
@container era (max-width: 640px) {
  .bs-hide-m {
    display: none !important;
  }
}
@container era (min-width: 641px) {
  .bs-hide-d {
    display: none !important;
  }
}
@container era (max-width: 640px) {
  .p-page > [class*=bs-col-]:not([class*=bs-m-col-]),
  .a3-canvas > .a3-holder:not(:has(> [class*=bs-m-col-])) {
    grid-column: span 12;
  }
  .p-page > .bs-m-col-12 {
    grid-column: span 12;
  }
  .p-page > .bs-m-col-6 {
    grid-column: span 6;
  }
  .p-page > .bs-m-col-4 {
    grid-column: span 4;
  }
  .p-page > .bs-m-col-3 {
    grid-column: span 3;
  }
  .p-page > .bs-m-col-8 {
    grid-column: span 8;
  }
  .p-page > .bs-m-col-9 {
    grid-column: span 9;
  }
  .a3-canvas > .a3-holder:has(> .bs-m-col-6) {
    grid-column: span 6;
  }
  .a3-canvas > .a3-holder:has(> .bs-m-col-4) {
    grid-column: span 4;
  }
  .a3-canvas > .a3-holder:has(> .bs-m-col-3) {
    grid-column: span 3;
  }
}
@container era (min-width: 641px) and (max-width: 900px) {
  .p-page > :is(.bs-col-3, .bs-col-4) {
    grid-column: span 6;
  }
  .a3-canvas > .a3-holder:has(> :is(.bs-col-3, .bs-col-4)) {
    grid-column: span 6;
  }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .bs-hide-m {
      display: none !important;
    }
  }
  @media (min-width: 641px) {
    .bs-hide-d {
      display: none !important;
    }
  }
  @media (max-width: 640px) {
    .p-page > [class*=bs-col-],
    .a3-canvas > .a3-holder {
      grid-column: span 12 !important;
    }
  }
}
.p-page {
  container: era / inline-size;
}
@container era (max-width: 640px) {
  .hero-brand {
    padding: 16px;
    gap: 12px;
  }
  .hero-slogan {
    margin-left: 0;
    font-size: var(--fs-base);
  }
  .deal-tabs {
    width: 100%;
  }
  .deal-tab {
    padding: 9px 14px;
    font-size: var(--fs-sm);
    flex: 1;
    text-align: center;
  }
  .btn-accent.lg {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .action-mid {
    width: 100%;
  }
  .action-mid .btn {
    flex: 1;
    justify-content: center;
  }
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filters-buttons {
    grid-column: 1 / -1;
  }
  .filters-buttons .btn {
    flex: 1;
    justify-content: center;
  }
  .rail-track {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 9px;
  }
  .p-card-media {
    height: 100px;
  }
  .banner-accent {
    padding: 14px 16px;
  }
  .banner-accent .btn {
    width: 100%;
    justify-content: center;
  }
  .qr-banner {
    flex-direction: column;
    text-align: center;
  }
  .page-header-blk h1 {
    font-size: var(--fs-h2);
  }
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .steps-list {
    max-width: none;
  }
}
@container era (max-width: 400px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }
  .cat-tab {
    padding: 7px 12px;
    font-size: var(--fs-sm);
  }
  .rail-track {
    grid-template-columns: 1fr;
  }
}
@container era (max-width: 640px) {
  .bs-m-pt-none {
    padding-top: 0;
  }
  .bs-m-pt-s {
    padding-top: 12px;
  }
  .bs-m-pt-m {
    padding-top: 28px;
  }
  .bs-m-pt-l {
    padding-top: 56px;
  }
  .bs-m-pt-xl {
    padding-top: 88px;
  }
  .bs-m-pb-none {
    padding-bottom: 0;
  }
  .bs-m-pb-s {
    padding-bottom: 12px;
  }
  .bs-m-pb-m {
    padding-bottom: 28px;
  }
  .bs-m-pb-l {
    padding-bottom: 56px;
  }
  .bs-m-pb-xl {
    padding-bottom: 88px;
  }
  .bs-m-px-none {
    padding-left: 0;
    padding-right: 0;
  }
  .bs-m-px-s {
    padding-left: 12px;
    padding-right: 12px;
  }
  .bs-m-px-m {
    padding-left: 24px;
    padding-right: 24px;
  }
  .bs-m-px-l {
    padding-left: 40px;
    padding-right: 40px;
  }
  .bs-m-bg-none {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
  }
  .bs-m-bg-surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
  }
  .bs-m-bg-soft {
    background: var(--brand-50);
    border: 0;
    border-radius: var(--radius-lg);
    padding: 18px;
  }
  .bs-m-bg-accent {
    background: var(--accent-soft);
    border: 0;
    border-radius: var(--radius-lg);
    padding: 18px;
  }
  .bs-m-bg-brand {
    background: var(--brand-600);
    color: var(--text-on-brand);
    border: 0;
    border-radius: var(--radius-lg);
    padding: 18px;
  }
  .bs-m-bg-dark {
    background: var(--sidebar-bg);
    color: #e8edf8;
    border: 0;
    border-radius: var(--radius-lg);
    padding: 18px;
  }
  .bs-m-w-full {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .bs-m-w-wide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
  .bs-m-w-narrow {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .bs-m-w-text {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
  .bs-m-al-start {
    justify-self: start;
  }
  .bs-m-al-center {
    justify-self: center;
  }
  .bs-m-al-end {
    justify-self: end;
  }
  .bs-m-ta-left {
    text-align: left;
  }
  .bs-m-ta-center {
    text-align: center;
  }
  .bs-m-ta-right {
    text-align: right;
  }
  .bs-m-r-none {
    border-radius: 0;
  }
  .bs-m-r-s {
    border-radius: var(--radius-sm);
  }
  .bs-m-r-m {
    border-radius: var(--radius);
  }
  .bs-m-r-l {
    border-radius: var(--radius-lg);
  }
  .bs-m-sh-none {
    box-shadow: none;
  }
  .bs-m-sh-s {
    box-shadow: var(--shadow-1);
  }
  .bs-m-sh-m {
    box-shadow: var(--shadow-2);
  }
  .bs-m-sh-l {
    box-shadow: var(--shadow-3);
  }
  .bs-m-bd {
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .bs-m-bd-off {
    border: 0;
  }
  .bs-m-ord {
    order: var(--ord-m, var(--ord-d, 0));
  }
  .bs-m-sticky {
    position: sticky;
    top: 0;
    z-index: 20;
  }
}
.form-error {
  color: var(--hot);
  font-size: var(--fs-sm);
  min-height: 16px;
  margin: 0;
}
.login-fields {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* src/styles/blocks-ext.css */
.tabs-switcher {
  padding: 16px;
}
.tabs-switcher.align-center .tabs-row,
.tabs-switcher.align-center .cat-tabs {
  justify-content: center;
}
.tabs-row-wrap {
  margin-bottom: 14px;
}
.tabs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs-row.mode-chips .cat-tab {
  border-radius: 999px;
}
.tabs-select {
  max-width: 320px;
}
.tabs-panel {
  min-height: 20px;
}
.tabs-panel > .blk + .blk {
  margin-top: 12px;
}
.tabs-empty {
  color: var(--text-3);
  font-size: var(--fs-sm);
  padding: 14px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.tabs-panel.editing {
  outline: 2px dashed var(--brand-300, #9dbcf5);
  outline-offset: 4px;
  border-radius: 10px;
  padding: 6px;
}
.tabs-panel.editing.over {
  outline-color: var(--accent-500);
  background: var(--accent-soft);
}
.tabs-drop-hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-align: center;
  padding: 6px;
}
.uiel-wrap {
  display: flex;
}
.uiel-btn.lg {
  padding: 12px 22px;
  font-size: var(--fs-md);
}
.uiel-link {
  color: var(--brand-600);
  font-weight: var(--fw-semi);
  text-decoration: none;
}
.uiel-link:hover {
  text-decoration: underline;
}
.uiel-check-row,
.uiel-switch-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-base);
  cursor: pointer;
  min-height: 40px;
}
.uiel-check {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-600);
}
.uiel-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--border);
  flex: none;
  transition: background .15s;
}
.uiel-switch.on {
  background: var(--brand-600);
}
.uiel-switch-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
}
.uiel-switch.on .uiel-switch-dot {
  left: 21px;
}
.uiel-h.align-center,
.uiel-p.align-center {
  text-align: center;
}
.uiel-h h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
}
.uiel-h h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}
.uiel-h h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}
.uiel-h h4 {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}
.uiel-p p {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}
.uiel-img {
  max-width: 100%;
  height: auto;
  display: block;
}
.uiel-img.r-s {
  border-radius: 10px;
}
.uiel-img.r-l {
  border-radius: 18px;
}
.uiel-img-ph {
  color: var(--text-3);
  font-size: var(--fs-sm);
  padding: 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.uiel-icon {
  color: var(--brand-600);
}
.uiel-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
}
.uiel-badge.tone-neutral {
  background: var(--border);
  color: var(--text-2);
}
.uiel-badge.tone-accent {
  background: var(--accent-soft);
  color: var(--accent-600);
}
.uiel-badge.tone-success {
  background: rgba(34, 160, 90, .15);
  color: #1f9d55;
}
.uiel-badge.tone-info {
  background: var(--brand-50);
  color: var(--brand-600);
}
.uiel-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}
.uiel-wrap.al-center {
  justify-content: center;
}
.uiel-wrap.al-right {
  justify-content: flex-end;
}
.uiel-req {
  color: var(--accent-600);
}
.uiel-check.lg {
  width: 22px;
  height: 22px;
}
.uiel-radio {
  width: 17px;
  height: 17px;
  accent-color: var(--brand-600);
}
.uiel-radio-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.uiel-radio-list.inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.uiel-list {
  margin: 0;
  padding-left: 20px;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-2);
}
.uiel-list.m-check {
  list-style: none;
  padding-left: 0;
}
.uiel-list.m-check li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.uiel-list.m-check li svg {
  color: var(--brand-600);
  flex: none;
  margin-top: 4px;
}
.uiel-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.uiel-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.uiel-section .sec-slot {
  display: flex;
  flex-direction: column;
}
.uiel-section.gap-s .sec-slot {
  gap: 8px;
}
.uiel-section.gap-m .sec-slot {
  gap: 16px;
}
.uiel-section.gap-l .sec-slot {
  gap: 28px;
}
.uiel-section.al-left .sec-slot {
  align-items: flex-start;
}
.uiel-section.al-center .sec-slot {
  align-items: center;
}
.uiel-section.card {
  padding: 18px;
}
.uiel-rowc .row-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.uiel-rowc.gap-s .row-slot {
  gap: 8px;
}
.uiel-rowc.gap-m .row-slot {
  gap: 16px;
}
.uiel-rowc.gap-l .row-slot {
  gap: 28px;
}
.uiel-rowc.al-center .row-slot {
  justify-content: center;
}
.uiel-rowc.al-right .row-slot {
  justify-content: flex-end;
}
.uiel-rowc.al-between .row-slot {
  justify-content: space-between;
}
.uiel-cols .cols-slot {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
}
.uiel-cols.cols-2 .cols-slot {
  --cols: 2;
}
.uiel-cols.cols-3 .cols-slot {
  --cols: 3;
}
.uiel-cols.cols-4 .cols-slot {
  --cols: 4;
}
.uiel-cols.gap-s .cols-slot {
  gap: 8px;
}
.uiel-cols.gap-m .cols-slot {
  gap: 16px;
}
.uiel-cols.gap-l .cols-slot {
  gap: 28px;
}
.uiel-spacer.h-s {
  height: 12px;
}
.uiel-spacer.h-m {
  height: 28px;
}
.uiel-spacer.h-l {
  height: 56px;
}
.uiel-spacer.h-xl {
  height: 96px;
}
.blk-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.slot-editing {
  outline: 2px dashed var(--brand-300, #9dbcf5);
  outline-offset: 4px;
  border-radius: 10px;
}
.slot-editing.over {
  outline-color: var(--accent-500);
  background: var(--accent-soft);
}
.slot-drop-hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-align: center;
  padding: 6px;
  width: 100%;
}
@container era (max-width: 1000px) {
  .uiel-cols.cols-4 .cols-slot {
    --cols: 3;
  }
}
@container era (max-width: 820px) {
  .uiel-cols.cols-4 .cols-slot {
    --cols: 2;
  }
  .uiel-cols.cols-3 .cols-slot {
    --cols: 2;
  }
}
@container era (max-width: 640px) {
  .tabs-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .tabs-row .cat-tab {
    flex: none;
  }
  .uiel-h h1 {
    font-size: var(--fs-h2);
  }
  .uiel-h h2 {
    font-size: var(--fs-h3);
  }
  .uiel-rowc.stack-m .row-slot {
    flex-direction: column;
    align-items: stretch;
  }
  .uiel-cols .cols-slot {
    --cols: 1;
  }
  .uiel-cols.cols-m-2 .cols-slot {
    --cols: 2;
  }
  .uiel-spacer.h-l {
    height: 36px;
  }
  .uiel-spacer.h-xl {
    height: 56px;
  }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .tabs-row {
      flex-wrap: nowrap;
      overflow-x: auto;
    }
    .uiel-rowc.stack-m .row-slot {
      flex-direction: column;
      align-items: stretch;
    }
    .uiel-cols .cols-slot {
      --cols: 1;
    }
    .uiel-cols.cols-m-2 .cols-slot {
      --cols: 2;
    }
  }
}

/* src/styles/blocks-new.css */
.blk-title {
  font-size: clamp(19px, 3.2cqi, 24px);
  font-weight: var(--fw-bold);
  margin: 0 0 14px;
}
.era-hidden {
  display: none !important;
}
.field-invalid {
  border-color: var(--hot) !important;
  box-shadow: 0 0 0 3px var(--hot-soft);
}
body.era-modal-open {
  overflow: hidden;
}
.era-toasts {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9000;
  pointer-events: none;
  width: min(420px, calc(100vw - 24px));
}
.era-toast {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-3);
  opacity: 1;
  transition: opacity .25s, transform .25s;
}
.era-toast.err {
  background: var(--hot);
}
.era-toast.out {
  opacity: 0;
  transform: translateY(8px);
}
.uiel-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.uiel-form.card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.uiel-form-head h3 {
  margin: 0 0 4px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.uiel-form-note {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.uiel-form .form-slot {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.uiel-form.layout-two .form-slot {
  grid-template-columns: 1fr 1fr;
}
.uiel-form-foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.uiel-form-submit {
  min-width: 160px;
  justify-content: center;
}
.uiel-form-ok {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
}
.uiel-form-ok.show {
  display: flex;
}
.uiel-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: var(--fs-sm);
}
.uiel-notice.tone-ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.uiel-notice.tone-info {
  background: var(--info-soft);
  color: var(--info);
}
.uiel-notice.tone-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.uiel-notice.tone-err {
  background: var(--hot-soft);
  color: var(--hot);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: var(--fw-semi);
  font-size: var(--fs-base);
  list-style: none;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item[open] summary svg {
  transform: rotate(180deg);
}
.faq-item summary svg {
  transition: transform .18s;
  flex: none;
  color: var(--text-3);
}
.faq-answer {
  padding: 0 16px 14px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-2);
}
.tst-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr));
}
.tst-grid.cols-3 {
  --c: 3;
}
.tst-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.tst-stars {
  color: var(--accent-500);
  letter-spacing: 2px;
  font-size: var(--fs-base);
}
.tst-card blockquote {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
}
.tst-card figcaption {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.tst-card figcaption b {
  color: var(--text);
  font-size: var(--fs-base);
}
.gal-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr));
}
.gal-grid.cols-2 {
  --c: 2;
}
.gal-grid.cols-4 {
  --c: 4;
}
.gal-item {
  margin: 0;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.gal-grid.ratio-43 .gal-item img {
  aspect-ratio: 4 / 3;
}
.gal-grid.ratio-11 .gal-item img {
  aspect-ratio: 1 / 1;
}
.gal-grid.ratio-169 .gal-item img {
  aspect-ratio: 16 / 9;
}
.gal-item figcaption {
  font-size: var(--fs-sm);
  color: var(--text-3);
  padding-top: 6px;
}
.sld-wrap {
  position: relative;
}
.sld-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.sld-track::-webkit-scrollbar {
  display: none;
}
.sld-slide {
  position: relative;
  flex: 0 0 min(100%, 520px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand-50);
}
.sld-blk.h-s .sld-slide {
  height: 180px;
}
.sld-blk.h-m .sld-slide {
  height: 280px;
}
.sld-blk.h-l .sld-slide {
  height: 380px;
}
.sld-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sld-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  background:
    linear-gradient(
      to top,
      rgba(10, 16, 32, .78),
      rgba(10, 16, 32, 0));
}
.sld-cap b {
  font-size: var(--fs-lg);
}
.sld-cap span {
  font-size: var(--fs-sm);
  opacity: .9;
}
.sld-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-2);
}
.sld-nav.prev {
  left: 8px;
}
.sld-nav.next {
  right: 8px;
}
.tml-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.tml-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tml-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}
.tml-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tml-body b {
  font-size: var(--fs-md);
}
.tml-body span {
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.tml-list.dir-h {
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.prc-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.prc-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prc-card.hot {
  border: 2px solid var(--accent-500);
  box-shadow: var(--shadow-2);
}
.prc-name {
  font-size: var(--fs-md);
  color: var(--text-2);
}
.prc-price {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
}
.prc-desc {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.prc-feats {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: var(--fs-sm);
}
.prc-feats li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.prc-feats svg {
  color: var(--ok);
  flex: none;
  margin-top: 3px;
}
.cnt-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}
.cnt-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 16px;
}
.cnt-grid.tone-card .cnt-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cnt-item svg {
  color: var(--brand-600);
}
.cnt-item b {
  font-size: clamp(22px, 5cqi, 30px);
  font-weight: var(--fw-bold);
}
.cnt-item span {
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.lgo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: center;
}
.lgo-row img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
.lgo-row.gray img {
  filter: grayscale(1);
  opacity: .7;
  transition: filter .2s, opacity .2s;
}
.lgo-row.gray img:hover {
  filter: none;
  opacity: 1;
}
.lgo-text {
  font-weight: var(--fw-semi);
  color: var(--text-3);
}
.nvh {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.nvh.sticky {
  position: sticky;
  top: 0;
  z-index: 30;
}
.nvh-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: var(--fs-lg);
}
.nvh-brand img {
  height: 26px;
  width: auto;
}
.nvh-menu {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.nvh-link {
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-med);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nvh-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nvh-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-2);
}
.nvf {
  background: var(--sidebar-bg);
  color: #aeb9d2;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.nvf-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}
.nvf-col b {
  color: #fff;
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-md);
}
.nvf-col p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.nvf-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.nvf-col a {
  color: #aeb9d2;
  text-decoration: none;
  font-size: var(--fs-sm);
}
.nvf-col a:hover {
  color: #fff;
}
.nvf-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.nvf-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: var(--fs-sm);
}
.bcr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
}
.bcr-link {
  color: var(--text-2);
  text-decoration: none;
}
.bcr-link:hover {
  color: var(--brand-600);
  text-decoration: underline;
}
.bcr-sep {
  color: var(--text-3);
}
.bcr-cur {
  color: var(--text);
  font-weight: var(--fw-med);
}
.stk {
  position: sticky;
  bottom: 10px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.stk-text {
  font-size: var(--fs-base);
  font-weight: var(--fw-med);
}
.stk .btn {
  flex: none;
}
.totop-wrap {
  display: flex;
}
.totop {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text-2);
}
.totop svg {
  transform: rotate(180deg);
}
.totop.side-right {
  margin-left: auto;
}
.uiel-modal {
  display: none;
}
.uiel-modal.open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 8000;
}
.uiel-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 38, .55);
}
.uiel-modal-card {
  position: relative;
  margin: 8vh auto 0;
  width: min(560px, calc(100vw - 24px));
  max-height: 84vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.uiel-modal.size-s .uiel-modal-card {
  width: min(420px, calc(100vw - 24px));
}
.uiel-modal.size-l .uiel-modal-card {
  width: min(860px, calc(100vw - 24px));
}
.uiel-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
}
.uiel-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rpt-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr));
}
.rpt-list.cols-2 {
  --c: 2;
}
.rpt-list.cols-4 {
  --c: 4;
}
.rpt-list.view-rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.rpt-list.view-rail .rpt-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
}
.rpt-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rpt-media {
  height: 120px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
}
.rpt-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rpt-addr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.rpt-addr i {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rpt-price {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--brand-600);
}
.rpt-meta {
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.rpt-empty {
  grid-column: 1 / -1;
  padding: 22px;
  text-align: center;
  color: var(--text-3);
  font-size: var(--fs-sm);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.rpt-skel {
  height: 190px;
  background:
    linear-gradient(
      90deg,
      var(--surface-2),
      var(--border),
      var(--surface-2));
  background-size: 200% 100%;
  animation: rpt-shine 1.2s linear infinite;
}
@keyframes rpt-shine {
  to {
    background-position: -200% 0;
  }
}
@container era (max-width: 900px) {
  .tst-grid.cols-3 {
    --c: 2;
  }
  .gal-grid.cols-4 {
    --c: 3;
  }
  .rpt-list.cols-4 {
    --c: 3;
  }
  .tml-list.dir-h {
    grid-auto-flow: row;
  }
}
@container era (max-width: 640px) {
  .tst-grid,
  .rpt-list:not(.view-rail) {
    --c: 1;
  }
  .gal-grid {
    --c: 2;
  }
  .uiel-form.layout-two .form-slot {
    grid-template-columns: 1fr;
  }
  .uiel-form-submit {
    width: 100%;
  }
  .nvh {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nvh-burger {
    display: block;
    margin-left: auto;
    order: 2;
  }
  .nvh-cta {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .nvh-menu {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
  }
  .nvh.open .nvh-menu {
    display: flex;
  }
  .sld-blk.h-l .sld-slide {
    height: 260px;
  }
  .sld-blk.h-m .sld-slide {
    height: 210px;
  }
  .sld-nav {
    display: none;
  }
  .stk {
    flex-direction: row;
  }
  .stk .btn {
    min-height: 44px;
  }
  .uiel-modal-card {
    margin-top: 4vh;
    max-height: 92vh;
  }
}
@container era (max-width: 400px) {
  .gal-grid {
    --c: 1;
  }
  .stk {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .stk .btn {
    width: 100%;
    justify-content: center;
  }
}
@container era (min-width: 641px) {
  .stk.only-m {
    display: none;
  }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .tst-grid,
    .rpt-list:not(.view-rail) {
      --c: 1;
    }
    .gal-grid {
      --c: 2;
    }
    .uiel-form.layout-two .form-slot {
      grid-template-columns: 1fr;
    }
    .nvh-burger {
      display: block;
      margin-left: auto;
    }
    .nvh-menu {
      display: none;
      width: 100%;
      flex-direction: column;
    }
    .nvh.open .nvh-menu {
      display: flex;
    }
  }
}

/* src/styles/blocks-cab.css */
.cab {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cab .card {
  padding: 14px 16px;
}
.cab-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cab-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.cab-head-r {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.cab-note {
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.cab-kpi-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}
.cab-kpi-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cab-kpi-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cab-kpi {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
}
.cab-kpi-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-500);
}
.cab-kpi-val {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.1;
}
.cab-kpi-lbl {
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.cab-kpi-delta {
  margin-left: auto;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 8px;
}
.cab-kpi-delta.up {
  color: var(--ok);
  background: var(--ok-soft);
}
.cab-kpi-delta.down {
  color: var(--hot);
  background: var(--hot-soft);
}
.cab-prog {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cab-prog-top {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  margin-bottom: 5px;
}
.cab-prog-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.cab-prog-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .3s ease;
}
.cab-quick {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.cab-quick-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
  color: var(--text);
}
.cab-quick-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-500);
}
.cab-feed {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cab-feed-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-sm);
}
.cab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--info);
}
.cab-dot.ok {
  background: var(--ok);
}
.cab-dot.warn {
  background: var(--warn);
}
.cab-dot.hot {
  background: var(--hot);
}
.cab-feed-time {
  color: var(--text-3);
  min-width: 62px;
}
.cab-feed-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cab-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cab-ava {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--text-on-brand);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
}
.cab-ava.sm {
  width: 34px;
  height: 34px;
  font-size: var(--fs-sm);
}
.cab-profile-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cab-role {
  font-size: var(--fs-sm);
  color: var(--brand-500);
  font-weight: var(--fw-semi);
}
.cab-profile-contacts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.cab-profile-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cab-profile-rate {
  margin-left: auto;
  text-align: right;
}
.cab-stars {
  color: var(--border-strong);
  letter-spacing: 1px;
}
.cab-star.on {
  color: var(--accent-500);
}
.cab-chart {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cab-svg {
  width: 100%;
  height: 190px;
  display: block;
  overflow: visible;
}
.cab-grid {
  stroke: var(--border);
  stroke-width: 1;
}
.cab-line {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.cab-area {
  fill: color-mix(in srgb, var(--brand-500) 16%, transparent);
  stroke: none;
}
.cab-dot-pt {
  fill: var(--surface);
  stroke: var(--brand-500);
  stroke-width: 2.5;
}
.cab-axis {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.cab-bars.dir-v {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 210px;
}
.cab-bars.dir-v .cab-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 100%;
}
.cab-bars.dir-v .cab-bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  background: var(--surface-2);
  border-radius: 8px;
  overflow: hidden;
}
.cab-bars.dir-v .cab-bar-fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
}
.cab-bars.dir-h {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cab-bars.dir-h .cab-bar {
  display: grid;
  grid-template-columns: 1fr 4fr auto;
  align-items: center;
  gap: 9px;
}
.cab-bars.dir-h .cab-bar-lbl {
  order: -1;
}
.cab-bars.dir-h .cab-bar-track {
  height: 12px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.cab-bars.dir-h .cab-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.cab-bar-val {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
}
.cab-bar-lbl {
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-align: center;
}
.cab-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cab-donut-box {
  position: relative;
  width: 160px;
  flex: none;
}
.cab-donut {
  width: 160px;
  height: 160px;
  display: block;
}
.cab-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
}
.cab-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 160px;
}
.cab-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
}
.cab-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
}
.cab-legend-lbl {
  flex: 1;
  color: var(--text-2);
}
.cab-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cab-funnel-row {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  align-items: center;
  gap: 10px;
}
.cab-funnel-lbl {
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.cab-funnel-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  min-width: 42px;
  transition: width .3s ease;
}
.cab-funnel-pct {
  font-size: var(--fs-sm);
  color: var(--text-3);
  text-align: right;
}
.cab-heat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cab-heat-days,
.cab-heat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cab-heat-days span {
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-align: center;
}
.cab-heat-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.cab-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cab-gauge {
  width: 100%;
  max-width: 260px;
  height: 130px;
}
.cab-gauge-bg {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 16;
  stroke-linecap: round;
}
.cab-gauge-fg {
  fill: none;
  stroke: var(--brand-500);
  stroke-width: 16;
  stroke-linecap: round;
  transition: stroke-dasharray .4s ease;
}
.cab-gauge-val {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-top: -18px;
}
.cab-sparks {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.cab-spark-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cab-spark-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.cab-spark-meta b {
  font-size: var(--fs-md);
  color: var(--text);
}
.cab-spark {
  width: 100%;
  height: 34px;
}
.cab-chess-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: auto;
}
.cab-chess {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: max-content;
}
.cab-chess-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cab-chess-fl {
  width: 26px;
  flex: none;
  text-align: right;
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: var(--fw-semi);
}
.cab-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 40px;
  flex: none;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: var(--fs-xs);
  line-height: 1.1;
  cursor: default;
  transition: transform .1s ease, box-shadow .1s ease;
}
.cab-cell:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.cab-cell b {
  font-weight: var(--fw-semi);
}
.cab-cell i {
  font-style: normal;
  opacity: .75;
  font-size: 10px;
}
.cab-cell.f {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 35%, transparent);
  color: var(--ok);
}
.cab-cell.b {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
  color: var(--warn);
}
.cab-cell.s {
  background: var(--neutral-soft);
  border-color: var(--border-strong);
  color: var(--text-3);
}
.cab-chess-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.cab-chess-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cab-chess-legend i.cab-cell {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}
.cab-table {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: auto;
  padding: 0;
}
.cab-tr {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(110px, 1fr);
  gap: 10px;
  padding: 10px 14px;
  align-items: center;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
}
.cab-tr:last-child {
  border-bottom: none;
}
.cab-tr.head {
  color: var(--text-3);
  font-weight: var(--fw-semi);
  background: var(--surface-2);
}
.cab-tr span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cab-badge {
  display: inline-flex;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  background: var(--info-soft);
  color: var(--info);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cab-badge.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.cab-badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.cab-badge.hot {
  background: var(--hot-soft);
  color: var(--hot);
}
.cab-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cab-listing {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cab-listing-ph {
  display: grid;
  place-items: center;
  width: 56px;
  height: 46px;
  flex: none;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-3);
}
.cab-listing-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.cab-listing-price {
  font-weight: var(--fw-bold);
  color: var(--brand-500);
}
.cab-listing-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.cab-map {
  position: relative;
  height: 260px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(
      90deg,
      var(--border) 1px,
      transparent 1px) 0 0 / 34px 100%,
    var(--surface-2);
}
.cab-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--hot);
}
.cab-pin i {
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
.cab-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cab-task {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 4px;
  font-size: var(--fs-sm);
}
.cab-task.done .cab-task-text {
  text-decoration: line-through;
  color: var(--text-3);
}
.cab-task-text {
  flex: 1;
  min-width: 0;
}
.cab-task-due {
  color: var(--text-3);
  font-size: var(--fs-xs);
}
.cab-cal {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cab-cal-week,
.cab-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cab-cal-dow {
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-align: center;
}
.cab-cal-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  font-size: var(--fs-sm);
  background: var(--surface-2);
  color: var(--text-2);
}
.cab-cal-day.empty {
  background: none;
}
.cab-cal-day.busy {
  background: var(--brand-500);
  color: var(--text-on-brand);
  font-weight: var(--fw-semi);
}
.cab-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cab-step {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  position: relative;
}
.cab-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.cab-step-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  z-index: 1;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  border: 1px solid var(--border);
}
.cab-step.done .cab-step-dot {
  background: var(--ok);
  color: #fff;
  border-color: var(--ok);
}
.cab-step.now .cab-step-dot {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
}
.cab-step-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cab-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cab-msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: var(--fs-sm);
  background: var(--surface-2);
}
.cab-msg.me {
  align-self: flex-end;
  background: var(--brand-50);
}
.cab-msg-who {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: var(--fw-semi);
}
.cab-msg-time {
  font-size: 10px;
  color: var(--text-3);
  align-self: flex-end;
}
.cab-chat-input {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.cab-chat-input .input {
  flex: 1;
}
.cab-docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cab-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
}
.cab-doc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.cab-team {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cab-team-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cab-team-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cab-team-top {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.cab-team-top b {
  color: var(--text);
}
.cab-team-pct {
  font-size: var(--fs-sm);
}
.cab-tariff {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cab-tariff-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.cab-tariff-top b {
  font-size: var(--fs-lg);
  display: block;
}
.cab-tariff-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: var(--fs-sm);
}
.cab-tariff.dense .cab-tariff-row {
  padding: 2px 0;
}
@container era (max-width: 640px) {
  .cab-kpi-grid,
  .cab-kpi-grid.cols-3,
  .cab-kpi-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cab-donut-wrap {
    justify-content: center;
  }
  .cab-funnel-row {
    grid-template-columns: 88px 1fr 40px;
  }
  .cab-profile {
    flex-wrap: wrap;
  }
  .cab-profile-rate {
    margin-left: 0;
    text-align: left;
  }
  .cab-bars.dir-v {
    height: 170px;
  }
  .cab-cell {
    width: 44px;
    height: 34px;
  }
  .cab-listing {
    flex-wrap: wrap;
  }
  .cab-listing-acts {
    width: 100%;
    justify-content: space-between;
  }
}
@container era (max-width: 400px) {
  .cab-kpi-grid,
  .cab-kpi-grid.cols-3,
  .cab-kpi-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .cab-quick {
    grid-template-columns: 1fr;
  }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .cab-kpi-grid,
    .cab-kpi-grid.cols-3,
    .cab-kpi-grid.cols-4 {
      grid-template-columns: repeat(2, 1fr);
    }
    .cab-cell {
      width: 44px;
      height: 34px;
    }
  }
}

/* src/styles/optimize.css */
.p-page,
.a3-canvas {
  overflow-x: clip;
}
.blk {
  min-width: 0;
}
.blk img,
.blk video,
.blk iframe,
.blk canvas,
.blk svg {
  max-width: 100%;
}
.blk img {
  height: auto;
}
.blk :is(.filters-grid, .cols-slot, .row-slot, .sec-slot, .blk-items) > * {
  min-width: 0;
}
.blk :is(p, li, span, a, b, h1, h2, h3, h4, .field-label) {
  overflow-wrap: break-word;
}
.blk {
  position: relative;
}
.blk table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.blk :is(.blk-slot, .blk-items) > .blk {
  min-width: 0;
  max-width: 100%;
}
.blk :is(input, select, textarea) {
  max-width: 100%;
  box-sizing: border-box;
}
.blk :is(.filters-grid, .roles-grid, .feature-grid, .rail-track, .cols-slot) {
  min-width: 0;
}
.filters-buttons {
  flex-wrap: wrap;
  grid-column: 1 / -1;
  justify-content: flex-end;
}
.blk :is(.chips-row, .cat-tabs, .banner-actions, .cta-actions, .uiel-wrap) {
  flex-wrap: wrap;
}
.blk h1 {
  font-size: clamp(var(--fs-h2), 4.2cqi, var(--fs-h1));
}
.blk h2 {
  font-size: clamp(var(--fs-h3), 3.2cqi, var(--fs-h2));
}
.blk :is(a, button, .btn, .chip, .cat-tab):focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .blk * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
@container era (max-width: 640px) {
  .blk :is(.btn, .chip, .cat-tab, .uiel-check-row, .uiel-switch-row) {
    min-height: 44px;
  }
  .blk :is(.input, .select) {
    min-height: 44px;
    font-size: 16px;
  }
  .filters-buttons {
    justify-content: stretch;
  }
  .filters-buttons .btn {
    flex: 1 1 140px;
    justify-content: center;
  }
  .blk :is(.tabs-row, .rail-track) {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .blk :is(.tabs-row, .rail-track) > * {
    scroll-snap-align: start;
  }
  .blk .card {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@container era (max-width: 400px) {
  .filters-buttons .btn {
    flex: 1 1 100%;
  }
  .blk .chips-row .chip {
    flex: 1 1 45%;
    justify-content: center;
  }
}
@supports not (container-type: inline-size) {
  @media (max-width: 640px) {
    .blk :is(.btn, .chip, .cat-tab) {
      min-height: 44px;
    }
    .blk :is(.input, .select) {
      min-height: 44px;
      font-size: 16px;
    }
    .filters-buttons .btn {
      flex: 1 1 140px;
      justify-content: center;
    }
  }
}

/* src/styles/admin.css */
.admin-page {
  max-width: 1500px;
}
.adm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  margin-bottom: 16px;
}
.adm-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.adm-title {
  font-size: 15px;
}
.adm-page-select {
  width: 260px;
}
.adm-toolbar-right {
  display: flex;
  gap: 8px;
}
.adm-status {
  font-size: 12px;
  color: var(--text-3);
}
.adm-status.dirty {
  color: var(--warn);
  font-weight: 700;
}
.adm-grid {
  display: grid;
  grid-template-columns: 340px 300px 1fr;
  gap: 14px;
  align-items: start;
}
.adm-col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 9px;
}
.adm-blocks,
.adm-library,
.adm-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px;
  box-shadow: var(--shadow-1);
}
.adm-blocks {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.adm-library {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.adm-block-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 7px;
  background: var(--surface-2);
  transition: border-color .13s ease;
}
.adm-block-card.open {
  border-color: var(--brand-500);
  background: var(--surface);
}
.adm-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  font-size: 13px;
}
.adm-block-tools {
  display: flex;
  gap: 2px;
}
.adm-block-tools .icon-btn[disabled] {
  opacity: .3;
  pointer-events: none;
}
.rot90 svg {
  transform: rotate(90deg);
}
.adm-props {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 4px 11px 12px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: 10px;
}
.adm-props textarea.input {
  resize: vertical;
  min-height: 64px;
  font-size: 12.5px;
}
.adm-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.adm-toggle {
  accent-color: var(--brand-600);
  width: 16px;
  height: 16px;
}
.adm-lib-cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-600);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 12px 0 6px;
}
.adm-lib-cat:first-of-type {
  margin-top: 2px;
}
.adm-lib-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 6px;
  transition: border-color .13s ease;
}
.adm-lib-item:hover {
  border-color: var(--brand-500);
}
.adm-lib-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.adm-lib-meta b {
  font-size: 12.5px;
}
.adm-lib-desc {
  font-size: 11px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-btn.add {
  border: 1px solid var(--border-strong);
  flex: none;
}
.icon-btn.add:hover {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
}
.adm-preview {
  overflow: hidden;
}
.adm-preview-frame {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 14px;
  background: var(--bg);
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  zoom: 0.72;
}
.adm-preview-frame [data-block] {
  outline: 1px dashed color-mix(in srgb, var(--brand-500) 35%, transparent);
  outline-offset: 3px;
}
.block-error {
  padding: 10px 14px;
  background: var(--hot-soft);
  color: var(--hot);
  border-radius: 8px;
  font-size: 13px;
}
.block-error p {
  margin: 4px 0 8px;
  font-size: 11.5px;
  word-break: break-word;
}
@media (max-width: 1200px) {
  .adm-grid {
    grid-template-columns: 1fr 1fr;
  }
  .adm-preview {
    grid-column: 1 / -1;
  }
}
.adm-lib-hint {
  font-size: 11px;
  color: var(--text-3);
  margin: -4px 0 8px;
}
.adm-drag-handle {
  display: grid;
  place-items: center;
  color: var(--text-3);
  cursor: grab;
  flex: none;
}
.adm-block-card[draggable=true] {
  cursor: grab;
}
.adm-block-card.dragging {
  opacity: .45;
}
.adm-block-card.is-preset {
  border-left: 3px solid var(--accent-500);
}
.adm-block-head {
  gap: 8px;
}
.adm-block-head b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-dropzone {
  height: 8px;
  margin: 1px 0;
  border-radius: 4px;
  transition: all .12s ease;
}
.adm-dropzone.over {
  height: 26px;
  background: var(--brand-50);
  outline: 2px dashed var(--brand-500);
}
.adm-sec-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin: 10px 0 2px;
}
.adm-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.adm-preset-note {
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 4px;
}
.adm-preset-save {
  display: flex;
  gap: 6px;
}
.adm-preset-save .input {
  flex: 1;
}
.adm-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.adm-device {
  display: flex;
  gap: 4px;
}
.adm-preview-frame.mobile {
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
  zoom: 0.9;
}
.adm-pv-block {
  position: relative;
  cursor: pointer;
  transition: outline-color .12s ease;
}
.adm-pv-block:hover {
  outline: 2px dashed color-mix(in srgb, var(--brand-500) 55%, transparent);
  outline-offset: 3px;
}
.adm-pv-block.selected {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}
.adm-pv-block.drop-before {
  box-shadow: 0 -4px 0 0 var(--accent-500);
}
.adm-pv-block.drop-after {
  box-shadow: 0 4px 0 0 var(--accent-500);
}
.a3-shell {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.a3-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  flex: none;
  flex-wrap: wrap;
  padding: 6px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.a3-top-l,
.a3-top-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.a3-top .btn,
.a3-top .a3-seg {
  flex: none;
}
.a3-page-sel {
  max-width: 200px;
  min-width: 120px;
}
@media (max-width: 1700px) {
  .a3-top-r .hide-sm {
    display: none;
  }
}
@media (max-width: 1500px) {
  .a3-top .a3-open-site {
    display: none;
  }
}
@media (max-width: 1340px) {
  .a3-top-l .hide-sm {
    display: none;
  }
}
.a3-block-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 13px;
  max-width: 260px;
  overflow: hidden;
  flex: none;
}
.a3-block-name b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a3-logo {
  font-size: 14px;
}
.a3-page-sel {
  width: 200px;
  padding: 6.5px 11px;
}
.a3-status {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.a3-status.dirty {
  color: var(--warn);
  font-weight: 700;
}
.a3-segs {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.a3-seg {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
}
.a3-seg.active {
  background: var(--brand-600);
  color: #fff;
}
.a3-body {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
  overflow-x: clip;
}
.a3-scrim {
  display: none;
}
@keyframes a3-flash {
  0% {
    box-shadow: 0 0 0 3px var(--brand-500);
  }
  100% {
    box-shadow: 0 0 0 3px transparent;
  }
}
.a3-holder.flash {
  animation: a3-flash 1.1s ease-out;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .a3-holder.flash {
    animation: none;
  }
}
.a3-left {
  width: 264px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.a3-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.a3-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 33%;
  min-width: 0;
  padding: 9px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
}
.a3-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a3-tab.active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
}
.a3-left-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.a3-hint {
  font-size: 11px;
  color: var(--text-3);
  margin: 2px 0 8px;
  line-height: 1.45;
}
.a3-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin: 12px 0 6px;
  padding: 4px 6px;
  border-radius: 7px;
  text-align: left;
}
.a3-cat:hover {
  background: var(--accent-soft);
}
.a3-cat .icon {
  transition: transform .15s ease;
  flex: none;
}
.a3-cat.closed .icon {
  transform: rotate(-90deg);
}
.a3-cat-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a3-cat-n {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 1px 7px;
}
.a3-cat:first-of-type {
  margin-top: 4px;
}
.a3-cat-body:empty {
  display: none;
}
.a3-cat-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 2px;
  padding: 3px 6px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}
.a3-cat-all:hover {
  color: var(--brand-500);
  background: var(--brand-50);
}
.a3-lib-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  margin-bottom: 5px;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: grab;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.a3-lib-item:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-1);
}
.a3-lib-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.a3-lib-meta b {
  font-size: 12px;
}
.a3-lib-meta span {
  font-size: 10.5px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a3-grip {
  color: var(--text-3);
  display: grid;
  place-items: center;
  flex: none;
}
.a3-struct-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  margin-bottom: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
}
.a3-struct-row:hover {
  border-color: var(--brand-500);
}
.a3-struct-row.active {
  border-color: var(--brand-600);
  background: var(--brand-50);
  font-weight: 700;
}
.a3-struct-row.over {
  outline: 2px dashed var(--accent-500);
}
.a3-struct-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a3-struct-n {
  font-size: 10.5px;
  color: var(--text-3);
}
.a3-canvas-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  min-width: 0;
}
.a3-canvas {
  container: era / inline-size;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 22px;
  min-height: 70vh;
  transition: max-width .25s ease;
}
.a3-canvas.mobile {
  max-width: 390px;
  padding: 30px 12px 14px;
  border: 10px solid #1b2233;
  border-radius: 30px;
  box-shadow: var(--shadow-3);
}
.a3-canvas.mobile::before {
  content: "390 px \b7  \442\435\43b\435\444\43e\43d";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.a3-canvas.mobile {
  position: relative;
  margin-top: 34px;
}
.a3-canvas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  align-content: start;
  align-items: start;
}
.a3-canvas > * {
  grid-column: span 12;
  min-width: 0;
}
.a3-canvas > .a3-holder:has(> .bs-col-9) {
  grid-column: span 9;
}
.a3-canvas > .a3-holder:has(> .bs-col-8) {
  grid-column: span 8;
}
.a3-canvas > .a3-holder:has(> .bs-col-6) {
  grid-column: span 6;
}
.a3-canvas > .a3-holder:has(> .bs-col-4) {
  grid-column: span 4;
}
.a3-canvas > .a3-holder:has(> .bs-col-3) {
  grid-column: span 3;
}
.a3-holder {
  position: relative;
  border-radius: 8px;
}
.a3-holder:hover {
  outline: 2px dashed color-mix(in srgb, var(--brand-500) 50%, transparent);
  outline-offset: 4px;
}
.a3-holder.selected {
  outline: 2px solid var(--brand-600);
  outline-offset: 4px;
}
.a3-holder.dragging {
  opacity: .45;
}
.a3-holder.drop-before {
  box-shadow: 0 -4px 0 0 var(--accent-500);
}
.a3-holder.drop-after {
  box-shadow: 0 4px 0 0 var(--accent-500);
}
.a3-blockbar {
  position: absolute;
  top: -14px;
  right: 8px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: var(--brand-600);
  border-radius: 8px;
  box-shadow: var(--shadow-2);
  max-width: calc(100% - 12px);
  flex-wrap: wrap;
  row-gap: 2px;
}
.a3-holder:hover .a3-blockbar,
.a3-holder.selected .a3-blockbar {
  display: flex;
}
.a3-blockbar-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  margin-right: 5px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a3-canvas.mobile .a3-blockbar {
  right: 4px;
}
.a3-canvas.mobile .a3-blockbar-name {
  max-width: 96px;
}
.a3-mini {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .85);
}
.a3-mini:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.a3-mini.rot90 svg {
  transform: rotate(90deg);
}
.a3-mini.edit.on {
  background: var(--accent-500);
  color: #fff;
}
.a3-canvas {
  position: relative;
}
.a3-canvas.show-grid::after {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: 60;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(37, 99, 235, .07) 0,
      rgba(37, 99, 235, .07) calc(8.3333% - 8px),
      transparent calc(8.3333% - 8px),
      transparent 8.3333%),
    repeating-linear-gradient(
      to bottom,
      rgba(37, 99, 235, .06) 0,
      rgba(37, 99, 235, .06) 1px,
      transparent 1px,
      transparent 8px);
}
.a3-canvas.mobile.show-grid::after {
  inset: 30px 12px 14px;
}
.a3-seg.grid-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.a3-holder.edit-mode {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
  border-radius: 10px;
}
.el-item {
  position: relative;
  cursor: pointer;
}
.el-item:hover {
  outline: 1px dashed var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}
.el-item.el-sel {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 6px;
}
.el-item.dragging {
  opacity: .45;
}
.el-item.drop-before {
  box-shadow: -3px -3px 0 -1px var(--accent-500);
}
.el-item.drop-after {
  box-shadow: 3px 3px 0 -1px var(--accent-500);
}
.el-bar {
  position: absolute;
  top: -13px;
  right: -4px;
  z-index: 72;
  display: none;
  align-items: center;
  gap: 1px;
  background: #202939;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  padding: 1px 3px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.el-item:hover > .el-bar,
.el-item.el-sel > .el-bar {
  display: inline-flex;
}
.el-bar .a3-mini {
  width: 19px;
  height: 19px;
}
.el-bar-name {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  padding: 0 4px;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.el-head b {
  color: var(--brand-600);
}
.el-ops {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.el-ops .a3-danger {
  color: #d33;
  margin-left: auto;
}
.adm-warn {
  border: 1px solid var(--accent-500);
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}
.adm-warn b {
  display: block;
  margin-bottom: 4px;
}
.adm-warn .btns {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.a3-right {
  width: 0;
  flex: none;
  overflow: hidden;
  background: var(--surface);
  border-left: 1px solid var(--border);
  transition: width .18s ease;
  display: flex;
  flex-direction: column;
}
.a3-right.open {
  width: 320px;
}
.a3-right-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  flex: none;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.a3-right-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 20px;
}
@media (max-width: 1000px) {
  .a3-left {
    width: 220px;
  }
  .a3-right.open {
    width: 270px;
  }
}
.a3-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.a3-tab .icon {
  opacity: .8;
}
.a3-tab.active .icon {
  opacity: 1;
}
@media (max-width: 1100px) {
  .a3-tab .hide-xs {
    display: none;
  }
}
.tabs-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tabs-cat {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
}
.tabs-cat:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.tabs-cat.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.tabs-cat.add {
  color: var(--accent-600);
  font-weight: 800;
}
.tabs-cat-ops {
  display: flex;
  gap: 6px;
  margin: 8px 0 4px;
}
.tabs-cat-ops .a3-danger {
  color: #d33;
  margin-left: auto;
}
.tabs-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  background: var(--bg-1, var(--surface));
}
.tabs-item-head {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tabs-item-name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 700;
}
.tabs-add {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tabs-add .input {
  flex: 1;
}
.a3-graph-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 14px;
}
.a3-graph-legend {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 4;
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--surface);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 10px;
}
.a3-graph {
  position: relative;
}
.a3-graph.grid {
  --gline: color-mix(in srgb, var(--text-3) 22%, transparent);
  background-image:
    linear-gradient(
      to right,
      var(--gline) 1px,
      transparent 1px),
    linear-gradient(
      to bottom,
      var(--gline) 1px,
      transparent 1px);
  background-size: var(--gstep, 20px) var(--gstep, 20px);
}
.a3-graph-svg {
  position: absolute;
  inset: 0;
  color: var(--text-3);
  pointer-events: none;
}
.a3-edge {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
  opacity: .55;
  pointer-events: stroke;
}
.a3-edge.active {
  stroke: var(--brand-600);
  opacity: 1;
  stroke-width: 2.2;
}
.a3-edge.dim {
  opacity: .12;
}
.a3-edge.out {
  stroke: var(--brand-600);
  stroke-width: 2.6;
  opacity: 1;
}
.a3-edge.in {
  stroke: var(--ok);
  stroke-width: 2.6;
  opacity: 1;
}
.a3-edge-label {
  font-size: 10.5px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.a3-edge-label.out {
  fill: var(--brand-600);
}
.a3-edge-label.in {
  fill: var(--ok);
}
.a3-edge.k-external {
  stroke-dasharray: 5 4;
}
.a3-edge.k-action {
  stroke: var(--accent-600);
  stroke-dasharray: 2 4;
  stroke-linecap: round;
}
.a3-edge.k-action.active {
  stroke: var(--accent-600);
}
.a3-graph-tools {
  position: sticky;
  top: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 10px 8px;
  vertical-align: top;
}
.a3-graph-chip {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-3);
}
.a3-graph-chip.on {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.a3-graph-legend-items {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}
.lg-line {
  display: inline-block;
  width: 18px;
  height: 0;
  border-top: 2px solid var(--text-3);
}
.lg-line.k-external {
  border-top-style: dashed;
}
.lg-line.k-action {
  border-top-style: dotted;
  border-top-color: var(--accent-600);
}
.lg-line.dir-out {
  border-top-color: var(--brand-600);
  border-top-width: 3px;
}
.lg-line.dir-in {
  border-top-color: var(--ok);
  border-top-width: 3px;
}
.a3-graph-step {
  width: 88px;
  min-height: 26px;
  padding: 3px 8px;
  font-size: 11.5px;
}
.a3-graph-step:disabled {
  opacity: .5;
}
.a3-node.ext {
  width: 170px;
  border-style: dashed;
  background: var(--bg-1, var(--surface));
}
.a3-node.ext .a3-node-title {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.a3-node.ext.k-action {
  border-color: var(--accent-500);
}
.a3-node.ext.k-action .a3-node-title {
  color: var(--accent-600);
}
.ext-sub {
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabs-inner {
  margin-top: 6px;
  border-top: 1px dashed var(--border);
  padding-top: 6px;
}
.tabs-inner summary {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-600);
  cursor: pointer;
}
.tabs-inner-body {
  margin-top: 6px;
  padding-left: 6px;
  border-left: 2px solid var(--border);
}
.a3-node {
  position: absolute;
  width: 200px;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  cursor: pointer;
  user-select: none;
}
.a3-node:hover {
  border-color: var(--brand-500);
}
.a3-node.sel {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px var(--brand-100, rgba(37,99,235,.25));
}
.a3-node.dragging {
  opacity: .9;
  box-shadow: var(--shadow-3);
  z-index: 6;
}
.a3-node.linked-out {
  border-color: var(--brand-600);
}
.a3-node.linked-in {
  border-color: var(--ok);
}
.a3-node.faded {
  opacity: .38;
}
.a3-node.faded:hover {
  opacity: 1;
}
.a3-node-title {
  font-size: 13.5px;
  font-weight: 800;
  cursor: grab;
}
.a3-node-title:active {
  cursor: grabbing;
}
.a3-node-bar {
  position: absolute;
  top: -15px;
  right: 6px;
  z-index: 7;
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  background: var(--brand-600);
  border-radius: 8px;
  box-shadow: var(--shadow-2);
}
.a3-node:hover .a3-node-bar,
.a3-node.sel .a3-node-bar {
  display: flex;
}
.a3-node-grip {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .9);
  cursor: grab;
  touch-action: none;
}
.a3-node-grip:active {
  cursor: grabbing;
}
.a3-node-grip:hover,
.a3-node-bar .a3-mini:hover {
  background: rgba(255, 255, 255, .18);
}
.a3-node-bar .a3-mini.danger:hover {
  background: var(--hot);
}
.a3-node-slug {
  font-size: 11px;
  color: var(--accent-600);
  font-family: ui-monospace, monospace;
  margin-top: 2px;
}
.a3-node-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.a3-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.a3-kv span {
  color: var(--text-3);
}
.a3-link-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 4px 0;
  color: var(--text-2);
}
.a3-link-row .icon {
  color: var(--brand-600);
  flex: none;
}
.ctx-host {
  position: fixed;
  inset: 0;
  z-index: 9500;
}
.ctx-menu {
  position: absolute;
  min-width: 232px;
  max-width: 320px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-3);
  font-size: 13px;
}
.ctx-title {
  padding: 7px 10px 2px;
  font-weight: 800;
  font-size: 13px;
}
.ctx-hint {
  padding: 0 10px 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-3);
}
.ctx-sep {
  height: 1px;
  background: var(--border);
  margin: 5px 4px;
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ctx-item:hover {
  background: var(--surface-2);
}
.ctx-item.danger {
  color: var(--hot);
}
.ctx-item.disabled {
  opacity: .45;
  cursor: default;
}
.ctx-item .icon {
  color: var(--text-3);
  flex: none;
}
.ctx-ico-ph {
  width: 14px;
  flex: none;
}
.drw-host {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: flex;
  justify-content: flex-end;
}
.drw-back {
  position: absolute;
  inset: 0;
  background: rgba(13, 20, 38, .42);
}
.drw-panel {
  position: relative;
  width: min(460px, 100vw);
  max-width: 100vw;
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  animation: drw-in .18s ease-out;
}
.drw-panel.wide {
  width: min(880px, 100vw);
}
@keyframes drw-in {
  from {
    transform: translateX(24px);
    opacity: .6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.drw-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.drw-head b {
  flex: 1;
}
.drw-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drw-body {
  flex: 1;
  overflow: auto;
  padding: 14px;
}
.hlp-wrap {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: start;
}
.hlp-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 76vh;
  overflow: auto;
}
.hlp-search {
  font-size: 13px;
}
.hlp-cat-box > summary {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
  cursor: pointer;
  padding: 6px 2px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.hlp-cat {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-3);
  padding: 6px 2px;
}
.hlp-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  min-height: 34px;
}
.hlp-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.hlp-link.active {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
}
.hlp-view {
  max-width: 62ch;
}
.hlp-group {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-600);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.hlp-article h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}
.hlp-article h3 {
  font-size: 14.5px;
  margin: 16px 0 6px;
}
.hlp-article p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 10px;
}
.hlp-short {
  font-weight: 600;
  color: var(--text) !important;
}
.hlp-steps,
.hlp-tips {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.hlp-steps li,
.hlp-tips li {
  margin-bottom: 5px;
}
.hlp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hlp-rel {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-2);
  min-height: 32px;
}
.hlp-rel:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.hlp-hint-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-3);
}
.aud-sum {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 12px;
}
.aud-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 10px;
}
.aud-item.error {
  border-left-color: var(--hot);
}
.aud-item.warn {
  border-left-color: var(--warn);
}
.aud-item.info {
  border-left-color: var(--info);
}
.aud-item p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 6px 0 9px;
}
.aud-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.aud-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}
.aud-badge.error {
  background: var(--hot-soft);
  color: var(--hot);
}
.aud-badge.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.aud-badge.info {
  background: var(--info-soft);
  color: var(--info);
}
.aud-ops {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aud-ok {
  text-align: center;
  padding: 26px 12px;
  color: var(--ok);
}
.aud-ok b {
  display: block;
  margin: 8px 0 4px;
  font-size: 16px;
}
.aud-ok p {
  color: var(--text-2);
  font-size: 13px;
}
.adm-group {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.adm-group > summary {
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text-2);
  list-style: none;
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  align-items: center;
}
.adm-group > summary::after {
  content: "\25be";
  color: var(--text-3);
}
.adm-group[open] > summary::after {
  content: "\25b4";
}
.adm-group > .adm-form {
  padding: 0 11px 11px;
}
.adm-field-hint {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-3);
  margin: -4px 0 10px;
}
.adm-warn-inline {
  font-size: 11.5px;
  color: var(--hot);
  margin: -4px 0 10px;
}
.adm-act {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 10px;
  background: var(--surface-2);
}
.adm-act .adm-sec-title {
  margin-top: 0;
}
.adm-more {
  margin-top: 6px;
}
.adm-more > summary {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-600);
  cursor: pointer;
  min-height: 30px;
}
.adm-help-btn {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.adm-help-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.adm-sec-title {
  display: flex;
  align-items: center;
  gap: 6px;
}
.a3-graph-scroll {
  position: relative;
}
.a3-graph-zoom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-3);
}
.a3-graph-zoom i {
  font-style: normal;
  min-width: 38px;
  text-align: center;
}
.a3-edge-hit {
  stroke: transparent;
  stroke-width: 14;
  fill: none;
  pointer-events: stroke;
  cursor: pointer;
}
.a3-graph-svg {
  pointer-events: none;
}
.a3-graph-svg .a3-edge-hit {
  pointer-events: stroke;
}
.a3-node.current {
  border-color: var(--accent-500);
}
.a3-node.orphan {
  border-style: dashed;
}
.a3-node-io {
  display: flex;
  gap: 10px;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 5px;
}
.a3-node-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.a3-proj-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.a3-orphan {
  font-size: 10px;
  font-weight: 800;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: 999px;
  padding: 2px 7px;
}
.a3-link-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a3-link-bad {
  font-size: 10.5px;
  color: var(--hot);
}
.a3-link-row .select.sm {
  max-width: 130px;
  font-size: 11.5px;
  padding: 4px 6px;
  min-height: 30px;
}
.a3-seg.help {
  color: var(--brand-600);
}
@media (max-width: 720px) {
  .hlp-wrap {
    grid-template-columns: 1fr;
  }
  .hlp-side {
    position: static;
    max-height: none;
  }
}
.only-narrow {
  display: none;
}
@media (max-width: 860px) {
  .only-narrow {
    display: inline-flex;
  }
  .only-wide {
    display: none !important;
  }
  .a3-top {
    height: auto;
    min-height: 50px;
    padding: 6px 8px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .a3-top-l,
  .a3-top-r {
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .a3-top-r {
    justify-content: flex-end;
  }
  .a3-page-sel {
    width: auto;
    max-width: 42vw;
    flex: 1 1 120px;
    min-width: 90px;
  }
  .a3-status {
    flex: none;
  }
  .a3-top .a3-status {
    display: none;
  }
  .a3-top .btn {
    padding: 7px 10px;
  }
  .a3-top-r .btn-ghost span {
    display: none;
  }
  .a3-body {
    overflow: hidden;
  }
  .a3-left,
  .a3-right {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 30;
    width: min(84vw, 320px);
    max-width: 100%;
    box-shadow: var(--shadow-3);
    transition: transform .2s ease;
  }
  .a3-left {
    left: 0;
    transform: translateX(-101%);
  }
  .a3-left.open {
    transform: none;
  }
  .a3-right {
    right: 0;
    transform: translateX(101%);
  }
  .a3-right.open {
    width: min(92vw, 340px);
    transform: none;
  }
  .a3-scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(10, 15, 25, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  .a3-body:has(.a3-left.open) .a3-scrim,
  .a3-body:has(.a3-right.open) .a3-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .a3-canvas-wrap {
    padding: 12px 10px 40px;
    -webkit-overflow-scrolling: touch;
  }
  .a3-canvas {
    padding: 12px 10px;
    border-radius: var(--radius);
  }
  .a3-canvas.mobile {
    max-width: 100%;
    border-width: 4px;
    border-radius: 18px;
    margin-top: 26px;
  }
  .a3-holder.selected .a3-blockbar {
    display: flex;
    flex-wrap: wrap;
    top: -16px;
    right: 4px;
  }
  .a3-mini {
    width: 30px;
    height: 30px;
  }
}
@supports not selector(:has(*)) {
  .a3-scrim {
    display: none !important;
  }
}

/* src/styles/superadmin.css */
.sa-root {
  min-height: 100vh;
  background: var(--bg);
}
.sa-content {
  display: block;
}
.sa-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.sa-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 18px;
  background: var(--sidebar-bg);
  color: #fff;
  border-bottom: 1px solid var(--sidebar-border);
}
.sa-burger {
  display: none;
  color: #cfd7ea;
}
.sa-burger:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.sa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sa-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(247, 148, 29, .16);
  color: var(--accent-500);
}
.sa-brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.sa-brand-txt b {
  font-size: 14.5px;
}
.sa-brand-sub {
  font-size: 11px;
  color: #9fabc7;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sa-topbar-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-topbar-r .btn-ghost {
  color: #cfd7ea;
}
.sa-topbar-r .btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.sa-topbar-r .btn-outline {
  background: transparent;
  color: #e6ebf6;
  border-color: rgba(255, 255, 255, .22);
}
.sa-topbar-r .btn-outline:hover {
  border-color: var(--accent-500);
  color: var(--accent-500);
}
.sa-langs {
  display: inline-flex;
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 2px;
}
.sa-lang {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #aeb9d2;
  letter-spacing: .04em;
}
.sa-lang.active {
  background: var(--brand-600);
  color: #fff;
}
.sa-me {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-500);
  color: #3a2402;
  font-size: 12px;
  font-weight: 800;
}
.sa-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  flex: 1;
  min-height: 0;
}
.sa-aside {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 14px 12px;
}
.sa-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 74px;
}
.sa-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: background .15s ease, color .15s ease;
}
.sa-nav-item .icon {
  color: var(--text-3);
  transition: color .15s ease;
}
.sa-nav-item:hover {
  background: var(--neutral-soft);
  color: var(--text);
}
.sa-nav-item.active {
  background: var(--brand-50);
  color: var(--brand-600);
}
.sa-nav-item.active .icon {
  color: var(--brand-600);
}
.sa-main {
  padding: 22px 26px 60px;
  min-width: 0;
}
.sa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.sa-h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.sa-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-section {
  display: block;
}
.sa-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.sa-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
}
.sa-metric-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
}
.sa-metric.brand .sa-metric-ic {
  background: var(--brand-50);
  color: var(--brand-600);
}
.sa-metric.info .sa-metric-ic {
  background: var(--info-soft);
  color: var(--info);
}
.sa-metric.warn .sa-metric-ic {
  background: var(--warn-soft);
  color: var(--warn);
}
.sa-metric.ok .sa-metric-ic {
  background: var(--ok-soft);
  color: var(--ok);
}
.sa-metric.accent .sa-metric-ic {
  background: var(--accent-soft);
  color: var(--accent-600);
}
.sa-metric-val {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.sa-metric-lbl {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
}
.sa-metric-sub {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.sa-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.sa-panel {
  padding: 16px 18px;
}
.sa-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.sa-panel-head .icon {
  color: var(--brand-500);
}
.sa-panel-hint {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
}
.sa-roles {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sa-role-row {
  display: grid;
  grid-template-columns: 130px 1fr 28px;
  align-items: center;
  gap: 10px;
}
.sa-role-name {
  font-size: 12.5px;
  color: var(--text-2);
}
.sa-role-bar {
  height: 8px;
  border-radius: 5px;
  background: var(--neutral-soft);
  overflow: hidden;
}
.sa-role-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--brand-500);
  transition: width .4s ease;
}
.sa-role-n {
  font-size: 12.5px;
  font-weight: 700;
  text-align: right;
}
.sa-storage-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-2);
}
.sa-storage-note .icon {
  color: var(--text-3);
}
.sa-quicks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sa-quick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.sa-quick .icon {
  color: var(--brand-500);
}
.sa-quick:hover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}
.sa-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sa-search {
  position: relative;
  display: flex;
  align-items: center;
}
.sa-search .icon {
  position: absolute;
  left: 11px;
  color: var(--text-3);
  pointer-events: none;
}
.sa-search .input {
  padding-left: 34px;
  min-width: 240px;
}
.input.sm {
  padding: 7px 11px;
  font-size: 12.5px;
}
.input.xs {
  padding: 5px 9px;
  font-size: 12px;
}
.select.sm {
  padding-right: 28px;
}
.sa-table-wrap {
  min-height: 120px;
}
.sa-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.sa-tr {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 1.2fr .9fr 1.3fr;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
}
.sa-tr:first-child {
  border-top: none;
}
.sa-th {
  background: var(--surface-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sa-tr.blocked {
  background: color-mix(in srgb, var(--hot) 4%, var(--surface));
}
.sa-ta-r {
  text-align: right;
}
.sa-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sa-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  background: var(--neutral);
}
.sa-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa-user-meta b {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-user-meta .muted {
  font-size: 11.5px;
}
.sa-role-sel {
  max-width: 100%;
}
.sa-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.sa-row-act {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all .15s ease;
}
.sa-row-act:hover {
  background: var(--neutral-soft);
  color: var(--text);
}
.sa-row-act.warn:hover {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: var(--warn);
}
.sa-row-act.ok:hover {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: var(--ok);
}
.sa-row-act.danger:hover {
  background: var(--hot-soft);
  color: var(--hot);
  border-color: var(--hot);
}
.sa-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--neutral-soft);
  color: var(--text-2);
}
.sa-tag.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.sa-tag.danger {
  background: var(--hot-soft);
  color: var(--hot);
}
.sa-tag.soft {
  background: var(--brand-50);
  color: var(--brand-600);
}
.sa-tag.muted {
  background: var(--neutral-soft);
  color: var(--text-3);
}
.sa-tag.self {
  background: var(--accent-soft);
  color: var(--accent-600);
}
.role-admin {
  background: #7c3aed !important;
}
.role-realtor {
  background: var(--brand-500) !important;
}
.role-agency {
  background: #0891b2 !important;
}
.role-developer {
  background: #0d9488 !important;
}
.role-partner {
  background: #d97706 !important;
}
.role-seller {
  background: #16a34a !important;
}
.role-buyer {
  background: #db2777 !important;
}
.sa-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sa-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sa-tab:hover {
  color: var(--text);
}
.sa-tab.active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
}
.sa-tab-n {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--neutral-soft);
  color: var(--text-2);
}
.sa-tab-n.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.sa-tab-n.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.sa-tab-n.danger {
  background: var(--hot-soft);
  color: var(--hot);
}
.sa-mod-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sa-mod-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}
.sa-mod-card.status-approved {
  opacity: .82;
}
.sa-mod-card.status-rejected {
  opacity: .82;
}
.sa-mod-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 72px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.sa-mod-cat {
  position: absolute;
  bottom: -8px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  white-space: nowrap;
}
.sa-mod-main {
  min-width: 0;
}
.sa-mod-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.sa-mod-top h3 {
  font-size: 15px;
  font-weight: 700;
}
.sa-mod-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-600);
}
.sa-mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.sa-mod-prop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.sa-mod-prop .icon {
  color: var(--text-3);
}
.sa-mod-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.sa-mod-reason {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--hot);
  max-width: 220px;
}
.btn.danger-outline {
  border-color: var(--border-strong);
  color: var(--hot);
  background: var(--surface);
}
.btn.danger-outline:hover {
  border-color: var(--hot);
  background: var(--hot-soft);
}
.sa-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.sa-note .icon {
  color: var(--brand-500);
  flex-shrink: 0;
}
.sa-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.sa-page-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sa-page-card:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-2);
}
.sa-page-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
  flex-shrink: 0;
}
.sa-page-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sa-page-body b {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sa-page-slug {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: ui-monospace, monospace;
}
.sa-page-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}
.sa-page-open {
  color: var(--text-3);
}
.sa-page-card:hover .sa-page-open {
  color: var(--brand-500);
}
.sa-subhead {
  margin-bottom: 12px;
}
.sa-subhead b {
  font-size: 15px;
}
.sa-subhead .muted {
  display: block;
  font-size: 12.5px;
  margin-top: 2px;
}
.sa-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.sa-preset-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.sa-preset-star {
  color: var(--accent-500);
  font-size: 18px;
}
.sa-preset-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa-preset-body b {
  font-size: 13px;
}
.sa-preset-body .muted {
  font-size: 11.5px;
}
.sa-settings-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.sa-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sa-form-grid .field:only-child,
.sa-form-grid .field:last-child:nth-child(odd) {
  grid-column: auto;
}
.sa-panel + .sa-panel {
  margin-top: 14px;
}
.sa-switches {
  display: flex;
  flex-direction: column;
}
.sa-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.sa-switch-row:first-child {
  border-top: none;
}
.sa-switch-txt b {
  font-size: 13.5px;
}
.sa-switch-txt .muted {
  display: block;
  font-size: 12px;
  margin-top: 1px;
}
.sa-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
}
.sa-switch-inp {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.sa-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background .18s ease;
}
.sa-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease;
}
.sa-switch-inp:checked + .sa-switch-track {
  background: var(--brand-600);
}
.sa-switch-inp:checked + .sa-switch-track::after {
  transform: translateX(18px);
}
.sa-integrations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sa-integr-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.sa-integr-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.sa-integr-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}
.sa-integr-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
}
.sa-integr-status.on {
  color: var(--ok);
}
.sa-integr-status.off {
  color: var(--text-3);
}
.sa-save-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.sa-standalone {
  min-height: calc(100vh - 0px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.sa-notice,
.sa-login {
  width: 100%;
  max-width: 380px;
  padding: 28px 26px;
  text-align: center;
}
.sa-notice-ic {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.sa-notice h2 {
  font-size: 18px;
  margin-bottom: 6px;
}
.sa-notice p {
  margin-bottom: 16px;
}
.sa-login {
  text-align: left;
}
.sa-login-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  color: var(--brand-600);
  margin-bottom: 6px;
}
.sa-login-brand b {
  font-size: 15px;
}
.sa-login h2 {
  font-size: 17px;
  text-align: center;
  margin-bottom: 16px;
}
.sa-login .field {
  margin-bottom: 12px;
}
.sa-login .w100 {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.sa-login-hint {
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
}
.w100 {
  width: 100%;
}
.sa-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px;
  color: var(--text-3);
  font-size: 13px;
}
.sa-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: sa-spin .7s linear infinite;
}
@keyframes sa-spin {
  to {
    transform: rotate(360deg);
  }
}
.sa-toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sa-toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transform: translateX(120%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.sa-toast.show {
  transform: translateX(0);
  opacity: 1;
}
.sa-toast.ok .icon {
  color: var(--ok);
}
.sa-toast.error .icon {
  color: var(--hot);
}
@media (max-width: 960px) {
  .sa-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .sa-cols,
  .sa-settings-cols {
    grid-template-columns: 1fr;
  }
  .sa-integrations {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .sa-burger {
    display: grid;
  }
  .sa-layout {
    grid-template-columns: 1fr;
  }
  .sa-aside {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    width: 240px;
    z-index: 25;
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-3);
  }
  .sa-shell.nav-open .sa-aside {
    transform: translateX(0);
  }
  .sa-shell.nav-open::after {
    content: "";
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(15, 20, 35, .4);
    z-index: 24;
  }
  .sa-main {
    padding: 16px 14px 60px;
  }
  .hide-sm {
    display: none !important;
  }
  .sa-th {
    display: none;
  }
  .sa-tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .sa-user-cell {
    flex: 1 1 100%;
  }
  .sa-role-sel {
    flex: 1 1 140px;
  }
  .sa-tr > .sa-tag {
    align-self: center;
  }
  .sa-row-actions {
    margin-left: auto;
  }
  .sa-mod-card {
    grid-template-columns: 1fr;
  }
  .sa-mod-thumb {
    width: 100%;
    height: 90px;
  }
  .sa-mod-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .sa-form-grid {
    grid-template-columns: 1fr;
  }
  .sa-toasts {
    left: 14px;
    right: 14px;
  }
}
@media (max-width: 480px) {
  .sa-metrics {
    grid-template-columns: 1fr;
  }
  .sa-quicks {
    grid-template-columns: 1fr;
  }
}
.lib-seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 18px;
}
.lib-seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: background .15s ease, color .15s ease;
}
.lib-seg-btn .icon {
  color: var(--text-3);
}
.lib-seg-btn:hover {
  color: var(--text);
}
.lib-seg-btn.active {
  background: var(--surface);
  color: var(--brand-600);
  box-shadow: var(--shadow-1);
}
.lib-seg-btn.active .icon {
  color: var(--brand-600);
}
.lib-body {
  display: block;
}
.lib-filters {
  margin-bottom: 16px;
}
.lib-filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lib-search {
  flex: 1 1 260px;
  max-width: 380px;
}
.lib-fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.lib-fav-toggle .icon {
  color: var(--hot);
}
.lib-fav-toggle input {
  accent-color: var(--brand-600);
}
.lib-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.lib-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.lib-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .15s ease;
}
.lib-chip:hover {
  border-color: var(--brand-500);
  color: var(--brand-600);
}
.lib-chip.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.lib-chip.tag {
  font-weight: 500;
  color: var(--text-3);
}
.lib-chip.tag.active {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: #3a2402;
}
.lib-tags {
  opacity: .96;
}
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.lib-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lib-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 10px;
}
.lib-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lib-card-title b {
  font-size: 14.5px;
}
.lib-star {
  margin-left: auto;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color .15s ease, transform .1s ease;
}
.lib-star:hover {
  color: var(--hot);
  transform: scale(1.12);
}
.lib-star.on {
  color: var(--hot);
}
.lib-star.on .icon {
  fill: currentColor;
}
.lib-preview {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lib-preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--surface));
  pointer-events: none;
}
.lib-preview > * {
  transform: scale(.82);
  transform-origin: top left;
  width: 122%;
}
.lib-preview .block-error {
  color: var(--hot);
  font-size: 12.5px;
  transform: none;
  width: auto;
}
.lib-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 0;
  flex-wrap: wrap;
}
.lib-type {
  font-size: 11.5px;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 6px;
}
.lib-desc {
  padding: 8px 16px 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.lib-more {
  align-self: flex-start;
  margin: 10px 16px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-600);
}
.lib-more:hover {
  text-decoration: underline;
}
.lib-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 16px;
}
.lib-details.open {
  max-height: 1200px;
  padding-bottom: 14px;
}
.lib-details-inner {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.lib-kv {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.lib-kv-k {
  color: var(--text-3);
  font-weight: 600;
}
.lib-sub {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-3);
  margin: 12px 0 8px;
}
.lib-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lib-field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font-size: 12.5px;
  align-items: baseline;
}
.lib-field-row b {
  font-weight: 600;
}
.lib-field-type {
  font-size: 11px;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 1px 7px;
  border-radius: 5px;
  justify-self: end;
}
.lib-field-help {
  grid-column: 1 / -1;
  color: var(--text-3);
  font-size: 12px;
}
.lib-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-3);
  margin: 10px 0;
}
.lib-code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lib-code > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.lib-code-k {
  color: var(--text-3);
  min-width: 46px;
}
.lib-code code {
  font-size: 12px;
  color: var(--text);
}
.lib-code .btn {
  align-self: flex-start;
  margin-top: 6px;
}
.lib-kit-group {
  margin-bottom: 22px;
}
.lib-kit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.lib-kit-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.lib-kit-item.wide {
  flex: 1 1 100%;
}
.lib-kit-item code {
  font-size: 11.5px;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 6px;
}
.lib-topline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.lib-topline > .sa-note {
  flex: 1 1 320px;
  margin: 0;
}
.lib-add {
  flex: none;
}
.lib-card.arch {
  opacity: .6;
}
.lib-card.arch .lib-preview {
  filter: grayscale(.6);
}
.lib-card-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.lib-card-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.lib-card-act:hover {
  border-color: var(--brand-500);
  color: var(--brand-500);
  background: var(--brand-50);
}
.lib-sort {
  width: auto;
  min-width: 190px;
}
.lib-grid.grouped {
  display: block;
}
.lib-group {
  margin-bottom: 18px;
}
.lib-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-align: left;
}
.lib-group-head .icon {
  transition: transform .15s ease;
  transform: rotate(-90deg);
}
.lib-group-head.open .icon {
  transform: none;
}
.lib-group-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 9px;
}
.lib-var {
  border-top: 1px dashed var(--border);
  margin-top: 10px;
  padding-top: 10px;
}
.lib-var-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.lib-var-head b {
  font-size: 13px;
}
.lib-var-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-500);
  background: var(--brand-50);
  border-radius: 999px;
  padding: 1px 8px;
}
.lib-var-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  margin-bottom: 6px;
}
.lib-var-item.on {
  border-color: var(--ok);
  background: var(--ok-soft);
}
.lib-var-item.arch {
  opacity: .62;
}
.lib-var-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.lib-var-meta b {
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lib-var-note {
  font-size: 11.5px;
  color: var(--text-3);
}
.lib-var-acts {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.lib-var-act {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--text-2);
}
.lib-var-act:hover {
  background: var(--neutral-soft);
  color: var(--text);
}
.lib-var-empty {
  font-size: 12px;
  color: var(--text-3);
  margin: 2px 0 0;
}
.lib-var-modal {
  max-width: 720px;
  width: 100%;
}
.lib-var-form {
  max-height: 70vh;
  overflow: auto;
}
.lib-var-preview {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: var(--bg);
  overflow: hidden;
  container: era / inline-size;
}
.lib-var-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.lib-var-i18n {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  grid-column: 1 / -1;
}
.lib-var-hint {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
}
.lib-token-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  margin: 0 0 14px;
  box-shadow: var(--shadow-1);
}
.lib-token-spacer {
  flex: 1 1 auto;
}
.lib-token-count {
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 600;
}
.lib-token-count.on {
  color: var(--accent-600);
}
.lib-token-note {
  margin: -4px 0 8px;
  font-size: 12.5px;
  color: var(--text-3);
}
.lib-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.lib-token {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
}
.lib-token.changed {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lib-token-swatch {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  color: var(--text);
}
.lib-token-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.lib-token-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lib-token-head b {
  font-size: 13px;
}
.lib-token-meta code {
  font-size: 11.5px;
  color: var(--text-3);
}
.lib-token-hint {
  font-size: 11.5px;
  color: var(--text-3);
}
.lib-token-val {
  font-size: 11px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lib-token-undo {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--accent-600);
  background: var(--accent-soft);
}
.lib-token-undo:hover {
  background: var(--accent-500);
  color: #fff;
}
.lib-token-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}
.lib-token-edit .input {
  padding: 5px 8px;
  font-size: 12px;
  height: 30px;
}
.lib-token-edit .select {
  min-width: 120px;
  flex: 1 1 120px;
}
.lib-token-text {
  flex: 1 1 110px;
  min-width: 90px;
  font-family:
    ui-monospace,
    Consolas,
    monospace;
}
.lib-token-text.wide {
  flex: 1 1 100%;
}
.lib-token-num {
  width: 78px;
  flex: none;
}
.lib-token-unit {
  font-size: 11.5px;
  color: var(--text-3);
}
.lib-token-color {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: none;
  cursor: pointer;
  flex: none;
  -webkit-appearance: none;
  appearance: none;
}
.lib-token-color::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.lib-token-color::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}
.lib-typo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-top: 12px;
}
.lib-typo code {
  font-size: 12px;
  color: var(--text-3);
}
@media (max-width: 760px) {
  .lib-grid {
    grid-template-columns: 1fr;
  }
  .lib-count {
    margin-left: 0;
  }
}
.sa-page-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  cursor: default;
}
.sa-page-card.tpl {
  background: var(--surface);
  border-style: dashed;
}
.sa-page-top {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}
.sa-page-ic.tpl {
  background: var(--info-soft);
  color: var(--info);
}
.sa-page-meta {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sa-tag.info {
  background: var(--info-soft);
  color: var(--info);
}
.sa-page-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sa-page-actions .sa-row-act {
  border: 1px solid var(--border);
}
.sa-row-act.danger {
  color: var(--text-3);
}
.btn.xs {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 8px;
}
.sa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 20, 35, .5);
  backdrop-filter: blur(2px);
  animation: sa-fade .15s ease;
}
@keyframes sa-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sa-modal {
  width: 100%;
  max-width: 440px;
  padding: 0;
  overflow: hidden;
}
.sa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.sa-modal-head b {
  font-size: 15.5px;
}
.sa-modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-height: 70vh;
  overflow-y: auto;
}
.sa-modal-hint {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 4px;
}
.sa-modal-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.sa-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.sa-lead-count {
  display: block;
  font-size: 12.5px;
  margin-top: 4px;
}
.sa-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}
.sa-bar .input {
  max-width: 260px;
}
.sa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sa-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text-2);
  min-height: 34px;
}
.sa-chip.on {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  font-weight: 700;
}
.sa-leads {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}
.sa-lead {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sa-lead.st-done {
  opacity: .72;
}
.sa-lead.st-spam {
  opacity: .5;
}
.sa-lead-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}
.sa-lead-when {
  font-size: 11.5px;
  margin-left: auto;
}
.sa-lead-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.sa-lead-badge.new {
  background: var(--info-soft);
  color: var(--info);
}
.sa-lead-badge.done {
  background: var(--ok-soft);
  color: var(--ok);
}
.sa-lead-badge.spam {
  background: var(--neutral-soft);
  color: var(--neutral);
}
.sa-lead-src {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.sa-lead-data {
  display: grid;
  gap: 5px;
}
.sa-lead-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 4px;
}
.sa-lead-kv span {
  color: var(--text-3);
}
.sa-lead-kv b {
  text-align: right;
  overflow-wrap: anywhere;
}
.sa-lead-ops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.sa-danger {
  color: var(--hot);
}
.sa-lead-queue {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  background: var(--warn-soft);
  color: var(--warn);
  padding: 11px 13px;
  border-radius: 12px;
}
.cab-adm-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.cab-adm-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cab-adm-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cab-adm-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-500);
}
.cab-adm-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.cab-adm-title b {
  font-size: 14.5px;
}
.cab-adm-title code {
  font-size: 11.5px;
  color: var(--text-3);
}
.cab-adm-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2);
  min-height: 34px;
}
.cab-adm-acts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* src/styles/responsive.css */
.p-burger {
  display: none;
}
@media (max-width: 920px) {
  .p-burger {
    display: grid;
  }
  .p-topbar-inner {
    height: 54px;
    gap: 10px;
    padding: 0 14px;
  }
  .p-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 54px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    padding: 8px 10px 12px;
    gap: 2px;
    z-index: 60;
  }
  .p-topbar.nav-open .p-nav {
    display: flex;
  }
  .p-nav-link {
    padding: 11px 12px;
    font-size: var(--fs-base);
  }
  .hide-m {
    display: none;
  }
  .p-page {
    padding: 14px 14px 40px;
  }
  .hero-brand {
    padding: 16px;
    gap: 12px;
  }
  .hero-slogan {
    margin-left: 0;
    font-size: var(--fs-base);
  }
  .deal-tab {
    padding: 9px 14px;
    font-size: var(--fs-sm);
    flex: 1;
    text-align: center;
  }
  .deal-tabs {
    width: 100%;
  }
  .btn-accent.lg {
    width: 100%;
    justify-content: center;
  }
  .action-mid {
    width: 100%;
  }
  .action-mid .btn {
    flex: 1;
    justify-content: center;
  }
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filters-buttons {
    grid-column: 1 / -1;
  }
  .filters-buttons .btn {
    flex: 1;
    justify-content: center;
  }
  .rail-track {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 9px;
  }
  .p-card-media {
    height: 96px;
  }
  .banner-accent {
    padding: 14px 16px;
  }
  .banner-accent .btn {
    width: 100%;
    justify-content: center;
  }
  .qr-banner {
    flex-direction: column;
    text-align: center;
  }
  .page-header-blk h1 {
    font-size: var(--fs-h2);
  }
  .roles-grid {
    grid-template-columns: 1fr;
  }
  .p-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 16px 16px;
  }
  .content {
    padding: 12px;
  }
  .header {
    padding: 0 12px;
    gap: 8px;
  }
  .header-subtitle {
    display: none;
  }
  .header .btn {
    padding: 8px 10px;
  }
  .quick-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .objects-grid {
    grid-template-columns: 1fr;
  }
  .sort-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .shell:not(.sidebar-collapsed) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    box-shadow: 0 0 0 100vmax rgba(10, 15, 30, .45);
  }
  .adm-grid {
    grid-template-columns: 1fr;
  }
  .adm-blocks,
  .adm-library {
    position: static;
    max-height: none;
  }
}
@media (max-width: 520px) {
  .quick-row {
    grid-template-columns: 1fr;
  }
  .filters-grid {
    grid-template-columns: 1fr;
  }
  .cat-tab {
    padding: 7px 12px;
    font-size: var(--fs-sm);
  }
  .p-topbar-right .btn {
    padding: 7px 10px;
    font-size: var(--fs-xs);
  }
  .p-topbar-inner {
    gap: 8px;
  }
  .p-brand {
    min-width: 0;
  }
  .p-brand b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lang-btn {
    padding: 5px 7px;
  }
  .p-topbar-right {
    gap: 5px;
  }
}
@media (max-width: 430px) {
  .p-brand b {
    display: none;
  }
}

/* src/styles/index.css */
