:root {
  --ds-ink: #17171c;
  --ds-muted: #676775;
  --ds-soft: #f4f4f7;
  --ds-surface: #ffffff;
  --ds-line: #e4e4eb;
  --ds-purple: #6f42f5;
  --ds-purple-soft: #eee9ff;
  --ds-cyan: #0d91a8;
  --ds-orange: #f05a1a;
  --ds-dark: #111116;
  --ds-radius-lg: 28px;
  --ds-radius-md: 18px;
  --ds-radius-sm: 12px;
  --ds-shadow: 0 20px 60px rgba(31, 25, 55, 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body.ds-page {
  background: #f5f5f7;
  color: var(--ds-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

.ds-page .top-title {
  border-bottom: 1px solid rgba(23, 23, 28, 0.06);
}

.ds-page .float-back-btn {
  min-width: 88px;
  min-height: 44px;
}

.ds-page .skip-link {
  position: fixed;
  z-index: 10001;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ds-dark);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

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

.ds-main {
  padding: 104px 24px 96px;
  overflow: clip;
}

.ds-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ds-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  gap: 32px;
  min-height: 650px;
  padding: 64px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(
      circle at 78% 16%,
      rgba(111, 66, 245, 0.34),
      transparent 31%
    ),
    linear-gradient(145deg, #15141c 0%, #0e0e12 72%);
  box-shadow: 0 34px 90px rgba(20, 17, 36, 0.2);
  color: #fff;
}

.ds-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.ds-kicker,
.ds-section-index,
.ds-card-kicker {
  margin: 0 0 14px;
  color: #9b7fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ds-hero h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(46px, 4.2vw, 66px);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.ds-hero h1 span {
  display: block;
  color: #a88fff;
}

.ds-hero-lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.8;
}

.ds-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ds-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  color: var(--ds-ink) !important;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.ds-link:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 66, 245, 0.45);
}

.ds-link-primary {
  border-color: #8a66ff;
  background: #7b53f8;
  color: #fff !important;
}

.ds-link-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

.ds-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ds-hero-meta dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ds-hero-meta dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.ds-hero-visual {
  position: relative;
  min-height: 510px;
  align-self: center;
}

.ds-hero-art {
  position: absolute;
  inset: 22px 0 22px 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #0c0c10;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  transform: rotate(1.2deg);
}

.ds-hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 10, 0.82));
  content: "";
  pointer-events: none;
}

.ds-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.ds-hero-art figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  left: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.6;
}

.ds-proof-tag {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 6px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(17, 17, 22, 0.72);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.ds-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ds-metric {
  min-height: 134px;
  padding: 22px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
}

.ds-metric strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ds-ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.ds-metric span {
  color: var(--ds-muted);
  font-size: 13px;
  line-height: 1.6;
}

.ds-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 60px;
  margin-top: 72px;
}

.ds-chapters {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px 0;
}

.ds-chapters-label {
  margin-bottom: 12px;
  color: #9a9aa7;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ds-chapters a {
  display: block;
  padding: 8px 0 8px 13px;
  border-left: 2px solid #dedee6;
  color: #858593 !important;
  font-size: 13px;
  font-weight: 600;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.ds-chapters a:hover,
.ds-chapters a.is-active {
  border-left-color: var(--ds-purple);
  color: var(--ds-purple) !important;
}

.ds-section {
  scroll-margin-top: 108px;
  padding: 26px 0 76px;
  border-bottom: 1px solid var(--ds-line);
}

.ds-section + .ds-section {
  padding-top: 76px;
}

.ds-section:last-child {
  border-bottom: 0;
}

.ds-section-index {
  color: var(--ds-purple);
}

.ds-section h2 {
  max-width: 790px;
  margin: 0;
  color: var(--ds-ink);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.ds-section-intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ds-muted);
  font-size: 17px;
  line-height: 1.85;
}

.ds-subtitle {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.ds-problem-grid,
.ds-principle-grid,
.ds-pattern-grid,
.ds-governance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.ds-info-card,
.ds-principle-card,
.ds-governance-card {
  padding: 24px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md);
  background: var(--ds-surface);
}

.ds-info-card b,
.ds-principle-card b,
.ds-governance-card b {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.ds-info-card p,
.ds-principle-card p,
.ds-governance-card p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 14px;
  line-height: 1.75;
}

.ds-evidence {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  margin-top: 24px;
  padding: 30px;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-dark);
  color: #fff;
}

.ds-evidence h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
}

.ds-evidence p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.8;
}

.ds-evidence-list {
  display: grid;
  gap: 10px;
}

.ds-evidence-list div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.ds-evidence-list div:last-child {
  border-bottom: 0;
}

.ds-evidence-list strong {
  color: #fff;
  font-size: 14px;
}

.ds-reference-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  margin-top: 34px;
  align-items: start;
}

.ds-media-card,
.ds-reference-notes,
.ds-theme-lab,
.ds-spec-card,
.ds-pattern-card {
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
}

.ds-media-card img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center;
}

.ds-concept-card .ds-image-button {
  background: #f1ece6;
}

.ds-concept-card img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.ds-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-top: 1px solid var(--ds-line);
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 1.6;
}

.ds-caption strong {
  color: var(--ds-ink);
  white-space: nowrap;
}

.ds-reference-notes {
  padding: 26px;
}

/* Input field component lab — mirrors Untitled UI v3.2 component properties. */
.ds-reference-left {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.ds-input-stage {
  overflow: hidden;
  min-height: 228px;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
}

.ds-input-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ds-line);
}

.ds-input-stage-head span {
  display: block;
  color: var(--ds-purple);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ds-input-stage-head h4 {
  margin: 3px 0 0;
  color: var(--ds-ink);
  font-size: 17px;
  line-height: 1.2;
}

.ds-input-stage-head output {
  padding: 7px 10px;
  border: 1px solid #e3def3;
  border-radius: 999px;
  background: #f7f4ff;
  color: #5e3ec0;
  font:
    700 10px/1.2 Inter,
    "PingFang SC",
    sans-serif;
  white-space: nowrap;
}

.ds-input-stage-canvas {
  display: grid;
  place-items: center;
  min-height: 158px;
  padding: 32px 28px 36px;
  background:
    linear-gradient(rgba(107, 83, 188, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 83, 188, 0.045) 1px, transparent 1px),
    #fbfafd;
  background-size: 18px 18px;
}

.ds-input-inspector {
  overflow: visible;
}

.ds-input-inspector-intro {
  margin: 0;
  color: var(--ds-muted);
  font-size: 13px;
  line-height: 1.75;
}

.ds-input-property-panel {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #e2e2e6;
  border-radius: 12px;
  background: #f7f7f8;
}

.ds-input-property {
  position: relative;
  display: grid;
  grid-template-columns: minmax(116px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #242428;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.ds-input-property:hover {
  border-color: #d9d2ee;
  background: #fdfcff;
}

.ds-input-property:focus-within {
  border-color: #b9a1f0;
  box-shadow: 0 0 0 3px rgba(111, 66, 245, 0.1);
}

.ds-input-property > span {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}

.ds-input-property.is-variant > span > i {
  width: 11px;
  height: 11px;
  border: 1px solid #8d8d94;
  transform: rotate(45deg);
}

.ds-input-property.is-instance > span > i {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid #8d8d94;
  border-radius: 2px;
}

.ds-input-property.is-instance > span > i::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #8d8d94;
  transform: rotate(45deg);
}

.ds-input-property select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 24px 0 8px;
  border: 0;
  border-radius: 6px;
  outline: 0;
  background: #f3f3f5;
  color: #6e6e75;
  font:
    500 12px/1 Inter,
    "PingFang SC",
    sans-serif;
  cursor: pointer;
}

.ds-input-property select option:disabled {
  color: #b3b3bb;
}

.ds-input-property.is-boolean {
  grid-template-columns: 1fr 30px;
}

.ds-input-property.is-boolean input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ds-input-property.is-boolean > i {
  position: relative;
  width: 30px;
  height: 18px;
  justify-self: end;
  border-radius: 999px;
  background: #d0d0d5;
  transition: background 0.18s ease;
}

.ds-input-property.is-boolean > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.22);
  transition: transform 0.18s ease;
}

.ds-input-property.is-boolean input:checked + i {
  background: var(--ds-purple);
}

.ds-input-property.is-boolean input:checked + i::after {
  transform: translateX(12px);
}

.ds-input-contract {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #17171c;
}

.ds-input-contract span {
  color: #a892ff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ds-input-contract code {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-input-inspector .ds-inline-proof {
  width: auto;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  font-size: 11px;
  line-height: 1;
  text-shadow: none;
}

.ds-input-inspector .ds-inline-proof:hover,
.ds-input-inspector .ds-inline-proof:active {
  transform: none;
  border-color: #a997ef;
  background: #f5f2ff;
  box-shadow: none;
  color: #5d3bc5 !important;
  text-shadow: none;
}

.uui-input-field {
  --input-border: #d0d5dd;
  --input-ring: transparent;
  display: grid;
  gap: 6px;
  width: min(100%, 320px);
  color: #101828;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

.uui-input-field[data-type="tags"],
.uui-input-field[data-type="trailing-button"] {
  width: min(100%, 400px);
}

.uui-input-label {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.uui-input-control {
  display: flex;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 0 0 4px var(--input-ring);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.uui-input-field[data-state="focused"] {
  --input-border: #d6bbfb;
  --input-ring: #f4ebff;
}

.uui-input-field[data-destructive="true"] {
  --input-border: #fda29b;
}

.uui-input-field[data-destructive="true"][data-state="focused"] {
  --input-ring: #fee4e2;
}

.uui-input-field[data-state="disabled"] .uui-input-control {
  background: #f9fafb;
}

.uui-input-field[data-state="disabled"] .uui-input-control,
.uui-input-field[data-state="disabled"] .uui-input-control * {
  cursor: not-allowed;
}

.uui-input-main {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 10px 14px;
}

.uui-input-field[data-size="sm"] .uui-input-main {
  padding: 8px 12px;
}

.uui-input-main input {
  flex: 1 1 0;
  min-width: 0;
  height: 24px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101828;
  font:
    400 16px/24px Inter,
    "PingFang SC",
    sans-serif;
}

.uui-input-main input::placeholder {
  color: #667085;
  opacity: 1;
}

.uui-input-main input:disabled {
  color: #667085;
  -webkit-text-fill-color: #667085;
  opacity: 1;
}

.uui-input-icon,
.uui-input-help,
.uui-input-action-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #344054;
}

.uui-input-help {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  outline-offset: 3px;
  background: transparent;
  cursor: help;
}

.uui-input-help svg,
.uui-input-icon svg,
.uui-input-action-icon svg,
.uui-input-help img,
.uui-input-icon img,
.uui-input-action-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.uui-input-addon,
.uui-input-dropdown,
.uui-input-action {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #101828;
  font-size: 16px;
  line-height: 24px;
}

.uui-input-field[data-size="sm"]
  :is(.uui-input-addon, .uui-input-dropdown, .uui-input-action) {
  padding: 8px 12px;
}

.uui-input-dropdown,
.uui-input-action {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.uui-input-dropdown svg {
  width: 20px;
  height: 20px;
}

.uui-input-addon {
  padding-right: 12px;
  color: #475467;
}

.uui-input-field[data-type="leading-text"] .uui-input-main {
  border-left: 1px solid var(--input-border);
}

.uui-input-field[data-type="trailing-button"] .uui-input-action {
  border-left: 1px solid var(--input-border);
  color: #344054;
  font-weight: 600;
}

.uui-payment-icon {
  position: relative;
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  margin-left: -4px;
  border-radius: 4px;
}

.uui-payment-icon img {
  display: block;
  width: 34px;
  height: 24px;
}

.uui-input-prefix {
  flex: 0 0 auto;
  color: #475467;
}

.uui-input-tags {
  display: flex;
  flex: 0 1 auto;
  gap: 6px;
  min-width: 0;
}

.uui-input-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.uui-input-tag i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8d9d3;
  color: #76594e;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.uui-input-tag:nth-child(2) i {
  background: #d6cfb7;
  color: #4f4a34;
}

.uui-input-hint {
  color: #475467;
  font-size: 14px;
  line-height: 20px;
}

.uui-input-field[data-destructive="true"] .uui-input-hint {
  color: #f04438;
}

.uui-input-help-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.uui-input-tooltip {
  position: absolute;
  z-index: 4;
  right: -14px;
  bottom: calc(100% + 10px);
  display: none;
  width: max-content;
  padding: 8px 12px;
  border-radius: 8px;
  background: #101828;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  box-shadow:
    0 12px 8px rgba(16, 24, 40, 0.08),
    0 4px 3px rgba(16, 24, 40, 0.03);
}

.uui-input-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 14px;
  border: 6px solid transparent;
  border-top-color: #101828;
}

.uui-input-help-wrap:hover .uui-input-tooltip,
.uui-input-help:focus-visible + .uui-input-tooltip {
  display: block;
}

.uui-input-field[data-type="tags"] .uui-input-main input {
  min-width: 44px;
}

@media (max-width: 720px) {
  .ds-input-property {
    grid-template-columns: minmax(104px, 0.72fr) minmax(0, 1.28fr);
  }

  .ds-input-stage-canvas {
    place-items: center start;
    overflow-x: auto;
    padding-inline: 20px;
  }

  .uui-input-field[data-type="tags"],
  .uui-input-field[data-type="trailing-button"] {
    min-width: 360px;
  }
}

.ds-pisell-components {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--ds-line);
}

