:root {
  /* Palette showcase tokens */
  --ds-palette-card-border: #e2e8f0;
  --ds-palette-card-radius: var(--ds-radius-lg);
  --ds-palette-card-padding: var(--ds-space-4);
  --ds-palette-card-bg: var(--ds-color-white);
  --ds-palette-swatch-height: 58px;
  --ds-palette-swatch-radius: var(--ds-radius-control);
  --ds-palette-swatch-border: color-mix(in srgb, var(--ds-color-navy) 8%, transparent);
  --ds-palette-swatch-gap: var(--ds-space-3);
  --ds-palette-hex-row-margin-top: var(--ds-space-2);
  --ds-palette-hex-row-gap: var(--ds-space-2);
  --ds-palette-hex-code-size: var(--ds-font-size-btn);
  --ds-palette-hex-code-weight: var(--ds-font-weight-regular);
  --ds-palette-hex-code-color: var(--ds-text-strong);
  --ds-palette-hex-code-letter-spacing: 0.015em;
  --ds-palette-copy-btn-border: var(--ds-border-control);
  --ds-palette-copy-btn-bg: var(--ds-color-white);
  --ds-palette-copy-btn-fg: var(--ds-text-secondary);
  --ds-palette-copy-btn-radius: var(--ds-radius-sm);
  --ds-palette-copy-btn-size: var(--ds-space-6);
  --ds-palette-copy-btn-hover-border: var(--ds-border-control-hover);
  --ds-palette-copy-btn-hover-fg: var(--ds-color-navy);
  --ds-palette-copy-btn-hover-bg: var(--ds-surface-subtle);
  --ds-palette-copy-icon-size: var(--ds-space-3);
  --ds-palette-copy-btn-motion: 0.16s ease;

  /* Typography showcase tokens */
  --ds-typography-card-bg: var(--ds-color-white);
  --ds-typography-card-border: var(--ds-border-subtle);
  --ds-typography-card-divider: #f3f4f6;
  --ds-typography-card-radius: var(--ds-radius-lg);
  --ds-typography-card-padding: 28px;
  --ds-typography-grid-gap: 28px;
  --ds-typography-card-gap: 24px;
  --ds-typography-row-gap: 20px;
  --ds-typography-row-padding-bottom: var(--ds-space-4);
  --ds-typography-label-margin-bottom: var(--ds-space-2);
  --ds-typography-kicker-size: var(--ds-typography-scale-12);
  --ds-typography-kicker-weight: var(--ds-font-weight-bold);
  --ds-typography-kicker-color: var(--ds-border-control-hover);
  --ds-typography-kicker-tracking: 0.16em;
  --ds-typography-rule-text-size: var(--ds-typography-scale-14);
  --ds-typography-rule-text-color: var(--ds-text-quaternary);
  --ds-typography-body-large-color: var(--ds-text-secondary);
  --ds-typography-body-color: var(--ds-color-navy);
  --ds-typography-display-color: var(--ds-color-navy);
  --ds-typography-size-display-compact: var(--ds-typography-scale-36);
  --ds-typography-size-display: var(--ds-typography-scale-48);
  --ds-typography-size-h2: var(--ds-typography-scale-24);
  --ds-typography-size-body-large: var(--ds-typography-scale-18);
  --ds-typography-size-body: var(--ds-typography-scale-16);
  --ds-typography-size-meta: var(--ds-typography-scale-12);
  --ds-typography-size-label: var(--ds-typography-scale-11);
  --ds-typography-tracking-tight: -0.025em;

  /* Spacing showcase tokens */
  --ds-spacing-showcase-grid-gap: 10px;
  --ds-spacing-showcase-item-label-width: 128px;
  --ds-spacing-showcase-item-gap: var(--ds-space-3);
  --ds-spacing-showcase-item-code-color: #4e5876;
  --ds-spacing-showcase-item-code-size: var(--ds-size-pill-sm-font-size);
  --ds-spacing-showcase-bar-height: var(--ds-font-size-btn);
  --ds-spacing-showcase-bar-radius: var(--ds-radius-pill);
  --ds-spacing-showcase-bar-fill-start: var(--ds-color-navy);
  --ds-spacing-showcase-bar-fill-end: #1f3677;
  --ds-spacing-showcase-usage-table-min-width: 0;
  --ds-spacing-showcase-bar-space-1: var(--ds-space-1);
  --ds-spacing-showcase-bar-space-2: var(--ds-space-2);
  --ds-spacing-showcase-bar-space-3: var(--ds-space-3);
  --ds-spacing-showcase-bar-space-4: var(--ds-space-4);
  --ds-spacing-showcase-bar-space-6: var(--ds-space-6);
  --ds-spacing-showcase-bar-space-8: var(--ds-space-8);
  --ds-spacing-showcase-bar-space-12: var(--ds-space-12);
  --ds-spacing-showcase-bar-space-16: var(--ds-space-16);
  --ds-spacing-showcase-bar-space-20: var(--ds-space-20);
}
      :root {
        color-scheme: light;
      }

      body {
        background: #f8fafc;
        color: #0a122a;
      }

      .material-icons-round {
        font-size: 20px;
      }

      .sidebar-icon {
        font-size: 24px;
      }

      .custom-checkbox:checked {
        background-color: #22c55e;
        border-color: #22c55e;
      }

      .custom-checkbox:focus {
        --tw-ring-color: #22c55e;
      }

      .checkbox-wrapper input[type="checkbox"] {
        appearance: none;
        background-color: transparent;
        margin: 0;
        font: inherit;
        color: currentColor;
        width: 1.15em;
        height: 1.15em;
        border: 2px solid #d1d5db;
        border-radius: 0.25em;
        display: grid;
        place-content: center;
      }

      .checkbox-wrapper-rounded input[type="checkbox"] {
        appearance: none;
        background-color: transparent;
        margin: 0;
        font: inherit;
        color: currentColor;
        width: 1.25em;
        height: 1.25em;
        border: 2px solid #d1d5db;
        border-radius: 50%;
        display: grid;
        place-content: center;
        transition: all 0.2s ease-in-out;
      }

      .checkbox-wrapper-rounded input[type="checkbox"]::before {
        content: "check";
        font-family: "Material Icons Round";
        font-size: 0.9em;
        color: #ffffff;
        transform: scale(0);
        transition: 120ms transform ease-in-out;
      }

      .checkbox-wrapper-rounded input[type="checkbox"]:checked {
        background-color: #22c55e;
        border-color: #22c55e;
      }

      .checkbox-wrapper-rounded input[type="checkbox"]:checked::before {
        transform: scale(1);
      }

      .checkbox-wrapper input[type="checkbox"]::before {
        content: "";
        width: 0.65em;
        height: 0.65em;
        transform: scale(0);
        transition: 120ms transform ease-in-out;
        box-shadow: inset 1em 1em #ffffff;
        transform-origin: center;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
      }

      .checkbox-wrapper input[type="checkbox"]:checked {
        background-color: #22c55e;
        border-color: #22c55e;
      }

      .checkbox-wrapper input[type="checkbox"]:checked::before {
        transform: scale(1);
      }

      .checkbox-wrapper-rounded input[type="checkbox"]:checked + span {
        text-decoration: line-through;
        color: #9ca3af;
      }

      .section-shell {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 24px;
        padding: 30px;
      }

      .ds-main-flow {
        display: flex;
        flex-direction: column;
        gap: 56px;
      }

      .ds-main-flow > * {
        margin-top: 0 !important;
      }

      .global-copy-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        margin-top: 0;
      }

      .global-copy-btn {
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #111827;
        border-radius: 11px;
        height: 38px;
        padding: 0 14px;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.02em;
        cursor: pointer;
      }

      .global-copy-btn:hover {
        border-color: #9ca3af;
        background: #f9fafb;
      }

      .ds-header-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 16px;
      }

      .ds-gallery-tabs {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-left: auto;
      }

      .ds-gallery-tab {
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #374151;
        border-radius: 999px;
        height: 40px;
        padding: 0 16px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.01em;
        cursor: pointer;
        transition: all 0.16s ease;
      }

      .ds-gallery-tab:hover {
        border-color: #9ca3af;
        color: #111827;
        background: #f9fafb;
      }

      .ds-gallery-tab.is-active {
        border-color: #0a122a;
        background: #0a122a;
        color: #ffffff;
      }

      .ds-gallery-panel {
        display: flex;
        flex-direction: column;
        gap: 56px;
      }

      .ds-complex-accordion {
        display: flex;
        flex-direction: column;
        gap: 24px;
      }

      .ds-complex-accordion-item {
        padding: 24px;
      }

      .ds-complex-accordion-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
      }

      .ds-complex-accordion-actions {
        display: inline-flex;
        align-items: center;
        gap: 10px;
      }

      .ds-complex-accordion-toggle {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #4b5563;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.16s ease;
      }

      .ds-complex-accordion-toggle:hover {
        border-color: #9ca3af;
        color: #0a122a;
        background: #f9fafb;
      }

      .ds-complex-accordion-toggle .material-icons-round {
        font-size: 20px;
        transition: transform 0.16s ease;
      }

      .ds-complex-accordion-item.is-open .ds-complex-accordion-toggle .material-icons-round {
        transform: rotate(180deg);
      }

      .ds-complex-accordion-panel {
        margin-top: 20px;
      }

      .ds-complex-accordion-panel .hb-demo-wrap + .hb-demo-wrap {
        margin-top: 24px;
      }

      @media (max-width: 920px) {
        .ds-header-controls {
          flex-direction: column;
          align-items: flex-start;
        }

        .ds-gallery-tabs {
          margin-left: 0;
        }

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

        .ds-complex-accordion-actions {
          width: 100%;
          justify-content: space-between;
        }
      }

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

      .section-title-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .section-title-dot {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        display: inline-grid;
        place-items: center;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        letter-spacing: 0;
        font-variant-numeric: tabular-nums;
        color: #ffffff;
        background: #0a122a;
      }

      .action-icons {
        display: inline-flex;
        align-items: center;
        gap: 10px;
      }

      .icon-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #4b5563;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.16s ease;
      }

      .icon-btn:hover {
        border-color: #9ca3af;
        color: #0a122a;
        background: #f9fafb;
      }

      .icon-btn svg {
        width: 16px;
        height: 16px;
      }

      .spec-card {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        padding: 16px;
      }


      .icon-size-row {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-wrap: wrap;
      }

      .icon-size-item {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        min-width: 80px;
        height: 64px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
      }

      .icon-size-label {
        font-size: 11px;
        color: #6b7280;
        font-weight: 600;
      }

      .copy-toast {
        position: fixed;
        right: 16px;
        bottom: 16px;
        background: #0a122a;
        color: #ffffff;
        font-size: 12px;
        font-weight: 600;
        padding: 10px 12px;
        border-radius: 10px;
        opacity: 0;
        transform: translateY(6px);
        pointer-events: none;
        transition: all 0.2s ease;
        z-index: 60;
      }

      .copy-toast.show {
        opacity: 1;
        transform: translateY(0);
      }

      .copy-toast.error {
        background: #7f1d1d;
      }

      .hb-kicker {
        margin: 0;
        color: #7a8197;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.16em;
      }

      .hb-title {
        margin: 8px 0 0;
        color: #0a122a;
        font-size: clamp(2rem, 5.2vw, 2.9rem);
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1.05;
      }

      .hb-subtitle {
        margin: 16px 0 0;
        color: #636466;
        font-size: 16px;
        line-height: 1.58;
      }

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

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

      .hb-card {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        padding: 24px;
      }

      .hb-card h3 {
        margin: 0;
        color: #0a122a;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.01em;
      }

      .hb-card p {
        margin: 10px 0 0;
        color: #636466;
        font-size: 14px;
        line-height: 1.48;
      }

      .hb-system-map {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 16px;
        background: #ffffff;
      }

      .hb-system-map h3 {
        margin: 0 0 10px;
        font-size: 12px;
        color: #6f778f;
        text-transform: uppercase;
        letter-spacing: 0.14em;
      }

      .hb-system-map ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 6px;
      }

      .hb-system-map a {
        display: block;
        text-decoration: none;
        padding: 7px 10px;
        border-radius: 10px;
        color: #0a122a;
        font-size: 14px;
        font-weight: 600;
      }

      .hb-system-map a:hover {
        background: #ecfdf0;
      }

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

      .hb-metric {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #ffffff;
        padding: 24px;
      }

      .hb-metric strong {
        display: block;
        color: #0a122a;
        font-size: 24px;
        letter-spacing: -0.02em;
      }

      .hb-metric span {
        display: block;
        margin-top: 8px;
        color: #616a84;
        font-size: 13px;
        font-weight: 600;
      }

      .hb-guidance-list {
        margin: 12px 0 0;
        padding: 0 0 0 18px;
        display: grid;
        gap: 8px;
        color: #4f5876;
        font-size: 14px;
        line-height: 1.45;
      }

      .hb-demo-wrap {
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: linear-gradient(180deg, #fff, #fafcff);
        padding: 24px;
      }

      .hb-component-iframe {
        display: block;
        width: 100%;
        min-height: 120px;
        border: none;
        border-radius: 12px;
      }

      .hb-demo-wrap h3 {
        margin: 0 0 12px;
        color: #0a122a;
        font-size: 16px;
      }

      .hb-upload {
        display: grid;
        gap: 16px;
      }

      .hb-upload-dropzone {
        border: 1px dashed #dad9d7;
        border-radius: 14px;
        min-height: 190px;
        padding: 24px;
        display: grid;
        justify-items: center;
        align-content: center;
        text-align: center;
        gap: 12px;
        cursor: pointer;
        background: #ffffff;
      }

      .hb-upload-dropzone.is-dragover {
        border-color: #21cc38;
        background: #ecfdf0;
      }

      .hb-upload-icon {
        width: 48px;
        height: 48px;
        border-radius: 999px;
        background: #f2f3f6;
        color: #9ea4b7;
        display: grid;
        place-items: center;
      }

      .hb-upload-title {
        margin: 0;
        color: #9da0a9;
        font-size: 16px;
        font-weight: 500;
      }

      .hb-upload-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 8px;
      }

      .hb-upload-item {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        background: #ffffff;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .hb-upload-name {
        min-width: 0;
        color: #0a122a;
        font-size: 14px;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .hb-upload-meta {
        color: #7f8598;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .hb-file-reorder-list {
        margin-top: 12px;
        display: grid;
        gap: 12px;
      }

      .hb-file-card {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #ffffff;
        padding: 12px 14px;
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
      }

      .hb-file-card.is-dragging {
        opacity: 0.62;
        border-color: #21cc38;
        background: #ecfdf0;
      }

      .hb-file-handle {
        border: 0;
        background: transparent;
        color: #9ca3af;
        font-size: 18px;
        line-height: 1;
        cursor: grab;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
      }

      .hb-file-handle:active {
        cursor: grabbing;
      }

      .hb-file-main {
        min-width: 0;
      }

      .hb-file-title-row {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
      }

      .hb-file-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-weight: 700;
        flex-shrink: 0;
      }

      .hb-file-icon.is-link {
        background: #eff6ff;
        color: #1d4ed8;
        border-color: #bfdbfe;
      }

      .hb-file-icon.is-pdf {
        background: #fef2f2;
        color: #b91c1c;
        border-color: #fecaca;
      }

      .hb-file-icon.is-img {
        background: #fff7ed;
        color: #c2410c;
        border-color: #fed7aa;
      }

      .hb-file-title {
        margin: 0;
        color: #0a122a;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .hb-file-meta {
        margin: 3px 0 0;
        color: #6b7280;
        font-size: 12px;
        font-weight: 600;
      }

      .hb-file-order {
        color: #4b5563;
        font-variant-numeric: tabular-nums;
      }

      .hb-file-card-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
      }

      .hb-file-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        padding: 4px 10px;
        font-size: 11px;
        font-weight: 700;
        border: 1px solid transparent;
        white-space: nowrap;
      }

      .hb-file-status.is-verified {
        color: #0d5e1b;
        background: #ccf1d2;
        border-color: #8fdaa0;
      }

      .hb-file-status.is-draft {
        color: #4b5563;
        background: #f3f4f6;
        border-color: #d1d5db;
      }

      .hb-file-card-menu {
        position: relative;
      }

      .hb-kebab-btn {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #4b5563;
        font-size: 18px;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
      }

      .hb-file-card-menu.is-open .hb-kebab-btn {
        border-color: #9ca3af;
        background: #f9fafb;
        color: #111827;
      }

      .hb-file-card-dropdown {
        position: absolute;
        right: 0;
        top: calc(100% + 6px);
        min-width: 158px;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 6px 20px rgba(10, 18, 42, 0.1);
        padding: 6px;
        z-index: 10;
      }

      .js-evidence-row.is-dragging {
        opacity: 0.62;
        background: #ecfdf0;
      }

      .hb-menu-item {
        width: 100%;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #111827;
        font-size: 12px;
        font-weight: 600;
        text-align: left;
        padding: 7px 8px;
        cursor: pointer;
      }

      .hb-menu-item:hover {
        background: #f3f4f6;
      }

      .hb-reorder-help {
        margin: 10px 0 0;
        color: #6b7280;
        font-size: 12px;
      }

      .hb-checklist-wrap {
        margin-top: 12px;
      }

      .hb-checklist {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 10px;
      }

      .hb-check-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
      }

      .hb-check-input {
        appearance: none;
        background-color: transparent;
        margin: 0;
        width: 20px;
        height: 20px;
        border: 2px solid #d1d5db;
        border-radius: 999px;
        display: grid;
        place-content: center;
        cursor: pointer;
        transition: all 0.18s ease;
        flex-shrink: 0;
        margin-top: 1px;
      }

      .hb-check-input::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        transform: scale(0);
        transition: transform 0.14s ease;
        background: #ffffff;
      }

      .hb-check-input:checked {
        background: #21cc38;
        border-color: #21cc38;
      }

      .hb-check-input:checked::before {
        transform: scale(1);
      }

      .hb-check-label {
        color: #111827;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        transition: color 0.16s ease, text-decoration-color 0.16s ease;
      }

      .hb-check-input:checked + .hb-check-label {
        color: #9ca3af;
        text-decoration: line-through;
      }

      .hb-checklist-progress {
        margin: 0 0 10px;
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

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

      .hb-preview-thumb {
        width: 72px;
        height: 46px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .hb-preview-thumb.is-link {
        background: #eff6ff;
        color: #1d4ed8;
        border-color: #bfdbfe;
      }

      .hb-preview-thumb.is-pdf {
        background: #fef2f2;
        color: #b91c1c;
        border-color: #fecaca;
      }

      .hb-preview-thumb.is-img {
        background: #fff7ed;
        color: #c2410c;
        border-color: #fed7aa;
      }

      .hb-preview-btn {
        border: 1px solid #d1d5db;
        border-radius: 9px;
        background: #ffffff;
        color: #111827;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        padding: 8px 10px;
        cursor: pointer;
      }

      .hb-preview-btn:hover {
        border-color: #9ca3af;
        background: #f9fafb;
      }

      .hb-inline-preview-row td {
        background: #f8fafc;
      }

      .hb-inline-preview {
        border: 1px dashed #d1d5db;
        border-radius: 10px;
        background: #ffffff;
        padding: 12px;
        display: grid;
        gap: 8px;
      }

      .hb-inline-preview-meta {
        color: #4b5563;
        font-size: 13px;
      }

      .hb-inline-preview-image {
        width: 180px;
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
      }

      .hb-spacing-grid {
        display: grid;
        gap: var(--ds-spacing-showcase-grid-gap);
      }

      .hb-spacing-item {
        display: grid;
        grid-template-columns: var(--ds-spacing-showcase-item-label-width) minmax(0, 1fr);
        gap: var(--ds-spacing-showcase-item-gap);
        align-items: center;
      }

      .hb-spacing-item code {
        color: var(--ds-spacing-showcase-item-code-color);
        font-size: var(--ds-spacing-showcase-item-code-size);
      }

      .hb-spacing-bar {
        height: var(--ds-spacing-showcase-bar-height);
        border-radius: var(--ds-spacing-showcase-bar-radius);
        background: linear-gradient(90deg, var(--ds-spacing-showcase-bar-fill-start), var(--ds-spacing-showcase-bar-fill-end));
      }

      .hb-spacing-bar--space-1 {
        width: var(--ds-spacing-showcase-bar-space-1);
      }

      .hb-spacing-bar--space-2 {
        width: var(--ds-spacing-showcase-bar-space-2);
      }

      .hb-spacing-bar--space-3 {
        width: var(--ds-spacing-showcase-bar-space-3);
      }

      .hb-spacing-bar--space-4 {
        width: var(--ds-spacing-showcase-bar-space-4);
      }

      .hb-spacing-bar--space-6 {
        width: var(--ds-spacing-showcase-bar-space-6);
      }

      .hb-spacing-bar--space-8 {
        width: var(--ds-spacing-showcase-bar-space-8);
      }

      .hb-spacing-bar--space-12 {
        width: var(--ds-spacing-showcase-bar-space-12);
      }

      .hb-spacing-bar--space-16 {
        width: var(--ds-spacing-showcase-bar-space-16);
      }

      .hb-spacing-bar--space-20 {
        width: var(--ds-spacing-showcase-bar-space-20);
      }

      .hb-table--fluid {
        min-width: var(--ds-spacing-showcase-usage-table-min-width);
      }

      .hb-table-wrap {
        overflow-x: auto;
      }

      .hb-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 680px;
      }

      .hb-table th,
      .hb-table td {
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        padding: 10px;
        vertical-align: top;
        font-size: 14px;
      }

      .hb-table th {
        color: #4c5778;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.09em;
      }

      .hb-logo-rules {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #ffffff;
        padding: 16px 18px;
        margin-bottom: 24px;
      }

      .hb-logo-rules ul {
        margin: 0;
        padding-left: 20px;
        display: grid;
        gap: 8px;
        color: #4f5876;
        font-size: 14px;
      }

      .hb-logo-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        margin-bottom: 24px;
      }

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

      .hb-logo-card {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
        padding: 16px;
        display: grid;
        gap: 10px;
      }

      .hb-logo-card h3 {
        margin: 0;
        color: #0a122a;
        font-size: 14px;
      }

      .hb-logo-card.is-dont {
        border-color: #f3a3c5;
      }

      .hb-logo-surface {
        position: relative;
        overflow: hidden;
        min-height: 132px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        display: grid;
        place-items: center;
        padding: 16px;
      }

      .hb-logo-surface img {
        width: min(240px, 100%);
        height: auto;
        display: block;
      }

      .hb-logo-surface.is-light {
        background: #ffffff;
      }

      .hb-logo-surface.is-dark {
        background: #0a122a;
      }

      .hb-logo-surface.is-green {
        background: #21cc36;
      }

      .hb-logo-surface.is-yellow {
        background: #f0c808;
      }

      .hb-logo-surface.is-blue {
        background: #4a90e2;
      }

      .hb-prohibited-tag {
        position: absolute;
        top: 10px;
        right: 10px;
        border-radius: 999px;
        padding: 4px 10px;
        background: #ffffff;
        color: #e81167;
        border: 1px solid #e81167;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .hb-slider-wrap {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding-inline: clamp(20px, 5vw, 80px);
      }

      .hb-template-slider {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        gap: 24px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
      }

      .hb-template-slide {
        scroll-snap-align: start;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #fff;
        padding: 16px;
        display: grid;
        gap: 10px;
        box-sizing: border-box;
      }

      .hb-template-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .hb-template-head h3 {
        margin: 0;
        color: #0a122a;
        font-size: 16px;
      }

      .hb-template-frame {
        width: 100%;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #fff;
        display: block;
      }

      .hb-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 11px;
        font-weight: 700;
      }

      .hb-badge-warning {
        color: #6f5600;
        background: #fbf1c4;
      }

      .hb-badge-info {
        color: #2c5d9b;
        background: #dbeafe;
      }

      .hb-badge-danger {
        color: #9b1d4f;
        background: #f7cde1;
      }

      .hb-badge-success {
        color: #0d5e1b;
        background: #ccf1d2;
      }

      .hb-table-finance .is-right {
        text-align: right;
        font-variant-numeric: tabular-nums;
      }

      #handbook-overview { order: 1; }
      #handbook-principles { order: 2; }
      #handbook-color-behavior { order: 3; }
      #palette { order: 4; }
      #typography { order: 5; }
      #handbook-spacing { order: 6; }
      #buttons { order: 7; }
      #tags { order: 8; }
      #icons { order: 9; }
      #handbook-accessibility { order: 10; }
      #handbook-logos { order: 11; }
      #handbook-emails { order: 12; }
      #handbook-emails-slider { order: 13; }
      #handbook-files { order: 14; }
      #handbook-files-slider { order: 15; }
      #handbook-tables { order: 16; }

      @media (max-width: 1024px) {
        .section-head {
          flex-direction: column;
          align-items: flex-start;
        }

        .hb-grid-3,
        .hb-grid-2,
        .hb-logo-grid,
        .hb-logo-grid-3 {
          grid-template-columns: 1fr;
        }

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

      @media (hover: none) {
        .hex-copy-btn {
          opacity: 1;
          transform: translateY(0);
          pointer-events: auto;
        }
      }

      @media (max-width: 640px) {
        .hb-metrics {
          grid-template-columns: 1fr;
        }

        .hb-spacing-item {
          grid-template-columns: 1fr;
        }

        .hb-file-card {
          grid-template-columns: 24px minmax(0, 1fr);
          row-gap: 10px;
        }

        .hb-file-card-actions {
          grid-column: 1 / -1;
          justify-content: flex-end;
          padding-left: 34px;
        }

        .hb-preview-cell {
          flex-wrap: wrap;
        }
      }
/* Palette Showcase */
.color-card {
  border: 1px solid var(--ds-palette-card-border);
  border-radius: var(--ds-palette-card-radius);
  padding: var(--ds-palette-card-padding);
  background: var(--ds-palette-card-bg);
}

.swatch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-palette-swatch-gap);
}

