/* Live feature demos in the module template's feature explorer (first used on A365 Dealer Portal,
   27 Nov 2026). Built from the product team's interactive concepts, restyled with the design tokens.
   - Phones: the demo shows at full size with no zoom, so its text stays readable.
   - Wider frames (480px and up, .is-camera): a fixed 6:5 frame, and a camera that zooms in on each step.
   Sizes inside a demo's screens are in em, relative to the demo's base size (--fs-small). */

/* ---------- Frame in the explorer ---------- */
.an-feat__media--demo { padding: 0; overflow: hidden; }
@media (min-width: 1024px) { .an-feat__media--demo { padding: 0; } }
/* Under the demo: how to use it, and the play / pause / replay button, which never covers the demo */
.an-feat__foot { display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-3) var(--sp-3) var(--sp-5); }
:root .an-feat__media--demo .an-feat__control { position: static; flex: none; margin-left: auto; }
.an-feat__hint { flex: 1; min-width: 0; color: var(--text-muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.an-feat__hint .an-demo__hint-touch { display: none; }
@media (hover: none) {
  .an-feat__hint .an-demo__hint-mouse { display: none; }
  .an-feat__hint .an-demo__hint-touch { display: inline; }
}

/* ---------- Demo frame and camera ---------- */
.an-demo { --dm-pad: var(--sp-4); --dm-ratio: 6 / 5; position: relative; color: var(--text); font-family: var(--font-sans); font-size: var(--fs-small); line-height: var(--lh-small); text-align: left; -webkit-font-smoothing: antialiased; }
.an-demo *, .an-demo *::before, .an-demo *::after { box-sizing: border-box; }
.an-demo.is-instant, .an-demo.is-instant * { transition: none !important; }
.an-demo .an-demo__viewport { position: relative; overflow: hidden; transition: background-color 0.6s; }
.an-demo .an-demo__canvas { position: relative; margin: var(--dm-pad); container: dm / inline-size; }
.an-demo.is-camera { --dm-pad: var(--sp-5); }
.an-demo.is-camera .an-demo__viewport { aspect-ratio: var(--dm-ratio); }
.an-demo.is-camera .an-demo__canvas { position: absolute; top: 0; left: 0; width: max(calc(100% - 2 * var(--dm-pad)), 45rem); margin: 0; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.an-demo.is-camera.is-explore .an-demo__viewport { overflow-y: auto; overscroll-behavior: contain; }
/* Product screens run past the frame's foot: fade them out there, like a window that scrolls */
.an-demo--app.is-camera .an-demo__viewport { -webkit-mask-image: linear-gradient(to bottom, var(--a-black) calc(100% - var(--sp-7)), transparent); mask-image: linear-gradient(to bottom, var(--a-black) calc(100% - var(--sp-7)), transparent); }
.an-demo.is-focus .an-demo__viewport { background: var(--hairline); }
/* Phones: the demo at full size in a frame of its own height cap; it scrolls inside, the story scrolls to
   each step's panel, and a fade at the foot shows there is more below */
.an-demo:not(.is-camera) .an-demo__viewport { max-height: 36rem; overflow-y: auto; scrollbar-width: thin; }
.an-demo:not(.is-camera).is-more .an-demo__viewport { -webkit-mask-image: linear-gradient(to bottom, var(--a-black) calc(100% - var(--sp-7)), transparent); mask-image: linear-gradient(to bottom, var(--a-black) calc(100% - var(--sp-7)), transparent); }

/* Keep the theme's base styles off the demo's screens */
:root .an-demo :where(p, ul, li, dl, dt, dd, table, thead, tbody, tr, th, td) { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; text-transform: none; }
:root .an-demo :where(li) { list-style: none; }
:root .an-demo :where(svg) { display: block; max-width: none; }
:root .an-demo :where(table) { width: auto; border-collapse: collapse; border-spacing: 0; }
:root .an-demo :where(button) { min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; text-align: inherit; text-decoration: none; text-transform: none; box-shadow: none; white-space: normal; -webkit-appearance: none; appearance: none; cursor: pointer; transition: none; }
:root .an-demo :where(input) { margin: 0; box-shadow: none; font: inherit; line-height: normal; letter-spacing: normal; -webkit-appearance: none; appearance: none; }
:root .an-demo :where(button):focus { outline: none; }
:root .an-demo :where(button, [tabindex]):focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-offset); }

@media (prefers-reduced-motion: reduce) {
  .an-demo *, .an-demo *::before, .an-demo *::after { transition: none !important; animation: none !important; }
}

/* ---------- Product screens (collaboration, sales, claims) ---------- */
.an-demo .dm-app { position: relative; overflow: hidden; border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-2); transition: background-color 0.6s; }
.an-demo.is-focus .dm-app { background: var(--hairline); }
.an-demo .dm-nav { display: flex; align-items: stretch; gap: var(--sp-5); height: 4.4em; padding: 0 var(--sp-6); border-bottom: 1px solid var(--hairline); color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-demo .dm-nav > * { display: flex; align-items: center; }
.an-demo .dm-logo { margin-right: var(--sp-3); color: var(--text); font-size: 1.45em; font-weight: var(--fw-bold); letter-spacing: var(--ls-h2); }
.an-demo .dm-logo b { position: relative; padding-right: 0.43em; font-weight: inherit; line-height: 1; }
.an-demo .dm-logo b::after { content: ""; position: absolute; right: 0; bottom: -0.2em; width: 0.33em; height: 0.33em; border-right: 0.14em solid var(--accent); border-bottom: 0.14em solid var(--accent); }
.an-demo .dm-nav .on { color: var(--text); box-shadow: inset 0 calc(-1 * var(--focus-width)) var(--accent); }
.an-demo .dm-user { margin-left: auto; color: var(--text); }
.an-demo .dm-tab { display: flex; align-items: center; color: inherit; }
.an-demo .dm-tab:hover { color: var(--text); }
.an-demo .dm-tab:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
.an-demo .dm-pages { display: grid; }
.an-demo .dm-page { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; padding: var(--sp-5) var(--sp-6); transition: opacity 0.35s 0.25s; }
.an-demo .dm-page[aria-hidden="true"] { opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s; }
.an-demo .dm-h { font-size: 1.85em; font-weight: var(--fw-bold); letter-spacing: var(--ls-h2); line-height: var(--lh-h3); }
.an-demo .dm-listhead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.an-demo .dm-listhead .dm-h { margin-right: auto; }
.an-demo .dm-search { width: 16em; max-width: 100%; height: var(--btn-h-md); padding: 0 var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); background: var(--surface); color: var(--text); font-size: var(--fs-body); }
.an-demo .dm-search:focus { border-color: transparent; outline: var(--focus-width) solid var(--focus-ring); outline-offset: 0; box-shadow: none; }
.an-demo .dm-btn { display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h-md); padding: 0 var(--sp-4); border: 1px solid var(--surface-inverse); border-radius: calc(var(--r-16) / 2); background: var(--surface-inverse); color: var(--text-on-dark); font-weight: var(--fw-bold); white-space: nowrap; transition: opacity var(--dur-2), transform var(--dur-1); }
.an-demo .dm-btn.ghost { background: var(--surface); color: var(--text); }
.an-demo .dm-btn.text { padding: 0 var(--sp-2); border-color: transparent; background: transparent; color: var(--text); }
.an-demo .dm-btn[disabled] { opacity: 0.35; cursor: default; }
.an-demo .dm-btn.is-press { transform: scale(0.96); }
.an-demo .dm-tw { position: relative; margin-top: var(--sp-5); }
.an-demo .dm-tw--tight { margin-top: var(--sp-4); }
.an-demo .dm-tw--flush { margin-top: var(--sp-1); }
.an-demo .dm-t { position: relative; z-index: 1; width: 100%; }
.an-demo .dm-t th { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--hairline); color: var(--text-muted); font-size: 0.9em; font-weight: var(--fw-semibold); line-height: 1.25; text-align: left; vertical-align: bottom; transition: opacity 0.4s; }
.an-demo .dm-t td { padding: var(--sp-3); border-bottom: 1px solid var(--hairline); white-space: nowrap; vertical-align: middle; transition: opacity 0.4s; }
.an-demo .dm-t td.id { font-weight: var(--fw-bold); }
.an-demo .dm-t td.mute { color: var(--text-muted); }
.an-demo .dm-row { outline: none; transition: background-color 0.2s, opacity 0.4s calc(var(--i, 0) * 70ms); }
.an-demo .dm-row.is-link { cursor: pointer; }
.an-demo .dm-row:hover, .an-demo .dm-row.is-hover { background: var(--surface-muted); }
.an-demo .dm-row:focus-visible { box-shadow: inset 0 0 0 var(--focus-width) var(--focus-ring); }
.an-demo .dm-row.is-press, .an-demo .dm-row.is-new { background: var(--action-subtle); }
.an-demo .dm-page.is-empty .dm-row { opacity: 0; }
.an-demo .dm-none td { padding: var(--sp-5) var(--sp-3); color: var(--text-muted); text-align: center; }
.an-demo .dm-badge { display: inline-block; padding: 0.2em 0.7em; border-radius: var(--r-full); background: color-mix(in srgb, var(--hairline) 55%, var(--surface)); font-size: 0.9em; font-weight: var(--fw-bold); transition: background-color 0.3s, transform 0.3s; }
.an-demo .dm-val { display: inline-block; margin: -0.15em -0.55em; padding: 0.15em 0.55em; border-radius: calc(var(--r-16) / 3); font-weight: var(--fw-bold); transition: background-color 0.3s, transform 0.3s; }
.an-demo .dm-badge.is-flash, .an-demo .dm-val.is-flash { background: var(--action-subtle); transform: scale(1.06); }
.an-demo .dm-pager { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-5); color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-demo .dm-pager .on { display: grid; place-items: center; width: 2.15em; height: 2.15em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); }
/* The spotlight: a white card behind one column while the rest of the screen dims */
.an-demo .dm-spot { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: calc(var(--r-16) * 0.75); background: var(--surface); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.an-demo.is-focus .dm-spot.is-on { opacity: 1; }
.an-demo.is-focus .dm-t td, .an-demo.is-focus .dm-t th { opacity: 0.5; }
.an-demo.is-focus .dm-tw.is-lit .st { opacity: 1; }
.an-demo.is-focus .dm-row:hover { background: transparent; }
/* The demo's own pointer */
.an-demo .dm-cursor { position: absolute; top: 0; left: 0; z-index: 5; opacity: 0; pointer-events: none; transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s; }
.an-demo .dm-cursor.is-on { opacity: 1; }
.an-demo .dm-cursor svg { width: 1.6em; height: 1.6em; filter: drop-shadow(var(--shadow-1)); transition: transform 0.15s; }
.an-demo .dm-cursor path { fill: var(--text); stroke: var(--surface); stroke-width: 1.4; stroke-linejoin: round; }
.an-demo .dm-cursor.is-click svg { transform: scale(0.82); }
.an-demo .dm-cursor::before { content: ""; position: absolute; top: -1em; left: -1em; width: 2em; height: 2em; border: var(--focus-width) solid var(--accent); border-radius: var(--r-full); opacity: 0; }
.an-demo .dm-cursor.is-click::before { animation: dm-ripple 0.6s ease-out; }
@keyframes dm-ripple { from { opacity: 0.9; transform: scale(0.3); } to { opacity: 0; transform: scale(1.6); } }

/* Columns appear as the screen gets wider, as in the portal itself */
@container dm (width < 68.75rem) { .an-demo .c-wide { display: none; } }
@container dm (width < 37.5rem) {
  .an-demo .c-mid, .an-demo .dm-user, .an-demo .dm-export { display: none; }
  .an-demo .dm-nav { gap: var(--sp-4); padding: 0 var(--sp-4); }
  .an-demo .dm-page { padding: var(--sp-5) var(--sp-4) var(--sp-4); }
  .an-demo .dm-search { flex: 1; width: auto; }
  .an-demo .dm-t { font-size: 0.93em; }
  .an-demo .dm-t th, .an-demo .dm-t td { padding: var(--sp-3) var(--sp-2); }
  .an-demo .dm-t td.id, .an-demo .dm-t td.wrap { white-space: normal; }
  .an-demo .dm-t td.id { min-width: 6.2em; }
  /* Phones: the first rows of a long list or form, so the demo stays a sensible height */
  .an-demo .dm-row:nth-child(n+6), .an-demo .sa-opt:nth-child(n+7), .an-demo .cl-line:nth-child(n+5), .an-demo .cl-fields > :nth-child(n+5) { display: none; }
}

/* ---------- Claims ---------- */
.an-demo .cl-crumb { display: flex; align-items: center; gap: var(--sp-2); margin: calc(-1 * var(--sp-1)) 0 var(--sp-3); color: var(--text-muted); }
.an-demo .cl-back { color: var(--text); font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 0.2em; }
.an-demo .cl-sec { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-5); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--hairline); font-size: 0.9em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .cl-sec svg { width: 0.95em; height: 0.95em; fill: none; stroke: var(--text-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .cl-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-5); margin: var(--sp-4) 0 var(--sp-1); }
.an-demo .cl-fields dt { color: var(--text-muted); font-size: 0.86em; }
.an-demo .cl-fields dd { margin-top: 0.15em; transition: opacity 0.4s calc(var(--i, 0) * 60ms), transform 0.4s calc(var(--i, 0) * 60ms); }
.an-demo .cl-detail.is-empty .cl-fields dd { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .cl-line { transition: opacity 0.4s calc(0.5s + var(--i, 0) * 80ms); }
.an-demo .cl-detail.is-empty .cl-line { opacity: 0; }
@container dm (width < 37.5rem) { .an-demo .cl-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sales ---------- */
.an-demo .sa-wiz { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: var(--sp-1); padding: var(--sp-1); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-demo .sa-wiz span { padding: 0.5em 1em; border-radius: calc(var(--r-16) / 2); white-space: nowrap; }
.an-demo .sa-wiz .on { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sa-pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.an-demo .sa-pagehead .dm-h { margin-right: auto; }
.an-demo .sa-addwrap { margin-top: var(--sp-4); }
.an-demo .sa-sec { margin: var(--sp-5) 0 var(--sp-1); font-weight: var(--fw-bold); }
.an-demo .sa-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-5); }
.an-demo .sa-modal { position: absolute; inset: 0; z-index: 4; display: flex; justify-content: center; align-items: center; padding: var(--sp-6); background: color-mix(in srgb, var(--a-grey) 42%, transparent); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.an-demo .sa-modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }
.an-demo .sa-dialog { width: 100%; padding: var(--sp-5); border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-2); transform: translateY(var(--sp-3)) scale(0.98); transition: transform 0.4s var(--ease), background-color 0.6s; }
.an-demo .sa-modal.is-open .sa-dialog { transform: none; }
.an-demo.is-focus .sa-dialog { background: color-mix(in srgb, var(--hairline) 60%, var(--surface)); }
.an-demo .sa-dialog .dm-h { font-size: 1.7em; }
.an-demo .sa-dlg-foot { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-5); }
.an-demo .sa-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-1); }
.an-demo .sa-label { display: block; margin-bottom: var(--sp-1); color: var(--text-muted); font-size: 0.9em; }
.an-demo .sa-field { display: flex; align-items: center; height: var(--btn-h-md); padding: 0 var(--sp-3); overflow: hidden; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); white-space: nowrap; }
.an-demo .sa-results.is-empty .sa-opt { opacity: 0; }
.an-demo .sa-opt { outline: none; cursor: pointer; transition: background-color 0.2s, opacity 0.4s calc(var(--i, 0) * 60ms); }
.an-demo .sa-opt:hover, .an-demo .sa-opt.is-hover { background: var(--surface-muted); }
.an-demo .sa-opt:focus-visible { box-shadow: inset 0 0 0 var(--focus-width) var(--focus-ring); }
.an-demo .sa-opt[aria-selected="true"] { background: var(--action-subtle); }
.an-demo .sa-hintrow td { padding: var(--sp-5) var(--sp-3); color: var(--text-muted); text-align: center; }
.an-demo .sa-results:not(.is-empty) .sa-hintrow { display: none; }
@container dm (width >= 56.25rem) { .an-demo .sa-filters { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; } }
@container dm (width < 37.5rem) {
  .an-demo .sa-wiz span { padding: 0.4em 0.7em; }
  .an-demo .sa-modal { padding: var(--sp-5) var(--sp-3); }
  .an-demo .sa-dialog { padding: var(--sp-4); }
  .an-demo .sa-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Network diagram ---------- */
.an-demo .nw-board { position: relative; padding: var(--sp-5) var(--sp-4); border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-2); transition: background-color 0.6s; }
.an-demo.is-focus .nw-board { background: var(--hairline); }
.an-demo .nw-net { --mode: narrow; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "imp" "gap" "portal" "parts"; grid-template-rows: auto var(--sp-9) auto auto; }
.an-demo .nw-imp { grid-area: imp; }
.an-demo .nw-pw { grid-area: portal; }
.an-demo .nw-parts { grid-area: parts; display: grid; gap: var(--sp-3); margin-top: var(--sp-7); padding-left: var(--sp-6); }
.an-demo .nw-node { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-1) var(--sp-4); padding: var(--sp-4); border: 1px solid var(--hairline); border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-1); outline: none; cursor: zoom-in; transition: opacity 0.5s, transform 0.6s var(--ease), box-shadow 0.4s; }
.an-demo .nw-node svg { grid-row: 1 / 3; width: 1.7em; height: 1.7em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .nw-node-t { font-size: 1.2em; font-weight: var(--fw-bold); line-height: var(--lh-h3); }
.an-demo .nw-node-d { color: var(--text-muted); }
.an-demo .nw-node.is-zoomed { cursor: zoom-out; }
.an-demo .nw-node.is-hl { box-shadow: 0 0 0 var(--focus-width) var(--accent), var(--shadow-1); }
.an-demo .nw-node:focus-visible { outline: none; box-shadow: 0 0 0 var(--focus-width) var(--focus-ring); }
.an-demo .nw-node.is-off { opacity: 0; transform: translateY(var(--sp-2)); }
.an-demo .nw-parts .nw-node.is-off { transform: translateX(var(--sp-4)); }
.an-demo.is-focus .nw-node:not(.is-on) { opacity: 0.35; }
.an-demo.is-focus .nw-node.is-on { box-shadow: 0 0 0 var(--sp-2) color-mix(in srgb, var(--surface) 75%, transparent), var(--shadow-2); }
.an-demo .nw-portal { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--sp-1); padding: var(--sp-6) var(--sp-5); border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-on-dark); text-align: center; }
.an-demo .nw-portal svg { grid-row: auto; width: 3em; height: 3em; margin-bottom: var(--sp-2); stroke-width: 1.4; }
.an-demo .nw-portal .nw-node-t { font-size: 1.6em; }
.an-demo .nw-portal .nw-node-d { max-width: 21em; color: color-mix(in srgb, var(--text-on-dark) 85%, transparent); }
.an-demo .nw-portal.is-hl { box-shadow: 0 0 0 calc(var(--focus-width) * 1.5) var(--accent); }
.an-demo .nw-portal.is-pulse { animation: nw-glow 1.4s ease; }
@keyframes nw-glow { 40% { box-shadow: 0 0 0 var(--sp-3) color-mix(in srgb, var(--accent) 25%, transparent); } }
.an-demo .nw-live { margin-top: var(--sp-3); color: var(--text-muted); text-align: center; transition: opacity 0.5s; }
.an-demo .nw-live.is-off { opacity: 0; }
.an-demo .nw-wires { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.an-demo .nw-wire { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s ease, stroke 0.3s; }
.an-demo .nw-arrow { fill: var(--border); opacity: 0; transition: opacity 0.3s 0.6s, fill 0.3s; }
.an-demo .nw-dot { fill: var(--accent); opacity: 0; transition: opacity 0.4s 0.6s; }
.an-demo .nw-dot.is-back { fill: var(--text); }
.an-demo .nw-wg { transition: opacity 0.5s; }
.an-demo .nw-wg.is-drawn .nw-wire { stroke-dashoffset: 0; }
.an-demo .nw-wg.is-drawn .nw-arrow, .an-demo .nw-wg.is-drawn .nw-dot { opacity: 1; }
.an-demo .nw-wg.is-hot .nw-wire { stroke: var(--accent); }
.an-demo .nw-wg.is-hot .nw-arrow { fill: var(--accent); }
.an-demo.is-focus .nw-wg:not(.is-on), .an-demo.is-focus .nw-flow:not(.is-on) { opacity: 0.2; }
.an-demo .nw-flow { position: absolute; top: 0; left: 0; width: max-content; max-width: 7.5em; color: var(--text-muted); font-size: 0.9em; line-height: 1.3; opacity: 0; transition: opacity 0.4s 0.3s; }
.an-demo .nw-flow[data-flow="out"] { text-align: right; }
.an-demo .nw-flow.is-drawn { opacity: 1; }
.an-demo .nw-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--hairline); }
.an-demo .nw-foot-t { margin-right: var(--sp-3); font-weight: var(--fw-bold); transition: opacity 0.4s; }
.an-demo .nw-ind { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full); background: var(--surface-muted); font-weight: var(--fw-bold); transition: opacity 0.45s calc(var(--i, 0) * 120ms), transform 0.45s calc(var(--i, 0) * 120ms); }
.an-demo .nw-ind svg { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .nw-foot.is-off .nw-ind { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .nw-foot.is-off .nw-foot-t { opacity: 0; }
:root .an-demo .nw-overview, :root .an-demo .nw-overview:is(:hover, :focus, :active) { position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 3; padding: var(--sp-2) var(--sp-4); border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-weight: var(--fw-semibold); box-shadow: var(--shadow-1); }
:root .an-demo .nw-overview[hidden] { display: none; }
@container dm (width >= 37.5rem) {
  .an-demo .nw-board { padding: var(--sp-6) var(--sp-6) var(--sp-5); }
  .an-demo .nw-net { --mode: mid; grid-template-columns: minmax(0, 1fr) minmax(9em, 0.8fr) minmax(0, 1.3fr); grid-template-areas: "imp gap portal" "parts parts parts"; grid-template-rows: auto auto; align-items: center; }
  .an-demo .nw-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--sp-9); padding-left: 0; }
  .an-demo .nw-pw { position: relative; }
  .an-demo .nw-live { position: absolute; top: 100%; right: 0; left: 0; }
  .an-demo .nw-flow { max-width: none; white-space: nowrap; }
}
@container dm (width >= 56.25rem) {
  .an-demo .nw-net { --mode: wide; grid-template-columns: minmax(0, 1fr) minmax(9em, 0.72fr) minmax(0, 1.3fr) minmax(4em, 0.42fr) minmax(0, 1.3fr); grid-template-areas: "imp gap portal gap2 parts"; grid-template-rows: auto; }
  .an-demo .nw-parts { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); margin-top: 0; }
}

/* ---------- Mobile app ---------- */
.an-demo .mo-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--sp-5); padding: var(--sp-5) var(--sp-4) var(--sp-6); border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-2); }
.an-demo .mo-scenes { display: grid; width: 100%; min-width: 0; }
.an-demo .mo-scene { grid-area: 1 / 1; align-self: center; min-width: 0; transition: opacity 0.45s 0.3s, transform 0.6s 0.3s var(--ease); }
.an-demo .mo-scene[aria-hidden="true"] { opacity: 0; visibility: hidden; transform: translateY(var(--sp-2)); transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s; }
.an-demo .mo-eyebrow { margin-bottom: var(--sp-2); color: var(--eyebrow); font-size: 0.9em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .mo-st { margin-bottom: var(--sp-4); font-size: 1.9em; font-weight: var(--fw-bold); letter-spacing: var(--ls-h2); line-height: var(--lh-h2); }
.an-demo .mo-art { width: 100%; max-width: 28em; height: auto; margin: 0 auto; overflow: visible; }
.an-demo .mo-art .bg { fill: none; stroke: var(--hairline); stroke-width: 5; }
.an-demo .mo-art .soft { fill: none; stroke: var(--hairline); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .mo-art .ln { fill: none; stroke: var(--text); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .mo-art .fill { fill: var(--surface); }
.an-demo .mo-art .rd { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .mo-art .rd.fill { fill: var(--surface); }
.an-demo .mo-art .rdf { fill: var(--accent); }
.an-demo .mo-art .pulse { transform-box: fill-box; transform-origin: center bottom; animation: mo-pulse 2.4s ease-in-out infinite; }
@keyframes mo-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.an-demo.is-still .mo-art .pulse, .an-demo.is-still .mo-signal path, .an-demo.is-still .mo-lines path { animation-play-state: paused; }
.an-demo .mo-final { display: grid; align-items: center; gap: var(--sp-5); }
.an-demo .mo-final .mo-st { margin: 0; font-size: 2.3em; }
.an-demo .mo-icons { display: flex; justify-content: center; gap: var(--sp-4); }
.an-demo .mo-ico { display: grid; place-items: center; width: 4.5em; height: 4.5em; border: 0.25em solid var(--text); border-radius: var(--r-full); background: var(--surface); transition: transform 0.5s var(--ease) calc(var(--i, 0) * 120ms), opacity 0.5s calc(var(--i, 0) * 120ms); }
.an-demo .mo-ico svg { width: 52%; height: 52%; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .mo-ico .r { stroke: var(--accent); }
.an-demo .mo-scene[aria-hidden="true"] .mo-ico { opacity: 0; transform: scale(0.7); }
.an-demo .mo-lines { position: absolute; top: 0; left: 0; overflow: visible; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.an-demo.is-finale .mo-lines { opacity: 1; transition: opacity 0.7s 0.7s; }
.an-demo .mo-lines path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1 9; stroke-linecap: round; animation: mo-flow 1.1s linear infinite; }
@keyframes mo-flow { to { stroke-dashoffset: -10; } }
.an-demo .mo-phone { position: relative; width: 17em; height: 34em; border: 0.6em solid var(--text); border-radius: 2.8em; background: var(--surface); box-shadow: var(--shadow-2); }
.an-demo .mo-signal { position: absolute; top: -3em; right: -2.4em; width: 4.4em; height: 4.4em; overflow: visible; }
.an-demo .mo-signal path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; animation: mo-sig 1.8s ease-in-out infinite; }
.an-demo .mo-signal path:nth-child(2) { animation-delay: 0.25s; }
.an-demo .mo-signal path:nth-child(3) { animation-delay: 0.5s; }
@keyframes mo-sig { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.an-demo .mo-in { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 2.2em; }
.an-demo .mo-sb { display: flex; justify-content: space-between; align-items: center; padding: var(--sp-4) var(--sp-5) var(--sp-1); font-size: 0.9em; font-weight: var(--fw-bold); }
.an-demo .mo-sb svg { width: 1.1em; height: 0.8em; fill: var(--text); }
.an-demo .mo-screens { display: grid; flex: 1; min-height: 0; }
.an-demo .mo-scr { grid-area: 1 / 1; display: flex; flex-direction: column; min-height: 0; transition: opacity 0.35s 0.25s, transform 0.45s 0.25s var(--ease); }
.an-demo .mo-scr[aria-hidden="true"] { opacity: 0; visibility: hidden; transform: translateX(var(--sp-3)); transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s; }
.an-demo .mo-hdr { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4) var(--sp-3); border-bottom: 1px solid var(--hairline); }
.an-demo .mo-back { margin-left: calc(-1 * var(--sp-1)); padding: 0.1em 0.3em; border-radius: calc(var(--r-16) / 3); color: var(--text); font-size: 1.6em; line-height: 1; }
.an-demo .mo-ttl { font-size: 1.35em; font-weight: var(--fw-bold); }
.an-demo .mo-body { display: grid; align-content: start; gap: var(--sp-3); padding: var(--sp-4) var(--sp-3); }
.an-demo .mo-card { padding: var(--sp-4); border: 1px solid var(--hairline); border-radius: var(--r-16); }
.an-demo .mo-ct { display: block; margin-bottom: var(--sp-1); font-size: 1.15em; font-weight: var(--fw-bold); }
.an-demo .mo-card dl { display: grid; gap: var(--sp-1); margin-top: var(--sp-2); }
.an-demo .mo-card dt { color: var(--text-muted); font-size: 0.86em; }
.an-demo .mo-card dd { margin-bottom: var(--sp-1); font-size: 0.96em; }
.an-demo .mo-badge { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0.05em 0.65em; border: 1px solid var(--text); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: 0.86em; font-weight: var(--fw-bold); transition: background-color 0.3s, color 0.3s, transform 0.3s; }
.an-demo .mo-badge.is-done { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .mo-badge.is-pop { animation: mo-pop 0.5s var(--ease); }
@keyframes mo-pop { 40% { transform: scale(1.18); } }
:root .an-demo .mo-act { justify-self: start; height: 3em; padding: 0 1.4em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-weight: var(--fw-bold); transition: opacity 0.25s, transform 0.15s; }
:root .an-demo .mo-act[disabled] { opacity: 0.35; cursor: default; }
.an-demo .mo-act.is-press { transform: scale(0.93); }
:root .an-demo .mo-item { display: block; width: 100%; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--hairline); border-radius: var(--r-16); background: var(--surface); text-align: left; transition: opacity 0.45s calc(0.35s + var(--i, 0) * 160ms), transform 0.45s calc(0.35s + var(--i, 0) * 160ms), border-color 0.2s; }
:root .an-demo .mo-item:hover { border-color: var(--border); }
.an-demo .mo-scr[aria-hidden="true"] .mo-item { opacity: 0; transform: translateY(var(--sp-2)); }
.an-demo .mo-tap { position: absolute; top: 0; left: 0; z-index: 5; width: 4em; height: 4em; margin: -2em 0 0 -2em; border: 0.2em solid var(--accent); border-radius: var(--r-full); opacity: 0; pointer-events: none; }
.an-demo .mo-tap.is-on { animation: mo-tap 0.7s ease-out; }
@keyframes mo-tap { 0% { opacity: 0; transform: scale(1.5); } 30% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(0.9); } }
/* Phones: the scene's words above the phone; the drawings show on wider screens */
@container dm (width < 37.5rem) {
  .an-demo .mo-art { display: none; }
  .an-demo .mo-scene { align-self: start; }
  .an-demo .mo-st { margin-bottom: 0; font-size: 1.5em; }
  .an-demo .mo-final .mo-st { font-size: 1.7em; text-align: center; }
  .an-demo .mo-signal { display: none; }
}
@container dm (width >= 37.5rem) {
  .an-demo .mo-board { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; gap: var(--sp-6); padding: var(--sp-7) var(--sp-7); }
  .an-demo .mo-phone { width: 20em; height: 40em; }
  .an-demo .mo-final { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); }
  .an-demo .mo-icons { flex-direction: column; gap: var(--sp-5); }
}

/* ---------- Contract record screens (A365 Contract Management) ---------- */
.an-demo .ct-app { position: relative; overflow: hidden; border-radius: var(--r-16); background: var(--surface-muted); box-shadow: var(--shadow-2); transition: background-color 0.6s; }
.an-demo.is-focus .ct-app { background: var(--hairline); }
.an-demo .ct-appbar { display: flex; align-items: center; gap: var(--sp-4); height: 3.7em; padding: 0 var(--sp-5); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .ct-appbar svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.an-demo .ct-logo { position: relative; padding-right: 0.43em; font-size: 1.35em; font-weight: var(--fw-bold); line-height: 1; letter-spacing: var(--ls-h2); }
.an-demo .ct-logo::after { content: ""; position: absolute; right: 0; bottom: -0.15em; width: 0.37em; height: 0.37em; border-right: 0.16em solid var(--accent); border-bottom: 0.16em solid var(--accent); }
.an-demo .ct-crumb { color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); }
.an-demo .ct-record { padding: var(--sp-5) var(--sp-5) 0; border-bottom: 1px solid var(--hairline); background: var(--surface); transition: background-color 0.6s; }
.an-demo.is-focus .ct-record { background: color-mix(in srgb, var(--hairline) 60%, var(--surface)); }
.an-demo .ct-rec-id { font-size: 1.5em; font-weight: var(--fw-bold); letter-spacing: var(--ls-h2); }
.an-demo .ct-rec-type { margin: 0.15em 0 var(--sp-3); font-size: 0.93em; font-weight: var(--fw-semibold); }
.an-demo .ct-tabs { display: flex; gap: var(--sp-5); overflow: hidden; }
.an-demo .ct-tabs span { padding-bottom: var(--sp-2); color: var(--text-muted); white-space: nowrap; }
.an-demo .ct-tabs .on { color: var(--text); font-weight: var(--fw-bold); box-shadow: inset 0 calc(-1 * var(--focus-width)) var(--accent); }
.an-demo .ct-card { position: relative; padding: var(--sp-5); border: 1px solid var(--hairline); border-radius: var(--r-16); background: var(--surface); outline: none; transition: opacity 0.5s, box-shadow 0.4s; }
.an-demo .ct-card[role="button"] { cursor: zoom-in; }
.an-demo .ct-card.is-zoomed { cursor: zoom-out; }
.an-demo .ct-card.is-hl { box-shadow: 0 0 0 var(--focus-width) var(--accent); }
.an-demo .ct-card:focus-visible { box-shadow: 0 0 0 var(--focus-width) var(--focus-ring); }
.an-demo.is-focus .ct-card:not(.is-on) { opacity: 0.35; }
.an-demo.is-focus .ct-card.is-on { box-shadow: 0 0 0 var(--sp-2) color-mix(in srgb, var(--surface) 75%, transparent), var(--shadow-2); }
.an-demo .ct-card-h { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); min-height: 1.7em; margin-bottom: var(--sp-3); }
.an-demo .ct-card-t { font-size: 0.9em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .ct-badge { padding: 0.2em 0.8em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.86em; font-weight: var(--fw-bold); }
.an-demo .ct-pill { padding: 0.3em 0.75em; border-radius: var(--r-full); background: var(--surface-muted); font-size: 0.82em; font-weight: var(--fw-bold); }
.an-demo .ct-fields { display: grid; gap: var(--sp-2); }
.an-demo .ct-fields > div { display: grid; grid-template-columns: 40% minmax(0, 1fr); align-items: center; }
.an-demo .ct-fields dd { min-height: 2.45em; padding: 0.5em 0.85em; overflow: hidden; border-radius: calc(var(--r-16) / 2.5); background: var(--surface-muted); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .ct-fields u { text-underline-offset: 0.15em; }
.an-demo .ct-v { display: inline-block; transition: opacity 0.4s calc(var(--i, 0) * 110ms), transform 0.4s calc(var(--i, 0) * 110ms); }
.an-demo .is-empty .ct-v { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .ct-chips { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); margin-top: var(--sp-3); }
.an-demo .ct-chip { padding: 0.3em 0.75em; border-radius: var(--r-full); background: color-mix(in srgb, var(--hairline) 55%, var(--surface)); font-size: 0.82em; font-weight: var(--fw-bold); transition: opacity 0.4s, transform 0.4s; }
.an-demo .ct-chip.is-off { opacity: 0; transform: scale(0.8); }
.an-demo .ct-chip.is-pulse { animation: ct-pulse 1s ease; }
@keyframes ct-pulse { 40% { background: var(--action-subtle); transform: scale(1.08); } }
.an-demo .ct-st { padding: 0.2em 0.75em; border: 1px solid var(--text); border-radius: var(--r-full); background: var(--surface); font-size: 0.82em; font-weight: var(--fw-bold); white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.an-demo .ct-st.is-done, .an-demo .ct-st.is-ok { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .ct-st.is-wait { border-color: var(--action-subtle); background: var(--action-subtle); }
.an-demo .ct-st.is-no { border-style: dashed; border-color: var(--border); color: var(--text-muted); }
:root .an-demo .ct-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: var(--btn-h-md); padding: 0 1.3em; border: 1px solid var(--surface-inverse); border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-weight: var(--fw-bold); white-space: nowrap; transition: opacity 0.25s, transform 0.15s; }
:root .an-demo .ct-btn.ghost { background: var(--surface); color: var(--text); }
:root .an-demo .ct-btn[disabled] { opacity: 0.35; cursor: default; }
.an-demo .ct-btn.is-press { transform: scale(0.95); }
.an-demo .ct-note { min-height: 2.6em; margin-top: var(--sp-2); color: var(--text-muted); font-size: 0.9em; }

/* Tie it all together: the dashboard */
.an-demo .cd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-5); }
.an-demo .cd-col { display: grid; align-content: start; gap: var(--sp-5); }
.an-demo .cd-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-5); }
.an-demo .cd-kpi span { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .cd-kpi b { font-size: 1.45em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-h2); transition: opacity 0.4s; }
.an-demo .is-empty .cd-kpi b { opacity: 0; }
.an-demo .cd-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sp-1); height: 12.8em; margin-bottom: 2.4em; border-bottom: 1px solid var(--hairline); }
:root .an-demo .cd-mo { position: relative; height: 100%; border-radius: calc(var(--r-16) / 4); transition: opacity 0.3s; }
.an-demo .cd-bars { display: flex; justify-content: center; align-items: flex-end; gap: 0.35em; height: 100%; }
.an-demo .cd-b { width: clamp(0.7em, 32%, 2.1em); height: calc(var(--h) * 100%); border-radius: 0.2em 0.2em 0 0; transform-origin: bottom; transition: transform 0.8s var(--ease) calc(var(--i, 0) * 70ms); }
.an-demo .cd-b-inv, .an-demo .cd-key-inv { background: var(--surface-inverse); }
.an-demo .cd-b-cost, .an-demo .cd-key-cost { background: var(--border); }
.an-demo .is-empty .cd-b { transform: scaleY(0); }
.an-demo .cd-m { position: absolute; right: 0; bottom: -1.85em; left: 0; color: var(--text-muted); font-size: 0.86em; text-align: center; }
.an-demo .cd-chart.has-act .cd-mo:not(.is-act) { opacity: 0.3; }
.an-demo .cd-legend { display: flex; gap: var(--sp-4); font-size: 0.86em; font-weight: var(--fw-bold); }
.an-demo .cd-legend i { display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.4em; border-radius: 0.15em; vertical-align: -0.05em; }
.an-demo .cd-tip { position: absolute; top: 0; left: 0; z-index: 3; padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.86em; line-height: 1.55; white-space: nowrap; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% - var(--sp-2))); transition: opacity 0.2s; }
.an-demo .cd-tip.is-on { opacity: 1; }
.an-demo .cd-tip strong { display: block; }
.an-demo .cd-tip span { display: block; }
.an-demo .cd-rows { display: grid; }
.an-demo .cd-row { display: grid; grid-template-columns: 6.3em minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: var(--sp-2); border-bottom: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 3); transition: background-color 0.35s, opacity 0.4s calc(var(--i, 0) * 110ms), transform 0.4s calc(var(--i, 0) * 110ms); }
.an-demo .cd-row time { color: var(--text-muted); }
.an-demo .cd-row.is-mark { background: var(--action-subtle); }
.an-demo .is-empty .cd-row { opacity: 0; transform: translateY(var(--sp-1)); }
@container dm (width >= 37.5rem) {
  .an-demo .cd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-demo .cd-grid [data-panel="hist"] { grid-column: 1 / -1; }
}
@container dm (width >= 56.25rem) {
  .an-demo .cd-grid { grid-template-columns: 1fr 1.2fr 1.05fr; }
  .an-demo .cd-grid [data-panel="hist"] { grid-column: auto; }
}

