:root {
  --ink-950: #0b1220;
  --ink-900: #111b2e;
  --ink-800: #1d2a40;
  --ink-700: #33445e;
  --ink-600: #50617b;
  --ink-500: #718096;
  --ink-400: #9aa8bb;
  --ink-300: #c4cedb;
  --ink-200: #dce3ec;
  --ink-150: #e7ecf2;
  --ink-100: #eef2f7;
  --ink-50: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --surface-tint: #f7f9ff;
  --primary-900: #18356b;
  --primary-800: #1d4388;
  --primary-700: #2454a6;
  --primary-600: #2e67c7;
  --primary-500: #3d7fe3;
  --primary-400: #6aa2ee;
  --primary-100: #e8f1ff;
  --primary-50: #f2f7ff;
  --teal-700: #087a76;
  --teal-600: #0c918b;
  --teal-500: #18a8a0;
  --teal-100: #dff8f5;
  --green-700: #177448;
  --green-600: #218b58;
  --green-100: #e3f7eb;
  --amber-700: #a55c0a;
  --amber-600: #c8750b;
  --amber-100: #fff1d6;
  --red-700: #b23838;
  --red-600: #cf4747;
  --red-100: #ffe8e8;
  --violet-700: #6544b8;
  --violet-100: #eee9ff;
  --border: #dfe6ef;
  --border-strong: #ccd6e3;
  --focus: rgba(61, 127, 227, 0.24);
  --shadow-xs: 0 1px 2px rgba(17, 27, 46, 0.05);
  --shadow-sm: 0 6px 18px rgba(17, 27, 46, 0.07);
  --shadow-md: 0 16px 44px rgba(17, 27, 46, 0.11);
  --shadow-lg: 0 30px 80px rgba(17, 27, 46, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --sidebar-width: 252px;
  --topbar-height: 72px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink-900);
  background: var(--surface-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-950);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

button {
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 3000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--ink-950);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript {
  position: fixed;
  z-index: 3000;
  inset: auto 16px 16px;
  padding: 14px 18px;
  border: 1px solid #f0b6b6;
  border-radius: var(--radius-md);
  color: var(--red-700);
  background: var(--red-100);
  text-align: center;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  color: var(--ink-500);
  background:
    radial-gradient(circle at 50% 38%, rgba(61, 127, 227, 0.11), transparent 28rem),
    var(--surface-soft);
}

.boot-screen p {
  margin: 20px 0 0;
  font-size: 14px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.muted {
  color: var(--ink-500);
}

.subtle {
  color: var(--ink-400);
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-ligatures: none;
}

.text-positive {
  color: var(--green-700);
}

.text-danger {
  color: var(--red-700);
}

.text-right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 25px;
  height: 25px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary-700), #2b81df 60%, #29a7b0);
  box-shadow: 0 7px 16px rgba(36, 84, 166, 0.22);
  transform: rotate(-4deg);
}

.brand-mark span {
  position: absolute;
  width: 5px;
  border-radius: 10px;
  background: #fff;
  transform: rotate(4deg);
}

.brand-mark span:nth-child(1) {
  height: 12px;
  left: 8px;
  bottom: 8px;
  opacity: 0.78;
}

.brand-mark span:nth-child(2) {
  height: 19px;
  left: 15px;
  bottom: 8px;
}

.brand-mark span:nth-child(3) {
  height: 9px;
  right: 7px;
  bottom: 8px;
  opacity: 0.88;
}

.brand-mark--large {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.brand-mark--large span {
  width: 7px;
}

.brand-mark--large span:nth-child(1) {
  height: 18px;
  left: 12px;
  bottom: 12px;
}

.brand-mark--large span:nth-child(2) {
  height: 28px;
  left: 23px;
  bottom: 12px;
}

.brand-mark--large span:nth-child(3) {
  height: 14px;
  right: 10px;
  bottom: 12px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.05;
}

.brand-name {
  overflow: hidden;
  color: var(--ink-950);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-product {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink-800);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease,
    color 160ms ease, transform 120ms ease;
}

.btn:hover {
  border-color: var(--border-strong);
  background: var(--ink-50);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  border-color: var(--primary-700);
  box-shadow: 0 8px 18px rgba(36, 84, 166, 0.18);
}

.btn--primary:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  border-color: var(--primary-800);
  box-shadow: 0 10px 22px rgba(36, 84, 166, 0.23);
}

.btn--secondary {
  border-color: var(--border);
  background: var(--surface);
}

.btn--soft {
  color: var(--primary-700);
  background: var(--primary-50);
  border-color: var(--primary-100);
  box-shadow: none;
}

.btn--soft:hover {
  color: var(--primary-800);
  background: var(--primary-100);
  border-color: #cfe0fb;
}