.ds-pisell-component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.ds-pisell-component-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--ds-line);
  border-radius: 18px;
  background: #fff;
}

.ds-pisell-component-wide {
  grid-column: 1 / -1;
}

.ds-pisell-component-card .ds-image-button {
  min-height: 280px;
  padding: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #121218;
  background-size: 28px 28px;
}

.ds-pisell-component-wide .ds-image-button {
  min-height: 330px;
}

.ds-pisell-component-card img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: contain;
  transition:
    transform 540ms var(--motion-ease),
    filter 220ms ease;
}

.ds-pisell-component-wide img {
  height: 330px;
}

.ds-pisell-component-ai .ds-image-button {
  padding: 8px;
  background: #eef0f4;
}

.ds-pisell-component-ai img {
  height: auto;
  aspect-ratio: auto;
  border-radius: 10px;
  background: #fff;
}

.ds-pisell-component-card .ds-image-button:hover img {
  transform: scale(1.018);
}

.ds-pisell-component-card figcaption {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 7px 18px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--ds-line);
}

.ds-pisell-component-card figcaption span {
  grid-row: 1 / span 2;
  color: var(--ds-purple);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-pisell-component-card figcaption strong {
  color: var(--ds-ink);
  font-size: 14px;
}

.ds-pisell-component-card figcaption p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 11px;
  line-height: 1.6;
}

.ds-configuration-evidence {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 0;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--ds-line);
  border-radius: 22px;
  background: #111116;
  color: #fff;
}

.ds-configuration-evidence figure {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      circle at 50% 6%,
      rgba(83, 126, 255, 0.14),
      transparent 30%
    ),
    #0b0b10;
}

.ds-configuration-prototype {
  --prototype-blue: #2877f5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 338px);
  height: 562px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: #f8f9fc;
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(40, 119, 245, 0.12);
  color: #23242a;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ds-configuration-prototype:focus-within {
  border-color: rgba(91, 140, 255, 0.7);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.46),
    0 0 0 3px rgba(40, 119, 245, 0.2);
}

.ds-prototype-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 11px 14px;
  border-bottom: 1px solid #e8eaf0;
  background: rgba(255, 255, 255, 0.96);
}

.ds-prototype-head > div {
  display: grid;
  gap: 1px;
}

.ds-prototype-head span {
  color: #818693;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ds-prototype-head strong {
  font-size: 13px;
  line-height: 1.2;
}

.ds-prototype-reset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #e1e4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 33, 48, 0.04);
  color: #5f6470;
  font: inherit;
  font-size: 9px;
  font-weight: 680;
  cursor: pointer;
}

.ds-prototype-reset:hover {
  border-color: #bfc7d7;
  background: #f7f9fc;
  color: #23242a;
}

.ds-prototype-reset img,
.ds-prototype-add img {
  width: 13px;
  height: 13px;
}

.ds-prototype-scroll {
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #b9c0cd transparent;
  scrollbar-width: thin;
}

.ds-prototype-scroll::-webkit-scrollbar {
  width: 6px;
}

.ds-prototype-scroll::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 999px;
  background: #b9c0cd;
  background-clip: padding-box;
}

.ds-prototype-fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #e5e8ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(34, 44, 66, 0.035);
}

.ds-prototype-fieldset:last-child {
  margin-bottom: 0;
}

.ds-prototype-fieldset legend {
  width: calc(100% + 24px);
  margin: -12px -12px 2px;
  padding: 9px 12px 8px;
  border-bottom: 1px solid #e8eaf0;
  border-radius: 11px 11px 0 0;
  background: #f1f2f5;
  color: #30333a;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.03em;
}

.ds-prototype-control,
.ds-prototype-input-row,
.ds-prototype-number-grid label {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.ds-prototype-control.is-inline {
  grid-template-columns: 82px minmax(0, 1fr);
}

.ds-prototype-label,
.ds-prototype-input-row > span:first-child,
.ds-prototype-number-grid label > span:first-child {
  color: #555a66;
  font-size: 9px;
  font-weight: 590;
  line-height: 1.4;
}

.ds-prototype-segment {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  overflow: hidden;
  border: 1px solid #d5dae3;
  border-radius: 7px;
  background: #fff;
}

.ds-prototype-segment button {
  min-width: 0;
  min-height: 30px;
  padding: 0 6px;
  border: 0;
  border-right: 1px solid #dfe3ea;
  background: transparent;
  box-shadow: none;
  color: #747985;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.ds-prototype-segment button:last-child {
  border-right: 0;
}

.ds-prototype-segment button:hover:not([aria-pressed="true"]) {
  background: #f2f6ff;
  color: #1d56b5;
}

.ds-prototype-segment button[aria-pressed="true"] {
  background: var(--prototype-blue);
  color: #fff;
}

.ds-prototype-segment.is-five button {
  padding: 0 3px;
  font-size: 8px;
}

.ds-prototype-input-shell {
  position: relative;
  display: block;
}

.ds-prototype-input-shell i {
  position: absolute;
  top: 50%;
  right: 9px;
  color: #89909d;
  font-size: 8px;
  font-style: normal;
  transform: translateY(-50%);
  pointer-events: none;
}

.ds-prototype-input-row input,
.ds-prototype-number-grid input,
.ds-prototype-order input {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid #d9dee7;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 33, 48, 0.04);
  color: #353944;
  font: inherit;
  font-size: 9px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.ds-prototype-input-shell input {
  padding-right: 26px;
}

.ds-prototype-input-row input:focus,
.ds-prototype-number-grid input:focus,
.ds-prototype-order input:focus {
  border-color: var(--prototype-blue);
  box-shadow: 0 0 0 3px rgba(40, 119, 245, 0.12);
}

.ds-prototype-switch-list {
  display: grid;
  gap: 2px;
}

.ds-prototype-switch-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 25px;
  color: #555a66;
  font-size: 9px;
  cursor: pointer;
}

.ds-prototype-switch-list label.is-nested {
  padding-left: 18px;
  color: #717681;
}

.ds-prototype-switch-list input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ds-prototype-switch-list i {
  position: relative;
  flex: 0 0 auto;
  width: 27px;
  height: 16px;
  border-radius: 999px;
  background: #cbd1dc;
  box-shadow: inset 0 0 0 1px rgba(61, 69, 85, 0.07);
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.ds-prototype-switch-list i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(22, 27, 38, 0.22);
  content: "";
  transition: transform 0.18s ease;
}

.ds-prototype-switch-list input:checked + i {
  background: #4f82f7;
}

.ds-prototype-switch-list input:checked + i::after {
  transform: translateX(11px);
}

.ds-prototype-switch-list input:focus-visible + i {
  box-shadow:
    inset 0 0 0 1px rgba(61, 69, 85, 0.07),
    0 0 0 3px rgba(40, 119, 245, 0.2);
}

.ds-prototype-number-grid {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #eef0f4;
}

.ds-prototype-helper {
  margin: -2px 0 0;
  color: #8a909d;
  font-size: 8px;
  line-height: 1.5;
}

.ds-prototype-order {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-prototype-order li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px auto;
  gap: 5px;
  align-items: center;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    transform 0.18s ease;
}

.ds-prototype-order li:hover,
.ds-prototype-order li.is-updated {
  border-color: #dce4f4;
  background: #f5f8ff;
}

.ds-prototype-order li.is-updated {
  transform: scale(1.012);
}

.ds-prototype-grip,
.ds-prototype-language,
.ds-prototype-row-actions img {
  display: block;
  width: 13px;
  height: 13px;
}

.ds-prototype-grip {
  color: #858b98;
  cursor: grab;
}

.ds-prototype-language {
  color: #7c8494;
}

.ds-prototype-row-actions {
  display: flex;
  gap: 2px;
}

.ds-prototype-row-actions button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  color: #5e6470;
  cursor: pointer;
}

.ds-prototype-row-actions button:hover:not(:disabled) {
  background: #eaf1ff;
  color: #175fc7;
}

.ds-prototype-row-actions button[data-field-delete]:hover:not(:disabled) {
  background: #fff0f0;
  color: #cf3030;
}

.ds-prototype-row-actions button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.ds-prototype-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 10px;
  border: 1px dashed #cfd5df;
  border-radius: 7px;
  background: #fafbfc;
  box-shadow: none;
  color: #5f6572;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}

.ds-prototype-add:hover {
  border-color: #83a9ef;
  background: #f1f6ff;
  color: #1c62c9;
}

.ds-prototype-status {
  min-height: 34px;
  margin: 0;
  padding: 9px 12px;
  overflow: hidden;
  border-top: 1px solid #e3e7ee;
  background: #eef4ff;
  color: #3e67a7;
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-prototype-status.is-flashing {
  animation: ds-prototype-status-pulse 0.34s ease;
}

@keyframes ds-prototype-status-pulse {
  50% {
    background: #dce9ff;
    color: #164f9f;
  }
}

.ds-configuration-evidence > div {
  padding: 42px;
}

.ds-configuration-evidence h3 {
  max-width: 600px;
  margin: 8px 0 16px;
  color: #fff;
  font-size: clamp(24px, 2.6vw, 39px);
  line-height: 1.12;
}

.ds-configuration-evidence > div > p:not(.ds-card-kicker) {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.75;
}

.ds-configuration-axis {
  margin: 28px 0 0;
}

.ds-configuration-axis div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-configuration-axis dt {
  color: #a88fff;
  font-size: 10px;
  font-weight: 760;
}

.ds-configuration-axis dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.55;
}

.ds-figma-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: #f7f7fa;
}

.ds-figma-source-list span {
  margin-right: 6px;
  color: #81818d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-figma-source-list a {
  padding: 7px 10px;
  border: 1px solid #dddde5;
  border-radius: 999px;
  background: #fff;
  color: #555560;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.ds-figma-source-list a:hover,
.ds-figma-source-list a:focus-visible {
  border-color: #7450e8;
  color: #5e3ad0;
}

.ds-variant-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--ds-line);
}

