/* ═══════════════════════════════════════════════════════════════════════════
   Zuno design system — ported to the QuantumCals Blade admin.
   Source: Zuno CRM BA (src/styles/zuno/*, sidebar + header components),
   compiled from SCSS. Dark theme keys off <html data-theme="dark">
   (the admin's existing theme toggle) instead of body.dark-mode.
   qc-admin.css (loaded after this file) maps the Bootstrap / Soft UI
   markup the module views use onto these tokens.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --z-primary: #4f46e5;
  --z-primary-hover: #4338ca;
  --z-primary-press: #3730a3;
  --z-primary-soft: #eef0ff;
  --z-primary-soft-2: #e0e4ff;
  --z-primary-text: #3730a3;
  --z-on-primary: #ffffff;
  --z-bg: #f5f6fa;
  --z-surface: #ffffff;
  --z-surface-2: #f9fafc;
  --z-surface-3: #f1f3f8;
  --z-overlay: rgba(15, 18, 34, 0.42);
  --z-border: #e6e8f0;
  --z-border-strong: #d4d8e4;
  --z-divider: #eef0f5;
  --z-text: #101828;
  --z-text-2: #475467;
  --z-text-3: #8b93a7;
  --z-text-4: #b3b9c8;
  --z-success: #12b76a;
  --z-success-soft: #ecfdf3;
  --z-success-text: #067647;
  --z-warning: #f79009;
  --z-warning-soft: #fffaeb;
  --z-warning-text: #b54708;
  --z-danger: #f04438;
  --z-danger-soft: #fef3f2;
  --z-danger-text: #b42318;
  --z-info: #0ba5ec;
  --z-info-soft: #f0f9ff;
  --z-info-text: #026aa2;
  --z-violet: #7a5af8;
  --z-violet-soft: #f4f3ff;
  --z-violet-text: #5925dc;
  --z-pink: #ee46bc;
  --z-pink-soft: #fdf2fa;
  --z-pink-text: #c11574;
  --z-neutral-soft: #f2f4f7;
  --z-neutral-text: #344054;
  --z-side-bg: #0d1224;
  --z-side-bg-2: #141a30;
  --z-side-text: #a3abc2;
  --z-side-text-hi: #ffffff;
  --z-side-muted: #5f6885;
  --z-side-hover: rgba(255, 255, 255, 0.06);
  --z-side-active: rgba(99, 102, 241, 0.18);
  --z-side-line: rgba(255, 255, 255, 0.07);
  --z-r-xs: 6px;
  --z-r-sm: 8px;
  --z-r-md: 10px;
  --z-r-lg: 14px;
  --z-r-xl: 18px;
  --z-r-2xl: 24px;
  --z-r-full: 999px;
  --z-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --z-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --z-shadow-md: 0 4px 12px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
  --z-shadow-lg: 0 16px 32px -8px rgba(16, 24, 40, 0.14), 0 6px 12px -4px rgba(16, 24, 40, 0.06);
  --z-shadow-xl: 0 24px 48px -12px rgba(16, 24, 40, 0.22);
  --z-ring: 0 0 0 4px rgba(79, 70, 229, 0.14);
  --z-ring-danger: 0 0 0 4px rgba(240, 68, 56, 0.14);
  --z-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --z-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --z-side-w: 264px;
  --z-side-w-mini: 76px;
  --z-top-h: 64px;
  --z-page-pad: 28px;
  --z-t: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --z-t-slow: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --z-skel: #eceef4;
  --z-skel-shine: rgba(255, 255, 255, 0.75);
  color-scheme: light;
}

html[data-theme="dark"] {
  --z-primary: #6366f1;
  --z-primary-hover: #7c7ff5;
  --z-primary-press: #5558e8;
  --z-primary-soft: rgba(99, 102, 241, 0.16);
  --z-primary-soft-2: rgba(99, 102, 241, 0.26);
  --z-primary-text: #a5b4fc;
  --z-bg: #0a0e1a;
  --z-surface: #121829;
  --z-surface-2: #161d31;
  --z-surface-3: #1c2439;
  --z-overlay: rgba(2, 4, 12, 0.66);
  --z-border: #232c44;
  --z-border-strong: #313b57;
  --z-divider: #1d2539;
  --z-text: #eef1f8;
  --z-text-2: #aab2c8;
  --z-text-3: #727b96;
  --z-text-4: #4d5672;
  --z-success-soft: rgba(18, 183, 106, 0.14);
  --z-success-text: #47cd89;
  --z-warning-soft: rgba(247, 144, 9, 0.14);
  --z-warning-text: #fdb022;
  --z-danger-soft: rgba(240, 68, 56, 0.14);
  --z-danger-text: #f97066;
  --z-info-soft: rgba(11, 165, 236, 0.14);
  --z-info-text: #36bffa;
  --z-violet-soft: rgba(122, 90, 248, 0.16);
  --z-violet-text: #a48afb;
  --z-pink-soft: rgba(238, 70, 188, 0.14);
  --z-pink-text: #f670c7;
  --z-neutral-soft: rgba(255, 255, 255, 0.06);
  --z-neutral-text: #cfd5e4;
  --z-side-bg: #080b16;
  --z-side-bg-2: #0e1324;
  --z-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --z-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --z-shadow-md: 0 6px 16px -4px rgba(0, 0, 0, 0.5);
  --z-shadow-lg: 0 18px 36px -10px rgba(0, 0, 0, 0.6);
  --z-shadow-xl: 0 28px 56px -14px rgba(0, 0, 0, 0.7);
  --z-ring: 0 0 0 4px rgba(99, 102, 241, 0.28);
  --z-skel: #1b2236;
  --z-skel-shine: rgba(255, 255, 255, 0.05);
  color-scheme: dark;
}

@media (max-width: 640px) {
  :root {
    --z-page-pad: 16px;
  }
}
.z-btn {
  --_bg: var(--z-surface);
  --_fg: var(--z-text);
  --_bd: var(--z-border-strong);
  --_bg-h: var(--z-surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--z-r-md);
  border: 1px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--z-shadow-xs);
  transition: background var(--z-t), border-color var(--z-t), box-shadow var(--z-t), color var(--z-t), transform var(--z-t);
  user-select: none;
}
.z-btn i {
  font-size: 17px;
}
.z-btn:hover:not(:disabled) {
  background: var(--_bg-h);
  color: var(--_fg);
}
.z-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.z-btn:focus-visible {
  outline: none;
  box-shadow: var(--z-ring);
}
.z-btn:disabled, .z-btn.is-disabled {
  opacity: 0.55;
  box-shadow: none;
}
.z-btn--primary {
  --_bg: var(--z-primary);
  --_fg: var(--z-on-primary);
  --_bd: var(--z-primary);
  --_bg-h: var(--z-primary-hover);
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.z-btn--secondary { /* default look */ }
.z-btn--soft {
  --_bg: var(--z-primary-soft);
  --_fg: var(--z-primary-text);
  --_bd: transparent;
  --_bg-h: var(--z-primary-soft-2);
  box-shadow: none;
}
.z-btn--ghost {
  --_bg: transparent;
  --_fg: var(--z-text-2);
  --_bd: transparent;
  --_bg-h: var(--z-surface-3);
  box-shadow: none;
}
.z-btn--danger {
  --_bg: var(--z-danger);
  --_fg: #fff;
  --_bd: var(--z-danger);
  --_bg-h: #d92d20;
}
.z-btn--danger-soft {
  --_bg: var(--z-surface);
  --_fg: var(--z-danger-text);
  --_bd: var(--z-border-strong);
  --_bg-h: var(--z-danger-soft);
}
.z-btn--success {
  --_bg: var(--z-success);
  --_fg: #fff;
  --_bd: var(--z-success);
  --_bg-h: #079455;
}
.z-btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: var(--z-r-sm);
}
.z-btn--sm i {
  font-size: 15px;
}
.z-btn--lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}
.z-btn--block {
  width: 100%;
}
.z-btn--icon {
  width: 40px;
  padding: 0;
}