/* Adjust quickly: billing terms, service level, price and the amendment */
.an-demo .ctm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-5); }
.an-demo .ctm-layout [data-panel="level"] { grid-column: 1 / -1; }
.an-demo .ctm-opts { display: grid; gap: var(--sp-2); }
:root .an-demo .ctm-opt { display: flex; align-items: center; gap: var(--sp-3); width: 100%; padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.75); background: var(--surface); text-align: left; transition: border-color 0.25s, box-shadow 0.25s; }
:root .an-demo .ctm-opt:hover { border-color: var(--border); }
:root .an-demo .ctm-opt[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.an-demo .ctm-radio { display: grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; border: 1px solid var(--border); border-radius: var(--r-full); }
.an-demo .ctm-radio::after { content: ""; width: 0.57em; height: 0.57em; border-radius: var(--r-full); background: var(--text); transform: scale(0); transition: transform 0.25s var(--ease); }
.an-demo .ctm-opt[aria-checked="true"] .ctm-radio { border-color: var(--text); }
.an-demo .ctm-opt[aria-checked="true"] .ctm-radio::after { transform: scale(1); }
.an-demo .ctm-ot { flex: 1; min-width: 0; }
.an-demo .ctm-ot b { display: block; font-size: 1.04em; }
.an-demo .ctm-ot small { display: block; color: var(--text-muted); font-size: 0.9em; }
.an-demo .ctm-off { padding: 0.2em 0.65em; border-radius: var(--r-full); background: var(--surface-muted); font-size: 0.82em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .ctm-opt[aria-checked="true"] .ctm-off { background: var(--action-subtle); }
.an-demo .ctm-sum { display: grid; gap: var(--sp-2); }
.an-demo .ctm-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); }
.an-demo .ctm-sum dt { color: var(--text-muted); }
.an-demo .ctm-sum dd { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.an-demo .ctm-sum .big { margin-top: var(--sp-1); padding-top: var(--sp-3); border-top: 1px solid var(--hairline); }
.an-demo .ctm-sum .big dt { color: var(--text); font-weight: var(--fw-bold); }
.an-demo .ctm-sum .big dd { font-size: 2em; font-weight: var(--fw-bold); letter-spacing: var(--ls-h2); }
.an-demo .ctm-val { display: inline-block; margin: -0.1em -0.45em; padding: 0.1em 0.45em; border-radius: calc(var(--r-16) / 3); transition: background-color 0.6s; }
.an-demo .ctm-val.is-hot { background: var(--action-subtle); transition: background-color 0.15s; }
.an-demo .ctm-lv { width: 100%; }
.an-demo .ctm-lv th, .an-demo .ctm-lv td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--hairline); text-align: center; transition: background-color 0.35s; }
.an-demo .ctm-lv th:first-child, .an-demo .ctm-lv td:first-child { text-align: left; }
.an-demo .ctm-lv thead th { border-bottom: 1px solid var(--text); vertical-align: bottom; }
.an-demo .ctm-lv .is-sel { background: var(--surface-muted); }
:root .an-demo .ctm-lvbtn { display: inline-grid; justify-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-2); border-radius: calc(var(--r-16) / 2); }
.an-demo .ctm-lvbtn b { font-size: 1.04em; }
.an-demo .ctm-lvbtn .tag { min-height: 1.3em; padding: 0.15em 0.6em; border-radius: var(--r-full); background: var(--surface-muted); font-size: 0.75em; font-weight: var(--fw-bold); }
.an-demo .ctm-lvbtn[aria-checked="true"] .tag { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .ctm-lvbtn .tag.is-blank { background: transparent; }
.an-demo .ctm-price { font-size: 1.45em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.an-demo .ctm-was { display: block; min-height: 1.1em; color: var(--text-muted); font-size: 0.82em; text-decoration: line-through; }
.an-demo .ctm-yes { display: inline-block; width: 0.95em; height: 0.55em; margin-bottom: 0.15em; border-bottom: 0.16em solid var(--text); border-left: 0.16em solid var(--text); transform: rotate(-45deg); }
.an-demo .ctm-no { color: var(--border); font-weight: var(--fw-bold); }
.an-demo .ctm-ver { margin-bottom: var(--sp-2); color: var(--text-muted); font-size: 0.93em; }
.an-demo .ctm-chg { display: grid; align-content: start; gap: var(--sp-2); min-height: 13.9em; }
.an-demo .ctm-chg li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.15em var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); font-size: 0.93em; animation: ct-in 0.45s var(--ease); }
.an-demo .ctm-chg li::before { content: ""; grid-row: 1 / 3; width: 0.57em; height: 0.57em; border-radius: var(--r-full); background: var(--accent); }
.an-demo .ctm-chg li span { color: var(--text-muted); }
.an-demo .ctm-chg .empty { display: grid; place-items: center; min-height: 13.9em; border: 1px dashed var(--hairline); background: none; color: var(--text-muted); text-align: center; animation: none; }
.an-demo .ctm-chg .empty::before { display: none; }
@keyframes ct-in { from { opacity: 0; transform: translateY(var(--sp-1)); } }
.an-demo .ctm-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.an-demo .ctm-reset { color: var(--text-muted); font-size: 0.93em; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 0.2em; }
@container dm (width >= 37.5rem) {
  .an-demo .ctm-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-demo .ctm-layout [data-panel="amend"] { grid-column: 1 / -1; }
}
@container dm (width >= 56.25rem) {
  .an-demo .ctm-layout { grid-template-columns: 1fr 1fr 1.1fr; }
  .an-demo .ctm-layout [data-panel="amend"] { grid-column: auto; }
}
@container dm (width < 37.5rem) {
  .an-demo .ctm-lv th, .an-demo .ctm-lv td { padding: var(--sp-2) var(--sp-1); }
  .an-demo .ctm-price { font-size: 1.15em; }
}

/* Control access: roles, preview, permissions and approvals */
.an-demo .cx-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-5); }
.an-demo .cx-layout [data-panel="matrix"] { grid-column: 1 / -1; }
.an-demo .cx-lockic { flex: none; width: 0.8em; height: 0.95em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.an-demo .cx-roles { display: grid; gap: var(--sp-2); }
:root .an-demo .cx-role { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.75); background: var(--surface); text-align: left; transition: border-color 0.25s, box-shadow 0.25s; }
:root .an-demo .cx-role:hover { border-color: var(--border); }
:root .an-demo .cx-role[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.an-demo .cx-av { display: grid; place-items: center; flex: none; width: 2.15em; height: 2.15em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.8em; font-weight: var(--fw-bold); }
.an-demo .cx-av.l2 { background: var(--a-grey-60); }
.an-demo .cx-av.l3 { background: var(--action-subtle); color: var(--text); }
.an-demo .cx-av.l4 { background: var(--hairline); color: var(--text); }
.an-demo .cx-rt { flex: 1; min-width: 0; }
.an-demo .cx-rt b { display: block; }
.an-demo .cx-rt small { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .cx-eye { padding: 0.15em 0.6em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.78em; font-weight: var(--fw-bold); opacity: 0; transition: opacity 0.25s; }
.an-demo .cx-role[aria-checked="true"] .cx-eye { opacity: 1; }
.an-demo .cx-who { margin: calc(-1 * var(--sp-1)) 0 var(--sp-3); color: var(--text-muted); font-size: 0.9em; }
.an-demo .cx-who b { color: var(--text); }
.an-demo .cx-prev { display: grid; gap: var(--sp-2); }
.an-demo .cx-prev > div { display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: center; }
.an-demo .cx-prev dd { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); min-height: 2.45em; padding: 0.5em 0.85em; border-radius: calc(var(--r-16) / 2.5); background: var(--surface-muted); transition: background-color 0.4s; }
.an-demo .cx-prev dd.is-hot { background: var(--action-subtle); transition: background-color 0.15s; }
.an-demo .cx-mask { display: none; align-items: center; gap: var(--sp-1); color: var(--text-muted); font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); }
.an-demo dd.is-none .cx-val { display: none; }
.an-demo dd.is-none .cx-mask { display: inline-flex; }
.an-demo .cx-can { display: none; padding: 0.05em 0.5em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.75em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo dd.is-edit .cx-can { display: inline-block; }
.an-demo .cx-m { width: 100%; }
.an-demo .cx-m th, .an-demo .cx-m td { padding: var(--sp-2); border-bottom: 1px solid var(--hairline); text-align: center; }
.an-demo .cx-m th:first-child, .an-demo .cx-m td:first-child { text-align: left; }
.an-demo .cx-m thead th { border-bottom: 1px solid var(--text); color: var(--text-muted); font-size: 0.86em; font-weight: var(--fw-semibold); vertical-align: bottom; }
.an-demo .cx-m td:first-child small { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .cx-m .is-col { background: var(--surface-muted); }
:root .an-demo .cx-perm { display: inline-flex; align-items: center; justify-content: center; min-width: 4.6em; height: 2em; padding: 0 0.7em; border: 1px solid transparent; border-radius: var(--r-full); font-size: 0.86em; font-weight: var(--fw-bold); transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.15s; }
:root .an-demo .cx-perm[data-v="edit"] { background: var(--surface-inverse); color: var(--text-on-dark); }
:root .an-demo .cx-perm[data-v="view"] { background: var(--hairline); color: var(--text); }
:root .an-demo .cx-perm[data-v="none"] { border: 1px dashed var(--border); background: var(--surface); color: var(--text-muted); }
.an-demo .cx-perm.is-pop { animation: cx-pop 0.5s var(--ease); }
.an-demo .cx-perm.is-press { transform: scale(0.92); }
@keyframes cx-pop { 40% { transform: scale(1.15); } }
.an-demo .cx-legend { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-3); color: var(--text-muted); font-size: 0.86em; }
.an-demo .cx-rule { display: flex; align-items: flex-start; gap: var(--sp-2); margin-bottom: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); font-size: 0.93em; }
.an-demo .cx-rule .cx-lockic { margin-top: 0.2em; }
.an-demo .cx-req { padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.75); transition: border-color 0.3s, opacity 0.4s, transform 0.4s; }
.an-demo .cx-req.is-off { opacity: 0; transform: translateY(var(--sp-2)); }
.an-demo .cx-req.is-wait { border-color: var(--text); }
.an-demo .cx-req-h { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-1); }
.an-demo .cx-req p { color: var(--text-muted); font-size: 0.93em; }
.an-demo .cx-diff { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--text); font-weight: var(--fw-bold); }
.an-demo .cx-diff s { color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-demo .cx-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
:root .an-demo .cx-again { color: var(--text-muted); font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 0.2em; }
@container dm (width >= 37.5rem) {
  .an-demo .cx-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-demo .cx-layout [data-panel="approve"] { grid-column: 1 / -1; }
}
@container dm (width >= 56.25rem) {
  .an-demo .cx-layout { grid-template-columns: 0.9fr 1.1fr 1.1fr; }
  .an-demo .cx-layout [data-panel="approve"] { grid-column: auto; }
}
@container dm (width < 37.5rem) {
  .an-demo .cx-m th, .an-demo .cx-m td { padding: var(--sp-2) 0.15em; }
  :root .an-demo .cx-perm { min-width: 0; padding: 0 0.5em; font-size: 0.78em; }
  .an-demo .cx-m td:first-child small { display: none; }
}

/* Stay compliant: audit trail, change details and the audit report */
.an-demo .ca-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-5); }
.an-demo .ca-trail-h { flex-wrap: wrap; }
.an-demo .ca-filters { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
:root .an-demo .ca-chipbtn { padding: 0.3em 0.85em; border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--surface); color: var(--text-muted); font-size: 0.86em; font-weight: var(--fw-bold); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
:root .an-demo .ca-chipbtn:hover { border-color: var(--border); }
:root .an-demo .ca-chipbtn[aria-pressed="true"] { border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .ca-tw { margin-top: var(--sp-3); }
.an-demo .ca-t td { padding: var(--sp-3) var(--sp-2); vertical-align: top; white-space: normal; }
.an-demo .ca-t th { padding: var(--sp-2); }
.an-demo .ca-t td.when { color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.an-demo .ca-t td.when small { display: block; font-size: 0.86em; }
.an-demo .ca-t td.what b { display: block; }
.an-demo .ca-t td.what span { color: var(--text-muted); }
.an-demo .ca-t td.st { white-space: nowrap; }
.an-demo .ca-who { display: inline-flex; align-items: center; gap: 0.5em; }
.an-demo .ca-av { display: grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.72em; font-weight: var(--fw-bold); }
.an-demo .ca-av.is-sys { background: var(--hairline); color: var(--text); }
.an-demo .ca-av.is-cus { background: var(--action-subtle); color: var(--text); }
.an-demo .ca-row { outline: none; cursor: pointer; transition: background-color 0.25s, opacity 0.4s calc(var(--i, 0) * 70ms); }
.an-demo .ca-row:hover { background: var(--surface-muted); }
.an-demo .ca-row:focus-visible { box-shadow: inset 0 0 0 var(--focus-width) var(--focus-ring); }
.an-demo .ca-row[aria-selected="true"] { background: var(--action-subtle); }
.an-demo .is-empty .ca-row { opacity: 0; }
.an-demo .ca-lock { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); color: var(--text-muted); font-size: 0.9em; }
.an-demo .ca-lock svg { width: 0.95em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.an-demo.is-spot .dm-spot { opacity: 1; }
.an-demo.is-spot .ca-t td:not(.st), .an-demo.is-spot .ca-t th:not(.st) { opacity: 0.45; }
.an-demo .ca-fields dd { white-space: normal; transition: opacity 0.35s calc(var(--i, 0) * 70ms); }
.an-demo .ca-detail.is-empty .ca-fields dd, .an-demo .ca-detail.is-empty .ca-diff span { opacity: 0; }
.an-demo .ca-diff { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.an-demo .ca-diff > div { min-height: 4.1em; padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); }
.an-demo .ca-diff small { display: block; margin-bottom: 0.15em; color: var(--text-muted); font-size: 0.78em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .ca-diff .old { background: var(--surface-muted); }
.an-demo .ca-diff .old span { color: var(--text-muted); text-decoration: line-through; }
.an-demo .ca-diff .new { background: var(--action-subtle); }
.an-demo .ca-diff .new span { font-weight: var(--fw-bold); }
.an-demo .ca-diff span { transition: opacity 0.35s; }
.an-demo .ca-diff i { color: var(--text-muted); font-style: normal; font-weight: var(--fw-bold); }
.an-demo .ca-docs { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3); }
.an-demo .ca-doc { padding: 0.3em 0.8em; border-radius: var(--r-full); background: var(--surface-muted); font-size: 0.82em; font-weight: var(--fw-bold); }
.an-demo .ca-comply { display: grid; align-items: center; gap: var(--sp-4); }
.an-demo .ca-checks { display: grid; gap: var(--sp-2); }
.an-demo .ca-checks li { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); transition: background-color 0.4s; }
.an-demo .ca-checks li b { display: block; }
.an-demo .ca-checks li span span { color: var(--text-muted); font-size: 0.9em; }
.an-demo .ca-tick { display: grid; place-items: center; flex: none; width: 1.45em; height: 1.45em; border: 1px solid var(--border); border-radius: var(--r-full); transition: background-color 0.3s, border-color 0.3s; }
.an-demo .ca-tick::after { content: ""; width: 0.65em; height: 0.35em; border-bottom: 0.15em solid var(--text-on-dark); border-left: 0.15em solid var(--text-on-dark); transform: rotate(-45deg) translate(0.05em, -0.05em) scale(0); transition: transform 0.3s var(--ease); }
.an-demo .ca-checks li.is-ok .ca-tick { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .ca-checks li.is-ok .ca-tick::after { transform: rotate(-45deg) translate(0.05em, -0.05em) scale(1); }
.an-demo .ca-checks li.is-flash { background: var(--action-subtle); }
.an-demo .ca-export { display: grid; justify-items: start; gap: var(--sp-2); }
.an-demo .ca-file { display: inline-flex; align-items: center; gap: 0.5em; min-height: 2em; padding: 0.35em 0.85em; border-radius: var(--r-full); background: var(--action-subtle); font-size: 0.9em; font-weight: var(--fw-bold); opacity: 0; transform: translateY(var(--sp-1)); transition: opacity 0.35s, transform 0.35s; }
.an-demo .ca-file.is-on { opacity: 1; transform: none; }
.an-demo .ca-file svg { width: 0.8em; height: 0.95em; fill: none; stroke: currentColor; stroke-width: 1.6; }
@container dm (width >= 37.5rem) {
  .an-demo .ca-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-demo .ca-layout > * { grid-column: 1 / -1; }
  .an-demo .ca-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container dm (width >= 56.25rem) {
  .an-demo .ca-layout { grid-template-columns: 1.65fr 1fr; }
  .an-demo .ca-layout [data-panel="trail"] { grid-column: 1; }
  .an-demo .ca-layout [data-panel="detail"] { grid-column: 2; }
  .an-demo .ca-comply { grid-template-columns: minmax(0, 1fr) auto; }
  .an-demo .ca-export { justify-items: end; }
}
@container dm (width < 37.5rem) {
  .an-demo .ct-record, .an-demo .cd-grid, .an-demo .ctm-layout, .an-demo .cx-layout, .an-demo .ca-layout { padding: var(--sp-4); }
  .an-demo .ct-appbar { padding: 0 var(--sp-4); }
  .an-demo .ct-card { padding: var(--sp-4); }
  .an-demo .ctm-lv, .an-demo .cx-m { font-size: 0.86em; }
  /* The two wide grids may scroll sideways inside their card rather than push the screen wider */
  .an-demo .ct-card[data-panel="level"], .an-demo .ct-card[data-panel="matrix"] { overflow-x: auto; }
}

/* ---------- Inspection Center and the inspector's phone (A365 Inspections, 27 Nov 2026) ----------
   The desk screen reuses the contract record parts (ct-*); the phone, the sync line and the toast are
   in-*. Pale red marks what just changed, as on the other demos. */
.an-demo--duo.is-camera .an-demo__canvas { width: max(calc(100% - 2 * var(--dm-pad)), 56rem); }
.an-demo .in-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--sp-5); }
.an-demo .in-board > .in-desk { justify-self: stretch; }
.an-demo .in-desk { display: flex; flex-direction: column; min-width: 0; container: indesk / inline-size; transition: box-shadow 0.4s, background-color 0.6s; }
.an-demo .in-desk.is-sync { box-shadow: 0 0 0 var(--focus-width) var(--accent), var(--shadow-2); }
.an-demo .in-tools { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-2) var(--sp-5); overflow: hidden; border-bottom: 1px solid var(--hairline); background: var(--surface); color: var(--text-muted); font-size: 0.93em; white-space: nowrap; }
.an-demo .ct-tabs .in-dtab { padding-bottom: var(--sp-2); color: var(--text-muted); white-space: nowrap; }
.an-demo .ct-tabs .in-dtab[aria-selected="true"] { color: var(--text); font-weight: var(--fw-bold); box-shadow: inset 0 calc(-1 * var(--focus-width)) var(--accent); }
.an-demo .ct-tabs .in-dtab:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
.an-demo .ct-tabs .in-count, .an-demo .in-count { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; margin-left: 0.3em; padding: 0 0.4em; border-radius: var(--r-full); background: var(--danger); color: var(--danger-on); font-size: 0.78em; font-weight: var(--fw-bold); vertical-align: 0.1em; }
.an-demo .in-count[hidden] { display: none; }
.an-demo .in-body { display: grid; flex: 1; min-height: 0; padding: var(--sp-5); }
.an-demo .in-page { grid-area: 1 / 1; display: grid; align-content: start; gap: var(--sp-4); min-width: 0; transition: opacity 0.3s 0.2s; }
.an-demo .in-page[aria-hidden="true"] { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.an-demo .in-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-content: start; }
@container indesk (width >= 34rem) {
  .an-demo .in-grid--2 { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.an-demo .ct-card .ct-fields + .in-sec { margin-top: var(--sp-4); }
.an-demo .in-sec { margin-bottom: var(--sp-2); font-size: 0.86em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .ct-fields dd { transition: background-color 0.4s; }
.an-demo .in-board .is-hot, .an-demo .in-board .ct-fields dd.is-hot { background: var(--action-subtle); transition: background-color 0.15s; }
.an-demo .in-board .is-pop { animation: mo-pop 0.5s var(--ease); }
.an-demo .in-board .ct-pill { white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.an-demo .in-board .ct-pill.is-done { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .in-board .ct-pill.is-red { background: var(--danger); color: var(--danger-on); }
.an-demo .in-empty { padding: var(--sp-3); border: 1px dashed var(--border); border-radius: calc(var(--r-16) * 0.6); color: var(--text-muted); font-size: 0.9em; text-align: center; }
.an-demo .in-empty[hidden] { display: none; }
.an-demo .in-over { position: absolute; right: var(--sp-5); left: var(--sp-5); margin: 0; }
/* Tables on the desk: they wrap rather than run wide */
.an-demo .in-tw { position: relative; }
.an-demo .in-t { position: relative; z-index: 1; width: 100%; }
.an-demo .in-t th { padding: var(--sp-2); border-bottom: 1px solid var(--hairline); color: var(--text-muted); font-size: 0.9em; font-weight: var(--fw-semibold); text-align: left; transition: opacity 0.4s; }
.an-demo .in-t td { padding: var(--sp-2); border-bottom: 1px solid var(--hairline); vertical-align: middle; transition: background-color 1.2s, opacity 0.4s; }
.an-demo .in-t tr.is-new td { background: var(--action-subtle); transition: background-color 0.2s; }
.an-demo .in-t .none td { padding: var(--sp-4) var(--sp-2); color: var(--text-muted); text-align: center; }
.an-demo .in-t [data-drow] { cursor: pointer; }
.an-demo .in-t [data-drow]:hover td { background: var(--surface-muted); }
.an-demo.is-spot .in-t td:not(.st), .an-demo.is-spot .in-t th:not(.st) { opacity: 0.45; }
.an-demo .in-desk .ct-card { container: incard / inline-size; }
@container incard (width < 26rem) { .an-demo .in-t .c-mid { display: none; } }
@container indesk (width < 30rem) { .an-demo .in-tools .c-mid { display: none; } }
/* Desk buttons */
:root .an-demo .in-dbtn { display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h-md); padding: 0 1.3em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-weight: var(--fw-bold); white-space: nowrap; transition: opacity 0.2s, transform 0.15s; }
:root .an-demo .in-dbtn[disabled] { opacity: 0.4; cursor: default; }
:root .an-demo .in-dbtn.is-done[disabled] { opacity: 1; }
:root .an-demo .in-dbtn.wide { width: 100%; }
.an-demo .in-dbtn.is-press { transform: scale(0.95); }
/* Sync: a dotted line from where the change was made to where it lands, and a note on the desk */
.an-demo .in-lines { position: absolute; top: 0; left: 0; z-index: 3; overflow: visible; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.an-demo.is-sync .in-lines { opacity: 1; }
.an-demo .in-lines path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1 9; stroke-linecap: round; animation: mo-flow 1.1s linear infinite; }
.an-demo.is-still .in-lines path { animation-play-state: paused; }
.an-demo .in-toast { position: absolute; right: var(--sp-4); bottom: var(--sp-4); z-index: 4; display: flex; align-items: center; gap: var(--sp-2); padding: 0.45em 1em 0.45em 0.8em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.86em; font-weight: var(--fw-semibold); opacity: 0; pointer-events: none; transform: translateY(var(--sp-2)); transition: opacity 0.3s, transform 0.3s; }
.an-demo .in-toast.is-on { opacity: 1; transform: none; }
.an-demo .in-toast i { width: 0.6em; height: 0.6em; border-radius: var(--r-full); background: var(--accent); }

/* The phone */
.an-demo .in-phone { position: relative; display: flex; flex: none; flex-direction: column; align-self: center; width: 20em; max-width: 100%; height: 44em; overflow: hidden; border: 0.6em solid var(--text); border-radius: 2.8em; background: var(--surface); box-shadow: var(--shadow-2); font-size: 0.93em; }
.an-demo .in-pbar { display: flex; flex: none; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-4) var(--sp-3); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .in-pbar svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.an-demo .in-pbar .ct-logo { font-size: 1.2em; }
.an-demo .in-pbar .sp { flex: 1; }
.an-demo .in-av { display: grid; place-items: center; width: 2em; height: 2em; border: 1px solid currentColor; border-radius: var(--r-full); font-size: 0.78em; font-weight: var(--fw-bold); }
.an-demo .in-ptools { display: flex; flex: none; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--hairline); font-size: 0.93em; }
.an-demo .in-ptools [hidden] { display: none; }
.an-demo .in-phd { flex: none; padding: var(--sp-3) var(--sp-4) 0; }
.an-demo .in-pt { font-size: 1.2em; font-weight: var(--fw-bold); line-height: 1.25; }
.an-demo .in-pt small, .an-demo .ct-rec-id small { margin-left: 0.3em; color: var(--text-muted); font-size: 0.62em; font-weight: var(--fw-semibold); letter-spacing: normal; }
.an-demo .in-ps { margin-top: 0.15em; font-size: 0.9em; font-weight: var(--fw-bold); }
.an-demo .in-po { margin: 0.15em 0 var(--sp-3); color: var(--text-muted); font-size: 0.86em; }
.an-demo .in-ptabs { display: flex; flex: none; gap: var(--sp-4); padding: 0 var(--sp-4); border-bottom: 1px solid var(--hairline); }
.an-demo .in-ptab { padding-bottom: var(--sp-2); color: var(--text-muted); white-space: nowrap; }
.an-demo .in-ptab[aria-selected="true"] { color: var(--text); font-weight: var(--fw-bold); box-shadow: inset 0 calc(-1 * var(--focus-width)) var(--accent); }
.an-demo .in-ptab:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
.an-demo .in-qch { display: flex; flex: none; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-3); border-bottom: 1px solid var(--hairline); }
.an-demo .in-qch[hidden], .an-demo .in-rec[hidden] { display: none; }
.an-demo .in-back { padding: 0 0.3em; border-radius: calc(var(--r-16) / 3); font-size: 1.2em; line-height: 1; }
.an-demo .in-back[hidden] { display: none; }
.an-demo .in-pscreens { position: relative; display: grid; flex: 1; min-height: 0; }
.an-demo .in-pscr { position: relative; grid-area: 1 / 1; min-height: 0; padding: var(--sp-4); overflow: hidden; transition: opacity 0.3s 0.2s, transform 0.4s 0.2s var(--ease); }
.an-demo .in-pscr[aria-hidden="true"] { opacity: 0; visibility: hidden; transform: translateX(var(--sp-3)); transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s; }
.an-demo .in-phone .ct-fields > div { grid-template-columns: 42% minmax(0, 1fr); }
.an-demo .in-phone .ct-fields dd { min-height: 2.3em; padding: 0.4em 0.7em; }
.an-demo .in-pts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
.an-demo .in-pts li { min-width: 0; }
.an-demo .in-ptrow { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: var(--sp-2) var(--sp-1); border-bottom: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); text-align: left; transition: background-color 0.3s, transform 0.15s; }
.an-demo button.in-ptrow:hover { background: var(--surface-muted); }
.an-demo .in-ptrow.is-hl, .an-demo button.in-ptrow.is-hl:hover { background: var(--action-subtle); }
.an-demo .in-ini { display: grid; flex: none; place-items: center; width: 2.3em; height: 2.3em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.82em; font-weight: var(--fw-bold); }
.an-demo .in-ini.is-mute { background: var(--border); }
.an-demo .in-ptx { flex: 1; min-width: 0; }
.an-demo .in-ptx b { display: block; overflow: hidden; font-size: 0.96em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .in-ptx small { display: block; color: var(--text-muted); font-size: 0.84em; }
.an-demo .in-st { flex: none; padding: 0.1em 0.6em; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text-muted); font-size: 0.8em; font-weight: var(--fw-bold); white-space: nowrap; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.an-demo .in-st.is-done { border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-on-dark); }
:root .an-demo .in-pbtn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); height: 2.9em; padding: 0 1.2em; border: 1px solid var(--surface-inverse); border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-weight: var(--fw-bold); white-space: nowrap; transition: opacity 0.25s, transform 0.15s; }
:root .an-demo .in-pbtn.ghost { background: var(--surface); color: var(--text); }
:root .an-demo .in-pbtn.wide { width: 100%; }
:root .an-demo .in-pbtn[disabled] { opacity: 0.35; cursor: default; }
:root .an-demo .in-pbtn.is-done[disabled] { opacity: 1; }
.an-demo .in-pbtn.is-press, .an-demo .in-ptrow.is-press, .an-demo .in-ptab.is-press { transform: scale(0.95); }
.an-demo .in-mt { margin-top: var(--sp-3); }
.an-demo .in-note { margin-top: var(--sp-3); color: var(--text-muted); font-size: 0.86em; }
/* Pick lists on the phone */
.an-demo .in-sel-dd { position: relative; cursor: pointer; }
.an-demo .in-sel-dd::after { content: ""; position: absolute; top: 50%; right: 0.8em; width: 0.45em; height: 0.45em; border-right: 1px solid var(--text-muted); border-bottom: 1px solid var(--text-muted); pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.an-demo .in-sel { width: 100%; padding-right: 1.2em; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.an-demo .in-sel[disabled] { color: var(--text-muted); cursor: default; }
.an-demo .in-opts { position: absolute; top: 0; right: var(--sp-4); left: 44%; z-index: 5; display: grid; padding: var(--sp-1); border-radius: calc(var(--r-16) * 0.6); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); }
.an-demo .in-opts[hidden] { display: none; }
.an-demo .in-opts button { width: 100%; padding: 0.45em 0.7em; border-radius: calc(var(--r-16) / 3); text-align: left; }
.an-demo .in-opts button:hover, .an-demo .in-opts button.is-hot { background: var(--action-subtle); }

/* Speed up service: the checklist, the progress and the report */
.an-demo .in-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-3); margin-top: var(--sp-4); }
.an-demo .in-send .in-note { margin: 0; }
.an-demo .in-doc { padding: var(--sp-5); }
.an-demo .in-pdf { position: absolute; top: var(--sp-3); right: var(--sp-4); padding: 0.3em 0.9em; border-radius: var(--r-full); background: var(--danger); color: var(--danger-on); font-size: 0.82em; font-weight: var(--fw-bold); opacity: 0; transform: translateY(calc(-1 * var(--sp-1))); transition: opacity 0.4s, transform 0.4s; }
.an-demo .in-pdf.is-on { opacity: 1; transform: none; }
.an-demo .in-doch { display: flex; align-items: flex-end; justify-content: space-between; margin: var(--sp-5) 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: var(--focus-width) solid var(--text); font-size: 0.8em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); }
.an-demo .in-doch .ct-logo { font-size: 1.6em; }
.an-demo .in-doct { margin-bottom: var(--sp-3); font-size: 1.3em; font-weight: var(--fw-bold); }
.an-demo .in-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-4); }
.an-demo .in-meta dt { color: var(--text-muted); font-size: 0.82em; }
.an-demo .in-sign { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-4); color: var(--text-muted); font-size: 0.9em; }
.an-demo .in-sign i { flex: 0 0 40%; height: 1.3em; border-bottom: 1px solid var(--text); }
.an-demo .in-sign.is-on span { color: var(--text); font-weight: var(--fw-semibold); }
.an-demo .in-prog { display: grid; gap: var(--sp-1); }
.an-demo .in-progbar { height: 0.45em; overflow: hidden; border-radius: var(--r-full); background: var(--hairline); }
.an-demo .in-progbar i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 0.5s var(--ease); }
.an-demo .in-prog small { color: var(--text-muted); font-size: 0.82em; text-align: right; }
.an-demo .in-pts--stagger li { transition: opacity 0.4s calc(var(--i, 0) * 140ms), transform 0.4s calc(var(--i, 0) * 140ms); }
.an-demo .in-pts--stagger.is-off li { opacity: 0; transform: translateY(var(--sp-2)); }
.an-demo .in-wait { top: 7.5em; right: var(--sp-4); left: var(--sp-4); }
.an-demo .in-foot { position: absolute; right: var(--sp-4); bottom: var(--sp-4); left: var(--sp-4); }
:root .an-demo .in-pbtn.in-foot { width: auto; }

