:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #04101a;
  --surface: #0d1a2a;
  --surface-raised: #122235;
  --surface-soft: #102033;
  --surface-hover: #172b40;
  --text: #f3f7fb;
  --text-soft: #b6c5d5;
  --muted: #7f93a9;
  --border: rgba(162, 188, 215, 0.14);
  --border-strong: rgba(162, 188, 215, 0.25);
  --teal: #38d7bd;
  --teal-deep: #0f9e8a;
  --teal-soft: rgba(56, 215, 189, 0.12);
  --blue: #6aa9ff;
  --blue-soft: rgba(106, 169, 255, 0.13);
  --amber: #ffbd66;
  --amber-soft: rgba(255, 189, 102, 0.12);
  --violet: #ab8dff;
  --violet-soft: rgba(171, 141, 255, 0.13);
  --danger: #ff7d8a;
  --danger-soft: rgba(255, 125, 138, 0.12);
  --success: #58e6a7;
  --success-soft: rgba(88, 230, 167, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.18);
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --sidebar-width: 256px;
  --topbar-height: 78px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7f9;
  --bg-deep: #e8f0f3;
  --surface: #ffffff;
  --surface-raised: #f9fcfd;
  --surface-soft: #f1f6f8;
  --surface-hover: #eaf3f5;
  --text: #102338;
  --text-soft: #3d5368;
  --muted: #6b7f92;
  --border: rgba(22, 54, 76, 0.11);
  --border-strong: rgba(22, 54, 76, 0.2);
  --teal: #078f7c;
  --teal-deep: #057465;
  --teal-soft: rgba(7, 143, 124, 0.1);
  --blue: #2876d2;
  --blue-soft: rgba(40, 118, 210, 0.1);
  --amber: #a26400;
  --amber-soft: rgba(190, 119, 5, 0.1);
  --violet: #7048c7;
  --violet-soft: rgba(112, 72, 199, 0.1);
  --danger: #c7364d;
  --danger-soft: rgba(199, 54, 77, 0.09);
  --success: #087a56;
  --success-soft: rgba(8, 122, 86, 0.1);
  --shadow: 0 24px 70px rgba(27, 55, 75, 0.13);
  --shadow-soft: 0 14px 38px rgba(27, 55, 75, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

button {
  border: 0;
}

svg {
  display: block;
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
}

code,
pre,
.mono-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

::selection {
  background: var(--teal);
  color: #06121b;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  color: var(--bg-deep);
  background: var(--teal);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  color: var(--bg-deep);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: -240px;
  right: 8%;
  background: var(--teal);
}

.ambient-two {
  bottom: -320px;
  left: 12%;
  background: var(--blue);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 26px 17px 18px;
  overflow-y: auto;
  background: color-mix(in srgb, var(--bg-deep) 88%, transparent);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(56, 215, 189, 0.35);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(56, 215, 189, 0.2), rgba(106, 169, 255, 0.06));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.brand-mark span {
  position: absolute;
  width: 6px;
  border-radius: 4px;
  background: var(--teal);
  transform: rotate(35deg);
}

.brand-mark span:nth-child(1) {
  left: 10px;
  height: 16px;
}

.brand-mark span:nth-child(2) {
  left: 17px;
  height: 25px;
  background: var(--blue);
}

.brand-mark span:nth-child(3) {
  left: 24px;
  height: 12px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: -0.4px;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--teal);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 3.2px;
}

.side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  margin-top: 34px;
}

