/* How the house speaks after an act (Vikrant, 29 Oct 2026), drawn by designs/_said.html and moved by designs/said.js.
   Colours mean what they mean everywhere in the house: green done, burgundy not done or due, walnut said for knowing.
   The client's screens wear no green, so there done is said in walnut too (the foot of this sheet).
   This sheet is on every surface, so it names no face (7 Nov 2026). What the Office changed, its words, its stop and its
   acts, is asked for in a --said- variable and answered in said_office.css, which no other surface loads, so the
   fallbacks stand there: its own --sans at the weights it always had, the rose, the pill. */

/* The slips float in the page's top right corner, under the bar, so the page beneath never moves when one comes or goes
   (Vikrant chose the corner, 29 Oct 2026). A surface may stand them in the work instead, where they cover nothing: it
   answers --said-place with static, and says the gutter they stand in and the room above them (the Office, on a phone
   from 15 Nov 2026 and at every width from 16 Nov, in said_office.css). */
.said-slips { position: var(--said-place, fixed); top: calc(var(--said-bar, var(--topbar, 76px)) + 12px); right: var(--said-slips-edge, 20px); z-index: 40;
  width: var(--said-slips-width, min(380px, calc(100vw - 32px))); margin-inline: var(--said-gutter, 0);
  display: grid; gap: var(--said-slips-gap, 8px); pointer-events: none; }
.said-slips:empty { display: none; }
/* The room above the stack is its first slip's, so a slip that folds away in the work takes its room with it and the page
   settles where it stood before the slip came. A surface that stands its notices in the work may ask for the room between
   one notice and the next as well, a slip's or a stop's alike (--said-between), so a stack reads as one and not as two; it
   is each notice's own margin there, never the grid's gap, since a slip folds its margin away with it and a gap stays
   until the slip has gone. */
.said-slips > .slip:first-child { margin-top: var(--said-room, 0); }
.said-slips > .slip + .slip { margin-top: var(--said-between, 0); }
.stop + .said-slips > .slip:first-child { margin-top: var(--said-between, 0); }   /* stops lead a stack in the work (said.js), the slips under them */
.slip { pointer-events: auto; position: relative; overflow: hidden; margin: 0; width: var(--said-slip-width, auto); justify-self: var(--said-slip-side, auto); display: grid; grid-template-columns: var(--said-tick, var(--said-dot, 8px)) minmax(0, 1fr) auto;
  gap: 10px; align-items: start; padding: 6px 6px 6px 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--said-slip-lift, 0 12px 28px -16px color-mix(in srgb, var(--ink) 45%, transparent));
  font: var(--said-weight, 500) .9rem/1.4 var(--said-face, var(--sans)); animation: slip-in .22s cubic-bezier(.2, .7, .2, 1) both; }
.slip > i { justify-self: center; width: var(--said-dot, 8px); height: var(--said-dot, 8px); margin-top: calc(22px - var(--said-dot, 8px) / 2); border-radius: 50%; background: var(--quiet); }
/* The words' first line stands at the middle of the 44 px close, and the dot with it: a note that runs to two lines
   keeps its dot and its cross at the first, as a list keeps its bullet (the blind reader, 1 Nov 2026). */
.slip > span, .stop > span { padding-block: calc(22px - .7em); overflow-wrap: var(--said-long, inherit); }
/* How a sentence breaks is asked of each surface: inherited, so a surface that says nothing breaks where it always did. */
.slip > span, .stop > span, .beside, .record-line, .second-tap-ask { text-wrap: var(--said-wrap, inherit); }
.slip.is-done > i { background: var(--said-done, var(--fine)); }   /* green: done, all clear */
/* Done may be asked for a shape of its own, a mark cut from its green, so a done and a no part by more than colour. */
.slip.is-done > i { width: var(--said-tick, var(--said-dot, 8px)); height: var(--said-tick, var(--said-dot, 8px)); margin-top: calc(22px - var(--said-tick, var(--said-dot, 8px)) / 2);
  border-radius: var(--said-tick-corner, 50%); -webkit-mask: var(--said-tick-shape, none) center / contain no-repeat; mask: var(--said-tick-shape, none) center / contain no-repeat; }
.slip.is-done { border-color: var(--said-done-edge, var(--rule)); }
.slip.is-not-done > i { background: var(--wine); }             /* burgundy: not done, and already answered */
.slip.is-not-done { border-color: var(--said-no-edge, var(--rule)); }
/* A not done refuses as a stop does, and a surface may ask it to wear the stop's look: its words in the stop's ink, at the
   stop's size and inset, with no mark and so no mark's room, and the stop's cross. It still holds and goes as a slip. */
.slip.is-not-done { grid-template-columns: var(--said-no-columns, var(--said-tick, var(--said-dot, 8px)) minmax(0, 1fr) auto);
  gap: var(--said-no-gap, 10px); padding-left: var(--said-no-inset, 14px); color: var(--said-no-ink, var(--ink)); font-size: var(--said-no-size, .9rem); }