/* Capture it all: media tiles, the shutter, the results and the evidence */
.an-demo .in-ic svg, .an-demo .in-tic svg, .an-demo .in-evi svg { fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .in-ic .r, .an-demo .in-tic .r, .an-demo .in-evi .r { stroke: var(--accent); }
.an-demo .in-ic .f, .an-demo .in-tic .f, .an-demo .in-evi .f { fill: var(--accent); stroke: none; }
.an-demo .in-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.an-demo .in-tile { display: grid; justify-items: center; gap: var(--sp-1); }
.an-demo .in-tic { display: grid; place-items: center; width: 100%; aspect-ratio: 1.3; border: 1px dashed var(--border); border-radius: calc(var(--r-16) * 0.75); transition: border-color 0.3s, transform 0.15s; }
.an-demo .in-tic svg { width: 58%; opacity: 0; transform: scale(0.6); transition: opacity 0.35s, transform 0.45s var(--ease); }
.an-demo .in-tile.is-on .in-tic { border: var(--focus-width) solid var(--text); }
.an-demo .in-tile.is-on .in-tic svg { opacity: 1; transform: none; }
.an-demo .in-tile.is-press .in-tic { transform: scale(0.94); }
.an-demo .in-tile small { font-size: 0.82em; font-weight: var(--fw-bold); }
:root .an-demo .in-shutter { position: absolute; bottom: var(--sp-3); left: 50%; width: 3.6em; height: 3.6em; margin-left: -1.8em; padding: 0; border: 0.3em solid var(--text); border-radius: var(--r-full); background: var(--surface); }
.an-demo .in-shutter::after { content: ""; position: absolute; inset: 0.3em; border-radius: var(--r-full); background: var(--accent); transition: transform 0.15s; }
.an-demo .in-shutter.is-press::after { transform: scale(0.78); }
:root .an-demo .in-shutter[disabled] { opacity: 0.3; cursor: default; }
.an-demo .in-res { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.an-demo .in-res li { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); transition: background-color 1.2s; }
.an-demo .in-res li.is-off { visibility: hidden; }
.an-demo .in-res li.is-new { background: var(--action-subtle); transition: background-color 0.2s; }
.an-demo .in-res li > span:last-child { min-width: 0; }
.an-demo .in-res b { display: block; overflow: hidden; font-size: 0.96em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .in-res small { display: block; color: var(--text-muted); font-size: 0.84em; }
.an-demo .in-reswrap { position: relative; }
.an-demo .in-reswrap .in-empty { position: absolute; inset: 0; display: grid; place-items: center; }
.an-demo .in-reswrap .in-empty[hidden] { display: none; }
.an-demo .in-ic { display: grid; flex: none; place-items: center; width: 2.4em; height: 2em; }
.an-demo .in-ic svg { width: 2.2em; }
.an-demo .in-evi { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: calc(var(--r-16) * 0.75); background: var(--surface-muted); }
.an-demo .in-evi svg { width: 42%; }
.an-demo .in-evi.sm { aspect-ratio: 16 / 7; }
.an-demo .in-evi.sm svg { width: 22%; }
.an-demo .in-evt { margin: var(--sp-3) 0 var(--sp-2); font-size: 1.1em; font-weight: var(--fw-bold); }
.an-demo .in-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.an-demo .in-tbtn { text-decoration: underline; text-underline-offset: 0.2em; }
.an-demo .in-tbtn.is-press { opacity: 0.5; }

/* Work smarter with AI: the inspection history, the trend and the insights */
@container indesk (width >= 34rem) {
  .an-demo .in-ai { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .an-demo .in-ai > [data-panel="hist"] { grid-row: span 2; }
}
.an-demo .in-hide { opacity: 0; transition: opacity 0.4s; }
.an-demo .in-hide.is-on { opacity: 1; }
.an-demo .in-hist { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
.an-demo .in-hist li { min-width: 0; transition: opacity 0.4s calc(var(--i, 0) * 100ms), transform 0.4s calc(var(--i, 0) * 100ms); }
.an-demo .in-hist.is-off li { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .in-hist button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-1) var(--sp-2); width: 100%; padding: var(--sp-2); border-bottom: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); text-align: left; transition: background-color 0.35s; }
.an-demo .in-hist button > span:nth-of-type(1) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .in-hist time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.an-demo .in-hist .ct-pill { grid-column: 2 / -1; justify-self: start; }
.an-demo .in-hist i { width: 0.55em; height: 0.55em; border-radius: var(--r-full); background: transparent; transition: background-color 0.3s; }
.an-demo .in-hist li.is-flag button { background: var(--action-subtle); }
.an-demo .in-hist li.is-flag i { background: var(--accent); }
.an-demo .in-chart { position: relative; }
.an-demo .in-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.an-demo .in-chart .grid path { stroke: var(--hairline); stroke-width: 1; }
.an-demo .in-chart text { fill: var(--text-muted); font-family: var(--font-sans); font-size: calc(var(--fs-small) * 1.1); }
.an-demo .in-chart .ylab text { text-anchor: end; }
.an-demo .in-chart .xlab text { text-anchor: middle; }
.an-demo .in-chart .limit { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 5; }
.an-demo .in-chart .limtxt { fill: var(--eyebrow); font-weight: var(--fw-bold); }
.an-demo .in-chart .line { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease, stroke 0.3s; }
.an-demo .in-chart.is-drawn .line { stroke-dashoffset: 0; }
.an-demo .in-chart .pts circle { fill: var(--surface); stroke: var(--text); stroke-width: 2.5; opacity: 0; cursor: pointer; transition: opacity 0.3s calc(var(--i, 0) * 250ms); }
.an-demo .in-chart.is-drawn .pts circle { opacity: 1; }
.an-demo .in-chart .proj { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-dasharray: 3 6; stroke-linecap: round; opacity: 0; transition: opacity 0.5s; }
.an-demo .in-chart .projtxt { fill: var(--text); font-weight: var(--fw-bold); opacity: 0; transition: opacity 0.5s; }
.an-demo .in-chart .ring { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: 0; transform: scale(0.5); transform-box: fill-box; transform-origin: center; transition: opacity 0.4s, transform 0.5s var(--ease); }
.an-demo .in-chart.is-proj .proj, .an-demo .in-chart.is-proj .projtxt { opacity: 1; }
.an-demo .in-chart.is-proj .ring { opacity: 1; transform: none; }
.an-demo .in-chart.is-hl .line, .an-demo .in-chart.is-hl .proj { stroke: var(--accent); }
.an-demo .in-tip { position: absolute; top: 0; left: 0; padding: 0.3em 0.7em; border-radius: calc(var(--r-16) / 2); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.84em; font-weight: var(--fw-semibold); white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - var(--sp-2))); }
.an-demo .in-tip[hidden] { display: none; }
.an-demo .in-ins { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.an-demo .in-ins li { transition: opacity 0.4s calc(var(--i, 0) * 220ms), transform 0.4s calc(var(--i, 0) * 220ms); }
.an-demo .in-ins.is-off li { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .in-ins button { display: flex; align-items: flex-start; gap: var(--sp-2); width: 100%; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); text-align: left; transition: border-color 0.2s; }
.an-demo .in-ins button:hover, .an-demo .in-ins button[aria-pressed="true"] { border-color: var(--text); }
.an-demo .in-ins svg { flex: none; width: 1.3em; height: 1.3em; margin-top: 0.1em; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.an-demo .in-ins b { display: block; }
.an-demo .in-ins small { display: block; color: var(--text-muted); font-size: 0.9em; }
.an-demo .in-insempty { top: 3.4em; }

/* Resolve issues faster: the service order, the timeline and the mechanic's job */
@container indesk (width >= 34rem) {
  .an-demo .in-rs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-demo .in-rs > [data-panel="obs"] { grid-row: span 2; }
}
.an-demo .in-so { transition: opacity 0.4s; }
.an-demo .in-so.is-off { opacity: 0; pointer-events: none; }
.an-demo .in-soempty { top: 3.6em; }
.an-demo .in-tl { position: relative; display: grid; gap: var(--sp-3); padding-left: 1.4em; }
.an-demo .in-tl::before { content: ""; position: absolute; top: 0.45em; bottom: 0.45em; left: 0.38em; width: var(--focus-width); background: var(--hairline); }
.an-demo .in-tl li { position: relative; opacity: 0.35; transition: opacity 0.4s; }
.an-demo .in-tl li::before { content: ""; position: absolute; top: 0.3em; left: -1.32em; width: 0.8em; height: 0.8em; border: var(--focus-width) solid var(--border); border-radius: var(--r-full); background: var(--surface); transition: background-color 0.3s, border-color 0.3s; }
.an-demo .in-tl li.is-on { opacity: 1; }
.an-demo .in-tl li.is-on::before { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .in-tl li[data-t="done"].is-on::before { border-color: var(--accent); background: var(--accent); }
.an-demo .in-tl b { display: block; }
.an-demo .in-tl small { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .in-job { padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-16); transition: opacity 0.4s, transform 0.4s, border-color 0.3s, background-color 0.6s; }
.an-demo .in-job.is-off { opacity: 0; pointer-events: none; transform: translateY(calc(-1 * var(--sp-2))); }
.an-demo .in-job.is-new { border-color: var(--text); background: var(--action-subtle); }
.an-demo .in-job-h { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.an-demo .in-jobempty { top: var(--sp-4); right: var(--sp-4); left: var(--sp-4); }
.an-demo .in-oldjob { margin-top: var(--sp-3); opacity: 0.7; }

@container dm (width >= 37.5rem) {
  .an-demo .in-board { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; justify-items: stretch; gap: var(--sp-6); }
  .an-demo .in-board--solo { grid-template-columns: minmax(0, 1fr); }
}
@container dm (width < 37.5rem) {
  .an-demo .in-board.is-phone-first > .in-phone { order: -1; }
  .an-demo .in-body, .an-demo .in-doc { padding: var(--sp-4); }
  .an-demo .in-tools { padding: var(--sp-2) var(--sp-4); }
}

/* ---------- Sales screens (A365 Sales, 30 Nov 2026) ----------
   Record screens reuse the contract parts (ct-*, ctm-*) and the Inspections table (in-t); the rest is sl-*.
   Stage shades run from light to dark grey; pale red marks what just changed, as on the other demos. */
.an-demo--wide.is-camera .an-demo__canvas { width: max(calc(100% - 2 * var(--dm-pad)), 60rem); }
.an-demo .sl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-5); }
.an-demo .sl-grid > * { min-width: 0; }
.an-demo .sl-sl { margin-bottom: var(--sp-1); color: var(--text-muted); font-size: 0.82em; font-weight: var(--fw-bold); }
.an-demo .sl-s0 { --st: var(--hairline); }
.an-demo .sl-s1 { --st: var(--border); }
.an-demo .sl-s2 { --st: var(--text-muted); }
.an-demo .sl-s3 { --st: var(--surface-inverse); }
.an-demo .sl-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
:root .an-demo .sl-chip { display: inline-flex; align-items: center; min-height: 2.3em; gap: var(--sp-2); padding: 0.35em 0.9em; border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: 0.9em; font-weight: var(--fw-semibold); line-height: 1.25; text-align: left; transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.15s; }
:root .an-demo .sl-chip:hover { border-color: var(--border); }
:root .an-demo .sl-chip[aria-pressed="true"] { border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sl-chip.is-press { transform: scale(0.94); }
.an-demo .sl-chip .own { display: none; color: var(--text-muted); font-size: 0.88em; font-weight: var(--fw-regular); }
.an-demo .sl-chip[aria-pressed="true"] .own { color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); }
.an-demo .sl-chip > i { flex: none; width: 0.6em; height: 0.6em; border-radius: var(--r-full); background: var(--border); transition: background-color 0.25s; }
.an-demo .sl-chip[aria-pressed="true"] > i { background: var(--accent); }
.an-demo .sl-val { display: inline-block; margin: -0.1em -0.45em; padding: 0.1em 0.45em; border-radius: calc(var(--r-16) / 3); transition: background-color 0.6s; }
.an-demo .sl-val.is-hot, .an-demo .sl-hot { background: var(--action-subtle) !important; transition: background-color 0.15s !important; }
.an-demo .sl-pop { animation: mo-pop 0.5s var(--ease); }
.an-demo .ct-pill.is-done { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .ct-pill.is-red { background: var(--danger); color: var(--danger-on); }
.an-demo .ct-pill[hidden] { display: none; }
.an-demo .sl-t td { white-space: nowrap; }
.an-demo .sl-t .num { text-align: right; }
.an-demo .sl-acc { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .sl-empty { display: grid; place-items: center; padding: var(--sp-3); border: 1px dashed var(--border); border-radius: calc(var(--r-16) * 0.6); color: var(--text-muted); font-size: 0.9em; text-align: center; }
.an-demo .sl-empty[hidden] { display: none; }
@keyframes sl-in { from { opacity: 0; transform: translateY(var(--sp-1)); } }

/* Drive sales growth: filters, KPI tiles, stages, territories, the deal and the table */
.an-demo .sl-dash { grid-template-areas: "side" "kpi" "donut" "terr" "table" "deal"; }
.an-demo .sl-dash [data-panel="side"] { grid-area: side; }
.an-demo .sl-dash [data-panel="kpi"] { grid-area: kpi; }
.an-demo .sl-dash [data-panel="donut"] { grid-area: donut; }
.an-demo .sl-dash [data-panel="terr"] { grid-area: terr; }
.an-demo .sl-dash [data-panel="deal"] { grid-area: deal; }
.an-demo .sl-dash [data-panel="table"] { grid-area: table; }
/* Tap targets: at least 24px tall, with room between them (WCAG 2.5.8) */
:root .an-demo .sl-reset { display: inline-flex; align-items: center; min-height: 2.3em; }
.an-demo .sl-reset { color: var(--text-muted); font-size: 0.93em; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 0.2em; }
.an-demo .sl-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.an-demo .sl-kpi { min-width: 0; padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); transition: background-color 0.6s, color 0.6s; }
.an-demo .sl-kpi span { display: block; min-height: 2.5em; color: var(--text-muted); font-size: 0.82em; line-height: 1.25; }
.an-demo .sl-kpi b { display: block; margin-top: 0.15em; font-size: 1.5em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-h2); white-space: nowrap; }
.an-demo .sl-kpi.key { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sl-kpi.key span { color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); }
.an-demo .sl-kpi.is-hot { background: var(--action-subtle); color: var(--text); transition: background-color 0.15s, color 0.15s; }
.an-demo .sl-kpi.is-hot span { color: var(--text-muted); }
.an-demo .sl-donut { display: grid; grid-template-columns: 8.3em minmax(0, 1fr); align-items: center; gap: var(--sp-4); }
.an-demo .sl-ring { position: relative; width: 8.3em; height: 8.3em; }
.an-demo .sl-ring svg { width: 100%; height: 100%; }
.an-demo .sl-ring .trk { fill: none; stroke: var(--surface-muted); stroke-width: 6.5; }
.an-demo .sl-seg { fill: none; stroke: var(--st); stroke-width: 6.5; transition: stroke-dasharray 0.8s var(--ease), stroke-dashoffset 0.8s var(--ease), opacity 0.3s; }
.an-demo .sl-seg.is-dim { opacity: 0.2; }
.an-demo .is-empty .sl-seg { stroke-dasharray: 0 100 !important; stroke-dashoffset: 0 !important; }
.an-demo .sl-mid { position: absolute; inset: 0; display: grid; place-content: center; line-height: 1.1; text-align: center; }
.an-demo .sl-mid b { font-size: 1.85em; font-variant-numeric: tabular-nums; }
.an-demo .sl-mid span { color: var(--text-muted); font-size: 0.8em; }
.an-demo .sl-legend { display: grid; gap: var(--sp-2); }
/* A narrow stage card puts the legend under the ring */
.an-demo .sl-dash [data-panel="donut"] { container: sldonut / inline-size; }
@container sldonut (width < 22em) { .an-demo .sl-donut { grid-template-columns: minmax(0, 1fr); justify-items: center; } .an-demo .sl-legend { width: 100%; } }
:root .an-demo .sl-legend .sl-chip { width: 100%; min-height: 2.6em; padding: 0.4em 0.7em; border-radius: calc(var(--r-16) * 0.6); }
.an-demo .sl-legend .sl-chip > i { border-radius: 0.2em; background: var(--st); box-shadow: 0 0 0 1px var(--surface); }
.an-demo .sl-legend .tx { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-legend b { font-variant-numeric: tabular-nums; }
.an-demo .sl-chart { position: relative; padding-left: 2.9em; }
.an-demo .sl-plot { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 10.7em; margin-top: var(--sp-4); border-bottom: 1px solid var(--border); }
.an-demo .sl-gl { position: absolute; right: 0; left: 0; border-top: 1px dashed var(--hairline); }
.an-demo .sl-yl { position: absolute; left: -3.6em; color: var(--text-muted); font-size: 0.8em; transform: translateY(50%); }
:root .an-demo .sl-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; border-radius: calc(var(--r-16) / 3) calc(var(--r-16) / 3) 0 0; transition: opacity 0.3s; }
.an-demo .sl-col.is-dim { opacity: 0.28; }
.an-demo .sl-colbar { display: block; width: clamp(1.1em, 44%, 2.9em); height: calc(var(--h) * 100%); border-radius: 0.3em 0.3em 0 0; background: var(--surface-inverse); transform-origin: bottom; transition: height 0.7s var(--ease), transform 0.8s var(--ease) calc(var(--i, 0) * 90ms); }
.an-demo .sl-colv { position: absolute; right: 0; bottom: calc(var(--h) * 100% + 0.3em); left: 0; font-size: 0.8em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; text-align: center; transition: bottom 0.7s var(--ease), opacity 0.4s 0.6s; }
.an-demo .sl-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; clip-path: inset(-10% -10% -10% -10%); transition: clip-path 1s 0.5s, opacity 0.25s; }
.an-demo .sl-line polyline, .an-demo .sl-line path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.an-demo .sl-line.is-swap { opacity: 0; }
.an-demo .sl-dot { position: absolute; width: 0.7em; height: 0.7em; margin: 0 0 -0.35em -0.35em; border: 0.18em solid var(--accent); border-radius: var(--r-full); background: var(--surface); pointer-events: none; transition: bottom 0.7s var(--ease), opacity 0.3s calc(0.6s + var(--i, 0) * 120ms); }
.an-demo .is-empty .sl-colbar { transform: scaleY(0); }
.an-demo .is-empty .sl-colv, .an-demo .is-empty .sl-dot { opacity: 0; transition: none; }
.an-demo .is-empty .sl-line { clip-path: inset(-10% 100% -10% -10%); transition: none; }
.an-demo .sl-xl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--sp-1); font-size: 0.82em; font-weight: var(--fw-bold); line-height: 1.25; text-align: center; }
.an-demo .sl-xl small { display: block; color: var(--text-muted); font-weight: var(--fw-regular); }
.an-demo .sl-key { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-3); font-size: 0.82em; font-weight: var(--fw-bold); }
.an-demo .sl-key i { display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.4em; border-radius: 0.15em; background: var(--surface-inverse); vertical-align: -0.05em; }
.an-demo .sl-key i.ln { width: 1em; height: 0.2em; background: var(--accent); vertical-align: 0.2em; }
.an-demo .sl-tw { min-height: 35em; }
.an-demo .sl-t tbody tr { height: 3.35em; }
.an-demo .sl-t tbody tr[data-id] { cursor: pointer; }
.an-demo .sl-t tbody tr[data-id]:hover td { background: var(--surface-muted); }
.an-demo .sl-t tr.is-sel td { background: var(--surface-muted); }
.an-demo .sl-t tr.is-new td { background: var(--action-subtle); transition: background-color 0.2s; }
.an-demo .sl-t .none td { height: 8.5em; color: var(--text-muted); text-align: center; white-space: normal; }
.an-demo .sl-t .is-fresh tr { animation: sl-in 0.4s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.an-demo .is-empty .sl-t td { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .sl-t td { transition: background-color 1.2s, opacity 0.4s calc(var(--i, 0) * 60ms), transform 0.4s calc(var(--i, 0) * 60ms); }
:root .an-demo .sl-sort { display: inline-flex; align-items: flex-end; gap: 0.2em; color: inherit; }
.an-demo .sl-sort::after { content: "↕"; font-size: 0.8em; opacity: 0.45; }
.an-demo th[aria-sort] .sl-sort { color: var(--text); }
.an-demo th[aria-sort="ascending"] .sl-sort::after { content: "↑"; opacity: 1; }
.an-demo th[aria-sort="descending"] .sl-sort::after { content: "↓"; opacity: 1; }
:root .an-demo .sl-oname { display: block; font-weight: var(--fw-bold); text-align: left; }
.an-demo .sl-stg { display: inline-flex; align-items: center; gap: 0.4em; font-weight: var(--fw-semibold); }
.an-demo .sl-stg i { width: 0.65em; height: 0.65em; border-radius: 0.2em; background: var(--st); box-shadow: 0 0 0 1px var(--hairline); }
.an-demo .sl-days { display: inline-block; min-width: 2.2em; padding: 0.15em 0.6em; border-radius: var(--r-full); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; text-align: center; transition: background-color 0.3s, color 0.3s; }
.an-demo .sl-days.is-stale { background: var(--danger); color: var(--danger-on); }
.an-demo .sl-days.is-flag { animation: sl-flag 0.9s ease 2; }
@keyframes sl-flag { 40% { box-shadow: 0 0 0 0.4em var(--action-subtle); transform: scale(1.25); } }
.an-demo .sl-detail { display: grid; align-content: start; min-height: 25.9em; }
.an-demo .sl-detail > * { animation: sl-in 0.4s var(--ease); }
.an-demo .sl-detail > .sl-empty { min-height: 25.9em; }
.an-demo .sl-dn { overflow: hidden; font-size: 1.2em; font-weight: var(--fw-bold); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-da { overflow: hidden; color: var(--text-muted); font-size: 0.9em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-1); margin: var(--sp-3) 0; }
.an-demo .sl-path li { display: grid; gap: var(--sp-1); min-width: 0; color: var(--text-muted); font-size: 0.75em; }
.an-demo .sl-path i { display: block; height: 0.45em; border-radius: var(--r-full); background: var(--hairline); transition: background-color 0.4s; }
.an-demo .sl-path span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-path .is-done i { background: var(--surface-inverse); }
.an-demo .sl-path .is-cur i { background: var(--accent); }
.an-demo .sl-path .is-cur span { color: var(--text); font-weight: var(--fw-bold); }
.an-demo .sl-detail .ct-fields dd { transition: background-color 0.5s; }
.an-demo .sl-detail .ct-fields dd.is-hot { background: var(--action-subtle); transition: background-color 0.15s; }
.an-demo .sl-detail .in-dbtn { margin-top: var(--sp-3); }
.an-demo .sl-detail .ct-note { min-height: 2.4em; }
@container dm (width >= 37.5rem) {
  .an-demo .sl-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "side side" "kpi kpi" "donut terr" "table table" "deal deal"; }
  .an-demo .sl-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container dm (width >= 56.25rem) {
  .an-demo .sl-dash { grid-template-columns: 13.3em minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "side kpi kpi kpi" "side donut terr deal" "side table table table"; }
  .an-demo .sl-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .an-demo .sl-kpi { padding: var(--sp-2); }
  .an-demo .sl-kpi b { font-size: 1.15em; }
  .an-demo [data-panel="side"] .sl-chips { flex-direction: column; flex-wrap: nowrap; }
  :root .an-demo [data-panel="side"] .sl-chip { width: 100%; min-height: 3em; padding: 0.5em 0.8em; border-radius: calc(var(--r-16) * 0.6); }
  .an-demo [data-panel="side"] .sl-chip .tx { display: grid; }
  .an-demo [data-panel="side"] .sl-chip .own { display: block; }
}

/* Get insights: region slicer, gauges, monthly trend, district tiles and rows, AI insights */
.an-demo .sl-slicer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--hairline); background: var(--surface); transition: background-color 0.6s; }
.an-demo.is-focus .sl-slicer { background: color-mix(in srgb, var(--hairline) 60%, var(--surface)); }
.an-demo .sl-slab { font-size: 0.86em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .sl-slicer .sl-chips { margin: 0; }
.an-demo .sl-ftag { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; color: var(--text-muted); font-size: 0.9em; white-space: nowrap; }
.an-demo .sl-ftag b { color: var(--text); }
.an-demo .sl-rep { grid-template-areas: "k" "t" "m" "d" "i"; }
.an-demo .sl-rep [data-panel="kpi"] { grid-area: k; }
.an-demo .sl-rep [data-panel="trend"] { grid-area: t; }
.an-demo .sl-rep [data-panel="map"] { grid-area: m; }
.an-demo .sl-rep [data-panel="dist"] { grid-area: d; }
.an-demo .sl-rep [data-panel="ins"] { grid-area: i; }
.an-demo .sl-gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.an-demo .sl-gauge { min-width: 0; text-align: center; }
.an-demo .sl-gw { position: relative; }
.an-demo .sl-gw svg { width: 100%; height: auto; overflow: visible; }
.an-demo .sl-gw .trk { fill: none; stroke: var(--surface-muted); stroke-width: 11; }
.an-demo .sl-arc { fill: none; stroke: var(--surface-inverse); stroke-width: 11; stroke-dasharray: 100 100; transition: stroke-dashoffset 1.2s var(--ease); }
.an-demo .sl-gw .tick { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; transition: opacity 0.4s; }
.an-demo .is-empty .sl-arc { stroke-dashoffset: 100 !important; }
.an-demo .is-empty .sl-gw .tick { opacity: 0; }
.an-demo .sl-gv { position: absolute; right: 0; bottom: 0.1em; left: 0; font-size: 1.55em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-h2); line-height: 1; }
.an-demo .sl-gl2 { display: block; margin-top: var(--sp-2); font-size: 0.9em; font-weight: var(--fw-bold); }
.an-demo .sl-gs { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.82em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-trend { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 2.7em; gap: 0 var(--sp-1); }
.an-demo .sl-yax { position: relative; color: var(--text-muted); font-size: 0.75em; font-variant-numeric: tabular-nums; }
.an-demo .sl-yax span { position: absolute; white-space: nowrap; transform: translateY(50%); }
.an-demo .sl-yax.l span { right: 0; }
.an-demo .sl-yax.r span { left: 0; }
.an-demo .sl-tplot { position: relative; height: 10.7em; border-bottom: 1px solid var(--border); }
.an-demo .sl-band { position: absolute; top: -0.4em; right: 0; bottom: 0; left: 50%; border-radius: 0.4em 0.4em 0 0; background: var(--action-subtle); opacity: 0; transition: opacity 0.4s; }
.an-demo .sl-tcols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 0.3em; }
:root .an-demo .sl-tcol { position: relative; display: flex; flex: 1 1 0; align-items: flex-end; justify-content: center; min-width: 0; height: 100%; border-radius: 0.3em; }
.an-demo .sl-tcol i { display: block; width: min(72%, 1.6em); border-radius: 0.2em 0.2em 0 0; background: var(--border); transform-origin: bottom; transition: height 0.7s var(--ease), transform 0.8s var(--ease) calc(var(--i, 0) * 60ms), background-color 0.3s; }
.an-demo .is-empty .sl-tcol i { transform: scaleY(0); }
.an-demo .sl-tcol:hover i, .an-demo .sl-tcol.is-act i { background: var(--surface-inverse); }
.an-demo .sl-mlab { position: absolute; right: -0.3em; bottom: -1.7em; left: -0.3em; color: var(--text-muted); font-size: 0.78em; text-align: center; }
.an-demo .sl-tline { position: absolute; inset: 0; pointer-events: none; clip-path: inset(-10% -10% -10% -10%); transition: clip-path 1.4s ease 0.3s; }
.an-demo .is-empty .sl-tline { clip-path: inset(-10% 100% -10% -10%); }
.an-demo .sl-tline svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.an-demo .sl-tline path { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke 0.3s; }
.an-demo .sl-tdot { position: absolute; width: 0.65em; height: 0.65em; margin: 0 0 -0.32em -0.32em; border: 0.15em solid var(--text); border-radius: var(--r-full); background: var(--surface); transition: border-color 0.3s; }
.an-demo .sl-tleg { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-top: 2.3em; font-size: 0.86em; font-weight: var(--fw-bold); }
.an-demo .sl-tleg i { display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.4em; border-radius: 0.15em; background: var(--border); vertical-align: -0.05em; }
.an-demo .sl-tleg i.ln { width: 1em; height: 0.2em; background: var(--text); vertical-align: 0.2em; }
.an-demo .sl-tleg i.bd { background: var(--action-subtle); }
.an-demo .sl-tleg .bdk { opacity: 0; transition: opacity 0.4s; }
.an-demo .is-mark .sl-band, .an-demo .is-mark .sl-tleg .bdk { opacity: 1; }
.an-demo .is-mark .sl-tline path { stroke: var(--accent); }
.an-demo .is-mark .sl-tdot { border-color: var(--accent); }
.an-demo .sl-tip { position: absolute; top: 0; left: 0; z-index: 3; padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.86em; line-height: 1.55; white-space: nowrap; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% - var(--sp-2))); transition: opacity 0.2s; }
.an-demo .sl-tip.is-on { opacity: 1; }
.an-demo .sl-tip strong, .an-demo .sl-tip span { display: block; }
.an-demo .sl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.an-demo .sl-rcol { display: grid; gap: var(--sp-1); min-width: 0; }
.an-demo .sl-rcol > span { color: var(--text-muted); font-size: 0.75em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-align: center; text-transform: uppercase; }
:root .an-demo .sl-tile { display: block; width: 100%; border-radius: calc(var(--r-16) * 0.6); transition: opacity 0.4s, transform 0.15s; }
.an-demo .sl-tile.is-dim { opacity: 0.3; }
.an-demo .sl-tile.is-press { transform: scale(0.95); }
.an-demo .sl-tf { display: grid; place-items: center; align-content: center; height: 4.4em; border-radius: calc(var(--r-16) * 0.6); background: color-mix(in srgb, var(--text-muted) var(--sh, 0%), var(--surface-muted)); box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color 0.6s, box-shadow 0.3s; }
.an-demo .sl-tile:hover .sl-tf { box-shadow: inset 0 0 0 1px var(--text); }
.an-demo .sl-tile[aria-pressed="true"] .sl-tf { box-shadow: inset 0 0 0 0.2em var(--accent); }
.an-demo .sl-tf b { font-weight: var(--fw-bold); }
.an-demo .sl-tf small { font-size: 0.82em; font-variant-numeric: tabular-nums; transition: opacity 0.4s; }
.an-demo .is-empty .sl-tf { background: var(--surface-muted); }
.an-demo .is-empty .sl-tf small { opacity: 0; }
.an-demo .sl-mleg { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); color: var(--text-muted); font-size: 0.78em; }
.an-demo .sl-mleg i { flex: 0 0 5em; height: 0.55em; border-radius: var(--r-full); background: linear-gradient(90deg, var(--surface-muted), var(--text-muted)); }
.an-demo .sl-dhead, .an-demo .sl-drow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 3.3em 3.3em; align-items: center; gap: var(--sp-2); }
.an-demo .sl-dhead { padding: 0 var(--sp-2) var(--sp-1); border-bottom: 1px solid var(--hairline); color: var(--text-muted); font-size: 0.78em; font-weight: var(--fw-semibold); }
.an-demo .sl-dhead span:nth-child(n+3) { text-align: right; }
.an-demo .sl-dl { display: grid; grid-template-columns: minmax(0, 1fr); }
.an-demo .sl-rg { padding: var(--sp-2) var(--sp-2) 0; color: var(--text-muted); font-size: 0.75em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
:root .an-demo .sl-drow { width: 100%; padding: 0.4em var(--sp-2); border-radius: calc(var(--r-16) / 2); font-size: 0.93em; text-align: left; transition: opacity 0.4s, background-color 0.3s; }
:root .an-demo .sl-drow:hover { background: var(--surface-muted); }
:root .an-demo .sl-drow[aria-pressed="true"] { background: var(--action-subtle); }
.an-demo .sl-drow.is-dim { opacity: 0.35; }
.an-demo .sl-drow b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-sb { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.an-demo .sl-strk { flex: 1; min-width: 0; height: 0.55em; overflow: hidden; border-radius: var(--r-full); background: var(--surface-muted); }
.an-demo .sl-strk i { display: block; height: 100%; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 0.8s var(--ease) calc(var(--i, 0) * 60ms); }
.an-demo .is-empty .sl-strk i { width: 0 !important; }
.an-demo .sl-sv { flex: none; min-width: 2.7em; font-size: 0.86em; font-variant-numeric: tabular-nums; text-align: right; }
.an-demo .sl-dd, .an-demo .sl-dg { font-size: 0.9em; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; text-align: right; transition: opacity 0.4s; }
.an-demo .sl-neg { color: var(--danger); }
.an-demo .is-empty .sl-sv, .an-demo .is-empty .sl-dd, .an-demo .is-empty .sl-dg { opacity: 0; }
.an-demo .sl-big { margin-bottom: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: calc(var(--r-16) * 0.75); background: var(--surface-muted); }
.an-demo .sl-big .lab { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); color: var(--text-muted); font-size: 0.86em; }
.an-demo .sl-big b { display: block; margin: 0.15em 0; font-size: 2.2em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-h2); line-height: 1.2; }
.an-demo .sl-big small { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.82em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-iw { position: relative; margin-bottom: var(--sp-3); }
.an-demo .sl-iw .in-ins { margin: 0; }
.an-demo .sl-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); padding: var(--sp-2); border: 1px dashed var(--border); border-radius: calc(var(--r-16) * 0.6); color: var(--text-muted); font-size: 0.9em; text-align: center; transition: opacity 0.3s; }
.an-demo .sl-wait.is-off { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }
.an-demo .sl-wait i { flex: none; width: 0.55em; height: 0.55em; border-radius: var(--r-full); background: var(--accent); animation: mo-pulse 1s ease-in-out infinite; }
.an-demo .sl-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.an-demo .sl-rep .ct-note { min-height: 5.2em; }
@container dm (width >= 37.5rem) {
  .an-demo .sl-rep { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "k i" "t t" "m d"; }
}
@container dm (width >= 56.25rem) {
  .an-demo .sl-rep { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr) minmax(0, 0.95fr); grid-template-areas: "k t i" "m d i"; }
}
@container dm (width < 37.5rem) { .an-demo .sl-slicer { padding: var(--sp-3) var(--sp-4); } .an-demo .sl-ftag { width: 100%; justify-content: space-between; margin-left: 0; } }

