@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;650;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#203831;background:#f6f8f9;font-size:16px;--green:#087b61;--dark:#153d33;--border:#dfe7e4;--muted:#62776f}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,.button{cursor:pointer;border:1px solid var(--border);border-radius:9px;background:white;color:#28493e;padding:11px 17px;font-size:.9rem;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s}button:hover,.button:hover{background:#eef5f2}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#076a54}.danger{color:#ac3636}.small{padding:8px 12px;font-size:.875rem}.sidebar{width:246px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--border);padding:32px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font:800 1.4rem Manrope,system-ui;color:var(--dark);text-decoration:none}.brandmark{display:grid;place-items:center;background:var(--green);border-radius:11px;color:white;width:36px;height:36px;font-size:2rem;line-height:1}.local{font:.6em 'DM Sans',sans-serif;font-size:.65rem;border:1px solid var(--border);border-radius:4px;padding:3px;letter-spacing:.05em}.workspace{font-size:.75rem;letter-spacing:.08em;color:#7a8c85;margin:48px 10px 14px}nav{display:grid;gap:7px}nav a{text-decoration:none;color:#61776e;font-weight:500;font-size:.92rem;padding:14px;border-radius:8px;display:flex;gap:13px;align-items:center}nav a span{width:20px;font-size:1.2rem}nav a:hover{background:#f4f8f6}nav a.active{background:#e9f5ef;color:#06745a;font-weight:700}.sidebar-bottom{margin-top:auto;padding-top:36px}.connection-link{display:flex;align-items:center;gap:8px;color:#426154;text-decoration:none;font-size:.8rem;border:1px solid var(--border);padding:12px 8px;border-radius:9px}.dot{height:7px;width:7px;background:#b3bdb8;border-radius:50%;flex-shrink:0}.dot.online{background:#17a471}.sidebar-bottom small{display:block;color:#85938d;line-height:1.7;font-size:.75rem;padding:18px 5px 0}.main{margin-left:246px}header{height:82px;background:#ffffffcc;border-bottom:1px solid var(--border);padding:0 42px;display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:.875rem;color:#84968e}.breadcrumb span{margin:0 16px;color:#c1cec7}.breadcrumb strong{font-weight:500;color:#496155}main{padding:40px 42px;max-width:1600px;margin:auto;min-height:calc(100vh - 140px)}h1,h2,h3{font-family:Manrope,system-ui;letter-spacing:-.035em}h1{font-size:1.9rem;margin:0 0 9px;font-weight:800}h2{font-size:1.2rem;margin:0}h3{font-size:1rem;margin:0}p{line-height:1.6;color:var(--muted)}.subtitle{margin:0;font-size:.93rem}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:28px}.stat{background:white;border:1px solid var(--border);border-radius:12px;padding:20px 23px;display:flex;gap:16px;align-items:center}.stat-symbol{height:42px;width:42px;border-radius:11px;display:grid;place-items:center;color:#078362;background:#ebf5ef;font-size:1.3rem}.stat b{display:block;font:750 1.5rem Manrope,system-ui}.stat small{color:var(--muted);font-size:.875rem}.panel{background:white;border:1px solid var(--border);border-radius:14px;padding:25px;margin-bottom:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.pill{border-radius:30px;padding:5px 10px;font-size:.75rem;background:#eef3f1;color:#547365}.pill.green{background:#e5f5eb;color:#107549}.pill.amber{background:#fff3d8;color:#87590c}.pill.red{background:#ffeded;color:#a44242}.funnel-grid,.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.funnel-card{border:1px solid var(--border);border-radius:13px;background:white;padding:23px;display:flex;flex-direction:column;gap:18px}.funnel-card p{font-size:.875rem;margin:0;min-height:40px}.funnel-card .card-top{display:flex;align-items:center;justify-content:space-between}.funnel-icon{width:44px;height:44px;border-radius:12px;background:#e7f5ed;color:#17835f;display:grid;place-items:center;font-size:1.5rem}.flow-mini{display:flex;gap:7px;align-items:center;font-size:.8rem;min-height:40px}.flow-mini span{background:#f0f5f3;border:1px solid #e2eae6;border-radius:7px;padding:7px 10px;color:#507060}.card-actions{border-top:1px solid #edf0ee;padding-top:16px;display:flex;gap:7px;margin-top:auto}.card-actions button:first-child{flex:1}.new-card{border:1.5px dashed #b9cdc2;background:#f4f9f6;min-height:270px;flex-direction:column;gap:13px;color:#397959}.new-card .plus{font-size:2rem;border:1px solid #c4ddcf;border-radius:50%;width:48px;height:48px;display:grid;place-items:center}.new-card small{font-size:.85rem;font-weight:400;color:#7b9588}.note{border:1px solid #d4e6df;background:#edf6f2;padding:18px 22px;border-radius:11px;display:flex;align-items:flex-start;gap:14px;color:#346957;font-size:.875rem;line-height:1.65;margin-top:24px}.note p{margin:0;color:inherit}.note.amber{background:#fff8e9;border-color:#efdfba;color:#8b651d}.empty{text-align:center;padding:50px 20px;color:var(--muted);line-height:1.7}.empty strong{display:block;color:#38594a;margin-bottom:8px}.empty-icon{font-size:2rem;margin-bottom:12px;color:#66a187}.muted{color:var(--muted)}.meta{font-size:.8rem;color:#7b8b83}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px}.step{background:white;border:1px solid var(--border);border-radius:12px;margin-bottom:16px;position:relative;padding:20px}.step-head{display:flex;align-items:center;gap:9px;margin-bottom:18px}.step-number{background:#173e32;color:white;border-radius:6px;display:grid;place-items:center;min-width:25px;height:25px;font-size:.8rem}.step-head strong{flex:1}.iconbutton{padding:6px 10px;font-size:.875rem}.step label{margin-bottom:14px}.step .row label{flex:1}.step audio{max-width:100%;height:38px}.step img{max-height:140px;max-width:100%;border-radius:9px}.side-help{align-self:start;position:sticky;top:20px}.side-help p{font-size:.875rem}.side-help hr{border:0;border-top:1px solid var(--border);margin:22px 0}label{display:grid;gap:7px;font-size:.875rem;color:#476355;margin-bottom:18px}input,select,textarea{background:white;border:1px solid #cedbd4;border-radius:8px;padding:11px 12px;color:#254c3c;min-width:0;width:100%}textarea{resize:vertical;min-height:95px;line-height:1.6}input[type=checkbox]{width:18px;height:18px;accent-color:var(--green)}.check{display:flex;align-items:flex-start;gap:10px;line-height:1.55}.check input{margin-top:3px;flex-shrink:0}.help{font-size:.8rem;color:#7a8e83;line-height:1.6}.upload{border:1.5px dashed #a9cabc;border-radius:12px;padding:35px;text-align:center;background:#f7fbf9;margin:0 0 25px;display:block;cursor:pointer}.upload input{max-width:400px;margin-top:15px}.asset-card{background:white;border:1px solid var(--border);border-radius:12px;padding:18px;overflow:hidden}.asset-card img{width:100%;height:170px;object-fit:contain;background:#f2f5f3;border-radius:8px}.asset-card audio{width:100%;margin:25px 0}.asset-card h3{margin:16px 0 6px;overflow-wrap:anywhere}.connection-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.qrbox{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f5f9f7;border-radius:13px;border:1px solid var(--border);text-align:center;padding:24px}.qrbox img{width:260px;max-width:100%;background:white;padding:10px;border-radius:8px}.instructions{padding-left:24px;color:#5f786b;line-height:1.8}.instructions li{padding:7px}.job{display:grid;grid-template-columns:minmax(140px,1fr) 1fr auto;gap:20px;border-top:1px solid var(--border);padding:20px 0;align-items:center}.job:first-child{border-top:0}.job p{margin:5px 0;font-size:.875rem}.job .error{color:#9e652c;font-size:.8rem}.progress{height:5px;background:#e8efea;border-radius:5px;overflow:hidden;margin-top:12px;max-width:240px}.progress i{display:block;height:100%;background:#24a779}.chat-shell{display:grid;grid-template-columns:270px minmax(0,1fr);height:calc(100vh - 255px);min-height:450px;background:white;border:1px solid var(--border);border-radius:13px;overflow:hidden}.chat-list{border-right:1px solid var(--border);overflow-y:auto}.chat-search{padding:14px}.chat-item{display:block;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid #eff3f0;padding:16px}.chat-item.active{background:#eaf6ef}.chat-item span{display:block;margin-top:7px;font-weight:400;font-size:.8rem;color:#7d9387;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-main{display:flex;flex-direction:column;min-width:0}.chat-title{padding:18px 22px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.messages{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:12px;background:#f2f6f3;padding:22px}.bubble{max-width:82%;align-self:flex-start;background:white;border:1px solid #e0e8e2;border-radius:2px 12px 12px 12px;padding:12px 15px;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.5;font-size:.94rem}.bubble.out{align-self:flex-end;background:#dcf2e4;border-color:#cde7d6;border-radius:12px 2px 12px 12px}.bubble small{display:block;font-size:.7rem;color:#789280;text-align:right;margin-top:5px}.bubble img{max-width:100%;max-height:220px;border-radius:8px}.bubble audio{max-width:100%;width:260px}.composer{padding:14px;border-top:1px solid var(--border);display:flex;gap:9px;align-items:end}.composer textarea{min-height:45px;max-height:140px;height:48px}.composer button{flex-shrink:0}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}dialog{border:1px solid var(--border);border-radius:16px;max-width:560px;width:calc(100% - 32px);max-height:90vh;padding:28px;box-shadow:0 24px 90px #153d332b;color:#244c3c}dialog::backdrop{background:#102d2466;backdrop-filter:blur(3px)}dialog p{font-size:.875rem}.dialog-actions{display:flex;gap:9px;justify-content:end;margin-top:24px}#toast{position:fixed;top:calc(12px + env(safe-area-inset-top));bottom:auto;pointer-events:none;left:50%;transform:translateX(-50%);padding:14px 22px;background:#173d31;color:white;border-radius:10px;box-shadow:0 10px 40px #193e3433;z-index:10;display:none;max-width:90vw;font-size:.9rem}#toast.visible{display:block}footer{padding:14px 42px 25px;font-size:.75rem;color:#8b9b92}footer span{margin:0 8px}.recording{color:#b22e39}.split{display:grid;grid-template-columns:1fr 1fr;gap:16px}
[hidden]{display:none!important}
@media(min-width:1450px){main{padding-top:45px}.funnel-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:1050px){.sidebar{width:210px;padding:25px 14px}.main{margin-left:210px}main{padding:28px 24px}header{padding:0 24px}.editor-layout{grid-template-columns:1fr}.side-help{position:static}.stats{gap:10px}.stat{padding:16px 12px}.chat-shell{grid-template-columns:210px 1fr}.job{grid-template-columns:1fr 1fr}.job .row{grid-column:1/-1}.brand{font-size:1.2rem}}@media(max-width:720px){.sidebar{position:static;width:auto;padding:15px;border-right:0;border-bottom:1px solid var(--border)}.workspace,.sidebar-bottom{display:none}nav{display:flex;overflow-x:auto;margin-top:18px;gap:5px}nav a{padding:10px;white-space:nowrap;font-size:.8rem;gap:5px}nav a span{font-size:1rem;width:15px}.main{margin-left:0}header{height:64px;padding:0 18px}.breadcrumb{font-size:.8rem}main{padding:25px 18px}.page-head{align-items:flex-start;flex-wrap:wrap}h1{font-size:1.65rem}.stats{grid-template-columns:1fr}.stat{padding:14px 18px}.stat b{font-size:1.3rem}.stat small{font-size:.8rem}.connection-grid,.split{grid-template-columns:1fr}.panel{padding:19px}.chat-shell{grid-template-columns:1fr;height:700px}.chat-list{max-height:180px;border-bottom:1px solid var(--border);border-right:0}.chat-main{min-height:450px}.bubble{max-width:95%}.composer{flex-wrap:wrap}.composer textarea{flex-basis:100%}.job{grid-template-columns:1fr}.job .row{grid-column:auto}footer{padding:15px 18px}.funnel-grid{grid-template-columns:1fr}.page-head .row{width:100%}}

