@font-face { font-family: "SigScript"; src: url("lib/sig.woff2") format("woff2"); font-display: block; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f4f6f4; color: #1d1d1d; font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; padding-bottom: 110px; }
.lh { background: #fff; max-width: 820px; margin: 0 auto; padding: 22px 22px 0; text-align: center; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
.lh-name { font-weight: 700; font-size: 26px; }
.lh-sub { font-weight: 700; font-style: italic; font-size: 12px; }
.lh-bar { height: 7px; background: #33cc33; margin: 8px -6px 8px; }
.lh-row { display: flex; justify-content: space-between; text-align: left; font-size: 13px; line-height: 1.35; }
.lh-row .r { text-align: right; }
.lh-rule { height: 1px; background: #00cc00; margin-top: 8px; }
main { background: #fff; max-width: 820px; margin: 0 auto; padding: 8px 22px 30px; }
.loading { text-align: center; padding: 40px 10px; color: #555; }
h1.doc-title { font-size: 21px; text-align: center; margin: 18px 0 4px; line-height: 1.3; }
.doc-sub { text-align: center; font-style: italic; color: #444; font-size: 15px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 26px 0 8px; }
p { margin: 0 0 12px; }
.caps { font-weight: 700; font-size: 14px; letter-spacing: .01em; }
ul.doc-list { padding-left: 22px; margin: 0 0 12px; }
ul.doc-list.plain { list-style: none; padding-left: 10px; }
ul.doc-list li { margin-bottom: 6px; }
.intro { border: 2px solid #33cc33; background: #f2fbf2; border-radius: 12px; padding: 18px; margin: 10px 0 18px; }
.intro h3 { margin: 0 0 8px; font-size: 18px; }
.intro ol { margin: 0 0 12px; padding-left: 22px; }
.intro li { margin-bottom: 4px; }
.btn { display: inline-block; border: 0; border-radius: 10px; background: #1a8f1a; color: #fff; font-family: inherit; font-weight: 700; font-size: 18px; line-height: 1.1; text-decoration: none; text-align: center; padding: 16px 22px; cursor: pointer; min-height: 52px; }
.btn[disabled] { background: #9bb79b; cursor: not-allowed; }
.btn.alt { background: #fff; color: #1a6e1a; border: 2px solid #1a8f1a; }
.btn.block { display: block; width: 100%; }
.ck { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; cursor: pointer; }
.ck input { width: 26px; height: 26px; flex: 0 0 26px; margin: 1px 0 0; accent-color: #1a8f1a; }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.field .opt { font-weight: 400; color: #666; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px; border: 2px solid #c9d6c9; border-radius: 9px; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: #1a8f1a; }
.req-todo { background: #fff6c7; border: 2px solid #e8b400 !important; border-radius: 10px; }
.field.req-todo, .choice.req-todo { padding: 8px; }
.field.req-todo input, .field.req-todo textarea { border-color: #e8b400; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: #8a6a00; background: #ffe58a; border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.choice { margin: 0 0 14px; border: 2px solid transparent; }
.choice .ck { padding: 9px 8px; }
.choice .other-in { margin: 4px 0 4px 46px; width: calc(100% - 46px); font: inherit; padding: 10px; border: 2px solid #c9d6c9; border-radius: 9px; }
.initial { display: flex; gap: 14px; align-items: center; margin: 4px 0 18px; padding: 12px; border: 2px dashed #e8b400; background: #fff6c7; border-radius: 12px; cursor: pointer; user-select: none; }
.initial .box { flex: 0 0 96px; height: 62px; border: 2px solid #e8b400; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #8a6a00; text-align: center; line-height: 1.2; }
.initial .txt { font-size: 15px; }
.initial.done { border: 2px solid #33cc33; background: #f2fbf2; }
.initial.done .box { border-color: #33cc33; font-family: "SigScript", cursive; font-size: 30px; color: #12326b; font-weight: 600; }
.initial .when { display: block; font-size: 12px; color: #4a6b4a; margin-top: 3px; }
.sigarea { margin: 10px 0 18px; padding: 14px; border: 2px dashed #e8b400; background: #fff6c7; border-radius: 12px; cursor: pointer; text-align: center; }
.sigarea .ph { font-weight: 700; color: #8a6a00; padding: 26px 0; font-size: 18px; }
.sigarea.done { border: 2px solid #33cc33; background: #f2fbf2; }
.sigarea img { max-width: 100%; height: 90px; object-fit: contain; display: block; margin: 0 auto; }
.sigarea .sline { border-top: 1px solid #333; margin: 2px 10% 4px; }
.sigarea .meta { font-size: 13px; color: #4a6b4a; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #cfdccf; box-shadow: 0 -4px 14px rgba(0,0,0,.08); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); z-index: 20; }
.bar-in { max-width: 820px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.prog { flex: 1; font-size: 14px; color: #333; }
.prog .track { height: 8px; background: #e3ebe3; border-radius: 5px; margin-top: 5px; overflow: hidden; }
.prog .fill { height: 100%; background: #33cc33; width: 0; transition: width .25s; }
.bar .btn { padding: 14px 20px; min-width: 132px; }
.flash { animation: flash 1.1s ease 1; }
@keyframes flash { 0%,100% { box-shadow: none; } 40% { box-shadow: 0 0 0 5px rgba(232,180,0,.55); } }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 620px; border-radius: 16px 16px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 94vh; overflow: auto; }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { border-radius: 16px; } }
.modal h3 { margin: 0 0 10px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs button { flex: 1; font: inherit; font-weight: 700; padding: 11px; border-radius: 9px; border: 2px solid #c9d6c9; background: #fff; cursor: pointer; }
.tabs button.on { border-color: #1a8f1a; background: #f2fbf2; color: #1a6e1a; }
.sig-preview { border: 1px solid #c9d6c9; border-radius: 10px; height: 110px; display: flex; align-items: center; justify-content: center; font-family: "SigScript", cursive; font-size: 46px; color: #12326b; overflow: hidden; white-space: nowrap; margin: 10px 0; }
canvas.pad { width: 100%; height: 170px; border: 1px solid #c9d6c9; border-radius: 10px; touch-action: none; background: #fff; display: block; }
.row { display: flex; gap: 10px; margin-top: 12px; }
.row .btn { flex: 1; }
.small { font-size: 13px; color: #555; }
.center { text-align: center; }
.done-card { text-align: center; padding: 30px 6px; }
.done-card .big { font-size: 54px; line-height: 1; color: #1a8f1a; }
.err { color: #a11; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  main, .lh { padding-left: 14px; padding-right: 14px; }
  .lh-name { font-size: 22px; }
  .lh-row { font-size: 12px; }
  .initial .box { flex-basis: 78px; }
}
.card { display: block; text-decoration: none; color: inherit; border: 2px solid #33cc33; background: #f2fbf2; border-radius: 12px; padding: 16px 18px; margin: 0 0 14px; }
.card b { display: block; font-size: 18px; color: #12326b; margin-bottom: 4px; }
.card span { font-size: 15px; color: #444; }
.card.alt { border-color: #c9d6c9; background: #fff; }
.card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
body.plain { padding-bottom: 30px; }
.npp { line-height: 1.6; }
.npp .callout { border: 2px solid #33cc33; background: #f2fbf2; border-radius: 10px; padding: 12px 14px; }
@media print { .bar { display: none; } body { background: #fff; } }