.btn--danger-soft {
  color: var(--red-700);
  background: #fff7f7;
  border-color: #f5d1d1;
  box-shadow: none;
}

.btn--danger-soft:hover {
  color: var(--red-700);
  background: var(--red-100);
  border-color: #efbcbc;
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: transparent;
  background: var(--ink-100);
}

.btn--sm {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
}

.btn--lg {
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 12px;
  font-size: 15px;
}

.btn--icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink-600);
  background: var(--ink-100);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.65;
}

.badge--success {
  color: var(--green-700);
  background: var(--green-100);
}

.badge--warning {
  color: var(--amber-700);
  background: var(--amber-100);
}

.badge--danger {
  color: var(--red-700);
  background: var(--red-100);
}

.badge--info {
  color: var(--primary-700);
  background: var(--primary-100);
}

.badge--violet {
  color: var(--violet-700);
  background: var(--violet-100);
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 2px var(--green-100);
}

/* Public website */
.public-page {
  min-height: 100vh;
  overflow: hidden;
  background: #fbfcfe;
}

.public-nav {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 230, 239, 0.8);
  background: rgba(251, 252, 254, 0.88);
  backdrop-filter: blur(18px);
}

.public-nav__inner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.public-nav__links {
  display: flex;
  align-items: center;
  gap: 29px;
  margin-left: auto;
}

.public-nav__links a {
  color: var(--ink-600);
  font-size: 14px;
  font-weight: 600;
  transition: color 150ms ease;
}

.public-nav__links a:hover {
  color: var(--ink-950);
}

.public-nav__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.public-menu-button {
  display: none;
}

.hero {
  position: relative;
  padding: 96px 0 88px;
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: -360px;
  left: 53%;
  width: 900px;
  height: 900px;
  border: 1px solid rgba(61, 127, 227, 0.08);
  border-radius: 50%;
  background:
    radial-gradient(circle at 44% 49%, rgba(61, 127, 227, 0.1), transparent 42%),
    radial-gradient(circle at 62% 61%, rgba(24, 168, 160, 0.08), transparent 36%);
  content: "";
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
  align-items: center;
  gap: 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 21px;
  padding: 6px 11px 6px 8px;
  border: 1px solid #d6e5fa;
  border-radius: 999px;
  color: var(--primary-700);
  background: rgba(242, 247, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.eyebrow__spark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-600), var(--teal-500));
}

.eyebrow__spark .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.hero h1 {
  max-width: 690px;
  margin-bottom: 25px;
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 790;
  letter-spacing: -0.058em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(105deg, var(--primary-700) 8%, var(--primary-500) 52%, var(--teal-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__lead {
  max-width: 610px;
  margin-bottom: 31px;
  color: var(--ink-600);
  font-size: 18px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  margin-top: 27px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__meta .icon {
  width: 15px;
  height: 15px;
  color: var(--green-600);
  stroke-width: 2.2;
}

.gateway-visual {
  position: relative;
  min-height: 490px;
}

.gateway-glow {
  position: absolute;
  inset: 11% 5% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 127, 227, 0.17), rgba(24, 168, 160, 0.05) 45%, transparent 70%);
  filter: blur(20px);
}

.gateway-card {
  position: absolute;
  z-index: 2;
  top: 78px;
  right: 30px;
  left: 30px;
  padding: 27px;
  border: 1px solid rgba(204, 214, 227, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.gateway-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.gateway-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 750;
}

.gateway-card__title span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: var(--primary-700);
  background: var(--primary-100);
}

.gateway-card__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 700;
}

.model-stream {
  display: grid;
  gap: 10px;
}

.model-node {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(247, 249, 252, 0.82);
}

.model-node__logo,
.model-avatar {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--primary-700);
  background: var(--primary-100);
  font-size: 11px;
  font-weight: 800;
}

.model-node:nth-child(2) .model-node__logo {
  color: var(--violet-700);
  background: var(--violet-100);
}

.model-node:nth-child(3) .model-node__logo {
  color: var(--teal-700);
  background: var(--teal-100);
}

.model-node__copy {
  display: grid;
  min-width: 0;
  flex: 1;
}

.model-node__copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-node__copy span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 10px;
}

.model-node__latency {
  color: var(--green-700);
  font-size: 10px;
  font-weight: 700;
}

.fusion-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0;
  color: var(--ink-400);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fusion-line::before,
.fusion-line::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.fusion-output {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid #cfe1fa;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary-50), #f4fbfb);
}

.fusion-output__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-600), var(--teal-500));
  box-shadow: 0 7px 15px rgba(46, 103, 199, 0.18);
}

.fusion-output strong {
  display: block;
  font-size: 12px;
}

