/* One card system (docs/design-system/FOUNDATIONS.md section 3b; the owner's sizing ruling of 11 Nov 2026, S1 to S8).
   Loaded last on the full page and in the widget, so a card's sizes come from here and nowhere else. Every number is a token of the
   card table (design/tokens.json, ds.card; --ds-card-*): unitless anchor pixels, by screen group, drawn times the room's scale by the
   answers' zoom (R1, R2). The same table holds for every card kind (record, product, article, person, contact, soft tiles, document
   cards in a grid) and every client; nothing here names a client.

   What it sets: the set's columns and gap; a card's padding, name, price, small labels, choice field and main button; the photo's
   largest height over its width; and one line across a row (S3): every card of a row lays its parts on the row's own lines (CSS
   subgrid), so a short name never lets a price, a fact row or a button ride up. Nothing is cut, clamped or removed (G2), and a card's
   rows stay in their built order (the face card is locked, owner 6 Oct 2026; the facts ruling of 11 Nov 2026 is the one change).
   When a row of cards is taller than the room under a question and two lines of answer, app.js fitCards gives the photos' height up
   first, down to the table's floor, then tightens the card's spacing on the spacing scale (data-card-fit="tight"); words never shrink. */

/* ---- The table, by group (FOUNDATIONS 1): tablet, laptop, monitor and ultrawide take the plain names; a phone, upright or on its
   side, the -phone names. ---- */
#aiosShell{
  --card-pad:var(--ds-card-pad);--card-gap:var(--ds-card-gap);--card-min:var(--ds-card-min);
  --card-name:var(--ds-card-name);--card-price:var(--ds-card-price);--card-label:var(--ds-card-label);
  --card-field:var(--ds-card-field);--card-button:var(--ds-card-button);
  --card-photo:var(--ds-card-photo);--card-photo-floor:var(--ds-card-photo-floor);--card-photo-floor-last:var(--ds-card-photo-floor-last);--card-body:var(--ds-card-body);
  --detail-name-floor:var(--ds-card-detail-name-floor);
}
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell{
  --card-pad:var(--ds-card-pad-phone);--card-gap:var(--ds-card-gap-phone);--card-min:var(--ds-card-min-phone);
  --card-name:var(--ds-card-name-phone);--card-price:var(--ds-card-price-phone);--card-label:var(--ds-card-label-phone);
  --card-field:var(--ds-card-field-phone);--card-button:var(--ds-card-button-phone);
  --card-photo:var(--ds-card-photo-phone);--card-photo-floor:var(--ds-card-photo-floor-phone);--card-photo-floor-last:var(--ds-card-photo-floor-last-phone);--card-body:var(--ds-card-body-phone);
  --detail-name-floor:var(--ds-card-detail-name-floor-phone);
}

/* ---- The set: as many across as the table's narrowest card allows, one gap both ways. An upright phone always shows two across
   (S1: column 358, gap 12, each card 173 at the 390 anchor; at another phone width the column less one gap, halved). The widget's
   compact panel keeps its 220 slots (widget/app-overrides.css, owner 10 Nov 2026), which still give two or three across (S6). The
   rows are as tall as their cards (each card lays its parts on the row's lines below), the gap between rows is each card's margin. */
:root[data-aios-group] #aiosShell .set{grid-template-columns:repeat(auto-fill,minmax(min(100%,calc(var(--card-min) * var(--ds-card-u))),1fr));column-gap:calc(var(--card-gap) * var(--ds-card-u))}
:root[data-aios-group=phone] #aiosShell .set{grid-template-columns:repeat(var(--ds-card-across-phone),minmax(0,1fr))}
/* A contact card takes two columns wherever the column fits two and the full row on a phone, as built on develop (answers.css:221 to
   222, whose comment attributes it to an owner ruling of 24 September 2026; the ruling's own text is not in this repository). On a
   phone, upright or on its side, it takes the full row here too, since the phone grid's narrow columns would stack its routes. */
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card.contact-open{grid-column:1 / -1}
/* In the widget's panels a column 700 wide or more shows three across at least (S6): the narrowest card there is the table's, or a
   third of the column if that is less. The 700 is S6's own number (cards-rules.mjs C.panel.threeAcrossFromColumn); a container query
   cannot read a custom property, so it is written here. */
