:root{--navy:#082238;--cyan:#0d5c78;--cyan2:#c58b54;--soft:#eef4f6;--paper:#f3f5f6;--white:#fff;--ink:#102332;--muted:#657784;--line:#d9e2e7;--green:#16735e;--rose:#a9324a;--shadow:0 24px 70px rgba(8,34,56,.12)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.shell{width:min(1180px,calc(100% - 36px));margin:auto}.skip{position:fixed;top:-60px;left:12px;z-index:100;background:#fff;padding:10px}.skip:focus{top:12px}header{background:var(--navy);color:#fff}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px}.brand>span{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:var(--cyan2);color:var(--navy);font-size:.77rem;font-weight:900}.brand b{display:block;font-size:.9rem}.brand small{display:block;color:#81dce5;font-size:.58rem;font-weight:800;letter-spacing:.15em}.topbar nav{display:flex;gap:22px;color:#c0d1d9;font-size:.78rem;font-weight:700}.welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;padding:48px 0 28px}.eyebrow{margin:0 0 8px;color:var(--cyan);font-size:.68rem;font-weight:850;letter-spacing:.16em;text-transform:uppercase}.welcome h1{margin:0;font-size:clamp(2.2rem,4vw,3.6rem);line-height:1;letter-spacing:-.045em}.welcome>div>p:last-child{margin:13px 0 0;color:var(--muted)}.identity{padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:.75rem}.notice{margin-bottom:18px;padding:13px 15px;border:1px solid #b7ddd3;border-radius:10px;background:#eef9f5;color:#155847;font-size:.85rem}.notice.error{border-color:#efc7cf;background:#fff1f4;color:#8e2840}.loading,.empty{min-height:360px;display:grid;place-items:center;align-content:center;text-align:center;color:var(--muted)}.loading span{width:30px;height:30px;border:3px solid #d5e5e8;border-top-color:var(--cyan);border-radius:50%;animation:spin .8s linear infinite}.loading p{margin-top:12px}@keyframes spin{to{transform:rotate(360deg)}}.case-card{margin-bottom:25px;border:1px solid var(--line);border-radius:17px;background:#fff;overflow:hidden}.case-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:25px 27px;background:linear-gradient(135deg,var(--navy),#103b4e);color:#fff}.case-head h2{margin:0;font-size:1.35rem}.case-head p{margin:6px 0 0;color:#bad0d8;font-size:.85rem}.case-ref{padding:7px 10px;border:1px solid rgba(255,255,255,.18);border-radius:8px;color:#8ee6ed;font-size:.72rem;font-weight:800}.case-summary{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}.case-summary div{padding:18px 25px}.case-summary div+div{border-left:1px solid var(--line)}.case-summary span{display:block;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.1em}.case-summary b{display:block;margin-top:6px;font-size:.9rem}.tabs{display:flex;gap:4px;padding:12px 16px;border-bottom:1px solid var(--line);overflow:auto}.tabs button{min-height:40px;border:0;border-radius:8px;background:transparent;padding:0 14px;color:var(--muted);font-size:.78rem;font-weight:800;white-space:nowrap;cursor:pointer}.tabs button.active{background:var(--soft);color:#086773}.tab-panel{display:none;padding:24px 26px}.tab-panel.active{display:block}.tab-panel h3{margin:0 0 16px;font-size:1rem}.requirements{display:grid;gap:9px}.requirement{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:10px}.requirement h4{margin:0;font-size:.84rem}.requirement p{margin:4px 0 0;color:var(--muted);font-size:.72rem}.status{display:inline-block;margin-left:7px;padding:2px 7px;border-radius:99px;background:#f3f5f6;color:#667781;font-size:.62rem;font-weight:850;text-transform:uppercase}.status.received,.status.validated,.status.signed{background:#e8f6f1;color:var(--green)}.upload-form{display:flex;align-items:center;gap:7px}.upload-form input{max-width:180px;font-size:.7rem}.primary,.secondary{min-height:41px;border:0;border-radius:8px;padding:0 14px;font-size:.76rem;font-weight:850;cursor:pointer}.primary{background:var(--navy);color:#fff}.secondary{background:#eef2f3;color:var(--ink)}.doc-list,.timeline,.messages,.signature-list{display:grid;gap:9px}.doc-item,.update,.message,.signature-item{padding:14px;border:1px solid var(--line);border-radius:10px}.doc-item b,.update b,.signature-item b{display:block;font-size:.84rem}.doc-item span,.update time,.message time,.signature-item span{color:var(--muted);font-size:.7rem}.update p,.message p{margin:7px 0 0;font-size:.8rem}.message.client{border-left:3px solid var(--cyan)}.message.staff{border-left:3px solid var(--navy)}.message-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:14px}.message-form textarea{min-height:70px;padding:10px;border:1px solid var(--line);border-radius:9px;resize:vertical}.signature-item{display:flex;align-items:center;justify-content:space-between;gap:20px}.signature-item.pending{border-color:#c6e6e9;background:#f4fbfb}dialog{width:min(820px,calc(100% - 24px));max-height:92vh;padding:0;border:0;border-radius:16px;box-shadow:var(--shadow)}dialog::backdrop{background:rgba(3,18,28,.72);backdrop-filter:blur(5px)}.signature-head{display:flex;justify-content:space-between;gap:20px;padding:22px 25px;border-bottom:1px solid var(--line)}.signature-head h2{margin:0}.signature-head button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:#fff;font-size:1.4rem}.document-preview{max-height:52vh;overflow:auto;padding:32px 42px;color:#222;font-family:Georgia,serif;line-height:1.7}.document-preview h1{font-size:1.3rem;text-align:center}.document-preview h2{font-size:1rem}.signature-consent{display:flex;gap:10px;padding:16px 25px;background:#f3f6f7;font-size:.78rem}.signature-consent input{margin-top:3px}dialog footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:15px 25px;border-top:1px solid var(--line)}dialog footer p{margin-right:auto;color:var(--rose);font-size:.72rem}.brand img{display:block;width:280px;height:70px;object-fit:contain;background:#fff;border-radius:8px}.topbar{height:86px}@media(max-width:720px){.brand img{width:210px;height:62px}.topbar{height:72px}}
@media(max-width:720px){.shell{width:min(100% - 24px,1180px)}.topbar nav a:first-child{display:none}.welcome{align-items:flex-start;flex-direction:column;padding-top:34px}.case-head,.signature-item{align-items:flex-start;flex-direction:column}.case-summary{grid-template-columns:1fr}.case-summary div+div{border-left:0;border-top:1px solid var(--line)}.tab-panel{padding:18px 14px}.requirement{grid-template-columns:1fr}.upload-form{align-items:flex-start;flex-direction:column}.message-form{grid-template-columns:1fr}.document-preview{padding:24px 18px}dialog footer{flex-wrap:wrap}dialog footer p{width:100%;margin:0}}.brand img{display:block;width:280px;height:70px;object-fit:contain;background:#fff;border-radius:8px}.topbar{height:86px}@media(max-width:720px){.brand img{width:210px;height:62px}.topbar{height:72px}}
