.om-component { box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); min-inline-size: 0; margin: 0; padding: var(--space-4); border: 0; text-align: start; color: var(--paper); background: transparent; font: var(--weight-regular) var(--text-ui)/var(--leading-ui) var(--font-ui); }
.om-component :is(p,h2,dl,dd) { margin: 0; }
.om-component [hidden],.om-component [data-component-controls]:empty,.om-component [data-component-records]:empty,.om-component [data-component-actions]:empty { display: none; }
.om-component[data-size="card"] { inline-size: min(100%, var(--card-auto-max)); min-block-size: var(--card-min-height); }
.om-component[data-size="card"][data-sheet="true"],.om-component[data-size="folded"][data-sheet="true"] { border-radius: var(--radius-sheet); background: color-mix(in srgb,var(--table) var(--sheet-alpha),transparent); box-shadow: var(--raise-2), var(--sheet-edge); }
.om-component[data-size="tile"],.om-component[data-size="folded"] { cursor: pointer; }
.om-component[data-size="tile"] { max-inline-size: 100%; min-block-size: var(--tray-height); gap: var(--space-1); padding: var(--space-2) var(--space-3); }
.om-component .om-title { display: inline-block; min-inline-size: 0; padding: 0; border: 0; background: transparent; color: var(--paper); font: var(--weight-strong) var(--text-ui)/var(--leading-ui) var(--font-ui); text-align: start; overflow-wrap: anywhere; }
.om-component button.om-title { min-block-size: var(--hit-min); cursor: pointer; }
.om-component[data-size="tile"] .om-title,.om-component[data-size="folded"] .om-title { color: var(--paper-2); font-size: var(--text-small); font-weight: var(--weight-medium); }
.om-component-heading { display: block; position: relative; }
/* om-5wtki (1): a title's definition is drawn by the kit's floating tooltip (system/tip.js, data-tip), never a box inside the tile. */
.om-component[data-size="page"] { inline-size: 100%; padding: var(--space-6); gap: var(--space-4); }
.om-component[data-size="page"] .om-title { font: var(--weight-regular) var(--text-title)/var(--leading-tight) var(--font-voice); }
.om-component .om-definition { margin-block-start: var(--space-2); color: var(--paper-2); font: var(--weight-regular) var(--text-voice)/var(--leading-voice) var(--font-voice); max-inline-size: var(--page-measure); }
.om-reading,.om-reading-label,.om-qualifier,.om-change { display: block; }
.om-reading-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); }
.om-component [data-figure] { color: var(--paper); font: var(--weight-medium) var(--figure-medium)/var(--leading-tight) var(--font-figure); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-figure); }
.om-component[data-size="tile"][data-lead] [data-figure] { font-size: var(--figure-lead); }
html[data-page] .om-component[data-size="tile"][data-lead] [data-figure] { font-size: var(--figure-medium); }
.om-component[data-size="page"] [data-figure] { font-size: var(--figure-answer); }
.om-reading-label,.om-matched,.om-qualifier,.om-change,.om-coverage-line,.om-state-copy,.om-build-label { font-size: var(--text-small); color: var(--paper-2); }
.om-matched { white-space: nowrap; }
.om-change-mark { color: var(--paper-3); }
/* om-eyu49: a tile's quiet second figure beside its hero (the orders on Net sales, after ads on Profit). */
.om-second { font-size: var(--text-small); color: var(--paper-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.om-second-change { color: var(--paper-3); }
.om-second-with { white-space: nowrap; margin-inline-start: 0.3ch; }
/* On a card (a Full dashboard well) the second figure has its own line under the hero's comparison, with no separator. */
.om-component[data-size="card"] .om-second-with { display: block; margin-inline-start: 0; }
.om-component[data-size="card"] .om-second-gap { display: none; }
.om-second-amount { display: inline-flex; align-items: baseline; gap: 0.3ch; white-space: nowrap; margin-inline-start: var(--space-2); }
.om-second-figure { font: var(--weight-medium) var(--figure-small)/var(--leading-tight) var(--font-figure); letter-spacing: var(--tracking-figure); color: var(--paper); font-variant-numeric: tabular-nums; }
.om-component[data-size="tile"][data-lead] .om-second-figure { font-size: var(--figure-medium); }
.om-second-unit { font-size: var(--text-small); color: var(--paper-2); }
/* om-jl12e: on a band tile the second figure sits on the comparison line (anatomy.js), at that line's size. */
.om-component[data-size="tile"] .om-change .om-second-amount { margin-inline-start: 0; }
.om-component[data-size="tile"] .om-change .om-second-figure { font-size: inherit; line-height: inherit; }
.om-component[data-size="tile"] .om-change .om-second-unit { font-size: inherit; }
.om-change[data-judgement="good"] .om-change-mark { color: var(--status-good); }
.om-change[data-judgement="bad"] .om-change-mark,.om-component[data-state="stale"] .om-state-copy { color: var(--status-attention); }
.om-component[data-state="disconnected"] [data-figure],.om-component[data-day-behind] [data-figure] { color: var(--paper-2); }
.om-state-copy,.om-stack-attention,.om-build-actions,.om-component [data-component-actions],.om-component [data-component-records] { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.om-state-copy .om-state-icon { color: var(--status-attention); }
.om-figure-caption,.om-figure-note { margin: 0; color: var(--paper-2); font: var(--text-small)/var(--leading-ui) var(--font-ui); }
.om-figure-note { font-family: var(--font-voice); line-height: var(--leading-voice); }
/* om-h450z.3: the card leads with the answer; a table carries its totals. */
.om-lead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2) var(--space-5); }
.om-lead .om-reading { min-inline-size: 0; }
.om-component[data-size="card"] .om-lead[data-count="3"] [data-figure] { font-size: var(--figure-small); }
.om-figure-totals { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); margin: 0; padding-block-start: var(--space-1); border-block-start: 1px solid var(--rule-strong); color: var(--paper-2); font: var(--weight-medium) var(--text-small)/var(--leading-ui) var(--font-ui); }
.om-figure-totals .om-total-count { color: var(--paper); }
/* om-xvl4i (2): a table card's foot is one line where it fits: the totals, then the 'n of m columns' note at its end. A
   flex line takes the note beside the totals only when both fit at their full width; else the note wraps under them. */