.slip.is-not-done > i { display: var(--said-no-mark, block); }
.slip.is-not-done > .slip-x { color: var(--said-no-ink, var(--quiet)); }
/* The close is a thumb's target on every screen, 44 px, its cross the house's stroked one at 18 px, large enough to be
   seen (a blind reader of the Club's Home, 31 Oct 2026); the slip's own padding is thinned so the slip is no taller for it. */
.slip-x, .stop-x { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--quiet);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; cursor: pointer; }
.slip-x svg, .stop-x svg { width: var(--said-cross, 18px); height: var(--said-cross, 18px); }
.slip-x:hover { color: var(--wine); }
.slip-x:focus-visible, .stop-x:focus-visible { outline: 2px solid var(--wine); outline-offset: 1px; }
/* The time left, a hairline that empties along the foot of the slip and stops while it is held. */
.slip::after { content: ""; display: var(--said-clock, block); position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--rule); transform-origin: left;
  transform: scaleX(0); }
.slip.is-timed::after { animation: slip-clock var(--slip-hold, 4000ms) linear forwards; }
.slip.is-held::after { animation-play-state: paused; }
.slip.is-leaving { animation: var(--said-slip-leave, slip-out) .36s cubic-bezier(.4, 0, .8, .4) forwards; pointer-events: none; }
@keyframes slip-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes slip-out { to { opacity: 0; transform: translateY(-14px); } }
/* In the work a slip that slid up and away would leave its room behind and then pull the page up at once: it folds away
   instead, fading as its height and its room close, so the page beneath rises with it. said.js gives it its height first,
   since a height cannot be drawn from auto. */
@keyframes slip-fold { to { opacity: 0; height: 0; margin-top: 0; padding-block: 0; border-block-width: 0; } }
@keyframes slip-clock { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* In the work said.js stands the notices before a part in a holder of their own. A surface may ask how wide the stack
   stands there: across the part, or as wide as its widest sentence and no wider than a measure, so the notices in it
   share one width and their edges meet. They stand in one column of it, as wide as the holder or as the widest of them
   (--said-stack-columns), so a stack keeps one width whatever width the holder itself is given: across the row whose
   rule it takes, or across a field's cell. */
[data-said-here] { width: var(--said-stack-width, auto); max-width: var(--said-stack-most, none); grid-template-columns: var(--said-stack-columns, minmax(0, 1fr)); }
/* In a holder every notice keeps the room between notices above it, the first as well: said.js seats the holder so the
   first stands where it should, and a slip that folds away from the top of the stack leaves the one under it where it
   stood, with no room of the first's to take up once it has gone. */
[data-said-here] .said-slips > .slip, [data-said-here] > .stop { margin-top: var(--said-between, 0); }

/* A stop stays until it is acted on: burgundy, due, on rose, and on the Office on ivory with a burgundy edge, since rose
   there means chosen (said_office.css). It stands at the foot of the screen, above any bar of acts the
   page keeps there (said.js measures it into --said-foot), nearest the button that was refused. Where a surface stands
   its notices in the work, the stop stands there too, under the slips, centred by nothing and arriving as a slip does. */
.stop { position: var(--said-place, fixed); z-index: 40; left: calc(50% + var(--said-rail, 0px) / 2); bottom: calc(var(--said-foot, 0px) + 16px); transform: var(--said-stop-shift, translateX(-50%));
  width: var(--said-stop-width, min(720px, calc(100vw - var(--said-rail, 0px) - 32px))); max-width: var(--said-stop-most, none);
  box-sizing: border-box; margin: var(--said-room, 0) var(--said-gutter, 0) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px; align-items: start; padding: 6px 6px 6px var(--said-stop-inset, 16px); background: var(--said-stop-ground, var(--wine-soft)); color: var(--said-stop-ink, var(--wine-deep));
  border: 1px solid var(--said-stop-edge, var(--rose-deep)); box-shadow: var(--said-stop-lift, none); border-radius: 12px;
  font: var(--said-weight, 600) .92rem/1.4 var(--said-face, var(--sans));
  animation: var(--said-stop-arrive, stop-in) .26s cubic-bezier(.2, .7, .2, 1) both; }
.stop + .stop { bottom: calc(var(--said-foot, 0px) + 16px + var(--stop-rise, 0px)); }
.said-slips:not(:empty) + .stop, .stop + .stop { margin-top: var(--said-between, 0); }   /* in the work, under the slips and under a stop, as one slip stands under another */
.stop-x { color: var(--wine); }
/* A piece a stop names may be a link to its own page (the memo's price, 15 Nov 2026): in the stop's own ink, underlined,
   since a link in the house's wine would not stand apart from words already wine. A name is held whole, as it always was.
   The sentence keeps a plain stop's leading, and the link keeps a thumb's 44 to press (Vikrant, 16 Nov 2026: "Plain
   leading, target kept (Recommended)"): until then every line of a sentence with a link stood 44 tall, so on a phone its
   lines stood 31 apart where a plain stop's stand 7 to 9, and read as two notes. The press is a pad 44 tall behind the
   name, reaching above and below its line over the sentence's other words, which take no press of their own, and the
   line is no taller for it. Every name's own words stand over every pad, so they always open that name: two names on two
   lines stand 21 apart, and a pad over the other's words would open the wrong piece (the blind reader, 15 Nov 2026:
   their pads pressed each other's). The close stands in its own column, clear of every pad. */
.stop > span:has(a) { position: relative; z-index: 0; pointer-events: none; }
.stop > span a { position: relative; display: inline-block; white-space: nowrap; color: inherit; text-decoration: underline; pointer-events: auto; }
.stop > span a::before { content: ""; position: absolute; inset: calc(.7em - 22px) 0; z-index: -1; }
@keyframes stop-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }

