/* Customer workspace only. Platform administration keeps its existing shell. */
.app-shell.customer-shell{grid-template-columns:240px minmax(0,1fr);font-size:15px}
.customer-shell .sidebar{width:240px;background:#fff;border-right:1px solid #dfe7e2;color:#283e33;padding:20px 14px}
.customer-shell .brand-sidebar{padding:12px;margin-bottom:16px}.customer-shell .brand-sidebar img{width:165px;max-width:100%;height:auto;filter:none}
.customer-shell .side-nav{gap:4px}.customer-shell .side-nav .nav-link{padding:11px 12px;min-height:42px;gap:10px;font-size:15px;color:#42584b;border:0;border-radius:7px;background:transparent;box-shadow:none}
.customer-shell .side-nav .nav-link.active{background:#e5f4eb;color:#116a43}.customer-shell .nav-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:none;border:0}.customer-shell .nav-icon svg{width:19px;height:19px}
.customer-shell .brand-top{display:none!important}.customer-shell .topbar{min-height:64px;height:64px;background:white;padding:0 24px;gap:16px;border-bottom:1px solid #dfe7e2}.customer-shell .topbar-page-meta{display:flex;margin-right:auto;min-width:0}.customer-shell .topbar-page-meta strong{font-size:16px}.customer-shell .topbar-actions{margin-left:auto}.customer-shell .main-shell{min-width:0}.customer-shell .page{padding:24px;background:#f5f7f6}
.customer-shell :focus-visible{outline:3px solid #76bd96;outline-offset:3px}
.customer-shell .ws-settings{max-width:none;padding:0 0 28px}.customer-shell .ws-heading{margin-bottom:20px}.customer-shell .ws-heading h1{font-size:28px}.customer-shell .ws-layout{display:block;min-width:0}.customer-shell .ws-nav{flex-direction:row;overflow-x:auto;gap:24px;border-bottom:1px solid #d9e3dc;margin-bottom:24px;padding:0;max-width:100%}.customer-shell .ws-nav a{display:block;flex-shrink:0;padding:12px 2px;border-bottom:3px solid transparent;color:#5b6d61;font-size:15px;font-weight:600;white-space:nowrap}.customer-shell .ws-nav a[aria-current=page]{border-color:#178552;color:#116b47}.customer-shell .ws-content{padding:24px;border-radius:10px;box-shadow:none}.customer-shell .ws-support{margin:16px 0 0;font-size:14px;text-align:right}.customer-shell .ws-details{margin:14px 0;padding:14px 0}.customer-shell .ws-content>header{padding-bottom:16px;margin-bottom:20px}
.customer-shell.inbox-shell{height:100dvh;min-height:0;overflow:hidden}.inbox-shell .main-shell{display:flex;flex-direction:column;height:100dvh;min-height:0}.inbox-shell .topbar{flex-shrink:0}.customer-shell.inbox-shell .page{flex:1;min-height:0;padding:16px;overflow:hidden;display:flex;flex-direction:column}.iw{display:flex;flex-direction:column;flex:1;min-height:0;font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:14px;line-height:1.5;color:#263d31}.iw *{box-sizing:border-box}.iw button,.iw input,.iw textarea,.iw select{font:inherit}.iw button{cursor:pointer;border:1px solid #d3ded7;border-radius:6px;padding:7px 10px;background:white;color:#304c3c;min-height:36px}.iw button:hover{background:#f0f7f2}.iw button:disabled{opacity:.55;cursor:default}.iw input,.iw textarea,.iw select{border:1px solid #cbd8cf;border-radius:6px;padding:9px;max-width:100%;min-width:0;background:white;color:#263d31}.iw textarea{resize:vertical}.iw a{color:#087441;text-decoration:underline}.iw h1{font-size:24px;margin:0}.iw h2{font-size:17px;margin:0;overflow-wrap:anywhere}.iw h3{font-size:15px}.iw p{margin:6px 0}.iw small{font-size:12px;color:#607466}.iw-heading{display:flex;align-items:center;gap:16px;margin:0 0 12px;flex-shrink:0}.iw-heading>span{color:#607466}.iw-heading>button{margin-left:auto}.iw-setup{display:flex;gap:12px;align-items:start;justify-content:space-between;border:1px solid #d9e5dc;background:#f1f7f3;padding:8px 12px;border-radius:6px;margin-bottom:10px;flex-shrink:0}.iw-setup summary{cursor:pointer}.iw-setup button{padding:2px 8px;min-height:28px}.iw-feedback{padding:8px 12px;border:1px solid #d6e2da;background:#fff8e8;margin-bottom:8px;flex-shrink:0}.iw-feedback button{margin-left:12px}.iw-layout{display:grid;grid-template-columns:320px minmax(0,1fr);flex:1;min-height:0;border:1px solid #dce5df;border-radius:8px;overflow:hidden;background:white;position:relative}.iw-layout.has-details{grid-template-columns:310px minmax(0,1fr) 290px}.iw-list{display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid #dfe7e2}.iw-search{padding:16px;font-size:13px;font-weight:600}.iw-search input{display:block;width:100%;margin-top:6px;font-weight:400}.iw-filters{display:flex;flex-wrap:wrap;padding:0 12px 12px;gap:6px}.iw-filters button{font-size:12px;min-height:30px;padding:5px 7px}.iw-filters button[aria-pressed=true]{background:#e3f3e9;color:#09643a;border-color:#9dc8ae}.iw-filters span{font-size:11px;margin-left:3px}.iw-rows{flex:1;overflow-y:auto;min-height:0}.iw .iw-row{display:block;width:100%;border:0;border-bottom:1px solid #edf0ed;border-radius:0;text-align:left;padding:15px 14px;overflow:hidden}.iw .iw-row.selected{background:#eaf6ee;box-shadow:inset 3px 0 #168653}.iw-row-top{display:flex;align-items:center;gap:6px}.iw-row-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14px}.iw-row-top time{font-size:11px;color:#637269;max-width:85px;text-align:right}.iw-unread{width:7px;height:7px;background:#0a8e4f;border-radius:50%;flex-shrink:0}.iw-preview{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#566c5e;margin:5px 0;font-size:14px}.iw-row-meta{font-size:12px;color:#617869;display:block;overflow-wrap:anywhere}.iw-list-foot{padding:8px;border-top:1px solid #e3eae5}.iw-thread{display:flex;flex-direction:column;min-height:0;min-width:0;background:#f7f9f7}.iw-thread-head{display:flex;justify-content:space-between;gap:12px;padding:16px;background:white;border-bottom:1px solid #dfe7e2;flex-shrink:0;flex-wrap:wrap}.iw-thread-head p{font-size:13px;color:#58705e}.iw-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.iw-actions button{font-size:12px}.iw-attention{padding:9px 16px;background:#fff6e0;font-size:13px}.iw-history{flex:1;min-height:0;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}.iw-message{align-self:flex-start;border:1px solid #dce5df;background:#fff;padding:10px 13px;border-radius:9px;max-width:88%;min-width:100px;overflow-wrap:anywhere}.iw-message.outgoing{align-self:flex-end;background:#e5f4ea;border-color:#cce3d4}.iw-message.note{background:#fff4cf;border-color:#eadbaa;align-self:stretch;max-width:none}.iw-message.system{align-self:center;background:#eef0ee}.iw-message p{white-space:pre-wrap;font-size:15px}.iw-message footer{font-size:11px;color:#586d5f}.iw-composer{flex-shrink:0;background:#fff;border-top:1px solid #dfe7e2;padding:12px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.iw-mode{display:flex;align-items:center;gap:10px;grid-column:1/-1;font-size:13px}.iw-mode select{padding:5px}.iw-note-hint{grid-column:1/-1;font-size:13px;color:#687663}.iw-composer textarea{width:100%;max-height:150px;min-height:60px}.iw .iw-primary{background:#14824d;color:white;border-color:#14824d;align-self:end}.iw-details{overflow-y:auto;min-width:0;padding:16px;border-left:1px solid #dfe7e2;background:white;overscroll-behavior:contain}.iw-details header{display:flex;justify-content:space-between;gap:8px}.iw-details dt{font-size:12px;color:#607466;margin-top:12px}.iw-details dd{margin:3px 0 0;overflow-wrap:anywhere}.iw-details section{border-top:1px solid #e1e8e3;margin-top:20px;padding-top:12px}.iw-details fieldset{border:0;padding:0;min-width:0}.iw-details label{display:block;font-size:13px;margin:12px 0}.iw-details input{display:block;width:100%;margin-top:5px}.iw-details button{margin-top:6px}.iw-details .panel-title-row{display:none}.iw-details .settings-list{font-size:13px}.iw-details .button-column{display:flex;flex-wrap:wrap;gap:6px}.iw-details .button-column button{font-size:12px}.iw-details p{overflow-wrap:anywhere}.iw-empty{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px;min-height:150px;color:#5d7163}.iw-empty strong{font-size:17px;color:#304c3c}.iw-empty p{max-width:370px}.iw-back{display:none}
@media(max-width:1279px){.iw-layout,.iw-layout.has-details{grid-template-columns:300px minmax(0,1fr)}.iw-details{position:absolute;z-index:5;right:0;top:0;bottom:0;width:min(340px,100%);box-shadow:-8px 0 30px #1a3c3026}.iw-message{max-width:94%}}
@media(max-width:820px){.app-shell.customer-shell{grid-template-columns:minmax(0,1fr)}.customer-shell .sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);visibility:hidden;z-index:100}.customer-shell .sidebar.open{transform:none;visibility:visible}.customer-shell .mobile-menu{display:flex}.customer-shell .topbar{padding:0 14px}.customer-shell .page{padding:18px 14px}.customer-shell .ws-nav{gap:20px}.customer-shell .ws-content{padding:20px 16px}.iw-heading>span{display:none}.iw-layout,.iw-layout.has-details{grid-template-columns:280px minmax(0,1fr)}.iw-thread-head{padding:12px}.iw-history{padding:12px}.iw-composer{padding:10px}.iw-setup small{display:none}}
@media(max-width:640px){.customer-shell.inbox-shell .page{padding:10px 8px}.iw-layout,.iw-layout.has-details{grid-template-columns:minmax(0,1fr)}.iw-layout .iw-thread{display:none}.iw-layout.has-selection .iw-list{display:none}.iw-layout.has-selection .iw-thread{display:flex}.iw-back{display:inline-block}.iw-thread-head h2{margin-top:7px}.iw-setup{font-size:13px}.iw-heading{margin-bottom:8px}.iw-heading h1{font-size:22px}.iw-composer textarea{font-size:16px}.iw-composer{grid-template-columns:minmax(0,1fr) auto}.iw-details{width:100%}.customer-shell .status-pill{display:none}.customer-shell .ws-heading{align-items:start}.customer-shell .ws-heading p{font-size:14px}.customer-shell .ws-save-state{font-size:12px}.iw-message p{font-size:15px}}

.customer-shell .nav-link .nav-icon{color:inherit}.customer-shell .side-nav .nav-link.active::before{display:none}.iw-crm{margin-top:16px;font-size:13px}.iw-crm summary{cursor:pointer;color:#14724e}.iw-crm .settings-item{padding:8px;border:0;border-bottom:1px solid #e2e8e4}.iw-crm .lead-convert-form textarea{width:100%}

.customer-shell.inbox-shell,.inbox-shell .main-shell{height:var(--iw-height,100dvh)}.iw-setup ul{margin:8px 0;padding-left:20px}.iw-setup li{margin:4px 0}
