[hidden]{display:none!important}html,body{min-height:100%;margin:0}#webApp{min-height:100dvh}.web-login{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#fcfbfe}.web-login>div{background:white;border:1px solid #eeeaf2;border-radius:28px;padding:42px;max-width:420px;width:100%;text-align:center}.web-login h1{font-size:26px;font-weight:500;margin:25px 0 12px}.web-login p{color:#74697f;font-size:14px}.web-brand{font-size:22px;font-weight:600}.web-brand b{color:#8054d8}#googleButton{display:flex;justify-content:center;margin:28px 0}#loginError{color:#a64c35;line-height:1.5}#webUser{display:flex;align-items:center;gap:8px;margin-left:auto;color:#74697f;font-size:12px}#webLogout{background:transparent}.server-storage{display:none!important}.web-manager #settings,.web-manager #saveConversionRange{display:none!important}.web-team-list{display:grid;gap:12px}.web-team-row{display:flex;gap:16px;padding:16px;background:#f8f5ef;border-radius:18px;align-items:center;justify-content:space-between}.web-team-row b,.web-team-row small{display:block}.web-team-row small{color:#74697f;font-size:12px;margin-top:5px}.web-move{margin-top:14px;width:100%;font-size:12px;padding:8px}.web-stage-list{display:grid;gap:8px}.web-stage-list button{text-align:left;display:flex;align-items:center;gap:12px}.web-stage-list i{width:9px;height:9px;border-radius:50%;flex:none}.board{height:calc(100dvh - 210px);min-height:400px;align-items:start}.lane{min-height:100%;max-height:100%;overflow-y:auto;scrollbar-width:thin}.lane h3{position:sticky;top:-14px;background:#f1edf7;z-index:2;padding:8px 0}.board::-webkit-scrollbar{height:10px}.activity-toolbar{flex-wrap:wrap}@media(min-width:1300px){#edit{width:min(1450px,calc(100vw - 36px));height:calc(100dvh - 36px);max-height:none}.deal-workspace{grid-template-columns:minmax(320px,30%) minmax(0,1fr)}}
@media(max-width:720px){body{font-size:14px}#webApp>header{position:sticky;top:0;z-index:5;margin:0;border-radius:0 0 22px 22px;gap:6px;padding:12px}.brand{font-size:21px;display:none}#webApp>header>[data-view]{font-size:12px;padding:9px 11px}#webApp>header input[type=search]{display:none}#webApp>header>#new,#webApp>header>#refresh,#webApp>header>#settings{padding:8px 11px;font-size:12px}#webUser{margin-left:auto}#webUser>span{display:none}.status{margin:0;padding:8px 12px;min-height:34px}.filters{gap:8px;margin:8px 12px}.filters label{min-width:110px}.filters .soft-select{min-height:40px;padding:8px 10px}.board{height:calc(100dvh - 210px);min-height:350px;scroll-snap-type:x proximity;gap:12px}.lane{flex-basis:calc(100vw - 52px);scroll-snap-align:start;padding:12px}.card{padding:16px}.amount{font-size:16px}dialog,dialog.large{box-sizing:border-box;width:calc(100vw - 12px);max-width:none;max-height:calc(100dvh - 12px);padding:18px;border-radius:22px}#edit{height:calc(100dvh - 12px);overflow:hidden;display:flex;flex-direction:column}#edit:not([open]){display:none}#edit>.top{position:relative;flex:none;min-height:72px;flex-wrap:wrap;padding:10px 14px;gap:8px}#editTitle{font-size:18px;max-width:190px}.deal-workspace{height:auto;flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}.deal-details{flex:none;max-height:38dvh;min-height:130px}.deal-details .fields{max-height:none;flex:1;padding:14px;gap:12px}.deal-details footer{padding:8px 14px}.deal-side{flex:none;height:calc(65dvh - 85px);min-height:340px}.activity-tabs{position:static;flex-wrap:wrap;padding:8px 12px;gap:4px}.activity-panel{padding:12px}.tg-heading{padding:8px 2px}.tg-tools button{padding:7px 9px;font-size:11px}.tg-feed{padding:12px 4px}.tg-bubble{max-width:92%;font-size:14px}.tg-form{gap:6px}.tg-form textarea{font-size:16px;padding:10px}.tg-form button{padding:10px 12px}.tg-chat-tools{flex-wrap:wrap;gap:5px}.tg-chat-tools button{padding:6px 9px;font-size:11px}.activity-section{padding:16px;margin:16px 0}.activity-toolbar label{min-width:140px;flex:1}.activity-kpis article{min-width:0;width:100%;padding:18px}.activity-kpis strong{font-size:28px}.conversion-cards{grid-template-columns:1fr!important}.section-title{flex-wrap:wrap}.section-title h2{font-size:25px}.conversion-manager{margin-left:0!important}.web-login>div{padding:30px 20px}.web-team-row{flex-wrap:wrap}.table-wrap{max-width:100%;overflow:auto}#guideEditor[open]{height:calc(100dvh - 12px);max-height:none}#guideEditorBody{display:flex;flex-direction:column;overflow:auto}.guide-editor-list{max-height:180px;flex:none}.guide-editor-form{overflow:visible}}
.web-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.web-metrics article,.web-dashboard section{border-radius:24px;padding:24px;background:#fff;border:1px solid var(--line)}.web-metrics small{color:var(--muted)}.web-metrics strong{display:block;font-size:28px;font-weight:500;margin-top:12px}.web-dashboard{display:grid;grid-template-columns:2fr 1fr;gap:20px}.web-dashboard h3{margin-top:0;font-size:19px;font-weight:500}.web-dashboard-row{display:grid;grid-template-columns:200px minmax(0,1fr) 40px;gap:16px;align-items:center;margin:18px 0;font-size:13px}.web-dashboard-row>div{background:#f5f3ee;border-radius:8px;height:10px}.web-dashboard-row i{display:block;height:10px;border-radius:8px}.web-dashboard-row b{text-align:right}.web-dashboard-task{padding:20px 0;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.web-dashboard-task strong{font-size:23px}@media(max-width:720px){.web-metrics{grid-template-columns:1fr 1fr;gap:10px}.web-metrics article{padding:16px}.web-metrics strong{font-size:22px}.web-dashboard{grid-template-columns:1fr}.web-dashboard-row{grid-template-columns:125px minmax(0,1fr) 25px;gap:8px;font-size:12px}}

/* Responsive workspace v2: scoped to the web shell. */
.web-navigation{display:contents}
#tab_fields{display:none}
#main.web-board-main{padding-bottom:0;min-height:0}
#main .board{box-sizing:border-box;min-height:0;align-items:stretch}
#main .lane{box-sizing:border-box;min-height:0;height:100%;max-height:100%;flex-shrink:0}
@media(max-width:720px){
 html,body{min-height:100%;overflow-x:clip}
 #webApp>header{position:relative;display:flex;gap:8px;padding:10px 12px;margin:0;border-radius:0 0 20px 20px}
 #webApp>header .brand{display:block;font-size:18px;margin-right:auto}
 #webApp>header .brand small{display:none}
 #webApp>header .web-navigation{display:flex;order:10;width:100%;min-width:0;overflow-x:auto;gap:6px;padding:2px 0 4px;scrollbar-width:none;flex-wrap:nowrap}
 .web-navigation::-webkit-scrollbar{display:none}
 #webApp .web-navigation button{flex:none;padding:10px 13px;font-size:12px;min-height:40px;white-space:nowrap}
 #webApp>header>#new,#webApp>header>#refresh,#webApp>header>#settings,#webLogout{min-height:40px;padding:8px 10px;font-size:12px}
 #webUser{margin-left:0}#webUser>span{display:none}
 #webApp>header input[type=search]{display:block;order:11;width:100%;flex:1 0 100%;min-height:42px;font-size:16px;margin:0;box-sizing:border-box}
 #webApp>.status{padding:6px 14px;min-height:0;font-size:11px}
 #webApp>.filters{display:flex;flex-wrap:nowrap;overflow-x:auto;padding:2px 0 6px;margin:4px 12px;gap:8px}
 #webApp>.filters:empty{display:none}
 #webApp>.filters>label{flex:0 0 150px;min-width:0}
 #main{padding:6px 12px 12px;min-width:0}
 #main .board{gap:10px;padding-bottom:10px;scroll-padding-left:0}
 #main .lane{flex-basis:calc(100vw - 48px);border-radius:20px;padding:12px}
 #main .lane h3{top:-12px;margin-top:0;font-size:13px}
 #main .card{padding:14px;border-radius:20px}
 #main .web-move{padding:9px;min-height:38px;margin-top:10px}
 #edit[open]{display:flex;position:fixed;inset:var(--web-viewport-top,0px) 0 auto;margin:0;width:100%;max-width:none;height:var(--web-viewport-height,100dvh);max-height:none;padding:0;border:0;border-radius:0;overflow:hidden;box-sizing:border-box}
 #edit>.top{display:grid;grid-template-columns:minmax(0,1fr) auto 40px;position:relative;flex:none;height:auto;min-height:0;padding:10px 12px 0;gap:6px 8px;padding-top:max(10px,env(safe-area-inset-top))}
 #edit .card-head-copy{grid-column:1;min-width:0;max-width:none;gap:6px;flex-wrap:wrap}
 #editTitle{font-size:17px;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #edit .card-head-copy .soft-select{padding:6px 10px;font-size:11px;min-height:32px;max-width:145px}
 #edit .card-close{position:static;grid-column:3;grid-row:1;margin:0;min-width:40px;min-height:40px;padding:3px 10px}
 #dealTouches{grid-column:2;grid-row:1;font-size:10px;margin:0;padding:5px 7px;white-space:nowrap}
 #dealRecovery{grid-column:1/-1;font-size:11px;padding:6px 9px}
 #edit>.top .activity-tabs{grid-column:1/-1;display:flex;width:100%;margin:0;padding:5px 0 8px;gap:4px;justify-content:stretch;flex-wrap:nowrap;border:0}
 #edit .activity-tabs button{display:block;flex:1;min-width:0;min-height:42px;padding:8px 4px;font-size:12px;border-radius:13px}
 #edit .deal-workspace{display:flex;flex:1;height:auto;min-height:0;overflow:hidden}
 #edit .deal-details,#edit .deal-side{flex:1;width:100%;height:auto;min-height:0;max-height:none;border:0;overflow:hidden}
 #edit .deal-details{display:none}
 #edit[data-mobile-pane=fields] .deal-details{display:flex}
 #edit[data-mobile-pane=fields] .deal-side{display:none}
 #edit .deal-fields-scroll{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
 #edit .deal-details .fields{display:grid;grid-template-columns:1fr;padding:16px;gap:15px;max-height:none;overflow:visible}
 #edit .deal-details input,#edit .deal-details textarea,#edit .deal-details select{font-size:16px}
 #edit .deal-details footer{padding:10px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line)}
 #edit .activity-panel{padding:12px 14px;overscroll-behavior:contain}
 #edit #side_chat{padding:4px 8px 0;overflow:hidden;display:flex;flex-direction:column}
 #edit #side_chat>.tg-pane{flex:1;min-height:0;height:auto}
 #edit .tg-pane{gap:6px}
 .tg-heading{flex-wrap:nowrap;gap:8px;padding:2px 4px}
 .tg-heading>div:first-child{min-width:0;flex:1}
 .tg-heading strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .tg-peer-meta{gap:4px;font-size:11px;overflow-wrap:anywhere}
 .tg-tools{flex:none;gap:4px}.tg-tools button{min-height:36px;padding:7px 9px}
 .tg-feed{min-height:0;padding:12px 22px;gap:8px;border-radius:16px;overscroll-behavior:contain;overflow-anchor:none}
 .tg-bubble{max-width:94%;min-width:0;box-sizing:border-box;font-size:14px;padding:9px 23px 9px 11px}
 .tg-private-note{margin:4px 0;font-size:13px}
 .tg-menu-trigger{opacity:.8;min-height:28px;min-width:28px}
 .tg-media-frame{min-width:0;width:min(240px,100%);min-height:130px}
 .tg-media-frame img,.tg-media-frame video{max-height:230px}
 .tg-file-card{padding:10px;min-width:0}.tg-file-card a{word-break:break-word}
 .tg-composer-area{padding:4px 2px max(8px,env(safe-area-inset-bottom));gap:5px}
 .tg-chat-tools{gap:4px;flex-wrap:wrap}.tg-chat-tools button{min-height:34px;padding:6px 9px;font-size:11px}
 .tg-form{gap:6px}.tg-form textarea{min-height:44px;max-height:100px;font-size:16px;padding:10px 12px;border-radius:17px;min-width:0}
 .tg-form button{font-size:12px;min-height:44px;padding:10px 12px}
 #tgAttachPreview{max-height:72px;overflow:auto}#tgComposeHint{max-height:60px;overflow:auto;font-size:12px}
 #dealComposer{flex:none;padding:10px 12px max(10px,env(safe-area-inset-bottom));max-height:45%;overflow:auto}
 #dealComposer textarea,#dealComposer input{font-size:16px}
 .composer-task-grid{grid-template-columns:1fr}
 dialog:not(#edit){max-height:var(--web-viewport-height,100dvh);max-width:calc(100vw - 16px);overflow:auto;overscroll-behavior:contain}
 #aux[open]:has(.tg-pane){position:fixed;inset:var(--web-viewport-top,0px) 0 auto;margin:0;width:100%;max-width:none;height:var(--web-viewport-height,100dvh);max-height:none;border-radius:0;padding:0}
 #auxBody:has(.tg-pane){padding:4px 8px 0}
 #aux:has(.tg-pane)>.top{padding:10px 14px}
 #config .fields,#contact .fields,#aux .fields{grid-template-columns:1fr;gap:12px}
 dialog input,dialog textarea,dialog select{font-size:16px}
 dialog footer{flex-wrap:wrap;gap:8px}dialog footer button{min-height:42px}
 #guideEditor[open]{height:var(--web-viewport-height,100dvh);max-height:var(--web-viewport-height,100dvh);margin:0 auto;border-radius:0}
 #guideEditor footer{flex:none;padding-bottom:max(14px,env(safe-area-inset-bottom))}
 .guide-panel{max-height:40dvh;overflow:auto}
 .section-title h2{font-size:23px}.section-title{gap:8px}
 .activity-toolbar label{flex:1 1 100%;min-width:0}.activity-kpis article{min-width:0;flex:1 1 100%}
 .activity-section{padding:14px;margin-top:16px}.activity-groups{grid-template-columns:1fr}
 .activity-breakdown{padding:12px}.web-dashboard section{padding:16px}
 #main:has(>table){overflow-x:auto}#main>table{min-width:600px}
}

/* iOS must not zoom when focusing an editable control. Keep pinch zoom available. */
@media(max-width:720px){
 #webApp input:not([type=checkbox]):not([type=radio]),#webApp textarea,#webApp select,
 dialog input:not([type=checkbox]):not([type=radio]),dialog textarea,dialog select,
 dialog .soft-select-search{font-size:16px!important}
}

/* Modal page lock also covers iOS, where dialog alone does not freeze its page. */
html.web-modal-lock{overflow:hidden;overscroll-behavior:none}
body.web-modal-lock{position:fixed;overflow:hidden;width:100%;overscroll-behavior:none}
@media(max-width:720px){
 body.web-modal-lock #main,body.web-modal-lock #webApp>header,body.web-modal-lock #filters{pointer-events:none}
 dialog[open]{overscroll-behavior:contain}
 html.web-keyboard-open #edit .tg-composer-area,
 html.web-keyboard-open #edit #dealComposer,
 html.web-keyboard-open #edit .deal-details footer{padding-bottom:8px}
 #edit[open]{bottom:auto!important;min-height:0}
}

/* Fixed outer shell; scrolling belongs to a view, lane, or dialog. */
html,body{height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
#webApp{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#webApp>header,#webApp>.status,#webApp>.filters,#syncNotice{flex:none}
#webApp>main{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
#webApp>main.web-board-main{display:flex;flex-direction:column;overflow:hidden;padding-bottom:12px}
#main.web-board-main .board{flex:1;height:auto!important;min-height:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain}
#main .lane{overscroll-behavior-y:contain}
#main .web-card-name{display:flex;align-items:baseline;gap:8px;min-width:0;margin-top:8px}
#main .web-card-name>b{flex:1;min-width:0;overflow-wrap:anywhere}
#main .web-last-touch{flex:none;color:#8a8175;font-size:10px;line-height:1.5;font-weight:400;white-space:nowrap;font-variant-numeric:tabular-nums}
.web-login{height:100dvh;min-height:0;overflow:auto;box-sizing:border-box}
#guideEditor[open]{display:flex;flex-direction:column}
#guideEditor>header,#guideEditor>footer{flex:none}
#guideEditorBody{flex:1;min-height:0;height:auto}
.guide-editor-form{overscroll-behavior:contain;overflow-anchor:none}
#guideEditorNodes{overscroll-behavior:contain;overflow-anchor:none}
.guide-add-group{align-self:flex-start;font-size:11px;padding:6px 10px}
.guide-editor-group-label{font-size:10px;gap:4px}
.guide-editor-group-label .soft-select{font-size:12px;min-height:36px;padding:8px 10px}
.guide-choice-target{display:grid;grid-template-columns:1fr;gap:6px;min-width:0}
.guide-choice-target>label{min-width:0;font-size:10px;gap:3px}
.guide-choice-target .soft-select{width:100%;min-width:0}
.guide-edit-choice>.guide-choice-target{grid-column:3}
#tgRemoveAttach{flex:none;min-width:32px;min-height:32px}
#main .lane{overflow-anchor:none}
@media(max-width:720px){
 #webApp{height:var(--web-viewport-height,100dvh)}
 #guideEditorBody{overflow:auto}
 .guide-editor-form{flex:none}
}
@media(max-width:760px){.guide-edit-choice>.guide-choice-target{grid-column:2;grid-row:2}}
@media(max-width:720px){.guide-editor-list{max-height:240px}}

.tg-voice{width:min(310px,100%);min-width:0;padding:10px 12px;border-radius:18px;background:rgba(255,255,255,.62);border:1px solid rgba(100,130,164,.12)}
.tg-voice-title{display:flex;align-items:center;gap:7px;color:#496078;font-size:12px;margin-bottom:7px;white-space:normal}
.tg-voice-title strong{font-weight:600;flex:1;min-width:0}.tg-voice-title>span:last-child{font-variant-numeric:tabular-nums}
.tg-voice audio{display:block;width:100%;height:40px;border-radius:20px}.tg-voice .tg-voice-open{width:100%;padding:10px 16px;border-radius:16px;background:#e5edf7;color:#365d83;font-weight:600}
.tg-voice-loading,.tg-voice-error{display:block;padding:10px 0;color:#62758a;font-size:12px}
.tg-voice [data-hide-media]{margin-top:5px;font-size:11px;color:#718195}.tg-bubble:has(.tg-voice){max-width:min(360px,88%)}
@media(max-width:640px){.tg-voice{width:min(280px,100%);padding:8px}.tg-voice-title{font-size:11px}.tg-voice audio{height:42px}}

/* The chat fills the existing fixed shell; list and feed own their scrolling. */
#main.web-chats-main{padding:8px 18px 14px;overflow:hidden;min-height:0;display:flex}
.web-chat-view #search{display:none}.web-chats{display:grid;grid-template-columns:320px minmax(0,1fr);width:100%;min-height:0;flex:1;border:1px solid #e4e7ec;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 4px 20px #20364d06}
.web-chat-sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid #e7ebef;overflow:hidden;background:#fbfcfe}
.web-chat-list-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 8px}.web-chat-list-head h2{margin:0;font-size:21px}.web-chat-list-head button{border:0;background:#edf2f8;color:#426b91;border-radius:14px;width:36px;height:36px;padding:0;font-size:24px}
#webChatSearch{margin:4px 14px 10px;width:calc(100% - 28px);border:0;background:#edf1f6;border-radius:13px;padding:11px 14px;min-height:42px;font-size:16px}
.web-chat-filters{display:flex;gap:6px;padding:0 14px 12px}.web-chat-filters button{border:0;background:transparent;font-size:12px;padding:7px 12px;border-radius:20px}.web-chat-filters .selected{background:#e5effa;color:#356b9c}
#webChatList{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;overflow-anchor:none;padding:0 7px 8px}#webChatEmpty{padding:18px;text-align:center;font-size:13px}#webChatSync:empty{display:none}#webChatSync{font-size:11px;padding:5px 15px;color:#8d6b47}
.web-chat-row{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border:0;background:transparent;border-radius:14px;padding:12px 10px;margin:2px 0;color:#26374b;min-width:0}.web-chat-row:hover{background:#f0f4f8}.web-chat-row.selected{background:#e8f1fb}
.web-chat-avatar{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;background:#dce9f5;color:#51769c;font-size:15px;font-weight:600}.web-chat-row:nth-child(3n) .web-chat-avatar{background:#e6e5f4;color:#78709e}.web-chat-copy{flex:1;min-width:0;display:grid;gap:6px}.web-chat-line{display:flex;align-items:center;gap:8px;min-width:0}.web-chat-line strong{flex:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:14px;font-weight:600}.web-chat-line time{font-size:10px;color:#8a97a6;flex:none}.web-chat-preview{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#7b8795}.web-chat-preview.is-draft{color:#b48a56}.web-chat-unread{border-radius:12px;min-width:20px;height:20px;background:#6595c7;color:white;text-align:center;padding:2px 6px;font-size:11px}
#webChatThread{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#f3f6fa}#webChatThread>.tg-pane{display:flex;flex-direction:column;height:100%;min-height:0;flex:1;padding:0;overflow:hidden}
#webChatThread .tg-heading{padding:14px 20px;background:#fff;border-bottom:1px solid #e7ebef;gap:12px;flex:none}#webChatThread .tg-heading>div:first-of-type{min-width:0;flex:1}#webChatThread #tgTitle{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block}#webChatThread .tg-tools{flex:none;gap:6px}#webChatThread .tg-tools button{padding:7px 10px;border-radius:12px;font-size:12px}#webChatThread .tg-peer-meta{flex-wrap:wrap}
#webChatThread .tg-feed{flex:1;min-height:0;height:auto;max-height:none;overflow:auto;overscroll-behavior:contain;padding:20px max(18px,calc((100% - 820px)/2));background:transparent;overflow-anchor:none}
#webChatThread .tg-composer-area{flex:none;background:#fff;padding:10px 18px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e7ebef}#webChatThread .tg-form{margin:0;align-items:end;gap:10px}#webChatThread #tgText{font-size:16px;min-height:46px;max-height:110px;border-radius:18px;background:#f4f6f9;padding:12px 14px;resize:none}#webChatThread #tgSend{border-radius:16px;min-height:46px}#webChatThread .tg-chat-tools{margin-bottom:7px;gap:6px;flex-wrap:wrap}#webChatThread .tg-error:empty{display:none}#webChatThread .tg-error{flex:none;margin:0;padding:4px 18px}
#webChatThread .guide-panel{flex:none;max-height:40%;overflow:auto;margin:0;border-radius:0}#webChatThread .tg-bubble{border-radius:18px;box-shadow:0 1px 2px #1c395709}#webChatBack{display:none}.web-chat-placeholder{margin:auto;text-align:center;color:#8190a0;padding:24px}.web-chat-placeholder>span{font-size:48px;color:#a4b8cc}.web-chat-placeholder h2{font-size:19px;font-weight:500}.web-chat-placeholder p{font-size:13px}
.web-conversion-analytics{margin-top:24px;padding:20px;background:#fff;border:1px solid #e7e8ed;border-radius:22px}.web-conversion-analytics .section-title{margin-top:0}
@media(max-width:1000px){.web-chats{grid-template-columns:280px minmax(0,1fr)}#webChatThread #tgBind{font-size:11px;padding:6px}}
@media(max-width:720px){
 #main.web-chats-main{padding:0;min-height:0}.web-chats{border:0;border-radius:0;display:flex}.web-chat-sidebar{width:100%;border:0}#webChatThread{display:none;width:100%}.web-chats.is-open .web-chat-sidebar{display:none}.web-chats.is-open #webChatThread{display:flex}#webChatBack{display:block;border:0;background:transparent;color:#517ca7;font-size:34px;padding:0 6px;width:32px;flex:none}
 #webChatThread .tg-heading{padding:8px 10px;gap:6px;min-height:58px}#webChatThread .tg-tools button{font-size:11px;padding:6px}#webChatThread #tgBind{display:none}#webChatThread #tgTitle{font-size:14px}#webChatThread .tg-feed{padding:12px 10px}#webChatThread .tg-composer-area{padding:7px 9px max(8px,env(safe-area-inset-bottom))}#webChatThread .tg-chat-tools button{font-size:11px;padding:6px 9px}#webChatThread #tgText{min-height:43px;max-height:88px}#webChatThread #tgSend{min-height:43px;padding:8px 12px;font-size:12px}#webChatThread .tg-bubble{max-width:90%}
 #webApp.web-chat-view:has(.web-chats.is-open)>header,#webApp.web-chat-view:has(.web-chats.is-open)>#status{display:none}#webChatThread .guide-panel{max-height:34%}.web-conversion-analytics{padding:12px}
}
.web-chat-row.selected{color:#26374b}
#webChatThread>.tg-pane{gap:0}
#webChatThread .tg-form{padding-top:0;border-top:0}
#webChatThread .tg-heading{flex-wrap:nowrap}
#webChatThread .tg-bubble{white-space:pre-wrap;overflow-wrap:anywhere}
#webChatThread .tg-bubble,#webChatThread .tg-private-note{padding-right:34px}

.web-chat-context{display:flex;gap:8px;min-width:0;flex:1;justify-content:flex-end;align-items:center;max-width:62%}
.web-chat-context-item{display:flex;flex-direction:column;gap:3px;background:#f0f4f8;border:1px solid #e6ecf2;border-radius:12px;padding:7px 10px;min-width:0;max-width:220px}
.web-chat-context-item small{font-size:10px;line-height:1.2;color:#8190a0;white-space:nowrap}
.web-chat-context-item>span{font-size:12px;line-height:1.3;color:#43566c;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tg-heading:has(.web-chat-context)>div:first-of-type{max-width:32%;min-width:0}
#webChatThread .tg-heading:has(.web-chat-context)>div:first-of-type{flex:0 1 240px}
@media(max-width:1000px){
 .tg-heading:has(.web-chat-context),#webChatThread .tg-heading:has(.web-chat-context){flex-wrap:wrap}
 .web-chat-context{order:4;flex-basis:100%;max-width:100%;justify-content:flex-start;gap:6px}
 .web-chat-context-item{flex:1;max-width:none;padding:6px 8px}
 .web-chat-context-item:last-child{flex:1.5}
 .tg-heading:has(.web-chat-context)>div:first-of-type{max-width:none}
 #webChatThread .tg-heading:has(.web-chat-context)>div:first-of-type{flex:1}
}
@media(max-width:720px){
 .web-chat-context-item small{font-size:9px}.web-chat-context-item>span{font-size:11px}
 .web-chat-context-item{border-radius:10px;padding:5px 7px}
 #webChatThread .tg-heading:has(.web-chat-context){gap:6px}
}
.web-chat-manager.card-owner{flex:none;margin:0;max-width:82px;padding:3px 7px;font-size:10px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.web-chat-line:has(.web-chat-manager){gap:6px}
.web-chat-filters{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:5px}
.web-chat-filters .soft-select-value{min-width:0}
.web-chat-filters .soft-select{min-height:32px;border:0;border-radius:16px;background:#edf2f8;padding:7px 9px;font-size:11px;text-align:left;max-width:100%;width:100%}
.web-chat-context-item:last-child{max-width:300px}
@media(min-width:721px){
 #webApp.web-chat-view>#status:not(.web-chat-status-alert){display:none}
 #webApp.web-chat-view>#main.web-chats-main{padding-top:0;padding-bottom:0}
 #webApp.web-chat-view>header{margin-bottom:0}
 #webApp.web-chat-view .web-chats{border-top-left-radius:16px;border-top-right-radius:16px}
}

/* Unanswered is independent of unread and must not change row geometry. */
.web-chat-row.has-unanswered{box-shadow:inset 0 0 0 2px #72a8e3;background:#f0f6ff}
.web-chat-row.has-unanswered.selected{background:#e4efff}
.web-chat-row.has-unanswered:hover{background:#eaf3ff}
.web-deal-favorite{flex:none;width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid #e6e0d4;border-radius:12px;background:#faf8f2;color:#9d937f;font-size:25px;line-height:1}
.web-deal-favorite[aria-pressed=true]{color:#ba8b28;background:#fff4d5;border-color:#ecd695}
@media(max-width:720px){
 .web-deal-favorite{width:32px;height:32px;font-size:23px;border-radius:10px}
 html.web-mobile-chat,html.web-mobile-chat body{height:100%;min-height:0;overflow:hidden;overscroll-behavior:none}
 html.web-mobile-chat body{position:fixed;inset:0;width:100%;margin:0}
 html.web-mobile-chat #webApp{position:fixed;top:var(--web-viewport-top,0px);left:0;right:0;height:var(--web-viewport-height,100dvh);min-height:0;max-height:var(--web-viewport-height,100dvh);overflow:hidden}
 html.web-mobile-chat #main.web-chats-main{height:100%;min-height:0;padding:0;overflow:hidden}
 html.web-mobile-chat .web-chats,html.web-mobile-chat #webChatThread,html.web-mobile-chat .tg-pane{min-height:0;max-height:100%;overflow:hidden}
 html.web-mobile-chat.web-keyboard-open #webChatThread .tg-composer-area{padding-bottom:6px}
}

#edit .activity-tabs #dealFavorite{flex:0 0 36px;min-width:36px;min-height:36px;padding:0}
@media(max-width:720px){#edit .activity-tabs #dealFavorite{flex-basis:34px;min-width:34px;min-height:40px}}

/* r15: accessible account and email sign-in */
#webPasswordLogin,.web-account-password{display:grid;gap:14px;text-align:left;max-width:440px;width:100%;margin:18px auto}
#webPasswordLogin label,.web-account-password label{display:grid;gap:7px;font-size:14px;color:#46546b}
#webPasswordLogin input,.web-account-password input{width:100%;box-sizing:border-box;border:1px solid #dce3ed;border-radius:12px;padding:12px 14px;background:#f8fafc;font-size:16px;min-height:46px}
#webPasswordLogin input:focus,.web-account-password input:focus{outline:2px solid #8dbaf7;outline-offset:1px}
#webPasswordLogin button,.web-account-password button{min-height:44px;border-radius:12px}
.web-auth-help{font-size:13px;line-height:1.5;color:#69778b;margin:0}
#webPasswordResult{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#webLogin{overflow-y:auto;box-sizing:border-box;padding:24px 16px;min-height:100dvh}
#webLogin>div{max-width:440px;width:100%;box-sizing:border-box;margin:auto}
#webUser{gap:8px}#webUser button{white-space:nowrap}
@media(max-width:600px){#webLogin{align-items:flex-start}#webUser button{padding:7px 9px}}

/* r17: compact outgoing receipts beside the chat timestamp */
.web-chat-meta{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;flex:none;white-space:nowrap}
.web-chat-meta .tg-checks{display:inline-flex;align-items:center;color:#969fa9;flex:none;width:22px;height:14px}
.web-chat-meta .tg-checks.read{color:#4b9dda}
.web-chat-meta .tg-checks svg{width:14px;height:12px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.web-chat-meta .tg-checks.double svg+svg{margin-left:0;left:6px}

.web-chat-meta .tg-checks.web-chat-delivered{color:#4b9dda}

/* r19: stable conversion scroll and export footer */
#main:has(.web-conversion-content){overflow-anchor:none}
.web-conversion-content{width:100%;min-width:0;box-sizing:border-box;overflow-anchor:none;padding-bottom:10px}
.web-statistics-export{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding:22px;background:#f0f5fa;border:1px solid #dce5ee;border-radius:20px}
.web-statistics-export h3{margin:0 0 8px;font-size:18px}.web-statistics-export p{margin:0;color:#68788b;font-size:13px;line-height:1.5}
#webStatisticsPDF{min-height:46px;border-radius:14px;white-space:nowrap}#webStatisticsStatus{width:100%;overflow-wrap:anywhere}
@media(max-width:600px){.web-statistics-export{padding:18px}.web-statistics-export button{width:100%}}

/* send-recovery-r20 */
.web-send-recovery{padding:10px 12px;border-radius:13px;background:#fff5ee;color:#734b36;font-size:12px;line-height:1.45;max-width:100%;margin:6px 0;overflow-wrap:anywhere}
.web-send-recovery-excerpt{font-weight:600;white-space:pre-wrap;max-height:54px;overflow:auto;margin-bottom:5px}
.web-send-recovery-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.web-send-recovery-buttons button{border:1px solid #e8d9ce;border-radius:10px;padding:7px 10px;background:#fff;color:#594536;font-size:12px;cursor:pointer;min-height:34px}
.web-send-recovery-buttons button:disabled{opacity:.5;cursor:wait}

/* guide-drafts-r21 */
.web-guide-progress{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:7px 10px;margin-top:8px;background:#f1f5fa;border-radius:12px;color:#62728a;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.web-guide-progress span{flex:1;min-width:0}
.web-guide-progress button{background:#fff;border:1px solid #d7e2f0;border-radius:9px;padding:5px 9px;color:#345a80;cursor:pointer;font-size:11px}

/* guide-media-r22: message text has no overlaid menu glyph */
#tgFeed .tg-menu-trigger{display:none!important}
#tgFeed [data-chat-key]:focus-visible{outline:2px solid #8fb4db;outline-offset:3px}
.guide-asset-box,.guide-asset-preview,.guide-composer-asset{padding:12px;margin:10px 0;background:#f1f5f9;border:1px solid #e2e9f0;border-radius:15px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;overflow-wrap:anywhere}
.guide-asset-box strong{width:100%;font-size:13px}.guide-asset-help{color:#77869a;font-size:11px;width:100%;line-height:1.45}.guide-asset-buttons{display:flex;gap:7px;flex-wrap:wrap}
.guide-asset-box button,.guide-asset-preview button,.guide-composer-asset button{padding:7px 10px;border-radius:10px;background:white;border:1px solid #dbe5ee;color:#446683;font-size:12px;min-height:34px}
.guide-asset-name{font-size:12px;flex:1;min-width:0}.guide-asset-error{font-size:12px;color:#a55243;width:100%}
.guide-asset-visual{width:100%;max-height:260px;object-fit:contain;border-radius:12px;background:#e7edf3}
.guide-composer-asset{margin:0 12px 8px;padding:8px 11px;flex:none}

/* chat-ui-r28 */
.web-compose-hint-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 1px 8px;min-width:0;color:#718093}
.web-compose-hint-row[hidden]{display:none!important}
.web-compose-hint-row #tgComposeHint{margin:0;padding:0;min-width:0;font-size:12px}
.web-compose-hint-row #tgCancelEdit{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;min-height:34px;padding:0;border:1px solid #e1e7ee;border-radius:12px;background:#f5f7fa;color:#617185;font-size:24px;line-height:1;cursor:pointer;touch-action:manipulation}
.web-compose-hint-row #tgCancelEdit[hidden]{display:none!important}
.web-compose-hint-row #tgCancelEdit:hover{background:#edf1f6}
.web-compose-hint-row #tgCancelEdit:focus-visible,.web-send-wait button:focus-visible{outline:2px solid #507fac;outline-offset:2px}
.web-send-wait{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:3px 0 0;color:#718093;font-size:11px;line-height:1.4;max-width:100%;min-width:0}
.web-send-wait button{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:9px;background:transparent;color:#718093;font-size:20px;cursor:pointer;touch-action:manipulation}
.web-send-wait button:hover{background:#edf1f6}
.web-send-wait button:disabled{opacity:.5;cursor:wait}
.web-send-wait-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;margin-right:auto;max-height:48px;overflow:auto}
.tg-bubble .web-send-wait-excerpt{display:none}

/* luchcrm identity */
.brand{letter-spacing:-.8px;white-space:nowrap}.web-brand{letter-spacing:-.6px}.web-brand b{font-weight:700}

/* Design reference: nana Sites v61, dist/style.css and dist/ui.css.
   CRM layout, viewport sizing, semantic stage/alert colors and JS behavior are retained. */
@font-face{font-family:Manrope;src:url('/assets/fonts/Manrope.ttf') format('truetype');font-style:normal;font-weight:200 800;font-display:swap}
:root{--ink:#2f2639;--muted:#74697f;--purple:#8054d8;--deep:#653bb8;--lav:#efe8fa;--surface:#fcfbfe;--bg:#fcfbfe;--line:#eeeaf2;--gold:#8054d8;--green:#357e63}
body{font-family:Manrope,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55}
button,input,select,textarea{font-family:Manrope,Arial,sans-serif;color:var(--ink);font-size:inherit}
h1,h2,h3,h4{color:var(--ink);font-family:Manrope,Arial,sans-serif;letter-spacing:-.035em;font-weight:800}
button{border-radius:18px;border-color:#e8e0f0;background:#fff;font-weight:650;transition:background-color .16s,border-color .16s,box-shadow .16s}
button:hover{background:#f3edf9;border-color:#d7c9ea}
button.primary,a.button{background:var(--purple);color:#fff;border:1px solid transparent;border-radius:40px;font-weight:750;box-shadow:0 5px 16px #8054d815}
button.primary:hover,a.button:hover{background:var(--deep);color:#fff}
button:disabled{cursor:not-allowed}
button:focus-visible,a:focus-visible{outline:3px solid #b59aef;outline-offset:3px}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{background:#f6f3fa;border:1px solid #e9e1f1;border-radius:16px;color:#2f2639;font-weight:500}
input:focus,textarea:focus,select:focus{border-color:#8054d8;background:#fff;outline:2px solid #8054d81a;outline-offset:1px}
input[type=checkbox],input[type=radio]{accent-color:var(--purple)}
label,.badge,.muted{color:#74697f}
.brand{font-family:Manrope,Arial,sans-serif;font-size:27px;font-weight:800;letter-spacing:-1.25px;color:#2f2639}
.brand span,.web-brand b{color:var(--purple)}
#webApp>header{background:#fff;border:1px solid #eeeaf2;box-shadow:0 4px 20px #38225005;border-radius:24px}
#webApp>header>button[data-view]{border-radius:40px;font-weight:700}
#webApp>header>button[data-view].active,#webApp>header>button[data-view][aria-selected=true]{background:#efe8fa;color:#653bb8;border-color:transparent}
.filters label{font-weight:650}
.soft-select{border-radius:18px;background:#f6f3fa;border-color:#e7deef;color:#493754}
.soft-select-menu{border-radius:22px;border:1px solid #e5dcef;box-shadow:0 12px 40px #3822501a;background:#fff}
.soft-select-option{border-radius:14px;color:#493754}
.soft-select-option:hover,.soft-select-option[aria-selected=true]{background:#efe8fa;color:#653bb8}
.lane{background:#f1edf7;border-radius:22px;border-top-width:4px}
.lane h3{color:#51405f;font-weight:750}
.card{border:1px solid #eee7f3;border-radius:22px;background:#fff;box-shadow:0 3px 14px #38225006}
.card:hover{border-color:#d9c8ed;box-shadow:0 6px 22px #3822500c}
.card b{font-weight:750;color:#2f2639}.card small{color:#74697f}
dialog{border:1px solid #e9e0f2;border-radius:28px;box-shadow:0 24px 90px #37244729;background:#fff;color:#2f2639}
dialog::backdrop{background:#21122f59}
dialog .top,dialog>header{background:#fff}
dialog h2{font-size:23px;font-weight:800}
.task,.event,.web-team-row{border-color:#eee7f3}.task,.web-team-row{border-radius:22px;background:#fff}
th{color:#665370;background:#faf7fd;font-weight:750;border-color:#eee7f3}td{border-color:#eee7f3}tr[data-id]:hover{background:#faf7fd}
.activity-toolbar,.activity-tabs,.composer-tabs{border-color:#e9e0f2}
.activity-tabs button,.composer-tabs button{border-radius:18px}
.web-login{background:#fcfbfe}
.web-login>div{border:1px solid #e9e0f2;border-radius:30px;background:#fff;box-shadow:0 16px 60px #3822500c}
.web-brand{font-family:Manrope,Arial,sans-serif;font-weight:800;font-size:29px;letter-spacing:-1.2px}
.web-login h1{font-size:28px;line-height:1.2;font-weight:800;letter-spacing:-1px}
.web-login p{color:#74697f}
.web-auth-tabs{border-radius:22px;background:#f6f3fa}.web-auth-tabs button{border-radius:18px}
.web-account-password input,.web-password-login input{background:#f6f3fa;border-radius:16px}
.web-chats,.web-chat-sidebar,.web-chat-view{border-color:#ebe3f3;background:#fff}
.web-chat-row{border-color:#f1ecf6;border-radius:18px;color:#2f2639}
.web-chat-row:hover{background:#f7f2fb}.web-chat-row.active{background:#efe8fa}
.web-chat-avatar{background:#eee5f8;color:#653bb8}
.web-chat-preview,.web-chat-meta{color:#74697f}
.tg-bubble{border-radius:20px;border-color:#ece4f3}
.tg-composer-area{border-color:#e8dfee;background:#fff}
.tg-composer-area textarea{border-radius:18px;background:#f6f3fa}
.web-chat-filters button{border-radius:40px}
.status,#webUser{color:#74697f}
*{scrollbar-color:#d6c9e5 transparent;scrollbar-width:thin}
@media(max-width:720px){
 body{font-size:14px}
 input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px}
 #webApp>header{border-radius:0 0 22px 22px;border-top:0}
 #webApp>header>button[data-view]{font-size:12px;min-height:40px}
 .web-login>div{padding:30px 23px;border-radius:28px}
 .web-login h1{font-size:26px}
 dialog h2{font-size:22px}
 .card{border-radius:20px}.lane{border-radius:20px}
 .soft-select-menu{border-radius:20px}
}
@media(prefers-reduced-motion:reduce){button{transition:none}}