.swatch {
  height: var(--ds-palette-swatch-height);
  border-radius: var(--ds-palette-swatch-radius);
  border: 1px solid var(--ds-palette-swatch-border);
}

.hex-row {
  margin-top: var(--ds-palette-hex-row-margin-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-palette-hex-row-gap);
}

.hex-code {
  font-size: var(--ds-palette-hex-code-size);
  font-weight: var(--ds-palette-hex-code-weight);
  color: var(--ds-palette-hex-code-color);
  letter-spacing: var(--ds-palette-hex-code-letter-spacing);
}

.hex-copy-btn {
  border: 1px solid var(--ds-palette-copy-btn-border);
  background: var(--ds-palette-copy-btn-bg);
  color: var(--ds-palette-copy-btn-fg);
  border-radius: var(--ds-palette-copy-btn-radius);
  height: var(--ds-palette-copy-btn-size);
  width: var(--ds-palette-copy-btn-size);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1px);
  pointer-events: none;
  transition:
    opacity var(--ds-palette-copy-btn-motion),
    transform var(--ds-palette-copy-btn-motion),
    border-color var(--ds-palette-copy-btn-motion),
    color var(--ds-palette-copy-btn-motion),
    background var(--ds-palette-copy-btn-motion);
}

.hex-row:hover .hex-copy-btn,
.hex-row:focus-within .hex-copy-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hex-copy-btn:hover {
  border-color: var(--ds-palette-copy-btn-hover-border);
  color: var(--ds-palette-copy-btn-hover-fg);
  background: var(--ds-palette-copy-btn-hover-bg);
}

