/* Klarsign free Sign-a-PDF tool */
.tl { margin: 0 0 8px; }
.tl-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 44px 20px; border: 2px dashed var(--line2); border-radius: var(--r-xl); background: var(--card); transition: border-color var(--t-fast), background var(--t-fast); }
.tl-drop.over { border-color: var(--g); background: var(--g-50); } .tl-drop.busy { opacity: .7; pointer-events: none; }
.tl-drop > b { font-size: 19px; color: var(--ink); } .tl-drop small { color: var(--mut); font-size: 13px; }
.tl-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--g-50); color: var(--g-ink); display: grid; place-items: center; } .tl-ic .ico { width: 26px; height: 26px; }
.tl-drop label.btn { margin: 0; color: #fff; font-size: 16px; } .tl-drop input:focus-visible + small, .tl-drop:focus-within label.btn { box-shadow: var(--ring); }
.tl-msg { margin: 4px 0 0; font-size: 14px; color: var(--ink2); } .tl-msg.bad { color: var(--red); font-weight: 600; }
.tl-priv { display: flex; gap: 10px; align-items: flex-start; margin: 14px 2px 0; font-size: 14px; color: var(--ink2); } .tl-priv .ico { color: var(--ok); margin-top: 1px; }
.tl-bar { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.tl-bar .sp { flex: 1; } .tl-dl { background: var(--acc); border-color: transparent; color: #3a2400; } .tl-dl:hover { background: #e8962a; } .tl-dl.busy::after { border-color: #3a2400; border-right-color: transparent; }
.tl-hint { min-height: 22px; margin: 10px 2px; font-size: 14px; color: var(--mut); } .tl-hint.go { color: var(--g-ink); font-weight: 600; } .tl-hint.ok { color: var(--ok-ink); font-weight: 600; } .tl-hint.bad { color: var(--red); font-weight: 600; }
.tl-pages { display: grid; gap: 16px; padding: 16px; background: var(--bg2); border-radius: var(--r-lg); border: 1px solid var(--line); }
.tl-page { position: relative; width: 100%; background: #fff; box-shadow: var(--sh-2); border-radius: 4px; overflow: hidden; touch-action: manipulation; }
.tl-page canvas { display: block; width: 100%; height: 100%; }
.tl.placing .tl-page { cursor: crosshair; outline: 2px dashed #12524a66; outline-offset: -2px; }
.tl-item { position: absolute; cursor: move; touch-action: none; border: 1.5px dashed transparent; border-radius: 4px; user-select: none; -webkit-user-select: none; }
.tl-item img { width: 100%; height: 100%; display: block; pointer-events: none; }
.tl-item:hover, .tl-item.sel, .tl-item:focus-visible { border-color: #12524a; background: #12524a0d; outline: none; }
.tl-item .tl-x, .tl-item .tl-rs { position: absolute; display: none; }
.tl-item.sel .tl-x, .tl-item.sel .tl-rs, .tl-item:focus-visible .tl-x { display: grid; }
.tl-x { top: -13px; right: -13px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #12524a; color: #fff; place-items: center; cursor: pointer; padding: 0; } .tl-x .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.tl-rs { right: -7px; bottom: -7px; width: 16px; height: 16px; border-radius: 4px; background: #fff; border: 2px solid #12524a; cursor: nwse-resize; display: block; }
.tl-item.drag { opacity: .85; }
/* dialogs */
.tl-dlg { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 24px)); max-width: none; }
.tl-dlg::backdrop { background: #0b1f1c80; backdrop-filter: blur(3px); }
.tl-dlg .card { padding: 24px; box-shadow: var(--sh-3); } .tl-dlg h2 { font-size: 21px; margin: 0 0 14px; }
.tl-tabs { margin-bottom: 14px; } .tl-tabs button[aria-selected=true] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.tl-pad { position: relative; height: 190px; border: 1px solid var(--line2); border-radius: var(--r); background: #fff; }
.tl-pad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.tl-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid #d4cdbd; pointer-events: none; }
.tl-small { font-size: 13px; color: var(--mut); margin: 8px 0 0; }
.tl-typed { margin-top: 12px; min-height: 92px; display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--line2); border-radius: var(--r); background: #fff; font: italic 54px var(--serif); color: #0b1e4d; overflow: hidden; white-space: nowrap; }
.tl-dact { margin-top: 18px; } .tl-dact .sp { flex: 1; }
@media (max-width: 760px) {
  .tl-drop { padding: 32px 16px; } .tl-bar { top: 58px; padding: 8px; gap: 6px; } .tl-bar .btn { padding: 8px 11px; font-size: 13.5px; } .tl-bar .sp { display: none; }
  .tl-bar .tl-dl { flex: 1 0 100%; } .tl-pages { padding: 8px; gap: 10px; margin: 0 -8px; } .tl-pad { height: 170px; }
}
