.ct-tm-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.ct-tm-stage{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px}
.ct-tm-canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;background:#222;border-radius:4px;touch-action:none;cursor:move;outline-offset:2px}
.ct-tm-box{border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--paper)}
.ct-tm-box h3{margin:0 0 10px;font-size:16px}
.ct-tm-row{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0 0 10px}
.ct-tm-row label{display:flex;gap:6px;align-items:center}
.ct-tm-box input[type=text],.ct-tm-box input[type=number],.ct-tm-box select,.ct-tm-box textarea{padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;max-width:100%}
.ct-tm-box textarea{width:100%;box-sizing:border-box;min-height:64px}
.ct-tm-box input[type=color]{width:42px;height:32px;padding:0;border:1px solid var(--line);border-radius:6px;background:none}
.ct-tm-layers{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:4px}
.ct-tm-layers li{display:flex;gap:6px;align-items:center}
.ct-tm-layers .pick{flex:1;text-align:start;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;cursor:pointer}
.ct-tm-layers .pick[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.ct-tm-layers .mini{min-width:36px;min-height:34px;border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);cursor:pointer}
.ct-tm-msg{min-height:1.4em;margin:8px 0;color:var(--muted)}
@media(min-width:900px){.ct-tm-wrap{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start}.ct-tm-stage{position:sticky;top:8px}}
.ct-tm-full{width:100%}
.ct-tm-row label{flex-wrap:wrap;max-width:100%;min-width:0}
.ct-tm-box input[type=file]{max-width:100%;min-width:0}
.ct-tm-box{min-width:0}