.fusion-output p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(204, 214, 227, 0.86);
  border-radius: 12px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.floating-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--primary-600);
}

.floating-chip--top {
  top: 24px;
  left: -5px;
}

.floating-chip--bottom {
  right: -7px;
  bottom: 28px;
}

.logo-strip {
  padding: 23px 0 29px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.logo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-strip__label {
  color: var(--ink-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.provider-list {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-around;
  gap: 25px;
  color: var(--ink-600);
}

.provider-list span {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.section {
  padding: 100px 0;
}

.section--tint {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.section-heading {
  max-width: 690px;
  margin: 0 auto 47px;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 45px);
  font-weight: 770;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 249px;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature-card:hover {
  border-color: #c9d8eb;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.feature-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-700);
  background: var(--primary-100);
}

.feature-card:nth-child(2) .feature-card__icon,
.feature-card:nth-child(5) .feature-card__icon {
  color: var(--teal-700);
  background: var(--teal-100);
}

.feature-card:nth-child(3) .feature-card__icon,
.feature-card:nth-child(6) .feature-card__icon {
  color: var(--violet-700);
  background: var(--violet-100);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 730;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.75;
}

.integration-panel {
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  align-items: center;
  gap: 72px;
  padding: 55px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.integration-panel h2 {
  margin-bottom: 17px;
  font-size: 37px;
}

.integration-panel p {
  margin-bottom: 24px;
  color: var(--ink-600);
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-700);
  font-size: 14px;
}

.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--green-600);
  stroke-width: 2.3;
}

.code-window {
  overflow: hidden;
  border: 1px solid #26334a;
  border-radius: 15px;
  background: #0e1728;
  box-shadow: 0 20px 42px rgba(11, 18, 32, 0.2);
}

.code-window__bar {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #26334a;
  color: #8fa1bc;
  background: #111d30;
  font-size: 11px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4d5e76;
}

.window-dots i:first-child { background: #e06b6b; }
.window-dots i:nth-child(2) { background: #d9a947; }
.window-dots i:nth-child(3) { background: #52a875; }

.code-window pre {
  min-height: 225px;
  margin: 0;
  padding: 25px;
  overflow: auto;
  color: #d9e4f3;
  font: 12px/1.85 "SFMono-Regular", Consolas, monospace;
  white-space: pre-wrap;
}

.code-keyword { color: #91b7ff; }
.code-string { color: #95dcc7; }
.code-muted { color: #7589a7; }

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 68px 38px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(118deg, #173a7a, #2869bd 62%, #1d8f98);
  box-shadow: 0 28px 60px rgba(29, 67, 136, 0.22);
  text-align: center;
}

.cta-panel::before,
.cta-panel::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.cta-panel::before {
  width: 390px;
  height: 390px;
  top: -250px;
  left: -70px;
}

.cta-panel::after {
  width: 340px;
  height: 340px;
  right: -80px;
  bottom: -245px;
}

.cta-panel h2 {
  position: relative;
  margin-bottom: 14px;
  color: #fff;
  font-size: 37px;
}

.cta-panel p {
  position: relative;
  margin-bottom: 27px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-panel .btn-row {
  position: relative;
  justify-content: center;
}

.cta-panel .btn--light {
  color: var(--primary-800);
  background: #fff;
  border-color: #fff;
}

.cta-panel .btn--outline-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.public-footer {
  padding: 42px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.public-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.public-footer p {
  margin: 0;
  color: var(--ink-500);
  font-size: 12px;
}

.public-footer__links {
  display: flex;
  gap: 22px;
  color: var(--ink-500);
  font-size: 12px;
}

/* Authentication */
.auth-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(390px, 0.93fr) minmax(520px, 1.07fr);
  background: #fff;
}

.auth-main {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 32px clamp(32px, 5vw, 76px);
}

.auth-brand {
  align-self: flex-start;
}

.auth-card-wrap {
  display: grid;
  width: min(430px, 100%);
  flex: 1;
  align-self: center;
  align-content: center;
  padding: 48px 0;
}

.auth-card__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 600;
}

.auth-card__back:hover {
  color: var(--ink-900);
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: 34px;
  font-weight: 770;
}

.auth-card__lead {
  margin-bottom: 30px;
  color: var(--ink-500);
  font-size: 14px;
}

.auth-card__foot {
  margin: 27px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  text-align: center;
}

.auth-card__foot a {
  color: var(--primary-700);
  font-weight: 700;
}

.auth-aside {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  align-content: center;
  padding: 64px clamp(50px, 7vw, 106px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(117, 171, 255, 0.24), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(49, 183, 174, 0.2), transparent 33%),
    linear-gradient(138deg, #0f2551, #1e4b8e 62%, #176e77);
}

.auth-aside::before,
.auth-aside::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.auth-aside::before {
  width: 520px;
  height: 520px;
  top: -330px;
  right: -100px;
}

.auth-aside::after {
  width: 430px;
  height: 430px;
  bottom: -290px;
  left: -180px;
}

.auth-aside__content {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.auth-aside__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 27px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.83);
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.auth-aside h2 {
  max-width: 570px;
  margin-bottom: 21px;
  color: #fff;
  font-size: clamp(39px, 4.5vw, 58px);
  font-weight: 760;
  letter-spacing: -0.05em;
}

.auth-aside__content > p {
  max-width: 510px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.auth-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.auth-proof__item {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.auth-proof__item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
}

.auth-proof__item span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field label,
.field__label {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.field__hint {
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.5;
}

.field__error {
  color: var(--red-700);
  font-size: 11px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  color: var(--ink-900);
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(17, 27, 46, 0.025);
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #abb9ca;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary-500);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-400);
}

.textarea {
  min-height: 94px;
  resize: vertical;
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-right: 44px;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: var(--ink-500);
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.input-action:hover {
  color: var(--ink-900);
  background: var(--ink-100);
}

.input-action .icon {
  width: 17px;
  height: 17px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-600);
  font-size: 12px;
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--primary-600);
}

.checkbox a {
  color: var(--primary-700);
  font-weight: 650;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #f3c4c4;
  border-radius: 9px;
  color: var(--red-700);
  background: #fff7f7;
  font-size: 12px;
}

.form-alert .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

/* App shell */
.portal {
  min-height: 100vh;
  background: var(--surface-soft);
}

.sidebar {
  position: fixed;
  z-index: 80;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: #fff;
}

.sidebar__brand {
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  padding: 0 21px;
  border-bottom: 1px solid var(--border);
}

.sidebar__nav {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 20px 13px;
  overflow-y: auto;
}

.sidebar__label {
  margin: 17px 9px 7px;
  color: var(--ink-400);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sidebar__label:first-child {
  margin-top: 2px;
}

.nav-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--ink-600);
  font-size: 13px;
  font-weight: 650;
  transition: color 150ms ease, background 150ms ease;
}

.nav-item:hover {
  color: var(--ink-900);
  background: var(--ink-50);
}

.nav-item.is-active {
  color: var(--primary-700);
  background: var(--primary-50);
}

.nav-item.is-active .icon {
  stroke-width: 2.05;
}

.nav-item__pill {
  min-width: 21px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--ink-500);
  background: var(--ink-100);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.sidebar__bottom {
  padding: 13px;
  border-top: 1px solid var(--border);
}

.support-card {
  padding: 15px;
  border: 1px solid #d8e6f8;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary-50), #f7fbff);
}

.support-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-800);
  font-size: 12px;
}

.support-card p {
  margin-bottom: 10px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.55;
}

.topbar {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  display: flex;
  height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(16px);
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.topbar__left {
  min-width: 0;
}

.topbar__breadcrumb {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__breadcrumb strong {
  color: var(--ink-800);
}

.mobile-menu {
  display: none;
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-500);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.user-menu {
  position: relative;
}

.user-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 5px 4px 6px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.user-button:hover {
  background: var(--ink-50);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #cbdcf3;
  border-radius: 10px;
  color: var(--primary-800);
  background: linear-gradient(145deg, #edf4ff, #dfeeff);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-button__copy {
  display: grid;
  max-width: 140px;
  text-align: left;
}

.user-button__copy strong,
.user-button__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-button__copy strong {
  color: var(--ink-800);
  font-size: 11px;
}

.user-button__copy span {
  margin-top: 1px;
  color: var(--ink-400);
  font-size: 9px;
}

.user-button > .icon {
  width: 14px;
  height: 14px;
  color: var(--ink-400);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: 216px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.user-dropdown__head {
  padding: 10px 10px 11px;
  border-bottom: 1px solid var(--border);
}

.user-dropdown__head strong,
.user-dropdown__head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown__head strong {
  font-size: 12px;
}

.user-dropdown__head span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 10px;
}

.dropdown-action {
  display: flex;
  width: 100%;
  min-height: 37px;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--ink-600);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.dropdown-action:hover {
  color: var(--red-700);
  background: #fff5f5;
}

.dropdown-action .icon {
  width: 16px;
  height: 16px;
}

.portal-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: calc(var(--topbar-height) + 28px) 30px 48px;
}

.page-wrap {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.page-header h1 {
  margin-bottom: 7px;
  font-size: 27px;
  font-weight: 760;
}

.page-header p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
}

.page-header__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid #d0e2fb;
  border-radius: 11px;
  color: var(--primary-800);
  background: var(--primary-50);
  font-size: 12px;
}

.notice .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice--warning {
  border-color: #f3d9a9;
  color: var(--amber-700);
  background: #fff9ec;
}

.notice--success {
  border-color: #bfe6cf;
  color: var(--green-700);
  background: #f0fbf5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 19px;
}

.stat-card {
  position: relative;
  min-width: 0;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.stat-card__label {
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 650;
}

.stat-card__icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--primary-700);
  background: var(--primary-100);
}

.stat-card__icon .icon {
  width: 16px;
  height: 16px;
}

.stat-card:nth-child(2) .stat-card__icon {
  color: var(--teal-700);
  background: var(--teal-100);
}

.stat-card:nth-child(3) .stat-card__icon {
  color: var(--violet-700);
  background: var(--violet-100);
}

.stat-card:nth-child(4) .stat-card__icon {
  color: var(--amber-700);
  background: var(--amber-100);
}

.stat-card__value {
  display: block;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--ink-950);
  font-size: 25px;
  font-weight: 770;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-400);
  font-size: 10px;
}

.stat-card__trend {
  color: var(--green-700);
  font-weight: 750;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 19px;
  margin-bottom: 19px;
}

.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.card__head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.card__head h2,
.card__head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 730;
}

.card__head-copy p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.card__body {
  padding: 18px;
}

.card__body--flush {
  padding: 0;
}

.chart-wrap {
  min-height: 257px;
  padding: 24px 19px 14px;
}

.chart-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}

.chart-summary strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.chart-summary span {
  color: var(--ink-500);
  font-size: 10px;
}

.bar-chart {
  display: grid;
  height: 156px;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: clamp(9px, 2vw, 19px);
  padding: 13px 8px 0;
  border-bottom: 1px solid var(--border);
  background-image: linear-gradient(to top, var(--ink-100) 1px, transparent 1px);
  background-size: 100% 25%;
}

.bar-chart__item {
  position: relative;
  display: flex;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
}

.bar-chart__bar {
  width: min(31px, 70%);
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(to top, var(--primary-700), var(--primary-400));
  box-shadow: 0 4px 9px rgba(46, 103, 199, 0.14);
  transition: filter 150ms ease;
}

.bar-chart__item:hover .bar-chart__bar {
  filter: brightness(1.08);
}

.bar-chart__label {
  position: absolute;
  top: calc(100% + 8px);
  color: var(--ink-400);
  font-size: 9px;
}

.quick-actions {
  display: grid;
  gap: 9px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.quick-action:hover {
  border-color: #c4d5ea;
  background: var(--primary-50);
}

.quick-action__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--primary-700);
  background: var(--primary-100);
}

.quick-action__icon .icon {
  width: 17px;
  height: 17px;
}

.quick-action__copy {
  display: grid;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.quick-action__copy strong {
  font-size: 11px;
}

.quick-action__copy span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.quick-action > .icon {
  width: 15px;
  height: 15px;
  color: var(--ink-400);
}

.endpoint-box {
  padding: 15px;
  border: 1px solid #26334a;
  border-radius: 11px;
  background: #101a2c;
}

.endpoint-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #8395b1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.endpoint-box code,
.snippet-box code {
  display: block;
  overflow: auto;
  color: #d9e4f3;
  font: 11px/1.75 "SFMono-Regular", Consolas, monospace;
  white-space: pre;
}

.endpoint-box code .accent,
.snippet-box code .accent {
  color: #91b7ff;
}

.health-list {
  display: grid;
  gap: 12px;
}

.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
}

.health-row__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-600);
}

.health-row__value {
  color: var(--ink-800);
  font-weight: 700;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table th {
  color: var(--ink-500);
  background: #fafbfd;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #fbfcfe;
}

.table-primary {
  color: var(--ink-800);
  font-weight: 700;
}

.table-secondary {
  display: block;
  max-width: 300px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-400);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-icon {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--primary-700);
  background: var(--primary-100);
}

.key-icon .icon {
  width: 16px;
  height: 16px;
}

.table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.table-empty {
  padding: 48px 24px !important;
  color: var(--ink-500);
  text-align: center;
}

.empty-state {
  display: grid;
  max-width: 410px;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 14px;
  color: var(--primary-700);
  background: var(--primary-100);
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 14px;
}

.empty-state p {
  margin-bottom: 16px;
  color: var(--ink-500);
  font-size: 11px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.toolbar__filters {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.search-box {
  position: relative;
  width: min(320px, 42vw);
}

.search-box .input {
  padding-left: 38px;
}

.search-box > .icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--ink-400);
  transform: translateY(-50%);
}

.select--compact {
  width: auto;
  min-width: 132px;
}

.result-count {
  color: var(--ink-500);
  font-size: 10px;
  white-space: nowrap;
}

/* Models */
.model-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.model-profile-card {
  position: relative;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.model-profile-card:hover {
  border-color: #bcd0e9;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.model-profile-card.is-selected {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--focus), var(--shadow-sm);
}

.model-profile-card.is-selected::after {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--primary-600);
  box-shadow: 0 0 0 2px var(--primary-100);
  content: "";
}

.model-profile-card__top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.model-profile-card__top .model-avatar {
  width: 39px;
  height: 39px;
  border-radius: 11px;
}

.model-profile-card h3 {
  margin: 0 22px 2px 0;
  font-size: 13px;
}

.model-profile-card__id {
  display: block;
  overflow: hidden;
  color: var(--ink-400);
  font: 9px/1.4 "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-profile-card p {
  min-height: 42px;
  margin-bottom: 15px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.65;
}

.model-profile-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--ink-500);
  background: var(--ink-100);
  font-size: 9px;
  font-weight: 650;
}

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

