.tp-screen,.tp-wrap{min-height:100vh}.tp-wrap{background:var(--tp-bg, #5b8bb5);padding:0;margin:0;border-radius:0;min-height:100vh;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;overflow:auto}.tp-root-title{color:#fff;font-weight:800;font-size:26px;line-height:1.15;margin:14px 0 10px;width:min(92vw,480px)}.tp-panel{background:#fff;border-radius:16px;padding:0;box-shadow:0 8px 24px #0f172a14;min-height:0;width:min(92vw,480px);min-height:calc(100vh - 86px);max-height:calc(100vh - 28px);margin-bottom:28px;display:flex;flex-direction:column;overflow:hidden}.tp-panel__content{padding:18px;overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1;display:flex;flex-direction:column;gap:10px;row-gap:10px}.tp-panel__content>*{margin:0!important;padding:0}.tp-panel__content--tight{gap:0!important;row-gap:0!important}.tp-panel__content--tight>*{margin:0!important}.tp-panel .tp-panel__content.tp-panel__content--tight{gap:0!important;row-gap:0!important}.tp-panel__content--tight>.tp-question-title{margin-top:10px!important}.tp-header{background:var(--tp-bg, #5b8bb5);color:#fff;padding:16px 20px;margin:0;border-radius:0;font-weight:800;font-size:26px;width:100%;display:block}.tp-step{color:var(--tp-bg, #5b8bb5);font-weight:800;margin:0;padding:0;font-size:20px}.tp-question-title{color:#111;font-weight:800;margin:0;padding:0;font-size:18px}.tp-question-image{display:block;width:80%;max-width:100%;margin:0 auto!important;object-fit:contain;border-radius:12px}.tp-options{display:flex;flex-direction:column;gap:10px;margin:0!important}.tp-radio{margin:0}.tp-radio input{display:none}.tp-radio span{display:block;width:100%;background:transparent;border:2px solid rgba(0,0,0,.26);border-radius:12px;padding:8px 12px;text-align:center;color:#111;font-weight:600;font-size:16px;line-height:1.2;box-shadow:none}.tp-radio span:active{transform:translateY(1px)}.tp-radio input:checked+span{border-color:#000000ba;box-shadow:2px 2px #cbcbcb}.tp-option{width:100%;background:transparent!important;border:2px solid rgba(0,0,0,.26);border-radius:12px;padding:8px 12px;text-align:center;color:#111;font-weight:600;font-size:16px;line-height:1.2;box-shadow:none}.tp-option:active{transform:translateY(1px)}.tp-option--selected{border-color:#000000ba;box-shadow:2px 2px #cbcbcb}.tp-btn{width:100%;border-radius:20px;margin-top:0!important;background:var(--tp-bg, #5b8bb5);color:#fff!important;padding:12px 16px;min-height:44px}.tp-btn--spaced{margin-top:12px!important}.tp-result-title{color:var(--tp-bg, #5b8bb5);font-weight:800;text-align:center;margin:0 0 8px}.tp-result-image{width:100%;border-radius:12px;object-fit:cover;margin-bottom:10px}.tp-result-box{background:transparent;border-radius:0;padding:0;min-height:0;display:block;text-align:center;max-height:40vh;overflow-y:auto}.tp-close{width:60%;margin:12px auto 0;display:block;border-radius:20px}.tp-screen{background:var(--tp-bg, #5b8bb5);padding:0;border-radius:0;min-height:100vh}.tp-card{background:transparent;border-radius:0;box-shadow:none;padding:0}.tp-instruction{color:#4b5563;margin:6px 0 10px;text-align:center;font-size:18px}.tp-grid-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;max-width:100%;margin:0 auto;justify-items:center;align-content:start;justify-content:center}.tp-grid-2{grid-template-columns:repeat(2,1fr);justify-items:center}.tp-grid-4{grid-template-columns:repeat(2,1fr)}.tp-grid-5{grid-template-columns:repeat(6,1fr)}.tp-grid-5>*{grid-column:span 2;justify-self:center}.tp-grid-5>:nth-child(4){grid-column:2 / span 2}.tp-grid-5>:nth-child(5){grid-column:4 / span 2}.tp-card-img{max-width:150px}@media (max-width: 520px){.tp-card-img{max-width:135px}}@media (max-width: 420px){.tp-card-img{max-width:120px}}.tp-grid-2 .tp-card-img{max-width:160px}.tp-grid-4 .tp-card-img{max-width:130px}.tp-grid-5 .tp-card-img{max-width:120px;height:180px}.tp-card-img{display:inline-block;width:100%;border:none;padding:0;background:transparent;border-radius:8px;overflow:hidden;cursor:pointer}.tp-card-img img{width:100%;height:100%;object-fit:cover;display:block;border-radius:14px;clip-path:inset(0 round 14px)}.tp-card-img:active{transform:scale(.98)}.tp-result{display:flex;flex-direction:column;align-items:center;gap:8px}.tp-image-frame{width:auto;max-width:min(207.4px,65vw);height:min(340px,65vh);max-height:340px;aspect-ratio:610 / 1000;border-radius:28px;overflow:hidden;background:transparent;display:block;margin:0 auto;box-shadow:0 12px 32px #0f172a2e}.tp-image-big{width:100%;height:100%;object-fit:cover;display:block;border-radius:0}@supports not (aspect-ratio: 1 / 1){.tp-image-frame{width:208px;height:340px}}.card.form-card.tp-no-frame{background:#5b8bb5!important;box-shadow:none!important;border:none!important;border-radius:0!important;padding:0!important;margin:0!important}.tp-card{padding:0!important;margin:0!important}.tp-screen{padding:0!important}.tp-wrap .tp-panel{max-width:480px}.tp-card>.tp-header,.tp-panel>.tp-header{margin:0!important;border-radius:0!important}.tp-wrap{padding:0!important;margin:0!important;background:var(--tp-bg, #5b8bb5)!important}.tp-card{padding:0!important;margin:0!important;background:transparent!important;box-shadow:none!important;border:0!important}html.tp-blue,body.tp-blue,:root.tp-blue{background:var(--tp-bg, #5b8bb5)!important}.question-label{display:flex;flex-direction:column;gap:6px}.question-label__title{font-weight:600;font-size:16px;margin-bottom:4px}html,body,#root{height:100%}body{overflow:hidden}details.debug-panel{display:none!important}:root{color-scheme:light;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f0f5ff;color:#1f2a37}body{margin:0}html{-webkit-text-size-adjust:100%}@supports (-webkit-touch-callout: none){input,textarea,select,button{font-size:16px!important}}.screen{height:100vh;overflow-y:auto;overflow-x:hidden;min-height:0;padding:16px;display:flex;flex-direction:column;gap:16px;max-width:700px;margin:0 auto}.screen>.card.form-card{min-height:0}.card{background:#fff;border-radius:16px;padding:16px;box-shadow:0 8px 24px #0f172a14;display:flex;flex-direction:column;gap:12px}.hero{padding:20px}.hero-title{font-size:32px;line-height:1.1;margin:0;font-weight:800}.hero-sub{margin:4px 0 0;color:#0f172a99;font-weight:500}.hero-actions{margin-top:8px}.grid{display:grid;gap:12px}button{border:none;border-radius:12px;padding:12px 16px;font-size:16px;font-weight:600;background:linear-gradient(135deg,#0284c7,#0ea5e9);color:#fff;cursor:pointer}button.secondary{background:transparent;border:1px solid rgba(15,23,42,.12);color:#1f2a37}button.tertiary{background:#0284c71a;color:#0369a1}button:disabled{opacity:.6;cursor:not-allowed}.form label{display:flex;flex-direction:column;gap:6px;font-weight:500}.label-inline{display:flex;flex-direction:row;align-items:center;gap:12px}.label{font-weight:600;margin:8px 0 4px;display:block}.label-range{font-weight:600;color:#0f172a99}.label-inline .label-text{min-width:160px;font-weight:600}.label-inline input,.label-inline textarea{flex:1 1 auto}@media (max-width: 560px){.label-inline{flex-direction:column;align-items:stretch}.label-inline .label-text{min-width:0}}.form-card{padding:20px 18px}.form-title{font-size:26px;line-height:1.2;margin:0 0 8px;font-weight:800}.publish-row{display:flex;justify-content:center;margin:6px 0 2px}.stats-grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.stats-card{border-radius:14px;padding:14px;background:#0284c714;display:flex;flex-direction:column;gap:6px}.stats-label{font-weight:600;color:#0f172ab3}.stats-value{font-size:24px;font-weight:800}.stats-block{margin-top:16px;display:flex;flex-direction:column;gap:10px}.stats-block__title{font-weight:700;font-size:18px}.stats-control{display:flex;align-items:center;gap:10px;font-weight:600}.stats-control input{max-width:200px}.color-grid{display:flex;gap:12px;flex-wrap:wrap}.color-swatch{width:64px;height:64px;border-radius:12px;border:2px solid rgba(0,0,0,.2);box-shadow:none;padding:0}.color-swatch--active{border-color:#0009;box-shadow:2px 2px #0000004d}.question-label__header{display:flex;align-items:center;justify-content:space-between;gap:12px}.attach-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;border:1px solid rgba(15,23,42,.2);background:transparent;color:#1f2a37;cursor:pointer}.attach-btn:active{transform:translateY(1px)}.question-image-preview{width:128px;height:128px;border-radius:10px;object-fit:contain;display:block;margin:0 auto;background:#f3f4f6}.question-image-picker{display:block;width:100%;border:1px dashed rgba(15,23,42,.25);border-radius:10px;padding:8px;box-sizing:border-box;margin-bottom:8px;cursor:pointer}.question-image-placeholder{display:block;text-align:center;color:#0f172a99;font-weight:600;padding:24px 0}input,textarea,select,button{border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:10px 12px;font-size:16px;font-family:inherit}textarea{min-height:90px;resize:vertical}.checkbox,.checkbox-inline{display:flex;align-items:center;gap:8px;font-weight:500}.editor-section{display:flex;flex-direction:column;gap:12px}.editor-section--tight{margin-top:8px;gap:10px}.form-title--tight{margin-bottom:12px}.editor-block{border-radius:12px;padding:12px;background:#0284c70f;display:flex;flex-direction:column;gap:10px}.answer-row{display:grid;grid-template-columns:1fr auto;gap:10px}.answer-col.fit{display:flex;align-items:center;gap:10px}.card-editor{display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:16px;background:#2563eb0f}.card-editor__header{font-weight:700;font-size:16px}.card-editor__body{display:flex;gap:16px;align-items:stretch}.card-editor__fields{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:10px}.card-editor__fields textarea{min-height:100px;resize:vertical;width:100%}.card-editor__fields input{width:100%}.card-uploader{aspect-ratio:610 / 1000;width:60px;flex:0 0 60px;height:auto;border-radius:16px;border:2px dashed rgba(37,99,235,.45);background:#bfdbfe59;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative;transition:border-color .2s ease,background .2s ease}.card-uploader:hover{border-color:#2563ebcc;background:#bfdbfe8c}.card-uploader img{width:100%;height:100%;object-fit:cover}@supports not (aspect-ratio: 1 / 1){.card-uploader{height:calc(60px * (1000 / 610))}}.card-uploader__plus{font-size:42px;line-height:1;color:#2563eb;font-weight:600}.card-uploader.is-loading:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#fff9;animation:card-upload-pulse 1.2s infinite}@keyframes card-upload-pulse{0%{opacity:.6}50%{opacity:.2}to{opacity:.6}}.answers{display:flex;flex-direction:column;gap:8px}.actions{display:flex;justify-content:space-between;gap:12px}.actions.bottom{margin-top:16px}.btn-wide{width:100%;border-radius:20px}.error{color:#dc2626}.success{color:#15803d;word-break:break-all}.success-text{margin:8px 0 6px}.success-link{color:#2563eb;text-decoration:underline}.success button{padding:10px 14px;font-size:15px;line-height:1.15;white-space:nowrap}.success .actions{gap:10px}.muted{color:#0f172a99;margin:0}.chooser-title{font-size:24px;font-weight:800;margin:4px 0 8px}.chooser-list{display:grid;gap:14px}.choice-btn{display:block;width:100%;text-align:left;padding:16px 18px;border-radius:20px;background:linear-gradient(135deg,#0ea5e9,#0284c7);box-shadow:inset 0 1px #fff3,0 6px 18px #0284c740}.choice-btn strong{display:inline;font-size:18px;margin-right:6px}.choice-btn span{opacity:.95}.selector-title{font-size:22px;font-weight:800;color:#2563eb;margin:4px 0 12px}.radio-list{display:flex;flex-direction:column;gap:12px;padding:4px 2px 16px}.radio-item{display:flex;align-items:center;gap:10px;font-size:16px}.actions.bottom{display:flex;justify-content:space-between;margin-top:18px}.list{display:flex;flex-direction:column;gap:10px}.list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:12px}.list-link-button{flex:1 1 auto;border:none;background:transparent;color:#0f172a;font-weight:600;font-size:16px;text-align:left;padding:0;cursor:pointer}.list-link-button:active{color:#2563eb}.list-actions{display:flex;align-items:center;gap:8px}button.icon{padding:6px 8px;border-radius:10px;background:#f8fafc}button.icon.danger{background:#fff1f2}button.icon img{display:block}details.debug-panel{position:fixed;left:8px;bottom:8px;right:8px;z-index:9999;background:#000c;color:#fff;padding:8px;border-radius:8px;max-height:35vh;overflow:auto}details.debug-panel .debug-panel__content{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;white-space:pre-wrap}.editor-section>.hero-title:first-child,.editor-section>.selector-title:first-child{display:none!important}.loading-inline{display:inline-block;width:1em;margin-left:8px;font-size:18px;vertical-align:middle;opacity:0;transition:opacity .15s ease}.loading-inline.is-active{opacity:.9}.card.form-card{max-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch;min-height:0}.card.form-card.tp-no-frame{max-height:none!important;overflow:visible!important}.editor-section h3{margin-top:8px}