/* The note beside the field: a look or a box that is wanted, said under it, the box ringed, until the box is touched. */
.beside { margin: 6px 0 0; color: var(--wine); font: var(--said-weight, 600) .86rem/1.4 var(--said-face, var(--sans)); animation: slip-in .22s cubic-bezier(.2, .7, .2, 1) both;
  grid-column: 1 / -1; }
.is-wanted { border-radius: 12px; box-shadow: 0 0 0 1px var(--wine), 0 0 0 4px var(--wine-soft); transition: box-shadow .2s; }

/* The line on the record: where a result would have been, the reason it is not there and when, quiet, until a try succeeds. */
.record-line { margin: 6px 0 0; color: var(--quiet); font: var(--said-weight, 500) .84rem/1.4 var(--said-face, var(--sans)); grid-column: 1 / -1; }

/* The second tap: the button's own place holds its question, Yes and No, until a tap or 4 s (5 s when long). */
.second-tap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; animation: slip-in .18s cubic-bezier(.2, .7, .2, 1) both; }
.second-tap-ask { color: var(--wine); font: var(--said-weight, 600) .86rem/1.35 var(--said-face, var(--sans)); max-width: 40ch; }
.second-tap button { min-height: var(--said-act-height, 36px); padding: 0 16px; border: 1px solid var(--wine); border-radius: var(--said-act-corner, 999px); font: var(--said-act-weight, 600) var(--said-act-size, .84rem) var(--said-act, var(--sans)); cursor: pointer; }
.second-tap-yes { background: var(--wine); color: var(--wine-on); }
.second-tap-no { background: transparent; color: var(--said-act-ink, var(--wine)); }
.second-tap button.second-tap-no { border-color: var(--said-act-edge, var(--wine)); }
.second-tap button:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
/* On the salon's shade every button takes the salon's ink (salon.css), which left Yes ink on wine (1 Nov 2026): there the
   second tap wears the salon's pill — the chosen fill for Yes, the ring for No — at a phone's 44px. */
body.salon .second-tap button { min-height: 44px; padding: 0 20px; border: 1px solid var(--s-ring); font: 400 16px/1 var(--s-line); }
body.salon .second-tap-yes { background: var(--s-chosen); border-color: var(--s-chosen); color: var(--s-on-chosen); }
body.salon .second-tap-no { background: none; color: var(--s-ink); }
body.salon .second-tap-ask { font: 400 14px/1.4 var(--s-line); }

/* The floor's tablet has no bar that stays, so the corner is the screen's own. */
body.tablet .said-slips { top: 16px; right: 16px; }
/* The App and the Team App are phones: the slip spans the screen under the notch, inside the house's gutter. */
body.app .said-slips, body.passport .said-slips { top: calc(env(safe-area-inset-top, 0px) + 12px); left: 16px; right: 16px; width: auto; }

@media (max-width: 560px) {
  .said-slips { left: 16px; right: 16px; width: auto; }
}

/* The client's screens — the App, and the salon on the floor's tablet — wear no green (Vikrant, 30 Oct 2026: "there
   should be no green"). A done says itself in walnut, the quiet line, as a said does; burgundy stays for not done, so
   the dot still parts the one that wants her from the ones that do not. The words take the salon's line, Manrope 400
   at 16 px, since the salon wears no bold. The staff's screens keep green for all clear. */
:is(body.salon, body.cl, body.app:not(.team)) .slip.is-done > i { background: var(--quiet); }
:is(body.salon, body.cl, body.app:not(.team)) :is(.slip, .stop) { font: 400 16px/1.4 var(--sans); }
@media (prefers-reduced-motion: reduce) {
  .slip, .stop, .beside, .second-tap { animation: said-fade .2s linear both; }
  .stop { transform: var(--said-stop-shift, translateX(-50%)); }
  .slip.is-leaving { animation: said-fade-out .3s linear forwards; }
  @keyframes said-fade { from { opacity: 0; } }
  @keyframes said-fade-out { to { opacity: 0; } }
}