.nav-label {
  margin: 20px 12px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 560;
  transition: 160ms ease;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-link.is-active {
  color: var(--text);
  background: linear-gradient(90deg, var(--teal-soft), transparent);
  border-color: rgba(56, 215, 189, 0.12);
  box-shadow: inset 2px 0 var(--teal);
}

.nav-link.is-active svg {
  color: var(--teal);
}

.sidebar-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 5px 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.security-note div {
  display: flex;
  flex-direction: column;
}

.security-note strong {
  font-size: 11px;
}

.security-note small {
  color: var(--muted);
  font-size: 9px;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.logout-link {
  width: 100%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.workspace {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(22px, 3.2vw, 48px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
}

.topbar-left,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-heading h1 {
  margin: 1px 0 0;
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 680;
  letter-spacing: -0.7px;
}

.eyebrow {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.topbar .eyebrow {
  color: var(--muted);
  font-size: 8px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.icon-button.small {
  width: 30px;
  height: 30px;
}

.menu-button {
  display: none;
}

.theme-sun {
  display: none;
}

[data-theme="light"] .theme-sun {
  display: block;
}

[data-theme="light"] .theme-moon {
  display: none;
}

.org-switcher select {
  min-width: 172px;
  height: 38px;
  padding: 0 32px 0 12px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: 0;
  background: var(--surface);
  font-size: 12px;
  font-weight: 650;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(56, 215, 189, 0.25);
  border-radius: 50%;
  color: var(--teal);
  background: linear-gradient(145deg, var(--teal-soft), var(--blue-soft));
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.avatar.large {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  font-size: 14px;
}

.account-copy {
  display: flex;
  max-width: 170px;
  flex-direction: column;
}

.account-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  color: var(--muted);
  font-size: 9px;
}

.main-content {
  width: 100%;
  max-width: 1600px;
  min-height: calc(100vh - var(--topbar-height));
  padding: clamp(24px, 3.4vw, 46px) clamp(20px, 3.2vw, 48px) 24px;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.hero-row.compact {
  margin-bottom: 24px;
}

.hero-row h2,
.product-hero h2,
.service-detail-hero h2 {
  margin: 5px 0 8px;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 680;
  letter-spacing: -1.25px;
  line-height: 1.12;
}

.hero-row .lede,
.product-hero > div > p,
.service-detail-hero p,
.panel-head p {
  margin: 0;
  color: var(--text-soft);
}

.hero-row .lede {
  max-width: 620px;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 16px;
  height: 16px;
}

.button-primary {
  color: #04151b;
  background: linear-gradient(135deg, var(--teal), #72e5cf);
  box-shadow: 0 7px 22px rgba(56, 215, 189, 0.16);
}

.button-primary:hover {
  color: #04151b;
  background: linear-gradient(135deg, #5ce3cd, #91f1df);
  box-shadow: 0 10px 28px rgba(56, 215, 189, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-raised);
}

.button-secondary:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.button-danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 25%, transparent);
  background: var(--danger-soft);
}

.button-full {
  width: 100%;
}

.button-compact {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 11px;
}

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

.text-link,
.text-button {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.text-link:hover,
.text-button:hover {
  color: var(--text);
}

.text-button {
  padding: 0;
  background: transparent;
  cursor: pointer;
}

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

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

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

.stat-card {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, var(--teal-soft), transparent 47%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-accent-amber {
  background: radial-gradient(circle at 100% 0, var(--amber-soft), transparent 47%), var(--surface);
}

.stat-accent-blue {
  background: radial-gradient(circle at 100% 0, var(--blue-soft), transparent 47%), var(--surface);
}

.stat-accent-violet {
  background: radial-gradient(circle at 100% 0, var(--violet-soft), transparent 47%), var(--surface);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 620;
}

.stat-icon {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  font-size: 12px;
}

.stat-card > strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 650;
  letter-spacing: -1px;
}

.stat-card > small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.sparkline {
  position: absolute;
  right: 20px;
  bottom: 17px;
  display: flex;
  height: 27px;
  align-items: flex-end;
  gap: 3px;
}

.sparkline i {
  width: 4px;
  border-radius: 3px;
  background: var(--teal);
  opacity: 0.55;
}

.sparkline i:nth-child(1) { height: 28%; }
.sparkline i:nth-child(2) { height: 44%; }
.sparkline i:nth-child(3) { height: 35%; }
.sparkline i:nth-child(4) { height: 64%; }
.sparkline i:nth-child(5) { height: 57%; }
.sparkline i:nth-child(6) { height: 78%; }
.sparkline i:nth-child(7) { height: 100%; }

.mini-progress {
  display: block;
  position: absolute;
  right: 20px;
  bottom: 21px;
  width: 74px;
  height: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--border);
  appearance: none;
}

.mini-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--border);
}

.mini-progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--amber);
}

.mini-progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--amber);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

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

.span-two {
  grid-column: span 2;
}

.span-all {
  grid-column: 1 / -1;
}

.panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel h3,
.panel h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.2px;
}

.panel h4 {
  font-size: 13px;
}

.panel-head p,
.panel > p {
  color: var(--muted);
  font-size: 11px;
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 40px minmax(145px, 1.4fr) auto minmax(75px, 0.6fr) 18px;
  align-items: center;
  gap: 13px;
  padding: 13px 4px;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.service-row:hover {
  color: var(--text);
  background: linear-gradient(90deg, var(--teal-soft), transparent);
}

.service-glyph {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--teal);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 800;
}

.service-glyph.large {
  width: 45px;
  height: 45px;
  flex-basis: 45px;
}

.service-glyph.xlarge {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: 15px;
  font-size: 19px;
}

.service-main,
.service-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.service-main strong,
.service-meta strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-main small,
.service-meta small {
  color: var(--muted);
  font-size: 9px;
}

.row-arrow {
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}

.service-row:hover .row-arrow {
  color: var(--teal);
  transform: translateX(2px);
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-soft);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success,
.badge-active {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 20%, transparent);
  background: var(--success-soft);
}

.badge-info,
.badge-provisioning {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 20%, transparent);
  background: var(--blue-soft);
}

.badge-warning,
.badge-pending {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 20%, transparent);
  background: var(--amber-soft);
}

.badge-danger,
.badge-failed {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 20%, transparent);
  background: var(--danger-soft);
}

.health-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.health-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.health-item > span {
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-hover);
  font-size: 9px;
  font-weight: 800;
}

.health-item.is-good > span {
  color: var(--success);
  background: var(--success-soft);
}

