/* Isy CHAT 1.2.1 — layout and appearance only. */
.isy-chat{--bg:#f6f7f4;--panel:#fff;--line:#e3e8e2;--text:#243a31;--muted:#65716b;--brand:#08734f;--brand-2:#075c43;--brand-soft:#e9f5ea;--green:#217848;--orange:#995d12;--orange-soft:#fff5e5;--red:#b43c49;--red-soft:#fff0f1;--radius:16px;font-family:"Noto Sans Thai","Leelawadee UI",Tahoma,system-ui,sans-serif;font-size:15px;line-height:1.55;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
.isy-chat button,.isy-chat input,.isy-chat select,.isy-chat textarea{font-family:inherit;touch-action:manipulation}
.isy-chat button{min-height:44px;transition:background .15s,border-color .15s}
.isy-chat button:disabled{cursor:not-allowed}
.isy-chat :is(button,summary,[role=button],a):focus-visible{outline:3px solid #428668;outline-offset:3px}
.isy-chat :is(input,select,textarea){min-height:46px;border:1px solid #cfd9d0;border-radius:10px;color:var(--text);font-size:15px;padding:11px 13px;background:#fff;max-width:100%;min-width:0}
.isy-chat :is(input,select,textarea):focus{outline:none;border-color:#228458;box-shadow:0 0 0 3px #dff0e5}
.isy-chat ::placeholder{color:#78837d;opacity:1}
.isy-chat .ui-icon{display:inline-block;width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.isy-chat .app{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.isy-chat .topbar{height:84px;min-height:84px;padding:0 24px 0 28px;position:relative;display:flex;justify-content:flex-start;gap:26px;background:#fff;color:var(--text);border-bottom:1px solid var(--line);z-index:40}
.isy-chat .brand-row{width:207px;flex:0 0 207px;gap:0}
.isy-chat .isy-brand{display:inline-flex;align-items:center;gap:15px;flex-shrink:0}
.isy-chat .isy-wordmark{display:block;width:76px;height:59px;object-fit:contain}
.isy-chat .isy-product{font-family:Arial,system-ui,sans-serif!important;display:block!important;font-size:23px!important;line-height:1;font-weight:700;letter-spacing:2px;color:#174b36!important;padding-bottom:10px}
.isy-chat .isy-page-heading{display:flex;align-items:center;gap:15px;flex:1;min-width:0;white-space:nowrap}
.isy-chat .isy-page-heading strong{font-size:17px;font-weight:650}
.isy-chat .isy-page-heading>span{color:var(--muted);font-size:13px;border-left:1px solid var(--line);padding-left:15px}
.isy-chat .isy-header-tools{display:flex;align-items:center;gap:12px}
.isy-chat .pill.ok{background:#edf7ed;color:#346b44;font-size:12px;line-height:1.5;padding:7px 10px;border-radius:7px;white-space:nowrap}
.isy-chat .mobile-menu-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:44px;border:1px solid #d7e0d8;border-radius:10px;background:#fff;color:var(--text);font-size:14px;font-weight:500;padding:9px 13px}
.isy-chat .mobile-menu-btn:hover,.isy-chat .isy-overview>summary:hover{background:#f4f7f1}
.isy-chat .top-actions{display:none;position:absolute;right:24px;top:calc(100% + 8px);width:285px;max-width:calc(100vw - 24px);padding:12px;flex-direction:column;align-items:stretch;gap:6px;background:#fff;color:var(--text);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px #1c372321;z-index:55;max-height:calc(100dvh - 110px);overflow:auto}
.isy-chat .top-actions.mobile-open{display:flex}
.isy-chat .top-actions .staff-name{display:block;font-size:14px;padding:9px 12px 13px;border-bottom:1px solid var(--line);margin-bottom:3px;color:#345b43}
.isy-chat .ghost{border:1px solid #d7e0d8;border-radius:10px;background:#fff;color:#45564b;padding:9px 12px;font-size:14px;display:inline-flex;gap:8px;align-items:center;justify-content:center}
.isy-chat .ghost:hover{background:#f2f6ef;border-color:#aac3ae}
.isy-chat .top-actions .ghost{text-align:left;justify-content:flex-start;border-color:transparent;line-height:1.55;white-space:normal}
.isy-chat #logoutBtn{color:#a64449;border-top:1px solid var(--line);border-radius:0 0 8px 8px}
.isy-chat .isy-overview>summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;font-size:14px;padding:9px 12px;border:1px solid #d7e0d8;border-radius:10px;white-space:nowrap}
.isy-chat .isy-overview>summary::-webkit-details-marker{display:none}
.isy-chat .isy-overview>summary .chevron{width:14px;height:14px;flex-basis:14px}
.isy-chat .isy-overview[open]>summary{background:#eaf3e8;border-color:#9bbda3;color:#176642}
.isy-chat .isy-overview[open] .chevron{transform:rotate(180deg)}
.isy-chat .summary-bar{position:absolute;right:24px;top:calc(100% + 9px);width:min(930px,calc(100vw - 48px));max-height:calc(100dvh - 120px);overflow:auto;border:1px solid #d5e2d5;background:#fff;border-radius:18px;padding:23px;box-shadow:0 18px 65px #16362126;z-index:51}
.isy-chat .summary-title{gap:12px;margin-bottom:18px;align-items:center}
.isy-chat .summary-title>div{flex:1}
.isy-chat .summary-title strong{font-size:20px;font-weight:650}
.isy-chat .summary-title #slaText{font-size:13px;line-height:1.6;color:#6e796f;margin-top:6px}
.isy-chat .icon-btn{width:44px;height:44px;min-width:44px;border:0;background:#f1f5ee;color:#405b46;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}
.isy-chat .branch-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:0;overflow:visible}
.isy-chat .branch-card{min-width:0;padding:17px;border-radius:13px;background:#fcfefb;border:1px solid #e0e7dc;box-shadow:none}
.isy-chat .branch-card.alert{border-color:#edc0c4;background:#fff8f8}
.isy-chat .branch-card.warn{border-color:#ead7b7;background:#fffcf5}
.isy-chat .branch-card .name{font-size:15px;font-weight:650}
.isy-chat .connected-badge{font-size:12px;padding:3px 7px;font-weight:500;border-radius:5px;background:#fff}
.isy-chat .connection-row{gap:5px;margin-top:9px}
.isy-chat .connection-seen{font-size:12px;margin-top:8px}
.isy-chat .branch-card .metrics{font-size:13px;gap:9px;margin-top:9px;flex-wrap:wrap}
.isy-chat .workspace{display:grid;grid-template-columns:235px 365px minmax(0,1fr);height:auto;min-height:0;flex:1;overflow:hidden}
.isy-chat .sidebar{padding:28px 15px 16px;background:#f8faf5;border-right:1px solid #e2e8de;display:flex;flex-direction:column;gap:0;overflow:auto;scrollbar-width:thin}
.isy-chat .isy-sidebar-label{font-size:13px;font-weight:600;color:#69766b;margin:0 12px 13px}
.isy-chat .nav-stack{display:grid;gap:7px}
.isy-chat .nav-item{position:relative;width:100%;min-height:49px;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:11px 12px;border:1px solid transparent;border-radius:11px;background:transparent;color:#526454;font-size:14px;font-weight:500;text-align:left;white-space:normal}
.isy-chat .nav-item:hover{background:#eef3e9}
.isy-chat .nav-item.active{background:#075c43;color:#fff;border-color:#075c43;font-weight:600;box-shadow:0 3px 8px #173d2410}
.isy-chat .nav-item.rescue:not(.active){color:#9e3844}
.isy-chat .nav-item>.isy-nav-label{font-size:14px;flex:1;min-width:0;line-height:1.6}
.isy-chat .nav-item>b{margin-left:auto;min-width:25px;height:25px;padding:2px 6px;display:grid;place-items:center;background:#e8eee3;border-radius:7px;font-size:12px;font-weight:600;line-height:1}
.isy-chat .nav-item.active>b{background:#ffffff29;color:#fff}
.isy-chat .nav-item[data-filter=facebook]{margin-top:13px}
.isy-chat .isy-channel-icon{width:21px;height:21px;min-width:21px!important;display:grid;place-items:center;border-radius:6px;font-size:16px!important;font-weight:700;line-height:1}
.isy-chat .isy-channel-icon.facebook{color:#fff;background:#347bd8;font-family:Arial,sans-serif}
.isy-chat .isy-channel-icon.line{color:#fff;background:#1f9e4c;font-family:Arial,sans-serif;font-size:12px!important}
.isy-chat .nav-item.fb-comment-nav.has-new-comment:not(.active){background:#fff0ef;color:#ac3a43;border-color:#f0d8d8}
.isy-chat .nav-item.fb-comment-nav.has-new-comment>b{background:#b54149;color:#fff}
.isy-chat .filter-block{display:grid;gap:15px;margin-top:25px;padding:21px 5px 0;border-top:1px solid #dfe6da}
.isy-chat .filter-block label{font-size:13px;color:#63725f;gap:7px}
.isy-chat .filter-block select{width:100%;height:46px;background:#fff;font-size:14px}
.isy-chat .legend{display:grid;margin:26px 5px 0;padding-top:20px;border-top:1px solid #dfe6da;font-size:12px;line-height:1.65;gap:8px;color:#697566}
.isy-chat .isy-legend-title{font-size:13px;color:#4a604c;margin-bottom:2px}
.isy-chat .dot{width:7px;height:7px;margin-right:7px}
.isy-chat .isy-legend-help{font-size:12px;color:#71816b;margin:8px 0 0}
.isy-chat .conversation-list-panel{border-right:1px solid #e0e6df;background:#fff;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.isy-chat .list-header{padding:26px 22px 18px;border-bottom:1px solid var(--line);flex:none}
.isy-chat .list-header>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:8px}
.isy-chat .list-header h2{font-size:22px;font-weight:650;line-height:1.4;letter-spacing:-.4px}
.isy-chat #listCount{font-size:12px;color:#596954;background:#f0f4eb;padding:5px 8px;white-space:nowrap;border-radius:7px}
.isy-chat .list-header .isy-search-box{position:relative;display:block;margin:0}
.isy-chat .isy-search-box .ui-icon{position:absolute;left:13px;top:15px;width:18px;height:18px;color:#8a9688;pointer-events:none}
.isy-chat .search{display:block;width:100%;height:48px;padding-left:41px;background:#f8faf6;border-color:#e0e6da;font-size:14px;border-radius:10px}
.isy-chat .conversation-list{flex:1;min-height:0;padding:10px 10px 18px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d5dfce transparent;overscroll-behavior:contain}
.isy-chat .conv{display:grid;grid-template-columns:41px minmax(0,1fr);gap:10px;padding:14px 11px 13px;margin-bottom:5px;min-height:117px;border:1px solid transparent!important;border-bottom:1px solid #edf0e9!important;border-radius:11px;background:#fff!important;transition:background .12s;outline-offset:-3px}
.isy-chat .conv:hover{background:#f7faf2!important}
.isy-chat .conv.active{background:#edf5e5!important;border:1px solid #aaca98!important;box-shadow:0 2px 6px #33481c08}
.isy-chat .avatar{width:41px;height:41px;border-radius:13px;display:grid;place-items:center;background:#edf3e9;font-family:Arial,sans-serif;font-size:12px;font-weight:700;letter-spacing:-.3px}
.isy-chat .avatar.line{background:#e2f6e5;color:#258846}
.isy-chat .avatar.facebook{background:#e8f0fd;color:#386eb4}
.isy-chat .conv-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:3px 5px;min-width:0}
.isy-chat .conv-name{grid-column:1;grid-row:1;font-size:15px;font-weight:650;max-width:none;color:#263b2f;line-height:1.6}
.isy-chat .branch-tag{grid-column:1;grid-row:2;justify-self:start;border:0;border-radius:0;padding:0;color:#75806c;max-width:100%;font-size:12px;line-height:1.6}
.isy-chat .wait{grid-column:2;grid-row:1 / span 2;align-self:start;max-width:118px;font-size:11px;font-weight:600;border-radius:6px;padding:4px 6px;margin-left:0;line-height:1.5;white-space:normal;text-align:center}
.isy-chat .wait.ok{color:#367249;background:#eaf4e8}
.isy-chat .wait.warn{color:#925d17;background:#fff1d9}
.isy-chat .wait.rescue{color:#ae3b48;background:#ffeaec}
.isy-chat .preview{margin-top:7px;color:#516149;font-size:13px;line-height:1.6}
.isy-chat .conv-bottom{font-size:11px;line-height:1.5;color:#77826f;gap:4px;margin-top:7px;flex-wrap:wrap}
.isy-chat .conv-bottom>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.isy-chat .unread{font-size:10px;border-radius:6px;min-width:19px;padding:1px 4px}
.isy-chat .empty-list{padding:50px 20px;font-size:14px;line-height:1.75;color:#70806b}
.isy-chat .chat-panel{margin:16px;min-height:0;min-width:0;overflow:hidden;border:1px solid #e0e6dc;border-radius:18px;background:#f4f7f0;box-shadow:0 2px 7px #19321b04;position:relative}
.isy-chat .empty-chat{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px 25px;gap:0;height:100%;text-align:center}
.isy-chat .isy-empty-graphic{width:140px;height:145px;position:relative;margin-bottom:18px}
.isy-chat .isy-empty-bubble{width:117px;height:117px;display:grid;place-items:center;border-radius:36px;background:#e2edda;transform:rotate(-9deg)}
.isy-chat .isy-empty-bubble>.ui-icon{width:55px;height:55px;stroke-width:1.4;color:#468152;transform:rotate(9deg)}
.isy-chat .isy-empty-check{position:absolute;bottom:15px;right:3px;width:48px;height:48px;border:5px solid #f4f7f0;border-radius:17px;background:#0e7351;color:#fff;display:grid;place-items:center;transform:rotate(8deg)}
.isy-chat .empty-chat h3{font-size:23px;letter-spacing:-.4px;font-weight:650;color:#314f39;margin:0 0 9px;line-height:1.5}
.isy-chat .empty-chat p{font-size:14px;color:#728269;line-height:1.7}
.isy-chat .isy-empty-channels{display:flex;gap:9px;margin-top:24px}
.isy-chat .isy-platform{font-size:12px;display:inline-flex;align-items:center;gap:6px;color:#73836b;border:1px solid #dce6d6;border-radius:7px;padding:5px 9px;background:#fff9}
.isy-chat .isy-platform:before{content:"";width:6px;height:6px;background:#43a860;border-radius:50%}
.isy-chat .isy-platform.facebook:before{background:#4b81c7}
.isy-chat .chat-view{height:100%;display:flex;flex-direction:column;min-height:0}
.isy-chat .chat-header{background:#fff;padding:20px 22px;gap:14px;flex-wrap:wrap;align-items:center;flex:none;border-bottom:1px solid var(--line)}
.isy-chat .chat-header>div:nth-child(2){flex:1 1 180px;min-width:0}
.isy-chat .chat-header h2{font-size:18px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}
.isy-chat .chat-title-row{gap:9px;flex-wrap:wrap}
.isy-chat .channel-badge{font-size:11px;padding:4px 7px;line-height:1.3;white-space:nowrap;border-radius:6px;font-weight:500}
.isy-chat .chat-meta{font-size:13px;margin-top:4px;color:#6e7a68;line-height:1.6}
.isy-chat .chat-actions{flex-direction:row;flex-wrap:wrap;gap:7px;max-width:none}
.isy-chat .chat-actions button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:13px;padding:9px 11px;border-radius:9px;font-weight:500;max-width:none;white-space:nowrap}
.isy-chat .chat-actions .ui-icon{width:16px;height:16px;flex-basis:16px}
.isy-chat .followup-soft{background:#fff;color:#705d2d;border-color:#dcd5c2}
.isy-chat .complete-soft{background:#eaf5e6;color:#3f7137;border-color:#c8dcbe}
.isy-chat .danger-soft{background:#fff0ef;color:#ac3543;border-color:#f0b9bf}
.isy-chat .rescue-banner{padding:11px 22px;font-size:13px;line-height:1.65;font-weight:500;flex:none}
.isy-chat .messages{padding:28px 25px;gap:20px;scrollbar-width:thin;min-height:0;flex:1;overflow:auto}
.isy-chat .msg{max-width:85%}
.isy-chat .bubble{border-radius:16px;padding:12px 15px;font-size:15px;line-height:1.8;box-shadow:0 2px 3px #24442804}
.isy-chat .msg.customer .bubble{background:#fff;border:1px solid #e0e6d9;border-bottom-left-radius:5px}
.isy-chat .msg.staff .bubble{background:#dceccd;color:#29412c;border-bottom-right-radius:5px}
.isy-chat .msg-meta{font-size:11px;color:#7c8774;line-height:1.6;margin-top:7px;padding:0 3px}
.isy-chat .msg.status-msg .bubble{font-size:12px;padding:7px 11px;background:#eef3e8}
.isy-chat .composer{padding:14px 20px 18px;background:#fff;border-top:1px solid #e2e7dc;flex:none}
.isy-chat .assignment-row{font-size:12px;margin-bottom:11px;color:#6e7b66;line-height:1.6;gap:8px}
.isy-chat .reply-form{gap:10px;align-items:stretch}
.isy-chat .reply-form textarea{font-size:15px;line-height:1.7;min-height:66px;max-height:150px;resize:vertical;min-width:0;border:1px solid #cfdbca;background:#fafcf7;border-radius:11px;padding:12px 14px}
.isy-chat .primary{background:#08734f;color:#fff;border:0;border-radius:10px;font-size:15px;font-weight:600;padding:12px 18px}
.isy-chat .primary:hover{background:#075c43}
.isy-chat #sendBtn{min-width:92px;display:flex;align-items:center;justify-content:center;gap:7px;align-self:stretch;font-size:13px;padding:12px}
.isy-chat #sendBtn .ui-icon{width:18px;height:18px;flex-basis:18px}
.isy-chat .form-error{font-size:13px;line-height:1.6;min-height:0;margin-top:8px}
.isy-chat .form-error:empty{display:none}
.isy-chat .link-btn{font-size:14px;font-weight:500;min-height:44px}
.isy-chat .modal{background:#122b2066;backdrop-filter:blur(3px)}
.isy-chat .modal-card{padding:28px;border-radius:20px;max-height:90dvh;overflow:auto;border:1px solid #dce6d7;box-shadow:0 25px 85px #1d382533}
.isy-chat .modal-head{margin-bottom:22px;gap:16px}
.isy-chat .modal-head h3{font-size:22px;font-weight:650;line-height:1.5}
.isy-chat .modal-head p{font-size:13px;line-height:1.7;margin-top:5px}
.isy-chat .tabs{padding:5px;background:#f2f6ed;border:0;border-radius:11px;gap:5px;margin-bottom:23px}
.isy-chat .tab{border:0;border-radius:8px;flex:1;font-size:13px;padding:10px;font-weight:500}
.isy-chat .tab.active{background:#fff;color:#17633e;box-shadow:0 2px 5px #24382710}
.isy-chat .settings-form{gap:17px}
.isy-chat .settings-form label{font-size:14px;gap:8px;color:#576950}
.isy-chat .form-help{font-size:13px;line-height:1.75}
.isy-chat .channel-row{border-radius:12px;padding:15px;grid-template-columns:minmax(180px,1fr) minmax(140px,.8fr) auto;font-size:14px}
.isy-chat .channel-display,.isy-chat .channel-health{font-size:13px}
.isy-chat .channel-sub,.isy-chat .channel-health span,.isy-chat .channel-platform{font-size:12px;line-height:1.6}
.isy-chat .manager-summary-item{font-size:13px;padding:9px 12px;border-radius:9px}
.isy-chat .facebook-consent-box{line-height:1.75;padding:15px}
.isy-chat .facebook-consent-box strong{font-size:14px}
.isy-chat .facebook-consent-box span,.isy-chat .oauth-result-list{font-size:13px}
.isy-chat .facebook-page-choice input{width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:#08734f}
.isy-chat .toast{background:#174b34;font-size:14px;padding:14px 20px;border-radius:12px;line-height:1.6}
.isy-chat .login-shell{height:100vh;height:100dvh;min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:safe center;padding:42px 20px;background:radial-gradient(ellipse at 25% 90%,#e0f0df 0,transparent 45%),#f6f8f2}
.isy-chat .isy-login-layout{width:min(450px,100%);flex-shrink:0}
.isy-chat .login-card{width:100%;background:#fff;border:1px solid #e2e9dc;border-radius:23px;padding:40px 40px 29px;box-shadow:0 20px 60px #1e48230c}
.isy-chat .login-card>.isy-brand{margin-bottom:32px;gap:18px}
.isy-chat .login-card .isy-wordmark{width:87px;height:67px}
.isy-chat .login-card .isy-product{font-size:25px!important}
.isy-chat .isy-login-heading{margin-bottom:29px}
.isy-chat .login-card h1{font-size:25px;line-height:1.55;font-weight:650;letter-spacing:-.5px;margin:0 0 7px}
.isy-chat .login-card p{font-size:14px;color:#7a8572;line-height:1.7;margin:0}
.isy-chat .login-card form{gap:19px}
.isy-chat .login-card label{font-size:14px;color:#4f6148;gap:8px}
.isy-chat .login-card input{height:52px;border-radius:10px;font-size:16px;background:#fcfdfb;padding:12px 14px}
.isy-chat .login-card .primary{height:52px;margin-top:4px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:15px}
.isy-chat .login-card #forgotBtn{margin:-7px auto 0;min-height:44px}
.isy-chat .isy-login-footer{margin-top:26px;border-top:1px solid #e4eadf;padding-top:21px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:#7a8573}
.isy-chat .isy-login-footer .isy-platform{border:0;padding:0;font-size:12px}
.isy-chat .isy-login-tagline{font-size:14px;margin:22px 0 0;color:#849479}
@media(min-width:981px) and (max-width:1250px){
 .isy-chat .workspace{grid-template-columns:214px 330px minmax(0,1fr)}
 .isy-chat .topbar{padding-left:20px;gap:20px}.isy-chat .brand-row{width:174px;flex-basis:174px}
 .isy-chat .isy-page-heading>span{display:none}.isy-chat .isy-header-tools{gap:8px}
 .isy-chat .sidebar{padding-left:10px;padding-right:10px}.isy-chat .nav-item{padding:10px 9px;gap:8px}
 .isy-chat .list-header{padding:25px 18px 18px}.isy-chat .list-header h2{font-size:21px}
 .isy-chat .conv{grid-template-columns:35px minmax(0,1fr);gap:8px;padding-left:8px;padding-right:8px}.isy-chat .avatar{width:35px;height:35px;border-radius:11px;font-size:11px}
 .isy-chat .conv-name{font-size:14px}.isy-chat .wait{font-size:10px;max-width:108px}
 .isy-chat .chat-panel{margin:12px}.isy-chat .chat-header{padding:17px;gap:11px}.isy-chat .chat-header>div:nth-child(2){flex-basis:100%}.isy-chat .chat-actions{width:100%}.isy-chat .chat-actions button{flex:1;padding:8px;font-size:12px}
 .isy-chat .messages{padding:22px 17px}.isy-chat .composer{padding:12px 15px 14px}.isy-chat .reply-form{gap:7px}.isy-chat #sendBtn{min-width:70px}.isy-chat #sendBtn .ui-icon{display:none}
}
@media(min-width:901px) and (max-width:980px){
 .isy-chat .topbar{height:76px;min-height:76px;padding:0 20px;gap:20px}.isy-chat .brand-row{width:auto;flex-basis:auto;margin-right:auto}.isy-chat .isy-page-heading{display:none}
 .isy-chat .workspace{grid-template-columns:310px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .isy-chat .sidebar{grid-column:1/-1;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:12px;border-right:0;border-bottom:1px solid var(--line)}
 .isy-chat .isy-sidebar-label,.isy-chat .legend{display:none}.isy-chat .nav-stack{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.isy-chat .nav-item{min-height:44px;padding:6px 9px;font-size:12px;gap:5px}.isy-chat .nav-item>.isy-nav-label{font-size:12px}.isy-chat .nav-item[data-filter=facebook]{margin:0}.isy-chat .nav-item .ui-icon,.isy-chat .nav-item>.isy-channel-icon{display:none}.isy-chat .nav-item>b{font-size:11px;min-width:22px;height:22px}
 .isy-chat .filter-block{border:0;border-left:1px solid #e1e7dc;padding:0 0 0 12px;margin:0;gap:6px}.isy-chat .filter-block label{display:flex;align-items:center;font-size:12px;white-space:nowrap;gap:8px}.isy-chat .filter-block select{height:44px;min-height:44px;font-size:13px;padding:8px}
 .isy-chat .list-header{padding:18px 15px 15px}.isy-chat .list-header h2{font-size:20px}.isy-chat .conv{grid-template-columns:32px minmax(0,1fr);gap:7px;padding:13px 7px}.isy-chat .avatar{width:32px;height:32px;border-radius:10px;font-size:10px}.isy-chat .conv-name{font-size:14px}.isy-chat .wait{font-size:10px;max-width:104px}
 .isy-chat .chat-panel{margin:10px}.isy-chat .chat-header{padding:16px;gap:10px}.isy-chat .chat-header>div:nth-child(2){flex-basis:100%}.isy-chat .chat-actions{width:100%}.isy-chat .chat-actions button{flex:1;padding:8px 5px;font-size:12px}.isy-chat .chat-actions .ui-icon{display:none}.isy-chat .messages{padding:19px 14px}.isy-chat .rescue-banner{padding:10px 16px;font-size:12px}.isy-chat .composer{padding:12px}.isy-chat #sendBtn{min-width:70px;font-size:12px}.isy-chat #sendBtn .ui-icon{display:none}.isy-chat .reply-form{gap:6px}.isy-chat .empty-chat h3{font-size:21px}
}
@media(max-width:760px){.isy-chat .channel-row{grid-template-columns:1fr}.isy-chat .channel-row-actions{justify-content:flex-end}}
@media(max-width:900px){
 .isy-chat{--mobile-topbar:calc(66px + env(safe-area-inset-top,0px));font-size:14px}
 .isy-chat #appView.app{height:100dvh!important;min-height:0!important;max-height:100dvh!important;display:block;overflow:hidden}
 .isy-chat .topbar{height:var(--mobile-topbar);min-height:var(--mobile-topbar);padding:env(safe-area-inset-top,0px) 12px 0;gap:8px}
 .isy-chat .brand-row{width:auto;flex:0 0 auto;margin-right:auto}.isy-chat .isy-brand{gap:9px}.isy-chat .isy-wordmark{width:56px;height:44px}.isy-chat .isy-product{font-size:18px!important;letter-spacing:1.4px;padding-bottom:7px}
 .isy-chat .isy-page-heading,.isy-chat .isy-header-tools>.pill{display:none}.isy-chat .isy-header-tools{gap:7px}
 .isy-chat .mobile-menu-btn{padding:9px;width:44px;border-radius:11px}.isy-chat .mobile-menu-btn>span{display:none}
 .isy-chat .isy-overview>summary{font-size:12px;gap:5px;padding:9px 8px;border-radius:11px}.isy-chat .isy-overview>summary>.ui-icon{width:17px;height:17px;flex-basis:17px}.isy-chat .isy-overview>summary .chevron{display:none}
 .isy-chat .summary-bar{display:block;right:8px;top:calc(100% + 7px);width:calc(100vw - 16px);max-height:calc(100dvh - var(--mobile-topbar) - 16px);padding:17px 14px;border-radius:16px}
 .isy-chat .summary-title{gap:8px;flex-wrap:wrap;margin-bottom:16px}.isy-chat .summary-title>div{order:0;flex:1}.isy-chat .summary-title strong{font-size:19px}.isy-chat #slaText{font-size:12px;max-width:230px}.isy-chat #refreshBtn{order:2;width:100%}.isy-chat .isy-close-overview{order:1;align-self:flex-start}
 .isy-chat .branch-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.isy-chat .branch-card{padding:12px 10px}.isy-chat .branch-card .name{font-size:14px}.isy-chat .connected-badge{font-size:10px;padding:2px 5px}.isy-chat .connection-seen{font-size:11px}.isy-chat .branch-card .metrics{font-size:12px;gap:5px}
 .isy-chat .top-actions{right:9px;top:calc(100% + 7px);padding:12px;border-radius:16px;max-height:calc(100dvh - var(--mobile-topbar) - 16px)}
 .isy-chat .workspace{position:absolute!important;top:var(--mobile-topbar)!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:0!important;max-height:none!important;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
 .isy-chat .sidebar{display:block;padding:10px 10px 11px;border:0;border-bottom:1px solid #e0e6d9;background:#f7faf3;overflow:hidden!important}
 .isy-chat .isy-sidebar-label,.isy-chat .legend{display:none}
 .isy-chat .nav-stack{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible!important;padding:0!important;width:100%!important;max-width:100%!important;scrollbar-width:none;touch-action:manipulation!important}
 .isy-chat .nav-stack .nav-item{min-width:0!important;width:100%;min-height:48px;display:flex;align-items:center;justify-content:flex-start;padding:6px 8px;border:1px solid #dce5d5;background:#fff;border-radius:9px;gap:4px;white-space:normal;touch-action:manipulation!important}
 .isy-chat .nav-item>.isy-nav-label{font-size:12px!important;line-height:1.45;min-width:0;font-weight:500}.isy-chat .nav-item>.ui-icon,.isy-chat .nav-item>.isy-channel-icon{display:none}.isy-chat .nav-item>b{min-width:20px;height:20px;padding:2px 4px;font-size:10px;margin-left:0;border-radius:5px}.isy-chat .nav-item[data-filter=facebook]{margin:0}
 .isy-chat .nav-stack .nav-item.active{background:#075c43;border-color:#075c43;color:#fff}.isy-chat .nav-item.active>b{background:#ffffff2b;color:#fff}
 .isy-chat .filter-block{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:0;margin:10px 0 0;padding:0}.isy-chat .filter-block label{font-size:11px;gap:4px;color:#718169}.isy-chat .filter-block select{height:44px;min-height:44px;padding:8px 10px;font-size:16px;border-radius:9px}
 .isy-chat .conversation-list-panel{height:100%!important;min-height:0!important;max-height:none!important;border:0;overflow:hidden!important}
 .isy-chat .list-header{padding:15px 15px 12px}.isy-chat .list-header>div:first-child{margin-bottom:11px}.isy-chat .list-header h2{font-size:21px}.isy-chat #listCount{font-size:12px;padding:4px 7px}.isy-chat .search{font-size:16px;height:46px;min-height:46px}.isy-chat .isy-search-box .ui-icon{top:14px}
 .isy-chat .conversation-list{padding:8px 9px max(8px,env(safe-area-inset-bottom,0px))!important;scrollbar-width:thin}.isy-chat .conv{grid-template-columns:43px minmax(0,1fr);padding:13px 11px;gap:10px;min-height:121px;margin-bottom:5px}.isy-chat .avatar{width:43px;height:43px;font-size:12px}.isy-chat .conv-name{font-size:15px;max-width:none}.isy-chat .branch-tag{font-size:12px;max-width:100%}.isy-chat .wait{font-size:11px;max-width:117px}.isy-chat .preview{font-size:14px}.isy-chat .conv-bottom{font-size:11px}
 .isy-chat .chat-panel{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0;border:0;border-radius:0;z-index:30;transform:translateX(100%);visibility:hidden;pointer-events:none;box-shadow:none;transition:transform .18s ease}
 .isy-chat .chat-panel.mobile-open{transform:translateX(0);visibility:visible;pointer-events:auto}
 .isy-chat .chat-header{display:grid;grid-template-columns:44px minmax(0,1fr);gap:9px;padding:11px 12px;background:#fff}
 .isy-chat .chat-header:before{content:none}.isy-chat .chat-back{display:grid;place-items:center;grid-column:1;grid-row:1;width:44px;height:44px;min-height:44px;border-radius:11px;background:#f0f5e9;color:#496540;border:0;padding:0}
 .isy-chat .chat-back>.ui-icon{width:22px;height:22px}.isy-chat .chat-header>div:nth-child(2){grid-column:2;grid-row:1;padding:0;min-width:0}.isy-chat .chat-header h2{font-size:16px;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.65}.isy-chat .chat-title-row{gap:7px;flex-wrap:nowrap}.isy-chat .channel-badge{font-size:10px;padding:4px 6px;flex:none}.isy-chat .chat-meta{max-width:none;font-size:12px;margin-top:2px;line-height:1.6}
 .isy-chat .chat-actions{grid-column:1/-1;grid-row:2;display:flex;flex-direction:row;flex-wrap:nowrap;max-width:none;width:100%;gap:7px;margin-top:2px}.isy-chat .chat-actions button,.isy-chat .chat-actions .followup-soft,.isy-chat .chat-actions .complete-soft{flex:1;width:auto;min-width:0;max-width:none;min-height:44px;font-size:12px;padding:7px 5px}.isy-chat .chat-actions .ui-icon{width:15px;height:15px;flex-basis:15px}
 .isy-chat .rescue-banner{padding:10px 13px;font-size:12px;line-height:1.6}.isy-chat .messages{padding:20px 14px;gap:17px}.isy-chat .msg{max-width:89%}.isy-chat .bubble{font-size:15px;line-height:1.75;padding:10px 13px}.isy-chat .msg-meta{font-size:11px;margin-top:5px}
 .isy-chat .composer{padding:11px 12px calc(12px + env(safe-area-inset-bottom,0px))}.isy-chat .assignment-row{font-size:11px;margin-bottom:9px}.isy-chat .assignment-row>span:first-child{max-width:100%}.isy-chat .reply-form{gap:8px}.isy-chat .reply-form textarea{font-size:16px;min-height:56px;max-height:112px;padding:10px 12px;resize:none}.isy-chat #sendBtn{min-width:73px;font-size:12px;padding:10px}.isy-chat #sendBtn .ui-icon{display:none}
 .isy-chat .mobile-push-bar{font-size:12px;line-height:1.6;padding:10px 12px}.isy-chat .mobile-push-bar .primary{min-height:44px;padding:8px 10px;font-size:12px}
 .isy-chat .modal{padding:0;backdrop-filter:none}.isy-chat .modal-card,.isy-chat .channel-manager-card{width:100%;max-width:none;height:100dvh;max-height:100dvh;padding:calc(20px + env(safe-area-inset-top,0px)) 17px calc(20px + env(safe-area-inset-bottom,0px));border:0;border-radius:0}
 .isy-chat .modal-head{margin:-20px -17px 21px;padding:20px 17px 15px;top:-20px;background:#fff;gap:10px}.isy-chat .modal-head h3{font-size:20px}.isy-chat .modal-head p{font-size:13px}.isy-chat .settings-form input,.isy-chat .settings-form textarea,.isy-chat .settings-form select{font-size:16px}.isy-chat .tab{font-size:12px;line-height:1.6;padding:10px 6px}.isy-chat .channel-manager-list{max-height:none}
 .isy-chat .login-shell{padding:24px 16px;height:100dvh;min-height:0;overflow:auto}.isy-chat .login-card{padding:31px 27px 24px;border-radius:20px}.isy-chat .login-card>.isy-brand{margin-bottom:27px;gap:15px}.isy-chat .login-card .isy-wordmark{width:76px;height:59px}.isy-chat .login-card .isy-product{font-size:23px!important}.isy-chat .login-card h1{font-size:23px}.isy-chat .isy-login-heading{margin-bottom:25px}.isy-chat .login-card form{gap:17px}.isy-chat .isy-login-footer{gap:7px}.isy-chat .isy-login-tagline{font-size:13px;margin-top:20px}
}
@media(max-width:370px){
 .isy-chat .nav-stack .nav-item{padding:6px}.isy-chat .nav-item>.isy-nav-label{font-size:11px!important}.isy-chat .conv{grid-template-columns:34px minmax(0,1fr);gap:7px;padding:12px 8px}.isy-chat .avatar{width:34px;height:34px;font-size:10px;border-radius:10px}.isy-chat .conv-name{font-size:14px}.isy-chat .wait{font-size:10px;max-width:105px}.isy-chat .chat-actions .ui-icon{display:none}.isy-chat .login-card{padding:29px 22px 24px}.isy-chat .login-card h1{font-size:21px}.isy-chat .isy-login-footer{font-size:11px}.isy-chat .isy-login-footer .isy-platform{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.isy-chat *{transition:none!important;scroll-behavior:auto!important}}
.isy-chat .top-actions>.pill{display:block;text-align:center}
.isy-chat .nav-item>.isy-nav-label{font-weight:inherit}

/* 1.2.0: compact reading layout and reference artwork. Existing controls retained. */
.isy-chat .topbar{height:60px;min-height:60px;padding:0 18px;gap:20px}
.isy-chat .brand-row{width:190px;flex-basis:190px}
.isy-chat .isy-brand{gap:10px}
.isy-chat .isy-wordmark{display:block;width:57px;height:44px;object-fit:contain}
.isy-chat img.isy-product{display:block!important;width:94px;height:32px;padding:0!important;margin-top:-4px;object-fit:contain}
.isy-chat .isy-page-heading{gap:12px}
.isy-chat .isy-page-heading strong{font-size:16px}
.isy-chat .isy-header-tools{gap:8px}
.isy-chat .workspace{grid-template-columns:208px 320px minmax(0,1fr)}
.isy-chat .sidebar{padding:16px 11px 12px}
.isy-chat .isy-sidebar-label{margin:0 10px 9px}
.isy-chat .nav-stack{gap:4px}
.isy-chat .nav-item{min-height:44px;padding:8px 9px;gap:8px}
.isy-chat .nav-item>.isy-nav-label{font-size:13px}
.isy-chat .nav-item[data-filter=facebook]{margin-top:8px}
.isy-chat .filter-block{margin-top:17px;padding:14px 3px 0;gap:10px}
.isy-chat .filter-block label{gap:4px}
.isy-chat .filter-block select{height:44px;min-height:44px;padding:8px 10px}
.isy-chat .legend{margin:18px 3px 0;padding-top:14px;gap:5px}
.isy-chat .isy-legend-help{display:none}
.isy-chat .list-header{padding:15px 15px 12px}
.isy-chat .list-header>div:first-child{margin-bottom:10px}
.isy-chat .list-header h2{font-size:20px}
.isy-chat .search{height:44px;min-height:44px}
.isy-chat .isy-search-box .ui-icon{top:13px}
.isy-chat .conversation-list{padding:5px 7px 10px}
.isy-chat .conv{min-height:96px;grid-template-columns:34px minmax(0,1fr);padding:10px 8px;gap:8px;margin-bottom:3px}
.isy-chat .avatar{width:34px;height:34px;border-radius:10px;font-size:11px}
.isy-chat .conv-name{font-size:14px}
.isy-chat .wait{font-size:10px;max-width:108px;padding:3px 5px}
.isy-chat .preview{margin-top:4px}
.isy-chat .conv-bottom{margin-top:4px}
.isy-chat .chat-panel{margin:8px;border-radius:13px}
.isy-chat .chat-header{padding:9px 14px;gap:8px;min-height:62px}
.isy-chat .chat-header>div:nth-child(2){flex:1 1 155px;padding:0}
.isy-chat .chat-header h2{font-size:16px;line-height:1.5}
.isy-chat .chat-title-row{gap:7px}
.isy-chat .chat-meta{font-size:12px;margin-top:2px;line-height:1.5}
.isy-chat .chat-actions{width:auto;gap:6px;flex-wrap:nowrap;flex-shrink:0}
.isy-chat .chat-actions button{flex:0 0 auto;min-height:44px;padding:7px 9px;font-size:12px}
.isy-chat .rescue-banner{padding:7px 14px;font-size:12px;line-height:1.5}
.isy-chat .messages{padding:14px 17px;gap:10px}
.isy-chat .bubble{font-size:16px;line-height:1.6;padding:8px 12px;border-radius:13px}
.isy-chat .msg-meta{margin-top:3px;line-height:1.4}
.isy-chat .msg.status-msg .bubble{padding:5px 10px}
.isy-chat .composer{padding:8px 12px 10px}
.isy-chat .assignment-row{margin-bottom:6px;font-size:11px;line-height:1.5}
.isy-chat .reply-form{gap:8px;align-items:flex-end}
.isy-chat .reply-form textarea{height:48px;min-height:48px;max-height:112px;font-size:16px;line-height:1.55;padding:10px 12px;resize:none;border-radius:10px}
.isy-chat #sendBtn{min-width:80px;min-height:48px;height:48px;align-self:flex-end;padding:10px 12px}
.isy-chat .summary-bar{top:calc(100% + 7px);max-height:calc(100dvh - 82px)}
.isy-chat .top-actions{top:calc(100% + 7px);max-height:calc(100dvh - 82px)}
.isy-chat .login-card .isy-brand{gap:15px}
.isy-chat .login-card .isy-wordmark{width:87px;height:68px}
.isy-chat .login-card img.isy-product{width:128px;height:43px;margin-top:-5px}
@media(min-width:981px) and (max-width:1250px){
 .isy-chat .workspace{grid-template-columns:196px 300px minmax(0,1fr)}
 .isy-chat .brand-row{width:176px;flex-basis:176px}
 .isy-chat .chat-header>div:nth-child(2){flex-basis:155px}
 .isy-chat .chat-actions{width:auto}
 .isy-chat .chat-actions button{flex:0 0 auto;padding:7px;font-size:12px}
 .isy-chat .chat-actions .ui-icon{display:none}
 .isy-chat .chat-header{padding:9px 11px}
 .isy-chat .chat-meta{font-size:11px}
 .isy-chat .messages{padding:12px 14px}
 .isy-chat .conv{padding:9px 7px;gap:7px}
}
@media(min-width:901px) and (max-width:980px){
 .isy-chat .brand-row{width:auto;flex-basis:auto}
 .isy-chat .workspace{grid-template-columns:280px minmax(0,1fr)}
 .isy-chat .sidebar{padding:8px 12px;gap:10px;grid-template-columns:minmax(0,1fr) 185px}
 .isy-chat .nav-stack{gap:4px}
 .isy-chat .nav-item{padding:4px 7px;gap:4px;min-height:44px}
 .isy-chat .nav-item>.isy-nav-label{font-size:12px}
 .isy-chat .nav-item[data-filter=facebook]{margin-top:0}
 .isy-chat .filter-block{margin:0;padding:0 0 0 10px;gap:4px}
 .isy-chat .filter-block select{padding:7px;font-size:12px}
 .isy-chat .chat-header>div:nth-child(2){flex-basis:155px}
 .isy-chat .chat-actions{width:auto}
 .isy-chat .chat-actions button{flex:0 0 auto;padding:7px;font-size:12px}
 .isy-chat .chat-header{padding:8px 10px}
 .isy-chat .messages{padding:11px 12px}
 .isy-chat .conv{grid-template-columns:28px minmax(0,1fr);padding:9px 6px;gap:6px}
 .isy-chat .avatar{width:28px;height:28px;font-size:9px;border-radius:9px}
 .isy-chat .wait{max-width:98px;font-size:10px;padding:3px 4px}
 .isy-chat .composer{padding:7px 9px 9px}
}
@media(max-width:900px){
 .isy-chat{--mobile-topbar:calc(56px + env(safe-area-inset-top,0px))}
 .isy-chat .topbar{height:var(--mobile-topbar);min-height:var(--mobile-topbar);padding:env(safe-area-inset-top,0px) 10px 0;gap:7px}
 .isy-chat .brand-row{width:auto;flex:0 0 auto}
 .isy-chat .isy-brand{gap:7px}
 .isy-chat .isy-wordmark{width:49px;height:38px}
 .isy-chat img.isy-product{width:79px;height:27px;margin-top:-3px}
 .isy-chat .isy-header-tools{gap:6px}
 .isy-chat .isy-overview>summary{padding:8px 7px;gap:4px;font-size:12px}
 .isy-chat .workspace{grid-template-columns:minmax(0,1fr)}
 .isy-chat .sidebar{padding:7px 8px 8px}
 .isy-chat .nav-stack{gap:4px}
 .isy-chat .nav-stack .nav-item{min-height:44px;padding:4px 7px}
 .isy-chat .nav-item[data-filter=facebook]{margin-top:0}
 .isy-chat .filter-block{margin:7px 0 0;padding:0;gap:7px}
 .isy-chat .filter-block label{font-size:11px;gap:3px}
 .isy-chat .filter-block select{font-size:16px;height:44px;min-height:44px}
 .isy-chat .list-header{padding:10px 12px}
 .isy-chat .list-header>div:first-child{margin-bottom:8px}
 .isy-chat .list-header h2{font-size:19px}
 .isy-chat .search{font-size:16px;height:44px;min-height:44px}
 .isy-chat .conversation-list{padding:5px 7px max(6px,env(safe-area-inset-bottom,0px))!important}
 .isy-chat .conv{min-height:103px;grid-template-columns:36px minmax(0,1fr);padding:10px 9px;gap:8px}
 .isy-chat .avatar{width:36px;height:36px;font-size:11px}
 .isy-chat .conv-name{font-size:15px}
 .isy-chat .wait{font-size:11px;max-width:114px}
 .isy-chat .chat-panel{margin:0;border-radius:0}
 .isy-chat .chat-header{padding:7px 10px;gap:5px 8px;min-height:0}
 .isy-chat .chat-header>div:nth-child(2){flex:none}
 .isy-chat .chat-header h2{font-size:16px;line-height:1.5}
 .isy-chat .chat-meta{font-size:12px;margin-top:1px;line-height:1.5}
 .isy-chat .chat-actions{width:100%;gap:6px;margin-top:0}
 .isy-chat .chat-actions button,.isy-chat .chat-actions .followup-soft,.isy-chat .chat-actions .complete-soft{min-height:44px;flex:1;padding:6px;font-size:12px}
 .isy-chat .rescue-banner{padding:6px 11px;font-size:12px;line-height:1.5}
 .isy-chat .messages{padding:11px 12px;gap:9px}
 .isy-chat .bubble{font-size:16px;line-height:1.6;padding:8px 11px}
 .isy-chat .msg-meta{font-size:11px;margin-top:3px}
 .isy-chat .composer{padding:7px 10px calc(8px + env(safe-area-inset-bottom,0px))}
 .isy-chat .assignment-row{margin-bottom:5px;font-size:11px;line-height:1.5}
 .isy-chat .reply-form textarea{height:48px;min-height:48px;max-height:112px;font-size:16px;padding:10px 11px}
 .isy-chat #sendBtn{height:48px;min-height:48px;min-width:69px;padding:9px}
 .isy-chat .summary-bar,.isy-chat .top-actions{max-height:calc(100dvh - var(--mobile-topbar) - 16px)}
 .isy-chat .login-card .isy-brand{gap:13px}
 .isy-chat .login-card .isy-wordmark{width:76px;height:59px}
 .isy-chat .login-card img.isy-product{width:117px;height:39px}
}
@media(max-width:370px){
 .isy-chat .nav-stack .nav-item{padding:4px 5px}
 .isy-chat .conv{grid-template-columns:31px minmax(0,1fr);padding:9px 7px;gap:6px}
 .isy-chat .avatar{width:31px;height:31px;font-size:10px}
 .isy-chat .conv-name{font-size:14px}
 .isy-chat .wait{font-size:10px;max-width:105px}
}

/* 1.2.1: a little more reading space; full-screen conversations on phones. */
.isy-chat .topbar{height:56px;min-height:56px}
.isy-chat .chat-panel{margin:6px}
.isy-chat .chat-header{min-height:58px;padding-top:7px;padding-bottom:7px}
.isy-chat .messages{padding-top:11px;padding-bottom:11px;gap:8px}
.isy-chat .bubble{padding-top:7px;padding-bottom:7px;line-height:1.55}
.isy-chat .msg-meta{margin-top:2px}
.isy-chat .composer{padding-top:6px;padding-bottom:8px}
.isy-chat .assignment-row{margin-bottom:4px}
.isy-chat .isy-filter-toggle{display:none}
@media(max-width:900px){
 .isy-chat{--mobile-topbar:calc(52px + env(safe-area-inset-top,0px))}
 .isy-chat #appView.app{height:var(--isy-visible-height,100dvh)!important;max-height:var(--isy-visible-height,100dvh)!important;min-height:0!important}
 .isy-chat .topbar{height:var(--mobile-topbar);min-height:var(--mobile-topbar);padding-left:10px;padding-right:10px}
 .isy-chat .isy-brand{gap:6px}
 .isy-chat .isy-wordmark{width:44px;height:34px}
 .isy-chat img.isy-product{width:73px;height:25px}
 .isy-chat .sidebar{padding:6px 8px}
 .isy-chat .nav-stack .nav-item{min-height:44px}
 .isy-chat .nav-item>.isy-nav-label{font-size:12px!important}
 .isy-chat #isyInboxFilters{display:none}
 .isy-chat.isy-filters-open #isyInboxFilters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:7px 0 0;padding:0;gap:7px}
 .isy-chat .filter-block label{min-width:0}
 .isy-chat .filter-block select{width:100%;max-width:100%;font-size:16px}
 .isy-chat .list-header{padding:8px 11px}
 .isy-chat .list-header>div:first-child{margin-bottom:6px}
 .isy-chat .list-header .isy-search-box{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px;align-items:center}
 .isy-chat .isy-search-box>.search{min-width:0;width:100%}
 .isy-chat .isy-filter-toggle{position:relative;display:flex;width:44px;height:44px;min-height:44px;padding:10px;align-items:center;justify-content:center;border-radius:10px;border-color:#d3dfcc;color:#50664b}
 .isy-chat .isy-search-box .isy-filter-toggle .ui-icon{position:static;width:20px;height:20px;flex-basis:20px;margin:0;color:inherit;pointer-events:none}
 .isy-chat .isy-filter-toggle[aria-expanded=true],.isy-chat .isy-filter-toggle.has-filter{color:#176542;border-color:#8aaf89;background:#e9f5e3}
 .isy-chat .isy-filter-toggle[data-count]::after{content:attr(data-count);position:absolute;top:1px;right:2px;min-width:14px;height:14px;display:grid;place-items:center;background:#08734f;border-radius:5px;color:#fff;font:10px/1 Arial,sans-serif}
 .isy-chat .chat-panel{margin:0}
 .isy-chat.mobile-chat-open .topbar{display:none}
 .isy-chat.mobile-chat-open .workspace{top:0!important}
 .isy-chat .chat-header{min-height:0;padding:6px 10px;gap:4px 8px}
 .isy-chat.mobile-chat-open .chat-header{padding-top:calc(6px + env(safe-area-inset-top,0px))}
 .isy-chat .chat-title-row{min-width:0}
 .isy-chat .chat-header h2{min-width:0}
 .isy-chat .chat-meta{max-width:100%}
 .isy-chat .chat-actions button,.isy-chat .chat-actions .followup-soft,.isy-chat .chat-actions .complete-soft{min-height:44px}
 .isy-chat .messages{padding:9px 11px;gap:7px}
 .isy-chat .msg{max-width:92%}
 .isy-chat .bubble{font-size:16px;line-height:1.55;padding:7px 11px}
 .isy-chat .msg-meta{margin-top:2px}
 .isy-chat .composer{padding:6px 9px calc(7px + env(safe-area-inset-bottom,0px))}
 .isy-chat .assignment-row{margin-bottom:4px}
 .isy-chat .reply-form textarea{font-size:16px;min-height:48px}
 .isy-chat .summary-bar,.isy-chat .top-actions{max-height:calc(var(--isy-visible-height,100dvh) - var(--mobile-topbar) - 16px)}
 .isy-chat .modal-card,.isy-chat .channel-manager-card{height:var(--isy-visible-height,100dvh);max-height:var(--isy-visible-height,100dvh)}
 .isy-chat .login-shell{height:var(--isy-visible-height,100dvh)}
 .isy-chat .facebook-post-card{width:100%;max-width:100%}
}
@media(min-width:560px) and (max-width:900px) and (max-height:500px){
 .isy-chat .chat-header{grid-template-columns:44px minmax(0,1fr) auto}
 .isy-chat .chat-actions{grid-column:3;grid-row:1;width:auto;max-width:none;gap:5px}
 .isy-chat .chat-actions button,.isy-chat .chat-actions .followup-soft,.isy-chat .chat-actions .complete-soft{flex:0 0 auto;width:auto;padding:6px 8px;font-size:12px}
 .isy-chat .chat-actions .ui-icon{display:none}
 .isy-chat .messages{padding-top:7px;padding-bottom:7px}
}
@media(max-width:370px){
 .isy-chat .isy-overview>summary>span{display:none}
 .isy-chat .isy-overview>summary::after{content:'สาขา';font-size:12px}
 .isy-chat .isy-overview>summary{min-width:68px;justify-content:center}
 .isy-chat .chat-actions button,.isy-chat .chat-actions .followup-soft,.isy-chat .chat-actions .complete-soft{font-size:11px;padding:6px 4px}
 .isy-chat .chat-title-row{gap:5px}
 .isy-chat .channel-badge{font-size:10px}
}

/* Manual connection stays inside Settings; no space taken from chats. */
.isy-manual-facebook{border:1px solid #dce7dd;border-radius:16px;padding:14px;margin:12px 0;background:white}
.isy-manual-facebook summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600;color:#286345}
.isy-manual-facebook select,.isy-manual-facebook input{min-height:44px;font-size:16px;max-width:100%}
