/* Hero stage: the real app's support view, analytics team lanes, and customer widget.
   Everything inside .stage-canvas uses the app's own sizes and colours (Platform dashboard.css,
   inbox.css, widget.css) and the whole canvas is scaled to fit by hero-stage.js. */
.hero-stage {
  --k: .667;
  --app-ink: #172033; --app-muted: #6b7280; --app-line: #e0e1e4; --app-soft: #f0f1f3;
  --app-blue: #1749d3; --app-blue-soft: #edf2ff; --app-green: #2c8065; --app-warning: #d9480f;
  position: relative; height: calc(1196px * var(--k)); margin: 0;
  color: var(--app-ink); font-size: 13px; line-height: 1.55; text-align: left;
}
.hero-stage p, .hero-stage h1, .hero-stage h2, .hero-stage h3, .hero-stage dl, .hero-stage dd { margin: 0; }
.stage-canvas { position: absolute; left: 0; top: 0; width: 1860px; height: 1196px; transform: scale(var(--k)); transform-origin: 0 0; }
.stage-compact { display: none; }
.hero-stage .gl { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-stage .sa { flex: none; display: block; width: 30px; height: 30px; border-radius: 50%; }

/* Windows */
.sw { position: absolute; display: flex; flex-direction: column; background: #fafaf7; border-radius: 13px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .16), inset 0 0 0 1px rgba(255, 255, 255, .5), 0 28px 70px -12px rgba(15, 18, 60, .45); }
.sw-bar { position: relative; flex: none; display: flex; align-items: center; height: 42px; padding: 0 16px; background: #f6f6f4; border-bottom: 1px solid #e6e6e2; }
.sw-dots { display: flex; gap: 7px; }
.sw-dots i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.sw-dots i:nth-child(2) { background: #febc2e; }
.sw-dots i:nth-child(3) { background: #28c840; }
.sw-title { position: absolute; left: 50%; transform: translateX(-50%); color: #4b5563; font-size: 13px; font-weight: 600; }
.sw-app { left: 40px; top: 50px; width: 1520px; height: 900px; }
.sw-stats { left: 30px; top: 596px; width: 980px; height: 414px; background: #fff; }

/* MacBook: lid, screen with wallpaper, menu bar, dock, and base */
.mb-lid { position: absolute; left: 51px; top: 0; width: 1758px; height: 1146px; padding: 18px; border-radius: 32px; background: #0c0c0e; box-shadow: 0 0 0 2px #c4c6cc, 0 0 0 3px #9c9ea5, inset 0 0 0 1px #2c2c30; }
.mb-screen { position: relative; width: 1722px; height: 1110px; border-radius: 14px; overflow: hidden; background: #8fa0f5; }
.mb-wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-notch { position: absolute; top: 18px; left: 50%; width: 124px; height: 30px; border-radius: 0 0 12px 12px; background: #0c0c0e; transform: translateX(-50%); }
.mb-menubar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 20px; background: rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #16171d; font-size: 14px; font-weight: 500; }
.mb-menus, .mb-status { display: flex; align-items: center; gap: 22px; }
.mb-menus b { font-weight: 700; }
.mb-apple { width: 19px; height: 19px; margin-top: -3px; fill: currentColor; }
.mb-status { gap: 18px; }
.mb-status .gl { width: 18px; height: 18px; stroke-width: 1.9; }
.mb-battery { position: relative; width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; padding: 1.5px; opacity: .9; }
.mb-battery i { display: block; width: 72%; height: 100%; border-radius: 1.5px; background: currentColor; }
.mb-battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: currentColor; }
.mb-base { position: absolute; left: 0; top: 1140px; width: 1860px; height: 34px; border-radius: 3px 3px 30px 30px / 3px 3px 34px 34px; background: linear-gradient(180deg, #e8e9ed 0%, #c9cbd1 45%, #9b9da4 100%); box-shadow: 0 34px 40px -24px rgba(23, 32, 51, .45); }
.mb-base span { position: absolute; top: 0; left: 50%; width: 290px; height: 12px; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #a6a8ae, #d4d5da); transform: translateX(-50%); }

/* Dock with the standard macOS apps */
.mb-dock { position: absolute; bottom: 8px; left: 50%; z-index: 4; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 24px; background: rgba(242, 242, 246, .5); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 12px 30px -12px rgba(20, 20, 60, .35); transform: translateX(-50%); }
.dk { position: relative; display: block; width: 66px; height: 66px; }
.dk img { display: block; width: 100%; height: 100%; }
.dk-run { position: absolute; bottom: -5px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: rgba(0, 0, 0, .55); transform: translateX(-50%); }
.dk-sep { width: 1px; height: 54px; margin: 0 6px; background: rgba(0, 0, 0, .18); }

/* Safari window chrome */
.sf-bar { flex: none; display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 16px 0 18px; background: #f5f5f7; border-bottom: 1px solid #e2e2e6; color: #6e6e73; }
.sf-bar .sw-dots { margin-right: 6px; }
.sf-tools { display: flex; align-items: center; gap: 16px; }
.sf-tools .gl { width: 18px; height: 18px; }
.sf-nav { display: flex; gap: 10px; }
.sf-back { transform: rotate(180deg); }
.sf-address { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; max-width: 560px; height: 34px; margin: 0 auto; border-radius: 10px; background: #e6e6ea; color: #1d1d1f; font-size: 13.5px; white-space: nowrap; }
.hero-stage .sf-lock { width: 12px; height: 12px; color: #6e6e73; }
.sf-tabs { position: relative; width: 15px; height: 15px; border: 1.7px solid currentColor; border-radius: 4px; }
.sf-tabs::after { content: ""; position: absolute; right: -6px; top: -6px; width: 15px; height: 15px; border-top: 1.7px solid currentColor; border-right: 1.7px solid currentColor; border-radius: 0 4px 0 0; }
.sf-bar.is-compact { gap: 10px; }
.sf-bar.is-compact .sf-address { max-width: none; margin: 0; }

/* Customer widget at its real size, resting over the details panel */
.sw-widget { position: absolute; left: 1322px; top: 372px; z-index: 2; width: 372px; height: 600px; }
.sw-widget .wd { box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 70px -14px rgba(15, 18, 60, .5); }
.sw-widget .wd-messages { justify-content: flex-end; gap: 12px; padding: 14px 16px; }
.sw-launcher { position: absolute; left: 1638px; top: 986px; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--app-blue); color: #fff; box-shadow: 0 10px 24px -8px rgba(23, 73, 211, .7); }
.sw-launcher .gl { width: 24px; height: 24px; stroke-width: 2; }


/* App shell (support view) */
.ap { flex: 1; display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 0; }
.ap-side { display: flex; flex-direction: column; padding: 16px 16px 12px; min-height: 0; }
.ap-brand { position: relative; display: flex; align-items: center; gap: 8px; margin: 6px 8px 26px; }
.ap-brand img:first-child { width: 28px; height: 28px; }
.ap-brand img + img { width: 119px; height: 30px; }
.ap-collapse { position: absolute; right: -4px; top: 5px; color: #8a8f99; }
.ap-collapse .gl { width: 18px; height: 18px; }
.ap-project { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 12px; margin-bottom: 7px; border-radius: 8px; background: var(--app-soft); }
.ap-project-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: linear-gradient(140deg, #f29a1f, #e2582b); color: #fff; font-weight: 700; font-size: 15px; }
.ap-project-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.ap-project-copy strong { font-weight: 550; font-size: 13px; }
.ap-project-copy small, .ap-profile small { color: var(--app-muted); font-size: 13px; }
.ap-project > .gl, .ap-profile > .gl { width: 15px; height: 15px; color: var(--app-muted); }
.ap-new { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 24px; color: var(--app-muted); }
.ap-new .gl { width: 16px; height: 16px; }
.ap-label { margin: 0 0 10px; padding-inline: 12px; color: #6b7280; font-weight: 550; letter-spacing: .7px; text-transform: uppercase; font-size: 12px; }
.ap-nav { display: grid; gap: 4px; }
.ap-link { display: flex; align-items: center; gap: 12px; min-height: 41px; padding: 11px 13px; border-radius: 8px; color: #777d89; font-weight: 450; }
.ap-link.is-parent { background: #e9eefb; color: #2856bd; }
.ap-chev { width: 13px !important; height: 13px !important; margin-left: auto; opacity: .6; }
.ap-link.is-parent .ap-chev { transform: rotate(90deg); }
.ap-count { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--app-blue); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.ap-sub { display: grid; gap: 2px; margin: 0 0 4px 21px; padding-left: 12px; border-left: 1px solid var(--app-line); }
.ap-sublink { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 7px 10px; border-radius: 7px; color: var(--app-muted); }
.ap-sublink b { min-width: 20px; padding: 1px 6px; border-radius: 5px; background: var(--app-soft); font-weight: 400; text-align: center; }
.ap-sublink.is-current { background: var(--app-blue-soft); color: var(--app-blue); font-weight: 500; }
.ap-sublink.is-current b { background: transparent; }
.ap-profile { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--app-line); }
.ap-profile .sa { width: 36px; height: 36px; }
.ap-profile > span { display: grid; flex: 1; min-width: 0; }
.ap-profile strong { font-weight: 550; }

.ap-main { display: flex; flex-direction: column; min-height: 0; margin: 12px 12px 12px 0; background: #fff; border: 1px solid var(--app-line); border-radius: 14px; overflow: hidden; }
.ap-top { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: 72px; padding: 0 24px; border-bottom: 1px solid #eceef0; }
.ap-top h1 { font-size: 15px; font-weight: 550; letter-spacing: 0; }
.ap-mode { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--app-line); border-radius: 10px; background: var(--app-soft); }
.ap-mode span { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 7px; color: var(--app-muted); font-weight: 550; }
.ap-mode .gl { width: 14px; height: 14px; }
.ap-mode .is-on { background: #fff; color: var(--app-ink); box-shadow: 0 1px 2px #0000001f, 0 0 0 1px var(--app-line); }
.ap-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.ap-avail { display: inline-flex; align-items: center; gap: 8px; color: var(--app-muted); }
.ap-avail i { width: 7px; height: 7px; border-radius: 50%; background: #22a05a; }
.ap-avail .gl { width: 14px; height: 14px; }
.ap-bell { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--app-line); border-radius: 9px; color: #4b5563; }
.ap-bell .gl { width: 17px; height: 17px; }
.ap-body { flex: 1; display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; min-height: 0; }

/* Conversation list */
.ap-list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--app-line); }
.ap-list-head { padding: 22px 19px 14px; border-bottom: 1px solid #eef0f3; }
.ap-list-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ap-list-title h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.ap-icon-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #6b7280; }
.ap-icon-btn .gl { width: 16px; height: 16px; }
.ap-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--app-line); border-radius: 9px; color: #8a8f99; }
.ap-search .gl { width: 16px; height: 16px; }
.ap-filters { display: flex; gap: 6px; padding-top: 10px; }
.ap-filters span { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px; border: 1px solid var(--app-line); border-radius: 8px; font-size: 12.5px; }
.ap-filters .gl { width: 13px; height: 13px; color: var(--app-muted); }
.ap-rows { overflow: hidden; }
.row { position: relative; display: grid; grid-template-columns: 8px 30px minmax(0, 1fr); gap: 0 10px; align-items: start; padding: 12px 16px 12px 10px; }
.row + .row { border-top: 1px solid #eef0f3; }
.row.is-active { background: #f1f5fe; }
.row.is-active::before, .row.is-urgent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--app-blue); }
.row.is-urgent::before { background: #dc2626; }
.row-dot { width: 7px; height: 7px; margin-top: 11px; border-radius: 50%; }
.row.is-unread .row-dot { background: var(--app-blue); }
.row-body { display: block; min-width: 0; }
.row-line { display: flex; align-items: baseline; gap: 8px; }
.row-line b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; color: #374151; }
.row.is-unread .row-line b { font-weight: 650; color: var(--app-ink); }
.row-line time { flex: none; color: var(--app-muted); font-size: 12px; }
.row-line time.is-waiting { color: var(--app-warning); font-weight: 600; }
.row-preview { display: block; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--app-muted); line-height: 1.45; }
.row.is-unread .row-preview { color: #4b5563; }
.row-tags { display: flex; gap: 4px; margin-top: 6px; }
.tag { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 550; white-space: nowrap; color: var(--tag); background: color-mix(in srgb, var(--tag) 12%, transparent); }
.tag-amber { --tag: #c2410c; }
.tag-green { --tag: #15803d; }
.tag-blue { --tag: #1d4ed8; }
.tag-violet { --tag: #7c3aed; }

/* Conversation */
.ap-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.th-head { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 20px; border-bottom: 1px solid var(--app-line); }
.hero-stage .th-avatar { width: 40px; height: 40px; }
.th-who { flex: 1; min-width: 0; }
.th-who h2 { font-size: 16px; font-weight: 650; letter-spacing: 0; white-space: nowrap; }
.th-who small { display: block; margin-top: 1px; color: var(--app-muted); }
.th-tools { display: flex; align-items: center; gap: 8px; }
.ap-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid var(--app-line); border-radius: 9px; background: #fff; font-weight: 550; white-space: nowrap; }
.ap-btn .gl { width: 14px; height: 14px; }
.ap-btn .gl:last-child:not(:first-child) { width: 13px; height: 13px; color: var(--app-muted); }
.ap-btn.is-primary { background: var(--app-blue); border-color: var(--app-blue); color: #fff; }
.th-meta { display: flex; align-items: center; gap: 6px; padding: 8px 20px; border-bottom: 1px solid var(--app-line); }
.th-status { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 6px; background: var(--app-soft); color: #4b5563; font-size: 11.5px; font-weight: 550; }
.th-status i { width: 7px; height: 7px; border-radius: 50%; background: #22a05a; }
.th-item { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; color: #4b5563; font-size: 12.5px; white-space: nowrap; }
.th-item .gl { width: 13px; height: 13px; opacity: .7; }
.th-meta .tag { height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; }
.th-meta .th-item + .tag { margin-left: 4px; }
.th-timeline { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 10px; background: #fcfcfd; overflow: hidden; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 80%; margin: 8px 0; }
.msg .sa { width: 28px; height: 28px; }
.msg.is-staff { align-self: flex-end; flex-direction: row-reverse; }
.msg.is-staff .sa { margin-bottom: 19px; }
.msg-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.msg.is-staff .msg-body { align-items: flex-end; }
.msg-author { display: flex; align-items: center; gap: 6px; margin: 0 4px 4px; color: var(--app-muted); font-size: 12px; }
.msg-author b { color: var(--app-ink); font-weight: 600; }
.msg-author .gl { width: 13px; height: 13px; }
.bubble { padding: 8px 13px; border: 1px solid transparent; border-radius: 18px; background: #eeeff2; line-height: 1.55; }
.msg.is-staff .bubble { background: var(--app-blue); color: #fff; }
.msg.is-note .msg-author, .msg.is-note .msg-author b { color: #6d4fd8; }
.msg.is-note .bubble { background: #f7f4ff; border: 1px dashed #c9bcf7; }
.msg-footer { margin: 3px 6px 0; color: #90949c; font-size: 11.5px; }
.th-event { display: flex; align-items: center; gap: 8px; align-self: center; margin: 6px 0; color: #9498a0; }
.th-event::before, .th-event::after { content: ""; width: 20px; height: 1px; background: var(--app-line); }
.th-composer { padding: 14px 20px 18px; border-top: 1px solid #eeeff1; }
.cp { padding: 8px; border: 1px solid var(--app-line); border-radius: 12px; background: #fff; }
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-seg { display: inline-flex; padding: 2px; border-radius: 9px; background: #f1f2f4; }
.cp-seg span { display: flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 7px; color: #80848d; }
.cp-seg .gl { width: 13px; height: 13px; }
.cp-seg .is-on { background: #fff; color: var(--app-ink); font-weight: 500; box-shadow: 0 1px 2px #10182814, 0 0 0 1px #10182808; }
.cp-audience { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; color: #8a8e96; font-size: 12px; }
.cp-audience .gl { width: 13px; height: 13px; }
.cp-text { min-height: 58px; padding: 10px 6px 6px; color: #9ca3af; }
.cp-actions { display: flex; justify-content: space-between; align-items: center; }
.cp-tools { display: flex; gap: 2px; color: #797d86; }
.cp-tools span { display: grid; place-items: center; width: 29px; height: 29px; }
.cp-tools .gl { width: 16px; height: 16px; }
.cp-send { min-height: 34px; gap: 9px; padding: 0 9px 0 13px; }
.cp-send kbd { padding: 3px 5px; border-radius: 5px; background: rgb(255 255 255 / 18%); color: rgb(255 255 255 / 88%); font: 500 11px/1 Inter, sans-serif; }

/* Details rail */
.ap-rail { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-left: 1px solid var(--app-line); background: #f8f9fb; overflow: hidden; }
.th-card { display: flex; flex-direction: column; gap: 11px; padding: 14px; border: 1px solid var(--app-line); border-radius: 12px; background: #fff; }
.th-card h3 { display: flex; align-items: center; gap: 6px; color: var(--app-muted); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.th-card h3 span { margin-left: auto; color: var(--app-blue); font-size: 12px; letter-spacing: 0; }
.th-profile { display: flex; align-items: center; gap: 12px; }
.th-profile .sa { width: 42px; height: 42px; }
.th-profile b { display: block; font-size: 15px; font-weight: 600; }
.th-profile small { color: var(--app-muted); font-size: 12.5px; }
.th-facts { display: grid; gap: 8px; }
.th-facts div { display: flex; justify-content: space-between; gap: 10px; }
.th-facts dt { color: var(--app-muted); }
.th-facts dd { font-weight: 500; }
.th-who-cell { display: flex; align-items: center; gap: 6px; }
.th-who-cell .sa { width: 20px; height: 20px; }
.th-past { display: grid; gap: 1px; }
.th-past b { font-weight: 500; }
.th-past small { color: var(--app-muted); font-size: 12px; }

/* Analytics: first response and team workload lanes */
.st { flex: 1; display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 0; }
.st-timing { display: flex; flex-direction: column; padding: 20px 22px; border-right: 1px solid var(--app-line); min-width: 0; }
.st-label { display: flex; align-items: center; gap: 7px; color: var(--app-muted); font-weight: 500; }
.st-label .gl { width: 15px; height: 15px; }
.st-value { margin-top: 8px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.st-value small { color: var(--app-muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.st-value em { margin-left: 4px; color: var(--app-green); font-size: 12.5px; font-style: normal; font-weight: 600; letter-spacing: 0; }
.st-chart { flex: 1; width: 100%; min-height: 0; margin-top: 12px; }
.st-axis { display: flex; justify-content: space-between; color: #9aa1af; font-size: 11.5px; }
.st-dl { display: flex; gap: 28px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef0f3; }
.st-dl dt { color: var(--app-muted); font-size: 12px; }
.st-dl dd { font-weight: 600; }
.st-lanes { padding: 16px 22px 6px; min-width: 0; }
.st-legend { display: flex; gap: 16px; margin-bottom: 4px; color: var(--app-muted); }
.st-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.lane { display: grid; grid-template-columns: 190px minmax(0, 1fr) 64px; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--app-line); }
.lane:last-child { border-bottom: 0; }
.lane-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lane-id .sa { width: 32px; height: 32px; }
.lane-id > span { display: grid; min-width: 0; }
.lane-id strong { font-weight: 550; white-space: nowrap; }
.lane-id small { display: flex; align-items: center; gap: 5px; color: var(--app-muted); font-size: 12px; white-space: nowrap; }
.lane-id small i { width: 6px; height: 6px; border-radius: 50%; background: #c2c6cd; }
.lane-id small.is-available i { background: #22a05a; }
.lane-track { display: flex; align-items: center; min-width: 0; }
.lane-bar { display: flex; height: 24px; border-radius: 7px; overflow: hidden; }
.lane-part { display: grid; place-items: center; min-width: 3px; overflow: hidden; color: #fff; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.lane-part + .lane-part { box-shadow: inset 1px 0 0 #ffffff40; }
.lane-part.is-replies, .st-legend .is-replies { background: var(--app-blue); }
.lane-part.is-helped, .st-legend .is-helped { background: #7c4ddb; }
.lane-part.is-resolved, .st-legend .is-resolved { background: var(--app-green); }
.lane-time { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lane-time small { display: block; color: var(--app-muted); font-size: 11px; font-weight: 400; }
/* Bar length is each teammate's share of the busiest (as in the app); segments split by activity. */
.lane-sam .lane-bar { width: 85%; } .lane-sam .is-replies { flex: 46; } .lane-sam .is-helped { flex: 31; } .lane-sam .is-resolved { flex: 27; }
.lane-ada .lane-bar { width: 70.3%; } .lane-ada .is-replies { flex: 38; } .lane-ada .is-helped { flex: 26; } .lane-ada .is-resolved { flex: 22; }
.lane-luis .lane-bar { width: 54.8%; } .lane-luis .is-replies { flex: 29; } .lane-luis .is-helped { flex: 21; } .lane-luis .is-resolved { flex: 17; }
.lane-hana .lane-bar { width: 34.3%; } .lane-hana .is-replies { flex: 18; } .lane-hana .is-helped { flex: 14; } .lane-hana .is-resolved { flex: 10; }
.lane-eli .lane-bar { width: 23.7%; } .lane-eli .is-replies { flex: 12; } .lane-eli .is-helped { flex: 9; } .lane-eli .is-resolved { flex: 8; }

/* Customer widget (as in Platform widget.css) */
.wd { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--app-line); border-radius: 13px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(23, 32, 51, .35), 0 0 0 1px rgba(23, 32, 51, .03); }
.wd-head { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 17px; border-bottom: 1px solid var(--app-line); }
.wd-brand { display: grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 9px; background: var(--app-soft); }
.wd-head strong { display: block; font-size: 13px; font-weight: 500; }
.wd-head p { margin-top: 4px; color: var(--app-muted); font-size: 10px; }
.wd-close { margin-left: auto; color: var(--app-muted); }
.wd-close .gl { width: 16px; height: 16px; }
.wd-messages { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 20px 17px; min-height: 0; overflow: hidden; }
.wd-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; align-self: flex-start; }
.wd-msg.is-customer { align-items: flex-end; align-self: flex-end; }
.wd-name { margin: 0 0 5px; color: var(--app-muted); font-size: 9px; }
.wd-msg.is-customer .wd-name { text-align: right; }
.wd-body { padding: 11px 13px; border-radius: 10px 10px 10px 2px; background: var(--app-soft); font-size: 12px; line-height: 1.8; }
.wd-msg.is-customer .wd-body { border-radius: 10px 10px 2px 10px; background: var(--app-blue-soft); }
.wd-time { margin-top: 5px; color: var(--app-muted); font-size: 9px; text-align: right; }
.wd-solved { padding: 2px 10px 8px; color: var(--app-muted); font-size: 9px; text-align: center; }
.wd-composer { margin: 0 13px 9px; padding: 10px 9px; border: 1px solid var(--app-line); border-radius: 8px; }
.wd-composer p { min-height: 40px; padding: 0 3px 4px; color: #9ca3af; font-size: 12px; }
.wd-actions { display: flex; align-items: center; justify-content: space-between; }
.wd-attach { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; color: #4b5563; }
.wd-attach .gl { width: 17px; height: 17px; }
.wd-send-wrap { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; }
.wd-send { display: grid; place-items: center; width: 40px; height: 33px; border-radius: 8px; background: var(--app-blue); color: #fff; }
.wd-send .gl { width: 16px; height: 16px; }
.wd-send-wrap small { color: var(--app-muted); font-size: 8px; }
.wd-footer { display: flex; justify-content: center; align-items: center; gap: 5px; padding: 4px 10px 12px; color: #9398a1; font-size: 8px; }

/* Without script, a close fixed scale per width. */
@media (max-width: 1335px) { .hero-stage { --k: .6; } }
@media (max-width: 1199px) { .hero-stage { --k: .51; } }


/* Below desktop the full app is too small to read, so the stage shows the customer's widget at real size. */
@media (max-width: 1023px) {
  .hero-stage { height: auto; padding: 32px 24px 0; border-radius: 20px; overflow: hidden; background: #8fa0f5 url("../images/hero/wallpaper.svg") center / cover; }
  .stage-canvas { display: none; }
  .stage-compact { display: block; max-width: 380px; height: 610px; margin: 0 auto; }
  .stage-compact .wd { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; box-shadow: 0 30px 70px -24px rgba(23, 32, 51, .25); }
}
@media (max-width: 767px) {
  .hero-stage { padding: 20px 16px 0; border-radius: 16px; }
  .stage-compact { height: 600px; }
}