/* Quote faster: the model, its spec sheet and the quote */
@container dm (width >= 37.5rem) {
  .an-demo .sl-qlay { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .an-demo .sl-qlay [data-panel="specs"] { grid-row: 2; grid-column: 1 / -1; }
}
@container dm (width >= 56.25rem) {
  .an-demo .sl-qlay { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr) minmax(0, 1fr); }
  .an-demo .sl-qlay [data-panel="specs"] { grid-row: auto; grid-column: auto; }
}
.an-demo .sl-hero { margin-bottom: var(--sp-3); padding: var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); box-shadow: inset 0 var(--focus-width) var(--a-yellow); }
.an-demo .sl-hero-t { font-size: 1.7em; font-weight: var(--fw-bold); letter-spacing: var(--ls-h2); line-height: 1.1; }
.an-demo .sl-hero-s { margin: 0.15em 0 var(--sp-2); color: var(--text-muted); font-size: 0.93em; }
.an-demo .sl-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-3); }
.an-demo .sl-tags span { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.2em 0.7em; border-radius: var(--r-full); background: var(--surface); font-size: 0.82em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .sl-swatch { width: 0.7em; height: 0.7em; border-radius: var(--r-full); background: var(--a-yellow); box-shadow: 0 0 0 1px var(--hairline); }
.an-demo .sl-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.an-demo .sl-facts > div { min-width: 0; padding: var(--sp-2); border-radius: calc(var(--r-16) / 2); background: var(--surface); }
.an-demo .sl-facts dt { overflow: hidden; color: var(--text-muted); font-size: 0.82em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-facts dd { font-size: 1.2em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-demo .sl-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--hairline); }
.an-demo .sl-price small { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .sl-price b { font-size: 1.4em; font-variant-numeric: tabular-nums; }
.an-demo .sl-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0 var(--sp-2); }
.an-demo .sl-cats { display: grid; align-content: start; gap: var(--sp-1); min-width: 0; }
.an-demo .sl-cat { border-radius: calc(var(--r-16) / 2); background: var(--surface-muted); transition: background-color 0.3s, box-shadow 0.3s, opacity 0.4s calc(var(--i, 0) * 45ms), transform 0.4s calc(var(--i, 0) * 45ms); }
.an-demo .sl-specs.is-off .sl-cat { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .sl-cat:hover { background: var(--hairline); }
.an-demo .sl-cat.is-open { background: var(--surface); box-shadow: 0 0 0 1px var(--text); }
:root .an-demo .sl-cath { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 2.45em; padding: 0.5em 0.7em; border-radius: calc(var(--r-16) / 2); font-size: 0.93em; font-weight: var(--fw-semibold); line-height: 1.25; text-align: left; }
.an-demo .sl-plus { position: relative; flex: none; width: 0.8em; height: 0.8em; }
.an-demo .sl-plus::before, .an-demo .sl-plus::after { content: ""; position: absolute; top: calc(50% - 0.07em); left: 0; width: 100%; height: 0.14em; border-radius: 0.07em; background: var(--text); transition: transform 0.3s; }
.an-demo .sl-plus::after { transform: rotate(90deg); }
.an-demo .sl-cat.is-open .sl-plus::after { transform: rotate(0); }
.an-demo .sl-catp { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.an-demo .sl-cat.is-open .sl-catp { grid-template-rows: 1fr; }
.an-demo .sl-catin { min-height: 0; overflow: hidden; }
.an-demo .sl-rows { display: grid; gap: 0.2em; padding: 0 0.4em 0.4em; }
.an-demo .sl-rows > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3em 0.7em; padding: 0.4em 0.6em; border-radius: 0.35em; background: var(--surface-muted); font-size: 0.9em; transition: background-color 0.5s, box-shadow 0.5s; }
.an-demo .sl-rows dd { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-demo .sl-rows > div.is-hl { background: var(--action-subtle); box-shadow: inset 0.2em 0 var(--accent); transition: background-color 0.2s, box-shadow 0.2s; }
.an-demo .sl-lines { display: grid; min-height: 6em; }
.an-demo .sl-qline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.15em var(--sp-3); padding: var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); animation: sl-in 0.45s var(--ease); transition: background-color 1.4s; }
.an-demo .sl-qline.is-new { background: var(--action-subtle); transition: background-color 0.2s; }
.an-demo .sl-qline .amt { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; text-align: right; }
.an-demo .sl-qline small { font-size: 0.86em; }
.an-demo .sl-qline .qty { color: var(--text-muted); font-size: 0.86em; text-align: right; }
.an-demo .sl-doc { display: inline-flex; grid-column: 1 / -1; justify-self: start; align-items: center; gap: 0.4em; margin-top: var(--sp-1); padding: 0.2em 0.7em 0.2em 0.55em; border-radius: var(--r-full); background: var(--surface); font-size: 0.82em; font-weight: var(--fw-bold); }
.an-demo .sl-doc i { width: 0.65em; height: 0.8em; border-radius: 0.15em; background: var(--accent); }
.an-demo .sl-qlay .ctm-sum { margin-top: var(--sp-3); }
.an-demo .ct-st.is-pop { animation: mo-pop 0.5s var(--ease); }

/* Tailor every deal: the fleet, its details, the deal type, kit and the quote */
@container dm (width >= 37.5rem) {
  .an-demo .sl-tlay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-demo .sl-tlay [data-panel="list"] { grid-column: 1 / -1; }
}
@container dm (width >= 68.75rem) {
  .an-demo .sl-tlay { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.05fr); }
  .an-demo .sl-tlay [data-panel="list"] { grid-column: 1 / 3; }
}
.an-demo .sl-count { margin-left: auto; color: var(--text-muted); font-size: 0.9em; }
.an-demo .sl-row { outline: none; cursor: pointer; }
.an-demo .sl-row:hover td, .an-demo .sl-row.is-press td { background: var(--surface-muted); }
.an-demo .sl-row[aria-selected="true"] td { background: var(--action-subtle); }
.an-demo .sl-row:focus-visible td { box-shadow: inset 0 var(--focus-width) var(--focus-ring), inset 0 calc(-1 * var(--focus-width)) var(--focus-ring); }
.an-demo .sl-row[hidden] { display: none; }
.an-demo .sl-row .id { font-weight: var(--fw-bold); }
.an-demo .sl-stat { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.2em 0.7em; border-radius: var(--r-full); background: var(--surface-muted); font-size: 0.82em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .sl-stat::before { content: ""; width: 0.45em; height: 0.45em; border-radius: var(--r-full); background: var(--border); }
.an-demo .sl-stat.av { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sl-stat.av::before { background: var(--text-on-dark); }
.an-demo .sl-stat.cf::before { background: var(--a-yellow); box-shadow: 0 0 0 1px var(--border); }
.an-demo .sl-stat.ac::before { background: var(--accent); }
.an-demo .sl-usage { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.an-demo .sl-usage b { font-size: 1.7em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-h2); }
.an-demo .sl-usage small { color: var(--text-muted); font-size: 0.86em; }
.an-demo .sl-meter { display: block; height: 0.45em; margin: var(--sp-2) 0 var(--sp-1); overflow: hidden; border-radius: var(--r-full); background: var(--surface-muted); }
.an-demo .sl-meter i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 0.6s var(--ease); }
.an-demo .sl-small { overflow: hidden; color: var(--text-muted); font-size: 0.86em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-res { display: grid; gap: var(--sp-1); min-height: 2.4em; }
.an-demo .sl-res li { overflow: hidden; padding: 0.5em 0.7em; border-radius: calc(var(--r-16) / 2); background: var(--surface-muted); font-size: 0.9em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-res li.none { border: 1px dashed var(--border); background: none; color: var(--text-muted); }
.an-demo .ct-fields dd.sl-hot { background: var(--action-subtle); }
.an-demo .sl-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
:root .an-demo .sl-seg .ctm-opt { justify-content: center; padding: 0.55em 0.4em; font-weight: var(--fw-bold); }
.an-demo .sl-box { display: grid; place-items: center; flex: none; width: 1.3em; height: 1.3em; border: 1px solid var(--border); border-radius: 0.35em; transition: border-color 0.2s, background-color 0.2s; }
.an-demo .sl-box::after { content: ""; width: 0.35em; height: 0.65em; border-right: 0.14em solid var(--text-on-dark); border-bottom: 0.14em solid var(--text-on-dark); transform: translateY(-0.07em) rotate(45deg) scale(0); transition: transform 0.2s var(--ease); }
.an-demo .ctm-opt[aria-checked="true"] .sl-box { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .ctm-opt[aria-checked="true"] .sl-box::after { transform: translateY(-0.07em) rotate(45deg) scale(1); }
.an-demo .sl-for { margin-bottom: var(--sp-3); overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-tlay .ctm-sum { margin-top: var(--sp-3); }
.an-demo .ct-btn.is-done[disabled] { opacity: 1; }

/* Track leads: the sales process bar, its stage card, the timeline and the side cards */
.an-demo .sl-rtop { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); }
.an-demo .sl-hf { display: flex; flex: none; gap: var(--sp-5); }
.an-demo .sl-hf > div { display: grid; justify-items: start; gap: 0.15em; }
.an-demo .sl-hf dt { color: var(--text-muted); font-size: 0.82em; }
.an-demo .sl-hf dd { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-demo .sl-lrec { position: relative; }
.an-demo .sl-bpf { margin: var(--sp-3) 0; padding: var(--sp-2) var(--sp-2) var(--sp-1); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.75); background: var(--surface); }
.an-demo .sl-bpf-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin: 0 var(--sp-1) var(--sp-2); font-size: 0.86em; }
.an-demo .sl-bpf-h b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-bpf-h span { color: var(--text-muted); white-space: nowrap; }
.an-demo .sl-bstages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.an-demo .sl-bsli { position: relative; min-width: 0; }
.an-demo .sl-bsli + .sl-bsli::before { content: ""; position: absolute; top: 1.1em; right: calc(50% + 1.2em); left: calc(-50% + 1.2em); height: 0.14em; border-radius: 0.07em; background: var(--hairline); transition: background-color 0.5s; }
.an-demo .sl-bsli.is-on::before { background: var(--accent); }
:root .an-demo .sl-bs { display: block; width: 100%; transition: transform 0.15s; }
.an-demo .sl-bs.is-press { transform: scale(0.94); }
.an-demo .sl-bs-in { display: grid; justify-items: center; gap: 0.2em; padding: 0.35em 0.15em 0.45em; border-radius: calc(var(--r-16) * 0.6); transition: background-color 0.25s; }
.an-demo .sl-bs:hover .sl-bs-in { background: var(--surface-muted); }
.an-demo .sl-bs[aria-expanded="true"] .sl-bs-in { background: var(--surface-muted); }
.an-demo .sl-dotb { position: relative; display: grid; place-items: center; width: 1.7em; height: 1.7em; border: 0.14em solid var(--border); border-radius: var(--r-full); background: var(--surface); transition: background-color 0.35s, border-color 0.35s; }
.an-demo .sl-dotb::after { content: ""; width: 0.65em; height: 0.35em; border-bottom: 0.14em solid var(--text-on-dark); border-left: 0.14em solid var(--text-on-dark); transform: rotate(-45deg) translate(0.05em, -0.05em) scale(0); transition: transform 0.35s var(--ease); }
.an-demo .sl-bs.is-cur .sl-dotb { border-color: var(--text); }
.an-demo .sl-bs.is-cur .sl-dotb::before { content: ""; position: absolute; inset: 0.25em; border-radius: var(--r-full); background: var(--text); }
.an-demo .sl-bs.is-done .sl-dotb { border-color: var(--accent); background: var(--accent); }
.an-demo .sl-bs.is-done .sl-dotb::after { transform: rotate(-45deg) translate(0.05em, -0.05em) scale(1); }
.an-demo .sl-bs.sl-pop .sl-dotb { animation: mo-pop 0.5s var(--ease); }
.an-demo .sl-bs-l { max-width: 100%; overflow: hidden; color: var(--text-muted); font-size: 0.9em; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-bs.is-cur .sl-bs-l, .an-demo .sl-bs.is-done .sl-bs-l { color: var(--text); }
.an-demo .sl-bs.is-cur .sl-bs-l { font-weight: var(--fw-bold); }
.an-demo .sl-bs-s { min-height: 1.4em; color: var(--text-muted); font-size: 0.75em; white-space: nowrap; }
.an-demo .sl-fly { position: absolute; top: 0; left: var(--sp-5); z-index: 4; width: min(22.9em, calc(100% - var(--sp-5))); padding: var(--sp-4); border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); text-align: left; }
.an-demo .sl-fly[hidden] { display: none; }
.an-demo .sl-fly::before { content: ""; position: absolute; top: -0.4em; left: var(--ax, 3em); width: 0.85em; height: 0.85em; margin-left: -0.43em; background: var(--surface); box-shadow: -1px -1px 0 var(--hairline); transform: rotate(45deg); }
.an-demo .sl-fly.is-in { animation: sl-in 0.3s var(--ease); }
.an-demo .sl-fly-h { display: flex; align-items: center; gap: var(--sp-2); }
.an-demo .sl-fly-t { flex: 1; min-width: 0; font-size: 1.15em; font-weight: var(--fw-bold); }
:root .an-demo .sl-x { display: grid; flex: none; place-items: center; width: 2em; height: 2em; border-radius: var(--r-full); color: var(--text-muted); font-size: 1.3em; line-height: 1; }
.an-demo .sl-fly-s { margin: 0.15em 0 var(--sp-3); color: var(--text-muted); font-size: 0.86em; }
.an-demo .sl-checks { display: grid; gap: var(--sp-1); }
.an-demo .sl-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.1em var(--sp-2); padding: var(--sp-2); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); transition: background-color 0.4s; }
.an-demo .sl-checks li b { color: var(--text-muted); font-size: 0.86em; font-weight: var(--fw-semibold); }
.an-demo .sl-checks li > span:last-child { grid-column: 2; overflow: hidden; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-tick { display: grid; grid-row: 1 / 3; place-items: center; width: 1.3em; height: 1.3em; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); }
.an-demo .sl-tick::after { content: ""; width: 0.55em; height: 0.3em; border-bottom: 0.14em solid var(--text-on-dark); border-left: 0.14em solid var(--text-on-dark); transform: rotate(-45deg) translate(0.05em, -0.05em) scale(0); }
.an-demo .sl-checks li.is-done .sl-tick { border-color: var(--accent); background: var(--accent); }
.an-demo .sl-checks li.is-done .sl-tick::after { transform: rotate(-45deg) translate(0.05em, -0.05em) scale(1); }
.an-demo .sl-checks.is-off li { opacity: 0.55; }
.an-demo .sl-swrow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-1); padding: var(--sp-2); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); font-weight: var(--fw-semibold); transition: background-color 0.4s; }
.an-demo .sl-swrow[hidden] { display: none; }
.an-demo .sl-swrow.is-hot { background: var(--action-subtle); }
:root .an-demo .sl-sw { display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0.15em; border-radius: var(--r-full); font-weight: var(--fw-bold); transition: transform 0.15s; }
:root .an-demo .sl-sw[disabled] { opacity: 0.55; cursor: default; }
.an-demo .sl-sw.is-press { transform: scale(0.94); }
.an-demo .sl-swt { position: relative; width: 2.6em; height: 1.45em; border-radius: var(--r-full); background: var(--border); transition: background-color 0.25s; }
.an-demo .sl-swt i { position: absolute; top: 0.15em; left: 0.15em; width: 1.15em; height: 1.15em; border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-1); transition: transform 0.25s var(--ease); }
.an-demo .sl-sw[aria-checked="true"] .sl-swt { background: var(--surface-inverse); }
.an-demo .sl-sw[aria-checked="true"] .sl-swt i { transform: translateX(1.15em); }
.an-demo .sl-fly-f { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-3); }
.an-demo .sl-fly-n { min-width: 0; color: var(--text-muted); font-size: 0.86em; line-height: 1.35; }
.an-demo .sl-llay .sl-side { display: grid; align-content: start; gap: var(--sp-4); min-width: 0; }
@container dm (width >= 37.5rem) {
  .an-demo .sl-llay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-demo .sl-llay .sl-side { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container dm (width >= 56.25rem) {
  .an-demo .sl-llay { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.95fr); }
  .an-demo .sl-llay .sl-side { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
}
.an-demo .sl-v { display: inline-block; transition: opacity 0.4s calc(var(--i, 0) * 90ms), transform 0.4s calc(var(--i, 0) * 90ms); }
.an-demo .is-empty .sl-v { opacity: 0; transform: translateY(0.3em); }
.an-demo .sl-status { display: inline-block; padding: 0.1em 0.7em; border: 1px solid var(--text); border-radius: var(--r-full); background: var(--surface); font-size: 0.86em; font-weight: var(--fw-bold); transition: background-color 0.3s, color 0.3s; }
.an-demo .sl-status.is-won { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sl-log { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-1); }
:root .an-demo .sl-in { flex: 1; min-width: 0; height: var(--btn-h-md); padding: 0 1em; border: 1px solid var(--hairline); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: 0.93em; outline: none; transition: border-color 0.2s; }
:root .an-demo .sl-in:focus { border-color: var(--text); }
:root .an-demo .ct-btn.ghost { background: var(--surface); color: var(--text); }
.an-demo .sl-tl { height: 22.7em; overflow: hidden; -webkit-mask-image: linear-gradient(var(--a-black) 82%, transparent); mask-image: linear-gradient(var(--a-black) 82%, transparent); }
.an-demo .sl-te { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--hairline); }
.an-demo .sl-te.is-new { animation: sl-in 0.55s var(--ease); }
.an-demo .sl-te.is-new .sl-tx { animation: sl-flash 1.6s ease; }
@keyframes sl-flash { 0%, 35% { background: var(--action-subtle); } }
.an-demo .sl-ti { display: grid; place-items: center; width: 2em; height: 2em; border-radius: var(--r-full); background: var(--surface-muted); color: var(--text); }
.an-demo .sl-ti svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .sl-te.t-lead .sl-ti { background: var(--action-subtle); }
.an-demo .sl-te.t-stage .sl-ti, .an-demo .sl-te.t-drive .sl-ti, .an-demo .sl-te.t-quote .sl-ti { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sl-te.t-won .sl-ti { background: var(--accent); color: var(--accent-on); }
.an-demo .sl-tx { min-width: 0; margin: 0 -0.4em; padding: 0 0.4em; border-radius: 0.5em; }
.an-demo .sl-tx b { display: block; font-weight: var(--fw-bold); }
.an-demo .sl-tx span { display: block; overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-tx small { display: block; color: var(--text-muted); font-size: 0.82em; }
.an-demo .sl-rev { margin-bottom: var(--sp-2); font-size: 2em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-h2); }
.an-demo .sl-rev small { display: block; color: var(--text-muted); font-size: 0.43em; font-weight: var(--fw-semibold); letter-spacing: normal; }
.an-demo .sl-llay .ctm-sum { padding-top: var(--sp-2); border-top: 1px solid var(--hairline); }
.an-demo .sl-drive { display: flex; align-items: center; gap: var(--sp-2); min-height: 4em; padding: var(--sp-2); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); }
.an-demo .sl-drive[hidden] { display: none; }
.an-demo .sl-drive.is-new { animation: sl-flash 1.6s ease; }
.an-demo .sl-drive .tx { flex: 1; min-width: 0; }
.an-demo .sl-drive b, .an-demo .sl-drive small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-drive small { color: var(--text-muted); font-size: 0.82em; }
.an-demo .sl-empty.sl-tall { min-height: 4em; }
.an-demo .sl-ppl { display: grid; gap: var(--sp-2); }
.an-demo .sl-ppl li { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.an-demo .sl-ppl li > span:last-child { min-width: 0; }
.an-demo .sl-ppl b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sl-ppl small { display: block; color: var(--text-muted); font-size: 0.82em; }
.an-demo .sl-av { display: grid; flex: none; place-items: center; width: 2em; height: 2em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.75em; font-weight: var(--fw-bold); }
.an-demo .sl-av.cus { background: var(--action-subtle); color: var(--text); }
.an-demo .sl-tools-sp { flex: 1; }
@container dm (width < 37.5rem) {
  .an-demo .sl-grid { padding: var(--sp-4); }
  .an-demo .sl-rtop { flex-wrap: wrap; }
  .an-demo .sl-hf { gap: var(--sp-4); }
  .an-demo .sl-fly { left: var(--sp-2); width: calc(100% - var(--sp-4)); }
}

/* ---------- Service Center screens (A365 Service Center, 30 Nov 2026) ----------
   Record screens reuse the contract parts (ct-*), the Inspections desk, phone and table (in-*) and the Sales
   chips (sl-*); the rest is sv-*. Booking shades run from light to dark grey; pale red marks what just
   changed, red marks a clash or what needs the customer, as on the other demos. */
.an-demo .sv-app { container: svapp / inline-size; }
.an-demo .sv-sp { flex: 1; }
.an-demo .sv-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); padding: var(--sp-5); }
.an-demo .sv-body > * { min-width: 0; }
.an-demo .sv-rec { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3) var(--sp-5); padding-bottom: var(--sp-4); }
.an-demo .sv-rec .ct-rec-type { margin-bottom: 0; }
.an-demo .sv-recr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.an-demo .sv-cn { overflow: hidden; color: var(--text-muted); font-size: 0.86em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .ct-st.is-wait { border-color: var(--danger); }
.an-demo .ct-st, .an-demo .ct-pill { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
@keyframes sv-in { from { opacity: 0; transform: translateY(calc(-1 * var(--sp-2))) scale(0.92); } }
.an-demo .sv-in { animation: sv-in 0.5s var(--ease); }

/* Work more efficiently: the queue, the mechanics' plan, absences and clashes */
@container svapp (width >= 46rem) {
  .an-demo .sv-wb { grid-template-columns: minmax(12em, 15em) minmax(0, 1fr); align-items: stretch; }
}
.an-demo .sv-count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: 0.5em; padding: 0 0.45em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.9em; letter-spacing: normal; vertical-align: 0.05em; transition: background-color 0.3s, color 0.3s; }
.an-demo .sv-count.is-zero { background: var(--hairline); color: var(--text-muted); }
.an-demo .sv-ql { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: var(--sp-2); min-height: 13.4em; }
@container svapp (width >= 46rem) { .an-demo .sv-ql { grid-template-columns: minmax(0, 1fr); min-height: 22em; } }
:root .an-demo .sv-tile, :root .an-demo .sv-blk { display: block; min-width: 0; padding: 0.55em 0.8em; border-radius: calc(var(--r-16) * 0.6); background: var(--hairline); color: var(--text); text-align: left; transition: background-color 0.3s, box-shadow 0.3s, opacity 0.3s, transform 0.15s; }
.an-demo .sv-tile { height: 3.9em; }
.an-demo .sv-tile[hidden], .an-demo .sv-blk[hidden] { display: none; }
.an-demo .sv-tile b, .an-demo .sv-blk b { display: block; overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-tile small, .an-demo .sv-blk small { display: block; overflow: hidden; font-size: 0.82em; opacity: 0.8; white-space: nowrap; text-overflow: ellipsis; }
:root .an-demo [data-c="caves"] { background: var(--surface-inverse); color: var(--text-on-dark); }
:root .an-demo [data-c="turtle"] { background: var(--hairline); }
:root .an-demo [data-c="forest"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--text); }
:root .an-demo [data-c="maple"] { background: var(--surface-muted); box-shadow: inset 0.3em 0 0 var(--accent); }
:root .an-demo [data-c="owl"] { background: var(--text-muted); color: var(--text-on-dark); }
.an-demo .sv-tile[aria-pressed="true"], .an-demo .sv-blk[aria-pressed="true"] { outline: var(--focus-width) solid var(--accent); outline-offset: 0.15em; }
.an-demo .sv-tile.is-press, .an-demo .sv-blk.is-press { transform: scale(0.96); }
.an-demo .sv-qempty { position: absolute; top: 0; right: 0; left: 0; padding: var(--sp-3); border: 1px dashed var(--border); border-radius: calc(var(--r-16) * 0.6); color: var(--text-muted); font-size: 0.9em; text-align: center; }
.an-demo .sv-qempty[hidden] { display: none; }
.an-demo .sv-pl { --rh: 5.4em; --lab: 12em; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); grid-template-rows: auto repeat(3, var(--rh)); }
@container svapp (width < 46rem) { .an-demo .sv-pl { --rh: 4.6em; --lab: 6.8em; } .an-demo .sv-hrs .c-odd { visibility: hidden; } }
.an-demo .sv-hrs { display: grid; grid-column: 2; grid-template-columns: repeat(8, minmax(0, 1fr)); padding-bottom: var(--sp-1); border-bottom: 1px solid var(--hairline); color: var(--text-muted); font-size: 0.82em; }
.an-demo .sv-hrs span { padding-left: 0.3em; border-left: 1px solid var(--hairline); }
.an-demo .sv-mech { display: flex; flex-direction: column; justify-content: center; gap: 0.25em; min-width: 0; padding-right: var(--sp-3); grid-column: 1; border-bottom: 1px solid var(--hairline); transition: background-color 0.4s; }
.an-demo .sv-mech b { overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-mech small { overflow: hidden; color: var(--text-muted); font-size: 0.82em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-mech small em { color: var(--text); font-style: normal; font-weight: var(--fw-bold); }
.an-demo .sv-cap { display: block; height: 0.45em; overflow: hidden; border-radius: var(--r-full); background: var(--surface-muted); }
.an-demo .sv-cap i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 0.7s var(--ease), background-color 0.3s; }
.an-demo .sv-cap.is-full i { background: var(--accent); }
.an-demo .sv-ov { position: relative; display: grid; grid-row: 2 / 5; grid-column: 2; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(3, var(--rh)); }
:root .an-demo .sv-slot { border-bottom: 1px solid var(--hairline); border-left: 1px solid var(--hairline); cursor: default; transition: background-color 0.2s; }
.an-demo.is-pick .sv-slot { background: color-mix(in srgb, var(--surface-muted) 60%, transparent); cursor: pointer; }
.an-demo.is-pick .sv-slot:hover, .an-demo .sv-slot.is-press { background: var(--action-subtle); }
.an-demo .sv-slot:focus-visible { outline-offset: calc(-1 * var(--focus-width)); }
:root .an-demo .sv-blk { position: absolute; top: calc(var(--m, 0) * var(--rh)); left: calc(var(--s, 0) / 8 * 100%); width: calc(var(--d, 1) / 8 * 100% - 0.4em); height: calc(var(--rh) - 1em); margin: 0.5em 0.2em 0; transition: left 0.55s var(--ease), top 0.55s var(--ease), background-color 0.3s, box-shadow 0.3s, opacity 0.3s, transform 0.15s; }
:root .an-demo .sv-blk.is-clash { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 var(--focus-width) var(--danger); }
.an-demo .sv-clash { display: none; overflow: hidden; color: var(--danger); font-size: 0.8em; font-weight: var(--fw-bold); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-blk.is-clash .sv-clash { display: block; }
.an-demo .sv-blk.is-clash small { display: none; }
.an-demo .sv-abs { position: absolute; top: calc(var(--m) * var(--rh)); left: calc(var(--s) / 8 * 100%); width: calc(var(--d) / 8 * 100% - 0.4em); height: calc(var(--rh) - 1em); margin: 0.5em 0.2em 0; padding: 0.55em 0.8em; border-radius: calc(var(--r-16) * 0.6); background: repeating-linear-gradient(135deg, var(--surface-muted) 0 0.5em, var(--hairline) 0.5em 1em); color: var(--text-muted); pointer-events: none; }
.an-demo .sv-abs b, .an-demo .sv-abs small { display: block; font-size: 0.86em; }
.an-demo .sv-legend { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-3); color: var(--text-muted); font-size: 0.82em; }
.an-demo .sv-legend span { display: inline-flex; align-items: center; gap: 0.45em; }
.an-demo .sv-legend i { width: 0.9em; height: 0.9em; border-radius: 0.2em; background: repeating-linear-gradient(135deg, var(--surface-muted) 0 0.2em, var(--border) 0.2em 0.4em); }
.an-demo .sv-legend i.c { background: var(--surface); box-shadow: inset 0 0 0 0.12em var(--danger); }

/* Handle service requests: the planning board, a booking's details and the timeslot booking */
.an-demo .sv-navrec { padding-top: var(--sp-3); }
.an-demo .sv-tsub { margin-left: 0.35em; color: var(--text-muted); font-size: 0.86em; font-weight: var(--fw-semibold); }
.an-demo .sv-pages { display: grid; padding: var(--sp-5); }
.an-demo .sv-page { grid-area: 1 / 1; min-width: 0; transition: opacity 0.3s 0.15s; }
.an-demo .sv-page[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.15s, visibility 0s 0.15s; }
.an-demo .sv-mt5 { margin-top: var(--sp-5); }
.an-demo .sv-pb { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.an-demo .sv-side { display: none; align-self: stretch; padding: var(--sp-4); }
@container svapp (width >= 52rem) {
  .an-demo .sv-pb { grid-template-columns: 13em minmax(0, 1fr); }
  .an-demo .sv-side { display: block; }
}
.an-demo .sv-mcal, .an-demo .sv-acal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.1em; font-size: 0.82em; text-align: center; }
.an-demo .sv-mcal > span, .an-demo .sv-mday, .an-demo .sv-acal > span { position: relative; display: grid; place-items: center; height: 2.2em; }
.an-demo .sv-mcal .wd, .an-demo .sv-acal .wd { color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-demo .sv-mcal .o, .an-demo .sv-acal .o { color: var(--text-muted); font-weight: var(--fw-regular); }
.an-demo .sv-mday span { display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: var(--r-full); font-weight: var(--fw-bold); transition: background-color 0.3s, color 0.3s; }
.an-demo .sv-mday.is-on span { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sv-mday::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 0.3em; height: 0.3em; margin-left: -0.15em; border-radius: var(--r-full); background: var(--accent); }
.an-demo .sv-boards { display: grid; gap: var(--sp-1); font-size: 0.93em; }
.an-demo .sv-boards li { padding: 0.35em 0.6em; border-radius: calc(var(--r-16) / 2); }
.an-demo .sv-boards li.on { background: var(--surface-muted); font-weight: var(--fw-bold); }
.an-demo .sv-boards li.on::before { content: "✓ "; color: var(--accent); }
.an-demo .sv-main { padding: 0 0 var(--sp-3); }
.an-demo .sv-btools { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--hairline); font-size: 0.93em; }
.an-demo .sv-bsel { padding: 0.25em 0.65em; border-radius: calc(var(--r-16) / 3); background: var(--surface-muted); font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .sv-bname { white-space: nowrap; }
.an-demo .sv-dnav { display: flex; align-items: center; gap: 0.3em; margin: 0 auto; font-weight: var(--fw-bold); white-space: nowrap; }
:root .an-demo .sv-arw { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: var(--r-full); font-size: 1.1em; line-height: 1; }
:root .an-demo .sv-arw:hover { background: var(--surface-muted); }
:root .an-demo .sv-arw[disabled] { color: var(--border); cursor: default; background: none; }
.an-demo .sv-blegend { display: flex; gap: var(--sp-3); color: var(--text-muted); font-size: 0.86em; white-space: nowrap; }
.an-demo .sv-blegend span { display: inline-flex; align-items: center; gap: 0.4em; }
.an-demo .sv-blegend i { width: 0.8em; height: 0.8em; border-left-width: 0.25em; border-left-style: solid; border-radius: 0.2em; }
@container svapp (width < 52rem) { .an-demo .sv-bname { display: none; } }
@container svapp (width < 66rem) { .an-demo .sv-blegend { display: none; } }
/* Booking shades: waiting for parts (pale red, red bar), in progress, scheduled, ready (dark) */
.an-demo .sv-s-wait { border-left-color: var(--accent); background: var(--action-subtle); color: var(--text); }
.an-demo .sv-s-prog { border-left-color: var(--text); background: var(--hairline); color: var(--text); }
.an-demo .sv-s-sched { border-left-color: var(--border); background: var(--surface-muted); color: var(--text); }
.an-demo .sv-s-ready { border-left-color: var(--accent); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sv-sched { --rh: 2.9em; position: relative; display: grid; grid-template-columns: 3.6em repeat(4, minmax(0, 1fr)); column-gap: var(--sp-2); padding: 0 var(--sp-3); }
@container svapp (width < 40rem) {
  .an-demo .sv-sched { grid-template-columns: 3.2em repeat(3, minmax(0, 1fr)); column-gap: var(--sp-1); padding: 0 var(--sp-2); }
  .an-demo .sv-sched .pool { display: none; }
}
.an-demo .sv-hd { position: relative; z-index: 1; min-width: 0; padding: 0.6em 0.4em 0.55em; border-radius: calc(var(--r-16) * 0.6); transition: background-color 0.4s, box-shadow 0.4s; }
.an-demo .sv-hd b { display: block; overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-hd small { display: block; color: var(--text-muted); font-size: 0.82em; }
.an-demo .sv-hcap { display: flex; align-items: center; gap: 0.4em; margin-top: 0.3em; font-size: 0.82em; font-weight: var(--fw-bold); white-space: nowrap; border-radius: calc(var(--r-16) / 3); transition: background-color 0.4s; }
.an-demo .sv-hcap > span:first-child { flex: none; display: inline-block; }
.an-demo .sv-meter { flex: 1; min-width: 1em; height: 0.3em; overflow: hidden; border-radius: var(--r-full); background: var(--surface-muted); }
.an-demo .sv-meter i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 0.8s var(--ease), background-color 0.3s; }
.an-demo .sv-meter i.is-full { background: var(--accent); }
.an-demo .sv-gut { position: relative; height: calc(var(--rh) * 9 + 0.6em); color: var(--text-muted); transition: opacity 0.4s; }
.an-demo .sv-gut span { position: absolute; top: calc(0.3em + var(--i) * var(--rh)); left: 0; transform: translateY(-50%); }
.an-demo .sv-gut i { font-size: 0.78em; font-style: normal; }
.an-demo .sv-col { position: relative; height: calc(var(--rh) * 9 + 0.6em); border-radius: calc(var(--r-16) / 2); background: repeating-linear-gradient(to bottom, var(--hairline) 0 1px, transparent 1px var(--rh)) 0 0.3em / 100% calc(var(--rh) * 9 + 1px) no-repeat; transition: opacity 0.4s; }
.an-demo .sv-col.pool { background-color: var(--surface-muted); }
.an-demo .sv-poolnote { position: absolute; top: 50%; right: var(--sp-2); left: var(--sp-2); color: var(--text-muted); font-size: 0.82em; text-align: center; transform: translateY(-50%); }
.an-demo.is-spot .sv-col, .an-demo.is-spot .sv-gut { opacity: 0.4; }
.an-demo.is-spot .sv-hd { background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); }
.an-demo.is-spot .sv-hcap { background: var(--action-subtle); }
:root .an-demo .sv-bk { position: absolute; top: calc(0.3em + var(--s) * var(--rh)); right: 0; left: 0; height: calc(var(--d) * var(--rh) - 0.15em); text-align: left; transition: opacity 0.45s, transform 0.45s var(--ease); }
.an-demo .sv-bk.is-off { opacity: 0; pointer-events: none; transform: translateY(calc(-1 * var(--sp-2))); }
.an-demo .sv-bk[hidden] { display: none; }
.an-demo .sv-sched[data-day="7"] .sv-bk[data-day="8"], .an-demo .sv-sched[data-day="8"] .sv-bk[data-day="7"] { display: none; }
.an-demo .sv-bkin { position: absolute; inset: 0; display: block; overflow: hidden; padding: 0.5em 0.55em 0.5em 0.75em; border-left: 0.3em solid; border-radius: calc(var(--r-16) / 2); transition: box-shadow 0.3s, background-color 0.6s; }
.an-demo .sv-bkin b { display: block; overflow: hidden; font-size: 0.9em; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-bkin small { display: block; overflow: hidden; font-size: 0.8em; opacity: 0.8; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-bk:hover .sv-bkin { box-shadow: 0 0 0 var(--focus-width) var(--text); }
.an-demo .sv-bk:focus-visible { outline: none; }
.an-demo .sv-bk:focus-visible .sv-bkin, .an-demo .sv-bk.is-sel .sv-bkin { box-shadow: 0 0 0 var(--focus-width) var(--accent); }
.an-demo .sv-bk.is-new .sv-bkin { background: var(--action-subtle); box-shadow: 0 0 0 var(--focus-width) var(--text), var(--shadow-2); }
.an-demo .sv-bk.is-press .sv-bkin { transform: scale(0.98); }
/* The booking's pop-over */
.an-demo .sv-pop { position: absolute; top: 0; left: 0; z-index: 4; width: 21em; max-width: calc(100% - var(--sp-4)); padding: var(--sp-4); border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); opacity: 0; visibility: hidden; transform: translateY(var(--sp-1)) scale(0.98); transform-origin: 0 0; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s; }
.an-demo .sv-pop.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s; }
:root .an-demo .sv-x { position: absolute; top: var(--sp-2); right: var(--sp-2); display: grid; place-items: center; width: 2em; height: 2em; border-radius: var(--r-full); color: var(--text-muted); font-size: 1.3em; line-height: 1; }
:root .an-demo .sv-x:hover { color: var(--text); }
.an-demo .sv-pt { margin: 0 2em 0.4em 0; font-size: 1.1em; font-weight: var(--fw-bold); line-height: 1.25; }
.an-demo .sv-chip { display: inline-block; padding: 0.2em 0.7em; border-left: 0.3em solid; border-radius: calc(var(--r-16) / 3); font-size: 0.86em; font-weight: var(--fw-bold); }
.an-demo .sv-psec { margin: var(--sp-3) 0 var(--sp-1); color: var(--text-muted); font-size: 0.8em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .sv-plist { display: grid; gap: 0.3em; font-size: 0.93em; }
.an-demo .sv-plist li { display: flex; align-items: center; gap: 0.5em; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-plist li.job { padding-left: 1.5em; color: var(--text-muted); }
.an-demo .sv-plist svg { flex: none; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .sv-plist u { text-underline-offset: 0.15em; }
:root .an-demo .sv-rel { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: 0.5em 0.7em; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); text-align: left; transition: border-color 0.3s, background-color 0.3s; }
:root .an-demo .sv-rel:hover, :root .an-demo .sv-rel.is-hot { border-color: var(--text); }
.an-demo .sv-rel.is-hot { background: var(--action-subtle); }
.an-demo .sv-rel .tx { flex: 1; min-width: 0; }
.an-demo .sv-rel b, .an-demo .sv-rel small { display: block; font-size: 0.9em; }
.an-demo .sv-rel small { color: var(--text-muted); }
.an-demo .sv-conn { flex: none; padding: 0.2em 0.6em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.8em; font-weight: var(--fw-bold); }
.an-demo .sv-none { color: var(--text-muted); font-size: 0.9em; }
/* The service appointment: its orders, the timeslot selection and the timeslots */
.an-demo .sv-arec { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-4); padding: var(--sp-4) var(--sp-5); }
.an-demo .sv-arec .ct-rec-type { margin-bottom: 0; }
.an-demo .sv-meta { display: flex; gap: var(--sp-5); }
.an-demo .sv-meta dt { order: 2; color: var(--text-muted); font-size: 0.82em; }
.an-demo .sv-meta dd { font-weight: var(--fw-bold); }
.an-demo .sv-meta > div { display: flex; flex-direction: column; }
.an-demo .sv-ap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
@container svapp (width >= 40rem) { .an-demo .sv-ap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-demo .sv-ap [data-panel="slots"] { grid-column: 1 / -1; } }
@container svapp (width >= 58rem) { .an-demo .sv-ap { grid-template-columns: 1.1fr 0.95fr 1fr; } .an-demo .sv-ap [data-panel="slots"] { grid-column: auto; } }
.an-demo .sv-so { padding: var(--sp-3); border: 1px solid var(--hairline); border-left: 0.3em solid var(--text); border-radius: calc(var(--r-16) * 0.75); }
.an-demo .sv-so.is-later { border-left-color: var(--border); }
.an-demo .sv-so + .sv-so { margin-top: var(--sp-3); }
.an-demo .sv-so-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); font-size: 0.93em; font-weight: var(--fw-bold); }
.an-demo .sv-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-1) var(--sp-3); margin-bottom: var(--sp-2); }
.an-demo .sv-kv > div { min-width: 0; }
.an-demo .sv-kv dt { color: var(--text-muted); font-size: 0.8em; }
.an-demo .sv-kv dd { overflow: hidden; border-radius: calc(var(--r-16) / 4); font-size: 0.9em; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; transition: background-color 0.4s; }
.an-demo .sv-jl { display: grid; gap: var(--sp-1); }
.an-demo .sv-jl li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 0.45em 0.6em; border-radius: calc(var(--r-16) / 2); background: var(--surface-muted); }
.an-demo .sv-jl li > span:first-child { min-width: 0; }
.an-demo .sv-jl b { display: block; overflow: hidden; font-size: 0.9em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-jl small { display: block; color: var(--text-muted); font-size: 0.8em; }
.an-demo .sv-ok { display: flex; align-items: center; gap: 0.5em; margin-bottom: var(--sp-3); padding: 0.5em 0.7em; border-radius: calc(var(--r-16) / 2); background: var(--surface-muted); font-size: 0.93em; font-weight: var(--fw-semibold); }
.an-demo .sv-ok::before { content: "✓"; display: grid; flex: none; place-items: center; width: 1.3em; height: 1.3em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.8em; }
.an-demo .sv-tsrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: var(--sp-3) 0; }
:root .an-demo .sv-sw { display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.3em; font-size: 0.93em; font-weight: var(--fw-semibold); }
.an-demo .sv-sw .k { position: relative; display: block; width: 2.3em; height: 1.3em; border-radius: var(--r-full); background: var(--border); transition: background-color 0.25s; }
.an-demo .sv-sw .k::after { content: ""; position: absolute; top: 0.15em; left: 0.15em; width: 1em; height: 1em; border-radius: var(--r-full); background: var(--surface); transition: transform 0.25s; }
.an-demo .sv-sw[aria-checked="true"] .k { background: var(--surface-inverse); }
.an-demo .sv-sw[aria-checked="true"] .k::after { transform: translateX(1em); }
.an-demo .sv-acal-h { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-3); font-size: 0.93em; font-weight: var(--fw-bold); }
.an-demo .sv-acal-h small { display: inline-flex; align-items: center; gap: 0.35em; color: var(--text-muted); font-size: 0.86em; font-weight: var(--fw-semibold); }
.an-demo .sv-acal-h i { width: 0.4em; height: 0.4em; border-radius: var(--r-full); background: var(--text); }
.an-demo .sv-acal-h i.no { margin-left: 0.5em; background: var(--danger); }
.an-demo .sv-acal .td b { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sv-acal .sel b { display: grid; place-items: center; width: 1.8em; height: 1.6em; border-radius: calc(var(--r-16) / 3); box-shadow: inset 0 0 0 0.12em var(--text); }
.an-demo .sv-acal .ok::after, .an-demo .sv-acal .no::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 0.3em; height: 0.3em; margin-left: -0.15em; border-radius: var(--r-full); background: var(--text); opacity: 0; transition: opacity 0.4s; }
.an-demo .sv-acal .no::after { background: var(--danger); }
.an-demo .sv-ts.is-checked .sv-acal .ok::after, .an-demo .sv-ts.is-checked .sv-acal .no::after { opacity: 1; }
.an-demo .sv-showing { margin-top: var(--sp-1); font-size: 0.86em; font-weight: var(--fw-bold); opacity: 0.35; transition: opacity 0.4s; }
.an-demo .sv-ts.is-checked .sv-showing { opacity: 1; }
.an-demo .sv-slots-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); font-size: 0.93em; }
.an-demo .sv-slots-h small { color: var(--text-muted); font-size: 0.86em; }
.an-demo .sv-sw8 { position: relative; }
.an-demo .sv-slotg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); transition: opacity 0.4s; }
.an-demo .sv-slotg.is-off { opacity: 0; }
:root .an-demo .sv-tslot { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.1em; border-radius: calc(var(--r-16) * 0.6); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); text-align: center; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s, opacity 0.3s, transform 0.15s; }
.an-demo .sv-tslot b { font-size: 0.9em; white-space: nowrap; }
.an-demo .sv-tslot small { color: var(--text-muted); font-size: 0.75em; white-space: nowrap; transition: color 0.25s; }
:root .an-demo .sv-tslot:hover { box-shadow: inset 0 0 0 0.1em var(--text); }
:root .an-demo .sv-tslot[aria-pressed="true"] { background: var(--surface-inverse); color: var(--text-on-dark); box-shadow: none; }
.an-demo .sv-tslot[aria-pressed="true"] small { color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); }
.an-demo .sv-tslot.is-press { transform: scale(0.95); }
:root .an-demo .sv-tslot[disabled] { opacity: 0.35; cursor: default; box-shadow: inset 0 0 0 1px var(--hairline); }
:root .an-demo .sv-tslot[disabled][aria-pressed="true"] { opacity: 1; box-shadow: none; }
.an-demo .sv-slotempty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.an-demo .sv-later { display: flex; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--hairline); font-size: 0.9em; }
.an-demo .sv-later small { color: var(--text-muted); text-align: right; }
.an-demo .sv-app .is-hot, .an-demo .sv-app .ct-fields dd.is-hot { background: var(--action-subtle); }
@container svapp (width < 40rem) { .an-demo .sv-hcap { display: grid; gap: 0.25em; } .an-demo .sv-meter { min-width: 0; } }