@container answers (min-width:700px){.aios-html[data-widget-panel=expanded] #aiosShell .set{grid-template-columns:repeat(auto-fill,minmax(min(calc(var(--card-min) * var(--ds-card-u)),calc((100% - 2 * var(--card-gap) * var(--ds-card-u)) / 3)),1fr))}}
/* Choices that cannot each show their chosen value whole side by side take one per row (app.js fitCards sets data-stack). */
:root[data-aios-group] #aiosShell .set > .card .st-opts[data-stack]{grid-template-columns:minmax(0,1fr)}
:root[data-aios-group] #aiosShell .set > .card .st-opts[data-stack] > *{grid-column:1}

/* ---- One card, one row of lines (S3). The set's rows repeat twelve lines per row of cards: photo, kind, name, price, choices, a
   spring, the first and second fact rows, stock, the main button, an "or" and what follows a second button. Every card spans the
   twelve as a subgrid, so the same part of every card in a row sits on the same line whatever its words; an empty line takes no
   room. The spring takes what a taller card leaves (a set is one height, app.js fitCards). The overlay, reveal and cut corner looks
   draw their words over the photo and keep their own layout. The gap between rows of cards is each card's top margin; the set is
   drawn a gap higher (a relative offset, so the margins each look gives the set stay) and a gap shorter below, so every row sits
   where it did. A bottom margin on the card did the same in Chromium and Firefox, but WebKit (measured in WebKitGTK 2.52) drew the
   body of a card whose subgrid had a bottom margin one gap too high, over the photo. The set's own box then reaches a gap above its
   first row, so it takes no pointer itself and what is above it stays reachable. */
:root[data-aios-group]:not([data-look-cards=overlay],[data-look-cards=reveal],[data-look-cards=cutcorner]) #aiosShell .set{
  grid-auto-rows:auto;row-gap:0;align-items:stretch;position:relative;top:calc(-1 * var(--card-gap) * var(--ds-card-u));
  margin-bottom:calc(-1 * var(--card-gap) * var(--ds-card-u));pointer-events:none}
:root[data-aios-group]:not([data-look-cards=overlay],[data-look-cards=reveal],[data-look-cards=cutcorner]) #aiosShell .set > *{pointer-events:auto}
:root[data-aios-group]:not([data-look-cards=overlay],[data-look-cards=reveal],[data-look-cards=cutcorner]) #aiosShell .set > .card{
  grid-row:span 12;display:grid;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);row-gap:0;align-content:start;
  height:auto;margin-top:calc(var(--card-gap) * var(--ds-card-u));margin-bottom:0}
/* The lifted look gives each card a top margin of its own, for the photo that stands above it (looks.css): the gap adds to it. */
:root[data-aios-group][data-look-cards=lifted] #aiosShell .set > .card:not(.doc){margin-top:calc(var(--ds-space-16) + var(--card-gap) * var(--ds-card-u))}
:root[data-aios-group]:not([data-look-cards=overlay],[data-look-cards=reveal],[data-look-cards=cutcorner]) #aiosShell .set > .card > :is(.media,.ph,.lg){grid-row:1}
:root[data-aios-group]:not([data-look-cards=overlay],[data-look-cards=reveal],[data-look-cards=cutcorner]) #aiosShell .set > .card > .cbody{
  grid-row:2 / -1;display:grid;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);row-gap:0;min-height:0}
/* The spring: in a row of cards shorter than the set's tallest, app.js fitCards gives each card the difference (--card-spring) on its
   spring line, so every card of the set is one height and the parts below the spring still share their lines (S3). */
