/* Service pages: small additions on top of site.css. Loaded after it on
   the service pages: growth, ads, tracking, lead-response, retention and systems. */

.pillar-hero .mono.eb { display: block; }

@media (max-width: 860px) {
  .stat strong { font-size: 44px; }
}

/* ---- Growth sub-page link in the hero ---- */
.part-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; color: var(--mid); font-size: 14px; font-weight: 500; }
.part-link { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s ease, text-decoration-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .part-link:hover { color: var(--ink); text-decoration-color: var(--ink); } }

/* ---- Four linked cards ---- */
.feature-quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* keeps the stagger reveal (opacity and transform with --d) and adds a quick background change */
.fcard--link { transition: opacity .9s var(--ease) var(--d, 0ms), transform 1s var(--spring) var(--d, 0ms), background .3s ease 0s; }
.fcard--link .n { margin-bottom: 0; }
.fcard--link .more { margin-top: auto; padding-top: 22px; width: fit-content; font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,0,0,.18); text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .fcard--link:hover { background: #ebe8e3; }
  .fcard--link:hover .more { text-decoration-color: var(--ink); }
}
.track-note { margin-top: 48px; color: var(--mid); font-size: 15px; }
.track-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0,0,0,.2); text-underline-offset: 4px; }

/* ---- Systems hub: four sections ---- */
.sys { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.sh + .sys { border-top: 0; padding-top: 24px; }
.sys--flip .sys-copy { order: 2; }
/* full-width example: copy on top in two columns, visual across the page */
.sys--wide { grid-template-columns: 1fr; gap: 36px; }
.sys--wide .sys-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.sys--wide .sys-copy .eb, .sys--wide .sys-copy h3 { grid-column: 1; }
.sys--wide .sys-copy > p:not(.mono), .sys--wide .sys-copy .sys-link { grid-column: 2; justify-self: start; }
.sys--wide .sys-copy > p:not(.mono) { grid-row: 1 / span 2; margin-top: 0; align-self: end; }
.sys-copy .eb { color: var(--mid); }
.sys-copy h3 { margin-top: 16px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.04em; }
.sys-copy > p:not(.mono) { max-width: 48ch; margin-top: 18px; color: var(--mid); font-size: 15.5px; line-height: 1.65; }
.sys-vis { padding: 22px; border-radius: 22px; background: var(--card); }
.sys-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sys-hd b { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sys-hd .mono { color: var(--mid); }

@media (max-width: 1100px) {
  .feature-quad { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .pillar-hero .ctas .part-link { width: min(100%, 300px); justify-content: center; }
  .feature-quad { grid-template-columns: 1fr; gap: 10px; }
  .fcard--link h3 { margin-top: 22px; }
  .fcard--link .more { padding-top: 18px; }
  .track-note { margin-top: 32px; }
  .sys { grid-template-columns: 1fr; gap: 26px; padding: 48px 0; }
  .sh + .sys { padding-top: 8px; }
  .sys--flip .sys-copy { order: 0; }
  .sys--wide .sys-copy { display: block; }
  .sys--wide .sys-copy > p:not(.mono) { margin-top: 18px; }
  .sys-vis { padding: 14px; border-radius: 18px; }
  .sys:last-child { padding-bottom: 0; }
  /* mobile polish: stat labels use the full width and clear the next rule; tighter step notes; wrapped chips align */
  .stat { padding-bottom: 24px; }
  .stat span { max-width: none; text-wrap: pretty; }
  .step small { margin-top: 16px; }
}

/* Systems: floor-plan layout example */
/* venue floor plan: drafting grid, walls, and tables the layout system places one by one */
.fp { position: relative; border-radius: 14px; overflow: hidden; background: #fbf7ec; box-shadow: inset 0 0 0 1px #e9e0cb; }
.fp-svg { display: block; width: 100%; height: auto; }
.fp-svg .w { fill: none; stroke: #16120f; stroke-width: 2.2; stroke-linejoin: round; }
.fp-svg .w--o { stroke-width: 2.6; }
.fp-svg .gp { fill: #fbf7ec; }
.fp-svg .dr { fill: none; stroke: #16120f; stroke-width: 1.1; }
.fp-svg .ex { fill: none; stroke: #e0352b; stroke-width: 1.7; stroke-linecap: round; }
.fp-svg .ds { fill: none; stroke: #a49d90; stroke-width: .8; stroke-dasharray: 4 4; }
.fp-svg .pl, .fp-svg .dj { fill: #e6e0d2; stroke: #9c968a; stroke-width: .8; }
.fp-svg text { font: 600 7px var(--body, sans-serif); letter-spacing: .12em; fill: #77716a; text-anchor: middle; }
.fp-svg .lb--m { font-size: 9.5px; fill: #2a2622; }
.fp-svg .lb--h { font-size: 11px; fill: #2a2622; letter-spacing: .16em; }
.fp-svg .rc { fill: #fff; stroke: #a9a296; stroke-width: .9; }
.fp-svg .ch { fill: #d4cdbf; }
.fp-svg .tb { fill: #3cc97c; stroke: #1e9a58; stroke-width: .7; }
.fp-svg .tb, .fp-svg .rt { opacity: 0; transform: scale(.2); transform-box: fill-box; transform-origin: center; transition: opacity .3s ease, transform .55s var(--spring), fill .45s ease, stroke .45s ease; }
.fp.run .tb, .fp.run .rt { opacity: 1; transform: none; transition-delay: var(--d), var(--d), 0s, 0s; }
.fp.run .tb.s { fill: #fb8b4b; stroke: #e2582a; transition-delay: var(--d), var(--d), calc(var(--d) + 1.6s), calc(var(--d) + 1.6s); }
.fp.clear .tb, .fp.clear .rt { opacity: 0; transform: none; transition: opacity .7s ease; transition-delay: 0s; }
.fp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 16px; font-size: 12.5px; color: var(--mid); }
.fp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.fp-key { width: 16px; height: 6px; border-radius: 2px; background: #3cc97c; box-shadow: inset 0 0 0 1px #1e9a58; }
.fp-key--sold { background: #fb8b4b; box-shadow: inset 0 0 0 1px #e2582a; }
.fp-note { margin-left: auto; color: var(--ink); font-weight: 500; }
.fp-note b { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 860px) { .fp-note { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .fp-svg .tb, .fp-svg .rt { opacity: 1; transform: none; transition: none; } }
.sys-link { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); transition: border-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .sys-link:hover { border-color: var(--ink); } }

/* =====================================================================
   Product UI recreations (demo panels and systems mock-ups)
   Light "app windows" that read as the real tools, kept unbranded:
   no logos or wordmarks, neutral headings, illustrative data only.
   Motion runs once when site.js adds .in to the [data-reveal] parent.
   ===================================================================== */
.demo-panel--ui { padding: 32px; }
.ui-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.ui-stage--2 { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.ui-stage--phone { grid-template-columns: 340px minmax(0, 1fr); align-items: center; gap: 28px; }
.ui-col { display: grid; gap: 18px; min-width: 0; align-content: start; }
.ui-cap { display: block; margin: 0 0 9px 2px; color: rgba(255,255,255,.55); }

.ui {
  --u-fg: #202124; --u-mid: #5f6368; --u-soft: #80868b; --u-line: #e3e3e3; --u-bg: #f8f9fa;
  --u-blue: #1a73e8; --u-red: #d93025; --u-green: #188038; --u-yellow: #f9ab00;
  position: relative; min-width: 0; border-radius: 12px; background: #fff; color: var(--u-fg);
  font: 400 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 60px -24px rgba(0,0,0,.55); overflow: hidden; text-align: left;
}
.ui *, .ui *::before, .ui *::after { font-family: inherit; }
.ui h4, .ui h5 { margin: 0; font-weight: 500; letter-spacing: 0; }
.ui h4 { font-size: 20px; line-height: 1.2; font-weight: 400; }
.ui h5 { font-size: 14px; }
.ui small { font-size: 11.5px; color: var(--u-mid); }
.ui-num { font-variant-numeric: tabular-nums; }
.ui svg { display: block; flex: none; }
.ui-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-note { flex: none; padding: 3px 7px; border-radius: 4px; background: #f1f3f4; color: var(--u-soft); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.ui-note--float { position: absolute; z-index: 3; right: 10px; bottom: 10px; }

/* app top bar */
.ui-bar { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--u-line); background: #fff; }
.ui-burger { flex: none; width: 18px; height: 12px; border-block: 2px solid var(--u-mid); position: relative; }
.ui-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: var(--u-mid); }
.ui-mark { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #e8eaed; color: var(--u-mid); font-size: 11px; font-weight: 700; }
.ui-app { font-size: 17px; color: var(--u-mid); white-space: nowrap; }
.ui-crumb { display: flex; flex-direction: column; min-width: 0; padding-left: 14px; border-left: 1px solid var(--u-line); font-size: 13px; line-height: 1.25; white-space: nowrap; }
.ui-crumb small { font-size: 11px; }
.ui-search { flex: 1; display: flex; align-items: center; gap: 10px; max-width: 420px; height: 36px; margin-left: auto; padding: 0 14px; border-radius: 8px; background: #f1f3f4; color: var(--u-soft); font-size: 13px; white-space: nowrap; overflow: hidden; }
.ui-search .ui-ic { width: 16px; height: 16px; }
.ui-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #7b5ea7; color: #fff; font-size: 12px; font-weight: 600; }
.ui-av--sm { width: 24px; height: 24px; font-size: 10px; }
.ui-av--a { background: #00897b; } .ui-av--b { background: #e8710a; } .ui-av--c { background: #1a73e8; } .ui-av--d { background: #c5221f; } .ui-av--e { background: #5f6368; }
.ui-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; color: var(--u-fg); font-size: 12.5px; white-space: nowrap; }
.ui-chip small { color: var(--u-mid); font-size: 12px; }
.ui-caret { width: 0; height: 0; border: 4.5px solid transparent; border-top-color: currentColor; border-bottom: 0; color: var(--u-mid); }
.ui-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #1e8e3e; vertical-align: 1px; }
.ui-dot--off { background: transparent; box-shadow: inset 0 0 0 1.5px #9aa0a6; }
.ui-dot--warn { background: #f9ab00; }
.ui-dot--blue { background: var(--u-blue); }
.ui-pause { display: inline-block; flex: none; width: 9px; height: 10px; border-inline: 3px solid #9aa0a6; vertical-align: 0; }
.ui-check { display: inline-block; flex: none; width: 14px; height: 14px; border: 2px solid #5f6368; border-radius: 2px; vertical-align: -2px; }

/* tables */
.ui-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ui-table th, .ui-table td { padding: 10px 12px; border-bottom: 1px solid var(--u-line); text-align: right; white-space: nowrap; }
.ui-table th { color: var(--u-mid); font-size: 11.5px; font-weight: 500; vertical-align: bottom; }
.ui-table th:first-child, .ui-table td:first-child, .ui-table .l { text-align: left; }
.ui-table td.l a, .ui-table .ui-link { color: var(--u-blue); }
.ui-table tfoot td, .ui-table tr.tot td { font-weight: 600; background: #f8f9fa; }
.ui-table td small { display: block; margin-top: 1px; font-size: 11px; }
.ui-table .w { white-space: normal; min-width: 190px; }

/* chart frame: gridlines as a background, lines in an SVG that reveals left to right */
.ui-chart { position: relative; height: 170px; margin: 0 0 0 34px; background: repeating-linear-gradient(to bottom, #e8eaed 0 1px, transparent 1px 25%); border-bottom: 1px solid #bdc1c6; }
.ui-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ui-chart path { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ui-chart .ln-a { stroke: var(--u-blue); }
.ui-chart .ln-b { stroke: var(--u-red); }
.ui-chart .ln-prev { stroke: var(--u-blue); stroke-dasharray: 4 4; opacity: .55; }
.ui-chart .area { fill: rgba(26,115,232,.08); stroke: none; }
.ui-yax { position: absolute; top: -7px; bottom: -7px; left: -34px; display: flex; flex-direction: column; justify-content: space-between; width: 28px; color: var(--u-soft); font-size: 10.5px; text-align: right; }
.ui-yax--r { left: auto; right: -34px; text-align: left; }
.ui-xax { display: flex; justify-content: space-between; margin: 6px 0 0 34px; color: var(--u-soft); font-size: 10.5px; }
.ui-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--u-mid); font-size: 12px; }
.ui-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ui-legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--u-blue); }
.ui-legend i.b { background: var(--u-red); }
.ui-legend i.d { height: 0; border-top: 2px dashed rgba(26,115,232,.6); background: none; }

/* motion (once, on reveal) */
.ui-reveal-line { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(.45,0,.2,1) .45s; }
.ui-w.in .ui-reveal-line { clip-path: inset(0 0 0 0); }
.ui-w.in .ui-rise { animation: uiRise .7s var(--ease) both; animation-delay: var(--t, 0s); }
.ui-w.in .ui-grow { transform-origin: left center; animation: uiGrow 1.1s var(--spring) both; animation-delay: var(--t, .3s); }
.ui-w.in .ui-growy { transform-origin: center bottom; animation: uiGrowY .9s var(--spring) both; animation-delay: var(--t, .3s); }
.ui-w.in .ui-slide { animation: uiSlide .8s var(--ease) both; animation-delay: var(--t, 1.6s); }
.ui-w.in .ui-pop { animation: uiPop .45s var(--spring) both; animation-delay: var(--t, 0s); }
@keyframes uiRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes uiGrow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes uiGrowY { from { transform: scaleY(0); } to { transform: none; } }
@keyframes uiSlide { from { opacity: 0; max-height: 0; } 40% { opacity: 0; } to { opacity: 1; max-height: 90px; } }
@keyframes uiPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* ---- Ads: search campaigns view ---- */
.ga-body { display: grid; grid-template-columns: 76px 188px minmax(0, 1fr); min-height: 0; }
.ga-rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; border-right: 1px solid var(--u-line); color: var(--u-mid); font-size: 10.5px; }
.ga-rail span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ga-rail span i { display: grid; place-items: center; width: 40px; height: 30px; border-radius: 15px; }
.ga-rail span.on { color: var(--u-fg); font-weight: 500; }
.ga-rail span.on i { background: #d3e3fd; color: #041e49; }
.ga-rail .plus i { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(60,64,67,.3), 0 2px 6px rgba(60,64,67,.15); color: var(--u-blue); }
.ga-sub { padding: 12px 8px; border-right: 1px solid var(--u-line); font-size: 12.5px; color: var(--u-fg); }
.ga-sub span { display: block; padding: 8px 12px; border-radius: 0 16px 16px 0; white-space: nowrap; }
.ga-sub span.on { background: #e8f0fe; color: #174ea6; font-weight: 600; }
.ga-sub span.ind { padding-left: 24px; color: var(--u-mid); }
.ga-sub b { display: block; margin: 10px 12px 4px; color: var(--u-soft); font-size: 11px; font-weight: 500; }
.ga-main { min-width: 0; padding: 16px 18px 18px; background: #fff; }
.ga-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ga-head .r { display: flex; gap: 8px; align-items: center; }
.ga-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--u-line); border-radius: 8px 8px 0 0; overflow: hidden; }
.ga-card { padding: 10px 14px 12px; border-left: 1px solid var(--u-line); }
.ga-card:first-child { border-left: 0; }
.ga-card small { display: flex; justify-content: space-between; align-items: center; color: inherit; font-size: 12px; opacity: .92; }
.ga-card strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.ga-card--blue { background: #1a73e8; color: #fff; }
.ga-card--red { background: #d93025; color: #fff; }
.ga-plot { padding: 18px 46px 12px 12px; border: 1px solid var(--u-line); border-top: 0; border-radius: 0 0 8px 8px; }
.ga-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 6px; color: var(--u-mid); font-size: 12.5px; }
.ga-tools .ui-ic { width: 16px; height: 16px; }
.ga-filter { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: #e8f0fe; color: #174ea6; font-size: 12px; font-weight: 500; }
.ga-table td.l .ui-dot, .ga-table td.l .ui-pause { margin-right: 9px; }
.ga-table td.st { text-align: left; color: var(--u-fg); }
.ga-table td.st small { color: #b06000; }

/* ---- Ads: social ads manager ---- */
.mt { --u-blue: #0866ff; }
.mt-bar { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-bottom: 1px solid #dddfe2; }
.mt-bar .acct { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 6px; background: #f0f2f5; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mt-bar .date { margin-left: auto; }
.mt-tabs { display: flex; gap: 2px; padding: 10px 14px 0; background: #f0f2f5; border-bottom: 1px solid #dddfe2; }
.mt-tabs span { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 14px; border-radius: 6px 6px 0 0; color: #1c2b33; font-size: 13px; font-weight: 600; white-space: nowrap; }
.mt-tabs span i { width: 14px; height: 11px; border: 2px solid currentColor; border-radius: 2px; opacity: .7; }
.mt-tabs span.on { background: #fff; color: var(--u-blue); box-shadow: inset 0 3px 0 var(--u-blue); }
.mt-tabs small { font-size: 11px; font-weight: 500; color: #65676b; }
.mt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; }
.mt-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; background: #f0f2f5; color: #1c2b33; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mt-btn--go { background: #1b8b34; color: #fff; }
.mt-btn--go b { position: relative; width: 10px; height: 10px; }
.mt-btn--go b::before, .mt-btn--go b::after { content: ""; position: absolute; background: #fff; border-radius: 1px; }
.mt-btn--go b::before { left: 4px; top: 0; width: 2px; height: 10px; }
.mt-btn--go b::after { top: 4px; left: 0; width: 10px; height: 2px; }
.mt-tools .r { margin-left: auto; display: flex; gap: 8px; }
.mt-table { font-size: 12.5px; color: #1c2b33; }
.mt-table th { color: #1c2b33; font-weight: 600; font-size: 12px; border-top: 1px solid #dddfe2; background: #f5f6f7; }
.mt-table td small { color: #65676b; }
.mt-tog { display: inline-block; width: 30px; height: 17px; border-radius: 9px; background: #bec3c9; position: relative; vertical-align: middle; }
.mt-tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mt-tog.on { background: var(--u-blue); }
.mt-tog.on::after { left: 15px; }
.mt-table td.l .ui-link { font-weight: 600; color: #1c2b33; }
.mt-table td.dl { text-align: left; }
.mt-table td.dl .ui-dot { margin-right: 6px; background: #31a24c; }

/* social feed ad preview */
.fd { max-width: 360px; margin: 0 auto; color: #050505; font-size: 13.5px; }
.fd-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.fd-hd b { display: block; font-size: 13.5px; font-weight: 600; }
.fd-hd small { display: block; color: #65676b; font-size: 12px; }
.fd-hd .more { margin-left: auto; display: flex; gap: 3px; }
.fd-hd .more i { width: 4px; height: 4px; border-radius: 50%; background: #65676b; }
.fd-copy { padding: 0 14px 10px; line-height: 1.38; }
.fd-img { position: relative; aspect-ratio: 1.15; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff; background: radial-gradient(60% 70% at 78% 22%, rgba(255,196,77,.9), transparent 70%), radial-gradient(80% 80% at 20% 100%, rgba(241,88,75,.85), transparent 70%), linear-gradient(160deg, #3a2a20, #120d0a); overflow: hidden; }
.fd-img::before { content: ""; position: absolute; right: 9%; top: 0; width: 15%; height: 62%; border-radius: 0 0 40px 40px; background: repeating-linear-gradient(-35deg, rgba(255,255,255,.9) 0 10px, #f1584b 10px 20px, rgba(255,255,255,.9) 20px 30px, #2f5fd0 30px 40px); box-shadow: 0 0 0 5px rgba(255,255,255,.25); opacity: .9; }
.fd-img strong { position: relative; font: 700 26px/1.05 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.02em; }
.fd-img small { position: relative; margin-top: 6px; color: rgba(255,255,255,.85); font-size: 12px; }
.fd-cta { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f0f2f5; }
.fd-cta span { min-width: 0; }
.fd-cta small { display: block; color: #65676b; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.fd-cta b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-cta em { margin-left: auto; flex: none; padding: 8px 12px; border-radius: 6px; background: #e4e6eb; font-style: normal; font-size: 13px; font-weight: 600; }
.fd-ft { display: flex; justify-content: space-between; padding: 10px 14px 12px; color: #65676b; font-size: 12.5px; }
.fd-ft span { display: inline-flex; align-items: center; gap: 6px; }
.fd-like { width: 18px; height: 18px; border-radius: 50%; background: var(--u-blue, #0866ff); display: grid; place-items: center; }
.fd-like svg { width: 11px; height: 11px; fill: #fff; }

/* ---- Tracking: analytics reports snapshot ---- */
.ga4 { background: #f8f9fa; }
.ga4-body { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.ga4-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; background: #fff; border-right: 1px solid var(--u-line); color: var(--u-mid); }
.ga4-rail i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.ga4-rail i.on { background: #e8f0fe; color: var(--u-blue); }
.ga4-main { min-width: 0; padding: 16px 18px 18px; }
.ga4-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ga4-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.ga4-card { min-width: 0; border: 1px solid #dadce0; border-radius: 8px; background: #fff; }
.ga4-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #dadce0; }
.ga4-tabs > div { padding: 12px 14px 10px; color: var(--u-mid); font-size: 12px; }
.ga4-tabs > div.on { box-shadow: inset 0 -3px 0 var(--u-blue); }
.ga4-tabs strong { display: block; margin-top: 4px; color: var(--u-fg); font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.ga4-up { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; color: var(--u-green); font-size: 11.5px; font-weight: 500; }
.ga4-up svg { width: 12px; height: 12px; fill: currentColor; }
.ga4-plot { padding: 18px 20px 12px 12px; }
.ga4-plot .ui-legend { margin: 10px 0 0 34px; }
.ga4-card-ft { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid #dadce0; color: var(--u-blue); font-size: 12.5px; font-weight: 500; }
.ga4-rt { display: flex; flex-direction: column; padding: 14px; }
.ga4-rt h5 { color: var(--u-mid); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.ga4-rt strong { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 32px; font-weight: 400; }
.ga4-rt strong .ui-dot { width: 8px; height: 8px; animation: uiBlink 2s ease-in-out infinite; }
.ga4-rt > small { margin-top: 12px; }
.ga4-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; margin-top: 6px; }
.ga4-bars i { flex: 1; min-width: 0; height: var(--h); background: #1a73e8; border-radius: 1px 1px 0 0; }
.ga4-list { margin-top: 12px; font-size: 12px; }
.ga4-list > div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--u-line); }
.ga4-list > div:first-child { color: var(--u-mid); font-size: 11px; }
@keyframes uiBlink { 50% { opacity: .35; } }
.ga4-table-card { margin-top: 14px; }
.ga4-table-hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #dadce0; }
.ga4-table-hd .ui-search { flex: 0 1 220px; height: 30px; margin-left: 0; }
.ga4-table th { color: var(--u-fg); font-weight: 600; font-size: 12px; }
.ga4-table th .ar { display: inline-block; margin-right: 4px; width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--u-fg); border-bottom: 0; }
.ga4-table td.n { width: 28px; padding-right: 0; color: var(--u-mid); text-align: left; }
.ga4-table td.l { text-align: left; }
.ga4-table tr.tot td { background: #fff; font-weight: 600; vertical-align: top; }
.ga4-table tr.tot td small { font-weight: 400; }
.ga4-table td.l { color: var(--u-fg); }

/* tag debugger */
.tg-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.tg-ev { padding: 10px 0; border-right: 1px solid var(--u-line); background: #f8f9fa; font-size: 12.5px; }
.tg-ev b { display: block; padding: 4px 14px 8px; color: var(--u-mid); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tg-ev span { display: flex; align-items: center; gap: 10px; padding: 7px 14px; white-space: nowrap; }
.tg-ev span i { flex: none; width: 20px; color: var(--u-soft); font-style: normal; font-size: 11px; text-align: right; }
.tg-ev span.on { background: #e8f0fe; color: #174ea6; font-weight: 600; box-shadow: inset 3px 0 0 var(--u-blue); }
.tg-ev span.on i { color: #174ea6; }
.tg-main { min-width: 0; padding: 14px 16px 16px; }
.tg-main h5 { margin: 4px 0 8px; color: var(--u-mid); font-size: 12px; font-weight: 600; }
.tg-main h5 + .tg-list + h5 { margin-top: 16px; }
.tg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tg-tag { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; }
.tg-tag > span { min-width: 0; }
.tg-tag b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-tag small { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-tag em { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 10px; background: #e6f4ea; color: #137333; font-style: normal; font-size: 11px; font-weight: 600; }
.tg-tag em svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; }
.tg-tag--off { background: #fafafa; }
.tg-tag--off em { background: #f1f3f4; color: var(--u-mid); }

/* ---- Lead response: phone with a text thread ---- */
.ph { position: relative; width: 100%; max-width: 330px; margin: 0 auto; padding: 11px; border-radius: 52px; background: #1b1b1d; box-shadow: inset 0 0 0 2px #3a3a3c, 0 30px 70px -20px rgba(0,0,0,.7); }
.ph-scr { position: relative; display: flex; flex-direction: column; height: 640px; border-radius: 42px; background: #fff; color: #000; overflow: hidden; font: 400 15px/1.3 -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif; }
.ph-island { position: absolute; z-index: 4; left: 50%; top: 10px; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 6px 26px 0 30px; font-size: 14px; font-weight: 600; }
.ph-sig { display: flex; align-items: center; gap: 6px; }
.ph-bars { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.ph-bars i { width: 3px; border-radius: 1px; background: #000; }
.ph-bars i:nth-child(1) { height: 4px; } .ph-bars i:nth-child(2) { height: 6px; } .ph-bars i:nth-child(3) { height: 8px; } .ph-bars i:nth-child(4) { height: 10px; }
.ph-bat { position: relative; width: 23px; height: 11px; padding: 1.5px; border: 1px solid rgba(0,0,0,.4); border-radius: 3.5px; }
.ph-bat::before { content: ""; display: block; width: 80%; height: 100%; border-radius: 1.5px; background: #000; }
.ph-bat::after { content: ""; position: absolute; right: -3.5px; top: 3px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(0,0,0,.4); }
.ph-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 10px; border-bottom: .5px solid #d1d1d6; background: rgba(249,249,249,.94); }
.ph-back { position: absolute; left: 12px; top: 14px; display: flex; align-items: center; gap: 2px; color: #007aff; font-size: 15px; }
.ph-back svg { width: 12px; height: 20px; fill: none; stroke: #007aff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ph-head .ui-av { width: 44px; height: 44px; background: linear-gradient(180deg, #a5abb8, #858994); font-size: 17px; }
.ph-head b { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 400; }
.ph-head b svg { width: 6px; height: 9px; fill: none; stroke: #8e8e93; stroke-width: 2; }
.ph-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px 12px 8px; overflow: hidden; }
.ph-body > * { flex: none; }
.ph-ts { margin: 6px 0 8px; color: #8e8e93; font-size: 11px; text-align: center; }
.ph-ts b { font-weight: 600; }
.ph-sys { margin: 2px auto 10px; max-width: 86%; color: #8e8e93; font-size: 11px; text-align: center; }
.bub { width: fit-content; max-width: 78%; margin-top: 3px; padding: 7px 12px 8px; border-radius: 18px; background: #e9e9eb; color: #000; font-size: 14.5px; line-height: 1.3; }
.bub--me { margin-left: auto; background: #0a84ff; color: #fff; }
.bub + .bub--me, .bub--me + .bub:not(.bub--me) { margin-top: 10px; }
.ph-typing { width: fit-content; max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; }
.ph-typing--me { margin-left: auto; }
.ph-typing span { display: flex; gap: 4px; padding: 11px 13px; border-radius: 18px; background: #e9e9eb; }
.ph-typing--me span { background: #6fb6ff; }
.ph-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: phDot 1s ease-in-out infinite; }
.ph-typing--me i { background: #fff; }
.ph-typing i:nth-child(2) { animation-delay: .15s; } .ph-typing i:nth-child(3) { animation-delay: .3s; }
.ui-w.in .ph-typing { animation: phTyping var(--dur, 1.3s) ease both; animation-delay: var(--t, 0s); }
@keyframes phDot { 0%, 60%, 100% { opacity: .4; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes phTyping { 0% { opacity: 0; max-height: 0; margin-top: 0; } 12%, 85% { opacity: 1; max-height: 44px; margin-top: 10px; } 100% { opacity: 0; max-height: 0; margin-top: 0; } }
.ph-dlv { margin: 3px 4px 0 auto; color: #8e8e93; font-size: 11px; font-weight: 500; }
.ph-input { display: flex; align-items: center; gap: 8px; padding: 6px 12px 26px; }
.ph-plus { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e9e9eb; }
.ph-plus svg { width: 14px; height: 14px; stroke: #8e8e93; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.ph-field { flex: 1; display: flex; justify-content: space-between; align-items: center; height: 34px; padding: 0 12px; border: 1px solid #d1d1d6; border-radius: 17px; color: #c4c4c6; font-size: 15px; }
.ph-field svg { width: 14px; height: 18px; fill: none; stroke: #8e8e93; stroke-width: 2; stroke-linecap: round; }
.ph-home { position: absolute; left: 50%; bottom: 8px; width: 120px; height: 4.5px; transform: translateX(-50%); border-radius: 3px; background: #000; }

/* unified inbox */
.ib { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.ib-nav { padding: 12px 8px; border-right: 1px solid var(--u-line); background: #f8f9fa; font-size: 12.5px; }
.ib-nav b { display: block; margin: 4px 10px 8px; color: var(--u-soft); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ib-nav span { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 6px; white-space: nowrap; }
.ib-nav span.on { background: #e8f0fe; color: #174ea6; font-weight: 600; }
.ib-nav span em { font-style: normal; color: var(--u-mid); font-size: 11.5px; }
.ib-nav span.on em { color: #174ea6; }
.ib-main { min-width: 0; }
.ib-tools { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--u-line); }
.ib-tools .ui-search { margin-left: 0; height: 32px; max-width: none; }
.ib-tabs { display: flex; gap: 18px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-mid); font-size: 12.5px; font-weight: 500; }
.ib-tabs span { padding: 10px 0 9px; }
.ib-tabs span.on { color: var(--u-blue); box-shadow: inset 0 -2px 0 var(--u-blue); }
.ib-row { position: relative; display: grid; grid-template-columns: 10px 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--u-line); overflow: hidden; }
.ib-row .ui-dot { margin-top: 13px; width: 8px; height: 8px; }
.ib-row .ui-av { width: 34px; height: 34px; font-size: 12px; }
.ib-row b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row p { margin-top: 2px; color: var(--u-mid); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row.read b { font-weight: 500; }
.ib-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--u-mid); font-size: 11.5px; white-space: nowrap; }
.ib-src { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 2px 8px 2px 6px; border-radius: 10px; background: #f1f3f4; color: var(--u-mid); font-size: 11px; font-weight: 500; }
.ib-src svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ib-src--call { background: #fce8e6; color: #c5221f; }
.ib-src--form { background: #e8f0fe; color: #1967d2; }
.ib-src--dm { background: #f3e8fd; color: #8430ce; }
.ib-src--biz { background: #e6f4ea; color: #137333; }
.ib-st { padding: 2px 7px; border-radius: 4px; background: #e6f4ea; color: #137333; font-size: 10.5px; font-weight: 600; }
.ib-st--book { background: #1a73e8; color: #fff; }
.ib-row.new { background: #f6f9fe; }

/* ---- Retention: review card and email report ---- */
.ui-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.ui-stars svg { width: 14px; height: 14px; fill: #fbbc04; }
.ui-stars--lg svg { width: 18px; height: 18px; }
.ui-stars svg.e { fill: #dadce0; }
.rv { padding: 16px; }
.rv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rv-top h5 { margin-right: auto; font-size: 15px; }
.rv-top .ui-chip { height: 28px; }
.rv-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--u-line); }
.rv-dist { display: grid; gap: 4px; font-size: 11px; color: var(--u-mid); }
.rv-dist span { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 8px; align-items: center; }
.rv-dist i { display: block; height: 8px; border-radius: 4px; background: #e8eaed; overflow: hidden; }
.rv-dist i::before { content: ""; display: block; height: 100%; width: var(--w); border-radius: 4px; background: #fbbc04; }
.ui-w.in .rv-dist i::before { transform-origin: left center; animation: uiGrow 1.1s var(--spring) both .4s; }
.rv-score { text-align: center; }
.rv-score strong { display: block; font-size: 44px; line-height: 1; font-weight: 400; }
.rv-score small { display: block; margin-top: 4px; }
.rv-item { padding-top: 14px; }
.rv-who { display: flex; align-items: center; gap: 10px; }
.rv-who b { display: block; font-size: 13.5px; font-weight: 500; }
.rv-new { margin-left: auto; padding: 2px 8px; border-radius: 4px; background: #e8f0fe; color: #1967d2; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.rv-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--u-mid); font-size: 12px; }
.rv-item p { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.rv-acts { display: flex; gap: 16px; margin-top: 10px; color: var(--u-mid); font-size: 12px; }
.rv-acts span { display: inline-flex; align-items: center; gap: 6px; }
.rv-acts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.rv-reply { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f1f3f4; font-size: 12.5px; line-height: 1.45; }
.rv-reply b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; }
.em-hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--u-line); }
.em-hd h5 { font-size: 15px; font-weight: 600; }
.em-hd small { display: block; margin-top: 2px; }
.em-sent { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 10px; background: #e6f4ea; color: #137333; font-size: 11.5px; font-weight: 600; }
.em-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.em-stats > div { padding: 14px 16px; border-left: 1px solid var(--u-line); }
.em-stats > div:first-child { border-left: 0; }
.em-stats small { display: block; color: var(--u-mid); font-size: 11.5px; font-weight: 500; }
.em-stats strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.em-stats em { display: block; margin-top: 2px; color: var(--u-mid); font-style: normal; font-size: 11px; }
.em-bar { height: 4px; margin-top: 8px; border-radius: 2px; background: #e8eaed; overflow: hidden; }
.em-bar i { display: block; height: 100%; width: var(--w); border-radius: 2px; background: #00a37a; }
.em-table { border-top: 1px solid var(--u-line); }
.em-table th { background: #fafafa; }
.em-table td.l b { display: block; font-weight: 500; color: var(--u-fg); }

/* ---- Growth: lead-to-revenue report ---- */
.lr { background: #eef0f2; }
.lr-bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--u-line); }
.lr-bar .t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-bar .r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lr-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 16px; background: #1a73e8; color: #fff; font-size: 12.5px; font-weight: 500; }
.lr-page { margin: 16px; padding: 20px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(60,64,67,.15); }
.lr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid #1a73e8; }
.lr-head h4 { font-size: 20px; font-weight: 500; }
.lr-head .r { display: flex; flex-wrap: wrap; gap: 8px; }
.lr-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.lr-kpi { padding: 10px 12px; border: 1px solid var(--u-line); border-radius: 4px; }
.lr-kpi small { display: block; color: var(--u-mid); font-size: 11.5px; }
.lr-kpi strong { display: block; margin-top: 2px; font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.lr-kpi em { display: inline-flex; align-items: center; gap: 2px; color: var(--u-green); font-style: normal; font-size: 11px; font-weight: 500; }
.lr-kpi em svg { width: 10px; height: 10px; fill: currentColor; }
.lr-kpi--hot { background: #e8f0fe; border-color: #c6dafc; }
.lr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; margin-top: 18px; }
.lr-sec h5 { margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.lr-fun { display: grid; gap: 6px; }
.lr-fun > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12px; }
.lr-fun > div > span { color: var(--u-mid); }
.lr-fun b { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 30px; width: var(--w); min-width: 96px; padding: 0 10px; border-radius: 2px; background: var(--c, #1a73e8); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lr-fun b small { color: rgba(255,255,255,.85); font-size: 11px; font-weight: 500; }
.lr-table td .hb { display: inline-block; height: 8px; margin-right: 8px; width: var(--w); max-width: 60px; border-radius: 1px; background: #a1c2fa; vertical-align: 0; }
.lr-table td.rev { font-weight: 600; }
.lr-src { display: block; color: var(--u-mid); font-size: 11px; }

/* ---- Systems: CRM, automation builder, dashboard, internal tool ---- */
.sys-vis--ui { min-width: 0; padding: 14px; }
.crm-bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--u-line); }
.crm-bar nav { display: flex; gap: 4px; font-size: 12.5px; color: var(--u-mid); }
.crm-bar nav span { padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.crm-bar nav span.on { background: #f1f3f4; color: var(--u-fg); font-weight: 600; }
.crm-rec { display: grid; grid-template-columns: 270px minmax(0, 1fr) 250px; min-height: 0; }
.crm-side { padding: 18px; border-right: 1px solid var(--u-line); }
.crm-id { display: flex; align-items: center; gap: 12px; }
.crm-id .ui-av { width: 48px; height: 48px; font-size: 17px; }
.crm-id b { display: block; font-size: 16px; font-weight: 600; }
.crm-acts { display: flex; gap: 6px; margin-top: 14px; }
.crm-acts span { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 8px 0 6px; border: 1px solid var(--u-line); border-radius: 8px; color: var(--u-mid); font-size: 11px; }
.crm-acts svg { width: 16px; height: 16px; fill: none; stroke: var(--u-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.crm-fields { margin-top: 16px; font-size: 12.5px; }
.crm-fields > div { padding: 8px 0; border-top: 1px solid var(--u-line); }
.crm-fields small { display: block; font-size: 11px; }
.crm-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.crm-tags i { padding: 2px 8px; border-radius: 10px; background: #f1f3f4; font-style: normal; font-size: 11px; font-weight: 500; }
.crm-tags i.a { background: #fef7e0; color: #b06000; } .crm-tags i.b { background: #e6f4ea; color: #137333; }
.crm-feed { min-width: 0; padding: 14px 18px; background: #fbfbfc; }
.crm-feed-tabs { display: flex; gap: 18px; margin-bottom: 12px; border-bottom: 1px solid var(--u-line); color: var(--u-mid); font-size: 12.5px; font-weight: 500; }
.crm-feed-tabs span { padding: 6px 0 9px; }
.crm-feed-tabs span.on { color: var(--u-fg); box-shadow: inset 0 -2px 0 #ff7a59; }
.tl { position: relative; display: grid; gap: 10px; }
.tl::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: #e8eaed; }
.tl-it { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.tl-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--u-line); color: var(--u-mid); }
.tl-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-ic--call { background: #fff4f0; color: #e8590c; box-shadow: inset 0 0 0 1px #ffd8c8; }
.tl-card { min-width: 0; padding: 10px 12px; border: 1px solid var(--u-line); border-radius: 8px; background: #fff; }
.tl-card .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12.5px; }
.tl-card .top b { font-weight: 600; }
.tl-card .top small { font-size: 11px; }
.tl-card p { margin-top: 6px; color: #3c4043; font-size: 12.5px; line-height: 1.5; }
.tl-card ul { margin-top: 6px; padding-left: 0; font-size: 12.5px; color: #3c4043; }
.tl-card li { position: relative; padding-left: 14px; margin-top: 3px; }
.tl-card li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #9aa0a6; }
.tl-auto { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: #f3e8fd; color: #8430ce; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.tl-play { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: #f1f3f4; font-size: 11px; color: var(--u-mid); }
.tl-play i { flex: none; width: 0; height: 0; border-left: 7px solid var(--u-fg); border-block: 4.5px solid transparent; }
.tl-wave { flex: 1; height: 12px; border-radius: 2px; background: linear-gradient(90deg, transparent 0 0), repeating-linear-gradient(90deg, #9aa0a6 0 2px, transparent 2px 4px); -webkit-mask: linear-gradient(90deg, #000 38%, rgba(0,0,0,.35) 38%); mask: linear-gradient(90deg, #000 38%, rgba(0,0,0,.35) 38%); }
.crm-deal { padding: 18px; border-left: 1px solid var(--u-line); }
.crm-deal h5 { font-size: 12px; color: var(--u-mid); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.crm-dcard { margin-top: 10px; padding: 12px; border: 1px solid var(--u-line); border-radius: 8px; }
.crm-dcard b { display: block; font-size: 13px; font-weight: 600; }
.crm-dcard strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 500; }
.crm-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 10px; }
.crm-stages i { height: 6px; border-radius: 3px; background: #e8eaed; }
.crm-stages i.on { background: #ff7a59; }
.crm-task { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--u-line); border-radius: 8px; font-size: 12.5px; }
.crm-task .ui-check { margin-top: 1px; border-radius: 50%; border-width: 1.5px; }

/* pipeline board */
.pb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--u-line); }
.pb-bar h5 { font-size: 14px; font-weight: 600; }
.pb-bar .r { margin-left: auto; display: flex; gap: 8px; }
.pb { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; padding: 12px; background: #f5f6f8; min-width: 600px; }
.pb-col h6 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #3c4043; }
.pb-col h6 small { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.pb-col > small { display: block; margin: 0 2px 8px; font-size: 11px; }
.pb-col::before { content: ""; display: block; height: 3px; margin-bottom: 8px; border-radius: 2px; background: var(--c, #9aa0a6); }
.pb-card { margin-top: 8px; padding: 10px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(60,64,67,.18); font-size: 12px; }
.pb-card b { display: block; font-size: 12.5px; font-weight: 600; }
.pb-card small { display: block; margin-top: 1px; font-size: 11px; }
.pb-card .ft { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.pb-card .ft strong { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-card .ft small { white-space: nowrap; }
.pb-card .ui-av { width: 22px; height: 22px; font-size: 9.5px; }
.pb-card--move { box-shadow: 0 6px 16px rgba(60,64,67,.25), 0 0 0 2px #1a73e8; }

/* automation builder */
.ab-bar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--u-line); }
.ab-bar b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-bar .r { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--u-mid); white-space: nowrap; }
.ab-on { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--u-fg); }
.ab-on .mt-tog { --u-blue: #5c4ee5; }
.ab-canvas { position: relative; padding: 22px 16px 26px; background-color: #f7f7f9; background-image: radial-gradient(#d4d6dc 1px, transparent 1.2px); background-size: 16px 16px; }
.ab-node { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; max-width: 380px; margin: 0 auto; padding: 10px 12px; border: 1px solid #dcdde2; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(15,15,30,.08); }
.ab-node--trig { box-shadow: 0 1px 3px rgba(15,15,30,.08), inset 3px 0 0 #5c4ee5; }
.ab-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--c, #e8eaed); color: #fff; }
.ab-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-node small { display: block; font-size: 11px; }
.ab-node b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1e8e3e; }
.ab-ok svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ab-link { position: relative; width: 2px; height: 30px; margin: 0 auto; background: #b8bac2; }
.ab-link::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #b8bac2; }
.ab-link::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 8px; height: 1.5px; transform: translate(-50%, -50%); background: #8a8c94; box-shadow: 0 0 0 0 transparent; }
.ab-link i { position: absolute; z-index: 2; left: 50%; top: 50%; width: 1.5px; height: 8px; transform: translate(-50%, -50%); background: #8a8c94; }
.ab-pulse { position: absolute; z-index: 3; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #5c4ee5; opacity: 0; }
.ui-w.in .ab-pulse { animation: abPulse .5s linear both; animation-delay: var(--t, 0s); }
@keyframes abPulse { 0% { opacity: 1; transform: translateY(-4px); } 100% { opacity: 0; transform: translateY(30px); } }
.ab-run { display: flex; align-items: center; gap: 8px; max-width: 380px; margin: 16px auto 0; padding: 8px 12px; border-radius: 8px; background: #e6f4ea; color: #137333; font-size: 12px; font-weight: 600; }

/* dashboard */
.db-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--u-line); }
.db-bar h5 { font-size: 14px; font-weight: 600; }
.db-bar .r { margin-left: auto; display: flex; gap: 8px; }
.db-body { padding: 14px; background: #f6f7f9; }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.db-kpi { min-width: 0; padding: 12px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--u-line); }
.db-kpi small { display: block; font-size: 11.5px; font-weight: 500; }
.db-kpi strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.db-kpi em { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; color: var(--u-green); font-style: normal; font-size: 11px; font-weight: 600; }
.db-kpi em svg { width: 9px; height: 9px; fill: currentColor; }
.db-kpi em.dn { color: var(--u-red); }
.db-chart { margin-top: 10px; padding: 12px 14px 12px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--u-line); }
.db-chart .hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; }
.db-cols { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-left: 0; background: repeating-linear-gradient(to bottom, #eef0f2 0 1px, transparent 1px 25%); border-bottom: 1px solid #c9ccd1; }
.db-cols i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #7aa7f5; }
.db-cols i.today { background: #1a73e8; }
.db-days { display: flex; gap: 8px; margin-top: 6px; color: var(--u-soft); font-size: 10.5px; }
.db-days span { flex: 1; text-align: center; }

/* internal tool grid */
.it-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--u-line); }
.it-bar h5 { font-size: 13.5px; font-weight: 600; }
.it-bar .r { margin-left: auto; display: flex; gap: 6px; }
.it-table th { background: #f8f9fa; text-align: left; border-right: 1px solid var(--u-line); }
.it-table td { text-align: left; border-right: 1px solid var(--u-line); }
.it-table th:last-child, .it-table td:last-child { border-right: 0; }
.it-table td.n { width: 26px; color: var(--u-soft); font-size: 11px; text-align: center; }
.it-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; }
.it-pill--ok { background: #e6f4ea; color: #137333; }
.it-pill--wait { background: #fef7e0; color: #b06000; }
.it-pill--go { background: #e8f0fe; color: #1967d2; }
.it-pill--late { background: #fce8e6; color: #c5221f; }

/* responsive */
@media (max-width: 1200px) {
  .ui-stage--2 { grid-template-columns: minmax(0, 1fr); }
  .ga-body { grid-template-columns: 72px minmax(0, 1fr); }
  .ga-sub { display: none; }
  .crm-rec { grid-template-columns: 240px minmax(0, 1fr); }
  .crm-deal { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-left: 0; border-top: 1px solid var(--u-line); }
  .crm-deal h5 { grid-column: 1 / -1; }
  .crm-deal > * { margin-top: 0; }
  .lr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .ga4-grid { grid-template-columns: minmax(0, 1fr); }
  .lr-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .demo-panel--ui { padding: 12px; }
  .ui-stage, .ui-col { gap: 14px; }
  .ui-stage--phone { grid-template-columns: minmax(0, 1fr); }
  .ui { font-size: 12.5px; border-radius: 10px; }
  .ui h4 { font-size: 17px; }
  .ui-bar { gap: 10px; height: 46px; padding: 0 10px; }
  .ui-search, .ui-crumb, .ui-app { display: none; }
  .ui-bar .ui-note { margin-left: auto; }
  .ui-hide-m { display: none !important; }
  .ui-table th, .ui-table td { padding: 9px 8px; }
  .ui-table .w, .ui-table td.l { min-width: 150px; white-space: normal; }
  .ga-body { grid-template-columns: 1fr; }
  .ga-rail { display: none; }
  .ga-main { padding: 12px; }
  .ga-cards { grid-template-columns: 1fr 1fr; }
  .ga-card { border-top: 1px solid var(--u-line); }
  .ga-card:nth-child(-n+2) { border-top: 0; }
  .ga-card:nth-child(3) { border-left: 0; }
  .ga-card strong { font-size: 19px; }
  .ga-plot { padding: 14px 40px 10px 8px; }
  .ui-chart { height: 130px; }
  .mt-bar .acct { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .mt-bar .ui-app { display: none; }
  .mt-tabs { padding: 8px 8px 0; }
  .mt-tabs span { padding: 8px 10px; font-size: 12px; }
  .mt-tabs small, .mt-tools .r { display: none; }
  .ga4-body { grid-template-columns: 1fr; }
  .ga4-rail { display: none; }
  .ga4-main { padding: 12px; }
  .ga4-tabs { grid-template-columns: 1fr 1fr; }
  .ga4-tabs > div:nth-child(n+3) { display: none; }
  .ga4-plot { padding: 14px 12px 10px 6px; }
  .ga4-table-hd .ui-search { display: none; }
  .tg-body { grid-template-columns: 1fr; }
  .tg-ev { display: flex; gap: 6px; padding: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--u-line); }
  .tg-ev b, .tg-ev span:not(.on):not(:nth-last-child(2)) { display: none; }
  .tg-ev span { padding: 6px 10px; border-radius: 6px; }
  .tg-ev span.on { box-shadow: none; }
  .tg-list { grid-template-columns: 1fr; }
  .ph { max-width: 300px; padding: 9px; border-radius: 46px; }
  .ph-scr { height: 580px; border-radius: 38px; }
  .ib { grid-template-columns: 1fr; }
  .ib-nav { display: none; }
  .ib-row { grid-template-columns: 8px 32px minmax(0, 1fr) auto; gap: 8px; padding: 11px 10px; }
  .rv-sum { grid-template-columns: 1fr auto; gap: 12px; }
  .em-stats { grid-template-columns: 1fr 1fr; }
  .em-stats > div:nth-child(3) { border-left: 0; }
  .em-stats > div:nth-child(n+3) { border-top: 1px solid var(--u-line); }
  .em-stats strong { font-size: 21px; }
  .lr-page { margin: 8px; padding: 12px; }
  .lr-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lr-kpi strong { font-size: 19px; }
  .lr-fun b { min-width: 64px; }
  .lr-fun b small { display: none; }
  .lr-fun > div { grid-template-columns: 64px minmax(0, 1fr); }
  .lr-table td .hb { display: none; }
  .lr-bar .r .ui-chip { display: none; }
  .sys-vis--ui { padding: 8px; }
  .crm-bar nav span:not(.on) { display: none; }
  .crm-rec { grid-template-columns: 1fr; }
  .crm-side { border-right: 0; border-bottom: 1px solid var(--u-line); padding: 14px; }
  .crm-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .crm-feed { padding: 12px; }
  .crm-deal { grid-template-columns: 1fr; padding: 14px; }
  .db-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .db-kpi strong { font-size: 21px; }
  .ab-canvas { padding: 16px 10px 40px; }
  .ab-bar .r > span:not(.ab-on) { display: none; }
}
@media (max-width: 380px) {
  .demo-panel--ui { padding: 8px; }
  .ga-card { padding: 8px 10px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-reveal-line { clip-path: none; transition: none; }
  .ui-w.in .ui-rise, .ui-w.in .ui-grow, .ui-w.in .ui-growy, .ui-w.in .ui-slide, .ui-w.in .ui-pop, .ui-w.in .ab-pulse, .ui-w.in .ph-typing, .ui-w.in .rv-dist i::before { animation: none; }
  .ga4-rt strong .ui-dot, .ph-typing i { animation: none; }
}

/* Systems: "and anything else" */
.more-sys { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 24px; background: var(--card); }
.more-sys h2 { margin-top: 14px; font-size: clamp(30px, 3vw, 44px); line-height: 1.06; }
.more-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.more-chips li { padding: 10px 14px; border-radius: 999px; background: #fff; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.more-chips li:last-child { background: var(--ink); color: #fff; box-shadow: none; }
@media (max-width: 860px) { .more-sys { grid-template-columns: 1fr; gap: 24px; padding: 26px; } .more-sys h2 { font-size: 30px; } .more-chips li { font-size: 13px; padding: 9px 12px; } }
