.tsdf{--b:#e5e7eb;--t:#111827;--p:#0ea5e9;--g:#f8fafc;--ok:#16a34a;--warn:#dc2626;font-family:system-ui,-apple-system,Segoe UI,Roboto,'Noto Sans JP',sans-serif;color:var(--t);z-index:9999}
.tsdf *{box-sizing:border-box}
.tsdf .card{border:1px solid var(--b);border-radius:14px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.tsdf h3{margin:0 0 .25rem;font-size:1.05rem}
.tsdf .muted{color:#6b7280;font-size:.9rem}
.tsdf .row{display:grid;gap:.75rem}
@media(min-width:720px){.tsdf .row{grid-template-columns:1.2fr 2fr}}
.tsdf label{font-size:.9rem;color:#374151}
.tsdf input, .tsdf select{width:100%;padding:.7rem .8rem;border:1px solid var(--b);border-radius:10px}
.tsdf input:focus, .tsdf select:focus{outline:none;border-color:var(--p);box-shadow:0 0 0 3px rgba(14,165,233,.15)}
.tsdf .btn{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .9rem;border:1px solid var(--b);border-radius:10px;background:#fff;cursor:pointer}
.tsdf .btn.primary{background:var(--p);border-color:var(--p);color:#fff}
.tsdf .btn.ghost{background:#fff}
.tsdf .btn:disabled{opacity:.5;cursor:not-allowed}
.tsdf .pill{display:inline-block;padding:.2rem .55rem;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.8rem;border:1px solid #dbeafe}
.tsdf .tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:.25rem 0 .75rem}
.tsdf .tab{padding:.45rem .7rem;border:1px solid var(--b);border-radius:999px;background:#fff;cursor:pointer}
.tsdf .tab.active{background:#ecfeff;border-color:#67e8f9}
.tsdf .note{background:var(--g);border-radius:10px;padding:.7rem;border:1px dashed var(--b);font-size:.9rem}
.tsdf .warn{color:var(--warn);font-weight:600}
.tsdf .ok{color:var(--ok);font-weight:600}
.tsdf .stack{display:flex;flex-direction:column;gap:.6rem}
.tsdf iframe{width:100%;height:380px;border:0;border-radius:12px}
.tsdf .copybox{display:grid;gap:.5rem}
.tsdf .copybox textarea{width:100%;min-height:112px;padding:.7rem;border:1px solid var(--b);border-radius:10px}
.tsdf .footer{font-size:.85rem;color:#6b7280;margin-top:.4rem}
.tsdf .grid2{display:grid;gap:.5rem}
@media(min-width:720px){.tsdf .grid2{grid-template-columns:1fr 1fr}}
/* modal */
.tsdf-modal{position:fixed;inset:0;padding:24px;background:rgba(2,6,23,.6);display:flex;align-items:center;justify-content:center}
.tsdf-modal .card{width:min(1080px,96vw);max-height:92vh;overflow:auto;padding:1rem}
.tsdf .tsdf-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem}
.tsdf .tsdf-close{font-size:1.2rem;line-height:1;border:1px solid var(--b);border-radius:10px;padding:.3rem .6rem;background:#fff;cursor:pointer}
/* CTA */
.tsdf-cta{position:sticky;bottom:0;display:flex;gap:.8rem;align-items:center;justify-content:center;background:#0ea5e9;color:#fff;padding:.6rem;border-radius:10px;margin-top:10px}
.tsdf-cta .btn{background:#fff;color:#0ea5e9;border-color:#fff}
.tsdf-cta-inline{padding:.6rem;border:1px dashed var(--b);border-radius:10px;margin:.6rem 0}
.tsdf-cta-inline .btn{margin-left:.5rem}