.om-table-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-3); }
.om-table-foot:has(> .om-figure-totals) { padding-block-start: var(--space-1); border-block-start: 1px solid var(--rule-strong); }
.om-table-foot > .om-figure-totals { flex: 1 1 auto; padding-block-start: 0; border-block-start: 0; }
.om-table-foot > :is(.om-figure-caption, .om-figure-note) { flex: 0 0 auto; margin-inline-start: auto; }
.om-table-foot > [hidden] { display: none; }
.om-figure-totals .om-total-value { color: var(--paper); font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
.om-component-table tfoot :is(td,th) { border-block-end: 0; border-block-start: 1px solid var(--rule-strong); color: var(--paper); font-weight: var(--weight-medium); white-space: nowrap; }
.om-component-table tfoot td { font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
.om-component-chart,.om-component [data-component-figure] { display: block; min-inline-size: 0; }
.om-component [data-component-figure] { inline-size: 100%; }
.om-component-chart svg { display: block; max-inline-size: 100%; }
.om-component[data-size="card"] [data-component-figure] { min-block-size: var(--space-16); }
.om-baseline { display: block; inline-size: 100%; min-block-size: var(--space-4); border-block-end: 1px solid var(--chart-axis); }
.om-skeleton { display: block; inline-size: 5ch; block-size: var(--figure-medium); border-radius: var(--radius-inner); background: var(--skeleton); }
.om-component[data-size="page"] .om-skeleton { block-size: var(--figure-answer); }
.om-gap-slot { display: inline-block; min-block-size: var(--space-2); inline-size: var(--space-6); border: var(--partial-stroke) dashed var(--paper-3); border-radius: var(--radius-mark); }
.om-component:is([data-state="needs-source"],[data-state="needs-access"],[data-state="building"]) { outline: 1px dashed var(--paper-3); outline-offset: -1px; }
.om-component[data-held="true"] { opacity: var(--held-alpha); }
.om-coverage { display: flex; flex-wrap: wrap; align-items: start; border-block: 1px solid var(--rule); }
.om-coverage > div { flex: 1 1 12ch; min-inline-size: 0; padding: var(--space-2) var(--space-3); }
.om-coverage > div + div { border-inline-start: 1px solid var(--rule); }
.om-coverage dt,.om-control-label { font-weight: var(--weight-strong); }
.om-coverage dd { color: var(--paper-2); font-size: var(--text-small); }
.om-coverage-meter { -webkit-appearance: none; appearance: none; display: block; inline-size: 100%; block-size: var(--space-1); border: 0; border-radius: var(--radius-inner); overflow: hidden; margin-block: var(--space-1); background: var(--lamp-wash); }
.om-coverage-meter::-webkit-meter-bar { block-size: 100%; background: var(--lamp-wash); border: 0; }
.om-coverage-meter::-webkit-meter-optimum-value { background: var(--lamp-mark); }
.om-coverage-meter::-moz-meter-bar { background: var(--lamp-mark); }
.om-coverage-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-component-sources,.om-source,.om-source-object,.om-source-mark { display: inline-flex; align-items: center; gap: var(--space-1); }
.om-component-sources { flex-wrap: wrap; }
.om-source-object { position: relative; }
.om-source-object > .om-state-icon { position: absolute; inset-inline-end: calc(-1 * var(--space-1)); inset-block-end: 0; inline-size: var(--icon-s); block-size: var(--icon-s); background: var(--table); color: var(--status-attention); }
.om-source-mark,.om-source-mark > svg { inline-size: var(--om-source-size); block-size: var(--om-source-size); }
.om-source-mark { flex: none; color: var(--paper-2); }
.om-source-mark svg text { fill: currentColor; font: var(--weight-strong) var(--text-ui) var(--font-ui); }
.om-mark-base { fill: var(--well); stroke: var(--paper-3); }
.om-source-more,.om-source-name { color: var(--paper-2); font-size: var(--text-small); }
.om-maker { font: italic var(--weight-regular) var(--text-small)/var(--leading-voice) var(--font-voice); color: var(--paper-2); }
.om-component[data-size="page"] .om-source { flex-direction: column; }
.om-component[data-size="page"] .om-component-sources { align-items: end; gap: var(--space-3); }
.om-component[data-size="folded"] { inline-size: var(--card-fold-width); block-size: var(--card-fold-height); display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 1fr 1fr; align-content: center; align-items: center; gap: 0 var(--space-1); padding: var(--space-1) var(--space-2); }
.om-component[data-size="folded"] .om-component-heading { grid-column: 1; }
.om-component[data-size="folded"] .om-component-sources { grid-column: 2; grid-row: 1; justify-self: end; }
.om-component[data-size="folded"] .om-reading,.om-component[data-size="folded"] .om-state-copy { grid-row: 2; }
.om-component[data-size="folded"]:not(:has(.om-state-copy)) .om-reading,
.om-component[data-size="folded"]:not(:has(.om-reading)) .om-state-copy { grid-column: 1 / -1; }
.om-component[data-size="folded"]:has(.om-matched) { grid-template-columns: minmax(0,1fr) auto auto; }
.om-component[data-size="folded"]:has(.om-matched) .om-reading { grid-column: 1 / -1; }
.om-component[data-size="folded"]:has(.om-matched) .om-state-copy { grid-column: 2; grid-row: 1; }
.om-component[data-size="folded"]:has(.om-matched) .om-component-sources { grid-column: 3; }
.om-component[data-size="folded"] .om-state-copy { justify-self: start; gap: var(--space-1); font-size: var(--text-small); }
.om-component[data-size="folded"] .om-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-inline-size: 100%; display: block; }
.om-component[data-size="folded"] [data-figure] { font-size: var(--figure-small); }
.om-component[data-size="folded"] .om-qualifier { display: none; }
.om-component[data-size="folded"] .om-coverage-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.om-control-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); border-block-start: 1px solid var(--rule); padding-block: var(--space-2); }
.om-stack { border: 1px solid var(--rule-strong); background: var(--table); box-shadow: var(--raise-2); }
.om-stack-attention { color: var(--status-attention); }
@media (forced-colors: active) {
  .om-component:is([data-state="needs-source"],[data-state="needs-access"],[data-state="building"]),.om-gap-slot { border: 1px dashed CanvasText; }
  .om-baseline { border-color: CanvasText; }
}

