/* Free playbook pages (playbooks/lone-worker-protection.html, playbooks/unverified-hours.html, playbooks/fm-unverified-hours.html). Converted once on 2026-12-02 from the design exports sense-playbook-*-share.html (tokens, base, sections, agents, product, minis, customers, industry, playbook, convert; nav.css is left to nav-footer-new.css), scoped to main.playbooks and trimmed to the rules these pages can match; maintained by hand from here on. */

/* ===== PAGE-LEVEL RULES (html, body, the shared header): START: every other rule is scoped to main.playbooks */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #F4F4F7; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { scroll-padding-top: 96px; }   /* focus and #anchor scrolling stop clear of the fixed overlay header (about 80 px tall) */
/* Light hero (body.hero-light): the overlay header starts with dark text and frosts on scroll as usual (as hr-feature.css). */
body.hero-light .nav.nav--overlay:not(.is-scrolled) { color: var(--text); }
body.hero-light .nav.nav--overlay:not(.is-scrolled) .logo { color: var(--brand); }
body.hero-light .nav.nav--overlay:not(.is-scrolled) .nav-link:hover,
body.hero-light .nav.nav--overlay:not(.is-scrolled) .nav-item.is-open > .nav-link { background: rgba(11, 10, 20, .06); }

/* ===== PAGE-LEVEL RULES: END */

/* css/tokens.css */
/* ==========================================================================
   Sense HR website — design tokens
   Layout/motion language recreated from the Zyntexa reference; colour + type
   are Sense's own (Satoshi display, Inter body, brand #634AFC).
   ========================================================================== */
.playbooks {
  /* Brand */
  --brand: #634AFC;
  --brand-hover: #4931DC;
  --brand-soft: #B8ADFF;
  --brand-10: #EFF1FF;
  --brand-20: #E5E7FF;
  --brand-glow: rgba(99, 74, 252, .35);

  /* Primary button — the ONE definition used by every primary CTA (nav, mobile menu, sections) */
  --btn-primary-bg: #634AFC;
  --btn-primary-bg-hover: #4931DC;
  --btn-primary-fg: #FFFFFF;          /* 5.4:1 on #634AFC — passes WCAG AA */
  --btn-radius: 10px;

  /* Neutrals */
  --ink: #0B0A14;                     /* dark panels */
  --ink-2: #15132A;
  --ink-3: #1C1A35;
  --page: #F4F4F7;                    /* off-white page, like the reference */
  --card: #FFFFFF;
  --text: #0B0A14;
  --text-2: #54536B;
  --text-3: #8B899E;
  --line: rgba(11, 10, 20, .08);
  --line-strong: rgba(11, 10, 20, .14);
  --line-dash: rgba(11, 10, 20, .18);
  --text-inv: #FFFFFF;
  --text-inv-2: rgba(255, 255, 255, .72);
  --text-inv-3: rgba(255, 255, 255, .5);
  --line-inv: rgba(255, 255, 255, .14);
  --live: #22B573;
  --live-bg: #E4FFE9;

  /* Type */
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: clamp(40px, 5.2vw, 68px);
  --fs-h2: clamp(30px, 3.4vw, 46px);
  --fs-h3: clamp(22px, 2vw, 28px);
  --fs-h4: 19px;
  --fs-lede: clamp(16px, 1.25vw, 18px);
  --fs-body: 16px;
  --fs-small: 14px;
  --ls-display: -0.035em;

  /* Layout */
  --container: 1320px;
  --container-wide: 1470px;
  --gutter: 24px;
  --frame-inset: 20px;
  --section-y: clamp(80px, 9vw, 128px);

  /* Radii (reference: 100 pill · 40 panel · 30/24/20 card · 15 dropdown · 10 small) */
  --r-panel: 40px;
  --r-card-lg: 30px;
  --r-card: 24px;
  --r-md: 16px;
  --r-sm: 12px;

  /* Shadows — soft, wide blurs */
  --shadow-sm: 0 1px 2px rgba(11, 10, 20, .06), 0 0 0 1px rgba(11, 10, 20, .05);
  --shadow-md: 0 24px 56px -12px rgba(11, 10, 20, .15);
  --shadow-lg: 0 57px 70px -20px rgba(11, 10, 20, .12), 0 0 0 1px rgba(11, 10, 20, .04);
  --shadow-float: 0 18px 40px -8px rgba(20, 12, 70, .28), 0 0 0 1px rgba(11, 10, 20, .05);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-reveal: .8s;
  --reveal-y: 40px;
}

@media (max-width: 767px) {
  .playbooks {
    --gutter: 16px;
    --frame-inset: 8px;
    --r-panel: 24px;
    --r-card-lg: 22px;
    --r-card: 20px;
  }
}

/* css/base.css */
/* ==========================================================================
   Base: reset, type, layout primitives, buttons, reveal + odometer motion
   ========================================================================== */
.playbooks *, .playbooks *::before, .playbooks *::after { box-sizing: border-box; }
.playbooks {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 var(--fs-body)/1.62 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.playbooks img, .playbooks picture, .playbooks svg { display: block; max-width: 100%; }
.playbooks img { height: auto; }
.playbooks a { color: inherit; text-decoration: none; }
.playbooks button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.playbooks ul { list-style: none; margin: 0; padding: 0; }
.playbooks p { margin: 0; }
.playbooks h1, .playbooks h2, .playbooks h3, .playbooks h4, .playbooks h5 { margin: 0; text-wrap: balance; font-family: var(--font-display); font-weight: 500; letter-spacing: var(--ls-display); color: inherit; }
.playbooks h1 { font-size: var(--fs-h1); line-height: 1.06; }
.playbooks h2 { font-size: var(--fs-h2); line-height: 1.12; }
.playbooks h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.025em; }
.playbooks h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.015em; }
.playbooks h5 { font-size: 15px; line-height: 1.3; letter-spacing: 0; }
.playbooks b, .playbooks strong { font-weight: 600; }

.playbooks :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.playbooks .on-dark :focus-visible { outline-color: var(--brand-soft); }

.playbooks .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.playbooks .container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.playbooks .section { padding-block: var(--section-y); }

/* Eyebrow pill */
.playbooks .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 13px/1 var(--font-body); letter-spacing: .01em;
  padding: 8px 14px; border-radius: 100px;
  background: var(--card); color: var(--brand-hover);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.playbooks .eyebrow.on-dark { background: rgba(255, 255, 255, .08); color: #DCD6FF; box-shadow: inset 0 0 0 1px var(--line-inv); }

/* ---------- Buttons ---------- */
.playbooks .btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 20px;
  border-radius: var(--btn-radius);
  font: 500 15px/1 var(--font-body); white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
.playbooks .btn:hover { transform: scale(.97); }            /* standing rule: every button scales to .97 */
.playbooks .btn:active { transform: scale(.95); }
.playbooks .btn-lg { --btn-h: 52px; padding: 0 26px; font-size: 16px; }
.playbooks .btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); box-shadow: 0 8px 24px -8px rgba(99, 74, 252, .6), inset 0 1px 0 rgba(255, 255, 255, .18); }
.playbooks .btn-primary:hover { background: var(--btn-primary-bg-hover); }

.playbooks .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Scroll reveal (fade-up, staggered by JS via --i) ---------- */
.js .playbooks .reveal { opacity: 0; transform: translate3d(0, var(--reveal-y), 0); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .playbooks .reveal.in { opacity: 1; transform: none; }

/* ---------- Odometer (digits roll; the real text stays in .sr-only) ---------- */
.playbooks .odo { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; white-space: nowrap; }
.playbooks .odo-reels { display: inline-flex; align-items: baseline; }
.playbooks .odo-col { display: inline-block; height: 1.1em; line-height: 1.1em; overflow: hidden; vertical-align: bottom; }
.playbooks .odo-reel { display: flex; flex-direction: column; transform: translate3d(0, 0, 0); transition: transform var(--odo-dur, 1.8s) cubic-bezier(.2, .75, .1, 1); transition-delay: var(--odo-delay, 0s); }
.playbooks .odo-reel > span { height: 1.1em; }
.playbooks .odo-static { display: inline-block; opacity: 0; transform: translateY(.3em); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--odo-delay, .2s); }
.playbooks .odo-run .odo-static { opacity: 1; transform: none; }

/* ---------- Reduced motion: everything final, instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  .playbooks *, .playbooks *::before, .playbooks *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .playbooks .reveal, .playbooks .odo-static { opacity: 1 !important; transform: none !important; }
  .playbooks .btn:hover, .playbooks .btn:active { transform: none; }
}

/* css/sections.css */
/* ==========================================================================
   Sections (in page order)
   ========================================================================== */

