/* 타이포그래피 편집기 (전체 화면 창) */
.ted { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; }
.ted.hidden { display: none; }
.ted-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.ted-head h2 { font-size: 16px; margin: 0; }
.ted-body { flex: 1; display: grid; grid-template-columns: 280px 1fr 320px; min-height: 0; }
.ted-left, .ted-right { background: var(--panel); overflow-y: auto; min-height: 0; }
.ted-left { border-right: 1px solid var(--line); }
.ted-left select, .ted-left input[type=text] { width: 100%; }
.ted-right { border-left: 1px solid var(--line); }
.ted-wrap { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; overflow: hidden;
  background: repeating-conic-gradient(#2a2c3a 0% 25%, #22242f 0% 50%) 0 0 / 20px 20px; } /* 체크무늬 = 투명 */
#ted-canvas { touch-action: none; cursor: move; }
body.ted-open { overflow: hidden; }

@media (max-width: 760px), (max-height: 500px) and (max-width: 1000px) {
  .ted { overflow-y: auto; }
  .ted-head { flex-wrap: wrap; position: sticky; top: 0; z-index: 2; }
  .ted-head h2 { width: 100%; font-size: 14px; }
  .ted-body { display: flex; flex-direction: column; flex: none; }
  .ted-left, .ted-right { min-height: auto; }
  .ted-wrap { order: 1; height: 40vh; flex: none; position: sticky; top: var(--ted-head, 80px); z-index: 1; }
  .ted-left { order: 2; border: 0; overflow: visible; }
  .ted-right { order: 3; border: 0; overflow: visible; }
}