.om-source-art {
  display:block; width:100%; height:100%; background-image:url("./world-sources.png"); background-repeat:no-repeat;
  background-size:calc(var(--om-source-size) * 15.2) calc(var(--om-source-size) * 1.9);
  background-position:calc(var(--om-source-size) * (-1.9 * var(--om-object-index) - .45)) calc(var(--om-source-size) * -.24);
}
.om-component[data-size="card"] { padding:0 var(--space-4) var(--space-3); gap:var(--space-2); }
.om-component[data-size="card"] .om-component-heading { display:flex; align-items:center; block-size:var(--card-head); flex:none; }
.om-component[data-size="card"] .om-title { flex:1; align-self:stretch; cursor:grab; user-select:none; touch-action:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.om-component[data-size="card"] .om-title:active { cursor:grabbing; }
.om-open-mark { display:grid; place-items:center; flex:none; padding:0; inline-size:var(--hit-min); block-size:var(--hit-min); border:0; border-radius:var(--radius-inner); color:var(--paper-3); background:transparent; cursor:pointer; }
.om-open-mark:hover { color:var(--lamp-ink); background:var(--wash-hover); }
.om-open-mark svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.om-component[data-size="card"] .om-component-chart,.om-component[data-size="card"] .om-component-table { inline-size:min(100%,276px); margin-inline:auto; }
.om-component[data-size="card"] .om-component-chart [data-component-figure] { block-size:120px; }
.om-component[data-size="card"] .om-component-chart svg { width:100%; height:100%; }
.om-card-ground { position:absolute; pointer-events:none; inset-inline:var(--space-8); inset-block-start:100%; height:9px; border-inline:1px solid var(--paper-4); }
.om-card-ground::after { content:""; position:absolute; inset-inline:calc(-1 * var(--space-3)); bottom:calc(-1 * var(--space-1)); height:var(--space-1); border-radius:50%; background:var(--world-cast); filter:blur(3px); }
.om-component[data-size="card"] .om-component-sources { border-block-start:1px solid var(--rule); padding-block-start:var(--space-2); }
.om-component .om-definition { font-style:italic; }
.om-component-table { overflow-x:auto; }
.om-component-table table { width:100%; border-collapse:collapse; text-align:start; font:var(--weight-medium) var(--text-small)/var(--leading-ui) var(--font-ui); }
.om-component-table :is(td,th) { padding:var(--space-1) var(--space-2); border-block-end:1px solid var(--rule); text-align:start; }
.om-component-table td:last-child { text-align:end; font-family:var(--font-figure); }
/* om-nu8xa (PM1a): a card read two ways ('Breakdown | Over time') has a small switch in its head, before the open mark.
   On a canvas card it shows on hover or keyboard focus only; the view stays the one last chosen. At full size it shows. */
.om-card-views { display:inline-flex; flex:none; align-items:center; gap:1px; padding:1px; margin-inline:var(--space-1); background:var(--well); border:1px solid var(--rule); border-radius:var(--radius-control); }
.om-card-views button { border:0; background:transparent; color:var(--paper-3); min-block-size:22px; padding-inline:var(--space-2); font:var(--text-small)/1 var(--font-ui); border-radius:var(--radius-inner); cursor:pointer; white-space:nowrap; }
.om-card-views button:hover { color:var(--paper); background:var(--wash-hover); }
.om-card-views button[aria-pressed="true"] { background:var(--lit); color:var(--paper); box-shadow:var(--raise-1); }
.om-card-views button:focus-visible { outline:none; box-shadow:var(--focus-ring); }
.om-component[data-size="card"] .om-card-views { opacity:0; pointer-events:none; transition:opacity var(--dur-quick) ease; }
.om-component[data-size="card"]:is(:hover,:focus-within) .om-card-views { opacity:1; pointer-events:auto; }
@media (prefers-reduced-motion: reduce) { .om-component[data-size="card"] .om-card-views { transition:none; } }
.om-view-switch { display:inline-flex; align-self:flex-start; background:var(--well); border:1px solid var(--rule); border-radius:var(--radius-control); }
.om-view-switch button { border:0; background:transparent; color:var(--paper-2); min-height:var(--hit-min); padding-inline:var(--space-3); font:inherit; border-radius:inherit; cursor:pointer; }
.om-view-switch button[aria-pressed="true"] { background:var(--lit); color:var(--paper); box-shadow:var(--raise-1); }
.om-component[data-size="page"] .om-component-chart svg { width:100%; height:clamp(120px,16vw,200px); }
/* om-5wtki: three columns, so the foot's comparison runs up to the source marks (it stopped at the line's 72 px column:
   '▲ 11 vs prior 7…' at 1440); the line spans the last two. */
.om-component[data-size="tile"] { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-content:center; align-items:center; gap:var(--space-1); }
.om-component[data-size="tile"] > .om-component-heading { grid-column:1 / -1; }
.om-component[data-size="tile"] > .om-reading { display:contents; }
/* Ruling WF2: "before shipping cost and packing" wraps in two short lines beside the figure, never over it. */
.om-component[data-size="tile"] .om-qualifier[data-leaves-out] { max-inline-size:18ch; text-wrap:balance; }
/* Ruling WF2a (om-vc1ek): and never past two lines ("before shipping cost and packing, product costs estimated at 40% of
   price" was cut off at three); the whole words stay the door's and the card's (its total's hover, its foot tag). */
.om-component[data-size="tile"] .om-qualifier[data-leaves-out] { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden; }
.om-component[data-size="tile"] .om-qualifier-more { display:none; }
.om-component[data-size="tile"] .om-qualifier[data-leaves-out][data-gave-way] { display:none; }
.om-component[data-size="tile"] .om-reading-amount { grid-row:2; grid-column:1 / -1; gap:var(--space-1); }
.om-component[data-size="tile"][data-lead] .om-reading-amount { grid-column:1; }
.om-component[data-size="tile"] .om-change,.om-component[data-size="tile"] .om-state-copy { grid-row:3; grid-column:1 / 3; align-self:center; }
.om-component[data-size="tile"]:has(> .om-state-copy) .om-change { display:none; }
.om-component[data-size="tile"] .om-component-heading:has(> .om-state-door) { display:flex; align-items:center; justify-content:space-between; gap:var(--space-1); }
.om-component[data-size="tile"] .om-component-heading:has(> .om-state-door) .om-title { overflow-wrap:normal; }
.om-component[data-size="tile"]:has(.om-component-heading > .om-state-door) .om-change { white-space:nowrap; }
.om-component[data-size="tile"] .om-component-heading > .om-state-door { flex:none; flex-wrap:nowrap; white-space:nowrap; }
.om-component[data-size="tile"] .om-component-heading > .om-state-door[data-mark-only] { font-size:0; gap:0; }
.om-component[data-size="tile"] .om-component-heading > .om-state-door:active { background:var(--wash-hover); color:var(--paper); }
/* om-lc7yq (5): a tile's cost door ('Add costs', 'Refine product costs') is an invitation, not a fault: the card foot's
   quiet tag (controls.css .om-quiet-tag), its words in the quiet ink inside a hairline, its mark small and quiet, never
   the attention colour of a figure that is wrong. */
.om-component[data-size="tile"] .om-state-copy.om-state-door { display:inline-flex; align-items:center; gap:3px; padding:0 5px; border:1px solid var(--rule); border-radius:var(--radius-control); color:var(--paper-2); font-size:var(--text-small); line-height:1.25; }
.om-component[data-size="tile"] .om-state-copy.om-state-door .om-state-icon { inline-size:11px; block-size:11px; color:var(--paper-3); }
.om-component[data-size="tile"] .om-state-copy.om-state-door:is(:hover,:focus-visible) { color:var(--paper); border-color:var(--rule-strong); text-decoration:none; }
.om-component[data-size="tile"] .om-state-copy.om-state-door:is(:hover,:focus-visible) .om-state-icon { color:var(--paper-2); }
.om-profit-comparison { font-size:var(--text-small); color:var(--paper-2); }
.om-profit-comparison .om-change { display:inline; white-space:nowrap; }
/* om-5wtki, the Product Lead (iii): a comparison too wide for its tile says its amount alone (pin-tray.js data-fit). */
.om-change-amount { display:none; }
.om-change[data-fit~="amount"] .om-change-words { display:none; }
.om-change[data-fit~="amount"] .om-change-amount { display:inline; }
.om-change[data-fit~="bare"] .om-second-change { display:none; }
.om-change[data-fit~="second"] > :not(.om-second-with) { display:none; }
.om-change[data-fit~="second"] .om-second-gap { display:none; }
.om-change[data-fit~="second"] .om-second-with { margin-inline-start:0; }
.om-component[data-size="tile"] > .om-component-sources { grid-row:3; grid-column:3; justify-self:end; }
.om-component[data-size="tile"] > .om-component-chart { grid-row:2; grid-column:2 / -1; inline-size:72px; justify-self:end; }
.om-component[data-size="tile"] > .om-component-chart svg { height:30px; width:100%; }
/* om-kkoht (1): every tile with a by-day line draws it beside its figure, as the lead does (it was the lead's alone). */
.om-component[data-size="tile"]:not([data-lead]):not(:has(> .om-component-chart .spark)) .om-component-chart { display:none; }
.om-component[data-size="tile"]:has(> .om-component-chart .spark) .om-reading-amount { grid-column:1; }
.om-component[data-size="tile"] .om-coverage-line { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.om-component[data-size="tile"]:not(:has(.om-reading)) .om-state-copy { grid-row:2; grid-column:1 / -1; }
.om-frame-cell:has(.om-component) { padding:0; }
.om-frame-cell .om-component[data-size="tile"] { height:var(--tray-height); padding:var(--space-2) var(--space-3); }
.om-frame-sample[data-page] .om-component[data-size="tile"][data-lead] [data-figure] { font-size:var(--figure-medium); }

.om-component:focus-visible,.om-component button:focus-visible { box-shadow: var(--focus-ring); outline: 2px solid transparent; }

/* The scene updates these attributes without replacing a card or its chart. */
.om-component:is([data-size="card"],[data-size="folded"])[data-lit] {
  box-shadow: var(--raise-2), var(--glow-lamp);
}
.om-component:is([data-size="card"],[data-size="folded"])[data-receded]:not([data-lit])::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ground);
  opacity: var(--receded);
  pointer-events: none;
}
.om-component:is([data-size="card"],[data-size="folded"])[data-selected] {
  outline: 2px solid var(--lamp-ink);
  outline-offset: 1px;
}