/* ---------- shared heads ---------- */
.playbooks .center-head { max-width: 780px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.playbooks .center-head p { color: var(--text-2); font-size: var(--fs-lede); max-width: 640px; margin-top: 20px; }

/* ==========================================================================
   01 HERO — dark inset frame, centred copy, dashboard + floating cards
   ========================================================================== */

.js .playbooks .hero-anim { opacity: 0; transform: translateY(16px); animation: heroIn .9s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ==========================================================================
   02 STATS STRIP — odometer counters with dashed dividers
   ========================================================================== */
.playbooks .trust-bar { padding-block: 100px 24px; }
.playbooks .stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1180px; margin-inline: auto; }
.playbooks .stat { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px; padding: 8px 20px; border-left: 1px dashed var(--line-dash); min-height: 148px; text-align: center; }
.playbooks .stat:first-child { border-left: 0; }
.playbooks .stat-top { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.playbooks .stat-num { display: inline-flex; align-items: center; gap: 8px; font: 500 clamp(30px, 2.9vw, 44px)/1.1 var(--font-display); letter-spacing: -0.035em; color: var(--text); }
.playbooks .stat-lbl { font-size: 15px; color: var(--text-2); }
.playbooks .odo-emoji { font-size: .55em; vertical-align: .18em; }
@media (max-width: 1100px) {
  .playbooks .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .playbooks .stat:nth-child(4) { border-left: 0; }
}
@media (max-width: 640px) {
  .playbooks .trust-bar { padding-block: 48px 8px; }
  .playbooks .stats { grid-template-columns: 1fr 1fr; row-gap: 0; }
  .playbooks .stat { min-height: 0; gap: 16px; padding: 22px 8px; border-top: 1px dashed var(--line-dash); }
  .playbooks .stat:nth-child(odd) { border-left: 0; }
  .playbooks .stat:nth-child(4) { border-left: 1px dashed var(--line-dash); }
  .playbooks .stat:nth-child(-n+2) { border-top: 0; }
  .playbooks .stat:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   06 TIME & ATTENDANCE — home-three "We simplify…" layout:
   head + icon list with a progress bar on the left, tall gradient card on the right
   (stacked card of devices on top, product screenshot below). DOM keeps live order.
   ========================================================================== */
.playbooks .ta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "head devices" "steps shot" "cta shot"; grid-template-rows: auto auto 1fr; column-gap: 88px; }
.playbooks .ta-card-bg { grid-column: 2; grid-row: 1 / 4; border-radius: var(--r-card-lg); background: radial-gradient(70% 55% at 90% 95%, #fff 0%, transparent 70%), linear-gradient(155deg, #5238E8 0%, #8B78FF 42%, #D9D2FF 78%, #F3F0FF 100%); }
.playbooks .ta-head { grid-area: head; padding-top: 24px; }
.playbooks .method { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 10px; text-align: center; font: 500 14px/1.3 var(--font-body); color: var(--text); }
.playbooks .method + .method { border-left: 1px solid var(--line); }
.playbooks .ta-steps { grid-area: steps; position: relative; margin-top: 56px; padding-left: 64px; }
.playbooks .ta-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 30px; background: rgba(99, 74, 252, .1); overflow: hidden; }
.playbooks .ta-bar-fill { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% / 3); border-radius: 30px; background: var(--brand); transform: translateY(calc(var(--ta-i, 0) * 100%)); transition: transform .6s var(--ease-out); }
.playbooks .ta-list { display: flex; flex-direction: column; }
.playbooks .ta-list li { display: flex; align-items: center; gap: 20px; padding: 22px 0; font: 500 clamp(19px, 1.6vw, 22px)/1.35 var(--font-display); letter-spacing: -0.015em; color: var(--text-2); transition: color .4s; }
.playbooks .ta-list li:first-child { padding-top: 0; }
.playbooks .ta-list li.is-active { color: var(--text); }
.playbooks .ta-ic { flex-shrink: 0; width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: #EFF1FF; color: #634AFC; }
.playbooks .ta-ic svg { width: 24px; height: 24px; }
.playbooks .ta-shot { grid-area: shot; position: relative; margin: 32px 44px 44px; aspect-ratio: 1 / .86; align-self: start; }
.playbooks .ta-frame { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.playbooks .ta-frame.is-active { opacity: 1; transform: none; }
.playbooks .ta-frame:nth-child(1) img { max-width: 80%; max-height: 80%; }
.playbooks .ta-frame:nth-child(2) img { box-shadow: none; border-radius: 0; }
.playbooks .ta-frame img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--r-card); box-shadow: 0 30px 60px -28px rgba(33, 18, 140, .55); }
@media (max-width: 900px) {
  .playbooks .ta { grid-template-columns: 1fr; grid-template-areas: "head" "steps" "cta" "devices" "shot"; grid-template-rows: none; }
  .playbooks .ta-card-bg { grid-column: 1; grid-row: 4 / 6; margin-top: 40px; }
  .playbooks .ta-head { padding-top: 0; }
  .playbooks .ta-steps { margin-top: 40px; padding-left: 40px; }
  .playbooks .method { font-size: 12.5px; padding: 2px 6px; }
  .playbooks .ta-shot { margin: 20px 16px 16px; }
}

/* ==========================================================================
   13 FOOTER — full-bleed black (oma-melon layout): brand + copyright left,
   link columns right, oversized fading wordmark at the bottom
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .js .playbooks .hero-anim { opacity: 1; transform: none; }
}

/* css/agents.css */
/* ==========================================================================
   Agent pages — AMI hub page (sense-agent-ami.html)
   Builds on tokens/base/nav/sections from the home page; only page-specific
   patterns live here.
   ========================================================================== */

/* ---------- 05 MEET AMI IN PERSON — pay-co "Network of passionate users" layout ----------
   striped lavender card · centred copy · product shot cropped by the card's bottom edge
   inside the home page's glass frame · form bar under the copy */
.playbooks .ami-meet-wrap { position: relative; }
.playbooks .ami-meet { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-panel); padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
  background: linear-gradient(180deg, #F7F6FF 0%, #EFEDFF 55%, #E4E0FF 100%); box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .08); text-align: center; }
.playbooks .ami-meet::before { /* vertical column stripes, fading in towards the bottom (reference texture, in Sense purple) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(99, 74, 252, .09) 0 72px, transparent 72px 89px) center top;
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 95%); mask-image: linear-gradient(180deg, transparent 5%, #000 95%); }
.playbooks .ami-meet::after { /* purple haze rising from the lower corners */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(38% 60% at 0% 100%, rgba(99, 74, 252, .38), transparent 70%), radial-gradient(38% 60% at 100% 100%, rgba(99, 74, 252, .38), transparent 70%); }
.playbooks .ami-meet-copy { max-width: 720px; margin: 0 auto; }
.playbooks .ami-meet-copy h2 { color: var(--text); }
.playbooks .ami-meet-copy p { margin: 18px auto 0; color: var(--text-2); font-size: var(--fs-lede); max-width: 620px; }

/* ---------- 06 FAQ — single rounded container with square toggles ---------- */
.playbooks .ami-faq { max-width: 1070px; margin: 56px auto 0; border-radius: var(--r-card-lg); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.playbooks .ami-faq-item + .ami-faq-item { border-top: 1px solid var(--line); }
.playbooks .ami-faq-q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 40px; cursor: pointer; font: 500 clamp(17px, 1.4vw, 20px)/1.4 var(--font-display); letter-spacing: -0.01em; color: var(--text); transition: background-color .2s; }
.playbooks .ami-faq-q::-webkit-details-marker { display: none; }
.playbooks .ami-faq-q:hover { background: var(--page); }
.playbooks .ami-faq-q:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 12px; }
.playbooks .ami-faq-ic { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .3s; }
.playbooks .ami-faq-ic svg { width: 14px; height: 14px; }
.playbooks .ami-faq-ic svg { transition: transform .35s var(--ease-out); }
.playbooks .ami-faq-item[open] .ami-faq-ic { background: var(--brand); }
.playbooks .ami-faq-item[open] .ami-faq-ic svg { transform: rotate(45deg); }
.playbooks .ami-faq-a { padding: 0 104px 26px 40px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
@supports (interpolate-size: allow-keywords) {
  .playbooks .ami-faq { interpolate-size: allow-keywords; }
  .playbooks .ami-faq-item::details-content { height: 0; overflow: hidden; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .playbooks .ami-faq-item[open]::details-content { height: auto; }
}
@media (max-width: 767px) { .playbooks .ami-faq { margin-top: 40px; } .playbooks .ami-faq-q { padding: 20px; } .playbooks .ami-faq-a { padding: 0 20px 20px; font-size: 15px; } }

/* css/product.css */
/* ==========================================================================
   HR product pages (sense-hr-*.html). HR overview first: tools/product/gen_hr_overview.py
   Builds on the home hero (.hero), stats strip (.stats), AMI Meet card + FAQ (agents.css).
   ========================================================================== */

/* ---------- 02 STATS — home strip with 4 items ---------- */
.playbooks .pd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; }
.playbooks .pd-stats .stat { min-height: 0; justify-content: flex-start; gap: 40px; }   /* 40px from the figure to its label */
@media (max-width: 1024px) { .playbooks .pd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* 04b time & performance — home .ta layout; the active step opens its paragraph + link */
.playbooks .pd-ta { grid-template-areas: "head shot" "steps shot"; grid-template-rows: auto 1fr; }   /* no device strip: the visual spans the whole right column */
.playbooks .pd-ta .ta-card-bg { grid-row: 1 / 3; background: #0A0916 url("/assets/images/pages/homepage/ta-card-bg.webp") center / cover no-repeat; }
.playbooks .pd-ta .ta-shot { align-self: stretch; justify-self: stretch; margin: 36px; aspect-ratio: auto; display: grid; place-items: center; }
.playbooks .pd-ta .ta-list li { align-items: flex-start; }
.playbooks .pd-ta .ta-txt { display: flex; flex-direction: column; padding-top: 14px; }
.playbooks .pd-ta-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.playbooks .pd-ta-more-in { overflow: hidden; min-height: 0; }
.playbooks .pd-ta .ta-list li.is-active .pd-ta-more { grid-template-rows: 1fr; }
.playbooks .pd-ta-p { display: block; margin-top: 12px; font: 400 15.5px/1.6 var(--font-body); letter-spacing: 0; color: var(--text-2); }
.playbooks .pd-ta .ta-list li { cursor: default; }
.playbooks .pd-ta .ta-bar-fill { top: 0; height: var(--ta-h, calc(100% / 3)); transform: translateY(var(--ta-top, 0px)); transition: transform .5s var(--ease-out), height .5s var(--ease-out); }
.playbooks .pd-ta .method { transition: opacity .35s; opacity: .55; }
.playbooks .pd-ta .method.is-active { opacity: 1; }
.playbooks .pd-ta-frame { display: grid; place-items: center; }
.playbooks .pd-ta-frame picture { display: contents; }
.playbooks .pd-ta .ta-frame:nth-child(1) img { max-width: 100%; max-height: 100%; }
.playbooks .pd-ta .ta-frame:nth-child(2) img { box-shadow: 0 30px 60px -28px rgba(33, 18, 140, .55); border-radius: var(--r-card); }

/* time & performance, stacked (mobile/tablet): visual below the steps, on the card background */
@media (max-width: 900px) {
  .playbooks .pd-ta { grid-template-areas: "head" "steps" "shot"; grid-template-rows: none; }
  .playbooks .pd-ta .ta-card-bg { grid-column: 1; grid-row: 3; margin-top: 40px; }
  .playbooks .pd-ta .ta-shot { grid-row: 3; margin: 64px 20px 24px; }
}

/* stats, 4 items: a clean 2×2 on phones (the home rules are built for 5: last item spans, 4th gets a border) */
@media (max-width: 767px) {
  .playbooks .pd-stats { grid-template-columns: 1fr 1fr; }
  .playbooks .pd-stats .stat { gap: 16px; padding: 22px 8px; border-top: 1px dashed var(--line-dash); }
  .playbooks .pd-stats .stat:nth-child(-n+2) { border-top: 0; }
  .playbooks .pd-stats .stat:nth-child(odd) { border-left: 0; }
  .playbooks .pd-stats .stat:nth-child(even) { border-left: 1px dashed var(--line-dash); }
  .playbooks .pd-stats .stat:last-child { grid-column: auto; }
  .playbooks .pd-stats .stat-num { font-size: 30px; }
}

/* Typewriter (js/product.js [data-tw]): the whole quote is laid out from the start and painted in letter by letter, so lines never re-wrap or shift (user, 25 Nov).
   The untyped rest is the tw-rest highlight (or .tw-off where highlights aren't supported); the caret floats over the text, so it never pushes a word along.
   Each page sets the caret colour with --tw-caret. */
.playbooks ::highlight(tw-rest) { color: transparent; }
.playbooks [data-tw] { position: relative; }
.playbooks [data-tw] .tw-off { color: transparent; }
.playbooks .tw-caret { position: absolute; left: 0; top: 0; width: 2px; height: 1em; background: var(--tw-caret, var(--brand)); opacity: 0; pointer-events: none; }
.playbooks [data-tw].is-typing .tw-caret { opacity: 1; animation: miBlink .8s steps(1) infinite; }

/* css/minis.css */
/* ==========================================================================
   Animated product mini-UIs (tools/product/minis.py · js/minis.js), rebuilt from the exported designs.
   States are toggled by classes; with reduced motion / no JS they show the designed end state.
   ========================================================================== */
.playbooks .mi { position: relative; font-family: var(--font-body); color: #2C2853; text-align: left; background: #fff; box-shadow: 0 40px 70px -30px rgba(33, 18, 140, .45), 0 0 0 1px rgba(11, 10, 20, .04); }
.playbooks .mi svg { display: block; }

/* cursor (moved by js/minis.js) */
.playbooks .mi-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; pointer-events: none; opacity: 0;
  transform: translate(var(--cx, 60%), var(--cy, 110%)); transition: transform .9s cubic-bezier(.5, 0, .2, 1), opacity .3s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25)); }
.playbooks .mi.is-cursor .mi-cursor { opacity: 1; }
.playbooks .mi-cursor.is-press svg { transform: scale(.82); transition: transform .12s; }
.playbooks .mi-cursor svg { width: 22px; height: 22px; transition: transform .2s; transform-origin: 20% 15%; }

/* ---------- Employee records (230×338 export, shown ~1.3×) ---------- */
@keyframes miPulse { to { box-shadow: 0 0 0 7px rgba(27, 202, 167, 0); } }

/* ---------- AMI assistant (291×329 export) ---------- */

@keyframes miBlink { 50% { opacity: 0; } }

/* frames that hold the new minis */
.playbooks .pd-ta-frame .mi { margin: auto; }
.playbooks .pd-ta .mi { border: 8px solid rgba(255, 255, 255, .16); background-clip: padding-box; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 40px 70px -30px rgba(0, 0, 0, .6); }

/* inside the time & performance frames: undo the home .ta-frame screenshot rules for the minis' own images,
   and stack the frames in one grid cell so the area sizes to the tallest mini (no fixed ratio cropping) */
.playbooks .pd-ta .ta-shot { display: grid; aspect-ratio: auto; }
.playbooks .pd-ta .pd-ta-frame { position: relative; inset: auto; grid-area: 1 / 1; }
.playbooks .pd-ta .ta-frame .mi img { position: static; inset: auto; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; box-shadow: none; }

/* time & performance visuals a touch bigger on desktop */
@media (min-width: 1101px) { .playbooks .pd-ta .mi { zoom: 1.14; } }

/* ---------- Home T&A: attendance (track working.svg 230×254) ---------- */
.playbooks .mi-at { width: min(330px, 100%); padding: 18px 20px 16px; border-radius: 16px; }
.playbooks .mi-at-head { display: flex; align-items: center; gap: 10px; }
.playbooks .mi-at-logo { width: 18px; height: 18px; color: #634AFC; }
.playbooks .mi-at-head b { font: 500 17px/1 var(--font-body); color: #2C2853; }
.playbooks .mi-at-tools { margin-left: auto; display: flex; gap: 12px; color: #A3A2B1; }
.playbooks .mi-at-tools svg { width: 16px; height: 16px; }
.playbooks .mi-at-meta { margin: 12px 0 0 28px; font-size: 12.5px; line-height: 1.55; color: #2C2853; }
.playbooks .mi-at-flag { display: inline-flex; align-items: center; gap: 7px; margin: 10px 0 0 28px; padding: 6px 10px 6px 7px; border-radius: 7px; background: #FFF1E6; color: #C4480A; font-size: 11.5px;
  transition: opacity .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .mi-at-flag > span { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #F26A1B; color: #fff; font: 700 10px/1 var(--font-body); }
.playbooks .mi-at.is-pre-flag .mi-at-flag { opacity: 0; transform: scale(.85); }
.playbooks .mi-at-who { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px 28px; font: 500 13px/1 var(--font-body); color: #2C2853; }
.playbooks .mi-at-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
.playbooks .mi-at-av img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .mi-at-list { list-style: none; margin: 0 0 0 28px; padding: 0; }
.playbooks .mi-at-p { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; color: #2C2853; transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.playbooks .mi-at-p i { width: 6px; height: 6px; border-radius: 50%; }
.playbooks .mi-at-p.is-in i { background: #1BCAA7; } .playbooks .mi-at-p.is-out i { background: #F26A1B; }
.playbooks .mi-at-loc { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #634AFC; }
.playbooks .mi-at-loc svg { width: 13px; height: 13px; }
.playbooks .mi-at .mi-at-p.is-pre { opacity: 0; transform: translateX(-8px); }

/* ---------- inside the home T&A frames: undo the screenshot rules, centre, glass border ---------- */
.playbooks .ta-frame:has(> .mi) { display: grid; place-items: center; }
.playbooks .ta-frame .mi img { position: static; inset: auto; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; box-shadow: none; }
.playbooks .ta-shot .mi { border: 8px solid rgba(255, 255, 255, .16); background-clip: padding-box; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 40px 70px -30px rgba(0, 0, 0, .6); }
.playbooks .ta-shot .mi-at { border-radius: 24px; }
.playbooks .ta-shot .mi { max-width: 100%; }
/* attendance: the flag takes no space until it appears, then eases the name + punches down */
.playbooks .mi-at-flag-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease-out); }
.playbooks .mi-at-flag-wrap > div { overflow: hidden; min-height: 0; }
.playbooks .mi-at.is-pre-flag .mi-at-flag-wrap { grid-template-rows: 0fr; }

/* ---------- Automate anything (Automate anything.svg) ---------- */
.playbooks .mi-au { width: min(420px, 100%); padding: 20px 40px 34px; border-radius: 14px; display: flex; flex-direction: column; align-items: center;
  background: #FAFAFB radial-gradient(circle, #D9DBE3 1px, transparent 1.3px) 0 0 / 22px 22px; }
.playbooks .mi-au-node { position: relative; width: 100%; max-width: 280px; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; background: #fff;
  box-shadow: 0 0 0 1px #E4E7F0; transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), box-shadow .35s; }
.playbooks .mi-au-ic { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; background: #E7FBF3; color: #11C48F; }
.playbooks .mi-au-ic.is-blue { background: #E8F3FF; color: #3897F0; }
.playbooks .mi-au-ic svg { width: 18px; height: 18px; }
.playbooks .mi-au-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.playbooks .mi-au-txt em { font-style: normal; font-size: 10.5px; color: #8A8FA3; }
.playbooks .mi-au-txt b { font: 500 13px/1.2 var(--font-body); color: #2C2853; }
.playbooks .mi-au-dots { display: grid; gap: 2px; align-self: start; padding-top: 4px; }
.playbooks .mi-au-dots i { width: 3px; height: 3px; border-radius: 50%; background: #6C7597; }
.playbooks .mi-au-tag { grid-column: 1 / -1; justify-self: start; padding: 4px 8px; border-radius: 5px; background: #EFF0F4; font-size: 10.5px; color: #495066; }
.playbooks .mi-au-link { width: 1px; height: 22px; background: #D5D8E2; transform-origin: top; transition: transform .35s var(--ease-out); }
.playbooks .mi-au-end { width: 18px; height: 18px; margin-top: 6px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #11C48F; box-shadow: 0 0 0 1px #C8F2DC; transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .mi-au-end svg { width: 11px; height: 11px; }
.playbooks .mi-au-node.is-live { box-shadow: 0 0 0 1.5px #1BCAA7, 0 14px 28px -16px rgba(17, 196, 143, .6); }
.playbooks .mi-au.is-pre [data-node]:not(.is-on) { opacity: 0; transform: translateY(10px); }
.playbooks .mi-au.is-pre [data-link]:not(.is-on) { transform: scaleY(0); }
.playbooks .mi-au.is-pre [data-end]:not(.is-on) { opacity: 0; transform: scale(.5); }
.playbooks .mi-au-end.is-on { animation: miPulse 1.8s ease-out infinite; }

/* permissions: bigger */

.playbooks .pd-ta .mi { max-width: 100%; }
@media (max-width: 1100px) { .playbooks .pd-ta .mi { zoom: 1; } }

/* ===== every animation panel: 16px visible corners (user, 1 Oct). Where a panel has the 8px glass border, the outer
   radius is 24px so the white panel inside it reads as 16px. ===== */
.playbooks .mi { border-radius: 16px !important; }
.playbooks .pd-ta .mi, .playbooks .ta-shot .mi { border-radius: 24px !important; }

/* ==========================================================================
   Customisation (page 9) — Screen details.svg (660×620) + custom-data workflow (new graphic)
   ========================================================================== */

/* manager time without vs with (Catch errors.svg 468×187) */
.playbooks .mi-ce { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(480px, 100%); background: none; box-shadow: none; }
.playbooks .mi-ce-card { display: flex; flex-direction: column; padding: 16px 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #EEEEEE, 0 30px 60px -30px rgba(33, 18, 140, .4); }
.playbooks .mi-ce-l { font: 500 12.5px/1.2 var(--font-body); color: #6F6F6F; }
.playbooks .mi-ce-big { margin-top: 8px; font: 600 40px/1 var(--font-body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.playbooks .mi-ce-sub { margin-top: 10px; font-size: 12.5px; color: #6F6F6F; }
.playbooks .mi-ce-bar { margin-top: 14px; height: 7px; border-radius: 4px; background: #D9DDCE; overflow: hidden; }
.playbooks .mi-ce-bar i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; transition: width 1.1s var(--ease-out); }
.playbooks .mi-ce-cost-l { margin-top: 16px; padding-top: 14px; border-top: 1px solid #F7F7F7; font-weight: 400; }
.playbooks .mi-ce-cost { margin-top: 8px; font: 500 18px/1.1 var(--font-body); font-variant-numeric: tabular-nums; }
.playbooks .mi-ce-card.is-without .mi-ce-big, .playbooks .mi-ce-card.is-without .mi-ce-cost { color: #C90000; } .playbooks .mi-ce-card.is-without .mi-ce-bar { background: #FFE3E3; } .playbooks .mi-ce-card.is-without .mi-ce-bar i { background: #FFA5A5; }
.playbooks .mi-ce-card.is-with .mi-ce-big, .playbooks .mi-ce-card.is-with .mi-ce-cost { color: #00CD9C; } .playbooks .mi-ce-card.is-with .mi-ce-bar i { background: #00CD9C; }
.playbooks .mi-ce-card.is-pre .mi-ce-bar i { width: 0; }
@media (max-width: 600px) { .playbooks .mi-ce { gap: 10px; } .playbooks .mi-ce-card { padding: 12px; } .playbooks .mi-ce-big { font-size: 30px; } .playbooks .mi-ce-l, .playbooks .mi-ce-sub { font-size: 11px; } .playbooks .mi-ce-cost { font-size: 14px; } }
@media (max-width: 400px) { .playbooks .mi-ce { grid-template-columns: 1fr; } }

/* ==========================================================================
   Recruitment: ATS overview (tools/product/minis.py) — Publish vacancies.svg, ai sceening.svg, and new graphics in the same style.
   Inside-Sense-HR screens in Sense HR purple; the onboarding workflow in Automate green.
   ========================================================================== */
.playbooks :is(.ot-av) img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Improve retention — the team's wellbeing scores, Ben's slipping; Census flags the attrition risk (Sense HR purple, amber for the risk) */
.playbooks .mi-ot { width: min(440px, 100%); display: flex; flex-direction: column; gap: 20px; padding: 0; background: none !important; box-shadow: none !important; }
.playbooks .ot-dash, .playbooks .ot-alert { border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 10, 20, .05), 0 22px 40px -26px rgba(10, 5, 40, .55); }
.playbooks .ot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #F1F0F4; } .playbooks .ot-head b { font: 600 13.5px/1.2 var(--font-body); color: #393940; } .playbooks .ot-head span { font-size: 11px; color: #8A8DA0; }
.playbooks .ot-list { list-style: none; margin: 0; padding: 4px 16px 8px; }
.playbooks .ot-r { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 14px 0; } .playbooks .ot-r + .ot-r { border-top: 1px solid #F3F3F6; }
.playbooks .ot-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; }
.playbooks .ot-t { min-width: 0; display: flex; flex-direction: column; gap: 6px; } .playbooks .ot-t b { font: 500 12.5px/1.2 var(--font-body); color: #393940; }
.playbooks .ot-bar { height: 6px; border-radius: 3px; background: #EEEDF3; overflow: hidden; } .playbooks .ot-bar i { display: block; height: 100%; border-radius: inherit; background: #634AFC; transform-origin: left; transform: scaleX(var(--v)); transition: transform 1s cubic-bezier(.22, 1, .36, 1), background-color .4s; }
.playbooks .ot-r:nth-child(2) .ot-bar i { transition-delay: .12s; } .playbooks .ot-r:nth-child(3) .ot-bar i { transition-delay: .24s; }
.playbooks .mi-ot:not(.is-load) .ot-bar i { transform: scaleX(0); }
.playbooks .ot-v { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .playbooks .ot-v b { font: 600 12.5px/1 var(--font-body); color: #393940; font-variant-numeric: tabular-nums; }
.playbooks .ot-v em { display: inline-flex; align-items: center; gap: 2px; font: 600 10px/1 var(--font-body); font-style: normal; } .playbooks .ot-v em svg { width: 10px; height: 10px; } .playbooks .ot-v em.is-up { color: #007C66; } .playbooks .ot-v em.is-down { color: #B4530A; }
.playbooks .mi-ot.is-flag .ot-r.is-risk { margin-inline: -8px; padding-inline: 8px; border-radius: 10px; background: #FFF7EC; } .playbooks .mi-ot.is-flag .ot-r.is-risk .ot-bar i { background: #F29A2E; }
.playbooks .ot-alert { display: flex; gap: 12px; padding: 13px 14px; box-shadow: 0 0 0 1.5px #F7C98C, 0 22px 40px -26px rgba(120, 60, 0, .45); transition: opacity .45s, transform .55s var(--ease-out); }
.playbooks .mi-ot:not(.is-flag) .ot-alert { opacity: 0; transform: translateY(10px); }
/* in the dark frames (the panels, the steps cycle): the two cards each get their own glass outline, not one round them both (user, 3 Nov), as the industry pages' card stacks */
.playbooks :is(.pd-ta, .ta-shot) .mi-ot { border: 0 !important; overflow: visible; }
.playbooks :is(.pd-ta, .ta-shot) :is(.ot-dash, .ot-alert) { border: 8px solid rgba(255, 255, 255, .16); background-clip: padding-box; border-radius: 22px; }
.playbooks :is(.pd-ta, .ta-shot) .ot-dash { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 26px 44px -24px rgba(0, 0, 0, .6); }
.playbooks :is(.pd-ta, .ta-shot) .ot-alert { box-shadow: inset 0 0 0 1.5px #F7C98C, 0 0 0 1px rgba(255, 255, 255, .25), 0 26px 44px -24px rgba(0, 0, 0, .6); }
.playbooks .ot-ic { flex-shrink: 0; width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: #0B0A1E; box-shadow: inset 0 0 0 1px #2A2840; }   /* the ATS Expert tile */ .playbooks .ot-ic svg { width: 100%; height: 100%; }
.playbooks .ot-at { display: flex; flex-direction: column; gap: 4px; } .playbooks .ot-at b { font: 600 12.5px/1.2 var(--font-body); color: #9A4A00; } .playbooks .ot-at > span:not(.ot-btn) { font-size: 11.5px; line-height: 1.45; color: #4E4D54; }
.playbooks .ot-btn { align-self: flex-start; margin-top: 4px; padding: 6px 11px; border-radius: 7px; background: #634AFC; color: #fff; font: 600 11px/1 var(--font-body); }

/* ==========================================================================
   Shift, site and field teams: Verify hours (sense-shift-verify-hours.html) — colours from the exports
   ========================================================================== */
/* ---------- the day, verified (Verify every hour.svg 462×382): rows arrive from the first clock-in up, then their tags pop in ---------- */
.playbooks .mi-shd { width: min(500px, 100%); border-radius: 18px; overflow: hidden; }   /* 462 in the export: wider, so the longer tags keep their lines */
.playbooks .mi-shd-head { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: #EBF6FF; box-shadow: inset 0 -1px 0 #EFF2F8; }
.playbooks .mi-shd-av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0; } .playbooks .mi-shd-av img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .mi-shd-who { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.playbooks .mi-shd-who b { font: 500 14px/1.2 var(--font-body); color: #495066; } .playbooks .mi-shd-who span { font-size: 11.5px; color: #6C7597; }
.playbooks .mi-shd-badge { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--font-body); color: #4E71FF; white-space: nowrap; }
.playbooks .mi-shd-badge svg { width: 16px; height: 16px; }
.playbooks .mi-shd-list { list-style: none; margin: 0; padding: 8px 16px 12px; }
.playbooks .mi-shd-row { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 13px 0;
  transition: opacity .45s, transform .55s var(--ease-out); }
.playbooks .mi-shd-dot { position: relative; width: 15px; height: 15px; border-radius: 50%; align-self: start; margin-top: 2px; }
.playbooks .mi-shd-row:not(:last-child) .mi-shd-dot::after { content: ""; position: absolute; left: 7px; top: 15px; width: 1px; height: 47px; background: #E8EEF6; }   /* the rail down to the next event */
.playbooks .mi-shd-row.is-red .mi-shd-dot { background: #FF5C4E; } .playbooks .mi-shd-row.is-green .mi-shd-dot { background: #1ED9A4; } .playbooks .mi-shd-row.is-yellow .mi-shd-dot { background: #FFD270; }
.playbooks .mi-shd-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.playbooks .mi-shd-txt b { font: 500 13.5px/1.25 var(--font-body); color: #495066; } .playbooks .mi-shd-txt span { font-size: 11.5px; line-height: 1.3; color: #6C7597; }
.playbooks .mi-shd-r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.playbooks .mi-shd-r > b { font: 500 13.5px/1.2 var(--font-body); color: #495066; font-variant-numeric: tabular-nums; }
.playbooks .mi-shd-tag { padding: 4px 7px; border-radius: 6px; font: 500 10px/1.1 var(--font-body); white-space: nowrap; transition: opacity .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .mi-shd-tag.is-ok { background: #E4FFF0; color: #02847C; } .playbooks .mi-shd-tag.is-warn { background: #FFF3E8; color: #D34C00; } .playbooks .mi-shd-tag.is-bad { background: #FFEDED; color: #B90000; }
.playbooks .mi-shd-row.is-pre { opacity: 0; transform: translateY(12px); }
.playbooks .mi-shd-row.is-pre .mi-shd-tag, .playbooks .mi-shd-row.is-checking .mi-shd-tag { opacity: 0; transform: scale(.7); }
.playbooks .mi-shd-row.is-pre .mi-shd-dot::after { opacity: 0; }
.playbooks .mi-shd-row.is-checking .mi-shd-dot { animation: shdPulse 1s ease-out infinite; }
@keyframes shdPulse { from { box-shadow: 0 0 0 0 rgba(78, 113, 255, .45); } to { box-shadow: 0 0 0 9px rgba(78, 113, 255, 0); } }
@media (max-width: 520px) {
  .playbooks .mi-shd-row { grid-template-columns: 16px minmax(0, 1fr); row-gap: 8px; }
  .playbooks .mi-shd-r { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .playbooks .mi-shd-row:not(:last-child) .mi-shd-dot::after { height: 80px; }
  .playbooks .mi-shd-badge { display: none; }
}

/* ==========================================================================
   Shift, site and field teams: Time and attendance (sense-shift-time-and-attendance.html) — colours from the exports
   ========================================================================== */
/* ---------- working hours (Working hours.svg 477×573): name + description type in, the pattern switch goes on, hours count up ---------- */
.playbooks .mi-shk-typed.is-typing::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: #634AFC; animation: miBlink .8s steps(1) infinite; }

/* ---------- clock in across sites (new graphic): three ways in, three wires, one central record ---------- */
.playbooks .mi-shm { width: min(470px, 100%); padding: 16px; border-radius: 18px; background: #F7F9FD; }
.playbooks .mi-shm-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.playbooks .mi-shm-way { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #E8EEF6; text-align: center; transition: box-shadow .35s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .mi-shm-ic { position: relative; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 12px; display: grid; place-items: center; background: #EBF6FF; color: #4E71FF; transition: background-color .3s, color .3s; }
.playbooks .mi-shm-ic svg { width: 20px; height: 20px; }
.playbooks .mi-shm-way b { font: 500 12.5px/1.2 var(--font-body); color: #495066; } .playbooks .mi-shm-way > span:last-child { font-size: 10.5px; color: #6C7597; }
.playbooks .mi-shm-way.is-on { box-shadow: 0 0 0 1.5px #9DB3FF, 0 14px 26px -16px rgba(78, 113, 255, .6); transform: translateY(-2px); }
.playbooks .mi-shm-way.is-on .mi-shm-ic { background: #4E71FF; color: #fff; }
.playbooks .mi-shm-way.is-on .mi-shm-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 15px; border: 2px solid #4E71FF; animation: shmPing .9s ease-out infinite; }
@keyframes shmPing { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
.playbooks .mi-shm-wires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; height: 26px; }
.playbooks .mi-shm-wire { position: relative; } .playbooks .mi-shm-wire::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background-image: linear-gradient(180deg, #C9D6F5 55%, transparent 0); background-size: 2px 6px; }
.playbooks .mi-shm-wire i { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #4E71FF; box-shadow: 0 0 10px 2px rgba(78, 113, 255, .55); opacity: 0; }
.playbooks .mi-shm-wire.is-go i { animation: shmDrop .55s cubic-bezier(.45, 0, .2, 1) both; }
@keyframes shmDrop { 0% { opacity: 1; top: 0; } 85% { opacity: 1; } 100% { opacity: 0; top: 100%; } }
.playbooks .mi-shm-rec { border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #E8EEF6; overflow: hidden; }
.playbooks .mi-shm-rec-h { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: #EBF6FF; } .playbooks .mi-shm-rec-h b { font: 600 13px/1 var(--font-body); color: #145CEB; } .playbooks .mi-shm-rec-h span { font-size: 10.5px; color: #6C7597; }
.playbooks .mi-shm-rec ul { list-style: none; margin: 0; padding: 2px 14px 4px; }
.playbooks .mi-shm-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 9px 0; transition: opacity .45s, transform .55s var(--ease-out); }
.playbooks .mi-shm-row + .mi-shm-row { border-top: 1px solid #F1F2F6; }
.playbooks .mi-shm-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; } .playbooks .mi-shm-av img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .mi-shm-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .playbooks .mi-shm-txt b { font: 500 12.5px/1.2 var(--font-body); color: #495066; } .playbooks .mi-shm-txt span { font-size: 10.5px; color: #6C7597; }
.playbooks .mi-shm-tag { padding: 4px 7px; border-radius: 6px; background: #EBF6FF; color: #3A5BE0; font: 500 10.5px/1 var(--font-body); white-space: nowrap; }
.playbooks .mi-shm-row.is-pre { opacity: 0; transform: translateY(-8px); }

/* ---------- clock-in proof (Check ins.svg 453×261, reworded): each row is scanned, then tagged; the anomaly turns red ---------- */
.playbooks .mi-shv-row { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 11px 0; }
.playbooks .mi-shv-row + .mi-shv-row { border-top: 1px solid #F3F4FC; }
.playbooks .mi-shv-row::before { content: ""; position: absolute; inset: 2px -10px; border-radius: 10px; background: rgba(20, 92, 235, .06); opacity: 0; transition: opacity .3s; }
.playbooks .mi-shv-row.is-scan::before { opacity: 1; }

/* ---------- attendance rules (new graphic): the grace period slides to 10 min, breaks switch on, overtime goes to TOIL, the workflow lights up ---------- */

.playbooks .mi-shr-track { position: relative; width: 108px; height: 6px; border-radius: 3px; background: #E3E8F2; }
.playbooks .mi-shr-track i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--g, 66%); border-radius: inherit; background: #4E71FF; transition: width .9s var(--ease-out); }
.playbooks .mi-shr-track b { position: absolute; top: 50%; left: var(--g, 66%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #4E71FF, 0 2px 5px rgba(0, 0, 0, .15); transition: left .9s var(--ease-out); }

/* ---------- task flags (Flag.svg 455×255): three jobs land; two verified, the last one disputed ---------- */
.playbooks .mi-shf-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 15px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #E7E8E9;
  transition: opacity .45s, transform .55s var(--ease-out); }

.playbooks .mi-shf-card.is-pre { opacity: 0; transform: translateY(12px); }

/* ---------- Clockwise (Clockwise.svg 499×304): it reports the trend, the manager asks, the Bradford flag pops, the risk level fills ---------- */

@keyframes shkPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 149, 94, .45); } 100% { box-shadow: 0 0 0 7px rgba(0, 149, 94, 0); } }

/* ==========================================================================
   Shift, site and field teams: Tasks on site (sense-shift-tasks-on-site.html) — colours from the exports
   ========================================================================== */
/* ---------- dispute evidence (Verify Tasks.svg 402×357, hero): the verified job, the disputed one, then the evidence fills in ---------- */
.playbooks .mi-shy { width: min(440px, 100%); display: flex; flex-direction: column; gap: 12px; background: none !important; box-shadow: none !important; }
.playbooks .mi-shy-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 13px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #F3F4FC, 0 18px 32px -24px rgba(33, 18, 140, .35);
  transition: opacity .45s, transform .55s var(--ease-out), background-color .4s, box-shadow .4s; }
.playbooks .mi-shy-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; } .playbooks .mi-shy-av img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .mi-shy-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .playbooks .mi-shy-txt b { font: 500 13.5px/1.2 var(--font-body); color: #495066; transition: color .35s; } .playbooks .mi-shy-txt span { font-size: 11px; line-height: 1.3; color: #8994AA; transition: color .35s; }
.playbooks .mi-shy-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; font: 500 11.5px/1 var(--font-body); white-space: nowrap; transition: opacity .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .mi-shy-tag svg { width: 12px; height: 12px; } .playbooks .mi-shy-tag.is-ok { background: #E2FFF6; color: #197A68; } .playbooks .mi-shy-tag.is-bad { background: #FFE9E2; color: #D33131; }
.playbooks .mi-shy-card.is-bad.is-done { background: #FFFAFA; box-shadow: 0 0 0 1px #FBE3E3, 0 18px 32px -24px rgba(140, 18, 18, .3); }
.playbooks .mi-shy-card.is-bad.is-done .mi-shy-txt b, .playbooks .mi-shy-card.is-bad.is-done .mi-shy-txt span { color: #BC0003; }
.playbooks .mi-shy-card:not(.is-done) .mi-shy-tag { opacity: 0; transform: scale(.7); }
.playbooks .mi-shy-ev { padding: 14px; border-radius: 14px; background: #F8F8FE; box-shadow: 0 0 0 1px #ECEEF3, 0 18px 32px -24px rgba(33, 18, 140, .3); transition: opacity .45s, transform .55s var(--ease-out); }
.playbooks .mi-shy-ev-h { display: block; padding: 0 2px 12px; font: 500 13.5px/1.2 var(--font-body); color: #495066; }
.playbooks .mi-shy-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.playbooks .mi-shy-col { padding: 10px 12px 4px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E9EDF4; }
.playbooks .mi-shy-col > b { display: block; padding-bottom: 8px; font: 600 12px/1.2 var(--font-body); color: #495066; border-bottom: 1px solid #F4F4F4; }
.playbooks .mi-shy-col ul { list-style: none; margin: 0; padding: 0; }
.playbooks .mi-shy-col li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 11.5px; color: #495066; }
.playbooks .mi-shy-col li + li { border-top: 1px solid #F4F4F4; }
.playbooks .mi-shy-col li b { font: 500 12px/1 var(--font-body); white-space: nowrap; transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .mi-shy-col li b.is-bad { color: #E4583C; } .playbooks .mi-shy-col li b.is-ok { color: #3B9567; }
.playbooks .mi-shy .is-pre { opacity: 0; transform: translateY(10px); }
.playbooks .mi-shy-col li.is-off b { opacity: 0; transform: scale(.7); }

/* ---------- task detail (Task lenght.svg 470×280): details beside the activity, which arrives oldest first ---------- */

.playbooks .mi-shx-act { position: relative; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 9px 0; font-size: 10px; line-height: 1.4; color: #495066;
  transition: opacity .45s, transform .5s var(--ease-out); }
.playbooks .mi-shx-act i { width: 9px; height: 9px; margin-top: 2px; border-radius: 50%; background: #DCE2EA; }
.playbooks .mi-shx-act em { font-style: normal; font-size: 9.5px; color: #6C7597; white-space: nowrap; }
.playbooks .mi-shx-act.is-off { opacity: 0; transform: translateY(-6px); }

/* ---------- task workload (Prove Task.svg 412×238): the bars fill; Mark is overloaded, James takes three new tasks ---------- */
.playbooks .mi-shq-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 14px 0; }
.playbooks .mi-shq-row + .mi-shq-row { border-top: 1px solid #F3F4FC; }

 .playbooks .mi-shq-row.is-half [data-new] { opacity: 0; }

/* ---------- visit report (Disputed Invoices.svg 314×273): the jobs tick in, then the totals count up ---------- */
.playbooks .mi-sho { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; background: none !important; box-shadow: none !important; }
.playbooks .mi-sho-card { border-radius: 16px; background: #FDFCFF; overflow: hidden; box-shadow: 0 0 0 1px #F3F4FC; }
.playbooks .mi-sho-h { display: block; padding: 13px 16px; background: #EBF6FF; font: 600 14px/1.2 var(--font-body); color: #145CEB; }
.playbooks .mi-sho-list { list-style: none; margin: 0; padding: 2px 16px 4px; }
.playbooks .mi-sho-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 11px 0; transition: opacity .45s, transform .55s var(--ease-out); }
.playbooks .mi-sho-row + .mi-sho-row { border-top: 1px solid #F3F4FC; }
.playbooks .mi-sho-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #E6FFF0; color: #22A566; } .playbooks .mi-sho-ic svg { width: 16px; height: 16px; }
.playbooks .mi-sho-txt { display: flex; flex-direction: column; gap: 3px; } .playbooks .mi-sho-txt b { font: 500 13.5px/1.2 var(--font-body); color: #495066; } .playbooks .mi-sho-txt span { font-size: 11px; color: #8994AA; }
.playbooks .mi-sho-row.is-pre { opacity: 0; transform: translateY(8px); }
.playbooks .mi-sho-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 6px; border-radius: 16px; background: #E7F9CE; box-shadow: inset 0 0 0 1px #D3F0C4; text-align: center; transition: opacity .45s, transform .55s var(--ease-out); }
.playbooks .mi-sho-stats > span { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #4C7A27; }
.playbooks .mi-sho-stats > span + span { border-left: 1px solid #C8E4AE; }
.playbooks .mi-sho-stats em { font: 500 18px/1 var(--font-body); font-style: normal; color: #1D3A0B; font-variant-numeric: tabular-nums; }
.playbooks .mi-sho-stats.is-pre { opacity: 0; transform: translateY(10px); }

/* glass borders in the panels */
@media (max-width: 600px) {

  .playbooks .mi-shy-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Shift: Clocking in machines (sense-shift-clock-in-system.html)
   ========================================================================== */

/* the clock-ins list */

.playbooks .shh-live { display: inline-flex; align-items: center; gap: 5px; font: 600 10px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; color: #00955E; }
.playbooks .shh-live i { width: 6px; height: 6px; border-radius: 50%; background: #00955E; animation: shkPulse 1.6s ease-out infinite; }

/* ==========================================================================
   Sense Gateway (sense-shift-sense-gateway.html; user, 14 Oct) — prefix gw*
   ========================================================================== */
.playbooks .gw-dev { position: relative; display: inline-block; flex-shrink: 0; width: 14px; height: 12px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1.2px #1A6FD8, 0 3px 6px -2px rgba(14, 50, 110, .35); }
.playbooks .gw-dev i { position: absolute; width: 5px; height: 4px; border: 1.4px solid #36C8DC; }
.playbooks .gw-dev i:first-child { left: 2px; top: 2px; border-right: 0; border-bottom: 0; border-radius: 2px 0 0 0; } .playbooks .gw-dev i + i { right: 2px; bottom: 2px; border-left: 0; border-top: 0; border-radius: 0 0 2px 0; }

/* ---------- hero: the Gateway (gateway 1.png) picks up each passing Tag; the who's-where list fills ---------- */

.playbooks .gwh-fh { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #F1F2F6; } .playbooks .gwh-fh b { font: 600 12.5px/1.2 var(--font-body); color: #2C3550; }

/* ---------- SOS Response (SOS.svg 413×307): the hard fall alert, the response time, help assigned ---------- */
.playbooks .gwo-ban { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #FFEAEA;
  box-shadow: inset 0 0 0 1px #FFD7D7, 0 30px 50px -26px rgba(0, 0, 0, .55); transition: opacity .45s, transform .5s var(--ease-out); }
.playbooks .gwo-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #FFCFCF; color: #E5484D; } .playbooks .gwo-ic svg { width: 18px; height: 18px; }
.playbooks .gwo-bt { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .playbooks .gwo-bt b { font: 500 15px/1.2 var(--font-body); color: #C00000; } .playbooks .gwo-bt span { font-size: 11.5px; line-height: 1.3; color: #C00000; }
.playbooks .gwo-rt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .playbooks .gwo-rt span { font-size: 10.5px; color: #C00000; }
.playbooks .gwo-rt b { font: 600 20px/1 var(--font-body); color: #C00000; font-variant-numeric: tabular-nums; }

.playbooks .gwo-ban.is-shake { animation: gwoShake .5s; }
@keyframes gwoShake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }

/* ---------- Add 1, 2, or 300 Gateways (new graphic): Gateways added room by room; the location sharpens ---------- */

.playbooks .gws-gw { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .35s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .gws-gw::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid rgba(54, 200, 220, .7); opacity: 0; }

/* ==========================================================================
   Man down and SOS alarms (sense-shift-man-down-alarm.html; user, 14 Oct) — prefixes mdh, mdl, mda, mdw
   ========================================================================== */
/* ---------- hero (Man Down.svg 438×301): the live no-movement list ---------- */

@keyframes mdhPulse { from { box-shadow: 0 0 0 0 rgba(229, 72, 77, .4); } to { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } }

/* ---------- Locate Incident (new graphic): the site map, the stockroom lit up, the helper's route ---------- */

@keyframes mdlLit { from { box-shadow: inset 0 0 0 1.5px #F4A898, 0 0 0 0 rgba(240, 82, 74, .35); } to { box-shadow: inset 0 0 0 1.5px #F4A898, 0 0 0 10px rgba(240, 82, 74, 0); } }
.playbooks .mdl-pin { position: absolute; z-index: 2; width: 28px; height: 28px; transform: translate(-50%, -100%); }
.playbooks .mdl-pin::after { content: ""; position: absolute; left: 50%; top: 25px; width: 8px; height: 8px; margin-left: -4px; background: var(--ring); transform: rotate(45deg); border-radius: 0 0 2px 0; z-index: -1; }
.playbooks .mdl-pav { display: block; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2.5px var(--ring), 0 6px 10px -4px rgba(0, 0, 0, .35); } .playbooks .mdl-pav img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .mdl-pin.is-sos { --ring: #F0524A; left: 86%; top: 34%; opacity: 0; transform: translate(-50%, -100%) scale(.5); transition: opacity .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .mdl-pin.is-sos .mdl-pav { animation: mdlPing 1.4s ease-out infinite; }
@keyframes mdlPing { from { box-shadow: 0 0 0 2.5px var(--ring), 0 0 0 2.5px rgba(240, 82, 74, .5); } to { box-shadow: 0 0 0 2.5px var(--ring), 0 0 0 12px rgba(240, 82, 74, 0); } }
.playbooks .mdl-pin.is-help { --ring: #1A6FD8; left: 72%; top: 30%; transition-property: left, top; transition-timing-function: linear; }

/* ---------- Choose Who Responds (new graphic): the SOS pathway card alerting each person (the phone removed, user 14 Oct) ---------- */
.playbooks .mda-ph { display: block; margin-bottom: 10px; font: 600 14.5px/1.2 var(--font-body); color: #2C3550; }

/* ==========================================================================
   Lone worker safety (sense-shift-lone-worker-safety.html; user, 15 Oct) — prefix lw*
   ========================================================================== */
/* the Sense Badge render (sos alert.png) with a live screen laid over its own */
.playbooks .lw-dev { position: relative; container-type: inline-size; }
.playbooks .lw-dev picture, .playbooks .lw-dev img { display: block; width: 100%; height: auto; }
.playbooks .lw-scr { position: absolute; overflow: hidden; border-radius: 2.7cqw; font-family: var(--font-body); }
.playbooks .lw-sb { display: flex; align-items: center; justify-content: space-between; width: 100%; color: #6C7597; font: 500 4cqw/1 var(--font-body); }
.playbooks .lw-sb svg { width: 5.5cqw; height: 5.5cqw; } .playbooks .lw-sb > span { display: inline-flex; align-items: flex-end; gap: .6cqw; }
.playbooks .lw-sb i { width: .9cqw; background: #4A5470; border-radius: .3cqw; } .playbooks .lw-sb i:nth-child(1) { height: 1.6cqw; } .playbooks .lw-sb i:nth-child(2) { height: 2.4cqw; } .playbooks .lw-sb i:nth-child(3) { height: 3.2cqw; margin-right: 1.4cqw; }
.playbooks .lw-sb b { width: 6cqw; height: 3cqw; margin-left: 1cqw; border-radius: .6cqw; background: #2C3550; box-shadow: 0 0 0 .4cqw #fff, 0 0 0 .7cqw #4A5470; }

/* ---------- hero: Emma's SOS on the Badge, the live lone worker list ---------- */
.playbooks .mi-lwh { position: relative; width: min(540px, 100%); aspect-ratio: 1 / .96; background: none !important; box-shadow: none !important; border: 0 !important; }
.playbooks .mi-lwh .lw-dev { position: absolute; left: 2%; top: 2%; width: 52%; }
.playbooks .mi-lwh .lw-dev img { filter: drop-shadow(0 30px 40px rgba(15, 30, 70, .3)); }
.playbooks .lwh-btn { position: absolute; left: 6.1%; top: 82.3%; width: 86.2%; height: 10%; display: flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 1.2cqw; background: #3C7EFF; color: #fff; font: 500 3.2cqw/1 var(--font-body); font-variant-numeric: tabular-nums; }
.playbooks .lwh-btn.is-tick { animation: lwhTick .45s ease-out; } @keyframes lwhTick { 30% { filter: brightness(1.15); } }
.playbooks .lwh-sent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; padding: 0 6cqw; text-align: center; background: #FAFAFA; opacity: 0; transition: opacity .35s; }
.playbooks .lwh-sent b { font: 600 5.6cqw/1.2 var(--font-body); color: #2C3550; } .playbooks .lwh-sent span { font-size: 3.6cqw; line-height: 1.35; color: #4A5470; }
.playbooks .lwh-ok { width: 15cqw; height: 15cqw; padding: 3.6cqw; margin-bottom: 1.5cqw; border-radius: 50%; background: #1BCAA7; color: #fff; } .playbooks .lwh-ok svg { width: 100%; height: 100%; }
.playbooks .mi-lwh:is(.is-sent, .is-end) .lwh-sent { opacity: 1; }
.playbooks .lwh-loc { position: absolute; left: 38%; top: 7%; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px 7px 8px; border-radius: 12px; background: #fff; white-space: nowrap;
  font: 600 11.5px/1 var(--font-body); color: #1563C4; box-shadow: 0 0 0 1px rgba(11, 10, 20, .05), 0 18px 30px -16px rgba(15, 30, 70, .45); opacity: 0; transform: translateY(6px) scale(.95); transition: opacity .4s, transform .5s var(--ease-out); }
.playbooks .lwh-loc svg { width: 13px; height: 13px; } .playbooks .mi-lwh:is(.is-sent, .is-end) .lwh-loc { opacity: 1; transform: none; }
.playbooks .lwh-feed { position: absolute; right: 0; top: 36%; z-index: 4; width: 56%; padding: 12px 14px 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 10, 20, .05), 0 30px 50px -24px rgba(15, 30, 70, .45); }
.playbooks .lwh-feed ul { list-style: none; margin: 0; padding: 0; }
.playbooks .lwh-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 9px 0; } .playbooks .lwh-row + .lwh-row { border-top: 1px solid #F1F2F6; }
.playbooks .lwh-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; } .playbooks .lwh-av img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .lwh-rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .playbooks .lwh-rt b { font: 500 12.5px/1.2 var(--font-body); color: #2C3550; } .playbooks .lwh-rt span { font-size: 10.5px; color: #6C7597; white-space: nowrap; }
.playbooks .lwh-tag { display: grid; } .playbooks .lwh-tag > span { grid-area: 1 / 1; justify-self: end; padding: 4px 8px; border-radius: 6px; font: 600 10.5px/1 var(--font-body); white-space: nowrap; transition: opacity .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .lwh-tag .is-b { opacity: 0; transform: scale(.8); }
.playbooks .lwh-row[data-r="e"] .is-a { background: #EEF5FD; color: #1563C4; } .playbooks .lwh-row[data-r="e"] .is-b { background: #FFE6E6; color: #C00000; }
.playbooks .lwh-row[data-r="j"] .is-a { background: #E4FFF0; color: #02847C; } .playbooks .lwh-row[data-r="j"] .is-b { background: #1A6FD8; color: #fff; }
.playbooks .lwh-row[data-r="s"] .is-a, .playbooks .lwh-row[data-r="s"] .is-b { background: #E4FFF0; color: #02847C; }
.playbooks .mi-lwh:is(.is-sent, .is-end) .lwh-row[data-r="e"] .is-a, .playbooks .mi-lwh:is(.is-help, .is-end) .lwh-row[data-r="j"] .is-a { opacity: 0; }
.playbooks .mi-lwh:is(.is-sent, .is-end) .lwh-row[data-r="e"] .is-b, .playbooks .mi-lwh:is(.is-help, .is-end) .lwh-row[data-r="j"] .is-b { opacity: 1; transform: none; }
.playbooks .mi-lwh:is(.is-sent, .is-end) .lwh-row[data-r="e"] .is-b { animation: mdhPulse 1.4s ease-out infinite; }
@media (max-width: 600px) { .playbooks .mi-lwh { aspect-ratio: auto; } .playbooks .mi-lwh .lw-dev { position: relative; left: auto; width: 54%; margin: 0 auto; } .playbooks .lwh-feed { position: relative; width: 100%; margin-top: -44px; } .playbooks .lwh-loc { left: auto; right: 2%; top: 14%; } }

/* ---------- SOS Buttons (new graphic): the Sense Tag's SOS button pressed, the response workflow ---------- */

.playbooks .lwt-step { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 12px; color: #2C3550; transition: opacity .3s; }
.playbooks .lwt-step i { width: 18px; height: 18px; padding: 4px; border-radius: 50%; background: #EEF1F6; color: transparent; transition: background-color .3s, color .3s; } .playbooks .lwt-step i svg { width: 100%; height: 100%; }
.playbooks .lwt-step.is-on i { background: #1BCAA7; color: #fff; }

/* ---------- Passive Check-Ins (new graphic): the check-in prompt on the Badge, the rules by role ---------- */
.playbooks .mi-lwc { width: min(520px, 100%); display: grid; grid-template-columns: 46% minmax(0, 1fr); gap: 20px; align-items: center; background: none; box-shadow: none; }
.playbooks .mi-lwc .lw-dev img { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45)); }
.playbooks .lwc-ask, .playbooks .lwc-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; background: #FAFAFA; }
.playbooks .lwc-ask { padding: 4cqw 4cqw 0; }
.playbooks .lwc-ask > b { margin-top: 4cqw; font: 600 6.4cqw/1.2 var(--font-body); color: #2C3550; }
.playbooks .lwc-ring { position: relative; width: 28cqw; aspect-ratio: 1; margin-top: 3cqw; } .playbooks .lwc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.playbooks .lwc-ring circle { fill: none; stroke: #E6ECF5; stroke-width: 5; } .playbooks .lwc-ring .lwc-arc { stroke: #3C7EFF; stroke-linecap: round; stroke-dashoffset: calc(var(--c) * var(--p, 0) * 1px); transition: stroke-dashoffset .3s linear; }
.playbooks .lwc-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 6.6cqw/1 var(--font-body); color: #2C3550; font-variant-numeric: tabular-nums; }
.playbooks .lwc-sub { margin-top: 3cqw; font-size: 4.2cqw; color: #4A5470; text-align: center; }
.playbooks .lwc-ok { position: absolute; left: 6.1%; bottom: 7.7%; width: 86.2%; height: 10%; display: grid; place-items: center; border-radius: 1.2cqw; background: #3C7EFF; color: #fff; font: 500 3.2cqw/1 var(--font-body); transition: transform .15s; }
.playbooks .lw-scr .lwc-ok { width: 86.2%; height: 10%; font-size: 5.4cqw; } .playbooks .lwc-ok.is-press { transform: scale(.95); }
.playbooks .lwc-done { justify-content: center; gap: 2.4cqw; opacity: 0; transition: opacity .35s; } .playbooks .lwc-done b { font: 600 6.4cqw/1.2 var(--font-body); color: #2C3550; } .playbooks .lwc-done span { font-size: 4.4cqw; color: #4A5470; }
.playbooks .mi-lwc:is(.is-done, .is-end) .lwc-done { opacity: 1; }
.playbooks .lwc-rules { padding: 16px 16px 12px; border-radius: 16px; background: #fff; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55); }
.playbooks .lwc-rules ul { list-style: none; margin: 0; padding: 0; }
.playbooks .lwc-rules li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 12.5px; color: #4A5470; } .playbooks .lwc-rules li + li { border-top: 1px solid #F1F2F6; } .playbooks .lwc-rules li b { font-weight: 600; color: #1563C4; white-space: nowrap; }
.playbooks .lwc-miss { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border-radius: 10px; background: #FFF3F2; } .playbooks .lwc-miss svg { width: 18px; height: 18px; color: #E5484D; flex-shrink: 0; }
.playbooks .lwc-miss > span { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #6C7597; } .playbooks .lwc-miss b { font: 600 12.5px/1.2 var(--font-body); color: #B42318; }

/* ---------- Man Down System (new graphic): the hard fall alert and her room on the map ---------- */
.playbooks .mi-lwf { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; background: none; box-shadow: none; }
.playbooks .mi-lwf.is-pre .lwf-ban { opacity: 0; transform: translateY(-10px); }
.playbooks .lwf-card { padding: 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #E6E8F0, 0 30px 50px -26px rgba(0, 0, 0, .55); }
.playbooks .lwf-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .playbooks .lwf-h b { font: 600 14px/1.2 var(--font-body); color: #4A5470; }
.playbooks .lwf-h span { padding: 4px 8px; border-radius: 6px; background: #EEF5FD; color: #1563C4; font: 600 11px/1 var(--font-body); }
.playbooks .lwf-map { position: relative; aspect-ratio: 2.5; }
.playbooks .lwf-z { position: absolute; border-radius: 10px; background: #F4F7FC; box-shadow: inset 0 0 0 1px #E3EAF5; transition: background-color .45s, box-shadow .45s; }
.playbooks .lwf-z span { position: absolute; left: 10px; top: 9px; font: 500 11.5px/1.2 var(--font-body); color: #6C7597; transition: color .45s; }
.playbooks .lwf-z[data-z="office"] { left: 0; top: 0; width: 49%; height: 100%; } .playbooks .lwf-z[data-z="corridor"] { left: 51%; top: 0; width: 49%; height: 47%; } .playbooks .lwf-z[data-z="stairs"] { left: 51%; top: 53%; width: 49%; height: 47%; }
.playbooks .mi-lwf:is(.is-lit, .is-end) .lwf-z[data-z="office"] { background: #FFE9E6; box-shadow: inset 0 0 0 1.5px #F4A898; animation: mdlLit 1.6s ease-out infinite; } .playbooks .mi-lwf:is(.is-lit, .is-end) .lwf-z[data-z="office"] span { color: #B42318; font-weight: 600; }
.playbooks .mdl-pin.lwf-pin { left: 26%; top: 74%; }
.playbooks .mi-lwf:is(.is-lit, .is-end) .lwf-pin { opacity: 1; transform: translate(-50%, -100%); }
.playbooks .lwf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.playbooks .lwf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 6px; border-radius: 8px; background: #F4F6FA; font: 500 11px/1 var(--font-body); color: #6C7597; transition: background-color .3s, color .3s; }
.playbooks .lwf-chip i { width: 15px; height: 15px; padding: 3px; border-radius: 50%; background: #E3E7EF; color: transparent; transition: background-color .3s, color .3s; } .playbooks .lwf-chip i svg { width: 100%; height: 100%; }
.playbooks .lwf-chip.is-on, .playbooks .mi-lwf.is-end .lwf-chip { background: #E4FFF0; color: #02684F; } .playbooks .lwf-chip.is-on i, .playbooks .mi-lwf.is-end .lwf-chip i { background: #1BCAA7; color: #fff; }

/* ---------- Health and Safety Compliance (new graphic): the incident record, step by step with times ---------- */

.playbooks .lwi-row { position: relative; display: grid; grid-template-columns: 62px 14px minmax(0, 1fr); column-gap: 10px; align-items: start; padding: 5px 0; transition: opacity .4s, transform .5s var(--ease-out); }
.playbooks .lwi-row > b { font: 500 11.5px/1.35 var(--font-body); color: #4A5470; font-variant-numeric: tabular-nums; }

/* ---------- Lone Worker Sessions (new graphic): the app's Start lone worker session, then the running session ---------- */
.playbooks .mi-lws { width: min(360px, 100%); padding: 16px 18px 18px; border-radius: 18px; }
.playbooks .lws-top { display: flex; align-items: center; gap: 8px; } .playbooks .lws-top b { font: 600 13px/1 var(--font-body); color: #2C3550; } .playbooks .lws-top .mda-app { width: 22px; height: 22px; border-radius: 6px; }
.playbooks .lws-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; } .playbooks .lws-who > span { display: flex; flex-direction: column; gap: 3px; } .playbooks .lws-who b { font: 600 14px/1.2 var(--font-body); color: #2C3550; } .playbooks .lws-who span span { font-size: 12px; color: #6C7597; }
.playbooks .lws-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; } .playbooks .lws-av img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .lws-pre { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; } .playbooks .lws-q { font-size: 13px; color: #4A5470; }
.playbooks .lws-start { display: grid; place-items: center; height: 46px; border-radius: 12px; background: #3C7EFF; color: #fff; font: 600 13.5px/1 var(--font-body); box-shadow: 0 12px 24px -12px rgba(60, 126, 255, .7); transition: transform .15s; } .playbooks .lws-start.is-press { transform: scale(.97); }
.playbooks .lws-on { display: none; flex-direction: column; margin-top: 16px; }
.playbooks .mi-lws:is(.is-on, .is-end) .lws-pre { display: none; } .playbooks .mi-lws:is(.is-on, .is-end) .lws-on { display: flex; }
.playbooks .lws-live { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #E4FFF0; color: #02684F; font: 600 12.5px/1 var(--font-body); }
.playbooks .lws-live i { width: 7px; height: 7px; border-radius: 50%; background: #1BCAA7; animation: miPulse 1.8s ease-out infinite; } .playbooks .lws-live b { margin-left: auto; font-variant-numeric: tabular-nums; }
.playbooks .mi-lws ul { list-style: none; margin: 8px 0 0; padding: 0; }
.playbooks .mi-lws li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; font-size: 12.5px; color: #2C3550; } .playbooks .mi-lws li + li { border-top: 1px solid #F1F2F6; }
.playbooks .lws-sw { position: relative; width: 34px; height: 20px; border-radius: 20px; background: #DDE2EA; transition: background-color .3s; }
.playbooks .lws-sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .3s var(--ease-out); }
.playbooks .mi-lws li.is-on .lws-sw, .playbooks .mi-lws.is-end .lws-sw { background: #3C7EFF; } .playbooks .mi-lws li.is-on .lws-sw::after, .playbooks .mi-lws.is-end .lws-sw::after { transform: translateX(14px); }
.playbooks .lws-end { display: grid; place-items: center; height: 38px; margin-top: 10px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px #F6C9C4; color: #B42318; font: 600 12.5px/1 var(--font-body); }

/* in the stacking panels: the glass outline hugs each card, not the group (as the Gateway panels); phones scale them as one */
.playbooks .lwf-ban.is-shake { animation: gwoShake .5s; }
.playbooks .lwf-ban { transition: opacity .45s, transform .5s var(--ease-out); }
@media (max-width: 600px) {
  .playbooks .lwh-loc { left: auto; right: 0; top: 1%; }   /* phones: above the Badge, clear of its screen */
  .playbooks .mi-lwc { grid-template-columns: minmax(0, 1fr); justify-items: center; } .playbooks .mi-lwc .lw-dev { width: 54%; } .playbooks .lwc-rules { width: 100%; }
}

/* ==========================================================================
   Sense Badge page graphics (user, 26 Oct) — bento tiles: bdg, bdf, bds, bdw; stacking panels: bdl, bdn, bdt, bdm
   ========================================================================== */
.playbooks .mi-bdg { position: absolute; inset: 0; margin: 0; background: none; box-shadow: none; overflow: hidden; border-radius: inherit; }
.playbooks .bd-box { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(100cqw, calc(100cqh * 1.15), 520px); aspect-ratio: 1.15; container-type: size; }

/* ---------- Locate Staff In or Out: the live map, the route to Site B, the technology in use ---------- */

.playbooks .bdl-trail { fill: none; stroke: #1A6FD8; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: var(--off, 0); transition: stroke-dashoffset var(--dur, 0s) linear; }

.playbooks .bdl-tag { position: absolute; z-index: 1; translate: -50% 6px; padding: 2px 5px; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px rgba(30, 80, 150, .12); font: 600 9.5px/1.2 var(--font-body); color: #1563C4; opacity: 0; transition: opacity .3s; }
.playbooks .bdl-tag.is-on { opacity: 1; }

.playbooks .bdl-tech { display: inline-flex; gap: 5px; } .playbooks .bdl-tech span { padding: 4px 8px; border-radius: 6px; background: #F1F4F9; font: 600 10.5px/1 var(--font-body); color: #7C86A3; transition: background-color .3s, color .3s; }
.playbooks .bdl-tech span.is-on { background: #1A6FD8; color: #fff; }

/* ---------- Find People or Things / Tasks and To-Dos: the Badge's own screen, a card beside it ---------- */

.playbooks .bdt-rec { padding: 16px 14px 10px; border-radius: 16px; background: #fff; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .55); }
.playbooks .bdn-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 10px 8px; border-radius: 10px; transition: background-color .3s, box-shadow .3s; }
.playbooks .bdn-row + .bdn-row { margin-top: 4px; } .playbooks .bdn-row.is-on { background: #EEF5FD; box-shadow: inset 0 0 0 1.5px #BFDBFB; }

.playbooks .bdn-rt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .playbooks .bdn-rt b { font: 600 12.5px/1.2 var(--font-body); color: #2C3550; } .playbooks .bdn-rt span { font-size: 11px; line-height: 1.3; color: #6C7597; }
.playbooks .bdn-d { font: 600 12px/1 var(--font-body); color: #1563C4; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* tasks on the Badge screen */
.playbooks .bdt-row { display: flex; align-items: center; gap: 3.4cqw; padding: 3.6cqw 3.4cqw; border-radius: 2.6cqw; background: #F1F3F6; transition: opacity .35s, background-color .35s; }
.playbooks .bdt-box { flex-shrink: 0; width: 7.6cqw; height: 7.6cqw; padding: 1.2cqw; border-radius: 1.8cqw; box-shadow: inset 0 0 0 .6cqw #3C7EFF; color: transparent; transition: background-color .25s, color .25s, scale .35s cubic-bezier(.34, 1.56, .64, 1); } .playbooks .bdt-box svg { width: 100%; height: 100%; }
.playbooks .bdt-row > span { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; } .playbooks .bdt-row b { font: 600 4.6cqw/1.2 var(--font-body); color: #2C3550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .playbooks .bdt-row span span { font-size: 3.7cqw; color: #6C7597; }
.playbooks .bdt-row.is-done { opacity: .55; } .playbooks .bdt-row.is-done .bdt-box { background: #3C7EFF; color: #fff; }
.playbooks .bdt-row.is-done b { text-decoration: line-through; }
.playbooks .bdt-row.is-pop .bdt-box { scale: 1.2; }
.playbooks .bdt-rec { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; transition: opacity .3s, translate .4s var(--ease-out); }
.playbooks .bdt-rec.is-flip { opacity: 0; translate: 0 6px; }

/* ---------- Itemised Timesheets: the day split by site, project, breaks and the road ---------- */

.playbooks .bdm-seg { flex: none; width: var(--w); height: 100%; transition: width .5s cubic-bezier(.5, 0, .2, 1); }
.playbooks .bdm-seg.is-a, .playbooks .bdm-row i.is-a { background: #1A6FD8; } .playbooks .bdm-seg.is-b, .playbooks .bdm-row i.is-b { background: #0F3F86; }  
.playbooks .bdm-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 9px 6px; border-radius: 8px; transition: background-color .3s; }
.playbooks .bdm-row + .bdm-row { box-shadow: 0 -1px 0 #F1F2F6; } .playbooks .bdm-row.is-hot { background: #F4F8FE; }
.playbooks .bdm-row i { width: 10px; height: 10px; border-radius: 3px; } .playbooks .bdm-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.playbooks .bdm-row > span b { font: 600 12.5px/1.2 var(--font-body); color: #2C3550; } .playbooks .bdm-row > span span { font-size: 11px; color: #6C7597; } .playbooks .bdm-row > b { font: 600 12.5px/1 var(--font-body); color: #2C3550; font-variant-numeric: tabular-nums; }

/* in the stacking panels: the glass outline hugs each card (as the Gateway and Lone worker panels) */
@media (max-width: 600px) {
    .playbooks .bdt-rec { width: 100%; }
}

/* ---------- Clock In or Out (user, 26 Oct: the Gateway page's site floor plan): on-site confirmation, then room or zone; the clock-ins list ---------- */
.playbooks .mi-bdg .bd-box { width: min(calc(100cqw - 36px), calc((100cqh - 36px) * .86), 480px); aspect-ratio: .86; }   /* taller than wide, 18px clear of the stage's edges all round (user, 26 Oct) */
.playbooks .bdg-plan, .playbooks .bdg-feed { position: absolute; left: 0; right: 0; border-radius: 3.4cqw; background: #fff; box-shadow: 0 0 0 1px rgba(30, 80, 150, .06), 0 3cqw 5cqw -2.4cqw rgba(15, 30, 70, .35); }
.playbooks .bdg-plan { top: 0; height: 60%; display: flex; flex-direction: column; padding: 3.2cqw; }
.playbooks .bdg-ph { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; } .playbooks .bdg-ph > b { font: 600 3.3cqw/1.1 var(--font-body); color: #2C3550; white-space: nowrap; }
.playbooks .bdg-mode { display: inline-flex; gap: .4cqw; padding: .6cqw; border-radius: 2cqw; background: #EEF1F6; } .playbooks .bdg-mode i { display: none; }
.playbooks .bdg-mode span { padding: 1cqw 1.8cqw; border-radius: 1.5cqw; font: 600 2.4cqw/1 var(--font-body); color: #6C7597; white-space: nowrap; transition: background-color .3s, color .3s, box-shadow .3s; }
.playbooks .bdg-mode span.is-on { background: #fff; color: #1563C4; box-shadow: 0 .3cqw 1cqw rgba(15, 30, 70, .15); }
.playbooks .bdg-map { position: relative; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.6cqw; margin-top: 2.6cqw; }
.playbooks .bdg-room { position: relative; border-radius: 1.8cqw; background: #F4F7FC; box-shadow: inset 0 0 0 1px #E3EAF5; transition: background-color .4s, box-shadow .4s; }
.playbooks .bdg-room > span:first-child { position: absolute; left: 1.6cqw; top: 1.4cqw; font: 500 2.3cqw/1.2 var(--font-body); color: #6C7597; }
.playbooks .bdg-room .gws-gw { position: absolute; right: 1.4cqw; bottom: 1.4cqw; opacity: 0; transform: scale(.4); transition: opacity .35s, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.playbooks .bdg-room[data-room="entrance"] .gws-gw, .playbooks .mi-bdg:is(.is-room, .is-end) .gws-gw { opacity: 1; transform: none; }
.playbooks .mi-bdg:is(.is-room, .is-end) .bdg-room { background: #EEF5FD; box-shadow: inset 0 0 0 1px #CFE0F5; }
.playbooks .bdg-room.is-here, .playbooks .mi-bdg.is-end .bdg-room[data-room="stock"] { background: #DCEEFD !important; box-shadow: inset 0 0 0 .4cqw #1A6FD8 !important; }
.playbooks .bdg-cov { position: absolute; inset: -1cqw; border-radius: 2.6cqw; background: rgba(54, 200, 220, .08); box-shadow: inset 0 0 0 .4cqw #36C8DC; opacity: 0; transition: opacity .4s; pointer-events: none; }
.playbooks .mi-bdg.is-onsite .bdg-cov { opacity: 1; }
.playbooks .bdg-door { display: none; }
.playbooks .bdg-pin { position: absolute; z-index: 2; left: var(--px, 83.3%); top: var(--py, 34%); width: 7cqw; height: 7cqw; translate: -50% -100%; transition: left 1.3s cubic-bezier(.45, 0, .55, 1), top 1.3s cubic-bezier(.45, 0, .55, 1), opacity .3s; }
.playbooks .bdg-pin::after { content: ""; position: absolute; left: 50%; top: 6cqw; width: 2cqw; height: 2cqw; margin-left: -1cqw; background: #1A6FD8; transform: rotate(45deg); border-radius: 0 0 .4cqw 0; z-index: -1; }
.playbooks .bdg-pav { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 .6cqw #1A6FD8, 0 1.4cqw 2cqw -.8cqw rgba(0, 0, 0, .35); } .playbooks .bdg-pav img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .mi-bdg.is-run:not(.is-pin) .bdg-pin { opacity: 0; }
.playbooks .bdg-feed { bottom: 0; height: 37%; padding: 2.6cqw 3.2cqw 1cqw; }
.playbooks .bdg-fh { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1.4cqw; border-bottom: 1px solid #F1F2F6; } .playbooks .bdg-fh b { font: 600 3cqw/1 var(--font-body); color: #2C3550; }
.playbooks .bdg-feed ul { list-style: none; margin: 0; padding: 0; }
.playbooks .bdg-row { display: grid; grid-template-columns: 6cqw minmax(0, 1fr) auto; column-gap: 2.2cqw; align-items: center; padding: 1.3cqw 0; transition: opacity .4s, translate .5s var(--ease-out); }
.playbooks .bdg-row + .bdg-row { border-top: 1px solid #F1F2F6; }
.playbooks .bdg-rav { width: 6cqw; height: 6cqw; border-radius: 50%; overflow: hidden; } .playbooks .bdg-rav img { width: 100%; height: 100%; object-fit: cover; }
.playbooks .bdg-rt { display: flex; flex-direction: column; gap: .5cqw; min-width: 0; } .playbooks .bdg-rt b { font: 600 2.8cqw/1.15 var(--font-body); color: #2C3550; } .playbooks .bdg-rt span { font-size: 2.3cqw; color: #6C7597; white-space: nowrap; }
.playbooks .bdg-tag { padding: .9cqw 1.6cqw; border-radius: 1.2cqw; font: 600 2.3cqw/1 var(--font-body); } .playbooks .bdg-tag.is-in { background: #E4FFF0; color: #02847C; } .playbooks .bdg-tag.is-zone { background: #EEF5FD; color: #1563C4; } .playbooks .bdg-tag.is-out { background: #FFF3E8; color: #D34C00; }
.playbooks .mi-bdg.is-run .bdg-row:not(.is-on) { opacity: 0; translate: 0 -1cqw; }

/* list dividers as straight lines, no rounded corners between rows (user, 26 Oct): the timesheet, and the Redeploy list built the same way */
.playbooks .bdm-row { border-radius: 0; }
.playbooks .bdm-row + .bdm-row { box-shadow: none; border-top: 1px solid #F1F2F6; }
/* small tiles (phones): the labels keep a readable size */
@container (max-width: 360px) {
  .playbooks .bdg-ph > b { font-size: 11px; } .playbooks .bdg-mode span { font-size: 8.5px; padding: 3px 6px; } .playbooks .bdg-room > span:first-child { font-size: 8.5px; }
  .playbooks .bdg-fh b { font-size: 10.5px; } .playbooks .bdg-rt b { font-size: 10px; } .playbooks .bdg-rt span, .playbooks .bdg-tag { font-size: 8.5px; }

}

/* css/customers.css */
/* ==========================================================================
   Customers (body.cu-page): sense-customers.html (tools/product/gen_customers.py), copy from customers.md (25 Nov). Sense HR purple, prefix cu-.
   Sections in the doc's order: hero + photo mosaic → logo strip → stats band → five story chapters, with three big quotes, the story cards,
   four groups of Trustpilot reviews (each a different layout), the switches, the logo wall, Share your story, the Meet CTA and the FAQ.
   Borrowed minis come with body.in-page's purple overrides (css/industry.css).
   ========================================================================== */

/* ---------- BIG QUOTES: the ATS overview's typed testimonial, on a soft purple card ---------- */
.playbooks .cu-bigq-sec { padding-block: clamp(36px, 4vw, 56px); }
.playbooks .cu-bigq { display: flex; flex-direction: column; align-items: center; margin: 0; padding: clamp(44px, 6vw, 96px) clamp(24px, 6vw, 120px); border-radius: var(--r-panel); text-align: center;
  background: radial-gradient(60% 80% at 50% 0%, rgba(99, 74, 252, .1), transparent 70%), linear-gradient(180deg, #FAF9FF 0%, #F0EEFF 100%); box-shadow: inset 0 0 0 1px rgba(99, 74, 252, .12); }

.playbooks .cu-bigq blockquote { margin: 0; }
.playbooks .cu-bigq blockquote p { display: grid; max-width: 940px; margin: 0 auto; font: 500 clamp(24px, 2.7vw, 40px)/1.25 var(--font-display); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.playbooks .cu-bigq blockquote p > span { grid-area: 1 / 1; }
.playbooks .cu-tw-full { visibility: hidden; }
.playbooks .cu-tw { --tw-caret: var(--brand); }   /* the caret itself: css/product.css */
.playbooks .cu-bigq figcaption { margin-top: clamp(24px, 3vw, 34px); font-size: 16px; color: var(--text-2); }
.playbooks .cu-bigq figcaption b { font-weight: 600; color: var(--ink); }

/* ---------- CTA, FAQ ---------- */
.playbooks .ami-faq-a a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* css/industry.css */
/* ==========================================================================
   Industries pages (body.in-page): sense-industry-*.html (tools/product/gen_industry_*.py), in the "Shift, site and field teams" menu.
   Their own layout (user, 26 Oct): a Swipix hero (big centred title, an industry graph under it), then each feature section in a different
   layout from across the site. Sense purple is the main accent, as on the HR feature pages (user, 26 Oct); red only marks SOS.
   ========================================================================== */
.playbooks.in-page { --red: #E5484D; --red-d: #CC2F35; --red-soft: #FDECEC; }

/* ---------- animated minis borrowed from the Shift pages (css/minis.css), their export blue turned Sense purple here ---------- */
.playbooks.in-page .mi-sho-h { background: #F1EEFF; color: var(--brand-hover); }
.playbooks.in-page .mi-shd-head { background: #F1EEFF; box-shadow: inset 0 -1px 0 #E9E5FB; } .playbooks.in-page .mi-shd-badge { color: var(--brand); }   /* Verify hours' day (cleaning, user 30 Oct) */
.playbooks.in-page .mi-shd-r > b { white-space: nowrap; }   /* phones: the time stays on one line */
@media (max-width: 520px) { .playbooks.in-page .mi-shd-r { gap: 10px; } .playbooks.in-page .mi-shd-tag { white-space: normal; text-align: right; } }   /* and the longer flags wrap beside it */
.playbooks.in-page .mi-shd-row.is-checking .mi-shd-dot { animation-name: inShdPulse; } @keyframes inShdPulse { from { box-shadow: 0 0 0 0 rgba(99, 74, 252, .45); } to { box-shadow: 0 0 0 9px rgba(99, 74, 252, 0); } }
.playbooks.in-page .mi-shv-row::before { background: rgba(99, 74, 252, .06); }
.playbooks.in-page .lwf-h span { background: #F1EEFF; color: var(--brand-hover); }   /* the fall alert's floor chip */

/* =====================================================================================================
   SECURITY onwards
   ===================================================================================================== */

/* steps cycle with numbers in place of the ticks */
.playbooks.in-page .pd-ta .ta-ic.in-num { font: 600 16px/1 var(--font-body); color: var(--brand); }
.playbooks.in-page .pd-ta li.is-active .ta-ic.in-num { color: #fff; }

/* more minis borrowed from the Shift pages, their export blue turned Sense purple here */
.playbooks.in-page .bdl-trail { stroke: var(--brand); }
.playbooks.in-page .bdl-tag { color: var(--brand-hover); box-shadow: 0 0 0 1px rgba(99, 74, 252, .14); }
.playbooks.in-page .bdl-tech span.is-on { background: var(--brand); color: #fff; }
.playbooks.in-page :is(.bdm-seg.is-a, .bdm-row i.is-a) { background: var(--brand); }
.playbooks.in-page :is(.bdm-seg.is-b, .bdm-row i.is-b) { background: #2E1F96; }
.playbooks.in-page .mi-shr-track i { background: var(--brand); }
.playbooks.in-page .mi-shr-track b { box-shadow: 0 0 0 2px var(--brand), 0 2px 5px rgba(0, 0, 0, .15); }

/* the Sense Badge minis (badge_sos_tile, badge_fingerprint) fill a box sized in container units: give them one (as the Badge page's tiles) */
.playbooks.in-page .in-cq { position: relative; width: 100%; aspect-ratio: 1.45; container-type: size; }
.playbooks.in-page .in-cq > .mi { border: 0 !important; box-shadow: none !important; background: none !important; overflow: visible !important; zoom: 1 !important; }   /* no zoom here: inside the sized box it cropped the task card (user, 29 Oct) */
.playbooks.in-page .in-cq .bd-box { width: min(100cqw, calc(100cqh * 1.45)); }   /* the Badge box fills its wrapper (no 520px cap) */

/* =====================================================================================================
   WAREHOUSE onwards
   ===================================================================================================== */

/* the clock methods (Time and attendance), their export blue turned Sense purple */
.playbooks.in-page .mi-shm { background: #FAF9FF; }
.playbooks.in-page .mi-shm-way, .playbooks.in-page .mi-shm-rec { box-shadow: 0 0 0 1px #ECE9F7; }
.playbooks.in-page .mi-shm-ic { background: #F1EEFF; color: var(--brand); }
.playbooks.in-page .mi-shm-way.is-on { box-shadow: 0 0 0 1.5px #B8ADFF, 0 14px 26px -16px rgba(99, 74, 252, .6); }
.playbooks.in-page .mi-shm-way.is-on .mi-shm-ic { background: var(--brand); color: #fff; }
.playbooks.in-page .mi-shm-way.is-on .mi-shm-ic::after { border-color: var(--brand); }
.playbooks.in-page .mi-shm-wire::before { background-image: linear-gradient(180deg, #D3CBFB 55%, transparent 0); }
.playbooks.in-page .mi-shm-wire i { background: var(--brand); box-shadow: 0 0 10px 2px rgba(99, 74, 252, .55); }
.playbooks.in-page .mi-shm-rec-h { background: #F1EEFF; }
.playbooks.in-page .mi-shm-rec-h b { color: var(--brand-hover); }
.playbooks.in-page .mi-shm-tag { background: #F1EEFF; color: var(--brand-hover); }

/* =====================================================================================================
   CARE onwards
   ===================================================================================================== */

/* the lone worker hero (Lone worker safety): its app tags turned Sense purple here; the Badge's own screen stays blue */
.playbooks.in-page .lwh-row[data-r="e"] .is-a { background: #F1EEFF; color: var(--brand-hover); }
.playbooks.in-page .lwh-row[data-r="j"] .is-b { background: var(--brand); }
.playbooks.in-page .lwh-loc { color: var(--brand-hover); }

/* =====================================================================================================
   CONSTRUCTION onwards
   ===================================================================================================== */

/* care (user, 30 Oct: the site's own animations in place of invented UI): the Sense Badge's room-by-room floor plan and the Gateway's
   floor insights, from the blue Shift pages, in Sense purple */
.playbooks.in-page .mi-bdg .bdg-room { background: #F7F6FC; box-shadow: inset 0 0 0 1px #E9E6F5; }
.playbooks.in-page .mi-bdg:is(.is-room, .is-end) .bdg-room { background: #F4F2FF; box-shadow: inset 0 0 0 1px #DDD6FB; }
.playbooks.in-page .bdg-room.is-here, .playbooks.in-page .mi-bdg.is-end .bdg-room[data-room="stock"] { background: #E9E5FF !important; box-shadow: inset 0 0 0 .4cqw var(--brand) !important; }
.playbooks.in-page .bdg-pin::after { background: var(--brand); }
.playbooks.in-page .bdg-pav { box-shadow: 0 0 0 .6cqw var(--brand), 0 1.4cqw 2cqw -.8cqw rgba(0, 0, 0, .35); }
.playbooks.in-page .bdg-tag.is-zone { background: #F1EEFF; color: var(--brand-hover); }
/* the room-by-room plan is taller than wide (.86, as on the Badge page): its own box, and the spotlight frame grows to hold it */
.playbooks.in-page .in-cq:has(> .mi-bdg) { width: min(100%, 440px); aspect-ratio: .86; margin: 0 auto; }
.playbooks.in-page .in-cq .mi-bdg .bd-box { width: min(100cqw, calc(100cqh * .86)); }
.playbooks.in-page .bdg-mode span.is-on { color: var(--brand-hover); }

/* every animation on a dark backdrop has the steps cycle's corners and glass edge (user, 30 Oct: as "Check for missed clock-outs and late starts"):
   24px corners and an 8px glass border, which the steps cycle zooms 1.14 from 1101px, so the other dark frames step up to 27px and 9px there */
.playbooks.in-page { --in-dr: 24px; --in-dbw: 8px; }
@media (min-width: 1101px) { .playbooks.in-page { --in-dr: 27px; --in-dbw: 9px; } }
.playbooks.in-page .ta-shot .mi:not(.mi-ss, .mi-shg) { border-radius: 24px !important; }

/* css/playbook.css */
/* ==========================================================================
   Free playbooks (body.pbk-page): sense-playbook-<slug>.html, tools/product/gen_playbooks.py. Prefix pbk-.
   On top of the conversion pages (css/convert.css: hero, form, FAQ, the "Get started" CTA), product.css (the stats strip),
   minis.css (the workflow minis) and customers.css (the big quote).
   ========================================================================== */
.playbooks.pbk-page #playbook-form { scroll-margin-top: 96px; }   /* the closing button comes back up to the form, under the fixed nav */

/* ---------- 01 hero: a longer, two-tone headline than the other conversion pages; the doc's points under the intro; trust ticks at the foot ---------- */
.playbooks .pbk-panel h1 { font-size: clamp(32px, 3vw, 46px); line-height: 1.07; text-wrap: balance; }
.playbooks.pbk-page .dm-form-card { justify-content: center; } .playbooks.pbk-page .dm-form-wrap { flex: none; }   /* the copy panel is the taller column: the form sits in the middle of its card, not at the top */
.playbooks .pbk-accent { color: var(--brand-soft); }
.playbooks .pbk-tick { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(184, 173, 255, .16); color: var(--brand-soft); }
.playbooks .pbk-tick svg { width: 13px; height: 13px; }
.playbooks .pbk-learn { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.playbooks .pbk-learn li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; color: #fff; }
.playbooks .pbk-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.playbooks .pbk-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--text-inv-2); }
.playbooks .pbk-trust .pbk-tick { width: 20px; height: 20px; background: rgba(48, 211, 140, .16); color: #5CE0A6; }
.playbooks .pbk-trust .pbk-tick svg { width: 12px; height: 12px; }
.playbooks .pbk-trust.is-light li { color: var(--text-2); }
.playbooks .pbk-trust.is-light .pbk-tick { background: var(--live-bg); color: #0F8A52; }

/* the form: the cover beside its heading (the doc's image slot "top of the form") */
.playbooks .pbk-form-top { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 28px; }
.playbooks .pbk-form-top .dm-form-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
.playbooks .dm-form-card.is-sent .pbk-form-top { grid-template-columns: 150px; }   /* sent: the heading hides (js/convert.js), the cover stays over the thank-you */
.playbooks.pbk-page .dm-form-card.is-sent .dm-success { margin-block: 32px 0; }   /* the thank-you right under the cover, the pair centred in the card */
.playbooks .pbk-cover { position: relative; aspect-ratio: 600 / 848; border-radius: 6px; overflow: hidden; background: #0B0E32;
  box-shadow: 0 0 0 1px rgba(11, 14, 50, .08), 0 18px 32px -16px rgba(33, 18, 140, .45); }
.playbooks .pbk-cover picture, .playbooks .pbk-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.playbooks .pbk-cover.is-form { transform: rotate(-3deg); }

/* ---------- 02 stats band: the home strip, three figures ---------- */
.playbooks .pbk-stats-sec { padding-block: clamp(8px, 2vw, 24px) clamp(40px, 5vw, 72px); }
.playbooks .pd-stats.pbk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; }
.playbooks .pbk-stats .stat-num { align-items: baseline; gap: 10px; }
.playbooks .pbk-upto { font: 500 15px/1 var(--font-body); letter-spacing: 0; color: var(--text-2); }
.playbooks .pbk-stats .stat-lbl { max-width: 250px; line-height: 1.45; }

/* ---------- 03 inside the playbook: three automation cards, a workflow on the guides' dark blurred frame, then the copy ---------- */
.playbooks .pbk-autos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(40px, 4.4vw, 60px); }
.playbooks .pbk-auto { display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-card-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.playbooks .pbk-stage { position: relative; display: grid; place-items: center; min-height: 400px; padding: 28px 16px; border-radius: calc(var(--r-card-lg) - 8px); overflow: hidden;
  background: #0A0916 url("/assets/images/pages/homepage/ta-card-bg.webp") center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* convert.css loads after this file: overrides of its .dm-ph / .dm-card carry both classes.
   the framed-mini treatment (minis.css .pd-stack-visual .mi): 8px glass border, 24px corners */
.playbooks .pbk-stage .mi { border: 8px solid rgba(255, 255, 255, .16); background-clip: padding-box; border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 40px 70px -30px rgba(0, 0, 0, .6); }
.playbooks .pbk-stage .mi-au { width: min(340px, 100%); padding: 20px 18px 32px; }
.playbooks .pbk-auto-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 20px 20px; }
.playbooks .pbk-num { padding: 5px 10px; border-radius: 8px; background: #F0EFFF; color: #4931DC; font: 600 13px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.playbooks .pbk-auto h3 { margin-top: 16px; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.02em; }
.playbooks .pbk-auto p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* ---------- 03b more than three automations: the steps cycle (.pd-ta, css/product.css; as the industry pages' numbered steps, css/industry.css .in-num) ---------- */
.playbooks .pbk-ta .ta-head .pbk-ta-lede { margin-top: 18px; max-width: 520px; color: var(--text-2); font-size: 16.5px; line-height: 1.62; }
.playbooks .pbk-ta .ta-steps { margin-top: 40px; }
.playbooks .pbk-ta .ta-list li { gap: 16px; padding: 12px 0; }
.playbooks .pbk-ta .ta-ic { width: 44px; height: 44px; border-radius: 12px; }
.playbooks .pbk-ta .ta-ic.in-num { font: 600 14px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.playbooks .pbk-ta .pd-ta-h { font: 500 clamp(17px, 1.4vw, 20px)/1.3 var(--font-display); letter-spacing: -0.01em; }
.playbooks .pbk-ta .pd-ta-p { margin-top: 8px; font-size: 15px; }
.playbooks .pbk-ta .ta-txt { padding-top: 11px; }
/* the frame's grid track is the full width, so minis built from absolute parts with % widths (the SOS, the Badge site plan) don't collapse
   to nothing (as the Forms page, css/shift.css .fm-page .pd-ta-frame) */
.playbooks .pbk-ta .ta-shot { grid-template-columns: minmax(0, 1fr); }
.playbooks .pbk-ta .pd-ta-frame { justify-self: stretch; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.playbooks .pbk-ta .ta-list li.is-active .ta-ic { background: var(--brand); color: #fff; }
/* the glass on every animation is the single-panel minis' (.pd-ta .mi, minis.css: 8px see-through rim, a faint white ring, the drop shadow; the
   workflow mini shows it). A mini made of separate cards has no rim round them all; each card gets that same glass (as the lone worker page's
   panels). The cards' own light hairlines go: outside the rim they read as a white outline (user, 27 Nov). */
.playbooks .pbk-ta .ta-frame > .mi { background-clip: padding-box; }   /* industry.css's purple backgrounds (a background shorthand) reset the clip, filling the rim (What to Install on Site) */
.playbooks .pbk-ta :is(.mi-lwc, .mi-lwf, .mi-shy, .mi-ce, .mi-sho) { border: 0 !important; overflow: visible; box-shadow: none !important; background: none !important; }
.playbooks .pbk-ta :is(.lwc-rules, .lwf-card, .lwf-ban, .bdg-plan, .bdg-feed, .mi-shy-card, .mi-shy-ev, .mi-ce-card, .mi-sho-card, .mi-sho-stats) {
  border: 8px solid rgba(255, 255, 255, .16) !important; background-clip: padding-box !important; border-radius: 24px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 40px 70px -30px rgba(0, 0, 0, .6) !important; }   /* the active number on the brand tile (industry.css only turns the number white) */
/* the lone worker session (a blue Shift mini): its button and switches in the brand, as the industry pages recolour the Shift minis */
.playbooks.pbk-page .lws-start { background: var(--brand); box-shadow: 0 12px 24px -12px rgba(99, 74, 252, .7); }
.playbooks.pbk-page .mi-lws li.is-on .lws-sw, .playbooks.pbk-page .mi-lws.is-end .lws-sw { background: var(--brand); }
.playbooks.pbk-page .lwc-rules li b { color: var(--brand-hover); }   /* the check-in rules card; the Badge's own screen keeps its blue (hardware, as on the industry pages) */

/* ---------- 05 who it's for: the contact cards, not links ---------- */
.playbooks .pbk-who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(36px, 4vw, 52px); }
.playbooks .dm-card.pbk-who-card, .playbooks .dm-card.pbk-who-card:hover { transform: none; box-shadow: var(--shadow-sm), 0 28px 48px -30px rgba(49, 30, 160, .3); }
.playbooks .pbk-who-card h3 { margin-top: 28px; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.2; letter-spacing: -0.02em; }
.playbooks .pbk-who-card p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; }

/* ---------- 06 author's note ---------- */
/* the photo as a portrait filling the panel's left side (user, 26 Nov: back to this layout after a small square "looks weird"),
   a little narrower than the first placeholder (380px, which they found "quite big") */
.playbooks .pbk-author { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: clamp(10px, 1.2vw, 16px) clamp(28px, 5vw, 80px) clamp(10px, 1.2vw, 16px) clamp(10px, 1.2vw, 16px); border-radius: var(--r-panel); background: var(--card); box-shadow: var(--shadow-sm); }
.playbooks .pbk-author-photo picture, .playbooks .pbk-author-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 30%; border-radius: calc(var(--r-panel) - 10px); }

.playbooks .pbk-author-copy { display: flex; flex-direction: column; align-items: flex-start; padding-block: 24px; }
.playbooks .pbk-author-copy h2 { margin-top: 18px; font-size: clamp(30px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.playbooks .pbk-author-copy > p { margin-top: 20px; color: var(--text-2); font-size: var(--fs-lede); line-height: 1.6; }
.playbooks .pbk-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.playbooks .pbk-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.4; color: var(--text); }
.playbooks .pbk-points .pbk-tick { background: var(--brand-10); color: var(--brand); }

/* ---------- 07 more free playbooks: link cards ---------- */
.playbooks .pbk-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); max-width: 1040px; margin: clamp(32px, 3.6vw, 44px) auto 0; }
.playbooks .pbk-more-card { display: flex; align-items: center; gap: 18px; padding: 22px 22px 22px 24px; border-radius: var(--r-card); background: var(--card);
  box-shadow: var(--shadow-sm), 0 28px 48px -30px rgba(49, 30, 160, .3); transition: transform .35s var(--ease-out), box-shadow .35s; }
.playbooks .pbk-more-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm), 0 32px 56px -28px rgba(49, 30, 160, .38), inset 0 0 0 1.5px var(--brand); }
.playbooks .pbk-more-ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-10); color: var(--brand); }
.playbooks .pbk-more-ic svg { width: 22px; height: 22px; }
.playbooks .pbk-more-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.playbooks .pbk-more-txt b { font: 500 clamp(18px, 1.4vw, 20px)/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.playbooks .pbk-more-txt span { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.playbooks .pbk-more-go { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-3); transition: background-color .25s, color .25s; }
.playbooks .pbk-more-go svg { width: 16px; height: 16px; }
.playbooks .pbk-more-card:hover .pbk-more-go { background: var(--brand); color: #fff; }

/* ---------- 09 final CTA: the split "Get started" card, the trust ticks under the button, the cover rising from the card's foot ---------- */
.playbooks .pbk-final .pbk-trust { margin-top: 22px; }
.playbooks .pbk-final-cover { display: flex; justify-content: center; align-self: end; padding-top: clamp(40px, 5vw, 64px); }
.playbooks .pbk-cover.is-final { width: min(300px, 78%); margin-bottom: -44px; transform: rotate(-4deg); box-shadow: 0 0 0 1px #ECEBFA, 0 40px 60px -24px rgba(33, 18, 140, .45); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .playbooks .pbk-autos { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .playbooks .pbk-who-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}
@media (max-width: 900px) {
  .playbooks .pbk-author { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 10px 10px 8px; }
  .playbooks .pbk-author-photo { width: min(320px, 100%); }
  .playbooks .pbk-author-copy { padding: 0 18px 24px; }
  .playbooks .pbk-more-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}
@media (max-width: 767px) {
  .playbooks .pd-stats.pbk-stats { grid-template-columns: minmax(0, 1fr); }
  .playbooks .pd-stats.pbk-stats .stat { border-left: 0; border-top: 1px dashed var(--line-dash); }   /* one column: a divider between the figures, none at the side (beats product.css's 2×2 rules) */
  .playbooks .pd-stats.pbk-stats .stat:first-child { border-top: 0; }
  .playbooks .pbk-form-top { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
  .playbooks .pbk-form-top .dm-form-badge { white-space: normal; }
  .playbooks .pbk-stage { min-height: 0; padding: 24px 12px; }
  .playbooks .pbk-more-card { align-items: flex-start; padding: 20px; }
  .playbooks .pbk-more-go { display: none; }
  .playbooks .pbk-author-photo { width: 100%; } .playbooks .pbk-author-photo :is(picture, img) { aspect-ratio: 4 / 3; }   /* phones: a landscape crop across the panel, not a screen-tall portrait */
  .playbooks .pbk-cover.is-final { width: min(220px, 62%); }
}

/* css/convert.css */
/* ==========================================================================
   Conversion pages (body.dm-page) — Book a demo (sense-book-demo.html, gen_book_demo.py), Start trial (sense-start-trial.html, gen_trial.py), Contact (sense-contact.html, gen_contact.py, its own bits in css/contact.css);
   shared markup in tools/product/convert.py
   01 hero: the live trial page's layout (dark copy panel on ring.webp + form card) and its field styling, in our tokens
   02 Book a demo only — "Want an in-person demo?": dotted Europe map, UK HQ pinned, Romania lit but unlabelled + contact cards
   03 CTA: Core HR's "Get started" card (.ami-meet, css/agents.css), one button
   04 FAQ: shared .ami-faq (css/agents.css)
   Start trial's stacking cards are the shared .pd-stack (css/product.css) with minis (css/minis.css).
   ========================================================================== */
.playbooks {
  --dm-sunken: #F4F4FA;
  --dm-error: #C53030;
  --dm-error-bg: #FDECEC;
  --dm-dot: #C9C6DC;
}
.playbooks [hidden] { display: none !important; }   /* .dm-form / .dm-form-heading set display: flex, which would beat the attribute */

/* ---------- 01 HERO ---------- */
.playbooks .dm-hero { padding: calc(var(--frame-inset) + 104px) 0 clamp(64px, 7vw, 104px); }
.playbooks .dm-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 1.8vw, 24px); align-items: stretch; }

/* dark copy panel — trial's .tr-panel-dark, navy to match ring.webp */
.playbooks .dm-panel { --pad-x: clamp(28px, 4vw, 56px); position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; border-radius: var(--r-card-lg);
  padding: clamp(40px, 4.4vw, 64px) var(--pad-x); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; background: #0B0E32; }
.playbooks .dm-panel-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 560px; }
/* ring.webp hangs off the bottom of the copy, so its glowing band always sits just under the headline + intro, whatever the line count.
   130% of the panel width, centred on the panel (100cqw = panel content width); top and bottom edges faded into the navy. */
.playbooks .dm-ring { position: absolute; z-index: -1; top: 100%; pointer-events: none;
  left: calc(-1 * var(--pad-x) - .15 * (100cqw + 2 * var(--pad-x))); width: calc(1.3 * (100cqw + 2 * var(--pad-x))); aspect-ratio: 16 / 9; transform: translateY(-62%);
  background: url("/assets/images/pages/trial/ring.webp") 50% 50% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 82%, transparent 100%); }
.playbooks .dm-panel h1 { color: #fff; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.04em; }
.playbooks .dm-lede { margin-top: 22px; max-width: 520px; color: rgba(255, 255, 255, .85); font-size: var(--fs-lede); line-height: 1.62; }   /* a touch brighter than --text-inv-2: it sits on the ring's glow */

/* form card — trial's .tr-form-panel on a white card (our page is off-white, so the sunken fields need a white surface) */
.playbooks .dm-form-card { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--r-card-lg); background: var(--card); box-shadow: var(--shadow-sm); }
.playbooks .dm-form-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.playbooks .dm-form-heading h2 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.15; letter-spacing: -0.03em; }
.playbooks .dm-form-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--live-bg); color: #096931; font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.playbooks .dm-form-badge svg { width: 15px; height: 15px; flex-shrink: 0; }

.playbooks .dm-alert { display: none; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--dm-error-bg); color: #8A2323; box-shadow: inset 0 0 0 1px rgba(197, 48, 48, .25); font-size: 13.5px; line-height: 1.5; }
.playbooks .dm-alert.show { display: flex; }
.playbooks .dm-alert svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }

.playbooks .dm-form { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.playbooks .dm-field { min-width: 0; }
.playbooks .dm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.playbooks .dm-field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
.playbooks .dm-input, .playbooks .dm-select { display: block; width: 100%; margin: 0; padding: 12px 14px; border: 1.5px solid transparent; border-radius: 12px; background: var(--dm-sunken);
  font: 400 14.5px/1.4 var(--font-body); color: var(--text); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.playbooks .dm-input::placeholder { color: var(--text-3); }
.playbooks .dm-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><path d='M15.8337 6.66669L10.0003 12.5L4.16699 6.66669' stroke='%2354536B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; }
.playbooks .dm-select.is-empty { color: var(--text-3); }
.playbooks .dm-select option { color: var(--text); }
.playbooks .dm-input:hover, .playbooks .dm-select:hover { border-color: var(--line-strong); }
.playbooks .dm-input:focus, .playbooks .dm-select:focus { outline: none; border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 3px rgba(99, 74, 252, .14); }
.playbooks .dm-field.invalid .dm-input, .playbooks .dm-field.invalid .dm-select { border-color: var(--dm-error); background-color: #fff; }
.playbooks .dm-field-error { display: none; margin-top: 6px; font-size: 12.5px; color: var(--dm-error); }
.playbooks .dm-field.invalid .dm-field-error { display: block; }

.playbooks .dm-submit-group { margin-top: 4px; }
.playbooks .dm-submit { width: 100%; }
.playbooks .dm-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.playbooks .dm-spinner { display: none; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: dmSpin .7s linear infinite; }
.playbooks .dm-submit.is-loading .dm-spinner { display: inline-block; }
@keyframes dmSpin { to { transform: rotate(360deg); } }
.playbooks .dm-submit-caption { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.playbooks .dm-submit-caption a { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; }   /* Contact: the privacy policy link */

.playbooks .dm-form-wrap { flex: 1; display: flex; flex-direction: column; }
.playbooks .dm-success { margin-block: auto; padding: 8px 0; }
.playbooks .dm-success:focus { outline: none; }
.playbooks .dm-success-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #CEF9DE; color: #0F8A52; }
.playbooks .dm-success-ic svg { width: 26px; height: 26px; }
.playbooks .dm-success h2 { margin-top: 24px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.03em; }
.playbooks .dm-success p { margin-top: 14px; max-width: 460px; color: var(--text-2); }

@media (max-width: 1024px) {
  .playbooks .dm-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .playbooks .dm-panel { gap: 40px; }
}
@media (max-width: 767px) {
  .playbooks .dm-hero { padding-top: calc(var(--frame-inset) + 88px); }
  .playbooks .dm-field-row { grid-template-columns: minmax(0, 1fr); }
  .playbooks .dm-panel { padding: 36px 24px 28px; }
  .playbooks .dm-form-card { padding: 28px 20px; }
}

/* contact cards: float up over the faded bottom edge of the map */
.playbooks .dm-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 24px 24px 26px; border-radius: var(--r-card); background: var(--card);
  box-shadow: var(--shadow-sm), 0 28px 48px -30px rgba(49, 30, 160, .3); transition: transform .35s var(--ease-out), box-shadow .35s; }
.playbooks .dm-card:hover, .playbooks .dm-card.is-active { transform: translateY(-4px); box-shadow: var(--shadow-sm), 0 32px 56px -28px rgba(49, 30, 160, .38), inset 0 0 0 1.5px var(--brand); }
.playbooks .dm-card-ic { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-10); color: var(--brand); }
.playbooks .dm-card-ic svg { width: 20px; height: 20px; }
.playbooks .dm-card p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--text-2); }

/* ---------- 03 CTA — Core HR's "Get started" card; the second half of the heading picks up the brand colour ---------- */
.playbooks .dm-cta { padding-top: calc(var(--section-y) * .4); }   /* follows the map section's own bottom padding */
.playbooks .dm-cta .ami-meet-copy h2 span { color: var(--brand); }
.playbooks .dm-meet-cta { justify-content: center; margin-top: 28px; }
/* split CTA (Start trial): title + paragraph + button on the left, the badge on the right, rising from the card's bottom edge */
.playbooks .dm-cta.is-split .ami-meet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; column-gap: clamp(24px, 4vw, 64px);
  padding: 0 clamp(32px, 5vw, 80px); text-align: left; }
.playbooks .dm-cta.is-split .ami-meet-copy { align-self: center; max-width: 560px; margin: 0; padding-block: clamp(56px, 6vw, 88px); }
.playbooks .dm-cta.is-split .ami-meet-copy p { margin-left: 0; }
.playbooks .dm-cta.is-split .dm-meet-cta { justify-content: flex-start; }
@media (max-width: 860px) {   /* stacked: copy, then the badge */
  .playbooks .dm-cta.is-split .ami-meet { grid-template-columns: minmax(0, 1fr); padding: 0 var(--gutter); }
  .playbooks .dm-cta.is-split .ami-meet-copy { padding: clamp(48px, 9vw, 64px) 8px 0; }
}

/* ---------- 04 FAQ ---------- */
.playbooks .ami-faq-a p + p { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .playbooks .dm-spinner { animation: none; }
}

/* ===== KIT OPTIONS (design-port) */
/* Without JS, or when the page script failed to run (the guard after it removes .js), every stepper step shows its paragraph. */
html:not(.js) .playbooks .pd-ta .pd-ta-more { grid-template-rows: 1fr; }
/* and every step's screen shows, one under another, not only the first. */
html:not(.js) .playbooks .pd-ta .ta-frame { grid-area: auto; opacity: 1; transform: none; }
html:not(.js) .playbooks .pd-ta .ta-shot { gap: 24px; }
/* a stepper mock-up never runs past its frame */
.playbooks .pd-ta .mi { max-width: 100%; }

/* industry.css (only the Lone worker and FM exports carry it) is scoped to main.playbooks.in-page, which outranks the later
   playbook.css rule for the numbered steps; in the export they tie and playbook.css wins: restore its numerals. */
.playbooks.in-page .pbk-ta .ta-ic.in-num { font: 600 14px/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* The closing card is light lavender with purple stripes: the brand ring measures 2.9:1 at the button's foot (focus-ring
   check), so the button takes the darker brand purple there. */
.playbooks .pbk-final .btn:focus-visible { outline-color: var(--brand-hover); }