.ds-variant-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ds-line);
}

.ds-variant-row dt {
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ds-variant-row dd {
  margin: 0;
  color: var(--ds-muted);
  font-size: 13px;
}

.ds-adaptation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.ds-adaptation article {
  padding: 24px;
  border-radius: var(--ds-radius-md);
  background: var(--ds-purple-soft);
}

.ds-adaptation article:last-child {
  background: #e9f7f9;
}

.ds-adaptation h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.ds-adaptation p {
  margin: 0;
  color: #5f5f70;
  font-size: 14px;
  line-height: 1.75;
}

.ds-system-layers {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.ds-system-layer {
  display: grid;
  grid-template-columns: 84px 1fr minmax(180px, 0.7fr);
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: var(--ds-surface);
}

.ds-system-layer:nth-child(2) {
  margin-inline: 16px;
}
.ds-system-layer:nth-child(3) {
  margin-inline: 32px;
}
.ds-system-layer:nth-child(4) {
  margin-inline: 48px;
}
.ds-system-layer:nth-child(5) {
  margin-inline: 64px;
}

.ds-layer-type {
  color: var(--ds-purple);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ds-system-layer strong {
  font-size: 16px;
}

.ds-system-layer span:last-child {
  color: var(--ds-muted);
  font-size: 13px;
}

.ds-feature {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  margin-top: 36px;
  padding: 28px;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-dark);
  color: #fff;
}

.ds-feature-copy {
  align-self: center;
}

.ds-feature-copy h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
}

.ds-feature-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  line-height: 1.8;
}

.ds-feature-rules {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ds-feature-rules li {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-feature-rules b,
.ds-feature-rules span {
  display: block;
}

.ds-feature-rules b {
  color: #fff;
  font-size: 12px;
}

.ds-feature-rules span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.6;
}

.ds-shell-demo {
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: #f7f8fb;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  color: #1e2027;
}

.ds-shell-head {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e7ed;
  background: #fff;
}

.ds-shell-head small {
  color: #858b98;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ds-shell-head h4 {
  margin: 4px 0 0;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.ds-shell-head p {
  margin: 3px 0 0;
  color: #8b909c;
  font-size: 8px;
  line-height: 1.4;
}

.ds-shell-actions {
  display: flex;
  gap: 6px;
}

.ds-shell-actions button,
.ds-shell-pagination button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dfe2e9;
  border-radius: 8px;
  background: #fff;
  color: #555b68;
  font: inherit;
  font-size: 8px;
  font-weight: 700;
}

.ds-shell-actions button.is-primary {
  border-color: #6d4ae1;
  background: #6d4ae1;
  color: #fff;
}

.ds-shell-actions button.is-active {
  border-color: #8b6af0;
  box-shadow: 0 0 0 2px rgba(123, 83, 248, 0.12);
}

.ds-shell-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 9px 12px;
  border-bottom: 1px solid #e5e7ed;
  background: #fbfbfd;
}

.ds-shell-tabs button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #727785;
  font: inherit;
  font-size: 8px;
  font-weight: 760;
  cursor: pointer;
}

.ds-shell-tabs button:hover,
.ds-shell-tabs button[aria-selected="true"] {
  background: #ede8ff;
  color: #5836c3;
}

.ds-shell-body {
  min-height: 300px;
  padding: 14px;
  background: #f3f4f8;
}

.ds-shell-view {
  min-height: 272px;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.ds-shell-body.is-changing .ds-shell-view {
  opacity: 0;
  transform: translateY(5px);
}

.ds-shell-table {
  overflow: hidden;
  border: 1px solid #e1e3e9;
  border-radius: 12px;
  background: #fff;
}

.ds-shell-row {
  display: grid;
  grid-template-columns: 0.72fr 1.2fr 0.86fr 0.8fr 0.68fr;
  gap: 8px;
  align-items: center;
  min-height: 43px;
  padding: 0 12px;
  border-bottom: 1px solid #eceef2;
  color: #4d5260;
  font-size: 8px;
}

.ds-shell-row:last-child {
  border-bottom: 0;
}
.ds-shell-row.is-head {
  min-height: 36px;
  background: #f8f9fb;
  color: #858b98;
  font-weight: 760;
}
.ds-shell-row b {
  color: #22252d;
}

.ds-shell-status {
  width: fit-content;
  padding: 4px 6px;
  border-radius: 999px;
  background: #e7f8ee;
  color: #18744a;
  font-weight: 760;
}

.ds-shell-status.is-waiting {
  background: #fff2d7;
  color: #875b04;
}
.ds-shell-status.is-review {
  background: #ede8ff;
  color: #5b38c9;
}

.ds-shell-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e1e3e9;
  border-radius: 12px;
  background: #fff;
}

.ds-shell-day {
  min-height: 47px;
  padding: 7px;
  border-right: 1px solid #eceef2;
  border-bottom: 1px solid #eceef2;
  color: #858b98;
  font-size: 8px;
}

.ds-shell-day:nth-child(7n) {
  border-right: 0;
}
.ds-shell-day b {
  display: block;
  color: #2a2d35;
  font-size: 9px;
}
.ds-shell-day span {
  display: block;
  margin-top: 7px;
  padding: 4px;
  border-radius: 5px;
  background: #ede8ff;
  color: #5d3ac8;
  line-height: 1.25;
}
.ds-shell-day span.is-green {
  background: #e3f7eb;
  color: #176a44;
}
.ds-shell-day span.is-amber {
  background: #fff0d2;
  color: #7b5406;
}

.ds-shell-timeline {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid #e1e3e9;
  border-radius: 12px;
  background: #fff;
}

.ds-shell-track {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  color: #5a5f6c;
  font-size: 8px;
}

.ds-shell-track > div {
  position: relative;
  height: 28px;
  border-radius: 7px;
  background: repeating-linear-gradient(
    90deg,
    #f1f2f6 0,
    #f1f2f6 calc(25% - 1px),
    #dfe2e9 calc(25% - 1px),
    #dfe2e9 25%
  );
}
.ds-shell-track span {
  position: absolute;
  top: 5px;
  left: var(--start);
  width: var(--width);
  height: 18px;
  border-radius: 5px;
  background: var(--bar, #6d4ae1);
  color: #fff;
  font-size: 7px;
  line-height: 18px;
  text-align: center;
}

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

.ds-shell-column {
  min-height: 260px;
  padding: 10px;
  border: 1px solid #e1e3e9;
  border-radius: 12px;
  background: #eef0f4;
}

.ds-shell-column h5 {
  margin: 0 0 9px;
  color: #555a67;
  font-size: 8px;
}
.ds-shell-ticket {
  margin-top: 7px;
  padding: 9px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 37, 45, 0.06);
}
.ds-shell-ticket b {
  display: block;
  font-size: 8px;
}
.ds-shell-ticket span {
  display: block;
  margin-top: 5px;
  color: #8b909b;
  font-size: 7px;
}

.ds-shell-floor {
  position: relative;
  min-height: 272px;
  overflow: hidden;
  border: 1px solid #dfe2e8;
  border-radius: 12px;
  background:
    linear-gradient(#f3f4f7 1px, transparent 1px),
    linear-gradient(90deg, #f3f4f7 1px, transparent 1px), #fff;
  background-size: 22px 22px;
}

.ds-shell-resource-node {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid var(--node, #8b6af0);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(34, 37, 45, 0.08);
  color: #363946;
  font-size: 8px;
  font-weight: 760;
}
.ds-shell-resource-node::after {
  content: attr(data-status);
  display: block;
  color: #8d929d;
  font-size: 6px;
  font-weight: 600;
}

.ds-shell-resource-list {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
}

.ds-shell-resource-panel {
  min-height: 272px;
  padding: 12px;
  border: 1px solid #e1e3e9;
  border-radius: 12px;
  background: #fff;
}
.ds-shell-resource-panel h5 {
  margin: 0 0 10px;
  font-size: 9px;
}
.ds-shell-resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #eceef2;
  font-size: 8px;
}
.ds-shell-resource-item b {
  color: #262932;
}
.ds-shell-resource-item span {
  color: #848996;
}
.ds-shell-capacity {
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef3;
}
.ds-shell-capacity i {
  display: block;
  width: var(--capacity);
  height: 100%;
  border-radius: inherit;
  background: #7250df;
}

.ds-shell-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid #e2e4ea;
  background: #fff;
  color: #777d89;
  font-size: 8px;
}

.ds-shell-footer > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ds-shell-sync {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ebb78;
  box-shadow: 0 0 0 3px #e0f6e9;
}
.ds-shell-pagination button {
  min-height: 26px;
  padding-inline: 8px;
}
.ds-shell-pagination b {
  color: #353944;
}

.ds-inline-proof {
  appearance: none;
  width: fit-content;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.ds-feature-image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #fff;
}

.ds-feature-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.ds-theme-baseline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ds-chip {
  padding: 8px 11px;
  border: 1px solid #d9d1ff;
  border-radius: 999px;
  background: #f3efff;
  color: #5d39cf;
  font-size: 12px;
  font-weight: 720;
}

.ds-token-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.ds-token-stage {
  padding: 20px;
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  background: var(--ds-surface);
}

.ds-token-stage small {
  display: block;
  margin-bottom: 7px;
  color: var(--ds-purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ds-token-stage b {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.ds-token-stage p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 1.65;
}

.ds-theme-lab {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.5fr);
  min-height: 760px;
  margin-top: 28px;
  border-radius: 22px;
  background: #14151a;
}

.ds-theme-editor {
  padding: 26px 24px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: #17181d;
  color: #fff;
}

.ds-theme-editor-head,
.ds-theme-group-title,
.ds-theme-color,
.ds-theme-color > span,
.ds-theme-range,
.ds-theme-switch,
.ds-theme-variant-row,
.ds-theme-preview-head,
.ds-theme-page-head,
.ds-theme-table-head,
.ds-theme-table-tools,
.ds-theme-app-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ds-theme-editor-head {
  align-items: flex-start;
}

.ds-theme-editor .ds-card-kicker {
  margin-bottom: 5px;
  color: #8ea9ff;
  font-size: 9px;
}

.ds-theme-editor h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.04em;
  line-height: 1.25;
  white-space: nowrap;
}

.ds-theme-sync {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(114, 224, 171, 0.18);
  border-radius: 999px;
  background: rgba(114, 224, 171, 0.08);
  color: #83e3b3;
  font-size: 9px;
  font-weight: 760;
}

.ds-theme-sync i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(131, 227, 179, 0.08);
}

.ds-theme-editor-intro {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.7;
}

