/* 4CUS tool picker — scoped to the native modal top layer. */
.tp-dialog{--tp-purple:#7958ff;--tp-ink:#292532;--tp-muted:#82788f;box-sizing:border-box;width:min(1000px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #fff;border-radius:30px;background:#faf9fc;color:var(--tp-ink);box-shadow:0 35px 140px #20133545;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tp-dialog:not([open]){display:none}.tp-dialog[open]{animation:tp-enter .26s cubic-bezier(.2,.7,.3,1) both}
.tp-dialog::backdrop{background:rgba(26,22,35,.48);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.tp-dialog *{box-sizing:border-box}.tp-dialog [hidden]{display:none!important}
.tp-dialog button,.tp-dialog a{font:inherit;touch-action:manipulation}.tp-dialog button{cursor:pointer}.tp-dialog button:disabled{cursor:default}
.tp-dialog button:focus-visible,.tp-dialog a:focus-visible,.tp-dialog [tabindex="0"]:focus-visible{outline:3px solid #b59cff;outline-offset:3px}
.tp-dialog a{text-decoration:none}.tp-dialog h2,.tp-dialog h3,.tp-dialog p{margin:0}
.tp-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 42px)}
.tp-head{display:flex;align-items:center;justify-content:space-between;padding:20px 30px 15px;flex-shrink:0}
.tp-wordmark{font-size:20px!important;letter-spacing:-1px;font-weight:850!important;color:#292532}.tp-wordmark span{font-size:10px;letter-spacing:2px;margin-left:10px;color:#a498b1;font-weight:500}
.tp-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e7e0ef;background:white;border-radius:50%;color:#756985}
.tp-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.tp-progress{display:flex;padding:0 30px 17px;gap:14px;border-bottom:1px solid #ece7f1;flex-shrink:0}
.tp-step{display:flex;align-items:center;gap:7px;position:relative;padding:0;background:none;border:0;color:#b0a6bb;font-size:11px!important}
.tp-step:not(:last-child)::after{content:'';width:25px;height:1px;background:#ded7e6;margin-left:7px}
.tp-step-number{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#eeeaf3;font-size:9px;font-weight:700}
.tp-step.is-reached{color:#77658e}.tp-step[aria-current]{color:#6f49d8;font-weight:700}.tp-step[aria-current] .tp-step-number{background:#7958ff;color:#fff}
.tp-scroll{padding:26px 30px 24px;overflow:auto;min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#d7cce7 transparent}
.tp-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.tp-heading>div{max-width:690px}.tp-kicker{font-size:10px!important;font-weight:700;letter-spacing:1.5px;color:#957db6;margin-bottom:9px!important}
.tp-heading h2{font-size:clamp(25px,3.5vw,37px);font-weight:750;letter-spacing:-1.2px;line-height:1.16;outline:none}
.tp-lead{font-size:13px!important;line-height:1.65;color:var(--tp-muted);margin-top:12px!important;max-width:610px}
.tp-foki{width:92px;height:92px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 10px 14px #7054b51c);animation:tp-float 5s ease-in-out infinite}
.tp-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.tp-tool{position:relative;display:block;overflow:hidden;text-align:left;padding:18px 23px 21px;border:1px solid #e5ddec;border-radius:22px;background:#fff;color:var(--tp-ink);transition:transform .22s,border-color .22s,box-shadow .22s;min-height:225px}
.tp-tool::before{content:'';position:absolute;right:-30px;top:5px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,#eee4ff,transparent 67%);pointer-events:none}
.tp-tool--dating::before{background:radial-gradient(circle,#ffe5f0,transparent 67%)}.tp-tool--qr::before{background:radial-gradient(circle,#e6ecff,transparent 67%)}.tp-tool--landing::before{background:radial-gradient(circle,#e9e6fb,transparent 67%)}
.tp-tool-top{display:flex;justify-content:space-between;align-items:center;position:relative}
.tp-tool-number{font-size:10px;letter-spacing:1px;color:#b4a9c1}.tp-tool-arrow{color:#9f8caf;font-size:20px;transition:transform .22s}
.tp-tool-art{height:55px;display:flex;align-items:center;margin:4px 0 9px;color:#8d6ac8;position:relative}.tp-tool-art svg{width:64px;height:64px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tp-tool--dating .tp-tool-art{color:#d182a4}.tp-tool--qr .tp-tool-art{color:#7c90c8}
.tp-tool h3{font-size:19px;line-height:1.25;font-weight:700;letter-spacing:-.4px;position:relative}.tp-tool p{font-size:12px;line-height:1.5;color:#998ca5;margin-top:8px;position:relative}
.tp-tag{display:inline-flex;align-items:center;gap:6px;font-size:9px;letter-spacing:.2px;font-weight:600;color:#8a789e;background:#f5f0fa;border-radius:20px;padding:6px 9px;margin-top:15px}.tp-tag::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}
.tp-tool:disabled{opacity:.55}.tp-tool:not(:disabled):hover{transform:translateY(-3px);border-color:#bd9aee;box-shadow:0 12px 26px #7958ff12}.tp-tool:not(:disabled):hover .tp-tool-arrow{transform:translate(3px,-3px)}
.tp-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 30px;border-top:1px solid #ece7f1;flex-shrink:0;color:#a296ac;font-size:10px;background:#f8f6fb}
.tp-footer>span{margin-left:auto;text-align:right;line-height:1.4}.tp-back{display:flex;align-items:center;gap:7px;border:0;background:none;padding:8px 0;color:#776582;font-size:12px!important;white-space:nowrap}
.tp-notice{padding:12px 15px;border:1px solid #e1d6f3;border-radius:12px;margin-bottom:15px;font-size:12px;line-height:1.5;color:#8d75ac;background:#f3edf9}.tp-notice.is-error{color:#966d75;background:#fff3f4;border-color:#efd7dd}
.tp-access-note{display:flex;align-items:center;gap:10px;margin-bottom:20px;font-size:12px;line-height:1.6;color:#89739f;padding-left:13px;border-left:2px solid #c4ace7}
.tp-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:22px}.tp-filters button{border:1px solid #e4ddea;border-radius:20px;background:#fff;padding:8px 13px;font-size:11px;color:#95859e;white-space:nowrap}.tp-filters button[aria-pressed="true"]{background:#79608f;border-color:#79608f;color:white}
.tp-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:12px}.tp-list-head h3{font-size:13px;font-weight:650;color:#807189}.tp-list-head span{font-size:10px;color:#a99bb2}
.tp-templates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tp-template{border:1px solid #e7dfec;border-radius:17px;overflow:hidden;background:#fff;min-width:0}
.tp-cover{aspect-ratio:4/5;background:linear-gradient(135deg,#f2e9fa,#e9e8f1);position:relative;overflow:hidden}.tp-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .4s}.tp-cover:not(.is-expanded):hover img{transform:scale(1.035)}
.tp-cover.is-expanded{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.tp-cover.is-expanded img{height:auto;object-fit:initial}.tp-cover-fallback{display:grid;place-items:center;padding:15px;text-align:center;min-height:100%;font-size:16px;font-weight:700;color:#b3a3c6}
.tp-template-info{padding:13px 12px}.tp-template-line{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:8px;color:#a490b1;min-height:16px}.tp-popular{font-size:7px;padding:3px 4px;border-radius:5px;background:#f1ebfb;color:#9c7fc2}
.tp-template-info h3{font-size:13px;font-weight:700;color:#584963;line-height:1.35;margin:7px 0 13px;overflow-wrap:anywhere}
.tp-template-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.tp-preview{font-size:9px!important;border:0;background:none;color:#a38ab4;text-align:left;padding:6px 0}
.tp-choose{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:#f0e9f8;color:#9879b6;font-size:10px!important;font-weight:650!important;min-height:32px;padding:7px 9px;white-space:nowrap}.tp-choose:hover{color:#fff;background:#9473b1}
.tp-more{display:block;width:100%;padding:14px;background:#fff;border:1px solid #e5ddec;border-radius:13px;color:#9e86b3;font-size:12px!important;margin-top:18px}.tp-more:disabled{opacity:.6}
.tp-empty{padding:35px 20px!important;text-align:center;line-height:1.6;font-size:13px;color:#9b88a9;background:#f1ebf6;border-radius:18px}
.tp-selection{display:flex;gap:24px;align-items:center;padding:20px;border:1px solid #e2d7ed;border-radius:22px;background:linear-gradient(130deg,#fff,#f3edf9);margin:15px 0 24px}.tp-selection img{width:110px;height:140px;border-radius:12px;object-fit:cover;object-position:top}.tp-selection h3{font-size:23px;color:#685376;line-height:1.3}.tp-text-button{padding:0;min-height:36px;margin-top:10px;background:none;border:0;text-decoration:underline;text-underline-offset:4px;color:#a88eba;font-size:11px!important}
.tp-continue-actions,.tp-retry{display:flex;gap:12px;margin-top:25px;flex-wrap:wrap}.tp-primary,.tp-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:47px;padding:13px 23px;border-radius:13px;border:1px solid #e2d5ee;font-size:12px!important;font-weight:650!important;text-align:center}.tp-primary{background:#7958ff;border-color:#7958ff;color:#fff;box-shadow:0 7px 20px #7958ff1c}.tp-primary:hover{background:#6948e4}.tp-secondary{background:white;color:#997faf}.tp-continue-actions>a{flex:1}
.tp-qr-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:25px 0}.tp-feature{padding:24px 18px;border:1px solid #e7ddeb;background:#fff;border-radius:18px}.tp-feature>span{font-size:10px;color:#baa6cb}.tp-feature h3{font-size:15px;margin:25px 0 9px;line-height:1.35;color:#80648f}.tp-feature p{font-size:12px;line-height:1.6;color:#ad96ba}
.tp-skeletons{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.tp-skeleton{height:250px;border-radius:17px;background:linear-gradient(110deg,#eee8f4 20%,#faf6ff 40%,#eee8f4 60%);background-size:220% 100%;animation:tp-shimmer 1.6s infinite}
@keyframes tp-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}@keyframes tp-float{50%{transform:translateY(-5px) rotate(2deg)}}@keyframes tp-shimmer{to{background-position:-220% 0}}
@media(max-width:760px){.tp-templates,.tp-skeletons{grid-template-columns:repeat(2,minmax(0,1fr))}.tp-qr-features{gap:8px}.tp-feature{padding:18px 12px}.tp-feature h3{font-size:13px}.tp-feature p{font-size:11px}.tp-template-info h3{font-size:14px}}
@media(max-width:520px){
 .tp-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:23px}.tp-shell{max-height:calc(100dvh - 18px)}
 .tp-head{padding:16px 17px 12px}.tp-progress{padding:0 17px 13px;gap:8px}.tp-step{font-size:9px!important;gap:5px}.tp-step:not(:last-child)::after{width:12px;margin-left:2px}.tp-step-number{width:23px;height:23px}
 .tp-scroll{padding:22px 17px 20px}.tp-heading{gap:6px;margin-bottom:20px;align-items:flex-start}.tp-heading h2{font-size:27px;letter-spacing:-.8px}.tp-lead{font-size:12px!important;margin-top:10px!important}.tp-kicker{font-size:8px!important;letter-spacing:1px}.tp-foki{width:61px;height:61px;margin-top:16px}
 .tp-tools{gap:9px}.tp-tool{padding:13px 12px 15px;min-height:226px;border-radius:16px}.tp-tool::before{width:150px;height:150px;right:-45px;top:15px}.tp-tool-art{height:50px;margin:1px 0 8px}.tp-tool-art svg{width:54px;height:54px}.tp-tool h3{font-size:15px;letter-spacing:-.3px;line-height:1.3}.tp-tool p{font-size:10px;line-height:1.5;margin-top:7px}.tp-tag{font-size:8px;margin-top:10px;padding:5px 7px;gap:4px}
 .tp-footer{padding:11px 17px;gap:12px;font-size:9px}.tp-footer>span{max-width:230px}.tp-back{font-size:11px!important}
 .tp-filters{gap:5px;margin-bottom:17px}.tp-filters button{padding:7px 10px;font-size:10px}.tp-access-note{font-size:11px;margin-bottom:17px}
 .tp-templates{gap:9px}.tp-template-info{padding:10px}.tp-template-info h3{font-size:12px}.tp-template-line{font-size:7px;flex-wrap:wrap;gap:2px}.tp-choose{font-size:9px!important;padding:6px}.tp-preview{font-size:8px!important}
 .tp-qr-features{grid-template-columns:1fr;margin:18px 0}.tp-feature{display:grid;grid-template-columns:24px 1fr;gap:5px 10px;padding:16px}.tp-feature h3{margin:0;font-size:14px}.tp-feature p{grid-column:2;font-size:11px}
 .tp-continue-actions{flex-direction:column;margin-top:18px;gap:9px}.tp-selection{gap:15px;padding:14px}.tp-selection img{width:82px;height:108px}.tp-selection h3{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.tp-dialog,.tp-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep helper copy readable on the light surface. */
.tp-tool p,.tp-template-line,.tp-lead,.tp-list-head span{color:#75677f}
.tp-tag,.tp-preview,.tp-choose,.tp-more,.tp-secondary,.tp-text-button,.tp-access-note{color:#73568c}
.tp-feature p,.tp-footer,.tp-kicker{color:#7a6987}
.tp-feature h3,.tp-selection h3,.tp-list-head h3{color:#574563}
.tp-popular{color:#785299}
.tp-choose:hover{color:#fff}