:root[data-aios-group]:not([data-look-cards=overlay],[data-look-cards=reveal],[data-look-cards=cutcorner]) #aiosShell .set > .card > .cbody::before{content:"";grid-row:5;min-height:var(--card-spring,0px)}
/* The body's lines, counted inside it (the body starts on the card's second line). */
:root[data-aios-group] #aiosShell .set > .card > .cbody > :is(.st-kind,.eb){grid-row:1}
:root[data-aios-group] #aiosShell .set > .card > .cbody > :is(.cid,.st-name,.p-contact){grid-row:2}
:root[data-aios-group] #aiosShell .set > .card > .cbody > :is(.pricerow,.st-price){grid-row:3}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .st-opts{grid-row:4}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .facts{grid-row:6 / span 2;display:grid;grid-template-rows:subgrid;grid-template-columns:minmax(0,1fr);row-gap:0}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .facts:not(.two){grid-row:6}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .facts > .frow{grid-column:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto;gap:0}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .facts > .frow:nth-child(1){grid-row:1}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .facts > .frow:nth-child(2){grid-row:2}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .st-stock{grid-row:8}
:root[data-aios-group] #aiosShell .set > .card > .cbody > :is(.cta-bar,.st-actions,.st-notify,.st-actions.empty){grid-row:9}
:root[data-aios-group] #aiosShell .set > .card > .cbody > :is(.cta-or,.st-actions ~ .st-notify){grid-row:10}
:root[data-aios-group] #aiosShell .set > .card > .cbody > :is(.cta-or + .cta-bar,.st-note,.st-extra){grid-row:11}
/* Soft tiles (person, article, offer, logo) carry their parts on the card itself. */
:root[data-aios-group] #aiosShell .set > .soft-card > :is(.eb){grid-row:2}
:root[data-aios-group] #aiosShell .set > .soft-card > :is(h4,.tx,.lg-line){grid-row:3}
:root[data-aios-group] #aiosShell .set > .soft-card > .meta{grid-row:4}
:root[data-aios-group] #aiosShell .set > .soft-card > .buy{grid-row:10}
:root[data-aios-group] #aiosShell .set > .soft-card > .sf-facts{grid-row:6}
:root[data-aios-group] #aiosShell .set > .soft-card > .sf-acts{grid-row:10}
:root[data-aios-group] #aiosShell .set > .soft-card > :is(.sf-facts,.sf-acts){margin-top:var(--ds-space-12)}
/* The lines of the old flex layout give way to the row's lines: no reserved heights, no pushed-down button. */
:root[data-aios-group] #aiosShell .set > .card .cid{min-height:0}
:root[data-aios-group] #aiosShell .set > .card .facts{min-height:0}
:root[data-aios-group] #aiosShell .set > .card .cta-bar,:root[data-aios-group] #aiosShell .set > .card .st-actions{margin-top:0}
:root[data-aios-group] #aiosShell .set > .card.store-card .cname{min-height:0}

/* ---- Inside a card: padding all round, the parts' own spacing, and the sizes of the table. ---- */
:root[data-aios-group] #aiosShell .set > .card > .cbody{padding:calc(var(--card-pad) * var(--ds-card-u))}
:root[data-aios-group] #aiosShell .set > .card.contact-open > .cbody{padding:0}
:root[data-aios-group] #aiosShell .set > .card.contact-open .p-contact{padding:calc(var(--card-pad) * var(--ds-card-u))}
:root[data-aios-group] #aiosShell .set > .card.contact-open .cta-bar{padding:0 calc(var(--card-pad) * var(--ds-card-u)) calc(var(--card-pad) * var(--ds-card-u))}
:root[data-aios-group]:not([data-look-cards=soft]) #aiosShell .set > .soft-card{padding:calc(var(--card-pad) * var(--ds-card-u))}
:root[data-aios-group][data-look-cards=soft] #aiosShell .set > :is(.soft-card,.card.store-card){padding:calc(var(--card-pad) * var(--ds-card-u))}
:root[data-aios-group][data-look-cards=soft] #aiosShell .set > .card.store-card > .cbody{padding:0}
:root[data-aios-group] #aiosShell .set > .card > .cbody > :is(.pricerow,.st-price,.st-opts,.st-stock){margin-top:var(--ds-space-8)}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .st-name{margin-top:var(--ds-space-4)}
:root[data-aios-group] #aiosShell .set > .card > .cbody > .facts{margin-top:var(--ds-space-10)}
:root[data-aios-group] #aiosShell .set > .card > .cbody > :is(.cta-bar,.st-actions:not(.empty),.st-notify){margin-top:var(--ds-space-12);padding-top:0}
:root[data-aios-group] #aiosShell .set > .soft-card > :is(.eb,h4,.tx,.meta,.lg-line){margin-top:var(--ds-space-8)}

/* Name, price and small labels (S2 on a phone; the table's own numbers elsewhere). A label never draws under the 10px floor where the
   answers are magnified by less than 1 (the compact panel): --ds-fs-10 is held at the floor there (answers.css, FOUNDATIONS 12, 14). */