.hex-copy-btn svg {
  width: var(--ds-palette-copy-icon-size);
  height: var(--ds-palette-copy-icon-size);
}

/* Typography Showcase */
.ds-typography-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-typography-grid-gap);
}

.ds-typography-card {
  border: 1px solid var(--ds-typography-card-border);
  border-radius: var(--ds-typography-card-radius);
  background: var(--ds-typography-card-bg);
  padding: var(--ds-typography-card-padding);
  display: grid;
  gap: var(--ds-typography-card-gap);
}

.ds-typography-title {
  margin: 0;
  font-size: var(--ds-typography-kicker-size);
  font-weight: var(--ds-typography-kicker-weight);
  color: var(--ds-typography-kicker-color);
  text-transform: uppercase;
  letter-spacing: var(--ds-typography-kicker-tracking);
}

.ds-typography-stack {
  display: grid;
  gap: var(--ds-typography-row-gap);
}

.ds-typography-row {
  border-bottom: 1px solid var(--ds-typography-card-divider);
  padding-bottom: var(--ds-typography-row-padding-bottom);
}

.ds-typography-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ds-typography-kicker {
  margin: 0 0 var(--ds-typography-label-margin-bottom);
  font-size: var(--ds-typography-size-label);
  font-weight: var(--ds-font-weight-semibold);
  color: var(--ds-typography-kicker-color);
  text-transform: uppercase;
  letter-spacing: var(--ds-typography-kicker-tracking);
}

