/* 글자 꺼내기 — 지붕 base.css 위에 이 앱 것만 (줄 대신 면 색 · 쉬는 것엔 그림자 없음 · 단추 완전 원형 · 글자 다섯 단 12 · 14 · 16 · 20 · 32) */
.tl-expect { margin-top: 12px !important; font-size: 16px; background: var(--band); color: var(--fg) !important; border-radius: 12px; padding: 8px 12px; }
.tl-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 999px; background: var(--band); color: var(--mut); font-size: 14px; font-weight: 700; }

.tl-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 24px; cursor: pointer; color: var(--fg); margin: 0; }
.tl-drop .tl-step { position: absolute; left: 16px; top: 16px; }
.tl-drop svg { width: 44px; height: 44px; fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.tl-drop:hover svg, .tl-drop.on svg { transform: translateY(-3px); }
.tl-drop b { font-size: 20px; }
.tl-drop:hover, .tl-drop.on { background: var(--hover); }
.tl-drop:focus-within { outline: 3px solid var(--acc); outline-offset: 2px; }
.tl-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sec-gap { margin-top: 16px; }
.tl-work { margin-top: 16px; }

.tl-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 24px; }
.tl-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-seg label { margin: 0; color: var(--fg); font-size: 16px; }
.tl-seg input { position: absolute; width: 1px; height: 1px; opacity: 0; min-height: 0; }
.tl-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--band); cursor: pointer; }
.tl-seg input:checked + span { background: var(--acc); color: var(--acc-fg); font-weight: 600; }
.tl-seg input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }

.tl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tl-head .mut { flex: 1; }
.tl-stage { position: relative; touch-action: none; cursor: crosshair; user-select: none; border-radius: 12px; overflow: hidden; background: var(--band); }
.tl-stage canvas { display: block; width: 100%; height: auto; }
.tl-box { position: absolute; background: rgba(31, 111, 235, .18); outline: 2px dashed var(--acc); pointer-events: none; }
.tl-pages { margin: 8px 0 0; }

.tl-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; padding: 0; border: 0; border-radius: 999px; background: var(--acc); color: var(--acc-fg); cursor: pointer; font-size: 20px; text-decoration: none; }
.tl-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.tl-ic.ghost { background: var(--band); color: var(--fg); }
.tl-ic:hover svg { transform: scale(1.12); }
.tl-ic:hover { filter: brightness(1.08); }
.tl-ic:disabled { opacity: .4; cursor: default; }
.tl-ic:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.tl-ic[aria-pressed="true"] { background: var(--acc); color: var(--acc-fg); }
.tl-ic::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 22px; padding: 0 10px; border-radius: 999px; background: var(--fg); color: var(--bg); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.tl-ic:hover::after, .tl-ic:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.tl-go { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tl-run { width: 64px; height: 64px; flex-basis: 64px; }
.tl-run svg { width: 30px; height: 30px; }
.tl-prog { flex: 1 1 120px; height: 8px; border-radius: 999px; background: var(--band); overflow: hidden; }
.tl-fill { width: 0; height: 100%; background: var(--acc); transition: width .2s ease; }

#tl-out { display: block; width: 100%; min-height: 200px; resize: vertical; border: 0; border-radius: 12px; padding: 12px 14px; background: var(--band); color: var(--fg); font: inherit; line-height: 1.6; }
#tl-out:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.tl-acts { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tl-sp { flex: 1; }
.tl-fb { display: inline-flex; gap: 8px; }
#tl-msg { margin: 8px 0 0; min-height: 20px; }
.tl-safe { margin-top: 24px; }
@media (prefers-reduced-motion: reduce) { .tl-drop svg, .tl-ic svg, .tl-ic::after, .tl-fill { transition: none; } }
