.tm-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tm-controls { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tm-block { border: 1px solid var(--line); border-radius: var(--r-ctl, 9px); background: var(--sunken, #0f151c); padding: 12px 14px; }
.tm-block h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.tm-json summary { cursor: pointer; list-style: none; }
.tm-json summary h4 { display: inline; margin: 0; }
.tm-hrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-hrow h4 { margin: 0; }
.tm-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tm-seg button { height: 28px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.tm-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tm-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 8px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.tm-chip:hover { border-color: #3a4a5e; }
.tm-chip.on { border-color: var(--accent); background: rgba(61, 139, 253, .15); }
.tm-sw { display: inline-flex; width: 38px; height: 20px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); flex: none; }
.tm-sw i { flex: 1; display: block; }
.tm-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; }
.tm-colorrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tm-colorrow .tm-name { flex: 1; min-width: 0; font-size: 13px; line-height: 1.2; }
.tm-colorrow .tm-name small { display: block; color: var(--muted); font-size: 11px; }
.tm-color { display: inline-flex; align-items: center; gap: 6px; }
.tm-color input[type=color] { width: 40px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.tm-color input[type=text] { width: 84px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--field, #0b0f14); color: var(--text); font: inherit; font-family: Consolas, monospace; font-size: 13px; }
.tm-checks { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.tm-checks p { margin: 0; font-size: 12px; color: var(--warn); }
.tm-mix { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; margin: 6px 0; }
.tm-strip { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin: 6px 0 8px; }
.tm-strip i { flex: 1; display: block; }
.tm-picks { height: 34px; }
.tm-picks button { flex: 1; border: 0; padding: 0; cursor: pointer; }
.tm-picks button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.tm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.tm-grad[hidden] { display: none; }
.tm-sample { margin: 8px 0 4px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 8px; font-size: 22px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-thumb { margin: 8px 0; height: 120px; border-radius: 8px; border: 1px solid var(--line); background-position: center; background-repeat: no-repeat; background-size: cover; }
.tm-preview { position: sticky; top: 76px; min-width: 0; }
.tm-frame-box { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #000; margin: 6px 0; }
.tm-frame-box iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.ed-field input[type=range] { width: 100%; height: 28px; accent-color: var(--accent); }
.ed-field input[type=file] { font: inherit; font-size: 13px; color: var(--muted); }
.ed-field input[type=checkbox] { width: auto; height: auto; }
@media (max-width: 960px) { .tm-layout { grid-template-columns: 1fr; } .tm-preview { position: static; order: -1; } }
.tm-author { margin: 8px 0; max-width: 420px; }
.tm-author input { width: 100%; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--field, #0b0f14); color: var(--text); font: inherit; font-size: 14px; }
