:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20242b;background:#f6f7f9;font-size:14px;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;background:#fff;border:1px solid #d8dce2;border-radius:6px;padding:8px 12px;color:#303741;transition:background .12s}button:hover{background:#f1f4f8}button:disabled{opacity:.5;cursor:wait}:focus-visible{outline:3px solid #91bfff;outline-offset:2px}main{max-width:1320px;margin:auto;padding:0 44px}header{height:77px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1e4e8}.brand{font-size:19px;font-weight:650;letter-spacing:-.5px}.brand span{font-size:13px;font-weight:400;color:#6b7280;margin-left:13px;letter-spacing:0}.live{font-size:12px;color:#687789}.live.off{color:#a34a32}.heading{display:flex;justify-content:space-between;align-items:center;margin:42px 0 28px}h1{font-size:30px;letter-spacing:-1px;margin:0 0 9px;font-weight:650}p{color:#727985;line-height:1.5;margin:0}.primary{background:#0878eb;color:white;border-color:#0878eb}.primary:hover{background:#0067d3}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}.segments{display:flex;background:#e9ecf0;border-radius:7px;padding:3px;gap:2px}.segments button{border:0;background:transparent;padding:7px 23px;color:#68717e}.segments button[aria-pressed=true]{background:white;color:#242a33;box-shadow:0 1px 3px #00000014}.toolbar input{width:270px}input,select,textarea{border:1px solid #d9dde3;border-radius:6px;background:white;padding:9px 10px;color:#242a33;width:100%;min-width:0}textarea{resize:vertical;min-height:66px}.caption{display:flex;justify-content:space-between;color:#7b838f;font-size:11px;margin:24px 0 11px}.caption span:first-child{font-size:12px;color:#5b6472}.tablewrap{background:white;border:1px solid #e0e3e8;border-radius:8px;overflow:hidden;box-shadow:0 2px 5px #17253b03}table{border-collapse:collapse;width:100%;text-align:left;table-layout:fixed}th{font-size:11px;font-weight:500;color:#7b838f;background:#fbfcfd;padding:13px 20px;border-bottom:1px solid #e7e9ed}th:nth-child(1){width:25%}th:nth-child(2){width:22%}th:nth-child(3){width:33%}th:nth-child(4){width:20%}td{padding:16px 20px;border-bottom:1px solid #f0f1f4;vertical-align:middle;line-height:1.5;overflow-wrap:anywhere}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}.client-name{border:0;padding:0;background:none;font-weight:600;color:#26384c;text-align:left;font-size:14px}.client-name:hover{background:none;color:#007aff}.sub{display:block;font-size:11px;color:#7a8491;margin-top:3px}.stage{color:#68717e;font-size:12px}.overdue{color:#b25b45}.pin{color:#0878eb;font-size:11px}footer{display:flex;justify-content:space-between;color:#9299a4;font-size:11px;margin:18px 0}#empty{text-align:center;padding:72px 20px 80px}#empty h2{font-size:17px;font-weight:600;margin:15px 0 8px}#empty button{margin-top:22px}.empty-icon{font-size:32px;color:#a3b2c5}#shade{position:fixed;inset:0;background:#17263b20;backdrop-filter:blur(1px)}aside{position:fixed;top:0;bottom:0;right:0;width:500px;max-width:100%;background:#fff;border-left:1px solid #dce0e6;box-shadow:-10px 0 40px #182c4210;overflow:auto;animation:slide .16s ease-out}.paneltop{display:flex;align-items:center;justify-content:space-between;padding:17px 24px;border-bottom:1px solid #e8eaee;position:sticky;top:0;background:#fffffffa;z-index:1;font-size:12px;color:#747d89}.paneltop button{border:0;padding:5px 8px}#panel-body{padding:25px}.panel-name{font-size:24px;letter-spacing:-.5px;margin:0 0 5px}.section{margin-top:26px;padding-top:20px;border-top:1px solid #eceef2}.section h3{font-size:13px;font-weight:600;margin:0 0 14px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.full{grid-column:1/-1}label{display:block;font-size:11px;color:#68717e;margin-bottom:5px}label.check{display:flex;align-items:center;gap:7px;font-size:13px}label.check input{width:auto}.actions{display:flex;gap:8px;margin-top:18px}.item{padding:12px 0;border-bottom:1px solid #eef0f3;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.item button{font-size:11px;padding:4px 8px;margin:6px 6px 0 0}.item.done{color:#8c949f}.muted{color:#838c98;font-size:12px}.notice{background:#fff6e6;color:#88591b;padding:12px;border-radius:6px;font-size:12px;line-height:1.5;margin:15px 0}.notice button{margin-top:8px}#error{padding:12px;background:#fff0eb;color:#9a442e;margin-bottom:12px;border-radius:6px}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#253449;color:white;padding:12px 20px;border-radius:8px;box-shadow:0 4px 20px #0002;z-index:5;font-size:13px;max-width:90%}.formerror{color:#ad4a36;font-size:12px;margin-top:12px}details{margin-top:24px}summary{cursor:pointer;font-size:13px;font-weight:600}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:10px;background:#f6f7f9;padding:8px}small{color:#7c8592}#panel-body form{margin:0} [hidden]{display:none!important}@keyframes slide{from{transform:translateX(30px);opacity:0}to{transform:translateX(0);opacity:1}}@media(max-width:760px){main{padding:0 18px}.heading{margin:28px 0 22px;align-items:flex-start;gap:12px}h1{font-size:26px}.heading p{font-size:12px}.heading button{font-size:12px}.toolbar{flex-wrap:wrap;gap:12px}.toolbar input{width:100%}.caption span:last-child{display:none}td,th{padding:12px 9px;font-size:12px}th:nth-child(2),td:nth-child(2){display:none}th:nth-child(1){width:28%}th:nth-child(3){width:42%}th:nth-child(4){width:30%}.brand span{font-size:11px}.client-name{font-size:13px}}

