.tc3{width:100%;font-family:inherit;color:inherit}
.tc3 *{box-sizing:border-box}
.tc3-grid{display:grid;grid-template-columns:minmax(290px,.92fr) minmax(340px,1.08fr);gap:18px}
.tc3-card{border:1px solid #dfe3ea;border-radius:16px;padding:18px;background:#fff;box-shadow:0 6px 24px rgba(20,25,35,.05)}
.tc3-card h2{font-size:1.05rem;margin:0 0 12px}
.tc3 label{display:block;font-weight:650;margin:0 0 6px}
.tc3 textarea,.tc3 input,.tc3 select{width:100%;border:1px solid #cfd5df;border-radius:10px;padding:11px 12px;font:inherit;background:#fff;color:#16181d}
.tc3 textarea{min-height:125px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.tc3-row{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-top:12px}
.tc3-btn{border:0;border-radius:10px;padding:10px 14px;font-weight:750;cursor:pointer;background:#5b35d5;color:#fff}
.tc3-btn.secondary{background:#eef0f5;color:#1c2230}
.tc3-btn:disabled{opacity:.55;cursor:not-allowed}
.tc3-status{margin-top:10px;min-height:22px;font-size:.92rem;color:#596273}
.tc3-status.error{color:#b42318}
.tc3-viewer3d{height:440px;border:1px solid #e1e5ec;border-radius:12px;overflow:hidden;position:relative;background:#fff}
.tc3-viewer2d{height:440px;border:1px solid #e1e5ec;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:auto;background:#fff}
.tc3-viewer2d svg{max-width:100%;max-height:100%}
.tc3-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.tc3-stat{padding:10px;border-radius:10px;background:#f6f7f9;text-align:center}
.tc3-stat b{display:block;font-size:1.08rem}
.tc3-dropzone{border:2px dashed #c9cfda;border-radius:12px;padding:20px;text-align:center;cursor:pointer;background:#fafbfc}
.tc3-dropzone.drag{border-color:#5b35d5;background:#f6f3ff}
.tc3-output{min-height:340px!important}
.tc3-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.tc3-chip{border:1px solid #d8dde6;background:#fff;border-radius:999px;padding:6px 9px;cursor:pointer;font-size:.84rem}
.tc3-note{margin-top:12px;font-size:.92rem;color:#596273;line-height:1.45}
.tc3-warn{margin-top:12px;padding:10px 12px;border-radius:10px;background:#fff8e6;border:1px solid #f0d18a;font-size:.9rem;color:#684f12}
@media (prefers-color-scheme:dark){
  .tc3-card{background:#fff;color:#16181d}
}
@media(max-width:800px){
  .tc3-grid{grid-template-columns:1fr}
  .tc3-viewer3d,.tc3-viewer2d{height:360px}
  .tc3-meta{grid-template-columns:1fr 1fr}
}
@media(max-width:430px){
  .tc3-card{padding:14px}
  .tc3-viewer3d,.tc3-viewer2d{height:320px}
  .tc3-meta{grid-template-columns:1fr}
  .tc3-row>*{max-width:100%!important;flex:1 1 100%!important;width:100%!important}
}