/* A placed card's two feet share the centre of its projected ground shadow. */
:is(#world-cards .om-card-ground, .om-card-ground[data-stand]) {
  inset-inline: 0;
  border: 0;
}
:is(#world-cards .om-card-ground, .om-card-ground[data-stand])::after { content: none; }
:is(#world-cards .om-card-ground, .om-card-ground[data-stand])::before {
  content: "";
  position: absolute;
  inset-inline: 10%;
  inset-block-start: 2px;
  block-size: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--world-cast), transparent);
}
:is(#world-cards .om-card-ground, .om-card-ground[data-stand]) .om-card-leg {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: var(--space-8);
  inline-size: 1px;
  block-size: 9px;
  background: var(--paper-4);
  opacity: .8;
}
:is(#world-cards .om-card-ground, .om-card-ground[data-stand]) .om-card-leg:last-child {
  inset-inline: auto var(--space-8);
}
:is(#world-cards .om-card-ground, .om-card-ground[data-stand]) .om-card-leg::after {
  content: "";
  position: absolute;
  inset-inline-start: -4px;
  inset-block-end: -2px;
  inline-size: 9px;
  block-size: 3px;
  border-radius: 50%;
  background: var(--paper-4);
}

/* Outside the canvas, callers can opt into a content-sized sheet explicitly. */
.om-component[data-size="card"]:is(#world-cards *, [data-content-width]):not([data-sized-width]) {
  inline-size: max-content;
  min-inline-size: var(--card-min-width);
  max-inline-size: var(--card-auto-max);
}
.om-component[data-size="card"]:is(#world-cards *, [data-content-width]):not([data-sized-width]) .om-component-chart {
  inline-size: 276px;
  max-inline-size: 100%;
}
.om-component[data-size="card"][data-sized-width] {
  inline-size: clamp(var(--card-min-width), var(--om-card-width), var(--card-max-width));
  max-inline-size: var(--card-max-width);
}
.om-component[data-size="card"][data-sized-height] {
  block-size: clamp(var(--card-min-height), var(--om-card-height), var(--card-max-height));
}
.om-component[data-size="card"]:is([data-sized-width],[data-sized-height]) :is(.om-component-chart,.om-component-table) {
  inline-size: 100%;
}
.om-component[data-size="card"][data-sized-height] .om-component-chart {
  display: flex;
  flex-direction: column;
  min-block-size: 0;
  flex: 1 1 0;
}
.om-component[data-size="card"][data-sized-height] .om-component-chart [data-component-figure] {
  flex: 1 1 0;
  min-block-size: 0;
  block-size: auto;
}
.om-component[data-size="card"][data-sized-height] .om-component-table {
  flex: 1 1 0;
  min-block-size: 0;
  overflow: auto;
}