.ds-theme-control-group {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.ds-theme-group-title {
  margin-bottom: 12px;
}

.ds-theme-group-title span {
  color: #fff;
  font-size: 11px;
  font-weight: 760;
}

.ds-theme-group-title small {
  color: rgba(255, 255, 255, 0.33);
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ds-theme-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ds-theme-preset {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.ds-theme-preset > i {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 5px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: var(--swatch);
}

.ds-theme-preset span,
.ds-theme-preset b,
.ds-theme-preset small {
  display: block;
}

.ds-theme-preset b {
  color: inherit;
  font-size: 10px;
}

.ds-theme-preset small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 7px;
  line-height: 1.25;
}

.ds-theme-preset:hover,
.ds-theme-preset[aria-pressed="true"] {
  border-color: #8da8ff;
  background: rgba(111, 66, 245, 0.17);
  box-shadow: inset 0 0 0 1px rgba(141, 168, 255, 0.24);
  color: #fff;
  text-shadow: none;
}

.ds-theme-color-grid {
  display: grid;
  gap: 6px;
}

.ds-theme-color-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  margin-top: 7px;
}

.ds-theme-color-scale span {
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lab-primary, #6f42f5) 18%, #fff);
}

.ds-theme-color-scale span:nth-child(2) { background: color-mix(in srgb, var(--lab-primary, #6f42f5) 38%, #fff); }
.ds-theme-color-scale span:nth-child(3) { background: color-mix(in srgb, var(--lab-primary, #6f42f5) 62%, #fff); }
.ds-theme-color-scale span:nth-child(4) { background: color-mix(in srgb, var(--lab-primary, #6f42f5) 82%, #000); }
.ds-theme-color-scale span:nth-child(5) { background: color-mix(in srgb, var(--lab-primary, #6f42f5) 58%, #000); }

.ds-theme-color {
  min-height: 36px;
  margin: 0;
  padding: 5px 7px 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

.ds-theme-color > span:first-child,
.ds-theme-range > span,
.ds-theme-switch > span {
  display: block;
}

.ds-theme-color small,
.ds-theme-range small,
.ds-theme-switch small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 7px;
  font-weight: 580;
}

.ds-theme-color input[type="color"] {
  width: 23px;
  height: 23px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.ds-theme-color output {
  width: 50px;
  color: rgba(255, 255, 255, 0.54);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: right;
}

.ds-theme-range {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 48px;
  min-height: 35px;
}

.ds-theme-range b,
.ds-theme-switch b {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 9px;
  font-weight: 660;
}

.ds-theme-range input[type="range"] {
  width: 100%;
  height: 3px;
  accent-color: #8b6cff;
  cursor: pointer;
}

.ds-theme-range output {
  color: rgba(255, 255, 255, 0.52);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: right;
}

.ds-token-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 5px 78px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 7px;
}

.ds-token-scale div {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.ds-token-scale i {
  display: grid;
  min-width: 21px;
  min-height: 14px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.42);
  font-style: normal;
  font-size: 6px;
}

.ds-token-scale i:nth-child(2) { min-height: 17px; }
.ds-token-scale i:nth-child(3) { min-height: 20px; }
.ds-token-scale i:nth-child(4) { min-height: 23px; }

.ds-theme-switch {
  position: relative;
  min-height: 34px;
}

.ds-theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ds-theme-switch > i {
  position: relative;
  width: 30px;
  height: 17px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.2s ease;
}

.ds-theme-switch > i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.2s ease;
}

.ds-theme-switch input:checked + i {
  border-color: #8062e8;
  background: #6f42f5;
}

.ds-theme-switch input:checked + i::after {
  transform: translateX(13px);
}

.ds-theme-segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.ds-theme-segment button {
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.46);
  font-size: 8px;
  font-weight: 700;
}

.ds-theme-segment button:hover,
.ds-theme-segment button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: #fff;
  text-shadow: none;
}

.ds-theme-variant-row {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 8px;
}

.ds-theme-segment.is-small {
  display: flex;
  padding: 2px;
}

.ds-theme-segment.is-small button {
  min-width: 30px;
  min-height: 24px;
  padding: 0 7px;
}

.ds-theme-reset {
  width: 100%;
  min-height: 34px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 680;
}

.ds-theme-reset:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: #fff;
  text-shadow: none;
}

.ds-theme-preview {
  --tp-primary: #6f42f5;
  --tp-canvas: #f4f3f8;
  --tp-surface: #ffffff;
  --tp-text: #181820;
  --tp-muted: #747483;
  --tp-line: #e4e2eb;
  --tp-radius: 14px;
  --tp-space: 8px;
  --tp-font: 14px;
  --tp-shadow: 0 12px 30px rgba(29, 22, 54, 0.1);
  min-width: 0;
  padding: 20px;
  background: #ecebf1;
  color: var(--tp-text);
  font-size: var(--tp-font);
}

.ds-theme-preview,
.ds-theme-preview * {
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    border-radius 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease,
    gap 0.22s ease,
    padding 0.22s ease;
}

.ds-theme-preview-head {
  min-height: 36px;
  margin-bottom: 11px;
}

.ds-theme-preview-head div span,
.ds-theme-preview-head div b {
  display: block;
}

.ds-theme-preview-head div span {
  color: #73727d;
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ds-theme-preview-head div b {
  margin-top: 2px;
  color: #292833;
  font-size: 12px;
}

.ds-preview-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: #dcf7e7;
  color: #187645;
  font-size: 8px;
  font-weight: 760;
}

.ds-theme-app {
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: calc(var(--tp-radius) + 3px);
  background: var(--tp-canvas);
  box-shadow: var(--tp-shadow);
}

.ds-theme-app button,
.ds-theme-app input {
  font: inherit;
}

.ds-theme-appbar {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: max-content minmax(120px, 1fr) max-content;
  align-items: center;
  gap: calc(var(--tp-space) * 1.5);
  width: auto;
  height: auto;
  min-height: calc(var(--tp-space) * 7);
  padding: calc(var(--tp-space) * 1.25) calc(var(--tp-space) * 1.75);
  border-bottom: 1px solid var(--tp-line);
  background: var(--tp-surface);
  backdrop-filter: none;
  transform: none;
}

.ds-theme-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tp-text);
  text-decoration: none;
}

.ds-theme-brand i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: calc(var(--tp-radius) * 0.55);
  background: var(--tp-primary);
  color: #fff;
  font-style: normal;
  font-weight: 820;
}

.ds-theme-brand span {
  font-size: 10px;
  font-weight: 780;
}

.ds-theme-app-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: min(280px, 100%);
  min-height: 30px;
  margin-inline: auto;
  padding: 0 9px;
  border: 1px solid var(--tp-line);
  border-radius: calc(var(--tp-radius) * 0.62);
  background: color-mix(in srgb, var(--tp-canvas) 74%, var(--tp-surface));
  color: var(--tp-muted);
  font-size: 8px;
}

.ds-theme-app-search kbd {
  padding: 2px 5px;
  border: 1px solid var(--tp-line);
  border-radius: 4px;
  background: var(--tp-surface);
  color: var(--tp-muted);
  font-size: 7px;
}

.ds-theme-app-actions > button {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--tp-line);
  border-radius: calc(var(--tp-radius) * 0.6);
  background: var(--tp-surface);
  box-shadow: none;
  color: var(--tp-primary);
  font-size: 8px;
  font-weight: 800;
}

.ds-theme-mini-avatar,
.ds-theme-profile-avatar {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tp-primary) 16%, var(--tp-surface));
  color: var(--tp-primary);
  font-weight: 800;
}

.ds-theme-mini-avatar {
  width: 28px;
  height: 28px;
}

.ds-theme-mini-avatar img,
.ds-theme-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-theme-mini-avatar i,
.ds-theme-profile-avatar i {
  display: none;
  font-style: normal;
}

.ds-theme-workspace {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 600px;
}

.ds-theme-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(var(--tp-space) * 2);
  padding: calc(var(--tp-space) * 1.5);
  border-right: 1px solid var(--tp-line);
  background: var(--tp-surface);
}

.ds-theme-sidebar nav {
  display: grid;
  gap: calc(var(--tp-space) * 0.45);
}

.ds-theme-sidebar nav button {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: calc(27px + var(--tp-space) * 0.4);
  padding: 0 calc(var(--tp-space) * 0.8);
  border: 1px solid transparent;
  border-radius: calc(var(--tp-radius) * 0.65);
  background: transparent;
  box-shadow: none;
  color: var(--tp-muted);
  font-size: 8px;
  text-align: left;
}

.ds-theme-sidebar nav button b {
  color: color-mix(in srgb, var(--tp-muted) 72%, transparent);
  font-size: 7px;
}

.ds-theme-sidebar nav button small {
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tp-primary) 13%, var(--tp-surface));
  color: var(--tp-primary);
  font-size: 6px;
}

.ds-theme-sidebar nav button:hover,
.ds-theme-sidebar nav button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--tp-primary) 18%, transparent);
  background: color-mix(in srgb, var(--tp-primary) 10%, var(--tp-surface));
  box-shadow: none;
  color: var(--tp-primary);
  text-shadow: none;
}

.ds-theme-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--tp-space) * 0.8);
  padding: calc(var(--tp-space) * 0.8);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: color-mix(in srgb, var(--tp-canvas) 55%, var(--tp-surface));
}

.ds-theme-profile-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.ds-theme-profile > div {
  min-width: 0;
  flex: 1;
}

.ds-theme-profile strong,
.ds-theme-profile small,
.ds-theme-profile em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-theme-profile strong {
  color: var(--tp-text);
  font-size: 8px;
}

.ds-theme-profile small,
.ds-theme-profile em {
  color: var(--tp-muted);
  font-size: 6px;
  font-style: normal;
}

.ds-theme-profile em {
  margin-top: 2px;
}

.ds-theme-profile > button {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tp-muted);
  font-size: 9px;
}

.ds-theme-preview[data-avatar-layout="vertical"] .ds-theme-profile {
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.ds-theme-preview[data-avatar-layout="vertical"] .ds-theme-profile > button {
  position: absolute;
  top: calc(var(--tp-space) * 0.7);
  right: calc(var(--tp-space) * 0.7);
}

.ds-theme-preview[data-avatar-size="sm"] .ds-theme-profile-avatar { width: 26px; height: 26px; }
.ds-theme-preview[data-avatar-size="lg"] .ds-theme-profile-avatar { width: 46px; height: 46px; }

.ds-theme-preview[data-avatar-type="initials"] .ds-theme-mini-avatar img,
.ds-theme-preview[data-avatar-type="initials"] .ds-theme-profile-avatar img {
  display: none;
}

.ds-theme-preview[data-avatar-type="initials"] .ds-theme-mini-avatar i,
.ds-theme-preview[data-avatar-type="initials"] .ds-theme-profile-avatar i {
  display: block;
}

.ds-theme-preview[data-profile-border="false"] .ds-theme-profile {
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
}

.ds-theme-dashboard {
  min-width: 0;
  padding: calc(var(--tp-space) * 2);
}

.ds-theme-page-head {
  align-items: flex-end;
  margin-bottom: calc(var(--tp-space) * 1.5);
}

.ds-theme-page-head span,
.ds-theme-page-head p {
  color: var(--tp-muted);
  font-size: 7px;
}

.ds-theme-page-head h4 {
  margin: 2px 0 1px;
  color: var(--tp-text);
  font-size: calc(var(--tp-font) * 1.25);
  line-height: 1.2;
}

.ds-theme-page-head p {
  margin: 0;
}

.ds-theme-page-head > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: calc(var(--tp-space) * 0.6);
}

.ds-theme-button {
  flex: 0 0 auto;
  min-height: calc(25px + var(--tp-space) * 0.45);
  padding: 0 calc(var(--tp-space) * 1.1);
  border: 1px solid var(--tp-line);
  border-radius: calc(var(--tp-radius) * 0.7);
  background: var(--tp-surface);
  box-shadow: none;
  color: var(--tp-text);
  font-size: 7px;
  font-weight: 720;
  white-space: nowrap;
}

.ds-theme-button.is-primary {
  border-color: var(--tp-primary);
  background: var(--tp-primary);
  color: #fff;
}

.ds-theme-button:hover,
.ds-theme-button:active {
  box-shadow: none;
  filter: brightness(0.97);
  text-shadow: none;
}

.ds-theme-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tp-space);
  margin-bottom: calc(var(--tp-space) * 1.25);
}

.ds-theme-metrics article {
  position: relative;
  min-width: 0;
  padding: calc(var(--tp-space) * 1.2);
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-surface);
  box-shadow: var(--tp-shadow);
}

.ds-theme-metrics span,
.ds-theme-metrics strong,
.ds-theme-metrics small {
  position: relative;
  z-index: 1;
  display: block;
}

.ds-theme-metrics span {
  color: var(--tp-muted);
  font-size: 7px;
}

