.ttf { --ttf-ink: #111; --ttf-muted: #5b5b5b; --ttf-line: #d5d5d5; --ttf-accent: #111; --ttf-bg: #fff; --ttf-err: #b42318; --ttf-ok: #067647;
	max-width: 820px; margin: 0 auto; color: var(--ttf-ink); font-size: 18px; line-height: 1.5; }
.ttf * { box-sizing: border-box; }
.ttf h2 { margin: 0 0 .6em; font-size: 1.6em; line-height: 1.2; }
.ttf fieldset { border: 1px solid var(--ttf-line); border-radius: 12px; padding: 18px 18px 8px; margin: 0 0 22px; background: var(--ttf-bg); min-width: 0; }
.ttf legend { font-weight: 700; padding: 0 8px; font-size: 1.05em; }
.ttf label { display: block; margin: 0 0 14px; font-weight: 600; }
.ttf input[type=text], .ttf input[type=email], .ttf input[type=tel], .ttf input[type=date], .ttf input[type=password], .ttf select, .ttf textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: inherit;
	border: 1px solid #b9b9b9; border-radius: 8px; background: #fff; min-height: 52px; }
.ttf input:focus, .ttf select:focus, .ttf textarea:focus { outline: 3px solid rgba(0,0,0,.25); outline-offset: 1px; border-color: var(--ttf-ink); }
.ttf .ttf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .ttf .ttf-row { grid-template-columns: 1fr; } }
.ttf .ttf-check { display: flex; gap: 14px; align-items: flex-start; font-weight: 400; padding: 10px 0; border-bottom: 1px solid #eee; margin: 0; cursor: pointer; }
.ttf .ttf-check:last-of-type { border-bottom: 0; }
.ttf .ttf-check input { width: 28px; height: 28px; flex: 0 0 28px; margin: 0; accent-color: var(--ttf-accent); }
.ttf .ttf-info { max-height: 340px; overflow-y: auto; padding: 4px 12px 4px 4px; font-size: .92em; -webkit-overflow-scrolling: touch; }
.ttf .ttf-info p { margin: 0 0 .7em; }
.ttf .ttf-hint { color: var(--ttf-muted); font-size: .9em; margin: 0 0 12px; }
.ttf .ttf-steplabel { text-transform: uppercase; letter-spacing: .06em; font-size: .78em; color: var(--ttf-muted); margin: 0 0 .3em; font-weight: 700; }
.ttf .ttf-summary { background: #f4f4f4; border-radius: 8px; padding: 10px 14px; font-weight: 600; }

.ttf .ttf-sig { position: relative; border: 2px dashed #9a9a9a; border-radius: 10px; background: #fafafa; margin: 0 0 14px; }
.ttf .ttf-sig canvas { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; }
.ttf .ttf-sig-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #aaa; pointer-events: none; white-space: nowrap; }
.ttf .ttf-sig.is-signed { border-style: solid; border-color: var(--ttf-ink); background: #fff; }
.ttf .ttf-sig.is-signed .ttf-sig-hint, .ttf .ttf-sig.is-drawing .ttf-sig-hint { display: none; }
.ttf .ttf-sig.is-invalid { border-color: var(--ttf-err); background: #fff6f5; }
.ttf .ttf-sig-clear { position: absolute; right: 8px; top: 8px; z-index: 1; border: 1px solid #bbb; background: #fff; border-radius: 6px; padding: 6px 12px; font: inherit; font-size: .85em; cursor: pointer; }

.ttf .ttf-ink { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 48px; gap: 8px; margin: 0 0 12px; align-items: end; }
.ttf .ttf-ink label { margin: 0; font-size: .8em; font-weight: 600; color: var(--ttf-muted); }
.ttf .ttf-ink input { margin-top: 4px; font-size: 1.25em; }
.ttf .ttf-ink-del { height: 52px; border: 1px solid #bbb; background: #fff; border-radius: 8px; font-size: 1.4em; cursor: pointer; }
@media (max-width: 760px) { .ttf .ttf-ink { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px solid #eee; } .ttf .ttf-ink-del { grid-column: 1 / -1; height: 40px; } }

.ttf .ttf-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin: 8px 0 24px; }
.ttf .ttf-btn { appearance: none; border: 2px solid var(--ttf-accent); background: var(--ttf-accent); color: #fff; font: inherit; font-weight: 700; padding: 14px 24px; border-radius: 10px; cursor: pointer; min-height: 56px; }
.ttf .ttf-btn:disabled { opacity: .45; cursor: not-allowed; }
.ttf .ttf-btn-ghost { background: #fff; color: var(--ttf-accent); }
.ttf .ttf-link { background: none; border: 0; color: var(--ttf-muted); text-decoration: underline; font: inherit; font-size: .85em; cursor: pointer; }
.ttf .ttf-lock { text-align: center; }

.ttf .ttf-alert { border-left: 4px solid var(--ttf-err); background: #fff6f5; padding: 12px 14px; border-radius: 6px; margin: 0 0 16px; }
.ttf .ttf-ok { border-left: 4px solid var(--ttf-ok); background: #f0faf4; padding: 12px 14px; border-radius: 6px; }

.ttf .ttf-unlock { max-width: 360px; margin: 40px auto; text-align: center; }
.ttf .ttf-unlock input { text-align: center; font-size: 1.6em; letter-spacing: .4em; margin: 0 0 16px; }
.ttf .ttf-unlock .ttf-btn { width: 100%; margin-bottom: 16px; }
.ttf [hidden] { display: none !important; }