/* om-08d36 (4; the owner 20 Nov 16:36, the Director 16:46): a canvas card's table that scrolls inside the card keeps its
   header row in place. At rest it looks exactly as before: no fill (the card's own colour), no line, no shadow. Once rows
   have scrolled under it (data-scrolled-top, system/anatomy.js), the names sit on the card's opaque colour, so no row shows
   through, and one hairline and a short fading shadow ease in under them (150 ms) and out again at the top. A sticky
   cell takes no room, so a card's fitted size does not change. A full view's table has its own rules (component-studio.css). */
.om-component-table:not(.cs-panel-table) thead th {
  position: sticky; inset-block-start: 0; z-index: 2;
  box-shadow: 0 0 0 transparent, 0 0 0 transparent; transition: box-shadow 150ms ease-out;
}
.om-component-table[data-scrolled-top]:not(.cs-panel-table) thead th {
  background-color: var(--table); box-shadow: 0 1px 0 var(--rule), 0 7px 8px -7px var(--world-cast);
}
@media (prefers-reduced-motion: reduce) { .om-component-table:not(.cs-panel-table) thead th { transition: none; } }

/* D69: canvas previews measure whole columns, and keep their natural chart
   proportion inside a bounded, scrollable face. Zoom never changes this layout. */
.om-component[data-size="card"][data-preview-fit] :is(.om-component-chart,.om-component-table) {
  inline-size: 100%; flex: none; min-block-size: 0; overflow: auto;
}
.om-component[data-size="card"][data-preview-fit] .om-component-chart [data-component-figure] { flex: none; }
.om-component[data-preview-fit] .om-component-table :is(th,td) { white-space: nowrap; }

