:root{--sand:#f4eee5;--paper:#fffdf9;--earth:#8a6049;--clay:#b98362;--ink:#302720;--muted:#796d64;--line:#dfd2c5;--danger:#a13f32}*{box-sizing:border-box}html{background:#f4eee5}body{margin:0;min-height:100vh;background:linear-gradient(150deg,#eee1d3,#faf7f1);font-family:Heebo,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:var(--ink)}main{max-width:540px;margin:auto;padding:calc(22px + env(safe-area-inset-top)) 17px calc(42px + env(safe-area-inset-bottom))}.brand{color:var(--earth);font-size:14px;margin:0 4px 12px}.card,.panel{background:var(--paper);border:1px solid var(--line);border-radius:28px;padding:27px 20px;box-shadow:0 18px 55px #5b3e2d18}.pill{display:inline-block;background:var(--sand);color:var(--earth);border-radius:30px;padding:6px 12px;margin-bottom:14px;font-weight:600}h1{font-size:31px;line-height:1.2;margin:0;color:var(--earth)}h2{font-size:24px;line-height:1.35;margin:8px 0 18px;color:var(--ink)}.sub{color:var(--muted);line-height:1.6;margin:8px 0}.privacy{background:#f7f1e9;border-radius:14px;padding:11px 13px;color:#665b53;font-size:13px;line-height:1.55;margin:15px 0}.bar{height:6px;border-radius:10px;background:var(--sand);overflow:hidden;margin:22px 0}.bar i{display:block;height:100%;background:var(--clay);width:25%;transition:.3s}.step{display:none}.step.active{display:block}.num{color:var(--clay);font-weight:600;font-size:13px}.step h2{color:var(--ink)}input,textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:16px;padding:15px;font:inherit;color:var(--ink);outline:none;font-size:16px}textarea{min-height:150px;resize:vertical}input:focus,textarea:focus{border-color:var(--clay);box-shadow:0 0 0 3px #b9836220}.nav{display:flex;gap:10px;margin-top:22px}button{border:0;border-radius:15px;padding:13px 18px;font:600 16px Heebo,system-ui,'Segoe UI',Arial,sans-serif;cursor:pointer;min-height:48px}.next,.save,.primary{flex:1;background:var(--earth);color:#fff}.back,.secondary{background:var(--sand);color:var(--earth)}.field-error{color:var(--danger);font-size:13px;margin:8px 2px 0}.saved{text-align:center;padding:24px 2px}.saved .leaf{font-size:42px}.saved h2{color:var(--earth)}.saved button{width:100%;margin-top:10px}.tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.tool-button{background:#fffaf5;color:var(--earth);border:1px solid var(--line);font-size:14px;padding:11px 9px}.panel{margin-top:14px;box-shadow:0 12px 40px #5b3e2d12}.panel-head{display:flex;align-items:center;justify-content:space-between}.panel-head h2{color:var(--earth);margin:0}.close{background:transparent;color:var(--muted);font-size:28px;padding:2px 12px}.small{color:var(--muted);font-size:13px;line-height:1.5}.center{text-align:center}.choice{display:flex;gap:9px;margin:18px 0}.choice button{flex:1;background:var(--sand);color:var(--earth)}.choice button.picked{background:var(--earth);color:#fff}label{display:block;color:var(--muted);font-size:14px;margin-bottom:7px}.full{width:100%;margin-top:14px}.history-entry{border-top:1px solid var(--line);padding:16px 0}.history-entry:first-of-type{margin-top:10px}.history-date{font-weight:600;color:var(--earth)}.history-entry p{white-space:pre-wrap;line-height:1.6;margin:8px 0}.history-entry .optional{color:var(--muted)}.empty{text-align:center;color:var(--muted);padding:20px 4px}.footer-privacy{text-align:center;color:var(--muted);font-size:12px;line-height:1.5;margin:18px 18px 0}@media(max-width:360px){.tools{grid-template-columns:1fr}h1{font-size:28px}.card,.panel{padding:23px 17px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}.signature-footer{margin:22px auto 0;text-align:center}.signature-footer a{display:inline-flex;align-items:center;justify-content:center;gap:12px;max-width:100%;color:var(--earth);text-decoration:none;padding:10px 14px;border-radius:18px}.signature-footer a:focus-visible{outline:3px solid #b9836240;outline-offset:2px}.signature-footer img{width:64px;height:64px;object-fit:contain;flex:0 0 auto}.signature-footer span{display:flex;flex-direction:column;align-items:flex-start;text-align:right;min-width:0}.signature-footer strong{font-size:16px}.signature-footer small{color:var(--ink);font-size:13px;line-height:1.45}.signature-footer em{color:var(--muted);font-size:12px;font-style:normal;direction:ltr}.step,.review,.saved,.ok,#flow,#editor{min-width:0}input,textarea,button{max-width:100%;min-width:0}input[type=date],input[type=time],input[type=number]{display:block;inline-size:100%;min-inline-size:0;direction:rtl;text-align:right;-webkit-appearance:none;appearance:none}@media(max-width:420px){main{padding-inline:12px}.card,.panel{padding-inline:17px}.signature-footer a{padding-inline:4px}.signature-footer img{width:56px;height:56px}.signature-footer small{font-size:12px}}.signature-footer{margin:22px auto 0;background:#171d1b;border-radius:22px;padding:9px}.signature-footer a{display:flex;color:#f7f4ed;padding:10px 13px;gap:13px}.signature-footer img{width:72px;height:72px;border-radius:12px;object-fit:cover}.signature-footer span{align-items:flex-start}.signature-footer strong{color:#f7f4ed}.signature-footer small{color:#d9e4df}.signature-footer em{color:#82b2aa}
@media(max-width:420px){.signature-footer{margin-top:18px}.signature-footer a{padding:8px;gap:10px}.signature-footer img{width:64px;height:64px}.signature-footer strong{font-size:15px}}
.signature-footer{margin:24px auto 0;padding:0;text-align:center;background:transparent;border:0;border-radius:0}.signature-footer a{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;max-width:100%;padding:6px 12px;color:var(--earth);text-decoration:none;border-radius:16px}.signature-footer a:focus-visible{outline:3px solid #b9836240;outline-offset:2px}.signature-footer img{display:block;width:58px;height:58px;object-fit:contain;flex:0 0 auto;border:0;border-radius:0}.signature-footer span{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}.signature-footer strong{color:var(--earth);font-size:15px;line-height:1.35}.signature-footer small{color:var(--ink);font-size:12px;line-height:1.45}.signature-footer em{color:var(--muted);font-size:11px;line-height:1.4;font-style:normal;direction:ltr}html,body{height:auto;min-height:0}body{overflow-x:hidden}main{min-height:0}@media(max-width:420px){.signature-footer{margin-top:18px}.signature-footer a{padding:5px 8px}.signature-footer img{width:54px;height:54px}.signature-footer strong{font-size:14px}.signature-footer small{font-size:11.5px}}