/* Section 03: CRM. Normal responsive layout (not the scaled stage). */
.crm{background:linear-gradient(180deg,#F3F0EA,#F7F5F0 40%,#F1EEE8);padding:110px 0 90px;color:#142629}
.crm-wrap{max-width:1640px;margin:0 auto;padding:0 40px}
.crm-copy{max-width:800px}
.crm-copy .eyebrow{display:flex;align-items:center;gap:14px;font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.crm-copy .eyebrow i{width:40px;height:1px;background:#142629;opacity:.45}
.crm-copy h2{font-size:clamp(34px,4.4vw,60px);line-height:1.03;letter-spacing:-.03em;font-weight:600;margin-top:16px}
.crm-copy h2 span{color:#0F5B5E}
.crm-copy .lede{font-size:19px;line-height:1.5;color:#56656A;margin-top:16px;max-width:640px}

/* the app window */
.app{margin-top:44px;display:grid;grid-template-columns:200px minmax(0,1fr) 350px;height:740px;border-radius:26px;overflow:hidden;background:#FBFBF9;
  box-shadow:0 0 0 1px rgba(20,40,45,.06),0 0 80px rgba(127,220,210,.35),0 50px 90px -40px rgba(20,40,45,.4)}
.app-side{background:linear-gradient(180deg,#0E3A3E,#0A2B2E);color:#D6E3E3;padding:22px 14px;display:flex;flex-direction:column;min-height:0}
.app-logo{display:flex;align-items:center;gap:9px;padding:0 8px 20px;font:600 20px Poppins,"IBM Plex Sans",sans-serif;letter-spacing:-.04em;color:#FAF8F3}
.app-nav,.app-ch{list-style:none;display:grid;gap:2px}
.app-nav li,.app-ch li{display:flex;align-items:center;gap:11px;height:38px;padding:0 10px;border-radius:10px;font-size:14.5px;white-space:nowrap}
.app-nav li:has(button){padding:0}
.app-nav button{display:flex;align-items:center;gap:11px;width:100%;height:38px;padding:0 10px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left}
.app-nav button:hover{background:rgba(255,255,255,.07)}
.app-nav button.on{background:rgba(255,255,255,.14);color:#fff;font-weight:600}
.app-nav button:focus-visible{outline:2px solid #34B5A4}
.app-nav li.off{opacity:.45}
.app-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;opacity:.85}
.app-nav .badge,.app-ch .badge{margin-left:auto;min-width:22px;height:20px;padding:0 6px;border-radius:10px;background:rgba(255,255,255,.12);font-size:11.5px;font-weight:600;display:grid;place-items:center}
.app-nav .badge.alert{background:#F59E0B;color:#2A1A04}
.app-sub{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.6;margin:18px 10px 6px}
.app-ch .lg{width:18px;height:18px;flex:none;border-radius:5px;background:#fff;display:grid;place-items:center}
.app-ch .lg svg{width:14px;height:14px}
.app-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid rgba(255,255,255,.1)}
.app-user b{display:block;font-size:14px;color:#fff}.app-user small{font-size:12px;opacity:.7}

.av{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:12px;flex:none}
.ow-blue{background:#DBEAFE;color:#1D4ED8}.ow-amber{background:#FEF3C7;color:#B45309}.ow-violet{background:#EDE9FE;color:#6D28D9}
.av.person{background:linear-gradient(135deg,#FDE7D3,#F6C9A3);color:#7A3E10}

.app-main{display:flex;flex-direction:column;min-width:0;min-height:0;padding:20px 20px 0}
.app-bar{display:flex;align-items:center;gap:12px;margin-bottom:18px}
.app-bar .search{flex:1;height:42px;border-radius:12px;background:#F1F2F0;display:flex;align-items:center;padding:0 16px;font-size:14px;color:#8A9598}
.app-bar .pill{height:42px;padding:0 16px;border-radius:12px;border:1px solid rgba(20,40,45,.12);display:flex;align-items:center;font-size:14px}
.app-bar .new{height:42px;padding:0 18px;border-radius:12px;background:#0D3B3F;color:#fff;display:flex;align-items:center;font-size:14px;font-weight:600}
.board{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;overflow-x:auto;padding-bottom:20px}
.col{background:#F2F3F1;border-radius:18px;padding:12px;display:flex;flex-direction:column;gap:10px;min-height:0;overflow-y:auto;scrollbar-width:thin}
.col h3{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;padding:4px 4px 2px}
.col h3 i{width:8px;height:8px;border-radius:50%}
.col h3 span{margin-left:auto;font-size:12.5px;font-weight:600;color:#6B7779;background:#fff;border-radius:10px;padding:2px 8px}
.t-green i{background:#22C55E}.t-violet i{background:#8B5CF6}.t-amber i{background:#F59E0B}.t-blue i{background:#3B82F6}

.lc{display:block;width:100%;text-align:left;border:0;cursor:pointer;background:#fff;border-radius:14px;padding:12px 12px 10px;font:inherit;color:inherit;
  box-shadow:0 1px 2px rgba(20,40,45,.06),0 6px 16px -10px rgba(20,40,45,.25);transition:box-shadow .2s,transform .2s}
.lc:hover{transform:translateY(-1px);box-shadow:0 1px 2px rgba(20,40,45,.06),0 12px 22px -12px rgba(20,40,45,.35)}
.lc:focus-visible{outline:2px solid #34B5A4;outline-offset:2px}
.lc[aria-pressed="true"]{box-shadow:0 0 0 2px #34B5A4,0 12px 26px -12px rgba(52,181,164,.6)}
.lc-top{display:flex;align-items:center;gap:9px}
.lc-top b{font-size:14.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lc-top .lg{width:18px;height:18px;flex:none;margin-left:auto}.lc-top .lg svg{width:18px;height:18px}
.lc p{font-size:13.5px;color:#56656A;margin:7px 0 9px;line-height:1.35}
.lc-foot{display:flex;align-items:center;gap:8px}
.tag{display:inline-block;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:8px;white-space:nowrap}
.d-head .tag{font-size:12.5px;padding:3px 10px;margin-top:4px}
.tag.t-green{background:#DCFCE7;color:#15803D}.tag.t-violet{background:#EDE9FE;color:#6D28D9}.tag.t-amber{background:#FEF3C7;color:#B45309}.tag.t-blue{background:#DBEAFE;color:#1D4ED8}
.lc-foot time{font-size:11.5px;color:#7A8688;margin-left:auto;white-space:nowrap}
.urgent{color:#DC2626!important;font-weight:600}
.no{font-size:12px;font-weight:600;color:#6B7779;letter-spacing:.02em}
.lc .subj{display:block;font-size:14.5px;font-weight:600;margin-top:4px;line-height:1.3}
.v-tickets .lc p{margin:3px 0 9px}
.lc .sla{display:block;font-size:12px;color:#6B7779;margin-top:8px;padding-top:8px;border-top:1px solid rgba(20,40,45,.07)}
.tag.pr-high{background:#FEE2E2;color:#B91C1C}.tag.pr-medium{background:#FEF3C7;color:#B45309}.tag.pr-low{background:#E5E7EB;color:#4B5563}

/* inbox view */
.board.v-conversations{display:flex;flex-direction:column;gap:6px;overflow-y:auto}
.inbox-head{display:flex;gap:8px;margin-bottom:6px}
.inbox-head span{font-size:13px;font-weight:600;padding:6px 12px;border-radius:10px;background:#F1F2F0;color:#56656A}
.inbox-head span.on{background:#0D3B3F;color:#fff}
.row{display:flex;align-items:center;gap:14px;width:100%;padding:12px 14px;border:0;border-radius:14px;background:#fff;cursor:pointer;font:inherit;color:inherit;text-align:left;
  box-shadow:0 1px 2px rgba(20,40,45,.05);transition:box-shadow .2s}
.row:hover{box-shadow:0 8px 18px -12px rgba(20,40,45,.35)}
.row[aria-pressed="true"]{box-shadow:0 0 0 2px #34B5A4}
.row:focus-visible{outline:2px solid #34B5A4;outline-offset:2px}
.row .lg{width:34px;height:34px;flex:none}.row .lg svg{width:34px;height:34px}
.row-main{flex:1;min-width:0}
.row-top{display:flex;align-items:baseline;gap:10px}
.row-top b{font-size:15px;font-weight:600}
.row-top time{margin-left:auto;font-size:12px;color:#7A8688}
.row p{font-size:13.5px;color:#56656A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.row p[lang="hi"]{font-family:"IBM Plex Sans Devanagari","IBM Plex Sans",sans-serif}
.row p[lang="ar"]{font-family:"IBM Plex Sans Arabic","IBM Plex Sans",sans-serif;text-align:right}
.row.unread .row-top b::after{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#34B5A4;margin-left:8px;vertical-align:middle}
.state{font-size:12px;font-weight:600;padding:3px 9px;border-radius:9px;white-space:nowrap;flex:none}
.s-ai{background:#CCFBF1;color:#0F766E}.s-person{background:#FEF3C7;color:#B45309}
.d-head .state{display:inline-block;margin-top:4px}
.d-meta{display:flex;align-items:center;gap:8px;font-size:13.5px;color:#56656A;margin:14px 0}
.d-meta .lg{width:20px;height:20px}.d-meta .lg svg{width:20px;height:20px}
.d-meta .own{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:#142629}
.d-meta .own .av{width:22px;height:22px;font-size:9px}
.d-head .no{display:block}
.av.tk{background:#FEF3C7;color:#B45309;font-size:20px}
.d-link{flex:1;height:44px;border:0;border-radius:12px;background:#0D3B3F;color:#fff;font:600 14.5px "IBM Plex Sans",sans-serif;cursor:pointer}
.d-link:focus-visible{outline:2px solid #34B5A4;outline-offset:2px}
.app-tabs{display:none}
.lc-foot .av{width:22px;height:22px;font-size:9px}

/* detail panel */
.app-detail{border-left:1px solid rgba(20,40,45,.07);background:#fff;padding:22px 22px 18px;display:flex;flex-direction:column;min-height:0;overflow-y:auto;scrollbar-width:thin}
.d-head{display:flex;align-items:center;gap:14px}
.d-head .av{width:56px;height:56px;font-size:18px}
.d-head b{display:block;font-size:20px;font-weight:600}
.d-close{display:none;margin-left:auto;width:36px;height:36px;border-radius:50%;border:0;background:#F1F2F0;cursor:pointer;font-size:20px;line-height:1}
.d-acts{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:16px 0 12px}
.d-acts span{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;color:#56656A}
.d-acts i{width:38px;height:38px;border-radius:12px;background:#F1F4F3;display:grid;place-items:center}
.d-acts svg{width:18px;height:18px;fill:none;stroke:#142629;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.d-tabs{display:flex;gap:4px;border-bottom:1px solid rgba(20,40,45,.08);margin-bottom:14px}
.d-tabs button{border:0;background:none;font:500 14px "IBM Plex Sans",sans-serif;color:#6B7779;padding:9px 10px;cursor:pointer}
.d-tabs button[aria-selected="true"]{color:#142629;font-weight:600;box-shadow:inset 0 -2px #0F5B5E}
.d-sum{background:#EFF8F6;border-radius:14px;padding:12px 14px;font-size:14px;line-height:1.45;color:#25363A;margin-bottom:12px}
.d-sum b{display:flex;align-items:center;gap:8px;font-size:13.5px;margin-bottom:4px}
.d-sum svg{width:16px;height:16px}
.d-rows{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:14px;align-items:center}
.d-rows dt{color:#6B7779;white-space:nowrap}.d-rows dd{color:#142629;min-width:0}
.d-rows .own{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.d-rows .own .av{width:24px;height:24px;font-size:9.5px}
.d-btns{display:flex;gap:8px;margin-top:auto;padding-top:16px}
.d-btns span{flex:1;height:44px;border-radius:12px;display:grid;place-items:center;font-size:14.5px;font-weight:600}
.d-btns .p{background:#0D3B3F;color:#fff}.d-btns .s{border:1px solid rgba(20,40,45,.14)}
.d-conv{display:flex;flex-direction:column;gap:9px}
.d-conv .b2.a{margin-right:8px;max-width:82%}
.d-conv .note{font-size:12.5px;color:#7A8688;text-align:center}
.d-tasks{list-style:none;display:grid;gap:10px}
.d-tasks li{display:flex;gap:10px;align-items:flex-start;font-size:14.5px}
.d-tasks i{width:18px;height:18px;border-radius:5px;border:1.5px solid #9AA6A8;flex:none;margin-top:2px}
.d-tasks li.done i{background:#0F5B5E;border-color:#0F5B5E}
.d-tasks li.done span{text-decoration:line-through;color:#7A8688}
.d-tasks small{display:block;color:#7A8688;font-size:12.5px}

.crm-note{position:static;margin-top:14px;width:auto}
.crm-benefits{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);margin-top:46px}
.crm-benefits li{display:flex;align-items:center;gap:18px;padding:0 30px}
.crm-benefits li+li{border-left:1px solid rgba(20,40,45,.12)}
.crm-benefits b{display:block;font-size:19px;font-weight:600}
.crm-benefits small{display:block;font-size:15.5px;line-height:1.4;color:#5F6D70;margin-top:4px}

@media (max-width:1240px){
  .app{grid-template-columns:64px minmax(0,1fr) 340px}
  .app-logo span,.app-nav li span,.app-sub,.app-ch,.app-user div,.app-nav .badge{display:none}
  .app-nav li{justify-content:center;padding:0}
}
/* phones and small tablets: board swipes sideways, details open as a bottom sheet */
@media (max-width:860px){
  .crm{padding:70px 0 60px}
  .crm-wrap{padding:0 20px}
  .crm-copy .lede{font-size:16px}
  .app{display:block;height:auto;margin-top:28px;border-radius:20px}
  .app-side{display:none}
  .app-main{padding:14px 0 0}
  .app-bar{padding:0 14px}.app-bar .pill{display:none}
  .app-tabs{display:flex;gap:6px;padding:0 14px 12px}
  .app-tabs button{flex:1;height:40px;border:0;border-radius:11px;background:#F1F2F0;font:600 14px "IBM Plex Sans",sans-serif;color:#56656A;cursor:pointer}
  .app-tabs button.on{background:#0D3B3F;color:#fff}
  .board.v-conversations{padding:0 14px 16px;height:520px}
  .row .state{display:none}
  .board{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 14px 16px;height:470px}
  .col{flex:0 0 78%;scroll-snap-align:start}
  .app-detail{position:fixed;left:0;right:0;bottom:0;height:86vh;z-index:80;border:0;border-radius:22px 22px 0 0;box-shadow:0 -20px 60px rgba(0,0,0,.35);transform:translateY(105%);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
  .app-detail.open{transform:none}
  .d-close{display:block}
  .crm-benefits{grid-template-columns:1fr;gap:16px}
  .crm-benefits li{padding:0}.crm-benefits li+li{border:0}
}
@media (prefers-reduced-motion:reduce){.app-detail,.lc{transition:none}}