:root[data-aios-group] #aiosShell .set > .card :is(.cname,.st-name),:root[data-aios-group] #aiosShell .set > .soft-card h4{font-size:calc(var(--card-name) * var(--ds-card-u))}
:root[data-aios-group] #aiosShell .set > .card :is(.price,.st-now){font-size:calc(var(--card-price) * var(--ds-card-u))}
:root[data-aios-group] #aiosShell .set > .card .fact-label{font-size:max(calc(var(--card-label) * var(--ds-card-u)),var(--ds-fs-10))}
:root[data-aios-group] #aiosShell .set > .card .fact-value{font-size:calc(var(--card-body) * var(--ds-card-u))}
/* On a phone every small label is the table's 12 (S2): the status pill and Save mark, a choice's name, the kind, stock, address and
   meta lines. Elsewhere they keep their built sizes (FOUNDATIONS 3b lists them). */
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card :is(.status,.flag,.st-save,.st-out,.st-dd-name,.st-kind,.st-stock,.caddr,.meta,.eb,.lg-line){font-size:calc(var(--card-label) * var(--ds-card-u))}

/* The photo: no taller than the table allows over its width. Each kind keeps its own shape under that (a record 4 by 3, a product
   square); a kind drawn taller than the table allows (the person tile, 3 by 4) is drawn at the table's shape. While a row must fit
   the room, app.js fitCards lets it be no taller than --card-pic-max, which never goes under the table's floor. */
/* A soft tile's photo holds its frame in every look: a client whose card settings draw soft tiles under a look that is not the soft
   family (ALLMAX's dev branding of 11 Nov 2026 names a look of its own, which replaces the card settings' soft look) drew the photo
   at the picture's own size, 410 tall on a 173 card. */
:root[data-aios-group] #aiosShell .set > .soft-card > .ph{position:relative;overflow:hidden;aspect-ratio:var(--ds-card-shape-tile)}
:root[data-aios-group] #aiosShell .set > .soft-card > .ph > img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
:root[data-aios-group] #aiosShell .set > .soft-card > .ph.contain{aspect-ratio:var(--ds-card-shape-square)}
:root[data-aios-group] #aiosShell .set > .soft-card > .ph.contain > img{object-fit:contain}
:root[data-aios-group] #aiosShell .set > .soft-article > .ph{aspect-ratio:var(--ds-card-shape-article)}
:root[data-aios-group] #aiosShell .set > .soft-person > .ph{aspect-ratio:1 / var(--card-photo)}
:root[data-aios-group] #aiosShell .set > .soft-person > .ph > img{object-position:top}
:root[data-aios-group] #aiosShell .set > .card > :is(.media,.ph){max-height:var(--card-pic-max,none)}

/* The choice field: the table's height; one per row on a phone (S2). On the larger groups the choices sit as each look built them (the
   soft family side by side where they fit, answers.css). */
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .st-opts{display:grid;grid-template-columns:minmax(0,1fr)}
/* On a phone the fields stand 12 apart, so each one's 44 tall tap area (shell.css) reaches its full height between them (G5), also
   where the answers draw at nine tenths (a sheet 600 wide or more). */
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .st-opts{row-gap:var(--ds-space-12)}
/* A store card's choices on the larger groups sit side by side on one row in every look (owner, 12 Nov 2026: ALLMAX's choices only
   ever take one line), each an equal share; where one cannot show its chosen value whole they take one per row (data-stack, above). */
