/* SignOff Hub — same look as the demo screens */
*{box-sizing:border-box}
body{margin:0;background:#F5F6F8;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#101828;font-size:14px;line-height:1.45}
h1,h2,h3{font-family:"Space Grotesk",Inter,sans-serif;margin:0;letter-spacing:-0.01em}
h1{font-size:28px}h2{font-size:18px}
a{color:#1D4ED8}a:hover{color:#1E40AF}
.muted{color:#475467}.small{font-size:13px}.tiny{font-size:12px}
.lbl{font-size:12px;font-weight:600;color:#475467;letter-spacing:.04em;text-transform:uppercase}
.card{background:#fff;border:1px solid #E4E7EC;border-radius:12px}
.pad{padding:18px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.ok{background:#ECFDF3;color:#067647}.warn{background:#FFFAEB;color:#B54708}.bad{background:#FEF3F2;color:#B42318}
.info{background:#EFF4FF;color:#1D4ED8}.neu{background:#F2F4F7;color:#344054}.pur{background:#F4F3FF;color:#5925DC}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 16px;border-radius:8px;font:600 14px Inter,sans-serif;border:1px solid #D0D5DD;background:#fff;color:#101828;cursor:pointer;text-decoration:none;white-space:nowrap}
.btn:hover{background:#F9FAFB;color:#101828}
.btn.pri{background:#1D4ED8;border-color:#1D4ED8;color:#fff}.btn.pri:hover{background:#1E40AF}
.btn.green{background:#067647;border-color:#067647;color:#fff}
.btn.sm{min-height:32px;padding:0 10px;font-size:13px}
.btn.on{border-color:#1D4ED8;color:#1D4ED8;background:#EFF4FF}
.row{display:flex;align-items:flex-start;gap:12px;padding:14px 18px;border-top:1px solid #F2F4F7}
.flex{display:flex;gap:16px;flex-wrap:wrap}.between{justify-content:space-between}.center{align-items:center}.end{align-items:flex-end}
.grow{flex:1;min-width:0}
.grid{display:grid;gap:16px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.big-num{font-family:"Space Grotesk",sans-serif;font-size:28px;font-weight:700;margin:6px 0}
.bar{height:8px;border-radius:999px;background:#EAECF0;overflow:hidden;display:flex}.bar>div{height:100%}
table{border-collapse:collapse;width:100%}
th{text-align:left;font-size:12px;font-weight:600;color:#475467;padding:10px 14px;background:#F9FAFB;white-space:nowrap}
td{padding:12px 14px;border-top:1px solid #F2F4F7;vertical-align:top}
.scroll{overflow-x:auto}
input[type=text],input[type=email],input[type=url],input[type=date],input[type=number],select,textarea{width:100%;min-height:42px;border:1px solid #D0D5DD;border-radius:8px;padding:8px 10px;font:14px Inter,sans-serif;background:#fff;color:#101828}
textarea{min-height:90px;resize:vertical}
label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.stack{display:flex;flex-direction:column;gap:12px}
.msg{padding:12px 16px;border-radius:10px;font-weight:500}
.msg.success{background:#ECFDF3;color:#067647}.msg.error{background:#FEF3F2;color:#B42318}.msg.info{background:#EFF4FF;color:#1D4ED8}
.thumb{width:96px;height:64px;border-radius:6px;background:#EAECF0;object-fit:cover;display:flex;align-items:center;justify-content:center;font-size:11px;color:#475467;text-decoration:none;overflow:hidden}
.thumb.vid{background:#101828;color:#fff}
.timeline{display:flex;flex-direction:column;gap:12px;font-size:13px;border-left:2px solid #E4E7EC;padding-left:14px;margin-left:4px}
.steps{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.step{border-top:4px solid #D0D5DD;padding-top:10px}
.step.signed{border-color:#12B76A}.step.with_client{border-color:#F79009}.step.building{border-color:#2E90FA}

/* team shell */
.top{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:10px 24px;background:#0B1B3F;color:#fff}
.brand{display:flex;align-items:center;gap:10px;font-family:"Space Grotesk",Inter,sans-serif;font-weight:700;font-size:18px;color:#fff;text-decoration:none}
.brand:hover{color:#fff}
.mark{width:30px;height:30px;border-radius:8px;background:#3B82F6;display:inline-flex;align-items:center;justify-content:center}
.switcher{position:relative}
.switcher summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:42px;padding:0 14px;border-radius:8px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.08);color:#fff;font-weight:600;cursor:pointer}
.switcher summary::-webkit-details-marker{display:none}
.switcher .tag{font-size:11px;letter-spacing:.06em;color:#BFDBFE}
.switcher .panel{position:absolute;left:0;top:50px;width:440px;max-width:90vw;background:#fff;color:#101828;border:1px solid #D0D5DD;border-radius:14px;box-shadow:0 24px 48px rgba(16,24,40,.18);padding:10px;z-index:50}
.proj{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;text-decoration:none;color:#101828}
.proj:hover,.proj.current{background:#EFF4FF;color:#101828}
.badge{width:36px;height:36px;border-radius:8px;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:11px;letter-spacing:-.02em;flex:none;overflow:hidden}
.shell{display:flex;flex-wrap:wrap;min-height:calc(100vh - 62px)}
.side{flex:1 1 220px;background:#fff;border-right:1px solid #E4E7EC;padding:20px 12px;display:flex;flex-direction:column;gap:2px}
.side a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:8px;color:#344054;text-decoration:none;font-weight:500}
.side a:hover{background:#F9FAFB;color:#101828}
.side a.on{background:#EFF4FF;color:#1D4ED8;font-weight:600}
.main{flex:999 1 560px;min-width:0;padding:28px 32px;display:flex;flex-direction:column;gap:20px}
.userbox{display:flex;align-items:center;gap:12px;font-size:13px}
.userbox a{color:#BFDBFE}

/* client portal */
.ptop{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 24px;background:#fff;border-bottom:1px solid #E4E7EC}
.pmain{width:100%;max-width:820px;margin:0 auto;padding:28px 20px 48px;display:flex;flex-direction:column;gap:20px}
.pmain .card{border-radius:16px}
.big{display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;border-radius:12px;font:600 17px Inter,sans-serif;text-decoration:none;cursor:pointer;border:2px solid #D0D5DD;background:#fff;color:#101828;width:100%}
.big:hover{color:#101828;background:#F9FAFB}
.big.green{background:#067647;border-color:#067647;color:#fff}.big.green:hover{background:#05603A;color:#fff}
.big.blue{background:#1D4ED8;border-color:#1D4ED8;color:#fff}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips label{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid #D0D5DD;background:#fff;cursor:pointer;font-weight:500}
.chips input{accent-color:#1D4ED8}
.chips label:has(input:checked){border:2px solid #1D4ED8;background:#EFF4FF;color:#1D4ED8;font-weight:600}
.match{border:2px solid #7A5AF8;background:#F9F8FF;border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px}

@media (max-width:760px){.g3,.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:20px 16px}}
@media (max-width:480px){.g2,.g3,.g4{grid-template-columns:minmax(0,1fr)}}
