.ngyt-form {
      --ink: #102044;
      --muted: #73809d;
      --soft: #fff7fa;
      --line: #f3d9e2;
      --pink: #ff2f66;
      --pink-2: #ff6f93;
      --blue: #2e62d8;
      --green: #28b76b;
      --shadow: 0 18px 55px rgba(255, 64, 112, .17);
      --upload-tile: 86px;
      font-family: inherit;
      color: var(--ink);
    }

    .ngyt-form,
    .ngyt-form * { box-sizing: border-box; }

    .ngyt-form button,
    .ngyt-form input,
    .ngyt-form textarea { font: inherit; }
    .ngyt-form button { cursor: pointer; }

    .ngyt-form .ngyt-icon {
      width: 20px;
      height: 20px;
      stroke-width: 2;
      flex: 0 0 auto;
    }

    .ngyt-app {
      width: 100%;
      margin: 0;
      position: relative;
      z-index: 1;
    }

    .ngyt-brand {
      display: none;
      align-items: center;
      justify-content: space-between;
      margin: 0 16px 20px;
    }

    .ngyt-brand-mark {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--pink);
      font-weight: 800;
      font-size: 26px;
      line-height: 1.05;
    }

    .ngyt-brand-actions { display: flex; gap: 12px; }

    .ngyt-shell {
      border-radius: 20px;
      background: rgba(255, 255, 255, .9);
      box-shadow: 0 12px 34px rgba(255, 64, 112, .12);
      padding: 18px;
      border: 1px solid rgba(255, 194, 209, .58);
      backdrop-filter: blur(18px);
    }

    .ngyt-stepper {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      min-height: 72px;
      gap: 0;
      background: transparent;
      margin-bottom: 12px;
    }

    .ngyt-step {
      border: 1px solid #eadfe4;
      background: rgba(255, 255, 255, .75);
      color: #51607e;
      display: flex;
      align-items: center;
      justify-content: center;
     
      position: relative;
     
      min-width: 0;
      z-index: 1;
      margin-left: -20px;
      clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
    }

    .ngyt-step:first-child {
      margin-left: 0;
      border-radius: 14px 0 0 14px;
      clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
    }

    .ngyt-step:last-child {
      border-radius: 0 14px 14px 0;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%);
    }

    .ngyt-step.ngyt-active {
      color: var(--pink);
      background: linear-gradient(90deg, rgba(255, 47, 102, .09), rgba(255, 47, 102, .025));
      box-shadow: inset 0 -2px 0 var(--pink);
      border-color: #ff9ab3;
    }

    .ngyt-step.ngyt-done .ngyt-check { display: inline-grid; }

    .ngyt-ico {
      width: 34px;
      height: 34px;
      display: inline-grid;
      place-items: center;
      border-radius: 999px;
      color: currentColor;
      flex: 0 0 auto;
      position: relative;
    }

    .ngyt-step.ngyt-active .ngyt-ico { background: rgba(255, 47, 102, .1); }
    .ngyt-ico svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; }
    .ngyt-check svg,
    .ngyt-selected-dot svg { width: 16px; height: 16px; }

    .ngyt-step-title,
    .ngyt-step-sub {
      display: block;
      text-align: left;
      white-space: nowrap;
    }

    .ngyt-step-title { font-size: 14px; font-weight: 750; }
    .ngyt-step-sub {
      font-size: 12px;
      color: currentColor;
      opacity: .78;
      margin-top: -3px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .ngyt-check {
      display: none;
      width: 17px;
      height: 17px;
      place-items: center;
      border: 2px solid #fff;
      background: #20ce76;
      color: #fff;
      border-radius: 50%;
      font-size: 11px;
      font-weight: 900;
      box-shadow: 0 4px 10px rgba(32, 206, 118, .28);
    }

    .ngyt-check svg { width: 11px; height: 11px; stroke-width: 3; }

    .ngyt-mobile-progress { display: none; }

    .ngyt-content {
      display: grid;
      grid-template-columns: minmax(0, 1.28fr) minmax(480px, .92fr);
      gap: 18px;
    }

    .ngyt-main-column {
      min-width: 0;
    }

    .ngyt-content.ngyt-final-mode {
      grid-template-columns: 1fr;
    }

    .ngyt-content.ngyt-final-mode .ngyt-main-column {
      grid-column: 1 / -1;
    }

    .ngyt-content.ngyt-final-mode .ngyt-preview-panel {
      display: none;
    }

    .ngyt-panel {
      background: rgba(255,255,255,.74);
      border: 1px solid var(--line);
      border-radius: 16px;
      padding: 18px;
      box-shadow: 0 10px 25px rgba(107, 43, 65, .04);
    }

    .ngyt-panel-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 22px;
      font-weight: 800;
      margin: 0 0 8px;
    }

    .ngyt-panel-title small {
      margin-left: auto;
      color: var(--pink);
      border: 1px solid #ff9ab3;
      background: #fff2f6;
      padding: 8px 12px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 700;
    }

    .ngyt-preview-head > span,
    .ngyt-option strong,
    .ngyt-share-box p,
    .ngyt-primary,
    .ngyt-secondary,
    .ngyt-copy-btn,
    .ngyt-back {
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .ngyt-hint { color: var(--muted); margin: 0 0 18px; }

    .ngyt-categories {
      display: flex;
      gap: 12px;
      overflow: auto;
      padding: 2px 0 20px;
      scrollbar-width: none;
    }

    .ngyt-pill, .ngyt-ghost-btn {
      height: 44px;
      border: 1px solid #e5dfE6;
      background: white;
      color: var(--ink);
      border-radius: 999px;
      padding: 0 18px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(20, 35, 70, .04);
    }

    .ngyt-pill.ngyt-active {
      color: white;
      border-color: transparent;
      background: linear-gradient(135deg, var(--pink), #ff5682);
    }

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

    .ngyt-template-card {
      border: 1px solid #e9e0e5;
      border-radius: 10px;
      overflow: hidden;
      background: white;
      min-width: 0;
      box-shadow: 0 5px 14px rgba(28, 32, 64, .08);
      position: relative;
    }

    .ngyt-template-card.ngyt-active {
      border-color: var(--pink);
      box-shadow: 0 0 0 2px rgba(255, 47, 102, .08), 0 8px 18px rgba(255, 47, 102, .12);
    }

    .ngyt-template-card img {
      width: 100%;
      aspect-ratio: 3 / 4;
      height: auto;
      object-fit: cover;
      display: block;
    }

    .ngyt-template-card span {
      display: block;
      padding: 12px 8px;
      text-align: center;
      font-weight: 700;
      font-size: 17px;
      background: rgba(255,255,255,.92);
    }

    .ngyt-selected-dot {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 26px;
      height: 26px;
      display: grid;
      place-items: center;
      color: white;
      border: 2px solid #fff;
      background: #20ce76;
      border-radius: 999px;
      font-weight: 900;
      box-shadow: 0 8px 20px rgba(255, 47, 102, .35);
    }

    .ngyt-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

    .ngyt-field { display: grid; gap: 8px; }
    .ngyt-field.ngyt-full { grid-column: 1 / -1; }

    .ngyt-invalid .ngyt-input-wrap,
    .ngyt-invalid textarea,
    .ngyt-invalid.ngyt-upload,
    .ngyt-invalid .ngyt-upload {
      border-color: #ef315f !important;
      box-shadow: 0 0 0 3px rgba(239, 49, 95, .1);
    }

    .ngyt-field-error {
      color: #d92d54;
      font-size: 12px;
      font-weight: 700;
      margin-top: 4px;
    }

    .ngyt-step[disabled] {
      opacity: .46;
      cursor: not-allowed;
    }

    .ngyt-form label { font-weight: 750; color: #203054; }

    .ngyt-field-label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: fit-content;
    }

    .ngyt-required {
      color: var(--pink);
      font-weight: 900;
      margin-left: 3px;
    }

    .ngyt-help {
      position: relative;
      width: 18px;
      height: 18px;
      border: 1px solid #cbd2e1;
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      color: #71809d;
      background: white;
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      cursor: help;
    }

    .ngyt-help::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: calc(100% + 8px);
      z-index: 30;
      width: max-content;
      max-width: 260px;
      transform: translateX(-50%);
      padding: 8px 10px;
      border-radius: 8px;
      color: white;
      background: #17213d;
      box-shadow: 0 10px 22px rgba(20,35,70,.18);
      font-size: 12px;
      font-weight: 500;
      line-height: 1.35;
      opacity: 0;
      pointer-events: none;
      transition: opacity .15s ease, transform .15s ease;
    }

    .ngyt-help:hover::after {
      opacity: 1;
      transform: translateX(-50%) translateY(-2px);
    }

    .ngyt-message-tools {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      position: relative;
    }

    .ngyt-emoji-btn {
      width: 42px;
      height: 36px;
      border: 1px solid #dfe2ec;
      border-radius: 9px;
      display: inline-grid;
      place-items: center;
      color: var(--ink);
      background: white;
    }

    .ngyt-char-count {
      position: absolute;
      right: 14px;
      bottom: 10px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1;
      pointer-events: none;
      background: rgba(255,255,255,.72);
      padding-left: 6px;
    }

    .ngyt-char-count.ngyt-over {
      color: #d92d54;
      font-weight: 700;
    }

    .ngyt-emoji-picker {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      z-index: 20;
      width: min(290px, 86vw);
      padding: 10px;
      border: 1px solid #ffd0dc;
      border-radius: 12px;
      background: white;
      box-shadow: 0 14px 34px rgba(255, 47, 102, .16);
      display: grid;
      grid-template-columns: repeat(8, 1fr);
      gap: 6px;
    }

    .ngyt-emoji-picker[hidden] {
      display: none;
    }

    .ngyt-emoji-picker button {
      width: 30px;
      height: 30px;
      border: 0;
      border-radius: 8px;
      background: #fff7fa;
      font-size: 18px;
      line-height: 1;
    }

    .ngyt-emoji-picker button:hover {
      background: #ffe5ec;
    }

    .ngyt-textarea-wrap {
      position: relative;
    }

    .ngyt-input-wrap {
      min-height: 46px;
      border: 1px solid #dfe2ec;
      border-radius: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255,255,255,.8);
      padding: 0 14px;
    }

    .ngyt-input-wrap input,
    .ngyt-form textarea {
      border: 0;
      outline: 0;
      width: 100%;
      background: transparent;
      color: var(--ink);
    }

    .ngyt-form textarea {
      min-height: 108px;
      resize: vertical;
      border: 1px solid #dfe2ec;
      border-radius: 10px;
      padding: 16px;
      background: rgba(255,255,255,.8);
    }

    .ngyt-upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .ngyt-upload {
      border: 1.5px dashed #cbd2e1;
      border-radius: 10px;
      min-height: 92px;
      display: grid;
      place-items: center;
      text-align: center;
      color: #52617f;
      background: rgba(255,255,255,.58);
      cursor: pointer;
      overflow: hidden;
    }

    .ngyt-upload img {
      width: 100%;
      height: 92px;
      object-fit: cover;
      display: block;
    }

    .ngyt-avatar-upload {
      width: var(--upload-tile);
      height: var(--upload-tile);
      min-height: 0;
      padding: 6px;
      font-size: 11px;
      line-height: 1.25;
    }

    .ngyt-avatar-upload img {
      height: 100%;
    }

    .ngyt-avatar-preview {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .ngyt-upload-preview-grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 10px;
      margin-top: 10px;
    }

    .ngyt-album-grid {
      display: grid;
      grid-template-columns: repeat(6, var(--upload-tile));
      gap: 10px;
      margin-top: 8px;
    }

    .ngyt-album-grid .ngyt-upload,
    .ngyt-album-grid .ngyt-upload-thumb {
      width: var(--upload-tile);
      height: var(--upload-tile);
      min-height: 0;
      margin: 0;
    }

    .ngyt-album-grid .ngyt-upload {
      padding: 6px;
      font-size: 11px;
      line-height: 1.25;
    }

    .ngyt-album-grid .ngyt-upload small {
      display: none;
    }

    .ngyt-album-grid .ngyt-upload-preview-grid {
      display: contents;
      margin: 0;
    }

    .ngyt-upload-thumb {
      position: relative;
      border: 1px solid #e5e8ef;
      border-radius: 9px;
      overflow: hidden;
      background: white;
      aspect-ratio: 1.35 / 1;
    }

    .ngyt-upload-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .ngyt-upload-remove {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 24px;
      height: 24px;
      border: 0;
      border-radius: 999px;
      display: grid;
      place-items: center;
      color: var(--pink);
      background: rgba(255,255,255,.92);
      box-shadow: 0 4px 10px rgba(20,35,70,.12);
    }

    .ngyt-upload-remove svg {
      width: 15px;
      height: 15px;
    }

    .ngyt-moments { display: grid; gap: 10px; }
    .ngyt-moments-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .ngyt-moment {
      display: grid;
      grid-template-columns: 78px 1fr 48px;
      gap: 10px;
      align-items: center;
    }

    .ngyt-moment-upload {
      width: 78px;
      height: 50px;
      border: 1.5px dashed #cbd2e1;
      border-radius: 9px;
      display: grid;
      place-items: center;
      color: #52617f;
      background: rgba(255,255,255,.72);
      cursor: pointer;
      overflow: hidden;
      text-align: center;
      font-size: 10px;
      line-height: 1.3;
    }

    .ngyt-moment-upload img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .ngyt-moment-upload small {
      color: var(--muted);
      font-size: 9px;
    }



    .ngyt-composite-grid {
      display: grid;
      grid-template-columns: 86px minmax(0, 1fr);
      gap: 10px;
      align-items: end;
    }

    .ngyt-composite-field {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .ngyt-composite-file {
      align-self: stretch;
    }

    .ngyt-composite-wide {
      grid-column: 1 / -1;
    }

    .ngyt-moment-upload .ngyt-upload-remove {
      top: 4px;
      right: 4px;
      width: 22px;
      height: 22px;
    }

    .ngyt-delete {
      height: 48px;
      border: 0;
      border-radius: 10px;
      color: var(--pink);
      background: #fff0f4;
      font-size: 24px;
      display: grid;
      place-items: center;
    }

    .ngyt-add-moment {
      justify-self: start;
      height: 36px;
      border-radius: 999px;
      padding: 0 14px;
      border: 1px solid #ff8eaa;
      color: var(--pink);
      background: #fff7fa;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
    }

    .ngyt-share-box, .ngyt-success {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255,255,255,.72);
      padding: 18px;
    }

    .ngyt-music-card {
      margin-bottom: 16px;
    }

    .ngyt-privacy-card {
      margin-top: 16px;
    }
    .ngyt-song {
      
      display: grid;
      grid-template-columns: 64px 1fr auto auto;
      align-items: center;
      gap: 16px;
      
    }

    .ngyt-song[hidden],
    .ngyt-music-status:empty {
      display: none;
    }

    .ngyt-song-cover {
      position: relative;
      width: 64px;
      height: 64px;
      border-radius: 9px;
      overflow: hidden;
      background: #1d1432;
    }

    .ngyt-song-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .ngyt-music-bars {
      position: absolute;
      inset: 0;
      display: none;
      align-items: flex-end;
      justify-content: center;
      gap: 3px;
      padding: 12px;
      background: rgba(18, 12, 34, .38);
    }

    .ngyt-music-bars span {
      width: 4px;
      height: 18px;
      border-radius: 999px;
      background: white;
      animation: ngyt-equalizer .72s ease-in-out infinite;
      box-shadow: 0 0 8px rgba(255,255,255,.32);
    }

    .ngyt-music-bars span:nth-child(2) { animation-delay: .12s; }
    .ngyt-music-bars span:nth-child(3) { animation-delay: .24s; }
    .ngyt-music-bars span:nth-child(4) { animation-delay: .36s; }

    .ngyt-song.ngyt-playing .ngyt-music-bars {
      display: flex;
    }

    strong[data-music-title] {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      height: 2.6em;
      line-height: 1.4em;
      font-size: 13px;
  }

    @keyframes ngyt-equalizer {
      0%, 100% { height: 14px; }
      50% { height: 38px; }
    }

    .ngyt-play {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      border: 2px solid var(--pink);
      background: white;
      color: var(--pink);
      font-size: 22px;
      display: grid;
      place-items: center;
    }

    .ngyt-music-status {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .ngyt-music-status.ngyt-error {
      color: #d92d54;
    }

    .ngyt-form .flatpickr-calendar {
      border: 1px solid #ffd0dc;
      border-radius: 14px;
      box-shadow: 0 16px 38px rgba(255, 47, 102, .14);
      font-family: inherit;
      overflow: hidden;
    }

    .ngyt-form .flatpickr-day.selected,
    .ngyt-form .flatpickr-day.startRange,
    .ngyt-form .flatpickr-day.endRange {
      border-color: var(--pink);
      background: var(--pink);
    }

    .ngyt-form .flatpickr-day.today {
      border-color: var(--pink-2);
    }

    .ngyt-privacy-options {
      display: grid;
      grid-template-columns: 1fr;
      gap: 7px;
    }

    .ngyt-option {
     
      padding: 0px 10px;
      min-height: 0;
      background: white;
      cursor: pointer;
      text-align: left;
    }

    .ngyt-option.ngyt-active {
     /* border-color: #86ddb2;
      background: linear-gradient(135deg, #f2fff8, #fff);*/
    }

    .ngyt-option strong {
      width: 100%;
      color: var(--ink);
      font-size: 14px;
      min-height: 28px;
    }

    .ngyt-option .ngyt-hint {
      display: none;
    }

    .ngyt-option-check {
      width: 17px;
      height: 17px;
      margin-left: auto;
      border: 2px solid #c7cedc;
      border-radius: 999px;
      display: inline-grid;
      place-items: center;
      color: transparent;
      background: white;
    }

    .ngyt-option-check svg {
      width: 11px;
      height: 11px;
      stroke-width: 3;
      display: block;
    }

    .ngyt-option.ngyt-active .ngyt-option-check {
      border-color: #20c777;
      color: white;
      background: #20c777;
    }

    .ngyt-password-field {
      display: none;
      margin-top: 6px;
      padding-top: 8px;
      border-top: 1px dashed #ffd0dc;
    }

    .ngyt-password-field label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 6px;
      font-size: 13px;
    }

    .ngyt-password-field .ngyt-input-wrap {
      min-height: 42px;
    }

    .ngyt-option.ngyt-active .ngyt-password-field {
      display: block;
    }

    .ngyt-success {
      display: flex;
      align-items: center;
      gap: 24px;
      border-color: #8fe0b5;
      background: linear-gradient(90deg, #edfff5, rgba(255,255,255,.75));
      margin-bottom: 18px;
    }

    .ngyt-success-mark {
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: var(--green);
      color: white;
      display: grid;
      place-items: center;
      font-size: 32px;
      font-weight: 900;
    }

    .ngyt-success-mark .ngyt-icon {
      width: 34px;
      height: 34px;
    }

    .ngyt-share-grid {
      display: grid;
      grid-template-columns: .75fr 1.25fr;
      gap: 18px;
    }

    .ngyt-step4-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 18px;
    }

    .ngyt-share-panel {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(255,255,255,.72);
      padding: 18px;
    }

    .ngyt-summary-preview {
      position: relative;
      border-radius: 12px;
      overflow: hidden;
      background: #ffe8ee;
      margin-top: 16px;
    }

    .ngyt-summary-preview img {
      width: 100%;
      aspect-ratio: 1.9 / 1;
      object-fit: cover;
      display: block;
    }

    .ngyt-summary-preview .ngyt-secondary {
      position: absolute;
      left: 50%;
      bottom: 12px;
      transform: translateX(-50%);
      min-height: 44px;
      min-width: 230px;
      color: var(--pink);
      background: rgba(255,255,255,.92);
    }

    .ngyt-share-panel > .ngyt-share-box,
    .ngyt-share-panel > .ngyt-share-grid,
    .ngyt-share-panel > .ngyt-account-note,
    .ngyt-share-panel > .ngyt-step4-actions {
      margin-top: 14px;
    }

    .ngyt-share-panel > .ngyt-share-box:first-of-type {
      margin-top: 0;
    }

    .ngyt-summary-list {
      border: 1px solid #e5e8ef;
      border-radius: 12px;
      overflow: hidden;
      margin-bottom: 18px;
    }

    .ngyt-summary-list div {
      display: grid;
      grid-template-columns: 140px 1fr;
      padding: 14px 16px;
      border-bottom: 1px solid #edf0f5;
      color: #596684;
    }

    .ngyt-summary-list div:last-child { border-bottom: 0; }
    .ngyt-summary-list strong { color: var(--ink); text-align: right; }

    .ngyt-link-row { display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
    .ngyt-copy-btn, .ngyt-primary, .ngyt-secondary {
      border: 0;
      border-radius: 9px;
      min-height: 50px;
      font-weight: 800;
      color: white;
      background: linear-gradient(90deg, #ff1e5f, #2f60dc);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }

    .ngyt-copy-btn { background: linear-gradient(135deg, #ff2d66, #f72968); }
    .ngyt-copy-btn.is-copied,
    .ngyt-share-actions button.is-copied,
    [data-copy-source].is-copied,
    [data-copy-value].is-copied {
      background: linear-gradient(135deg, #10b981, #22c55e) !important;
      color: #fff !important;
      box-shadow: 0 14px 30px rgba(16, 185, 129, .24);
      transform: translateY(-1px);
    }
    .ngyt-secondary { color: var(--ink); background: white; border: 1px solid #dfe2ec; }

    .ngyt-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
    .ngyt-share-actions button {
      min-height: 54px;
      border: 1px solid #dfe2ec;
      background: white;
      border-radius: 9px;
      font-weight: 750;
      color: var(--ink);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
    }

    .ngyt-brand-icon {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 12px;
      font-weight: 900;
      line-height: 1;
      flex: 0 0 auto;
    }

    .ngyt-brand-zalo { background: #0b8bff; font-size: 10px; }
    .ngyt-brand-messenger { background: linear-gradient(135deg, #7b2cff, #ff2a8b); }
    .ngyt-brand-facebook { background: #1877f2; font-size: 20px; font-family: Arial, sans-serif; }
    .ngyt-brand-telegram { background: #2aabee; }
    .ngyt-account-note {
      display: grid;
      grid-template-columns: 58px 1fr;
      gap: 16px;
      border: 1px solid #ffd7e4;
      border-radius: 14px;
      background: linear-gradient(135deg, #fff7fa, #fff);
      padding: 18px;
      color: #5f667f;
    }

    .ngyt-account-icon {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      color: #fff;
      background: linear-gradient(135deg, #ff2d66, #8b5cf6);
      box-shadow: 0 16px 30px rgba(255, 45, 102, .2);
    }

    .ngyt-account-note h3 {
      margin: 0 0 8px;
      color: var(--ink);
      font-size: 20px;
      line-height: 1.25;
    }

    .ngyt-account-note p {
      margin: 0 0 10px;
      line-height: 1.65;
    }

    .ngyt-account-note p:last-of-type {
      margin-bottom: 14px;
    }

    .ngyt-account-login {
      width: fit-content;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border-radius: 9px;
      background: linear-gradient(135deg, #ff2d66, #f72968);
      color: #fff;
      font-weight: 800;
      padding: 10px 16px;
      text-decoration: none;
      box-shadow: 0 14px 30px rgba(255, 45, 102, .18);
    }

    .ngyt-preview-panel { display: flex; flex-direction: column; }
    .ngyt-preview-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      font-weight: 800;
      font-size: 18px;
      gap: 10px;
      flex-wrap: nowrap;
    }

    .ngyt-preview-badge {
      color: var(--pink);
      border: 1px solid #ff9ab3;
      background: #fff2f6;
      padding: 8px 12px;
      border-radius: 12px;
      font-size: 14px;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .ngyt-preview-img-wrap {
      border-radius: 14px;
      overflow: hidden;
      background: #ffe8ee;
      position: relative;
    }

    .ngyt-preview-img-wrap img {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      display: block;
    }

    .ngyt-zoom-btn {
      position: absolute;
      left: 50%;
      bottom: 16px;
      transform: translateX(-50%);
      min-width: 220px;
      height: 54px;
      border: 0;
      border-radius: 10px;
      color: var(--ink);
      background: rgba(255,255,255,.9);
      box-shadow: 0 10px 22px rgba(20,35,70,.12);
      font-weight: 800;
    }

    .ngyt-footer {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: 14px;
      align-items: center;
      margin-top: 14px;
    }

    .ngyt-content.ngyt-final-mode .ngyt-footer {
      grid-template-columns: minmax(220px, 300px);
      justify-content: end;
    }

    .ngyt-back {
      min-height: 52px;
      border: 1px solid #d8deea;
      color: var(--ink);
      background: white;
      border-radius: 10px;
      font-weight: 800;
    }

    .ngyt-back[hidden] {
      display: none;
    }

    .ngyt-footer:has(.ngyt-back[hidden]) {
      grid-template-columns: 1fr;
    }

    .ngyt-primary { min-height: 52px; font-size: 18px; }
    .ngyt-footnote {
      grid-column: 1 / -1;
      text-align: center;
      color: #8290ad;
      font-size: 14px;
      margin-top: -4px;
      display: grid;
      gap: 3px;
    }

    .ngyt-guide-link {
      color: var(--pink);
      font-weight: 800;
      text-decoration: none;
      width: max-content;
      margin: 0 auto;
    }

    .ngyt-guide-link:hover {
      text-decoration: underline;
    }

    .ngyt-submit-status {
      grid-column: 1 / -1;
      min-height: 20px;
      text-align: center;
      color: #8290ad;
      font-size: 13px;
    }

    .ngyt-submit-status.ngyt-error {
      color: #d92d54;
    }

    [data-page] { display: none; }
    [data-page].ngyt-active { display: block; }

    @media (max-width: 980px) {
      .ngyt-app {
        width: 100%;
        margin: 0;
      }

      .ngyt-brand { display: none; }

      .ngyt-shell {
        border-radius: 18px;
        padding: 0;
        overflow: hidden;
      }

      .ngyt-stepper { display: none; }

      .ngyt-mobile-progress {
        display: block;
        padding: 18px 20px 16px;
        border-bottom: 1px solid #f1dfe5;
        text-align: center;
      }

      .ngyt-mobile-progress h1 {
        margin: 0 0 18px;
        color: var(--pink);
        font-size: clamp(24px, 5vw, 34px);
        letter-spacing: 0;
      }

      .ngyt-dots {
        display: grid;
        grid-template-columns: repeat(4, 46px);
        justify-content: center;
        gap: 72px;
        position: relative;
      }

      .ngyt-dots::before {
        content: "";
        position: absolute;
        top: 22px;
        left: calc(50% - 178px);
        width: 356px;
        height: 2px;
        background: #d8deea;
      }

      .ngyt-dot {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        position: relative;
        z-index: 1;
        border: 2px solid #d8deea;
        background: #f2f4f8;
        color: #7b869e;
        font-weight: 900;
      }

      .ngyt-dot svg {
        width: 22px;
        height: 22px;
        stroke-width: 2;
      }

      .ngyt-dot.ngyt-active, .ngyt-dot.ngyt-done {
        border-color: var(--pink);
        background: var(--pink);
        color: white;
      }

      .ngyt-dot.ngyt-done { background: white; color: var(--pink); }

      .ngyt-content { display: block; padding: 18px 16px 0; }
      .ngyt-main-column { min-width: 0; }

      .ngyt-panel {
        border-radius: 18px;
        padding: 20px;
        margin-bottom: 14px;
      }

      .ngyt-panel-title { font-size: 28px; }
      .ngyt-panel-title small { display: none; }
      .ngyt-hint { font-size: 18px; }

      .ngyt-template-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px 24px;
      }

      .ngyt-template-card img { aspect-ratio: 3 / 4; height: auto; }
      .ngyt-template-card span { font-size: 18px; padding: 14px 8px; }
      .ngyt-categories { padding-bottom: 24px; }
      .ngyt-pill { height: 48px; padding: 0 20px; font-size: 16px; }

      .ngyt-desktop-only { display: none !important; }
      .ngyt-preview-panel {
        margin-top: 20px;
        background: #fff8fa;
      }

      .ngyt-preview-img-wrap img {
        aspect-ratio: 1.65 / 1;
        object-position: center;
      }

      .ngyt-zoom-btn { display: none; }
      .ngyt-form-grid, .ngyt-upload-row, .ngyt-privacy-options, .ngyt-share-grid, .ngyt-account-note, .ngyt-step4-layout { grid-template-columns: 1fr; }
      .ngyt-moment { grid-template-columns: 1fr 44px; }
      .ngyt-composite-grid { grid-template-columns: 78px minmax(0, 1fr); }
      .ngyt-moment-upload { width: 78px; }
      .ngyt-album-grid { grid-template-columns: repeat(3, var(--upload-tile)); }
      .ngyt-song { grid-template-columns: 74px 1fr auto; }
      .ngyt-song time { display: none; }
      .ngyt-link-row { grid-template-columns: 1fr; }
      .ngyt-share-actions { grid-template-columns: 1fr 1fr; }
      .ngyt-summary-list div { grid-template-columns: 1fr; gap: 4px; }
      .ngyt-summary-list strong { text-align: left; }

      .ngyt-footer {
        position: sticky;
        bottom: 0;
        z-index: 5;
        grid-template-columns: 1fr;
        background: rgba(255,255,255,.86);
        backdrop-filter: blur(12px);
        padding: 14px 22px 20px;
        margin: 0;
      }

      .ngyt-content.ngyt-final-mode .ngyt-footer {
        grid-template-columns: 1fr;
        justify-content: stretch;
      }

      .ngyt-back { display: none; }
      .ngyt-primary { min-height: 64px; border-radius: 10px; font-size: 24px; }
    }

    @media (max-width: 560px) {
      .ngyt-app { width: 100%; margin: 0; }
      .ngyt-mobile-progress { padding: 20px 14px 16px; }
      .ngyt-content { padding: 14px 0px 0; }
      .ngyt-panel {         padding: 0;
        border: 0;
        box-shadow: unset; }
      .ngyt-dots { gap: 42px; }
      .ngyt-dots::before { left: calc(50% - 132px); width: 264px; }
      .ngyt-template-grid { gap: 14px; }
      .ngyt-template-card img { aspect-ratio: 3 / 4; height: auto; }
      .ngyt-template-card span { font-size: 15px; }
      .ngyt-panel-title { font-size: 22px; }
      .ngyt-share-actions { grid-template-columns: 1fr; }
    }

/* Composite repeater: compact moment card layout */
.ngyt-moment-list {
  display: grid;
  gap: 10px;
}

.ngyt-moment.ngyt-moment-item {
  position: relative;
  display: block;
  padding: 12px 52px 12px 12px;
  border: 1px solid #eef0f6;
  border-radius: 12px;
  background: #fff;
}

.ngyt-moment.ngyt-moment-item .ngyt-composite-grid {
  display: grid;
  grid-template-columns: 86px minmax(150px, .9fr) minmax(220px, 1.2fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
}

.ngyt-moment.ngyt-moment-item[data-child-count="2"] .ngyt-composite-grid {
  grid-template-columns: 86px minmax(0, 1fr);
}

.ngyt-moment.ngyt-moment-item[data-child-count="2"] .ngyt-composite-field:not(.ngyt-composite-file) {
  align-self: stretch;
}

.ngyt-moment.ngyt-moment-item .ngyt-composite-file {
  grid-row: span 2;
}

.ngyt-moment.ngyt-moment-item[data-child-count="2"] .ngyt-composite-file {
  grid-row: auto;
}

.ngyt-moment.ngyt-moment-item .ngyt-moment-upload {
  width: 86px;
  height: 86px;
  min-height: 86px;
}

.ngyt-moment.ngyt-moment-item .ngyt-moment-upload span[data-moment-placeholder] {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.ngyt-moment.ngyt-moment-item .ngyt-moment-upload .ngyt-icon {
  width: 20px;
  height: 20px;
}

.ngyt-moment.ngyt-moment-item .ngyt-composite-field {
  min-width: 0;
}

.ngyt-moment.ngyt-moment-item .ngyt-composite-field .ngyt-field-label {
  margin-bottom: 4px;
}

.ngyt-moment.ngyt-moment-item .ngyt-composite-wide {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.ngyt-moment.ngyt-moment-item .ngyt-composite-wide textarea {
  min-height: 86px;
  height: 100%;
  resize: vertical;
}

.ngyt-moment.ngyt-moment-item .ngyt-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
}

.ngyt-moment.ngyt-moment-item .ngyt-delete .ngyt-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .ngyt-moment.ngyt-moment-item {
    padding: 12px;
  }

  .ngyt-moment.ngyt-moment-item .ngyt-composite-grid {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .ngyt-moment.ngyt-moment-item .ngyt-composite-file {
    grid-row: span 2;
  }

  .ngyt-moment.ngyt-moment-item .ngyt-moment-upload {
    width: 82px;
    height: 82px;
  }

  .ngyt-moment.ngyt-moment-item .ngyt-composite-wide {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ngyt-moment.ngyt-moment-item .ngyt-delete {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}

/* Keep the moment image remove button pinned to the image tile. */
.ngyt-moment-upload {
  position: relative;
  overflow: hidden;
}

.ngyt-moment-upload [data-moment-preview] {
  position: absolute;
  inset: 0;
  display: block;
}

.ngyt-moment-upload [data-moment-preview][hidden] {
  display: none !important;
}

.ngyt-moment-upload [data-moment-preview] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ngyt-moment-upload .ngyt-upload-remove[data-remove-moment-image] {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
}

.ngyt-upload.ngyt-upload-disabled {
  opacity: .62;
  cursor: not-allowed;
}


/* Plugin form preview flip mode */
.ngyt-preview-toggle,
.ngyt-preview-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ffd0dc;
  border-radius: 9px;
  min-height: 50px;
  padding: 0 18px;
  background: #fff7fa;
  color: var(--pink);
  font-weight: 800;
  cursor: pointer;
}
.ngyt-preview-toggle:hover,
.ngyt-preview-back:hover {
  background: #fff0f5;
  border-color: #ff8aaa;
}
.ngyt-content:not(.ngyt-final-mode) {
  grid-template-columns: minmax(0, 1fr);
}
.ngyt-content:not(.ngyt-final-mode):not(.ngyt-preview-mode) .ngyt-preview-panel {
  display: none;
}
.ngyt-content.ngyt-preview-mode:not(.ngyt-final-mode) .ngyt-main-column {
  display: none;
}
.ngyt-content.ngyt-preview-mode:not(.ngyt-final-mode) .ngyt-preview-panel {
  display: flex;
  width: min(100%, 920px);
  margin: 0 auto;
  min-height: 0;
  animation: ngytPanelIn .22s ease both;
}
.ngyt-content.ngyt-preview-mode:not(.ngyt-final-mode) .ngyt-preview-img-wrap {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.ngyt-preview-back[hidden] {
  display: none !important;
}
.ngyt-preview-head {
  gap: 10px;
  flex-wrap: nowrap;
}
.ngyt-preview-back {
  margin-left: auto;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}
.ngyt-footer {
  grid-template-columns: 160px minmax(150px, 190px) 1fr;
}
.ngyt-footer:has(.ngyt-back[hidden]) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.ngyt-back { order: 1; }
.ngyt-primary { order: 2; }
.ngyt-preview-toggle { order: 3; }
.ngyt-footnote,
.ngyt-submit-status { order: 4; }
.ngyt-existing-uploads {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 47, 102, .32);
  border-radius: 16px;
  background: #fff8fb;
  padding: 16px;
}
.ngyt-existing-uploads strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.ngyt-existing-uploads p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.ngyt-existing-uploads div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
}
.ngyt-existing-uploads a {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 47, 102, .16);
}
.ngyt-existing-uploads img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes ngytPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 980px) {
  .ngyt-footer,
  .ngyt-footer:has(.ngyt-back[hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ngyt-back { grid-column: 1; order: 1; }
  .ngyt-primary { grid-column: 2; order: 2; }
  .ngyt-preview-toggle {
    width: 100%;
    grid-column: 1 / -1;
    order: 3;
  }
  .ngyt-footnote,
  .ngyt-submit-status {
    grid-column: 1 / -1;
    order: 4;
  }
  .ngyt-preview-back {
    width: 100%;
    margin-left: 0;
  }
}

