:root{font-family:system-ui,-apple-system,Roboto,"Segoe UI",sans-serif;color:#1b293a;background:#f3f6f9;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{cursor:pointer}header{background:#13273f;color:#fff;padding:15px max(18px,calc((100vw - 850px)/2));display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.brand strong{display:block;font-size:17px}.brand small{display:block;color:#bfd1e3;font-size:12px}.mark{display:grid;place-items:center;width:40px;height:40px;background:#4ea3a2;border-radius:11px;font-size:13px;font-weight:800}.chip{font-size:10px;font-weight:800;letter-spacing:.07em;border:1px solid #60808d;padding:7px;border-radius:99px}main{max-width:850px;margin:auto;padding:24px 17px 80px}.top{display:flex;align-items:center;justify-content:space-between;gap:15px}.eyebrow{letter-spacing:.14em;font-size:10px;color:#548582;font-weight:900}h1{margin:4px 0;font-size:27px}h2{font-size:17px;margin:0}p{color:#586879;line-height:1.5;margin:6px 0 12px}.ghost{border:1px solid #cbd7e0;background:#fff;color:#365269;border-radius:10px;padding:9px 12px;white-space:nowrap;font-size:13px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.stats>div{background:#fff;border:1px solid #e1e8ee;border-radius:13px;padding:17px}.stats span{display:block;font-size:29px;font-weight:750;color:#18314a}.stats small{color:#738393}.toolbar,.fileactions{background:#fff;border:1px solid #e1e8ee;border-radius:14px;padding:15px}.toolbar>input{width:100%;border:1px solid #cedae3;border-radius:10px;padding:13px 14px;outline-color:#328b8a}.controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.controls label{font-size:12px;color:#5e6e7e;font-weight:600}.controls select{display:block;width:100%;margin-top:5px;border:1px solid #cfdae3;border-radius:9px;background:white;padding:10px 6px;color:#223548;font-size:13px}.listhead{display:flex;justify-content:space-between;align-items:center;margin:23px 2px 12px}.listhead span{font-size:12px;color:#6a7b8b}.people{display:grid;gap:9px}.person{width:100%;text-align:left;background:white;border:1px solid #dfe7ed;border-radius:12px;padding:14px;display:flex;gap:13px;align-items:center;box-shadow:0 2px 6px #20304205}.person:active{background:#edf7f7}.priority{width:52px;height:54px;border-radius:9px;background:#eef3f7;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}.priority b{font-size:23px;color:#1a3e59}.priority small{font-size:8px;letter-spacing:.05em;color:#65788b}.priority.high{background:#fff1e8}.priority.high b{color:#b65322}.personinfo{min-width:0;flex:1}.personname{font-weight:750;font-size:16px}.personcompany{color:#617384;font-size:13px;margin-top:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.meta{font-size:11px;color:#6c7c89;margin-top:5px}.tag{display:inline-block;margin-right:6px;background:#e9f6f1;color:#207153;border-radius:6px;padding:2px 5px}.tag.follow{background:#fff4d8;color:#866118}.arrow{color:#8c9daa;font-size:24px}.fileactions{margin-top:30px}.fileactions p{font-size:14px}.buttons{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.button,button.primary,button.secondary{display:inline-flex;border-radius:9px;padding:11px 13px;font-weight:700;font-size:13px;text-decoration:none;border:1px solid #b8cad7;align-items:center;justify-content:center}.primary{background:#167d7e;color:white;border-color:#167d7e!important}.secondary{background:#eef4f7;color:#214159}.danger-outline{border:0;background:transparent;color:#b24741;padding:8px 0;font-size:13px}.hint{font-size:12px!important;color:#778697}dialog{border:0;border-radius:17px;width:min(96vw,570px);max-height:92dvh;padding:0;box-shadow:0 15px 60px #0c24404a}dialog::backdrop{background:#071b2cb3}#editForm{padding:22px;overflow:auto;max-height:92dvh}.dialoghead{display:flex;justify-content:space-between;gap:8px}.dialoghead h2{font-size:23px;margin:5px 0}.muted{font-size:13px;color:#738392}.close{font-size:28px;border:0;background:transparent;align-self:flex-start}.details{background:#f3f6f8;border-radius:10px;padding:12px;margin:16px 0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.details div{margin-bottom:4px}.details strong{color:#4f6677}.details a{color:#156c8d}.field{display:block;margin:14px 0 10px;font-weight:700;font-size:13px}.field textarea,.field select,.field input{display:block;width:100%;margin-top:7px;border:1px solid #cbd8e0;border-radius:10px;padding:12px;font-weight:400;resize:vertical;background:#fff;color:#243649}.checks{display:flex;flex-wrap:wrap;gap:15px;margin-top:16px;font-size:14px}.checks input{width:19px;height:19px;vertical-align:middle;accent-color:#16817d}.foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px}.foot span{font-size:11px;color:#668080}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#17354d;color:white;padding:11px 15px;border-radius:11px;font-size:13px;box-shadow:0 6px 25px #18314644;display:none;max-width:90vw}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.empty{padding:30px;text-align:center;color:#7c8c99;background:white;border-radius:12px}@media(max-width:480px){.controls{grid-template-columns:1fr}.stats>div{padding:13px}.stats span{font-size:25px}h1{font-size:24px}.buttons>*{flex:1}.brand strong{font-size:15px}}

/* v1.1: compact overview and improved customer details */
.stats{gap:8px;margin:14px 0}.stats>div{padding:10px 12px;border-radius:10px}.stats span{font-size:23px;line-height:1.15}.stats small{font-size:11px}.dialoghead #editCompany{font-size:20px;font-weight:650;line-height:1.3;color:#42586b;margin-top:3px}#comments{font-size:17px;line-height:1.5}.details a{overflow-wrap:anywhere}
@media(max-width:480px){.stats{gap:6px;margin:12px 0}.stats>div{padding:9px 8px}.stats span{font-size:22px}.stats small{font-size:10px}.dialoghead #editCompany{font-size:19px}}