.z-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--z-r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--z-text-3);
  font-size: 17px;
  transition: background var(--z-t), color var(--z-t), border-color var(--z-t);
}
.z-icon-btn:hover:not(:disabled) {
  background: var(--z-surface-3);
  color: var(--z-text);
}
.z-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--z-ring);
}
.z-icon-btn--danger:hover:not(:disabled) {
  background: var(--z-danger-soft);
  color: var(--z-danger-text);
}
.z-icon-btn--primary:hover:not(:disabled) {
  background: var(--z-primary-soft);
  color: var(--z-primary-text);
}
.z-icon-btn--outlined {
  border-color: var(--z-border);
  background: var(--z-surface);
}
.z-icon-btn--lg {
  width: 40px;
  height: 40px;
  font-size: 19px;
  border-radius: var(--z-r-md);
}
.z-icon-btn.is-active {
  background: var(--z-primary-soft);
  color: var(--z-primary-text);
}

.z-link {
  color: var(--z-primary);
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.z-link:hover {
  color: var(--z-primary-hover);
  text-decoration: underline;
}

.z-spin {
  animation: z-spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes z-spin {
  to {
    transform: rotate(360deg);
  }
}
.z-page {
  padding: var(--z-page-pad);
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  animation: z-fade-up 0.32s ease both;
}

@keyframes z-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes z-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.z-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.z-page-head__text {
  min-width: 0;
}
.z-page-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--z-primary-text);
  margin-bottom: 6px;
}
.z-page-head__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.z-page-head__sub {
  margin-top: 4px;
  color: var(--z-text-2);
  font-size: 14.5px;
  max-width: 720px;
}
.z-page-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.z-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--z-text-2);
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 10px;
}
.z-back:hover {
  color: var(--z-primary);
}
.z-back i {
  font-size: 18px;
}

.z-card {
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: var(--z-r-lg);
  box-shadow: var(--z-shadow-xs);
  min-width: 0;
}
.z-card--pad {
  padding: 22px;
}
.z-card--hover {
  transition: box-shadow var(--z-t), border-color var(--z-t), transform var(--z-t);
}
.z-card--hover:hover {
  box-shadow: var(--z-shadow-md);
  border-color: var(--z-border-strong);
}
.z-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--z-divider);
}
.z-card__title {
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.z-card__title i {
  color: var(--z-text-3);
  font-size: 18px;
}
.z-card__sub {
  font-size: 13px;
  color: var(--z-text-3);
  margin-top: 2px;
}
.z-card__body {
  padding: 22px;
}
.z-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-top: 1px solid var(--z-divider);
  background: var(--z-surface-2);
  border-radius: 0 0 var(--z-r-lg) var(--z-r-lg);
}

.z-grid {
  display: grid;
  gap: 18px;
}

.z-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.z-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.z-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.z-grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.z-grid--side {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

@media (max-width: 1200px) {
  .z-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .z-grid--side {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .z-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .z-grid--2, .z-grid--3, .z-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.z-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--z-divider);
}
.z-toolbar__left, .z-toolbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.z-toolbar__left {
  flex: 1 1 auto;
  min-width: 0;
}

.z-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
  max-width: 100%;
}
.z-search i {
  position: absolute;
  left: 12px;
  color: var(--z-text-3);
  font-size: 17px;
  pointer-events: none;
}
.z-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 38px;
  border: 1px solid var(--z-border);
  border-radius: var(--z-r-md);
  background: var(--z-surface);
  font-size: 14px;
  transition: border-color var(--z-t), box-shadow var(--z-t);
}
.z-search input::placeholder {
  color: var(--z-text-3);
}
.z-search input:focus {
  outline: none;
  border-color: var(--z-primary);
  box-shadow: var(--z-ring);
}