.model-card {
  display: grid;
  min-height: 216px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.model-card:hover {
  border-color: #bfd1e7;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.model-card.is-selected {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--focus);
}

.model-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-card__copy {
  min-width: 0;
  flex: 1;
}

.model-card__copy strong,
.model-card__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-card__copy strong {
  font-size: 12px;
}

.model-card__copy span {
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 9px;
}

.model-card__description {
  margin: 14px 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.65;
}

.model-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-self: end;
}

.model-card__stat {
  min-width: 0;
  padding: 7px;
  border-radius: 7px;
  background: var(--ink-50);
}

.model-card__stat span,
.model-card__stat strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-card__stat span {
  margin-bottom: 3px;
  color: var(--ink-400);
  font-size: 8px;
}

.model-card__stat strong {
  color: var(--ink-700);
  font-size: 9px;
}

.selection-dock {
  position: sticky;
  z-index: 10;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #c9d9ee;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(15px);
}

.selection-dock__model {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.selection-dock__copy {
  min-width: 0;
}

.selection-dock__copy span,
.selection-dock__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-dock__copy span {
  color: var(--ink-400);
  font-size: 9px;
}

.selection-dock__copy strong {
  margin-top: 1px;
  font: 11px/1.4 "SFMono-Regular", Consolas, monospace;
}

/* Wallet */
.wallet-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  gap: 19px;
  margin-bottom: 19px;
}