/* Live chat: unread state and searchable content shelf. */
[hidden]{display:none!important}.chat-main{min-height:0;overflow:hidden}.messages{min-height:130px}.chat-item{position:relative;padding-right:47px;border-left:4px solid transparent}.chat-item.unread{border-left-color:#0a9475;background:#edfaf5}.chat-item.unread.active{background:#dff3ea}.chat-item strong{display:block;overflow-wrap:anywhere}.chat-item small{display:block;font-size:.72rem;font-weight:400;color:#60796d;margin-top:5px}.chat-item .unread-badge{position:absolute;right:12px;top:16px;min-width:24px;height:24px;padding:3px 6px;border-radius:20px;background:#087b61;color:white;font-size:.75rem;text-align:center}.chat-shelf{border-top:1px solid var(--border);padding:12px 14px;background:#fbfdfc;flex-shrink:0}.shelf-heading{display:flex;justify-content:space-between;gap:8px;font-size:.86rem;margin-bottom:9px}.shelf-heading a{color:var(--green);font-size:.78rem}.shelf-tools{display:flex;gap:8px;margin-bottom:9px}.shelf-tools input,.shelf-tools select{padding:8px;font-size:.8rem}.shelf-tools select{width:110px}.shelf-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:8px;max-height:145px;overflow-y:auto;align-content:start}.shelf-item{padding:9px;text-align:left;justify-content:start;min-width:0}.shelf-item>span:last-child{min-width:0}.shelf-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem}.shelf-item small{display:block;font-size:.68rem;color:var(--muted);font-weight:400;margin-top:5px}.shelf-icon{background:#e9f5ef;color:var(--green);width:34px;height:34px;border-radius:7px;display:grid;place-items:center;flex-shrink:0}.shelf-icon img{width:34px;height:34px;object-fit:cover;border-radius:7px}.send-timing{border:1px solid var(--border);border-radius:10px;padding:14px;margin-top:16px}.send-timing legend{font-weight:600;font-size:.9rem}.send-timing label:last-child{margin:0}.composer{flex-wrap:wrap}.composer textarea{flex:1 1 100%}.chat-shell{height:calc(100vh - 280px);min-height:600px}.chat-title{padding:12px 18px}.composer{padding:10px 14px}.shelf-items .help{margin:4px;grid-column:1/-1}@media(max-width:720px){.chat-shell{height:1000px;grid-template-rows:180px minmax(0,1fr)}.chat-main{min-height:0}.shelf-items{max-height:125px}}