.health-item.is-warning > span {
  color: var(--amber);
  background: var(--amber-soft);
}

.health-item p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.health-item strong {
  font-size: 11px;
}

.health-item small {
  color: var(--muted);
  font-size: 9px;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  padding: 8px 0 14px;
}

.timeline-item:not(:last-child)::before {
  position: absolute;
  top: 20px;
  bottom: -1px;
  left: 5px;
  width: 1px;
  background: var(--border);
  content: "";
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.timeline-warning { background: var(--amber); }
.timeline-danger { background: var(--danger); }
.timeline-info { background: var(--blue); }

.timeline-item strong {
  font-size: 11px;
}

.timeline-item p {
  margin: 2px 0;
  color: var(--text-soft);
  font-size: 10px;
}

.timeline-item small {
  color: var(--muted);
  font-size: 8px;
}

.promo-panel {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  color: #edf9fb;
  background:
    radial-gradient(circle at 85% 15%, rgba(56, 215, 189, 0.28), transparent 32%),
    linear-gradient(145deg, #0d2d3c, #091c31 66%);
}

.promo-panel h3 {
  max-width: 260px;
  margin-top: 14px;
  color: #fff;
  font-size: 25px;
  line-height: 1.13;
}

.promo-panel p {
  max-width: 360px;
  color: rgba(232, 246, 249, 0.68);
}

.promo-kicker {
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.text-link.light {
  position: absolute;
  bottom: 22px;
  left: 22px;
  color: #8aebdd;
}

.promo-art {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(56, 215, 189, 0.15);
  border-radius: 50%;
}

.promo-art .node {
  position: absolute;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #baf7ec;
  border: 1px solid rgba(56, 215, 189, 0.24);
  border-radius: 14px;
  background: rgba(7, 24, 36, 0.8);
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
}

.node-a { top: 18px; left: 28px; }
.node-b { top: 70px; right: 15px; }
.node-c { bottom: 12px; left: 80px; }
.node-d { top: 40px; right: 90px; }

.promo-art .link {
  position: absolute;
  height: 1px;
  background: rgba(56, 215, 189, 0.3);
  transform-origin: left;
}

.link-a { top: 57px; left: 72px; width: 75px; transform: rotate(23deg); }
.link-b { top: 89px; left: 70px; width: 65px; transform: rotate(-13deg); }
.link-c { bottom: 61px; left: 113px; width: 60px; transform: rotate(-25deg); }

.legal-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 9px;
}

.legal-footer a {
  color: var(--muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.footer-status .pulse-dot {
  width: 5px;
  height: 5px;
  flex-basis: 5px;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  font-size: 11px;
}

.flash-success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 25%, transparent);
  background: var(--success-soft);
}

.flash-warning {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 25%, transparent);
  background: var(--amber-soft);
}

.flash-danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 25%, transparent);
  background: var(--danger-soft);
}

.flash button {
  color: inherit;
  background: transparent;
  font-size: 17px;
  cursor: pointer;
}

.empty-state {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}

.empty-state.small {
  min-height: 150px;
}

.empty-icon {
  display: inline-grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin-bottom: 10px;
  color: var(--teal);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--teal-soft);
  font-size: 19px;
}

.empty-state h4 {
  margin: 0;
  font-size: 14px;
}

.empty-state p {
  max-width: 360px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

/* Auth */
.auth-body {
  background: var(--bg-deep);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.05fr) minmax(460px, 0.95fr);
}

.auth-visual {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(rgba(6, 23, 35, 0.2), rgba(5, 16, 27, 0.76)),
    radial-gradient(circle at 60% 35%, rgba(35, 160, 156, 0.25), transparent 38%),
    linear-gradient(145deg, #0b2b3a, #081727 62%, #07111f);
}

.auth-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(126, 205, 202, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 205, 202, 0.1) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  content: "";
}

.auth-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-visual .brand {
  color: #f6fbfc;
}

.auth-message {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 80px 0;
}

.auth-message h1 {
  margin: 13px 0 18px;
  color: #f5fbfc;
  font-size: clamp(39px, 5.2vw, 68px);
  font-weight: 620;
  letter-spacing: -2.6px;
  line-height: 0.99;
}

.auth-message p {
  max-width: 500px;
  margin: 0;
  color: rgba(224, 244, 246, 0.65);
  font-size: 15px;
  line-height: 1.65;
}

.auth-proof {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
}

.proof-card {
  display: flex;
  min-width: 170px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(154, 229, 222, 0.14);
  border-radius: 14px;
  background: rgba(10, 34, 47, 0.56);
  backdrop-filter: blur(14px);
}

.proof-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--teal);
  border-radius: 10px;
  background: rgba(56, 215, 189, 0.12);
}

.proof-card div {
  display: flex;
  flex-direction: column;
}

.proof-card strong {
  color: #f5fbfc;
  font-size: 13px;
}

