/* PR860 S609h: Partner web Verktyg (P01–P34) visual pages. Uses Partner OS tokens for light/dark. */
.pt-root { display: grid; gap: 18px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
/* S609u: grid children never widen the page past a 320px viewport (chip row scrolls instead). */
.pt-root > * { min-width: 0; }
.pt-root .po-icon { width: 18px; height: 18px; flex: none; }
.pt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pt-search { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; min-height: 44px; padding: 0 12px; border: 1px solid var(--po-line-strong); border-radius: 10px; background: var(--po-surface); color: var(--po-muted); }
.pt-search:focus-within { box-shadow: var(--po-focus); border-color: var(--po-teal); }
.pt-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--po-text); font: inherit; outline: none; }
.pt-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
/* S609u: in the wrapping toolbar the chip row takes its own full line and scrolls, never widening the page. */
.pt-toolbar > .pt-chips { flex: 1 1 100%; min-width: 0; max-width: 100%; }
.pt-search { min-width: 0; }
.pt-chip { flex: none; min-height: 36px; padding: 6px 12px; border: 1px solid var(--po-line); border-radius: 99px; background: var(--po-surface); color: var(--po-text); font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; transition: background .16s, border-color .16s; }
.pt-chip[aria-pressed="true"] { background: var(--po-teal-soft); border-color: var(--po-teal); color: var(--po-teal-ink, var(--po-teal)); }
.pt-chip:focus-visible, .pt-tile:focus-visible, .pt-segmented button:focus-visible, .pt-back:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-group { display: grid; gap: 12px; }
.pt-group h3 { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: .95rem; }
.pt-group h3 small { margin-left: auto; color: var(--po-muted); font-weight: 650; }
.pt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pt-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px; text-align: left; color: var(--po-text); font: inherit; cursor: pointer; transition: border-color .16s, transform .16s, box-shadow .16s; }
.pt-tile:hover { border-color: var(--po-teal); box-shadow: var(--po-shadow); }
.pt-tile:active { transform: translateY(1px); }
.pt-tile-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--po-teal-soft); color: var(--po-teal); }
.pt-tile-text { display: grid; gap: 3px; min-width: 0; }
.pt-tile-code { color: var(--po-muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.pt-tile-text strong { font-size: .98rem; }
.pt-tile-text small { color: var(--po-muted); font-size: .82rem; line-height: 1.4; }
.pt-tile-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: var(--po-muted); }
.pt-detail { display: grid; gap: 16px; }
.pt-crumbs { display: flex; align-items: center; gap: 12px; color: var(--po-muted); font-size: .84rem; }
.pt-back { min-height: 44px; padding: 6px 12px; }
.pt-back .po-icon { transform: scaleX(-1); }
.pt-head { margin-bottom: 0; }
.pt-banner { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--po-line); border-radius: 12px; background: var(--po-surface-2); color: var(--po-text); font-size: .86rem; }
.pt-state-row, .pt-segment-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pt-label { color: var(--po-muted); font-size: .8rem; font-weight: 700; }
.pt-segmented { flex-wrap: wrap; max-width: 100%; }
.pt-segmented button { color: var(--po-text); font: inherit; font-size: .82rem; font-weight: 650; }
.pt-blocks { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.pt-blocks > .pt-segment-row, .pt-blocks > .pt-metrics, .pt-blocks > .pt-note, .pt-blocks > .pt-compare { grid-column: 1 / -1; }
.pt-card { display: grid; align-content: start; }
.pt-card .po-card-header { margin-bottom: 12px; }
.pt-metrics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pt-rules, .pt-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: pt; }
.pt-rules li { position: relative; padding-left: 34px; line-height: 1.45; counter-increment: pt; }
.pt-rules li::before { content: counter(pt); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--po-teal-soft); color: var(--po-teal); font-size: .75rem; font-weight: 800; }
.pt-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.pt-step-dot { width: 12px; height: 12px; border: 2px solid var(--po-line-strong); border-radius: 50%; }
.pt-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--po-line); }
.pt-rows li:last-child { border-bottom: 0; }
.pt-rows li > div { display: grid; gap: 2px; min-width: 0; }
.pt-rows small { color: var(--po-muted); font-size: .8rem; }
.pt-value { color: var(--po-muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.pt-lanes { display: grid; gap: 12px; grid-template-columns: repeat(var(--pt-lanes, 3), minmax(0, 1fr)); }
.pt-lane { display: grid; gap: 8px; }
.pt-lane-head { display: flex; align-items: center; justify-content: space-between; }
.pt-placeholder { display: grid; place-items: center; min-height: 72px; border: 1px dashed var(--po-line-strong); border-radius: 12px; color: var(--po-muted); font-size: .8rem; }
.pt-switch { position: relative; flex: none; width: 46px; height: 28px; }
.pt-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.pt-switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--po-surface-3); opacity: .7; }
.pt-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--po-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.pt-check { display: flex; align-items: center; gap: 10px; }
.pt-check input { width: 20px; height: 20px; }
.pt-form textarea { min-height: 88px; }
.pt-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--po-teal-soft); color: var(--po-text); font-size: .86rem; line-height: 1.45; }
.pt-note[data-tone="warning"] { background: var(--po-warning-soft); }
.pt-note[data-tone="warning"] .po-icon { color: var(--po-warning); }
.pt-hero { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.pt-hero strong { font-size: 2.8rem; letter-spacing: -.04em; }
.pt-hero span { color: var(--po-muted); font-size: 1.2rem; font-weight: 650; }
.pt-meter { height: 14px; border: 1px solid var(--po-line-strong); border-radius: 99px; background: var(--po-surface-2); overflow: hidden; }
.pt-meter span { display: block; width: 0; height: 100%; background: var(--po-teal); }
.pt-device { display: grid; gap: 12px; max-width: 320px; margin-inline: auto; padding: 14px; border: 1px solid var(--po-line-strong); border-radius: 26px; background: var(--po-surface-2); }
/* S609w: surface-2 keeps the muted caption at AA (4.7:1) in light theme; surface-3 measured 4.43. */
.pt-device-hero { display: grid; gap: 4px; padding: 18px 14px; border-radius: 16px; background: var(--po-surface-2); }
.pt-device-hero small, .pt-device-item small { color: var(--po-muted); font-size: .78rem; }
.pt-device-section { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; }
.pt-device-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--po-surface); font-weight: 400; }
.pt-device-item > span:last-child { display: grid; }
.pt-device-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--po-surface-3); }
.pt-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pt-calendar-head { padding: 4px 0; color: var(--po-muted); font-size: .72rem; font-weight: 750; text-align: center; }
.pt-calendar-day { display: grid; place-items: center; aspect-ratio: 1.5; min-height: 34px; border-radius: 8px; background: var(--po-surface-2); color: var(--po-muted); font-size: .74rem; }
.pt-funnel { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-funnel li { display: flex; justify-content: space-between; align-items: center; width: calc(100% - var(--pt-step) * 8%); min-height: 44px; padding: 8px 14px; border-radius: 10px; background: var(--po-teal-soft); }
.pt-compare { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-photo { display: grid; place-items: center; gap: 6px; min-height: 140px; border: 1px dashed var(--po-line-strong); border-radius: 12px; color: var(--po-muted); font-size: .82rem; }
.pt-photo .po-icon { width: 28px; height: 28px; }
.pt-table-empty { color: var(--po-muted); text-align: center !important; }
.pt-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 12px; border: 1px solid var(--po-line); border-radius: 14px; background: color-mix(in srgb, var(--po-surface) 92%, transparent); backdrop-filter: blur(12px); }

/* S609m: C07 order messages, quick-reply chips and C08 keyboard shortcuts. */
.pt-chat { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-bubble { max-width: min(78%, 420px); padding: 10px 14px; border-radius: 16px; background: var(--po-teal-soft); color: var(--po-text); line-height: 1.4; overflow-wrap: anywhere; }
.pt-bubble[data-side="mine"] { justify-self: end; background: var(--po-teal); color: #fff; }
html[data-theme="dark"] .pt-bubble[data-side="mine"] { color: #08231c; }
/* PR860 S611f: C07 message delivery state under our own bubble; a failed bubble keeps its text and gets an outline, not only a colour. */
.pt-chat-status { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 600; opacity: 0.9; }
/* PR860 S611s: C07 order flows keep two columns (main | events) on a phone turned sideways when each column gets ≥300px. */
@media (min-width: 640px) and (max-height: 520px) and (orientation: landscape) { .pt-channel.pt-service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pt-channel.pt-service > .pt-card, .pt-channel.pt-service > .pt-channel-save { grid-column: 1 / -1; } }
.pt-chat-compose textarea { min-height: 44px; resize: none; }
/* PR860 S611t: device companions (A14/C08/C05) keep two columns on a phone turned sideways, like Partner iOS PartnerCompanionScreen. */
@media (min-width: 640px) and (max-height: 520px) and (orientation: landscape) { .pt-blocks[data-ptool-group="devices"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* PR860 S611u: case (X09/X04/X08/A13), case money (X05/C06) and customer-flow (E02/E20/U04/E18/E37/M01) companions also keep two columns sideways, like Partner iOS PartnerToolColumns. */
@media (min-width: 640px) and (max-height: 520px) and (orientation: landscape) { .pt-blocks[data-ptool-group="cases"], .pt-blocks[data-ptool-group="caseMoney"], .pt-blocks[data-ptool-group="customer"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pt-bubble[data-failed="true"] { background: transparent; color: var(--po-text); border: 2px dashed var(--po-danger); }
html[data-theme="dark"] .pt-bubble[data-failed="true"] { color: var(--po-text); }
.pt-chips-static { flex-wrap: wrap; overflow: visible; }
.pt-chips-static .pt-chip { cursor: not-allowed; opacity: .7; }
.pt-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; margin: 0; }
.pt-keys > div { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.pt-keys dt { margin: 0; }
.pt-keys dd { margin: 0; color: var(--po-text); }
.pt-keys dd small { display: block; color: var(--po-muted); font-size: .8rem; }
.pt-keys kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 32px; padding: 0 10px; border: 1px solid var(--po-line-strong); border-bottom-width: 2px; border-radius: 8px; background: var(--po-surface); font: 650 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--po-text); }

@media (max-width: 1100px) {
  .pt-blocks { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .pt-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 620px) {
  .pt-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .pt-toolbar > * { flex: none; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-lanes { grid-template-columns: 1fr; }
  .pt-compare { grid-template-columns: 1fr; }
  .pt-actions { justify-content: stretch; }
  .pt-actions .po-button { flex: 1 1 100%; }
  .pt-steps li { grid-template-columns: auto minmax(0, 1fr); }
  .pt-steps li .po-status-pill { grid-column: 2; justify-self: start; }
  .pt-funnel li { width: 100%; }
  .pt-hero strong { font-size: 2.2rem; }
  .pt-bubble { max-width: 88%; }
  .pt-keys { grid-template-columns: 1fr; }
}

/* S609t: on narrow phones (320–560px) Verktyg tables become labelled row cards instead of a
   sideways-scrolling grid; the empty state keeps one centred line without a column header. */
@media (max-width: 560px) {
  .pt-root .pt-table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pt-root .pt-table-stack thead tr, .pt-root .pt-table-stack thead th { display: block; width: 1px; padding: 0; }
  .pt-root .pt-table-stack, .pt-root .pt-table-stack tbody, .pt-root .pt-table-stack tr, .pt-root .pt-table-stack td { display: block; width: 100%; }
  .pt-root .po-table-wrap:has(.pt-table-stack) { overflow-x: visible; }
  .pt-root .pt-table-stack tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--po-line); }
  .pt-root .pt-table-stack tbody tr:last-child { border-bottom: 0; }
  .pt-root .pt-table-stack td { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 5px 0; border: 0; overflow-wrap: anywhere; }
  .pt-root .pt-table-stack td::before { content: attr(data-label); color: var(--po-muted); font-size: .72rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
  .pt-root .pt-table-stack td:first-child { grid-template-columns: minmax(0, 1fr); padding-top: 0; font-weight: 650; }
  .pt-root .pt-table-stack td:first-child::before, .pt-root .pt-table-stack td:not([data-label])::before { content: none; }
  .pt-root .pt-table-stack td.pt-table-empty { display: block; padding: 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-tile, .pt-chip { transition: none; }
  .pt-tile:active { transform: none; }
}
/* PR860 S609y: Verktyg group and filter chips reach 44px touch targets on coarse-pointer tablets. */
@media (pointer: coarse) { .pt-chip { min-height: 44px; padding-inline: 14px; } }
/* PR860 S609z: Verktyg detail pages on coarse-pointer tablets (768/1024): back button, state and option segments, switches and checklist rows reach 44px targets. */
@media (pointer: coarse) {
  .pt-back { min-height: 44px; }
  .pt-segmented button { min-height: 44px; padding-inline: 12px; }
  .pt-switch { height: 44px; }
  .pt-switch span { inset: 8px 0; }
  .pt-check { min-height: 44px; }
  .pt-check input { width: 22px; height: 22px; }
}
/* PR860 S610d: phones turned sideways (≤520px tall). A Verktyg page's back button, title block, preview note and
   state switcher took ~430px of a 375px viewport, so the tool itself started below the fold. The back button sits
   beside a compact title, the note keeps one line (full text stays in the DOM for screen readers) and the state
   switcher scrolls sideways on one row; the tool body now starts on the first screen. */
@media (max-height: 520px) and (orientation: landscape) {
  .pt-detail { grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 10px; }
  .pt-detail > * { grid-column: 1 / -1; min-width: 0; }
  .pt-detail > .pt-head { grid-column: 1; grid-row: 1; display: flex; align-items: flex-start; gap: 12px; }
  .pt-detail > .pt-crumbs { grid-column: 2; grid-row: 1; align-self: start; }
  .pt-detail > .pt-crumbs > span { display: none; }
  .pt-head > div:first-child { min-width: 0; }
  .pt-head .po-kicker { font-size: .68rem; }
  .pt-head h2 { margin: 2px 0 1px; font-size: 1.2rem; }
  .pt-head p { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .pt-head .po-page-actions { flex: none; margin: 0; }
  .pt-banner { padding: 7px 12px; font-size: .78rem; align-items: center; }
  .pt-banner > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .pt-state-row { flex-wrap: nowrap; }
  .pt-state-row .pt-label { flex: none; }
  .pt-state-row .pt-segmented { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pt-state-row .pt-segmented button { flex: none; }
}

/* PR860 S610u: C04 scanner preview (visual only). */
.pt-scan { grid-column: 1 / -1; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pt-scan { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; } }
.pt-scan-reader { position: relative; display: grid; place-items: center; gap: 8px; min-height: 220px; padding: 18px; border-radius: 16px; text-align: center; background: var(--po-surface-2); color: var(--po-text); overflow: hidden; }
.pt-scan-reader small { color: var(--po-muted); max-width: 32ch; }
.pt-scan-reader input { width: min(100%, 280px); }
/* S1238: the live C04 reader is a short header above the code field; the camera sheet is a modal dialog. */
.pt-flow-card .pt-scan-reader[data-mode="hand"] { min-height: 0; padding: 14px; }
.pt-scan-camera { display: grid; gap: 12px; width: min(92vw, 520px); padding: 16px; border: 0; border-radius: 18px; background: #141414; color: #fff; text-align: center; }
.pt-scan-camera::backdrop { background: rgb(0 0 0 / 0.6); }
.pt-scan-camera video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #000; }
.pt-scan-reader[data-mode="camera"] { background: #141414; }
.pt-scan-frame { width: 230px; max-width: 80%; height: 110px; border: 4px dashed rgba(255, 255, 255, .85); border-radius: 16px; }
.pt-scan-reader[data-shape="qr"] .pt-scan-frame { width: 170px; height: 170px; }
.pt-scan-line { position: absolute; left: 20%; right: 20%; top: 30%; height: 3px; border-radius: 3px; background: var(--po-teal); animation: pt-scan-sweep 1.6s ease-in-out infinite alternate; }
.pt-scan-result { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--po-warning); }
.pt-scan-result[data-tone="success"] { color: var(--po-success); }
.pt-scan-result[data-tone="danger"] { color: var(--po-danger); }
@keyframes pt-scan-sweep { from { top: 30%; } to { top: 68%; } }
@media (prefers-reduced-motion: reduce) { .pt-scan-line { animation: none; top: 50%; } }
.pt-root .pt-scan-result .po-icon { width: 44px; height: 44px; stroke-width: 2.6; }
.pt-root .pt-scan-reader[data-mode] > .po-icon { width: 40px; height: 40px; color: var(--po-teal); }
.pt-root .pt-scan-reader[data-mode="denied"] > .po-icon { color: var(--po-warning); }
.pt-scan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pt-scan-actions .po-button { flex: 1 1 180px; }
/* PR860 S610v: C03 channel mode preview. */
.pt-channel { grid-column: 1 / -1; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pt-channel-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 900px) { .pt-channel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pt-channel > .pt-card, .pt-channel-save { grid-column: 1 / -1; } }
.pt-channel-area { position: relative; display: grid; place-items: center; height: 170px; border-radius: 16px; background: var(--po-surface-2); color: var(--po-teal); }
.pt-channel-ring { position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 2px dashed currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.pt-root .pt-channel-area > .po-icon { position: relative; width: 28px; height: 28px; }
.pt-channel-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pt-channel-extra .po-button { flex: 1 1 90px; min-height: 44px; }
.pt-channel-extra .po-button[aria-pressed="true"] { border-color: var(--po-teal); color: var(--po-teal); }
/* PR860 S610x: C06 order-level finance preview. */
.pt-ledger-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pt-ledger-bar > span { flex: 1 1 90px; display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 10px; background: var(--po-surface-2); font-size: 0.8125rem; color: var(--po-muted); }
.pt-ledger-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--po-teal); opacity: 0.55; flex: none; }
.pt-ledger .pt-value { white-space: nowrap; }

/* PR860 S611a: C09 Tillväxtverktyg – budget bar and loyalty stamp preview. */
.pt-growth-bar { height: 8px; border-radius: 999px; background: var(--po-teal-soft); overflow: hidden; }
.pt-growth-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--po-teal); }
.pt-growth-bar.is-warning > span { background: var(--po-warning); }
.pt-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pt-stamp { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--po-teal); color: var(--po-teal); }
.pt-stamp.is-reward { background: var(--po-teal-soft); }
.pt-stamp svg { width: 16px; height: 16px; }
.pt-growth .pt-metrics { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* Ordered event lists in the order and hub previews. */
.pt-print-journal { list-style: none; padding: 0; margin: 0; }


/* PR860 S611e/S1261: C08 diagram of this window's real workspace layout. */
.pt-ws-frame { display: flex; gap: 6px; height: 132px; padding: 8px; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--po-line, rgba(0, 0, 0, 0.12)); background: var(--po-surface-soft, rgba(0, 0, 0, 0.04)); }
.pt-ws-frame[data-columns="1"]:not([data-other]) { max-width: 180px; margin-inline: auto; }
.pt-ws-frame[data-wide] { padding-inline: 18%; }
.pt-ws-pane { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; padding: 6px; border-radius: 8px; font-size: 0.8125rem; font-weight: 600; text-align: center; background: var(--po-surface, #fff); border: 1px solid var(--po-line, rgba(0, 0, 0, 0.12)); }
.pt-ws-pane[data-kind="nav"] { flex: 0 0 22%; }
.pt-ws-pane[data-kind="queue"] { border-width: 2px; border-color: var(--po-teal, var(--po-text)); }
.pt-ws-pane[data-kind="other"] { flex: 2 1 0; opacity: 0.55; border-style: dashed; }
/* PR860 S611g: C10 Tap to Pay cashier screen (locked preview) */
.pt-tap-screen { --pt-accent: var(--po-muted); display: grid; justify-items: center; gap: 10px; padding: 12px 8px 4px; text-align: center; }
.pt-tap-screen[data-tone="info"] { --pt-accent: var(--po-info); }
.pt-tap-screen[data-tone="success"] { --pt-accent: var(--po-success); }
.pt-tap-screen[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-tap-screen[data-tone="danger"] { --pt-accent: var(--po-danger); }
.pt-tap-amount { font-size: 2.25rem; font-variant-numeric: tabular-nums; color: var(--po-text); }
.pt-tap-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: color-mix(in srgb, var(--pt-accent) 14%, transparent); color: var(--pt-accent); }
.pt-tap-icon .po-icon { width: 32px; height: 32px; }
.pt-tap-screen small { max-width: 34ch; color: var(--po-muted); }
@media (prefers-reduced-motion: no-preference) { .pt-tap-icon { transition: background-color 0.2s ease, color 0.2s ease; } }
@media (min-width: 900px) { .pt-channel > .pt-metrics, .pt-channel > .pt-note { grid-column: 1 / -1; } }
.pt-center .pt-metrics .po-metric { align-content: start; }

/* PR860 S611h: P15/P24/P26/P27 status scenarios (parity with Partner iOS PartnerStatusScenarioCard). */
.pt-status-states { display: grid; gap: 4px; }
.pt-status-states > .pt-rows:first-child li { padding: 10px 12px; border: 0; border-radius: 12px; background: var(--po-bg); border-inline-start: 4px solid var(--po-muted); }
.pt-status-states[data-tone="success"] > .pt-rows:first-child li { border-inline-start-color: var(--po-success, #1f8a4c); }
.pt-status-states[data-tone="warning"] > .pt-rows:first-child li { border-inline-start-color: var(--po-warning, #b26a00); }
.pt-status-states[data-tone="danger"] > .pt-rows:first-child li { border-inline-start-color: var(--po-danger, #c62828); }
.pt-status-states[data-tone="info"] > .pt-rows:first-child li { border-inline-start-color: var(--po-info, #1d5fbf); }
.pt-status-states > .pt-rows:first-child strong { font-size: 1rem; }
@media (max-width: 420px) { .pt-status-states .pt-rows li { flex-wrap: wrap; } }
/* PR860 S611m: page-specific offline lists (what still works here / what waits for Bistam). */
.pt-offline-list { margin-top: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--po-line); background: var(--po-surface, transparent); }
.pt-offline-list h3 { margin: 0 0 8px; font-size: 0.95rem; }
.pt-offline-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pt-offline-list li { position: relative; padding-left: 22px; overflow-wrap: anywhere; }
.pt-offline-list li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--po-success); }
.pt-offline-list[data-tone="warning"] li::before { background: var(--po-warning); border-radius: 2px; }

/* PR860 S613c (UI design only): hub search clear, chip counts, result count; shaped preview skeleton and state tiles. */
.pt-search-clear { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; border: 0; border-radius: 50%; background: var(--po-surface-2); color: var(--po-muted); cursor: pointer; }
.pt-search-clear:hover { color: var(--po-text); }
.pt-search-clear:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-search-clear .po-icon { width: 16px; height: 16px; }
.pt-search input::-webkit-search-cancel-button { display: none; }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; }
.pt-chip-count { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--po-surface-2); color: var(--po-muted); font-size: .72rem; font-variant-numeric: tabular-nums; text-align: center; }
.pt-chip[aria-pressed="true"] .pt-chip-count { background: var(--po-surface); color: var(--po-teal-ink, var(--po-teal)); }
.pt-result-count { margin: -6px 0 0; color: var(--po-muted); font-size: .82rem; }
.pt-skel .pt-blocks { pointer-events: none; }
.pt-skel-card { gap: 12px; }
.pt-skel-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-skel-row { min-height: 40px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--po-line); padding-top: 10px; }
.pt-skel-row .po-skel-dot { width: 24px !important; height: 24px; border-radius: 50%; flex: 0 0 auto; }
.pt-root .po-state-icon .po-icon { width: 28px; height: 28px; }
.pt-root .po-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pt-root .po-state-actions .po-button { min-height: 44px; }
.pt-disabled .pt-note { margin-top: 4px; text-align: left; }
@media (max-width: 720px) { .pt-skel .pt-blocks { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .pt-root .po-state-actions .po-button { width: 100%; } }
.pt-search input, .pt-search input:focus, .pt-search input:focus-visible { border: 0; box-shadow: none; outline: none; padding: 0; }
.pt-root .po-page-actions .po-status-pill { white-space: nowrap; }
.pt-root .po-loading.pt-skel { min-height: 0; padding: 0; border: 0; background: transparent; display: block; width: 100%; text-align: left; }
.pt-skel .pt-blocks { width: 100%; }

/* PR860 S614b: P02 köksskärm – stationskolumner efter tavlans egen bredd (1 vald / 2 / 3), bongkort med
   tidsbricka Ny/Pågår/Klar/Sen, fasfilter, sen-banner, tom kolumn och bongpanel. Paritet med Partner iOS S614a. */
.pt-kds { display: grid; gap: 12px; container-type: inline-size; min-width: 0; }
.pt-kds-late { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--po-danger-soft); border: 1px solid color-mix(in srgb, var(--po-danger) 35%, transparent); }
.pt-kds-late > .po-icon { flex: none; width: 22px; height: 22px; color: var(--po-danger); }
.pt-kds-late > div { display: grid; gap: 2px; flex: 1 1 220px; min-width: 0; }
.pt-kds-late small { color: var(--po-muted); font-size: .8rem; }
.pt-kds-late-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--po-danger); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.pt-kds-late-btn:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-kds-filter, .pt-kds-picker { display: grid; gap: 6px; }
.pt-kds-board { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.pt-kds-col { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 12px; border-radius: 18px; background: var(--po-surface-2); border: 1px solid var(--po-line); }
.pt-kds-col:not([data-active="true"]) { display: none; }
.pt-kds-col > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pt-kds-col > header h4 { margin: 0; font-size: 1rem; }
.pt-kds-col > header > span { display: inline-flex; gap: 6px; }
.pt-kds-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pt-kds-ticket { position: relative; display: grid; gap: 10px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--po-surface); border: 2px solid transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); --pt-accent: var(--po-info); }
.pt-kds-ticket::before { content: ""; position: absolute; inset: 12px auto 12px 6px; width: 4px; border-radius: 4px; background: var(--pt-accent); }
.pt-kds-ticket[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-kds-ticket[data-tone="success"] { --pt-accent: var(--po-success); opacity: .82; }
.pt-kds-ticket[data-tone="danger"] { --pt-accent: var(--po-danger); border-color: var(--po-danger); }
.pt-kds-ticket:hover { background: color-mix(in srgb, var(--po-surface-2) 40%, var(--po-surface)); }
.pt-kds-ticket:focus-within { box-shadow: var(--po-focus); }
.pt-kds-ticket-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pt-kds-ticket-head > div { display: grid; gap: 2px; min-width: 0; }
.pt-kds-ticket-head small { color: var(--po-muted); font-size: .8rem; }
.pt-kds-open { padding: 0; border: 0; background: none; color: var(--po-text); font: inherit; font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; }
.pt-kds-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pt-kds-open:focus-visible { outline: none; }
/* S1243 E02 Kökspuls: the location's real orders with the server's step. */
.pt-pulse-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.pt-pulse-row > .po-button { grid-column: 1 / -1; justify-self: start; }
.pt-pulse-open { padding: 0; border: 0; background: none; color: var(--po-text); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; }
.pt-pulse-open:focus-visible { outline: 2px solid var(--po-teal); outline-offset: 2px; border-radius: 4px; }
.pt-pulse-track { grid-column: 1 / -1; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .78rem; }
.pt-pulse-track li { flex: 1; padding-top: 6px; border-top: 3px solid var(--po-border); color: var(--po-muted); }
.pt-pulse-track li[data-state="done"] { border-top-color: var(--po-success); color: var(--po-text); }
.pt-pulse-track li[data-state="now"] { border-top-color: var(--po-teal); color: var(--po-text); font-weight: 700; }
.pt-pulse-wait { grid-column: 1 / -1; color: var(--po-muted); }
@media (forced-colors: active) { .pt-pulse-track li[data-state="now"], .pt-pulse-track li[data-state="done"] { border-top-color: Highlight; } }
.pt-kds-time { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; border-radius: 99px; background: var(--po-surface-2); color: var(--po-info); font-size: .78rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-kds-time .po-icon { width: 14px; height: 14px; }
.pt-kds-time[data-tone="warning"] { background: var(--po-warning-soft); color: var(--po-warning); }
.pt-kds-time[data-tone="success"] { background: var(--po-teal-soft); color: var(--po-success); }
.pt-kds-time[data-tone="danger"] { background: var(--po-danger); color: #fff; }
.pt-kds-lines { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pt-kds-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.pt-kds-lines li > strong { font-variant-numeric: tabular-nums; }
.pt-kds-lines li > span { display: grid; gap: 1px; }
.pt-kds-line-name { font-weight: 650; overflow-wrap: anywhere; }
.pt-kds-lines small { color: var(--po-warning); font-size: .8rem; font-weight: 650; }
.pt-kds-lines li.is-done { color: var(--po-muted); }
.pt-kds-lines li.is-done .pt-kds-line-name { text-decoration: line-through; }
.pt-kds-lines .po-icon { width: 14px; height: 14px; color: var(--po-success); }
.pt-kds-allergy { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border-radius: 10px; background: var(--po-danger-soft); color: var(--po-danger); font-size: .8rem; font-weight: 750; }
.pt-kds-allergy .po-icon { width: 14px; height: 14px; }
/* S1186: the ticket's own action stays above the open-order hit area; a scheduled order's time in info tone. */
.pt-kds-ticket .pt-kds-action, .pt-kds-ticket .pt-kds-bump { position: relative; z-index: 1; min-height: 44px; }
.pt-kds-scheduled { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--po-info); font-size: .8rem; font-weight: 650; }
.pt-kds-scheduled .po-icon { width: 14px; height: 14px; }
.pt-kds-progress { display: grid; gap: 4px; }
.pt-kds-progress .pt-growth-bar { height: 6px; background: var(--po-surface-2); }
.pt-kds-progress .pt-growth-bar > span { background: var(--pt-accent); }
.pt-kds-progress small { color: var(--po-muted); font-size: .75rem; }
.pt-kds-bump { display: grid; place-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; background: color-mix(in srgb, var(--po-text) 45%, transparent); color: var(--po-surface); font-weight: 650; text-align: center; }
.pt-kds-ticket[data-tone="success"] .pt-kds-bump { background: var(--po-surface-2); color: var(--po-text); }
.pt-kds-empty { display: grid; justify-items: center; gap: 4px; min-height: 120px; align-content: center; padding: 12px; border: 1px dashed var(--po-line-strong); border-radius: 14px; text-align: center; }
.pt-kds-empty .po-icon { width: 22px; height: 22px; color: var(--po-muted); }
.pt-kds-empty[data-tone="success"] .po-icon { color: var(--po-success); }
.pt-kds-empty small { color: var(--po-muted); font-size: .8rem; }
.pt-kds-sheet { display: grid; gap: 10px; border: 1px solid var(--po-line-strong); }
.pt-kds-sheet .po-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-kds-sheet .po-card-header .po-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.pt-kds-sheet-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pt-kds-sheet-cols { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.pt-kds-sheet-cols h4 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: .95rem; }
.pt-kds-sheet-cols h4 small { color: var(--po-muted); font-weight: 600; }
@container (min-width: 452px) {
  .pt-kds-picker { display: none; }
  .pt-kds-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-kds-col:not([data-active="true"]) { display: grid; }
  .pt-kds-sheet-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 684px) { .pt-kds-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) {
  .pt-kds-time[data-phase="late"] { animation: pt-kds-late 2.2s ease-in-out infinite; }
  .pt-kds-ticket, .pt-kds-late { transition: background-color .2s ease, opacity .2s ease; }
}
@keyframes pt-kds-late { 50% { opacity: .72; } }
@media (pointer: coarse) { .pt-kds-filter .pt-chip { min-height: 44px; } }
@media (forced-colors: active) { .pt-kds-ticket::before, .pt-kds-time { forced-color-adjust: none; } .pt-kds-ticket[data-tone="danger"] { border-color: CanvasText; } }

/* PR860 S614b/S854: P18 klarskärm – mörk publik skärm med platsens riktiga nummer, senast klara framhävt, platsens
   namn vid tom kö och större TV-layout när skärmen är bred. Skärmen är alltid mörk, oavsett tema. */
.pt-ready-wrap { display: grid; gap: 10px; container-type: inline-size; }
.pt-ready { overflow: hidden; border-radius: 20px; border: 1px solid var(--po-line); background: #000; color: #fff; color-scheme: dark; }
.pt-ready-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: #0b2a24; color: rgba(255, 255, 255, .85); }
.pt-ready-bar > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.pt-ready-tag { padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: .75rem; font-weight: 650; }
.pt-ready-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 220px; }
.pt-ready-cols section { display: grid; align-content: start; }
.pt-ready-cols section + section { border-left: 1px solid rgba(255, 255, 255, .12); }
.pt-ready-cols h4 { margin: 0; padding: 12px; background: #0f3b33; color: #fff; font-size: 1.05rem; text-align: center; }
.pt-ready-numbers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); list-style: none; margin: 0; padding: 14px; }
.pt-ready-numbers li { display: grid; place-items: center; min-height: 48px; padding: 4px 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .72); font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: center; }
.pt-ready-cols section + section .pt-ready-numbers li { color: var(--po-teal); }
.pt-ready-cols section + section .pt-ready-numbers li.is-newest { background: var(--po-teal); color: #000; box-shadow: 0 0 14px color-mix(in srgb, var(--po-teal) 35%, transparent); }
.pt-ready-empty { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 220px; text-align: center; }
.pt-ready-logo .po-icon { width: 44px; height: 44px; color: var(--po-teal); }
.pt-ready-empty strong { font-size: 1.3rem; }
.pt-ready-empty small { color: rgba(255, 255, 255, .6); }
@container (min-width: 700px) {
  .pt-ready-cols, .pt-ready-empty { min-height: 300px; }
  .pt-ready-cols h4 { font-size: 1.3rem; }
  .pt-ready-numbers { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .pt-ready-numbers li { min-height: 64px; font-size: 2rem; }
  .pt-ready-logo .po-icon { width: 64px; height: 64px; }
  .pt-ready-empty strong { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: no-preference) { .pt-ready-numbers li.is-newest { animation: pt-ready-glow 2.8s ease-in-out infinite; } }
@keyframes pt-ready-glow { 50% { box-shadow: 0 0 22px color-mix(in srgb, var(--po-teal) 55%, transparent); } }
@media (forced-colors: active) { .pt-ready-numbers li.is-newest { forced-color-adjust: none; outline: 2px solid CanvasText; } }
/* S854: tid/inaktuell-märke, tom kolumn, "+N till" och numren nedtonade när de inte är aktuella. */
.pt-ready-bar-end { display: inline-flex; align-items: center; gap: 8px; }
.pt-ready-tag[data-tone="danger"] { background: var(--po-danger); color: #fff; }
.pt-ready-none { margin: 0; padding: 18px 14px; color: rgba(255, 255, 255, .55); text-align: center; }
.pt-ready-more { margin: 0 14px 14px; color: rgba(255, 255, 255, .72); font-weight: 700; text-align: center; }
.pt-ready[data-stale="true"] .pt-ready-numbers li { opacity: .45; animation: none; }
.pt-ready-exit { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 99px; background: transparent; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.pt-ready-exit .po-icon { width: 16px; height: 16px; }
/* S854: helskärm – bara tavlan syns; resten av Partner (ordrar, kunder) döljs för den publika skärmen. */
html[data-pt-ready-screen] body * { visibility: hidden; }
html[data-pt-ready-screen] .pt-flow, html[data-pt-ready-screen] .pt-ready-wrap { container-type: normal; }
html[data-pt-ready-screen] .pt-ready, html[data-pt-ready-screen] .pt-ready * { visibility: visible; }
html[data-pt-ready-screen] .pt-ready { position: fixed; z-index: 2147483647; inset: 0; display: grid; grid-template-rows: auto 1fr; overflow: auto; border: 0; border-radius: 0; }
html[data-pt-ready-screen] .pt-ready-exit { display: inline-flex; }
html[data-pt-ready-screen] .pt-ready-bar { padding: 14px clamp(16px, 3vw, 40px); font-size: clamp(1rem, 1.6vw, 1.5rem); }
html[data-pt-ready-screen] .pt-ready-cols h4 { padding: 18px; font-size: clamp(1.4rem, 2.8vw, 2.6rem); }
html[data-pt-ready-screen] .pt-ready-numbers { gap: 14px; padding: clamp(14px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(220px, 40vw), 1fr)); }
html[data-pt-ready-screen] .pt-ready-numbers li { min-height: clamp(72px, 11vh, 140px); font-size: clamp(2rem, 4.6vw, 4.4rem); }
html[data-pt-ready-screen] .pt-ready-empty strong { font-size: clamp(1.8rem, 4vw, 3.6rem); }

/* PR860 S614d: P05 Kapacitetspuls, P07 Ändra tillagningstid, P08 Packkontroll och P14 Skiftöverlämning –
   två kolumner när verktygsytan är bred (surfplatta/desktop), staplat på telefon och vid stor text.
   Paritet med Partner iOS S614c. Bara lokala exempel, inget skickas. */
.pt-flow { grid-column: 1 / -1; display: grid; gap: 14px; container-type: inline-size; min-width: 0; }
.pt-flow-cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.pt-flow-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@container (min-width: 720px) { .pt-flow-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-flow-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-flow-card { display: grid; gap: 12px; align-content: start; }
.pt-flow-card[data-tone="danger"] { border-color: color-mix(in srgb, var(--po-danger) 45%, var(--po-line)); background: color-mix(in srgb, var(--po-danger-soft) 55%, var(--po-surface)); }
.pt-flow-card[data-tone="warning"] { border-color: color-mix(in srgb, var(--po-warning) 45%, var(--po-line)); }
.pt-flow-card[data-tone="success"] { border-color: color-mix(in srgb, var(--po-success) 45%, var(--po-line)); background: color-mix(in srgb, var(--po-teal-soft) 55%, var(--po-surface)); }
.pt-flow-card[data-locked="true"] { opacity: .58; }
.pt-flow-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pt-flow-card-head h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.pt-flow-card-head h3 .po-icon { width: 18px; height: 18px; color: var(--po-teal-ink, var(--po-teal)); }
.pt-flow-trailing { color: var(--po-muted); font-size: .82rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.pt-flow-tagrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pt-example-tag { display: inline-flex; padding: 2px 9px; border-radius: 99px; background: var(--po-teal-soft); color: var(--po-teal-ink, var(--po-teal)); font-size: .72rem; font-weight: 750; }
.pt-flow-kicker { display: block; color: var(--po-muted); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.pt-flow-stack { display: grid; gap: 10px; }
.pt-rows li > .pt-flow-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-flow-row-main > div { display: grid; gap: 2px; min-width: 0; }
.pt-flow-row-main small, .pt-flow-topic small, .pt-flow-part small, .pt-flow-seal small, .pt-flow-person small { color: var(--po-muted); font-size: .8rem; }
.pt-flow-row-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--po-teal-soft); color: var(--po-teal-ink, var(--po-teal)); }
.pt-flow-row-icon .po-icon { width: 16px; height: 16px; }
.pt-flow-fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pt-flow-fieldset:disabled { cursor: not-allowed; }

/* Option tiles (44px) and the single-choice reason list. */
.pt-flow-options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.pt-flow-options-list { grid-template-columns: minmax(0, 1fr); }
.pt-flow-option { --pt-accent: var(--po-teal-ink, var(--po-teal)); display: grid; place-content: center; gap: 1px; min-height: 48px; padding: 6px 10px; border: 1px solid var(--po-line); border-radius: 12px; background: var(--po-surface-2); color: var(--po-text); font: inherit; text-align: center; cursor: pointer; }
.pt-flow-option strong { font-size: .92rem; font-variant-numeric: tabular-nums; }
.pt-flow-option small { color: var(--po-muted); font-size: .72rem; }
.pt-flow-option[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-flow-option[data-tone="danger"] { --pt-accent: var(--po-danger); }
.pt-flow-option[aria-pressed="true"] { border-color: var(--pt-accent); background: var(--pt-accent); color: #fff; }
.pt-flow-option[aria-pressed="true"] small { color: rgba(255, 255, 255, .86); }
.pt-flow-option:focus-visible, .pt-flow-radio:focus-visible, .pt-flow-step:focus-visible, .pt-flow-part-main:focus-visible, .pt-flow-missing:focus-visible, .pt-flow-seal:focus-visible, .pt-flow-topic:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-flow-option:disabled, .pt-flow-radio:disabled, .pt-flow-step:disabled { cursor: not-allowed; opacity: .55; }
.pt-flow-radios { display: grid; gap: 2px; }
.pt-flow-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-flow-radio:hover { background: var(--po-surface-2); }
.pt-flow-radio-dot { flex: none; width: 20px; height: 20px; border: 2px solid var(--po-line-strong); border-radius: 50%; }
.pt-flow-radio[aria-checked="true"] .pt-flow-radio-dot { border-color: var(--po-teal); box-shadow: inset 0 0 0 4px var(--po-surface), inset 0 0 0 10px var(--po-teal); }
.pt-flow-field { display: grid; gap: 4px; }
.pt-flow-field label { font-size: .86rem; font-weight: 650; }
.pt-flow-field input, .pt-flow-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--po-line-strong); border-radius: 12px; background: var(--po-surface); color: var(--po-text); font: inherit; box-sizing: border-box; }
.pt-flow-field textarea { min-height: 112px; resize: vertical; }
.pt-flow-field input:focus-visible, .pt-flow-field textarea:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-flow-count { justify-self: end; color: var(--po-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.pt-flow-warn { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--po-warning); font-size: .82rem; font-weight: 650; }
.pt-flow-warn .po-icon { flex: none; width: 16px; height: 16px; }

/* P05 gauge: SVG half circle with Lugnt/Högt tryck/Fullt bands; empty dashed track without a source. */
.pt-gauge { display: grid; justify-items: center; gap: 6px; }
.pt-gauge svg { display: block; width: min(100%, 280px); height: auto; overflow: visible; }
.pt-gauge path { fill: none; stroke-width: 16; }
.pt-gauge-track { stroke: var(--po-surface-2); stroke-linecap: round; }
.pt-gauge-dash { stroke: var(--po-line-strong); stroke-width: 1 !important; stroke-dasharray: 4 4; }
.pt-gauge-band { opacity: .35; }
.pt-gauge-band[data-tone="success"], .pt-gauge-value[data-tone="success"] { stroke: var(--po-success); }
.pt-gauge-band[data-tone="warning"], .pt-gauge-value[data-tone="warning"] { stroke: var(--po-warning); }
.pt-gauge-band[data-tone="danger"], .pt-gauge-value[data-tone="danger"] { stroke: var(--po-danger); }
.pt-gauge-value { stroke-linecap: round; }
.pt-gauge-read { display: grid; justify-items: center; margin-top: -64px; min-height: 58px; }
.pt-gauge-read strong { font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-gauge-read span { color: var(--po-muted); font-weight: 700; }
.pt-gauge-read span[data-tone="success"] { color: var(--po-success); }
.pt-gauge-read span[data-tone="warning"] { color: var(--po-warning); }
.pt-gauge-read span[data-tone="danger"] { color: var(--po-danger); }
.pt-gauge-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--po-muted); font-size: .75rem; }
.pt-gauge-legend li { display: inline-flex; align-items: center; gap: 5px; }
.pt-gauge-legend li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--po-success); }
.pt-gauge-legend li[data-tone="warning"]::before { background: var(--po-warning); }
.pt-gauge-legend li[data-tone="danger"]::before { background: var(--po-danger); }
.pt-flow-metrics { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.pt-flow-stations { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pt-flow-station { display: grid; gap: 6px; }
.pt-flow-station > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pt-flow-station .pt-growth-bar { background: var(--po-surface-2); }
.pt-flow-station .pt-growth-bar[data-tone="success"] > span { background: var(--po-success); }
.pt-flow-station .pt-growth-bar[data-tone="warning"] > span { background: var(--po-warning); }
.pt-flow-station .pt-growth-bar[data-tone="danger"] > span { background: var(--po-danger); }
.pt-flow-audience { --pt-accent: var(--po-teal-ink, var(--po-teal)); display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; background: var(--po-surface-2); }
.pt-flow-audience[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-flow-audience[data-tone="danger"] { --pt-accent: var(--po-danger); }
.pt-flow-audience[data-tone="success"] { --pt-accent: var(--po-success); }
.pt-flow-audience[data-tone="info"] { --pt-accent: var(--po-info); }
.pt-flow-audience-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--pt-accent) 16%, transparent); color: var(--pt-accent); }
.pt-flow-audience-icon .po-icon { width: 16px; height: 16px; }
.pt-flow-audience > div { display: grid; gap: 3px; min-width: 0; }
.pt-flow-audience small { color: var(--po-muted); font-size: .8rem; }

/* P07 time compare and ±1 min stepper. */
.pt-flow-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.pt-flow-time { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--po-surface-2); }
.pt-flow-time[data-tone="warning"] { background: var(--po-warning-soft); }
.pt-flow-time strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pt-flow-time[data-tone="warning"] strong { color: var(--po-warning); }
.pt-flow-arrow .po-icon { width: 18px; height: 18px; color: var(--po-muted); }
.pt-flow-track { display: grid; gap: 4px; }
.pt-flow-track .pt-growth-bar { background: var(--po-surface-2); }
.pt-flow-track[data-tone="warning"] .pt-growth-bar > span { background: var(--po-warning); }
.pt-flow-track[data-tone="success"] .pt-growth-bar > span { background: var(--po-success); }
.pt-flow-track small { color: var(--po-muted); font-size: .75rem; }
.pt-flow-custom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pt-flow-stepper { display: inline-flex; align-items: center; gap: 8px; }
.pt-flow-stepper output { min-width: 80px; text-align: center; font-weight: 750; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pt-flow-step { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--po-surface-2); color: var(--po-teal-ink, var(--po-teal)); font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; }

/* P08 packing rows, seal, status ring and missing panel. */
.pt-flow-parts { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pt-flow-part { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 0; border-bottom: 1px solid var(--po-line); }
.pt-flow-part:last-child { border-bottom: 0; }
.pt-flow-part-main, .pt-flow-seal { display: flex; flex: 1 1 220px; align-items: flex-start; gap: 12px; min-height: 48px; padding: 8px 4px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-flow-part-main > span:last-child, .pt-flow-seal > span:last-child { display: grid; gap: 2px; min-width: 0; }
.pt-flow-part[data-mark="packed"] strong { color: var(--po-muted); text-decoration: line-through; }
.pt-flow-box { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border: 2px solid var(--po-teal); border-radius: 7px; color: #fff; }
.pt-flow-box .po-icon { width: 15px; height: 15px; }
.pt-flow-part[data-mark="packed"] .pt-flow-box, .pt-flow-seal[aria-checked="true"] .pt-flow-box { background: var(--po-teal); }
.pt-flow-part[data-mark="missing"] .pt-flow-box { border-color: var(--po-warning); color: var(--po-warning); }
.pt-flow-seal[aria-checked="true"] .pt-flow-box { border-color: var(--po-success); background: var(--po-success); }
.pt-flow-allergy { display: inline-flex; align-items: center; gap: 4px; color: var(--po-danger); font-size: .8rem; font-style: normal; font-weight: 750; }
.pt-flow-allergy .po-icon { width: 14px; height: 14px; }
.pt-flow-replaces { display: block; color: var(--po-info, var(--po-brand)); font-size: .8rem; font-style: normal; font-weight: 650; }
.pt-flow-missing { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--po-warning-soft); color: var(--po-warning); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.pt-flow-missing[aria-pressed="true"] { background: var(--po-warning); color: #fff; }
.pt-flow-statusline { display: flex; align-items: center; gap: 14px; }
.pt-flow-statusline > div { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.pt-flow-statusline p { margin: 0; color: var(--po-muted); font-size: .88rem; }
.pt-flow-ring { --pt-flow-color: var(--po-teal); display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(closest-side, var(--po-surface) 80%, transparent 82% 100%), conic-gradient(var(--pt-flow-color) calc(var(--pt-flow-progress, 0) * 1%), var(--po-surface-2) 0); color: var(--po-teal-ink, var(--po-teal)); }
.pt-flow-ring[data-tone="warning"] { --pt-flow-color: var(--po-warning); }
.pt-flow-ring[data-tone="success"] { --pt-flow-color: var(--po-success); color: var(--po-success); }
.pt-flow-ring .po-icon { width: 22px; height: 22px; }
.pt-flow-sheet { border-color: color-mix(in srgb, var(--po-warning) 45%, var(--po-line)); }

/* P14 people, topics and note. */
.pt-flow-person { display: flex; align-items: center; gap: 12px; }
.pt-flow-person > div { display: grid; gap: 2px; min-width: 0; }
.pt-flow-avatar { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--po-teal-soft); color: var(--po-teal-ink, var(--po-teal)); font-weight: 750; }
.pt-flow-topics { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-flow-topics li { border-bottom: 1px solid var(--po-line); }
.pt-flow-topics li:last-child { border-bottom: 0; }
.pt-flow-topic { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 4px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-flow-topic:disabled { cursor: not-allowed; opacity: .7; }
.pt-flow-topic-text { display: grid; flex: 1 1 160px; gap: 2px; min-width: 0; }
.pt-flow-tick { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border: 2px solid var(--po-line-strong); border-radius: 50%; color: #fff; }
.pt-flow-tick .po-icon { width: 14px; height: 14px; }
.pt-flow-topic[aria-checked="true"] .pt-flow-tick { border-color: var(--po-success); background: var(--po-success); }
.pt-flow-actions { display: grid; gap: 4px; }
.pt-flow-actions .po-button { min-height: 44px; }
.pt-flow .pt-kds-empty { min-height: 110px; }
@media (hover: hover) { .pt-flow-part-main:hover, .pt-flow-seal:hover, .pt-flow-topic:hover:not(:disabled) { background: var(--po-surface-2); } }
@media (max-width: 420px) { .pt-flow-compare { grid-template-columns: minmax(0, 1fr); } .pt-flow-arrow { justify-self: center; transform: rotate(90deg); } }
@media (prefers-reduced-motion: no-preference) {
  .pt-gauge-value { transition: stroke-dasharray .5s ease-in-out; }
  .pt-flow-option, .pt-flow-missing, .pt-flow-box, .pt-flow-tick, .pt-flow-card, .pt-flow-radio-dot { transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease; }
  .pt-flow-sheet, .pt-flow-card[data-tone] { animation: pt-flow-in .24s ease-out both; }
}
@keyframes pt-flow-in { from { opacity: 0; transform: translateY(4px); } }
@media (forced-colors: active) {
  .pt-gauge path, .pt-flow-ring, .pt-flow-box, .pt-flow-tick, .pt-flow-option[aria-pressed="true"] { forced-color-adjust: none; }
  .pt-flow-option[aria-pressed="true"], .pt-flow-radio[aria-checked="true"] { outline: 2px solid CanvasText; }
}

/* PR860 S614f: P03 Tillagningscoach och P20 Öppningskontroll – paritet med Partner iOS S614e.
   Samma två kolumner från 720px, staplat smalt och vid stor text, mörkt via tokens. */
.pt-coach-time strong { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.pt-coach-time strong small { color: var(--po-muted); font-size: .85rem; font-weight: 650; }
.pt-flow-time[data-tone="info"] { background: color-mix(in srgb, var(--po-info) 14%, var(--po-surface)); }
.pt-flow-time[data-tone="info"] strong { color: var(--po-info, var(--po-teal-ink)); }
.pt-coach-bars > span { display: grid; gap: 8px; }
.pt-coach-barrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .82rem; }
.pt-coach-barrow > span:first-child { color: var(--po-muted); font-weight: 650; }
.pt-coach-barrow strong { font-variant-numeric: tabular-nums; }
.pt-coach-bars .pt-growth-bar, .pt-coach-reason .pt-growth-bar { background: var(--po-surface-2); }
.pt-coach-bars .pt-growth-bar[data-tone="neutral"] > span { background: var(--po-muted); }
.pt-coach-bars .pt-growth-bar[data-tone="info"] > span, .pt-coach-reason .pt-growth-bar[data-tone="info"] > span { background: var(--po-info, var(--po-teal)); }
.pt-coach-bars .pt-growth-bar[data-tone="warning"] > span, .pt-coach-reason .pt-growth-bar[data-tone="warning"] > span { background: var(--po-warning); }
.pt-coach-gap { padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--po-warning) 50%, var(--po-line)); border-radius: 16px; background: var(--po-warning-soft); }
.pt-coach-gap > span { display: grid; gap: 3px; }
.pt-coach-gap strong { color: var(--po-text); }
.pt-coach-gap small { color: var(--po-muted); font-weight: 500; }
.pt-coach-reasons, .pt-open-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-coach-reason { display: grid; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--po-line); }
.pt-coach-reason .pt-flow-row-main > .pt-value { margin-left: auto; font-variant-numeric: tabular-nums; }
.pt-coach-reason .pt-growth-bar { margin-left: 44px; }
.pt-coach-chart { display: grid; gap: 6px; margin: 0; }
.pt-coach-plot { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: end; gap: 6px; height: 104px; }
.pt-coach-bar { height: var(--pt-coach-h); min-height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--po-teal) 55%, transparent); }
.pt-coach-chart[data-tone="info"] .pt-coach-bar[data-over="true"] { background: var(--po-info, var(--po-teal)); }
.pt-coach-chart[data-tone="warning"] .pt-coach-bar[data-over="true"] { background: var(--po-warning); }
.pt-coach-line { position: absolute; inset: auto 0 var(--pt-coach-line) 0; z-index: 1; border-top: 1px dashed color-mix(in srgb, var(--po-text) 60%, transparent); pointer-events: none; }
.pt-coach-chart figcaption { display: flex; justify-content: space-between; gap: 8px; color: var(--po-muted); font-size: .72rem; }
.pt-coach-legend::before { content: ""; display: inline-block; width: 14px; margin-right: 6px; vertical-align: middle; border-top: 1px dashed currentColor; }

.pt-open-summary .pt-flow-statusline { align-items: flex-start; }
.pt-open-summary h3 { margin: 2px 0 0; font-size: 1.15rem; }
.pt-open-summary small { color: var(--po-muted); font-size: .78rem; }
.pt-open-summary[data-verdict="blocked"] { border-color: color-mix(in srgb, var(--po-danger) 40%, var(--po-line)); }
.pt-open-summary[data-verdict="ready"] { border-color: color-mix(in srgb, var(--po-success) 45%, var(--po-line)); }
.pt-open-summary[data-verdict="stale"] { border-color: color-mix(in srgb, var(--po-warning) 45%, var(--po-line)); }
.pt-open-pills { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pt-open-ring { position: relative; width: 76px; height: 76px; align-content: center; gap: 0; color: var(--po-text); }
.pt-open-ring strong { font-size: 1.35rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pt-open-ring small { color: var(--po-muted); font-size: .68rem; }
.pt-flow-ring[data-tone="danger"] { --pt-flow-color: var(--po-danger); }
.pt-flow-ring[data-tone="info"] { --pt-flow-color: var(--po-info, var(--po-teal)); }
.pt-flow-ring[data-tone="neutral"] { --pt-flow-color: var(--po-line-strong); }
.pt-open-step { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--po-line); }
.pt-coach-reason:last-child, .pt-open-step:last-child { border-bottom: 0; }
.pt-open-step > .pt-flow-row-main { display: flex; flex: 1 1 200px; align-items: center; gap: 10px; min-width: 0; }
.pt-open-step[data-status="failed"] .pt-flow-row-main small { color: var(--po-danger); font-weight: 650; }
.pt-open-step[data-status="waiting"] .pt-flow-row-icon { background: var(--po-surface-2); color: var(--po-muted); }
/* S850 P15: the order numbers an alert concerns – muted and tabular, never coloured as the alert. */
.pt-open-step[data-status] .pt-flow-row-main .pt-radar-codes { display: block; margin-top: 2px; color: var(--po-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.pt-open-state { display: inline-flex; flex: none; align-items: center; gap: 6px; }
.pt-open-mark { display: grid; place-items: center; width: 22px; height: 22px; border: 2px dashed var(--po-line-strong); border-radius: 50%; color: #fff; }
.pt-open-mark .po-icon { width: 13px; height: 13px; }
.pt-open-mark[data-tone="success"] { border: 0; background: var(--po-success); }
.pt-open-mark[data-tone="warning"] { border: 0; background: var(--po-warning); }
.pt-open-mark[data-tone="danger"] { border: 0; border-radius: 6px; background: var(--po-danger); }
.pt-open-spin { width: 18px; height: 18px; border: 2px solid var(--po-surface-2); border-top-color: var(--po-info, var(--po-teal)); border-radius: 50%; }
.pt-open-fix { flex-basis: 100%; padding-left: 44px; color: var(--po-teal-ink, var(--po-teal)); font-size: .8rem; font-weight: 700; }
.pt-open-step > .po-button.pt-open-fix { flex: none; flex-basis: auto; margin-left: 44px; padding-inline: 14px; }
.pt-open-step > .pt-open-ask { color: var(--po-muted); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .pt-coach-bar { animation: pt-coach-grow .6s ease-out both; transform-origin: bottom; }
  .pt-flow-ring { transition: background .4s ease; }
  .pt-open-spin { animation: pt-open-spin 1s linear infinite; }
  .pt-open-ring[data-running="true"]::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; border-top-color: var(--po-info, var(--po-teal)); border-radius: 50%; animation: pt-open-spin 1.6s linear infinite; }
}
@keyframes pt-coach-grow { from { transform: scaleY(.04); } }
@keyframes pt-open-spin { to { transform: rotate(360deg); } }
@media (forced-colors: active) {
  .pt-coach-bar, .pt-coach-line, .pt-open-mark, .pt-open-ring { forced-color-adjust: none; }
}

/* PR860 S614h: P01 Förhandsvisa i Bistam, P06 Publiceringskontroll och P10 Menyhistorik – paritet med
   Partner iOS S614g. Kundram telefon/surfplatta, två kolumner från 720px, staplat smalt, mörkt via tokens. */
.pt-catalog-pickers { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pt-catalog-note { color: var(--po-muted); }
.pt-catalog-note strong { color: var(--po-text); }
.pt-catalog-note > span, .pt-catalog-sheet-lead { display: grid; gap: 3px; }
.pt-catalog-note small { font-weight: 500; }
.pt-catalog-sheet-lead { margin: 0; }
.pt-catalog-sheet-lead strong { font-size: 1.1rem; }
.pt-catalog-sheet-lead small { color: var(--po-muted); font-size: .88rem; }

.pt-cust { display: grid; gap: 8px; margin: 0; min-width: 0; }
.pt-cust-screen { display: grid; gap: 12px; justify-self: center; width: 100%; max-width: 360px; padding: 14px; border: 7px solid color-mix(in srgb, var(--po-text) 85%, transparent); border-radius: 34px; background: var(--po-surface); box-sizing: border-box; }
.pt-cust[data-device="pad"] .pt-cust-screen { max-width: 620px; border-width: 9px; border-radius: 24px; }
.pt-cust figcaption { color: var(--po-muted); font-size: .8rem; text-align: center; }
.pt-cust-hero { position: relative; display: grid; place-items: center; height: 110px; border-radius: 16px; background: linear-gradient(135deg, var(--po-teal-soft), var(--po-surface-2)); color: color-mix(in srgb, var(--po-teal-ink, var(--po-teal)) 55%, transparent); }
.pt-cust[data-device="pad"] .pt-cust-hero { height: 150px; }
.pt-cust-hero .po-icon { width: 34px; height: 34px; }
.pt-cust-draft { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 99px; background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); font-size: .7rem; font-weight: 750; }
.pt-cust-head { display: grid; gap: 4px; justify-items: start; }
.pt-cust-head > strong { font-size: 1.2rem; }
.pt-cust-head small { color: var(--po-muted); font-size: .78rem; }
.pt-cust-star { color: var(--po-warning); }
.pt-cust-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-cust-chip { min-height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--po-surface-2); color: var(--po-text); font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; }
.pt-cust-chip[aria-pressed="true"] { background: var(--po-text); color: var(--po-surface); }
.pt-cust-list { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-cust-list li + li { border-top: 1px solid var(--po-line); }
.pt-cust[data-device="pad"] .pt-cust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-cust[data-device="pad"] .pt-cust-list li + li { border-top: 0; }
.pt-cust-product { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 44px; padding: 10px 0; border: 0; border-radius: 12px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; }
.pt-cust[data-device="pad"] .pt-cust-product { height: 100%; padding: 10px; background: var(--po-bg, var(--po-surface-2)); }
.pt-cust-product[data-hidden="true"] { opacity: .55; cursor: default; }
.pt-cust-product:focus-visible, .pt-cust-chip:focus-visible, .pt-hist-main:focus-visible, .pt-collapse:focus-visible, .pt-link-button:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-cust-text { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.pt-cust-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pt-cust-text small { display: -webkit-box; overflow: hidden; color: var(--po-muted); font-size: .78rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pt-cust-badge { padding: 1px 6px; border-radius: 99px; background: var(--po-surface-2); font-size: .66rem; font-style: normal; font-weight: 750; }
.pt-cust-badge[data-tone="success"] { background: var(--po-teal-soft); color: var(--po-success); }
.pt-cust-badge[data-tone="info"] { background: color-mix(in srgb, var(--po-info) 14%, var(--po-surface)); color: var(--po-info); }
.pt-cust-badge[data-tone="danger"] { background: var(--po-danger-soft); color: var(--po-danger); }
.pt-cust-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.pt-cust-price s, .pt-diff s { color: var(--po-muted); font-size: .8rem; }
.pt-cust-missing { color: var(--po-danger); font-size: .8rem; }
.pt-cust-photo { display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--po-surface-2); color: var(--po-muted); }
.pt-cust[data-device="pad"] .pt-cust-photo { width: 56px; height: 56px; }
.pt-cust-photo .po-icon { width: 20px; height: 20px; }
.pt-cust-none { display: grid; place-items: center; min-height: 64px; margin: 0; color: var(--po-muted); font-size: .8rem; }
.pt-cust-cart { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 14px; background: color-mix(in srgb, var(--po-text) 85%, transparent); color: var(--po-surface); font-size: .9rem; font-weight: 650; }
.pt-cust-sheet-photo { display: grid; place-items: center; height: 150px; border-radius: 16px; background: var(--po-surface-2); color: var(--po-muted); }
.pt-cust-sheet-photo .po-icon { width: 30px; height: 30px; }
/* S837: connected Kundvy – real sections, product photos, sold-out rows and the product sheet total. */
.pt-cust-section { display: grid; gap: 4px; }
.pt-cust-section h4 { margin: 4px 0 0; font-size: .95rem; }
.pt-cust-photo { overflow: hidden; }
.pt-cust-photo img, .pt-cust-sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.pt-cust-sheet-photo { overflow: hidden; }
.pt-cust-product[data-sold-out="true"] { opacity: .55; cursor: default; }
.pt-flow-radio small { margin-left: auto; color: var(--po-muted); font-variant-numeric: tabular-nums; }
.pt-cust-sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pt-cust-sheet-text { margin: 0; color: var(--po-muted); }
.pt-cust-sheet-price { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.pt-cust-extra[aria-checked="true"] .pt-flow-box { background: var(--po-teal); }
.pt-cust-extra:disabled { opacity: .5; cursor: not-allowed; }
.pt-catalog-sheet { border-color: color-mix(in srgb, var(--po-teal) 40%, var(--po-line)); }

.pt-diff { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: .82rem; font-variant-numeric: tabular-nums; }
.pt-diff > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pt-diff-arrow { color: var(--po-muted); font-weight: 750; }
.pt-changes, .pt-issues, .pt-hist-list { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-change { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--po-line); }
.pt-change:last-child, .pt-issue:last-child { border-bottom: 0; }
.pt-change > div { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.pt-change small { color: var(--po-muted); font-size: .78rem; }
.pt-change-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--po-surface-2); color: var(--po-muted); }
.pt-change-icon .po-icon { width: 16px; height: 16px; }
.pt-change-icon[data-tone="success"] { background: var(--po-teal-soft); color: var(--po-success); }
.pt-change-icon[data-tone="info"] { background: color-mix(in srgb, var(--po-info) 14%, var(--po-surface)); color: var(--po-info); }
.pt-change-icon[data-tone="warning"] { background: var(--po-warning-soft); color: var(--po-warning); }
.pt-change-icon[data-tone="danger"] { background: var(--po-danger-soft); color: var(--po-danger); }

.pt-publish-summary h3 { margin: 2px 0 0; font-size: 1.15rem; }
.pt-publish-summary > small { color: var(--po-muted); font-size: .78rem; }
.pt-publish-mark { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--po-surface-2); color: var(--po-muted); }
.pt-publish-mark .po-icon { width: 26px; height: 26px; }
.pt-publish-mark[data-tone="success"] { background: var(--po-teal-soft); color: var(--po-success); }
.pt-publish-mark[data-tone="warning"] { background: var(--po-warning-soft); color: var(--po-warning); }
.pt-publish-mark[data-tone="danger"] { background: var(--po-danger-soft); color: var(--po-danger); }
.pt-publish-mark[data-tone="info"] { background: color-mix(in srgb, var(--po-info) 14%, var(--po-surface)); color: var(--po-info); }
.pt-flow-metrics .po-metric[data-tone="danger"] strong { color: var(--po-danger); }
.pt-flow-metrics .po-metric[data-tone="warning"] strong { color: var(--po-warning); }
.pt-issue { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--po-line); }
.pt-issue .pt-flow-row-main { display: flex; align-items: flex-start; gap: 12px; }
.pt-issue .pt-flow-row-main > div { flex: 1 1 auto; }
.pt-issue-product { font-size: .82rem; font-weight: 650; }
.pt-issue-fix { justify-self: end; }
.pt-issue-fix:disabled { cursor: not-allowed; opacity: .75; }
.pt-collapse { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 4px; border: 0; border-radius: 10px; background: none; color: var(--po-teal-ink, var(--po-teal)); font: inherit; font-weight: 700; cursor: pointer; }
.pt-collapse-chevron .po-icon { width: 16px; height: 16px; transform: rotate(90deg); }
.pt-collapse[aria-expanded="true"] .pt-collapse-chevron .po-icon { transform: rotate(-90deg); }
.pt-link-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: none; color: var(--po-teal-ink, var(--po-teal)); font: inherit; font-weight: 700; cursor: pointer; }
.pt-link-button .po-icon { width: 16px; height: 16px; }
.pt-link-button:disabled { cursor: not-allowed; opacity: .5; }
.pt-channel[data-status="waiting"] .pt-flow-row-icon { background: var(--po-surface-2); color: var(--po-muted); }

.pt-chips-wrap { flex-wrap: wrap; overflow: visible; }
.pt-hist-day { margin: 6px 0 0; color: var(--po-muted); font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.pt-hist-entry { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 12px; padding-bottom: 4px; }
.pt-hist-entry[data-last="true"] { padding-bottom: 0; }
.pt-hist-dot { width: 12px; height: 12px; margin-top: 14px; border-radius: 50%; background: color-mix(in srgb, var(--po-teal-ink, var(--po-teal)) 60%, transparent); }
.pt-hist-entry[data-published="false"] .pt-hist-dot { background: var(--po-line-strong); }
.pt-hist-entry:not([data-last="true"])::before { content: ""; position: absolute; top: 30px; bottom: -10px; left: 5px; width: 2px; background: var(--po-line); }
.pt-hist-entry:has(.pt-hist-main[aria-pressed="true"]) .pt-hist-dot { background: var(--po-teal); box-shadow: 0 0 0 3px var(--po-teal-soft); }
.pt-hist-main { display: grid; gap: 4px; justify-items: start; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 12px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-hist-main[aria-pressed="true"] { background: color-mix(in srgb, var(--po-teal-soft) 70%, transparent); }
/* S841: a connected history row is information, not a control. */
.pt-hist-static { cursor: default; }
.pt-hist-text { color: var(--po-muted); font-size: .85rem; }
.pt-hist-loading[role="alert"] { display: grid; justify-items: center; gap: 8px; }
.pt-hist-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pt-hist-field { display: inline-flex; align-items: center; gap: 4px; color: var(--po-teal-ink, var(--po-teal)); font-size: .78rem; font-weight: 700; }
.pt-hist-field .po-icon { width: 14px; height: 14px; }
.pt-hist-when { color: var(--po-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.pt-hist-more { justify-self: center; }
.pt-hist-loading > span { display: grid; gap: 8px; }
.pt-hist-loading small, .pt-hist-end { color: var(--po-muted); font-size: .8rem; }
.pt-hist-end { margin: 0; text-align: center; }
.pt-hist-skel { display: flex; align-items: center; gap: 12px; }
.pt-hist-skel > span:last-child { display: grid; gap: 6px; }
.pt-hist-bone { display: block; border-radius: 6px; background: var(--po-surface-2); }
@media (hover: hover) { .pt-cust-product:not([data-hidden="true"]):hover, .pt-hist-main:not(.pt-hist-static):hover, .pt-collapse:hover, .pt-link-button:hover:not(:disabled) { background: var(--po-surface-2); } }
@media (prefers-reduced-motion: no-preference) {
  .pt-cust-screen { transition: max-width .2s ease-in-out, border-radius .2s ease-in-out, border-width .2s ease-in-out; }
  .pt-cust-chip, .pt-hist-main, .pt-hist-dot, .pt-collapse-chevron .po-icon { transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
  .pt-hist-bone { background: linear-gradient(90deg, var(--po-surface-2), var(--po-surface-3, var(--po-line)), var(--po-surface-2)); background-size: 220% 100%; animation: po-shimmer 1.2s infinite linear; }
}
@media (forced-colors: active) {
  .pt-cust-chip[aria-pressed="true"], .pt-hist-main[aria-pressed="true"] { outline: 2px solid CanvasText; }
  .pt-hist-dot, .pt-change-icon, .pt-publish-mark { forced-color-adjust: none; }
}

/* PR860 S614j: P11 Servicekalender, P16 Menystudio – språk och P22 Massredigera katalog – paritet med
   Partner iOS S614i. Månadsrutnät 7 kolumner med 44px celler, två kolumner från 720px, staplat smalt,
   mörkt via tokens, rörelse bara utan reducerad rörelse. */
.pt-cal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-cal-nav { display: flex; gap: 6px; }
.pt-cal-nav-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--po-surface-2); color: var(--po-text); cursor: pointer; }
.pt-cal-nav-button[data-step="-1"] .po-icon { transform: rotate(180deg); }
.pt-cal-nav-button:disabled { color: var(--po-muted); opacity: .5; cursor: not-allowed; }
.pt-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pt-cal-weekday { color: var(--po-muted); font-size: .7rem; font-weight: 750; text-align: center; }
.pt-cal-day { display: grid; place-items: center; align-content: center; gap: 3px; min-width: 0; min-height: 44px; padding: 4px 0; border: 1px solid transparent; border-radius: 10px; background: var(--po-surface-2); color: var(--po-text); font: inherit; font-size: .82rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.pt-cal-day[data-kind="hours"] { background: var(--po-warning-soft); }
.pt-cal-day[data-kind="closed"] { background: var(--po-danger-soft); }
.pt-cal-day[data-kind="closure"] { background: color-mix(in srgb, var(--po-danger) 8%, var(--po-surface-2)); }
.pt-cal-day[data-kind="past"] { background: none; color: var(--po-muted); opacity: .55; cursor: default; }
.pt-cal-day[aria-current="date"]:not([aria-pressed="true"]) { border-color: var(--po-teal-ink, var(--po-teal)); font-weight: 750; }
.pt-cal-lock { display: inline-grid; place-items: center; width: 8px; height: 8px; color: var(--po-danger); }
.pt-cal-lock .po-icon { width: 8px; height: 8px; }
.pt-cal-legend .pt-cal-lock, .pt-cal-legend .pt-cal-lock .po-icon { width: 12px; height: 12px; }
.pt-cal-day[aria-pressed="true"] .pt-cal-lock { color: var(--po-surface); }
.pt-cal-day[aria-pressed="true"] { border-color: transparent; background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); font-weight: 750; }
.pt-cal-marks { display: flex; gap: 2px; height: 6px; }
.pt-cal-dot, .pt-cal-ring { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; }
.pt-cal-dot[data-tone="neutral"] { background: var(--po-surface-2); box-shadow: inset 0 0 0 1px var(--po-line-strong); }
.pt-cal-dot[data-tone="warning"] { background: var(--po-warning); }
.pt-cal-dot[data-tone="danger"] { background: var(--po-danger); }
.pt-cal-dot[data-tone="info"] { background: var(--po-info); }
.pt-cal-ring { box-shadow: inset 0 0 0 1.5px var(--po-warning); }
.pt-cal-day[aria-pressed="true"] .pt-cal-dot { background: var(--po-surface); }
.pt-cal-day[aria-pressed="true"] .pt-cal-ring { box-shadow: inset 0 0 0 1.5px var(--po-surface); }
.pt-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; color: var(--po-muted); font-size: .76rem; list-style: none; }
.pt-cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pt-cal-legend .pt-cal-dot, .pt-cal-legend .pt-cal-ring { width: 10px; height: 10px; }
.pt-cal-preorders { border-top: 1px solid var(--po-line); }
.pt-cal-agenda, .pt-lang-queue, .pt-bulk-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pt-cal-agenda-row, .pt-lang-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-cal-agenda-row[aria-pressed="true"], .pt-lang-item[aria-pressed="true"] { background: color-mix(in srgb, var(--po-teal-soft) 70%, transparent); }
.pt-cal-date { display: grid; flex: none; place-items: center; align-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--po-surface-2); line-height: 1.05; }
.pt-cal-date strong { font-variant-numeric: tabular-nums; }
.pt-cal-date small { font-size: .66rem; }
.pt-cal-date[data-tone="warning"] { background: var(--po-warning-soft); color: var(--po-warning); }
.pt-cal-date[data-tone="danger"] { background: var(--po-danger-soft); color: var(--po-danger); }
.pt-cal-date[data-tone="info"] { background: color-mix(in srgb, var(--po-info) 14%, var(--po-surface)); color: var(--po-info); }
.pt-cal-agenda-text, .pt-lang-item > span:first-child, .pt-bulk-text { display: grid; flex: 1 1 auto; gap: 2px; min-width: 0; }
.pt-cal-agenda-text small, .pt-lang-item small, .pt-bulk-text small { color: var(--po-muted); font-size: .78rem; }
.pt-cal-closed { padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--po-danger) 45%, var(--po-line)); border-radius: 16px; background: var(--po-danger-soft); color: var(--po-danger); }
.pt-cal-closed > span { display: grid; gap: 3px; }
.pt-cal-closed strong { color: var(--po-text); }
.pt-cal-closed small { color: var(--po-muted); font-weight: 500; }
.pt-cal-error { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--po-danger); font-size: .82rem; font-weight: 650; }
.pt-cal-error .po-icon { width: 16px; height: 16px; }
.pt-cal-channel[aria-checked="true"] .pt-flow-box, .pt-bulk-product[aria-checked="true"] .pt-flow-box, .pt-lang-check[aria-checked="true"] .pt-flow-box { background: var(--po-teal); }
.pt-cal-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 4px 0; border: 0; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-cal-switch > span:first-child { display: grid; gap: 2px; }
.pt-cal-switch small { color: var(--po-muted); font-size: .78rem; }
.pt-cal-switch-track { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--po-surface-3, var(--po-line-strong)); }
.pt-cal-switch-track > span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--po-surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.pt-cal-switch[aria-checked="true"] .pt-cal-switch-track { background: var(--po-teal); }
.pt-cal-switch[aria-checked="true"] .pt-cal-switch-track > span { transform: translateX(18px); }

.pt-lang-list { display: grid; gap: 4px; }
.pt-lang-row { display: grid; gap: 6px; width: 100%; min-height: 44px; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-lang-head { display: flex; align-items: center; gap: 8px; }
.pt-lang-head strong { flex: 1 1 auto; }
.pt-lang-head small { color: var(--po-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.pt-lang-row[aria-checked="true"] .pt-flow-radio-dot { border-color: var(--po-teal); box-shadow: inset 0 0 0 4px var(--po-surface), inset 0 0 0 10px var(--po-teal); }
.pt-lang-compare { display: grid; gap: 6px; }
.pt-lang-pair { display: grid; gap: 8px; }
@container (min-width: 520px) { .pt-lang-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pt-lang-box { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: var(--po-surface-2); }
.pt-lang-box[data-tone="brand"] { background: var(--po-teal-soft); }
.pt-lang-box small { color: var(--po-muted); font-size: .66rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.pt-lang-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pt-lang-allergen { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border-radius: 99px; background: var(--po-surface-2); font-size: .8rem; font-weight: 650; }
.pt-lang-allergen .po-icon { width: 13px; height: 13px; }
.pt-lang-allergen[data-new="true"] { background: var(--po-danger-soft); color: var(--po-danger); }

.pt-stepstrip { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.pt-stepstrip-step { display: inline-flex; flex: 1 1 0; align-items: center; gap: 6px; min-width: 96px; padding: 6px 10px; border-radius: 99px; background: var(--po-surface-2); color: var(--po-muted); font-size: .8rem; font-weight: 650; }
.pt-stepstrip-dot { display: grid; flex: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--po-surface); font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.pt-stepstrip-dot .po-icon { width: 13px; height: 13px; }
.pt-stepstrip-step[data-state="done"] { color: var(--po-teal-ink, var(--po-teal)); }
.pt-stepstrip-step[data-state="done"] .pt-stepstrip-dot { background: var(--po-teal); color: var(--po-surface); }
.pt-stepstrip-step[data-state="current"] { background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); }
.pt-stepstrip-step[data-state="current"] .pt-stepstrip-dot { color: var(--po-teal-ink, var(--po-teal)); }
.pt-bulk-all { justify-content: flex-start; padding: 0 4px; }
.pt-bulk-product { width: 100%; }
.pt-bulk-thumb { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--po-surface-2); color: var(--po-muted); }
.pt-bulk-thumb .po-icon { width: 16px; height: 16px; }
.pt-bulk-edit-list > li { padding: 10px 4px; border-bottom: 1px solid var(--po-line); }
.pt-bulk-edit-row { display: grid; gap: 8px; }
@container (min-width: 560px) { .pt-bulk-edit-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, .6fr) minmax(0, 1.4fr); align-items: start; } .pt-bulk-edit-row > .pt-scan-actions { grid-column: 1 / -1; } }
.pt-cal-day:focus-visible, .pt-cal-nav-button:focus-visible, .pt-cal-agenda-row:focus-visible, .pt-cal-switch:focus-visible, .pt-lang-row:focus-visible, .pt-lang-item:focus-visible, .pt-bulk-conflict:focus-visible { outline: none; box-shadow: var(--po-focus); }
@media (hover: hover) { .pt-cal-agenda-row:hover, .pt-lang-item:hover, .pt-lang-row:hover { background: var(--po-surface-2); } }
@media (prefers-reduced-motion: no-preference) {
  .pt-cal-day, .pt-cal-agenda-row, .pt-lang-item, .pt-bulk-conflict, .pt-stepstrip-step { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
  .pt-cal-switch-track, .pt-cal-switch-track > span { transition: background-color .2s ease, transform .2s ease; }
}
@media (forced-colors: active) {
  .pt-cal-day[aria-pressed="true"], .pt-cal-agenda-row[aria-pressed="true"], .pt-lang-item[aria-pressed="true"], .pt-bulk-conflict[aria-pressed="true"], .pt-stepstrip-step[data-state="current"] { outline: 2px solid CanvasText; }
  .pt-cal-dot, .pt-cal-ring, .pt-cal-date, .pt-stepstrip-dot { forced-color-adjust: none; }
}

/* PR860 S614l: P23 Butiksexperiment, P29 Produktpass och sista chansen och P31 Stora beställningar, vikt
   och bord – paritet med Partner iOS S614k. Mätare med gränsmarkör, kundram, produktbrickor, bäst före-hylla
   och bordsrutnät; två kolumner från 720px, staplat smalt, mörkt via tokens, rörelse bara utan reducerad rörelse. */
.pt-meter { display: grid; gap: 6px; }
.pt-meter-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; font-size: .8rem; }
.pt-meter-head span { color: var(--po-muted); font-weight: 650; }
.pt-meter-head strong { font-variant-numeric: tabular-nums; }
.pt-meter-bar { position: relative; display: block; height: 10px; border-radius: 99px; background: var(--po-surface-2); }
.pt-meter-fill { display: block; height: 100%; border-radius: inherit; background: var(--po-teal); }
.pt-meter[data-tone="info"] .pt-meter-fill { background: var(--po-info); }
.pt-meter[data-tone="success"] .pt-meter-fill { background: var(--po-success); }
.pt-meter[data-tone="warning"] .pt-meter-fill { background: var(--po-warning); }
.pt-meter[data-tone="danger"] .pt-meter-fill { background: var(--po-danger); }
.pt-meter[data-tone="neutral"] .pt-meter-fill { background: var(--po-muted); }
.pt-meter-mark { position: absolute; top: -2px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--po-text); }

.pt-offer-phone { display: grid; gap: 8px; margin: 0; min-width: 0; }
.pt-offer-phone figcaption { display: flex; align-items: center; gap: 6px; color: var(--po-muted); font-size: .78rem; font-weight: 650; }
.pt-offer-phone figcaption .po-icon { width: 14px; height: 14px; }
.pt-offer-screen { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--po-line); border-radius: 18px; background: var(--po-bg, var(--po-surface-2)); }
.pt-offer-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.pt-offer-tiles[data-single="true"] { grid-template-columns: minmax(0, 220px); }
.pt-offer-tile { display: grid; gap: 4px; align-content: start; min-width: 0; }
.pt-offer-tile > strong { font-size: .84rem; overflow-wrap: anywhere; }
.pt-offer-tile small { color: var(--po-muted); font-size: .72rem; }
.pt-offer-thumb { position: relative; display: grid; place-items: center; height: 78px; border-radius: 12px; background: var(--po-surface-2); color: var(--po-muted); }
.pt-offer-tile[data-compact="true"] .pt-offer-thumb { height: 56px; }
.pt-offer-thumb > .po-icon { width: 24px; height: 24px; }
.pt-offer-badge { position: absolute; top: 6px; left: 6px; padding: 3px 7px; border-radius: 99px; background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); font-size: .66rem; font-weight: 750; }
.pt-offer-badge[data-tone="warning"] { background: var(--po-warning); color: #1d1300; }
.pt-offer-price { display: flex; align-items: baseline; gap: 6px; font-size: .82rem; font-variant-numeric: tabular-nums; }
.pt-offer-price s { color: var(--po-muted); font-size: .74rem; }
.pt-offer-order { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: pt-offer; }
.pt-offer-order li { display: flex; align-items: center; gap: 10px; font-size: .84rem; counter-increment: pt-offer; }
.pt-offer-order li::before { content: counter(pt-offer); flex: none; width: 18px; color: var(--po-muted); font-weight: 750; font-variant-numeric: tabular-nums; text-align: center; }
.pt-offer-placeholder { display: grid; place-items: center; min-height: 60px; margin: 0; color: var(--po-muted); font-size: .82rem; text-align: center; }
.pt-flow-card[data-best="true"] { border-color: color-mix(in srgb, var(--po-success) 60%, var(--po-line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--po-success) 40%, transparent); }
.pt-offer-outcome { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pt-offer-outcome h3 { margin: 0; font-size: 1.15rem; }
.pt-offer-outcome p { margin: 0; color: var(--po-muted); }
.pt-offer-next { border-color: var(--po-teal); background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); }
.pt-offer-shelf { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pt-offer-shelf li + li { border-top: 1px solid var(--po-line); }
.pt-offer-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; width: 100%; min-height: 44px; padding: 10px 6px; border: 0; border-radius: 12px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-offer-row .pt-bulk-text { flex: 1 1 180px; }
.pt-offer-row-pills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.pt-offer-qr { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 16px; background: var(--po-surface-2); color: var(--po-muted); }
.pt-offer-qr .po-icon { width: 72px; height: 72px; }

.pt-tables { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.pt-table { display: grid; gap: 2px; place-items: center; align-content: center; min-height: 56px; padding: 6px; border: 1px solid transparent; border-radius: 12px; background: var(--po-surface-2); color: var(--po-text); font: inherit; cursor: pointer; }
.pt-table strong { font-size: .86rem; font-variant-numeric: tabular-nums; }
.pt-table small { color: var(--po-muted); font-size: .72rem; }
.pt-table[data-tone="info"] { background: color-mix(in srgb, var(--po-info) 14%, var(--po-surface)); }
.pt-table[data-tone="warning"] { background: var(--po-warning-soft); }
.pt-table[data-tone="brand"], .pt-table[data-tone="success"] { background: var(--po-teal-soft); }
.pt-table[data-missing="true"] { border-color: color-mix(in srgb, var(--po-warning) 60%, transparent); }
.pt-table[data-missing="true"] small { color: var(--po-warning); }
.pt-table[aria-pressed="true"] { border-color: transparent; background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); }
.pt-table[aria-pressed="true"] small { color: color-mix(in srgb, var(--po-surface) 85%, transparent); }
.pt-table-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--po-muted); }
.pt-table-dot[data-tone="info"] { background: var(--po-info); }
.pt-table-dot[data-tone="warning"] { background: var(--po-warning); }
.pt-table-dot[data-tone="brand"] { background: var(--po-teal-ink, var(--po-teal)); }
.pt-table-dot[data-tone="success"] { background: var(--po-success); }
.pt-offer-row:focus-visible, .pt-table:focus-visible { outline: none; box-shadow: var(--po-focus); }
@media (hover: hover) { .pt-offer-row:hover { background: var(--po-surface-2); } }
@media (prefers-reduced-motion: no-preference) {
  .pt-meter-fill { transition: width .3s ease; }
  .pt-table, .pt-offer-row { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}
@media (forced-colors: active) {
  .pt-table[aria-pressed="true"], .pt-flow-card[data-best="true"] { outline: 2px solid CanvasText; }
  .pt-meter-fill, .pt-meter-mark, .pt-table-dot, .pt-offer-badge { forced-color-adjust: none; }
}

/* PR860 S614n: P09 Kampanjmarginal, P12 Återbetalning – förhandsvisning och P21 Kampanjkombinationer –
   paritet med Partner iOS S614m. Pengarader med summalinje, fördelningsstapel, tidslinje hos betalleverantören,
   bockbara orderrader och 3×3-matris som blir en rad per par i smal yta; två kolumner från 720px, mörkt via
   tokens, rörelse bara utan reducerad rörelse. Belopp är alltid — kr. */
.pt-money { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-money-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; min-height: 36px; padding: 6px 0; }
.pt-money-line > div { display: grid; gap: 2px; min-width: 0; flex: 1 1 160px; }
.pt-money-line strong { font-weight: 600; font-size: .9rem; }
.pt-money-line small { color: var(--po-muted); font-size: .76rem; }
.pt-money-value { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.pt-money-line[data-tone="warning"] .pt-money-value { color: var(--po-warning); }
.pt-money-line[data-tone="danger"] .pt-money-value { color: var(--po-danger); }
.pt-money-line[data-total="true"] { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--po-line); }
.pt-money-line[data-total="true"] strong { font-weight: 800; }
.pt-money-line[data-total="true"] .pt-money-value { font-size: 1.05rem; }

.pt-money-split { display: grid; gap: 8px; }
.pt-money-split-bar { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: 6px; background: var(--po-surface-2); }
.pt-money-split-bar span { flex-basis: 0; min-width: 4px; border-radius: 4px; background: var(--po-muted); opacity: .55; }
.pt-money-split-bar span[data-tone="brand"] { background: var(--po-teal-ink, var(--po-teal)); opacity: 1; }
.pt-money-split-bar span[data-tone="info"] { background: var(--po-info); opacity: 1; }
.pt-money-split-bar span[data-tone="warning"] { background: var(--po-warning); opacity: 1; }
.pt-money-split-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; color: var(--po-muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.pt-money-split-legend li { display: inline-flex; align-items: center; gap: 5px; }
.pt-money-split-legend li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--po-muted); }
.pt-money-split-legend li[data-tone="brand"]::before { background: var(--po-teal-ink, var(--po-teal)); }
.pt-money-split-legend li[data-tone="info"]::before { background: var(--po-info); }
.pt-money-split-legend li[data-tone="warning"]::before { background: var(--po-warning); }

.pt-money-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-money-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.pt-money-timeline li:last-child { padding-bottom: 0; }
.pt-money-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 26px; bottom: 2px; left: 11px; width: 2px; background: var(--po-line); }
.pt-money-timeline li > div { display: grid; gap: 2px; min-width: 0; }
.pt-money-timeline strong { font-size: .9rem; }
.pt-money-timeline small { color: var(--po-muted); font-size: .76rem; }
.pt-money-timeline-dot { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border: 2px solid var(--po-line-strong); border-radius: 50%; background: var(--po-surface); color: var(--po-surface); }
.pt-money-timeline-dot .po-icon { width: 13px; height: 13px; }
.pt-money-timeline li[data-phase="done"] .pt-money-timeline-dot { border-color: var(--po-success); background: var(--po-success); }
.pt-money-timeline li[data-phase="current"] .pt-money-timeline-dot { border-color: var(--po-warning); background: var(--po-warning); }
.pt-money-timeline li[data-phase="failed"] .pt-money-timeline-dot { border-color: var(--po-danger); background: var(--po-danger); }
.pt-money-timeline li[data-phase="waiting"] strong { color: var(--po-muted); }

.pt-refund-entries > li.pt-refund-entry { align-items: flex-start; }
.pt-refund-entry .pt-flow-row-main small:first-child { font-weight: 600; }
.pt-refund-entry-side { display: grid; flex: none; justify-items: end; gap: 6px; }

.pt-flow-radio-detail { align-items: flex-start; padding-block: 10px; }
.pt-flow-radio-detail > span:last-child { display: grid; gap: 2px; }
.pt-flow-radio-detail small { color: var(--po-muted); font-size: .78rem; }
.pt-stack-code { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); font-weight: 800; font-size: .86rem; }
.pt-stack-matrix { display: grid; gap: 4px; grid-template-columns: 32px repeat(3, minmax(0, 1fr)); align-items: center; }
.pt-stack-axis { color: var(--po-muted); font-size: .78rem; font-weight: 800; text-align: center; }
.pt-stack-cell { display: grid; place-items: center; min-height: 44px; border: 1px solid transparent; border-radius: 10px; background: var(--po-surface-2); color: var(--po-muted); font: inherit; cursor: pointer; }
.pt-stack-cell .po-icon { width: 18px; height: 18px; }
.pt-stack-cell[data-self="true"] { opacity: .5; cursor: default; }
.pt-stack-cell[data-tone="success"] { background: var(--po-teal-soft); color: var(--po-success); }
.pt-stack-cell[data-tone="warning"] { background: var(--po-warning-soft); color: var(--po-warning); }
.pt-stack-cell[data-tone="danger"] { background: var(--po-danger-soft); color: var(--po-danger); }
.pt-stack-cell:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-stack-pairs { display: none; }
.pt-stack-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: .74rem; font-weight: 650; }
.pt-stack-legend li { display: inline-flex; align-items: center; gap: 4px; }
.pt-stack-legend .po-icon { width: 14px; height: 14px; }
.pt-stack-legend li[data-tone="success"] { color: var(--po-success); }
.pt-stack-legend li[data-tone="warning"] { color: var(--po-warning); }
.pt-stack-legend li[data-tone="danger"] { color: var(--po-danger); }
/* Narrow surface or large text: the 3×3 grid becomes one row per pair (parity with iOS accessibility sizes). */
@container (max-width: 340px) {
  .pt-stack-matrix { display: none; }
  .pt-stack-pairs { display: grid; }
}
@media (hover: hover) { .pt-stack-cell:not([data-self="true"]):hover { background: var(--po-surface-2); filter: brightness(.97); } }
@media (prefers-reduced-motion: no-preference) {
  .pt-money-split-bar span { transition: flex-grow .4s ease-out; }
  .pt-stack-cell { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}
@media (forced-colors: active) {
  .pt-money-split-bar span, .pt-money-timeline-dot, .pt-stack-code { forced-color-adjust: none; }
  .pt-stack-cell { outline: 1px solid CanvasText; }
}

/* PR860 S614p: P13 Leverans från annan enhet, P34 Kampanjägarskap och P32 Tap to Pay och utskrift – paritet med
   Partner iOS S614o. Radiorader med låsta enheter, före → efter, kundram, avisering, kampanjlista med vald rad,
   andelsstapel ni/Bistam, mätvärden, villkorsbrytare och kassa med dämpad kontaktlös puls (still vid reducerad
   rörelse). Två kolumner från 720px via .pt-flow-cols, mörkt via tokens. Belopp är alltid — kr. */
.pt-own-radio { width: 100%; }
.pt-own-radio > .po-status-pill { flex: none; margin-left: auto; align-self: center; }
.pt-own-radio .pt-flow-radio-dot { display: grid; place-items: center; }
.pt-own-radio .pt-flow-radio-dot .po-icon { width: 12px; height: 12px; color: var(--po-muted); }
.pt-own-radio:disabled .pt-flow-radio-dot { border-style: dashed; }
.pt-own-branches .pt-own-radio + .pt-own-radio { border-top: 1px solid var(--po-line); border-radius: 0; }

.pt-own-change { flex-wrap: wrap; gap: 6px 12px; }
.pt-own-change-value { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }

.pt-own-phone-title { display: block; font-size: 1rem; line-height: 1.3; }
.pt-own-phone-text { margin: 0; color: var(--po-muted); font-size: .88rem; }
.pt-own-preview-actions { display: grid; gap: 8px; }
.pt-own-preview-button { width: 100%; min-height: 44px; }
.pt-own-countdown { color: var(--po-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }

.pt-own-push { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 14px; background: var(--po-surface-2); }
.pt-own-push > span:last-child { display: grid; gap: 2px; min-width: 0; }
.pt-own-push small { color: var(--po-muted); font-size: .78rem; }
.pt-own-push-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); }
.pt-own-push-icon .po-icon { width: 18px; height: 18px; }

.pt-own-campaign { position: relative; padding-left: 10px; }
.pt-own-campaign[data-current="true"]::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 0; width: 3px; border-radius: 2px; background: var(--po-teal-ink, var(--po-teal)); }
.pt-own-campaign[data-current="true"] .pt-flow-row-icon { color: var(--po-teal-ink, var(--po-teal)); }

.pt-own-share { display: grid; gap: 8px; }
.pt-own-share-bar { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: 6px; background: var(--po-surface-2); }
.pt-own-share-bar span { flex-basis: 0; border-radius: 4px; transform-origin: left center; }
.pt-own-share-bar span[data-tone="brand"] { background: var(--po-teal-ink, var(--po-teal)); }
.pt-own-share-bar span[data-tone="info"] { background: var(--po-info); }

.pt-own-metrics { display: grid; gap: 8px; margin: 0; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.pt-own-metric { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--po-surface-2); }
.pt-own-metric dt { color: var(--po-muted); font-size: .76rem; }
.pt-own-metric dd { margin: 0; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.pt-own-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--po-text); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.pt-own-switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--po-line-strong); }
.pt-own-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--po-surface); box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.pt-own-toggle[aria-checked="true"] .pt-own-switch { background: var(--po-teal-ink, var(--po-teal)); }
.pt-own-toggle[aria-checked="true"] .pt-own-switch::after { left: 21px; }
.pt-own-toggle:focus-visible { outline: none; box-shadow: var(--po-focus); border-radius: 10px; }

.pt-ttp-preview { display: grid; justify-items: center; gap: 8px; padding: 6px 0; text-align: center; }
.pt-ttp-preview .pt-flow-tagrow { justify-self: stretch; }
.pt-ttp-preview > small { color: var(--po-muted); font-size: .8rem; max-width: 36ch; }
.pt-ttp-amount { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pt-ttp-ring { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 6px 0; }
.pt-ttp-pulse { position: absolute; inset: 0; border: 2px solid var(--po-teal); border-radius: 50%; opacity: .35; }
.pt-ttp-core { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--po-teal-soft); color: var(--po-teal-ink, var(--po-teal)); }
.pt-ttp-core .po-icon { width: 34px; height: 34px; }
.pt-ttp-preview[data-locked="true"] .pt-ttp-pulse { border-style: dashed; }
.pt-ttp-exercise .po-icon { color: var(--po-teal-ink, var(--po-teal)); }

@media (prefers-reduced-motion: no-preference) {
  .pt-own-share-bar span { animation: pt-own-grow .4s ease-out both; }
  .pt-ttp-preview[data-locked="false"] .pt-ttp-pulse { animation: pt-ttp-pulse 1.6s ease-out infinite; }
  .pt-own-switch, .pt-own-switch::after { transition: background-color .15s ease, left .15s ease; }
}
@keyframes pt-own-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pt-ttp-pulse { from { transform: scale(1); opacity: .35; } to { transform: scale(1.12); opacity: 0; } }
@media (forced-colors: active) {
  .pt-own-share-bar span, .pt-own-switch, .pt-own-push-icon, .pt-ttp-core { forced-color-adjust: none; }
  .pt-own-campaign[data-current="true"], .pt-own-toggle[aria-checked="true"] { outline: 1px solid CanvasText; }
}

/* PR860 S614r: P04 Kvalitetsinsikter, P19 Konverteringsinsikter och P30 Menyprestanda – paritet med Partner iOS
   S614q. Period + jämför-brytare, KPI-rutor med förra värdet och trendord, stapeldiagram med streckad förra
   period, flagga och skrafferat "räknas in", veckodag × tid-karta (smal yta: lista), andelsrader, tratt med
   andel som gick vidare, rankad produktlista med trendlinje och menykarta 2×2 med tryckbara punkter (smal yta:
   lista per ruta). Två kolumner från 720px via .pt-flow-cols, mörkt via tokens. Belopp är alltid — kr. */
.pt-insight-period { display: grid; gap: 4px; }
.pt-insight-switch > span:first-child { display: grid; gap: 2px; }
.pt-insight-switch small { color: var(--po-muted); font-size: .78rem; font-weight: 500; }

.pt-insight-kpis { display: grid; gap: 10px; margin: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pt-insight-kpi { display: grid; align-content: start; gap: 6px; min-height: 96px; padding: 12px; border-radius: 14px; background: var(--po-surface-2); }
.pt-insight-kpi dt { display: flex; align-items: center; gap: 6px; color: var(--po-muted); font-size: .78rem; font-weight: 650; }
.pt-insight-kpi dt .po-icon { width: 14px; height: 14px; }
.pt-insight-kpi dd { margin: 0; font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.pt-insight-kpi .pt-insight-kpi-prev { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; color: var(--po-muted); font-size: .74rem; font-weight: 500; }
.pt-insight-trend { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--po-surface); color: var(--po-muted); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.pt-insight-trend[data-tone="success"] { background: color-mix(in srgb, var(--po-success) 14%, transparent); color: var(--po-success); }
.pt-insight-trend[data-tone="warning"] { background: color-mix(in srgb, var(--po-warning) 16%, transparent); color: var(--po-warning); }

.pt-insight-chart { display: grid; gap: 8px; margin: 0; }
.pt-insight-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pt-insight-col { display: grid; justify-items: stretch; gap: 4px; min-width: 0; text-align: center; }
.pt-insight-col small { overflow: hidden; color: var(--po-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.pt-insight-flag { display: grid; place-items: center; height: 14px; color: var(--po-info); opacity: 0; }
.pt-insight-flag[data-on="true"] { opacity: 1; }
.pt-insight-flag .po-icon { width: 12px; height: 12px; }
.pt-insight-slot { position: relative; display: flex; align-items: flex-end; height: 104px; }
.pt-insight-prev { position: absolute; right: 0; bottom: 0; left: 0; border: 1px dashed var(--po-muted); border-radius: 4px; }
.pt-insight-bar { position: relative; width: 100%; min-height: 4px; border-radius: 4px; background: var(--po-teal); transform-origin: bottom; }
.pt-insight-chart[data-tone="warning"] .pt-insight-bar { background: var(--po-warning); }
.pt-insight-chart[data-empty="true"] .pt-insight-bar { background: var(--po-surface-2); }
.pt-insight-bar[data-pending="true"] { background: repeating-linear-gradient(135deg, var(--po-surface-2) 0 4px, color-mix(in srgb, var(--po-muted) 45%, transparent) 4px 5px); }
.pt-insight-chart figcaption { display: grid; gap: 6px; color: var(--po-muted); font-size: .78rem; }
.pt-insight-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .72rem; }
.pt-insight-legend span::before { content: ""; display: inline-block; width: 12px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.pt-insight-legend [data-kind="now"]::before { background: var(--po-teal); }
.pt-insight-chart[data-tone="warning"] .pt-insight-legend [data-kind="now"]::before { background: var(--po-warning); }
.pt-insight-legend [data-kind="prev"]::before { border: 1px dashed var(--po-muted); }

.pt-insight-shares { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pt-insight-share { display: grid; gap: 6px; min-height: 44px; }
.pt-insight-share-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.pt-insight-share-head > span { display: grid; gap: 2px; }
.pt-insight-share-head strong { font-weight: 600; }
.pt-insight-share-head small { color: var(--po-muted); font-size: .78rem; }
.pt-insight-share-head b { font-variant-numeric: tabular-nums; }
.pt-insight-share .pt-growth-bar { background: var(--po-surface-2); }
.pt-insight-share .pt-growth-bar[data-tone="warning"] > span { background: var(--po-warning); }
.pt-insight-share .pt-growth-bar[data-tone="neutral"] > span { background: var(--po-muted); }
.pt-insight-order-value { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.pt-insight-center .po-icon { width: 34px; height: 34px; color: var(--po-muted); }

.pt-heat-grid { display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); gap: 4px; align-items: center; }
.pt-heat-grid small { color: var(--po-muted); font-size: .7rem; font-variant-numeric: tabular-nums; text-align: center; }
.pt-heat-grid small:nth-child(6n + 1) { text-align: left; }
.pt-heat-cell { min-height: 22px; border-radius: 4px; background: color-mix(in srgb, var(--po-teal) calc(12% + var(--pt-heat) * 60%), transparent); }
.pt-heat-cell[data-hot="true"] { background: color-mix(in srgb, var(--po-warning) calc(25% + var(--pt-heat) * 60%), transparent); }
.pt-heat-scale { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--po-muted); font-size: .7rem; }
.pt-heat-scale i { flex: 1; height: 8px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--po-teal) 15%, transparent), color-mix(in srgb, var(--po-teal) 60%, transparent), color-mix(in srgb, var(--po-warning) 85%, transparent)); }
.pt-heat-list, .pt-menu-quad-list { display: none; }

.pt-conv-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pt-conv-step { display: grid; gap: 6px; }
.pt-conv-rate { color: var(--po-muted); font-size: .72rem; font-weight: 650; }
.pt-conv-step[data-highlight="true"] .pt-conv-rate { color: var(--po-warning); }
.pt-conv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.pt-conv-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; }
.pt-conv-head .po-icon { width: 16px; height: 16px; color: var(--po-muted); }
.pt-conv-count { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.pt-conv-hidden { display: inline-flex; align-items: center; gap: 4px; color: var(--po-muted); font-weight: 650; }
.pt-conv-bar { display: block; height: 14px; overflow: hidden; border-radius: 8px; background: var(--po-surface-2); }
.pt-conv-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--po-teal); transform-origin: left center; }
.pt-conv-step[data-highlight="true"] .pt-conv-bar > span { background: var(--po-warning); }

.pt-menu-list { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-menu-list li + li { border-top: 1px solid var(--po-line); }
.pt-menu-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 4px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-menu-row:hover { background: var(--po-surface-2); }
.pt-menu-row:focus-visible, .pt-menu-dot:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-menu-rank { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--po-teal-soft); color: var(--po-teal-ink, var(--po-teal)); font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-menu-name { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pt-menu-name small { color: var(--po-muted); font-size: .76rem; }
.pt-menu-spark { flex: none; width: 56px; height: 22px; }
.pt-menu-spark polyline { fill: none; stroke: var(--po-teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-menu-figure { display: grid; justify-items: end; gap: 4px; font-variant-numeric: tabular-nums; }
.pt-menu-chevron .po-icon { width: 14px; height: 14px; color: var(--po-muted); }

.pt-menu-map { display: grid; gap: 6px; }
.pt-menu-plot { position: relative; height: 220px; }
.pt-menu-cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; }
.pt-menu-cell { display: grid; align-content: start; gap: 2px; padding: 8px; border-radius: 10px; background: var(--po-surface-2); }
.pt-menu-cell[data-quadrant="1"] { background: var(--po-teal-soft); }
.pt-menu-cell[data-quadrant="3"] { background: color-mix(in srgb, var(--po-warning) 14%, transparent); }
.pt-menu-cell strong { font-size: .8rem; }
.pt-menu-cell small { color: var(--po-muted); font-size: .7rem; }
.pt-menu-dot { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; transform: translate(-50%, -50%); cursor: pointer; }
.pt-menu-dot span { width: 12px; height: 12px; border: 2px solid var(--po-surface); border-radius: 50%; background: var(--po-teal-ink, var(--po-teal)); }
.pt-menu-dot:hover span { transform: scale(1.25); }
.pt-menu-axis { display: flex; justify-content: space-between; color: var(--po-muted); font-size: .7rem; }

@container (max-width: 340px) {
  .pt-heat-grid, .pt-heat-scale, .pt-menu-map { display: none; }
  .pt-heat-list, .pt-menu-quad-list { display: grid; }
  .pt-menu-spark { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-insight-bar { animation: pt-insight-rise .45s ease-out both; }
  .pt-conv-bar > span { animation: pt-own-grow .4s ease-out both; animation-delay: calc(var(--pt-step, 0) * 60ms); }
  .pt-menu-dot span { transition: transform .15s ease; }
}
@keyframes pt-insight-rise { from { transform: scaleY(.04); } to { transform: scaleY(1); } }
@media (forced-colors: active) {
  .pt-insight-bar, .pt-insight-prev, .pt-heat-cell, .pt-conv-bar > span, .pt-menu-dot span, .pt-menu-cell, .pt-insight-trend { forced-color-adjust: none; }
  .pt-heat-cell, .pt-menu-cell { outline: 1px solid CanvasText; }
  .pt-insight-bar, .pt-conv-bar > span, .pt-menu-dot span { background: Highlight; }
  .pt-heat-cell[data-hot="true"] { background: Mark; }
}

/* PR860 S614t: P15 Driftradar, P25 Ändringspåverkan, P26 Tjänststatus och P27 Ärendefrister – paritet med
   Partner iOS S614s. Live-stämpel med andande punkt, signalrutor med Normalt/Bevaka/Åtgärda/Okänt i ord,
   tryckbara rader (44px) som öppnar paneler, tidslinje med tidskolumn, före → efter, kundram, 7-dagars
   historikrutor och fristring. Två kolumner från 720px via .pt-flow-cols; smal yta staplar rader och döljer
   dagsrutor till förmån för läsbar text. Mörkt via tokens, reducerad rörelse och forced-colors. */
.pt-status-head { display: flex; align-items: flex-start; gap: 12px; --pt-accent: var(--po-success); }
.pt-status-head[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-status-head[data-tone="danger"] { --pt-accent: var(--po-danger); }
.pt-status-head[data-tone="info"] { --pt-accent: var(--po-info); }
.pt-status-head-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--pt-accent) 14%, transparent); color: var(--pt-accent); }
.pt-status-head > div { display: grid; gap: 4px; min-width: 0; }
.pt-status-head h3 { margin: 0; font-size: 1.02rem; }
.pt-status-head p { margin: 0; color: var(--po-muted); }
.pt-status-live { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--po-muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.pt-status-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--po-muted); }
.pt-status-live[data-live="true"] .pt-status-live-dot { background: var(--po-success); }

.pt-status-signals { display: grid; gap: 10px; margin: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pt-status-signal { display: grid; align-content: start; gap: 6px; min-height: 104px; padding: 12px; border: 1.5px solid transparent; border-radius: 14px; background: var(--po-surface-2); }
.pt-status-signal[data-level="act"] { border-color: color-mix(in srgb, var(--po-danger) 60%, transparent); }
.pt-status-signal dt { display: flex; align-items: center; gap: 6px; color: var(--po-muted); font-size: .78rem; font-weight: 650; }
.pt-status-signal dt .po-icon { width: 14px; height: 14px; }
.pt-status-signal dd { margin: 0; }
.pt-status-signal dd:nth-of-type(1) { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.pt-status-signal-detail { color: var(--po-muted); font-size: .74rem; }

.pt-status-taps { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-status-taps li + li { border-top: 1px solid var(--po-line); }
.pt-status-tap { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 4px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; --pt-accent: var(--po-success); }
.pt-status-tap[data-level="watch"] { --pt-accent: var(--po-warning); }
.pt-status-tap[data-level="act"] { --pt-accent: var(--po-danger); }
.pt-status-tap[data-level="unknown"] { --pt-accent: var(--po-muted); }
.pt-status-tap:hover { background: var(--po-surface-2); }
.pt-status-tap:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-status-tap-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: color-mix(in srgb, var(--pt-accent) 14%, transparent); color: var(--pt-accent); }
.pt-status-tap-icon .po-icon { width: 18px; height: 18px; }
.pt-status-tap-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pt-status-tap-text small { color: var(--po-muted); font-size: .78rem; }
.pt-status-tap-value { font-variant-numeric: tabular-nums; }

.pt-status-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-status-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 12px; --pt-accent: var(--po-teal); }
.pt-status-timeline li[data-tone="success"] { --pt-accent: var(--po-success); }
.pt-status-timeline li[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-status-timeline li[data-tone="danger"] { --pt-accent: var(--po-danger); }
.pt-status-timeline li[data-tone="info"] { --pt-accent: var(--po-info); }
.pt-status-timeline li[data-tone="neutral"] { --pt-accent: var(--po-muted); }
.pt-status-timeline li:last-child { padding-bottom: 0; }
.pt-status-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 20px; bottom: 0; left: 6px; width: 2px; background: var(--po-line); }
.pt-status-timeline-dot { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--pt-accent); }
.pt-status-timeline li[data-done="false"] .pt-status-timeline-dot { border: 1.5px dashed var(--po-muted); background: var(--po-surface-2); }
.pt-status-timeline li > div { display: grid; gap: 2px; min-width: 0; }
.pt-status-timeline li[data-done="false"] strong { color: var(--po-muted); }
.pt-status-timeline small { color: var(--po-muted); font-size: .78rem; }
.pt-status-time { font-weight: 650; font-variant-numeric: tabular-nums; }

.pt-status-sheet-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--po-surface-2); --pt-accent: var(--po-success); }
.pt-status-sheet-head[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-status-sheet-head[data-tone="danger"] { --pt-accent: var(--po-danger); }
.pt-status-sheet-head[data-tone="neutral"] { --pt-accent: var(--po-muted); }
.pt-status-sheet-head > span:first-child { color: var(--pt-accent); }
.pt-status-sheet-head > span:first-child .po-icon { width: 28px; height: 28px; }
.pt-status-sheet-head > div { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.pt-status-sheet-head small { color: var(--po-muted); font-size: .8rem; }
.pt-status-text { margin: 0; line-height: 1.45; }
.pt-status-switches { display: grid; gap: 6px; }
.pt-status-switches .pt-own-toggle[disabled] { opacity: .7; cursor: not-allowed; }
.pt-status-center[data-tone="success"] > .po-icon { color: var(--po-success); }

.pt-impact-compares { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-impact-compare { display: grid; grid-template-columns: minmax(110px, 1fr) auto auto minmax(0, 1.4fr); align-items: baseline; gap: 8px; min-height: 36px; padding: 6px 0; }
.pt-impact-compare + .pt-impact-compare { border-top: 1px solid var(--po-line); }
.pt-impact-compare > span:first-child, .pt-impact-before, .pt-impact-arrow { color: var(--po-muted); }
.pt-impact-store { display: flex; align-items: center; gap: 10px; }
.pt-impact-store > span:last-child { display: grid; gap: 2px; }
.pt-impact-store small { color: var(--po-muted); font-size: .76rem; }
.pt-impact-store .pt-impact-closed { color: var(--po-warning); font-weight: 650; }

.pt-service-histories { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-service-history { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: .82rem; }
.pt-service-days { display: inline-flex; gap: 4px; }
.pt-service-days i, .pt-service-legend li::before { width: 18px; height: 18px; border-radius: 4px; background: color-mix(in srgb, var(--po-success) 55%, transparent); }
.pt-service-days i[data-level="watch"], .pt-service-legend [data-level="watch"]::before { background: var(--po-warning); }
.pt-service-days i[data-level="act"], .pt-service-legend [data-level="act"]::before { background: var(--po-danger); }
.pt-service-days i[data-level="unknown"] { background: var(--po-surface-3, var(--po-surface-2)); }
.pt-service-axis { display: flex; justify-content: space-between; width: 150px; margin: 0 0 0 auto; color: var(--po-muted); font-size: .7rem; }
.pt-service-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--po-muted); font-size: .72rem; }
.pt-service-legend li { display: inline-flex; align-items: center; gap: 4px; }
.pt-service-legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

.pt-case-ring { position: relative; display: grid; flex: none; place-items: center; width: 36px; height: 36px; color: var(--po-teal); --pt-accent: var(--po-success); }
.pt-case-ring[data-level="watch"] { --pt-accent: var(--po-warning); }
.pt-case-ring[data-level="act"] { --pt-accent: var(--po-danger); }
.pt-case-ring[data-level="unknown"] { --pt-accent: var(--po-muted); }
.pt-case-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pt-case-ring circle { fill: none; stroke-width: 5; }
.pt-case-ring-track { stroke: var(--po-surface-2); }
.pt-case-ring-fill { stroke: var(--pt-accent); stroke-linecap: round; }
.pt-case-ring > .po-icon { position: relative; width: 14px; height: 14px; color: var(--pt-accent); }

@container (max-width: 340px) {
  .pt-status-signals { grid-template-columns: minmax(0, 1fr); }
  .pt-status-tap { flex-wrap: wrap; }
  .pt-status-tap-text { flex-basis: calc(100% - 48px); }
  .pt-impact-compare { grid-template-columns: auto auto minmax(0, 1fr); }
  .pt-impact-compare > span:first-child { grid-column: 1 / -1; }
  .pt-service-axis { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-status-live[data-live="true"] .pt-status-live-dot { animation: pt-status-breathe 3.2s ease-in-out infinite; }
  .pt-case-ring-fill { animation: pt-case-fill .5s ease-out both; }
  .pt-status-tap { transition: background-color .15s ease; }
}
@keyframes pt-status-breathe { 50% { opacity: .35; } }
@keyframes pt-case-fill { from { stroke-dasharray: 0 100; } }
@media (forced-colors: active) {
  .pt-status-live-dot, .pt-status-timeline-dot, .pt-service-days i, .pt-service-legend li::before, .pt-case-ring-fill, .pt-status-tap-icon { forced-color-adjust: none; }
  .pt-status-signal, .pt-service-days i { outline: 1px solid CanvasText; }
  .pt-status-signal[data-level="act"] { outline: 2px solid Highlight; }
  .pt-status-live-dot, .pt-status-timeline-dot, .pt-case-ring-fill { background: Highlight; stroke: Highlight; }
  .pt-service-days i[data-level="watch"], .pt-service-days i[data-level="act"] { background: Mark; }
}

/* PR860 S614v: P17 Träningsrum, P24 Första försäljningen, P28 Entréguide för bud och P33 Täckning per yta –
   paritet med Partner iOS S614u. Indigo träningsbanderoll och träningsbong med TRÄNING-vattenmärke,
   numrerade steg (klart/pågår/väntar/misslyckat), ring x av y som fylls en gång, tryckbara rader med
   markerat nästa steg, entrétyper som 44px-rutor, väg Gatan → entré → hämtning utan karta, Bistam
   Driver-ram och täckningsmatris från 600px annars ett block per funktion med ytchips. Två kolumner från
   720px via .pt-flow-cols, mörkt via tokens, reducerad rörelse och forced-colors. */
.pt-root .po-status-pill[data-tone="info"] { background: color-mix(in srgb, var(--po-info) 14%, transparent); color: var(--po-info); }
.pt-status-head[data-tone="neutral"] { --pt-accent: var(--po-muted); }
.pt-status-head[data-tone="brand"] { --pt-accent: var(--po-teal-ink, var(--po-teal)); }
.pt-setup-head { flex-wrap: wrap; }
.pt-setup-head-text { flex: 1 1 220px; }
.pt-setup-head-end { flex: none; margin-left: auto; align-self: center; }

.pt-setup-tap[data-tone="info"] { --pt-accent: var(--po-info); }
.pt-setup-tap[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-setup-tap[data-tone="danger"] { --pt-accent: var(--po-danger); }
.pt-setup-tap[data-tone="neutral"] { --pt-accent: var(--po-muted); }
.pt-setup-tap[data-current="true"] { padding-inline: 10px; background: var(--po-teal-soft); }

.pt-setup-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-setup-steps li { position: relative; display: flex; gap: 12px; padding-bottom: 12px; --pt-accent: var(--po-muted); }
.pt-setup-steps li:last-child { padding-bottom: 0; }
.pt-setup-steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; bottom: 2px; left: 11px; width: 2px; background: var(--po-line); }
.pt-setup-steps li[data-state="done"] { --pt-accent: var(--po-success); }
.pt-setup-steps li[data-state="current"] { --pt-accent: var(--po-teal-ink, var(--po-teal)); }
.pt-setup-steps li[data-state="failed"] { --pt-accent: var(--po-danger); }
.pt-setup-step-dot { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pt-accent); color: var(--po-surface); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-setup-step-dot .po-icon { width: 13px; height: 13px; stroke-width: 3; }
.pt-setup-steps li[data-state="waiting"] .pt-setup-step-dot { border: 1.5px dashed var(--po-muted); background: var(--po-surface-2); color: var(--po-muted); }
.pt-setup-steps li > div { display: grid; gap: 2px; min-width: 0; padding-top: 2px; }
.pt-setup-steps li[data-state="current"] strong { font-weight: 800; }
.pt-setup-steps li[data-state="waiting"] strong { color: var(--po-muted); }
.pt-setup-steps small { color: var(--po-muted); font-size: .78rem; }

.pt-setup-ring { position: relative; display: grid; flex: none; place-items: center; width: 72px; height: 72px; --pt-accent: var(--po-teal-ink, var(--po-teal)); }
.pt-setup-ring[data-tone="success"] { --pt-accent: var(--po-success); }
.pt-setup-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pt-setup-ring circle { fill: none; stroke-width: 8; }
.pt-setup-ring-track { stroke: var(--po-surface-2); }
.pt-setup-ring-fill { stroke: var(--pt-accent); stroke-linecap: round; }
.pt-setup-ring > span { position: relative; display: grid; justify-items: center; line-height: 1.05; }
.pt-setup-ring strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pt-setup-ring small { color: var(--po-muted); font-size: .66rem; font-weight: 650; }

.pt-train-banner { --pt-train: #4f4fd6; display: flex; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 14px; background: var(--pt-train); color: #fff; }
html[data-theme="dark"] .pt-train-banner { --pt-train: #5e5ce6; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .pt-train-banner { --pt-train: #5e5ce6; } }
.pt-train-banner > span { flex: none; }
.pt-train-banner > div { display: grid; gap: 2px; }
.pt-train-banner strong { font-size: .92rem; }
.pt-train-banner small { opacity: .88; font-size: .78rem; }
.pt-train-ticket { position: relative; display: grid; gap: 8px; overflow: hidden; padding: 12px; border: 1.5px dashed color-mix(in srgb, #5e5ce6 55%, transparent); border-radius: 14px; background: var(--po-surface-2); }
.pt-train-ticket::before { content: "TRÄNING"; position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, #5e5ce6 10%, transparent); font-size: 2.1rem; font-weight: 900; transform: rotate(-14deg); pointer-events: none; }
.pt-train-ticket > * { position: relative; }
.pt-train-ticket-head, .pt-train-ticket-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-train-ticket-head strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pt-train-ticket ul { display: grid; gap: 6px; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--po-line); list-style: none; }
.pt-train-ticket li { display: flex; align-items: baseline; gap: 8px; }
.pt-train-ticket li b { color: var(--po-muted); font-variant-numeric: tabular-nums; }
.pt-train-ticket li span { display: grid; }
.pt-train-ticket li small, .pt-train-ticket-foot { color: var(--po-muted); font-size: .76rem; }
.pt-train-ticket-foot span { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }
.pt-train-ticket-foot .po-icon { width: 14px; height: 14px; }
.pt-train-team { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pt-train-team li { display: grid; gap: 6px; }
.pt-train-team-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.pt-entrance-kinds { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.pt-entrance-kind { position: relative; display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 86px; padding: 10px; border: 1px solid var(--po-line); border-radius: 14px; background: var(--po-surface-2); color: var(--po-text); font: inherit; font-weight: 650; cursor: pointer; }
.pt-entrance-kind > .po-icon { width: 26px; height: 26px; }
.pt-entrance-kind[aria-pressed="true"] { border-color: transparent; background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); }
.pt-entrance-kind:focus-visible, .pt-entrance-photo-row:focus-visible, .pt-cov-open:focus-visible, .pt-cov-block:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-entrance-shut { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--po-warning); color: var(--po-surface); }
.pt-entrance-shut .po-icon { width: 13px; height: 13px; stroke-width: 3; }
.pt-entrance-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.pt-entrance-path li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: var(--po-teal-soft); font-size: .8rem; font-weight: 650; }
.pt-entrance-path li + li::before { content: "→"; margin-right: 4px; margin-left: -2px; color: var(--po-muted); }
.pt-entrance-path .po-icon { width: 14px; height: 14px; }
.pt-entrance-photo-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 4px; border: 0; border-radius: 12px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-entrance-photo-row:hover { background: var(--po-surface-2); }
.pt-entrance-photo-row > span:nth-child(2) { display: grid; flex: 1; gap: 2px; }
.pt-entrance-photo-row small { color: var(--po-muted); font-size: .78rem; }
.pt-entrance-photo { display: grid; flex: none; place-items: center; width: 96px; aspect-ratio: 4 / 3; border: 1.5px dashed var(--po-muted); border-radius: 12px; background: var(--po-surface-2); color: var(--po-muted); }
.pt-entrance-photo[data-photo="true"] { border: 0; background: var(--po-teal-soft); color: var(--po-teal-ink, var(--po-teal)); }
.pt-entrance-photo .po-icon { width: 30px; height: 30px; }
.pt-flow-card > .pt-entrance-photo { width: min(100%, 220px); }
.pt-entrance-driver { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: var(--po-surface-2); }
.pt-entrance-driver-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--po-muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pt-entrance-driver-kind { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--po-teal-ink, var(--po-teal)); font-weight: 700; }
.pt-entrance-driver small { display: inline-flex; align-items: center; gap: 4px; color: var(--po-muted); font-size: .78rem; }
.pt-entrance-driver .po-icon { width: 16px; height: 16px; }
.pt-entrance-driver-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.pt-cov-mark { display: inline-grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--po-muted); }
.pt-cov-mark .po-icon { width: 13px; height: 13px; stroke-width: 2.6; }
.pt-cov-mark[data-cell="verified"] { background: var(--po-success); color: var(--po-surface); }
.pt-cov-mark[data-cell="partial"] { border: 2px solid var(--po-info); background: linear-gradient(90deg, var(--po-info) 50%, transparent 50%); }
.pt-cov-mark[data-cell="planned"] .po-icon { width: 16px; height: 16px; stroke-width: 1.8; }
.pt-cov-mark[data-cell="unverified"] { border: 1.5px dashed var(--po-muted); }
.pt-cov-mark[data-cell="na"]::before { content: ""; width: 10px; height: 2px; border-radius: 1px; background: var(--po-muted); }
.pt-cov-wide { display: none; overflow-x: auto; }
.pt-cov-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pt-cov-table thead th { padding: 0 4px 8px; color: var(--po-muted); font-size: .7rem; font-weight: 800; text-align: center; vertical-align: bottom; }
.pt-cov-table thead th:first-child { text-align: left; }
.pt-cov-table thead th span { display: block; }
.pt-cov-table thead .po-icon { width: 16px; height: 16px; margin: 0 auto 2px; }
.pt-cov-table tbody tr { border-top: 1px solid var(--po-line); }
.pt-cov-table tbody th { padding: 0; font-weight: 400; text-align: left; }
.pt-cov-table td { width: 64px; text-align: center; }
.pt-cov-open { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-cov-open:hover, .pt-cov-block:hover { background: var(--po-surface-2); }
.pt-cov-open > span:nth-child(2) { flex: 1; }
.pt-cov-code { flex: none; min-width: 30px; color: var(--po-muted); font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-cov-blocks { display: grid; margin: 0; padding: 0; list-style: none; }
.pt-cov-blocks li + li { border-top: 1px solid var(--po-line); }
.pt-cov-block { display: grid; gap: 8px; width: 100%; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-cov-block-head { display: flex; align-items: baseline; gap: 8px; }
.pt-cov-block-head strong { flex: 1; }
.pt-cov-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-cov-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 99px; background: var(--po-surface-2); font-size: .76rem; font-weight: 650; }
.pt-cov-chip[data-cell="verified"] { background: var(--po-teal-soft); }
.pt-cov-legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-cov-legend li { display: flex; align-items: center; gap: 10px; }

@container (min-width: 600px) {
  .pt-cov-wide { display: block; }
  .pt-cov-blocks { display: none; }
}
@container (max-width: 340px) {
  .pt-setup-head-end { margin-left: 0; }
  .pt-entrance-kinds { grid-template-columns: minmax(0, 1fr); }
  .pt-entrance-kind { grid-auto-flow: column; justify-content: start; min-height: 56px; }
  .pt-entrance-path { flex-direction: column; align-items: flex-start; }
  .pt-entrance-path li + li::before { content: "↓"; }
  .pt-entrance-photo-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-setup-ring-fill { animation: pt-setup-fill .6s ease-out both; }
  .pt-entrance-kind, .pt-cov-open, .pt-cov-block, .pt-entrance-photo-row { transition: background-color .15s ease, color .15s ease; }
}
@keyframes pt-setup-fill { from { stroke-dasharray: 0 100; } }
@media (forced-colors: active) {
  .pt-train-banner, .pt-train-ticket, .pt-entrance-driver, .pt-entrance-photo { outline: 1px solid CanvasText; }
  .pt-train-ticket::before { display: none; }
  .pt-setup-step-dot, .pt-setup-ring-fill, .pt-cov-mark, .pt-entrance-shut { forced-color-adjust: none; }
  .pt-setup-steps li[data-state="done"] .pt-setup-step-dot, .pt-setup-steps li[data-state="current"] .pt-setup-step-dot, .pt-cov-mark[data-cell="verified"] { background: Highlight; color: HighlightText; }
  .pt-setup-ring-fill { stroke: Highlight; }
  .pt-entrance-kind[aria-pressed="true"] { outline: 2px solid Highlight; }
}

/* PR860 S615n: X09 Ärendeförlopp, X04 Underlag i ärendet, X05 Avräkning efter ärende, X08 Saknad vara och
   hittegods och A13 Tydliga tillstånd – paritet med Partner iOS S615m. Tryckbara rader (44px) med ton i ord,
   stegtidslinje med markerat nuvarande steg, uppgiftslista, meddelandebubblor Bistam/Ni, tryckbara händelser
   och förklarad spärrad knapp. Två kolumner från 720px via .pt-flow-cols, mörkt via tokens, reducerad rörelse
   och forced-colors. Belopp är alltid — kr. */
.pt-case-tap[data-tone="success"] { --pt-accent: var(--po-success); }
.pt-case-tap[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-case-tap[data-tone="danger"] { --pt-accent: var(--po-danger); }
.pt-case-tap[data-tone="info"] { --pt-accent: var(--po-info); }
.pt-case-tap[data-tone="brand"] { --pt-accent: var(--po-teal-ink, var(--po-teal)); }
.pt-case-tap[data-tone="neutral"] { --pt-accent: var(--po-muted); }
/* S1218 X09: real case rows – pills beside the text, a three-step bar from the server status. */
.pt-case-progress-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-width: 45%; }
.pt-case-stepbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; max-width: 220px; }
.pt-case-stepbar > span { height: 4px; border-radius: 2px; background: var(--po-line); }
.pt-case-stepbar > span[data-done="true"] { background: var(--pt-accent); }
.pt-case-tap.pt-case-progress[data-tone="neutral"] .pt-case-stepbar > span[data-done="true"] { background: var(--po-teal-ink, var(--po-teal)); }
@container (max-width: 520px) { .pt-case-progress-pills { max-width: none; justify-content: flex-start; } }
/* S1219 X04: a real case's files as whole-row links and the order's own times; a missing time is a word, never a filled value. */
.pt-case-files a.pt-case-file { display: flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; border-radius: 10px; }
.pt-case-files a.pt-case-file:hover { background: color-mix(in srgb, var(--po-teal) 8%, transparent); }
.pt-case-files a.pt-case-file:focus-visible { outline: 2px solid var(--po-teal-ink, var(--po-teal)); outline-offset: 2px; }
.pt-case-files a.pt-case-file small { display: block; color: var(--po-muted); }
.pt-case-order-times li[data-missing="true"] strong { color: var(--po-muted); }
.pt-case-tap > span[aria-hidden="true"]:has(.po-status-pill) { flex: none; }
.pt-case-steps li[data-current="true"] .pt-status-timeline-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pt-accent) 22%, transparent); }
.pt-case-now { justify-self: start; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--pt-accent) 14%, transparent); color: var(--po-text); font-size: .72rem; font-weight: 700; }
.pt-case-head { --pt-accent: var(--po-teal-ink, var(--po-teal)); }
.pt-case-head[data-tone="success"] { --pt-accent: var(--po-success); }
.pt-case-head[data-tone="info"] { --pt-accent: var(--po-info); }
.pt-case-head > div { flex: 1; }
.pt-case-head .pt-status-head-icon .po-icon { width: 22px; height: 22px; }
.pt-case-head .po-status-pill { flex: none; }
.pt-case-facts { display: grid; gap: 0; margin: 0; }
.pt-case-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; }
.pt-case-facts > div + div { border-top: 1px solid var(--po-line); }
.pt-case-facts dt { color: var(--po-muted); }
.pt-case-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-case-bubble { display: grid; gap: 4px; }
.pt-case-from { font-size: .72rem; font-weight: 800; opacity: .8; }
.pt-case-msg-time { font-size: .72rem; font-variant-numeric: tabular-nums; opacity: .8; }
.pt-case-due { display: inline-flex; align-items: center; gap: 8px; }
.pt-case-events li > .pt-case-event { display: grid; flex: 1; gap: 2px; min-width: 0; min-height: 44px; margin: -4px 0; padding: 4px 6px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; text-align: left; cursor: pointer; }
.pt-case-event small { color: var(--po-muted); font-size: .78rem; }
.pt-case-event:hover { background: var(--po-surface-2); }
.pt-case-event:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-clear-facts { display: grid; gap: 2px; margin: 4px 0 0; font-size: .78rem; }
.pt-clear-facts > div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.pt-clear-facts dt { color: var(--po-muted); font-weight: 600; }
.pt-clear-facts dt::after { content: ":"; }
.pt-clear-facts dd { margin: 0; color: var(--po-text); }
@container (max-width: 340px) {
  .pt-case-tap .pt-status-tap-value { display: none; }
  .pt-case-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-case-steps .pt-status-timeline-dot { transition: background-color .2s ease, box-shadow .2s ease; }
}
@media (forced-colors: active) {
  .pt-case-steps .pt-status-timeline-dot, .pt-case-now { forced-color-adjust: none; }
  .pt-case-steps li[data-done="true"] .pt-status-timeline-dot { background: Highlight; }
  .pt-case-now { border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
  .pt-case-event:focus-visible { outline: 2px solid Highlight; }
}

/* PR860 S615o: E20 Hämtdisk, U04 Duo-samordning, E18 Måltidspaket, E37 Packning och förpackning, M01 Kundmeddelanden
   och A14 Fortsätt på annan enhet – paritet med Partner iOS S615o. Banderoll med ton i ord, budets rutt som numrerade
   stopp och knappen Visa original i en meddelandebubbla (44px). Två kolumner från 720px via .pt-flow-cols, mörkt via
   tokens, reducerad rörelse och forced-colors. Belopp är alltid — kr. */
.pt-cflow-banner { --pt-accent: var(--po-info); display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--pt-accent) 12%, var(--po-surface)); color: var(--po-text); }
.pt-cflow-banner[data-tone="warning"] { --pt-accent: var(--po-warning); }
.pt-cflow-banner[data-tone="success"] { --pt-accent: var(--po-success); }
.pt-cflow-banner > .po-icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--pt-accent); }
.pt-cflow-banner > div { display: grid; flex: 1; gap: 2px; min-width: 0; }
.pt-cflow-banner small { color: var(--po-muted); font-size: .82rem; line-height: 1.4; }
.pt-cflow-banner .po-status-pill { flex: none; }
.pt-cflow-route { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.pt-cflow-route li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.pt-cflow-route li + li::before { content: ""; position: absolute; top: -10px; left: 13px; width: 2px; height: 18px; background: var(--po-line); }
.pt-cflow-route li > span { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--po-teal-ink, var(--po-teal)); color: var(--po-surface); font-size: .8rem; font-weight: 800; }
.pt-cflow-route li > span .po-icon { width: 14px; height: 14px; }
.pt-cflow-route li > div { display: grid; gap: 2px; }
.pt-cflow-route small { color: var(--po-muted); font-size: .8rem; }
.pt-cflow-original { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; font-size: .78rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.pt-cflow-original:focus-visible { outline: none; box-shadow: var(--po-focus); border-radius: 8px; }
@container (max-width: 340px) {
  .pt-cflow-banner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-cflow-banner { animation: pt-cflow-in .2s ease-out; }
  @keyframes pt-cflow-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
@media (forced-colors: active) {
  .pt-cflow-banner { border: 1px solid CanvasText; background: Canvas; }
  .pt-cflow-route li > span { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
  .pt-cflow-original:focus-visible { outline: 2px solid Highlight; }
}

/* S615z (UI design only): commit outcome in flow sheets – parity with native PartnerCommitPreview.
   Every outcome is rendered; the sheet's data-commit shows exactly one, hidden ones stay display:none. */
.pt-commit-outcome > p { display: none; margin: 0; }
.pt-flow-sheet[data-commit="done"] .pt-commit-done,
.pt-flow-sheet[data-commit="incomplete"] .pt-commit-reason,
.pt-flow-sheet[data-commit="working"] .pt-commit-busy { display: flex; }
.pt-commit-outcome > p { align-items: flex-start; gap: 8px; font-size: .875rem; line-height: 1.4; }
.pt-commit-outcome .po-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pt-commit-done { padding: 10px 12px; border-radius: 12px; background: var(--po-teal-soft); color: var(--po-text); }
.pt-commit-done .po-icon { color: var(--po-teal-ink, var(--po-teal)); }
.pt-commit-done > span:last-child { display: grid; gap: 2px; min-width: 0; }
.pt-commit-done small { color: var(--po-muted); }
.pt-commit-reason, .pt-commit-busy { color: var(--po-muted); }
.pt-flow-sheet[data-commit="incomplete"] .pt-flow-actions .po-button-primary { opacity: .55; }
.pt-commit-spinner { flex: none; width: 16px; height: 16px; margin-top: 2px; border: 2px solid var(--po-line-strong); border-top-color: var(--po-teal); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .pt-commit-spinner { animation: pt-open-spin .9s linear infinite; }
  .pt-flow-sheet[data-commit="done"] .pt-commit-done { animation: pt-flow-in .24s ease-out both; }
}

/* S616a (UI design only): destructive confirmation and undo strip in flow sheets – parity with native
   PartnerDestructiveConfirmPanel / PartnerUndoStrip. Shown only via data-commit, never as a real result. */
.pt-button-danger { color: var(--po-danger, #b42318); }
.pt-button-danger-solid { min-height: 44px; border: 0; color: #fff; background: color-mix(in srgb, var(--po-danger, #b42318) 60%, transparent); }
.pt-commit-confirm { display: none; gap: 10px; padding: 14px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--po-danger, #b42318) 28%, transparent);
  background: color-mix(in srgb, var(--po-danger, #b42318) 7%, var(--po-surface, #fff)); }
.pt-flow-sheet[data-commit="confirm"] .pt-commit-confirm { display: flex; }
.pt-commit-confirm-icon .po-icon { width: 20px; height: 20px; color: var(--po-danger, #b42318); }
.pt-commit-confirm > div { display: grid; gap: 6px; min-width: 0; }
.pt-commit-confirm strong { font-size: 1rem; color: var(--po-text); }
.pt-commit-confirm small { color: var(--po-muted); line-height: 1.4; }
.pt-commit-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.pt-commit-confirm-actions .po-button { min-height: 44px; justify-content: center; }
.pt-commit-undo { align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; color: #fff; background: #222929; }
.pt-flow-sheet[data-commit="undo"] .pt-commit-undo { display: flex; }
.pt-commit-undo > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pt-commit-undo small { opacity: .85; }
.pt-commit-undo .po-icon { width: 18px; height: 18px; }
.pt-commit-undo button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700;
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .6); }
html[data-theme="dark"] .pt-commit-undo { background: #334040; }
/* Phone width or large text: the consequence buttons and the undo action stack instead of squeezing. */
@media (max-width: 420px) {
  .pt-commit-confirm-actions { grid-template-columns: 1fr; }
  .pt-commit-undo { flex-wrap: wrap; }
  .pt-commit-undo button { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-flow-sheet[data-commit="confirm"] .pt-commit-confirm,
  .pt-flow-sheet[data-commit="undo"] .pt-commit-undo { animation: pt-flow-in .24s ease-out both; }
}
@media (forced-colors: active) {
  .pt-commit-confirm, .pt-commit-undo { border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
  .pt-commit-undo button, .pt-button-danger-solid { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
}

/* PR860 S616b (UI design only): row context menu – "⋯" beside a tappable row, right-click and
   Shift+F10 open the same local menu (Öppna, Kopiera text) above a preview of the row. Popover at
   the pointer on tablet/desktop, bottom sheet on phone widths. Nothing is read or written. */
.pt-ctx-host { display: flex; align-items: center; gap: 2px; }
.pt-ctx-host > .pt-status-tap { flex: 1; min-width: 0; }
.pt-ctx-more { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--po-muted); cursor: pointer; }
.pt-ctx-more .po-icon { width: 18px; height: 18px; }
.pt-ctx-more:hover, .pt-ctx-more[aria-expanded="true"] { background: var(--po-surface-2); color: var(--po-text); }
.pt-ctx-more:focus-visible { outline: none; box-shadow: var(--po-focus); }
.pt-ctx { position: fixed; z-index: 60; display: grid; gap: 6px; width: min(320px, calc(100vw - 16px)); padding: 6px; border: 1px solid var(--po-line); border-radius: 14px; background: var(--po-surface); box-shadow: var(--po-shadow), 0 18px 40px rgb(0 0 0 / .18); color: var(--po-text); }
.pt-ctx-preview { display: grid; gap: 3px; padding: 10px 10px 12px; border-bottom: 1px solid var(--po-line); }
.pt-ctx-preview strong { font-size: .95rem; overflow-wrap: anywhere; }
.pt-ctx-preview small { color: var(--po-muted); font-size: .8rem; overflow-wrap: anywhere; }
.pt-ctx-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--po-muted); font-size: .74rem; }
.pt-ctx-note .po-icon { flex: none; width: 14px; height: 14px; }
.pt-ctx-items { display: grid; }
.pt-ctx-items button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--po-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.pt-ctx-items button .po-icon { width: 16px; height: 16px; color: var(--po-muted); }
.pt-ctx-items button:hover, .pt-ctx-items button:focus-visible { outline: none; background: var(--po-surface-2); }
.pt-ctx-items button:focus-visible { box-shadow: var(--po-focus); }
.pt-ctx-status { margin: 0; padding: 0 10px; color: var(--po-success); font-size: .8rem; font-weight: 700; }
.pt-ctx-status:empty { display: none; }
@media (max-width: 599px) {
  .pt-ctx { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .pt-ctx-items button { min-height: 48px; }
}
@media (pointer: coarse) { .pt-ctx-items button { min-height: 48px; } }
@media (prefers-reduced-motion: no-preference) {
  .pt-ctx { animation: pt-ctx-in .16s ease-out both; transform-origin: top right; }
  .pt-ctx-more { transition: background-color .15s ease; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 599px) { .pt-ctx { animation-name: pt-ctx-sheet; } }
@keyframes pt-ctx-in { from { opacity: 0; transform: scale(.97); } }
@keyframes pt-ctx-sheet { from { opacity: 0; transform: translateY(16px); } }
@media (forced-colors: active) {
  .pt-ctx { border: 1px solid CanvasText; }
  .pt-ctx-items button:focus-visible, .pt-ctx-more:focus-visible { outline: 2px solid Highlight; }
}
@media print { .pt-ctx, .pt-ctx-more { display: none; } }

/* PR860 S616e (UI design only): touch swipe on a menu row opens the same menu. The row follows the
   finger a little and a "Fler val" cue appears behind it; it springs back on release. Vertical pan
   stays with the page (touch-action). Reduced motion: no movement, only the cue. */
@media (pointer: coarse) {
  .pt-root :is(.pt-status-tap, .pt-offer-row, .pt-cov-block, .pt-cov-open, .pt-cust-product, [data-ptool-open]) { touch-action: pan-y; }
}
.pt-root [data-swiping="true"] { position: relative; transform: translateX(var(--pt-swipe-x, 0)); }
.pt-root [data-swiping="true"]::after { content: "Fler val"; position: absolute; inset-block: 0; inset-inline-start: 100%; display: grid; place-items: center; width: 84px; margin-inline-start: 4px; border-radius: 10px; background: var(--po-surface-2); color: var(--po-muted); font-size: .78rem; font-weight: 700; pointer-events: none; }
.pt-root [data-swipe-ready="true"]::after { background: var(--po-text); color: var(--po-surface); }
@media (prefers-reduced-motion: reduce) {
  .pt-root [data-swiping="true"]::after { inset-inline-start: auto; inset-inline-end: 0; margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .pt-root :is(.pt-status-tap, .pt-offer-row, .pt-cov-block, .pt-cov-open, .pt-cust-product, [data-ptool-open]):not([data-swiping]) { transition: transform .2s ease-out, background-color .15s ease, color .15s ease, border-color .15s ease; }
}
@media (forced-colors: active) {
  .pt-root [data-swiping="true"]::after { border: 1px solid CanvasText; background: Canvas; color: CanvasText; }
  .pt-root [data-swipe-ready="true"]::after { background: Highlight; color: HighlightText; }
}

/* S616d (UI design only): the web counterpart of native haptics – one calm visual pulse when an
   outcome strip appears (done = teal, confirm = danger, undo = neutral). Runs once, never loops, carries no meaning by itself (the strip text does),
   and is absent under reduced motion and forced colors. */
@keyframes pt-outcome-pulse {
  0% { box-shadow: 0 0 0 0 var(--pt-pulse, color-mix(in srgb, var(--po-teal) 38%, transparent)); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
.pt-commit-confirm { --pt-pulse: color-mix(in srgb, var(--po-danger, #b42318) 32%, transparent); }
.pt-commit-undo { --pt-pulse: rgba(34, 41, 41, .28); }
html[data-theme="dark"] .pt-commit-undo { --pt-pulse: rgba(160, 190, 190, .28); }
@media (prefers-reduced-motion: no-preference) {
  .pt-flow-sheet[data-commit="done"] .pt-commit-done { animation: pt-flow-in .24s ease-out both, pt-outcome-pulse .7s ease-out .12s 1; }
  .pt-flow-sheet[data-commit="confirm"] .pt-commit-confirm,
  .pt-flow-sheet[data-commit="undo"] .pt-commit-undo { animation: pt-flow-in .24s ease-out both, pt-outcome-pulse .7s ease-out .12s 1; }
}
@media (forced-colors: active) {
  .pt-commit-done, .pt-commit-confirm, .pt-commit-undo { animation: none !important; box-shadow: none !important; }
}

/* PR860 S616f: preview refresh row – "Uppdatera visningen" with a calm time line. 44px target,
   wraps under the button on phones, one line on tablet/desktop; the icon only turns while busy and
   stands still for reduced motion; forced colors keep the button outline. */
.pt-refresh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pt-refresh { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.pt-refresh[aria-disabled="true"] { opacity: .7; cursor: progress; }
.pt-refresh-time { color: var(--po-muted); font-size: .82rem; min-width: 0; }
@media (max-width: 560px) { .pt-refresh-row { flex-direction: column; align-items: stretch; } .pt-refresh { justify-content: center; } }
@media (prefers-reduced-motion: no-preference) { .pt-refresh[data-busy="true"] .po-icon { animation: pt-refresh-spin 1s linear infinite; } }
@keyframes pt-refresh-spin { to { transform: rotate(360deg); } }
@media (forced-colors: active) { .pt-refresh { border: 1px solid ButtonText; } .pt-refresh-time { color: CanvasText; } }

/* PR860 S616g: pointer hover parity with the iPad app. Only on devices with a real pointer
   (hover: hover and pointer: fine), so touch never leaves a sticky highlight; selected/pressed chips
   keep their own colours. Keyboard focus always shows the same ring as the rest of Partner. No
   motion is added; forced colors fall back to a system outline. */
.pt-segmented button:focus-visible, .pt-cust-chip:focus-visible, .pt-flow-missing:focus-visible,
.pt-kds-open:focus-visible, .pt-cal-switch:focus-visible,
.pt-ctx-more:focus-visible, .pt-refresh:focus-visible { outline: none; box-shadow: var(--po-focus); border-radius: 10px; }
@media (hover: hover) and (pointer: fine) {
  .pt-chip:not([aria-pressed="true"]):hover,
  .pt-segmented button:not([aria-pressed="true"]):not([aria-selected="true"]):hover,
  .pt-back:hover, .pt-refresh:not([aria-disabled="true"]):hover { background: var(--po-surface-2); border-color: var(--po-line-strong, var(--po-line)); }
  .pt-cust-chip:not([aria-pressed="true"]):hover,
  .pt-cal-day:not([aria-selected="true"]):not([aria-pressed="true"]):hover { filter: brightness(.96); }
  .pt-cal-nav-button:hover, .pt-flow-step:not(:disabled):hover { background: var(--po-line); }
  .pt-cal-switch:hover, .pt-own-toggle:hover { background: var(--po-surface-2); border-radius: 10px; }
  .pt-entrance-kind:not([aria-pressed="true"]):hover,
  .pt-flow-option:not([aria-pressed="true"]):not([aria-checked="true"]):hover,
  .pt-bulk-conflict:not([aria-pressed="true"]):hover { border-color: var(--po-teal); background: var(--po-surface-2); }
  .pt-flow-missing:not([aria-pressed="true"]):hover { filter: brightness(.95); }
  .pt-kds-late-btn:hover { filter: brightness(.92); }
  .pt-kds-open:hover, .pt-cflow-original:hover { color: var(--po-teal-ink, var(--po-teal)); }
}
@media (hover: none) {
  .pt-tile:hover:not(:focus-visible) { box-shadow: none; }
}
@media (forced-colors: active) {
  .pt-segmented button:focus-visible, .pt-cust-chip:focus-visible, .pt-flow-missing:focus-visible,
  .pt-bulk-conflict:focus-visible, .pt-kds-open:focus-visible, .pt-cal-switch:focus-visible,
  .pt-refresh:focus-visible { outline: 2px solid Highlight; }
  .pt-chip:hover, .pt-entrance-kind:hover, .pt-flow-option:hover, .pt-bulk-conflict:hover { outline: 1px solid Highlight; filter: none; }
}

/* PR860 S616i M05 (UI design only): media send states – progress under the title, pill and action at the end. */
.pt-media-send { align-items: flex-start; }
.pt-media-send .pt-growth-bar { display: block; margin-top: 8px; max-width: 320px; }
.pt-media-send .pt-growth-bar[data-tone="danger"] > span { background: var(--po-danger); }
.pt-media-send .pt-growth-bar[data-tone="warning"] > span { background: var(--po-warning); }
.pt-media-send-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 10px; }
@media (max-width: 560px) { .pt-media-send { flex-wrap: wrap; } .pt-media-send-end { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .pt-media-send .pt-growth-bar > span { transition: none; } }
/* S852 P05 Kapacitetspuls: the change outcome takes its tone; the pause confirmation and per-order "+N min" stay 44px. */
.pt-cap-outcome { padding: 10px 12px; border-radius: 12px; background: var(--po-surface-2, rgba(0, 0, 0, .04)); }
.pt-cap-outcome[data-tone="success"] { color: var(--po-success); }
.pt-cap-outcome[data-tone="danger"] { color: var(--po-danger); }
.pt-cap-outcome[data-tone="info"] { color: var(--po-muted); }
.pt-cap-confirm { display: grid; gap: 6px; margin-top: 10px; padding: 12px; border: 1px solid var(--po-line); border-radius: 12px; }
.pt-cap-confirm small, .pt-flow-card > .pt-open-ask { color: var(--po-muted); }
.pt-flow-card > .pt-open-ask { margin: 10px 0 0; font-weight: 600; }
.pt-cap-orders .pt-cap-order { flex-wrap: wrap; }
.pt-cap-orders .pt-cap-order > .pt-flow-row-main { flex: 1 1 140px; }
.pt-cap-order strong { font-variant-numeric: tabular-nums; }
.pt-cap-add { min-height: 44px; min-width: 76px; }

/* PR860 S1200 (P23 Butiksexperiment): the real product images and the order being tested. */
.pt-exp-shot { display: grid; gap: 8px; justify-items: start; }
.pt-exp-photo { width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--po-surface-muted, #f2f2f2); }
.pt-exp-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pt-exp-image { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; overflow: hidden; }
.pt-exp-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pt-exp-image[aria-checked="true"] { border-color: var(--po-brand, #111); }
.pt-exp-image:focus-visible { outline: 2px solid var(--po-focus, #2563eb); outline-offset: 2px; }
.pt-exp-order { display: grid; gap: 6px; margin: 0; padding-left: 1.4em; }
.pt-exp-order li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* PR860 S1228: L02 Inventering – one count field per row and its state line. */
.pt-count-input { flex: 0 0 9rem; width: 9rem; min-height: 44px; padding: 8px 10px; border: 1px solid var(--po-line); border-radius: 10px; font: inherit; font-variant-numeric: tabular-nums; text-align: right; background: var(--po-surface, #fff); color: inherit; }
.pt-count-input::placeholder { color: var(--po-muted); }
/* S1230: L07 recipe lines and the recipe editor's item/quantity pairs. */
.pt-prep-lines { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.pt-prep-lines li { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .92em; }
.pt-prep-lines small { color: var(--po-muted); font-variant-numeric: tabular-nums; }
.pt-prep-lines small[data-tone="danger"] { color: var(--po-danger, #b42318); }
.pt-prep-edit-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
@media (max-width: 420px) { .pt-prep-edit-line { grid-template-columns: 1fr; } }
.pt-flow-row-note { display: inline; font-size: .8rem; font-weight: 600; }
.pt-flow-row-note[data-tone="danger"] { color: var(--po-danger, #b42318); }
.pt-flow-row-note[data-tone="warning"] { color: var(--po-warning, #b54708); }
.pt-flow-row-note[data-tone="success"] { color: var(--po-success, #067647); }
.pt-flow-row-note[data-tone="info"] { color: var(--po-ink, inherit); }
@media (max-width: 420px) { .pt-count-input { flex-basis: 7rem; width: 7rem; } }

/* PR860 S1283 (owner E39): tables with their QR codes in P31 Bordsbeställning. */
.pt-table-list .pt-table-row { display: flex; align-items: flex-start; gap: 12px; }
.pt-table-qr { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: #fff; }
.pt-table-qr svg { display: block; width: 100%; height: 100%; }
.pt-table-main { display: grid; gap: 6px; min-width: 0; }
.pt-table-main .pt-flow-actions { flex-wrap: wrap; }
@media (forced-colors: active) { .pt-table-qr { forced-color-adjust: none; } }

/* Owner POS shift handoff §4 "Ansvarig för kassan": the answer to a takeover or end of shift, under its terminal. */
.pt-till-notice { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; border: 1px solid var(--po-border, currentColor); }
.pt-till-notice[data-tone="success"] { border-color: var(--po-success); }
.pt-till-notice[data-tone="danger"] { border-color: var(--po-danger); }
.pt-till-notice[data-tone="warning"] { border-color: var(--po-warning, #b26a00); }
.pt-till-limits { margin: 4px 0 0; padding-left: 1.2em; font-size: 0.9rem; line-height: 1.45; }
.pt-till-limits li + li { margin-top: 4px; }
@media (forced-colors: active) { .pt-till-notice { border-color: CanvasText; } }
