/* W7: "02 In action" as a five-step build-up. Loads after site.css; only touches #action. */
.act.act--steps { display: block; }
/* one framed demo surface per step: the stage itself is no longer a card */
.act--steps .act__stage { border: 0; background: none; box-shadow: none; padding: 0; min-height: 0; border-radius: 0; }
.act__note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
/* older demo labels in this section lifted to the 13px floor, small buttons to 44px */
.act .chan button, .act .panel__k, .act .inv__t th, .act .chip, .act small, .act .call__log li, .act .md__tag, .act .md__ops span, .act .md__crops figcaption, .act .md__swatches figcaption, .act .inv__orders .ch, .act .sms__hd span, .act .fax__row small { font-size: 13px; }
.act .chan button, .act .btn--sm, .act .prod button { min-height: 44px; }
.act .ch__link { min-height: 44px; display: inline-flex; align-items: center; }

/* header: one row of step pills, then one row of brand marks */
.steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 8px; position: relative; }
.steps li { flex: 1 1 0; min-width: 0; display: flex; }
.steps button { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--plate); color: var(--ink-2); cursor: pointer; text-align: left; transition: border-color .3s, background .3s, box-shadow .3s, color .3s; }
.steps__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 600 15px/1 var(--f-mono); color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.steps b { font: 600 15px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps button:hover { border-color: var(--line-2); color: var(--ink); }
.steps button.is-done .steps__n { border-color: rgba(209,173,106,.6); color: var(--brass-2); }
.steps button[aria-current="step"] { color: var(--ink); border-color: rgba(255,106,43,.6); background: linear-gradient(180deg, rgba(255,106,43,.16), rgba(255,106,43,.04)); box-shadow: 0 0 26px -10px rgba(255,106,43,.7); }
.steps button[aria-current="step"] .steps__n { background: var(--ember); border-color: var(--ember); color: #160b05; }

.stack { margin: 0 0 26px; display: grid; gap: 14px; }
.stack__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px 22px; overflow-x: auto; scrollbar-width: none; }
.stack__row::-webkit-scrollbar { display: none; }
.stack__chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; opacity: .22; filter: grayscale(1); transition: opacity .4s, filter .4s; }
.stack__chip.is-on { opacity: .8; filter: none; }
.stack__chip.is-lit { opacity: 1; }
.stack__chip .mk { width: 30px; height: 30px; flex: none; transition: filter .4s; }
.stack__chip.is-lit .mk { filter: drop-shadow(0 0 8px var(--a)); }
.stack__chip .lockup { font-size: 15px; line-height: 1; }
.stack__chip.is-new { animation: stackIn .7s var(--ease) both; }
@keyframes stackIn { from { opacity: 0; translate: 14px 0; } to { opacity: 1; translate: 0 0; } }
.stack__tag { font: 500 13px/1 var(--f-body); color: var(--ember-2); white-space: nowrap; }
.stack__tag[hidden] { display: none; }
.stack__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.stack__cta[hidden] { display: none; }
.clin__tg[hidden] { display: none; }
.stack__cta p { margin: 0; font-size: 15px; color: var(--ink-2); }
.act:not(.act--js) .steps, .act:not(.act--js) .stack, .act:not(.act--js) .act__sw, .act:not(.act--js) .step__foot, .act:not(.act--js) .clin__tg { display: none; }

