.ct{--pink:#d4488a;--pink-soft:#e88fb7;--pink-glow:#e88fb78c;--bg:#242424;--card:#2e2e2e;--card-2:#383838;--line:#ffffff47;--line-soft:#ffffff1f;--text:#f4f4f4;--muted:#a9a9a9;--ok:#2fc58a;--bad:#ff6b7a;--shadow:0 20px 60px #00000073;box-sizing:border-box;min-height:100vh;color:var(--text);font-family:var(--font-ibm-plex-sans-thai), system-ui, -apple-system, "Segoe UI", sans-serif;background:radial-gradient(700px 380px at 100% 0%, #e88fb747, transparent 65%), var(--bg);flex-direction:column;gap:14px;padding:16px;display:flex}.ct[data-theme=light]{--bg:#f6eef2;--card:#fff;--card-2:#fbf3f7;--line:#3c142847;--line-soft:#3c14281f;--text:#2a1a22;--muted:#7d6a74;--shadow:0 20px 60px #78285024;--pink-glow:#d4488a40;background:radial-gradient(700px 380px at 100% 0%, #d4488a2e, transparent 65%), var(--bg)}.ct *{box-sizing:border-box}.ct button,.ct input,.ct select{color:inherit;font-family:inherit}.ct button{cursor:pointer}.ct :focus-visible{outline:2px solid var(--pink-soft);outline-offset:2px}.ct-top{grid-template-columns:1fr auto;grid-template-areas:"brand switch""tabs tabs";align-items:center;gap:12px;width:100%;max-width:520px;margin:0 auto;display:grid}.ct-brand{grid-area:brand;align-items:center;gap:10px;min-width:0;display:flex}.ct-brand-mark{background:var(--pink);color:#fff;border-radius:10px;flex:none;place-items:center;width:34px;height:34px;font-size:16px;display:grid}.ct-brand-text{flex-direction:column;min-width:0;line-height:1.2;display:flex}.ct-brand-text b{font-size:15px;font-weight:600}.ct-brand-text small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.ct-tabs{border:1px solid var(--line);background:var(--card);border-radius:14px;grid-area:tabs;grid-template-columns:1fr 1fr;display:grid;overflow:hidden}.ct-tabs button{color:var(--pink-soft);background:0 0;border:0;padding:14px 8px;font-size:15px;transition:background .2s,color .2s}.ct-tabs button.on{background:var(--pink);color:#fff;font-weight:600}.ct-tabs button:not(.on):hover{background:var(--card-2)}.ct-switch{background:#1b1b1b;border:0;border-radius:999px;grid-area:switch;justify-content:flex-start;align-items:center;width:60px;height:30px;padding:3px;transition:background .2s;display:flex}.ct[data-theme=dark] .ct-switch{justify-content:flex-end}.ct[data-theme=light] .ct-switch{background:#e6cfdb}.ct-knob{background:#ffffff1f;border-radius:50%;place-items:center;width:24px;height:24px;font-size:14px;display:grid}.ct[data-theme=light] .ct-knob{background:#fff}.ct-body{flex-direction:column;gap:14px;width:100%;max-width:520px;margin:0 auto;display:flex}.ct-panel,.ct-stage{background:var(--card);border:1px solid var(--line-soft);box-shadow:var(--shadow);border-radius:24px;padding:22px 20px}.ct-head h1{margin:0;font-size:22px;font-weight:600;line-height:1.3}.ct-sub{margin:2px 0 0;font-size:22px;font-weight:600;line-height:1.3}.ct-head{margin-bottom:12px}.ct-note{color:var(--muted);margin:0 0 22px;font-size:13px;line-height:1.6}.ct-label{margin:24px 0 12px;font-size:20px;font-weight:600}.ct-label.sm{margin:14px 0 8px;font-size:15px;font-weight:500}.ct-title{margin:28px 0 0;font-size:20px;font-weight:600}.ct-input{border:1.5px solid var(--line);background:0 0;border-radius:14px;align-items:center;gap:8px;max-width:320px;height:52px;padding:0 14px;transition:border-color .2s,box-shadow .2s;display:flex}.ct-input:focus-within{border-color:var(--pink-soft);box-shadow:0 0 0 4px var(--pink-glow)}.ct-input.valid{border-color:var(--ok)}.ct-input.invalid{border-color:var(--bad)}.ct-input input{-moz-appearance:textfield;background:0 0;border:0;outline:0;flex:1;min-width:0;height:100%;font-size:18px}.ct-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.ct-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.ct-input input::placeholder{color:var(--muted)}.ct-input-icon{text-align:center;width:22px;font-weight:700}.ct-input.valid .ct-input-icon{color:var(--ok)}.ct-input.invalid .ct-input-icon{color:var(--bad)}.ct-spin{border:2px solid var(--line);border-top-color:var(--pink-soft);border-radius:50%;width:16px;height:16px;animation:.7s linear infinite ctspin;display:inline-block}@keyframes ctspin{to{transform:rotate(360deg)}}.ct-error{color:var(--bad);margin:8px 2px 0;font-size:13px}.ct-collapse{grid-template-rows:0fr;transition:grid-template-rows .3s;display:grid}.ct-collapse>div{min-height:0;overflow:hidden}.ct-collapse.open{grid-template-rows:1fr}.ct-select{max-width:320px;position:relative}.ct-select select{appearance:none;border:1px solid var(--line);text-align:center;text-align-last:center;width:100%;height:50px;color:var(--pink-soft);background:0 0;border-radius:14px;padding:0 46px 0 16px;font-size:16px}.ct-select select option{color:#222;background:#fff}.ct-select select:hover{background:var(--card-2)}.ct-chev{border-left:1px solid var(--line);pointer-events:none;width:46px;position:absolute;top:0;bottom:0;right:0}.ct-chev:after{content:"";border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);width:8px;height:8px;position:absolute;top:50%;left:50%;transform:translate(-50%,-70%)rotate(45deg)}.ct-chips{flex-wrap:wrap;gap:10px;display:flex}.ct-chip{border:1px solid var(--line);min-width:64px;height:44px;color:var(--pink-soft);background:0 0;border-radius:14px;padding:0 18px;font-size:15px;transition:all .18s}.ct-chip:hover{background:var(--card-2)}.ct-chip.on{background:var(--pink);border-color:var(--pink);color:#fff;font-weight:600}.ct-devices{grid-template-columns:1fr 1fr;gap:12px;display:grid}.ct-device{color:var(--text);background:0 0;border:0;flex-direction:column;align-items:center;gap:8px;padding:0;font-size:13px;display:flex}.ct-device-box{border:1px solid var(--line);background:0 0;border-radius:12px;place-items:center;width:100%;height:170px;transition:background .18s,border-color .18s;display:grid}.ct-device:hover .ct-device-box{background:var(--card-2)}.ct-device.on .ct-device-box{background:var(--pink);border-color:var(--pink)}.ct-mock{color:#111;text-align:center;background:#d9d9d9;border-radius:4px;flex-direction:column;justify-content:center;align-items:center;max-width:80%;height:76%;line-height:1.15;display:flex}.ct-mock b{font-size:13px}.ct-mock em{font-size:11px;font-style:normal;font-weight:600}.ct-mock small{font-size:8px}.ct-device-name{padding-bottom:4px}.ct-stage{flex-direction:column;gap:14px;display:flex}.ct-stage-bar{display:none}.ct-frame{background:var(--card-2);border-radius:14px;justify-content:center;align-items:center;width:100%;min-height:220px;padding:8px;display:flex;overflow:hidden}.ct-composite{border-radius:6px;max-width:100%;line-height:0;display:inline-flex;position:relative;overflow:hidden}.ct-composite.hidden{display:none}.ct-layer-bg,.ct-frame>img{object-fit:contain;border-radius:6px;width:auto;max-width:100%;height:auto;max-height:70vh;display:block}.ct-layer-fg{object-fit:contain;pointer-events:none;border-radius:6px;width:100%;height:100%;position:absolute;inset:0}:-webkit-any(.ct-frame:fullscreen,.ct-frame:-webkit-full-screen){background:#000;border-radius:0;padding:0}:is(.ct-frame:fullscreen,.ct-frame:fullscreen){background:#000;border-radius:0;padding:0}:-webkit-any(.ct-frame:fullscreen .ct-composite,.ct-frame:-webkit-full-screen .ct-composite){border-radius:0}:is(.ct-frame:fullscreen .ct-composite,.ct-frame:fullscreen .ct-composite){border-radius:0}.ct-frame:fullscreen .ct-layer-bg,.ct-frame:fullscreen>img{border-radius:0;max-width:100vw;max-height:100vh}.ct-frame:-webkit-full-screen .ct-layer-bg{border-radius:0;max-width:100vw;max-height:100vh}.ct-frame:-webkit-full-screen>img{border-radius:0;max-width:100vw;max-height:100vh}:-webkit-any(.ct-frame:fullscreen .ct-layer-fg,.ct-frame:-webkit-full-screen .ct-layer-fg){border-radius:0}:is(.ct-frame:fullscreen .ct-layer-fg,.ct-frame:fullscreen .ct-layer-fg){border-radius:0}.ct-empty{color:var(--muted);text-align:center;flex-direction:column;align-items:center;gap:8px;padding:36px 16px;display:flex}.ct-empty-icon{opacity:.6;font-size:34px}.ct-empty p{margin:0;font-size:14px}.ct-actions{gap:10px;display:flex}.ct-actions.top{display:none}.ct-btn{border:1px solid var(--line);background:0 0;border-radius:14px;flex:1;height:48px;padding:0 22px;font-size:15px;font-weight:600;transition:transform .12s,background .18s,opacity .18s}.ct-btn.solid{background:var(--pink);border-color:var(--pink);color:#fff}.ct-btn.solid:hover:not(:disabled){background:#e2559a}.ct-btn.ghost:hover:not(:disabled){background:var(--card-2)}.ct-btn:active:not(:disabled){transform:scale(.98)}.ct-btn:disabled{opacity:.4;cursor:not-allowed}@media (min-width:960px){.ct{gap:22px;padding:24px 32px 32px}.ct-top{grid-template-columns:1fr auto 1fr;grid-template-areas:"brand tabs switch";max-width:1320px}.ct-switch{justify-self:end}.ct-tabs{background:var(--card);border-radius:999px;gap:4px;width:340px;padding:4px}.ct-tabs button{border-radius:999px;padding:10px 8px}.ct-brand-text small{font-size:12px}.ct-body{grid-template-columns:400px minmax(0,1fr);align-items:start;gap:24px;max-width:1320px;display:grid}.ct-panel{max-height:calc(100vh - 48px);padding:28px 26px;position:sticky;top:24px;overflow:auto}.ct-head h1,.ct-sub{font-size:24px}.ct-stage{min-height:calc(100vh - 150px);padding:20px}.ct-stage-bar{justify-content:space-between;align-items:center;gap:16px;display:flex}.ct-stage-title{font-size:18px;font-weight:600}.ct-actions.top{display:flex}.ct-actions.top .ct-btn{flex:none;min-width:120px;height:42px}.ct-actions.bottom{display:none}.ct-frame{flex:1;min-height:0;padding:24px}.ct-layer-bg,.ct-frame>img{max-width:100%;max-height:calc(100vh - 260px);box-shadow:0 12px 40px #00000059}.ct-frame:fullscreen .ct-layer-bg,.ct-frame:fullscreen>img{max-height:100vh;box-shadow:none}.ct-frame:-webkit-full-screen .ct-layer-bg{max-height:100vh;box-shadow:none}.ct-frame:-webkit-full-screen>img{max-height:100vh;box-shadow:none}.ct-device-box{height:150px}.ct-input,.ct-select{max-width:none}}@media (prefers-reduced-motion:reduce){.ct *{transition:none!important;animation:none!important}}