.mobile-stage{display:none}@media(max-width:760px){.mobile-stage{display:block;font-size:10px;color:#727c89;margin-top:3px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.overview{display:grid;grid-template-columns:1fr 1fr;gap:17px 20px;margin:24px 0 18px}.overview small{display:block;font-size:11px;margin-bottom:5px}.overview strong{font-size:13px;font-weight:450;line-height:1.6;display:block;overflow-wrap:anywhere}#edit-details{margin-top:14px}#edit-details>summary{color:#0878eb;font-size:12px;font-weight:500}#edit-details .section:first-child{margin-top:14px}

tbody tr.row-blue{background:#edf5ff}tbody tr.row-blue:hover{background:#e3efff}

/* P1: a single compact summary surface, above the existing work list. */
header{height:60px}.heading{margin:24px 0 20px}h1{font-size:24px;margin-bottom:5px}.heading p{font-size:13px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid #dce1e7;border-radius:8px;overflow:hidden}
.metrics button{border:0;border-radius:0;min-height:82px;text-align:left;padding:13px 20px;background:transparent;position:relative}
.metrics button+button{border-left:1px solid #e8ebef}.metrics strong{display:block;font-size:26px;line-height:1.2;font-weight:600;letter-spacing:-.6px;font-variant-numeric:tabular-nums;min-height:32px}.metrics span{display:block;font-size:12px;color:#596575;margin-top:4px}
.metrics button[aria-pressed=true]{background:#f0f6ff;box-shadow:inset 0 -2px #0878eb}.metrics button:hover{background:#f4f8fc}.metrics button[data-metric=overdue].has-overdue strong{color:#a44c37}.metrics button:focus-visible{outline-offset:-4px;z-index:1}
.stage-filters{display:flex;flex-wrap:wrap;gap:2px 10px;padding:7px 0 4px;min-height:55px;align-items:center}.stage-filters button{border:0;background:transparent;padding:0 9px;min-height:44px;font-size:12px;color:#536071;white-space:nowrap}.stage-filters button[aria-pressed=true]{background:#e6effc;color:#075db5;box-shadow:inset 0 -2px #0878eb}.stage-filters button:hover{background:#edf1f6}
.attention{display:flex;align-items:center;gap:14px;min-height:44px;margin:0 0 12px;border-top:1px solid #e1e5eb;font-size:12px;color:#637082}.attention button{border:0;background:transparent;color:#076acb;padding:10px 0;min-height:44px;text-align:left}.attention button[aria-pressed=true]{font-weight:600;text-decoration:underline;text-underline-offset:4px}
.toolbar .segments button{min-height:44px;padding:6px 15px;font-size:12px}.toolbar input{min-height:44px}.caption{align-items:center;gap:10px;margin:12px 0 8px;min-height:32px}.caption #filter-status{flex:1;text-align:right;color:#596575}.caption button{padding:0 7px;min-height:36px;font-size:12px;color:#076acb;border:0;background:transparent}.caption #count{font-variant-numeric:tabular-nums;color:#536071;white-space:nowrap}
td{padding:12px 20px}.client-name{min-height:32px}#error{display:flex;align-items:center;justify-content:space-between;gap:12px}#error button{font-size:12px;min-height:40px;white-space:nowrap}#loading{padding:45px 20px;color:#687789;text-align:center}#empty{padding:38px 20px 44px}#empty button{min-height:44px}#close{min-width:44px;min-height:44px}.paneltop{padding:10px 20px}.item button{min-height:36px}
@media(max-width:760px){main{padding:0 16px}.heading{margin:20px 0 16px}.heading button{min-height:44px;max-width:150px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics button{min-height:77px;padding:11px 16px}.metrics button:nth-child(3){border-left:0}.metrics button:nth-child(n+3){border-top:1px solid #e8ebef}.stage-filters{gap:0 4px;padding-top:6px}.stage-filters button{padding:0 6px;font-size:11px}.attention{gap:10px;align-items:baseline}.attention>span{flex-shrink:0;font-size:11px}.attention button{font-size:12px}.toolbar{gap:10px}.toolbar .segments{width:100%}.toolbar .segments button{flex:1;padding:6px 9px}.caption{flex-wrap:wrap;gap:4px}.caption #filter-status{display:block;font-size:11px;flex:1;min-width:130px}.caption #clear-filters{margin-left:auto}td{padding:11px 9px}.brand span{margin-left:7px}.live{font-size:11px}.grid{gap:11px}.overview{gap:12px}.panel-name{font-size:22px}#panel-body{padding:20px}footer{gap:8px}}

.sub,.muted,.overview small,small,footer{color:#667383}

/* Short context belongs alongside the sales stage, without a wider table. */
th:nth-child(1){width:23%}th:nth-child(2){width:30%}th:nth-child(3){width:30%}th:nth-child(4){width:17%}
.row-note{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-top:5px;font-size:12px;line-height:1.5;color:#536071;white-space:normal}.mobile-note{display:none}
@media(max-width:760px){th:nth-child(1){width:36%}th:nth-child(3){width:39%}th:nth-child(4){width:25%}.mobile-note{display:block}.mobile-note .row-note{font-size:11px;line-height:1.45;margin-top:5px}}

.login-page{max-width:360px;margin:15vh auto;padding:24px}.login-page input{display:block;width:100%;margin:8px 0 18px}.login-page button{margin-top:12px}