/* steps and their demos */
.act--js:not(.is-scrub) .step:not(.is-on), .act--js .act__panel:not(.is-on) { display: none; }
.act--js:not(.is-scrub) .step.is-on { animation: actIn .5s var(--ease); }
.act:not(.act--js) .step + .step { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.step__k { margin: 0 0 8px; font: 500 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); }
.step__t { margin: 0 0 8px; font: 600 28px/1.15 var(--f-cap); letter-spacing: .01em; }
.step__t:focus { outline: none; }
.step__line { margin: 0 0 18px; max-width: 70ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.act__sw { display: flex; gap: 6px; margin: 0 0 16px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.act__sw::-webkit-scrollbar { display: none; }
/* W26 fix: the three step 2 tabs share the narrow demo column as equal cells on desktop, so none hides off the edge. */
@media (min-width: 1101px) {
  .act [data-step-panel="2"] .act__sw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; box-sizing: border-box; overflow: visible; border-radius: 16px; }
  .act [data-step-panel="2"] .act__sw > button { min-width: 0; min-height: 44px; padding: 4px; white-space: normal; font-size: 14px; line-height: 1.15; text-wrap: balance; text-align: center; border-radius: 12px; }
}
.act__sw button { flex: none; min-height: 44px; border: 0; background: transparent; padding: 0 18px; border-radius: 999px; cursor: pointer; font: 500 15px/1 var(--f-body); color: var(--muted); white-space: nowrap; transition: color .25s, background .25s; }
.act__sw button:hover { color: var(--ink); }
.act__sw button[aria-pressed="true"] { color: var(--on-brass); background: linear-gradient(180deg, #f2dca9, #c9a463); font-weight: 600; }
.step__foot { display: flex; justify-content: flex-end; margin-top: 22px; }
@media (min-width: 1101px) {
  .duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .act--js .duo > .act__panel { display: block; }
  .step--duo .act__sw { display: none; }
}

/* web chat (step 3) */
.wc { display: grid; gap: 12px; }
.wc__store { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--plate); }
.wc__img { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; padding: 4px; text-align: center; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.16), transparent 60%), #4a2d1b; font: 600 13px/1.1 var(--f-cap); color: rgba(255,255,255,.88); overflow: hidden; }
.wc__info { display: grid; gap: 4px; min-width: 0; }
.wc__url { font-size: 13px; color: var(--muted); }
.wc__info b { font-size: 16px; }
.wc__row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--ink-2); }
.wc__chat { border-radius: 16px; border: 1px solid var(--line-2); background: rgba(8,9,11,.55); overflow: hidden; }
.wc__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.wc__hd span { color: var(--muted); font-size: 13px; }
.wc__log { list-style: none; margin: 0; padding: 14px; display: grid; gap: 10px; }
.wc__log li { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.wc__log .caller { justify-self: end; background: rgba(209,173,106,.16); border: 1px solid rgba(209,173,106,.35); border-bottom-right-radius: 4px; }
.wc__log .ai { justify-self: start; background: var(--plate-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.wc__log .sys { max-width: none; padding: 4px 4px 0; text-align: center; font-size: 13px; color: var(--brass-2); }

/* back office (step 4) */
.bo__scroll { overflow-x: auto; }
.bo__t { width: 100%; border-collapse: collapse; font-size: 15px; }
.bo__t th { text-align: left; font: 500 13px/1.2 var(--f-body); color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--line-2); }
.bo__t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bo__t .num { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.bo__t small { display: block; margin-top: 3px; color: var(--muted); }
.bo__t tfoot td { font-weight: 600; color: var(--brass-2); border-top: 1px solid rgba(209,173,106,.6); border-bottom: 0; }
.bo__ledger { padding: 16px; border-radius: 6px 14px 14px 6px; border: 1px solid rgba(209,173,106,.35); border-left: 5px double rgba(209,173,106,.7); background: rgba(209,173,106,.04); }
.bo__bk { margin: 0 0 12px; display: grid; gap: 6px; font: 600 18px/1.2 var(--f-cap); letter-spacing: .06em; text-transform: uppercase; color: var(--brass-2); }
.bo__bk span { font: 400 15px/1.45 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.bo__t--book { font-family: var(--f-mono); }
.bo__t--book td { border-bottom-color: rgba(209,173,106,.18); }

/* closing (after step 5) and the clinic front desk */
.step__end { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.step__close { margin: 0; font: 600 21px/1.3 var(--f-cap); letter-spacing: .01em; }
.step__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.step__lnk { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--brass-2); font: 500 15px/1 var(--f-body); cursor: pointer; text-decoration: none; transition: border-color .25s, color .25s; }
.step__lnk:hover { border-color: var(--brass); color: var(--ink); }
.clin__tg { min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; text-align: left; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--plate); color: inherit; cursor: pointer; }
.clin__tg b { font: 600 15px/1.2 var(--f-cap); letter-spacing: .03em; text-transform: uppercase; }
.clin__tg > span:not(.avail) { color: var(--muted); font-size: 15px; }
.clin__tg::after { content: "+"; margin-left: auto; font: 500 22px/1 var(--f-mono); color: var(--brass-2); }
.clin__tg[aria-expanded="true"]::after { content: "\2212"; }
#act-clinic.is-on { animation: actIn .45s var(--ease); }

@media (max-width: 1100px) {
  .steps { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 2px 0; }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { flex: none; }
  .steps b { overflow: visible; }
}
@media (max-width: 640px) {
  .steps { margin-bottom: 10px; }
  .steps button { min-height: 44px; padding: 4px 14px 4px 4px; gap: 8px; }
  .steps__n { width: 34px; height: 34px; }
  .stack { margin-bottom: 16px; gap: 12px; }
  .stack__row { gap: 10px; }
  .stack__chip .lockup > [aria-hidden] { display: none; }
  .stack__chip .mk { width: 28px; height: 28px; }
  .step__k { display: none; }
  .step__t { font-size: 22px; margin-bottom: 6px; }
  .step__line { font-size: 15px; margin-bottom: 14px; }
  .step__foot { margin-top: 16px; }
  .step__foot .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
  .act__sw button { padding: 0 13px; }
  .stack__cta .btn { width: 100%; justify-content: center; }
  .bo__t th, .bo__t td { padding-left: 6px; padding-right: 6px; }
  .bo__ledger { padding: 12px 10px; }
  .step__close { font-size: 19px; }
  /* store shelf as compact rows: thumbnail, name, price and stock, Add on the right */
  .act .st__shelf { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .act .prod { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; padding: 8px; }
  .act .prod__img { grid-row: 1 / 3; width: 56px; height: 56px; aspect-ratio: auto; min-height: 0; margin: 0; padding: 0; font-size: 0; border-radius: 10px; }
  .act .prod > b { grid-column: 2; font-size: 15px; line-height: 1.25; margin: 0; }
  .act .prod__row { grid-column: 2; margin: 0; gap: 10px; font-size: 14px; justify-content: flex-start; }
  .act .prod > button { grid-column: 3; grid-row: 1 / 3; width: auto; margin: 0; padding: 0 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .stack__chip.is-new, .act--js .step.is-on, #act-clinic.is-on { animation: none; }
}