/* om-1hp2n (2): a table's own options. The quiet second line under a row's name (the SKU code), a thin share bar
   under the share column's figure, and a row that holds others: its disclosure opens them beneath it. */
.om-component-table .om-row-name { display: inline-flex; flex-direction: column; gap: 1px; min-inline-size: 0; }
.om-component-table .om-row-second { color: var(--paper-3); font-size: var(--text-tick); font-weight: var(--weight-regular); }
.om-component-table .om-share-cell { display: inline-flex; flex-direction: column; align-items: stretch; gap: 3px; min-inline-size: 4.5em; }
/* om-nzbgl: the in-row share bar in the chart language: a track on the ground's whisper, the share lit from above in
   the table's accent (else the palette's first colour), its ends at --radius-mark. */
.om-component-table .om-share-bar { display: block; block-size: 3px; border-radius: 2px; background: var(--seq-none); overflow: hidden; }
.om-component-table .om-share-bar > span { display: block; block-size: 100%; border-radius: inherit; opacity: .9;
  background: linear-gradient(var(--chart-sheen), transparent 70%), var(--accent, var(--chart-series-1)); }
/* om-blsf4 (3): a row's change against the period before, small and quiet beside its figure ("+12%", "new"); one tone
   either way, as the app's other deltas (si-delta). */
