.nsd, .nsd-dialog { color: var(--pop-text, #f4f7fc); font: inherit; }
.nsd *, .nsd-dialog * { box-sizing: border-box; }
.nsd [hidden], .nsd-dialog [hidden] { display: none !important; }
.nsd { padding: 28px; margin: 24px 0; border: 1px solid var(--pop-line-2); border-radius: 24px; background: var(--pop-card, #0e1c3d); scroll-margin-top: 150px; }
.nsd h2, .nsd h3, .nsd p, .nsd-dialog h2, .nsd-dialog p { margin: 0; }
.nsd h2 { font-size: 24px; letter-spacing: -.6px; }
.nsd h3 { font-size: 17px; }
.nsd-head, .nsd-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nsd-title { display: flex; align-items: center; gap: 12px; }
.nsd-glyph { display: grid; place-items: center; width: 44px; height: 44px; background: var(--pop-card-2); color: var(--sky-light, #9ed0f4); border: 1px solid var(--pop-line-2); border-radius: 13px; font-size: 23px; flex-shrink: 0; }
.nsd-copy, .nsd-small { color: var(--pop-muted, #9daed0); line-height: 1.6; }
.nsd-copy { margin-top: 4px !important; font-size: 14px; }
.nsd-small { font-size: 12px; }
.nsd button, .nsd-dialog button { font: inherit; cursor: pointer; border: 1px solid var(--pop-line-2); border-radius: 12px; padding: 11px 16px; min-height: 44px; background: var(--pop-card-2); color: var(--pop-text); transition: border-color .15s, background .15s; }
.nsd button:hover:not(:disabled), .nsd-dialog button:hover:not(:disabled) { border-color: var(--sky, #6cabdd); }
.nsd button:disabled, .nsd-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.nsd :focus-visible, .nsd-dialog :focus-visible { outline: 2px solid var(--sky, #6cabdd); outline-offset: 3px; }
.nsd .nsd-primary, .nsd-dialog .nsd-primary { background: var(--pop-lime, #c8f31d); border-color: transparent; color: #070f24; font-weight: 750; }
.nsd .nsd-link, .nsd-dialog .nsd-link { padding: 6px 2px; border-color: transparent; background: transparent; color: var(--sky-light, #9ed0f4); font-size: 13px; }
.nsd-platforms { display: flex; gap: 10px; margin: 24px 0 14px; flex-wrap: wrap; }
.nsd-platforms button { flex: 1 1 130px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.nsd-platforms svg { width: 21px; height: 21px; }
.nsd button[aria-pressed="true"], .nsd-dialog button[aria-pressed="true"] { color: var(--sky-light, #9ed0f4); background: var(--pop-card-2); border-color: var(--sky, #6cabdd); box-shadow: inset 0 0 0 1px var(--sky, #6cabdd); }
.nsd-kinds { display: flex; gap: 8px; margin-bottom: 16px; }
.nsd-service { padding: 20px; border-radius: 16px; background: var(--pop-card-2); }
.nsd-service button { flex-shrink: 0; }
.nsd-history { border-top: 1px solid var(--pop-line-2); margin-top: 24px; padding-top: 16px; }
.nsd .nsd-order { text-align: left; width: 100%; border: 0; padding: 14px 0 0; background: transparent; }
.nsd-order-main, .nsd-order-end { display: grid; gap: 5px; min-width: 0; }
.nsd-order-main strong { overflow-wrap: anywhere; }
.nsd-order-end { text-align: right; justify-items: end; flex-shrink: 0; }
.nsd-status { color: var(--sky-light, #9ed0f4); background: var(--pop-card-2); padding: 4px 9px; border-radius: 8px; font-size: 12px; text-transform: capitalize; }
.nsd-notice { font-size: 13px; color: var(--pop-muted); line-height: 1.6; overflow-wrap: anywhere; }
.nsd-notice:not(:empty) { margin: 12px 0 !important; }
.nsd-recovery { margin-top: 16px; padding: 16px; border: 1px solid var(--sky, #6cabdd); border-radius: 14px; }
.nsd-recovery button { margin: 10px 8px 0 0; }
.nsd-dialog { width: min(620px, calc(100% - 32px)); max-height: min(900px, 92dvh); margin: auto; padding: 0; border: 1px solid var(--pop-line-2); border-radius: 24px; background: var(--pop-card, #0e1c3d); box-shadow: 0 28px 90px #0008; overflow: hidden; overscroll-behavior: contain; }
.nsd-dialog[open] { display: flex; flex-direction: column; }
.nsd-dialog .nsd-head, .nsd-dialog .nsd-actions { flex-shrink: 0; }
.nsd-dialog::backdrop { background: #020819b8; backdrop-filter: blur(6px); }
.nsd-dialog .nsd-head { padding: 24px 24px 18px; border-bottom: 1px solid var(--pop-line-2); }
.nsd-dialog h2 { font-size: 23px; letter-spacing: -.5px; }
.nsd-eyebrow { color: var(--sky-light, #9ed0f4); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.nsd-dialog .nsd-close { padding: 7px; width: 44px; font-size: 24px; }
.nsd-dialog-body { padding: 22px 24px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nsd-dialog fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.nsd-dialog legend, .nsd-field > span { display: block; font-weight: 650; font-size: 13px; margin-bottom: 9px; }
.nsd-tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.nsd-tiers button { flex: 1; }
.nsd-quantities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 13px; }
.nsd-quantities button { display: grid; gap: 5px; text-align: left; padding: 12px; min-width: 0; }
.nsd-quantities strong { font-size: 17px; }
.nsd-quantities small { color: var(--pop-muted); font-size: 11px; }
.nsd-field { display: block; margin-bottom: 16px; }
.nsd-field input { width: 100%; background: var(--pop-card-2); color: var(--pop-text); border: 1px solid var(--pop-line-2); font: inherit; padding: 12px; min-height: 46px; border-radius: 10px; }
.nsd-field input::placeholder { color: var(--pop-muted); opacity: 1; }
.nsd-terms { font-size: 12px; line-height: 1.65; color: var(--pop-muted); white-space: pre-line; }
.nsd-summary { margin: 18px 0 14px; border: 1px solid var(--pop-line-2); border-radius: 14px; background: var(--pop-card-2); padding: 16px; }
.nsd-summary .nsd-row + .nsd-row { margin-top: 10px; }
.nsd-total { font-size: 23px; font-weight: 750; }
.nsd-ack { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.5; color: var(--pop-muted); }
.nsd-ack input { margin-top: 3px; accent-color: var(--sky, #6cabdd); }
.nsd-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--pop-line-2); background: var(--pop-card); }
@media (max-width: 640px) {
 .nsd { padding: 20px 16px; border-radius: 19px; }
 .nsd-platforms { gap: 7px; }.nsd-platforms button { flex: 1 1 80px; padding: 10px 8px; font-size: 12px; }
 .nsd-service { align-items: stretch; flex-direction: column; padding: 16px; gap: 14px; }
 .nsd-dialog { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
 .nsd-dialog .nsd-head, .nsd-dialog-body { padding: 20px; }
 .nsd-quantities { grid-template-columns: repeat(2, 1fr); }
 .nsd-actions { padding: 16px 20px max(18px, env(safe-area-inset-bottom)); }
 .nsd-actions .nsd-primary { flex: 1; }
 .nsd-order { align-items: flex-start; }.nsd-order-end strong { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .nsd button, .nsd-dialog button { transition: none; } }
