/* Lead engine app. Matches the "Lead Engine App Design" canvas: gray sidebar, Inter, purple #5b16d6. */
*{box-sizing:border-box}
body{margin:0;background:#fbfbfc;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#17171c;font-size:14px;-webkit-font-smoothing:antialiased}
a{color:#5b16d6}a:hover{color:#4310a4}
button,input,select,textarea{font-family:inherit}
.shell{display:flex;flex-wrap:wrap;min-height:100vh;background:#fbfbfc}
.side{flex:1 1 220px;max-width:236px;background:#f7f7f8;border-right:1px solid #e9e9ec;padding:16px 10px 18px;display:flex;flex-direction:column;gap:16px;position:sticky;top:0;height:100vh;overflow:auto}
.brand{display:flex;align-items:center;gap:8px;padding:0 8px;text-decoration:none}
.brand img{height:20px;width:auto;display:block}
.brand span{font-size:11px;font-weight:600;color:#4310a4;background:#efe8fb;border-radius:6px;padding:3px 7px}
.nav{display:flex;flex-direction:column;gap:3px}
.nav a{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 10px;border-radius:7px;color:#5f5f69;text-decoration:none;font-size:13px;font-weight:500}
.nav a:hover{background:rgba(23,23,28,.045);color:#17171c}
.nav a.on{background:linear-gradient(105deg,#ece5fa,#f6f3fb 70%);box-shadow:inset 0 0 0 1px #e2d9f4;color:#17171c;font-weight:600}
.nav a.on .ico{color:#5b16d6}
.ico{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.navlabel{font-size:11px;font-weight:600;color:#72727c;padding:0 10px;letter-spacing:.04em;text-transform:uppercase}
.sidetop{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sidebody{display:flex;flex-direction:column;gap:16px;flex:1 1 auto}
.burger{display:none;width:40px;height:40px;padding:0;border:1px solid #dcdce1;border-radius:9px;background:#fff;color:#17171c;cursor:pointer;place-items:center;flex:none}
.burger:hover{background:#f4f4f6}
.burger .ico{width:20px;height:20px}
.burger .x,.burger.open .bars{display:none}
.burger.open .x{display:block}
.me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 10px 0;border-top:1px solid #e9e9ec;font-size:13px}
.me button{margin-left:auto;border:0;background:none;color:#5f5f69;font-size:12px;cursor:pointer;padding:6px}
.me button:hover{color:#17171c}
.avatar{width:28px;height:28px;border-radius:999px;background:#5b16d6;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.main{flex:999 1 560px;min-width:0;padding:24px 32px 48px;display:flex;flex-direction:column;gap:20px}
.top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.actions{display:flex;flex-wrap:wrap;gap:8px}
h1{margin:0;font-size:22px;font-weight:650;letter-spacing:-.01em}
h2{margin:0;font-size:15px;font-weight:650}
h3{margin:0;font-size:12px;font-weight:650;color:#5f5f69;text-transform:uppercase;letter-spacing:.04em}
.sub{margin:4px 0 0;color:#5f5f69;font-size:13.5px}
.crumb{font-size:13px;color:#5f5f69;margin-bottom:6px}
.crumb a{color:#5f5f69;text-decoration:none}.crumb a:hover{color:#5b16d6;text-decoration:underline}
.card{background:#fff;border:1px solid #e6e6ea;border-radius:12px}
.sec{padding:18px;display:flex;flex-direction:column;gap:14px;min-width:0}
.sechead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.hint{margin:0;font-size:12.5px;color:#5f5f69;line-height:1.5}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;border-radius:9px;font:600 13px Inter,sans-serif;cursor:pointer;border:1px solid #dcdce1;background:#fff;color:#17171c;text-decoration:none;white-space:nowrap}
.btn:hover{background:#f4f4f6;color:#17171c}
.btn:disabled{opacity:.55;cursor:default}
.btn.pri{background:#5b16d6;border-color:#5b16d6;color:#fff}
.btn.pri:hover{background:#4310a4;color:#fff}
.btn.sm{min-height:34px;padding:0 11px;font-size:12.5px}
.btn.okbtn{background:#e6f4ec;border-color:#a9d9bd;color:#17633f}
.btn.okbtn:hover{background:#d9efe2;color:#17633f}
.btn.danger{border-color:#e9b9c0;color:#a3283a}
.btn.danger:hover{background:#fcebed;color:#8a1f30}
.btn.link{border:0;background:none;color:#5b16d6;padding:0 4px;min-height:30px}
.pill{display:inline-flex;align-items:center;gap:6px;min-height:22px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.p-green{background:#e6f4ec;color:#17633f}.p-amber{background:#fbefd9;color:#7a4300}.p-red{background:#fcebed;color:#a3283a}.p-violet{background:#efe8fb;color:#4310a4}.p-gray{background:#f0f0f3;color:#4a4a55}.p-blue{background:#e7effd;color:#1d4fa8}
.dot{width:7px;height:7px;border-radius:999px;background:currentColor;flex:none}
code{font:500 12.5px ui-monospace,SFMono-Regular,Menlo,monospace;background:#f3f1f8;color:#3b2a66;border-radius:6px;padding:2px 6px}
pre{margin:0;padding:14px 16px;background:#17171c;color:#ececf1;border-radius:10px;font:500 12.5px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.tblwrap{overflow-x:auto}
.tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
.tbl th{padding:10px 14px;text-align:left;font-size:12px;font-weight:600;color:#5f5f69;background:#f8f8fa;border-bottom:1px solid #e6e6ea;white-space:nowrap}
.tbl td{padding:12px 14px;border-bottom:1px solid #eeeef1;vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr:hover td{background:#faf8fe}
.tbl small{display:block;margin-top:2px;font-size:12px;color:#5f5f69}
.tbl a.row{color:#17171c;font-weight:600;text-decoration:none}
.tbl a.row:hover{color:#5b16d6;text-decoration:underline}
.tbl tfoot td{font-weight:650;background:#f8f8fa;border-top:1px solid #e6e6ea}
.tbl tr.out td{color:#8a8a94}
.tbl tr.prio td{background:#faf7ff}
.num{text-align:right;font-variant-numeric:tabular-nums}
.tabs{display:flex;flex-wrap:wrap;gap:6px}
.tab{min-height:36px;padding:0 12px;border-radius:8px;border:1px solid #e2e2e7;background:#fff;color:#5f5f69;font:500 13px Inter,sans-serif;cursor:pointer}
.tab.on{background:#17171c;border-color:#17171c;color:#fff}
.bar{height:6px;border-radius:999px;background:#ececf0;overflow:hidden}
.bar i{display:block;height:100%;border-radius:999px;background:#5b16d6}
.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.kpis.k4{grid-template-columns:repeat(4,minmax(0,1fr))}
.rep{padding:18px;display:flex;flex-direction:column;gap:14px}
.keybtn{border:0;background:none;padding:4px 0;cursor:pointer;min-height:32px}
.keybtn code{white-space:nowrap}
.keybtn:hover code{background:#e9e1fa}
tr.picked td{background:#f5f0fe}
tr.picked td:first-child{box-shadow:inset 3px 0 0 #5b16d6}
tr.extra td{background:#faf7ff}
.mapline{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12.5px}
.mapline>span:first-child{font-weight:600;color:#5f5f69;margin-right:4px}
.walk{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.walk li{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5}
.walk .mark{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.walk li.pick .mark{background:#5b16d6;color:#fff}
.walk li.skip .mark{background:#f0f0f3;color:#4a4a55}
.walk li.skip{color:#5f5f69}
.kpi{padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0}
.kpi b{font-size:22px;font-weight:650;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.kpi span{font-size:12px;font-weight:600;color:#5f5f69}
.kpi small{font-size:12px;color:#5f5f69}
.alert{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:14px 16px}
.alert .ic{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:none}
.alert .tx{flex:1 1 380px;min-width:0;font-size:13.5px;line-height:1.5}
.alert .acts{display:flex;flex-wrap:wrap;gap:8px}
.ccard{padding:14px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid #eeeef1;text-decoration:none;color:inherit}
.ccard:last-child{border-bottom:0}
.cgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:12px;color:#5f5f69}
.cgrid b{display:block;font-size:14px;color:#17171c;font-variant-numeric:tabular-nums}
.narrow{display:none}
.field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#5f5f69;min-width:0}
.field select,.field input,.field textarea{min-height:40px;border:1px solid #dcdce1;border-radius:8px;background:#fff;padding:0 10px;font:500 13.5px Inter,sans-serif;color:#17171c;width:100%}
.field textarea{padding:9px 10px;line-height:1.45;min-height:64px;resize:vertical}
.field small{font-weight:400;color:#5f5f69;font-size:12px;line-height:1.45}
.field.hl input,.field.hl textarea,.field.hl select{background:#fff8d6;border-color:#e3c45a}
.field.hl.ok input,.field.hl.ok textarea,.field.hl.ok select{background:#ebf7f0;border-color:#86c9a2}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fields .wide-field{grid-column:1 / -1}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.stack{display:flex;flex-direction:column;gap:16px;min-width:0}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 6px 0 10px;border-radius:8px;background:#f3f3f6;border:1px solid #e6e6ea;font-size:13px}
.chip button{width:24px;height:24px;border:0;background:transparent;border-radius:6px;color:#5f5f69;cursor:pointer;display:grid;place-items:center}
.chip button:hover{background:#e6e6ea;color:#17171c}
.segbig{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.segbig button{min-height:56px;border:1px solid #dcdce1;border-radius:10px;background:#fff;font:500 13px Inter,sans-serif;color:#17171c;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px}
.segbig button small{font-size:11.5px;color:#5f5f69;font-weight:500}
.segbig button.on{border-color:#5b16d6;background:#f5f0fe;box-shadow:inset 0 0 0 1px #5b16d6}
.seg{display:inline-flex;border:1px solid #dcdce1;border-radius:9px;overflow:hidden;background:#fff;flex-wrap:wrap}
.seg button{min-height:38px;padding:0 13px;border:0;border-right:1px solid #e6e6ea;background:#fff;font:500 13px Inter,sans-serif;color:#5f5f69;cursor:pointer}
.seg button:last-child{border-right:0}
.seg button.on{background:#efe8fb;color:#2c0b70;font-weight:600}
.radio,.chk{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;line-height:1.45;min-height:28px;font-weight:500;color:#17171c}
.radio input,.chk input{margin:2px 0 0;padding:0;min-height:0;width:16px;height:16px;accent-color:#5b16d6;flex:none}
.chk small,.radio small{display:block;color:#5f5f69;font-size:12px;font-weight:400}
.chklist .chk{padding:9px 0;border-bottom:1px solid #f0f0f3}
.chklist .chk:last-child{border-bottom:0}
.row2{display:flex;justify-content:space-between;gap:12px;font-size:13.5px;padding:9px 0;border-bottom:1px solid #f0f0f3}
.row2:last-child{border-bottom:0}
.row2>span:first-child{color:#5f5f69}
.log{display:flex;flex-direction:column}
.log div{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid #f0f0f3;font-size:13px;line-height:1.45}
.log div:last-child{border-bottom:0}
.log time{flex:0 0 118px;color:#5f5f69;font-variant-numeric:tabular-nums}
.tl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.step{border:1px solid #e6e6ea;border-radius:10px;padding:10px 12px;font-size:12.5px;color:#5f5f69;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.step strong{font-size:13px;color:#17171c}
.step.done{background:#f3faf6;border-color:#cfe9da}
.step.done strong{color:#17633f}
.prefill{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 16px;background:#f6f3fb;border:1px solid #e2d9f4;border-radius:12px;font-size:13.5px;line-height:1.5}
.prefill .tx{flex:1 1 260px;min-width:0}
.stdq{margin:0;padding-left:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;font-size:13px;color:#26262e}
.split{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.formcol{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px}
.prevcol{flex:1.3 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px;position:sticky;top:16px}
.prog{display:inline-flex;align-items:center;gap:6px;margin-left:6px;font-weight:600;color:#17633f}
.legend{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:#5f5f69}
.legend i{display:inline-block;width:22px;height:14px;border-radius:3px;background:#fff1b8;border-bottom:1.5px dashed #b88a00}
.legend i.ok{background:#dcf3e4;border-bottom:1.5px solid #2f9a5c;margin-left:6px}
.paper{border:1px solid #e6e6ea;border-radius:12px;overflow:hidden;background:#fff}
.list{flex:1 1 540px;min-width:0;overflow:hidden}
.panel{flex:1 1 480px;min-width:0;display:flex;flex-direction:column}
.lrow{display:grid;grid-template-columns:72px minmax(0,1.3fr) minmax(0,1.4fr) minmax(0,1fr);gap:12px;align-items:center;width:100%;text-align:left;padding:12px 16px;border:0;border-bottom:1px solid #eeeef1;background:#fff;font:400 13.5px Inter,sans-serif;color:#17171c;cursor:pointer}
.lrow:hover{background:#faf8fe}
.lrow.sel{background:#f5f0fe;box-shadow:inset 3px 0 0 #5b16d6}
.lhead{display:grid;grid-template-columns:72px minmax(0,1.3fr) minmax(0,1.4fr) minmax(0,1fr);gap:12px;padding:10px 16px;font-size:12px;font-weight:600;color:#5f5f69;background:#f8f8fa;border-bottom:1px solid #e6e6ea}
.lrow small{display:block;margin-top:2px;font-size:12px;color:#5f5f69}
.lrow time{font-variant-numeric:tabular-nums;color:#5f5f69;font-size:13px}
.psec{padding:16px 18px;border-bottom:1px solid #eeeef1;display:flex;flex-direction:column;gap:10px}
.psec:last-child{border-bottom:0}
.kv{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);gap:6px 12px;font-size:13px}
.kv span{color:#5f5f69}
.kv b{font-weight:500;overflow-wrap:anywhere}
.var{font-size:10.5px;font-weight:700;color:#4310a4;background:#efe8fb;border-radius:5px;padding:1px 5px;margin-left:6px;vertical-align:1px}
.trace{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.trace li{display:flex;gap:10px;font-size:13px;line-height:1.45}
.tick{width:20px;height:20px;border-radius:999px;display:grid;place-items:center;flex:none;font-size:11px;font-weight:700}
.tick.ok{background:#e6f4ec;color:#17633f}.tick.no{background:#f0f0f3;color:#4a4a55}
.money{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.money div{background:#f8f8fa;border-radius:9px;padding:10px 12px;font-size:12px;color:#5f5f69}
.money b{display:block;font-size:17px;color:#17171c;font-variant-numeric:tabular-nums;margin-top:2px}
.filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;justify-content:space-between}
.filters .field{min-width:240px}
.strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;padding:12px 16px;font-size:13px}
.strip b{font-variant-numeric:tabular-nums}
.strip span{color:#5f5f69}
.desc{margin:0;font-size:13px;line-height:1.55;color:#3d3d46}
.sigs{display:flex;flex-direction:column;gap:8px}
.sigs div{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}
.sigs .pill{min-width:58px;justify-content:center;flex:none}
.int{font-size:10.5px;font-weight:700;color:#7a4300;background:#fbefd9;border-radius:5px;padding:2px 6px;letter-spacing:0;text-transform:none;margin-left:6px}
.props{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.prop{padding:16px;display:flex;flex-direction:column;gap:10px;text-align:left;font:inherit;color:inherit;cursor:pointer}
.prop.on{border-color:#5b16d6;box-shadow:inset 0 0 0 1px #5b16d6}
.prop.add{border-style:dashed;background:#fbfbfc;align-items:flex-start;justify-content:center;color:#5f5f69}
.kv.auto{grid-template-columns:auto minmax(0,1fr)}
.usage{display:flex;align-items:center;gap:10px}
.usage .bar{flex:1;min-width:60px}
.usage span{font-size:12.5px;color:#3d3d46;white-space:nowrap;font-variant-numeric:tabular-nums}
.toggle{display:inline-flex;align-items:center;gap:10px;min-height:36px;padding:0;border:0;background:none;font:500 13px Inter,sans-serif;color:#17171c;cursor:pointer;text-align:left;align-self:flex-start}
.toggle .box{width:18px;height:18px;border-radius:5px;border:1.5px solid #b9b9c2;background:#fff;display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff;flex:none}
.toggle.on .box{background:#5b16d6;border-color:#5b16d6}
.leadbox{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:10px;background:#f8f8fa;border:1px solid #eeeef1;font-size:13px;line-height:1.5}
.leadbox span{color:#5f5f69}
.result{padding:12px 14px;border-radius:10px;background:#efe8fb;color:#2c0b70;font-size:13.5px;font-weight:600;line-height:1.5}
.grid3{display:grid;grid-template-columns:300px 430px minmax(0,1fr);gap:16px;align-items:start}
.steplist{display:flex;flex-direction:column;padding:8px}
.stepbtn{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;align-items:start;width:100%;padding:10px;border:0;border-radius:9px;background:none;text-align:left;cursor:pointer;font:500 13px Inter,sans-serif;color:#17171c}
.stepbtn:hover{background:#f6f4fb}
.stepbtn.on{background:#efe8fb;box-shadow:inset 0 0 0 1px #d9cbf5}
.stepbtn b{width:24px;height:24px;border-radius:7px;background:#f0f0f3;color:#4a4a55;display:grid;place-items:center;font-size:11.5px}
.stepbtn.on b{background:#5b16d6;color:#fff}
.stepbtn small{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:4px;color:#5f5f69;font-size:11.5px}
.stepbtn code{font-size:11px;padding:1px 5px}
.utm{font-size:10.5px;font-weight:700;color:#7a4300;background:#fbefd9;border-radius:5px;padding:1px 6px}
.phone{width:390px;max-width:100%;margin:0 auto;border-radius:36px;border:10px solid #17171c;overflow:hidden;background:#f4f7f6;box-shadow:0 12px 32px rgba(23,23,28,.14)}
.phone .bar9{height:26px;background:#f4f7f6;display:flex;justify-content:center;align-items:center}
.phone .bar9 i{width:90px;height:6px;border-radius:999px;background:#17171c;display:block}
.phone .screen{min-height:640px}
.prevhead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.optrow{display:grid;grid-template-columns:22px minmax(0,1.7fr) minmax(0,1fr) 30px;gap:6px;align-items:center}
.optrow input{min-height:36px;border:1px solid #dcdce1;border-radius:8px;padding:0 10px;font:500 13px Inter,sans-serif;color:#17171c;width:100%;background:#fff}
.optrow kbd{width:22px;height:22px;border-radius:6px;border:1px solid #dcdce1;display:grid;place-items:center;font:700 11px Inter,sans-serif;color:#5f5f69}
.optrow button{border:0;background:none;color:#8a8a94;cursor:pointer;font-size:16px;min-height:30px}
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.swatches label{display:flex;align-items:center;gap:8px;padding:6px 10px 6px 6px;border:1px solid #e6e6ea;border-radius:9px;font-size:12.5px}
.swatches input[type=color]{width:28px;height:28px;padding:0;border:1px solid rgba(0,0,0,.08);border-radius:6px;background:none;cursor:pointer}
.conn{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.conn div{display:flex;flex-direction:column;gap:3px;font-size:13px}
.conn span{font-size:12px;font-weight:600;color:#5f5f69}
.queue{display:flex;flex-direction:column}
.queue div{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #f0f0f3;font-size:13px;line-height:1.45}
.queue div:last-child{border-bottom:0}
.queue time{color:#5f5f69;font-variant-numeric:tabular-nums}
.sw{display:flex;align-items:flex-start;gap:12px;font-size:13.5px;line-height:1.45;padding:10px 0;border-bottom:1px solid #f0f0f3;cursor:pointer}
.sw:last-child{border-bottom:0}
.sw input{appearance:none;-webkit-appearance:none;width:36px;height:22px;border-radius:999px;background:#d4d4da;position:relative;flex:none;margin:0;cursor:pointer;transition:background .15s}
.sw input::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
.sw input:checked{background:#5b16d6}
.sw input:checked::after{left:17px}
.sw input:disabled{opacity:.6;cursor:not-allowed}
.sw small{display:block;color:#5f5f69;font-size:12px}
.events{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.events li{display:grid;grid-template-columns:70px 22px minmax(0,1fr);gap:10px;align-items:start;font-size:13.5px;line-height:1.45;padding-bottom:12px}
.events .mk{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;font-size:11px;font-weight:700}
.events time{color:#5f5f69;font-variant-numeric:tabular-nums}
.creditform{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.ctrls{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.ctrls .field{min-width:150px}
.ctrls .grp{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:#5f5f69}
.tot{display:flex;flex-wrap:wrap;gap:8px 28px;font-size:13px;color:#5f5f69}
.tot b{display:block;font-size:20px;font-weight:650;color:#17171c;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.chart{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:240px auto;column-gap:10px;row-gap:6px}
.yax{position:relative}
.yax span{position:absolute;right:0;transform:translateY(50%);font-size:11.5px;color:#72727c;font-variant-numeric:tabular-nums;white-space:nowrap}
.plot{position:relative;border-bottom:1px solid #c9c9d1}
.gl{position:absolute;left:0;right:0;border-top:1px solid #efeff2}
.plot .bars{position:absolute;inset:0;display:flex;align-items:flex-end;gap:2px}
.col{flex:1 1 0;min-width:0;height:100%;display:flex;align-items:flex-end;justify-content:center;position:relative;outline:none}
.col .b{width:100%;max-width:30px;background:#5b16d6;border-radius:4px 4px 0 0}
.col:hover .b,.col:focus .b{background:#4310a4}
.col:hover,.col:focus{background:rgba(91,22,214,.05)}
.tip{display:none;position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:5;min-width:170px;background:#fff;border:1px solid #e3e3e8;border-radius:10px;box-shadow:0 8px 24px rgba(23,23,28,.12);padding:10px 12px;font-size:12.5px;line-height:1.55;color:#3d3d46;white-space:nowrap;pointer-events:none}
.tip strong{display:block;color:#17171c;font-size:13px;margin-bottom:2px}
.tip.l{left:0;transform:none}
.tip.r{left:auto;right:0;transform:none}
.col:hover .tip,.col:focus .tip{display:block}
.xl{grid-column:2;position:relative;height:16px}
.xl span{position:absolute;top:0;transform:translateX(-50%);font-size:11px;color:#72727c;white-space:nowrap}
.xl span.first{transform:none}
.xl span.last{transform:translateX(-100%)}
.roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.role{background:#f8f8fa;border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.5}
.role strong{display:block;margin-bottom:4px}
.kill{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0f0f3;font-size:13.5px}
.kill:last-child{border-bottom:0}
.kill small{display:block;color:#5f5f69;font-size:12px;margin-top:2px}
.empty{padding:28px 16px;text-align:center;color:#5f5f69;font-size:13.5px}
.loading{padding:40px;text-align:center;color:#72727c}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#17171c;color:#fff;padding:12px 16px;border-radius:10px;font-size:13.5px;z-index:100;box-shadow:0 10px 30px rgba(0,0,0,.2);max-width:calc(100vw - 32px)}
.toast.err{background:#a3283a}
.modal{position:fixed;inset:0;background:rgba(23,23,28,.35);display:grid;place-items:center;z-index:90;padding:16px}
.modal .card{width:min(560px,100%);max-height:90vh;overflow:auto}
.login{min-height:100vh;display:grid;place-items:center;padding:16px}
.login .card{padding:28px;width:min(400px,100%);display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
.muted{color:#5f5f69}
.inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
@media (max-width:1240px){.grid3{grid-template-columns:280px minmax(0,1fr)}.grid3 .setcol{grid-column:1 / -1}.three{grid-template-columns:minmax(0,1fr)}}
@media (max-width:1100px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.kpis.k4{grid-template-columns:repeat(2,minmax(0,1fr))}.two{grid-template-columns:minmax(0,1fr)}.props{grid-template-columns:repeat(2,minmax(0,1fr))}.conn{grid-template-columns:repeat(2,minmax(0,1fr))}.creditform{grid-template-columns:repeat(2,minmax(0,1fr))}.prevcol{position:static}}
@media (max-width:760px){
.side{flex:1 1 100%;max-width:none;height:auto;position:relative;top:auto;border-right:0;border-bottom:1px solid #e9e9ec;padding:10px 16px;gap:0;z-index:30;overflow:visible}
.burger{display:grid}
.sidebody{display:none}
.sidebody.open{display:flex;position:absolute;left:0;right:0;top:100%;background:#f7f7f8;border-bottom:1px solid #e9e9ec;box-shadow:0 22px 32px -20px rgba(23,23,28,.4);padding:12px 16px 16px;gap:12px}
.nav a{min-height:44px;font-size:14px}
.me{margin-top:0}
.main{padding:18px 16px 40px}
.kpis,.kpis.k4{grid-template-columns:repeat(2,minmax(0,1fr))}
.wide{display:none}
.narrow{display:block}
.fields,.tl,.stdq,.props,.creditform,.roles,.grid3,.conn{grid-template-columns:minmax(0,1fr)}
.lhead{display:none}
.lrow{grid-template-columns:minmax(0,1fr);gap:6px}
.log time{flex-basis:84px}
.queue div{grid-template-columns:60px minmax(0,1fr)}
.queue div .pill{grid-column:2}
.events li{grid-template-columns:22px minmax(0,1fr)}
.events time{grid-column:2}
.filters .field{min-width:0;flex:1 1 100%}
.money{grid-template-columns:repeat(3,minmax(0,1fr))}
.phone{width:100%}
}
.src{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1.5fr) 56px;gap:6px 12px;font-size:12.5px;align-items:start}
.src span{color:#5f5f69}
.src em{font-style:normal;text-align:right;font-variant-numeric:tabular-nums}
.nf{color:#8a8a94;font-weight:400 !important;font-style:italic}
.slack{border:1px solid #e6e6ea;border-radius:10px;padding:14px 16px;display:flex;gap:12px;font-size:13.5px;line-height:1.55;background:#fff}
.slack .av{width:36px;height:36px;border-radius:8px;background:#5b16d6;color:#fff;display:grid;place-items:center;font-weight:700;flex:none}
.set{display:flex;flex-direction:column;gap:14px}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.preview-host{min-height:640px}
.err-line{color:#a3283a;font-size:12.5px;font-weight:500}
.err-line:empty{display:none}
@media (max-width:760px){.pair{grid-template-columns:minmax(0,1fr)}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Bars with a budget track behind them */
.col .t{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:30px;background:#e6def6;border-radius:4px 4px 0 0}
.col .b{position:relative;z-index:1}
.col .b.over{background:#17633f}
.legend2{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:#5f5f69}
.legend2 i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}

/* Client dashboard */
.ptop{background:#fff;border-bottom:1px solid #e9e9ec;position:sticky;top:0;z-index:20}
.ptop .in{max-width:1200px;margin:0 auto;padding:10px 24px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.pclient{font-weight:650;font-size:14px;min-width:0;overflow-wrap:anywhere}
.ptabs{display:flex;flex-wrap:wrap;gap:4px;flex:1 1 auto}
.ptabs a{display:flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border-radius:8px;color:#5f5f69;text-decoration:none;font-weight:500;font-size:13.5px}
.ptabs a:hover{background:#f4f4f6;color:#17171c}
.ptabs a.on{background:#efe8fb;color:#2c0b70;font-weight:600}
.ptabs a.on .ico{color:#5b16d6}
.pme{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px}
.pme select{min-height:36px;border:1px solid #dcdce1;border-radius:8px;background:#fff;padding:0 8px;font:500 13px Inter,sans-serif;max-width:200px}
.pmain{max-width:1200px;margin:0 auto;padding:24px 24px 56px;display:flex;flex-direction:column;gap:20px}
.viewas{background:#fbefd9;color:#7a4300;font-size:13px;font-weight:500;text-align:center;padding:8px 16px;line-height:1.5}
.viewas a{color:#7a4300;font-weight:700}
.bignum{display:flex;align-items:baseline;gap:8px;font-size:34px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#17171c;background:none;border:0;padding:4px 8px;margin:0 -8px;border-radius:10px;font-family:inherit;text-align:left;align-self:flex-start}
.bignum small{font-size:14px;font-weight:500;color:#5f5f69;letter-spacing:0}
.bignum.editable{cursor:pointer}
.bignum .pen{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#efe8fb;color:#5b16d6;opacity:0;transition:opacity .15s;align-self:center}
.bignum.editable:hover,.bignum.editable:focus-visible{background:#f6f3fb;outline:none}
.bignum.editable:hover .pen,.bignum.editable:focus-visible .pen{opacity:1}
.editbtn{opacity:0;transition:opacity .15s}
.budgetcard:hover .editbtn,.budgetcard:focus-within .editbtn{opacity:1}
@media (hover:none){.editbtn,.bignum .pen{opacity:1}}
.notice{padding:12px 14px;border-radius:10px;background:#fbefd9;color:#5c3300;font-size:13.5px;line-height:1.55}
.tipcard{background:#f6f3fb;border-color:#e2d9f4}
.planbox{padding:12px 14px;border-radius:10px;background:#f6f3fb;border:1px solid #e2d9f4;font-size:13.5px;line-height:1.55;display:flex;flex-direction:column;gap:8px}
.planbox.warn{background:#fff8eb;border-color:#f0d9a8}
.ramp{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px}
.ramp li{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:8px;background:#fff;border:1px solid #efe4cc;font-size:12px;color:#5f5f69}
.ramp li b{font-size:15px;color:#17171c;font-variant-numeric:tabular-nums}
.money-in{display:flex;align-items:center;gap:0;border:1px solid #dcdce1;border-radius:8px;background:#fff;padding-left:10px}
.money-in span{font:600 15px Inter,sans-serif;color:#5f5f69}
.field .money-in input{border:0;min-height:44px;font-size:17px;font-weight:600;padding-left:4px}
.field .money-in:focus-within{border-color:#5b16d6;box-shadow:0 0 0 3px #efe8fb}
.stbar{display:flex;gap:2px;height:12px;border-radius:999px;overflow:hidden}
.stbar i{display:block;min-width:4px}
.stlist{display:flex;flex-direction:column}
.stlist a{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f0f0f3;color:#17171c;text-decoration:none;font-size:13.5px}
.stlist a:last-child{border-bottom:0}
.stlist a:hover span{color:#5b16d6;text-decoration:underline}
.stlist i{width:12px;height:12px;border-radius:3px;flex:none}
.stlist b{margin-left:auto;font-variant-numeric:tabular-nums}
.s-new{background:#a0a0aa}.s-contacted{background:#2f6fd0}.s-qualified{background:#8a5cf0}.s-customer{background:#17633f}.s-lost{background:#d4d4da}
.stsel{min-height:36px;border:1px solid #dcdce1;border-radius:8px;padding:0 8px;font:600 13px Inter,sans-serif;background:#fff;color:#17171c;cursor:pointer}
.stsel.st-customer{background:#e6f4ec;border-color:#a9d9bd;color:#17633f}
.stsel.st-lost{color:#5f5f69}
.stsel.st-contacted,.stsel.st-qualified{background:#f5f0fe;border-color:#d9cbf5}
.pill.st-customer{background:#e6f4ec;color:#17633f}.pill.st-new{background:#f0f0f3;color:#4a4a55}.pill.st-contacted,.pill.st-qualified{background:#efe8fb;color:#4310a4}.pill.st-lost{background:#f0f0f3;color:#72727c}
.ltable td{vertical-align:top}
.ltable .nowrap{white-space:nowrap}
.ltable .contact{min-width:200px}
.ltable .answers{min-width:220px}
.ltable small .pill{margin-top:4px}
.lname{border:0;background:none;padding:0;font:650 13.5px Inter,sans-serif;color:#17171c;cursor:pointer;text-align:left;text-decoration:underline;text-decoration-color:#d9cbf5;text-underline-offset:3px}
.lname:hover{color:#5b16d6;text-decoration-color:#5b16d6}
.contact{display:flex;flex-direction:column;gap:2px;font-size:13px;min-width:0}
.contact a{overflow-wrap:anywhere}
.answers{display:flex;flex-direction:column;gap:2px;font-size:12.5px;max-width:320px}
.answers .more{align-self:flex-start;min-height:26px;padding:0}
.ans span{color:#5f5f69}
.epills{display:flex;flex-wrap:wrap;gap:4px}
.epills .pill{font-size:11.5px;min-height:20px}
.epills .ico{width:12px;height:12px}
.lcards{display:none;flex-direction:column;gap:10px}
.lcard{padding:14px;display:flex;flex-direction:column;gap:8px}
.shade{position:fixed;inset:0;background:rgba(23,23,28,.3);z-index:70}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(620px,100%);background:#fff;z-index:71;overflow-y:auto;box-shadow:-12px 0 40px rgba(23,23,28,.16);display:flex;flex-direction:column}
.drhead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 18px 14px;border-bottom:1px solid #eeeef1;position:sticky;top:0;background:#fff;z-index:2}
.drhead h2{font-size:18px}
.drawer h4{margin:6px 0 0;font-size:13px;font-weight:650}
.reply{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:10px;background:#f8f8fa;font-size:13.5px;line-height:1.5}
.reply p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.crmgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.crmopt{border:1px solid #e6e6ea;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px;font-size:13.5px;min-width:0}
@media (max-width:760px){
.ptop .in{padding:10px 16px}
.pmain{padding:18px 16px 40px}
.ptabs{order:3;flex:1 1 100%}
.ptabs a{flex:1 1 0;justify-content:center;padding:0 8px}
.lcards{display:flex}
.crmgrid{grid-template-columns:minmax(0,1fr)}
.drawer .kv{grid-template-columns:minmax(0,1fr)}
.drawer .kv span{margin-top:6px}
.xl span.alt,.xl span.tail{display:none}
.bignum{font-size:30px}
}
/* Client page: thank-you editor and previews */
.tcard{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #e6e6ea;border-radius:10px;background:#fafafb}
.pframe{display:block;width:100%;height:640px;border:1px solid #e6e6ea;border-radius:10px;background:#fff}
.modal .pframe{height:min(70vh,720px)}
.more-box{border:1px solid #e6e6ea;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:12px}
.more-box[open]{padding-bottom:14px}
.more-box summary{cursor:pointer;font-size:13.5px;font-weight:600;color:#17171c;min-height:24px;display:flex;align-items:center}
.more-box > :not(summary){margin-top:10px}
@media (max-width:760px){.pframe{height:520px}}
@media (max-width:760px){.tcard .optrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important}}
.log div.wraprow{flex-wrap:wrap;align-items:center}
.log div.wraprow .muted{overflow-wrap:anywhere}
/* Lead flow */
.flowgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.flowcard{gap:12px}
.heronum{font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.heronum small{font-size:13.5px;font-weight:500;letter-spacing:0;color:#5f5f69}
.meter{height:10px;border-radius:999px;background:#ece6f8;overflow:hidden}
.meter i{display:block;height:100%;border-radius:999px;background:#5b16d6}
.meter.over i{background:#17633f}
.minis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.minis>div{background:#f8f8fa;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.minis span{font-size:12px;font-weight:600;color:#5f5f69}
.minis b{font-size:19px;font-weight:650;font-variant-numeric:tabular-nums}
.minis small{font-size:12px;color:#5f5f69}
.neg{color:#a3283a !important}
.posv{color:#17633f !important}
.spanline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border-top:1px solid #f0f0f3;padding-top:12px}
.spanline>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.spanline span{font-size:12px;font-weight:600;color:#5f5f69}
.spanline b{font-size:16px;font-weight:650;font-variant-numeric:tabular-nums}
.flist{display:flex;flex-direction:column}
.frow{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.2fr) minmax(0,1.3fr) minmax(0,.9fr);gap:6px 16px;align-items:center;padding:12px 0;border-bottom:1px solid #f0f0f3;color:#17171c;text-decoration:none;font-size:13px}
.frow:last-child{border-bottom:0}
.frow:hover .fname strong{color:#5b16d6}
.frow.off{color:#5f5f69}
.fname{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.fname strong{font-size:14px;font-weight:600;margin-right:2px}
.fmeter{display:grid;grid-template-columns:minmax(0,1fr) 46px;align-items:center;gap:10px}
.fmeter b{text-align:right;font-variant-numeric:tabular-nums}
.fnums{font-variant-numeric:tabular-nums}
.fcharge{display:flex;flex-direction:column;align-items:flex-end;text-align:right;font-variant-numeric:tabular-nums}
.fcharge small{font-size:12px;color:#5f5f69}
@media (max-width:1240px){.flowgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.flowgrid>:first-child{grid-column:1 / -1}}
@media (max-width:760px){
.flowgrid{grid-template-columns:minmax(0,1fr)}
.flowtop .actions{width:100%;justify-content:space-between}
.heronum{font-size:30px}
.minis b{font-size:17px}
.minis>div{padding:9px 10px}
.spanline{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}
.frow{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
.fname{grid-column:1 / -1}
.fmeter{grid-column:1 / -1}
.fnums{grid-column:1}
.fcharge{grid-column:2;grid-row:3}
}
/* Admin lead panel: outcome per client, ad ids */
.outcome{border:1px solid #eeeef1;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.kv b small.mono{display:block;font:500 11.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:#72727c;overflow-wrap:anywhere}
.tbl.dns td{font-size:12.5px}
.tbl.dns code{overflow-wrap:anywhere}
/* Phones: tables become stacked cards (labels come from labelTables in core.js) */
@media (max-width:760px){
.tblwrap:has(.tbl.tstack){overflow-x:visible}
.tbl.tstack thead{display:none}
.tbl.tstack,.tbl.tstack tbody,.tbl.tstack tfoot{display:block;width:100%}
.tbl.tstack tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 14px;padding:12px 16px;border-bottom:1px solid #eeeef1}
.tbl.tstack tbody tr:last-child{border-bottom:0}
.tbl.tstack td{display:block;padding:0;border:0;text-align:left;min-width:0 !important;overflow-wrap:break-word}
.tbl.tstack td.full{grid-column:1 / -1}
.tbl.tstack td.num{text-align:left}
.tbl.tstack td::before{content:attr(data-label);display:block;font-size:11.5px;font-weight:600;color:#5f5f69;margin-bottom:2px}
.tbl.tstack td[data-label=""]::before{display:none}
.tbl.tstack td:first-child,.tbl.tstack td[colspan]{grid-column:1 / -1}
.tbl.tstack td:first-child::before{display:none}
.tbl.tstack td:empty{display:none}
.tbl.tstack tbody tr:hover td{background:none}
.tbl.tstack tfoot tr{background:#f8f8fa}
.tbl.tstack tfoot td{background:none;border:0}
.sec .tbl.tstack tr{padding-left:0;padding-right:0}
}
.field .hint{font-weight:400}
@media (max-width:760px){
.tbl.tstack tr td{background:none !important;box-shadow:none !important}
.tbl.tstack tr.prio,.tbl.tstack tr.picked{background:#faf7ff;box-shadow:inset 3px 0 0 #5b16d6}
.sec .tbl.tstack tr.prio,.sec .tbl.tstack tr.picked{padding-left:10px}
.tbl.tstack .usage{min-width:0;flex-wrap:wrap}
.tbl.tstack .usage .bar{min-width:60px}
}
/* Leads page on phones: compact rows, the lead opens as a full-screen sheet */
.sheetbar{display:none}
@media (max-width:760px){
.lrow{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 14px}
.lrow>time{grid-column:2;grid-row:1;text-align:right;font-size:12.5px}
.lrow>span:nth-of-type(1){grid-column:1;grid-row:1}
.lrow>span:nth-of-type(2){grid-column:1 / -1;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.lrow>span:nth-of-type(2) small{margin:0}
.lrow>span:nth-of-type(3){grid-column:1 / -1;grid-row:3;font-size:12px!important;color:#5f5f69;display:flex;gap:6px}
.lrow>span:nth-of-type(3) small{margin:0}
.lrow>span:nth-of-type(3) small::before{content:'· '}
.split>.panel:not(.sheet){display:none}
.panel.sheet{position:fixed;inset:0;z-index:70;border-radius:0;border:0;overflow-y:auto;overscroll-behavior:contain;background:#fff}
.panel.sheet .sheetbar{display:flex;position:sticky;top:0;z-index:2;background:#fff;padding:10px 14px;border-bottom:1px solid #eeeef1}
body.sheet-open{overflow:hidden}
}
@media (max-width:760px){.optrow button,.chip button{min-width:32px;min-height:36px}}
/* Budget change: the reason is a required field that looks like one */
.qfield{font-size:13.5px;color:#17171c}
.qfield select,.qfield textarea{min-height:44px;font-size:15px}
.whybox{margin:0;padding:10px 14px 14px;border:1px solid #e2d9f4;border-radius:10px;background:#faf8fe;display:flex;flex-direction:column;gap:12px;min-width:0}
.whybox legend{padding:0 6px;font-size:14px;font-weight:650;color:#17171c}
.req{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#efe8fb;color:#5b16d6;font-size:11px;font-weight:650;vertical-align:1px}
.field [aria-invalid=true]{border-color:#c4314b;box-shadow:0 0 0 3px #fbe4e8}
.whysum{padding:12px 14px;border:1px solid #e6e6ea;border-radius:10px;background:#fafafb;display:flex;flex-direction:column;gap:4px}
.whysum .sechead span{font-size:12px;font-weight:600;color:#5f5f69}
.whysum p{margin:0;white-space:pre-wrap;font-size:13.5px;color:#2c2c34}
.pct-in{padding:0 12px 0 0}
.pct-in input{padding-left:10px !important}
/* The value of a client's leads */
.valuecard{background:#f8f5fe;border-color:#e2d9f4}
.vgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.vstat{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border-radius:10px;background:#fff;border:1px solid #ece6f8;min-width:0}
.vstat span{font-size:12.5px;font-weight:600;color:#5f5f69}
.vstat b{font-size:28px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#17171c;overflow-wrap:anywhere;line-height:1.15}
.vstat:first-child b{color:#5b16d6}
.vstat small{font-size:12.5px;color:#5f5f69;line-height:1.45}
.valuecard.empty-value{display:flex;flex-direction:column;gap:10px}
/* Rate this lead */
.ratecell{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.rate{display:inline-flex;gap:2px;padding:2px;border:1px solid #e6e6ea;border-radius:999px;background:#fff}
.rate button{width:34px;height:34px;border:0;border-radius:999px;background:none;font-size:18px;line-height:1;cursor:pointer;filter:grayscale(1);opacity:.5}
.rate button:hover:not(:disabled),.rate button:focus-visible{opacity:1;filter:none;background:#f4f4f6}
.rate button[aria-pressed=true]{opacity:1;filter:none;background:#efe8fb;box-shadow:inset 0 0 0 2px #5b16d6}
.rate button.r-poor[aria-pressed=true]{background:#fde8eb;box-shadow:inset 0 0 0 2px #c4314b}
.rate button:disabled{cursor:default}
.lcfoot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
/* Lead quality on the client page */
.subhead{margin:4px 0 0;font-size:13.5px;font-weight:650}
.lqr{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;padding:12px 14px;border-radius:10px;background:#f7f7f8}
.lqrnum{display:flex;flex-direction:column;gap:2px}
.lqrnum span{font-size:12px;font-weight:600;color:#5f5f69}
.lqrnum b{font-size:26px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.lqrnum small{font-size:12px;color:#5f5f69}
.lqrmix{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:13.5px}
.lqrmix small{flex-basis:100%}
.lqrmix a{color:inherit;text-decoration:none;border-bottom:1px dashed #c4c4cc}
.lqrmix a:hover{color:#5b16d6;border-bottom-color:currentColor}
.warnv{color:#a15c00}
@media (max-width:760px){.vgrid{grid-template-columns:minmax(0,1fr)}.vstat b{font-size:26px}}
.money-in input:focus{outline:none}
.qfield>span:first-child:not(.money-in){display:flex;align-items:center;flex-wrap:wrap}
.ltable .rate button{width:28px;height:28px;font-size:16px}

/* Stat tiles with depth: a soft tint, a lifted shadow and a large faint icon on the right */
.kpi.deep{position:relative;overflow:hidden;isolation:isolate;border-color:var(--kb);background:linear-gradient(135deg,#fff 30%,var(--kt) 100%);box-shadow:0 1px 2px rgba(23,23,28,.04),0 8px 20px -12px var(--ks)}
.kpi.deep .bgico{position:absolute;right:-8px;bottom:-14px;width:88px;height:88px;fill:none;stroke:var(--ki);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.16;z-index:-1}
.kpi.deep b{font-size:26px}
.kpis:not(.k4) .kpi.deep .bgico{width:70px;height:70px;right:-10px;bottom:-16px}
.t-violet{--kt:#f1eafd;--kb:#e6dcf8;--ks:rgba(91,22,214,.35);--ki:#5b16d6}
.t-blue{--kt:#e8f1fd;--kb:#d9e7f8;--ks:rgba(30,100,200,.3);--ki:#1e64c8}
.t-indigo{--kt:#ecebfd;--kb:#dedcf7;--ks:rgba(67,56,202,.3);--ki:#4338ca}
.t-green{--kt:#e6f5ec;--kb:#d3ebdd;--ks:rgba(23,99,63,.3);--ki:#17633f}
.t-teal{--kt:#e3f4f3;--kb:#cfe8e6;--ks:rgba(15,110,104,.3);--ki:#0f6e68}
.t-amber{--kt:#fdf2e1;--kb:#f3e3c8;--ks:rgba(160,100,10,.28);--ki:#a0640a}
.t-rose{--kt:#fcebed;--kb:#f3d7db;--ks:rgba(163,40,58,.28);--ki:#a3283a}
.bizlink{color:inherit;text-decoration:underline;text-decoration-color:#c9c9d1;text-underline-offset:2px}
.bizlink:hover{color:#5b16d6;text-decoration-color:currentColor}
.nextline{margin:0;padding:10px 12px;border-radius:10px;background:#f7f7f8;font-size:13px;line-height:1.5;color:#2c2c34}
.bgrid .vstat{background:#fafafb;border-color:#ececf0}
/* Ad profit: the banner on every page, the callout, and campaign rows colored by margin */
.flagbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-radius:12px;padding:12px 14px;margin:0 0 18px;border:1px solid;font-size:13.5px;line-height:1.5}
.flagbar p{margin:0;flex:1 1 320px;min-width:0;overflow-wrap:anywhere}
.flagbar .ico{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.flagbar.f-red{background:#fcebed;border-color:#f1c6cd;color:#7d1f2e}
.flagbar.f-amber{background:#fdf2e1;border-color:#f0dcb8;color:#7a4b07}
.flagbar .btn.link{color:inherit}
.callout{border-radius:12px;padding:12px 14px;border:1px solid;font-size:13.5px;line-height:1.55;display:flex;flex-direction:column;gap:2px}
.callout.c-red{background:#fcebed;border-color:#f1c6cd;color:#7d1f2e}
.callout.c-amber{background:#fdf2e1;border-color:#f0dcb8;color:#7a4b07}
.callout .muted{color:inherit;opacity:.85;font-size:12.5px}
/* Campaign rows tinted like the Funnel Engine breakdown (red or orange when flagged), ads striped under them */
.tbl.profit tr.camp td{background:#f3effc;border-top:1px solid #e3dcf3}
.tbl.profit tr.camp td:first-child{box-shadow:inset 4px 0 0 var(--lv,#e6e6ea)}
.tbl.profit tr.camp.lv-red td{background:#fdf3f4}
.tbl.profit tr.camp.lv-orange td{background:#fef8ee}
.tbl.profit tr.lv-red{--lv:#c4314b}
.tbl.profit tr.lv-orange{--lv:#d97706}
.tbl.profit tr.lv-green{--lv:#2f9e6a}
.tbl.profit tr.adrow{--rowbg:#fff}
.tbl.profit tr.adrow:nth-child(even){--rowbg:#f7f7f9}
.tbl.profit tr.adrow td{background:var(--rowbg);font-size:13px}
.tbl.profit tr.adrow td:first-child{padding-left:30px;box-shadow:inset 18px 0 0 var(--rowbg),inset 21px 0 0 var(--lv,#e6e6ea)}
.tbl.profit th:first-child{min-width:260px}
.tbl.profit td.num small{white-space:nowrap}
.tbl.profit .adname{font-weight:500}
.tbl.profit .neg{color:#a3283a;font-weight:600}
.tbl.profit .thin{color:#a0640a;font-weight:600}
.tbl.profit .btn.link.sm{padding:0;min-height:0}
@media (max-width:760px){
.tbl.tstack.profit tr{box-shadow:inset 4px 0 0 var(--lv,#e6e6ea)}
.tbl.tstack.profit tr.camp{background:#f3effc}
.tbl.tstack.profit tr.camp.lv-red{background:#fdf3f4}
.tbl.tstack.profit tr.camp.lv-orange{background:#fef8ee}
.tbl.tstack.profit tr.adrow{background:var(--rowbg);padding-left:30px}
.tbl.tstack.profit th:first-child{min-width:0}
.tbl.tstack.profit tr td,.tbl.tstack.profit tr td:first-child{background:none;box-shadow:none;padding-left:0}
.tbl.tstack.profit tfoot tr{box-shadow:none}
}