.proof-card small {
  color: rgba(224, 244, 246, 0.43);
  font-size: 9px;
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgba(56, 215, 189, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 550px;
  height: 550px;
  right: -250px;
  bottom: -180px;
}

.orbit-two {
  width: 370px;
  height: 370px;
  right: -160px;
  bottom: -90px;
}

.auth-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 36px clamp(32px, 6vw, 90px) 24px;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 90% 5%, var(--teal-soft), transparent 27%),
    var(--bg);
}

.auth-panel-inner {
  width: 100%;
  max-width: 470px;
  margin: auto;
}

.auth-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 9px;
}

.auth-footer a {
  color: var(--muted);
}

.auth-form-head {
  margin-bottom: 28px;
}

.auth-form-head.centered {
  text-align: center;
}

.auth-form-head h2 {
  margin: 7px 0 8px;
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 680;
  letter-spacing: -1.2px;
  line-height: 1.12;
}

.auth-form-head p {
  max-width: 460px;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.auth-form-head.centered p {
  margin-inline: auto;
}

.form-stack,
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.form-stack.compact-top {
  margin-top: 20px;
}

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

.field-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.field-group label,
.label-row label,
.choice-cards legend,
.scope-fieldset legend {
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.field-group small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

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

.label-row a {
  color: var(--teal);
  font-size: 9px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;
  background: var(--surface-raised);
  font-size: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--teal) 65%, transparent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

input:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.75;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

select {
  cursor: pointer;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 60px;
}

.field-action {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 5px 7px;
  color: var(--muted);
  border-radius: 5px;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  transform: translateY(-50%);
  cursor: pointer;
}

.field-action:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 10px;
  cursor: pointer;
}

.check-row.check-start {
  align-items: flex-start;
  line-height: 1.5;
}

.check-row input {
  width: 15px;
  min-height: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.check-row a {
  color: var(--teal);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 17px;
  color: var(--muted);
  font-size: 9px;
}

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

.secure-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 21px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.secure-caption svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

.auth-switch {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.auth-switch a {
  color: var(--teal);
  font-weight: 700;
}

.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}

.step-indicator > span:not(.step-line) {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.step-indicator > span.is-current {
  color: var(--bg-deep);
  border-color: var(--teal);
  background: var(--teal);
}

.step-line {
  height: 1px;
  flex: 1;
  background: var(--border);
}

.strength-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
}

.strength-meter span {
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  transition: background 160ms ease;
}

.strength-meter[data-strength="1"] span:nth-child(1) { background: var(--danger); }
.strength-meter[data-strength="2"] span:nth-child(-n+2) { background: var(--amber); }
.strength-meter[data-strength="3"] span:nth-child(-n+3) { background: var(--blue); }
.strength-meter[data-strength="4"] span { background: var(--success); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.trust-strip span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}

.trust-strip strong {
  color: var(--teal);
  font-size: 8px;
}

.auth-icon-large {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 22px;
  color: var(--teal);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--teal-soft), var(--blue-soft));
}

.auth-icon-large.success {
  color: var(--success);
  background: var(--success-soft);
}

.auth-icon-large svg {
  width: 27px;
  height: 27px;
}

.verification-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.verification-card {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
}

.verification-card.is-complete {
  border-color: color-mix(in srgb, var(--success) 20%, transparent);
  background: var(--success-soft);
}

.status-ring {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--teal);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.verification-card.is-complete .status-ring {
  color: var(--success);
  border-color: transparent;
  background: var(--success-soft);
}

.verification-card div {
  display: flex;
  flex-direction: column;
}

.verification-card strong {
  font-size: 11px;
}

.verification-card small {
  color: var(--muted);
  font-size: 9px;
}

.otp-input {
  height: 58px;
  padding: 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 25px;
  letter-spacing: 10px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.choice-cards {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  border: 0;
}

.choice-cards legend {
  margin-bottom: 7px;
}

.choice-card {
  display: grid;
  grid-template-columns: 15px 34px 1fr;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.choice-card:has(input:checked) {
  border-color: color-mix(in srgb, var(--teal) 45%, transparent);
  background: var(--teal-soft);
}

.choice-card input {
  width: 14px;
  min-height: 14px;
  margin: 0;
  accent-color: var(--teal);
}

.choice-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--teal);
  border-radius: 9px;
  background: var(--surface-hover);
  font-size: 11px;
  font-weight: 800;
}

.choice-card > span:last-child {
  display: flex;
  flex-direction: column;
}

.choice-card strong {
  font-size: 11px;
}

.choice-card small {
  color: var(--muted);
  font-size: 9px;
}

.info-panel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 13px;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--blue-soft);
  font-size: 9px;
}

.info-panel > span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  color: var(--blue);
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
}

.info-panel p {
  margin: 0;
  line-height: 1.55;
}

.info-panel.warning {
  color: var(--text-soft);
  border-color: color-mix(in srgb, var(--amber) 20%, transparent);
  background: var(--amber-soft);
}

.info-panel.warning > span {
  color: var(--amber);
  background: var(--amber-soft);
}

.info-panel.security {
  border-color: color-mix(in srgb, var(--teal) 20%, transparent);
  background: var(--teal-soft);
}