.z-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--z-text-3);
  white-space: nowrap;
}
.z-count b {
  color: var(--z-text);
  font-weight: 600;
}

.z-seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--z-surface-3);
  border-radius: var(--z-r-md);
}
.z-seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--z-r-sm);
  background: transparent;
  color: var(--z-text-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--z-t), color var(--z-t), box-shadow var(--z-t);
}
.z-seg button i {
  font-size: 15px;
}
.z-seg button:hover {
  color: var(--z-text);
}
.z-seg button.is-on {
  background: var(--z-surface);
  color: var(--z-text);
  box-shadow: var(--z-shadow-sm);
}
.z-seg .z-seg__n {
  font-size: 11.5px;
  padding: 1px 7px;
  border-radius: var(--z-r-full);
  background: var(--z-surface-3);
  color: var(--z-text-2);
}
.z-seg button.is-on .z-seg__n {
  background: var(--z-primary-soft);
  color: var(--z-primary-text);
}
.z-seg .z-seg__n.is-alert {
  background: var(--z-warning-soft);
  color: var(--z-warning-text);
}

.z-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--z-border);
  scrollbar-width: none;
}
.z-tabs::-webkit-scrollbar {
  display: none;
}

.z-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: var(--z-text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--z-t);
}
.z-tab i {
  font-size: 17px;
}
.z-tab::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background var(--z-t);
}
.z-tab:hover:not(:disabled) {
  color: var(--z-text);
}
.z-tab.is-active {
  color: var(--z-primary-text);
}
.z-tab.is-active::after {
  background: var(--z-primary);
}
.z-tab:disabled {
  opacity: 0.45;
}
.z-tab .z-badge {
  margin-left: 2px;
}

.z-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.z-table {
  width: 100%;
  font-size: 14px;
}
.z-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 16px;
  background: var(--z-surface-2);
  border-bottom: 1px solid var(--z-border);
  color: var(--z-text-3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}
.z-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--z-divider);
  color: var(--z-text-2);
  vertical-align: middle;
}
.z-table tbody tr {
  transition: background var(--z-t);
}
.z-table tbody tr:hover {
  background: var(--z-surface-2);
}
.z-table tbody tr:last-child td {
  border-bottom: 0;
}
.z-table tr.is-clickable {
  cursor: pointer;
}
.z-table .is-center {
  text-align: center;
}
.z-table .is-right {
  text-align: right;
}
.z-table .is-actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.z-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.z-cell__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.z-cell__title {
  font-weight: 600;
  color: var(--z-text);
  line-height: 1.35;
}

.z-cell__sub {
  font-size: 12.5px;
  color: var(--z-text-3);
  line-height: 1.4;
}

.z-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
}

.z-avatar {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--z-r-full);
  background: var(--z-primary-soft);
  color: var(--z-primary-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
}
.z-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.z-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.z-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.z-avatar--xl {
  width: 72px;
  height: 72px;
  font-size: 24px;
}
.z-avatar--square {
  border-radius: var(--z-r-md);
}
.z-avatar.c1 {
  background: var(--z-primary-soft);
  color: var(--z-primary-text);
}
.z-avatar.c2 {
  background: var(--z-success-soft);
  color: var(--z-success-text);
}
.z-avatar.c3 {
  background: var(--z-warning-soft);
  color: var(--z-warning-text);
}
.z-avatar.c4 {
  background: var(--z-violet-soft);
  color: var(--z-violet-text);
}
.z-avatar.c5 {
  background: var(--z-info-soft);
  color: var(--z-info-text);
}
.z-avatar.c6 {
  background: var(--z-pink-soft);
  color: var(--z-pink-text);
}

.z-icon-tile {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--z-r-md);
  background: var(--z-primary-soft);
  color: var(--z-primary-text);
  font-size: 20px;
}
.z-icon-tile--success {
  background: var(--z-success-soft);
  color: var(--z-success-text);
}
.z-icon-tile--warning {
  background: var(--z-warning-soft);
  color: var(--z-warning-text);
}
.z-icon-tile--danger {
  background: var(--z-danger-soft);
  color: var(--z-danger-text);
}
.z-icon-tile--info {
  background: var(--z-info-soft);
  color: var(--z-info-text);
}
.z-icon-tile--violet {
  background: var(--z-violet-soft);
  color: var(--z-violet-text);
}
.z-icon-tile--neutral {
  background: var(--z-neutral-soft);
  color: var(--z-neutral-text);
}
.z-icon-tile--sm {
  width: 32px;
  height: 32px;
  font-size: 16px;
  border-radius: var(--z-r-sm);
}
.z-icon-tile--lg {
  width: 48px;
  height: 48px;
  font-size: 22px;
  border-radius: var(--z-r-lg);
}