.ds-theme-metrics strong {
  margin: 4px 0 2px;
  color: var(--tp-text);
  font-size: calc(var(--tp-font) * 1.25);
}

.ds-theme-metrics small {
  color: var(--tp-muted);
  font-size: 6px;
}

.ds-theme-metrics small.is-positive {
  color: #178957;
}

.ds-theme-metrics article > i {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--metric);
  height: 3px;
  background: var(--tp-primary);
  opacity: 0.72;
}

.ds-theme-table-card {
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  background: var(--tp-surface);
  box-shadow: var(--tp-shadow);
}

.ds-theme-table-head {
  padding: calc(var(--tp-space) * 1.2);
  border-bottom: 1px solid var(--tp-line);
}

.ds-theme-table-head h5 {
  margin: 0;
  color: var(--tp-text);
  font-size: 9px;
}

.ds-theme-table-head span {
  display: block;
  margin-top: 2px;
  color: var(--tp-muted);
  font-size: 6px;
}

.ds-theme-view-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: calc(var(--tp-radius) * 0.58);
  background: var(--tp-canvas);
}

.ds-theme-view-tabs button,
.ds-theme-table-tools > button {
  min-height: 23px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: calc(var(--tp-radius) * 0.45);
  background: transparent;
  box-shadow: none;
  color: var(--tp-muted);
  font-size: 6px;
}

.ds-theme-view-tabs button:hover,
.ds-theme-view-tabs button[aria-pressed="true"],
.ds-theme-table-tools > button:hover,
.ds-theme-table-tools > button[aria-pressed="true"] {
  border-color: var(--tp-line);
  background: var(--tp-surface);
  box-shadow: none;
  color: var(--tp-primary);
  text-shadow: none;
}

.ds-theme-table-tools {
  justify-content: flex-start;
  padding: calc(var(--tp-space) * 0.8) calc(var(--tp-space) * 1.2);
  border-bottom: 1px solid var(--tp-line);
}

.ds-theme-table-tools label {
  position: relative;
  display: flex;
  min-width: 130px;
  min-height: 25px;
  align-items: center;
  flex: 1;
  padding: 0 8px;
  border: 1px solid var(--tp-line);
  border-radius: calc(var(--tp-radius) * 0.48);
  background: var(--tp-canvas);
  color: var(--tp-muted);
  font-size: 6px;
}

.ds-theme-table-tools input {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--tp-text);
  outline: 0;
  opacity: 0;
}

.ds-theme-table-tools label:focus-within {
  border-color: var(--tp-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tp-primary) 12%, transparent);
}

.ds-theme-table-tools label:focus-within span {
  opacity: 0;
}

.ds-theme-table-tools label:focus-within input {
  padding: 0 8px;
  opacity: 1;
}

.ds-theme-table {
  overflow-x: auto;
}

.ds-theme-tr {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.8fr 0.9fr 0.7fr;
  align-items: center;
  min-width: 460px;
  min-height: calc(33px + var(--tp-space));
  padding: 0 calc(var(--tp-space) * 1.2);
  border-bottom: 1px solid var(--tp-line);
  color: var(--tp-text);
  font-size: 7px;
}

.ds-theme-tr:last-child {
  border-bottom: 0;
}

.ds-theme-tr.is-head {
  min-height: 30px;
  background: color-mix(in srgb, var(--tp-canvas) 70%, var(--tp-surface));
  color: var(--tp-muted);
  font-size: 6px;
  font-weight: 760;
}

.ds-theme-tr > span:last-child {
  text-align: right;
}

.ds-theme-tr b,
.ds-theme-tr small {
  display: block;
}

.ds-theme-tr small {
  margin-top: 2px;
  color: var(--tp-muted);
  font-size: 6px;
}

.ds-theme-tr em,
.ds-theme-tr mark {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 5px;
  border-radius: calc(var(--tp-radius) * 0.42);
  background: color-mix(in srgb, var(--tp-primary) 10%, var(--tp-surface));
  color: var(--tp-primary);
  font-style: normal;
  font-size: 6px;
}

.ds-theme-tr mark.is-success {
  background: #def7e9;
  color: #17764a;
}

.ds-theme-tr mark.is-warning {
  background: #fff2d8;
  color: #9a5a00;
}

.ds-theme-preview[data-wireframe="true"] .ds-theme-app,
.ds-theme-preview[data-wireframe="true"] .ds-theme-metrics article,
.ds-theme-preview[data-wireframe="true"] .ds-theme-table-card {
  box-shadow: none;
}

.ds-theme-preview[data-wireframe="true"] .ds-theme-metrics article,
.ds-theme-preview[data-wireframe="true"] .ds-theme-table-card,
.ds-theme-preview[data-wireframe="true"] .ds-theme-profile,
.ds-theme-preview[data-wireframe="true"] .ds-theme-button,
.ds-theme-preview[data-wireframe="true"] .ds-theme-sidebar nav button[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--tp-text) 45%, var(--tp-line));
  background: transparent;
}

.ds-theme-preview[data-wireframe="true"] .ds-theme-button.is-primary {
  border-color: var(--tp-primary);
  background: color-mix(in srgb, var(--tp-primary) 6%, transparent);
  color: var(--tp-primary);
}

.ds-spec-template {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.ds-spec-card {
  padding: 20px;
  border-radius: 16px;
}

.ds-spec-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--ds-purple);
  font-size: 11px;
  font-weight: 800;
}

.ds-spec-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.ds-spec-card p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 1.7;
}

.ds-documentation-system {
  margin-top: 28px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0, rgba(123, 83, 248, 0.3), transparent 34%),
    linear-gradient(145deg, #15151c 0%, #101016 72%);
  box-shadow: 0 24px 66px rgba(20, 17, 36, 0.16);
  color: #fff;
}

.ds-documentation-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.ds-documentation-head h3 {
  max-width: 660px;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.ds-documentation-head > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ds-documentation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.ds-document-track {
  min-height: 238px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.ds-document-track.is-whitepaper {
  border-color: rgba(168, 143, 255, 0.38);
  background: linear-gradient(
    135deg,
    rgba(123, 83, 248, 0.25),
    rgba(255, 255, 255, 0.045)
  );
}

.ds-document-track > span {
  color: #a88fff;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ds-document-track h4 {
  margin: 14px 0 9px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ds-document-track p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.75;
}

.ds-document-track ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ds-document-track li {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  font-weight: 680;
}

.ds-document-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.ds-document-chain span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ds-document-chain i {
  color: #8f6cff;
  font-size: 13px;
  font-style: normal;
}

.ds-documentation-project {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 24px;
  min-height: 380px;
  margin-top: 18px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: 22px;
  background: linear-gradient(135deg, #f8f6f1 0%, #eee9df 100%);
  color: var(--ds-ink);
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ds-documentation-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(38, 31, 62, 0.14);
}

.ds-documentation-project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.ds-documentation-project-copy h3 {
  margin: 7px 0 16px;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.ds-documentation-project-copy p:not(.ds-card-kicker) {
  margin: 0;
  color: var(--ds-muted);
  font-size: 13px;
  line-height: 1.8;
}

.ds-documentation-project-copy > span {
  margin-top: 32px;
  color: var(--ds-blue);
  font-size: 12px;
  font-weight: 760;
}

.ds-documentation-project-visual {
  position: relative;
  min-height: 320px;
  perspective: 1200px;
}

.ds-documentation-project-visual img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 0.707;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(20, 20, 24, 0.16);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(36, 31, 48, 0.18);
}

.ds-documentation-project-visual img:nth-child(1) {
  transform: translate(-110%, -48%) rotate(-7deg);
  opacity: 0.68;
}
.ds-documentation-project-visual img:nth-child(2) {
  transform: translate(-37%, -52%) rotate(6deg);
  opacity: 0.84;
}
.ds-documentation-project-visual img:nth-child(3) {
  transform: translate(-73%, -50%) rotate(-1deg);
}

.ds-documentation-project-visual.is-publication-suite {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 42px);
  background: #121318;
}

.ds-documentation-project-visual.is-publication-suite img,
.ds-documentation-project-visual.is-publication-suite img:nth-child(1) {
  position: static;
  width: 100%;
  max-width: 780px;
  height: auto;
  aspect-ratio: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  opacity: 1;
  transform: none;
}

.ds-doc-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.ds-doc-page {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  background: #fff;
}

.ds-doc-page img {
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: top;
}

.ds-doc-page figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--ds-line);
  color: var(--ds-muted);
  font-size: 11px;
}

.ds-doc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--ds-purple-soft);
}

.ds-doc-summary strong {
  font-size: 15px;
}

.ds-doc-summary span {
  color: #605b72;
  font-size: 13px;
}

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

.ds-doc-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 16px;
  margin-top: 28px;
}

.ds-doc-art,
.ds-pattern-visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--ds-line);
  border-radius: 20px;
  background: #111117;
  box-shadow: 0 18px 46px rgba(20, 17, 36, 0.12);
}

.ds-doc-art img,
.ds-pattern-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.ds-pattern-visual {
  margin-top: 30px;
}

.ds-pattern-visual img {
  aspect-ratio: auto;
}

.ds-art-note {
  display: block;
  margin: 0;
  padding: 12px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #15151b;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.ds-feature-image .ds-art-note {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.ds-doc-proof {
  padding: 26px;
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(123, 83, 248, 0.24),
      transparent 42%
    ),
    #17161d;
  color: #fff;
}

.ds-doc-proof h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.ds-doc-proof > p:not(.ds-card-kicker) {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.7;
}

.ds-proof-list {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.ds-proof-link,
.ds-evidence-link {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.ds-proof-link {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 12px;
  font-weight: 720;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.ds-proof-link:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 143, 255, 0.5);
  background: rgba(123, 83, 248, 0.14);
}

.ds-proof-link:focus-visible,
.ds-evidence-link:focus-visible {
  outline: 3px solid rgba(155, 127, 255, 0.72);
  outline-offset: 3px;
}

.ds-proof-link span {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  white-space: nowrap;
}

.ds-pattern-grid-text {
  margin-top: 14px;
}

.ds-pattern-card {
  margin: 0;
}

.ds-pattern-grid-text .ds-pattern-card {
  position: relative;
  min-height: 260px;
  border-top: 3px solid rgba(123, 83, 248, 0.72);
}

.ds-pattern-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  object-position: top left;
  background: #f7f7f9;
}

.ds-pattern-card.is-mobile img {
  object-fit: contain;
  background: #15151b;
}

.ds-pattern-body {
  padding: 22px;
}

.ds-pattern-grid-text .ds-pattern-body {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.ds-pattern-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.ds-pattern-body p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 13px;
  line-height: 1.75;
}

.ds-pattern-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.ds-pattern-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1eff8;
  color: #625b74;
  font-size: 10px;
  font-weight: 700;
}

.ds-evidence-link {
  align-self: flex-start;
  margin-top: auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(123, 83, 248, 0.28);
  border-radius: 999px;
  background: #f6f3ff;
  color: #5c36cf;
  font-size: 11px;
  font-weight: 760;
}

.ds-evidence-link:hover {
  border-color: rgba(123, 83, 248, 0.58);
  background: #eee8ff;
  color: #4f28d7;
}

.ds-governance-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 34px;
}

.ds-governance-step {
  min-height: 126px;
  padding: 18px 14px;
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  background: var(--ds-surface);
}

.ds-governance-step span {
  display: block;
  margin-bottom: 16px;
  color: var(--ds-purple);
  font-size: 11px;
  font-weight: 800;
}

.ds-governance-step b {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.ds-governance-step p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 11px;
  line-height: 1.55;
}

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

.ds-next {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--ds-radius-lg);
  background: #ece8f9;
}

.ds-next h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.ds-next-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
}