.om-component-table .om-change-cell { display: inline-flex; align-items: baseline; gap: .4em; }
.om-component-table .om-row-change { color: var(--paper-3); font-size: var(--text-micro, 0.72em); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* om-s6up7 (1): a row's figure day by day, a small line before its figure in the row's own ink: no axes, the last point
   marked, a count as bars; the window before faint behind it in a panel. Each day's hover target shows its dot and says
   its day and value through the kit's tooltip. The figure keeps its column's edge. */
.om-component-table .om-trend-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.om-component-table .om-trend { flex: none; display: block; overflow: visible; color: inherit; }
.om-component-table .om-trend-line { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; opacity: .7; }
.om-component-table .om-trend-prior { fill: none; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; opacity: .2; }
.om-component-table .om-trend-end { fill: currentColor; }
.om-component-table .om-trend-so-far { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 1.5 2; opacity: .55; }
.om-component-table .om-trend-end[data-so-far] { fill: none; stroke: currentColor; stroke-width: 1; }
.om-component-table .om-trend-bar { fill: currentColor; opacity: .32; }
.om-component-table .om-trend-bar[data-last] { opacity: .75; }
.om-component-table .om-trend-bar[data-so-far] { opacity: .45; }
.om-component-table .om-trend-hit { fill: transparent; }
.om-component-table .om-trend-dot { fill: currentColor; opacity: 0; transition: opacity var(--motion-quick, .12s); }
.om-component-table .om-trend-day:hover .om-trend-dot { opacity: 1; }
.om-component-table .om-trend-day:hover .om-trend-hit { fill: color-mix(in srgb, currentColor 8%, transparent); }
/* om-blsf4 (3): a product with no cost: a quiet 'Add cost' after its name, opening Costs at that product. */
.om-component-table .om-row-costed { display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: .5em; }
.om-component-table .om-row-cost { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; font-size: var(--text-micro, 0.72em);
  color: var(--paper-3); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
.om-component-table .om-row-cost:hover, .om-component-table .om-row-cost:focus-visible { color: var(--accent, var(--paper-1)); }
/* Ruling CE10: the door under a product whose cost is estimated is quieter than a missing cost's. */
.om-component-table .om-row-cost[data-estimated]:not(:hover):not(:focus-visible) { text-decoration-color: transparent; }
.om-component-table .om-row-open { display: inline-grid; place-items: center; inline-size: 14px; block-size: 14px; margin-inline-end: 4px; vertical-align: top; cursor: pointer; position: relative; }
.om-component-table .om-row-open input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.om-component-table .om-row-open > span { inline-size: 0; block-size: 0; border-block: 4px solid transparent; border-inline-start: 6px solid var(--paper-3); transition: transform var(--motion-quick, .12s); }
.om-component-table .om-row-open input:checked + span { transform: rotate(90deg); }
.om-component-table .om-row-open input:focus-visible + span { outline: 2px solid var(--focus, currentColor); outline-offset: 3px; }
/* om-xvl4i (1): in a table where some rows open, a row that does not keeps the disclosure's slot, empty, so every
   picture, name and second line starts on the same line down the card. */
.om-component-table .om-row-slot { display: inline-block; inline-size: 14px; block-size: 14px; margin-inline-end: 4px; vertical-align: top; }
.om-component-table th:has(> :is(.om-row-open, .om-row-slot)), .om-component-table td:has(> :is(.om-row-open, .om-row-slot)) { white-space: nowrap; }
.om-component-table .om-row-group:not(:has(.om-row-toggle:checked)) .om-row-child { display: none; }
.om-component-table .om-row-child :is(th,td) { color: var(--paper-2); font-weight: var(--weight-regular); }
.om-component-table .om-row-child th { padding-inline-start: 22px; }
/* om-rlrcu: a product's small picture beside its name in a table row; a row with none keeps the same quiet tile. */
.om-row-named { display:inline-flex; align-items:center; gap:var(--space-2); min-inline-size:0; }
.om-row-picture { flex:none; inline-size:28px; block-size:28px; border-radius:var(--radius-mark); overflow:hidden;
  background:var(--well); box-shadow:inset 0 0 0 1px var(--rule); }
.om-row-picture img { display:block; inline-size:100%; block-size:100%; object-fit:cover; }
/* Cost sheet 2 (om-1y5cr item 4): the tile's cost tag and the card's cost warning use the same quiet control treatment. */
.om-state-copy[role="button"] { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; text-decoration: none; border-radius: var(--radius-1, 4px); }
.om-state-copy[role="button"]:hover { color: var(--paper-1); text-decoration: underline; text-underline-offset: 2px; }
.om-state-copy[role="button"]:focus-visible { outline: 2px solid var(--focus, var(--lamp-mark)); outline-offset: 2px; }
/* Ruling CE2 (om-pgrrc): words that say a cost is missing (a tile's swapped title, a figure's "before shipping cost")
   are a door into Costs: the pointer says so, and they lift quietly under it and under keyboard focus. */
[data-cost-words] { cursor: pointer; border-radius: 3px; text-decoration: underline dotted; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
[data-cost-words]:is(:hover, :focus-visible) { background: var(--wash-hover); text-decoration-color: currentColor; outline: none; }
[data-cost-words]:focus-visible { box-shadow: 0 0 0 1.5px var(--lamp-ink); }
/* Ruling CE2 (om-pgrrc): a waterfall step that is a door into Costs, on the card (an SVG rect) and in the full-size panel (a div over the chart). */
.om-step-door { cursor: pointer; outline: none; }
rect.om-step-door:is(:hover, :focus-visible) { fill: var(--wash-hover); }
rect.om-step-door:focus-visible { stroke: var(--lamp-ink); stroke-width: 1.5px; }
div.om-step-door { border-radius: var(--radius-1, 4px); }
div.om-step-door:is(:hover, :focus-visible) { background: var(--wash-hover); }
div.om-step-door:focus-visible { box-shadow: inset 0 0 0 1.5px var(--lamp-ink); }
/* Door 6 (om-kigy.26.41, CP13): a cost the merchant reads opens Costs at that cost. Nothing at rest; the step door's
   quiet wash on hover and its ring on focus, so a cost reads as a link only when the pointer or the keys reach it. */
.om-cost-door { cursor: pointer; outline: none; }
rect.om-cost-door:is(:hover, :focus-visible) { fill: var(--wash-hover); }
rect.om-cost-door:focus-visible { stroke: var(--lamp-ink); stroke-width: 1.5px; }
div.om-cost-door { border-radius: var(--radius-1, 4px); }
div.om-cost-door:is(:hover, :focus-visible) { background: var(--wash-hover); }
div.om-cost-door:focus-visible { box-shadow: inset 0 0 0 1.5px var(--lamp-ink); }
button.om-cost-link { all: unset; box-sizing: border-box; cursor: pointer; border-radius: var(--radius-1, 4px);
  padding-inline: 2px; margin-inline: -2px; color: inherit; font: inherit; text-align: inherit; }
button.om-cost-link:is(:hover, :focus-visible) { background: var(--wash-hover); }
button.om-cost-link:focus-visible { box-shadow: inset 0 0 0 1.5px var(--lamp-ink); }
.om-figure.om-cost-door { border-radius: var(--radius-1, 4px); padding-inline: 2px; margin-inline: -2px; }
.om-figure.om-cost-door:is(:hover, :focus-visible) { background: var(--wash-hover); }
.om-figure.om-cost-door:focus-visible { box-shadow: inset 0 0 0 1.5px var(--lamp-ink); }

/* om-mt022, the owner on 20 Nov: one line a row, the money first, an estimate marked quietly, a row that answers the
   pointer. These are the kit's table rules; the cards, the full view (component-studio.css) and every table that wears
   .om-component-table or .om-table share them. */
/* (4) the about sign never stands alone on a line: a figure is one unbreakable piece, in cells and in the totals. */
.om-component-table td.om-num-cell, .om-figure-totals .om-total, .om-figure-totals .om-total-value { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* (5) a cell of words is one line, cut with an ellipsis; its whole text is its title (anatomy.js rowCell). */
.om-component-table .om-cell-text, .om-component-table .om-row-name > span:first-child { display: inline-block; max-inline-size: 18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.om-component-table .om-row-name { max-inline-size: 100%; }
.om-component-table .om-row-costed { flex-wrap: nowrap; }
/* (9a) an ESTIMATED product or shipping cost is written in the soft yellow (the lamp's ink, at text weight), its about
   sign with it; a real cost, and a figure only derived from an estimate, keep the normal text colour. */
.om-estimated-cost, .om-estimated-cost :is(span, button), .om-total-value[data-estimated-cost] { color: var(--lamp-ink); }
/* (9d) one rule for every table: the row under the pointer, or holding the keyboard's focus, takes a soft wash across
   its whole width (each cell, so a sticky first column takes it too), eased in quickly; nothing moves. A row that does
   something on a press shows the pointing hand over its whole width; the words stay selectable. */
:is(.om-component-table, .om-table) tbody tr > :is(td, th) { transition: background-color 120ms ease-out; }
:is(.om-component-table, .om-table) tbody tr:is(:hover, :focus-within) > :is(td, th) { background-color: var(--wash-hover); }
:is(.om-component-table, .om-table) tbody tr:is(:hover, :focus-within) { background-color: transparent; }
:is(.om-component-table, .om-table) tbody tr:is([data-target], [data-href], [data-open], .om-row-parent) { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { :is(.om-component-table, .om-table) tbody tr > :is(td, th) { transition: none; } }

/* om-6siv9: a table cell that names a platform record (an order, a product, a campaign) opens it in the platform's own
   admin (record-anchor.js, once the server has verified the connection): the cell's text as the table writes it, in
   its own colour; underlined with a small arrow on hover and focus. One rule for cards, panels and the text table. */
:is(.om-record-cell, td, th) > a.source-quick-link.om-record-link[href] { display: inline; min-block-size: 0; min-inline-size: 0; min-height: 0; min-width: 0; gap: 0; color: inherit; font: inherit; white-space: nowrap; text-decoration: none; }
:is(.om-record-cell, td, th) > a.source-quick-link.om-record-link[href]:is(:hover, :focus-visible) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:is(.om-record-cell, td, th) > a.source-quick-link.om-record-link[href] > span { display: inline-block; margin-inline-start: .25em; font-size: .8em; opacity: 0; transition: opacity 120ms ease-out; }
:is(.om-record-cell, td, th) > a.source-quick-link.om-record-link[href]:is(:hover, :focus-visible) > span { opacity: .8; }
@media (prefers-reduced-motion: reduce) { :is(.om-record-cell, td, th) > a.source-quick-link.om-record-link[href] > span { transition: none; } }