.balance-card {
  position: relative;
  min-height: 232px;
  padding: 25px;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(126deg, #173b7b, #2869bd 65%, #228b97);
  box-shadow: 0 18px 38px rgba(29, 67, 136, 0.2);
}

.balance-card::before,
.balance-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.balance-card::before {
  width: 270px;
  height: 270px;
  top: -170px;
  right: -50px;
}

.balance-card::after {
  width: 200px;
  height: 200px;
  right: -70px;
  bottom: -125px;
}

.balance-card__label,
.balance-card__value,
.balance-card__foot {
  position: relative;
  z-index: 1;
}

.balance-card__label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 650;
}

.balance-card__value {
  display: block;
  margin: 15px 0 27px;
  font-size: 38px;
  font-weight: 770;
  letter-spacing: -0.045em;
}

.balance-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.balance-card__foot span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.balance-card .btn {
  min-height: 35px;
  color: var(--primary-800);
  background: #fff;
  border-color: #fff;
  font-size: 11px;
}

.recharge-form {
  display: grid;
  gap: 17px;
}

.amount-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amount-option {
  min-height: 48px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink-700);
  background: #fff;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.amount-option:hover,
.amount-option.is-selected {
  border-color: var(--primary-500);
  color: var(--primary-700);
  background: var(--primary-50);
  box-shadow: 0 0 0 2px var(--focus);
}