.info-panel.compact {
  margin-top: 4px;
}

.recovery-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.recovery-list > div {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-raised);
}

.recovery-list > div > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  font-size: 9px;
  font-weight: 800;
}

.recovery-list p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.recovery-list strong {
  font-size: 10px;
}

.recovery-list small {
  color: var(--muted);
  font-size: 8px;
}

.recovery-list a,
.recovery-list button {
  font-size: 9px;
}

.recovery-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 9px;
}

.recovery-actions a:last-child {
  color: var(--muted);
}

.centered-form {
  margin-top: 12px;
  text-align: center;
}

.centered-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th {
  padding: 9px 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 13px 12px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}

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

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: var(--surface-soft);
}

td > small,
.table-primary + small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.table-primary {
  color: var(--text);
  font-size: 10px;
  font-weight: 650;
}

a.table-primary:hover {
  color: var(--teal);
}

.row-action {
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
}

td code {
  padding: 2px 4px;
  color: var(--text-soft);
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 8px;
}

.empty-inline {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.action-code {
  color: var(--blue) !important;
}

/* Catalog */
.catalog-toolbar,
.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  width: min(360px, 100%);
}

.search-box svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  min-height: 39px;
  padding-left: 36px;
  background: var(--surface);
}

.search-box.compact {
  width: 260px;
}

.search-box.compact input {
  min-height: 34px;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.segmented-control button {
  padding: 7px 11px;
  color: var(--muted);
  border-radius: 7px;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.segmented-control button:hover {
  color: var(--text);
}

.segmented-control button.is-active {
  color: var(--text);
  background: var(--surface-hover);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

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

.catalog-card {
  display: flex;
  min-height: 315px;
  padding: 22px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.catalog-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.catalog-card[hidden] {
  display: none;
}

.catalog-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 17px;
}

.product-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 20%, transparent);
  border-radius: 13px;
  background: var(--teal-soft);
  font-size: 17px;
  font-weight: 800;
}

.product-amber { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 20%, transparent); background: var(--amber-soft); }
.product-blue { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 20%, transparent); background: var(--blue-soft); }
.product-violet { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 20%, transparent); background: var(--violet-soft); }

.catalog-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.catalog-card > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}

.feature-tags span,
.plugin-caps span {
  padding: 4px 7px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-soft);
  font-size: 8px;
}

.catalog-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
}

.catalog-card-foot > div {
  display: flex;
  flex-direction: column;
}

.catalog-card-foot strong {
  font-size: 15px;
}

.catalog-card-foot small {
  color: var(--muted);
  font-size: 8px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 9px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--teal);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.65fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 24px;
}

.product-hero > div:first-child > .product-icon {
  margin-bottom: 16px;
}

.product-hero h2 {
  margin-top: 0;
}

.product-hero > div > p {
  max-width: 680px;
  font-size: 12px;
}

.product-price-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.product-price-card small,
.product-price-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.product-price-card strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
  letter-spacing: -1px;
}

.product-price-card p {
  margin: 12px 0 0;
  padding-top: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 8px;
}

.configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 0.68fr);
  align-items: start;
  gap: 18px;
}

.step-pill {
  padding: 5px 8px;
  color: var(--teal);
  border-radius: 20px;
  background: var(--teal-soft);
  font-size: 8px;
  font-weight: 700;
}

.config-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.config-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.config-section-head h4 {
  margin: 0;
}

.config-section-head span {
  color: var(--muted);
  font-size: 8px;
}

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

.plan-card {
  position: relative;
  cursor: pointer;
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card span {
  display: flex;
  min-height: 110px;
  padding: 14px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-raised);
  transition: border-color 140ms ease, background 140ms ease;
}

.plan-card input:checked + span {
  border-color: color-mix(in srgb, var(--teal) 55%, transparent);
  background: linear-gradient(145deg, var(--teal-soft), var(--surface-raised));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 16%, transparent);
}

.plan-card input:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.plan-card strong {
  font-size: 12px;
}

.plan-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.plan-card b {
  margin-top: auto;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.plan-card em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 12px 0;
}

.slider-row > div:first-child {
  display: flex;
  flex-direction: column;
}

.slider-row label {
  font-size: 10px;
  font-weight: 650;
}

.slider-row small {
  color: var(--muted);
  font-size: 8px;
}

.range-wrap {
  display: flex;
  min-width: 220px;
  align-items: center;
  gap: 13px;
}

.range-wrap input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--teal);
}

.range-wrap output {
  min-width: 55px;
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.switch-row > span {
  display: flex;
  flex-direction: column;
}

.switch-row strong {
  font-size: 10px;
  font-weight: 650;
}

.switch-row small {
  color: var(--muted);
  font-size: 8px;
}

.switch-row input {
  position: relative;
  width: 34px;
  min-height: 19px;
  height: 19px;
  flex: 0 0 34px;
  margin: 0;
  border: 0;
  border-radius: 20px;
  background: var(--border-strong);
  appearance: none;
  cursor: pointer;
  transition: background 140ms ease;
}

.switch-row input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  content: "";
  transition: transform 140ms ease;
}

