:root{font:16px/1.5 Inter,system-ui,sans-serif;color:#211a36;background:#f6f4fa;--accent:#7135dd;--ink:#211a36;--muted:#645974;--line:#e5dfef}
*{box-sizing:border-box}body{margin:0}.shell{width:min(1100px,calc(100% - 3rem));margin-inline:auto}.top{background:#211735;color:white}.top-inner,.brand,.intro,.actions,.sig-head,.dialog-head,.bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem}.top-inner{min-height:66px}.brand{color:white;text-decoration:none;font-weight:750;justify-content:flex-start}.brand img{width:36px;border-radius:50%}.confidential{font-size:.85rem;color:#e4d8fc}.intro{padding:2.2rem 0 1.65rem}.intro h1{font-size:clamp(1.85rem,4vw,2.75rem);margin:0;line-height:1.1;letter-spacing:-.05em}.intro p{margin:.65rem 0 0;color:var(--muted)}button{background:var(--accent);color:white;border:1px solid transparent;border-radius:8px;padding:.65rem 1rem;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}button:hover{background:#5821b8}.secondary{background:white;color:#52269e;border-color:#dcd1ec}.secondary:hover{background:#f3edff}.compact{font-size:.875rem;padding:.4rem .65rem}.layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:1.5rem}nav{position:sticky;top:1rem;border:1px solid var(--line);background:white;border-radius:12px;padding:.55rem}nav a{display:block;padding:.58rem .65rem;border-radius:6px;color:#4e3a70;text-decoration:none;font-size:.875rem;font-weight:650}nav a:hover{background:#f2eaff}section{background:white;border:1px solid var(--line);border-radius:12px;padding:1.35rem;margin:0 0 1rem;scroll-margin-top:1rem}h2{font-size:1.15rem;line-height:1.25;margin:0 0 1rem}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}label,legend{font-size:.9rem;font-weight:650}label{display:block}input:not([type=radio]),textarea{display:block;width:100%;min-width:0;font:inherit;font-weight:400;color:var(--ink);border:1px solid #d9d1e5;border-radius:7px;padding:.59rem .7rem;margin-top:.3rem;background:#fcfbfe}textarea{resize:vertical}label+label:has(textarea),.fields+label,.signature{margin-top:1rem}input[type=radio]{accent-color:var(--accent);width:1.07rem;height:1.07rem;margin:0}table{width:100%;border-collapse:collapse;margin-bottom:1rem;font-size:.875rem}td,th{padding:.42rem .2rem;text-align:center}th[scope=row]{text-align:left;padding-left:.55rem}thead{background:#f1ebfc;color:#4f376f}tbody tr:nth-child(even){background:#faf7fe}.rate{display:flex;justify-content:center;align-items:center;min-height:32px;cursor:pointer}fieldset{border:0;margin:0;padding:0;min-width:0}legend{padding:0;margin-bottom:.5rem}.choices{display:flex;flex-wrap:wrap;gap:.7rem}.choices label{display:flex;gap:.25rem;align-items:center;cursor:pointer}canvas#signature{width:100%;height:112px;border:1px dashed #b9a9cf;border-radius:8px;display:block;margin:.5rem 0;background:#fcfbfe;touch-action:none;cursor:crosshair}.typed{color:var(--muted)}.bottom{padding-bottom:2rem}.bottom p{margin:0;color:#563588;font-size:.9rem}dialog{width:min(730px,95vw);max-height:90vh;border:0;border-radius:12px;padding:0;background:#eae5f1}dialog::backdrop{background:#211735a6}.dialog-head{background:white;padding:.75rem 1rem;position:sticky;top:0;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0}#preview-pages{padding:1rem;display:grid;gap:1rem}#preview-pages canvas{width:100%;height:auto;box-shadow:0 2px 10px #29194220}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:830px){.layout{grid-template-columns:1fr}aside{display:none}}
@media(max-width:560px){.shell{width:calc(100% - 1.5rem)}.intro{align-items:flex-start;flex-direction:column}.fields{grid-template-columns:1fr}section{padding:.85rem}table{font-size:.75rem}th[scope=row]{padding-left:.2rem}td,th{padding-inline:.1rem}}

/* LUV light theme */
:root{color:#18181b;background:#f3f3f5;--accent:#c31b62;--ink:#18181b;--muted:#60606b;--line:#dedee4}
[hidden]{display:none!important}
.top{background:#fff;border-bottom:1px solid #dedee4}.top .brand{color:#18181b}.confidential{color:#60606b}.brand img{outline:1px solid #dedee4}
button:hover,.button:hover{background:#a51450}.secondary{color:#a51450;border-color:#dedee4}.secondary:hover{background:#fff0f6}
nav a{color:#34343b}nav a:hover{background:#fce7f1;color:#a51450}
input:not([type=radio]),textarea{background:#fff;border-color:#ceced6}input[type=radio]{accent-color:#db2777}
thead{background:#f3f3f5;color:#393940}tbody tr:nth-child(even){background:#fafafa}canvas#signature{background:#fafafa;border-color:#b0b0b9}
.bottom p{color:#60606b}dialog{background:#f3f3f5}dialog::backdrop{background:#18181ba6}.dialog-head{border-color:#dedee4}
.tabs{position:static;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0}
.tabs-inner{display:flex;gap:.35rem;padding:.5rem 0}.tabs a[aria-current=page]{background:#fce7f1;color:#a51450}
.button{display:inline-block;background:var(--accent);color:white;border-radius:8px;padding:.65rem 1rem;font-weight:700;text-decoration:none;white-space:nowrap}
.history-toolbar{display:flex;align-items:end;gap:.7rem;margin-bottom:1rem}.history-toolbar label{width:min(100%,380px)}
#history-status{color:var(--muted);margin:0 0 1rem}.table-scroll{overflow-x:auto}
#history-table th,#history-table td{text-align:left;padding:.65rem;vertical-align:middle}
#history-table{margin:0}#history-table td:first-child{min-width:150px}#history-table td:nth-child(3){white-space:nowrap}
#history-table a{color:#a51450;font-weight:650;white-space:nowrap}#history-table small{display:block;color:var(--muted);font-size:.8rem}
.history-actions{display:flex;gap:.8rem}
:focus-visible{outline-color:#db2777}
@media(max-width:560px){.bottom{flex-wrap:wrap}.history-toolbar{align-items:stretch;flex-direction:column}.history-toolbar button{align-self:start}}
.auth-shell{width:min(440px,calc(100% - 2rem));margin:3rem auto}.auth-shell h1{margin:0 0 1rem;font-size:1.65rem}.auth-shell p{color:var(--muted)}
.auth-form{display:grid;gap:1rem}.auth-form button{justify-self:start}.auth-form p{margin:0}.auth-message{font-weight:650;color:#a41f3b!important}
.auth-form select{display:block;width:100%;padding:.65rem;border:1px solid #ceced6;border-radius:7px;background:#fff;margin-top:.3rem;font:inherit}
.account-nav{display:flex;align-items:center;gap:.75rem;font-size:.875rem}.account-nav a,.auth-shell a{color:#a51450;font-weight:650}