.z-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--z-r-full);
  background: var(--z-neutral-soft);
  color: var(--z-neutral-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.z-badge i {
  font-size: 13px;
}
.z-badge--dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.z-badge--primary {
  background: var(--z-primary-soft);
  color: var(--z-primary-text);
}
.z-badge--success {
  background: var(--z-success-soft);
  color: var(--z-success-text);
}
.z-badge--warning {
  background: var(--z-warning-soft);
  color: var(--z-warning-text);
}
.z-badge--danger {
  background: var(--z-danger-soft);
  color: var(--z-danger-text);
}
.z-badge--info {
  background: var(--z-info-soft);
  color: var(--z-info-text);
}
.z-badge--violet {
  background: var(--z-violet-soft);
  color: var(--z-violet-text);
}
.z-badge--pink {
  background: var(--z-pink-soft);
  color: var(--z-pink-text);
}
.z-badge--outline {
  background: transparent;
  border: 1px solid var(--z-border-strong);
  color: var(--z-text-2);
}
.z-badge--sm {
  height: 20px;
  padding: 0 7px;
  font-size: 11px;
}

.z-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--z-r-xs);
  background: var(--z-surface-3);
  color: var(--z-text-2);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--z-mono);
}

.z-form-grid {
  display: grid;
  gap: 18px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.z-form-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}
.z-form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.z-form-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.z-form-grid .z-span-all {
  grid-column: 1/-1;
}
.z-form-grid .z-span-2 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .z-form-grid--3, .z-form-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .z-form-grid, .z-form-grid--3, .z-form-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .z-form-grid .z-span-2 {
    grid-column: auto;
  }
}
.z-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.z-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--z-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.z-req {
  color: var(--z-danger);
}

.z-hint {
  font-size: 12.5px;
  color: var(--z-text-3);
}

.z-error {
  font-size: 12.5px;
  color: var(--z-danger-text);
  display: flex;
  align-items: center;
  gap: 5px;
}

.z-input, .z-select, .z-textarea {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--z-border-strong);
  border-radius: var(--z-r-md);
  background: var(--z-surface);
  color: var(--z-text);
  font-size: 14px;
  box-shadow: var(--z-shadow-xs);
  transition: border-color var(--z-t), box-shadow var(--z-t), background var(--z-t);
}
.z-input::placeholder, .z-select::placeholder, .z-textarea::placeholder {
  color: var(--z-text-3);
}
.z-input:hover:not(:disabled):not(:focus), .z-select:hover:not(:disabled):not(:focus), .z-textarea:hover:not(:disabled):not(:focus) {
  border-color: var(--z-text-4);
}
.z-input:focus, .z-select:focus, .z-textarea:focus {
  outline: none;
  border-color: var(--z-primary);
  box-shadow: var(--z-ring);
}
.z-input:disabled, .z-input[readonly], .z-select:disabled, .z-select[readonly], .z-textarea:disabled, .z-textarea[readonly] {
  background: var(--z-surface-2);
  color: var(--z-text-2);
  cursor: not-allowed;
}
.z-input.is-invalid, .z-input.ng-invalid.ng-touched, .z-select.is-invalid, .z-select.ng-invalid.ng-touched, .z-textarea.is-invalid, .z-textarea.ng-invalid.ng-touched {
  border-color: var(--z-danger);
}
.z-input.is-invalid:focus, .z-input.ng-invalid.ng-touched:focus, .z-select.is-invalid:focus, .z-select.ng-invalid.ng-touched:focus, .z-textarea.is-invalid:focus, .z-textarea.ng-invalid.ng-touched:focus {
  box-shadow: var(--z-ring-danger);
}

.z-textarea {
  height: auto;
  min-height: 96px;
  padding: 11px 13px;
  line-height: 1.5;
  resize: vertical;
}

.z-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 18px;
  cursor: pointer;
}
.z-select--sm {
  height: 38px;
  font-size: 13.5px;
  box-shadow: none;
  border-color: var(--z-border);
  width: auto;
  min-width: 140px;
}

.z-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}
.z-input-group .z-input {
  flex: 1;
}
.z-input-group__icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--z-text-3);
  font-size: 17px;
  pointer-events: none;
}
.z-input-group__icon + .z-input {
  padding-left: 40px;
}
.z-input-group__btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}
.z-input-group:has(.z-input-group__btn) .z-input {
  padding-right: 46px;
}
.z-input-group__addon {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--z-border-strong);
  background: var(--z-surface-2);
  color: var(--z-text-2);
  font-size: 13.5px;
  white-space: nowrap;
}
.z-input-group__addon:first-child {
  border-right: 0;
  border-radius: var(--z-r-md) 0 0 var(--z-r-md);
}
.z-input-group__addon:last-child {
  border-left: 0;
  border-radius: 0 var(--z-r-md) var(--z-r-md) 0;
}
.z-input-group__addon:first-child + .z-input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.z-input-group .z-input:has(+ .z-input-group__addon) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.z-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--z-text);
}
.z-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--z-primary);
  cursor: pointer;
  margin: 0;
}

.z-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.z-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.z-switch__track {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border-radius: var(--z-r-full);
  background: var(--z-border-strong);
  transition: background var(--z-t);
}
.z-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--z-shadow-sm);
  transition: transform var(--z-t);
}
.z-switch input:checked + .z-switch__track {
  background: var(--z-primary);
}
.z-switch input:checked + .z-switch__track::after {
  transform: translateX(18px);
}
.z-switch input:focus-visible + .z-switch__track {
  box-shadow: var(--z-ring);
}
.z-switch__text {
  display: flex;
  flex-direction: column;
}
.z-switch__text b {
  font-size: 14px;
  font-weight: 600;
  color: var(--z-text);
}
.z-switch__text small {
  font-size: 12.5px;
  color: var(--z-text-3);
}

.z-option {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--z-border-strong);
  border-radius: var(--z-r-lg);
  background: var(--z-surface);
  cursor: pointer;
  transition: border-color var(--z-t), box-shadow var(--z-t), background var(--z-t);
}
.z-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.z-option:hover {
  border-color: var(--z-text-4);
}
.z-option.is-on {
  border-color: var(--z-primary);
  background: var(--z-primary-soft);
  box-shadow: 0 0 0 1px var(--z-primary) inset;
}
.z-option__title {
  display: block;
  font-weight: 650;
  color: var(--z-text);
}
.z-option__sub {
  display: block;
  font-size: 13px;
  color: var(--z-text-2);
  margin-top: 2px;
}