/* See the full picture: the customer 360°, the device record and the rows linked to each other */
.an-demo .sv-views { display: grid; }
.an-demo .sv-view { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; transition: opacity 0.3s 0.2s; }
.an-demo .sv-view[aria-hidden="true"] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s, visibility 0s 0.2s; }
.an-demo .sv-path { display: flex; align-items: center; gap: 0.4em; min-height: 1.7em; margin: calc(-1 * var(--sp-2)) 0 var(--sp-1); color: var(--text-muted); font-size: 0.86em; }
:root .an-demo .sv-back { display: inline-flex; align-items: center; min-height: 2.15em; color: var(--text); font-weight: var(--fw-bold); }
:root .an-demo .sv-back:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.an-demo .sv-back.is-press { transform: scale(0.95); }
.an-demo .sv-recrow { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.an-demo .sv-recrow .ct-rec-type { margin-bottom: 0; }
.an-demo .sv-rectx { min-width: 0; }
.an-demo .sv-rectx .ct-rec-type { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-av { width: 2.7em; height: 2.7em; font-size: 0.93em; }
.an-demo .sv-av.is-dev { background: var(--surface-muted); color: var(--text); }
.an-demo .sv-av svg { width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.6; }
.an-demo .sv-kpis { display: flex; gap: var(--sp-5); margin-left: auto; text-align: right; }
.an-demo .sv-kpis > div { display: flex; flex-direction: column; }
.an-demo .sv-kpis dd { font-size: 1.1em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .sv-kpis dt { color: var(--text-muted); font-size: 0.8em; white-space: nowrap; }
@container svapp (width < 46rem) { .an-demo .sv-kpis { display: none; } }
.an-demo .sv-views .sv-pages { flex: 1; }
.an-demo .sv-g360, .an-demo .sv-gdev, .an-demo .sv-gsum { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.an-demo .sv-g360 > *, .an-demo .sv-gdev > *, .an-demo .sv-gsum > * { min-width: 0; }
@container svapp (width >= 46rem) {
  .an-demo .sv-g360 { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .an-demo .sv-gdev, .an-demo .sv-gsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container svapp (width >= 64rem) { .an-demo .sv-gdev { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.an-demo .sv-new { color: var(--text-muted); font-size: 0.86em; white-space: nowrap; }
.an-demo .sv-chips { margin: 0; gap: var(--sp-1); }
.an-demo .sv-chips .sl-chip { min-height: 2.2em; padding: 0.2em 0.75em; font-size: 0.82em; }
.an-demo .sv-foot { margin-top: var(--sp-2); color: var(--text-muted); font-size: 0.82em; }
.an-demo .sv-t { font-size: 0.93em; }
.an-demo .sv-t td { height: 2.75em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 12em; }
.an-demo .sv-t td.id { font-weight: var(--fw-bold); }
.an-demo .sv-t td u { text-decoration-color: var(--border); text-underline-offset: 0.15em; }
.an-demo .sv-t tr:last-child td { border-bottom: 0; }
.an-demo .sv-t tr.sv-pad, .an-demo .sv-t tr.is-out { visibility: hidden; }
.an-demo .sv-t .sv-pad td { border-bottom: 0; }
.an-demo .sv-row { cursor: pointer; outline: none; }
.an-demo .sv-row:hover td { background: var(--surface-muted); }
.an-demo .sv-row:focus-visible td { box-shadow: inset 0 var(--focus-width) var(--focus-ring), inset 0 calc(-1 * var(--focus-width)) var(--focus-ring); }
.an-demo .sv-row.is-press td, .an-demo .sv-row.is-hl td, .an-demo .sv-row.is-hl:hover td { background: var(--action-subtle); transition: background-color 0.2s; }
.an-demo .sv-st { display: inline-block; padding: 0.15em 0.6em; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text-muted); font-size: 0.8em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .sv-st.is-done { border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sv-st-done { border-color: var(--surface-muted); background: var(--surface-muted); color: var(--text); }
.an-demo .sv-st-open { border-color: var(--danger); color: var(--danger); }
.an-demo .sv-lk { font-size: 0.93em; font-weight: var(--fw-semibold); }
.an-demo .sv-lk::before { content: "→ "; color: var(--accent); }
.an-demo .sv-tw { position: relative; }
.an-demo .sv-tw .in-t { position: relative; z-index: 1; }
.an-demo .sv-spot { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: calc(var(--r-16) * 0.75); background: var(--surface); box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.an-demo.is-spot .sv-tw.is-lit .sv-spot { opacity: 1; }
.an-demo.is-spot .sv-tw.is-lit td:not(.st), .an-demo.is-spot .sv-tw.is-lit th:not(.st) { opacity: 0.45; }
@container svapp (width < 46rem) { .an-demo .sv-t th, .an-demo .sv-t td { padding-right: 0.35em; padding-left: 0.35em; } }
@container svapp (width < 46rem) { .an-demo .sv-t td { max-width: none; white-space: normal; } }

/* Capture everything: items, notes by job, and the photos and videos on the Media tab */
.an-demo .sv-stack { display: grid; align-content: start; gap: var(--sp-4); }
.an-demo .sv-recsplit { justify-content: space-between; }
.an-demo .sv-kpis--who { align-items: flex-start; text-align: left; }
.an-demo .sv-kpis--who dd { font-size: 0.93em; }
.an-demo .sv-kpis--who .in-ini { display: inline-grid; width: 2.1em; height: 2.1em; margin-right: 0.45em; vertical-align: middle; font-size: 0.75em; }
@container svapp (width < 46rem) { .an-demo .sv-recsplit .sv-kpis { display: flex; } .an-demo .sv-kpis .c-mid, .an-demo .sv-kpis--who .who { display: none; } }
.an-demo .ct-tabs > span { white-space: nowrap; }
.an-demo .ct-card-t .ct-pill { margin-left: 0.4em; letter-spacing: normal; text-transform: none; vertical-align: 0.1em; }
.an-demo .sv-new > span { white-space: nowrap; }
.an-demo .sv-items td { height: 2.5em; transition: background-color 1.2s, opacity 0.4s; }
.an-demo .sv-items .num { font-variant-numeric: tabular-nums; }
.an-demo .sv-items .is-zero { color: var(--text-muted); }
.an-demo .sv-items tr.is-dim td { opacity: 0.28; }
.an-demo .sv-desc { font-weight: var(--fw-semibold); }
@container svapp (width < 40rem) { .an-demo .sv-items .c-nar { display: none; } }
.an-demo .sv-yes { display: inline-block; min-width: 3.2em; padding: 0.2em 0.6em; border-radius: var(--r-full); background: var(--surface-muted); color: var(--text-muted); font-size: 0.82em; font-weight: var(--fw-bold); text-align: center; transition: background-color 0.3s, color 0.3s; }
.an-demo .sv-yes.is-done { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sv-notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@container svapp (width >= 52rem) { .an-demo .sv-notes { grid-template-columns: 15em minmax(0, 1fr) minmax(0, 1fr); } }
.an-demo .sv-tree { display: grid; align-content: start; gap: 0.1em; min-width: 0; }
.an-demo .sv-tree li { min-width: 0; }
:root .an-demo .sv-node { display: flex; align-items: center; gap: 0.45em; width: 100%; min-height: 2em; padding: 0.25em 0.55em; border-radius: calc(var(--r-16) / 2); color: var(--text); font-size: 0.93em; text-align: left; transition: background-color 0.2s, transform 0.15s; }
:root .an-demo .sv-node:hover { background: var(--surface-muted); }
:root .an-demo .sv-node[aria-pressed="true"] { background: var(--action-subtle); font-weight: var(--fw-bold); }
.an-demo .sv-node.is-press { transform: scale(0.97); }
.an-demo .sv-node svg { flex: none; width: 0.7em; height: 0.7em; fill: none; stroke: var(--text-muted); stroke-width: 1.8; }
.an-demo .sv-node.lv1 { padding-left: 1.5em; }
.an-demo .sv-node.lv2 { padding-left: 2.7em; }
.an-demo .sv-node.lv3 { padding-left: 3.8em; color: var(--text-muted); font-size: 0.86em; }
.an-demo .sv-node .tx { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-n { display: inline-grid; flex: none; place-items: center; min-width: 1.45em; height: 1.45em; padding: 0 0.4em; border-radius: var(--r-full); background: var(--surface-muted); color: var(--text-muted); font-size: 0.8em; font-weight: var(--fw-bold); }
.an-demo .sv-n.is-red { background: var(--danger); color: var(--danger-on); }
.an-demo .sv-ncol { display: grid; align-content: start; gap: var(--sp-2); min-width: 0; }
.an-demo .sv-nh { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 1.8em; }
.an-demo .sv-nh b { font-size: 0.86em; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .sv-tag { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.15em 0.6em; border-radius: var(--r-full); background: var(--surface-muted); color: var(--text-muted); font-size: 0.8em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .sv-tag.is-ext { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.an-demo .sv-tag svg { width: 0.8em; height: 0.8em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.an-demo .sv-note { padding: 0.55em 0.75em 0.6em; border: 1px solid var(--hairline); border-left: 0.25em solid var(--accent); border-radius: calc(var(--r-16) * 0.6); background: var(--surface); }
.an-demo .sv-note.is-int { border-left-color: var(--border); background: var(--surface-muted); }
.an-demo .sv-note[hidden] { display: none; }
.an-demo .sv-note.is-wait, .an-demo .sv-mtile.is-wait { visibility: hidden; }
.an-demo .sv-nmeta { display: flex; justify-content: space-between; gap: var(--sp-2); margin-bottom: 0.2em; color: var(--text-muted); font-size: 0.8em; }
.an-demo .sv-nmeta b { overflow: hidden; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-nmeta span { flex: none; }
.an-demo .sv-note p { font-size: 0.93em; }
.an-demo .sv-note ul { padding-left: 1.1em; font-size: 0.93em; }
:root .an-demo .sv-note li { list-style: disc; }
:root .an-demo .sv-selall { display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.3em; font-size: 0.93em; transition: transform 0.15s; }
.an-demo .sv-selall i { display: grid; place-items: center; width: 1.15em; height: 1.15em; border: 1px solid var(--text-muted); border-radius: 0.25em; color: var(--surface); font-size: 0.75em; font-style: normal; font-weight: var(--fw-bold); transition: background-color 0.2s, border-color 0.2s; }
.an-demo .sv-selall[aria-pressed="true"] i { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .sv-selall.is-press { transform: scale(0.95); }
.an-demo .sv-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@container svapp (width >= 52rem) { .an-demo .sv-media { grid-template-columns: 19em minmax(0, 1fr); } }
@container svapp (width < 52rem) { .an-demo .sv-media .sv-gal { order: -1; } }
.an-demo .sv-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(8em, 1fr)); align-content: start; gap: var(--sp-3); min-width: 0; padding: var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); }
@container svapp (width < 40rem) { .an-demo .sv-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); padding: var(--sp-2); } }
:root .an-demo .sv-mtile { display: block; min-width: 0; text-align: left; transition: transform 0.15s; }
.an-demo .sv-mtile[hidden] { display: none; }
.an-demo .sv-mtile.is-press { transform: scale(0.95); }
.an-demo .sv-ph { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: calc(var(--r-16) / 2); background: var(--hairline); transition: box-shadow 0.2s; }
.an-demo .sv-ph.is-vid { background: var(--border); }
.an-demo .sv-ph svg { width: 2.2em; height: 2.2em; fill: none; stroke: var(--text-muted); stroke-width: 1.5; }
.an-demo .sv-mtile[aria-pressed="true"] .sv-ph { box-shadow: inset 0 0 0 0.2em var(--text); }
.an-demo .sv-ln { position: absolute; top: 0.4em; left: 0.4em; max-width: calc(100% - 2.4em); overflow: hidden; padding: 0.05em 0.4em; border-radius: 0.3em; background: color-mix(in srgb, var(--surface) 85%, transparent); font-size: 0.7em; font-weight: var(--fw-bold); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-chk { position: absolute; top: 0.4em; right: 0.4em; display: grid; place-items: center; width: 1.3em; height: 1.3em; border: 1px solid var(--border); border-radius: 0.3em; background: var(--surface); color: var(--surface); font-size: 0.8em; font-weight: var(--fw-bold); opacity: 0; transition: opacity 0.2s; }
.an-demo .sv-gal.is-sel .sv-chk { opacity: 1; }
.an-demo .sv-mtile[aria-pressed="true"] .sv-chk { border-color: var(--surface-inverse); background: var(--surface-inverse); opacity: 1; }
.an-demo .sv-fn { display: block; margin-top: 0.35em; overflow: hidden; font-size: 0.86em; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-gempty { grid-column: 1 / -1; }
.an-demo .ct-pill.is-done { background: var(--surface-inverse); color: var(--text-on-dark); }

/* Keep customers updated: the job's progress, the customer update, and the customer's phone */
@container indesk (width >= 44rem) { .an-demo .sv-ku { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.an-demo .in-desk .sv-recrow { align-items: flex-start; }
.an-demo .in-desk .sv-recsplit .ct-pill { flex: none; }
.an-demo .sv-upd { display: flex; flex-direction: column; }
.an-demo .sv-meter2 { position: relative; height: 0.85em; margin: 1.9em 0 0.45em; border-radius: var(--r-full); background: var(--surface-muted); }
.an-demo .sv-meter2.is-big { height: 1em; }
.an-demo .sv-meter2 > i { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; border-radius: var(--r-full); background: var(--accent); transition: width 0.25s linear; }
.an-demo .sv-pct { position: absolute; top: -1.8em; font-size: 0.93em; font-weight: var(--fw-bold); white-space: nowrap; transform: translateX(-50%); transition: left 0.25s linear; }
.an-demo.is-instant .sv-meter2 > i, .an-demo.is-instant .sv-pct { transition: none; }
.an-demo .sv-alert { position: absolute; top: 50%; left: 70%; z-index: 1; display: grid; place-items: center; width: 1.6em; height: 1.6em; margin: -0.8em 0 0 -0.8em; border-radius: var(--r-full); background: var(--danger); box-shadow: 0 0 0 0.2em var(--surface); color: var(--danger-on); font-size: 0.9em; font-weight: var(--fw-bold); opacity: 0; transform: scale(0.3); transition: opacity 0.3s, transform 0.4s var(--ease); }
.an-demo .sv-alert.is-on { opacity: 1; transform: none; }
.an-demo .sv-alert.is-ok { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sv-miles { display: flex; justify-content: space-between; gap: var(--sp-1); color: var(--text-muted); font-size: 0.8em; font-weight: var(--fw-semibold); }
.an-demo .sv-miles span { transition: color 0.3s; }
.an-demo .sv-miles span.is-on { color: var(--text); font-weight: var(--fw-bold); }
.an-demo .sv-ops { margin-top: var(--sp-3); }
.an-demo .sv-ops li { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; padding: 0.55em 0.15em; border-top: 1px solid var(--hairline); transition: opacity 0.4s, background-color 0.6s; }
.an-demo .sv-ops li.is-new { background: var(--action-subtle); transition: background-color 0.2s; }
.an-demo .sv-ops li.is-off { opacity: 0; }
.an-demo .sv-ops li.is-x .sv-optx b { color: var(--text-muted); text-decoration: line-through; }
.an-demo .sv-optx { flex: 1; min-width: 0; }
.an-demo .sv-optx b { display: block; overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-optx small { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.82em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .sv-ops .sv-tag, .an-demo .sv-pstat .sv-tag { flex: none; border: 1px solid var(--border); background: var(--surface); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.an-demo .sv-tag.is-wait { border-color: var(--action-subtle); background: var(--action-subtle); color: var(--text); }
.an-demo .sv-tag.is-done { border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .sv-tag.is-red { border-color: var(--danger); background: var(--danger); color: var(--danger-on); }
.an-demo .sv-msg { height: 5.6em; margin: var(--sp-2) 0; padding: 0.6em 0.8em; overflow: hidden; border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); font-size: 0.93em; transition: background-color 0.4s; }
.an-demo .sv-msg b { display: block; margin-bottom: 0.15em; color: var(--text-muted); font-size: 0.9em; font-weight: var(--fw-semibold); }
.an-demo .sv-quote { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 0.5em 0.75em; border: 1px dashed var(--border); border-radius: calc(var(--r-16) * 0.6); font-size: 0.93em; transition: opacity 0.4s; }
.an-demo .sv-quote.is-off { opacity: 0.35; }
.an-demo .sv-quote b { white-space: nowrap; }
.an-demo .sv-last { min-height: 1.3em; margin-top: var(--sp-2); color: var(--text-muted); font-size: 0.86em; }
.an-demo .sv-dbtns { display: flex; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-3); }
:root .an-demo .sv-dbtns .ct-btn { flex: 1; padding: 0 0.9em; }
:root .an-demo .ct-btn.ghost[disabled] { opacity: 0.35; }
/* The customer's phone */
.an-demo .sv-pbody { display: flex; flex: 1; flex-direction: column; gap: var(--sp-3); min-height: 0; padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.an-demo .sv-pcard { padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-16); transition: box-shadow 0.4s, background-color 0.6s; }
.an-demo .sv-pcard.is-new { background: var(--action-subtle); box-shadow: 0 0 0 1px var(--text); }
.an-demo .sv-pstat { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.an-demo .sv-pstat b { font-size: 1.05em; line-height: 1.2; }
.an-demo .sv-pcard .sv-meter2 { margin-top: 2.1em; }
.an-demo .sv-eta { color: var(--text-muted); font-size: 0.86em; }
.an-demo .sv-ptl { position: relative; display: grid; gap: 0.45em; padding-left: 1.3em; }
.an-demo .sv-ptl::before { content: ""; position: absolute; top: 0.45em; bottom: 0.45em; left: 0.35em; width: 0.15em; background: var(--hairline); }
.an-demo .sv-ptl li { position: relative; display: flex; justify-content: space-between; gap: var(--sp-2); font-size: 0.93em; opacity: 0.4; transition: opacity 0.4s; }
.an-demo .sv-ptl li::before { content: ""; position: absolute; top: 0.3em; left: -1.2em; width: 0.75em; height: 0.75em; border: 0.15em solid var(--border); border-radius: var(--r-full); background: var(--surface); transition: background-color 0.3s, border-color 0.3s; }
.an-demo .sv-ptl li.is-on { opacity: 1; }
.an-demo .sv-ptl li.is-on::before { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .sv-ptl li.is-cur::before { border-color: var(--accent); background: var(--surface); }
.an-demo .sv-ptl small { color: var(--text-muted); font-size: 0.86em; }
.an-demo .sv-pact { position: relative; min-height: 10.5em; margin-top: auto; }
.an-demo .sv-pempty { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity 0.3s; }
.an-demo .sv-pempty.is-off { opacity: 0; visibility: hidden; }
.an-demo .sv-actq { padding: var(--sp-3); border: 1px solid var(--text); border-radius: var(--r-16); background: var(--surface); transition: opacity 0.4s, transform 0.4s; }
.an-demo .sv-actq.is-off { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(var(--sp-2)); }
.an-demo .sv-actq .h { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.25em; font-weight: var(--fw-bold); }
.an-demo .sv-actq .h i, .an-demo .sv-pnote i { display: grid; flex: none; place-items: center; width: 1.4em; height: 1.4em; border-radius: var(--r-full); background: var(--danger); color: var(--danger-on); font-size: 0.82em; font-style: normal; font-weight: var(--fw-bold); }
.an-demo .sv-actq .d { font-size: 0.9em; }
.an-demo .sv-actq .pr { display: flex; justify-content: space-between; margin: var(--sp-2) 0; font-size: 0.93em; font-weight: var(--fw-bold); }
.an-demo .sv-actq .bt { display: flex; gap: var(--sp-2); }
.an-demo .sv-actq .bt[hidden] { display: none; }
:root .an-demo .sv-actq .bt .in-pbtn { flex: 1; }
.an-demo .sv-actq .res { display: flex; align-items: center; min-height: 2.9em; font-size: 0.93em; font-weight: var(--fw-bold); }
.an-demo .sv-actq .res[hidden] { display: none; }
.an-demo .sv-pnote { position: absolute; top: 3.6em; right: 0.7em; left: 0.7em; z-index: 4; display: flex; align-items: flex-start; gap: var(--sp-2); padding: 0.7em 0.85em; border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); opacity: 0; pointer-events: none; transform: translateY(calc(-1 * var(--sp-4))); transition: opacity 0.3s, transform 0.4s var(--ease); }
.an-demo .sv-pnote.is-on { opacity: 1; transform: none; }
.an-demo .sv-pnote i { width: 2em; height: 2em; border-radius: calc(var(--r-16) / 2); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.93em; }
.an-demo .sv-pnote.is-alert i { background: var(--danger); color: var(--danger-on); }
.an-demo .sv-pnote small { display: block; color: var(--text-muted); font-size: 0.8em; font-weight: var(--fw-semibold); }
.an-demo .sv-pnote b { display: block; font-size: 0.9em; line-height: 1.3; }

/* ---------- Field Mechanic screens (A365 Field Mechanic, 30 Nov 2026) ----------
   The office screen and the mechanic's phone reuse the Inspections parts (in-*, ct-*); the rest is fm-*.
   Pale red marks what just changed, as on the other demos. */
.an-demo .fm-papp { font-weight: var(--fw-bold); white-space: nowrap; }
:root .an-demo .fm-pback, :root .an-demo .fm-picon { display: grid; flex: none; place-items: center; width: 1.7em; height: 1.7em; margin: -0.2em; border-radius: calc(var(--r-16) / 3); color: inherit; font-size: 1.1em; line-height: 1; }
.an-demo .fm-picon svg { width: 0.95em; height: 0.95em; }
.an-demo .fm-phd { border-bottom: 1px solid var(--hairline); }
.an-demo .fm-mt { margin-top: var(--sp-2); }
.an-demo .in-board .is-wait { visibility: hidden; }
.an-demo .in-note.is-bad { color: var(--danger); }
.an-demo .in-note.is-ok { color: var(--text); font-weight: var(--fw-semibold); }
@keyframes fm-new { from { background: var(--action-subtle); } }
/* The phone's command bar */
.an-demo .fm-pcmd { display: grid; flex: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: var(--sp-1) var(--sp-1) var(--sp-3); border-top: 1px solid var(--hairline); background: var(--surface-muted); }
.an-demo .fm-pcmd > button, .an-demo .fm-pcmd > span { display: flex; flex-direction: column; align-items: center; gap: 0.2em; padding: 0.35em 0; border-radius: calc(var(--r-16) / 2); font-size: 0.8em; line-height: 1.2; text-align: center; white-space: nowrap; transition: opacity 0.25s, transform 0.15s; }
.an-demo .fm-pcmd > span { color: var(--text-muted); }
.an-demo .fm-pcmd > button { font-weight: var(--fw-semibold); }
:root .an-demo .fm-pcmd > button[disabled] { opacity: 0.3; cursor: default; }
.an-demo .fm-pcmd > button.is-press { transform: scale(0.9); }
.an-demo .fm-pcmd svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* Inputs: body size, so phones don't zoom in when a visitor types */
.an-demo .fm-search { position: relative; display: block; margin-bottom: var(--sp-2); }
.an-demo .fm-search svg { position: absolute; top: 50%; left: 0.85em; width: 1em; height: 1em; margin-top: -0.5em; fill: none; stroke: var(--text-muted); stroke-width: 1.8; pointer-events: none; }
:root .an-demo .fm-search input { width: 100%; height: 2.4rem; padding: 0 0.9rem 0 2.3rem; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-body); outline: none; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
.an-demo .fm-search input::placeholder { color: var(--text-muted); opacity: 1; }
.an-demo .fm-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
:root .an-demo .fm-search input:focus-visible, .an-demo .fm-search.is-typing input { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }

/* Access job details instantly: the device list, a device's history and a new reading */
.an-demo .fm-dfilter { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--sp-2); width: 10em; height: 2.1em; padding: 0 0.7em; border: 1px solid var(--border); border-radius: calc(var(--r-16) / 2.5); background: var(--surface); color: var(--text-muted); font-size: 0.9em; }
.an-demo .fm-dfilter svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.an-demo .fm-dt td b { display: block; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .fm-dt td small { display: block; color: var(--text-muted); font-size: 0.82em; white-space: nowrap; }
.an-demo .fm-dt td.st b { display: inline-block; }
@container indesk (width < 44rem) { .an-demo .fm-dt .c-w { display: none; } }
@container indesk (width < 26rem) { .an-demo .fm-dt .c-s { display: none; } }
.an-demo .fm-dl { gap: 0; }
.an-demo .fm-dl li[hidden] { display: none; }
.an-demo .fm-hrs { flex: none; padding: 0.1em 0.3em; border-radius: calc(var(--r-16) / 4); font-size: 0.86em; font-weight: var(--fw-bold); transition: background-color 0.4s; }
.an-demo .fm-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-3); }
.an-demo .fm-kv > div { min-width: 0; }
.an-demo .fm-kv small, .an-demo .fm-mtx small { display: block; color: var(--text-muted); font-size: 0.8em; }
.an-demo .fm-kv b { display: block; overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .fm-meter { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-1); padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.75); background: var(--surface-muted); transition: background-color 0.4s; }
.an-demo .fm-meter.is-hl, .an-demo .fm-blk.is-hl { background: var(--action-subtle); }
.an-demo .fm-mtx { min-width: 0; }
.an-demo .fm-mtx b { display: inline-block; border-radius: calc(var(--r-16) / 4); font-size: 1.5em; line-height: 1.2; transition: background-color 0.4s; }
:root .an-demo .fm-meter .in-pbtn { flex: none; height: 2.5em; padding: 0 1em; font-size: 0.9em; }
.an-demo .fm-blk { margin: 0 calc(-1 * var(--sp-2)); padding: var(--sp-1) var(--sp-2); border-radius: calc(var(--r-16) * 0.6); transition: background-color 0.4s; }
.an-demo .fm-blk .in-sec { margin: var(--sp-1) 0; }
.an-demo .fm-hist li { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); align-items: baseline; gap: var(--sp-2); padding: 0.35em 0; border-bottom: 1px solid var(--hairline); font-size: 0.9em; }
.an-demo .fm-hist li:last-child { border-bottom: 0; }
.an-demo .fm-hist span { color: var(--text-muted); font-size: 0.9em; }
.an-demo .fm-hist b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .fm-hist li.is-new { animation: fm-new 1.8s ease-out; }
.an-demo .fm-job { display: flex; align-items: center; gap: var(--sp-2); padding: 0.5em 0.7em; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); background: var(--surface); }
.an-demo .fm-job.is-empty { justify-content: center; border-style: dashed; color: var(--text-muted); font-size: 0.9em; }
:root .an-demo .in-phone .ct-fields dd.fm-inp { position: relative; padding: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow 0.2s; }
:root .an-demo .fm-inp input { width: 100%; height: 100%; min-height: 2.3rem; padding: 0 2.2em 0 0.7em; border: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold); outline: none; }
.an-demo .fm-inp input::placeholder { color: var(--text-muted); font-weight: var(--fw-regular); opacity: 1; }
.an-demo .fm-inp span { position: absolute; top: 50%; right: 0.8em; color: var(--text-muted); transform: translateY(-50%); }
:root .an-demo .in-phone .ct-fields dd.fm-inp:focus-within, :root .an-demo .in-phone .ct-fields dd.fm-inp.is-typing { box-shadow: inset 0 0 0 var(--focus-width) var(--text); }
:root .an-demo .in-phone .ct-fields dd.fm-inp.is-bad { box-shadow: inset 0 0 0 var(--focus-width) var(--danger); }
@container indesk (width >= 34rem) { .an-demo .fm-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

/* Record faster: the travel and work clocks, the bookings and the hour journal */
.an-demo .fm-ptabs { gap: var(--sp-3); overflow: hidden; font-size: 0.93em; -webkit-mask-image: linear-gradient(90deg, var(--text) 85%, transparent); mask-image: linear-gradient(90deg, var(--text) 85%, transparent); }
.an-demo .fm-fade { -webkit-mask-image: linear-gradient(var(--text) 88%, transparent); mask-image: linear-gradient(var(--text) 88%, transparent); }
.an-demo .fm-fade .in-sec { margin-bottom: var(--sp-1); font-size: 0.8em; }
:root .an-demo .fm-go { height: 3.1em; font-size: 1.05em; transition: opacity 0.25s, transform 0.15s, background-color 0.3s, border-color 0.3s; }
:root .an-demo .fm-go.is-red { border-color: var(--danger); background: var(--danger); color: var(--danger-on); }
.an-demo .fm-clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-3); }
.an-demo .fm-clk { padding: 0.45em 0.7em 0.4em; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.75); transition: border-color 0.3s, background-color 0.3s; }
.an-demo .fm-clk small { display: flex; align-items: center; gap: 0.45em; color: var(--text-muted); font-size: 0.75em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .fm-clk small i { width: 0.55em; height: 0.55em; border-radius: var(--r-full); background: var(--border); transition: background-color 0.3s; }
.an-demo .fm-clk b { display: block; font-size: 1.7em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.an-demo .fm-clk.is-on { border-color: var(--text); background: var(--action-subtle); }
.an-demo .fm-clk.is-on small i { background: var(--danger); animation: mo-pulse 1s steps(2, start) infinite; }
.an-demo .fm-clk.is-done small i { background: var(--surface-inverse); }
.an-demo.is-still .fm-clk.is-on small i { animation-play-state: paused; }
.an-demo .fm-bk { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
.an-demo .fm-bk li { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; padding: 0.4em 0.35em; border-bottom: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); transition: background-color 0.4s; }
.an-demo .fm-bk li.is-hl { background: var(--action-subtle); }
.an-demo .fm-bk .in-ptx small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .in-st.is-red { border-color: var(--danger); background: var(--danger); color: var(--danger-on); }
.an-demo .in-board .in-st.is-pop, .an-demo .in-board .fm-go.is-pop { animation: mo-pop 0.5s var(--ease); }
.an-demo .fm-jtw { min-height: 7em; }
.an-demo .in-t tr.fm-off td { opacity: 0; }
.an-demo .fm-jempty { position: absolute; top: 2.8em; right: 0; left: 0; z-index: 2; margin: 0; background: var(--surface); }
.an-demo .fm-jempty[hidden] { display: none; }
.an-demo .in-note b { color: var(--text); }

/* Speed up approvals: the summary, the signature pad and the signed report */
.an-demo .ct-fields dd.fm-muted { color: var(--text-muted); }
.an-demo .fm-num { text-align: right; white-space: nowrap; }
.an-demo .fm-sec2 { margin-top: var(--sp-4); }
.an-demo .fm-file { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.an-demo .fm-file i { display: grid; flex: none; place-items: center; width: 2.6em; height: 3.1em; border-radius: 0.35em; background: var(--danger); color: var(--danger-on); font-size: 0.55em; font-style: normal; font-weight: var(--fw-bold); }
.an-demo .fm-sscr { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
.an-demo .fm-sscr .in-sec { margin-bottom: var(--sp-1); font-size: 0.8em; }
.an-demo .fm-sscr .in-mt { margin-top: var(--sp-2); }
.an-demo .fm-sjobs { display: grid; gap: var(--sp-1); }
.an-demo .fm-sjobs li { display: flex; align-items: center; gap: var(--sp-2); padding: 0.32em 0.6em; border-radius: calc(var(--r-16) / 2); background: var(--surface-muted); font-size: 0.93em; transition: background-color 0.5s; }
.an-demo .fm-sjobs li.is-hl { background: var(--action-subtle); transition: background-color 0.15s; }
.an-demo .fm-sjobs b { flex: 1; min-width: 0; overflow: hidden; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .fm-sjobs li > span:last-child { flex: none; color: var(--text-muted); font-size: 0.93em; white-space: nowrap; }
.an-demo .fm-ok { display: grid; flex: none; place-items: center; width: 1.35em; height: 1.35em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.75em; font-weight: var(--fw-bold); line-height: 1; }
.an-demo .fm-parts { display: grid; gap: 0.15em; font-size: 0.9em; }
.an-demo .fm-parts div { display: flex; justify-content: space-between; gap: var(--sp-2); }
.an-demo .fm-parts dt { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .fm-parts dd { color: var(--text-muted); white-space: nowrap; }
.an-demo .fm-total { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-2); padding: 0.45em 0.6em; border-radius: calc(var(--r-16) / 2); background: var(--surface-muted); font-weight: var(--fw-bold); transition: background-color 0.5s; }
.an-demo .fm-snote { font-size: 0.9em; line-height: 1.35; }
.an-demo .fm-lead { margin-bottom: var(--sp-2); color: var(--text-muted); font-size: 0.9em; line-height: 1.35; }
.an-demo .fm-pad { position: relative; aspect-ratio: 2 / 1; border: 1px dashed var(--border); border-radius: calc(var(--r-16) * 0.75); background: var(--surface); cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; transition: border-color 0.3s; }
.an-demo .fm-pad.is-ink { border-style: solid; }
.an-demo .fm-pad svg, .an-demo .fm-thumb svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.an-demo .fm-base { fill: none; stroke: var(--hairline-strong); stroke-width: 1; }
.an-demo .fm-ink path { fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .fm-demo path { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.an-demo .fm-demo path.is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset var(--d, 0.6s) cubic-bezier(0.35, 0.05, 0.65, 0.95); }
.an-demo .fm-ph { position: absolute; bottom: 0.6em; left: 0.8em; color: var(--text-muted); font-size: 0.82em; pointer-events: none; transition: opacity 0.3s; }
.an-demo .fm-pad.is-ink .fm-ph { opacity: 0; }
.an-demo .fm-fld { margin-top: var(--sp-2); }
.an-demo .fm-fld span { display: block; margin-bottom: 0.2em; color: var(--text-muted); font-size: 0.82em; }
.an-demo .fm-fld b { display: flex; align-items: center; min-height: 2.3em; padding: 0.4em 0.7em; border-radius: calc(var(--r-16) / 2.5); background: var(--surface-muted); font-weight: var(--fw-semibold); transition: background-color 0.4s; }
.an-demo .fm-prow { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
:root .an-demo .fm-prow .in-pbtn { flex: 1; padding: 0 0.8em; }
.an-demo .fm-signed { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.an-demo .fm-big { display: grid; flex: none; place-items: center; width: 2.4em; height: 2.4em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 1.1em; font-weight: var(--fw-bold); }
.an-demo .fm-signed b { display: block; }
.an-demo .fm-signed small { display: block; color: var(--text-muted); font-size: 0.82em; }
.an-demo .fm-thumb { position: relative; aspect-ratio: 2 / 1; max-height: 7.5em; margin: 0 auto; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); background: var(--surface); }
.an-demo .fm-chk { display: grid; gap: var(--sp-1); margin-top: var(--sp-2); }
.an-demo .fm-chk li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 0.4em 0.15em; border-bottom: 1px solid var(--hairline); font-size: 0.9em; }
.an-demo .fm-chk li > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Follow guided steps: the jobs on the phone, each job's operations and parts */
.an-demo .fm-jlist { flex: 1; min-height: 0; padding: var(--sp-2) var(--sp-3) var(--sp-3); overflow-y: auto; overscroll-behavior: contain; background: var(--surface-muted); scrollbar-width: none; }
.an-demo .fm-jlist::-webkit-scrollbar { display: none; }
.an-demo .fm-jobs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.an-demo .fm-jb { min-width: 0; padding: 0.55em 0.6em 0.55em 0.5em; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.75); background: var(--surface); transition: background-color 0.3s, box-shadow 0.3s; }
.an-demo .fm-jb.is-hl { background: var(--action-subtle); }
.an-demo .fm-jb.is-open { box-shadow: 0 0 0 1px var(--text); }
.an-demo .fm-jhd { display: flex; align-items: flex-start; gap: var(--sp-2); }
:root .an-demo .fm-tog { display: flex; flex: 1; align-items: flex-start; gap: 0.45em; min-width: 0; border-radius: calc(var(--r-16) / 3); text-align: left; transition: transform 0.15s; }
.an-demo .fm-tog.is-press { transform: scale(0.97); }
.an-demo .fm-chev { display: grid; flex: none; place-items: center; width: 1.1em; height: 1.1em; margin-top: 0.1em; transition: transform 0.3s; }
.an-demo .fm-chev svg { width: 0.7em; height: 0.7em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .fm-jb.is-open .fm-chev { transform: rotate(90deg); }
.an-demo .fm-jt { flex: 1; min-width: 0; }
.an-demo .fm-jt b { display: block; font-size: 0.93em; line-height: 1.3; }
.an-demo .fm-jmeta { display: flex; flex-wrap: wrap; gap: 0.35em; margin-top: 0.3em; }
.an-demo .fm-tag { padding: 0.1em 0.6em; border-radius: var(--r-full); background: var(--surface-muted); font-size: 0.75em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .fm-jmeta .in-st { font-size: 0.75em; }
:root .an-demo .fm-gob { display: grid; flex: none; place-items: center; width: 2.4em; height: 2.4em; border: 1px solid var(--surface-inverse); border-radius: var(--r-full); background: var(--surface); color: var(--text); transition: transform 0.15s, background-color 0.3s, color 0.3s; }
:root .an-demo .fm-jb.is-done .fm-gob { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .fm-gob.is-press { transform: scale(0.88); }
.an-demo .fm-gob svg { width: 0.95em; height: 0.95em; }
.an-demo .fm-gob .i-play { fill: currentColor; }
.an-demo .fm-gob .i-check { display: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .fm-jb.is-prog .fm-gob .i-play, .an-demo .fm-jb.is-done .fm-gob .i-play { display: none; }
.an-demo .fm-jb.is-prog .fm-gob .i-check, .an-demo .fm-jb.is-done .fm-gob .i-check { display: block; }
.an-demo .fm-jicons { display: flex; gap: 0.4em; margin: 0.5em 0 0 1.55em; }
.an-demo .fm-jicons span, .an-demo .fm-lph { display: grid; flex: none; place-items: center; width: 1.75em; height: 1.75em; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 3); background: var(--surface); }
.an-demo .fm-jicons svg, .an-demo .fm-lph svg { width: 0.85em; height: 0.85em; fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .fm-jbody { margin-top: 0.6em; padding-top: 0.5em; border-top: 1px solid var(--hairline); }
.an-demo .fm-jbody[hidden] { display: none; }
.an-demo .fm-jbody.is-in { animation: sl-in 0.4s var(--ease); }
.an-demo .fm-jsec { margin-bottom: 0.25em; font-size: 0.75em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .fm-lines { display: grid; gap: 0.15em; margin-bottom: 0.5em; }
.an-demo .fm-lines:last-child { margin-bottom: 0; }
.an-demo .fm-line { display: flex; align-items: center; gap: 0.5em; padding: 0.25em 0.35em; border-radius: calc(var(--r-16) / 3); transition: background-color 0.3s; }
.an-demo .fm-line.is-hl { background: var(--action-subtle); }
.an-demo .fm-lph { width: 1.6em; height: 1.6em; border: 0; background: var(--surface-muted); }
.an-demo .fm-lx { flex: 1; min-width: 0; line-height: 1.25; }
.an-demo .fm-lx b { display: block; font-size: 0.82em; }
.an-demo .fm-lx small { display: block; color: var(--text-muted); font-size: 0.8em; }
.an-demo .fm-qty { flex: none; color: var(--text-muted); font-size: 0.8em; white-space: nowrap; }
.an-demo .fm-qty b { color: var(--text); }

/* Find what you need: the jobs, the Job Review sheet and the service order's lines */
@container indesk (width >= 40rem) {
  .an-demo .fm-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-5); }
}
.an-demo .fm-djob { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .fm-lt td { white-space: nowrap; }
.an-demo .fm-lt td:nth-child(3) { white-space: normal; }
.an-demo .fm-lt tr.fm-pad-row td { visibility: hidden; }
.an-demo .fm-nil { color: var(--text-muted); }
.an-demo .in-board .ct-pill.fm-diff { background: var(--action-subtle); color: var(--text); box-shadow: inset 0 0 0 1px var(--danger); }
.an-demo .in-board .ct-pill.fm-pnot { background: var(--surface-muted); color: var(--text-muted); }
.an-demo .fm-pmain { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.an-demo .fm-pwork { position: absolute; inset: 0; display: flex; flex-direction: column; }
.an-demo .fm-pwbody { flex: 1; min-height: 0; padding: var(--sp-3) var(--sp-4); overflow: hidden; }
.an-demo .fm-rjobs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
.an-demo .fm-rrow { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; padding: 0.55em 0.3em 0.55em 0.45em; border-bottom: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); transition: background-color 0.3s; }
.an-demo .fm-rrow.is-hl { background: var(--action-subtle); }
.an-demo .fm-rrow .in-ptx small { display: flex; gap: 0.35em; margin-top: 0.3em; }
.an-demo .fm-jtag { padding: 0.05em 0.55em; border: 1px solid var(--border); border-radius: var(--r-full); color: var(--text-muted); font-size: 0.9em; font-weight: var(--fw-bold); white-space: nowrap; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.an-demo .fm-jtag.is-done { border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-on-dark); }
:root .an-demo .fm-chk { display: grid; flex: none; place-items: center; width: 2.4em; height: 2.4em; border: 1px solid var(--surface-inverse); border-radius: var(--r-full); background: var(--surface); color: var(--text); transition: transform 0.15s, background-color 0.3s, color 0.3s; }
:root .an-demo .fm-chk.is-done { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .fm-chk.is-press { transform: scale(0.88); }
.an-demo .fm-chk svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .fm-sheet { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-2); transition: transform 0.45s var(--ease), visibility 0s; }
.an-demo .fm-sheet[aria-hidden="true"] { visibility: hidden; transform: translateX(104%); transition: transform 0.35s var(--ease), visibility 0s 0.35s; }
.an-demo .fm-shd { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4) var(--sp-2); border-bottom: 1px solid var(--hairline); }
.an-demo .fm-shd b { display: block; font-size: 1.15em; line-height: 1.2; }
.an-demo .fm-shd small { display: block; margin-top: 0.15em; color: var(--text-muted); font-size: 0.86em; }
:root .an-demo .fm-x { display: grid; flex: none; place-items: center; width: 1.8em; height: 1.8em; border-radius: calc(var(--r-16) / 3); color: var(--text-muted); font-size: 1.5em; line-height: 1; }
.an-demo .fm-sbody { flex: 1; min-height: 0; padding: var(--sp-2) var(--sp-4) var(--sp-1); overflow: hidden; }
.an-demo .fm-sbody .in-sec { margin: 0.2em 0 0.3em; font-size: 0.8em; }
.an-demo .fm-its, .an-demo .fm-ops { display: grid; grid-template-columns: minmax(0, 1fr); }
.an-demo .fm-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.05em var(--sp-2); margin: 0 calc(-1 * var(--sp-1)); padding: 0.3em var(--sp-1); border-bottom: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); transition: background-color 0.3s; }
.an-demo .fm-it.is-diff { background: var(--action-subtle); }
.an-demo .fm-itx { min-width: 0; }
.an-demo .fm-itx b { display: block; font-size: 0.88em; line-height: 1.3; }
.an-demo .fm-itx small { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.8em; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .fm-stp { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: calc(var(--r-16) / 2); background: var(--surface); }
:root .an-demo .fm-stp button { display: grid; place-items: center; width: 2em; height: 2em; font-size: 1.05em; font-weight: var(--fw-semibold); line-height: 1; transition: transform 0.15s; }
:root .an-demo .fm-stp button[disabled] { color: var(--border); cursor: default; }
.an-demo .fm-stp button.is-press { transform: scale(0.8); }
.an-demo .fm-stp output { min-width: 1.8em; border-right: 1px solid var(--hairline); border-left: 1px solid var(--hairline); font-size: 0.93em; font-weight: var(--fw-bold); line-height: 2.2; text-align: center; }
.an-demo .fm-exp { grid-column: 2; justify-self: end; padding: 0 0.25em; border-radius: calc(var(--r-16) / 4); color: var(--text-muted); font-size: 0.78em; transition: background-color 0.4s; }
.an-demo .fm-dif { margin-left: 0.25em; color: var(--danger); font-style: normal; font-weight: var(--fw-bold); }
.an-demo .fm-oph { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-2); }
.an-demo .fm-oph .in-sec { margin: 0; }
:root .an-demo .fm-op { display: flex; align-items: center; gap: 0.6em; width: 100%; padding: 0.4em 0.2em; border-radius: calc(var(--r-16) / 3); text-align: left; transition: background-color 0.3s; }
.an-demo .fm-ops li { border-bottom: 1px solid var(--hairline); }
:root .an-demo .fm-op.fm-all { width: auto; padding: 0.3em 0.2em; font-size: 0.86em; font-weight: var(--fw-semibold); }
.an-demo .fm-op .fm-itx { flex: 1; }
.an-demo .fm-box { position: relative; flex: none; width: 1.15em; height: 1.15em; border: 1px solid var(--text-muted); border-radius: 0.25em; background: var(--surface); transition: background-color 0.2s, border-color 0.2s; }
.an-demo .fm-op[aria-checked="true"] .fm-box, .an-demo .fm-op[aria-checked="mixed"] .fm-box { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .fm-op[aria-checked="true"] .fm-box::after { content: ""; position: absolute; top: 0.1em; left: 0.33em; width: 0.3em; height: 0.6em; border-right: 0.12em solid var(--text-on-dark); border-bottom: 0.12em solid var(--text-on-dark); transform: rotate(45deg); }
.an-demo .fm-op[aria-checked="mixed"] .fm-box::after { content: ""; position: absolute; top: 0.45em; right: 0.2em; left: 0.2em; height: 0.12em; background: var(--text-on-dark); }
.an-demo .fm-ohrs { flex: none; font-size: 0.86em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .fm-op[aria-checked="false"] .fm-ohrs { color: var(--text-muted); text-decoration: line-through; }
.an-demo .fm-sft { display: flex; flex: none; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4) var(--sp-3); border-top: 1px solid var(--hairline); }
:root .an-demo .fm-sft .in-pbtn { flex: 1; height: 2.6em; }

/* ---------- Workshop Mechanic screens (A365 Workshop Mechanic, 30 Nov 2026) ----------
   Office screens reuse ct-* and in-*; the rest is wm-*. Booking statuses are pastel mixes of the brand
   palette tokens (each status keeps its own colour, as on the real planning board). */
:root .an-demo .wm-app [data-s="absence"] { --c: var(--hairline); }
:root .an-demo .wm-app [data-s="arrived"] { --c: color-mix(in srgb, var(--a-verbena) 40%, var(--surface)); }
:root .an-demo .wm-app [data-s="canceled"] { --c: var(--action-subtle); }
:root .an-demo .wm-app [data-s="committed"] { --c: color-mix(in srgb, var(--a-marine) 25%, var(--surface)); }
:root .an-demo .wm-app [data-s="completed"] { --c: color-mix(in srgb, var(--a-olive) 30%, var(--surface)); }
:root .an-demo .wm-app [data-s="progress"] { --c: color-mix(in srgb, var(--a-yellow) 70%, var(--surface)); }
:root .an-demo .wm-app [data-s="onbreak"] { --c: color-mix(in srgb, var(--a-lilac) 25%, var(--surface)); }
:root .an-demo .wm-app [data-s="hold"] { --c: color-mix(in srgb, var(--a-yellow) 30%, var(--surface)); }
:root .an-demo .wm-app [data-s="scheduled"] { --c: color-mix(in srgb, var(--a-marine) 12%, var(--surface)); }
:root .an-demo .wm-app [data-s="waiting"] { --c: color-mix(in srgb, var(--a-lilac) 55%, var(--surface)); }
@keyframes wm-bump { 40% { transform: scale(1.03); } }

/* Assign the right tasks: the planning board, its legend and a booking's details */
.an-demo .wm-wtools { position: relative; z-index: 6; display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--hairline); background: var(--surface); color: var(--text-muted); font-size: 0.93em; white-space: nowrap; }
.an-demo .wm-dt { flex: 1; color: var(--text); font-weight: var(--fw-semibold); text-align: center; }
.an-demo .wm-sel2 { padding: 0.15em 0.6em; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 3); }
:root .an-demo .wm-lgdbtn { display: inline-flex; align-items: center; gap: 0.4em; min-height: 2.2em; padding: 0 0.6em; border-radius: calc(var(--r-16) / 3); color: var(--text); transition: transform 0.15s; }
.an-demo .wm-lgdbtn svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.an-demo .wm-lgdbtn[aria-expanded="true"], .an-demo .wm-lgdbtn.is-on { font-weight: var(--fw-bold); box-shadow: inset 0 calc(-1 * var(--focus-width)) var(--accent); }
.an-demo .wm-lgdbtn.is-press { transform: scale(0.94); }
@container indesk (width < 40rem) { .an-demo .wm-wtools .c-mid { display: none; } }
.an-demo .wm-lgd { position: absolute; top: calc(100% + var(--sp-1)); right: var(--sp-3); display: grid; gap: 1px; width: 15em; padding: var(--sp-2); border-radius: calc(var(--r-16) * 0.75); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); color: var(--text); white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(calc(-1 * var(--sp-1))); transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s; }
.an-demo .wm-lgd.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s; }
.an-demo .wm-lgd-t { padding: 0.2em 0.5em 0.4em; color: var(--text-muted); font-size: 0.75em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
:root .an-demo .wm-chip { display: flex; align-items: center; gap: 0.6em; width: 100%; min-height: 2em; padding: 0.15em 0.5em; border-radius: calc(var(--r-16) / 3); text-align: left; transition: transform 0.15s, background-color 0.2s; }
:root .an-demo .wm-chip:hover { background: var(--surface-muted); }
:root .an-demo .wm-chip[aria-pressed="true"] { background: var(--action-subtle); font-weight: var(--fw-bold); }
.an-demo .wm-chip.is-press { transform: scale(0.97); }
.an-demo .wm-chip em { margin-left: auto; color: var(--text-muted); font-size: 0.82em; font-style: normal; font-weight: var(--fw-semibold); }
.an-demo .wm-sw { display: block; flex: none; width: 0.95em; height: 0.95em; border-radius: 0.25em; background: var(--c); box-shadow: inset 0 0 0 1px var(--hairline); }
.an-demo .wm-pb { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); }
.an-demo .wm-side { display: none; padding: var(--sp-3); border-right: 1px solid var(--hairline); font-size: 0.86em; }
@container indesk (width >= 56rem) { .an-demo .wm-pb { grid-template-columns: 12em minmax(0, 1fr); } .an-demo .wm-side { display: block; } }
.an-demo .wm-side-h { margin-bottom: var(--sp-2); font-weight: var(--fw-bold); }
.an-demo .wm-cal-h { display: flex; justify-content: space-between; margin-bottom: var(--sp-1); font-weight: var(--fw-semibold); }
.an-demo .wm-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.an-demo .wm-cal span { display: grid; place-items: center; height: 1.8em; font-size: 0.9em; }
.an-demo .wm-cal .h { color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-demo .wm-cal .o { color: var(--text-muted); }
.an-demo .wm-cal .sel { width: 1.8em; margin: 0 auto; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-weight: var(--fw-bold); }
.an-demo .wm-today { margin: var(--sp-1) 0 var(--sp-4); text-align: right; text-decoration: underline; text-underline-offset: 0.15em; }
.an-demo .wm-pbi { margin-bottom: var(--sp-1); color: var(--text-muted); }
.an-demo .wm-pbi.is-on { color: var(--text); font-weight: var(--fw-semibold); }
.an-demo .wm-plan { --rh: 1.75em; display: flex; flex-direction: column; min-width: 0; }
.an-demo .wm-rhead, .an-demo .wm-gw { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); }
.an-demo .wm-rhead { grid-template-columns: 3.4em repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--hairline); }
.an-demo .wm-gw { position: relative; }
.an-demo .wm-res { min-width: 0; padding: 0.6em 0.7em 0.5em; border-left: 1px solid var(--hairline); }
.an-demo .wm-res b { display: block; overflow: hidden; font-size: 0.93em; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-res small { display: block; margin-top: 0.15em; color: var(--text-muted); font-size: 0.82em; }
.an-demo .wm-res i { position: relative; display: block; height: 0.25em; margin-top: 0.35em; overflow: hidden; border-radius: var(--r-full); background: var(--hairline); }
.an-demo .wm-res i::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: var(--p); background: var(--surface-inverse); }
.an-demo .wm-times { display: grid; grid-auto-rows: var(--rh); }
.an-demo .wm-times span { padding: 0.25em 0.6em 0 0; color: var(--text-muted); font-size: 0.78em; font-variant-numeric: tabular-nums; text-align: right; }
.an-demo .wm-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.an-demo .wm-col { position: relative; height: calc(18 * var(--rh)); border-left: 1px solid var(--hairline); background: repeating-linear-gradient(to bottom, var(--hairline) 0 1px, transparent 1px calc(2 * var(--rh))); }
:root .an-demo .wm-bk { position: absolute; top: calc(var(--s) * var(--rh) + 1px); right: 0.2em; left: 0.2em; display: flex; flex-direction: column; align-items: flex-start; gap: 0.1em; height: calc(var(--d) * var(--rh) - 0.15em); padding: 0.45em 0.6em; overflow: hidden; border-radius: calc(var(--r-16) / 2.5); background: var(--c); color: var(--text); line-height: 1.3; text-align: left; box-shadow: inset 0.2em 0 0 color-mix(in srgb, var(--text) 18%, transparent); transition: background-color 0.5s, opacity 0.4s, box-shadow 0.3s, transform 0.15s; }
.an-demo .wm-bk b { font-size: 0.9em; }
.an-demo .wm-bk small { font-size: 0.8em; opacity: 0.8; }
.an-demo .wm-bk em { margin-top: auto; font-size: 0.75em; font-style: normal; font-weight: var(--fw-bold); opacity: 0.75; }
:root .an-demo button.wm-bk:hover { box-shadow: inset 0.2em 0 0 color-mix(in srgb, var(--text) 18%, transparent), 0 0 0 1px var(--text); }
:root .an-demo .wm-bk.is-abs { background: repeating-linear-gradient(135deg, var(--hairline) 0 0.4em, var(--surface-muted) 0.4em 0.8em); cursor: default; }
:root .an-demo .wm-bk.is-sel { box-shadow: inset 0.2em 0 0 color-mix(in srgb, var(--text) 18%, transparent), 0 0 0 var(--focus-width) var(--text); }
.an-demo .wm-bk.is-press { transform: scale(0.98); }
.an-demo .in-board .wm-bk.is-pop { animation: wm-bump 0.6s var(--ease); }
.an-demo .wm-plan.is-pick .wm-bk:not(.is-match) { opacity: 0.22; }
:root .an-demo .wm-plan.is-pick .wm-bk.is-match { box-shadow: inset 0.2em 0 0 color-mix(in srgb, var(--text) 18%, transparent), 0 0 0 var(--focus-width) var(--text), var(--shadow-2); }
@container indesk (width < 40rem) {
  .an-demo .wm-rhead { grid-template-columns: 2.8em repeat(4, minmax(0, 1fr)); }
  .an-demo .wm-gw { grid-template-columns: 2.8em minmax(0, 1fr); }
  .an-demo .wm-res { padding: 0.45em 0.3em; }
  .an-demo .wm-res b { font-size: 0.8em; line-height: 1.2; white-space: normal; }
  :root .an-demo .wm-bk { padding: 0.3em 0.35em; }
  .an-demo .wm-bk b { font-size: 0.78em; line-height: 1.2; }
  .an-demo .wm-bk small { font-size: 0.7em; }
  .an-demo .wm-bk em { font-size: 0.68em; }
}
.an-demo .wm-pop { position: absolute; top: 0; left: 0; z-index: 5; width: 19em; padding: var(--sp-3) var(--sp-4); border-radius: calc(var(--r-16) * 0.75); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); font-size: 0.93em; opacity: 0; visibility: hidden; transform: translateY(var(--sp-1)); transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s; }
.an-demo .wm-pop.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s; }
.an-demo .wm-pop-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2); }
.an-demo .wm-pop-h b { display: block; margin-bottom: 0.35em; font-size: 1.1em; }
:root .an-demo .wm-schip { display: inline-flex; align-items: center; gap: 0.45em; min-height: 1.9em; padding: 0 0.75em; border-radius: var(--r-full); background: var(--c); color: var(--text); font-size: 0.86em; font-weight: var(--fw-bold); white-space: nowrap; transition: transform 0.15s, background-color 0.4s; }
.an-demo .wm-schip i { display: inline-block; width: 0.4em; height: 0.4em; border-right: 0.12em solid currentColor; border-bottom: 0.12em solid currentColor; transform: translateY(-0.15em) rotate(45deg); }
:root .an-demo .wm-schip.is-static { min-height: 0; padding: 0.1em 0.6em; font-size: 0.78em; }
.an-demo .wm-schip.is-press { transform: scale(0.94); }
:root .an-demo .wm-x { display: grid; flex: none; place-items: center; width: 1.8em; height: 1.8em; border-radius: var(--r-full); color: var(--text-muted); font-size: 1.3em; line-height: 1; }
.an-demo .wm-psec { margin: var(--sp-3) 0 var(--sp-1); font-size: 0.75em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .wm-pl { display: grid; gap: 0.3em; }
.an-demo .wm-pl li { display: flex; align-items: center; gap: 0.5em; min-width: 0; }
.an-demo .wm-pl li.ind { padding-left: 1.5em; color: var(--text-muted); }
.an-demo .wm-pl svg { flex: none; width: 1em; height: 1em; fill: none; stroke: var(--text-muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .wm-pl u { text-underline-offset: 0.15em; }
.an-demo .wm-rel li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 0.45em 0; border-top: 1px solid var(--hairline); }
.an-demo .wm-rel li.none { color: var(--text-muted); }
.an-demo .wm-rel small { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .wm-menu { position: absolute; top: 3.6em; left: var(--sp-4); z-index: 6; display: grid; width: 13em; padding: var(--sp-1); border-radius: calc(var(--r-16) * 0.6); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); }
.an-demo .wm-menu[hidden] { display: none; }
:root .an-demo .wm-menu button { display: flex; align-items: center; gap: 0.55em; width: 100%; min-height: 2em; padding: 0.2em 0.6em; border-radius: calc(var(--r-16) / 3); text-align: left; }
:root .an-demo .wm-menu button:hover, :root .an-demo .wm-menu button.is-hot { background: var(--action-subtle); }
.an-demo .wm-menu button[aria-checked="true"] { font-weight: var(--fw-bold); }
@container indesk (width < 40rem) { .an-demo .wm-pop { width: 16em; padding: var(--sp-3); } }

/* Track progress live: the planning board, the time registration and the mechanic's tablet */
@container indesk (width >= 46rem) { .an-demo .wm-ck { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.an-demo .wm-pbh, .an-demo .wm-pbg { display: grid; grid-template-columns: 3.4em repeat(2, minmax(0, 1fr)); }
.an-demo .wm-pbh { margin-bottom: var(--sp-1); padding-bottom: var(--sp-1); border-bottom: 1px solid var(--hairline); }
.an-demo .wm-pbh .r { min-width: 0; text-align: center; }
.an-demo .wm-pbh b { display: block; overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-pbh small { display: block; color: var(--text-muted); font-size: 0.8em; }
.an-demo .wm-pbg { --rh: 2.2em; position: relative; height: calc(8 * var(--rh)); background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rh) - 1px), var(--hairline) calc(var(--rh) - 1px) var(--rh)); }
.an-demo .wm-rail { display: grid; grid-template-rows: repeat(8, var(--rh)); }
.an-demo .wm-rail span { padding-top: 0.15em; color: var(--text-muted); font-size: 0.78em; }
.an-demo .wm-tcol { position: relative; min-width: 0; border-left: 1px solid var(--hairline); }
.an-demo .wm-tbk { position: absolute; top: calc(var(--s) * var(--rh)); right: 0.2em; left: 0.2em; height: calc(var(--d) * var(--rh) - 1px); padding: 0.4em 0.55em; overflow: hidden; border-radius: calc(var(--r-16) / 3); background: var(--c); line-height: 1.25; transition: background-color 0.6s, box-shadow 0.4s; }
.an-demo .wm-tbk b { display: block; overflow: hidden; font-size: 0.86em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-tbk small { display: block; overflow: hidden; font-size: 0.78em; opacity: 0.8; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-tbk.is-me { box-shadow: 0 0 0 var(--focus-width) var(--text); }
.an-demo .wm-bst { display: inline-block; margin-top: 0.35em; padding: 0.05em 0.6em; border-radius: var(--r-full); background: color-mix(in srgb, var(--surface) 85%, transparent); font-size: 0.75em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .wm-bfill { position: absolute; bottom: 0; left: 0; width: 0; height: 0.3em; background: color-mix(in srgb, var(--text) 45%, transparent); }
.an-demo .wm-leg { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin-top: var(--sp-3); color: var(--text-muted); font-size: 0.82em; }
.an-demo .wm-leg span { display: inline-flex; align-items: center; gap: 0.45em; }
.an-demo .wm-leg i { width: 0.75em; height: 0.75em; border-radius: 0.2em; background: var(--c); }
.an-demo .wm-eff { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 var(--sp-2); margin-top: var(--sp-4); padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); transition: background-color 0.5s, color 0.5s; }
.an-demo .wm-eff span { font-weight: var(--fw-bold); }
.an-demo .wm-eff b { grid-row: 1 / 3; grid-column: 2; font-size: 1.9em; font-variant-numeric: tabular-nums; }
.an-demo .wm-eff small { color: var(--text-muted); font-size: 0.82em; transition: color 0.5s; }
.an-demo .wm-eff.is-on { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .wm-eff.is-on small { color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); }
.an-demo .in-phone.wm-tab { width: 22em; border-radius: 2.2em; }
.an-demo .wm-tjob { padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-16); transition: border-color 0.3s; }
.an-demo .wm-tjob.is-live { border-color: var(--text); }
.an-demo .wm-tjob-h { display: flex; align-items: center; gap: var(--sp-2); }
.an-demo .wm-tmr { padding: var(--sp-3) 0 var(--sp-1); text-align: center; }
.an-demo .wm-tmr span { display: block; color: var(--text-muted); font-size: 0.75em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .wm-tmr b { display: block; font-size: 2.4em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.an-demo .wm-tmr small { display: block; min-height: 1.3em; color: var(--text-muted); font-size: 0.82em; }
.an-demo .wm-prog { height: 0.4em; margin: var(--sp-1) 0 var(--sp-3); overflow: hidden; border-radius: var(--r-full); background: var(--hairline); }
.an-demo .wm-prog i { display: block; width: 0; height: 100%; background: var(--accent); }
.an-demo .wm-tbtns { display: flex; gap: var(--sp-2); }
:root .an-demo .wm-tbtns .in-pbtn { flex: 1 1 0; }
:root .an-demo .wm-tbtns .in-pbtn[hidden] { display: none; }
.an-demo .in-st.is-run { border-color: var(--text); color: var(--text); }
.an-demo .in-st.is-brk { border-color: var(--text-muted); background: var(--action-subtle); color: var(--text); }
.an-demo .wm-next { cursor: default; opacity: 0.75; }

/* Keep records clean: the job card with its capture buttons, and cause and solution per job */
@container indesk (width >= 47rem) { .an-demo .wm-jc { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.an-demo .wm-ord, .an-demo .wm-jl { overflow: hidden; border: 1px solid var(--hairline); border-left: 0.25em solid var(--a-yellow); border-radius: calc(var(--r-16) * 0.6); transition: border-color 0.4s; }
.an-demo .wm-jl { margin-top: var(--sp-3); }
.an-demo .wm-jl.is-done { border-left-color: var(--a-verbena); }
.an-demo .wm-jrow, .an-demo .wm-jlh { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); background: var(--surface-muted); }
.an-demo .wm-jno { flex: 1; font-size: 1.15em; font-weight: var(--fw-bold); }
.an-demo .wm-jplay { display: grid; place-items: center; width: 2.3em; height: 2.3em; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); background: var(--surface); }
.an-demo .wm-jplay svg { width: 1.1em; height: 1.1em; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; }
.an-demo .wm-tbar { display: flex; gap: var(--sp-2); padding: var(--sp-1) var(--sp-2); border-top: 1px solid var(--hairline); background: var(--surface); }
:root .an-demo .wm-ib { position: relative; display: grid; place-items: center; width: 2.7em; height: 2.4em; border-radius: calc(var(--r-16) / 2); color: var(--text); transition: background-color 0.2s, transform 0.15s; }
.an-demo span.wm-ib { color: var(--text-muted); }
.an-demo .wm-ib svg { width: 1.45em; height: 1.45em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.an-demo .wm-ib svg .b { fill: currentColor; stroke: none; }
.an-demo .wm-ib svg .w { stroke: var(--surface); }
.an-demo .wm-ib svg circle.w { fill: var(--surface); stroke: none; }
:root .an-demo button.wm-ib:hover { background: var(--surface-muted); }
:root .an-demo button.wm-ib[aria-expanded="true"] { background: var(--action-subtle); }
.an-demo .wm-ib.is-press { transform: scale(0.9); }
.an-demo .wm-ib .in-count { position: absolute; top: -0.35em; right: -0.25em; margin: 0; }
.an-demo .wm-chev svg { width: 1.1em; height: 1.1em; fill: none; stroke: var(--text); stroke-width: 1.6; }
.an-demo .wm-jlt { flex: 1; min-width: 0; }
.an-demo .wm-jlt b { display: block; margin-bottom: 0.25em; font-size: 1.05em; }
.an-demo .wm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.an-demo .wm-chipok { padding: 0.1em 0.55em; border: 1px solid var(--a-verbena); border-radius: calc(var(--r-16) / 3); background: color-mix(in srgb, var(--a-verbena) 15%, var(--surface)); font-size: 0.82em; font-weight: var(--fw-semibold); white-space: nowrap; }
.an-demo .wm-jst { padding: 0.1em 0.65em; border-radius: var(--r-full); font-size: 0.86em; font-weight: var(--fw-semibold); white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.an-demo .wm-jst.is-done { background: var(--surface-inverse); color: var(--text-on-dark); }
:root .an-demo .wm-chk { display: grid; flex: none; place-items: center; width: 2.6em; height: 2.6em; border: 1px solid var(--border); border-radius: calc(var(--r-16) / 2); background: var(--surface); color: var(--text); transition: background-color 0.3s, color 0.3s, transform 0.15s; }
.an-demo .wm-chk svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root .an-demo .wm-chk[aria-pressed="true"] { border-color: var(--surface-inverse); background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .wm-chk.is-press { transform: scale(0.9); }
.an-demo .wm-att { padding: var(--sp-2) var(--sp-3); border-top: 1px solid var(--hairline); }
.an-demo .wm-att-h { display: flex; align-items: center; margin-bottom: var(--sp-1); color: var(--text-muted); font-size: 0.82em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.an-demo .wm-strip { display: flex; gap: var(--sp-2); height: 3.6em; overflow: hidden; }
.an-demo .wm-att-e { display: grid; flex: 1; place-items: center; border: 1px dashed var(--border); border-radius: calc(var(--r-16) / 2); color: var(--text-muted); font-size: 0.86em; }
.an-demo .wm-att-e[hidden] { display: none; }
.an-demo .wm-th { position: relative; display: grid; flex: none; place-items: center; width: 4.7em; height: 3.6em; overflow: hidden; border-radius: calc(var(--r-16) / 2); animation: wm-th-in 0.5s var(--ease); }
@keyframes wm-th-in { from { opacity: 0; transform: translateX(-1em) scale(0.8); } }
.an-demo .wm-th svg { width: 100%; height: 100%; }
.an-demo .wm-th small { position: absolute; right: 0.4em; bottom: 0.2em; color: var(--text-on-dark); font-size: 0.7em; font-weight: var(--fw-bold); }
.an-demo .wm-th .f1 { fill: color-mix(in srgb, var(--surface) 28%, transparent); }
.an-demo .wm-th .f2 { fill: color-mix(in srgb, var(--surface) 55%, transparent); }
.an-demo .wm-th .f3 { fill: var(--surface); }
.an-demo .wm-th .s1 { fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; }
.an-demo .wm-th .s2 { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.an-demo .wm-th.t-image { background: linear-gradient(160deg, var(--a-grey), var(--a-dark-grey)); }
.an-demo .wm-th.t-image::after { content: ""; position: absolute; inset: 0; background: var(--surface); opacity: 0; animation: wm-shut 0.7s ease-out; }
@keyframes wm-shut { 0% { opacity: 0.95; } 100% { opacity: 0; } }
.an-demo .wm-th.t-video { background: linear-gradient(160deg, var(--a-dark-grey), var(--surface-inverse)); }
.an-demo .wm-th.t-audio, .an-demo .wm-th.t-file { background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.an-demo .wm-th.t-audio small, .an-demo .wm-th.t-file small { color: var(--text-muted); }
.an-demo .wm-th.t-note { background: var(--action-subtle); }
.an-demo .wm-th.t-note small { right: auto; left: 0.4em; color: var(--text); }
.an-demo .wm-th.t-file b { color: var(--danger); font-size: 0.93em; font-weight: var(--fw-bold); }
.an-demo .wm-lns { padding: 0 var(--sp-3) var(--sp-3); border-top: 1px solid var(--hairline); }
.an-demo .wm-lh { margin: var(--sp-2) 0 var(--sp-1); font-size: 0.93em; font-weight: var(--fw-bold); }
.an-demo .wm-lb { overflow: hidden; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2); }
.an-demo .wm-lt { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: 0.55em var(--sp-3); background: var(--surface-muted); }
.an-demo .wm-lt span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-tick { position: relative; flex: none; width: 1.4em; height: 1.4em; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); transition: background-color 0.3s, border-color 0.3s; }
.an-demo .wm-tick::after { content: ""; position: absolute; top: 0.22em; left: 0.45em; width: 0.35em; height: 0.65em; border: solid var(--text-on-dark); border-width: 0 0.13em 0.13em 0; opacity: 0; transform: rotate(45deg); transition: opacity 0.3s; }
.an-demo .wm-tick.is-done { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .wm-tick.is-done::after { opacity: 1; }
.an-demo .wm-lq { padding: 0.45em var(--sp-3) 0.5em; }
.an-demo .wm-lq small { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .wm-sum { display: flex; align-items: center; gap: var(--sp-2); min-height: 1.5em; margin-top: var(--sp-3); font-size: 0.93em; font-weight: var(--fw-semibold); opacity: 0; transform: translateY(0.3em); transition: opacity 0.4s, transform 0.4s; }
.an-demo .wm-sum.is-on { opacity: 1; transform: none; }
.an-demo .wm-sum i { flex: none; width: 0.55em; height: 0.55em; border-radius: var(--r-full); background: var(--accent); }
.an-demo .wm-jmenu { position: absolute; top: 0; left: 0; z-index: 5; display: grid; min-width: 12.5em; padding: var(--sp-1); border-radius: calc(var(--r-16) * 0.6); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--hairline); animation: wm-menu 0.22s var(--ease); }
@keyframes wm-menu { from { opacity: 0; transform: translateY(-0.3em); } }
.an-demo .wm-jmenu[hidden] { display: none; }
:root .an-demo .wm-jmenu button { display: flex; align-items: center; gap: 0.7em; width: 100%; min-height: 2.3em; padding: 0.3em 0.8em; border-radius: calc(var(--r-16) / 3); text-align: left; white-space: nowrap; transition: transform 0.15s; }
.an-demo .wm-jmenu svg { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:root .an-demo .wm-jmenu button:hover, :root .an-demo .wm-jmenu button.is-hot { background: var(--action-subtle); }
.an-demo .wm-jmenu button.is-press { transform: scale(0.97); }
:root .an-demo .wm-cbtn { display: inline-flex; align-items: center; gap: 0.4em; min-height: 2em; padding: 0 0.3em; border-radius: calc(var(--r-16) / 3); font-size: 0.93em; }
.an-demo .wm-cbtn svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; }
:root .an-demo .wm-cbtn:hover { text-decoration: underline; }
.an-demo .wm-acc { display: grid; gap: var(--sp-2); }
.an-demo .wm-ac { overflow: hidden; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); transition: box-shadow 0.35s; }
.an-demo .wm-ac.is-tgt { box-shadow: 0 0 0 var(--focus-width) var(--accent); }
:root .an-demo .wm-ach { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 2.8em; padding: 0.55em var(--sp-3); background: var(--surface-muted); font-weight: var(--fw-semibold); text-align: left; }
:root .an-demo .wm-ac.sub .wm-ach { padding-left: 1.6em; background: var(--surface); }
.an-demo .wm-ach span { flex: 1; min-width: 0; }
.an-demo .wm-ach svg { flex: none; width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.an-demo .wm-ach .cv { transition: transform 0.35s; }
.an-demo .wm-ac.is-open .wm-ach .cv { transform: rotate(180deg); }
.an-demo .wm-acb { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.an-demo .wm-ac.is-open .wm-acb { grid-template-rows: 1fr; }
.an-demo .wm-aci { min-height: 0; overflow: hidden; }
.an-demo .wm-cs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.an-demo .wm-ccol { padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.an-demo .wm-ccol + .wm-ccol { border-left: 1px solid var(--hairline); }
.an-demo .wm-ccol b { display: block; margin-bottom: 0.25em; font-size: 0.93em; }
.an-demo .wm-tx { display: grid; border-radius: calc(var(--r-16) / 3); font-size: 0.93em; line-height: 1.45; transition: background-color 0.8s; }
.an-demo .wm-tx > * { grid-area: 1 / 1; }
.an-demo .wm-tx .g { visibility: hidden; }
.an-demo .wm-tx .ph { color: var(--text-muted); }
.an-demo .wm-tx.has-v .ph { display: none; }
.an-demo .wm-tx.is-typing .v::after { content: ""; display: inline-block; width: 0.12em; height: 1.05em; margin-left: 0.05em; vertical-align: -0.15em; background: var(--accent); animation: wm-blink 0.8s steps(1) infinite; }
@keyframes wm-blink { 50% { opacity: 0; } }

/* Standardize service: the jobs to schedule and the planning board with capacity per mechanic */
.an-demo .wm-pl2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); --rh: 1.45em; --tc: 3em; }
@container indesk (width >= 50rem) { .an-demo .wm-pl2 { grid-template-columns: 15em minmax(0, 1fr); } }
@container indesk (width < 40rem) { .an-demo .wm-pl2 { --rh: 1.25em; --tc: 2.5em; } }
.an-demo .wm-q { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.an-demo .wm-q li { min-width: 0; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); background: var(--surface); transition: background-color 0.3s, border-color 0.3s, opacity 0.4s calc(var(--i) * 90ms), transform 0.4s calc(var(--i) * 90ms); }
.an-demo .wm-q.is-off li { opacity: 0; transform: translateY(0.4em); }
.an-demo .wm-q li.is-sel { border-color: var(--text); background: var(--action-subtle); }
.an-demo .wm-q li.is-done { opacity: 0.45; }
.an-demo .wm-q li.is-done.is-sel { opacity: 1; }
:root .an-demo .wm-qj { display: grid; grid-template-columns: 0.6em minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2); width: 100%; padding: 0.55em 0.7em; border-radius: calc(var(--r-16) * 0.6); font-size: 0.93em; text-align: left; transition: transform 0.15s; }
.an-demo .wm-qj.is-press { transform: scale(0.97); }
.an-demo .wm-qj i { width: 0.6em; height: 2em; border-radius: 0.2em; background: var(--c); }
.an-demo .wm-qj span { min-width: 0; }
.an-demo .wm-qj b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-qj small { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.86em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-qj em { font-size: 0.93em; font-style: normal; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.an-demo .wm-qdone { margin-top: var(--sp-2); padding: 0.55em 0.75em; border-radius: calc(var(--r-16) * 0.6); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.93em; font-weight: var(--fw-bold); }
.an-demo .wm-qdone[hidden] { display: none; }
:root .an-demo .wm-clear { height: 2.5em; margin-top: var(--sp-3); font-size: 0.93em; }
.an-demo .wm-cal2 { padding: var(--sp-3); }
.an-demo .wm-cg { display: grid; grid-template-columns: var(--tc) repeat(4, minmax(0, 1fr)); }
.an-demo .wm-rh { position: relative; min-width: 0; padding: 0.15em 0.55em 0.6em; border-left: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 2) calc(var(--r-16) / 2) 0 0; transition: background-color 0.4s; }
.an-demo .wm-rh b { display: block; overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-rh small { display: block; color: var(--text-muted); font-size: 0.82em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-demo .wm-cbar { display: block; height: 0.3em; margin-top: 0.35em; overflow: hidden; border-radius: var(--r-full); background: var(--hairline); }
.an-demo .wm-cbar i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 0.7s var(--ease), background-color 0.3s; }
.an-demo .wm-rh.is-full .wm-cbar i { background: var(--accent); }
.an-demo.wm-cap0 .wm-cbar i { width: 0 !important; }
.an-demo .wm-free { position: absolute; top: 1.55em; right: 0.4em; padding: 0.05em 0.5em; border-radius: var(--r-full); background: var(--action-subtle); font-size: 0.75em; font-style: normal; font-weight: var(--fw-bold); opacity: 0; transition: opacity 0.4s; }
.an-demo .wm-free.is-on { opacity: 1; }
.an-demo .wm-cal2.is-caps .wm-rh { background: var(--surface-muted); }
:root .an-demo .wm-rh.is-hl { background: var(--action-subtle); }
@container indesk (width < 40rem) { .an-demo .wm-rh { padding: 0.15em 0.3em 0.5em; } .an-demo .wm-rh b { font-size: 0.78em; } .an-demo .wm-rh small { font-size: 0.7em; } .an-demo .wm-free { display: none; } }
.an-demo .wm-cbody { border-top: 1px solid var(--hairline); }
.an-demo .wm-hrs { position: relative; height: calc(18 * var(--rh)); }
.an-demo .wm-hrs span { position: absolute; top: calc(var(--a) * var(--rh)); left: 0; transform: translateY(-50%); }
.an-demo .wm-hrs i { color: var(--text-muted); font-size: 0.75em; font-style: normal; font-variant-numeric: tabular-nums; }
.an-demo .wm-hrs span:first-child { transform: none; }
.an-demo .wm-hrs span:last-child { transform: translateY(-100%); }
.an-demo .wm-pcol { position: relative; height: calc(18 * var(--rh)); border-left: 1px solid var(--hairline); background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--rh) - 1px), var(--surface-muted) calc(var(--rh) - 1px) var(--rh)); transition: box-shadow 0.3s; }
.an-demo.is-pick .wm-pcol { cursor: copy; }
.an-demo .wm-pcol.is-no { box-shadow: inset 0 0 0 var(--focus-width) var(--danger); }
.an-demo .wm-pbk, .an-demo .wm-ghost { position: absolute; top: calc(var(--a) * var(--rh) + 1px); right: 0.2em; left: 0.2em; height: calc(var(--n) * var(--rh) - 0.15em); padding: 0.4em 0.55em; overflow: hidden; border-radius: calc(var(--r-16) / 2.5); background: var(--c); line-height: 1.25; }
.an-demo .wm-pbk { z-index: 1; cursor: pointer; transition: opacity 0.35s, transform 0.35s, box-shadow 0.3s; }
.an-demo .wm-pbk b { display: block; overflow: hidden; font-size: 0.86em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-pbk small { display: block; overflow: hidden; font-size: 0.75em; opacity: 0.8; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-pbk.is-off { opacity: 0; pointer-events: none; transform: scale(0.94); }
.an-demo .in-board .wm-pbk.is-pop { animation: wm-bump 0.55s var(--ease); }
.an-demo .wm-pbk.is-sel { box-shadow: 0 0 0 var(--focus-width) var(--text), var(--shadow-2); }
.an-demo .wm-pbk.wm-abs { background: repeating-linear-gradient(135deg, var(--hairline) 0 0.4em, var(--surface-muted) 0.4em 0.8em); cursor: default; }
.an-demo .wm-ghost { z-index: 2; border: 1px dashed var(--hairline-strong); color: var(--text-muted); font-size: 0.86em; font-weight: var(--fw-bold); white-space: nowrap; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.an-demo .wm-ghost.is-on { opacity: 0.6; }
.an-demo .wm-ghost.is-no { border-color: var(--danger); background: var(--action-subtle); color: var(--danger); opacity: 0.9; }
@container indesk (width < 40rem) { .an-demo .wm-pbk { padding: 0.25em 0.3em; } .an-demo .wm-pbk b { font-size: 0.75em; } .an-demo .wm-pbk small { font-size: 0.68em; } }

/* Boost reliability: KPIs, utilisation per mechanic, a mechanic's day, the trend and the waiting jobs */
.an-demo .wm-wrec { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding-bottom: var(--sp-3); }
.an-demo .wm-period { display: flex; gap: var(--sp-1); }
:root .an-demo .wm-chipbtn { height: 2.3em; padding: 0 1em; border: 1px solid var(--surface-inverse); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: 0.93em; font-weight: var(--fw-bold); transition: background-color 0.25s, color 0.25s, transform 0.15s; }
:root .an-demo .wm-chipbtn[aria-pressed="true"] { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .wm-chipbtn.is-press { transform: scale(0.94); }
.an-demo .wm-wd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
@container indesk (width >= 47rem) {
  .an-demo .wm-wd { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .an-demo .wm-wd [data-panel="kpi"] { grid-column: 1 / -1; }
  .an-demo .wm-wd [data-panel="util"] { grid-row: 2; grid-column: 1; }
  .an-demo .wm-wd [data-panel="mech"] { grid-row: 2; grid-column: 2; }
  .an-demo .wm-wd [data-panel="trend"] { grid-row: 3; grid-column: 1; }
  .an-demo .wm-wd [data-panel="wait"] { grid-row: 3; grid-column: 2; }
}
@container indesk (width < 47rem) { .an-demo .wm-wd [data-panel="trend"] { order: 5; } }
.an-demo .wm-wd [data-panel="kpi"] { padding: var(--sp-3); }
.an-demo .wm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); gap: var(--sp-2); }
.an-demo .wm-kpi { display: grid; gap: 0.1em; min-width: 0; padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); transition: background-color 0.4s; }
.an-demo .wm-kl { overflow: hidden; color: var(--text-muted); font-size: 0.82em; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-kpi b { font-size: 1.85em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.an-demo .wm-kpi small { overflow: hidden; color: var(--text-muted); font-size: 0.78em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-tgtkey { display: flex; align-items: center; gap: 0.4em; color: var(--text-muted); font-size: 0.82em; font-weight: var(--fw-semibold); }
.an-demo .wm-tgtkey i { width: 0; height: 0.85em; border-left: 0.15em dashed var(--accent); }
.an-demo .wm-mrows { display: grid; gap: 0.25em; }
:root .an-demo .wm-mrow { position: relative; display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) 3em; align-items: center; gap: var(--sp-2); width: 100%; padding: 0.55em 0.4em; border-radius: calc(var(--r-16) / 2); text-align: left; transition: box-shadow 0.25s, background-color 0.35s, transform 0.15s; }
:root .an-demo .wm-mrow:hover { background: var(--surface-muted); }
:root .an-demo .wm-mrow.is-spot { background: var(--action-subtle); }
:root .an-demo .wm-mrow[aria-pressed="true"] { box-shadow: inset 0 0 0 var(--focus-width) var(--text); }
.an-demo .wm-mrow.is-press { transform: scale(0.98); }
.an-demo .wm-mnm { min-width: 0; }
.an-demo .wm-mnm b { display: block; overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-mnm small { display: block; color: var(--text-muted); font-size: 0.8em; font-variant-numeric: tabular-nums; }
.an-demo .wm-trk { position: relative; height: 0.85em; border-radius: var(--r-full); background: var(--hairline); }
.an-demo .wm-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 1s var(--ease), background-color 0.4s; }
.an-demo .wm-mrow.is-under .wm-fill { background: var(--danger); }
.an-demo .wm-tgt { position: absolute; top: -0.3em; bottom: -0.3em; left: 85%; border-left: 0.15em dashed var(--accent); }
.an-demo .wm-val { font-size: 0.93em; font-variant-numeric: tabular-nums; text-align: right; }
.an-demo .wm-mrow.is-under .wm-val { color: var(--danger); }
.an-demo .wm-mday[hidden] { display: none; }
.an-demo .wm-mfree { margin-bottom: var(--sp-2); font-size: 0.93em; }
.an-demo .wm-tline { display: grid; gap: 0.35em; }
.an-demo .wm-lane { position: relative; height: 2.8em; border-radius: calc(var(--r-16) / 2); background: repeating-linear-gradient(90deg, var(--surface-muted) 0 calc(25% - 1px), var(--hairline) calc(25% - 1px) 25%); }
.an-demo .wm-blk { position: absolute; top: 0.2em; bottom: 0.2em; padding: 0.3em 0.5em; overflow: hidden; border-radius: calc(var(--r-16) / 2.5); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.8em; font-weight: var(--fw-semibold); line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wm-blk small { display: block; font-size: 0.9em; font-weight: var(--fw-regular); opacity: 0.8; }
.an-demo .wm-blk.abs { background: var(--border); }
.an-demo .wm-blk.new { padding-right: 1.6em; background: var(--surface); box-shadow: inset 0 0 0 var(--focus-width) var(--accent); color: var(--text); animation: wm-blk 0.5s var(--ease); }
@keyframes wm-blk { from { opacity: 0; transform: scaleX(0.6); transform-origin: left; } }
:root .an-demo .wm-ux { position: absolute; top: 0.2em; right: 0.2em; display: grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: var(--r-full); color: var(--danger); font-weight: var(--fw-bold); line-height: 1; }
.an-demo .wm-freeb { position: absolute; top: 0.2em; bottom: 0.2em; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed var(--border); border-radius: calc(var(--r-16) / 2.5); color: var(--text-muted); font-size: 0.8em; white-space: nowrap; }
.an-demo .wm-ticks { display: flex; justify-content: space-between; margin-top: 0.4em; color: var(--text-muted); font-size: 0.78em; font-variant-numeric: tabular-nums; }
.an-demo .wm-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.an-demo .wm-chart .gd { fill: none; stroke: var(--hairline); stroke-width: 1; }
.an-demo .wm-chart text { fill: var(--text-muted); }
.an-demo .wm-chart .yl { text-anchor: end; }
.an-demo .wm-chart .xl text { text-anchor: middle; }
.an-demo .wm-chart .ref { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 5; }
.an-demo .wm-chart .reft { fill: var(--accent); font-weight: var(--fw-bold); text-anchor: end; }
.an-demo .wm-chart .line { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.an-demo .wm-chart.is-drawn .line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.an-demo .wm-chart .pts circle { fill: var(--surface); stroke: var(--text); stroke-width: 2; opacity: 0; transition: opacity 0.3s calc(var(--i) * 120ms); }
.an-demo .wm-chart.is-drawn .pts circle { opacity: 1; }
:root .an-demo .wm-lnk { min-height: 2em; padding: 0 0.3em; font-size: 0.93em; font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 0.15em; }
.an-demo .wm-wjobs { display: grid; gap: var(--sp-2); }
.an-demo .wm-wjob { display: flex; align-items: center; gap: var(--sp-2); padding: 0.6em 0.7em; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.75); transition: opacity 0.35s, transform 0.35s; }
.an-demo .wm-wjob[hidden] { display: none; }
.an-demo .wm-wjob.is-out { opacity: 0; transform: translateX(1em); }
:root .an-demo .wm-wjob .in-dbtn { flex: none; height: 2.3em; padding: 0 0.9em; font-size: 0.86em; }

/* ---------- Warranty screens (A365 Warranty, 30 Nov 2026) ----------
   The back office reuses the contract and Inspections parts (ct-*, in-*), the chips the Sales ones (sl-chip);
   the dealer portal, the stage bar and the rest are wa-*. Pale red marks what just changed, as on the other demos. */
.an-demo .wa-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-content: start; }
.an-demo .wa-grid > * { min-width: 0; }
@container indesk (width >= 40rem) {
  .an-demo .wa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-demo .wa-grid--side { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .an-demo .wa-span { grid-column: 1 / -1; }
}
.an-demo .wa-mute, .an-demo .ct-fields dd.wa-blank { color: var(--text-muted); }

/* Key figures */
.an-demo .wa-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
@container indesk (width >= 40rem) { .an-demo .wa-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.an-demo .ct-card.wa-kpi { min-width: 0; padding: var(--sp-3) var(--sp-4); }
.an-demo .wa-kpi small, .an-demo .wa-kpi em { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.86em; font-style: normal; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wa-kpi small { font-weight: var(--fw-semibold); }
.an-demo .wa-kpi b { display: block; margin: 0.1em 0; font-size: 1.6em; font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-h2); white-space: nowrap; transition: opacity 0.4s; }
.an-demo .wa-kpis.is-off .wa-kpi b { opacity: 0; }

/* Tables */
.an-demo .wa-t td { white-space: nowrap; }
.an-demo .wa-t td:first-child, .an-demo .wa-t td.wa-out { white-space: normal; }
.an-demo .wa-t td.id { font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .wa-t .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.an-demo .wa-t td small { margin-left: 0.3em; color: var(--text-muted); font-size: 0.86em; }
.an-demo .wa-t tfoot td { border-bottom: 0; font-weight: var(--fw-bold); }
.an-demo .wa-t .ct-pill { display: inline-block; min-width: 7.5em; text-align: center; }
.an-demo .wa-fade tbody tr { transition: opacity 0.35s calc(var(--i, 0) * 120ms), transform 0.35s calc(var(--i, 0) * 120ms); }
.an-demo .wa-fade.is-off tbody tr { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .ct-pill.wa-x { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--text-muted); }
.an-demo .wa-row { cursor: pointer; }
.an-demo .wa-row:hover td { background: var(--surface-muted); }
.an-demo .wa-row[aria-selected="true"] td { background: var(--action-subtle); transition: background-color 0.15s; }
.an-demo .wa-actrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-3); margin-top: var(--sp-3); }
.an-demo .wa-actrow .ct-note { flex: 1; min-width: 0; min-height: 0; margin: 0; }

/* Checks with a tick, a cross for a failed rule, and the figure checked */
.an-demo .wa-checks { display: grid; grid-template-columns: minmax(0, 1fr); }
.an-demo .wa-checks li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--hairline); }
.an-demo .wa-checks li > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wa-checks small { color: var(--text-muted); font-size: 0.9em; white-space: nowrap; }
.an-demo .wa-checks .ca-tick, .an-demo .wa-checks .ca-tick::after { transition-delay: calc(var(--i, 0) * 280ms); }
.an-demo .wa-checks li.is-ok .ca-tick { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .wa-checks li.is-ok .ca-tick::after { transform: rotate(-45deg) translate(0.05em, -0.05em) scale(1); }
.an-demo .wa-checks li.is-no .ca-tick { border-color: var(--danger); background: var(--danger); }
.an-demo .wa-checks li.is-no .ca-tick::after { content: "!"; width: auto; height: auto; border: 0; color: var(--danger-on); font-size: 0.8em; font-weight: var(--fw-bold); line-height: 1; transform: none; }
.an-demo .wa-checks li.is-no small { color: var(--danger); font-weight: var(--fw-bold); }

/* The claim's stage bar in the back office, and its copy in the dealer portal */
.an-demo .wa-flowrow { display: flex; align-items: flex-end; gap: var(--sp-4); padding: var(--sp-1) 0 var(--sp-4); }
.an-demo .wa-flow { display: flex; flex: 1; gap: var(--sp-2); min-width: 0; }
.an-demo .wa-flow li { flex: 1 1 0; min-width: 0; }
:root .an-demo .wa-flow button { display: block; width: 100%; padding: var(--sp-1) 0; overflow: hidden; color: var(--text-muted); font-size: 0.9em; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s; }
.an-demo .wa-flow i { display: block; height: 0.45em; margin-bottom: 0.45em; border-radius: var(--r-full); background: var(--hairline); transition: background-color 0.4s; }
.an-demo .wa-flow li.is-done i, .an-demo .wa-pflow li.is-done::before { background: var(--surface-inverse); }
.an-demo .wa-flow li.is-cur i, .an-demo .wa-pflow li.is-cur::before { background: var(--accent); }
:root .an-demo .wa-flow li.is-done button, :root .an-demo .wa-flow li.is-cur button { color: var(--text); }
.an-demo .wa-flowrow .in-dbtn { flex: none; min-width: 11em; }
@container indesk (width < 34rem) {
  .an-demo .wa-flowrow { flex-wrap: wrap; }
  :root .an-demo .wa-flowrow .in-dbtn { width: 100%; }
}
.an-demo .wa-pflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3em; color: var(--text-muted); font-size: 0.78em; font-weight: var(--fw-semibold); }
.an-demo .wa-pflow li { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s; }
.an-demo .wa-pflow li::before { content: ""; display: block; height: 0.35em; margin-bottom: 0.4em; border-radius: var(--r-full); background: var(--hairline); transition: background-color 0.4s; }
.an-demo .wa-pflow li.is-done, .an-demo .wa-pflow li.is-cur { color: var(--text); }

/* The dealer portal beside the back office */
.an-demo .wa-port { display: flex; flex-direction: column; align-self: center; width: 22em; max-width: 100%; overflow: hidden; border-radius: var(--r-16); background: var(--surface); box-shadow: var(--shadow-2); transition: background-color 0.6s; }
.an-demo .wa-pnav { display: flex; align-items: stretch; gap: var(--sp-4); height: 3.4em; padding: 0 var(--sp-4); border-bottom: 1px solid var(--hairline); font-size: 0.93em; }
.an-demo .wa-pnav > span { display: flex; align-items: center; }
.an-demo .wa-pnav .ct-logo { align-self: center; font-size: 1.2em; }
.an-demo .wa-pnav .on { font-weight: var(--fw-bold); box-shadow: inset 0 calc(-1 * var(--focus-width)) var(--accent); }
.an-demo .wa-user { margin-left: auto; color: var(--text-muted); }
.an-demo .wa-pbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-4); }
.an-demo .wa-ph { font-size: 1.2em; font-weight: var(--fw-bold); }
.an-demo .ct-card.wa-pcard { display: grid; gap: var(--sp-3); padding: var(--sp-3); }
.an-demo .wa-prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.1em var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 1.6); background: var(--surface); transition: background-color 0.5s; }
.an-demo .wa-pcard .wa-prow { margin: calc(-1 * var(--sp-1)); padding: var(--sp-1); border: 0; }
.an-demo .wa-prow b { overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wa-prow small { grid-column: 1; color: var(--text-muted); font-size: 0.82em; }
.an-demo .wa-prow .ct-pill { grid-row: 1 / 3; grid-column: 2; }
.an-demo .wa-pdealer { margin-top: calc(-1 * var(--sp-2)); color: var(--text-muted); font-size: 0.82em; }
.an-demo .wa-punits { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
.an-demo .wa-punits li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.1em var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 1.6); transition: background-color 0.5s; }
.an-demo .wa-punits b { font-size: 0.93em; }
.an-demo .wa-punits small { grid-column: 1; color: var(--text-muted); font-size: 0.82em; }
:root .an-demo .wa-punits .in-pbtn { grid-row: 1 / 3; grid-column: 2; height: 2.4em; padding: 0 0.9em; font-size: 0.86em; }

/* Claim validation */
.an-demo .wa-meta { margin-bottom: var(--sp-2); overflow: hidden; color: var(--text-muted); font-size: 0.9em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wa-decide { display: grid; gap: var(--sp-2); min-height: 6em; margin-top: var(--sp-3); align-content: start; }
.an-demo .wa-verdict { font-weight: var(--fw-semibold); }
.an-demo .wa-verdict.is-red, .an-demo .wa-covered.is-red { color: var(--danger); }
.an-demo .wa-vbtns { display: flex; justify-content: flex-end; gap: var(--sp-2); transition: opacity 0.3s; }
.an-demo .wa-vbtns.is-off { visibility: hidden; opacity: 0; }

/* Warranty types and terms */
.an-demo .wa-filt { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); }
.an-demo .wa-filt .sl-chips { margin-bottom: 0; }
.an-demo .sl-chips .wa-chipl { min-width: 3.6em; color: var(--text-muted); font-size: 0.86em; }
.an-demo .wa-grid .sl-chips { align-items: center; }
.an-demo .wa-wts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
@container incard (width < 30rem) { .an-demo .wa-wts { grid-template-columns: minmax(0, 1fr); } }
.an-demo .wa-wt { min-width: 0; padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 1.6); transition: border-color 0.3s, box-shadow 0.3s, opacity 0.4s calc(var(--i, 0) * 180ms), transform 0.4s calc(var(--i, 0) * 180ms); }
.an-demo .wa-wts.is-off .wa-wt { opacity: 0; transform: translateY(var(--sp-2)); }
.an-demo .wa-wt.is-match { border-color: var(--accent); box-shadow: 0 0 0 var(--focus-width) color-mix(in srgb, var(--accent) 20%, transparent); }
.an-demo .wa-wth { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-1); margin-bottom: var(--sp-2); }
.an-demo .wa-wth b { font-size: 1.07em; }
.an-demo .wa-wt dl { display: grid; gap: var(--sp-1); }
.an-demo .wa-wt dl > div { display: grid; gap: 0.1em; }
.an-demo .wa-wt dt { color: var(--text-muted); font-size: 0.8em; }
.an-demo .wa-wt dd { min-height: 1.9em; padding: 0.3em 0.6em; overflow: hidden; border-radius: calc(var(--r-16) / 2.5); background: var(--surface-muted); font-size: 0.93em; font-weight: var(--fw-semibold); white-space: nowrap; text-overflow: ellipsis; transition: background-color 0.5s; }
.an-demo .wa-covered { margin-bottom: var(--sp-2); font-size: 1.1em; font-weight: var(--fw-bold); transition: color 0.3s; }

/* Billing: the labour stepper, the invoice and the posted entries */
.an-demo .wa-stepper { display: inline-flex; align-items: center; gap: var(--sp-1); }
.an-demo .wa-stepper b { min-width: 3em; text-align: center; }
:root .an-demo .sl-chip.wa-stepb { justify-content: center; width: 2em; height: 2em; min-height: 2em; padding: 0; font-size: 1em; line-height: 1; }
:root .an-demo .sl-chip.wa-stepb[disabled] { opacity: 0.35; cursor: default; }
.an-demo .wa-doc { padding: var(--sp-3) var(--sp-4); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 1.6); background: var(--surface); transition: opacity 0.4s; }
.an-demo .wa-invc.is-blank .wa-doc, .an-demo .wa-letter.is-blank { opacity: 0.25; }
.an-demo .wa-doch { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); color: var(--text-muted); font-size: 0.86em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); }
.an-demo .wa-doch .ct-logo { color: var(--text); font-size: 1.2em; letter-spacing: var(--ls-h2); }
.an-demo .wa-docmeta { display: grid; gap: 0.2em; margin-bottom: var(--sp-2); }
.an-demo .wa-docmeta > div { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: var(--sp-2); font-size: 0.86em; }
.an-demo .wa-docmeta dt { color: var(--text-muted); }
.an-demo .wa-docmeta dd { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wa-invl { display: grid; grid-template-columns: minmax(0, 1fr); }
.an-demo .wa-invl li { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 0.4em 0; border-top: 1px dashed var(--hairline); font-size: 0.93em; transition: opacity 0.35s calc(var(--i, 0) * 170ms), transform 0.35s calc(var(--i, 0) * 170ms); }
.an-demo .wa-invl li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .wa-invl li b { padding: 0 0.2em; border-radius: calc(var(--r-16) / 4); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color 0.4s; }
.an-demo .wa-invl li.tot { border-top: 1px solid var(--text); font-weight: var(--fw-bold); }
.an-demo .wa-invl.is-off li { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .wa-letter { display: grid; gap: var(--sp-2); font-size: 0.93em; }

/* Recall campaigns */
.an-demo .wa-rtop { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-2); }
.an-demo .wa-rtop .sl-chips { margin-bottom: 0; }
.an-demo .wa-prog { flex: 1; min-width: 5em; height: 0.45em; overflow: hidden; border-radius: var(--r-full); background: var(--hairline); }
.an-demo .wa-prog i { display: block; width: 0; height: 100%; background: var(--surface-inverse); transition: width 0.6s var(--ease); }

/* Centralized history: claims by month, the search and the record types */
.an-demo .wa-bars { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: var(--sp-2); align-items: end; height: 11em; }
:root .an-demo .wa-bars button { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0.3em; height: 100%; min-width: 0; color: var(--text-muted); font-size: 0.82em; }
.an-demo .wa-bars i { display: block; width: 100%; max-width: 2.6em; height: calc(var(--h) * 1%); border-radius: 0.45em 0.45em 0.15em 0.15em; background: var(--surface-inverse); transition: height 0.7s var(--ease) calc(var(--i, 0) * 60ms), background-color 0.3s; }
.an-demo .wa-bars em { color: var(--text); font-size: 0.9em; font-style: normal; font-weight: var(--fw-bold); opacity: 0; transition: opacity 0.3s; }
.an-demo .wa-bars button:hover em, .an-demo .wa-bars button[aria-pressed="true"] em { opacity: 1; }
.an-demo .wa-bars.is-off i { height: 0; }
.an-demo .wa-bars.is-pick button:not([aria-pressed="true"]) i { background: var(--border); }
.an-demo .wa-bars button[aria-pressed="true"] i { background: var(--accent); }
.an-demo .wa-htools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-2); }
.an-demo .wa-htools .sl-chips { margin-bottom: 0; }
:root .an-demo .wa-search { width: 16em; max-width: 100%; height: 2.6em; padding: 0 1em; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); color: var(--text); font-size: 0.93em; transition: border-color 0.2s; }
:root .an-demo .wa-search.is-hot { border-color: var(--text); background: var(--surface); }
:root .an-demo .wa-search:focus { border-color: var(--text); outline: var(--focus-width) solid var(--focus-ring); outline-offset: 0; }
.an-demo .wa-type { padding: 0.15em 0.6em; border-radius: var(--r-full); background: var(--surface-muted); font-size: 0.82em; font-weight: var(--fw-bold); white-space: nowrap; }
.an-demo .wa-type[data-t="Claim"] { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .wa-type[data-t="Decision"] { background: var(--action-subtle); }
.an-demo .wa-type[data-t="Recall"] { background: var(--danger); color: var(--danger-on); }
.an-demo .wa-t td.seg { white-space: normal; }
.an-demo [data-qt] .ct-pill { min-width: 0; }
@container incard (width < 38rem) { .an-demo .wa-t .wa-c3 { display: none; } }
.an-demo--wa-duo.is-camera .an-demo__canvas { width: max(calc(100% - 2 * var(--dm-pad)), 72rem); }
.an-demo .wa-wth { flex-direction: column; align-items: flex-start; }
@container incard (width < 26rem) {
  .an-demo .wa-t th, .an-demo .wa-t td { padding-right: var(--sp-1); padding-left: var(--sp-1); }
  .an-demo .wa-actrow .ct-note { flex-basis: 100%; }
  .an-demo .wa-stepper b { min-width: 2.6em; }
  .an-demo [data-qt] .seg { display: none; }
}
@container incard (width < 30rem) { .an-demo .wa-wt dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-1) var(--sp-2); } }
.an-demo[data-an-demo="wa-valid"] .wa-checks li .ca-tick, .an-demo[data-an-demo="wa-valid"] .wa-checks li .ca-tick::after { transition-delay: 0s; }

/* ---------- Parts screens (A365 Parts, 30 Nov 2026) ----------
   Built on the contract, Inspections, Sales and Warranty parts (ct-*, in-*, sl-chip, wa-*); the rest is pa-*. */
.an-demo .pa-co { margin-left: auto; color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); font-weight: var(--fw-semibold); }
.an-demo .ct-record.pa-rec { padding-bottom: var(--sp-4); }
.an-demo .pa-view { color: var(--text-muted); font-size: 0.86em; }
.an-demo .pa-rec--pill { display: flex; align-items: flex-end; gap: var(--sp-3); }
.an-demo .pa-rec--pill > div { flex: 1; min-width: 0; }
.an-demo .pa-sub { color: var(--text-muted); font-weight: var(--fw-semibold); letter-spacing: normal; text-transform: none; }
@container indesk (width >= 52rem) { .an-demo .pa-split { grid-template-columns: minmax(0, 1fr) 22em; } }
@container indesk (width >= 40rem) { .an-demo .pa-three { grid-template-columns: 15em minmax(0, 1fr); } .an-demo .pa-three > [data-panel="detail"] { grid-column: 1 / -1; } }
@container indesk (width >= 66rem) { .an-demo .pa-three { grid-template-columns: 15em minmax(0, 1fr) 17em; } .an-demo .pa-three > [data-panel="detail"] { grid-column: auto; } }
@container incard (width < 44rem) { .an-demo .pa-wide { display: none; } }
.an-demo .pa-lnk { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 0.15em; }
.an-demo .pa-q { display: inline-block; margin: 0 -0.4em; padding: 0.05em 0.4em; border-radius: calc(var(--r-16) / 4); font-variant-numeric: tabular-nums; transition: background-color 0.3s; }
.an-demo .pa-q.is-zero, .an-demo .pa-neg, .an-demo .pa-bad { color: var(--danger); font-weight: var(--fw-bold); }
.an-demo .pa-loc b { display: block; white-space: nowrap; }
.an-demo .pa-loc small, .an-demo .pa-small { display: block; color: var(--text-muted); font-size: 0.82em; font-weight: var(--fw-regular); }
.an-demo .pa-loc1 { white-space: nowrap; }
.an-demo .pa-btns { display: flex; align-items: center; gap: var(--sp-1); }
:root .an-demo .pa-tbtn { min-height: 2em; padding: 0.2em 0.5em; color: var(--text); font-size: 0.93em; font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 0.2em; white-space: nowrap; }
:root .an-demo .pa-tbtn[disabled] { opacity: 0.35; cursor: default; }
:root .an-demo .in-pbtn.pa-sm { height: 2.3em; padding: 0 0.9em; font-size: 0.86em; }
.an-demo .pa-go svg { width: 1em; height: 1em; margin-right: 0.4em; fill: none; stroke: currentColor; stroke-width: 2; }

/* Fields, inputs and selects */
.an-demo .pa-lab { display: block; margin-bottom: var(--sp-1); overflow: hidden; color: var(--text-muted); font-size: 0.86em; white-space: nowrap; text-overflow: ellipsis; }
:root .an-demo .pa-input { display: block; width: 100%; height: 2.6em; padding: 0 0.8em; border: 1px solid var(--border); border-radius: calc(var(--r-16) / 2.5); background: var(--surface); color: var(--text); font-size: var(--fs-body); transition: background-color 0.3s; }
:root .an-demo .pa-input:focus { border-color: var(--text); outline: var(--focus-width) solid var(--focus-ring); outline-offset: 0; }
:root .an-demo .pa-input.is-hot { border-color: var(--text); }
:root .an-demo .pa-num { text-align: right; font-variant-numeric: tabular-nums; }
.an-demo .pa-sel { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); height: 2.6em; padding: 0 0.8em; overflow: hidden; border-radius: calc(var(--r-16) / 2.5); background: var(--surface-muted); white-space: nowrap; }
.an-demo .pa-sel::after { content: "▾"; color: var(--text-muted); font-size: 0.8em; }
.an-demo .pa-sel.is-link { text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 0.15em; }
.an-demo .pa-sel.is-plain { justify-content: flex-end; height: 2.3em; }
.an-demo .pa-sel.is-plain::after { content: none; }
.an-demo .pa-f { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.an-demo .pa-f .k { flex: 1; min-width: 0; overflow: hidden; color: var(--text-muted); font-size: 0.9em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .pa-v { display: flex; flex: none; justify-content: flex-end; align-items: center; min-width: 5.5em; height: 1.9em; padding: 0 0.6em; overflow: hidden; border-radius: calc(var(--r-16) / 2.5); background: var(--surface-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-demo .pa-v.l { justify-content: flex-start; }
.an-demo .pa-v span { margin: 0 -0.25em; padding: 0.05em 0.25em; border-radius: calc(var(--r-16) / 4); transition: opacity 0.35s calc(var(--i, 0) * 45ms), background-color 0.3s; }
.an-demo .pa-info.is-blank .pa-v span, .an-demo .pa-info.is-blank .pa-fill { opacity: 0; transition-delay: 0s; }
.an-demo .pa-fill { transition: opacity 0.4s 0.2s; }
.an-demo .pa-gh { margin-bottom: 0.1em; font-size: 0.8em; font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }

/* Maintain all parts information */
.an-demo .pa-sform { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: end; gap: var(--sp-3); }
@container incard (width < 30rem) { .an-demo .pa-sform { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .an-demo .pa-sform .c-mid { display: none; } }
.an-demo .pa-res { margin-top: var(--sp-4); }
.an-demo .pa-res [data-r] { display: none; }
.an-demo .pa-res[data-show="hit"] [data-r="hit"], .an-demo .pa-res[data-show="none"] [data-r="none"], .an-demo .pa-res[data-show="idle"] [data-r="idle"] { display: table-row; }
.an-demo .pa-res[data-show="hit"] [data-r="hit"] { animation: pa-in 0.45s var(--ease); }
.an-demo .pa-tabs { margin-bottom: 0; border-bottom: 1px solid var(--hairline); }
:root .an-demo .pa-tabs .in-dtab { min-height: 2em; }
.an-demo .pa-panels { display: grid; padding-top: var(--sp-3); }
.an-demo .pa-panel { grid-area: 1 / 1; min-width: 0; transition: opacity 0.3s 0.1s; }
.an-demo .pa-panel[aria-hidden="true"] { visibility: hidden; opacity: 0; transition: opacity 0.15s, visibility 0s 0.15s; }
.an-demo .pa-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }
@container incard (width < 40rem) { .an-demo .pa-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-demo .pa-g { display: grid; gap: var(--sp-2); align-content: start; min-width: 0; }
.an-demo .pa-panel .ct-note { min-height: 0; margin-top: var(--sp-3); }
.an-demo .pa-chain { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.an-demo .pa-chip { display: inline-flex; flex-direction: column; padding: 0.35em 0.75em; border-radius: calc(var(--r-16) / 1.6); background: var(--surface-muted); font-size: 0.93em; font-weight: var(--fw-bold); line-height: 1.2; transition: background-color 0.35s; }
.an-demo .pa-chip small { color: var(--text-muted); font-size: 0.8em; font-weight: var(--fw-semibold); }
.an-demo .pa-chip.is-now { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .pa-chip.is-now small { color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); }
.an-demo .in-board .pa-chip.is-now.is-hot { background: var(--surface-inverse); }
.an-demo .pa-arrow { color: var(--accent); font-weight: var(--fw-bold); }
.an-demo .pa-picked { min-height: 12em; }

/* See live inventory levels */
.an-demo .pa-live { display: inline-flex; align-items: center; gap: 0.4em; color: var(--danger); font-size: 0.86em; font-weight: var(--fw-bold); }
.an-demo .pa-live::before { content: ""; width: 0.55em; height: 0.55em; border-radius: var(--r-full); background: var(--accent); animation: mo-pulse 1.6s ease-in-out infinite; }
.an-demo.is-still .pa-live::before { animation-play-state: paused; }
.an-demo .pa-item { margin-bottom: var(--sp-2); }
.an-demo .pa-item b { display: block; font-size: 1.07em; }
.an-demo .pa-item small { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .pa-bars { display: grid; gap: var(--sp-2); min-height: 10em; }
.an-demo .pa-brow { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 3em; align-items: center; gap: var(--sp-2); min-width: 0; }
.an-demo .pa-brow .n { min-width: 0; font-size: 0.9em; line-height: 1.2; }
.an-demo .pa-brow .n b { display: block; }
.an-demo .pa-brow .n small { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.86em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .pa-track { height: 0.55em; overflow: hidden; border-radius: var(--r-full); background: var(--hairline); }
.an-demo .pa-track i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 0.7s var(--ease), background-color 0.3s; }
.an-demo .pa-brow.is-hl .pa-track i { background: var(--accent); }
.an-demo .pa-brow .v { font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); text-align: right; }
.an-demo .pa-brow .v.is-zero { color: var(--danger); }
.an-demo .pa-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--sp-2); border-top: 1px solid var(--hairline); color: var(--text-muted); font-size: 0.9em; }
.an-demo .pa-total b { color: var(--text); font-size: 1.15em; }
.an-demo .pa-feed { display: grid; grid-template-rows: repeat(4, 3.3em); overflow: hidden; }
.an-demo .pa-feed li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: center; gap: var(--sp-2); min-width: 0; border-bottom: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 3); transition: background-color 0.6s; }
.an-demo .pa-feed li:last-child { border-bottom: 0; }
.an-demo .pa-feed li.is-new { background: var(--action-subtle); animation: pa-in 0.45s var(--ease); }
.an-demo .pa-feed .d { padding: 0.1em 0; border-radius: var(--r-full); background: var(--surface-muted); font-weight: var(--fw-bold); text-align: center; }
.an-demo .pa-feed .d.out { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .pa-feed .t { min-width: 0; font-size: 0.9em; line-height: 1.25; }
.an-demo .pa-feed .t > span, .an-demo .pa-feed .t small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .pa-feed .t small { color: var(--text-muted); font-size: 0.9em; }
@keyframes pa-in { from { opacity: 0; transform: translateY(var(--sp-1)); } }
.an-demo .pa-in { animation: pa-in 0.35s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }

/* Categorize parts */
.an-demo .pa-tree { height: 26em; margin: var(--sp-2) calc(-1 * var(--sp-1)) 0; overflow-y: auto; overscroll-behavior: contain; font-size: 0.9em; }
.an-demo .pa-nrow { display: flex; align-items: center; min-width: 0; }
.an-demo .pa-nrow.is-sub { padding-left: 1.5em; }
:root .an-demo .pa-tg { display: grid; flex: none; place-items: center; width: 1.6em; height: 2em; color: var(--text-muted); font-size: 0.8em; }
.an-demo .pa-tg span { display: inline-block; transition: transform 0.25s; }
.an-demo .pa-tg[aria-expanded="true"] span { transform: rotate(90deg); }
.an-demo .pa-tg.is-none { visibility: hidden; }
:root .an-demo .pa-node { flex: 1; min-width: 0; min-height: 2em; padding: 0.3em 0.5em; overflow: hidden; border-radius: calc(var(--r-16) / 3); text-align: left; white-space: nowrap; text-overflow: ellipsis; transition: background-color 0.3s; }
:root .an-demo .pa-node:hover { background: var(--surface-muted); }
:root .an-demo .pa-node[aria-current="true"] { background: var(--surface-inverse); color: var(--text-on-dark); font-weight: var(--fw-bold); }
.an-demo .pa-kids { display: none; }
.an-demo .pa-kids.is-open { display: block; animation: pa-in 0.35s var(--ease); }
:root .an-demo .wa-search.pa-filter { width: 11em; }
.an-demo .pa-list { height: 24em; margin: 0 calc(-1 * var(--sp-1)); overflow-y: auto; overscroll-behavior: contain; }
.an-demo .pa-list th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.an-demo .pa-info { position: relative; }
.an-demo .pa-empty { position: absolute; top: 4em; right: var(--sp-4); left: var(--sp-4); color: var(--text-muted); text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.an-demo .pa-info.is-blank .pa-empty { opacity: 1; }
.an-demo .pa-detail { display: grid; gap: var(--sp-2); }
.an-demo .pa-detail .pa-v { max-width: 60%; }
.an-demo .pa-detail .pa-gh { margin-top: var(--sp-2); }
.an-demo .pa-cats { display: grid; gap: var(--sp-1); min-height: 6em; align-content: start; }
.an-demo .pa-cats li { display: flex; align-items: center; gap: var(--sp-2); padding: 0.3em 0.6em; border-radius: calc(var(--r-16) / 2); background: var(--surface-muted); font-size: 0.9em; transition: background-color 0.4s; }
.an-demo .pa-cats li b { flex: none; }
.an-demo .pa-cats li span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .pa-cats li.is-new { background: var(--action-subtle); }
:root .an-demo .pa-cats .pa-x { display: grid; flex: none; place-items: center; width: 1.75em; height: 1.75em; margin-left: auto; border-radius: var(--r-full); color: var(--text-muted); }
:root .an-demo .pa-cats .pa-x:hover { color: var(--text); }

/* Set reorder points and safety stock */
.an-demo .pa-legend { display: flex; gap: var(--sp-3); color: var(--text-muted); font-size: 0.82em; white-space: nowrap; }
.an-demo .pa-legend > span { display: flex; align-items: center; gap: 0.35em; }
.an-demo .pa-legend i { display: block; width: 1.2em; border-top: var(--focus-width) dashed var(--accent); }
.an-demo .pa-legend i.p { border-top-style: solid; border-top-color: var(--text); }
.an-demo .pa-legend i.s { border-top-color: var(--text-muted); }
.an-demo .pa-chart { display: block; width: 100%; height: auto; overflow: visible; }
.an-demo .pa-chart text { fill: var(--text-muted); font-family: inherit; }
.an-demo .pa-chart .grid { stroke: var(--hairline); stroke-width: 1; }
.an-demo .pa-chart .area { fill: var(--surface-muted); }
.an-demo .pa-chart .line { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; }
.an-demo .pa-th { transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s; }
.an-demo .pa-th line { stroke-width: 1.6; stroke-dasharray: 6 5; }
.an-demo .pa-th.ro line { stroke: var(--accent); }
.an-demo .pa-th.ro text { fill: var(--danger); font-weight: var(--fw-bold); }
.an-demo .pa-th.ss line { stroke: var(--text-muted); }
.an-demo .pa-th.ss text { font-weight: var(--fw-bold); }
.an-demo .pa-th text.is-hot { fill: var(--text); }
.an-demo .pa-th.is-off { opacity: 0; }
.an-demo .pa-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.an-demo .pa-dot.is-pop { animation: pa-dot 0.6s ease-out; }
@keyframes pa-dot { from { r: 9; } }
.an-demo .pa-rcpt { transition: opacity 0.4s; }
.an-demo .pa-rcpt.is-off { opacity: 0; }
.an-demo .pa-rcpt rect { fill: var(--text); }
.an-demo .pa-rcpt text { fill: var(--surface); font-weight: var(--fw-bold); }
.an-demo .pa-rcpt line { stroke: var(--text); stroke-width: 1.4; stroke-dasharray: 2 3; }
.an-demo .pa-thr { display: grid; grid-template-columns: minmax(0, 1fr) 6em; align-items: center; gap: var(--sp-2) var(--sp-3); }
.an-demo .pa-thr label, .an-demo .pa-thr .k { overflow: hidden; font-size: 0.93em; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .pa-thr label small { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.86em; text-overflow: ellipsis; }
.an-demo .pa-sep { grid-column: 1 / -1; border-top: 1px solid var(--hairline); }
.an-demo .pa-req { min-height: 15em; }
.an-demo .pa-auto { min-height: 0; transition: opacity 0.3s; }
.an-demo .pa-auto.is-off { opacity: 0; }
.an-demo .ct-pill.pa-warn { background: var(--action-subtle); }

/* Manage recall campaigns */
.an-demo .pa-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
@container incard (width < 30rem) { .an-demo .pa-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-demo .pa-fs { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) / 1.6); background: var(--surface-muted); color: var(--text-muted); font-size: 0.9em; font-weight: var(--fw-semibold); transition: background-color 0.4s, color 0.4s, box-shadow 0.4s; }
.an-demo .pa-fs i { display: grid; flex: none; place-items: center; width: 1.6em; height: 1.6em; border: 1px solid currentColor; border-radius: var(--r-full); font-size: 0.86em; font-style: normal; font-weight: var(--fw-bold); }
.an-demo .pa-fs span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .pa-fs.is-cur { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.an-demo .pa-fs.is-cur i { border-color: var(--accent); }
.an-demo .pa-fs.is-done { background: var(--surface-inverse); color: var(--text-on-dark); }
.an-demo .pa-fs.is-done i { border-color: var(--surface); background: var(--surface); color: var(--text); }
.an-demo .pa-guide { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.an-demo .pa-guide p { display: flex; flex: 1 1 16em; align-items: center; min-width: 0; min-height: 2.7em; font-size: 0.93em; }
.an-demo .pa-wait { position: relative; }
.an-demo .pa-wait tbody tr, .an-demo .pa-wait tfoot tr { transition: opacity 0.4s calc(var(--i, 0) * 120ms), background-color 0.3s; }
.an-demo .pa-wait.is-empty tbody tr, .an-demo .pa-wait.is-empty tfoot tr { opacity: 0; pointer-events: none; }
.an-demo .pa-emptymsg { position: absolute; top: 2.5em; right: 0; bottom: 0; left: 0; display: grid; place-items: center; color: var(--text-muted); font-size: 0.9em; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.an-demo .pa-wait.is-empty .pa-emptymsg { opacity: 1; }
.an-demo [data-reqs] { min-height: 8em; }
.an-demo .ct-pill.pa-blk::before { content: ""; display: inline-block; width: 0.45em; height: 0.45em; margin-right: 0.35em; border-radius: var(--r-full); background: var(--accent); vertical-align: middle; }
.an-demo .pa-prog { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.an-demo .pa-prog b { font-size: 1.6em; font-variant-numeric: tabular-nums; }
.an-demo .pa-prog span { color: var(--text-muted); font-size: 0.9em; }
.an-demo .pa-prog em { margin-left: auto; font-style: normal; font-weight: var(--fw-bold); }
.an-demo .wa-prog.pa-meter { display: block; }
.an-demo .pa-meter i { background: var(--accent); }
.an-demo .pa-meter.is-full i { background: var(--surface-inverse); }
.an-demo .pa-tl { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); }
.an-demo .pa-tl li { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-muted); font-size: 0.9em; transition: color 0.3s; }
.an-demo .pa-tl li::before { content: ""; flex: none; width: 0.7em; height: 0.7em; border: 1px solid var(--border); border-radius: var(--r-full); transition: background-color 0.3s, border-color 0.3s; }
.an-demo .pa-tl li span { margin-left: auto; font-size: 0.93em; }
.an-demo .pa-tl li.is-done, .an-demo .pa-tl li.is-new { color: var(--text); }
.an-demo .pa-tl li.is-done::before { border-color: var(--surface-inverse); background: var(--surface-inverse); }
.an-demo .pa-tl li.is-new { font-weight: var(--fw-bold); }
.an-demo .pa-tl li.is-new::before { border-color: var(--accent); background: var(--accent); }

/* Access supplier catalogs */
.an-demo .pa-cnote { min-height: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: calc(var(--r-16) / 3); transition: background-color 0.3s; }
.an-demo .pa-url { display: block; max-width: 20em; overflow: hidden; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; }
.an-demo .pa-ready { text-align: center; }
.an-demo .pa-ready .pa-x { display: inline-grid; place-items: center; width: 1.2em; height: 1.2em; border: 1px solid var(--danger); border-radius: var(--r-full); color: var(--danger); font-size: 0.86em; font-weight: var(--fw-bold); line-height: 1; }
.an-demo .pa-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: var(--sp-2); }
.an-demo .pa-lst { height: 14em; padding: 0.2em; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 1.6); }
.an-demo .pa-li { display: block; min-height: 2.7em; padding: 0.3em 0.6em; border-radius: calc(var(--r-16) / 2.5); cursor: pointer; transition: background-color 0.3s; }
.an-demo .pa-li b, .an-demo .pa-li small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .pa-li small { color: var(--text-muted); font-size: 0.82em; }
.an-demo .pa-li:hover { background: var(--surface-muted); }
.an-demo .pa-li[aria-selected="true"] { background: var(--surface-muted); box-shadow: inset 0 0 0 1px var(--text); }
.an-demo .pa-li.is-new, .an-demo .pa-li.is-press { background: var(--action-subtle); }
.an-demo .pa-arrows { display: flex; flex-direction: column; gap: var(--sp-2); padding-top: 1.9em; }
:root .an-demo .pa-arrows .in-pbtn.pa-sm { width: 2.4em; padding: 0; }
/* Fit at every width */
.an-demo .ct-appbar:has(.pa-co) .ct-crumb { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo [data-an-demo^="pa-"] .ct-card-h { flex-wrap: wrap; }
.an-demo [data-picked] td:nth-child(2) { white-space: normal; }
.an-demo .pa-thr { grid-template-columns: minmax(0, 1fr) minmax(6em, max-content); }
.an-demo .pa-fs span { white-space: normal; line-height: 1.2; }
@container incard (width < 30rem) { .an-demo .pa-legend { display: none; } }
@container incard (width < 26rem) {
  .an-demo .pa-sform { grid-template-columns: minmax(0, 1fr) auto; }
  .an-demo .pa-sform > :first-child { grid-column: 1 / -1; }
  .an-demo .pa-cov .pa-loc b { white-space: normal; }
  :root .an-demo .pa-cov .ct-pill { white-space: normal; text-align: center; }
}
/* ---------- Rental & Fleet screens (A365 Rental & Fleet Management, 30 Nov 2026) ----------
   Built on the contract, Inspections, Sales, Warranty and Parts parts (ct-*, in-*, sl-chip, wa-*, pa-*); the rest is rf-*.
   Booking kinds (data-k) are pastel mixes of the brand palette tokens, as on the real planning board. */
.an-demo[data-an-demo^="rf-"] [data-k="r"] { --c: color-mix(in srgb, var(--a-verbena) 45%, var(--surface)); }
.an-demo[data-an-demo^="rf-"] [data-k="i"] { --c: color-mix(in srgb, var(--a-lilac) 50%, var(--surface)); }
.an-demo[data-an-demo^="rf-"] [data-k="t"] { --c: color-mix(in srgb, var(--a-marine) 22%, var(--surface)); }
.an-demo[data-an-demo^="rf-"] [data-k="q"] { --c: color-mix(in srgb, var(--a-yellow) 55%, var(--surface)); }
.an-demo .rf-dev { padding: var(--sp-2) var(--sp-3); border-radius: calc(var(--r-16) * 0.6); background: var(--surface-muted); transition: background-color 0.4s; }
.an-demo .rf-fields > div { grid-template-columns: 38% minmax(0, 1fr); }
.an-demo .rf-fields dd { min-height: 0; padding: 0.35em 0.65em; font-size: 0.93em; line-height: 1.3; white-space: normal; }
.an-demo .rf-none { padding: var(--sp-4) var(--sp-2); color: var(--text-muted); font-size: 0.9em; text-align: center; }
.an-demo .rf-none[hidden] { display: none; }
.an-demo .pa-total.rf-sub { padding-top: 0; border-top: 0; }
.an-demo .rf-sub small { font-size: 0.93em; }
.an-demo .wa-t tbody tr.wa-row td { transition: background-color 0.3s, opacity 0.4s; }

/* Track every asset: the device list, its status chips and the related information panel */
.an-demo .rf-top { margin-top: var(--sp-3); margin-bottom: 0; }
.an-demo .sl-chip .rf-n { color: var(--text-muted); font-size: 0.88em; font-style: normal; font-variant-numeric: tabular-nums; }
.an-demo .sl-chip[aria-pressed="true"] .rf-n { color: color-mix(in srgb, var(--text-on-dark) 75%, transparent); }
.an-demo .rf-info { transition: opacity 0.5s, box-shadow 0.4s; }
.an-demo .rf-info .rf-dev { margin-bottom: var(--sp-3); }
.an-demo .rf-acc { border-top: 1px solid var(--hairline); }
:root .an-demo .rf-acc-h { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); width: 100%; min-height: 3em; padding: var(--sp-2) 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: var(--fw-bold); text-align: left; cursor: pointer; }
.an-demo .rf-acc-h::after { content: ""; flex: none; width: 0.45em; height: 0.45em; border-right: 0.12em solid currentColor; border-bottom: 0.12em solid currentColor; transform: rotate(45deg) translate(-0.15em, -0.15em); transition: transform 0.3s; }
.an-demo .rf-acc-h[aria-expanded="true"]::after { transform: rotate(225deg) translate(-0.15em, -0.15em); }
:root .an-demo .rf-acc-h:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 0; }
:root .an-demo .rf-acc-h[disabled] { opacity: 0.45; cursor: default; }
.an-demo .rf-acc-h.is-press { opacity: 0.6; }
.an-demo .rf-acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.an-demo .rf-acc-b > div { min-height: 0; overflow: hidden; }
.an-demo .rf-acc.is-open .rf-acc-b { grid-template-rows: 1fr; }
.an-demo .rf-acc-b > div > * { margin-bottom: var(--sp-3); }
.an-demo .rf-acc-x { display: flex; justify-content: space-between; align-items: center; min-height: 3em; color: var(--text); font-weight: var(--fw-bold); }
.an-demo .rf-acc-x .in-count:not(.is-red) { background: var(--surface-muted); color: var(--text-muted); }
.an-demo .rf-info.is-empty .rf-acc { opacity: 0.6; }
.an-demo .rf-meter { margin-bottom: var(--sp-2); }
.an-demo .rf-mt td { padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
.an-demo .rf-mt tbody tr { transition: opacity 0.3s calc(var(--i, 0) * 90ms), transform 0.3s calc(var(--i, 0) * 90ms); }
.an-demo .rf-mt tbody tr.is-off { opacity: 0; transform: translateX(var(--sp-2)); }
.an-demo .rf-resv { display: grid; gap: var(--sp-2); }
.an-demo .rf-resv li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); font-size: 0.93em; }
.an-demo .rf-resv i { grid-row: span 2; width: 0.5em; height: 1.8em; border-radius: 0.2em; background: var(--c); }
.an-demo .rf-resv small { color: var(--text-muted); font-size: 0.9em; }
.an-demo .rf-resv li.none { display: block; color: var(--text-muted); text-align: center; }

/* Assign vehicles and assets: the request queue and the planning timeline */
.an-demo .rf-vt { display: inline-flex; overflow: hidden; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) / 3); font-size: 0.86em; font-weight: var(--fw-bold); }
.an-demo .rf-vt span { padding: 0.2em 0.7em; border-left: 1px solid var(--hairline); }
.an-demo .rf-vt span:first-child { border-left: 0; }
.an-demo .rf-vt .on { background: var(--surface-inverse); color: var(--text-on-dark); }
@container indesk (width < 40rem) { .an-demo .rf-vt span:not(.on) { display: none; } }
.an-demo .rf-flt { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.an-demo .rf-flt div { min-width: 6.5em; }
.an-demo .rf-flt small { display: block; margin-bottom: 0.2em; color: var(--text-muted); font-size: 0.82em; }
.an-demo .rf-flt span { display: block; padding: 0.3em 0.7em; border-radius: calc(var(--r-16) / 2.5); background: var(--surface-muted); font-size: 0.93em; }
@container indesk (width < 40rem) { .an-demo .rf-flt .c-mid { display: none; } }
@container indesk (width >= 52rem) { .an-demo .rf-ap { grid-template-columns: 15em minmax(0, 1fr); } }
@container indesk (width >= 70rem) { .an-demo .rf-ap { grid-template-columns: 16.5em minmax(0, 1fr); } }
.an-demo .rf-q { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
@container incard (width >= 30rem) and (width < 44rem) { .an-demo .rf-q { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.an-demo .rf-q li { min-width: 0; border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); transition: background-color 0.3s, border-color 0.3s, opacity 0.4s; }
.an-demo .rf-q li:has([aria-pressed="true"]) { border-color: var(--text); background: var(--action-subtle); }
.an-demo .rf-q li.is-done { opacity: 0.5; }
:root .an-demo .rf-qj { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-2); width: 100%; min-height: 3em; padding: var(--sp-2) var(--sp-3); border: 0; border-radius: calc(var(--r-16) * 0.6); background: none; color: var(--text); font: inherit; font-size: 0.93em; text-align: left; cursor: pointer; transition: transform 0.15s; }
:root .an-demo .rf-qj:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: 0; }
.an-demo .rf-qj.is-press { transform: scale(0.97); }
.an-demo .rf-qj i { width: 0.6em; height: 2.2em; border-radius: 0.2em; background: var(--c); }
.an-demo .rf-qj b, .an-demo .rf-qj small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .rf-qj small { color: var(--text-muted); font-size: 0.88em; }
:root .an-demo .rf-clear { margin-top: var(--sp-3); }
.an-demo .rf-tl { --hw: 10em; --rh: 2.4em; }
@container incard (width < 36rem) { .an-demo .rf-tl { --hw: 6.2em; --rh: 2.2em; } }
.an-demo .rf-leg { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-bottom: var(--sp-3); color: var(--text-muted); font-size: 0.86em; }
.an-demo .rf-leg span { display: inline-flex; align-items: center; gap: 0.4em; }
.an-demo .rf-leg i { width: 0.85em; height: 0.85em; border-radius: 0.2em; background: var(--c); }
.an-demo .rf-leg .rf-leg-now i { width: var(--focus-width); border-radius: 0; background: var(--accent); }
.an-demo .rf-tlg { display: grid; grid-template-columns: var(--hw) minmax(0, 1fr); }
.an-demo .rf-corner { align-self: end; padding-bottom: 0.3em; color: var(--text-muted); font-size: 0.82em; font-weight: var(--fw-semibold); }
.an-demo .rf-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 0.86em; font-weight: var(--fw-bold); text-align: center; }
.an-demo .rf-days span { padding: 0.15em 0 0.3em; overflow: hidden; border-left: 1px solid var(--border); white-space: nowrap; }
.an-demo .rf-ticks { position: relative; height: 1.5em; border-bottom: 1px solid var(--hairline); }
.an-demo .rf-ticks span { position: absolute; top: 0.1em; left: calc(var(--u) / 30 * 100%); padding-left: 0.3em; color: var(--text-muted); font-size: 0.78em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@container incard (width < 36rem) { .an-demo .rf-ticks span:nth-child(even) { display: none; } .an-demo .rf-days { font-size: 0.78em; } }
.an-demo .rf-lanes { position: relative; }
.an-demo .rf-row { display: grid; grid-template-columns: var(--hw) minmax(0, 1fr); height: var(--rh); border-bottom: 1px solid var(--hairline); transition: opacity 0.4s; }
.an-demo .rf-rhd { display: flex; align-items: center; gap: 0.45em; min-width: 0; padding-right: 0.4em; border-radius: calc(var(--r-16) / 3) 0 0 calc(var(--r-16) / 3); transition: background-color 0.3s; }
.an-demo .rf-rhd i { position: relative; flex: none; width: 1.4em; height: 1.4em; overflow: hidden; border-radius: var(--r-full); background: var(--surface-inverse); }
.an-demo .rf-rhd i::after { content: ""; position: absolute; top: 0.3em; left: 0.35em; width: 0.7em; height: 0.5em; border-radius: 0.12em; background: var(--surface); opacity: 0.85; }
.an-demo .rf-rhd span { min-width: 0; }
.an-demo .rf-rhd b, .an-demo .rf-rhd small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .rf-rhd b { font-size: 0.86em; }
.an-demo .rf-rhd small { color: var(--text-muted); font-size: 0.76em; }
@container incard (width < 36rem) { .an-demo .rf-rhd i, .an-demo .rf-rhd small { display: none; } .an-demo .rf-rhd b { font-size: 0.8em; } }
.an-demo .rf-lane { position: relative; background: linear-gradient(to right, var(--border) 1px, transparent 1px) 0 0 / 33.3333% 100%, linear-gradient(to right, var(--hairline) 1px, transparent 1px) 0 0 / 3.3333% 100%; transition: background-color 0.3s, box-shadow 0.3s; }
:root .an-demo .rf-lane:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: calc(var(--focus-width) * -1); }
.an-demo .rf-now { position: absolute; top: 0; bottom: 0; left: calc(var(--hw) + (100% - var(--hw)) * var(--u) / 30); z-index: 3; width: var(--focus-width); margin-left: -1px; background: var(--accent); opacity: 0.75; pointer-events: none; }
.an-demo .rf-bar { position: absolute; top: 0.25em; bottom: 0.25em; left: calc(var(--a) / 30 * 100%); z-index: 1; display: flex; align-items: center; width: calc(var(--n) / 30 * 100%); padding: 0 0.5em; overflow: hidden; border-radius: calc(var(--r-16) / 3); background: var(--c); color: var(--text); font-size: 0.8em; font-weight: var(--fw-semibold); white-space: nowrap; cursor: pointer; transform-origin: left center; transition: opacity 0.35s calc(var(--i, 0) * 60ms), transform 0.35s calc(var(--i, 0) * 60ms), box-shadow 0.3s; }
.an-demo .rf-bar span { overflow: hidden; text-overflow: ellipsis; }
.an-demo .rf-bar.cl { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.an-demo .rf-bar.cr { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.an-demo .rf-bar.is-off { opacity: 0; transform: scaleX(0.6); }
.an-demo .rf-bar.is-sel { z-index: 2; box-shadow: 0 0 0 var(--focus-width) var(--text), var(--shadow-2); }
.an-demo .rf-bar.is-mine { box-shadow: 0 0 0 var(--focus-width) var(--accent); }
.an-demo .rf-bar.is-mine.is-sel { box-shadow: 0 0 0 var(--focus-width) var(--text), var(--shadow-2); }
@container incard (width < 36rem) { .an-demo .rf-bar { padding: 0 0.3em; font-size: 0.7em; } }
.an-demo .rf-ghost { position: absolute; top: 0.25em; bottom: 0.25em; left: calc(var(--a) / 30 * 100%); z-index: 2; width: calc(var(--n) / 30 * 100%); border: 1px dashed var(--text-muted); border-radius: calc(var(--r-16) / 3); background: color-mix(in srgb, var(--a-verbena) 30%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.an-demo .rf-ghost.is-on { opacity: 1; }
.an-demo .rf-ghost.is-no { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.an-demo .rf-tl.is-check .rf-row:not(.is-fit) { opacity: 0.38; }
.an-demo .rf-row.is-fit .rf-rhd { background: var(--action-subtle); }
.an-demo .rf-row.is-fit .rf-lane { background-color: color-mix(in srgb, var(--action-subtle) 50%, var(--surface)); box-shadow: inset 0 0 0 1px var(--border); cursor: copy; }
.an-demo .rf-row.is-no .rf-lane { box-shadow: inset 0 0 0 var(--focus-width) var(--danger); }
.an-demo .rf-det { display: flex; align-items: center; gap: var(--sp-2); height: 2.6em; margin-top: var(--sp-3); padding: 0 var(--sp-3); border-radius: calc(var(--r-16) / 2); background: var(--surface-muted); font-size: 0.9em; transition: background-color 0.3s; }
.an-demo .rf-det span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.an-demo .rf-det i { flex: none; width: 0.8em; height: 0.8em; border-radius: 0.2em; background: var(--c); }

/* Offer flexible pricing: the rental period, the rate table and the order line */
@container indesk (width >= 46rem) { .an-demo .rf-pg { grid-template-columns: 18em minmax(0, 1fr); } }
@container indesk (width >= 70rem) { .an-demo .rf-pg { grid-template-columns: 20em minmax(0, 1fr); } }
.an-demo .rf-stp { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); margin: var(--sp-3) 0 var(--sp-2); }
.an-demo .rf-stp > span:first-child { font-size: 0.93em; }
.an-demo .rf-stp b { min-width: 4.2em; padding: 0.15em 0; border-radius: calc(var(--r-16) / 3); font-variant-numeric: tabular-nums; transition: background-color 0.4s; }
.an-demo .rf-pre { flex-wrap: wrap; gap: var(--sp-1); }
:root .an-demo .rf-pre .sl-chip { min-height: 2.1em; padding: 0.25em 0.75em; font-size: 0.9em; }
.an-demo .rf-use { margin-top: var(--sp-4); }
.an-demo .rf-ubar { display: flex; height: 0.55em; margin: var(--sp-2) 0 var(--sp-1); overflow: hidden; border-radius: var(--r-full); background: var(--hairline); }
.an-demo .rf-ubar i { display: block; width: 0; height: 100%; transition: width 0.6s var(--ease); }
.an-demo .rf-ubar i:first-child { background: var(--surface-inverse); }
.an-demo .rf-ubar i:last-child { background: var(--accent); }
.an-demo [data-ratetbl] tbody tr[aria-selected="true"] td { font-weight: var(--fw-bold); }
.an-demo [data-ratetbl] tbody tr[aria-selected="true"] td:first-child { box-shadow: inset 0.2em 0 var(--text); }
.an-demo .rf-tag { display: inline-block; margin-left: 0.5em; padding: 0.05em 0.55em; border-radius: var(--r-full); background: var(--surface-inverse); color: var(--text-on-dark); font-size: 0.78em; font-weight: var(--fw-bold); vertical-align: 0.1em; opacity: 0; transition: opacity 0.3s; }
.an-demo tr[aria-selected="true"] .rf-tag { opacity: 1; }
@container incard (width < 30rem) { .an-demo .rf-tag { display: none; } }
.an-demo .rf-ol p:not(.ct-note) { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--hairline); }
.an-demo .rf-ol small { display: block; color: var(--text-muted); font-size: 0.86em; font-variant-numeric: tabular-nums; }
.an-demo .rf-ol b { padding: 0 0.35em; border-radius: calc(var(--r-16) / 3); font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color 0.4s; }
.an-demo .rf-ol p.rf-olt { border-bottom: 0; }
.an-demo .rf-olt > span { font-weight: var(--fw-bold); }
.an-demo .rf-olt b { font-size: 1.6em; letter-spacing: var(--ls-h2); }
.an-demo .rf-ol .ct-note { margin: 0; text-align: right; }

/* Automate billing: meter readings, the validation checks and the journal lines */
@container indesk (width >= 50rem) { .an-demo .rf-bg { grid-template-columns: 19em minmax(0, 1fr); } }
@container indesk (width >= 70rem) { .an-demo .rf-bg { grid-template-columns: 21em minmax(0, 1fr); } }
@container indesk (width < 50rem) { .an-demo .rf-bg > .wa-grid > [data-panel="checks"] { order: -1; } }
.an-demo .rf-tools { gap: var(--sp-3); }
.an-demo .rf-terms { margin-bottom: var(--sp-3); }
.an-demo .rf-mr { display: grid; gap: var(--sp-2); }
.an-demo .rf-mr li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-1) var(--sp-2); padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-3); border: 1px solid var(--hairline); border-radius: calc(var(--r-16) * 0.6); font-size: 0.93em; transition: background-color 0.4s; }
.an-demo .rf-mr li > span:first-child { min-width: 0; }
.an-demo .rf-mr b, .an-demo .rf-mr small { display: block; }
.an-demo .rf-mr small { color: var(--text-muted); font-size: 0.88em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.an-demo .rf-mr .wa-stepper b { font-variant-numeric: tabular-nums; }
.an-demo .rf-mr li.is-wait .wa-stepper b { color: var(--text-muted); }
.an-demo[data-an-demo="rf-bill"] .wa-checks li .ca-tick, .an-demo[data-an-demo="rf-bill"] .wa-checks li .ca-tick::after { transition-delay: 0s; }
.an-demo .rf-jl td { white-space: nowrap; transition: background-color 1.2s, opacity 0.4s, color 0.3s; }
.an-demo .rf-jl tbody tr { transition: opacity 0.35s, transform 0.35s; }
.an-demo .rf-jl tbody tr.is-off { opacity: 0; transform: translateY(var(--sp-1)); }
.an-demo .rf-jl tbody tr.is-wait td, .an-demo .rf-jl tbody tr.is-zero td { color: var(--text-muted); }
.an-demo .rf-jl .it { font-weight: var(--fw-semibold); }
.an-demo .wa-t.rf-jl .it small { display: block; margin-left: 0; font-weight: var(--fw-regular); line-height: 1.25; }
.an-demo .rf-jl tr.rf-use .it { padding-left: var(--sp-5); }
@container incard (width < 30rem) { .an-demo .rf-jl tr.rf-use .it { padding-left: var(--sp-3); } }
.an-demo .rf-tot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--hairline); }
.an-demo .rf-tot span { text-align: right; }
.an-demo .rf-tot small { display: block; color: var(--text-muted); font-size: 0.86em; }
.an-demo .rf-tot b { padding: 0 0.3em; border-radius: calc(var(--r-16) / 3); font-variant-numeric: tabular-nums; transition: background-color 0.4s, color 0.4s; }
.an-demo .rf-tot .all b { font-size: 1.45em; }
.an-demo .in-desk.is-posted .rf-tot .all b { padding: 0 0.45em; background: var(--surface-inverse); color: var(--text-on-dark); }

/* Plan maintenance better: scheduled services, the usage alert and the service checklist */
.an-demo .rf-al .rf-dev { margin-bottom: var(--sp-3); }
.an-demo .rf-gauge { margin-bottom: var(--sp-3); }
.an-demo .rf-gauge .pa-total { padding-top: 0; border-top: 0; }
.an-demo .rf-gbar { position: relative; display: block; height: 0.65em; margin: var(--sp-2) 0 var(--sp-1); border-radius: var(--r-full); background: var(--hairline); }
.an-demo .rf-gbar i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: var(--surface-inverse); transition: width 0.9s var(--ease), background-color 0.3s; }
.an-demo .rf-gbar.is-red i { background: var(--danger); }
.an-demo .rf-gbar em { position: absolute; top: -0.2em; right: 0; bottom: -0.2em; width: var(--focus-width); background: var(--text); }
.an-demo .rf-al.is-empty .rf-gauge, .an-demo .rf-al.is-empty .rf-fields { opacity: 0.45; }
:root .an-demo .rf-mk { margin-top: var(--sp-3); }
:root .an-demo .rf-mk[disabled] { opacity: 0.45; cursor: default; }
:root .an-demo .rf-find { width: 9em; height: 2.3em; }
.an-demo [data-panel="list"] .ct-card-h { flex-wrap: wrap; }
.an-demo .wa-t td.nm { white-space: normal; }
.an-demo .rf-sm { display: none; }
.an-demo .rf-pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); margin-bottom: var(--sp-2); }
.an-demo .rf-pgi { margin-left: auto; color: var(--text-muted); font-size: 0.86em; }
.an-demo .rf-grid { display: grid; grid-template-columns: 13em repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hairline); font-size: 0.9em; }
.an-demo .rf-grid > span { min-width: 0; padding: 0.35em 0.55em; overflow: hidden; border-bottom: 1px solid var(--hairline); white-space: nowrap; text-overflow: ellipsis; transition: opacity 0.35s calc(var(--i, 0) * 70ms), transform 0.35s calc(var(--i, 0) * 70ms), background-color 0.3s; }
.an-demo .rf-grid b { font-weight: inherit; }
.an-demo .rf-grid .h { font-weight: var(--fw-bold); }
.an-demo .rf-grid .rl { color: var(--text-muted); font-weight: var(--fw-semibold); }
.an-demo .rf-grid .v { border-left: 1px solid var(--hairline); }
.an-demo .rf-grid .v.cur { background: var(--action-subtle); font-weight: var(--fw-bold); }
.an-demo .rf-grid .mk { color: var(--a-marine); font-weight: var(--fw-bold); }
.an-demo .rf-grid.is-off > span.v { opacity: 0; transform: translateX(var(--sp-2)); }
.an-demo .rf-key { display: flex; gap: var(--sp-4); margin-top: var(--sp-2); }
@container incard (width < 36rem) {
  .an-demo .rf-grid { grid-template-columns: 6.5em repeat(5, minmax(0, 1fr)); font-size: 0.8em; }
  .an-demo .rf-grid > span { padding: 0.3em 0.3em; }
  .an-demo .rf-grid .rf-lg { display: none; }
  .an-demo .rf-grid .rf-sm { display: inline; }
  .an-demo .rf-pgi { display: none; }
}
@container incard (width < 30rem) { .an-demo .wa-t .ct-pill .rf-lg { display: none; } .an-demo .wa-t .ct-pill .rf-sm { display: inline; } }

/* Narrow cards and phones */
.an-demo .rf-jl tbody tr.is-off td { border-bottom-color: transparent; }
.an-demo[data-an-demo="rf-bill"] .wa-checks li > span:nth-child(2) { white-space: normal; }
@container incard (width < 30rem) {
  .an-demo .wa-t .rf-c2 { display: none; }
  .an-demo[data-an-demo^="rf-"] .wa-t .ct-pill { min-width: 0; }
  .an-demo[data-an-demo="rf-track"] .wa-t .ct-pill { white-space: normal; text-align: center; }
}
/* Phones */
@media (max-width: 40rem) {
  .an-demo .rf-flt div { min-width: 5em; }
  .an-demo .rf-tot { gap: var(--sp-2) var(--sp-3); }
}