:root[data-aios-group]:not([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card.store-card .st-opts:not([data-stack]){display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;column-gap:var(--ds-space-8)}
:root[data-aios-group] #aiosShell .set > .card .st-dd-box{min-height:calc(var(--card-field) * var(--ds-card-u));height:calc(var(--card-field) * var(--ds-card-u))}

/* The main button: the card's full width inside its padding, the table's height (S2). Its words wrap rather than cut. */
:root[data-aios-group] #aiosShell .set > .card .cta-bar-btn,:root[data-aios-group] #aiosShell .set > .card .st-btn,:root[data-aios-group] #aiosShell .set > .soft-card .buy{
  width:100%;min-height:calc(var(--card-button) * var(--ds-card-u));padding-top:0;padding-bottom:0}
:root[data-aios-group] #aiosShell .set > .card .cta-bar-btn{white-space:normal}
/* On a phone card its words get the button's whole width but the card's padding either side and a 6 gap to the arrow, so a long
   label ("Inquire About This Listing") takes two lines rather than three. */
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .cta-bar-btn{padding-inline:calc(var(--card-pad) * var(--ds-card-u));gap:var(--ds-space-6)}
/* On the larger groups the card's padding of 16 leaves the button narrower than develop drew it (177.6 against 185.8 for Rosedale in
   the compact panel at 768 by 1024), so its words take 12 either side, not develop's 18: a label develop drew on one line stays on
   one line at the same card width. */
:root[data-aios-group]:not([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .cta-bar-btn{padding-inline:var(--ds-space-12)}
/* Its tap area (G5): the drawn button is the table's 38 on a phone; the area that takes the tap reaches 44 on a touch screen through a
   transparent layer, as every control's does (shell.css, the tap areas rule), inside the space the card keeps round the button. */
:where(#aiosShell) :is(.set > .card,.pc) :is(.cta-bar-btn,.st-btn){position:relative}
:where(#aiosShell) :is(.set > .card,.pc) :is(.cta-bar-btn,.st-btn)::before{content:"";position:absolute;inset:min(0px,calc(50% - var(--tap) / 2)) 0;background:none;pointer-events:auto}

/* Facts (owner, 11 Nov 2026, 17:53): two rows of two, facts 1 and 2 then 3 and 4, at every width, as built; none removed and none cut.
   Words break only at spaces: no automatic hyphenation, which hyphenated ordinary values and differs by engine and language. A value
   breaks inside a word only where that one word is wider than its cell (Intermediate in half a 158 card), never cut. */
:root[data-aios-group] #aiosShell .set > .card .fact{min-width:0}
:root[data-aios-group] #aiosShell .set > .card :is(.fact-label,.fact-value){overflow-wrap:normal;word-break:normal;-webkit-hyphens:manual;hyphens:manual}
/* A fact value breaks at its spaces; one word wider than its cell hyphenates in the page's language, and breaks anywhere where the
   engine has no dictionary for it (layout fitFacts marks it .hy). No letter is lost. */
:root[data-aios-group] #aiosShell .set > .card .fact-value.hy{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:anywhere}
/* Fact labels on one line, never broken inside a word (CS2F; orchestrator's decision G, 11 Nov 2026, a fork for the owner). On a
   phone card the two halves give their words the most room the cell can: the spacing scale's 4 either side of the divider, the
   labels' tracking closed and, since capitals at 12px did not fit in the clients' own type (BATHROOMS 76 in Karla and 80 in Jost,
   SPECIALTIES 75, against 71), the labels in the case the data writes them (Bathrooms 65, 61; Specialties 63). A label of several
   words wider than its half (the French "Salles de bain") wraps at its spaces rather than run past the card. */
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .fact{padding-right:var(--ds-space-4)}
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .fact:nth-child(even){padding-left:var(--ds-space-4);padding-right:0}
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .fact-label{letter-spacing:0;text-transform:none}
/* In the widget's panels (the compact panel's 220 slots, a sheet 600 wide or more, the larger panel's three across from a 700
   column) a card's half is as narrow as a phone's: its fact labels close their tracking too. */
:root[data-aios-group] #aiosShell[data-answer-room=panel] .set > .card .fact-label,.aios-html[data-widget-panel=expanded] #aiosShell .set > .card .fact-label{letter-spacing:0}
/* A phone 360 wide gives each half 64 to 65: the divider's space comes down to the scale's 2 so the longest label fits on one line. */
@container answers (max-width:340px){:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .fact{padding-right:var(--ds-space-2)}:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set > .card .fact:nth-child(even){padding-left:var(--ds-space-2);padding-right:0}}

/* ---- Tight: when the photos are at their floor and a row of cards still does not fit the room (app.js fitCards), the card's
   spacing comes down on the spacing scale: a fact's reserved height goes, the space between parts comes to 4 to 6, the padding to 8 and
   the space above the main button to 8 on the larger groups. On a phone the padding stays the ruled 10 (S2) and the space above the
   button stays 12, which the tap areas of the field and the button above and below it need (G5). The set's sort bar draws on one
   line on a phone in any case (below). */
:root[data-aios-group]:not([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell [data-card-fit=tight] .set > .card:not(.st-soft) > .cbody,:root[data-aios-group]:not([data-aios-group=phone],[data-aios-group=phone-side],[data-look-cards=soft]) #aiosShell [data-card-fit=tight] .set > .card.st-soft > .cbody{padding:calc(var(--ds-card-pad-tight) * var(--ds-card-u))}
:root[data-aios-group]:not([data-aios-group=phone],[data-aios-group=phone-side],[data-look-cards=soft]) #aiosShell [data-card-fit=tight] .set > .soft-card,:root[data-aios-group][data-look-cards=soft]:not([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell [data-card-fit=tight] .set > :is(.soft-card,.card.store-card){padding:calc(var(--ds-card-pad-tight) * var(--ds-card-u))}
:root[data-aios-group] #aiosShell [data-card-fit=tight] .set > .card .fact{min-height:0}
:root[data-aios-group] #aiosShell [data-card-fit=tight] .set > .card .frow{padding-top:var(--ds-space-6)}
:root[data-aios-group] #aiosShell [data-card-fit=tight] .set > .card > .cbody > .facts{margin-top:var(--ds-space-6)}
:root[data-aios-group] #aiosShell [data-card-fit=tight] .set > .card > .cbody > .facts > .frow:nth-child(2){margin-top:var(--ds-space-6)}
:root[data-aios-group]:not([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell [data-card-fit=tight] .set > .card > .cbody > :is(.cta-bar,.st-actions:not(.empty),.st-notify){margin-top:var(--ds-space-8)}
:root[data-aios-group] #aiosShell [data-card-fit=tight] .set > .card > .cbody > :is(.pricerow,.st-price,.st-opts,.st-stock){margin-top:var(--ds-space-4)}

/* ---- The detail card (S7, corrected by the owner on 11 Nov 2026 at 17:55). Its name is a heading and keeps its built size, larger
   than a face card's name; app.js fitDetail steps it down only where its name, its price or lead fact and its main action could not
   all show without scrolling, only as far as needed, never under 18 on a phone or 20 elsewhere (--detail-name-floor). Its photo
   takes no more than two fifths of the room's height (--detail-pic-max, set by fitDetail from --ds-card-detail-photo). Its labels
   and body words follow the face card's sizes for the group and are never larger; running words never draw under 12px (G10), where
   the answers are magnified by less than 1. ---- */
:root[data-aios-group] #aiosShell .pc :is(.pc-hero,.st-hero,.dt-hero){max-height:var(--detail-pic-max,none)}
/* A square store photo held to that height is centred in its frame, not left at its start (the frame's own padding is develop's). */
:root[data-aios-group] #aiosShell .pc .st-gallery > .st-hero{justify-self:center}
/* "Keep it as built": in the compact panel and a sheet 600 wide or more the answers draw at 14 times the widget scale (S6), less than
   they drew before; the detail's name and price take back the difference (--detail-head-k, sizing.js), so they draw exactly what they
   drew before 11 Nov 2026. Everywhere else the factor is 1. */
:root[data-aios-group] #aiosShell .pc :is(.pc-name,.pc-price,.st-detail .st-price,.st-info .st-price){zoom:var(--detail-head-k,1)}
:root[data-aios-group] #aiosShell .pc :is(.pc-fact .k,.fact-label){font-size:max(calc(var(--card-label) * var(--ds-card-u)),var(--ds-fs-10))}
:root[data-aios-group] #aiosShell .pc :is(.pc-fact .v,.fact-value,.lede,.pane .prose,.factline .k,.factline .v){font-size:max(calc(var(--card-body) * var(--ds-card-u)),calc(var(--ds-fs-12) / var(--ui-z,1)))}
/* The facts band look draws its values larger (20, 17 on a phone): they are body words too and follow the card's body size. */
:root[data-aios-group][data-look-facts-band] #aiosShell[data-device] .pc .pc-fact .v{font-size:max(calc(var(--card-body) * var(--ds-card-u)),calc(var(--ds-fs-12) / var(--ui-z,1)))}
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .pc :is(.status,.flag,.st-kind,.st-dd-name){font-size:calc(var(--card-label) * var(--ds-card-u))}
:root[data-aios-group] #aiosShell .pc :is(.st-kind,.st-dd-name){font-size:min(var(--t-2xs,var(--ds-fs-11)),calc(var(--ds-card-label-most) * var(--ds-card-u)))}

/* The detail's name and Back stay in view while it scrolls, in every room (app.js pinDetail): a strip with Back and the name appears at
   the top of the answers once the card's own name has scrolled away. The card clips rather than scrolls its overflow, so the strip
   pins to the answers' own scroller. The main action is never pinned (owner, 13 Nov 2026): its bar sits at the end of the card, in
   flow, in every room; nothing floats over what the detail shows. */
:root[data-aios-group]:not([data-look-detail=lifted]) #aiosShell .pc:has(> .pc-pin){overflow:clip}
:root[data-aios-group] #aiosShell .pc > .pc-pin{display:block;position:sticky;height:0;z-index:var(--ds-z-top);background:inherit}
:root[data-aios-group] #aiosShell .pc > .pc-pin{top:0}
:root[data-aios-group] #aiosShell .pc-pin-bar{position:absolute;left:0;right:0;display:flex;align-items:center;gap:var(--ds-space-12);padding:var(--ds-space-8) var(--ds-space-14);background:inherit;visibility:hidden;opacity:0;transition:opacity var(--ds-dur-fast) ease,visibility 0s linear var(--ds-dur-fast)}
:root[data-aios-group] #aiosShell .pc-pin .pc-pin-bar{top:0;min-height:calc(var(--ds-bar-h) * var(--ds-card-u));border-bottom:1px solid var(--line);box-shadow:var(--ds-shadow-1)}
:root[data-aios-group] #aiosShell .pin-on > .pc-pin-bar{visibility:visible;opacity:1;transition:opacity var(--ds-dur-fast) ease}
:root[data-aios-group] #aiosShell .pc-pin-bar > .pc-back{margin:0;flex:0 0 auto}
:root[data-aios-group] #aiosShell .pc-pin-bar > .dt-x{position:static;order:2;flex:0 0 auto}
:root[data-aios-group] #aiosShell .pc-pin-name{margin:0;flex:1 1 auto;min-width:0;font-size:var(--ds-fs-15);font-weight:700;line-height:1.3;color:var(--ink,inherit)}
@media (prefers-reduced-motion:reduce){:root[data-aios-group] #aiosShell .pc-pin-bar{transition:none}}

/* Tight (app.js fitDetail): when the photo at a fifth of the room still leaves the name, price or lead fact or the main action out of
   view, the detail's own spacing comes down on the spacing scale before the photo gives up more. */
:root[data-aios-group] #aiosShell .pc[data-detail-fit=tight] .pc-id{padding:var(--ds-space-8) var(--ds-space-12)}
:root[data-aios-group] #aiosShell .pc[data-detail-fit=tight] .pc-fact{padding:var(--ds-space-6) var(--ds-space-8)}
:root[data-aios-group] #aiosShell .pc[data-detail-fit=tight] > .cta-bar{padding-top:var(--ds-space-8);padding-bottom:var(--ds-space-12)}
:root[data-aios-group] #aiosShell .pc[data-detail-fit=tight]:has(> .pc-pin) > .cta-bar:not(.cta-bar ~ .cta-bar){padding-top:var(--ds-space-8);padding-bottom:var(--ds-space-12)}
/* The soft detail draws its bar 24 in from each side and above its foot (answers.css): when it sticks, the band runs edge to edge
   and to the room's foot, the 24 moved inside it so the button stays where the look puts it. */
:root[data-aios-group] #aiosShell .pc.soft-detail:has(> .pc-pin) > .cta-bar:not(.cta-bar ~ .cta-bar){margin:0;padding-left:calc(var(--ds-space-24) + var(--ds-space-20));padding-right:calc(var(--ds-space-24) + var(--ds-space-20))}
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .pc.soft-detail:has(> .pc-pin) > .cta-bar:not(.cta-bar ~ .cta-bar){padding-left:calc(var(--ds-space-24) + var(--ds-space-16));padding-right:calc(var(--ds-space-24) + var(--ds-space-16))}

/* The set's sort bar on a phone (the orchestrator's decision after review, 12 Nov 2026): Sort, its choice and the count on one line. It
   drew Sort over its choice (master.css .set-bar.tight), 87 tall above a set of twelve, which took the room S1 gives two whole cards.
   Where a language's words are too long for one line (the French sort bar), the count moves under the
   choice rather than run past the column. A bar that pages (it shows Per page and the page with its arrows) keeps develop's columns:
   the one line is for the sort choice and the count only. */
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set-bar.tight:not(:has(.page-size,.page-compact)){align-items:center;flex-wrap:wrap;row-gap:var(--ds-space-4)}
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set-bar.tight:not(:has(.page-size,.page-compact)) .sortrow select{min-width:0;max-width:100%}
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set-bar.tight:not(:has(.page-size,.page-compact)) .sortrow{flex-direction:row;align-items:center;gap:var(--ds-space-6)}
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell .set-bar.tight:not(:has(.page-size,.page-compact)) .page-count{min-width:0}
/* In tight mode the sort bar's own spacing (not ruled numbers) comes down too: its padding to 4 above and below, 6 under it. */
:root:is([data-aios-group=phone],[data-aios-group=phone-side]) #aiosShell [data-card-fit=tight] .set-bar{padding-top:var(--ds-space-4);padding-bottom:var(--ds-space-4);margin-bottom:var(--ds-space-6)}

/* ---- The phone card (owner, 12 Nov 2026, approved on the review of sizing pass two). On an upright phone a face card shows its photo
   square, its name and address, the price in large type and one short line of the other facts; the four-cell fact grid, a second
   action and a store's choices stay in the detail card (one tap away) and on every larger screen. One button stays on the card, with
   no arrow, its words fitted to one line (app.js fitCards) or the client's short phone label (kit-renderer.js phoneLabel). Pills and
   banners over the photo take the table's smaller phone sizes. A contact card keeps its own layout. ---- */
#aiosShell .set > .card > .cbody > .cphone,#aiosShell .card .cta-bar-label-phone{display:none}
:root[data-aios-group=phone] #aiosShell .set > .card:not(.contact-open):not(.store-card) > .media{aspect-ratio:1 / 1}
:root[data-aios-group=phone] #aiosShell .set > .card:not(.contact-open) > .cbody > .facts{display:none}
:root[data-aios-group=phone] #aiosShell .set > .card:not(.contact-open) > .cbody > .cphone{display:block;grid-row:6 / span 2;margin-top:var(--ds-space-8);min-width:0}
:root[data-aios-group=phone] #aiosShell .set > .card .cphone-price{margin:0;font-size:calc(var(--card-price) * var(--ds-card-u));font-weight:800;line-height:1.2;color:var(--ink);overflow-wrap:anywhere}
:root[data-aios-group=phone] #aiosShell .set > .card .cphone-line{margin:var(--ds-space-4) 0 0;font-size:calc(var(--card-label) * var(--ds-card-u));line-height:1.35;color:var(--sub);overflow-wrap:anywhere}
:root[data-aios-group=phone] #aiosShell .set > .card:not(.contact-open) > .cbody > :is(.cta-or,.cta-or ~ .cta-bar){display:none}
:root[data-aios-group=phone] #aiosShell .set > .card .cta-bar-btn .cta-arrow{display:none}
:root[data-aios-group=phone] #aiosShell .set > .card .cta-bar-btn{justify-content:center;padding-left:var(--ds-space-8);padding-right:var(--ds-space-8)}
:root[data-aios-group=phone] #aiosShell .set > .card .cta-bar-label{font-size:calc(var(--ds-card-button-words-phone) * var(--ds-card-u));letter-spacing:0;text-align:center;line-height:1.15;white-space:nowrap}
:root[data-aios-group=phone] #aiosShell .set > .card .cta-bar-label.has-phone{display:none}
:root[data-aios-group=phone] #aiosShell .set > .card .cta-bar-label-phone{display:inline;font-size:calc(var(--ds-card-button-words-phone) * var(--ds-card-u));letter-spacing:0;line-height:1.15;white-space:nowrap}
:root[data-aios-group=phone] #aiosShell .set > .card .cta-bar-label[data-wrap]{white-space:normal;text-wrap:balance}
:root[data-aios-group=phone] #aiosShell .set > .card .media :is(.status,.flag,.st-save,.st-out){font-size:calc(var(--ds-card-pill-phone) * var(--ds-card-u));line-height:1.2;padding:var(--ds-space-4) var(--ds-space-8)}
:root[data-aios-group=phone] #aiosShell .set > .card .media .incentives-banner{font-size:calc(var(--ds-card-banner-phone) * var(--ds-card-u));padding:var(--ds-space-6) var(--ds-space-8);gap:var(--ds-space-6);line-height:1.3}
:root[data-aios-group=phone] #aiosShell .set > .card .media .incentives-banner svg{width:12px;height:12px}
:root[data-aios-group=phone] #aiosShell .set > .card .media .status.repeats{display:none}
