:root{--paper:#f5f3ed;--surface:#fffdf8;--ink:#1b2420;--muted:#65706a;--line:#d9ddd5;--line-strong:#b8c0b9;--green:#245c4a;--green-deep:#173f33;--green-soft:#e6eee9;--amber:#9a5b18;--amber-soft:#f7ead8;--shadow:0 24px 70px #1b242014;color:var(--ink);background:var(--paper);font-synthesis:none;text-rendering:optimizelegibility;font-family:Segoe UI,system-ui,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 5% 0%, #245c4a14, transparent 28rem), var(--paper);min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline-offset:3px;outline:3px solid #245c4a47}label:has(input:focus-visible){outline-offset:3px;outline:3px solid #245c4a47}#app{text-align:left;border:0;width:100%;max-width:none;min-height:100vh;margin:0}.auth-page{place-items:center;min-height:100vh;padding:32px;display:grid}.auth-card{width:min(100%,470px);box-shadow:var(--shadow);background:#fffdf8f0;border:1px solid #245c4a2e;border-radius:28px 28px 8px;padding:clamp(32px,6vw,56px)}.auth-brand{color:#fff;background:var(--green);border-radius:16px 16px 5px;place-items:center;width:54px;height:54px;margin-bottom:32px;font-weight:800;display:grid}.eyebrow{color:var(--green);letter-spacing:.16em;margin:0 0 10px;font-size:.72rem;font-weight:800}.auth-card h1{letter-spacing:-.045em;margin:0;font-family:Georgia,serif;font-size:clamp(2rem,7vw,3.2rem);font-weight:500}.auth-lead,.auth-security{color:var(--muted);line-height:1.6}.auth-form,.admin-create{gap:16px;margin-top:28px;display:grid}.auth-form label,.admin-create label{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;gap:7px;font-size:.78rem;font-weight:700;display:grid}.auth-form input,.admin-create input{border:1px solid var(--line-strong);width:100%;color:var(--ink);letter-spacing:normal;text-transform:none;background:#fff;border-radius:9px;padding:13px 14px;font-size:1rem}.auth-form button,.admin-create button{color:#fff;background:var(--green);border:0;border-radius:9px;min-height:48px;font-weight:750}.auth-form button:disabled,.admin-create button:disabled{cursor:wait;opacity:.58}.auth-security{border-top:1px solid var(--line);margin:24px 0 0;padding-top:20px;font-size:.78rem}.session-bar{color:#dce8e2;background:var(--green-deep);justify-content:flex-end;align-items:center;gap:18px;min-height:38px;padding:7px clamp(22px,5vw,72px);font-size:.78rem;display:flex}.session-bar div{gap:8px;display:flex}.session-bar button,.user-actions button{color:inherit;background:0 0;border:1px solid;border-radius:6px;padding:5px 9px;font-size:.75rem}.admin-backdrop{z-index:20;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#101d18ad;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow:auto}.admin-panel{background:var(--surface);border-radius:24px 24px 8px;width:min(100%,960px);max-height:calc(100vh - 48px);padding:clamp(24px,4vw,42px);overflow:auto;box-shadow:0 40px 100px #00000042}.admin-panel>header{justify-content:space-between;align-items:flex-start;display:flex}.admin-panel h2{margin:0;font:500 2rem/1.1 Georgia,serif}.admin-create{border:1px solid var(--line);background:var(--paper);border-radius:12px;grid-template-columns:1fr 1fr 1fr auto;align-items:end;padding:22px}.admin-create button{padding:0 22px}.admin-notice{color:var(--green);font-weight:700}.password-reset{background:var(--amber-soft);border:1px solid #9a5b1847;border-radius:10px;grid-template-columns:minmax(240px,1fr) auto auto;align-items:end;gap:12px;margin-top:18px;padding:18px;display:grid}.password-reset label{color:var(--amber);gap:6px;font-size:.78rem;font-weight:700;display:grid}.password-reset input{border:1px solid var(--line-strong);background:#fff;border-radius:7px;min-height:42px;padding:10px 12px}.password-reset>button:not(.text-button){color:#fff;background:var(--green);border:0;border-radius:7px;min-height:42px;padding:0 15px;font-weight:700}.user-list{border-block:1px solid var(--line);gap:1px;margin-top:24px;display:grid}.user-list article{border-bottom:1px solid var(--line);grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:24px;padding:16px 4px;display:grid}.user-list article>div:first-child{gap:4px;display:grid}.user-list article span{color:var(--muted);font-size:.8rem}.status:before{background:var(--green);content:"";border-radius:50%;width:8px;height:8px;margin-right:7px;display:inline-block}.status.blocked:before{background:var(--amber)}.user-actions{color:var(--green);gap:7px;display:flex}.app-shell{min-height:100vh}.topbar{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#f5f3eddb;border-bottom:1px solid #245c4a26;justify-content:space-between;align-items:center;min-height:78px;padding:14px clamp(22px,5vw,72px);display:flex}.brand{color:inherit;align-items:center;gap:12px;text-decoration:none;display:inline-flex}.brand-mark{color:#fff;background:var(--green);border-radius:12px 12px 4px;place-items:center;width:42px;height:42px;font:700 20px/1 Segoe UI,sans-serif;display:grid}.brand strong,.brand small{display:block}.brand strong{letter-spacing:-.02em;font:700 16px/1.2 Segoe UI,sans-serif}.brand small{color:var(--muted);margin-top:3px;font-size:12px}.topbar-status{color:var(--muted);align-items:center;gap:9px;font-size:13px;display:inline-flex}.status-dot{background:#5d8a76;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 5px #5d8a7621}main{width:min(1180px,100% - 36px);margin:0 auto;padding:64px 0 36px}.hero{max-width:800px;margin-bottom:38px;position:static}.eyebrow,.section-index{color:var(--green);letter-spacing:.16em;margin:0 0 12px;font-size:11px;font-weight:700}.hero h1{max-width:760px;color:var(--ink);letter-spacing:-.055em;margin:0;font:600 clamp(38px,6vw,68px)/1.02 Segoe UI,sans-serif}.hero-copy{max-width:650px;color:var(--muted);margin-top:22px;font-size:18px;line-height:1.65}.privacy-note{background:#e6eee9bf;border:1px solid #cbd9d1;border-radius:18px;grid-template-columns:auto 1fr auto;align-items:center;gap:16px;margin-bottom:24px;padding:18px 20px;display:grid}.icon-box,.upload-icon{color:var(--green);background:#f9fbf8;place-items:center;display:grid}.icon-box{border-radius:12px;width:42px;height:42px}.icon-box svg,.upload-icon svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7px;width:22px}.privacy-note strong{font:600 14px/1.3 Segoe UI,sans-serif}.privacy-note p{color:var(--muted);margin-top:3px;font-size:13px;line-height:1.5}.privacy-badge,.stage-pill,.source-badge{color:var(--green);letter-spacing:.08em;background:#f7faf8;border:1px solid #b7c9be;border-radius:999px;font-size:11px;font-weight:700}.privacy-badge{padding:7px 10px}.steps{border-bottom:1px solid var(--line);grid-template-columns:repeat(4,1fr);margin:28px 0 14px;display:grid}.step{color:#89918c;border-bottom:2px solid #0000;align-items:center;gap:9px;padding:13px 8px;font-size:13px;display:flex}.step span{font-size:10px;font-weight:700}.step.active{border-color:var(--green);color:var(--green);font-weight:600}.workspace-card,.review-layout{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:24px;overflow:hidden}.workspace-card{padding:clamp(24px,5vw,52px)}.section-heading,.risk-summary,.action-row,.export-bar{justify-content:space-between;align-items:center;gap:24px;display:flex}.section-heading h2,.risk-summary h2,.document-panel h2{color:var(--ink);letter-spacing:-.035em;margin:0;font:600 27px/1.2 Segoe UI,sans-serif}.section-heading p:not(.section-index){max-width:610px;color:var(--muted);margin-top:10px;line-height:1.6}.stage-pill,.source-badge{flex:none;padding:8px 11px}.dropzone{border:1px dashed var(--line-strong);cursor:pointer;background:linear-gradient(#fffdf8bd,#fffdf8bd),repeating-linear-gradient(-45deg,#0000,#0000 8px,#245c4a09 8px 16px);border-radius:18px;align-content:center;place-items:center;min-height:210px;margin:34px 0 32px;padding:26px;transition:border-color .16s,transform .16s;display:grid}.dropzone:hover{border-color:var(--green);transform:translateY(-2px)}.dropzone input{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.upload-icon{border:1px solid var(--line);border-radius:15px;width:52px;height:52px;margin-bottom:14px}.dropzone strong{color:var(--ink);text-align:center;font:600 15px/1.3 Segoe UI,sans-serif}.dropzone>span:last-child{color:var(--muted);margin-top:8px;font-size:12px}fieldset{border:0;padding:0}legend{color:var(--ink);margin-bottom:14px;font:600 15px/1.3 Segoe UI,sans-serif}.side-options{grid-template-columns:repeat(2,1fr);gap:12px;display:grid}.side-card{border:1px solid var(--line);cursor:pointer;border-radius:15px;grid-template-columns:auto 1fr;align-items:center;gap:13px;min-height:86px;padding:16px 18px;display:grid}.side-card.selected{border-color:var(--green);background:var(--green-soft);box-shadow:inset 0 0 0 1px var(--green)}.side-card input{opacity:0;position:absolute}.radio-mark{border:1px solid var(--line-strong);background:var(--surface);border-radius:50%;width:18px;height:18px}.side-card.selected .radio-mark{border:5px solid var(--green)}.side-card strong,.side-card small{display:block}.side-card strong{font:600 14px/1.3 Segoe UI,sans-serif}.side-card small{color:var(--muted);margin-top:4px;font-size:12px;line-height:1.35}.action-row{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}.action-row p{max-width:570px;color:var(--muted);font-size:12px;line-height:1.5}.action-row button,.export-bar button{color:#fff;background:var(--green);border:0;border-radius:12px;justify-content:center;align-items:center;gap:24px;min-height:48px;padding:0 20px;font-weight:600;transition:background .15s,transform .15s;display:inline-flex}.action-row button:hover:not(:disabled),.export-bar button:hover:not(:disabled){background:var(--green-deep);transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.45}.error-message{color:#9b332c;margin-top:18px}.review-layout{grid-template-columns:minmax(240px,.72fr) minmax(0,1.6fr);display:grid}.document-panel,.risk-panel{padding:clamp(24px,4vw,42px)}.document-panel{border-right:1px solid var(--line);background:#f2f1eb}.document-panel dl{margin:30px 0}.document-panel dl div{border-bottom:1px solid var(--line);justify-content:space-between;padding:13px 0;display:flex}.document-panel dt{color:var(--muted)}.document-panel dd{margin:0;font-weight:600}.text-button{color:var(--green);background:0 0;border:0;padding:0;font-weight:600}.risk-summary{margin-bottom:24px}.risk-card{border:1px solid var(--line);border-radius:17px;overflow:hidden}.risk-meta{border-bottom:1px solid var(--line);background:var(--amber-soft);color:var(--amber);letter-spacing:.08em;gap:10px;padding:12px 16px;font-size:10px;font-weight:700;display:flex}.risk-meta span:last-child{margin-left:auto}.risk-card blockquote{border-left:3px solid var(--line-strong);color:#3d4943;margin:22px 22px 14px;padding-left:16px;font-family:Georgia,serif;font-size:16px;line-height:1.55}.risk-card>p{color:var(--muted);margin:0 22px 22px;line-height:1.55}.amendment{background:var(--green-soft);border-radius:12px;margin:0 22px 20px;padding:17px}.amendment span{color:var(--green);letter-spacing:.12em;font-size:10px;font-weight:700}.amendment p{margin:8px 0 0;line-height:1.55}.select-amendment{border-top:1px solid var(--line);cursor:pointer;align-items:center;gap:10px;padding:16px 22px;font-size:13px;font-weight:600;display:flex}.select-amendment input{width:18px;height:18px;accent-color:var(--green)}.export-bar{background:#f1f0ea;border-radius:14px;margin-top:20px;padding:16px 18px}.export-bar span{color:var(--muted);font-size:13px}footer{width:min(1180px,100% - 36px);color:var(--muted);justify-content:space-between;margin:0 auto;padding:26px 0 34px;font-size:11px;display:flex}@media (width<=800px){.admin-create,.password-reset,.user-list article{grid-template-columns:1fr}.session-bar{flex-direction:column;align-items:flex-start}.topbar-status{display:none}main{padding-top:42px}.steps{grid-template-columns:repeat(2,1fr)}.section-heading,.risk-summary,.action-row{flex-direction:column;align-items:flex-start}.side-options,.review-layout{grid-template-columns:1fr}.document-panel{border-right:0;border-bottom:1px solid var(--line)}.action-row button,.export-bar button{width:100%}}@media (width<=540px){.privacy-note{grid-template-columns:auto 1fr}.privacy-badge{display:none}.hero h1{font-size:39px}.workspace-card{border-radius:18px;padding:22px}.stage-pill,.source-badge{display:none}.export-bar,footer{flex-direction:column;align-items:stretch}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}.admin-tabs{gap:.5rem;margin-bottom:1rem;display:flex}.admin-tabs button{border:1px solid var(--line,#d6d1c7);background:0 0;padding:.45rem .9rem}.admin-tabs button.active,.admin-tabs button[aria-selected=true]{background:var(--ink,#1f1b16);color:var(--paper,#fffaf2)}.analysis-warnings{color:var(--muted,#5c564c);margin:0 0 1rem;padding-left:1.1rem}.privacy-disclosure{border:1px solid var(--line);background:var(--surface);border-radius:12px;margin:0 0 1.25rem;padding:.9rem 1rem}.privacy-disclosure summary{cursor:pointer;font-weight:600}.privacy-disclosure ul{color:var(--muted);margin:.75rem 0 0;padding-left:1.2rem}.privacy-accept{border:1px solid var(--line);background:var(--green-soft);border-radius:12px;align-items:flex-start;gap:.75rem;margin:0 0 1rem;padding:.85rem 1rem;display:flex}.privacy-accept input{margin-top:.2rem}.analyzing-card .progress-heartbeat{min-height:1.5em;font-size:1.05rem}.progress-track{background:var(--green-soft);border-radius:999px;height:.55rem;margin:1rem 0;overflow:hidden}.progress-bar{border-radius:inherit;background:var(--green);width:40%;height:100%;animation:1.8s ease-in-out infinite workbench-progress;display:block}@media (prefers-reduced-motion:reduce){.progress-bar{width:100%;animation:none}}@keyframes workbench-progress{0%{transform:translate(-120%)}to{transform:translate(280%)}}.muted-copy{color:var(--muted)}.selection-toolbar{flex-wrap:wrap;gap:.5rem;margin:0 0 1rem;display:flex}.selection-toolbar button,.editor-actions button{border:1px solid var(--line-strong);background:var(--surface);border-radius:999px;padding:.4rem .85rem}.exclude-field input{border:1px solid var(--line);border-radius:999px;min-width:12rem;padding:.4rem .7rem}.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;align-items:center;gap:.25rem;padding:.15rem .55rem;font-size:.78rem;display:inline-flex}.chip-priority{border-color:var(--amber);background:var(--amber-soft)}.chip-other{border-style:dashed}.chip-basis-confirmed{border-color:var(--green);background:var(--green-soft)}.chip-basis-unverified_source,.chip-basis-conflict,.chip-basis-needs_lawyer_review{border-style:dashed;border-color:var(--amber);background:var(--amber-soft)}.warning-code{margin-right:.4rem;font-family:ui-monospace,monospace;font-size:.85em;display:inline-block}.risk-card-selected{border-color:var(--green);box-shadow:inset 4px 0 0 var(--green)}.amendment-editor textarea{border:1px solid var(--line);resize:vertical;border-radius:10px;width:100%;margin-top:.5rem;padding:.75rem}.editor-actions{gap:.75rem;margin-top:.5rem;display:flex}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}