.switch-row input:checked {
  background: var(--teal);
}

.switch-row input:checked::after {
  transform: translateX(15px);
}

.switch-row > i {
  display: none;
}

.quote-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

.quote-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.quote-lines > div,
.quote-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.quote-lines span {
  color: var(--muted);
  font-size: 9px;
}

.quote-lines strong {
  font-size: 10px;
  font-weight: 650;
}

.quote-total {
  margin: 16px 0;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.quote-total span {
  font-size: 11px;
  font-weight: 650;
}

.quote-total strong {
  font-size: 22px;
  letter-spacing: -0.6px;
}

.quote-divider {
  height: 1px;
  margin: 15px 0;
  background: var(--border);
}

.muted-lines {
  border: 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(285px, 0.67fr);
  align-items: start;
  gap: 18px;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.order-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.order-details > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.order-details span {
  color: var(--muted);
  font-size: 8px;
}

.order-details strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
}

.payment-options {
  display: flex;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 8px;
  border: 0;
}

.payment-option {
  display: grid;
  grid-template-columns: 42px 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.payment-option:has(input:checked) {
  border-color: color-mix(in srgb, var(--teal) 50%, transparent);
  background: var(--teal-soft);
}

.payment-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.payment-option input {
  position: absolute;
  opacity: 0;
}

.payment-logo {
  display: grid;
  height: 30px;
  place-items: center;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-hover);
  font-size: 7px;
  font-weight: 800;
}

.payment-option > span:nth-child(3) {
  display: flex;
  flex-direction: column;
}

.payment-option strong {
  font-size: 10px;
}

.payment-option small {
  color: var(--muted);
  font-size: 8px;
}

.radio-dot {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.payment-option:has(input:checked) .radio-dot {
  border: 4px solid var(--teal);
  background: var(--surface);
}

.card-save-panel {
  margin-top: 14px;
}

.secure-provider-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  padding: 11px;
  border-radius: 9px;
  background: var(--surface-soft);
}

.secure-provider-note > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  color: var(--success);
  border-radius: 50%;
  background: var(--success-soft);
  font-size: 9px;
}

.secure-provider-note div {
  display: flex;
  flex-direction: column;
}

.secure-provider-note strong {
  font-size: 9px;
}

.secure-provider-note small {
  color: var(--muted);
  font-size: 8px;
}

.checkout-total {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
}

/* Services */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.service-card {
  display: flex;
  min-height: 240px;
  padding: 19px;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.service-card[hidden] {
  display: none;
}

.service-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.service-card h3 {
  margin: 0;
  font-size: 15px;
}

.service-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.service-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-specs > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.service-specs small {
  color: var(--muted);
  font-size: 7px;
}

.service-specs strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}

.card-actions .button {
  flex: 1;
}

.service-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.service-detail-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.service-detail-title h2 {
  margin: 7px 0 3px;
}

.service-detail-title p {
  color: var(--muted);
  font-size: 9px;
}

.compact-stats .stat-card {
  min-height: 130px;
}

.status-text {
  font-size: 24px !important;
}

.mono-value {
  color: var(--text) !important;
  font-size: 10px;
}

.definition-list {
  display: flex;
  flex-direction: column;
}

.definition-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) 1.3fr;
  gap: 20px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.definition-list dt {
  color: var(--muted);
  font-size: 9px;
}

.definition-list dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 9px;
  word-break: break-word;
}

.compact-list > div {
  grid-template-columns: 150px 1fr;
}

.danger-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.danger-panel p {
  margin: 0 0 8px;
}

/* Billing */
.billing-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.billing-card {
  position: relative;
  display: flex;
  min-height: 150px;
  overflow: hidden;
  padding: 20px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.billing-card > span:first-child {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 600;
}

.billing-card > strong {
  margin: 12px 0 3px;
  font-size: 27px;
  letter-spacing: -0.8px;
}

.billing-card small {
  color: var(--muted);
  font-size: 8px;
}

.billing-card .text-link {
  width: fit-content;
  margin-top: auto;
}

.primary-billing {
  color: #effcfa;
  border-color: rgba(56, 215, 189, 0.18);
  background:
    radial-gradient(circle at 90% 10%, rgba(56, 215, 189, 0.28), transparent 38%),
    linear-gradient(145deg, #0d3441, #0a1e31);
}

.primary-billing > span:first-child,
.primary-billing small {
  color: rgba(229, 248, 248, 0.6);
}

.billing-ring {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 6px solid rgba(56, 215, 189, 0.16);
  border-top-color: var(--teal);
  border-radius: 50%;
  transform: rotate(22deg);
}

.billing-ring span {
  color: rgba(232, 250, 248, 0.75);
  font-size: 9px;
  font-weight: 700;
  transform: rotate(-22deg);
}

.tag-stack,
.cidr-list {
  display: flex;
  max-width: 250px;
  flex-wrap: wrap;
  gap: 3px;
}

.tag-stack span {
  padding: 2px 4px;
  color: var(--blue);
  border-radius: 4px;
  background: var(--blue-soft);
  font-size: 7px;
}

.credit-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.82fr);
  gap: 40px;
}