.ds-typography-display {
  margin: 0;
  font-size: var(--ds-typography-size-display-compact);
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-typography-display-color);
  letter-spacing: var(--ds-typography-tracking-tight);
  line-height: 1.05;
}

.ds-typography-h2 {
  margin: 0;
  font-size: var(--ds-typography-size-h2);
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-typography-display-color);
  line-height: 1.2;
}

.ds-typography-body-lg {
  margin: 0;
  font-size: var(--ds-typography-size-body-large);
  font-weight: var(--ds-font-weight-regular);
  color: var(--ds-typography-body-large-color);
  line-height: 1.4;
}

.ds-typography-body {
  margin: 0;
  font-size: var(--ds-typography-size-body);
  font-weight: var(--ds-font-weight-regular);
  color: var(--ds-typography-body-color);
  line-height: var(--ds-line-height-body);
}

.ds-typography-meta {
  margin: 0;
  font-size: var(--ds-typography-size-meta);
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-typography-kicker-color);
  text-transform: uppercase;
  letter-spacing: var(--ds-typography-kicker-tracking);
}

.ds-typography-rules {
  margin: 0;
  font-size: var(--ds-typography-rule-text-size);
  font-weight: var(--ds-font-weight-regular);
  color: var(--ds-typography-rule-text-color);
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .ds-typography-display {
    font-size: var(--ds-typography-size-display);
  }
}

@media (min-width: 1280px) {
  .ds-typography-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Usage – glossary-style (compact, dense) */
.ds-complex-glossary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ds-complex-glossary-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.12s ease;
}

.ds-complex-glossary-row:last-child {
  border-bottom: none;
}

.ds-complex-glossary-row:hover {
  background: #f0fdf4;
}

.ds-complex-glossary .ds-glossary-num {
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
}

.ds-complex-glossary .ds-glossary-term {
  font-weight: 600;
  font-size: 16px;
  color: #0a122a;
}

.ds-complex-glossary .ds-glossary-desc {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.4;
}

.ds-complex-glossary .ds-glossary-arrow {
  font-size: 16px;
  color: #22c55e;
  opacity: 0.8;
}

.ds-complex-glossary-row:hover .ds-glossary-arrow {
  opacity: 1;
}

@media (max-width: 768px) {
  .ds-complex-glossary-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }
  .ds-complex-glossary .ds-glossary-desc {
    grid-column: 2 / -1;
    padding-right: 24px;
  }
}