.ds-next-list div {
  padding-top: 12px;
  border-top: 1px solid rgba(111, 66, 245, 0.18);
}

.ds-next-list b {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.ds-next-list p {
  margin: 0;
  color: #656070;
  font-size: 12px;
  line-height: 1.65;
}

.ds-outcome {
  padding: 42px;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-dark);
  color: #fff;
}

.ds-outcome h2 {
  color: #fff;
}

.ds-outcome .ds-section-intro {
  color: rgba(255, 255, 255, 0.66);
}

.ds-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.ds-outcome-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.ds-outcome-card strong {
  display: block;
  margin-bottom: 7px;
  color: #a88fff;
  font-size: 17px;
  line-height: 1.35;
}

.ds-outcome-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.ds-final-quote {
  margin: 30px 0 0;
  padding-left: 20px;
  border-left: 3px solid #8f6cff;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.ds-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ds-image-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}

.ds-image-button:hover,
.ds-image-button:active {
  box-shadow: none;
  text-shadow: none;
}

.ds-lightbox {
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #111116;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.48);
}

.ds-lightbox::backdrop {
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(8px);
}

.ds-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ds-lightbox-caption {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.ds-lightbox-close {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  color: #fff;
  font-size: 18px;
}

.ds-lightbox-close:hover,
.ds-lightbox-close:active {
  box-shadow: none;
  text-shadow: none;
}

.ds-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

@media (max-width: 1040px) {
  .ds-hero {
    grid-template-columns: 1fr;
    padding: 50px;
  }

  .ds-hero-visual {
    min-height: 480px;
  }

  .ds-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ds-chapters {
    position: sticky;
    z-index: 20;
    top: 72px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 10px 0;
    background: rgba(245, 245, 247, 0.92);
    backdrop-filter: blur(16px);
  }

  .ds-chapters-label {
    display: none;
  }

  .ds-chapters a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-left: 0;
    border-bottom: 2px solid #dedee6;
  }

  .ds-chapters a:hover,
  .ds-chapters a.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--ds-purple);
  }

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

  .ds-theme-lab {
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  }

  .ds-theme-workspace {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .ds-theme-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .ds-page .top-title {
    height: 64px;
    padding: 0 18px;
  }

  .ds-page .top-title nav {
    display: none;
  }

  .ds-page .top-title .logo img {
    height: 38px;
  }

  .ds-page .top-title .you a {
    padding: 9px 16px;
    font-size: 13px;
  }

  .ds-main {
    padding: 80px 14px 64px;
  }

  .ds-hero {
    min-height: 0;
    padding: 34px 24px 26px;
    border-radius: 24px;
  }

  .ds-hero h1 {
    font-size: 43px;
  }

  .ds-hero-lead {
    font-size: 15px;
  }

  .ds-hero-meta {
    grid-template-columns: 1fr;
  }

  .ds-hero-visual {
    min-height: 390px;
  }

  .ds-hero-art {
    inset: 14px 0;
    transform: none;
  }

  .ds-proof-tag {
    right: 0;
  }

  .ds-metrics,
  .ds-problem-grid,
  .ds-principle-grid,
  .ds-reference-grid,
  .ds-adaptation,
  .ds-feature,
  .ds-theme-lab,
  .ds-doc-showcase,
  .ds-documentation-project,
  .ds-pattern-grid,
  .ds-governance-grid,
  .ds-next-list,
  .ds-outcome-grid {
    grid-template-columns: 1fr;
  }

  .ds-token-flow,
  .ds-spec-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-documentation-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ds-documentation-grid {
    grid-template-columns: 1fr;
  }

  .ds-documentation-project-visual {
    min-height: 360px;
  }

  .ds-evidence {
    grid-template-columns: 1fr;
  }

  .ds-system-layer,
  .ds-system-layer:nth-child(n) {
    grid-template-columns: 70px 1fr;
    margin-inline: 0;
  }

  .ds-system-layer span:last-child {
    grid-column: 2;
  }

  .ds-feature-image {
    order: -1;
  }

  .ds-shell-demo {
    order: -1;
  }

  .ds-doc-gallery {
    grid-template-columns: 1fr;
  }

  .ds-doc-page img {
    aspect-ratio: 1.15;
  }

  .ds-doc-summary {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ds-theme-lab {
    min-height: 0;
  }

  .ds-theme-editor {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

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

  .ds-theme-workspace {
    grid-template-columns: 130px minmax(0, 1fr);
    min-height: 560px;
  }

  .ds-outcome {
    padding: 30px 24px;
  }
}

@media (max-width: 480px) {
  .ds-hero h1 {
    font-size: 36px;
  }

  .ds-hero-actions,
  .ds-final-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ds-link {
    width: 100%;
  }

  .ds-hero-visual {
    min-height: 310px;
  }

  .ds-hero-art figcaption {
    right: 16px;
    bottom: 14px;
    left: 16px;
    font-size: 9px;
  }

  .ds-token-flow,
  .ds-spec-template,
  .ds-governance-flow {
    grid-template-columns: 1fr;
  }

  .ds-theme-editor,
  .ds-theme-preview {
    padding: 18px;
  }

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

  .ds-theme-workspace {
    display: block;
    min-height: 0;
  }

  .ds-theme-sidebar {
    display: block;
    padding: calc(var(--tp-space) * 1.1);
    border-right: 0;
    border-bottom: 1px solid var(--tp-line);
  }

  .ds-theme-sidebar nav {
    display: flex;
    overflow-x: auto;
  }

  .ds-theme-sidebar nav button {
    min-width: max-content;
  }

  .ds-theme-profile {
    margin-top: var(--tp-space);
  }

  .ds-theme-appbar {
    grid-template-columns: 1fr auto;
  }

  .ds-theme-app-search {
    display: none;
  }

  .ds-theme-page-head,
  .ds-theme-table-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ds-theme-table-tools {
    flex-wrap: wrap;
  }

  .ds-documentation-system {
    padding: 22px;
  }

  .ds-document-chain {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .ds-document-chain i {
    transform: rotate(90deg);
  }

  .ds-section {
    padding-bottom: 58px;
  }

  .ds-section + .ds-section {
    padding-top: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Atomic evidence, composed products and configuration studio. */
.ds-atom-heading,
.ds-configurator-head,
.ds-composition-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 38px;
}

.ds-atom-heading h3,
.ds-configurator-head h3,
.ds-composition-head h3 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.ds-atom-heading > p,
.ds-configurator-head > p {
  max-width: 360px;
  margin: 0;
  color: var(--ds-muted);
  font-size: 12px;
  line-height: 1.75;
}

.ds-atom-atlas {
  --spot-x: 76%;
  --spot-y: 18%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(6, 76px);
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at var(--spot-x) var(--spot-y),
      rgba(113, 75, 244, 0.22),
      transparent 25%
    ),
    #111216;
  box-shadow: 0 24px 70px rgba(20, 17, 36, 0.16);
}

.ds-atom-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: #f7f7fa;
}

.ds-atom-card .ds-image-button {
  height: calc(100% - 44px);
}
.ds-atom-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.ds-atom-card-inputs {
  grid-column: 1 / 9;
  grid-row: 1 / 4;
}
.ds-atom-card-inputs img {
  object-position: 0 0;
}
.ds-atom-card-buttons {
  grid-column: 9 / 11;
  grid-row: 1 / 5;
}
.ds-atom-card-buttons img {
  object-position: top center;
}
.ds-atom-card-badges {
  grid-column: 11 / 13;
  grid-row: 1 / 4;
}
.ds-atom-card-badges img {
  object-position: top center;
}
.ds-atom-card-tooltip {
  grid-column: 1 / 3;
  grid-row: 4 / 7;
}
.ds-atom-card-tooltip img {
  object-position: top center;
}
.ds-atom-card-verification {
  grid-column: 3 / 9;
  grid-row: 4 / 6;
}
.ds-atom-card-editor {
  grid-column: 3 / 9;
  grid-row: 6 / 7;
}
.ds-atom-card-verification img,
.ds-atom-card-editor img {
  object-fit: contain;
  object-position: center;
}

.ds-atom-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  border-top: 1px solid #e5e5eb;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.ds-atom-card figcaption b {
  color: #202026;
  font-size: 10px;
}
.ds-atom-card figcaption span {
  color: #8a8a96;
  font-size: 8px;
  text-align: right;
}

.ds-atom-legend {
  grid-column: 9 / 13;
  grid-row: 5 / 7;
  display: grid;
  grid-template-columns: 26px 80px 1fr;
  align-content: center;
  gap: 9px 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.ds-atom-legend span {
  color: #9b7fff;
  font-size: 9px;
  font-weight: 800;
}
.ds-atom-legend b {
  color: #fff;
  font-size: 10px;
}
.ds-atom-legend p {
  margin: 0;
  color: rgba(255, 255, 255, 0.47);
  font-size: 9px;
  line-height: 1.45;
}

.ds-composition-lab {
  margin-top: 34px;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 8%, rgba(111, 66, 245, 0.3), transparent 28%),
    #111216;
  color: #fff;
  box-shadow: 0 24px 70px rgba(20, 17, 36, 0.15);
}

.ds-composition-lab .ds-composition-head {
  margin-top: 0;
}
.ds-composition-lab .ds-card-kicker {
  margin-bottom: 8px;
}
.ds-composition-lab h3 {
  color: #fff;
}

.ds-composition-tabs,
.ds-configurator-tabs,
.ds-config-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ds-composition-tabs button,
.ds-configurator-tabs button,
.ds-config-segment button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-size: 10px;
  font-weight: 720;
}

.ds-composition-tabs button:hover,
.ds-composition-tabs button[aria-selected="true"] {
  border-color: #987bff;
  background: #7852ed;
  color: #fff;
}

.ds-composition-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  gap: 14px;
  margin-top: 22px;
}

.ds-composition-stage figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #08090b;
}

.ds-composition-stage figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #08090b;
  transition:
    opacity 220ms ease,
    transform 620ms var(--motion-ease);
}

.ds-composition-stage figure.is-changing img {
  opacity: 0.24;
  transform: scale(0.985);
}

.ds-composition-stage figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-composition-stage figcaption strong {
  color: #fff;
  font-size: 12px;
}
.ds-composition-stage figcaption span {
  color: rgba(255, 255, 255, 0.43);
  font-size: 9px;
}

.ds-composition-stage > aside {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.ds-composition-context {
  margin: 0 0 12px;
  color: #a88fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.ds-composition-stage h4 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.3;
}
.ds-composition-stage dl {
  margin: 24px 0 0;
}
.ds-composition-stage dl div {
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ds-composition-stage dt {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.ds-composition-stage dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
}
.ds-composition-stage aside > p:last-child {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.43);
  font-size: 10px;
  line-height: 1.7;
}

.ds-configurator {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--ds-line);
  border-radius: 24px;
  background: #ececf1;
}

.ds-configurator-head {
  margin-top: 0;
}
.ds-configurator-tabs {
  margin-top: 24px;
}
.ds-configurator-tabs button {
  border-color: #d6d6df;
  background: #fff;
  color: #777783;
}
.ds-configurator-tabs button:hover,
.ds-configurator-tabs button[aria-selected="true"] {
  border-color: #7550e8;
  background: #15151b;
  color: #fff;
}

.ds-configurator-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 205px;
  gap: 10px;
  margin-top: 12px;
}

.ds-config-panel,
.ds-config-properties,
.ds-config-preview {
  border: 1px solid #d9d9e1;
  border-radius: 15px;
  background: #fff;
}

.ds-config-panel,
.ds-config-properties {
  padding: 18px;
}

