:root{font-family:system-ui,sans-serif;color:#14263f;background:#f3f6fc;color-scheme:light}*{box-sizing:border-box}body{margin:0}header{background:#14263f;color:white;padding:18px 24px;display:flex;justify-content:space-between;gap:12px}header a{color:white;font-weight:750;text-decoration:none}main{max-width:1080px;margin:auto;padding:24px}h1{font-size:clamp(1.7rem,5vw,2.4rem)}h2{font-size:1.2rem}nav,.actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}button,.button{font:inherit;background:#2759d8;color:white;border:1px solid transparent;border-radius:9px;padding:11px 16px;cursor:pointer;text-decoration:none;display:inline-block;white-space:normal}button:disabled{opacity:.55;cursor:wait}.secondary{background:white;border-color:#bdcce5;color:#14263f}.danger{background:#b82043}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #e59a1a;outline-offset:3px}.card,fieldset,details{background:white;border:1px solid #d6dff0;border-radius:12px;padding:20px;margin:16px 0;min-width:0;box-shadow:0 4px 16px #14263f05}.card{border-top:4px solid #7254c9;background:linear-gradient(130deg,#f5f1ff,white)}fieldset{border-top:3px solid #36a99b}legend{font-weight:700;max-width:100%;overflow-wrap:anywhere}label{display:block;margin:10px 0}input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{display:block;width:100%;font:inherit;border:1px solid #b8c7de;border-radius:7px;padding:11px;margin-top:6px;max-width:100%;background:white;color:#14263f}input[type=checkbox],input[type=radio]{width:20px;height:20px;vertical-align:middle;margin-right:10px}input[type=range]{width:100%}.hint,small{color:#53657f;font-size:.9rem}.error{color:#a01635;background:#fff0f4;border-radius:7px;padding:10px}.success{color:#16663f;background:#e8f9ee;padding:12px;border-radius:7px}#message:empty{display:none}.row{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.matrix-row{padding:12px 0;border-bottom:1px solid #d6dff0}.matrix-row label{display:inline-block;margin-right:12px}.signature{max-width:100%;height:100px;background:#fff;border:1px solid #ccd}.value{overflow-wrap:anywhere}progress{width:100%;height:10px}.badge{display:inline-block;font-size:.8rem;border-radius:20px;padding:4px 10px;background:#e8e1fa;color:#594296}output{font-size:1.3rem;font-weight:700}details{margin-top:32px}.capture-note{background:#fff5db;padding:10px}a{color:#244dc6}#queue>div{background:white;border:1px solid #d6dff0;padding:14px;border-radius:10px;margin:10px 0}#queue>div p{overflow-wrap:anywhere}textarea{min-height:90px}@media(max-width:480px){main{padding:16px}fieldset,.card{padding:15px}nav button{flex:1 1 140px}.row>*{max-width:100%}}
dialog{max-width:min(90vw,480px);border:1px solid #bdcce5;border-radius:14px;padding:24px;color:#14263f}dialog::backdrop{background:#14263f80}