.wallet-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 9px;
  color: var(--ink-500);
  background: var(--ink-50);
  font-size: 10px;
  line-height: 1.6;
}

.wallet-note .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--primary-600);
}

/* Admin */
.admin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 21px;
  margin-bottom: 20px;
  padding: 19px 22px;
  border: 1px solid #d9d1f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f5ff, #f2f7ff);
}

.admin-banner__copy {
  display: flex;
  align-items: center;
  gap: 13px;
}

.admin-banner__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--violet-700);
  background: var(--violet-100);
}

.admin-banner strong {
  display: block;
  font-size: 13px;
}

.admin-banner p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 17px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  width: fit-content;
}

.tab {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 7px;
  color: var(--ink-500);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tab:hover {
  color: var(--ink-800);
  background: var(--ink-50);
}

.tab.is-active {
  color: var(--primary-700);
  background: var(--primary-50);
}

/* Usage */
.usage-breakdown {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 19px;
  margin-bottom: 19px;
}

.donut-row {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 20px;
}

.donut {
  position: relative;
  display: grid;
  width: 136px;
  height: 136px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary-600) 0 44%, var(--teal-500) 44% 72%, #795fd0 72% 88%, var(--ink-200) 88% 100%);
}

.donut::before {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.donut__copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.donut__copy strong,
.donut__copy span {
  display: block;
}

.donut__copy strong {
  font-size: 18px;
}

.donut__copy span {
  color: var(--ink-400);
  font-size: 8px;
}

.legend {
  display: grid;
  min-width: 180px;
  gap: 11px;
}

.legend__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-600);
  font-size: 10px;
}

