body.pt-open { overflow: hidden; }
.pt-dialog, .pt-dialog * { box-sizing: border-box; }
.pt-dialog {
  --pt-ink: #201e51; --pt-paper: #fffaf0; --pt-lilac: #cec4fb; --pt-quiet: #54516d;
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(33rem, calc(100vw - 2rem)); max-width: none;
  max-height: min(92dvh, 56rem); overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid #242249; border-radius: 21px; color: var(--pt-ink); background: var(--pt-paper);
  box-shadow: 0 25px 88px #14122f47; font-family: inherit; line-height: 1.4; text-align: start;
}
.pt-dialog::backdrop { background: #12112d8f; backdrop-filter: blur(4px); }
.pt-dialog[open] { animation: pt-in .23s ease-out; }
@keyframes pt-in { from { opacity: 0; transform: translateY(12px) rotate(-.6deg); } to { opacity: 1; transform: translateY(0); } }
.pt-paper { isolation: isolate; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.5rem .87rem; background: var(--pt-lilac); }
.pt-mark { display: flex; align-items: center; gap: .65rem; }
.pt-mark svg { width: 2.4rem; height: 2.4rem; transform: rotate(-10deg); }
.pt-mark strong, .pt-dialog button, .pt-dialog input { font-family: inherit; }
.pt-mark strong { font-size: 1.22rem; font-weight: 800; letter-spacing: -.035em; }
.pt-dialog button { margin: 0; cursor: pointer; color: inherit; line-height: 1.2; }
.pt-close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid #51487566; background: transparent; border-radius: 50%; padding: .7rem; }
.pt-close svg { width: 1.1rem; height: 1.1rem; }
.pt-close:hover { background: #fff8; }
.pt-stub { position: relative; display: block; height: 1px; background: repeating-linear-gradient(90deg,#6c6391 0 4px,transparent 4px 9px); }
.pt-stub::before, .pt-stub::after { content: ''; position: absolute; top: -8px; width: 1rem; height: 1rem; border-radius: 50%; background: #353248; border: 1px solid #242249; }
.pt-stub::before { left: -.58rem; } .pt-stub::after { right: -.58rem; }
.pt-inner { padding: 1.45rem 1.65rem 1.6rem; }
.pt-progress { display: flex; justify-content: space-between; gap: .75rem; align-items: center; margin: 0 0 .7rem; font-size: .83rem; font-weight: 650; color: var(--pt-quiet); }
.pt-progress span:last-child { text-align: end; }
.pt-inner h2 { margin: 0 0 1.15rem; color: var(--pt-ink); font-size: clamp(1.85rem, 5vw, 2.6rem); line-height: 1.03; letter-spacing: -.062em; font-family: inherit; font-weight: 800; }
.pt-inner h2:focus { outline: none; }
.pt-dialog[dir=rtl] :is(h2,strong,.pt-pick-face,.pt-primary,.pt-secondary) { letter-spacing: normal; }
.pt-dialog[dir=rtl] h2 { line-height: 1.4; }
.pt-note { margin: -.42rem 0 1.2rem; font-size: 1rem; line-height: 1.55; color: var(--pt-quiet); }
.pt-dialog :is(fieldset,ul) { min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.pt-picks, .pt-budgets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; }
.pt-pick, .pt-cap { position: relative; display: block; cursor: pointer; }
.pt-pick input, .pt-cap input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pt-pick-face, .pt-cap>span {
  position: relative; display: flex; align-items: center; gap: .65rem; min-height: 3.9rem;
  padding: .65rem .8rem; background: #fffdfa; border: 1.5px solid #d9d4c8; border-radius: 12px;
  font-size: .98rem; font-weight: 700; line-height: 1.25; transition: border-color .14s, background-color .14s;
}
.pt-pick-face i, .pt-cap i { width: .75rem; height: .75rem; flex: 0 0 .75rem; margin-inline-start: auto; border: 1.5px solid #a29baf; border-radius: 50%; }
.pt-i-any { grid-column: 1/-1; }
.pt-symbol { flex: 0 0 auto; width: 2.15rem; height: 2.15rem; display: grid; place-items: center; border-radius: 9px; background: #f8d9d1; }
.pt-symbol svg { width: 1.35rem; height: 1.35rem; }
.pt-i-make .pt-symbol { background: #f9db7b; }
.pt-i-imagine .pt-symbol { background: #d8cffa; }
.pt-i-cuddle .pt-symbol { background: #f2c9b6; }
.pt-i-any .pt-symbol { background: #d2e5d4; }
.pt-pick:hover .pt-pick-face, .pt-cap:hover>span { border-color: #71678b; }
.pt-pick input:checked+.pt-pick-face, .pt-cap input:checked+span { border-color: var(--pt-ink); background: #eeebfc; box-shadow: inset 0 0 0 .5px var(--pt-ink); }
.pt-dialog input:checked+span i { background: var(--pt-ink); border-color: var(--pt-ink); box-shadow: inset 0 0 0 2px #eeebfc; }
.pt-dialog button:focus-visible, .pt-dialog input:focus-visible+span { outline: 3px solid #785dab; outline-offset: 3px; }
.pt-cap>span { padding: .85rem .9rem; flex-flow: column; align-items: flex-start; gap: .24rem; }
.pt-cap i { position: absolute; inset-inline-end: .8rem; top: .9rem; }
.pt-cap small { color: var(--pt-quiet); font-size: .85rem; font-weight: 500; }
.pt-cap strong { font-size: 1.1rem; }
.pt-actions { display: flex; gap: .67rem; margin-top: 1.25rem; }
.pt-dialog :is(.pt-primary,.pt-secondary) { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .75rem 1.15rem; border: 1.5px solid var(--pt-ink); border-radius: .75rem; font-size: .98rem; font-weight: 750; text-align: center; }
.pt-dialog .pt-primary { flex: 1; color: #fff; background: var(--pt-ink); box-shadow: 0 3px 0 #b8a8d8; }
.pt-dialog .pt-primary:hover { background: #39356b; }
.pt-dialog .pt-secondary { color: var(--pt-ink); background: transparent; border-color: #beb8bc; }
.pt-dialog .pt-secondary:hover { background: #eeebfb; border-color: #4b4869; }
.pt-switch { display: inline-flex; gap: .15rem; margin: -.18rem 0 1rem; padding: 3px; min-height: 2.8rem; border-radius: 2rem; border: 1px solid #c7bfdd; background: #e8e1f4; }
.pt-switch button { min-height: 2.68rem; background: transparent; border: 1px solid transparent; font-size: .9rem; font-weight: 700; border-radius: 2rem; padding: .45rem 1.1rem; }
.pt-switch button[aria-pressed=true] { background: var(--pt-paper); border-color: #9d94b2; }
.pt-products { list-style: none; }
.pt-products li { padding: .52rem 0; border-top: 1px solid #dfd8cf; }
.pt-item-link { display: grid; grid-template-columns: 3.9rem 1fr; gap: .8rem; justify-content: start; align-items: center; color: inherit; text-decoration: none; border-radius: .4rem; }
.pt-item-link:focus-visible { outline: 3px solid #785dab; outline-offset: 2px; }
.pt-item-link:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.pt-item-link small { display: block; color: var(--pt-quiet); font-size: .9rem; margin-top: .15rem; }
.pt-result-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem; margin-bottom: .8rem; }
.pt-result-controls .pt-switch { margin: 0; }
.pt-dialog .pt-another { border: 0; background: transparent; font-size: .9rem; font-weight: 700; min-height: 2.75rem; padding: .3rem .45rem; color: #403574; text-decoration: underline; text-underline-offset: .18rem; }
.pt-products li:last-child { border-bottom: 1px solid #dfd8cf; }
.pt-products img { display: block; width: 3.9rem; height: 3.9rem; border-radius: .65rem; object-fit: contain; background: white; border: 1px solid #ede6db; }
.pt-products strong,.pt-products li span { display: block; }
.pt-products strong { font-size: 1.02rem; line-height: 1.3; }
.pt-products li span { font-weight: 550; font-size: .9rem; margin-top: .18rem; }
.pt-availability { margin: .8rem 0 1.12rem; display: inline-flex; align-items: center; gap: .4rem; color: #285947; font-size: .89rem; font-weight: 650; }
.pt-availability span { flex-shrink: 0; width: .49rem; height: .49rem; border-radius: 50%; background: #438869; }
.pt-idea { background: #f0ebfb; border-inline-start: 3px solid #8f7cc8; border-radius: 0 .5rem .5rem 0; padding: .6rem .8rem; margin: -.25rem 0 .9rem; }
.pt-idea strong { display: block; font-size: .89rem; }
.pt-idea p { margin: .15rem 0 0; font-size: .9rem; line-height: 1.45; }
.pt-totals { display: flex; justify-content: space-between; gap: 1rem; padding-top: .84rem; border-top: 1.5px dashed #aaa2ba; font-weight: 700; align-items: baseline; }
.pt-totals strong { font-size: 1.35rem; }
.pt-terms { font-size: .85rem; color: var(--pt-quiet); margin: .28rem 0 0; }
.pt-empty-actions { display: grid; gap: .6rem; }
.pt-error { padding: .6rem .75rem; background: #ffedcb; border-radius: .6rem; font-size: .9rem; }
@media (max-width: 430px) {
  .pt-dialog { width: calc(100vw - 1.2rem); max-height: 94dvh; border-radius: 17px; }
  .pt-inner { padding: 1.1rem 1rem 1.2rem; }
  .pt-head { padding-inline: 1rem; }
  .pt-picks, .pt-budgets { gap: .4rem; }
  .pt-pick-face { padding: .54rem .55rem; gap: .4rem; font-size: .89rem; }
  .pt-pick-face i { width: .6rem; flex-basis: .6rem; height: .6rem; }
  .pt-symbol { width: 1.75rem; height: 1.75rem; }
  .pt-symbol svg { width: 1.2rem; height: 1.2rem; }
}
@media (max-width: 335px) { .pt-pick-face { flex-wrap: wrap; } .pt-pick-face i { display: none; } .pt-actions { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .pt-dialog[open] { animation: none; } .pt-pick-face,.pt-cap>span { transition: none; } }
