/* Tona Give */
.preview-pane{background:var(--sunk);border-radius:20px;padding:24px}
.preview-pane iframe{width:100%;max-width:440px;height:760px;border:0;display:block;margin:0 auto;border-radius:18px;box-shadow:var(--shadow);background:#fff}
.swatches{display:flex;gap:8px;align-items:center}
.swatches label{cursor:pointer}
.swatches input{position:absolute;opacity:0}
.swatches span{display:block;width:30px;height:30px;border-radius:8px}
.swatches input:checked+span{outline:2px solid var(--ink);outline-offset:2px}
.copy-grid{display:grid;grid-template-columns:auto 1fr auto;gap:8px 12px;align-items:center;font-size:14px}
.copy-grid dt{color:var(--muted)}
.copy-grid dd{margin:0;font-weight:700}
.bars{display:flex;align-items:flex-end;gap:8px;height:180px;padding-top:10px}
.bars .b{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;height:100%;font-size:11px;color:var(--muted)}
.bars .b span{display:block;width:100%;background:var(--brand);border-radius:6px 6px 0 0;min-height:2px}
.bars .b span.recv{background:#3f9e69}
/* the donor widget itself */
.w{font:15px/1.5 var(--body);color:var(--ink);padding:22px}
.w h2{font-family:var(--head);font-size:21px;margin:0 0 4px}
.w .lede{font-size:14px;color:var(--ink2);margin-bottom:16px}
.w .step{font-size:13px;font-weight:600;margin:0 0 6px;display:block}
.w .amts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:14px}
.w .amts label{display:block}
.w .amts input{position:absolute;opacity:0}
.w .amts span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--field);border-radius:10px;font-weight:600;font-size:14px;cursor:pointer;background:#fff}
.w .amts input:checked+span{border:2px solid var(--wc);background:var(--wc-soft);color:var(--ink)}
.w .amts input:focus-visible+span{outline:3px solid #8f84e6}
.w .btn{background:var(--wc);width:100%;min-height:50px;font-size:16px;font-weight:700}
.w .btn:hover{filter:brightness(.92);background:var(--wc)}
.w .btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--field)}
.w .foot{margin:10px 0 0;font-size:12px;color:var(--muted);text-align:center}
.w .powered{margin:14px 0 0;padding-top:10px;border-top:1px solid var(--line,#e7e5ef);text-align:center;font-size:11.5px;letter-spacing:.01em}
.w .powered a{color:var(--muted);text-decoration:none}
.w .powered a:hover{color:var(--ink,#1d1b2c)}
.w .powered b{font-weight:700;color:var(--ink,#1d1b2c)}
.upgrade{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.upgrade ul{margin:6px 0 0;padding-left:18px}
.w .copyrow{display:flex;justify-content:space-between;gap:10px;align-items:center;border:1px solid var(--line2);border-radius:10px;padding:8px 10px;margin-bottom:6px;font-size:14px}
.w .copyrow b{display:block}
.w .copyrow small{color:var(--muted);font-size:12px}
.w .copyrow button{flex:none;border:1px solid var(--field);background:#fff;border-radius:8px;font:600 12px var(--body);padding:6px 10px;cursor:pointer}
/* the paper grant form: a choice on the last step, then a guided wizard */
.w .paper{border:1px dashed var(--field);border-radius:12px;padding:12px 14px;margin-top:14px;font-size:14px}
.w .paper b{display:block;margin-bottom:2px}
.w .paper p{margin:0 0 10px;color:var(--ink2);font-size:13px}
.w .wz-dots{display:flex;gap:6px;list-style:none;padding:0;margin:0 0 16px}
.w .wz-dots li{flex:1;height:4px;border-radius:4px;background:var(--line2)}
.w .wz-dots li.done{background:var(--wc)}
.w .wz-dots li.on{background:var(--wc);opacity:.45}
.w form:not(.js) .wz-dots{display:none}
.w form:not(.js) .wz-step{border-bottom:1px solid var(--line2);padding-bottom:12px;margin-bottom:16px}
.w .wz-kicker{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--wc);margin:0 0 4px}
.w .wz-how{padding-left:20px;margin:0 0 14px;font-size:14px}
.w .wz-how li{margin-bottom:8px}
.w .wz-how b{display:block}
.w .wz-q{font-size:13px;font-weight:700;margin:14px 0 6px}
.w .wz-f{display:block;border:0;padding:0;margin:0 0 14px}
.w .wz-f>span,.w .wz-f legend{display:block;font-size:13px;font-weight:600;margin-bottom:5px}
.w .wz-f .req{font-style:normal;font-weight:500;color:var(--muted);font-size:12px}
.w .wz-f input.bad,.w .wz-f textarea.bad{border-color:#c2410c}
.w .wz-hint{display:block;color:var(--muted);font-size:12px;margin-top:5px;line-height:1.4}
.w .wz-check{margin-bottom:4px}
.w .wz-locked{background:var(--sunk,#f6f5fa)}
.w .wz-ok{flex:none;width:24px;height:24px;border-radius:50%;background:#e3f4ea;color:#1f7a4a;display:grid;place-items:center;font-weight:700;font-size:13px}
.w .sigpad{position:relative;border:1px solid var(--field);border-radius:10px;background:#fff;touch-action:none}
.w .sigpad canvas{display:block;width:100%;height:auto;aspect-ratio:840/240;cursor:crosshair}
.w .sigpad .sig-line{position:absolute;left:6%;right:6%;bottom:24%;border-bottom:1px solid var(--line2);pointer-events:none}
.w .sigpad .sig-clear{position:absolute;top:6px;right:6px;border:1px solid var(--field);background:#fff;border-radius:8px;font:600 12px var(--body);padding:4px 8px;cursor:pointer}
.w .wz-type{display:block;font-size:12px;color:var(--muted);margin-top:8px}
.w .wz-type input{margin-top:4px}
.w .wz-review{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:6px 12px;font-size:13.5px;margin:0 0 12px}
.w .wz-review dt{color:var(--muted)}
.w .wz-review dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.w .wz-nav{display:flex;gap:8px;margin-top:8px}
.w .wz-nav .btn.ghost{flex:0 0 32%}
.w .wz-box{border:1px solid var(--line2);border-radius:12px;padding:12px 14px;font-size:14px}
.w .wz-box p{margin:4px 0 8px;color:var(--ink2)}
.w .wz-done-icon{width:44px;height:44px;border-radius:50%;background:#e3f4ea;color:#1f7a4a;display:grid;place-items:center;font-size:22px;font-weight:700;margin-bottom:10px}
/* grant documents on the dashboard */
.docs{list-style:none;margin:0;padding:0}
.docs li{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line2)}
.docs li:first-child{border-top:0}
.docs .doc-name{flex:1;min-width:0}
.docs .doc-name a{font-weight:600;overflow-wrap:anywhere}
.docs .doc-name small{display:block;color:var(--muted)}
.form-preview{width:100%;height:560px;border:1px solid var(--line2);border-radius:12px;margin-top:12px;background:var(--sunk)}
.w [hidden]{display:none!important}