.z-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--z-divider);
}
.z-section:first-child {
  padding-top: 4px;
}
.z-section:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.z-section__title {
  font-size: 15px;
  font-weight: 650;
}
.z-section__sub {
  font-size: 13.5px;
  color: var(--z-text-2);
  margin-top: 4px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .z-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
.z-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--z-r-lg);
  border: 1px solid transparent;
  background: var(--z-info-soft);
  color: var(--z-info-text);
  font-size: 14px;
}
.z-callout > i {
  font-size: 19px;
  flex-shrink: 0;
  margin-top: 1px;
}
.z-callout b {
  display: block;
  color: inherit;
  font-weight: 650;
  margin-bottom: 2px;
}
.z-callout p {
  color: var(--z-text-2);
  line-height: 1.55;
  white-space: pre-line;
}
.z-callout--success {
  background: var(--z-success-soft);
  color: var(--z-success-text);
}
.z-callout--warning {
  background: var(--z-warning-soft);
  color: var(--z-warning-text);
}
.z-callout--danger {
  background: var(--z-danger-soft);
  color: var(--z-danger-text);
}
.z-callout--primary {
  background: var(--z-primary-soft);
  color: var(--z-primary-text);
}
.z-callout--neutral {
  background: var(--z-surface-2);
  color: var(--z-text-2);
  border-color: var(--z-border);
}

.z-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
}
.z-empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: var(--z-r-lg);
  background: var(--z-surface-3);
  color: var(--z-text-3);
  font-size: 26px;
  box-shadow: inset 0 0 0 1px var(--z-border);
}
.z-empty__title {
  font-size: 16px;
  font-weight: 650;
  color: var(--z-text);
}
.z-empty__text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--z-text-2);
  max-width: 380px;
  line-height: 1.55;
}
.z-empty__actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.z-kpi {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: var(--z-r-lg);
  box-shadow: var(--z-shadow-xs);
}
.z-kpi__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.z-kpi__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--z-text-2);
}
.z-kpi__value {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--z-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.z-kpi__foot {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--z-text-3);
}

.z-dl {
  display: flex;
  flex-direction: column;
}
.z-dl > div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--z-divider);
}
.z-dl > div:last-child {
  border-bottom: 0;
}
.z-dl dt {
  font-size: 13px;
  color: var(--z-text-3);
  font-weight: 500;
}
.z-dl dd {
  font-size: 14px;
  color: var(--z-text);
  word-break: break-word;
}

@media (max-width: 640px) {
  .z-dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
.z-progress {
  height: 8px;
  border-radius: var(--z-r-full);
  background: var(--z-surface-3);
  overflow: hidden;
}
.z-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--z-primary);
  transition: width var(--z-t-slow);
}
.z-progress--success span {
  background: var(--z-success);
}
.z-progress--warning span {
  background: var(--z-warning);
}
.z-progress--danger span {
  background: var(--z-danger);
}

.z-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--z-divider);
  font-size: 13px;
  color: var(--z-text-3);
}
.z-pager__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.z-pager__btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--z-r-sm);
  background: transparent;
  color: var(--z-text-2);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background var(--z-t), color var(--z-t), border-color var(--z-t);
}
.z-pager__btn:hover:not(:disabled):not(.is-on) {
  background: var(--z-surface-3);
  color: var(--z-text);
}
.z-pager__btn.is-on {
  background: var(--z-surface);
  border-color: var(--z-border-strong);
  color: var(--z-text);
  box-shadow: var(--z-shadow-xs);
}
.z-pager__btn:disabled {
  opacity: 0.4;
}
.z-pager__btn i {
  font-size: 17px;
}
.z-pager__gap {
  padding: 0 4px;
}
.z-pager__size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.z-divider {
  height: 1px;
  background: var(--z-divider);
  margin: 18px 0;
}

.z-kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--z-border);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-size: 11.5px;
  font-family: var(--z-mono);
  color: var(--z-text-2);
  background: var(--z-surface-2);
}

.z-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--z-border-strong);
  border-radius: var(--z-r-md);
  background: var(--z-surface-2);
}
.z-copy code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--z-text);
}

.z-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.z-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--z-text-2);
}
.z-feature-list li i {
  font-size: 17px;
  color: var(--z-success);
}
.z-feature-list li.is-off {
  color: var(--z-text-4);
}
.z-feature-list li.is-off i {
  color: var(--z-text-4);
}

.z-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 520px;
}