.credit-layout h4 {
  margin-top: 0;
}

.credit-layout p {
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.65;
}

.credit-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  color: var(--success);
  font-size: 9px;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-trust {
  margin-top: 25px;
}

.invoice-lines {
  display: flex;
  margin-top: 14px;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.invoice-lines > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}

.invoice-lines > div > span {
  display: flex;
  flex-direction: column;
}

.invoice-lines small {
  color: var(--muted);
  font-size: 8px;
}

.saved-card {
  display: grid;
  grid-template-columns: 45px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.card-brand {
  display: grid;
  height: 30px;
  place-items: center;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-hover);
  font-size: 7px;
  font-weight: 800;
}

.saved-card > div {
  display: flex;
  flex-direction: column;
}

.saved-card strong {
  font-size: 11px;
}

.saved-card small {
  color: var(--muted);
  font-size: 8px;
}

.hosted-placeholder {
  margin: 20px 0;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 11px;
  background: var(--surface-raised);
}

.hosted-placeholder > span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  text-align: center;
}

.skeleton-line {
  width: 65%;
  height: 9px;
  margin: 7px 0;
  border-radius: 5px;
  background: var(--surface-hover);
}

.skeleton-line.wide {
  width: 100%;
}

.hosted-placeholder .button {
  margin-top: 18px;
}

/* Partner/admin */
.setting-link-list {
  display: flex;
  flex-direction: column;
}

.setting-link-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.setting-link-list a > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  font-size: 10px;
}

.setting-link-list a > div {
  display: flex;
  flex-direction: column;
}

.setting-link-list strong {
  font-size: 10px;
}

.setting-link-list small {
  color: var(--muted);
  font-size: 8px;
}

.setting-link-list b {
  color: var(--muted);
  font-size: 11px;
}

.admin-shield {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--violet);
  border: 1px solid color-mix(in srgb, var(--violet) 22%, transparent);
  border-radius: 8px;
  background: var(--violet-soft);
  font-size: 9px;
  font-weight: 700;
}

.admin-shield svg {
  width: 14px;
  height: 14px;
}

.admin-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 18px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.admin-tabs button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  color: var(--muted);
  border-radius: 8px;
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.admin-tabs button:hover {
  color: var(--text);
}

.admin-tabs button.is-active {
  color: var(--text);
  background: var(--surface-hover);
}

.admin-tabs button span {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  color: var(--teal);
  border-radius: 10px;
  background: var(--teal-soft);
  font-size: 7px;
}

.admin-panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.admin-panel[hidden] {
  display: none;
}

.recovery-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.recovery-case {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case-top small {
  color: var(--muted);
  font-size: 8px;
}

.recovery-case h4 {
  margin: 13px 0 1px;
  font-size: 13px;
}

.recovery-case > p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 8px;
}

.recovery-case dl {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.recovery-case dl > div {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--border);
  font-size: 8px;
}

.recovery-case dt {
  color: var(--muted);
}

.recovery-case dd {
  margin: 0;
  overflow: hidden;
  color: var(--text-soft);
  text-overflow: ellipsis;
}

.case-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
}

.inline-actions {
  display: flex;
  gap: 5px;
}

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

.plugin-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-raised);
}

.plugin-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.plugin-card h4 {
  margin: 0;
  font-size: 12px;
}

.plugin-card > p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.plugin-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 13px 0;
}

.plugin-health {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 8px;
}

.plugin-health strong {
  color: var(--success);
  font-size: 9px;
}

.modal {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  padding: 22px;
  overflow-y: auto;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
}

.modal.modal-wide {
  width: min(680px, calc(100vw - 28px));
}

.modal::backdrop {
  background: rgba(2, 8, 14, 0.7);
  backdrop-filter: blur(7px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-head h3 {
  margin: 4px 0 0;
  font-size: 19px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal .field-stack {
  gap: 15px;
}

.scope-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.scope-fieldset legend {
  margin-bottom: 7px;
}

.scope-fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-raised);
  cursor: pointer;
}

.scope-fieldset input {
  width: 14px;
  min-height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.scope-fieldset span {
  display: flex;
  flex-direction: column;
}

.scope-fieldset strong {
  font-family: monospace;
  font-size: 8px;
}

.scope-fieldset small {
  color: var(--muted);
  font-size: 7px;
}

.secret-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--amber) 25%, transparent);
  border-radius: 10px;
  background: var(--amber-soft);
}

.secret-box code {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  color: var(--amber);
  font-size: 10px;
}

/* Settings */
.settings-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 25px;
}

.settings-nav {
  position: sticky;
  top: calc(var(--topbar-height) + 20px);
  display: flex;
  flex-direction: column;
  padding: 5px;
}

