.nv-dtf,
  .nv-dtf * {
    box-sizing: border-box;
  }

  .nv-dtf {
    --nv-bg: #151716;
    --nv-panel: #202321;
    --nv-card: #f3f0e7;
    --nv-acid: #c8ff38;
    --nv-text: #f7f7f3;
    --nv-muted: #a9ada9;
    --nv-line: rgba(255, 255, 255, 0.14);
    --nv-dark-text: #151716;
    --nv-mockup-sprite: url("navesh_mockups_sprite_v4.webp");
    --nv-type-family: Arial, Helvetica, sans-serif;
    --nv-type-display-weight: 800;
    --nv-type-display-spacing: -0.055em;
    --nv-type-label-spacing: 0.1em;
    width: 100%;
    padding: 88px 24px;
    background: var(--nv-bg);
    color: var(--nv-text);
    font-family: var(--nv-type-family);
  }

  .nv-dtf button,
  .nv-dtf input,
  .nv-dtf textarea {
    font: inherit;
  }

  .nv-dtf__shell {
    width: min(1240px, 100%);
    margin: 0 auto;
  }

  .nv-dtf__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--nv-acid);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: var(--nv-type-label-spacing);
    text-transform: uppercase;
  }

  .nv-dtf__eyebrow::before {
    width: 26px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .nv-dtf__title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 6vw, 82px);
    font-weight: var(--nv-type-display-weight);
    line-height: 0.94;
    letter-spacing: var(--nv-type-display-spacing);
    text-transform: uppercase;
  }

  .nv-dtf__lead {
    max-width: 720px;
    margin: 24px 0 44px;
    color: var(--nv-muted);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.5;
  }

  .nv-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
  }

  .nv-mode {
    position: relative;
    min-height: 154px;
    padding: 22px;
    border: 1px solid var(--nv-line);
    border-radius: 18px;
    background: var(--nv-panel);
    color: var(--nv-text);
    text-align: left;
    cursor: pointer;
    transition: 180ms ease;
  }

  .nv-mode:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 255, 56, 0.55);
  }

  .nv-mode.is-active {
    border-color: var(--nv-acid);
    box-shadow: inset 0 0 0 1px var(--nv-acid);
  }

  .nv-mode__number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--nv-acid);
    color: var(--nv-dark-text);
    font-size: 12px;
    font-weight: 900;
  }

  .nv-mode strong {
    display: block;
    margin-bottom: 7px;
    font-size: 18px;
    line-height: 1.15;
  }

  .nv-mode small {
    display: block;
    color: var(--nv-muted);
    font-size: 13px;
    line-height: 1.35;
  }

  .nv-workspace {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 14px;
    align-items: start;
  }

  .nv-panel {
    overflow: hidden;
    border: 1px solid var(--nv-line);
    border-radius: 22px;
    background: var(--nv-panel);
  }

  .nv-panel__section {
    padding: 24px;
    border-bottom: 1px solid var(--nv-line);
  }

  .nv-panel__section:last-child {
    border-bottom: 0;
  }

  .nv-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: var(--nv-type-label-spacing);
    text-transform: uppercase;
  }

  .nv-section-title span {
    color: var(--nv-acid);
  }

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

  .nv-product {
    min-height: 142px;
    padding: 10px;
    border: 1px solid var(--nv-line);
    border-radius: 14px;
    background: transparent;
    color: var(--nv-text);
    text-align: left;
    cursor: pointer;
  }

  .nv-product.is-active {
    border-color: var(--nv-acid);
    background: rgba(200, 255, 56, 0.07);
  }

  .nv-product__icon {
    display: block;
    margin-bottom: 12px;
    color: var(--nv-acid);
    font-size: 22px;
  }

  .nv-product__thumb {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 10px;
    border-radius: 9px;
    background-color: #f7f7f7;
    background-image: var(--nv-mockup-sprite);
    background-repeat: no-repeat;
    background-size: 800% 800%;
    background-position: calc(var(--nv-col) * 14.285714%) calc(var(--nv-row) * 14.285714%);
  }

  .nv-product strong,
  .nv-product small {
    display: block;
  }

  .nv-color-wrap {
    margin-top: 16px;
  }

  .nv-color-label {
    display: block;
    margin-bottom: 9px;
    color: var(--nv-muted);
    font-size: 11px;
  }

  .nv-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nv-color {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 7px 11px 7px 8px;
    border: 1px solid var(--nv-line);
    border-radius: 999px;
    background: transparent;
    color: var(--nv-text);
    font-size: 11px;
    cursor: pointer;
  }

  .nv-color.is-active {
    border-color: var(--nv-acid);
  }

  .nv-color::before {
    width: 17px;
    height: 17px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: var(--nv-color);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    content: "";
  }

  .nv-product strong {
    font-size: 14px;
  }

  .nv-product small {
    margin-top: 4px;
    color: var(--nv-muted);
    font-size: 11px;
  }

  .nv-dtf:not(.is-ours) .nv-base-price {
    display: none;
  }

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

  .nv-meter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .nv-meter-tier {
    min-height: 84px;
    padding: 12px 10px;
    border: 1px solid var(--nv-line);
    border-radius: 12px;
    background: transparent;
    color: var(--nv-text);
    text-align: left;
    cursor: pointer;
  }

  .nv-meter-tier:hover,
  .nv-meter-tier.is-active {
    border-color: var(--nv-acid);
    background: rgba(200, 255, 56, 0.08);
  }

  .nv-meter-tier strong,
  .nv-meter-tier span,
  .nv-meter-tier small {
    display: block;
  }

  .nv-meter-tier strong {
    color: var(--nv-acid);
    font-size: 14px;
  }

  .nv-meter-tier span {
    margin-top: 7px;
    font-size: 13px;
    font-weight: 900;
  }

  .nv-meter-tier small {
    margin-top: 3px;
    color: var(--nv-muted);
    font-size: 10px;
    line-height: 1.25;
  }

  .nv-meter-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .nv-meter-result {
    min-height: 44px;
    padding: 12px;
    border: 1px solid var(--nv-line);
    border-radius: 11px;
    background: #171918;
  }

  .nv-meter-result small,
  .nv-meter-result strong {
    display: block;
  }

  .nv-meter-result small {
    margin-bottom: 4px;
    color: var(--nv-muted);
    font-size: 10px;
  }

  .nv-meter-result strong {
    font-size: 14px;
  }

  .nv-size {
    padding: 12px 10px;
    border: 1px solid var(--nv-line);
    border-radius: 12px;
    background: transparent;
    color: var(--nv-text);
    text-align: left;
    cursor: pointer;
  }

  .nv-size.is-active {
    border-color: var(--nv-acid);
    background: var(--nv-acid);
    color: var(--nv-dark-text);
  }

  .nv-size:disabled {
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(169, 173, 169, 0.34);
    cursor: not-allowed;
    text-decoration: line-through;
  }

  .nv-size strong,
  .nv-size span,
  .nv-size small {
    display: block;
  }

  .nv-size strong {
    font-size: 16px;
  }

  .nv-size span {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 800;
  }

  .nv-size small {
    margin-top: 3px;
    opacity: 0.65;
    font-size: 10px;
  }

  .nv-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .nv-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--nv-muted);
    font-size: 11px;
  }

  .nv-field input,
  .nv-field textarea {
    width: 100%;
    padding: 0 12px;
    border: 1px solid var(--nv-line);
    border-radius: 11px;
    outline: none;
    background: #171918;
    color: var(--nv-text);
  }

  .nv-field input {
    height: 44px;
  }

  .nv-field textarea {
    min-height: 132px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
    line-height: 1.45;
  }

  .nv-field input:focus,
  .nv-field textarea:focus {
    border-color: var(--nv-acid);
  }

  .nv-add-print {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 1px solid var(--nv-acid);
    border-radius: 12px;
    background: rgba(200, 255, 56, 0.08);
    color: var(--nv-acid);
    font-weight: 900;
    cursor: pointer;
  }

  .nv-print-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
  }

  .nv-print-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border: 1px solid var(--nv-line);
    border-radius: 11px;
    background: #171918;
  }

  .nv-print-index {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--nv-acid);
    color: var(--nv-dark-text);
    font-size: 11px;
    font-weight: 900;
  }

  .nv-print-item strong,
  .nv-print-item small {
    display: block;
  }

  .nv-print-item strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nv-print-item small {
    margin-top: 4px;
    color: var(--nv-muted);
    font-size: 9px;
    line-height: 1.35;
  }

  .nv-print-remove {
    width: 32px;
    height: 32px;
    border: 1px solid var(--nv-line);
    border-radius: 50%;
    background: transparent;
    color: var(--nv-muted);
    cursor: pointer;
  }

  .nv-multi-note {
    margin: 10px 0 0;
    color: var(--nv-muted);
    font-size: 10px;
    line-height: 1.4;
  }


  .nv-preview-panel {
    position: sticky;
    top: 20px;
  }

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

  .nv-preview-head strong {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nv-tabs {
    display: flex;
    gap: 5px;
    padding: 4px;
    border-radius: 999px;
    background: #151716;
  }

  .nv-tab {
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--nv-muted);
    font-size: 11px;
    cursor: pointer;
  }

  .nv-tab.is-active {
    background: var(--nv-acid);
    color: var(--nv-dark-text);
  }

  .nv-canvas-wrap {
    position: relative;
    padding: 22px;
    background:
      linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%),
      linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%),
      #181a19;
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
  }

  .nv-canvas {
    position: relative;
    width: min(100%, 520px);
    aspect-ratio: 1 / 1.03;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 42%, #f9f8f2 0, #e9e8e1 68%, #d9dad4 100%);
    touch-action: none;
    user-select: none;
  }

  .nv-garment-svg {
    position: absolute;
    inset: 6% 8%;
    display: none;
    width: 84%;
    height: 88%;
    filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.18));
  }

  .nv-garment-photo {
    position: absolute;
    inset: 0;
    background-color: #f7f7f7;
    background-image: var(--nv-mockup-sprite);
    background-repeat: no-repeat;
    background-size: 800% 800%;
    background-position: 0 0;
  }

  .nv-garment-main {
    fill: #f7f7f4;
    stroke: #d3d4ce;
    stroke-width: 2;
  }

  .nv-garment-detail {
    fill: none;
    stroke: #d7d8d2;
    stroke-width: 2;
  }

  .nv-print-zone {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 18%;
    height: 24%;
    z-index: 3;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) rotate(var(--nv-zone-rotation, 0deg));
    transform-origin: center;
    border: 2px solid var(--nv-acid);
    border-radius: 7px;
    background: rgba(200, 255, 56, 0.08);
    box-shadow:
      0 0 0 1px rgba(21, 23, 22, 0.96),
      0 0 0 3px rgba(255, 255, 255, 0.72),
      inset 0 0 0 1px rgba(21, 23, 22, 0.28);
    cursor: grab;
    touch-action: none;
  }

  .nv-saved-zones {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
  }

  .nv-saved-zone {
    position: absolute;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) rotate(var(--nv-zone-rotation, 0deg));
    transform-origin: center;
    overflow: hidden;
    border: 2px solid var(--nv-acid);
    border-radius: 7px;
    background: rgba(200, 255, 56, 0.08);
    box-shadow:
      0 0 0 1px rgba(21, 23, 22, 0.96),
      0 0 0 3px rgba(255, 255, 255, 0.72);
  }

  .nv-saved-zone b {
    position: absolute;
    left: 3px;
    top: 3px;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    background: var(--nv-acid);
    color: var(--nv-dark-text);
    font-size: 8px;
  }

  .nv-print-zone:active {
    cursor: grabbing;
  }

  .nv-print-zone.is-overflow {
    border-color: #ff7548;
    background: rgba(255, 117, 72, 0.12);
    box-shadow:
      0 0 0 1px rgba(21, 23, 22, 0.96),
      0 0 0 3px rgba(255, 255, 255, 0.76);
  }

  .nv-zone-label {
    position: absolute;
    left: -2px;
    top: -24px;
    max-width: 190px;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 5px 5px 5px 0;
    background: var(--nv-acid);
    color: var(--nv-dark-text);
    font-size: 8px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.045em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nv-print-zone.is-overflow .nv-zone-label {
    background: #ff7548;
  }

  .nv-print-zone.is-right-edge .nv-zone-label {
    right: -2px;
    left: auto;
    border-radius: 5px 5px 0 5px;
  }

  .nv-print-zone.is-sleeve .nv-zone-label {
    display: none;
  }

  .nv-current-zone-number {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--nv-acid);
    color: var(--nv-dark-text);
    font-size: 11px;
    font-weight: 900;
  }

  .nv-view-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    padding: 6px 9px;
    border: 1px solid rgba(21, 23, 22, 0.22);
    border-radius: 999px;
    background: rgba(247, 247, 243, 0.9);
    color: #151716;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
  }

  .nv-placement-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 16px 20px;
    border-top: 1px solid var(--nv-line);
    border-bottom: 1px solid var(--nv-line);
  }

  .nv-place {
    padding: 9px 11px;
    border: 1px solid var(--nv-line);
    border-radius: 999px;
    background: transparent;
    color: var(--nv-muted);
    font-size: 11px;
    cursor: pointer;
  }

  .nv-place:hover,
  .nv-place.is-active {
    border-color: var(--nv-acid);
    color: var(--nv-acid);
  }

  .nv-place:disabled {
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(169, 173, 169, 0.34);
    cursor: not-allowed;
    text-decoration: line-through;
  }

  .nv-fit-note {
    min-height: 39px;
    padding: 10px 20px 12px;
    border-bottom: 1px solid var(--nv-line);
    color: var(--nv-muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .nv-fit-note strong {
    color: var(--nv-text);
  }

  .nv-fit-note.is-warning {
    color: #ff9c7d;
  }

  .nv-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--nv-line);
  }

  .nv-summary__item {
    min-height: 90px;
    padding: 17px 20px;
    background: var(--nv-panel);
  }

  .nv-summary__item small,
  .nv-summary__item strong {
    display: block;
  }

  .nv-summary__item small {
    margin-bottom: 7px;
    color: var(--nv-muted);
    font-size: 11px;
  }

  .nv-summary__item strong {
    font-size: 18px;
  }

  .nv-total {
    padding: 22px 20px;
    background: var(--nv-card);
    color: var(--nv-dark-text);
  }

  .nv-total__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
  }

  .nv-total small,
  .nv-total strong {
    display: block;
  }

  .nv-total small {
    margin-bottom: 7px;
    font-size: 11px;
    opacity: 0.6;
  }

  .nv-total strong {
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.04em;
  }

  .nv-total__note {
    max-width: 240px;
    font-size: 11px;
    line-height: 1.35;
    opacity: 0.63;
    text-align: right;
  }

  .nv-action {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 20px;
  }

  .nv-btn {
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--nv-dark-text);
    border-radius: 13px;
    background: transparent;
    color: var(--nv-dark-text);
    font-weight: 900;
    cursor: pointer;
  }

  .nv-btn--primary {
    border-color: var(--nv-acid);
    background: var(--nv-acid);
  }

  .nv-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    max-width: 320px;
    padding: 14px 17px;
    border-radius: 12px;
    background: var(--nv-acid);
    color: var(--nv-dark-text);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 180ms ease;
  }

  .nv-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .nv-hidden {
    display: none !important;
  }

  @media (max-width: 960px) {
    .nv-dtf {
      padding: 64px 16px;
    }

    .nv-mode-grid {
      grid-template-columns: 1fr;
    }

    .nv-mode {
      min-height: 120px;
    }

    .nv-mode__number {
      margin-bottom: 17px;
    }

    .nv-workspace {
      grid-template-columns: 1fr;
    }

    .nv-preview-panel {
      position: static;
    }
  }

  @media (max-width: 560px) {
    .nv-panel__section {
      padding: 18px;
    }

    .nv-products,
    .nv-summary,
    .nv-action {
      grid-template-columns: 1fr;
    }

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

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

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

    .nv-fields {
      grid-template-columns: 1fr 1fr;
    }

    .nv-field:last-child {
      grid-column: 1 / -1;
    }

    .nv-preview-head {
      align-items: flex-start;
      flex-direction: column;
    }

    .nv-canvas-wrap {
      padding: 10px;
    }

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

    .nv-total__note {
      max-width: none;
      text-align: left;
    }
  }
