
  /* Customer journeys */
  .journey-source { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 6px 9px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #777; font-size: 10px; text-decoration: none; }
  .journey-source:hover { border-color: #43b7a8; color: #219b8e; }
  .journey-source-dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd02f; }
  .paths-api-coverage { display: flex; min-height: 38px; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(67,183,168,.28); border-radius: 10px; background: rgba(67,183,168,.08); color: #53606d; font-size: 12px; line-height: 1.35; }
  .paths-api-coverage-compact { margin: 0 0 10px; }
  .paths-api-coverage strong { color: #27313b; font-size: 12px; }
  .paths-api-coverage small { margin-left: auto; color: #75808b; text-align: right; }
  .paths-api-coverage-dot { width: 10px; height: 10px; box-sizing: border-box; flex: 0 0 auto; border: 2px solid rgba(229,162,61,.28); border-top-color: #e5a23d; border-radius: 50%; background: transparent; animation: paths-api-spin .8s linear infinite; }
  .paths-api-coverage[data-status="loading"] { border-color: rgba(229,162,61,.28); background: rgba(229,162,61,.08); }
  .paths-api-coverage:is([data-status="partial"],[data-status="error"]) { border-color: rgba(224,107,115,.25); background: rgba(224,107,115,.07); }
  @keyframes paths-api-spin { to { transform: rotate(360deg); } }
  @media (prefers-reduced-motion: reduce) { .paths-api-coverage-dot { animation: none; } }
  html[data-theme="dark"] .paths-api-coverage { color: #a9b2bd; background: rgba(67,183,168,.09); }
  html[data-theme="dark"] .paths-api-coverage strong { color: #eef1f5; }
  html[data-theme="dark"] .paths-api-coverage small { color: #8993a0; }
  html[data-theme="dark"] .paths-api-coverage[data-status="loading"] { background: rgba(229,162,61,.09); }
  html[data-theme="dark"] .paths-api-coverage:is([data-status="partial"],[data-status="error"]) { background: rgba(224,107,115,.08); }
  .journey-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .journey-kpi { position: relative; padding: 16px; overflow: hidden; border: 1px solid #e5e5e5; border-radius: 12px; background: #fff; }
  .journey-kpi::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--journey-accent); }
  .journey-kpi-label { color: #999; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  .journey-kpi-value { margin-top: 8px; font-size: 27px; font-weight: 700; line-height: 1; }
  .journey-kpi-note { margin-top: 6px; color: #999; font-size: 10px; }
  .journey-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .journey-branch-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
  .journey-branch-tab { padding: 7px 11px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #777; font-size: 11px; font-weight: 600; cursor: pointer; }
  .journey-branch-tab:hover { color: #1a1a1a; }
  .journey-branch-tab.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
  .journey-map { padding: 18px; }
  .journey-map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .journey-map-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
  .journey-data-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e5e5e5; border-radius: 9px; background: #fff; color: #666; font-size: 10px; font-weight: 600; cursor: pointer; user-select: none; }
  .journey-data-toggle:hover { border-color: #43b7a8; color: #219b8e; }
  .journey-data-toggle input { width: 14px; height: 14px; margin: 0; accent-color: #43b7a8; cursor: pointer; }
  .journey-map-title { font-size: 15px; font-weight: 650; }
  .journey-map-sub { margin-top: 3px; color: #999; font-size: 10px; }
  .journey-columns { display: grid; grid-template-columns: .76fr 1.14fr 1.26fr .76fr; gap: 18px; align-items: start; }
  .journey-column { position: relative; min-width: 0; padding: 9px; border: 1px dashed #dedfe5; border-radius: 13px; background: linear-gradient(180deg,#fafafa 0%,#f7f8fa 100%); }
  .journey-column:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -19px; transform: translateY(-50%); color: #bbb; font-size: 18px; }
  .journey-column-label { display: inline-flex; align-items: center; min-height: 22px; margin-bottom: 7px; padding: 4px 7px; border-radius: 6px; background: rgba(90,96,110,.07); color: #777c86; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .journey-node-list { display: flex; flex-direction: column; gap: 6px; }
  .journey-node { position: relative; display: grid; width: 100%; padding: 9px; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-areas: "name name" "traffic output" "next next"; column-gap: 6px; row-gap: 6px; border: 1px solid color-mix(in srgb, var(--node-color) 34%, #e5e5e5); border-left: 3px solid var(--node-color); border-radius: 10px; background: linear-gradient(135deg,color-mix(in srgb,var(--node-color) 4%,#fff),#fff 62%); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: opacity .18s, transform .18s, border-color .18s, box-shadow .18s; }
  .journey-node:hover { transform: translateY(-1px); border-color: color-mix(in srgb,var(--node-color) 72%,#dedfe5); box-shadow: 0 8px 22px rgba(24,27,34,.09); }
  .journey-node:focus-visible { outline: 2px solid color-mix(in srgb, var(--node-color) 55%, transparent); outline-offset: 2px; }
  .journey-node.faded { opacity: .23; transform: scale(.985); }
  .journey-node.is-start::after,
  .journey-node.is-end::after { position: absolute; top: 9px; right: 9px; padding: 3px 6px; border-radius: 99px; font-size: 8px; font-weight: 800; letter-spacing: .04em; }
  .journey-node.is-start::after { content: "НАЧАЛО"; background: rgba(41,128,185,.12); color: #2980b9; }
  .journey-node.is-end::after { content: "КОНЕЦ"; background: rgba(230,153,49,.14); color: #b9761f; }
  .journey-node-name { grid-area: name; align-self: center; display: block; min-width: 0; color: #252932; font-size: 13px; font-weight: 750; line-height: 1.2; }
  .journey-node.is-start .journey-node-name,
  .journey-node.is-end .journey-node-name { padding-right: 58px; }
  .journey-node-traffic { grid-area: traffic; display: none; min-width: 0; margin: 0; padding: 5px 7px; border: 1px solid rgba(41,128,185,.15); border-radius: 7px; background: rgba(41,128,185,.07); color: #2980b9; font-size: 10px; font-weight: 750; line-height: 1.25; }
  .journey-node-output-total { grid-area: output; display: none; min-width: 0; margin: 0; padding: 5px 7px; border: 1px solid rgba(39,174,96,.15); border-radius: 7px; background: rgba(39,174,96,.07); color: #219653; font-size: 10px; font-weight: 800; line-height: 1.25; }
  .journey-map.show-data .journey-node-traffic,
  .journey-map.show-data .journey-node-output-total { display: block; }
  .journey-node-next { grid-area: next; display: grid; grid-template-columns: repeat(auto-fit,minmax(88px,1fr)); gap: 5px; margin: 0; color: #777d89; font-size: 10px; line-height: 1.3; }
  .journey-next-item { display: inline-flex; min-width: 0; min-height: 0; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 7px; border: 1px solid color-mix(in srgb,var(--node-color) 16%,#e7e7eb); border-radius: 8px; background: color-mix(in srgb,var(--node-color) 5%,#f8f9fb); }
  .journey-next-conversion { display: none; color: #27ae60; font-size: 10px; font-weight: 750; line-height: 1.2; }
  .journey-next-output { display: none; color: #2980b9; font-size: 9px; font-weight: 750; line-height: 1.2; }
  .journey-map.show-data .journey-next-conversion,
  .journey-map.show-data .journey-next-output { display: block; }
  .journey-map:not(.show-data) .journey-node { grid-template-areas: "name name" "next next"; }
  .journey-node.start,
  .journey-node.goal { min-height: 0; }
  .journey-node.goal { border-left-width: 3px; border-color: rgba(230,153,49,.6); background: linear-gradient(135deg,rgba(230,153,49,.11),rgba(230,153,49,.045)); text-align: left; }
  .journey-node.goal .journey-node-next { display: block; padding: 7px 8px; border-radius: 7px; background: rgba(230,153,49,.08); color: #9a6c2d; font-weight: 700; }
  .journey-routes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
  .journey-routes-tools { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
  .journey-routes-count { color: #999; font-size: 10px; }
  .journey-endpoint-controls { display: flex; min-width: min(100%,520px); align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 10px; border: 1px solid #e5e5e5; border-radius: 11px; background: #fff; }
  .journey-endpoint-field { display: flex; min-width: 0; flex: 1 1 205px; align-items: center; gap: 8px; }
  .journey-endpoint-label { flex: 0 0 auto; color: #555; font-size: 11px; font-weight: 750; }
  .journey-endpoint-select { width: 100%; min-width: 135px; padding-block: 7px; font-size: 11px; }
  .journey-endpoint-arrow { flex: 0 0 auto; color: #999; font-size: 16px; }
  .journey-endpoint-reset { border: 0; background: transparent; color: #999; font-size: 10px; cursor: pointer; }
  .journey-endpoint-reset:hover { color: #e74c3c; }
  .journey-route-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .journey-route { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 11px 12px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fff; }
  .journey-route:hover { background: #f9f9fb; }
  .journey-route-steps { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; flex-wrap: wrap; }
  .journey-route-step { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 4px 7px; border-radius: 6px; background: color-mix(in srgb, var(--step-color) 12%, #fff); color: color-mix(in srgb, var(--step-color) 74%, #222); font-size: 9px; font-weight: 650; white-space: nowrap; }
  .journey-route-step-data,
  .journey-route-step-total-output,
  .journey-route-step-conversion,
  .journey-route-step-output { display: none; font-size: 7px; line-height: 1.25; }
  .journey-route-step-data { color: #2980b9; }
  .journey-route-step-total-output { color: #27ae60; }
  .journey-route-step-conversion { color: #27ae60; }
  .journey-route-step-output { color: #2980b9; }
  .journey-route-grid.show-data .journey-route-step-data,
  .journey-route-grid.show-data .journey-route-step-total-output,
  .journey-route-grid.show-data .journey-route-step-conversion,
  .journey-route-grid.show-data .journey-route-step-output { display: block; }
  .journey-route-arrow { color: #bbb; font-size: 10px; }
  .journey-route-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed #dedfe5; border-radius: 12px; color: #999; font-size: 11px; text-align: center; }
  .journey-route-length { flex: 0 0 auto; color: #aaa; font-size: 9px; }

  /* Journey stage detail */
  body.journey-detail-open { overflow: hidden; }
  .journey-detail-view { position: fixed; z-index: 100; inset: 0; display: none; overflow-y: auto; background: #f2f2f7; }
  .journey-detail-view.open { display: block; }
  .journey-detail-shell { width: 100%; max-width: 1540px; min-height: 100%; margin: 0 auto; padding: 18px 24px 28px; }
  .journey-detail-topbar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 10px; }
  .journey-detail-back,
  .journey-detail-close { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dedfe5; background: #fff; color: #555; cursor: pointer; }
  .journey-detail-back { gap: 8px; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 650; }
  .journey-detail-close { width: 40px; height: 40px; border-radius: 10px; font-size: 25px; line-height: 1; }
  .journey-detail-back:hover,
  .journey-detail-close:hover { border-color: #43b7a8; color: #219b8e; }
  .journey-detail-a11y-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .journey-detail-period { min-width: 0; justify-self: end; }
  .journey-detail-period .period-tabs { gap: 1px; padding: 3px; }
  .journey-detail-period .period-tab { padding: 6px 9px; font-size: 12px; }
  .journey-detail-period .period-selection { padding-right: 2px; font-size: 10px; }
  .journey-detail-canvas { max-width: 1440px; margin: 10px auto 0; padding: 18px 20px; border: 1px solid #dedfe5; border-radius: 16px; background: #fff; }
  .journey-detail-canvas-head { margin-bottom: 12px; }
  .journey-detail-canvas-title { font-size: 20px; font-weight: 700; }
  .journey-detail-canvas-sub { margin-top: 5px; color: #999; font-size: 13px; line-height: 1.4; }
  .journey-detail-funnel { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,300px); gap: 16px; align-items: center; }
  .journey-detail-funnel[data-stream-count="1"] { align-items: center; }
  .journey-detail-streams { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; }
  .journey-detail-transitions { display: grid; margin: 0 0 18px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .journey-detail-transition-card { padding: 15px 16px; border: 1px solid #e1e3e8; border-radius: 14px; background: #fff; }
  .journey-detail-transition-card h2 { margin-bottom: 10px; color: #252932; font-size: 12px; }
  .journey-detail-transition-list { display: flex; flex-wrap: wrap; gap: 7px; }
  .journey-detail-transition-list span { padding: 6px 8px; border-radius: 8px; background: #f3f4f7; color: #555d69; font-size: 10px; }
  .journey-detail-transition-list strong { color: #282d36; font-variant-numeric: tabular-nums; }
  .journey-detail-stream { display: grid; width: fit-content; max-width: 100%; min-width: 0; grid-template-columns: 110px minmax(138px,auto) 118px; align-items: center; column-gap: 14px; padding: 14px 16px; border: 1px solid #e5e5e5; border-left: 4px solid var(--stream-color); border-radius: 12px; background: #fafafa; }
  .journey-detail-stream-label { color: #888; font-size: 11px; font-weight: 750; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; }
  .journey-detail-stream-path { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 10px; }
  .journey-detail-stage { display: inline-flex; min-width: 138px; flex-direction: column; gap: 3px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--stage-color) 35%, #dedfe5); border-radius: 10px; background: color-mix(in srgb, var(--stage-color) 8%, #fff); }
  .journey-detail-stage-name { color: color-mix(in srgb, var(--stage-color) 75%, #222); font-size: 13px; font-weight: 750; }
  .journey-detail-stage-traffic { color: #2980b9; font-size: 11px; font-weight: 650; }
  .journey-detail-stage-output { color: #27ae60; font-size: 11px; font-weight: 650; }
  .journey-detail-link { display: inline-flex; min-width: 72px; flex-direction: column; align-items: center; color: #27ae60; font-size: 10px; font-weight: 750; }
  .journey-detail-link::before { content: "→"; margin-bottom: 2px; color: #aaa; font-size: 20px; font-weight: 400; }
  .journey-detail-link-output { margin-top: 3px; color: #2980b9; font-size: 9px; white-space: nowrap; }
  .journey-detail-to-goal { position: relative; display: flex; flex-direction: column; align-items: center; color: #27ae60; font-size: 10px; font-weight: 750; text-align: center; }
  .journey-detail-to-goal::before { content: ""; width: 100%; height: 2px; margin-bottom: 6px; background: linear-gradient(90deg, #cfd1d8, var(--stream-color)); }
  .journey-detail-to-goal::after { content: "›"; position: absolute; top: -11px; right: -5px; color: var(--stream-color); font-size: 28px; line-height: 1; }
  .journey-detail-goal { position: relative; display: flex; min-height: 0; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px 20px; border: 1px solid color-mix(in srgb, var(--goal-color) 58%, #dedfe5); border-radius: 16px; background: color-mix(in srgb, var(--goal-color) 9%, #fff); text-align: center; }
  .journey-detail-goal::before { content: "КОНЕЧНАЯ ЦЕЛЬ"; position: absolute; top: 16px; padding: 5px 10px; border-radius: 99px; background: color-mix(in srgb, var(--goal-color) 14%, transparent); color: var(--goal-color); font-size: 10px; font-weight: 800; letter-spacing: .05em; }
  .journey-detail-goal-name { max-width: 240px; font-size: 25px; font-weight: 750; }
  .journey-detail-goal-traffic { margin-top: 10px; color: #2980b9; font-size: 14px; font-weight: 750; }
  .journey-detail-goal-outgoing { margin-top: 8px; color: #27ae60; font-size: 11px; line-height: 1.45; }
  .journey-detail-goal-note { margin-top: 10px; color: #999; font-size: 11px; line-height: 1.4; }
  .journey-detail-origin { padding: 32px; border: 1px dashed #dedfe5; border-radius: 12px; color: #888; font-size: 14px; line-height: 1.5; text-align: center; }
  .journey-detail-streams[data-stream-count="1"] { align-items: flex-end; }
  .journey-detail-streams[data-stream-count="1"] .journey-detail-stream { width: fit-content; grid-template-columns: max-content minmax(180px,auto) minmax(130px,140px); padding: 16px; column-gap: 14px; }
  .journey-detail-streams[data-stream-count="1"] .journey-detail-stream-label { font-size: 13px; }
  .journey-detail-streams[data-stream-count="1"] .journey-detail-stage { min-width: 180px; padding: 15px 16px; }
  .journey-detail-streams[data-stream-count="1"] .journey-detail-stage-name { font-size: 16px; }
  .journey-detail-streams[data-stream-count="1"] .journey-detail-stage-traffic,
  .journey-detail-streams[data-stream-count="1"] .journey-detail-stage-output { font-size: 13px; }
  .journey-detail-streams[data-stream-count="1"] .journey-detail-to-goal { font-size: 12px; }
  .journey-detail-streams[data-stream-count="1"] .journey-detail-link-output { font-size: 11px; }
  .journey-detail-streams:is([data-stream-count="2"],[data-stream-count="3"]) { align-items: flex-end; }
  .journey-detail-streams:is([data-stream-count="2"],[data-stream-count="3"]) .journey-detail-stream { width: fit-content; grid-template-columns: 110px minmax(150px,auto) 120px; padding: 14px 16px; }
  .journey-detail-streams:is([data-stream-count="2"],[data-stream-count="3"]) .journey-detail-stage { min-width: 150px; padding: 12px 13px; }
  .journey-detail-streams:is([data-stream-count="2"],[data-stream-count="3"]) .journey-detail-stage-name { font-size: 14px; }

  .page-view { display: none; }
  .page-view.active { display: flex; flex-direction: column; gap: 16px; }
  .goal-return-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; }
  .page-view.goal-return-active .goal-return-bar { display: flex; }
  .coming-soon-page { position: relative; }
  .coming-soon-page .goal-return-bar { position: absolute; z-index: 2; top: 18px; right: 18px; left: 18px; }
  .online-page-heading { display: flex; min-width: 0; align-items: center; gap: 12px; }
  .online-page-nav { display: inline-flex; width: 38px; height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid #dfe2e8; border-radius: 10px; background: #fff; color: #5d636e; font: inherit; font-size: 22px; line-height: 1; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
  .online-page-nav:hover { border-color: rgba(67,183,168,.55); background: rgba(67,183,168,.08); color: #278f82; }
  .online-page-nav:active { transform: translateY(1px); }
  .online-page-nav:focus-visible { outline: 2px solid #43b7a8; outline-offset: 2px; }
  .online-page-close { font-size: 25px; }
  .online-summary { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 14px; }
  .online-panel { overflow: hidden; border: 1px solid #e4e7ea; border-radius: 15px; background: #fff; }
  .online-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid #eceef1; }
  .online-panel-title { color: #22262d; font-size: 16px; font-weight: 760; }
  .online-panel-sub { margin-top: 3px; color: #8b9099; font-size: 11px; }
  .online-history-search { display: flex; width: min(260px,42%); min-width: 190px; height: 36px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #dfe2e8; border-radius: 10px; background: #f7f8fa; color: #969ba5; }
  .online-history-search:focus-within { border-color: rgba(67,183,168,.65); box-shadow: 0 0 0 3px rgba(67,183,168,.1); }
  .online-history-search svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .online-history-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #343942; font: inherit; font-size: 11px; }
  .online-history-search input::placeholder { color: #969ba5; }
  .online-panel-count { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 11px; border-radius: 11px; background: rgba(47,186,131,.12); color: #1da36f; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .online-now-list { display: flex; min-height: 210px; flex-direction: column; gap: 8px; padding: 14px; }
  .online-employee { display: flex; width: 100%; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid #e7e9ed; border-radius: 11px; background: #fafbfc; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
  .online-employee:hover { border-color: rgba(67,183,168,.55); background: rgba(67,183,168,.07); }
  .online-employee:active { transform: translateY(1px); }
  .online-employee:focus-visible { outline: 2px solid #43b7a8; outline-offset: 2px; }
  .online-avatar { display: inline-flex; width: 38px; height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: rgba(47,186,131,.13); color: #1da36f; font-size: 12px; font-weight: 800; }
  .online-employee-copy { min-width: 0; flex: 1; }
  .online-employee-name-row { display: flex; min-width: 0; align-items: center; gap: 6px; }
  .online-employee-name { min-width: 0; overflow: hidden; color: #252931; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
  .online-device-icon { display: inline-flex; width: 16px; height: 16px; flex: 0 0 auto; align-items: center; justify-content: center; color: #20a673; }
  .online-device-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .online-device-icons { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; }
  .online-employee-login { margin-top: 2px; overflow: hidden; color: #8b9099; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .online-live { display: inline-flex; align-items: center; color: #20a673; font-size: 10px; font-weight: 750; white-space: nowrap; }
  .online-live.is-idle { color: #d98517; }
  .online-history-wrap { overflow-x: auto; }
  .online-history-table { width: 100%; min-width: 679px; table-layout: fixed; border-collapse: collapse; }
  .online-history-table th { padding: 12px 15px; border-bottom: 1px solid #eceef1; background: #fafbfc; color: #8b9099; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
  .online-history-table td { padding: 13px 15px; border-bottom: 1px solid #eceef1; color: #343942; font-size: 11px; }
  .online-history-table th:nth-child(5) { position: sticky; z-index: 3; right: 0; background: #fafbfc; box-shadow: -10px 0 16px -18px rgba(25,29,36,.8); }
  .online-history-table td:nth-child(n+2) { white-space: nowrap; }
  .online-history-table tbody tr:last-child td { border-bottom: 0; }
  .online-history-row { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
  .online-history-row:hover { background: rgba(67,183,168,.07); }
  .online-history-row:focus-visible { outline: 2px solid #43b7a8; outline-offset: -2px; }
  .online-history-person { display: flex; align-items: center; gap: 9px; }
  .online-history-person .online-avatar { width: 32px; height: 32px; font-size: 10px; }
  .online-history-person::after { content: '›'; margin-left: auto; color: #a5aab3; font-size: 20px; line-height: 1; }
  .online-history-status { display: inline-flex; align-items: center; color: #898e98; font-size: 10px; font-weight: 700; white-space: nowrap; }
  .online-history-status.is-online { color: #20a673; }
  .online-history-status.is-idle { color: #d98517; }
  .online-history-action { position: sticky; z-index: 2; right: 0; padding-right: 12px!important; padding-left: 6px!important; background: #fff; box-shadow: -10px 0 16px -18px rgba(25,29,36,.8); text-align: right; }
  .online-history-row:hover .online-history-action { background: #f3fbf9; }
  .online-history-delete { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #9ba0aa; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
  .online-history-delete:hover { border-color: #d8dbe1; background: #eef0f3; color: #676d77; }
  .online-history-delete:focus-visible { outline: 2px solid #43b7a8; outline-offset: 2px; }
  .online-history-delete svg { width: 14px; height: 14px; }
  .presence-delete-modal[hidden] { display: none; }
  .presence-delete-modal { position: fixed; z-index: 1250; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(8,10,14,.72); backdrop-filter: blur(4px); }
  .presence-delete-dialog { width: min(420px,100%); padding: 24px; border: 1px solid #353a45; border-radius: 16px; background: #1a1d24; box-shadow: 0 28px 80px rgba(0,0,0,.55); color: #e7e9ee; }
  .presence-delete-icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid #3a3f4a; border-radius: 10px; background: #242831; color: #a9afb9; font-size: 19px; }
  .presence-delete-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .presence-delete-title { margin-top: 16px; font-size: 17px; font-weight: 800; }
  .presence-delete-copy { margin-top: 8px; color: #aeb3bd; font-size: 12px; line-height: 1.55; }
  .presence-delete-copy strong { color: #e7e9ee; }
  .presence-delete-error { min-height: 18px; margin-top: 8px; color: #ff837b; font-size: 10px; }
  .presence-delete-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
  .presence-delete-actions button { min-width: 92px; height: 38px; border: 1px solid #3a3f49; border-radius: 10px; background: #242831; color: #c8ccd4; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
  .presence-delete-actions button:hover { background: #2c303a; color: #fff; }
  .presence-delete-actions button.danger { border-color: rgba(216,91,82,.5); background: rgba(154,55,49,.2); color: #ff8b83; }
  .presence-delete-actions button.danger:hover { background: rgba(180,62,55,.3); }
  .presence-delete-actions button:disabled { cursor: wait; opacity: .55; }
  html[data-theme="dark"] .online-history-search { border-color: #30343f; background: #111318; color: #777d88; }
  html[data-theme="dark"] .online-history-search input { color: #e5e7ec; }
  html[data-theme="dark"] .online-history-search input::placeholder { color: #777d88; }
  html[data-theme="dark"] .online-history-delete { color: #777d88; }
  html[data-theme="dark"] .online-history-delete:hover { border-color: #353a45; background: #242831; color: #b8bdc6; }
  html[data-theme="dark"] .online-history-table th:nth-child(5) { background: #111318; }
  html[data-theme="dark"] .online-history-action { background: #15171d; }
  html[data-theme="dark"] .online-history-row:hover .online-history-action { background: #17241f; }
  .login-history-modal[hidden] { display: none; }
  .login-history-modal { position: fixed; z-index: 1200; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(13,15,20,.58); backdrop-filter: blur(3px); }
  .login-history-dialog { display: flex; width: min(720px, 100%); max-height: min(820px, calc(100vh - 44px)); flex-direction: column; overflow: hidden; border: 1px solid #dfe2e8; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(10,12,18,.32); }
  .login-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid #eceef1; }
  .login-history-identity { display: flex; min-width: 0; flex: 1 1 auto; align-items: center; gap: 12px; }
  .login-history-identity .online-avatar { width: 44px; height: 44px; font-size: 13px; }
  .login-history-title { color: #22262d; font-size: 19px; font-weight: 800; }
  .login-history-login { margin-top: 3px; color: #8b9099; font-size: 11px; }
  .login-history-recognition { display: inline-flex; min-width: 210px; min-height: 50px; flex: 0 1 230px; align-items: center; justify-content: center; gap: 12px; padding: 9px 16px 9px 18px; border: 1px solid rgba(238,155,40,.45); border-radius: 13px; background: linear-gradient(135deg,rgba(238,155,40,.21),rgba(238,155,40,.08)); box-shadow: inset 4px 0 #ee9b28; color: #a75f08; font: inherit; cursor: pointer; transition: border-color .15s ease,background .15s ease,transform .15s ease; }
  .login-history-recognition span { font-size: 14px; font-weight: 820; line-height: 1.12; }
  .login-history-recognition b { flex: 0 0 auto; font-size: 25px; font-weight: 400; line-height: 1; }
  .login-history-recognition:hover { border-color: rgba(238,155,40,.72); background: linear-gradient(135deg,rgba(238,155,40,.29),rgba(238,155,40,.13)); transform: translateY(-1px); }
  .login-history-recognition:focus-visible { outline: 3px solid rgba(238,155,40,.34); outline-offset: 2px; }
  .login-history-recognition:disabled { cursor: default; opacity: .5; transform: none; }
  .login-history-close { display: inline-flex; width: 36px; height: 36px; flex: 0 0 auto; align-items: center; justify-content: center; border: 1px solid #dfe2e8; border-radius: 10px; background: transparent; color: #707680; font: inherit; font-size: 22px; cursor: pointer; }
  .login-history-close:hover { border-color: rgba(67,183,168,.55); background: rgba(67,183,168,.08); color: #278f82; }
  .login-history-summary { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 10px; padding: 16px 24px; border-bottom: 1px solid #eceef1; background: #fafbfc; }
  .login-history-stat { padding: 10px 12px; border: 1px solid #e7e9ed; border-radius: 10px; background: #fff; }
  .login-history-stat-featured { grid-column: span 6; min-height: 92px; padding: 16px 18px; border-radius: 13px; }
  .login-history-stat-featured.is-active { border-color: rgba(47,186,131,.42); background: linear-gradient(135deg,rgba(47,186,131,.2),rgba(47,186,131,.08)); box-shadow: inset 4px 0 #2fba83; }
  .login-history-stat-featured.is-idle { border-color: rgba(238,155,40,.45); background: linear-gradient(135deg,rgba(238,155,40,.21),rgba(238,155,40,.08)); box-shadow: inset 4px 0 #ee9b28; }
  .login-history-stat-secondary { grid-column: span 3; min-height: 61px; padding: 9px 10px; }
  .login-history-stat-label { color: #8b9099; font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
  .login-history-stat-value { margin-top: 4px; color: #252931; font-size: 12px; font-weight: 760; }
  .login-history-stat-featured .login-history-stat-label { font-size: 10px; }
  .login-history-stat-featured .login-history-stat-value { margin-top: 6px; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
  .login-history-stat-featured.is-active .login-history-stat-label,
  .login-history-stat-featured.is-active .login-history-stat-value { color: #16875d; }
  .login-history-stat-featured.is-idle .login-history-stat-label,
  .login-history-stat-featured.is-idle .login-history-stat-value { color: #c6760e; }
  .login-history-stat-note { margin-top: 7px; color: #707680; font-size: 9px; font-weight: 600; }
  .login-history-sections-card { position: relative; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease,background .15s ease; }
  .login-history-sections-card:hover { border-color: rgba(67,183,168,.6); background: rgba(67,183,168,.06); }
  .login-history-sections-card:focus-visible { outline: 2px solid #43b7a8; outline-offset: 2px; }
  .login-history-sections-card .login-history-stat-label,
  .login-history-sections-card .login-history-stat-value,
  .login-history-sections-card .login-history-stat-note { display: block; }
  .login-history-sections-card .login-history-stat-note { margin-top: 3px; padding-right: 14px; font-size: 8px; }
  .login-history-sections-card-chevron { position: absolute; right: 10px; bottom: 12px; width: 8px; height: 8px; border-right: 1.5px solid #8b9099; border-bottom: 1.5px solid #8b9099; transform: rotate(45deg); transition: transform .16s ease; }
  .login-history-sections-card[aria-expanded="true"] .login-history-sections-card-chevron { transform: rotate(225deg) translate(-2px,-2px); }
  .login-history-section-panel { grid-column: 1 / -1; padding: 13px 14px; border: 1px solid #e5e8ec; border-radius: 11px; background: #fff; }
  .login-history-section-panel[hidden] { display: none; }
  .login-history-section-panel-total { margin-top: 1px; }
  .login-history-section-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 14px; }
  .login-history-section-row { min-width: 0; }
  .login-history-section-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .login-history-section-copy strong { overflow: hidden; color: #343942; font-size: 10px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
  .login-history-section-copy span { flex: 0 0 auto; color: #707680; font-size: 9px; font-weight: 680; font-variant-numeric: tabular-nums; }
  .login-history-section-track { display: block; height: 5px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #eef1f3; }
  .login-history-section-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#43b7a8,#55c4b5); }
  .login-history-section-note,
  .login-history-section-empty { color: #7b818b; font-size: 9px; line-height: 1.4; }
  .login-history-section-note { margin-top: 10px; }
  .login-history-section-empty { padding: 3px 1px; }
  .login-history-body { min-height: 220px; overflow-y: auto; padding: 18px 24px 24px; }
  .login-history-day { overflow: hidden; border: 1px solid #e8eaee; border-radius: 12px; background: #fff; }
  .login-history-day + .login-history-day { margin-top: 10px; }
  .login-history-day-summary { display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 10px 12px; transition: background .15s ease,border-color .15s ease; }
  .login-history-day-title { display: inline-flex; min-width: 190px; flex: 1 1 230px; align-items: center; gap: 6px; color: #4d535d; font-size: 11px; font-weight: 800; text-transform: capitalize; }
  .login-history-day-totals { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .login-history-day-total { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 99px; font-size: 9px; font-weight: 750; white-space: nowrap; }
  .login-history-day-total.is-active { background: rgba(47,186,131,.11); color: #1d9769; }
  .login-history-day-total.is-idle { background: rgba(238,155,40,.13); color: #c6760e; }
  .login-history-day-sections { display: inline-flex; min-height: 26px; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid rgba(67,183,168,.28); border-radius: 99px; background: rgba(67,183,168,.08); color: #278f82; font: inherit; font-size: 9px; font-weight: 750; white-space: nowrap; cursor: pointer; }
  .login-history-day-sections strong { font-size: 9px; }
  .login-history-day-sections:hover { border-color: rgba(67,183,168,.6); background: rgba(67,183,168,.14); }
  .login-history-day-sections:focus-visible,
  .login-history-day-sessions:focus-visible { outline: 2px solid #43b7a8; outline-offset: 2px; }
  .login-history-day-sections:disabled { opacity: .45; cursor: default; }
  .login-history-day-sessions { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: #8b9099; cursor: pointer; }
  .login-history-day-sessions:hover { background: rgba(67,183,168,.08); color: #278f82; }
  .login-history-day-chevron { position: relative; width: 18px; height: 18px; flex: 0 0 18px; color: #8b9099; transition: transform .18s ease; }
  .login-history-day-chevron::before { position: absolute; top: 50%; left: 50%; content: '›'; font-size: 22px; line-height: 1; transform: translate(-50%,-52%); }
  .login-history-day-sessions[aria-expanded="true"] .login-history-day-chevron { transform: rotate(90deg); }
  .login-history-section-panel-day { border-width: 1px 0 0; border-radius: 0; background: #fbfcfc; }
  .login-history-events { display: flex; flex-direction: column; gap: 7px; padding: 10px; border-top: 1px solid #eceef1; }
  .login-history-events[hidden] { display: none; }
  .login-history-event { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid #e8eaee; border-radius: 10px; background: #fafbfc; }
  .login-history-event-label { min-width: 0; flex: 1; color: #343942; font-size: 11px; font-weight: 700; }
  .login-history-event-title { display: inline-flex; align-items: center; gap: 6px; }
  .login-history-event-breakdown { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
  .login-history-event-breakdown b { padding: 3px 6px; border-radius: 99px; background: rgba(47,186,131,.11); color: #1d9769; font-size: 8px; font-weight: 750; }
  .login-history-event-breakdown b + b { background: rgba(238,155,40,.13); color: #c6760e; }
  .login-history-session-times { display: grid; grid-template-columns: repeat(2,minmax(78px,auto)); gap: 18px; }
  .login-history-session-time { display: flex; flex-direction: column; gap: 2px; }
  .login-history-session-caption { color: #8b9099; font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
  .login-history-event-time { color: #1da36f; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .login-history-event-time.is-online { color: #20a673; }
  .login-history-event-time.is-idle { color: #d98517; }
  .login-history-duration { min-width: 72px; color: #717782; font-size: 10px; font-weight: 750; text-align: right; white-space: nowrap; }
  .login-history-state { display: flex; min-height: 210px; align-items: center; justify-content: center; padding: 28px; color: #8b9099; font-size: 12px; text-align: center; }
  .online-empty { display: flex; min-height: 170px; align-items: center; justify-content: center; padding: 28px; color: #8b9099; font-size: 12px; text-align: center; }
  .audit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid #e4e7ea; border-radius: 15px; background: #fff; }
  .audit-summary { display: flex; align-items: center; gap: 12px; }
  .audit-summary-value { color: #1da36f; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .audit-summary-copy { color: #7f8490; font-size: 11px; line-height: 1.4; }
  .audit-refresh { padding: 9px 14px; border: 1px solid #dfe2e8; border-radius: 9px; background: transparent; color: #555b66; font: inherit; font-size: 11px; font-weight: 720; cursor: pointer; }
  .audit-refresh:hover { border-color: #43b7a8; color: #278e81; }
  .audit-refresh:disabled { cursor:wait; opacity:.55; }
  .audit-pagination { display:flex; justify-content:center; padding:14px 0 2px; }
  .pv2-participants-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
  .pv2-participants-pagination > span { color:var(--crm-text-muted,#8b9099); font-size:12px; }
  .pv2-participants-pagination > div { display:flex; gap:8px; }
  .audit-table-wrap { overflow: auto; border: 1px solid #e4e7ea; border-radius: 15px; background: #fff; }
  .audit-table { width: 100%; min-width: 820px; border-collapse: collapse; }
  .audit-table th { position: sticky; z-index: 2; top: 0; padding: 13px 16px; border-bottom: 1px solid #eceef1; background: #fafbfc; color: #8b9099; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
  .audit-table td { padding: 14px 16px; border-bottom: 1px solid #eceef1; color: #343942; font-size: 11px; vertical-align: top; }
  .audit-table tbody tr:last-child td { border-bottom: 0; }
  .audit-actor { display: flex; min-width: 0; align-items: center; gap: 10px; }
  .audit-actor > div { min-width: 0; }
  .audit-avatar { display: inline-flex; width: 34px; height: 34px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; background: rgba(67,183,168,.13); color: #268f82; font-size: 10px; font-weight: 800; }
  .audit-actor-name { color: #252931; font-size: 12px; font-weight: 750; overflow-wrap: anywhere; }
  .audit-actor-login { margin-top: 2px; color: #8b9099; font-size: 9px; overflow-wrap: anywhere; }
  .audit-action { color: #252931; font-size: 12px; font-weight: 720; overflow-wrap: anywhere; }
  .audit-details { max-width: 520px; margin-top: 4px; color: #8b9099; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
  .audit-section { display: inline-flex; max-width: 100%; padding: 5px 8px; border-radius: 7px; background: rgba(67,183,168,.11); color: #278f82; font-size: 10px; font-weight: 720; overflow-wrap: anywhere; }
  .audit-date { color: #646a75; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .audit-empty { padding: 48px 24px; color: #8b9099; font-size: 12px; text-align: center; }
  .coming-soon-page.active { min-height: calc(100vh - 40px); align-items: center; justify-content: center; border: 1px solid #252832; border-radius: 16px; background: #08090c; color: #f5f5f7; text-align: center; }
  .coming-soon-state { display: flex; max-width: 560px; padding: 48px 32px; flex-direction: column; align-items: center; gap: 12px; }
  .coming-soon-kicker { color: #55c4b5; font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
  .coming-soon-title { font-size: clamp(34px,5vw,64px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
  .coming-soon-message { color: #9da1ad; font-size: 18px; font-weight: 550; line-height: 1.5; }