.ds-config-field + .ds-config-field {
  margin-top: 20px;
}
.ds-config-field > label,
.ds-config-field > span,
.ds-config-contract > span {
  display: block;
  margin-bottom: 8px;
  color: #8b8b97;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ds-config-field select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dddde4;
  border-radius: 8px;
  background: #fafafd;
  color: #2b2b31;
  font: inherit;
  font-size: 11px;
}

.ds-config-segment {
  gap: 4px;
}
.ds-config-segment button {
  flex: 1;
  min-height: 32px;
  padding: 0 7px;
  border-color: #dddde4;
  background: #fafafd;
  color: #74747f;
  border-radius: 7px;
}
.ds-config-segment button[aria-pressed="true"] {
  border-color: #7450e9;
  background: #ebe5ff;
  color: #5a36cc;
}

.ds-config-switch {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #eeeef2;
  background: transparent;
  box-shadow: none;
  color: #484850;
  font: inherit;
  font-size: 10px;
  text-align: left;
}

.ds-config-switch i {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #d7d7df;
  transition: background 180ms ease;
}
.ds-config-switch i::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 180ms ease;
}
.ds-config-switch[aria-pressed="true"] i {
  background: #7250e7;
}
.ds-config-switch[aria-pressed="true"] i::after {
  transform: translateX(12px);
}

.ds-config-contract {
  margin-top: 24px;
  padding: 12px;
  border-radius: 8px;
  background: #17171d;
}
.ds-config-contract code {
  color: #baabff;
  font-size: 8px;
  line-height: 1.55;
  white-space: normal;
}

.ds-config-preview {
  overflow: hidden;
  margin: 0;
  background: #f8f8fb;
  transition:
    background 220ms ease,
    padding 220ms ease;
}
.ds-config-preview[data-config-theme-mode="dark"] {
  background: #111217;
}
.ds-config-preview[data-config-density-mode="compact"] .ds-config-image-wrap {
  padding: 10px;
}
.ds-config-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #dddde4;
  color: #8c8c98;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.ds-config-preview[data-config-theme-mode="dark"] .ds-config-preview-bar {
  border-color: rgba(255, 255, 255, 0.1);
}
.ds-config-live {
  padding: 4px 6px;
  border-radius: 999px;
  background: #e5f7ec;
  color: #197246;
  font-size: 7px;
}
.ds-config-image-wrap {
  position: relative;
  padding: 18px;
  transition: padding 220ms ease;
}
.ds-config-render {
  display: grid;
  min-height: 350px;
  padding: 18px;
  place-items: center;
  color: #171a2c;
  transition:
    color 220ms ease,
    padding 220ms ease;
}
.ds-config-preview[data-config-density-mode="compact"] .ds-config-render {
  min-height: 300px;
  padding: 16px;
}
.ds-config-preview[data-config-theme-mode="dark"] .ds-config-render {
  color: #f7f7fb;
}
.ds-config-preview.is-changing .cfg-component-stage {
  opacity: 0.2;
  transform: translateY(3px) scale(0.985);
}
.ds-config-state {
  position: absolute;
  right: 26px;
  bottom: 26px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(19, 19, 23, 0.8);
  color: #fff;
  font-size: 7px;
  backdrop-filter: blur(9px);
}
.ds-config-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 14px;
  border-top: 1px solid #dddde4;
}
.ds-config-preview[data-config-theme-mode="dark"] figcaption {
  border-color: rgba(255, 255, 255, 0.1);
}
.ds-config-preview figcaption strong {
  color: #25252b;
  font-size: 11px;
}
.ds-config-preview[data-config-theme-mode="dark"] figcaption strong {
  color: #fff;
}
.ds-config-preview figcaption span {
  color: #888894;
  font-size: 8px;
  text-align: right;
}

.ds-config-properties-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eeeef2;
}
.ds-config-properties-title span {
  color: #2d2d33;
  font-size: 12px;
  font-weight: 760;
}
.ds-config-properties-title b {
  color: #805de8;
  font-size: 8px;
}
.ds-config-properties dl {
  margin: 0;
}
.ds-config-properties dl div {
  padding: 9px 0;
  border-bottom: 1px solid #eeeef2;
}
.ds-config-properties dt {
  color: #8f8f99;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ds-config-properties dd {
  margin: 3px 0 0;
  color: #3d3d44;
  font-size: 9px;
  line-height: 1.45;
}
.ds-config-doc {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  border: 1px solid #7450e8;
  border-radius: 8px;
  background: #7450e8;
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 720;
}

/* Live component instances inside the configuration studio. */
.cfg-component-stage {
  --cfg-accent: #6d4cf4;
  --cfg-accent-soft: #eee9ff;
  --cfg-border: #dedee8;
  --cfg-canvas: #f4f3f8;
  --cfg-muted: #717386;
  --cfg-panel: #fff;
  --cfg-success: #198754;
  --cfg-warning: #e17b18;
  width: min(100%, 460px);
  font-size: 11px;
  transition:
    opacity 160ms ease,
    transform 220ms ease;
}
.ds-config-preview[data-config-theme-mode="dark"] .cfg-component-stage {
  --cfg-accent: #9176ff;
  --cfg-accent-soft: #2e2747;
  --cfg-border: #3a3b47;
  --cfg-canvas: #1b1c23;
  --cfg-muted: #a7a8b7;
  --cfg-panel: #24252e;
  --cfg-success: #62d49a;
  --cfg-warning: #ffb05e;
}
.cfg-component-stage button,
.cfg-component-stage input,
.cfg-component-stage select {
  font: inherit;
}
.cfg-component-stage button {
  cursor: pointer;
}
.cfg-component-stage button:disabled,
.cfg-component-stage input:disabled,
.cfg-component-stage select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.cfg-component-stage h5,
.cfg-component-stage p {
  margin: 0;
}
.cfg-component-stage h5 {
  color: inherit;
  font-size: 15px;
  line-height: 1.25;
}

.cfg-product-card,
.cfg-sku-card,
.cfg-filter-card,
.cfg-keypad,
.cfg-floor-map {
  overflow: hidden;
  border: 1px solid var(--cfg-border);
  border-radius: 16px;
  background: var(--cfg-panel);
  box-shadow: 0 14px 35px rgba(30, 25, 57, 0.11);
}
.cfg-product-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
}
.cfg-product-card[data-variant="compact"] .cfg-product-main {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 14px;
}
.cfg-product-media,
.cfg-sku-media {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 11px;
  object-fit: cover;
}
.cfg-product-copy {
  min-width: 0;
}
.cfg-component-label,
.cfg-filter-head span,
.cfg-floor-head span,
.cfg-keypad-display span,
.cfg-sku-topline > span {
  color: var(--cfg-muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.cfg-product-copy h5,
.cfg-sku-copy h5 {
  margin-top: 5px;
}
.cfg-product-copy > p,
.cfg-sku-option,
.cfg-sku-description {
  margin-top: 5px;
  color: var(--cfg-muted);
  font-size: 9px;
  line-height: 1.45;
}
.cfg-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.cfg-product-meta span,
.cfg-helper,
.cfg-promo,
.cfg-rating {
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--cfg-accent-soft);
  color: var(--cfg-accent);
  font-size: 8px;
  font-weight: 700;
}
.cfg-helper {
  margin-top: 9px;
  color: var(--cfg-muted);
  font-weight: 550;
}
.cfg-product-price {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: inherit;
  font-weight: 800;
  white-space: nowrap;
}
.cfg-product-price small {
  color: var(--cfg-muted);
  font-size: 7px;
  font-weight: 500;
}
.cfg-product-actions {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid var(--cfg-border);
}
.cfg-product-status {
  margin-right: auto;
  color: var(--cfg-success);
  font-size: 9px;
  font-weight: 700;
}
.cfg-quantity {
  display: inline-grid;
  grid-template-columns: 26px 28px 26px;
  align-items: center;
  margin-right: auto;
  overflow: hidden;
  border: 1px solid var(--cfg-border);
  border-radius: 8px;
  text-align: center;
}
.cfg-quantity button,
.cfg-text-action,
.cfg-icon-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: none;
  background-image: none;
  background-blend-mode: normal;
  box-shadow: none;
  color: inherit;
  line-height: 1;
  text-shadow: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}
.cfg-quantity button {
  padding: 0;
  border: 0;
  border-radius: 0;
}
.cfg-text-action {
  border-color: var(--cfg-border);
  background-color: var(--cfg-canvas);
}
.cfg-icon-action {
  border-color: var(--cfg-border);
  color: var(--cfg-muted);
}
.cfg-quantity button:hover:not(:disabled),
.cfg-text-action:hover:not(:disabled) {
  background: var(--cfg-accent-soft);
  box-shadow: none;
  color: var(--cfg-accent);
  text-shadow: none;
}
.cfg-icon-action:hover:not(:disabled) {
  border-color: #f5b7b1;
  background: #fff1f0;
  box-shadow: none;
  color: #c43228;
  text-shadow: none;
}
.cfg-quantity button:active:not(:disabled),
.cfg-text-action:active:not(:disabled),
.cfg-icon-action:active:not(:disabled) {
  box-shadow: none;
  transform: translateY(1px);
  text-shadow: none;
}
.cfg-quantity button:focus-visible,
.cfg-text-action:focus-visible,
.cfg-icon-action:focus-visible {
  outline: 2px solid var(--cfg-accent) !important;
  outline-offset: 2px !important;
  box-shadow: none;
  text-shadow: none;
}
.cfg-icon-action {
  gap: 5px;
}
.cfg-icon-action img {
  width: 12px;
  height: 12px;
}
.ds-config-preview[data-config-theme-mode="dark"] .cfg-icon-action img {
  filter: invert(1);
}
.ds-config-preview[data-config-theme-mode="dark"] .cfg-text-action {
  background-color: #2b2c35;
}
.ds-config-preview[data-config-theme-mode="dark"] .cfg-icon-action:hover:not(:disabled) {
  border-color: #7a3d45;
  background: #38252a;
  color: #fda29b;
}
.ds-config-preview[data-config-theme-mode="dark"] .cfg-icon-action:hover:not(:disabled) img {
  filter: invert(73%) sepia(17%) saturate(1099%) hue-rotate(314deg)
    brightness(108%) contrast(99%);
}

.cfg-sku-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  width: min(100%, 390px);
}
.cfg-sku-card[data-level="1"] {
  grid-template-columns: 1fr;
}
.cfg-sku-card[data-paused="true"] .cfg-sku-media {
  filter: grayscale(0.9) brightness(0.7);
}
.cfg-sku-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
}
.cfg-sku-topline,
.cfg-sku-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cfg-badge {
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 7px;
  text-transform: uppercase;
}
.cfg-badge.is-live {
  background: #e4f8ec;
  color: #187347;
}
.cfg-badge.is-paused {
  background: #ececef;
  color: #696a73;
}
.cfg-rating,
.cfg-promo {
  width: fit-content;
  margin-top: 8px;
}
.cfg-promo {
  background: #fff1dd;
  color: #a35a0b;
}
.cfg-sku-footer {
  margin-top: auto;
  padding-top: 16px;
}
.cfg-sku-footer div {
  display: grid;
  gap: 2px;
}
.cfg-sku-footer del {
  color: var(--cfg-muted);
  font-size: 8px;
}
.cfg-sku-footer strong {
  font-size: 14px;
}
.cfg-sku-footer button,
.cfg-filter-actions button,
.cfg-keypad-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--cfg-border);
  border-radius: 8px;
  background: var(--cfg-panel);
  color: inherit;
  font-weight: 700;
}
.cfg-sku-footer button,
.cfg-filter-actions button:last-child,
.cfg-keypad-actions .is-primary {
  border-color: var(--cfg-accent);
  background: var(--cfg-accent);
  color: #fff;
}