.z-pre {
  margin: 0;
  padding: 14px 16px;
  max-height: 360px;
  overflow: auto;
  border-radius: var(--z-r-md);
  border: 1px solid var(--z-border);
  background: var(--z-surface-2);
  color: var(--z-text-2);
  font-family: var(--z-mono);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.z-time {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  white-space: nowrap;
}
.z-time b {
  font-weight: 500;
  color: var(--z-text);
  font-variant-numeric: tabular-nums;
}
.z-time small {
  font-size: 12px;
  color: var(--z-text-3);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .z-page-head {
    margin-bottom: 18px;
    align-items: stretch;
  }
  .z-page-head__title {
    font-size: 21px;
  }
  .z-page-head__actions {
    width: 100%;
  }
  .z-page-head__actions > .z-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .z-toolbar {
    padding: 12px 14px;
  }
  .z-toolbar__left, .z-toolbar__right {
    width: 100%;
  }
  .z-search {
    width: 100%;
    flex: 1 1 100%;
  }
  .z-seg {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .z-seg::-webkit-scrollbar {
    display: none;
  }
  .z-card__head, .z-card__body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .z-card__foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.z-skel {
  position: relative;
  overflow: hidden;
  display: block;
  height: 12px;
  border-radius: var(--z-r-xs);
  background: var(--z-skel);
}
.z-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, var(--z-skel-shine) 50%, transparent 100%);
  animation: z-shimmer 1.4s ease-in-out infinite;
}
.z-skel--text {
  height: 12px;
}
.z-skel--sm {
  height: 9px;
}
.z-skel--title {
  height: 18px;
  border-radius: var(--z-r-sm);
}
.z-skel--h1 {
  height: 28px;
  border-radius: var(--z-r-sm);
}
.z-skel--circle {
  border-radius: 50%;
}
.z-skel--btn {
  height: 38px;
  border-radius: var(--z-r-md);
}
.z-skel--input {
  height: 42px;
  border-radius: var(--z-r-md);
}
.z-skel--badge {
  height: 22px;
  width: 72px;
  border-radius: var(--z-r-full);
}
.z-skel--tile {
  width: 40px;
  height: 40px;
  border-radius: var(--z-r-md);
}
.z-skel--avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes z-shimmer {
  100% {
    transform: translateX(100%);
  }
}
.z-skel-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.z-skel-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.z-table .z-skel-tr td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.z-table .z-skel-tr:hover {
  background: transparent;
}

.z-reveal {
  animation: z-fade 0.28s ease both;
}

.z-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--z-overlay);
  backdrop-filter: blur(3px);
  animation: z-fade 0.16s ease both;
}

.z-dialog {
  width: min(560px, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: var(--z-r-xl);
  box-shadow: var(--z-shadow-xl);
  overflow: hidden;
  animation: z-pop 0.22s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
.z-dialog--wide {
  width: min(760px, 100%);
}
.z-dialog--xl {
  width: min(980px, 100%);
}

@keyframes z-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .z-overlay {
    place-items: end center;
    padding: 0;
  }
  .z-dialog {
    width: 100%;
    max-height: 94dvh;
    border-radius: var(--z-r-xl) var(--z-r-xl) 0 0;
  }
}

#toast-container > div {
  width: 360px !important;
  padding: 14px 16px 14px 48px !important;
  border-radius: var(--z-r-lg) !important;
  background-color: var(--z-surface) !important;
  background-position: 16px center !important;
  color: var(--z-text) !important;
  border: 1px solid var(--z-border);
  box-shadow: var(--z-shadow-lg) !important;
  opacity: 1 !important;
  font-family: var(--z-font);
  font-size: 14px;
}
#toast-container > div:hover {
  box-shadow: var(--z-shadow-xl) !important;
}
#toast-container .toast-title {
  font-weight: 650;
  margin-bottom: 2px;
}
#toast-container .toast-message {
  color: var(--z-text-2);
  line-height: 1.5;
}
#toast-container .toast-close-button {
  color: var(--z-text-3);
  text-shadow: none;
  opacity: 1;
  font-weight: 400;
}
#toast-container .toast-progress {
  height: 3px;
  opacity: 1;
}
#toast-container > .toast-success {
  border-left: 4px solid var(--z-success) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%2312b76a'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-.997-6l7.07-7.071-1.414-1.414-5.656 5.657-2.829-2.829-1.414 1.414L11.003 16z'/%3E%3C/svg%3E") !important;
}
#toast-container > .toast-success .toast-progress {
  background: var(--z-success);
}
#toast-container > .toast-error {
  border-left: 4px solid var(--z-danger) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23f04438'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm0-8v6h2V7h-2z'/%3E%3C/svg%3E") !important;
}
#toast-container > .toast-error .toast-progress {
  background: var(--z-danger);
}
#toast-container > .toast-warning {
  border-left: 4px solid var(--z-warning) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23f79009'%3E%3Cpath d='M12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0zM11 16v2h2v-2h-2zm0-7v5h2V9h-2z'/%3E%3C/svg%3E") !important;
}
#toast-container > .toast-warning .toast-progress {
  background: var(--z-warning);
}
#toast-container > .toast-info {
  border-left: 4px solid var(--z-info) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%230ba5ec'%3E%3Cpath d='M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11v6h2v-6h-2zm0-4v2h2V7h-2z'/%3E%3C/svg%3E") !important;
}
#toast-container > .toast-info .toast-progress {
  background: var(--z-info);
}

@media (max-width: 480px) {
  #toast-container > div {
    width: calc(100vw - 24px) !important;
  }
}
.za {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--z-surface);
}

.za-form-side {
  display: flex;
  flex-direction: column;
  padding: 28px clamp(24px, 5vw, 64px);
}

.za-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.za-logo {
  height: 34px;
  width: auto;
}

.za-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.za-box {
  width: 100%;
  max-width: 400px;
  animation: z-fade-up 0.4s ease both;
}

.za-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid var(--z-border);
  background: var(--z-surface);
  box-shadow: var(--z-shadow-sm);
  color: var(--z-text);
  font-size: 24px;
}

.za-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.za-sub {
  margin-top: 8px;
  color: var(--z-text-2);
  font-size: 15px;
  line-height: 1.55;
}

.za-form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.za-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.za-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--z-text-3);
}

.za-alt {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--z-text-2);
}

.za-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.za-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.za-trust i {
  font-size: 15px;
  color: var(--z-success);
}

.za-brand-side {
  position: relative;
  overflow: hidden;
  margin: 12px;
  border-radius: 26px;
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  background: radial-gradient(80% 60% at 100% 0%, rgba(139, 92, 246, 0.55) 0%, transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(14, 165, 233, 0.35) 0%, transparent 60%), linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #4338ca 100%);
}
.za-brand-side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.za-brand-side > * {
  position: relative;
}