.legend__label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.legend__swatch {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--primary-600);
}

.legend__item:nth-child(2) .legend__swatch { background: var(--teal-500); }
.legend__item:nth-child(3) .legend__swatch { background: #795fd0; }
.legend__item:nth-child(4) .legend__swatch { background: var(--ink-300); }

.legend__item strong {
  color: var(--ink-800);
  font-size: 10px;
}

/* Modal, toast, loading */
.modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 22px;
  overflow-y: auto;
  place-items: center;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(4px);
  animation: fade-in 150ms ease both;
}

.modal {
  width: min(500px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modal-in 180ms ease both;
}

.modal--sm {
  width: min(420px, 100%);
}

.modal--lg {
  width: min(670px, 100%);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 21px 17px;
  border-bottom: 1px solid var(--border);
}

.modal__head h2 {
  margin: 0;
  font-size: 17px;
}

.modal__head p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.modal__close {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--ink-500);
  background: transparent;
  cursor: pointer;
}

.modal__close:hover {
  color: var(--ink-900);
  background: var(--ink-100);
}

.modal__close .icon {
  width: 18px;
  height: 18px;
}

.modal__body {
  padding: 20px 21px;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 21px;
  border-top: 1px solid var(--border);
  background: #fafbfd;
}

.secret-box {
  padding: 15px;
  border: 1px solid #bcd6fa;
  border-radius: 11px;
  background: var(--primary-50);
}

.secret-box__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--primary-800);
  font-size: 10px;
  font-weight: 750;
}

.secret-box code {
  display: block;
  padding: 11px;
  overflow: auto;
  border: 1px solid #d0e2fb;
  border-radius: 8px;
  color: var(--ink-800);
  background: #fff;
  font: 11px/1.6 "SFMono-Regular", Consolas, monospace;
  word-break: break-all;
}

.secret-warning {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  color: var(--amber-700);
  font-size: 10px;
  line-height: 1.55;
}

.secret-warning .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.confirm-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 14px;
  color: var(--red-700);
  background: var(--red-100);
}

.confirm-copy h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.confirm-copy p {
  margin: 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.65;
}

.toast-region {
  position: fixed;
  z-index: 2000;
  top: 18px;
  right: 18px;
  display: grid;
  width: min(370px, calc(100vw - 36px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toast-in 220ms ease both;
}

.toast.is-leaving {
  animation: toast-out 180ms ease both;
}

.toast__icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--green-700);
  background: var(--green-100);
}

.toast--error .toast__icon {
  color: var(--red-700);
  background: var(--red-100);
}

.toast--warning .toast__icon {
  color: var(--amber-700);
  background: var(--amber-100);
}

.toast__icon .icon {
  width: 15px;
  height: 15px;
}

.toast__copy {
  min-width: 0;
  flex: 1;
}

.toast__copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}

.toast__copy span {
  display: block;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.5;
}

.toast__close {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  color: var(--ink-400);
  background: transparent;
  cursor: pointer;
}

.toast__close:hover {
  color: var(--ink-800);
  background: var(--ink-100);
}

.toast__close .icon {
  width: 14px;
  height: 14px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  border-radius: 6px;
  background: var(--ink-100);
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.3s ease infinite;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 11px;
}

.skeleton-line--short {
  width: 58%;
}

.loading-panel {
  display: grid;
  min-height: 260px;
  place-content: center;
  justify-items: center;
  color: var(--ink-500);
  font-size: 11px;
}

.loading-panel .spinner {
  margin-bottom: 12px;
  color: var(--primary-600);
}

.inline-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-loading .spinner {
  width: 14px;
  height: 14px;
}

.error-state {
  display: grid;
  min-height: 280px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
}

.error-state__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 14px;
  color: var(--red-700);
  background: var(--red-100);
}

.error-state h3 {
  margin-bottom: 7px;
  font-size: 14px;
}

.error-state p {
  max-width: 380px;
  margin-bottom: 16px;
  color: var(--ink-500);
  font-size: 11px;
}

.mobile-backdrop {
  display: none;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(16px); }
}