.cfg-filter-card {
  width: min(100%, 440px);
  padding: 18px;
}
.cfg-filter-head,
.cfg-floor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cfg-filter-head h5,
.cfg-floor-head h5 {
  margin-top: 4px;
}
.cfg-filter-head > b {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--cfg-accent-soft);
  color: var(--cfg-accent);
  font-size: 8px;
}
.cfg-filter-builder {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.45fr;
  gap: 8px;
  margin-top: 18px;
  min-width: 0;
  padding: 0;
  border: 0;
}
.cfg-filter-builder:disabled {
  opacity: 0.55;
}
.cfg-filter-builder label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--cfg-muted);
  font-size: 7px;
  font-weight: 700;
}
.cfg-filter-builder select,
.cfg-filter-builder input,
.cfg-token-input,
.cfg-control-slot {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid var(--cfg-border);
  border-radius: 8px;
  background: var(--cfg-canvas);
  color: inherit;
}
.cfg-filter-builder select,
.cfg-filter-builder input {
  padding: 0 8px;
}
.cfg-control-slot {
  display: flex;
  align-items: center;
  border: 0;
}
.cfg-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.cfg-range span {
  color: var(--cfg-muted);
  font-size: 7px;
}
.cfg-token-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}
.cfg-token-input span {
  padding: 4px 5px;
  border-radius: 5px;
  background: var(--cfg-accent-soft);
  color: var(--cfg-accent);
  font-size: 7px;
}
.cfg-filter-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--cfg-accent-soft);
  color: var(--cfg-muted);
  font-size: 8px;
}
.cfg-filter-result b {
  color: var(--cfg-accent);
}
.cfg-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.cfg-keypad {
  width: min(100%, 280px);
  padding: 14px;
}
.cfg-keypad-display {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--cfg-border);
  border-radius: 10px;
  background: var(--cfg-canvas);
}
.cfg-keypad-display[data-error="true"] {
  border-color: #e44c58;
}
.cfg-keypad-display strong {
  font-size: 21px;
}
.cfg-keypad-helper {
  margin-top: 7px !important;
  color: var(--cfg-muted);
  font-size: 8px;
}
.cfg-keypad-helper[data-error="true"] {
  color: #e23d49;
}
.cfg-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 11px;
}
.cfg-keypad-grid button {
  min-height: 40px;
  border: 1px solid var(--cfg-border);
  border-radius: 8px;
  background: var(--cfg-canvas);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}
.cfg-keypad-grid button:hover {
  border-color: var(--cfg-accent);
  background: var(--cfg-accent-soft);
  color: var(--cfg-accent);
}
.cfg-keypad-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.cfg-keypad-actions .is-primary {
  flex: 1;
}

.cfg-floor-map {
  width: min(100%, 430px);
  padding: 15px;
}
.cfg-map-controls {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--cfg-border);
  border-radius: 8px;
}
.cfg-map-controls button,
.cfg-map-controls b {
  display: grid;
  min-width: 29px;
  min-height: 28px;
  place-items: center;
  border: 0;
  background: var(--cfg-canvas);
  color: inherit;
}
.cfg-map-controls b {
  min-width: 42px;
  border-inline: 1px solid var(--cfg-border);
  font-size: 8px;
}
.cfg-floor-canvas {
  position: relative;
  min-height: 230px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--cfg-border);
  background: var(--cfg-canvas);
}
.cfg-resource {
  position: absolute;
  display: grid;
  width: 96px;
  min-height: 56px;
  place-items: center;
  border: 2px solid #62bd8c;
  border-radius: 12px;
  background: var(--cfg-panel);
  color: inherit;
  box-shadow: 0 6px 18px rgba(25, 30, 55, 0.08);
  transform: scale(var(--cfg-map-scale, 1));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}
.cfg-resource small {
  color: var(--cfg-success);
  font-size: 7px;
}
.cfg-resource[data-status="reserved"] {
  border-color: #f1a656;
  background: #fff7ed;
}
.ds-config-preview[data-config-theme-mode="dark"]
  .cfg-resource[data-status="reserved"] {
  background: #3a2b1d;
}
.cfg-resource[data-status="reserved"] small {
  color: var(--cfg-warning);
}
.cfg-resource[data-status="selected"] {
  border-color: var(--cfg-accent);
  background: var(--cfg-accent-soft);
}
.cfg-resource[data-status="selected"] small {
  color: var(--cfg-accent);
}
.cfg-resource:nth-child(1) {
  top: 28px;
  left: 24px;
}
.cfg-resource:nth-child(2) {
  top: 28px;
  right: 24px;
}
.cfg-resource:nth-child(3) {
  bottom: 28px;
  left: 24px;
}
.cfg-resource:nth-child(4) {
  right: 24px;
  bottom: 28px;
}
.cfg-floor-map[data-layout="z-layout"] .cfg-resource:nth-child(2) {
  top: 68px;
  right: 152px;
}
.cfg-floor-map[data-layout="z-layout"] .cfg-resource:nth-child(3) {
  bottom: 68px;
  left: 152px;
}
.cfg-floor-map[data-layout="irregular"] .cfg-resource:nth-child(1) {
  top: 16px;
  left: 42px;
  width: 112px;
}
.cfg-floor-map[data-layout="irregular"] .cfg-resource:nth-child(2) {
  top: 42px;
  right: 30px;
  width: 70px;
  border-radius: 50%;
}
.cfg-floor-map[data-layout="irregular"] .cfg-resource:nth-child(3) {
  bottom: 25px;
  left: 18px;
  width: 72px;
  min-height: 72px;
  border-radius: 50%;
}
.cfg-floor-map[data-layout="irregular"] .cfg-resource:nth-child(4) {
  right: 42px;
  bottom: 18px;
  width: 125px;
}
.cfg-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 11px;
  color: var(--cfg-muted);
  font-size: 8px;
}
.cfg-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cfg-map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62bd8c;
}
.cfg-map-legend i[data-status="reserved"] {
  background: #f1a656;
}
.cfg-map-legend i[data-status="selected"] {
  background: var(--cfg-accent);
}

.ds-config-preview[data-config-density-mode="compact"] .cfg-component-stage {
  font-size: 10px;
  transform: scale(0.94);
}
.ds-config-preview[data-config-density-mode="compact"] .cfg-product-main,
.ds-config-preview[data-config-density-mode="compact"] .cfg-sku-copy,
.ds-config-preview[data-config-density-mode="compact"] .cfg-filter-card,
.ds-config-preview[data-config-density-mode="compact"] .cfg-keypad,
.ds-config-preview[data-config-density-mode="compact"] .cfg-floor-map {
  padding: 10px;
}
.ds-config-preview[data-config-density-mode="compact"] .cfg-floor-canvas {
  min-height: 205px;
}

@media (max-width: 1040px) {
  .ds-configurator-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .ds-config-properties {
    grid-column: 1 / -1;
  }
  .ds-config-properties dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 16px;
  }
}

@media (max-width: 780px) {
  .ds-atom-heading,
  .ds-configurator-head,
  .ds-composition-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .ds-atom-atlas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .ds-atom-card,
  .ds-atom-card-inputs,
  .ds-atom-card-buttons,
  .ds-atom-card-badges,
  .ds-atom-card-tooltip,
  .ds-atom-card-verification,
  .ds-atom-card-editor {
    grid-column: auto;
    grid-row: auto;
    min-height: 190px;
  }
  .ds-atom-card-inputs,
  .ds-atom-card-verification,
  .ds-atom-card-editor {
    grid-column: 1 / -1;
  }
  .ds-atom-legend {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .ds-composition-stage {
    grid-template-columns: 1fr;
  }
  .ds-configurator {
    padding: 20px 14px;
  }
  .ds-configurator-shell {
    grid-template-columns: 1fr;
  }
  .ds-config-render {
    min-height: 320px;
    padding: 18px;
  }
  .ds-config-properties {
    grid-column: auto;
  }
  .ds-config-properties dl {
    grid-template-columns: 1fr;
  }
  .ds-pisell-component-grid {
    grid-template-columns: 1fr;
  }
  .ds-pisell-component-wide {
    grid-column: auto;
  }
  .ds-configuration-evidence {
    grid-template-columns: 1fr;
  }
  .ds-configuration-evidence figure {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .ds-configuration-prototype {
    width: min(100%, 390px);
    height: 580px;
  }
  .ds-configuration-evidence > div {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .ds-atom-atlas {
    grid-template-columns: 1fr;
  }
  .ds-atom-card,
  .ds-atom-card-inputs,
  .ds-atom-card-buttons,
  .ds-atom-card-badges,
  .ds-atom-card-tooltip,
  .ds-atom-card-verification,
  .ds-atom-card-editor {
    grid-column: auto;
    min-height: 210px;
  }
  .ds-atom-legend {
    grid-column: auto;
  }
  .ds-composition-tabs,
  .ds-configurator-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .ds-composition-tabs button,
  .ds-configurator-tabs button {
    min-height: 44px;
  }
  .ds-config-segment button {
    min-height: 40px;
  }
  .ds-config-switch {
    min-height: 44px;
  }
  .ds-configurator-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ds-configurator-tabs button:last-child {
    grid-column: 1 / -1;
  }
  .ds-config-render {
    min-height: 300px;
    padding: 12px;
  }
  .cfg-product-main {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .cfg-product-price {
    grid-column: 2;
    justify-items: start;
  }
  .cfg-sku-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .cfg-filter-builder {
    grid-template-columns: 1fr 1fr;
  }
  .cfg-filter-value {
    grid-column: 1 / -1;
  }
  .cfg-resource {
    width: 78px;
  }
  .cfg-floor-map[data-layout="z-layout"] .cfg-resource:nth-child(2) {
    right: 95px;
  }
  .cfg-floor-map[data-layout="z-layout"] .cfg-resource:nth-child(3) {
    left: 95px;
  }
  .ds-pisell-component-card .ds-image-button,
  .ds-pisell-component-wide .ds-image-button {
    min-height: 230px;
    padding: 10px;
  }
  .ds-pisell-component-card img,
  .ds-pisell-component-wide img {
    height: 230px;
  }
  .ds-pisell-component-ai img {
    height: auto;
  }
  .ds-pisell-component-card figcaption {
    grid-template-columns: 1fr;
  }
  .ds-pisell-component-card figcaption span {
    grid-row: auto;
  }
  .ds-configuration-evidence figure {
    padding: 14px;
  }
  .ds-configuration-prototype {
    height: 548px;
  }
  .ds-prototype-scroll {
    padding: 10px;
  }
  .ds-prototype-fieldset {
    padding: 10px;
  }
  .ds-prototype-fieldset legend {
    width: calc(100% + 20px);
    margin: -10px -10px 2px;
  }
  .ds-prototype-row-actions button {
    width: 25px;
    min-height: 30px;
  }
  .ds-configuration-evidence > div {
    padding: 24px 18px;
  }
  .ds-configuration-axis div {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .ds-config-render {
    min-height: 250px;
  }

  .ds-shell-head,
  .ds-shell-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ds-shell-actions,
  .ds-shell-pagination {
    width: 100%;
  }

  .ds-shell-actions button,
  .ds-shell-pagination button {
    min-height: 40px;
    flex: 1;
  }

  .ds-shell-tabs button {
    min-height: 40px;
  }

  .ds-shell-row {
    grid-template-columns: 0.8fr 1.1fr 0.8fr;
  }

  .ds-shell-row > :nth-child(3),
  .ds-shell-row > :nth-child(4) {
    display: none;
  }

  .ds-shell-calendar {
    min-width: 540px;
  }

  .ds-shell-body[data-view="calendar"] {
    overflow-x: auto;
  }

  .ds-shell-kanban,
  .ds-shell-resource-list {
    grid-template-columns: 1fr;
  }

  .ds-shell-column,
  .ds-shell-resource-panel {
    min-height: auto;
  }
}