.za-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.za-pill i {
  color: #fcd34d;
}

.za-hero h2 {
  color: #fff;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.za-hero h2 span {
  background: linear-gradient(90deg, #c7d2fe, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.za-hero p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

.za-preview {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}

.za-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.za-preview__head b {
  color: #fff;
  font-size: 14px;
}

.za-preview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.za-stat {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.za-stat small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.za-stat b {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.za-stat em {
  font-style: normal;
  font-size: 12px;
  color: #6ee7b7;
}

.za-preview__rows {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.za-prow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
.za-prow .za-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.za-prow b {
  color: #fff;
  font-weight: 600;
}
.za-prow small {
  color: rgba(255, 255, 255, 0.6);
}
.za-prow .za-chip {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.za-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.za-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.za-feature i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
  color: #c7d2fe;
}
.za-feature b {
  display: block;
  font-size: 14px;
  color: #fff;
}
.za-feature span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

.za-solo {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(60% 50% at 50% 0%, var(--z-primary-soft) 0%, transparent 70%), var(--z-bg);
}

.za-solo-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 40px 32px;
  animation: z-fade-up 0.4s ease both;
}

@media (max-width: 1100px) {
  .za-features {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 960px) {
  .za {
    grid-template-columns: minmax(0, 1fr);
  }
  .za-brand-side {
    display: none;
  }
}
.zs {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  width: var(--z-side-w);
  display: flex;
  flex-direction: column;
  background: var(--z-side-bg);
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 60%);
  color: var(--z-side-text);
  border-right: 1px solid var(--z-side-line);
  transition: width var(--z-t-slow), transform var(--z-t-slow);
}

.zs-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--z-top-h);
  padding: 0 14px 0 18px;
  flex-shrink: 0;
}
.zs-brand__link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}
.zs-brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.7);
}
.zs-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.zs-brand__text b {
  color: var(--z-side-text-hi);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.zs-brand__text small {
  color: var(--z-side-muted);
  font-size: 12px;
  font-weight: 500;
}

.zs-collapse {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--z-side-muted);
  font-size: 18px;
  transition: background var(--z-t), color var(--z-t);
}
.zs-collapse:hover {
  background: var(--z-side-hover);
  color: var(--z-side-text-hi);
}

.zs-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px 16px;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.zs-section {
  padding: 18px 10px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--z-side-muted);
  white-space: nowrap;
}

.zs-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--z-side-text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--z-t), color var(--z-t);
}
.zs-item > i:first-child {
  font-size: 19px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.zs-item__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zs-item__caret {
  font-size: 17px;
  transition: transform var(--z-t);
}
.zs-item:hover {
  background: var(--z-side-hover);
  color: var(--z-side-text-hi);
}
.zs-item.is-active, .zs-item.is-current {
  background: var(--z-side-active);
  color: var(--z-side-text-hi);
}
.zs-item.is-active > i:first-child, .zs-item.is-current > i:first-child {
  color: #a5b4fc;
}
.zs-item.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #818cf8;
}
.zs-item.is-open .zs-item__caret {
  transform: rotate(180deg);
}
.zs-item.is-current:not(.is-open) {
  background: transparent;
}

.zs-sub {
  position: relative;
  margin: 2px 0 6px 21px;
  padding-left: 13px;
  border-left: 1px solid var(--z-side-line);
  animation: zs-in 0.18s ease both;
}
.zs-sub__item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--z-side-text);
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--z-t), color var(--z-t);
}
.zs-sub__item:hover {
  color: var(--z-side-text-hi);
  background: var(--z-side-hover);
}
.zs-sub__item.is-active {
  color: var(--z-side-text-hi);
  background: var(--z-side-active);
  font-weight: 600;
}

@keyframes zs-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.zs-notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 14px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(247, 144, 9, 0.12);
  color: #fdb022;
  font-size: 12.5px;
  line-height: 1.45;
}
.zs-notice i {
  font-size: 16px;
  margin-top: 1px;
}

.zs-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 12px 12px;
  padding: 8px;
  border: 1px solid var(--z-side-line);
  border-radius: 12px;
  background: var(--z-side-bg-2);
}
.zs-user__card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 2px;
  border-radius: 8px;
  text-decoration: none;
}
.zs-user__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.zs-user__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.zs-user__text b {
  color: var(--z-side-text-hi);
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zs-user__text small {
  color: var(--z-side-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zs-user__out {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--z-side-muted);
  font-size: 17px;
  transition: background var(--z-t), color var(--z-t);
}
.zs-user__out:hover {
  background: rgba(240, 68, 56, 0.14);
  color: #f97066;
}

.zs-backdrop {
  display: none;
}

@media (min-width: 992px) {
  .zs.is-toggled {
    width: var(--z-side-w-mini);
  }
  .zs.is-toggled .zs-brand {
    padding: 0;
    justify-content: center;
    flex-direction: column;
    height: auto;
    padding: 14px 0 6px;
    gap: 6px;
  }
  .zs.is-toggled .zs-brand__text, .zs.is-toggled .zs-item__label, .zs.is-toggled .zs-item__caret, .zs.is-toggled .zs-section, .zs.is-toggled .zs-sub, .zs.is-toggled .zs-notice, .zs.is-toggled .zs-user__text, .zs.is-toggled .zs-user__out {
    display: none;
  }
  .zs.is-toggled .zs-nav {
    padding: 8px 14px;
  }
  .zs.is-toggled .zs-item {
    justify-content: center;
    padding: 0;
  }
  .zs.is-toggled .zs-item.is-active::before {
    left: -14px;
  }
  .zs.is-toggled .zs-section {
    display: block;
    height: 14px;
    padding: 0;
    font-size: 0;
  }
  .zs.is-toggled .zs-user {
    margin: 0 12px 12px;
    padding: 6px;
    justify-content: center;
  }
  .zs.is-toggled .zs-user__card {
    flex: none;
    padding: 0;
  }
}
@media (max-width: 991.98px) {
  .zs {
    transform: translateX(-100%);
    box-shadow: var(--z-shadow-xl);
    width: min(300px, 86vw);
  }
  .zs.is-toggled {
    transform: none;
  }
  .zs-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1029;
    background: var(--z-overlay);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--z-t-slow);
  }
  .zs-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}