@media (max-width: 1120px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
    gap: 40px;
  }

  .gateway-card {
    right: 8px;
    left: 8px;
  }

  .integration-panel {
    gap: 45px;
    padding: 45px;
  }

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

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

  .model-featured .model-profile-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 920px) {
  :root {
    --sidebar-width: 240px;
  }

  .public-nav__links {
    display: none;
  }

  .hero {
    padding: 72px 0 55px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 710px;
  }

  .gateway-visual {
    width: min(570px, 100%);
    margin: 0 auto;
  }

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

  .integration-panel {
    grid-template-columns: 1fr;
  }

  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    display: none;
  }

  .auth-main {
    background:
      radial-gradient(circle at 90% 5%, rgba(61, 127, 227, 0.11), transparent 24rem),
      #fff;
  }

  .dashboard-grid,
  .usage-breakdown {
    grid-template-columns: 1fr;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 30px, 1160px);
  }

  .public-nav__inner {
    height: 67px;
  }

  .public-nav__actions .btn--ghost {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 55px);
  }

  .hero__lead {
    font-size: 16px;
  }

  .gateway-visual {
    min-height: 470px;
  }

  .floating-chip--top {
    left: 0;
  }

  .floating-chip--bottom {
    right: 0;
  }

  .logo-strip__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .provider-list {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .section {
    padding: 70px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .integration-panel {
    gap: 34px;
    padding: 28px;
  }

  .integration-panel h2 {
    font-size: 31px;
  }

  .cta-panel {
    padding: 50px 22px;
  }

  .public-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar {
    transform: translateX(-102%);
    transition: transform 200ms ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .mobile-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    background: rgba(11, 18, 32, 0.47);
  }

  body.nav-open .mobile-backdrop {
    display: block;
  }

  .topbar {
    left: 0;
    padding: 0 16px;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .server-status {
    display: none;
  }

  .portal-main {
    margin-left: 0;
    padding: calc(var(--topbar-height) + 22px) 16px 38px;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .page-header__actions {
    justify-content: flex-start;
  }

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

  .model-grid,
  .model-featured {
    grid-template-columns: 1fr;
  }

  .model-featured .model-profile-card:last-child {
    grid-column: auto;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar__filters {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .select--compact {
    width: 100%;
  }

  .selection-dock {
    align-items: stretch;
    flex-direction: column;
  }

  .selection-dock .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-banner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .donut-row {
    gap: 24px;
  }
}

@media (max-width: 520px) {
  .public-nav__actions .btn {
    min-height: 38px;
    padding: 8px 12px;
  }

  .brand-product {
    display: none;
  }

  .hero__actions {
    display: grid;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .gateway-visual {
    min-height: 435px;
  }

  .gateway-card {
    top: 68px;
    right: 0;
    left: 0;
    padding: 18px;
  }

  .floating-chip {
    font-size: 9px;
  }

  .floating-chip--bottom {
    bottom: 6px;
  }

  .provider-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .integration-panel {
    padding: 22px;
  }

  .code-window pre {
    padding: 18px;
    font-size: 10px;
  }

  .auth-main {
    padding: 25px 20px;
  }

  .auth-card-wrap {
    padding: 38px 0;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .topbar__breadcrumb {
    display: none;
  }

  .user-button__copy,
  .user-button > .icon {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 17px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-header__actions .btn {
    width: 100%;
  }

  .card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bar-chart {
    gap: 7px;
    padding-inline: 2px;
  }

  .data-table--stack thead {
    display: none;
  }

  .data-table--stack,
  .data-table--stack tbody,
  .data-table--stack tr,
  .data-table--stack td {
    display: block;
    width: 100%;
  }

  .data-table--stack tr {
    padding: 13px 15px;
    border-bottom: 1px solid var(--border);
  }

  .data-table--stack tr:last-child {
    border-bottom: 0;
  }

  .data-table--stack td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 6px 0;
    border: 0;
    text-align: right;
  }

  .data-table--stack td::before {
    color: var(--ink-400);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
  }

  .data-table--stack td:first-child {
    justify-content: flex-start;
    margin-bottom: 6px;
    text-align: left;
  }

  .data-table--stack td:first-child::before {
    display: none;
  }

  .data-table--stack .table-actions {
    justify-content: flex-end;
  }

  .balance-card {
    min-height: 220px;
  }

  .donut-row {
    align-items: center;
    flex-direction: column;
  }

  .legend {
    width: 100%;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: calc(100vh - 20px);
  }

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

  .modal__foot .btn {
    width: 100%;
  }

  .toast-region {
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .page-header__actions,
  .selection-dock,
  .toast-region {
    display: none !important;
  }

  .portal-main {
    margin: 0;
    padding: 0;
  }

  .card,
  .stat-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
