@font-face{font-family:Inter;src:url('/assets/inter-latin.woff2') format('woff2');font-style:normal;font-weight:400 900;font-display:swap}
body.menu-open{overflow:hidden}.account-chip{margin-top:auto!important;padding-top:28px}.sidebar-bottom{margin-top:0!important}.account-chip strong{display:block}.account-chip small{display:block;color:#9a8c7f;font-size:9px;margin-top:3px}.mobile-brand img{display:block;object-fit:contain;width:64px;height:24px}input,select,textarea{font-size:14px}
:root{color-scheme:light;--brand:#f44d0f;--brand-hover:#d33d06;--brand-ink:#a82e00;--brand-soft:#fff0e8;--brand-soft2:#ffe1ce;--tenant-accent:#f44d0f;--ink:#252322;--muted:#74706d;--bg:#f8f7f4;--surface:#fff;--line:#eae6e1;--soft:#fff0e8;--radius:18px;--shadow:0 4px 24px #33200f04}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 18px;border:1px solid transparent;border-radius:11px;background:var(--brand);color:#22150d;font-size:13px;font-weight:700;cursor:pointer;transition:background .16s,box-shadow .16s,transform .16s}button:hover{background:var(--brand-hover);box-shadow:0 3px 12px var(--brand-shadow)}button:active{transform:translateY(1px)}button:disabled{opacity:.55;cursor:wait}button.secondary{background:#fff;border-color:var(--line);color:var(--ink)}button.secondary:hover{border-color:#dccbc1;background:var(--brand-tint);box-shadow:none}button.danger{background:#fff2ef;border-color:#ffe0d9;color:#a43827}button:focus-visible,a:focus-visible{outline:3px solid var(--brand-focus);outline-offset:3px}.icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.icon-button{padding:10px;min-width:44px;background:transparent;color:var(--ink);border-color:var(--line)}
input,select,textarea{display:block;width:100%;min-width:0;min-height:46px;padding:12px 14px;border:1px solid #e1dad3;border-radius:10px;background:#fff;color:var(--ink);outline:0;transition:border-color .16s,box-shadow .16s}input::placeholder,textarea::placeholder{color:#a29b94;font-weight:400}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-faint)}select{padding-right:28px}textarea{min-height:116px;resize:vertical;line-height:1.7}input[type=checkbox]{width:18px;min-height:18px;height:18px;margin:3px 0 0;accent-color:var(--brand);flex-shrink:0}input[type=color]{height:46px;padding:6px}input[type=file]{padding:10px;font-size:12px}input[type=file]::file-selector-button{background:var(--brand-soft);color:var(--brand-ink);border:0;border-radius:6px;padding:7px;margin-right:10px}label{display:grid;gap:9px;min-width:0;font-size:12px;font-weight:600;color:#58524d}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,2.15vw,36px);font-weight:750;letter-spacing:-1.25px;line-height:1.24;overflow-wrap:break-word}h2{font-size:17px;letter-spacing:-.4px;font-weight:700}p{line-height:1.7}small,.muted{color:var(--muted)}small{font-size:11px}a{color:var(--brand-ink);text-underline-offset:3px}.loading{padding:48px;color:var(--muted)}
.shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100dvh}.shell>main{min-width:0}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;gap:0;height:100dvh;padding:28px 19px 21px;border-right:1px solid var(--line);background:#fdfcfa;z-index:35;overflow-y:auto}.logo{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-bottom:10px;padding:8px 13px;background:#22201f;border-radius:11px}.logo img{display:block;width:117px;height:42px;object-fit:contain}.product{font-size:9px;font-weight:700;letter-spacing:1.7px;color:#89817a;margin:2px 0 35px 5px}.nav-label{font-size:9px;letter-spacing:1.5px;font-weight:650;color:#a69b90;padding:0 12px;margin-bottom:10px}.nav{display:grid;gap:5px}.nav button{width:100%;justify-content:flex-start;min-height:45px;text-align:left;padding:12px 13px;border-radius:10px;background:transparent;color:#79716b;font-size:12px;font-weight:550}.nav button:hover{background:#f6f1eb;box-shadow:none;color:var(--ink)}.nav button.active{background:var(--brand-soft);color:var(--brand-ink);font-weight:650}.nav button.active .icon{stroke:var(--brand)}.nav button.active:after{content:'';width:5px;height:5px;background:var(--brand);border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto;padding:24px 10px 0;border-top:1px solid var(--line);font-size:11px;overflow-wrap:anywhere}.sidebar-bottom strong{font-size:12px;font-weight:600;color:#49433e}.account-chip{display:flex;align-items:center;gap:11px;margin:30px 0 18px}.account-avatar{width:35px;height:35px;border-radius:11px;background:var(--brand-soft);color:var(--brand-ink);display:grid;place-items:center;flex-shrink:0;font-size:11px;font-weight:700}.sidebar-bottom small{display:block;font-size:10px;color:#968b82;margin-top:3px}.sidebar-bottom button{width:100%;margin-top:11px;justify-content:flex-start;min-height:40px;padding:8px 0;background:transparent;color:#968a80;border:0}.sidebar-bottom button:hover{background:transparent;color:var(--brand-ink);box-shadow:none}.sidebar-close,.mobile-menu,.mobile-brand,.drawer-backdrop{display:none}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:77px;padding:16px clamp(24px,3vw,46px);border-bottom:1px solid var(--line);background:#fdfcf9ee;backdrop-filter:blur(14px)}.topbar .workspace{display:flex;gap:11px;align-items:center;min-width:0}.tenant-dot{width:9px;height:9px;border-radius:3px;transform:rotate(45deg);background:var(--tenant-accent);flex-shrink:0}.topbar strong{min-width:0;font-size:12px;font-weight:650;overflow-wrap:anywhere}.topbar .workspace-label{font-size:9px;letter-spacing:1.1px;text-transform:uppercase;color:#a2968a;display:block;margin-bottom:3px}.topbar select{width:100%;max-width:330px;min-height:40px;padding:9px 28px 9px 13px;background:#fff;font-size:11px;border-color:#e9e1d9}.topbar-actions{max-width:42%;min-width:160px}.content{padding:36px clamp(24px,3vw,46px) 48px;max-width:1560px;margin:0 auto}.eyebrow{display:flex;align-items:center;gap:8px;font-size:9px;font-weight:700;letter-spacing:1.6px;color:var(--brand-ink);text-transform:uppercase;margin-bottom:12px}.eyebrow:before{content:'';width:5px;height:5px;background:var(--brand);transform:rotate(45deg);flex-shrink:0}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.heading>div{min-width:0}.heading h1{margin-bottom:10px}.heading p{margin:0;color:#8b827a;font-size:12px;max-width:700px}.heading>button,.heading>.badge{flex-shrink:0}.badge{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;padding:6px 10px;border-radius:7px;font-size:10px;font-weight:650;line-height:1.5;background:#edf6f0;color:#397453}.badge.warn{background:var(--brand-soft2);color:var(--brand-ink)}.badge.off{background:#ffefec;color:#a75142}
.card{min-width:0;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}.card h2{margin-bottom:8px}.card p{font-size:12px;color:#8e847b;line-height:1.8}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.wide{grid-column:1/-1}.hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:35px;overflow:hidden;padding:35px 38px;margin-bottom:23px;border:1px solid var(--brand-border);border-radius:20px;background:radial-gradient(ellipse at 95% 0,var(--brand-soft2),transparent 60%),linear-gradient(120deg,var(--brand-tint),var(--brand-soft) 65%,var(--brand-tint))}.hero:after{content:'';position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(var(--brand-grid) 1px,transparent 1px),linear-gradient(90deg,var(--brand-grid) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(90deg,transparent,#000)}.hero>div{position:relative;z-index:1}.hero h2{max-width:540px;margin-bottom:12px;font-size:clamp(23px,2.2vw,30px);font-weight:720;letter-spacing:-1px;line-height:1.27}.hero p{max-width:550px;font-size:12px;color:#9a8170;margin-bottom:24px;line-height:1.9}.hero .eyebrow{font-size:9px;color:var(--brand-ink)}.hero button{border-radius:9px;min-height:44px;padding:11px 18px;font-size:11px}.hero .orb{position:relative;display:grid;place-items:center;flex-shrink:0;width:146px;height:146px;border:1px solid var(--brand-border);border-radius:34px;background:linear-gradient(145deg,var(--brand-tint),var(--brand-soft2));box-shadow:12px 16px 0 var(--brand-faint),0 18px 45px var(--brand-shadow);transform:rotate(-8deg);color:var(--brand)}.hero .orb .icon{width:54px;height:54px;stroke-width:1.15;transform:rotate(8deg)}.orb:before,.orb:after{content:'';position:absolute;width:8px;height:8px;border:1px solid var(--brand-border);background:var(--brand-tint);border-radius:2px}.orb:before{top:-7px;left:20px;transform:rotate(20deg)}.orb:after{right:-15px;bottom:25px;transform:rotate(-20deg)}
.stat{font-size:32px;letter-spacing:-1.2px;font-weight:650;margin:17px 0 10px;line-height:1.2}.stat small{font-size:12px;font-weight:400;letter-spacing:0;color:#a99d93}.grid.three .card{padding:23px 24px}.grid.three .card>small:first-child{font-size:9px;font-weight:600;letter-spacing:1.1px;color:#9d9288}.progress{height:5px;overflow:hidden;border-radius:4px;background:#f1ebe5;margin-top:17px}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-bright))}.form{display:grid;gap:21px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}.notice{position:relative;padding:15px 18px;border:1px solid var(--brand-border);border-radius:12px;background:var(--brand-tint);color:var(--brand-ink);font-size:11px;line-height:1.9;margin-bottom:23px}.empty{padding:44px 22px;color:#9a8c80;text-align:center;line-height:1.9;font-size:12px}.table-wrap{overflow:auto;overscroll-behavior-x:contain}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;white-space:nowrap;padding:13px 13px;font-size:9px;font-weight:650;letter-spacing:1px;text-transform:uppercase;color:#a49a8f;border-bottom:1px solid var(--line)}td{padding:18px 13px;border-bottom:1px solid #f2ece6;line-height:1.7}td small{color:#a89b90;font-size:10px}tr:last-child td{border-bottom:0}td strong{font-weight:600}td button{font-size:11px;min-height:38px;padding:8px 13px}.row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid #f2ece7;font-size:12px}.row>strong{text-align:right;font-size:11px;overflow-wrap:anywhere;max-width:65%}.row>span:not(.badge){color:#938579}.row:last-child{border-bottom:0}.check{display:flex;align-items:flex-start;gap:11px;font-size:12px;font-weight:400;line-height:1.8;color:#857465}.step{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid #f2ece7;min-width:0}.step:last-child{border-bottom:0}.step-num{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:9px;border:1px solid var(--brand-border);background:var(--brand-soft);color:var(--brand-ink);font-size:10px;font-weight:650}.step>div:nth-child(2){min-width:0}.step strong{font-size:11px;font-weight:600;line-height:1.5}.step p{font-size:10px;color:#b09a89;margin:4px 0 0;line-height:1.4}.step button{min-height:32px;padding:6px 12px;font-size:10px}.error{color:#b23f29;font-size:12px;line-height:1.7}
.auth{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100dvh;padding:18px;gap:18px;background:#fcfaf7}.auth-story{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:calc(100dvh - 36px);padding:43px clamp(30px,4.5vw,72px);overflow:hidden;background:radial-gradient(ellipse at 95% 80%,#ffbe8555,transparent 60%),linear-gradient(140deg,#fff4e7,#f7eee5);border:1px solid #efdfd0;border-radius:25px}.auth-story:before{content:'';position:absolute;width:380px;height:380px;border-radius:50%;right:-210px;top:30%;border:1px solid #db9c6022;box-shadow:0 0 0 55px #eca97709,0 0 0 110px #eca97706;pointer-events:none}.auth-story>div,.auth-story>small{position:relative;z-index:1}.auth-story .logo{margin-bottom:8px}.auth-story .product{font-size:9px;margin-bottom:0}.auth-story h1{font-size:clamp(33px,3.8vw,56px);font-weight:780;max-width:560px;letter-spacing:-2.4px;line-height:1.12;margin:26px 0 22px}.auth-story h1 span{color:var(--brand)}.auth-story p{color:#a4866d;max-width:410px;font-size:13px;line-height:1.9}.auth-points{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.auth-points span{display:inline-flex;align-items:center;gap:6px;background:#fffcf799;border:1px solid #f0ddca;border-radius:8px;color:#a47755;font-size:10px;font-weight:550;padding:8px 11px}.auth-points .icon{width:13px;height:13px;color:var(--brand)}.auth-story>small{font-size:10px;color:#aa927d;letter-spacing:.2px}.auth-form{display:flex;align-items:center;justify-content:center;min-width:0;padding:35px}.auth-form .form{width:100%;max-width:380px;gap:22px}.auth-form h1{font-size:30px;letter-spacing:-1.1px;margin-bottom:12px}.auth-form p{font-size:12px;line-height:1.8;max-width:350px}.auth-form .eyebrow{margin-bottom:15px;font-size:8px;letter-spacing:1.5px}.auth-form .form>button{width:100%;margin-top:5px;min-height:48px;background:var(--brand);color:#22150d;border-radius:10px;font-size:12px}.auth-form .form>small{font-size:10px;line-height:1.8;color:#ad9d8d}.auth-form .form>small .icon{width:12px;height:12px}.auth-form>section.card{max-width:480px;margin-top:6vh}.auth-form>section h1{font-size:28px}.auth-mobile-logo{display:none}
.chat-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:20px}.chat{display:flex;flex-direction:column;min-width:0;min-height:490px;padding:0;overflow:hidden}.chat-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 23px;border-bottom:1px solid var(--line)}.chat-head strong{font-size:12px;overflow-wrap:anywhere}.chat-log{flex:1;display:flex;flex-direction:column;gap:14px;min-width:0;max-height:580px;overflow:auto;padding:24px;background:#faf7f2;overscroll-behavior:contain}.bubble{max-width:85%;padding:13px 17px;border:1px solid #eee4d9;border-radius:13px;background:#fff;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{align-self:flex-end;background:var(--brand-soft);border-color:var(--brand-border)}.chat-compose{display:flex;align-items:center;gap:10px;padding:16px;background:#fff;border-top:1px solid var(--line)}.chat-compose input{flex:1;min-width:0}.chat-compose button{flex-shrink:0}.inbox{display:grid;grid-template-columns:265px minmax(0,1fr);gap:20px}.list-item{display:block;width:100%;text-align:left;padding:17px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font-size:12px;overflow-wrap:anywhere}.list-item:hover,.list-item.selected{background:var(--brand-soft);box-shadow:none}.list-item small{display:block;margin-top:6px;font-size:10px}.inbox .card:first-child input{font-size:12px;margin-bottom:12px}.qr{display:block;width:100%;max-width:250px;height:auto;margin:20px auto;border-radius:12px}.logo-preview{max-width:110px;max-height:45px;object-fit:contain}.link-box{padding:16px;margin:17px 0;background:var(--brand-soft);border:1px solid var(--brand-border);border-radius:10px;font-size:12px;overflow-wrap:anywhere}.audit-row{padding:13px 0;border-bottom:1px solid #f1e9e1;font-size:11px}.audit-row strong{font-weight:550}.audit-row small{display:block;margin-top:6px;font-size:10px}#toast{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:100;display:none;max-width:min(430px,calc(100vw - 32px));padding:16px 22px;border:1px solid #514034;border-radius:12px;background:#332b25;color:#fff8ef;font-size:12px;line-height:1.8;box-shadow:0 10px 35px #33200f20;overflow-wrap:anywhere}dialog{position:fixed;width:min(90vw,540px);max-height:85dvh;padding:28px;overflow:auto;border:1px solid #eee0d3;border-radius:19px;background:#fffefa;color:var(--ink);box-shadow:0 20px 80px #4e2b1530}dialog::backdrop{background:#2b211d44;backdrop-filter:blur(3px)}dialog>button{margin-top:20px}dialog .form{gap:18px}dialog .form label{min-width:0}dialog h2{font-size:20px;margin-bottom:20px}
@media(min-width:1800px){.content{padding-top:46px}.shell{grid-template-columns:265px minmax(0,1fr)}.sidebar{padding:33px 24px}.hero{padding:43px}.hero .orb{width:180px;height:180px}.card{padding:28px}}
@media(max-width:1150px){.shell{grid-template-columns:219px minmax(0,1fr)}.sidebar{padding:26px 15px 20px}.content{padding:29px 26px 40px}.topbar{padding:15px 26px}.hero{padding:28px}.hero .orb{width:104px;height:104px;border-radius:27px}.hero .orb .icon{width:41px;height:41px}.grid.three{gap:14px}.grid.three .card{padding:20px}.inbox{grid-template-columns:230px minmax(0,1fr)}.chat-layout{grid-template-columns:1fr}.auth-story{padding:35px}.auth-story h1{letter-spacing:-1.7px}.auth-form{padding:30px}.grid{gap:16px}.step{gap:9px}.step strong{font-size:10px}.card{padding:21px}}
@media(max-width:900px){.shell{display:block}.sidebar{position:fixed;inset:0 auto 0 0;width:min(290px,85vw);height:100dvh;padding:28px 23px 23px;transform:translateX(-105%);transition:transform .2s ease;background:#fffdf9;box-shadow:10px 0 35px #32210b10}.sidebar-close{display:inline-flex;position:absolute;top:26px;right:18px;border:0}.sidebar .logo{margin-top:3px}.shell.mobile-open .sidebar{transform:translateX(0)}.drawer-backdrop{display:block;position:fixed;inset:0;z-index:30;min-height:100dvh;border:0;border-radius:0;background:#2d221944;backdrop-filter:blur(2px)}.drawer-backdrop[hidden]{display:none}.mobile-menu{display:inline-flex;min-width:42px;min-height:42px;padding:9px;flex-shrink:0;border-color:#e9dfd5;background:var(--brand-tint)}.topbar{min-height:74px;padding:14px 24px;gap:13px}.topbar .workspace{flex:1;gap:10px}.topbar-actions{max-width:40%;min-width:135px}.topbar select{font-size:11px;max-width:250px}.content{max-width:1100px;padding:28px 24px 40px}.nav button{font-size:13px;min-height:47px}.account-chip{margin-top:25px}.sidebar-bottom{margin-top:auto}.grid.three .stat{font-size:27px}.grid.three .card{padding:20px}.auth{grid-template-columns:1fr 1fr;padding:12px;gap:12px}.auth-story{min-height:calc(100dvh - 24px);padding:30px 25px}.auth-story h1{font-size:36px}.auth-story p{font-size:12px}.auth-form{padding:25px 20px}.auth-form h1{font-size:27px}.auth-points{gap:6px}.auth-points span{font-size:9px}}
@media(max-width:700px){.topbar{min-height:69px;padding:12px 17px;flex-wrap:wrap;gap:10px}.topbar .workspace{min-width:150px}.topbar strong{font-size:11px}.topbar-actions{max-width:46%;min-width:120px}.topbar select{min-height:40px;font-size:10px}.workspace-label{font-size:8px!important}.content{padding:25px 17px 36px}.heading{align-items:flex-start;gap:14px;margin-bottom:22px}.heading h1{font-size:27px;letter-spacing:-1px;margin-bottom:9px}.heading p{font-size:11px;line-height:1.85}.heading>button{min-height:40px;max-width:120px;font-size:10px;padding:9px 12px}.heading>.badge{margin-top:4px;font-size:9px}.eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:10px}.grid{grid-template-columns:1fr;gap:16px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.grid.three .card{padding:17px 13px;border-radius:13px}.grid.three .card>small:first-child{font-size:8px;letter-spacing:.5px;line-height:1.6;display:block}.grid.three .stat{font-size:24px;margin:12px 0 8px}.grid.three .stat[style]{font-size:16px!important;line-height:1.4}.grid.three .stat small{display:block;font-size:9px}.grid.three .card>small:last-child{font-size:9px;display:block;line-height:1.5}.grid.three .badge{font-size:8px;padding:5px 7px}.hero{padding:27px 23px;border-radius:17px;gap:20px;margin-bottom:18px}.hero h2{font-size:26px;letter-spacing:-.8px}.hero p{font-size:11px;line-height:1.85}.hero .orb{display:none}.form-grid{grid-template-columns:1fr;gap:19px}.card{padding:23px 21px;border-radius:15px}.card h2{font-size:16px}.card p{font-size:12px}.row{font-size:11px;gap:14px;padding:16px 0}.row>strong{font-size:10px;max-width:60%}.step{gap:13px;padding:16px 0}.step strong{font-size:11px}.step button{min-height:38px;font-size:10px}.buttons{gap:9px}.buttons button{font-size:11px;min-height:43px}.form>button{width:100%}input,select,textarea{font-size:16px;min-height:47px}label{font-size:12px}.topbar select{font-size:11px}.notice{font-size:11px;padding:15px 17px}.table-wrap{padding:20px 12px}table{min-width:650px}th{padding:13px 10px}td{padding:15px 10px}.inbox{display:block}.inbox>.card:first-child{margin-bottom:17px}.inbox #conversationList{max-height:220px;overflow:auto}.inbox .card:first-child input{font-size:16px}.chat{min-height:420px}.chat.card{padding:0}.chat-log{padding:17px;max-height:480px}.bubble{font-size:12px;padding:12px 15px;max-width:91%}.chat-compose{padding:13px;gap:8px}.chat-compose input{font-size:16px;padding:12px 11px}.chat-compose button{padding:12px;font-size:11px}.chat-head{padding:17px}.auth{display:block;padding:12px;min-height:100dvh}.auth-story{min-height:0;padding:25px 25px 23px;border-radius:19px;gap:24px}.auth-story>.auth-brand{display:flex;align-items:center;gap:14px}.auth-story .logo{margin-bottom:0;padding:5px 10px;border-radius:8px}.auth-story .logo img{width:88px;height:34px}.auth-story .product{margin:0;font-size:8px;letter-spacing:1.1px;max-width:130px;line-height:1.8}.auth-story h1{font-size:31px;line-height:1.16;letter-spacing:-1.35px;margin:0 0 11px}.auth-story p{font-size:11px;max-width:390px;line-height:1.85;margin-bottom:0}.auth-points,.auth-story>small{display:none}.auth-form{padding:32px 22px 20px}.auth-form .form{max-width:450px;gap:21px}.auth-form h1{font-size:27px}.auth-form p{font-size:12px}.auth-form .eyebrow{font-size:8px}.auth-form .form>small{font-size:10px}.auth-form>section.card{margin-top:0}.auth-form>section h1{font-size:25px}dialog{width:calc(100vw - 30px);padding:24px 21px;border-radius:15px}#toast{right:16px;bottom:max(16px,env(safe-area-inset-bottom));font-size:12px}.logo-preview{max-width:95px;max-height:37px}.link-box{font-size:11px}.check{font-size:12px}}
@media(max-width:700px){.topbar .workspace{min-width:0}.workspace-copy,.topbar .tenant-dot{display:none}.mobile-brand{display:inline-flex;background:#22201f;padding:5px 9px;border-radius:7px}.topbar-actions{min-width:140px;max-width:52%}}
@media(max-width:400px){.topbar{padding:11px 13px;gap:8px}.topbar .workspace{min-width:0;flex:1}.topbar .workspace strong{font-size:10px}.topbar-actions{min-width:100px;max-width:50%}.topbar select{font-size:10px;padding-left:9px}.tenant-dot{display:none}.content{padding:22px 13px 32px}.heading h1{font-size:25px}.heading{flex-wrap:wrap;gap:12px}.heading>button{max-width:none;min-height:40px}.grid.three{gap:7px}.grid.three .card{padding:15px 10px}.grid.three .stat[style]{font-size:14px!important}.grid.three .stat{font-size:23px}.grid.three .badge{font-size:7px}.hero{padding:24px 20px}.hero h2{font-size:24px}.card{padding:21px 18px}.step{gap:10px}.step strong{font-size:10px}.step-num{width:26px;height:26px}.step button{padding:7px 10px}.auth-form{padding:29px 15px 18px}.auth-story{padding:23px 21px}.auth-story h1{font-size:29px}.auth-story .product{font-size:7px}.auth-story .logo img{width:78px}.chat-compose button{padding:11px 10px}}
@media(max-width:400px){.grid.three{grid-template-columns:1fr;gap:10px}.grid.three .card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 16px;padding:17px 19px}.grid.three .card>small:first-child{grid-column:1;font-size:9px}.grid.three .card>.stat{grid-column:2;grid-row:1/span 2;margin:0;text-align:right}.grid.three .card>.stat[style]{font-size:17px!important}.grid.three .card>.stat small{display:inline;font-size:10px}.grid.three .card>.badge,.grid.three .card>small:last-child{grid-column:1;font-size:9px}.grid.three .progress{grid-column:1/-1;margin-top:7px}.topbar select{min-height:44px}.step button{min-height:44px}}
@media(max-width:900px){input,select,textarea{font-size:16px}}
@media(pointer:coarse){input,select,textarea,.topbar select{font-size:16px}button{min-height:44px}}
@media(max-height:500px) and (orientation:landscape){.auth{min-height:100dvh}.auth-story{min-height:0}.auth-form{padding-top:22px}.sidebar{overflow-y:auto}.sidebar-bottom{margin-top:24px}.chat-log{max-height:250px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}@supports(padding:max(0px)){.content{padding-bottom:max(36px,env(safe-area-inset-bottom))}.auth{padding-bottom:max(12px,env(safe-area-inset-bottom))}}

.client-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-width:260px}.client-actions button{white-space:nowrap}@media(max-width:700px){.client-actions button{min-height:44px}.heading>.buttons{flex-shrink:0}.heading:has(.buttons){flex-wrap:wrap}}

/* Structured editors and CRM */
fieldset{border:0;padding:0;margin:0;display:grid;gap:20px;min-width:0}fieldset:disabled{opacity:.6}.faq-item{padding:20px 0;border-bottom:1px solid var(--line,#eadfd7)}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.kanban{display:flex;gap:16px;overflow:auto;padding-bottom:12px}.kanban-column{flex:0 0 250px;background:#f3eee9;padding:14px;border-radius:18px}.lead-card{background:white;padding:16px;margin:12px 0;border:1px solid #e7ddd4;border-radius:14px;cursor:grab}.crm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.chart-row{display:grid;grid-template-columns:160px 1fr 40px;gap:10px;align-items:center;margin:16px 0}.chart-bar{height:18px;background:var(--brand);border-radius:5px}.row h2{margin:0}.row>.buttons{margin:0}.row{gap:12px;flex-wrap:wrap}.wide{grid-column:1/-1}.form fieldset label{display:grid;gap:8px}fieldset:disabled button{cursor:not-allowed}@media(max-width:600px){.kanban-column{flex-basis:230px}.chart-row{grid-template-columns:100px 1fr 30px}.topbar-actions button{font-size:12px;padding:8px}.row h2{font-size:19px}.inbox{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr 1fr}}

@media print{.sidebar,.topbar,.buttons,.crm-tabs,#toast,dialog{display:none!important}.shell{display:block}.content{max-width:none;padding:0}.card{break-inside:avoid;box-shadow:none}.grid{display:block}.metric-grid{grid-template-columns:repeat(3,1fr)}body{background:white;color:black}}
.metric-grid .stat,.chart-row small{overflow-wrap:anywhere;white-space:normal}.metric-grid>*{min-width:0}@media(max-width:360px){.metric-grid{grid-template-columns:1fr}}

.kanban-column{flex-basis:290px;min-width:0;border-top:4px solid var(--column-color,var(--brand))}.column-header{display:grid;gap:12px}.column-title{display:flex;align-items:flex-start;gap:10px;justify-content:space-between}.column-title h2{font-size:17px;margin:0;overflow-wrap:anywhere;line-height:1.4}.column-count{font-size:12px;border-radius:20px;background:white;padding:4px 9px}.column-actions,.lead-actions{display:flex;gap:6px;flex-wrap:wrap}.column-actions button,.lead-actions button{font-size:12px;padding:9px 10px;min-height:38px}.column-order{display:flex;align-items:center;justify-content:space-between;gap:8px}.column-order button{padding:8px 13px;min-height:36px}.add-column-lead{width:100%;text-align:left}.column-empty{padding:24px 5px;color:#84776c;font-size:13px;text-align:center}.lead-card{border-left:3px solid var(--column-color,var(--brand));padding:15px}.lead-actions{margin-top:14px}.add-column-tile{flex:0 0 240px;display:flex;align-items:flex-start;padding-top:8px}.pipeline-help{margin-bottom:16px}.lead-card strong,.lead-card p,.lead-card small{overflow-wrap:anywhere}@media(max-width:600px){.kanban-column{flex-basis:270px}.column-actions button,.lead-actions button{min-height:42px}}
/* Compact navigation and lead workspace */
.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.sidebar-collapse-toggle{padding:5px;min-width:28px;min-height:30px;font-size:18px}.sidebar-brand-row .logo{margin-bottom:0}.sidebar-brand-row{margin-bottom:12px}.crm-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}.crm-workspace.has-lead-panel{grid-template-columns:minmax(0,1fr) 330px}#crmBody{min-width:0}.lead-panel[hidden]{display:none}.lead-panel{position:sticky;top:115px;height:calc(100dvh - 140px);border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;flex-direction:column;min-width:0;overflow:hidden}.lead-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line)}.lead-panel-header h2{font-size:16px;margin:2px 0 0;overflow-wrap:anywhere}.lead-panel-header small{font-size:9px;color:#928579;letter-spacing:1px}.lead-panel-header button{min-height:28px;padding:4px 10px;font-size:20px}.lead-panel-content{padding:16px;overflow-y:auto;overscroll-behavior:contain}.lead-panel .form{gap:14px}.lead-panel .form label{font-size:11px}.lead-panel input,.lead-panel select,.lead-panel textarea{padding:9px 11px;min-height:38px}.lead-panel textarea{min-height:80px}.detail-section{padding:16px 0;border-top:1px solid var(--line);margin-top:16px}.detail-section h3{font-size:13px;margin:0 0 12px}.detail-field{margin:11px 0}.detail-field small{display:block;font-size:10px;color:#928579;margin-bottom:3px}.detail-field div{font-size:12px}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.detail-heading h3{margin:0}.panel-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.panel-actions button,.detail-heading button{min-height:32px;padding:6px 11px;font-size:11px}.related-record{border-bottom:1px solid var(--line);padding:9px 0}.related-record p,.panel-message p{font-size:12px}.panel-message{border-bottom:1px solid #f0e9e3;padding:9px 0}.panel-message small{font-size:10px;color:#93887d}.lead-panel-content p.muted{font-size:11px}
.compact-kanban{gap:10px;padding-bottom:12px;min-height:360px}.compact-kanban .kanban-column{flex-basis:230px;padding:10px;border-radius:12px;border-top-width:3px;min-height:340px}.compact-kanban .column-header{gap:9px}.compact-kanban .column-title{gap:6px;align-items:center}.compact-kanban .column-title h2{font-size:13px;line-height:1.35;flex:1;margin:0}.compact-kanban .column-count{padding:2px 7px;font-size:10px}.column-tools{display:flex;align-items:center;justify-content:space-between;gap:8px}.column-tools .compact-add{font-size:11px;padding:5px 9px;min-height:29px;background:white;color:#6c5d50}.compact-kanban .column-order{gap:4px}.compact-kanban .column-order button{padding:4px 8px;min-height:27px;font-size:11px}.column-order button:disabled{cursor:default;opacity:.28;box-shadow:none;pointer-events:none}.compact-kanban .column-empty{font-size:11px;padding:24px 6px}.compact-kanban .lead-card{margin:9px 0;padding:10px;border-left:0;border-radius:8px;cursor:pointer;position:relative}.compact-lead-title{display:flex;align-items:flex-start;justify-content:space-between;gap:5px}.compact-lead-title strong{font-size:12px;line-height:1.45;overflow-wrap:anywhere;flex:1;white-space:normal}.lead-date{display:block;font-size:10px;color:#928579;margin:5px 0}.lead-badges{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.lead-tag{display:inline-block;font-size:9px;line-height:1.3;padding:3px 5px;border-radius:4px;background:#f0ece7;color:#695b4e}.lead-tag.paid{background:#eaf1ff;color:#335585}.lead-tag.organic{background:#eaf6ef;color:#347853}.lead-card.is-selected{background:var(--brand-soft);border-color:var(--brand);box-shadow:0 0 0 1px var(--brand-shadow)}.column-options,.lead-card-options{position:relative;flex:none}.column-options summary,.lead-card-options summary{cursor:pointer;list-style:none;min-width:22px;text-align:center;font-size:20px;line-height:24px;color:#8e8176}.column-options summary::-webkit-details-marker,.lead-card-options summary::-webkit-details-marker{display:none}.column-options-menu{position:absolute;right:0;top:100%;z-index:10;display:grid;gap:4px;min-width:135px;padding:7px;background:#fff;border:1px solid #e7dcd2;border-radius:8px;box-shadow:0 6px 18px #3422161c}.column-options-menu button{font-size:11px;min-height:30px;padding:5px 8px;justify-content:flex-start;width:100%;white-space:nowrap}.compact-kanban .add-column-tile{flex-basis:150px;padding:8px 0}.compact-kanban .add-column-tile button{font-size:11px;min-height:33px;padding:7px 12px}.crm-tabs{gap:6px;margin-bottom:14px}.crm-tabs button{min-height:33px;font-size:11px;padding:7px 11px}.content:has(.crm-workspace){max-width:none;padding:24px}.content:has(.crm-workspace) .heading{margin-bottom:16px}.content:has(.crm-workspace) .heading h1{font-size:27px}.content:has(.crm-workspace) .heading p{font-size:12px}.content:has(.crm-workspace) .heading button{min-height:34px;padding:8px 12px;font-size:11px}
@media(min-width:901px){.shell.sidebar-collapsed{grid-template-columns:64px minmax(0,1fr)}.shell.sidebar-collapsed>main{grid-column:2}.sidebar-collapsed .sidebar{width:64px;padding:14px 8px;overflow-x:hidden;transition:width .15s ease,padding .15s ease}.sidebar-collapsed.sidebar-peek .sidebar{position:fixed;top:0;left:0;width:230px;padding:20px 14px;box-shadow:9px 0 25px #2b1c181a}.sidebar-collapsed:not(.sidebar-peek) .sidebar-brand-row{flex-direction:column}.sidebar-collapsed:not(.sidebar-peek) .logo{width:42px;padding:5px;overflow:hidden;min-height:34px}.sidebar-collapsed:not(.sidebar-peek) .logo img{width:117px;max-width:none;height:34px}.sidebar-collapsed:not(.sidebar-peek) .product,.sidebar-collapsed:not(.sidebar-peek) .nav-label,.sidebar-collapsed:not(.sidebar-peek) .nav button span,.sidebar-collapsed:not(.sidebar-peek) .account-chip>div,.sidebar-collapsed:not(.sidebar-peek) .sidebar-bottom small{display:none}.sidebar-collapsed:not(.sidebar-peek) .nav button{justify-content:center;padding:10px;min-height:42px}.sidebar-collapsed:not(.sidebar-peek) .nav button:after{display:none}.sidebar-collapsed:not(.sidebar-peek) .account-chip{justify-content:center}.sidebar-collapsed:not(.sidebar-peek) .sidebar-bottom{padding:12px 4px 0}.sidebar-collapsed:not(.sidebar-peek) #logout{font-size:0;justify-content:center}.sidebar-collapsed:not(.sidebar-peek) .account-avatar{width:32px;height:32px}}
@media(max-width:1100px) and (min-width:901px){.crm-workspace.has-lead-panel{grid-template-columns:minmax(0,1fr) 295px}}
@media(max-width:900px){.sidebar-collapse-toggle{display:none}.crm-workspace.has-lead-panel{grid-template-columns:minmax(0,1fr)}.lead-panel{position:static;height:auto;max-height:none}.lead-panel-content{max-height:65dvh}.lead-panel-header{scroll-margin-top:110px}.content:has(.crm-workspace){padding:20px 14px}.compact-kanban .kanban-column{flex-basis:210px}.content:has(.crm-workspace) .heading h1{font-size:23px}.lead-panel input,.lead-panel select,.lead-panel textarea{font-size:16px}.lead-panel .panel-actions button,.lead-panel .detail-heading button{min-height:40px}.compact-kanban .column-tools button{min-height:33px}.compact-lead-title summary,.column-title summary{min-width:28px;min-height:30px}.lead-panel .form{gap:15px}}
@media print{.lead-panel{height:auto;position:static}.lead-panel-content{overflow:visible}.crm-workspace.has-lead-panel{display:block}}

@media(min-width:901px){.sidebar-collapsed:not(.sidebar-peek) .logo img{width:32px;height:18px}.lead-panel{height:calc(100dvh - 305px);min-height:340px;max-height:calc(100dvh - 130px)}.shell:has(.crm-workspace) .topbar{min-height:64px;padding-top:10px;padding-bottom:10px}.shell:has(.crm-workspace) .topbar-actions{display:flex;align-items:center;gap:8px;max-width:50%}.shell:has(.crm-workspace) .topbar .logo-preview{max-height:38px;max-width:110px;object-fit:contain}}
@media(min-width:901px){.sidebar-collapsed .sidebar,.sidebar-collapsed.sidebar-peek .sidebar{padding:14px 8px}.sidebar-collapsed .sidebar-brand-row{height:60px;min-height:60px;gap:4px}.sidebar-collapsed:not(.sidebar-peek) .logo{min-height:28px;height:28px}.sidebar-collapsed .sidebar-collapse-toggle{min-height:24px;height:24px;line-height:18px;padding:2px 5px}.sidebar-collapsed .product{height:14px;min-height:14px}.sidebar-collapsed .nav-label{height:14px;min-height:14px}.sidebar-collapsed:not(.sidebar-peek) .product,.sidebar-collapsed:not(.sidebar-peek) .nav-label{display:block;visibility:hidden}.sidebar-collapsed .nav button{min-height:42px;height:42px;padding:10px;font-size:12px}}
@media(min-width:901px){.sidebar-collapsed .product,.sidebar-collapsed .nav-label{display:none!important}}
@media(min-width:700px) and (max-width:900px){.crm-workspace.has-lead-panel{grid-template-columns:minmax(0,1fr) 280px}.lead-panel{position:sticky;top:100px;height:calc(100dvh - 280px);min-height:350px;max-height:calc(100dvh - 120px)}.lead-panel-content{max-height:none;flex:1}}
@media(min-width:901px){.crm-workspace.has-lead-panel{grid-template-columns:minmax(0,1fr) 320px}.compact-kanban .kanban-column{flex-basis:200px}.compact-kanban .column-title h2{min-height:34px;display:flex;align-items:center}.content:has(.crm-workspace) .heading h1{font-size:23px;margin-bottom:6px}.content:has(.crm-workspace) .eyebrow{margin-bottom:8px}}

/* Lead details share the screen with the board and use the entire viewport. */
.shell{--lead-panel-width:clamp(320px,30vw,420px)}
.crm-workspace.has-lead-panel{grid-template-columns:minmax(0,1fr)}
.lead-panel{position:fixed;inset:0 0 0 auto;width:var(--lead-panel-width);height:100dvh;min-height:0;max-height:none;z-index:40;border-radius:0;border-width:0 0 0 1px;box-shadow:-6px 0 24px #34221612}
.lead-panel-header{flex:none;padding-top:max(16px,env(safe-area-inset-top));padding-right:max(16px,env(safe-area-inset-right))}
.lead-panel-content{flex:1;min-height:0;max-height:none;padding-bottom:max(20px,env(safe-area-inset-bottom));scrollbar-gutter:stable}
*{scrollbar-width:thin;scrollbar-color:var(--brand) #f3ece6}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:#f3ece6;border-radius:8px}
::-webkit-scrollbar-thumb{background:var(--brand);border:2px solid #f3ece6;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:var(--brand-hover)}
@media(min-width:700px){.shell:has(.lead-panel:not([hidden]))>main{padding-right:var(--lead-panel-width)}}
@media(max-width:699px){.lead-panel{width:100%;z-index:45}.lead-panel-header button{min-width:44px;min-height:44px}}
@media print{.shell:has(.lead-panel:not([hidden]))>main{padding-right:0}.lead-panel{position:static;width:auto;height:auto;box-shadow:none}.lead-panel-content{overflow:visible}}

.crm-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px;margin-bottom:16px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:12px}.crm-filters label{font-size:11px;display:grid;gap:5px}.crm-filters input,.crm-filters select{width:100%;min-width:0;min-height:34px;padding:7px;font-size:11px}.crm-filters .buttons,.crm-filters small{grid-column:1/-1}.crm-filters button{min-height:32px;padding:7px 11px;font-size:11px}.compact-kanban .followup-column{background:var(--brand-soft);border-color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand-glow)}.automation-label{display:block;color:var(--brand-ink);font-weight:600;font-size:10px;margin:5px 0}.column-lock{font-size:11px;opacity:.6}.offer-label{display:block;font-size:10px;color:var(--brand-ink);margin-top:7px}.lead-tag.recovered{background:#e2f4e8;color:#22623c}.seller-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--line);padding:14px;border-radius:10px;margin-bottom:12px}.seller-row label{display:grid;gap:6px}.seller-row button{align-self:end}.followup-metrics{margin-bottom:20px}.detail-section #acceptQualifiedLead,.detail-section #manualFollowup,.detail-section #registerLeadActivity{font-size:11px;margin-top:9px;min-height:34px;width:100%}@media(max-width:699px){.crm-filters{grid-template-columns:1fr 1fr}.crm-filters input,.crm-filters select{font-size:16px}.seller-row{grid-template-columns:1fr}}

.crm-filters[hidden]{display:none}

.training-import{margin-bottom:22px}.training-import h2{font-size:19px}.suggestion-item{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--brand-tint)}.suggestion-item small{display:block}.suggestion-item .preserve{font-size:12px;max-height:220px;overflow:auto}.qualification-card{padding:14px;border:1px solid var(--brand-border);border-radius:10px;background:var(--brand-tint);margin:12px 16px}.qualification-card h3{margin:0;font-size:13px}.qualification-card p,.qualification-card summary{font-size:11px}.qualification-card progress{display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;margin-top:10px;accent-color:var(--brand)}.qualification-card progress::-webkit-progress-bar{background:#f1e5db}.qualification-card progress::-webkit-progress-value{background:var(--brand)}.qualification-card progress::-moz-progress-bar{background:var(--brand)}.qualification-card dl{margin:10px 0 0}.qualification-field{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:7px 0;border-bottom:1px solid #f0e7df;font-size:11px}.qualification-field dt{color:#796b5f}.qualification-field.completed dt{color:#317049}.qualification-field dd{margin:0;text-align:right;overflow-wrap:anywhere}.lead-panel .qualification-card,#simDetails .qualification-card{margin:15px 0}.training-import [role=status]{font-size:12px;color:var(--brand-ink)}

.training-import>summary{font-size:16px;font-weight:650;cursor:pointer}.training-import[open]>summary{margin-bottom:14px}

.lead-tag.stopped{background:#feeae7;color:#a53021}

.cadence-attachment{display:grid;gap:10px;padding:12px;border:1px solid #eadfd6;border-radius:12px;min-width:0}.cadence-media-image,.cadence-media-video{width:100%;max-height:200px;object-fit:contain;border-radius:8px}.cadence-media-audio{width:100%;min-width:0}.cadence-attachment strong{overflow-wrap:anywhere}

.media-library{display:grid;gap:12px;max-height:60vh;overflow:auto}

/* Shared light canvas; every brand accent follows the selected company. */
button{color:var(--brand-text,#22150d)}button:hover{color:var(--brand-hover-text,#22150d)}button.secondary:hover,button.icon-button:hover{color:var(--ink)}button.danger:hover{color:#a43827}.auth-form .form>button{color:var(--brand-text,#22150d)}.hero .eyebrow{color:var(--brand-ink)}.hero p{color:var(--muted)}.progress,.qualification-card progress::-webkit-progress-bar{background:var(--brand-soft)}.nav button:hover{background:var(--brand-tint);color:var(--ink)}button.secondary:hover{border-color:var(--brand-border)}

.cadence-mode-group{display:grid;gap:12px;margin:0 0 24px}.ai-cadence-slot:empty{display:none}.ai-cadence-slot .card{box-shadow:none;background:var(--brand-tint);padding:18px}.ai-cadence .row{padding:0;border:0}.ai-cadence #stepsList{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.ai-cadence-step{display:flex;align-items:end;gap:8px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.ai-cadence-step label{flex:1}.ai-cadence-step button{min-height:38px;padding:8px 10px}.ai-cadence #addStep{font-size:11px;min-height:36px}.cadence-window summary{font-size:12px;font-weight:600;cursor:pointer;color:var(--brand-ink)}.cadence-window[open] summary{margin-bottom:18px}#aiStageCountLabel[hidden]{display:none}.ai-cadence #aiStageCount{max-width:160px}.ai-cadence .buttons{margin-top:0}
.training-options{border:1px solid var(--line,#e6e1db);border-radius:14px;padding:20px;display:grid;gap:14px}.training-options h3{margin:0}.region-cities{max-height:250px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;padding:8px}.region-cities .check{margin:0}.welcome-option{display:grid;gap:6px;border:1px solid var(--line,#e6e1db);border-radius:10px;padding:12px;margin-bottom:8px}.welcome-option input{width:auto}.training-options [hidden]{display:none}

.password-field{position:relative;display:block;min-width:0}.password-field input{width:100%;padding-right:52px}.password-field .password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:40px;min-height:40px;padding:9px;border:0;border-radius:8px;background:transparent;color:var(--muted);box-shadow:none}.password-field .password-toggle:hover{background:var(--brand-tint,#f4f1ed);color:var(--ink)}.password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-toggle .eye-slash{display:none}.password-toggle.is-revealed .eye-slash{display:block}.password-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:1px}.password-field:has(input:disabled) .password-toggle{pointer-events:none;opacity:.4}

.region-state-fieldset{min-width:0;margin:16px 0;padding:16px;border:1px solid var(--line,#e6e1db);border-radius:12px}.region-state-fieldset legend{font-weight:600;padding:0 6px}.region-state-fieldset p{margin-top:0}.region-state-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 16px}.region-state-grid .check{margin:0;padding:7px;border-radius:8px;background:var(--surface,#fff)}.region-state-grid .check:has(input:checked){background:var(--brand-tint,#f4f1ed)}.region-state-grid input{flex-shrink:0}@media(max-width:480px){.region-state-grid{grid-template-columns:1fr}.region-state-fieldset{padding:10px}}

.acquisition-card{margin:12px;padding:16px;border:1px solid var(--brand-border,var(--line));border-radius:12px;background:var(--brand-tint,var(--surface));font-size:12px;overflow-wrap:anywhere}.acquisition-card h3{margin:0 0 8px}.acquisition-card div{margin:5px 0}.acquisition-card small{display:block;margin-top:8px}.acquisition-card details{margin-top:10px}

.message-author{display:block;font-size:10px;font-weight:800;letter-spacing:.07em;margin-bottom:7px;color:#56418c}.author-human{border-left:4px solid #27825a!important;background:#f0faf5!important}.author-human .message-author{color:#17643f}.author-user .message-author{color:#264e8b}.human-compose{display:block!important}.human-text-row{display:flex;gap:10px}.human-text-row input{flex:1;min-width:0}.human-media-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}.human-media-tools button{min-height:36px;padding:7px 10px}.human-media-tools small{width:100%}.message-attachment{margin-top:9px;display:grid;gap:7px}.message-attachment img,.message-attachment video{max-width:100%;max-height:280px;border-radius:8px}.message-attachment audio,#humanAttachmentStatus audio{max-width:100%}.message-attachment a{overflow-wrap:anywhere}.summary-progress{height:7px;background:#ece8f8;border-radius:8px;overflow:hidden;margin:15px 0}.summary-progress span{display:block;width:35%;height:100%;background:var(--brand);animation:summary-loading 1.4s ease-in-out infinite}@keyframes summary-loading{from{transform:translateX(-100%)}to{transform:translateX(390%)}}@media(prefers-reduced-motion:reduce){.summary-progress span{animation:none;width:100%;opacity:.65}}

.human-media-tools [hidden]{display:none!important}
.training-tabs,.settings-tabs,.notification-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.training-tabs{position:sticky;top:0;background:var(--surface,#fff);z-index:4;padding:12px 0;border-bottom:1px solid #e6e0d9}.training-tabs button{font-size:13px}.training-tabs [aria-selected=true]{font-weight:700}.training-hours .business-day{display:grid;grid-template-columns:minmax(145px,1fr) 2fr minmax(130px,1fr) 2fr;align-items:center;gap:12px;border-bottom:1px solid #e6e0d9;padding:16px 0}.business-day>div{display:flex;gap:10px}.business-day label{font-size:13px}.business-day input[type=time]{min-width:105px}.business-day [hidden],#trainingForm [role=tabpanel][hidden]{display:none!important}.attachment-queued{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px;border:1px solid #e6e0d9;border-radius:10px;margin:8px 0}.attachment-queued span{flex:1;overflow-wrap:anywhere}.attachment-queued audio{width:100%;max-width:380px}.modal-close-x{position:sticky;top:0;float:right;z-index:6;font-size:25px;line-height:1;min-width:40px;padding:8px;background:var(--surface,#fff)}#modalBody{clear:both}#modal{padding-top:14px}#modalCloseX+ #modalBody h2:first-child{padding-right:36px}.settings-tabs{border-bottom:1px solid #e6e0d9;padding-bottom:14px}@media(max-width:850px){.training-hours .business-day{grid-template-columns:1fr}.training-tabs{position:static}.training-tabs button{flex:1 1 150px}.business-day>div label{flex:1}.modal-close-x{top:0}.settings-tabs button{flex:1 1 130px}}
.conversation-summary-button{padding:13px 22px!important;font-size:15px;font-weight:700;box-shadow:0 3px 12px color-mix(in srgb,var(--accent,#1500ce) 25%,transparent)}.conversation-action-help{margin:14px 0;font-size:13px}.conversation-action-help summary{cursor:pointer;color:var(--accent,#1500ce)}.conversation-action-help p{max-width:680px}
#modal:has(#summaryResult){width:min(800px,94vw);max-width:94vw}.summary-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:18px}.summary-heading h2{margin:0}.summary-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;background:var(--brand-tint);border:1px solid var(--brand-border);border-radius:12px;padding:16px;margin-bottom:18px}.summary-facts dt{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px}.summary-facts dd{margin:4px 0 0;font-size:14px;font-weight:650;overflow-wrap:anywhere}.summary-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.summary-card{padding:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.summary-card h3{margin:0 0 12px;font-size:15px}.summary-card ul{margin:0;padding-left:18px}.summary-card li{margin:0 0 10px;line-height:1.65;font-size:13px}.summary-next-action{background:var(--brand-tint);border-color:var(--brand-border)}.sale-confirm-banner{padding:16px;background:#eaf8ee;border:1px solid #a4d7b6;border-radius:12px;margin:16px 0}.sale-confirm-banner strong{display:block;color:#16673c;font-size:15px}.sale-confirm-banner button{width:100%;margin-top:8px;background:#168148;color:#fff}.sale-confirm-banner p{margin:8px 0}.conversation-stage{display:inline-flex;max-width:100%;font-size:10px;border-radius:6px;padding:4px 6px;background:var(--brand-soft);color:var(--brand-ink);white-space:normal}.conversation-stage.won{background:#e4f6e9;color:#17673c}.conversation-stage.lost{background:#fbeaea;color:#963d3d}.notification-target{cursor:pointer}.notification-target:focus-visible{outline:2px solid var(--brand)}@media(max-width:600px){.summary-sections,.summary-facts{grid-template-columns:1fr}.summary-heading{align-items:flex-start;flex-direction:column}.summary-card{padding:14px}}
.property-catalog{margin-bottom:20px}.property-catalog-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;margin:18px 0}.property-catalog-item{border:1px solid var(--line);border-radius:12px;padding:14px}.property-catalog-item .badge{margin-left:8px}.property-catalog-item img,.catalog-preview img{max-width:100%;width:180px;height:130px;object-fit:cover;border-radius:8px;margin:8px 8px 0 0}.catalog-preview{display:flex;gap:8px;flex-wrap:wrap}.catalog-preview video{max-width:100%;width:240px}
.property-photo-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:12px}.property-photo-gallery img{width:100%;height:auto;min-height:120px;border-radius:8px}.property-catalog-item .property-cover{width:100%;height:150px}.catalog-pagination{justify-content:center;margin:16px 0}.catalog-pagination label{display:flex;align-items:center;gap:8px}.catalog-pagination select{min-height:38px}.seller-row>.wide{grid-column:1/-1}.seller-row [data-login-status]{font-size:12px;color:var(--muted)}
.reauth-dialog{width:min(440px,calc(100vw - 32px));padding:30px;border:1px solid #dedbd5;border-radius:16px;background:#fffdf9;color:#24221f;box-shadow:0 25px 100px #0003}.reauth-dialog::backdrop{background:#17141066;backdrop-filter:blur(4px)}.reauth-dialog h2{padding-right:20px}.reauth-dialog p{font-size:13px;color:#77716a}.reauth-dialog .reauth-close{position:absolute;right:12px;top:12px;padding:7px 11px}.reauth-dialog .form{margin-top:20px}

#simForm{display:flex;flex-direction:column;align-items:stretch;gap:10px}#simForm .sim-tools,#simForm .sim-send{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#simForm .sim-send input{flex:1;min-width:140px}#simForm .sim-tools button{font-size:13px;padding:9px 12px}#simForm [hidden]{display:none!important}#simAttachment:empty{display:none}#simAttachment{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px;background:#f6f5ff;border-radius:10px}#simAttachment p{margin:0;word-break:break-word}#simAttachment img,#simAttachment video{max-width:180px;max-height:120px;border-radius:8px}#simAttachment audio{max-width:100%;width:280px}#simMediaStatus{font-size:12px;line-height:1.4;color:#736e68}#simLog .message-attachment{max-width:100%}

.inbox .list-item:hover,.inbox .list-item.selected,.inbox .list-item:focus-visible{color:var(--ink);background:var(--brand-soft)}.conversation-identity{display:block;min-width:0}.conversation-identity strong{display:block;color:var(--ink);font-weight:650}.conversation-identity .conversation-phone{display:block;color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px;margin-top:4px}.chat-head .conversation-identity{margin-right:auto}.origin-creative{display:flex;align-items:flex-start;flex-direction:column;gap:10px;margin:16px 0;padding-top:14px;border-top:1px solid var(--brand-border)}.origin-creative img,.origin-creative video{width:100%;max-width:300px;max-height:260px;object-fit:contain;border-radius:10px;background:#f4f2ee}.origin-creative [hidden]{display:none!important}.origin-creative a{font-weight:600;font-size:12px}.catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}.catalog-filters .catalog-query{grid-column:1/-1}.catalog-search-actions{margin:14px 0}.catalog-sort{display:flex;gap:8px;flex-wrap:wrap;margin:17px 0}.catalog-sort button[aria-pressed=true]{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink)}.property-catalog .property-catalog-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.property-catalog-item{min-width:0;padding:18px}.property-description-excerpt{font-size:12px;line-height:1.7}.property-full-description{white-space:pre-line;line-height:1.8;overflow-wrap:anywhere}.local-property-details dl>div{display:flex;gap:15px;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line)}.local-property-details dd{margin:0;text-align:right}.local-property-details .property-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.local-property-details .property-photo-gallery img{width:100%;border-radius:9px}.catalog-search-actions small{font-size:11px;color:var(--muted)}@media(max-width:1200px){.property-catalog .property-catalog-results{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.property-catalog .property-catalog-results{grid-template-columns:1fr}.catalog-sort button{flex:1;font-size:11px}.chat-head{flex-wrap:wrap}.local-property-details .property-photo-gallery{grid-template-columns:1fr}}

.catalog-preview figure{margin:0;flex:1 1 130px;max-width:180px;min-width:0}.catalog-preview figure img{margin:8px 0 0}.catalog-preview figcaption{font-size:11px;line-height:1.45;padding:5px 0;color:var(--muted);white-space:normal}

/* Conversation workspace: independent contact and message scrolling. */
.inbox{gap:0;grid-template-columns:300px minmax(0,1fr);height:clamp(410px,calc(100dvh - 280px),880px);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 28px #2b241508}
.inbox .card{border:0;border-radius:0;box-shadow:none;margin:0}
.inbox .inbox-sidebar{padding:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line);overflow:hidden}
.inbox-filters{flex:none;padding:15px;background:#f7f8fa;border-bottom:1px solid #e9edef;display:grid;gap:9px}
.inbox .inbox-filters input,.inbox .inbox-filters select{margin:0;min-height:36px;background:#fff;font-size:12px}
#conversationList{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#conversationList::-webkit-scrollbar,.inbox .chat-log::-webkit-scrollbar{width:7px}
#conversationList::-webkit-scrollbar-thumb,.inbox .chat-log::-webkit-scrollbar-thumb{background:#c4cccd;border-radius:8px}
#conversationList .list-item{padding:14px 15px;position:relative;font-weight:400;border-bottom:1px solid #edf0f1}
#conversationList .list-item.selected{background:#e8f2ee;box-shadow:inset 3px 0 #178568}
#conversationList .list-item:hover{background:#f1f5f3}
.conversation-person{display:flex;align-items:center;gap:11px;min-width:0}
.conversation-identity{min-width:0;display:flex;flex-direction:column;gap:2px}
.conversation-identity strong{font-size:13px;color:#253339;font-weight:650}
.conversation-identity .conversation-phone{margin:0;color:#6d7d83}
.contact-avatar{width:42px;height:42px;border-radius:50%;background:#e2ece7;color:#426b5a;display:grid;place-items:center;position:relative;overflow:hidden;flex:none;font-size:13px;font-weight:650}
.contact-avatar img{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}
#conversationList .conversation-stage,#conversationList .conversation-followup-tags,#conversationList .list-item>small{margin-left:53px}
#conversationList .list-item>small{line-height:1.4;color:#748289}
.inbox .chat{min-height:0;overflow:hidden;padding:0;display:flex;flex-direction:column}
.inbox .chat-head{padding:12px 18px;min-height:66px;flex:none;background:#f1f4f5;justify-content:flex-start;gap:9px;flex-wrap:wrap}
.inbox .chat-head .conversation-person{margin-right:auto}
.inbox .chat-head .badge{font-size:10px}
.inbox-status:empty{display:none}.inbox-status{padding:3px 14px;flex:none}
.inbox .chat>.buttons{padding:8px 12px!important;margin:0;gap:6px;flex:none;border-bottom:1px solid #edf0f1}
.inbox .chat>.buttons button{font-size:10px;padding:7px 9px;min-height:30px}
.inbox .handling-card{margin:0;border:0;border-bottom:1px solid var(--brand-border);border-radius:0;padding:7px 14px;flex:none;max-height:82px;overflow:auto;font-size:10px}
.inbox .handling-card p{margin:2px 0;font-size:10px}
.inbox-origin{padding:6px 15px;background:#fff;border-bottom:1px solid #edf0f1;font-size:11px;flex:none;max-height:160px;overflow:auto}
.inbox-origin>summary{cursor:pointer;color:#65777e}.inbox-origin .link-box{margin:8px 0}
.inbox .chat-log{flex:1;min-height:100px;max-height:none;padding:20px 24px;gap:12px;background-color:#eeeae2;background-image:radial-gradient(#b9b4a92b .65px,transparent .65px);background-size:14px 14px;overflow-y:auto}
.inbox .bubble{max-width:82%;font-size:13px;line-height:1.65;border:0;border-radius:9px 9px 9px 2px;box-shadow:0 1px 1px #00000014;padding:10px 13px;background:#fff}
.inbox .bubble.user{align-self:flex-start;background:#fff;border-radius:2px 9px 9px 9px}
.inbox .bubble.author-assistant,.inbox .bubble.author-human{align-self:flex-end;background:#d9fdd3;border-radius:9px 2px 9px 9px}
.inbox .bubble small{color:#708078;font-size:9px;float:right;margin-top:4px;margin-left:16px}
.inbox .message-author{font-size:9px;color:#43836b;letter-spacing:.05em;margin-bottom:3px}
.inbox-tools-panel{padding:7px 12px;background:#fff;border-top:1px solid #e9edef;flex:none;max-height:125px;overflow:auto}
.inbox-tools-panel>small{font-size:9px;color:#829099}.inbox-tools-panel>small:last-of-type{display:none}
.inbox-tools-panel .buttons{display:inline-flex;gap:5px;margin:3px 5px 3px 0}
.inbox-tools-panel button{font-size:10px;min-height:28px;padding:5px 9px}
.inbox-tools-panel .conversation-action-help{font-size:10px;margin:2px 0}
.inbox .human-compose{padding:9px 12px;background:#f1f4f5;flex:none;border-top:1px solid #e1e7e6}
.inbox .human-compose input{background:#fff;border-radius:18px;min-height:38px}.inbox .human-compose button{min-height:33px;font-size:11px}
.inbox .human-media-controls{gap:6px}.inbox .human-media-controls button{min-height:26px;padding:5px 8px;font-size:10px}
@media(max-width:1100px) and (min-width:701px){.inbox{grid-template-columns:255px minmax(0,1fr)}}
@media(max-width:700px){.inbox{grid-template-columns:1fr;height:auto;overflow:visible;border-radius:12px}.inbox .inbox-sidebar{height:310px;border-right:0;border-bottom:1px solid var(--line)}.inbox .chat{height:78dvh;min-height:480px}.inbox .chat-log{padding:14px}.inbox .bubble{max-width:92%}.inbox .chat-head{padding:10px}.inbox-tools-panel{max-height:100px}}

/* Keep the workspace and composer visible on laptop screens. */
#content:has(>.inbox){padding:20px 24px 12px}
#content:has(>.inbox)>.heading{margin-bottom:12px}
#content:has(>.inbox)>.heading .eyebrow{display:none}
#content:has(>.inbox)>.heading h1{font-size:25px;margin:0}
#content:has(>.inbox)>.heading p{font-size:12px;margin:6px 0 0}
.inbox-toolbar{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.inbox-toolbar .crm-tabs{margin:0}.inbox-toolbar button{min-height:34px;font-size:11px;padding:8px 12px}
.inbox{height:clamp(410px,calc(100dvh - 235px),880px)}
.inbox .chat-log{min-height:0}
.inbox-tools-panel{display:flex;align-items:center;gap:5px 7px;flex-wrap:wrap;max-height:84px;padding:7px 12px;flex:none}
.inbox-tools-panel>.buttons{display:contents}
.inbox-tools-panel>small:first-child{width:100%;font-size:9px}
.inbox-tools-panel>small:not(:first-child){display:none}
.inbox .conversation-summary-button{min-height:28px!important;padding:5px 9px!important;font-size:10px!important;background:#fff!important;color:var(--ink)!important;box-shadow:none!important;border:1px solid var(--line)}
.inbox .human-media-tools{margin-top:6px;gap:6px}
.inbox .human-media-tools button{min-height:26px;font-size:10px;padding:4px 8px}
.inbox .human-media-tools>small{display:none}
@media(max-width:700px){#content:has(>.inbox){padding:16px 12px}.inbox{height:auto}.inbox-toolbar{align-items:flex-start}.inbox-toolbar button{font-size:10px}.inbox .chat-log{min-height:140px}}

/* Reading space must not shrink when lead controls are present. */
@media(min-width:701px){.inbox{height:max(860px,calc(100dvh - 210px))}.inbox .chat-log{min-height:460px}.inbox .inbox-sidebar{min-height:0}}
.inbox .bubble{font-size:15px;line-height:1.75;padding:14px 18px;max-width:86%}.inbox .bubble small{font-size:11px}.inbox .message-author{font-size:11px;margin-bottom:6px}
@media(max-width:700px){.inbox .chat{height:auto;min-height:820px}.inbox .chat-log{flex:none;height:60dvh;min-height:420px}.inbox .bubble{font-size:15px;max-width:94%}}

/* Spacious conversation actions with the summary as the primary action. */
.inbox-tools-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;padding:18px 20px;max-height:none;overflow:visible;align-items:center}
.inbox-tools-panel>small:first-child{grid-column:1/-1;font-size:11px;line-height:1.5}
.inbox-tools-panel>.buttons{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0}
.inbox-tools-panel>.buttons:nth-of-type(1){grid-column:1;grid-row:2}
.inbox-tools-panel>.buttons:nth-of-type(2){grid-column:1/-1;grid-row:3}
.inbox-tools-panel>.buttons:last-child{grid-column:2;grid-row:2;justify-content:flex-end}
.inbox-tools-panel button{min-height:40px;padding:10px 15px;font-size:12px;border-radius:9px}
.inbox .conversation-summary-button{min-height:46px!important;padding:12px 20px!important;font-size:14px!important;font-weight:750;background:var(--brand)!important;color:#fff!important;box-shadow:0 4px 12px #00000020!important;border:1px solid var(--brand)}
.inbox .conversation-summary-button:hover{filter:brightness(1.08)}
.inbox-tools-panel #schedule{background:#fff;color:var(--brand);border:1px solid var(--line)}
.inbox-tools-panel .conversation-action-help{grid-column:1/-1;grid-row:4;font-size:12px;margin:0;line-height:1.6}
.inbox .human-compose{padding:16px 20px}.inbox .human-text-row{gap:12px}.inbox .human-compose input{min-height:46px;font-size:14px;padding:12px 15px}.inbox .human-compose button{min-height:44px;font-size:13px;padding:10px 18px}
.inbox .human-media-tools{margin-top:12px;gap:10px}.inbox .human-media-tools button{min-height:36px;font-size:12px;padding:8px 12px}
@media(min-width:701px){.inbox{height:max(1080px,calc(100dvh - 170px))}}
@media(max-width:700px){.inbox-tools-panel{grid-template-columns:1fr;padding:16px;gap:14px}.inbox-tools-panel>.buttons:nth-of-type(1){grid-column:1;grid-row:2}.inbox-tools-panel>.buttons:nth-of-type(2){grid-column:1;grid-row:3}.inbox-tools-panel>.buttons:last-child{grid-column:1;grid-row:4;justify-content:flex-start}.inbox-tools-panel .conversation-action-help{grid-column:1;grid-row:5}.inbox .human-compose{padding:14px}.inbox .human-compose button{padding:10px 12px}}

/* Mobile inbox: one screen for contacts and another for the conversation. */
.mobile-chat-back,.mobile-chat-options,.mobile-chat-status,.mobile-conversation-bar,.mobile-options-panel,.mobile-conversation-preview,.mobile-conversation-time{display:none}
@media(max-width:700px){
 body:has(.inbox)>#app{height:100%;min-height:0}
 body:has(.inbox){position:fixed;inset:0;overflow:hidden;height:var(--mobile-inbox-height,100dvh);width:100%}
 .shell:has(.inbox){height:100%;min-height:0;overflow:hidden;display:block}
 .shell:has(.inbox)>main{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;margin:0}
 .shell:has(.inbox) .topbar{position:static;flex:none;min-height:60px;padding:8px 12px;gap:8px;display:flex;align-items:center;border-bottom:1px solid #e8edef}
 .shell:has(.inbox) .topbar .workspace{display:none}
 .shell:has(.inbox) .topbar-actions{display:flex;align-items:center;flex:1;gap:8px;min-width:0;flex-wrap:nowrap}
 .shell:has(.inbox) .topbar-actions>button:not(#alertsButton){display:none}
 .shell:has(.inbox) #tenantSelect{width:auto;max-width:none;flex:1;min-width:0;font-size:13px;min-height:40px;padding:8px}
 .shell:has(.inbox) #alertsButton{font-size:0;min-width:42px;min-height:40px;padding:8px;white-space:nowrap}
 .shell:has(.inbox) #alertsButton:before{content:'🔔';font-size:21px}.shell:has(.inbox) #alertCount{font-size:10px}
 #content:has(>.inbox){padding:0;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 #content:has(>.inbox)>.heading{padding:14px 16px 10px;margin:0;flex:none}
 #content:has(>.inbox)>.heading h1{font-size:25px}#content:has(>.inbox)>.heading p{display:none}
 .inbox-toolbar{padding:0 12px 10px;margin:0;gap:6px;flex-wrap:nowrap;flex:none}
 .inbox-toolbar .crm-tabs{display:flex;overflow-x:auto;flex:1;gap:6px;min-width:0}
 .inbox-toolbar .crm-tabs button{flex:none;font-size:10px;padding:8px;min-height:36px}
 .inbox-toolbar #openConversationTrash{font-size:0;min-width:36px;min-height:36px;padding:5px}
 .inbox-toolbar #openConversationTrash:after{content:'⋯';font-size:24px}
 .inbox{display:block;height:auto;min-height:0;flex:1;overflow:hidden;border:0;border-radius:0;box-shadow:none}
 .inbox .inbox-sidebar{height:100%;min-height:0;border:0;margin:0!important;display:flex;flex-direction:column}
 .inbox-filters{padding:10px 12px;grid-template-columns:minmax(0,1fr) 130px;gap:8px;background:#fff}
 .inbox .inbox-filters input,.inbox .inbox-filters select{font-size:13px;min-height:42px;border-radius:20px;min-width:0;padding:9px 12px;background:#f2f5f5;border-color:transparent}
 .inbox #conversationList{flex:1;max-height:none;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:#fff}
 #conversationList .list-item{padding:14px 16px;min-height:100px;position:relative}
 #conversationList .conversation-person{padding-right:54px;gap:12px}#conversationList .contact-avatar{width:48px;height:48px;font-size:16px}
 #conversationList .conversation-identity strong{font-size:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
 #conversationList .conversation-identity .conversation-phone{display:none}
 .mobile-conversation-preview{display:block;margin:5px 0 4px 60px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#708079;font-size:13px;font-weight:400}
 .mobile-conversation-time{display:block;position:absolute;right:15px;top:18px;font-size:11px;color:#718078;font-weight:400}
 #conversationList .conversation-stage,#conversationList .conversation-followup-tags{margin-left:60px;font-size:10px}#conversationList .conversation-followup-tags:empty{display:none}
 #conversationList .list-item>small{display:none}
 .inbox #conversationDetail{display:none}
 .inbox.mobile-chat-open .inbox-sidebar{display:none}
 .inbox.mobile-chat-open #conversationDetail{display:flex;height:100%;min-height:0;position:relative;flex-direction:column;overflow:hidden;border:0;border-radius:0}
 .shell:has(.inbox.mobile-chat-open) .topbar,#content:has(>.inbox.mobile-chat-open)>.heading,#content:has(>.inbox.mobile-chat-open)>.inbox-toolbar{display:none}
 .inbox.mobile-chat-open .chat-head{min-height:66px;padding:8px 8px 8px 4px;gap:6px;flex-wrap:nowrap;background:#fff;border-bottom:1px solid #e2e9e5;flex:none}
 .mobile-chat-back,.mobile-chat-options{display:grid;place-items:center;flex:none;width:38px;min-width:38px;height:42px;min-height:42px;padding:0;background:transparent;color:#234637;border:0;box-shadow:none;font-size:32px;line-height:1;border-radius:50%}
 .mobile-chat-options{font-size:29px}
 .inbox.mobile-chat-open .chat-head .conversation-person{min-width:0;flex:1;gap:8px;margin:0}
 .inbox.mobile-chat-open .chat-head .contact-avatar{width:39px;height:39px;font-size:13px}
 .inbox.mobile-chat-open .chat-head .conversation-identity{min-width:0;gap:2px}
 .inbox.mobile-chat-open .chat-head .conversation-identity strong{font-size:15px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .inbox.mobile-chat-open .chat-head .conversation-phone,.inbox.mobile-chat-open .chat-head>.badge{display:none}
 .mobile-chat-status{display:block;font-size:11px;color:#738176;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mobile-conversation-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:6px 12px;background:#fff;border-bottom:1px solid #e7ece7}
 .mobile-conversation-bar button{min-height:36px;padding:8px 12px;font-size:12px;border-radius:9px;font-weight:650}
 .mobile-summary-shortcut{background:var(--brand);color:#fff}.mobile-accept-shortcut{background:#e5f3e9;color:#17673f}
 .inbox.mobile-chat-open .chat-log{flex:1;height:auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px;gap:12px}
 .inbox.mobile-chat-open .bubble{font-size:15px;line-height:1.6;max-width:91%;padding:11px 13px}
 .inbox.mobile-chat-open .bubble small{font-size:10px}.inbox.mobile-chat-open .message-author{font-size:10px}
 .inbox.mobile-chat-open .human-compose{flex:none;padding:9px 10px calc(9px + env(safe-area-inset-bottom));background:#f1f4f3;max-height:38%;overflow-y:auto}
 .inbox.mobile-chat-open .human-text-row{gap:8px;align-items:center}
 .inbox.mobile-chat-open .human-compose input{font-size:16px;min-height:44px;padding:10px 13px;border-radius:22px;min-width:0}
 .inbox.mobile-chat-open .human-text-row>button{min-height:44px;font-size:12px;padding:10px 14px;border-radius:20px}
 .inbox.mobile-chat-open .human-media-tools{margin-top:6px;gap:8px}
 .inbox.mobile-chat-open .human-media-tools button{min-height:30px;font-size:11px;padding:6px 10px}
 .inbox.mobile-chat-open .mobile-options-panel:not([hidden]){display:block;position:absolute;right:8px;left:8px;top:64px;z-index:25;padding:16px;background:#fff;border:1px solid #dce7df;border-radius:14px;box-shadow:0 12px 36px #152e3b30;max-height:calc(var(--mobile-inbox-height,100dvh) - 150px);overflow-y:auto;overscroll-behavior:contain}
 .mobile-options-title{display:block;font-size:15px;margin:0 0 12px;color:#254c3a}
 .mobile-options-panel .inbox-status:empty{display:none}.mobile-options-panel>.buttons{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0;padding:0!important}
 .mobile-options-panel button{min-height:40px;font-size:12px;padding:9px 12px}
 .mobile-options-panel .handling-card,.mobile-options-panel .inbox-origin{padding:10px 0;max-height:none;font-size:12px}
 .mobile-options-panel .inbox-tools-panel{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:12px 0 0;max-height:none;overflow:visible}
 .mobile-options-panel .inbox-tools-panel>.buttons{display:flex;justify-content:flex-start;gap:8px;flex-wrap:wrap}
 .mobile-options-panel .conversation-action-help{font-size:12px}.mobile-options-panel .inbox-tools-panel>small:first-child{font-size:10px}
 .mobile-options-open .mobile-conversation-bar{visibility:hidden}
}

.conversation-list-tags{display:contents}
@media(max-width:700px){
 .shell:has(.inbox)>main,#content:has(>.inbox),.inbox,.inbox .inbox-sidebar,.inbox #conversationList{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
 .inbox{contain:inline-size}.inbox .inbox-sidebar{overflow:hidden}.inbox #conversationList{overflow-x:hidden}
 #conversationList .list-item{min-width:0;max-width:100%;width:100%;overflow:hidden;box-sizing:border-box}
 #conversationList .conversation-person{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
 #conversationList .conversation-identity{min-width:0;flex:1;overflow:hidden}
 #conversationList .mobile-conversation-preview{min-width:0;width:calc(100% - 60px);max-width:calc(100% - 60px);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #conversationList .conversation-list-tags{display:flex;min-width:0;max-width:calc(100% - 60px);margin:5px 0 0 60px;gap:4px;flex-wrap:wrap;align-items:center}
 #conversationList .conversation-list-tags .conversation-stage,#conversationList .conversation-list-tags .conversation-followup-tags{margin:0;font-size:10px}
 #conversationList .conversation-list-tags .conversation-followup-tags{display:contents}
 .shell:has(.inbox) .topbar-actions{min-width:0;max-width:none}
 .inbox-filters{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
 .mobile-conversation-bar{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px}
 .mobile-conversation-bar button{min-width:0;font-size:12px;padding:8px 10px;white-space:normal}
 .mobile-origin-shortcut{background:#fff;color:var(--brand);border:1px solid var(--brand-border)}
 .mobile-accept-shortcut{grid-column:1/-1}
}