.zt {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--z-top-h);
  padding: 0 var(--z-page-pad);
  background: color-mix(in srgb, var(--z-bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--z-t), background var(--z-t);
}
.zt.is-scrolled {
  border-bottom-color: var(--z-border);
  background: color-mix(in srgb, var(--z-surface) 88%, transparent);
}

.zt-menu {
  display: none;
  color: var(--z-text-2);
}

.zt-crumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
  color: var(--z-text-3);
}
.zt-crumbs__home {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--z-text-3);
  font-size: 17px;
}
.zt-crumbs__home:hover {
  background: var(--z-surface-3);
  color: var(--z-text);
}
.zt-crumbs__sep {
  font-size: 16px;
  color: var(--z-text-4);
}
.zt-crumbs__section {
  white-space: nowrap;
}
.zt-crumbs__page {
  color: var(--z-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zt-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.zt-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--z-r-full);
  border: 1px solid var(--z-border);
  background: var(--z-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--z-text-2);
  white-space: nowrap;
}
.zt-date i {
  font-size: 15px;
  color: var(--z-text-3);
}

.zt-bell {
  position: relative;
}

.zt-bell__dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--z-danger);
  box-shadow: 0 0 0 2px var(--z-bg);
}

.zt-sep {
  width: 1px;
  height: 24px;
  background: var(--z-border);
  margin: 0 8px;
}

.zt-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 8px 0 4px;
  border: 1px solid transparent;
  border-radius: var(--z-r-full);
  background: transparent;
  color: var(--z-text-3);
  transition: background var(--z-t), border-color var(--z-t);
}
.zt-profile:hover {
  background: var(--z-surface);
  border-color: var(--z-border);
}
.zt-profile__avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.zt-profile__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}
.zt-profile__text b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--z-text);
}
.zt-profile__text small {
  font-size: 12px;
  color: var(--z-text-3);
}
.zt-profile > i {
  font-size: 17px;
}

.zt-notif {
  width: 360px;
  max-width: calc(100vw - 32px);
}
.zt-notif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 10px;
}
.zt-notif__head b {
  font-size: 15px;
}
.zt-notif__list {
  max-height: 380px;
  overflow-y: auto;
}
.zt-notif__item {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.zt-notif__item:hover {
  background: var(--z-surface-3);
}
.zt-notif__item.is-unread {
  background: var(--z-primary-soft);
}
.zt-notif__item b {
  font-size: 13.5px;
  color: var(--z-text);
}
.zt-notif__item span {
  font-size: 13px;
  color: var(--z-text-2);
}
.zt-notif__item small {
  font-size: 12px;
  color: var(--z-text-3);
}
.zt-notif__empty {
  padding: 28px 12px;
}

@media (max-width: 991.98px) {
  .zt-menu {
    display: inline-grid;
    margin-left: -8px;
  }
}
@media (max-width: 768px) {
  .zt {
    padding: 0 16px;
  }
  .zt-date, .zt-profile__text, .zt-crumbs__section, .zt-crumbs__section + .zt-crumbs__sep {
    display: none;
  }
  .zt-sep {
    margin: 0 4px;
  }
}
.z-host {
  display: block;
}

.z-app {
  min-height: 100vh;
}

.z-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: var(--z-side-w);
  transition: margin-left var(--z-t-slow);
}

.z-content {
  flex: 1;
  min-width: 0;
}

@media (min-width: 992px) {
  .z-app.is-collapsed .z-main {
    margin-left: var(--z-side-w-mini);
  }
}
@media (max-width: 991.98px) {
  .z-main {
    margin-left: 0;
  }
}

/* ── base (Zuno _base.scss without the element reset, so Bootstrap grids keep working) ── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--z-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--z-text);
  background: var(--z-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  transition: background var(--z-t-slow), color var(--z-t-slow);
}
::selection { background: var(--z-primary-soft-2); color: var(--z-text); }
:focus-visible { outline: 2px solid var(--z-primary); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--z-border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--z-border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background-color: var(--z-text-4); }
*::-webkit-scrollbar-track { background: transparent; }
[class^='ri-'], [class*=' ri-'] { line-height: 1; vertical-align: middle; }
code, kbd, .z-mono { font-family: var(--z-mono); font-size: 0.92em; }
.z-muted { color: var(--z-text-3) !important; }
.z-sub { color: var(--z-text-2); }
.z-strong { font-weight: 600; color: var(--z-text); }
.z-num { font-variant-numeric: tabular-nums; }
.z-nowrap { white-space: nowrap; }
.z-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.z-center { text-align: center; }
.z-right { text-align: right; }
.z-grow { flex: 1 1 auto; min-width: 0; }
.z-row { display: flex; align-items: center; gap: 10px; }
.z-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.z-gap-sm { gap: 6px; }
.z-wrap { flex-wrap: wrap; }
.z-mt { margin-top: 16px; }
.z-mt-lg { margin-top: 24px; }
.z-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