.settings-nav a {
  padding: 9px 11px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 620;
}

.settings-nav a:hover,
.settings-nav a.is-active {
  color: var(--text);
  background: var(--surface-hover);
}

.settings-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.settings-content .panel {
  scroll-margin-top: calc(var(--topbar-height) + 20px);
}

.security-setting-list {
  display: flex;
  flex-direction: column;
}

.security-setting-list > div {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}

.setting-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--teal);
  border-radius: 8px;
  background: var(--teal-soft);
  font-size: 10px;
}

.security-setting-list p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.security-setting-list strong {
  font-size: 10px;
}

.security-setting-list small {
  color: var(--muted);
  font-size: 8px;
}

.security-setting-list a,
.security-setting-list button {
  font-size: 9px;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.member-cell .avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 8px;
}

.member-cell p {
  display: flex;
  margin: 0;
  flex-direction: column;
}

.member-cell strong {
  color: var(--text);
  font-size: 9px;
}

.member-cell small {
  color: var(--muted);
  font-size: 7px;
}

/* API */
.api-warning {
  margin-bottom: 18px;
}

.code-block {
  position: relative;
  margin: 14px 0 0;
  padding: 16px 70px 16px 16px;
  overflow-x: auto;
  color: #b9f2e8;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #06131f;
  font-size: 9px;
  line-height: 1.7;
}

.copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 7px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 8px;
  cursor: pointer;
}

.compact-health {
  margin-top: 5px;
}

/* Audit */
.panel-toolbar {
  margin-bottom: 10px;
}

.panel-toolbar select {
  width: auto;
  min-width: 140px;
  min-height: 35px;
  font-size: 9px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 8px;
}

.pagination > div {
  display: flex;
  gap: 6px;
}

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

/* Responsive */
@media (max-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid,
  .service-card-grid,
  .plugin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-summary {
    grid-template-columns: 1.2fr 1fr;
  }

  .billing-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 1080px) {
  .sidebar {
    width: 226px;
  }

  :root {
    --sidebar-width: 226px;
  }

  .content-grid,
  .content-grid-wide,
  .configurator,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .quote-panel,
  .checkout-total {
    position: static;
  }

  .auth-shell {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .auth-visual {
    padding: 35px;
  }

  .auth-proof {
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .sidebar {
    width: min(290px, 85vw);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.38);
  }

  .workspace {
    width: 100%;
    margin-left: 0;
  }

  .menu-button {
    display: inline-grid;
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 45;
    inset: 0;
    background: rgba(2, 8, 14, 0.64);
    backdrop-filter: blur(3px);
  }

  .account-copy {
    display: none;
  }

  .auth-shell {
    display: block;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 30px 25px 20px;
  }

  .auth-panel::before {
    display: block;
    width: fit-content;
    margin-bottom: 38px;
    color: var(--text);
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -0.5px;
    content: "iWorld Shop";
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
  }

  .settings-nav a {
    white-space: nowrap;
  }

  .recovery-case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 66px;
    padding: 10px 15px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .org-switcher {
    display: none;
  }

  .main-content {
    padding: 22px 15px 18px;
  }

  .hero-row,
  .service-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1;
  }

  .stats-grid,
  .stats-grid.three,
  .catalog-grid,
  .service-card-grid,
  .plugin-grid,
  .billing-summary {
    grid-template-columns: 1fr;
  }

  .billing-card:last-child {
    grid-column: auto;
  }

  .field-grid,
  .order-details,
  .plan-grid,
  .scope-fieldset {
    grid-template-columns: 1fr;
  }

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

  .segmented-control {
    overflow-x: auto;
  }

  .segmented-control button {
    white-space: nowrap;
  }

  .search-box,
  .search-box.compact {
    width: 100%;
  }

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

  .range-wrap {
    width: 100%;
    min-width: 0;
  }

  .credit-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .verification-card {
    grid-template-columns: 32px 1fr;
  }

  .verification-card form {
    grid-column: 2;
  }

  .legal-footer {
    flex-wrap: wrap;
  }

  .footer-status {
    width: 100%;
    margin-left: 0;
  }

  .panel {
    padding: 17px;
  }

  .service-row {
    grid-template-columns: 36px 1fr auto;
  }

  .service-row .badge,
  .service-row .service-meta,
  .service-row .row-arrow {
    display: none;
  }
}

@media (max-width: 430px) {
  .page-heading .eyebrow {
    display: none;
  }

  .page-heading h1 {
    font-size: 18px;
  }

  .topbar-actions .icon-button {
    width: 34px;
    height: 34px;
  }

  .account-chip {
    padding-left: 6px;
    border-left: 0;
  }

  .avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .auth-panel {
    padding-inline: 18px;
  }

  .recovery-list > div {
    grid-template-columns: 27px 1fr;
  }

  .recovery-list > div > :last-child {
    grid-column: 2;
  }

  .saved-card {
    grid-template-columns: 42px 1fr;
  }

  .saved-card > :nth-last-child(-n+2) {
    grid-column: 2;
  }
}

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