.tn-desk { display: grid; gap: 20px; align-items: start; }
.tn-stage { min-width: 0; }
.tn-sticky { display: grid; gap: 12px; }
.tn-view { display: grid; place-items: center; padding: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-l); }
.tn-canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: min(64vh, 620px); border-radius: 3px; box-shadow: 0 1px 2px rgb(22 22 19 / 0.1), 0 10px 28px rgb(22 22 19 / 0.1); }
:root[data-theme="dark"] .tn-canvas { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 10px 28px rgb(0 0 0 / 0.4); }
.tn-view.has-photo .tn-canvas { cursor: grab; touch-action: none; }
.tn-view.is-dragging .tn-canvas { cursor: grabbing; }
.tn-canvas:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.tn-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 28px; }
.tn-px { font-size: 13.5px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tn-meta .chip .ico { width: 15px; height: 15px; flex: none; }
.tn-help { margin-top: -4px; }
.tn-save { display: grid; gap: 10px; }
.tn-save .seg { justify-self: start; }
.tn-save .btn-row .btn-primary { min-width: 168px; }
.tn-ctl { min-width: 0; display: grid; gap: 16px; }
.tn-ctl .panel + .panel { margin-top: 0; }
.tn-p { display: grid; gap: 14px; align-content: start; }
.tn-h { font-size: 17px; letter-spacing: -0.02em; }
.tn-title { min-height: 0; height: auto; font-size: 16px; line-height: 1.6; padding: 12px 14px; }
.tn-batch { min-height: 0; height: auto; font-size: 15px; line-height: 1.7; padding: 12px 14px; }
.tn-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tn-p > .seg { justify-self: start; }
.tn-tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tn-tpl { display: grid; gap: 6px; padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, color 0.15s; }
.tn-tpl:hover { border-color: var(--line-2); color: var(--ink); }
.tn-tpl[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); color: var(--ink); }
.tn-tpl:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tn-mini-box { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.tn-mini { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; outline: 1px solid var(--line); outline-offset: -1px; }
.tn-tpl-n { word-break: keep-all; }
.tn-bgc { display: grid; gap: 8px; }
.tn-photo { display: grid; gap: 14px; }
.tn-photo-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.tn-photo-act { grid-column: 1 / -1; }
.tn-drop-t { overflow-wrap: anywhere; }
.tn-sizes .chip { height: 34px; padding: 0 13px; font-size: 13.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.tn-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tn-look .opts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tn-key { display: inline-block; min-width: 1.6em; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); font: 700 12.5px/1.5 var(--font); color: var(--ink); text-align: center; }
.tn-batch-go { display: grid; gap: 10px; }
.tn-batch-go .btn { justify-self: start; max-width: 100%; }
.tn-src li { font-size: 15px; }
@media (min-width: 861px) {
.tn-desk { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px; }
.tn-sticky { position: sticky; top: calc(var(--head-h) + 16px); }
}
@media (max-width: 720px) {
.tn-view { padding: 10px; }
.tn-canvas { max-height: 58vh; }
.tn-tpls { gap: 8px; }
.tn-tpl { padding: 5px 5px 7px; font-size: 12px; }
.tn-two, .tn-photo-opts { grid-template-columns: minmax(0, 1fr); }
.tn-save .btn-row .btn { flex: 1 1 auto; }
.tn-save .btn-row .btn-primary { min-width: 0; }
}
