:root, :host {
  --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';
  --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';
  --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';
  --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';
  --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';
  --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';
  --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';
  --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';
  --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';
  --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';
  --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';
  --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';
  --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';
  --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';
  --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';
  --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';
  --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';
  --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';
  --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';
  --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo';
  --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo';
  --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel';
  --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic';
  --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum';
  --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';
  --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';
  --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';
  --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';
  --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';
  --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';
  --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';
  --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';
  --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';
  --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';
  --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';
  --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';
  --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';
}

.svg-inline--fa {
  box-sizing: content-box;
  display: var(--fa-display, inline-block);
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
  width: var(--fa-width, 1.25em);
}
.svg-inline--fa.fa-2xs {
  vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
  vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
  vertical-align: -0.0714285714em;
}
.svg-inline--fa.fa-lg {
  vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
  vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
  vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left,
.svg-inline--fa .fa-pull-start {
  float: inline-start;
  margin-inline-end: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-pull-right,
.svg-inline--fa .fa-pull-end {
  float: inline-end;
  margin-inline-start: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-li {
  width: var(--fa-li-width, 2em);
  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
  inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
}

.fa-layers-counter, .fa-layers-text {
  display: inline-block;
  position: absolute;
  text-align: center;
}

.fa-layers {
  display: inline-block;
  height: 1em;
  position: relative;
  text-align: center;
  vertical-align: -0.125em;
  width: var(--fa-width, 1.25em);
}
.fa-layers .svg-inline--fa {
  inset: 0;
  margin: auto;
  position: absolute;
  transform-origin: center center;
}

.fa-layers-text {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

.fa-layers-counter {
  background-color: var(--fa-counter-background-color, #ff253a);
  border-radius: var(--fa-counter-border-radius, 1em);
  box-sizing: border-box;
  color: var(--fa-inverse, #fff);
  line-height: var(--fa-counter-line-height, 1);
  max-width: var(--fa-counter-max-width, 5em);
  min-width: var(--fa-counter-min-width, 1.5em);
  overflow: hidden;
  padding: var(--fa-counter-padding, 0.25em 0.5em);
  right: var(--fa-right, 0);
  text-overflow: ellipsis;
  top: var(--fa-top, 0);
  transform: scale(var(--fa-counter-scale, 0.25));
  transform-origin: top right;
}

.fa-layers-bottom-right {
  bottom: var(--fa-bottom, 0);
  right: var(--fa-right, 0);
  top: auto;
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: bottom right;
}

.fa-layers-bottom-left {
  bottom: var(--fa-bottom, 0);
  left: var(--fa-left, 0);
  right: auto;
  top: auto;
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: bottom left;
}

.fa-layers-top-right {
  top: var(--fa-top, 0);
  right: var(--fa-right, 0);
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: top right;
}

.fa-layers-top-left {
  left: var(--fa-left, 0);
  right: auto;
  top: var(--fa-top, 0);
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: top left;
}

.fa-1x {
  font-size: 1em;
}

.fa-2x {
  font-size: 2em;
}

.fa-3x {
  font-size: 3em;
}

.fa-4x {
  font-size: 4em;
}

.fa-5x {
  font-size: 5em;
}

.fa-6x {
  font-size: 6em;
}

.fa-7x {
  font-size: 7em;
}

.fa-8x {
  font-size: 8em;
}

.fa-9x {
  font-size: 9em;
}

.fa-10x {
  font-size: 10em;
}

.fa-2xs {
  font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-xs {
  font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-sm {
  font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-lg {
  font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-xl {
  font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-2xl {
  font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-width-auto {
  --fa-width: auto;
}

.fa-fw,
.fa-width-fixed {
  --fa-width: 1.25em;
}

.fa-canvas-square {
  padding-block: 0.125em;
  margin-block-end: -0.125em;
}

.fa-canvas-roomy {
  padding-block: 0.25em;
  padding-inline: 0.125em;
  margin-block-end: -0.25em;
  box-sizing: content-box;
}

.fa-ul {
  list-style-type: none;
  margin-inline-start: var(--fa-li-margin, 2.5em);
  padding-inline-start: 0;
}
.fa-ul > li {
  position: relative;
}

.fa-li {
  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
  position: absolute;
  text-align: center;
  width: var(--fa-li-width, 2em);
  line-height: inherit;
}

/* Heads Up: Bordered Icons will not be supported in the future!
  - This feature will be deprecated in the next major release of Font Awesome (v8)!
  - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
*/
/* Notes:
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
* --@{v.$css-prefix}-border-padding =
  ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
  ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
*/
.fa-border {
  border-color: var(--fa-border-color, #eee);
  border-radius: var(--fa-border-radius, 0.1em);
  border-style: var(--fa-border-style, solid);
  border-width: var(--fa-border-width, 0.0625em);
  box-sizing: var(--fa-border-box-sizing, content-box);
  padding: var(--fa-border-padding, 0.1875em 0.25em);
}

.fa-pull-left,
.fa-pull-start {
  float: inline-start;
  margin-inline-end: var(--fa-pull-margin, 0.3em);
}

.fa-pull-right,
.fa-pull-end {
  float: inline-end;
  margin-inline-start: var(--fa-pull-margin, 0.3em);
}

.fa-beat {
  animation-name: fa-beat;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-bounce {
  animation-name: fa-bounce;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}

.fa-fade {
  animation-name: fa-fade;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-beat-fade {
  animation-name: fa-beat-fade;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-flip {
  animation-name: fa-flip;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1.5s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-flip-360 {
  animation-name: fa-flip-360;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-shake {
  animation-name: fa-shake;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 0.75s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-spin {
  animation-name: fa-spin;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 2s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin-reverse {
  --fa-animation-direction: reverse;
}

.fa-pulse,
.fa-spin-pulse {
  animation-name: fa-spin;
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, steps(8));
}

.fa-spin-snap {
  animation-name: fa-spin-snap;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 3s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin-snap-4 {
  animation-name: fa-spin-snap-4;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 2.4s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin-snap-8 {
  animation-name: fa-spin-snap-8;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 4s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-buzz {
  animation-name: fa-buzz;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 0.6s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-wag {
  animation-name: fa-wag;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 0.9s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-out);
  transform-origin: bottom center;
}

.fa-float {
  animation-name: fa-float;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 3s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
  will-change: transform;
}

.fa-swing {
  animation-name: fa-swing;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1.2s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-out);
  transform-origin: top center;
}

.fa-jello {
  animation-name: fa-jello;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 0.9s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .fa-beat,
  .fa-bounce,
  .fa-fade,
  .fa-beat-fade,
  .fa-flip,
  .fa-flip-360,
  .fa-pulse,
  .fa-shake,
  .fa-spin,
  .fa-spin-pulse,
  .fa-buzz,
  .fa-float,
  .fa-jello,
  .fa-spin-snap,
  .fa-spin-snap-4,
  .fa-spin-snap-8,
  .fa-swing,
  .fa-wag {
    animation: none !important;
    transition: none !important;
  }
}
@keyframes fa-beat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));
  }
  45% {
    transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22)));
  }
  65% {
    transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));
  }
  90% {
    transform: scale(1);
  }
}
@keyframes fa-bounce {
  0% {
    transform: scale(1, 1) translateY(0);
    animation-timing-function: var(--fa-animation-timing);
  }
  14% {
    transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px));
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
  }
  32% {
    transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));
    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
  }
  52% {
    transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1));
    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
  }
  70% {
    transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0);
    animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);
  }
  85% {
    transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1)));
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}
@keyframes fa-fade {
  0% {
    opacity: 1;
    transform: scale(1);
    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
  }
  40% {
    opacity: var(--fa-fade-opacity, 0.4);
    transform: scale(0.98);
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fa-beat-fade {
  0% {
    opacity: var(--fa-beat-fade-opacity, 0.4);
    transform: scale(1);
    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
  }
  25% {
    opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);
    transform: scale(var(--fa-beat-fade-scale, 1.28));
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  45% {
    opacity: 1;
    transform: scale(var(--fa-beat-fade-scale, 1.25));
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  65% {
    opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);
    transform: scale(var(--fa-beat-fade-scale, 1.28));
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  100% {
    opacity: var(--fa-beat-fade-opacity, 0.4);
    transform: scale(1);
  }
}
@keyframes fa-flip {
  0% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
  }
  8% {
    transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
  }
  35% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));
    animation-timing-function: linear;
  }
  65% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5));
    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
  }
  92% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
  }
  100% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));
  }
}
@keyframes fa-flip-360 {
  0% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);
  }
  8% {
    transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
  }
  50% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));
    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
  }
  80% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
  }
  100% {
    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));
  }
}
@keyframes fa-shake {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
  }
  8% {
    transform: rotate(35deg) translateX(1px);
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  }
  20% {
    transform: rotate(-22deg) translateX(-1px);
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  }
  35% {
    transform: rotate(15deg) translateX(1px);
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  }
  50% {
    transform: rotate(-9deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  65% {
    transform: rotate(5deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  78% {
    transform: rotate(-3deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  90% {
    transform: rotate(1deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fa-spin-snap {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  12% {
    transform: rotate(60deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  16.67% {
    transform: rotate(60deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  28.67% {
    transform: rotate(120deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  33.33% {
    transform: rotate(120deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  45.33% {
    transform: rotate(180deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: rotate(180deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  62% {
    transform: rotate(240deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  66.67% {
    transform: rotate(240deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  78.67% {
    transform: rotate(300deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  83.33% {
    transform: rotate(300deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  95.33% {
    transform: rotate(360deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fa-spin-snap-4 {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  15% {
    transform: rotate(90deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  25% {
    transform: rotate(90deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  40% {
    transform: rotate(180deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: rotate(180deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  65% {
    transform: rotate(270deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  75% {
    transform: rotate(270deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  90% {
    transform: rotate(360deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fa-spin-snap-8 {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  9% {
    transform: rotate(45deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  12.5% {
    transform: rotate(45deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  21.5% {
    transform: rotate(90deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  25% {
    transform: rotate(90deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  34% {
    transform: rotate(135deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  37.5% {
    transform: rotate(135deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  46.5% {
    transform: rotate(180deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: rotate(180deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  59% {
    transform: rotate(225deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  62.5% {
    transform: rotate(225deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  71.5% {
    transform: rotate(270deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  75% {
    transform: rotate(270deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  84% {
    transform: rotate(315deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  87.5% {
    transform: rotate(315deg);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  96.5% {
    transform: rotate(360deg);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fa-buzz {
  0% {
    transform: translateX(0) rotate(0deg);
    animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);
  }
  5% {
    transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg);
  }
  10% {
    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg);
  }
  15% {
    transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg);
  }
  20% {
    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg);
  }
  25% {
    transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg);
  }
  30% {
    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg);
  }
  35% {
    transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg);
  }
  40% {
    transform: translateX(0) rotate(0deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}
@keyframes fa-wag {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
  }
  12% {
    transform: rotate(var(--fa-wag-angle, 12deg));
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  24% {
    transform: rotate(2deg);
    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
  }
  36% {
    transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85));
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  48% {
    transform: rotate(1deg);
    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);
  }
  58% {
    transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6));
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  68% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes fa-float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
  }
  15% {
    transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1);
    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
  }
  35% {
    transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03));
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);
  }
  50% {
    transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01);
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);
  }
  70% {
    transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1);
    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);
  }
  90% {
    transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));
  }
}
@keyframes fa-swing {
  0% {
    transform: rotate(0deg);
    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
  }
  8% {
    transform: rotate(var(--fa-swing-angle, 22deg));
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  }
  18% {
    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85));
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  }
  28% {
    transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65));
    animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);
  }
  38% {
    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45));
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  48% {
    transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25));
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  56% {
    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1));
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  64% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes fa-jello {
  0% {
    transform: scale(1, 1);
    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);
  }
  12% {
    transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15)));
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  }
  24% {
    transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12));
    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
  }
  36% {
    transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5)));
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  48% {
    transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3));
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  }
  58% {
    transform: scale(1.02, 0.98);
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  68% {
    transform: scale(1, 1);
  }
  100% {
    transform: scale(1, 1);
  }
}
.fa-rotate-90 {
  transform: rotate(90deg);
}

.fa-rotate-180 {
  transform: rotate(180deg);
}

.fa-rotate-270 {
  transform: rotate(270deg);
}

.fa-flip-horizontal {
  transform: scale(-1, 1);
}

.fa-flip-vertical {
  transform: scale(1, -1);
}

.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
  transform: scale(-1, -1);
}

.fa-rotate-by {
  transform: rotate(var(--fa-rotate-angle, 0));
}

.svg-inline--fa .fa-primary {
  fill: var(--fa-primary-color, currentColor);
  opacity: var(--fa-primary-opacity, 1);
}

.svg-inline--fa .fa-secondary {
  fill: var(--fa-secondary-color, currentColor);
  opacity: var(--fa-secondary-opacity, 0.4);
}

.svg-inline--fa.fa-swap-opacity .fa-primary {
  opacity: var(--fa-secondary-opacity, 0.4);
}

.svg-inline--fa.fa-swap-opacity .fa-secondary {
  opacity: var(--fa-primary-opacity, 1);
}

.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
  fill: black;
}

.svg-inline--fa.fa-inverse {
  fill: var(--fa-inverse, #fff);
}

.fa-stack {
  display: inline-block;
  height: 2em;
  line-height: 2em;
  position: relative;
  vertical-align: middle;
  width: 2.5em;
}

.fa-inverse {
  color: var(--fa-inverse, #fff);
}

.svg-inline--fa.fa-stack-1x {
  --fa-width: 1.25em;
  height: 1em;
  width: var(--fa-width);
}
.svg-inline--fa.fa-stack-2x {
  --fa-width: 2.5em;
  height: 2em;
  width: var(--fa-width);
}

.fa-stack-1x,
.fa-stack-2x {
  inset: 0;
  margin: auto;
  position: absolute;
  z-index: var(--fa-stack-z-index, auto);
}
/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* A small Input, DatePicker or Select draws the design system's field corner, radius-md, on its outline only. The
   design gives every button and input radius-md at every size, and Ant Design's small size takes `borderRadiusSM`
   (radius-sm, 4px). That token cannot be set for these three in theme.ts as it is for Button and InputNumber: in Input it
   also rounds the clear icon's focus ring, in DatePicker the 24px calendar cells, the today outline, the time-column
   items and the tags, and in Select the tags and option rows, all of which stay radius-sm. So the field's own corner is
   set here, where only the outline is reached (design system tokens.json, radius). A field in a compact row or an input group keeps Ant Design's own corners (square where it meets its neighbour), so those
   are left out. Two classes each, to win over
   Ant Design's one-class small rule whatever the load order (theme/__tests__/cascadeSelectors.test.ts). */
.ant-input.ant-input-sm:not(.ant-input-compact-item, .ant-input-group *),
.ant-input-affix-wrapper.ant-input-affix-wrapper-sm:not(.ant-input-affix-wrapper-compact-item, .ant-input-group *),
.ant-picker.ant-picker-small:not(.ant-picker-compact-item) {
	border-radius: var(--radius-md);
}

/* Select draws its corner from its own variable, which the small size sets to radius-sm. */
.ant-select.ant-select-sm {
	--sd-select-border-radius: var(--radius-md);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */
.sd-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-2);
	padding: var(--space-8) var(--space-4);
	/* 420px design width at the default text size, in rem so it widens with the text size. */
	max-width: 26.25rem;
	margin: 0 auto;
}

.sd-state-icon {
	/* 48px design size at the default text size, in rem so it follows the text size. */
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--surface-sunken);
	color: var(--ink-muted);
	margin-bottom: var(--space-2);
}

/* The animated mark standing in the icon's place (StateMark; design system MarkMoments): the icon's 48px and its space
   under it, in rem so it follows the text size. Mark's width and height attributes are only the fallback. */
.sd-state-mark {
	display: block;
	flex: none;
	width: 3rem;
	height: 3rem;
	margin-bottom: var(--space-2);
}

.sd-state-mark .sd-mark {
	display: block;
	width: 100%;
	height: 100%;
}

.sd-state-icon-ok {
	background: var(--pine-soft);
	color: var(--pine);
}

.sd-state-icon-warn {
	background: var(--short-soft);
	color: var(--short);
}

.sd-state-icon-err,
.sd-state-error .sd-state-icon {
	background: var(--danger-soft);
	color: var(--danger);
}

.sd-state-offline .sd-state-icon {
	background: var(--sub-soft);
	color: var(--sub);
}

.sd-state-kind {
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
	color: var(--danger);
}

/* Its size comes from the shared title classes (theme/titles.css); the container's gap spaces it. Its colour is set
   here: inside a table's placeholder (.ant-table-placeholder) it would otherwise inherit Ant Design's disabled text
   colour, a quarter of the ink (design: StaffTableStates). */
.sd-state .sd-state-title {
	margin: 0;
	color: var(--ink);
	/* The message is at most 420px wide, so a long title's last word can wrap alone: its lines are evened out. */
	/* eslint-disable-next-line css/use-baseline -- a nicety: a browser without it wraps the title as usual */
	text-wrap: balance;
}

/* Its line: caption inside a page, body size when the message is the whole page (design: SystemStates); ink-muted. The
   extra line after the action is always a caption, its link in pine. */
.sd-state .sd-state-line,
.sd-state .sd-state-extra {
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-line);
	color: var(--ink-muted);
	margin: 0;
}

.sd-state .sd-state-extra a {
	color: var(--pine);
}

/* The line before it that holds a link (search's Did you mean; design: SortAndNoResults): the ink at body size, its link
   pine and bold. */
.sd-state .sd-state-lead {
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
	color: var(--ink);
	margin: 0;
}

.sd-state .sd-state-lead a {
	color: var(--pine);
	font-weight: 700;
}

.sd-state-page .sd-state-line {
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

/* A whole-page message sits in the middle of the page's main, across and down (design: SystemStates, the main's
   `place-items: center`). The main is the layout's (AppLayout, StaffLayout), which fills the height between header and
   footer; it is centred only while the message is all it holds, so no other page's layout changes. */
main:has(> .sd-state-page:only-child) {
	display: grid;
	place-items: center;
}

/* A whole-page error's live region: the line, the action and the extra line, laid out as the message's own column. */
.sd-state-live {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
}

.sd-state .ant-btn {
	margin-top: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The drawn dialog (design: `.sd-dialog` in its scrim): its width is DIALOG_PROPS' 27.5rem (440px at the default text
   size, growing with it), and it is never closer to a phone's edges than the scrim's padding, --space-4 (16px at the
   default text size; it follows the text too, so 32px at a 32px default). Ant Design's phone rule is
   `.ant-modal-root .ant-modal { max-width: calc(100vw - 16px) }`, two classes; this is three, so it wins whatever order
   the styles load in. */
.ant-modal-root .ant-modal.sd-dialog {
	max-width: calc(100vw - 2 * var(--space-4));
}

/* Nothing in a dialog is wider than the dialog (design system 1792524564-d7c1, bundle.css: `.sd-dialog` is
   border-box, its children may shrink and never pass its width, and so may its inputs, textareas and fields). Here
   `.sd-dialog` is the `.ant-modal`, its children are the container's header, body and footer and what the body holds,
   and the inputs are Ant Design's (an affix wrapper holds an input with a prefix or suffix), and `.sd-field` is the
   shared Field's form item. */
.ant-modal.sd-dialog {
	box-sizing: border-box;
}

.sd-dialog .ant-modal-container > *,
.sd-dialog .ant-modal-body > * {
	min-width: 0;
	max-width: 100%;
}

.sd-dialog .ant-input,
.sd-dialog .ant-input-affix-wrapper,
.sd-dialog .sd-field {
	box-sizing: border-box;
	max-width: 100%;
}

/* The footer's buttons (design: `.sd-dialog-acts`): at the end of the row, 8px apart, wrapping onto another line when
   they do not fit, with the same 8px between the lines. Ant Design spaces them with a margin on the second button
   only, so a wrapped one touched the one above and was indented by it (browser re-check R4); the gap replaces it. */
.ant-modal.sd-dialog .ant-modal-footer {
	container: sd-dialog-footer / inline-size;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--space-2);
}

/* Five classes, to outrank Ant Design's `.ant-modal .ant-modal-footer > .ant-btn + .ant-btn` (four), whose styles are
   injected after this sheet. `.sd-dialog` twice, not another class, so every `.sd-dialog` that gets the gap above
   also loses the margin: a dialog without `sd-wrap-buttons` would otherwise get both. */
.ant-modal.sd-dialog.sd-dialog .ant-modal-footer > .ant-btn {
	margin: 0;
}

/* A footer narrower than 16rem (a phone at 150% text or more: "Cancel" and "Send the link" took 384px at 200%) stacks
   its buttons, each the footer's full width, in the footer's order. In rem, so it follows the text size: a 375 phone at
   the default size keeps them side by side (its footer is about 18rem). */
@container sd-dialog-footer (width < 16rem) {
	.ant-modal.sd-dialog .ant-modal-footer > .ant-btn {
		flex: 1 1 100%;
	}
}

/* The dialog that fills the window (DIALOG_FULL_PROPS, `sd-dialog-full`): the window's width (the props' 100%) and
   height (the frames' one viewport height), no gap at the edges, no padding or rounded corners, its body filling what
   the hidden header leaves. Its max-width undoes the 16px margin the rule at the top keeps (four classes to its three). */
.ant-modal-root .ant-modal.sd-dialog.sd-dialog-full {
	max-width: 100%;
	top: 0;
	margin: 0;
	padding: 0;
}

.sd-dialog-full .ant-modal-container {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	height: var(--sd-viewport-block);
	padding: 0;
	border-radius: 0;
}

.sd-dialog-full .ant-modal-header {
	margin: 0;
	padding: 0;
	background: transparent;
}

.sd-dialog-full .ant-modal-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom property comes from theme/statusIcon.css, which the CSS linter cannot resolve */

/* A status icon before its words (StatusIcon.tsx). The box is one line of the surrounding text tall (1lh, the line
   height it inherits), so in a row aligned to flex-start the icon sits centred on the first line however the words
   wrap. The icon itself is the shared status-icon size; set on the icon, not the box, so the box's line stays the
   text's. */
.sd-status-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: 1lh;
}

.sd-status-icon .svg-inline--fa {
	font-size: var(--status-icon-size);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The body of every confirm (ConfirmDialog.tsx). */
.ant-typography.sd-confirm-text {
  /* Out-ranks Ant Design's `div.ant-typography` bottom margin: the body is the dialog's last line. */
  margin: 0;
}

/* The muted line under the body (`mutedLine`; design: the confirms' `Muted(...)`), 12px under it. */
.sd-confirm-muted {
  margin: var(--space-3) 0 0;
}

/* A failed confirm's reason, 8px under the body: its look is the shared error line (theme/surfaces.css
   `.sd-error-line`; design: `sd-dialog-error`). */
.sd-confirm-error {
  margin: var(--space-2) 0 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */
.sd-icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

.sd-powered {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--space-2);
}

/* The mark follows the caption's text size (1rem at the default); Mark's width/height attributes are only its fallback. */
.sd-powered .sd-mark {
	width: 1rem;
	height: 1rem;
}

.sd-powered b {
	color: var(--ink);
	font-weight: 700;
}

/* One green per logo: the wordmark is brand-pine, never the theme's pine, which turns mint in the dark theme. */
.sd-wordmark {
	display: block;
	fill: var(--brand-pine);
	flex: none;
}

[data-theme='dark'] .sd-wordmark {
	fill: var(--ink);
}

.sd-wordmark-ink {
	fill: var(--ink);
}

/* The gap between the mark and the wordmark is 0.3x the wordmark height, rounded to the nearest spacing token:
   20px (6, half-way between --space-1 and --space-2, rounded half up), 24px (7.2), 28px (8.4) and 32px (9.6) take --space-2 (8),
   48px (14.4) takes --space-4 (16). At 20px that is 0.4x, which the rounding rule accepts. */
.sd-lockup {
	display: inline-flex;
	align-items: center;
}

.sd-lockup-md {
	gap: var(--space-2);
}

.sd-lockup-lg {
	gap: var(--space-2);
}

.sd-lockup-counter {
	gap: var(--space-2);
}

.sd-lockup-xl {
	gap: var(--space-2);
}

.sd-lockup-xxl {
	gap: var(--space-4);
}

/* The mark is the same in both themes: a brand-pine tile, white ink and a harvest tin. `--on-pine` cannot be the ink,
   because it turns dark in the dark theme where pine turns mint; the white is the one deliberate fixed colour. */
.sd-mark-tile {
	fill: var(--brand-pine);
}

.sd-mark-ink {
	fill: #fff;
}

.sd-mark-tin {
	fill: var(--harvest);
}

/* The rattle (design system MarkAnimated, `animate="rattle"`): the bottle, the jar, its lid and the tin each rock a
   little, out of step, then settle; the tile and the shelf stay still. Mark draws the parts inline and useRattle toggles
   .sd-rattling on the <svg>. The values are the design system's assets/images/sundries-mark-rattle.svg, word for word
   (brand.test.tsx parses both): 300 ms each, cubic-bezier(0.2, 0, 0, 1), delays 0, 60, 90 and 150 ms. The lid's lift
   is in the mark's own 24-unit grid, not screen pixels: it scales with the mark (literalSizes.test.ts). */
.sd-mark.sd-rattling .sd-mk-item {
	transform-box: fill-box;
	transform-origin: center bottom;
	animation: sd-mk-rattle 300ms cubic-bezier(0.2, 0, 0, 1) both;
}

.sd-mark.sd-rattling .sd-mk-jar {
	animation-delay: 60ms;
}

.sd-mark.sd-rattling .sd-mk-lid {
	animation: sd-mk-rattle-lid 300ms cubic-bezier(0.2, 0, 0, 1) 90ms both;
}

.sd-mark.sd-rattling .sd-mk-tin {
	animation: sd-mk-rattle-tin 300ms cubic-bezier(0.2, 0, 0, 1) 150ms both;
}

@keyframes sd-mk-rattle {
	25% { transform: rotate(-7deg); }
	55% { transform: rotate(5deg); }
	80% { transform: rotate(-2deg); }
}

@keyframes sd-mk-rattle-lid {
	25% { transform: translateY(-0.6px) rotate(9deg); }
	55% { transform: rotate(-6deg); }
	80% { transform: rotate(3deg); }
}

@keyframes sd-mk-rattle-tin {
	25% { transform: rotate(6deg); }
	55% { transform: rotate(-5deg); }
	80% { transform: rotate(2deg); }
}

/* The outline (Mark and Wordmark `outline`; design: Mark, Wordmark, CounterSleep D and E): every path hollow, a 1.5px
   ink-muted stroke that keeps its width at any size, the group at 50%. A brand exception, the asleep counter's only. No
   line-width token is 1.5px (theme/ghostText.css, the store's ghost text, is the same stroke). */
.sd-mark-outline {
	opacity: 0.5;
}

.sd-mark-outline path {
	fill: none;
	stroke: var(--ink-muted);
	stroke-width: 0.09375rem;
	vector-effect: non-scaling-stroke;
}

/* The glow (Mark and Wordmark `animate='glow'`; design: CounterSleep E, MarkAnimated): the full-colour logo over its
   outline, fading in and back out on one 8-second breath, the store plate's timing (RestingPlate.css): the outline
   alone to 12%, full at 90% from 50% to 62%, the outline again by 100%. */
.sd-brand-glow {
	opacity: 0;
	animation: sd-brand-breathe 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sd-brand-breathe {
	0%, 12% {
		opacity: 0;
	}

	50%, 62% {
		opacity: 0.9;
	}

	100% {
		opacity: 0;
	}
}

/* Reduced motion: the still mark. Last, so it wins over the rules above at the same specificity. */
@media (prefers-reduced-motion: reduce) {
	.sd-mark.sd-rattling .sd-mk-item {
		animation: none;
	}

	/* The glow's outline holds (drawn: CounterSleep E, reduced motion). */
	.sd-brand-glow {
		animation: none;
		opacity: 0;
	}
}

/* A moment of success's mark (MomentMark): its own box, so the caller's layout places it as one item. */
.sd-moment-mark {
	display: inline-flex;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Caption type from .sd-caption (the design's 13px has no token; caption is the nearest, 14px), an underlined bold link.
   The credit and the links are two flex items, so a narrow footer wraps between them (design: LegalFooter). */
.sd-legal {
	margin: 0;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-1) var(--space-3);
}

.sd-legal a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */
/* Off-screen until focused, then top-left in ink on a raised plate with the standard focus ring (global.css). */
.sd-skip-link {
	position: absolute;
	inset-inline-start: var(--space-2);
	top: var(--space-2);
	z-index: 1100;
	box-sizing: border-box;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--ink);
	font-weight: 700;
	transform: translateY(-200%);
}

.sd-skip-link:focus {
	transform: none;
}

/* The skip link's target takes focus without drawing a ring around the whole column: one rule for every layout
 * (public pages, shopper shell, staff portal), so none of them carries its own copy. */
main[id='main']:focus {
	outline: none;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The three-way theme choice: a segmented control whose options are touch targets. The chosen option is raised
   (surface, a 1px line, shadow and bold), never told by colour alone; the line also keeps it apart from the track in
   Dark, where the raised and sunken surfaces are close. */
.sd-theme-choice {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
}

.sd-theme-choice-label {
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
	color: var(--ink);
}

.sd-theme-choice-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	box-sizing: border-box;
	padding: var(--space-1);
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
}

.sd-theme-choice-option {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	box-sizing: border-box;
	min-width: var(--touch-min);
	min-height: var(--touch-min);
	padding: 0 var(--space-3);
	/* Transparent until chosen, so the chosen option's line does not move anything. */
	border: var(--sd-line-width) solid transparent;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}

.sd-theme-choice-option:hover {
	background: var(--surface);
}

.sd-theme-choice-option[aria-checked='true'] {
	background: var(--surface-raised);
	border-color: var(--line);
	box-shadow: var(--shadow-float);
	font-weight: 700;
}

/* Each word is as wide as it is in bold, chosen or not: otherwise the chosen option's bold makes Match device wider,
   and in the account menu, where the three only just share a line, it goes onto a line of its own and the control
   changes shape. The bold copy is a hidden second grid row with no height; hidden, it is not read. */
.sd-theme-choice-word {
	display: inline-grid;
}

.sd-theme-choice-word::after {
	content: attr(data-word);
	height: 0;
	overflow: hidden;
	visibility: hidden;
	font-weight: 700;
}

.sd-theme-choice-compact .sd-theme-choice-option {
	flex: 0 0 auto;
	padding: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The public pages (PublicChrome and its parts). Colours are the design tokens (tokens.css); sizes are Ant Design's
   theme variables (--sd-*), which remTokens.ts writes in rem, so every space and type size follows the person's text
   size. The column widths are in rem for the same reason. */

.sd-pub,
.sd-pub *,
.sd-pub *::before,
.sd-pub *::after {
	box-sizing: border-box;
}

.sd-pub {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	color: var(--ink);
	font-size: var(--sd-font-size);
	line-height: var(--sd-line-height);
}

.sd-pub-bar {
	border-color: var(--line);
	border-style: solid;
	border-width: 0;
}

.sd-pub-header {
	border-bottom-width: var(--sd-line-width);
}

.sd-pub-footer {
	border-top-width: var(--sd-line-width);
	color: var(--ink-muted);
	font-size: var(--sd-font-size-sm);
	line-height: var(--sd-line-height-sm);
}

.sd-pub-bar-inner {
	/* 1120px at the default text size: the design's widest column. */
	max-width: 70rem;
	margin: 0 auto;
	padding: var(--sd-padding-sm) var(--sd-padding-lg);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sd-padding-xs);
}

/* The © line and the legal line side by side at the start, the theme choice at the end (design:
   LegalFooter, beside the other footer items on desktop). Each group wraps as its words need, never a forced row, so at
   375px and 200% text nothing crowds: the legal line goes under the © line, and the theme choice under both. */
.sd-pub-footer-start {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: var(--sd-padding-lg);
	row-gap: var(--sd-padding-xxs);
	min-width: 0;
}

/* LegalFooter centres itself (its phone and email form); beside the © line it starts where the line does. */
.sd-pub-legal .sd-legal {
	text-align: start;
	justify-content: flex-start;
}

/* On a phone the three stack, centred (design: LegalFooter, "stacked and centred ... on a phone"). */
@media (max-width: 47.9375em) {
	.sd-pub-footer-inner,
	.sd-pub-footer-start {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}

	.sd-pub-legal .sd-legal {
		text-align: center;
		justify-content: center;
	}
}

.sd-pub-home {
	display: inline-flex;
	align-items: center;
	min-height: var(--sd-control-height);
}

/* An address the person typed is one long word: at 375px and 200% text it ran past the screen. Any word may break
   rather than widen the page (WCAG 1.4.10). */
.sd-pub-main {
	overflow-wrap: anywhere;
	flex-grow: 1;
	width: 100%;
	margin: 0 auto;
	padding: var(--sd-padding-xl) var(--sd-padding-lg);
	display: flex;
	flex-direction: column;
	gap: var(--sd-padding-lg);
}

/* One column of reading: 720px at the default text size. */
.sd-pub-main-narrow {
	max-width: 45rem;
}

.sd-pub-main-wide {
	max-width: 70rem;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	column-gap: var(--sd-margin-xxl);
	row-gap: var(--sd-margin-xxl);
}

@media (min-width: 48em) {
	.sd-pub-main {
		padding-block: var(--sd-margin-xxl);
	}
}

/* A phone gets the 16px gutter the rest of the app uses, so 200% text still leaves room for a word. */
@media (max-width: 30em) {
	.sd-pub-main,
	.sd-pub-bar-inner {
		padding-inline: var(--sd-padding);
	}
}

/* Columns of the wide layout. The basis is in em so the columns stack sooner as the text grows. */
.sd-pub-column {
	flex: 1 1 26em;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--sd-padding-lg);
}

.sd-pub-column-aside {
	flex-basis: 20em;
	gap: var(--sd-padding);
}

.sd-pub-stack {
	display: flex;
	flex-direction: column;
	gap: var(--sd-padding);
}

/* The play-once mark on a public success page (PublicMark): 56px at the default text size, in rem so it follows the text
   size, and on the column's own left edge. Mark's width and height attributes are only the fallback. */
.sd-pub-mark {
	display: block;
	flex: none;
	align-self: flex-start;
	width: 3.5rem;
	height: 3.5rem;
}

.sd-pub-mark .sd-mark {
	display: block;
	width: 100%;
	height: 100%;
}

/* Type */
.sd-pub-h1 {
	margin: 0;
	font-size: var(--sd-font-size-heading-1);
	line-height: var(--sd-line-height-heading-1);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.sd-pub-h2 {
	margin: 0;
	font-size: var(--sd-font-size-heading-3);
	line-height: var(--sd-line-height-heading-3);
	font-weight: 700;
}

.sd-pub-lead {
	margin: 0;
	max-width: 34em;
	font-size: var(--sd-font-size-lg);
	line-height: var(--sd-line-height-lg);
}

.sd-pub-p {
	margin: 0;
}

.sd-pub-caption {
	margin: 0;
	color: var(--ink-muted);
	font-size: var(--sd-font-size-sm);
	line-height: var(--sd-line-height-sm);
}

.sd-pub-fine {
	margin: 0;
	padding-top: var(--sd-padding-lg);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-pub a:not(.ant-btn) {
	color: var(--pine);
	font-weight: 700;
}

.sd-pub a:not(.ant-btn):hover {
	color: var(--pine-hover);
}

/* A link that stands alone gets the touch target, not only its line of text. */
.sd-pub-link {
	align-self: flex-start;
	min-height: var(--sd-control-height);
	display: inline-flex;
	align-items: center;
	gap: var(--sd-padding-xxs);
	text-decoration: none;
}

/* Numbered steps */
.sd-pub-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--sd-padding);
}

.sd-pub-steps li {
	display: flex;
	gap: var(--sd-padding-sm);
}

.sd-pub-step-number {
	flex: none;
	width: var(--sd-control-height-sm);
	height: var(--sd-control-height-sm);
	border-radius: var(--sd-border-radius);
	background: var(--pine-soft);
	color: var(--pine);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-weight: 700;
}

/* Check list */
.sd-pub-checks {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--sd-padding-xs);
}

.sd-pub-checks li {
	display: flex;
	gap: var(--sd-padding-sm);
}

.sd-pub-check-icon {
	flex: none;
	margin-top: var(--sd-padding-xxs);
	color: var(--pine);
}

.sd-pub-checks-boxed {
	gap: 0;
	padding: var(--sd-padding-xs) var(--sd-padding-lg);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--sd-border-radius-lg);
	background: var(--surface-raised);
}

.sd-pub-checks-boxed li {
	padding: var(--sd-padding) 0;
}

.sd-pub-checks-boxed li + li {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-pub-checks-boxed .sd-pub-check-icon {
	color: var(--ink-muted);
}

/* Card section */
.sd-pub-card {
	padding: var(--sd-padding-lg);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--sd-border-radius-lg);
	display: flex;
	flex-direction: column;
	gap: var(--sd-padding-xs);
}

.sd-pub-card-raised {
	background: var(--surface-raised);
}

.sd-pub-card-section {
	gap: var(--sd-padding);
}

.sd-pub-card-title {
	margin: 0;
	font-size: var(--sd-font-size-heading-4);
	line-height: var(--sd-line-height-heading-4);
	font-weight: 700;
}

.sd-pub-card-section .sd-pub-card-title {
	font-size: var(--sd-font-size-heading-3);
	line-height: var(--sd-line-height-heading-3);
}

.sd-pub-card p {
	margin: 0;
}

/* A form in a card (the store enquiry form; design: StoreEnquiryForm, "Tell us about your store"): its heading, banner,
   fields and button spaced at the form gap, --sd-padding, wider than a card's line gap. */
.sd-pub-card-form {
	gap: var(--sd-padding);
}

.sd-pub-card-link {
	align-self: flex-start;
	min-height: var(--sd-control-height);
	display: inline-flex;
	align-items: center;
}

/* Two cards side by side where they fit (Closed beta). */
.sd-pub-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5em), 1fr));
	gap: var(--sd-padding);
}

/* Forms: fields side by side where they fit, the action and its note on one line where they fit. */
.sd-pub-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr));
	gap: var(--sd-padding);
	align-items: start;
}

.sd-pub-fields-wide {
	grid-column: 1 / -1;
}

.sd-pub-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sd-padding);
}

/* A link that no longer works (LinkRefusal; design: Waitlist, InvitationOptOut): the warning glyph over the title, then
   why and the one way on, left-aligned in the page's column. */
.sd-pub-refusal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sd-padding);
}

.sd-pub-refusal .sd-state-icon {
	margin: 0;
}

/* The waitlist's one-line form: the field grows, the button keeps its words on one line where it can. */
.sd-pub-inline-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--sd-padding-xs);
	max-width: 35em;
}

.sd-pub-inline-form > .ant-form-item {
	flex: 1 1 16em;
}

.sd-pub-inline-form > .ant-btn {
	flex: 0 1 auto;
}

/* Errors under a field come from antd; a form-level one sits in the flow like this. */
.sd-pub-error {
	margin: 0;
	color: var(--danger);
}

/* Override: Ant Design keeps a button's label on one line at a fixed height. On a phone at 200% text a public page's
   buttons ("Send to Sundries", "Back to sundries.ca") are wider than the screen, so they wrap like the block buttons in
   global.css do, keeping each size's height as the minimum (WCAG 1.4.4 and 1.4.10). */
.sd-pub .ant-btn {
	max-width: 100%;
	white-space: normal;
	height: auto;
	min-height: var(--sd-control-height);
	padding-block: var(--sd-padding-xxs);
}

.sd-pub .ant-btn.ant-btn-lg {
	min-height: var(--sd-control-height-lg);
}

/* A phone: cards and boxed lists take the 16px gutter inside too (after their own rules, so this wins). */
@media (max-width: 30em) {
	.sd-pub-card,
	.sd-pub-checks-boxed {
		padding-inline: var(--sd-padding);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the token stylesheet, which the CSS linter cannot resolve */

/* App start (design system MarkAnimated, the preview's loading card): the mark over its caption line, centred on the
   page's own background. One stylesheet for both places it is drawn: the splash (templates/splash.html), which paints
   before the bundle runs, and AppStarting in the SPA, which imports this file. It lives in templates/ because the
   server inlines it (templates/splash_head.html) and the image has templates/ but not assets/. */
.sd-app-starting {
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	background: var(--surface);
	font-family: var(--font-sans);
}

/* 56px at the default text size, as the preview's loading card draws it; in rem so it follows the text size, like the
   caption under it. The width and height attributes are only the fallback. */
.sd-app-starting .sd-mark {
	display: block;
	width: 3.5rem;
	height: 3.5rem;
}

/* The caption's type, as theme/caption.css sets .sd-caption, repeated for the splash: it paints before that stylesheet
   arrives with the bundle. appStarting.test.tsx fails if the two differ. */
.sd-app-starting .sd-caption {
	color: var(--ink-muted);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-line);
}

/* The splash covers the page from the first paint until the app is ready. It shows only while the head script
   (templates/splash_head.html) has set data-splash on <html>: once, then loading. */
.sd-splash {
	display: none;
}

html[data-splash] .sd-splash {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 10000;
}

html[data-splash='once'] .sd-splash-loading,
html[data-splash='loading'] .sd-splash-once {
	display: none;
}

/* The status line's region is empty until its words are written (by the splash's script when it shows the loop, by
   AppStarting a moment after it mounts), so a screen reader announces them. It keeps a line's height while empty, so
   the mark does not move when the words arrive. */
.sd-app-starting [role='status'] {
	min-height: var(--type-caption-line);
}

/* After 15 s without the app (splash_head.html): the still mark, the alert and Reload page, in place of the marks and
   the status line. Until then the mark and the button are not shown, and the alert is an empty region out of the
   layout (below), there for a screen reader to hear when its words are written. */
html:not([data-splash='failed']) .sd-splash-still,
html:not([data-splash='failed']) .sd-splash-reload,
html[data-splash='failed'] .sd-splash-once,
html[data-splash='failed'] .sd-splash-loading,
html[data-splash='failed'] .sd-splash .sd-caption {
	display: none;
}

/* The still mark in brand colours, as brand.css and core/frame.html draw it: the white ink is the same in both themes. */
.sd-splash-tile {
	fill: var(--brand-pine);
}

.sd-splash-ink {
	/* The mark's white ink is the same in both themes: --on-pine cannot be it, because it turns dark in the dark theme
	   where pine turns mint (brand.css). The one deliberate fixed colour. */
	fill: #fff;
}

.sd-splash-tin {
	fill: var(--harvest);
}

.sd-splash-failed {
	max-width: 30rem;
	margin: 0;
	padding: 0 var(--space-4);
	color: var(--ink);
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
	text-align: center;
}

/* Balanced lines, so a wrapped line never ends on one word ("page." alone at 800px wide). */
.sd-splash .sd-caption,
.sd-splash-failed {
	/* eslint-disable-next-line css/use-baseline -- an enhancement: a browser without it wraps the line as before */
	text-wrap: balance;
}

/* Empty, the alert takes no place in the column (an absolutely placed child of a flex box takes no gap). */
.sd-splash-failed:empty {
	position: absolute;
}

/* The primary button, as core/frame.html draws it: the bundle (and Ant Design's Button) never arrived. */
.sd-splash-reload {
	display: inline-flex;
	align-items: center;
	min-height: var(--touch-lg);
	padding: 0 var(--space-6);
	border: 0;
	border-radius: var(--radius-md);
	background: var(--pine);
	color: var(--on-pine);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.sd-splash-reload:hover {
	background: var(--pine-hover);
}

.sd-splash-reload:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

/* Inside the app's frame (SignUp's wait), the header and footer are already on the page: the wait fills the empty
   content area between them, with the mark centred in it as MarkMoments draws it, rather than a whole viewport of its
   own, which would push the footer a screen down. A true override of the splash's .sd-app-starting, which fills the
   viewport. */
.sd-app-starting.sd-short-wait-framed {
	flex: 1 0 auto;
	min-height: 0;
}

/* The app's <main> grows to fill the frame (AppLayout.css) but is not a flex container, so a child cannot fill it. Only
   while it holds the framed wait, it lays its child out in a column, so the wait above can take its height. */
.sd-app-main:has(> .sd-short-wait-framed) {
	display: flex;
	flex-direction: column;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* A status banner: an icon and words on the status's -soft fill, with no edge (design: StatusBanner, `.sd-banner`).
   Aligned to the top, as drawn: the icon's box is one line tall (StatusIcon), so the icon sits on the first line when
   the words wrap, and level with a single line as before. */
.sd-banner {
	display: flex;
	align-items: flex-start;
	gap: var(--sd-padding-xs);
	padding: var(--sd-padding-sm) var(--sd-padding);
	border-radius: var(--sd-border-radius);
	color: var(--ink);
	font-size: var(--sd-font-size-sm);
	/* 14/20 as drawn (design: `.sd-banner`, like `.sd-field-error`): the caption line, not Ant Design's 22px SM line.
	   The icon's box (StatusIcon, 1lh) is this line tall. */
	line-height: var(--type-caption-line);
	font-weight: 700;
}

.sd-banner-compact {
	align-self: flex-start;
	padding: var(--sd-padding-xxs) var(--sd-padding-sm);
	border-radius: var(--sd-border-radius-sm);
}

/* Larger words, for a banner read from across a counter (design: CounterIdentity, `Install` 16/24, `RanOut` 18/26).
   After `.sd-banner` in this file, so each wins whatever order the stylesheets load in. */
.sd-banner-body {
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

.sd-banner-body-lg {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
}

/* The icon level with the middle of a line that holds a button (design: CounterIdentity, `Install` in Chrome). */
.sd-banner-centre {
	align-items: center;
}

/* Its words and button take the line, so the button can sit at the end of it. */
.sd-banner-centre > .sd-banner-words {
	flex: 1;
	min-width: 0;
}

/* Words with something after them (`after`): the words, then what follows, 8px apart, across the banner. */
.sd-banner-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
}

/* Inside a Settings section: body weight, so the name the copy puts in bold stands out (design: Settings). */
.sd-banner-section {
	font-weight: 400;
}

.sd-banner-pine {
	background: var(--pine-soft);
}

.sd-banner-pine .sd-banner-icon {
	color: var(--pine);
}

.sd-banner-sub {
	background: var(--sub-soft);
}

.sd-banner-sub .sd-banner-icon {
	color: var(--sub);
}

.sd-banner-danger {
	background: var(--danger-soft);
}

.sd-banner-danger .sd-banner-icon {
	color: var(--danger);
}

/* A warning (design: `.sd-banner-warn`): the short status's fill and icon. */
.sd-banner-short {
	background: var(--short-soft);
}

.sd-banner-short .sd-banner-icon {
	color: var(--short);
}

/* Something still to come: an estimate, or an answer waited for (design: `.sd-banner-estimate`, StoreOrderEdit). */
.sd-banner-estimate {
	background: var(--estimate-soft);
}

.sd-banner-estimate .sd-banner-icon {
	color: var(--estimate);
}

/* A mail link inside a banner's words (design: AuthSignIn, "Suspended account"): the words' own colour, bold and
   underlined, so it reads as a link on the -soft fill without a second colour. Two classes, so Ant Design's `a:hover`
   colour does not win on hover. */
.sd-banner .sd-banner-link {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Out-ranks Ant Design's bottom margin on a form item: the screen's own gap spaces the fields. */
.ant-form-item.sd-field {
	margin: 0;
}

/* The hint and the caption under a field are blocks, so their caption line height (20px) spaces their lines: as inline
   spans inside Ant Design's help and extra lines, each wrapped line kept the container's taller line height. */
.ant-form-item.sd-field .ant-form-item-explain .sd-caption,
.ant-form-item.sd-field .ant-form-item-extra .sd-caption {
	display: block;
}

/* The error shares the hint's caption size (the drawing's .sd-field-error is 14/20 as .sd-field-help is) through
   `.sd-caption` on the same span, but keeps Ant Design's error colour, which `.sd-caption`'s ink-muted would replace. */
.ant-form-item.sd-field .sd-field-error {
	color: inherit;
	/* The alert icon, then the words (design: `.sd-field-error`, flex with the icon at the first line). The gap is
	   space-2 (the drawing's 6px, on the scale). */
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
}

/* A checkbox with its caption (CheckField): the box at the label's first line, the label at least a large touch target
   tall, and the caption on its own line under the label. */
.sd-check-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-check-field .ant-checkbox-wrapper {
	align-items: flex-start;
	min-height: var(--touch-lg);
}

.sd-check-field-help {
	display: block;
}

/* An error under a control with no form item around it (a checkbox, a segmented choice), and a section's problem line
   (SetupSteps/ProblemLine: the hours, the holidays): the field error's look, in the danger colour, which out-ranks
   .sd-caption's ink-muted. */
.sd-check-field .sd-field-error,
.sd-field-choice .sd-field-error,
.sd-field-error.sd-problem-line {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	color: var(--danger);
}

/* A box with words after it on its line (Field and SelectField's `after`: "days after the ready email", "hours before
   each run"), the words wrapping under it on a narrow screen. */
.sd-field-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-3);
}

.sd-field-row > .ant-input-affix-wrapper,
.sd-field-row > .ant-input,
.sd-field-row > .ant-select {
	flex: none;
}

/* A masked value in a field's place (MaskedField): the label over it, and the mask and its Show at an input's height, so
   the form does not jump when the input takes its place. */
.sd-masked-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-masked-field-label {
	font-weight: 700;
}

.sd-masked-field-value {
	display: flex;
	align-items: center;
	min-height: var(--sd-control-height-lg);
}

/* A hidden label (`hideLabel`) takes no room: Ant Design's label column keeps its 8px padding and line height around the
   visually hidden words, which would leave a 32px gap over the box. */
.sd-field-label-hidden > .ant-form-item-row > .ant-form-item-label {
	position: absolute;
	width: var(--sd-line-width);
	height: var(--sd-line-width);
	margin: calc(-1 * var(--sd-line-width));
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* LastPass's own icon beside a field it should leave alone (ignoreFill.ts: every field that names no autocomplete token,
   such as Most orders). Field gives that input every password manager's ignore hint, but LastPass does not honour its
   own attribute and still draws its icon there. Its icon is a `[data-lastpass-icon-root]`
   element it puts beside the input, so the rule hides that one only where the input says to ignore it: an email or a
   name keeps its offer to fill. */
input[data-lpignore='true'] ~ [data-lastpass-icon-root],
.ant-input-affix-wrapper:has(> input[data-lpignore='true']) ~ [data-lastpass-icon-root] {
	/* eslint-disable-next-line css/no-important -- LastPass writes its icon's styles inline, which only an important declaration outranks */
	display: none !important;
}

/* eslint-disable css/no-invalid-properties -- the custom properties are Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The widget sizes itself (Cloudflare's flexible size: the container's width, at least 300px); the message below it
   keeps the page's rhythm.
   The min-height is an override, not a token: Cloudflare draws the flexible widget 65px tall whatever the text size,
   and its script arrives after the page. Holding that height from the first paint lets the widget (or the message
   saying it did not load) appear in its place instead of pushing the rest of the page down. */
.sd-turnstile {
	display: grid;
	gap: var(--sd-padding-xs);
	max-width: 100%;
	min-height: 65px;
	align-content: start;
}

/* Cloudflare's 65px iframe is inline, so it would sit on a text line and gain the gap under the baseline (7px at our
   body text, more as the text grows), and the held height would no longer match. With no line, the widget is exactly
   its 65px at any text size. */
.sd-turnstile-widget {
	line-height: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The store's identity (design: StoreIdentity). Its measures are the drawing's, in rem (16px = 1rem at the default
   text size) so the plate keeps pace with the name beside it; no token holds the plate's sizes. */
.sd-store {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-width: 0;
}

.sd-store-hero {
	flex-direction: column;
	align-items: flex-start;
}

.sd-store-stacked {
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

/* The monogram plate: 48px in the header, 72px in the hero (the drawing). */
.sd-store-plate {
	flex: none;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	overflow: hidden;
	border-radius: var(--radius-md);
}

.sd-store-hero .sd-store-plate {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: var(--radius-lg);
}

/* A logo on the plate colour with a line border, the same padding on all four sides: 8px in the header (the logo up to
   32px tall and 112px wide), 16px in the hero (up to 40px tall, 176px wide). Multiply, so a white background in the
   file takes on the plate's colour and never shows as a white box (the drawing). */
.sd-store-plate-logo {
	width: auto;
	height: auto;
	padding: var(--space-2);
	border: var(--sd-line-width) solid var(--line);
	background: var(--plate);
	isolation: isolate;
}

.sd-store-hero .sd-store-plate-logo {
	width: auto;
	height: auto;
	padding: var(--space-4);
}

.sd-store-plate-logo img {
	display: block;
	width: auto;
	height: auto;
	max-height: 2rem;
	max-width: 7rem;
	mix-blend-mode: multiply;
}

.sd-store-hero .sd-store-plate-logo img {
	max-height: 2.5rem;
	max-width: 11rem;
}

.sd-store-plate-mono {
	background: var(--pine-soft);
	color: var(--pine);
	font-weight: 700;
	font-size: var(--type-title-3-size);
	letter-spacing: 0.02em;
}

/* 28px in the hero (the drawing); the type scale's 28px is the aisle quantity's. */
.sd-store-hero .sd-store-plate-mono {
	font-size: var(--type-qty-aisle-size);
}

.sd-store-text {
	min-width: 0;
}

/* Header names clamp at two lines. */
.sd-store-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: var(--type-title-3-size);
	line-height: var(--type-title-3-line);
	font-weight: 700;
	color: var(--ink);
	overflow-wrap: anywhere;
}

/* The hero name: 32px (display), and a name over 26 characters drops to 24px (title 1) and clamps at three lines. */
.sd-store-hero .sd-store-name {
	font-size: var(--type-display-size);
	line-height: var(--type-display-line);
	letter-spacing: -0.01em;
}

.sd-store-hero.sd-store-long .sd-store-name {
	font-size: var(--type-title-1-size);
	line-height: var(--type-title-1-line);
	-webkit-line-clamp: 3;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

.sd-auth-frame {
	gap: var(--space-6);
	padding: var(--space-12) var(--space-4);
}

/* 420px at the default 16px root, and wider as the person's text size grows, so labels are never cut off. The store's
   identity over the card on a screen for one store (AuthCreate, joining by code) takes the card's width, so the name
   starts at the card's left edge. */
.sd-auth-card.ant-card,
.sd-auth-store {
	width: 100%;
	max-width: 26.25rem;
}

.sd-auth-card-body {
	gap: var(--space-4);
}

/* The page's h1: its size is title-1 (theme/titles.css); the card body's gap spaces it, so no margin of its own.
   Element-qualified: Ant Design spaces `h1.ant-typography` itself. */
h1.ant-typography.sd-auth-card-title {
	margin: 0;
}

/* A line of copy inside the card: the card body's gap spaces it, so it has no margin of its own. Element-qualified
   because Ant Design's `div.ant-typography` bottom margin beats a lone class. */
.ant-typography.sd-auth-text {
	margin: 0;
}

/* A link inside a line of copy is the drawn inline link (design: JoinStore, AuthSignIn `Lnk`): pine and bold, so it
   reads as a link in the sentence. */
.ant-typography.sd-auth-text a {
	color: var(--pine);
	font-weight: 700;
}

.ant-divider-horizontal.ant-divider-with-text.sd-auth-divider {
	margin: 0;
}

/* A form that adds no box: its fields and buttons sit in the card body's column, spaced by its gap. */
.sd-auth-form {
	display: contents;
}

/* A state icon, or the mark in its place, above the title (AuthPasskey): the card body's gap spaces it, so it drops
   StateMessage's own margin. */
.sd-auth-card-body .sd-state-icon,
.sd-auth-card-body .sd-state-mark {
	margin: 0;
}

/* The line under the body saying what a passkey is (design: `sd-explain`): its key icon, then caption-size words in
   ink-muted. The icon's box is one line tall, so it sits on the first line however the words wrap. */
.sd-auth-explain {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	margin: 0;
}

.sd-auth-explain-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	height: var(--type-caption-line);
}

/* "You can add one later in Settings." under Not now. */
.sd-auth-muted {
	margin: 0;
}

/* "New here? Create an account" closes sign in. Left-aligned like the rest of the screen (design README, Alignment:
   links and captions under a button share the screen's left edge), so it sets no text-align. */
.sd-auth-new {
	display: block;
}

/* "Back to sign in" under a refused link's way on (design: AuthEmailLink `Back()`): left-aligned, the link in bold. */
.sd-auth-back {
	margin: 0;
}

.sd-auth-back a {
	font-weight: 700;
}

/* The lockup over the card is the way home: it keeps the lockup's own look, with no link colour or underline. */
.sd-auth-home {
	display: inline-flex;
	color: inherit;
	text-decoration: none;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The two boxes, stacked inside the screen's card: the card's own gap spaces them from the fields around them. */
.sd-agreement {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-agreement:focus {
	outline: none;
}

/* The drawn agreement box (design bundle .sd-agree): body text, and each document's name a bold pine link. The bundle
   sets the size as 16px / 24px; here it is the body type tokens, which are the same at the default text size and
   follow the person's text-size setting. */
.sd-agreement .ant-checkbox-wrapper {
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

.sd-agreement a {
	color: var(--pine);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* The external-link glyph after a document's name (design bundle .sd-agree: the glyph inline, a 4px gap). */
.sd-agreement-external {
	margin-left: var(--space-1);
}

/* Ant Design puts a left margin on a checkbox that follows another on one line; stacked, they line up on the left. */
.sd-agreement .ant-checkbox-wrapper + .ant-checkbox-wrapper {
	margin-inline-start: 0;
}

/* As a field's error (Field.css .sd-field-error): the icon, then the words, in the danger colour, which out-ranks
   .sd-caption's ink-muted. */
.sd-agreement .sd-agreement-error {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	margin: 0;
	color: var(--danger);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Two fields to a row from a tablet's width (the drawings' two columns: a run's days and times, a first and a last name),
   one column on a phone. Each track is minmax(0, 1fr), never a bare 1fr: 1fr's minimum is its content's, so a select
   sized to "Wednesday" at 200% text makes the column 329px wide in a 227px card at 375. */
.sd-field-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	align-items: start;
}

@media (min-width: 40rem) {
	.sd-field-pair {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* The same fields one above the other at every width: a sheet on a phone (StaffUsers' Edit details). */
.sd-field-stack {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	align-items: start;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */
.sd-avatar {
	flex: none;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: var(--surface-sunken);
	color: var(--ink);
	font-weight: 700;
	line-height: 1;
}

/* 32px at the default text size: inside AccountButton. */
.sd-avatar-md {
	width: var(--space-8);
	height: var(--space-8);
	font-size: var(--type-label-size);
}

/* 44px: at the top of the menu. */
.sd-avatar-lg {
	width: var(--touch-min);
	height: var(--touch-min);
	font-size: var(--type-body-strong-size);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */
.sd-account-button {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	box-sizing: border-box;
	min-width: var(--touch-min);
	min-height: var(--touch-min);
	padding: 0 var(--space-1);
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}

.sd-account-button:hover {
	background: var(--surface-sunken);
}

/* Open, the button takes the sunken ground and the avatar flips to raised, so it stays tied to the open menu. */
.sd-account-button[aria-expanded='true'] {
	background: var(--surface-sunken);
}

.sd-account-button[aria-expanded='true'] .sd-avatar {
	background: var(--surface-raised);
}

.sd-account-button-chevron {
	color: var(--ink-muted);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The sheet's frame: rounded top, never taller than the screen, and the grab handle. (The rounded rule used to name
   .ant-drawer-content, which Ant Design 6 no longer renders: the panel is .ant-drawer-section.) The panel grows to
   fit its content and, past the wrapper's cap below, shrinks so the body scrolls. */
.sd-bottom-sheet .ant-drawer-section {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* The header is one touch-min bar (design: AccountMenu, the icon legend, the filters): the grab handle centred on
   its top edge, Close at the end, no hairline, 16px at the sides. A hidden title leaves the bar holding only Close
   and the handle; a drawn one sits at the start. The top padding is the extent of Close's focus ring (2px offset +
   2px width): the panel clips at its rounded top, so a Close flush with the edge lost the top of its ring. */
.sd-bottom-sheet .ant-drawer-header {
	position: relative;
	padding: var(--space-1) var(--space-4) 0;
	border-bottom: 0;
}

/* The wrapper is as tall as its content (size auto) up to the dynamic viewport; past that the panel shrinks and the
   body scrolls, so Close and the name stay reachable at a large text size (WCAG 1.4.4, 1.4.10). The viewport's
   height is the frames' one value (theme/frame.css). */
.sd-bottom-sheet .ant-drawer-content-wrapper {
	display: flex;
	flex-direction: column;
	max-height: var(--sd-viewport-block);
}

.sd-bottom-sheet .ant-drawer-body {
	padding: 0 0 var(--space-4);
	/* A row scrolled into view (End at a large text size) keeps room for its focus ring: 2px offset + 2px width. */
	scroll-padding-block: var(--space-2);
}

.sd-bottom-sheet-handle {
	position: absolute;
	inset-inline: 0;
	top: var(--space-2);
	width: var(--space-12);
	height: var(--space-1);
	margin: 0 auto;
	border-radius: var(--radius-sm);
	background: var(--line-strong);
}

/* A drawn title (the shared sd-title-3) sits at the start of the bar beside Close; focus lands on it with no ring. */
.sd-bottom-sheet .ant-drawer-title span:focus {
	outline: none;
}

/* A pinned footer under the scrolling body, set off by a hairline. */
.sd-bottom-sheet .ant-drawer-footer {
	border-top: var(--sd-line-width) solid var(--line);
}

/* The caption over a drawn title (`over`): a line of its own above it, under the grab handle rather than across it
   (design: CartCheckout's choice sheet, the handle's own row and then the item's name). The handle ends 12px down the
   bar (its 8px top and 4px height), and the bar's own padding is 4px, so 12px more clears it by 4px. */
.sd-bottom-sheet-over {
	display: block;
	padding-top: var(--space-3);
}

/* A drawn title with no caption over it clears the handle the same way: the handle is absolute across the bar's top,
   so a title long enough to wrap (Mark HGM-9004 collected by hand? at 375) began under it. With a caption, the caption
   has cleared it already; a hidden title draws nothing. */
.sd-bottom-sheet-title {
	display: block;
	padding-top: var(--space-3);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* border-box throughout this file: Ant Design only resets box-sizing inside its own components, so without it a
   width or min-height plus padding and border adds up past the design measure. */
/* The dropdown: 336px at the default text size (design: AccountMenu; no token holds it), never wider than the screen. */
.sd-account-menu {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 21rem;
	max-width: calc(100vw - var(--space-8));
	overflow: hidden;
	background: var(--surface-raised);
	color: var(--ink);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-float);
}

.sd-account-menu:focus {
	outline: none;
}

/* The sheet: the drawer draws the frame, the panel fills it. */
.sd-account-menu-sheet {
	width: 100%;
	max-width: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.sd-account-menu-person {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-4) var(--space-5);
}


/* A long name or address wraps inside the menu rather than widening it (WCAG 1.4.10). */
.sd-account-menu-who {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-account-menu-name {
	font-weight: 700;
}

/* Going: on surface-raised, each row ending in a chevron. The rows are inset by the menu's 8px padding (design:
   AccountMenu) so a row's focus ring (2px, offset 2px) has room on all four sides inside the menu's clipped edge, and
   the gap keeps one row's ring off the next row. */
/* A hairline above the first row, inset by the container's 8px padding (design: AccountMenu), between the person block
   and the rows, in the menu and the sheet alike. */
.sd-account-menu-go {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-2);
	background: var(--surface-raised);
}

.sd-account-menu-go::before {
	content: '';
	position: absolute;
	inset-inline: var(--space-2);
	top: 0;
	border-top: var(--sd-line-width) solid var(--line);
}

/* Acting: the theme choice and Sign out together in a surface band under a hairline, no chevrons. */
.sd-account-menu-act {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-2) var(--space-2);
	background: var(--surface);
	border-top: var(--sd-line-width) solid var(--line);
}

/* Every row: the width of its container, the same 12px inset, icon then label. 48px tall at the default text size (design:
   AccountMenu; no token holds it), so never under touch-min. */
.sd-account-menu-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: var(--space-1) var(--space-3);
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--ink);
	font: inherit;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}

.sd-account-menu-row:hover {
	background: var(--surface-sunken);
	color: var(--ink);
}

.sd-account-menu-row[aria-current='page'] {
	background: var(--pine-soft);
}

.sd-account-menu-label {
	flex: 1 1 auto;
	min-width: 0;
}

.sd-account-menu-icon,
.sd-account-menu-chevron {
	flex: none;
	color: var(--ink-muted);
}

/* The label lines up with the rows' text (8px of band padding plus the rows' 12px). */
.sd-account-menu-theme .sd-theme-choice-label {
	padding-inline: var(--space-3);
}

/* In the 336px menu Light, Dark and Match device share one line at the default text size (design: AccountMenu): a
   tighter option (less padding; the icon-to-label gap is the base option's --space-2, as drawn), still touch-min tall.
   The padding is --space-1, not the drawing's --space-2: with each word as wide as its bold (ThemeChoice.css) the three
   need 318px of the band's 310 at --space-2, and 294 at --space-1 (measured). At a large text size the
   options wrap onto a second line, which is fine. */
.sd-account-menu-theme .sd-theme-choice-option {
	padding-inline: var(--space-1);
	white-space: nowrap;
}

.sd-account-menu-signout {
	margin: 0;
}

.sd-account-menu-foot {
	display: flex;
	justify-content: center;
	padding: var(--space-3);
	border-top: var(--sd-line-width) solid var(--line);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The dialog (design: AgreeAgain): its body line, then the error banner, then the boxes, 12px apart. */
.sd-agree-again-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-agree-again-title,
.sd-agree-again-text {
	margin: 0;
}

/* Agree, right-aligned (`sd-dialog-acts`), and the foot under it, each a full line of the dialog's wrapping footer:
   otherwise the foot sat at the row's end, indented by however much shorter than the line its words were. */
.sd-agree-again-acts,
.sd-agree-again-foot {
	flex: 1 1 100%;
}

.sd-agree-again-acts {
	display: flex;
	justify-content: flex-end;
}

/* The foot: a caption above a hairline, read from the start of the line, its two links bold pine. */
.sd-agree-again-foot {
	/* The footer's 8px gap and this make the drawn 16px above the hairline. */
	margin: var(--space-2) 0 0;
	padding-top: var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
	text-align: start;
}

.sd-agree-again-foot a {
	font-weight: 700;
	color: var(--pine);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */
/* The page gutter (16px a side, in rem), so a phone at 200% text keeps a column wide enough for a word. */
.sd-app-footer {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-app-footer-note {
	margin: 0;
	color: var(--ink-muted);
	text-align: center;
}

/* Stacked and centred on a phone; PoweredBy left and LegalFooter right from 768px. */
.sd-app-footer-row {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--page-wide);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
}

/* The drawn footer: 16px by 24px, its two parts 24px apart when they share a line. */
@media (min-width: 48em) {
	.sd-app-footer {
		padding-inline: var(--space-6);
	}

	.sd-app-footer-row {
		flex-direction: row;
		justify-content: space-between;
		column-gap: var(--space-6);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */
.sd-app {
	display: flex;
	flex-direction: column;
	background: var(--surface);
}

/* The header bar (design: AppShell): raised, a hairline under it; the 56px app bar on a phone and 64px on desktop at
   the default text size. */
.sd-app-header {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	min-height: 3.5rem;
	padding: var(--space-2) var(--space-4);
	background: var(--surface-raised);
	border-bottom: var(--sd-line-width) solid var(--line);
}

@media (min-width: 48em) {
	.sd-app-header {
		gap: var(--space-4);
		min-height: 4rem;
		padding-inline: var(--space-6);
	}
}

.sd-app-header-find,
.sd-app-header-home {
	display: inline-flex;
	align-items: center;
	min-height: var(--touch-min);
}

/* "Find your store": the drawn text button, its pin then the words, pine-soft under the pointer. */
.sd-app-header-find {
	gap: var(--space-2);
	padding-inline: var(--space-1) var(--space-3);
	border-radius: var(--radius-md);
	color: var(--pine);
	font-weight: 700;
	text-decoration: none;
}

.sd-app-header-find:hover {
	background: var(--pine-soft);
	color: var(--pine);
}

/* The account button (or Sign in) is always last on the right. */
.sd-app-header-end {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
}

.sd-app-main {
	flex: 1 0 auto;
}

/* A store page's start (StoreLayout): Back and the store's identity take the room the end leaves, the name clamping
   rather than pushing the account button off the bar (design: BrowseResults' app bar). It never gets narrower than
   Back and the store's plate: a name gives its room up first (BarStore truncates it to nothing), and when even the
   plate would not fit beside the end, as at 200% text on a phone, the header wraps the end onto a line of its own
   rather than drawing the theme button over the plate. */
.sd-app-header-store {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: min-content;
}

.sd-app-header-store .sd-store {
	flex: 1 1 auto;
}

/* An auth screen with no header (design: AuthSignIn): its content sits in the middle of the window's height, the
   footer still at the foot. */
.sd-app-main-centred {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */
.sd-skel {
	background: var(--surface-sunken);
	border-radius: var(--radius-sm);
	position: relative;
	overflow: hidden;
}

.sd-skel::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface-raised) 35%, transparent), transparent);
	transform: translateX(-100%);
	animation: sd-shimmer 1.4s infinite;
}

[data-theme='dark'] .sd-skel::after {
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 6%, transparent), transparent);
}

@keyframes sd-shimmer {
	to {
		transform: translateX(100%);
	}
}

.sd-skel-tile {
	display: flex;
	flex-direction: column;
}

.sd-skel-tile > .sd-skel:first-child {
	/* 144px at the default text size, in rem so it follows the text size. */
	height: 9rem;
	border-radius: var(--radius-md);
}

.sd-skel-lines {
	margin-top: var(--space-2);
	border-top: 3px solid var(--line);
	padding-top: var(--space-2);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-skel-prow {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	background: var(--surface-raised);
	border-bottom: var(--sd-line-width) solid var(--line);
	align-items: center;
}

/* The product-row skeleton stacks as the rows it stands in for do (ProductTile.css, `stack`): drawn inside the same
   list of rows, narrower than 20em the thumbnail goes on top and the text and the action under it, so the wait is in
   the shape of what comes. */
@container sd-prow-list (width < 20em) {
	.sd-skel-prow {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}
}

.sd-skel-row {
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr);
	gap: var(--space-3);
	padding: var(--space-4);
	background: var(--surface-raised);
	border-bottom: var(--sd-line-width) solid var(--line);
}

.sd-skel-col {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* The bars' sizes. Heights and fixed widths are rem (16px = 1rem at the default text size) so a bar keeps pace with the
   text it stands in for; the percentage widths are shares of the column. */
.sd-skel-thumb,
.sd-skel-action {
	border-radius: var(--radius-md);
}

.sd-skel-thumb {
	width: 4.5rem;
	height: 4.5rem;
}

.sd-skel-action {
	width: 2.75rem;
	height: 2.75rem;
}

.sd-skel-name {
	height: 1rem;
	width: 90%;
}

.sd-skel-meta {
	height: 0.875rem;
	width: 50%;
}

.sd-skel-price {
	height: 1rem;
	width: 3.5rem;
}

.sd-skel-row-icon {
	height: 2rem;
	width: 2.75rem;
}

.sd-skel-row-title {
	height: 1.25rem;
	width: 85%;
}

.sd-skel-row-sub {
	height: 0.875rem;
	width: 40%;
}

.sd-skel-line-title {
	height: 1.375rem;
	width: 45%;
}

.sd-skel-line {
	height: 1rem;
}

.sd-skel-line-short {
	height: 1rem;
	width: 60%;
}

/* A checklist line (a role's permissions): a checkbox-sized box, then a label about a permission key wide. In rem, so
   both follow the text size. */
.sd-skel-check {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-skel-check-box {
	height: 1rem;
	width: 1rem;
	flex: none;
}

.sd-skel-check-label {
	height: 1rem;
	width: 12rem;
	max-width: 100%;
}

/* An aisle tile (design: Skeleton `kind="aisle"`): the same box as a Shop by aisle tile (`sd-cat`, 72px tall
   at the default text size, in rem so it grows with the text), then a block the size of the aisle's glyph (24px tall,
   fixed width 1.25 times that) and a label bar 16px tall, each in rem to follow the text size. */
.sd-skel-aisle {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 4.5rem;
	padding: var(--space-3);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
}

/* 6px corners, as drawn: between the radius tokens' 4px and 8px. */
.sd-skel-aisle-glyph {
	flex: none;
	width: 1.875rem;
	height: 1.5rem;
	border-radius: 0.375rem;
}

.sd-skel-aisle-label {
	height: 1rem;
}

/* The drawing's six label widths in turn, shares of the tile, so a row does not read as one tile repeated. */
.sd-skel-aisle-label-0 {
	width: 62%;
}

.sd-skel-aisle-label-1 {
	width: 78%;
}

.sd-skel-aisle-label-2 {
	width: 54%;
}

.sd-skel-aisle-label-3 {
	width: 70%;
}

.sd-skel-aisle-label-4 {
	width: 48%;
}

.sd-skel-aisle-label-5 {
	width: 66%;
}

/* The product page while it loads (design: Skeleton `kind="product"`): the photo's plate at its drawn height
   (240px at the default text size, as ProductDetail.css's plate) with --space-2 under it, two name lines (22px, full
   width then 60%), the size line (16px, 45%, --space-1 above it) and the price (30px, 96px wide, --space-2 above it),
   --space-2 between them and nothing below the price. Heights are rem so the bars follow the text size. */
.sd-skel-product {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-skel-product-plate {
	height: 15rem;
	border-radius: var(--radius-lg);
	margin-bottom: var(--space-2);
}

.sd-skel-product-name {
	height: 1.375rem;
	width: 100%;
}

.sd-skel-product-name-short {
	width: 60%;
}

.sd-skel-product-size {
	height: 1rem;
	width: 45%;
	margin-top: var(--space-1);
}

.sd-skel-product-price {
	height: var(--type-price-lg-line);
	width: 6rem;
	margin-top: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* "Store enquiries ›" above a record's title: the section's link, bold, then a muted chevron. */
.sd-breadcrumb {
	font-size: var(--sd-font-size-sm);
	font-weight: 700;
}

.sd-breadcrumb-separator {
	color: var(--ink-muted);
	font-weight: 400;
}

/* The page itself at the end of a trail ("… › audit log"): muted and not bold, as the separators are. */
.sd-breadcrumb-current {
	color: var(--ink-muted);
	font-weight: 400;
}

/* A record's page (a store enquiry, a user, a person on a store's team): the breadcrumb right above the title it
   belongs to, in any frame. */
.sd-record-heading {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-record-heading > h1,
.sd-record-heading > h1.ant-typography {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A staff page's loading card: bars in a record's Details card's shape, or a settings form's. Sizes in rem, so they
   keep pace with the text. */
.sd-record-skeleton {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-record-skel-facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-6);
}

.sd-record-skel-fact {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-record-skel-title {
	height: 1.375rem;
	width: 7.5rem;
}

.sd-record-skel-key {
	height: 0.75rem;
	width: 4.375rem;
}

.sd-record-skel-value {
	height: 1rem;
	width: 9.375rem;
}

.sd-record-skel-line {
	height: 1rem;
	width: 90%;
}

.sd-record-skel-line-short {
	height: 1rem;
	width: 70%;
}

/* A settings form: three labels, each over its control, at the control height Ant Design gives a Segmented. */
.sd-record-skel-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-record-skel-label {
	height: 1rem;
	width: 7.5rem;
}

.sd-record-skel-control {
	height: var(--sd-control-height);
	width: 18.75rem;
	max-width: 100%;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The lock line (StaffCatalogue's NoManage, StoreTeam's reasons): the lock level with the first line, the words beside
   it. */
.sd-lock-line {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
}

.sd-lock-line svg {
	/* One caption line tall, so the lock sits on the first line when the words wrap. */
	height: 1lh;
	flex: none;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The group (design: StaffSiteSettings, Public site): no fieldset frame, the cards 8px apart under the legend. */
.sd-radio-cards {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sd-radio-cards-legend {
	margin: 0 0 var(--space-2);
	padding: 0;
}

/* Ant Design's group lays its radios in a row; here they are cards in a column. */
.sd-radio-cards-group.ant-radio-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* A card: the raised surface, a hairline edge, the large radius; the radio first, then the words. Override: Ant
   Design's radio wrapper is an inline row with a gap after it, sized to its words; a card takes the column's width and
   its own padding (`.ant-radio-wrapper` is named to out-rank Ant Design's rule). */
.ant-radio-wrapper.sd-radio-card {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	margin: 0;
	padding: var(--space-4);
	background: var(--surface-raised);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	cursor: pointer;
}

/* A card with controls of its own (`extra`): the box takes the card's look, and the radio's label inside it is the
   card's top part, with the card's padding but no edge or fill of its own. */
.sd-radio-card-box {
	background: var(--surface-raised);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
}

.ant-radio-wrapper.sd-radio-card.sd-radio-card-in-box {
	background: transparent;
	border: 0;
}

/* The controls under the line, in line with the words: after the card's padding, the radio's 1.25rem and the gap. */
.sd-radio-card-extra {
	padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + 1.25rem + var(--space-3));
}

/* Ant Design follows the wrapper with a no-break space (`::after`) to space it from the next radio in a row; in a card
   it only takes width from the words. */
.ant-radio-wrapper.sd-radio-card::after {
	display: none;
}

/* Ant Design pads the words after the radio; the card's gap spaces them instead. */
.ant-radio-wrapper.sd-radio-card > span:last-child {
	padding: 0;
}

/* The radio, 20px at the default text size (the drawing's), with its dot 10px: 5px of ring each side, as Ant Design
   spaces its own 16px radio's 6px dot. Override: Ant Design sizes the circle from fontSizeLG (16px) in px, which would
   neither match the drawing nor follow the person's text size, so the card names the sizes in rem. The selectors name
   `.ant-radio-wrapper` as well so they out-rank Ant Design's own (two classes and an element to its one and one),
   whatever order the styles load in. The colours stay
   Ant Design's, which theme.ts pins to the palette (pine, on-pine, line) in both themes. It sits a little down, on the
   label's first line. */
.ant-radio-wrapper.sd-radio-card .ant-radio {
	width: 1.25rem;
	height: 1.25rem;
	margin-block-start: calc(var(--space-1) / 2);
	align-self: flex-start;
}

.ant-radio-wrapper.sd-radio-card .ant-radio::after {
	width: 0.625rem;
	height: 0.625rem;
}

/* Keyboard focus rings the whole card (the drawing's focus treatment is on the card), with the app's ring: 2px of
   `focus`, 2px out (theme/global.css). `:focus-within` with `:has(:focus-visible)`: a card a mouse pressed is not
   ringed, as no other control is. */
.ant-radio-wrapper.sd-radio-card:focus-within:has(:focus-visible) {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* A boxed card rings the box, which holds the radio and its controls, and not the label inside it. */
.sd-radio-card-box:has(.ant-radio-input:focus-visible) {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

.ant-radio-wrapper.sd-radio-card-in-box:focus-within:has(:focus-visible) {
	outline: none;
}

/* ...and not the circle as well: global.css rings every `.ant-radio` round a focused input, at one id's specificity
   (`:not(#sd-focus-ring)`), so this names the card's radio with the same id to take it off here only. */
.sd-radio-card .ant-radio:has(.ant-radio-input:focus-visible):not(#sd-focus-ring) {
	outline: none;
}

/* The live value: pine edge doubled by a ring of the same width, on pine-soft. */
.ant-radio-wrapper.sd-radio-card-chosen,
.sd-radio-card-box.sd-radio-card-chosen {
	border-color: var(--pine);
	box-shadow: 0 0 0 var(--sd-line-width) var(--pine);
	background: var(--pine-soft);
}

/* The label and its line --space-1 apart (the drawing's gap, on the scale). */
.sd-radio-card-words {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

.sd-radio-card-label {
	font-weight: 700;
}

.sd-radio-card-now {
	font-weight: 400;
}

/* A card that can't be chosen (StoreTeam's roles above the person adding): drawn, its words muted, its lock line saying
   why; Ant Design's disabled radio and not-allowed cursor are kept. */
.ant-radio-wrapper.sd-radio-card-locked,
.sd-radio-card-box.sd-radio-card-locked {
	color: var(--ink-muted);
	cursor: not-allowed;
}

/* The columns layout (design: CartCheckout, a desktop's pickup days): the cards side by side in equal columns,
   8px apart. */
.sd-radio-cards-columns .sd-radio-cards-group.ant-radio-group {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: var(--space-2);
}

/* A compact card: 12px of padding (the drawing's), the radio beside the label on the first row, and the detail and
   description under both, across the card. Override: the words' wrappers (Ant Design's label span and ours) step out
   of the layout so their parts are the card's grid items. */
.sd-radio-cards-columns .ant-radio-wrapper.sd-radio-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: var(--space-1) var(--space-2);
	padding: var(--space-3);
}

.sd-radio-cards-columns .ant-radio-wrapper.sd-radio-card > span:last-child,
.sd-radio-cards-columns .sd-radio-card-words {
	display: contents;
}

.sd-radio-cards-columns .ant-radio-wrapper.sd-radio-card .ant-radio {
	margin-block-start: 0;
	align-self: center;
}

.sd-radio-cards-columns .sd-radio-card-detail,
.sd-radio-cards-columns .sd-radio-card-words > .sd-caption {
	grid-column: 1 / -1;
}

/* The detail: a row of its own parts (the time, then a tag), wrapping on a narrow card, at the label's small size (the
   drawing's 14/20). */
.sd-radio-card-detail {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
}

/* A declined card (design: Settings › Payment cards, OrderStatus's Card for this order): greyed on the sunken surface,
   its radio disabled, and its reason in full-contrast ink, bold, with its glyph, describing the radio. */
.ant-radio-wrapper.sd-radio-card-locked-strong,
.sd-radio-card-box.sd-radio-card-locked-strong {
	background: var(--surface-sunken);
	cursor: default;
}

.sd-radio-card-locked-strong .sd-lock-line {
	color: var(--ink);
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The card field (design: CartCheckout, the Card card): Stripe's frame, then what went wrong, then Powered by Stripe. */
.sd-card-setup {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
}

.sd-card-setup:focus {
	outline: none;
}

/* The field while Stripe's frame draws it: laid out (the frame must be on the page to draw) but unseen and out of the
   column, under the skeleton that stands in for it, until the frame says it is ready. */
.sd-card-setup {
	position: relative;
}

.sd-card-field-waiting {
	position: absolute;
	inset-inline: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Powered by Stripe: the lock and the words in a caption's muted ink, a link with no underline until hovered. */
.sd-stripe {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: var(--space-1);
	color: var(--ink-muted);
	text-decoration: none;
}

.sd-stripe:hover {
	color: var(--ink-muted);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* The wallet button (Apple Pay, Google Pay) while Stripe has not said a wallet is available, or says none is: laid out
   (Stripe's frame must be on the page to find out) but unseen and out of the column, so it leaves no gap and no "or". */
.sd-wallet-waiting {
	position: absolute;
	inset-inline-start: 0;
	inline-size: 100%;
	block-size: 0;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* An amount in a sentence: bold, in the figures' mono, its digits the same width (design: `b.sd-mono`). */
.sd-bold-amount {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* An item price (design: Price, no mode), on the start edge as every drawn item price is. */
.sd-price {
	/* The amount's line, read by the amount and by the tag's offset, so a size that changes it (lg, the tile's) moves
	   both. */
	--sd-price-line: var(--type-price-line);
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
}

.sd-price-row {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.sd-price-amt {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	font-size: var(--type-price-size);
	line-height: var(--sd-price-line);
	color: var(--ink);
	white-space: nowrap;
}

.sd-price-lg {
	--sd-price-line: var(--type-price-lg-line);
}

.sd-price-lg .sd-price-amt {
	font-size: var(--type-price-lg-size);
}

/* "+HST" in caption (.sd-caption), kept on one line. */
.sd-price-tax {
	white-space: nowrap;
}

/* Estimate (design: Price, estimate, as drawn): the estimate colour with a dashed underline, and
   the clock and Estimate beside it on the same line (before the amount at `lg`, after it otherwise), so it reads as an
   estimate in greyscale too. No "about" is drawn: the tag says it. */
.sd-price-estimate .sd-price-amt {
	color: var(--estimate);
	text-decoration: underline dashed;
	text-underline-offset: var(--space-1);
}

/* The tag: label type, bold, in the estimate colour (bundle.css `.sd-price-tag`, 14/20 700), the drawn 4px between the
   clock and the word. It sits with the amount's first line, everywhere a Price is drawn (not
   centred on the whole price), lowered by half the difference of the two lines so it is centred on
   the digits rather than hung from the line's top, where the leading above them makes it read high. */
.sd-price-tag {
	display: inline-flex;
	align-self: flex-start;
	margin-block-start: max(0rem, calc((var(--sd-price-line) - var(--type-label-line)) / 2));
	align-items: center;
	gap: var(--space-1);
	color: var(--estimate);
	/* In the sans face even where the amount's cell is mono (Totals' figures). */
	font-family: var(--font-sans);
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
	white-space: nowrap;
}

/* The clock at the drawn 16px (bundle.js Price, `Icon size: 16`), in rem so it follows the text size. It is part of the
   tag's words, not a status glyph (no StatusIcon), so it is the outlined clock the drawing shows. */
.sd-price-tag-icon {
	flex: none;
	font-size: 1rem;
}

/* Final and changed (design: Price, `sd-price-final`): the tag is pine, not the estimate colour. Its own class, so the
   tag's one placing rule above stays the only one. */
.sd-price-tag-final {
	color: var(--pine);
}

/* Changed (design: Price, changed): the old amount struck through, in the muted ink. */
.sd-price-was {
	color: var(--ink-muted);
	text-decoration: line-through;
	white-space: nowrap;
}

/* Override, at large text: the estimate tag goes on its own line above the amount, so the tag and
   a long amount never have to share a row that is too narrow for both. The word stays the drawn tag, "Estimate" with its
   clock; a screen reader hears the same "Estimate, about" words from the hidden text. A media query cannot ask for the
   text size, but its rems grow with it: a viewport under 20rem is a phone at 125% text or more, and 390px at 200%
   is 12rem. The tag comes first whichever side of the amount it is drawn on, and takes the whole row; no offset is
   wanted when nothing is beside it. */
@media (max-width: 20rem) {
	.sd-price-estimate .sd-price-tag {
		order: -1;
		flex-basis: 100%;
		margin-block-start: 0;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The money summary (design: Totals): an estimate sits on the estimate-soft panel. */
.sd-totals {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
	color: var(--ink);
}

.sd-totals-estimate {
	background: var(--estimate-soft);
}

.sd-totals-rows {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: 0;
}

/* A label and its amount on one line, the label's words wrapping first; when even its longest word and the amount cannot
   fit (200% text on a phone), the amount wraps under the label, still at the end, rather than running off the page. */
.sd-totals-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-1) var(--space-4);
}

.sd-totals-row dt {
	/* Measured at its longest word, so the label wraps its own words before the amount moves under it. */
	flex: 1 1 min-content;
	margin: 0;
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

/* Every amount of money is in mono so columns line up (the range's caption is words, in the caption's own type). */
.sd-totals-row dd:not(.sd-totals-range-caption) {
	min-width: 0;
	margin: 0 0 0 auto;
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	font-size: var(--type-price-size);
	line-height: var(--type-price-line);
	text-align: end;
}

.sd-totals-row-total dt {
	font-weight: 700;
	font-size: var(--type-title-3-size);
	line-height: var(--type-title-3-line);
}

/* The Total under a strong hairline, as drawn (design: Totals, `.sd-totals-total`, line-strong on the estimate). */
.sd-totals-row-total {
	padding-top: var(--space-3);
	border-top: var(--sd-line-width) solid var(--line-strong);
}

.sd-totals-row-total .sd-price {
	align-items: flex-end;
}

/* The estimate as a range (design: Totals, The estimate as a range): "~$84–$97" in `estimate`, bold, kept on one line,
   at the order totals' price-lg size (the drawing's 24/30 literal, which is that token exactly); its caption (`sd-caption`)
   under the label and the range, across the row. */
.sd-totals-range {
	font-size: var(--type-price-lg-size);
	line-height: var(--type-price-lg-line);
	font-weight: 700;
	color: var(--estimate);
	white-space: nowrap;
}

.sd-totals-row-range .sd-totals-range-caption {
	flex-basis: 100%;
	margin: 0;
}

.sd-totals-prices {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

.sd-totals-sentence {
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
	color: var(--ink-muted);
}

/* An amount held, in the sentence (BoldAmount): in ink, the sentence being muted (bundle.js Totals, `b.sd-mono`). */
.sd-totals-held {
	color: var(--ink);
}

/* The hold as its own line under the total (design: Totals, holdLines): the label muted, the ⓘ beside it, the amount in
   ink. */
.sd-totals-row-hold dt {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	color: var(--ink-muted);
}

.sd-totals-row-hold dd {
	color: var(--ink);
}

/* The ⓘ: a 44px target (--touch-min) that doesn't grow the line (design: CartCheckout); the negative margins give back
   what the target adds over the glyph. Hover and press draw only a 28px circle round the glyph (design: Totals), never
   the whole target, which would cover the words beside it: the button itself stays clear. The circle's 28px is a drawn
   size with no token (between --control-compact's 36px and the glyph), so it is named here, in rem as the tokens
   are. */
.sd-totals-info {
	--sd-totals-info-circle: 1.75rem;

	position: relative;
	display: inline-grid;
	place-items: center;
	min-width: var(--touch-min);
	min-height: var(--touch-min);
	margin: calc((var(--type-body-line) - var(--touch-min)) / 2) 0;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: none;
	color: var(--ink-muted);
	cursor: pointer;
}

.sd-totals-info::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--sd-totals-info-circle);
	height: var(--sd-totals-info-circle);
	border-radius: 50%;
	content: '';
	transform: translate(-50%, -50%);
}

.sd-totals-info:hover {
	color: var(--ink);
}

.sd-totals-info:hover::before {
	background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.sd-totals-info:active::before {
	background: color-mix(in srgb, var(--ink) 20%, transparent);
}

/* The glyph over its circle. */
.sd-totals-info svg {
	position: relative;
}

/* In the hold sentence: on the amount's line, the target given back on every side so the sentence's lines keep their
   height and the ⓘ sits a little after the amount (bundle.js Totals, `sd-totals-info-inline`). */
.sd-totals-info-inline {
	margin-block: calc((var(--type-body-sm-line) - var(--touch-min)) / 2);
	margin-inline: calc(var(--space-1) - (var(--touch-min) - var(--type-body-sm-size)) / 2) calc((var(--type-body-sm-size) - var(--touch-min)) / 2);
	vertical-align: middle;
}

/* HoldInfo (design: CartCheckout): the order's rows on a plate, the hold last under a
   hairline; then, for a hold placed in two amounts, when each is placed, then the sentence and the bank's line. */
.sd-holdinfo {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-holdinfo p {
	margin: 0;
}

.sd-holdinfo-plate {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: 0;
	padding: var(--space-3);
	border-radius: var(--radius-md);
	background: var(--surface);
}

.sd-holdinfo-plate .sd-totals-row dd {
	font-weight: 600;
}

.sd-holdinfo-hold {
	padding-top: var(--space-2);
	border-top: var(--sd-line-width) solid var(--line);
	font-weight: 700;
}

.sd-holdinfo-plate .sd-holdinfo-hold dd {
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Update your card (design: UpdateCard): the h1, the banner, then one column on a phone (the summary, then the card)
   and, from 64em, the card on the left and the summary in a right column of 340px as drawn (21.25rem, so it follows the text size), inside the narrow page. */
.sd-card-page {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding-block: var(--space-4);
}

/* In the app the page is narrow (design: PageWidths; theme/page.css), centred in the window in the page's gutter:
   without a gutter the content would run to the screen's edge, and Stripe's frame, which reaches 4px past its box for
   its focus ring, would widen a phone's page. The public frame has its own gutter, so there the page's is none. */
.sd-pub-main .sd-card-page {
	--sd-page-gutter: 0rem;
}

.sd-card-page h1 {
	margin: 0;
}

.sd-card-page h1:focus {
	outline: none;
}

.sd-card-columns {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-card-summary,
.sd-card-bank {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

.sd-card-summary h2,
.sd-card-summary p,
.sd-card-bank h2,
.sd-card-bank p {
	margin: 0;
}

.sd-card-form,
.sd-card-field-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-card-field-group[hidden] {
	display: none;
}

.sd-card-field-group p {
	margin: 0;
}

.sd-card-field-label {
	font-weight: 600;
}

/* Cancel this order instead sits at the left edge with the button over it, as a caption under a button does (flush
   through `sd-btn-flush`). */
.sd-card-cancel {
	align-self: flex-start;
}

.sd-card-outcome p {
	margin: 0;
}

.sd-card-done-line {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-card-brand {
	flex: none;
	font-size: var(--type-body-lg-size);
}

@media (min-width: 64em) {
	.sd-card-columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 21.25rem);
		gap: var(--space-8);
		align-items: start;
	}

	.sd-card-summary {
		grid-column: 2;
		grid-row: 1;
	}

	.sd-card-form {
		grid-column: 1;
		grid-row: 1;
	}
}

/* A dead link (DeadLink; design: TabPay and UpdateCard): left-aligned, so its one button is its own width at the left
   rather than stretched across the column, as a button under left-aligned words is drawn. */
.sd-card-dead .ant-btn {
	align-self: flex-start;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The cart's way on when something keeps it from checkout (design: CartCheckout): the line and its button
   stacked, 8px apart, across the column or the bar. */
.sd-checkout-way {
	display: flex;
	flex: 1 0 100%;
	flex-direction: column;
	gap: var(--space-2);
}

/* Its reason, centred under it, as drawn. */
.sd-checkout-way-why {
	margin: 0;
	text-align: center;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The store pages' sticky cart bar (design: CartCheckout): stuck to the foot of the page as it scrolls, the pickup day
   on the left and Go to checkout on the right; at 200% text the button wraps under the day. It carries `sd-foot-bar`,
   so a notice sits above it (global.css). */
.sd-cart-bar {
	position: sticky;
	bottom: 0;
	z-index: 2;
	padding: var(--space-3) var(--space-4);
	padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0rem));
	border-top: var(--sd-line-width) solid var(--line);
	background: var(--surface-raised);
	box-shadow: var(--shadow-float);
}

.sd-cart-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	max-width: var(--page-wide);
	margin-inline: auto;
}

.sd-cart-bar-day {
	margin: 0;
	color: var(--ink);
	font-weight: 700;
}

.sd-cart-bar-error {
	flex: 1 0 100%;
	margin: 0;
	color: var(--danger);
}

.sd-cart-bar-action {
	flex: 0 1 auto;
}

/* The bar's height for the notices' place (global.css's --foot-bar-height): its content's measured height
   (--sd-cart-bar-height, set by CartBar's useRootHeight; one large button's before the first measure) inside 12px
   padding. The cart's way on (CheckoutWay) is taller than one button. */
:root:has(.sd-cart-bar) {
	--foot-bar-height: calc(var(--sd-cart-bar-height, var(--touch-lg)) + 2 * var(--space-3));
}

/* The cart button in the store bar: a touch-min target with the glyph, its count beside it in price mono. */
.sd-cart-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	min-width: var(--touch-min);
	height: var(--touch-min);
	padding: 0 var(--space-2);
	border-radius: var(--radius-md);
	color: var(--ink);
	font-size: var(--type-body-size);
	text-decoration: none;
}

.sd-cart-button:hover {
	color: var(--ink);
	background: var(--surface-sunken);
}

.sd-cart-button:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

.sd-cart-button-count {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The run day's sheets in either frame (SheetOrDialog): the caller's content and footer live in nodes of their own that
   move between the bottom sheet and the dialog. Neither node draws a box, so the frame lays out their children as its
   own, as it did before they moved. */
.sd-sheet-slot,
.sd-sheet-host {
	display: contents;
}

/* The phone form: the sheet's body at 16 from the sides, as its footer is (Ant Design's footer padding). BottomSheet's
   own body has no sides, for rows that run edge to edge (the account menu); every sheet here draws paragraphs, fields
   and lists, which would run to the screen's edge at 375 if a caller set none. A caller that
   wants other sides sets `--sd-sheet-sides` in its own class. Both classes, so it wins over BottomSheet's rule whatever
   order the stylesheets load in. */
.sd-bottom-sheet.sd-sheet-sheet .ant-drawer-body {
	padding-inline: var(--sd-sheet-sides, var(--space-4));
}

/* The dialog form (design: RunDayPicking, "Every sheet is a dialog"): the caption over the title on a line
   of its own, and the title taking focus with no ring, as the sheet's does. */
.sd-sheet-dialog-over {
	display: block;
}

.sd-sheet-dialog-title:focus {
	outline: none;
}

/* The buttons in a row at the right with the primary last (the drawing's `.dk-acts`): the sheets list them primary
   first, one a line, so the row is reversed, each button its label's width, not the sheet's; and any caption (why a
   button is held, a refusal) on a line of its own under them. */
.sd-sheet-dialog .ant-modal-footer .sd-sheet-host > div {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	gap: var(--space-2);
	justify-content: flex-start;
}

.sd-sheet-dialog .ant-modal-footer .ant-btn-block {
	width: auto;
}

.sd-sheet-dialog .ant-modal-footer .sd-sheet-host > div > :not(.ant-btn) {
	flex-basis: 100%;
	order: 1;
	text-align: end;
}

/* A sheet whose button is in its body (Short's count, a shelf price, Substitute): at the dialog's right, its label's
   width, as the footer's are. */
.sd-sheet-dialog .ant-modal-body .ant-btn-block.sd-pick-sheet-do {
	display: flex;
	width: fit-content;
	margin-inline-start: auto;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Not offered: the ban and Favourites' words in ink, bold, 14px on a 20px line (`sd-favrow-avail-no`): the label style,
   since a caption is ink-muted and this line is ink. The drawn 8px between icon and words (--space-2). The words sit on
   the line's baseline and the icon keeps its own place (align-self below), so the line's baseline is its words', not
   the icon's foot: words set beside it on the same line (the cart's "It stays in your cart") share it. */
.sd-not-available {
	display: flex;
	align-items: baseline;
	gap: var(--space-2);
	margin: 0;
	color: var(--ink);
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
}

/* The ban at the drawn 16px (1rem, so it follows the text size), centred on the first line as the drawn 2px offset
   centres it: half of what the line is taller than the icon. */
.sd-not-available-icon {
	flex: none;
	align-self: flex-start;
	font-size: 1rem;
	margin-top: calc((var(--type-label-line) - 1rem) / 2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The quantity stepper (design: QuantityStepper), compact everywhere: the tile's approved pill
   (design: ProductTile, bundle.css's `.sd-tile-step`) as the one size, 36px tall (--control-compact), each
   button 36 wide and 32 tall inside it, its icon 18px and the count 15px bold. Every button keeps a touch-min target
   through a ::before reaching past its edges. Outlined on the card surface here; a tile draws it on pine
   (AddToCart.css), changing its colours only. */
.sd-qty {
	--sd-qty-button: calc(var(--control-compact) - var(--space-1));

	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: var(--control-compact);
	border: var(--sd-line-width) solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
}

.sd-qty-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--control-compact);
	height: var(--sd-qty-button);
	padding: 0;
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--ink);
	/* The icons are 1em: the drawn 18px (bundle.css `.sd-tile-step button .sd-icon`). */
	font-size: var(--type-title-3-size);
	cursor: pointer;
}

/* The target: touch-min square, centred on the button, past its edges on every side. Beside the count it reaches over
   the count's edge, which takes no press. */
.sd-qty-btn::before {
	content: '';
	position: absolute;
	inset: calc((var(--sd-qty-button) - var(--touch-min)) / 2) calc((var(--control-compact) - var(--touch-min)) / 2);
}

.sd-qty-btn:hover:not(:disabled) {
	background: var(--surface-sunken);
}

.sd-qty-btn:disabled {
	color: var(--ink-muted);
	cursor: not-allowed;
}

.sd-qty-btn:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width);
}

/* The count in price mono, the drawn 15px bold (bundle.css `.sd-tile-step output`; the compact type token, which a
   tile's name shares), wide enough for two digits so the buttons do not move. */
.sd-qty-count {
	min-width: var(--space-5);
	padding-inline: var(--space-1);
	text-align: center;
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: var(--type-compact-size);
	line-height: var(--type-compact-line);
	color: var(--ink);
}

/* `block`: the width of its container, the buttons at either end. */
.sd-qty-block {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Add and the stepper on a product tile or row (design: ProductTile, QuantityStepper), and the product page's sticky
   bar (design: ProductDetail). The tile's name is a link stretched over the whole tile (ProductTile.css), so each
   control sits above it, where a press is the control's and not the link's. */
/* The control's wrapper keeps focus and the live region together without a box of its own: Add and the stepper are
   placed against the tile as before. */
.sd-add-control {
	display: contents;
}

.sd-add,
.sd-add-step {
	position: relative;
	z-index: 1;
}

/* Add: on the grid a round pine button in the image's bottom-right corner, with a surface-raised ring so it holds on
   any photo; on a row an outlined, icon-only "+" at the row's end, a touch-min square (design: ProductTile). */
.sd-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--touch-min);
	height: var(--touch-min);
	padding: 0;
	border-radius: var(--radius-md);
	font-family: inherit;
	font-size: var(--type-body-size);
	cursor: pointer;
}

.sd-add:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* The tile's round Add (design: ProductTile, bundle.css's `.sd-tile-add`): --control-compact (36px) round,
   under the 44px touch-min, so it keeps a 44px target through a ::before reaching past its edges, as the stepper's
   buttons do (QuantityStepper.css). */
.sd-add-grid {
	position: absolute;
	right: var(--space-2);
	bottom: var(--space-2);
	min-width: var(--control-compact);
	width: var(--control-compact);
	height: var(--control-compact);
	border: 0;
	border-radius: calc(var(--control-compact) / 2);
	background: var(--pine);
	color: var(--on-pine);
	box-shadow: 0 0 0 var(--sd-line-width-focus) var(--surface-raised);
	/* The icon is 1em: the drawn 20px (bundle.css `.sd-tile-add .sd-icon`). */
	font-size: var(--type-title-2-size);
}

.sd-add-grid::before {
	content: '';
	position: absolute;
	inset: calc((var(--control-compact) - var(--touch-min)) / 2);
}

.sd-add-grid:hover {
	background: var(--pine-hover);
}

.sd-add-row {
	border: var(--sd-line-width) solid var(--line-strong);
	background: var(--surface-raised);
	color: var(--pine);
	/* The icon is 1em: the drawn 22px (bundle.js ProductTile row, `Icon size: 22`). No type token holds 22px, and this
	   one glyph is drawn at it, so it is a true override. */
	font-size: 1.375rem;
}

.sd-add-row:hover {
	background: var(--pine-soft);
}

/* Added, on the grid: the stepper in the same corner, minus (the trash at 1), the count and plus, never across the
   image. The stepper is compact everywhere (QuantityStepper.css holds its sizes); on a tile it is drawn as the
   drawing's pine pill (bundle.css `.sd-tile-step`), so only its colours and its round ends are set here. */
.sd-add-step-grid {
	position: absolute;
	right: var(--space-2);
	bottom: var(--space-2);
}

.sd-add-step-grid .sd-qty {
	border: 0;
	border-radius: calc(var(--control-compact) / 2);
	background: var(--pine);
	box-shadow: 0 0 0 var(--sd-line-width-focus) var(--surface-raised);
}

.sd-add-step-grid .sd-qty-btn {
	border-radius: calc(var(--sd-qty-button) / 2);
	color: var(--on-pine);
}

.sd-add-step-grid .sd-qty-count {
	color: var(--on-pine);
}

.sd-add-step-grid .sd-qty-btn:hover:not(:disabled) {
	background: var(--pine-hover);
}

/* The product page's sticky bar: stuck to the foot of the page as it scrolls, its one primary action filling the
   width the quantity leaves. It carries `sd-foot-bar`, so a notice sits above it (global.css). */
.sd-add-bar {
	position: sticky;
	bottom: 0;
	z-index: 2;
	padding: var(--space-3) var(--space-4);
	padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0rem));
	border-top: var(--sd-line-width) solid var(--line);
	background: var(--surface-raised);
	box-shadow: var(--shadow-float);
}

.sd-add-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	max-width: var(--page-wide);
	margin-inline: auto;
}

.sd-add-bar-action {
	flex: 1 1 auto;
}

.sd-add-bar-error {
	flex: 1 0 100%;
	margin: 0;
	color: var(--danger);
}

/* The bar's height for the notices' place (global.css's --foot-bar-height): one default-size button (touch-min, level
   with the compact stepper) inside 12px padding. */
:root:has(.sd-add-bar) {
	--foot-bar-height: calc(var(--touch-min) + 2 * var(--space-3));
}

/* The product page's quantity and Add to cart on a desktop (design: ProductDetail): in the page under the
   price, each as wide as it is, the drawn 12px between (--space-3); a refusal said over them. */
.sd-add-inline {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-add-inline-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A tile's facts row (design: AtAGlance, option C): the glyphs 8px apart, wrapping, 4px under the size. */
.sd-tile-facts {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-1);
}

/* Made in Canada: the maple leaf, filled, in danger red, at the drawing's 18px, the status icon's size. */
.sd-tile-fact-canada {
	display: inline-flex;
	flex: none;
	color: var(--danger);
	font-size: var(--status-icon-size);
}

/* High in: the arrow in short on short-soft with the nutrient's word, 12px bold on a 16px line, 20px high, a 4px
   radius (the drawing; the type scale has no 12px, and --radius-sm is the tag radius), the drawing's 2px and 6px
   are the scale's space-1 and space-2 (theme/__tests__/gapScale). It stays under 14px so three
   marks fit a phone tile's width. */
.sd-tile-highin {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	box-sizing: border-box;
	height: 1.25rem;
	padding: 0 var(--space-2) 0 var(--space-1);
	color: var(--short);
	background: var(--short-soft);
	border-radius: var(--radius-sm);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 700;
}

.sd-tile-highin-icon {
	flex: none;
	font-size: 1rem;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A product tile or row (design: ProductTile), Add and its stepper drawn by AddToCart.css: the measures are the drawing's, in rem (16px = 1rem at the
   default text size) where no token holds them, so they follow the person's text size. */

/* The whole tile is its link: the name's link stretches over it, so the name stays the link's accessible name and a
   press anywhere on the tile opens the product. */
.sd-product-link {
	position: relative;
}

.sd-product-link-target {
	color: inherit;
	text-decoration: none;
}

.sd-product-link-target::after {
	content: '';
	position: absolute;
	inset: 0;
}

.sd-product-link-target:hover {
	color: inherit;
	text-decoration: underline;
}

/* The focus ring goes round the whole tile, which is what the stretched link covers. */
.sd-product-link-target:focus-visible {
	outline: none;
}

.sd-product-link:has(.sd-product-link-target:focus-visible) {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
	border-radius: var(--radius-md);
}

/* Grid · shelf tag. */
.sd-tile {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

/* The image is the tile: on the plate, with a line border, at the plate-tile height, the photo contained. */
.sd-tile-media {
	box-sizing: border-box;
	position: relative;
	height: var(--plate-tile);
	padding: var(--space-2);
	overflow: hidden;
	background: var(--plate);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
}

.sd-tile-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: var(--radius-sm);
}

/* No image: the aisle's glyph and the short name on surface-sunken. */
.sd-tile-noimg {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: var(--space-3);
	background: var(--surface-sunken);
	color: var(--ink-muted);
}

/* The glyph: 24px on the grid (the drawing). */
.sd-tile-noimg-glyph {
	font-size: 1.5rem;
}

/* The short name: 16px bold on a 20px line, clamped at three lines (the drawing). */
.sd-tile-noimg-name {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--ink);
	font-size: var(--type-body-size);
	line-height: var(--type-caption-line);
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* Under the image, a 3px ink rule like a shelf label (no token is 3px), then price, name and size. */
.sd-tile-tag {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin-top: var(--space-2);
	padding-top: var(--space-2);
	border-top: 3px solid var(--ink);
}

/* The tag's price is 20px (the drawing): title 2's size, on its line (through the price's own line, which the estimate
   tag's offset reads too). */
.sd-tile-tag .sd-price {
	--sd-price-line: var(--type-title-2-line);
}

.sd-tile-tag .sd-price-amt {
	font-size: var(--type-title-2-size);
}

/* The name: 15px on a 20px line (the compact type token), clamped at two lines (the drawing). */
.sd-tile-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: var(--type-compact-size);
	line-height: var(--type-compact-line);
	font-weight: 400;
	overflow-wrap: anywhere;
}

/* Row · compact: edge to edge with line dividers, no card around each one. A 72px thumbnail, then the text. */
.sd-prow {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	gap: var(--space-3);
	align-items: center;
	padding: var(--space-3) var(--space-4);
	background: var(--surface-raised);
	border-bottom: var(--sd-line-width) solid var(--line);
}

.sd-prow-thumb {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	align-self: start;
	width: 4.5rem;
	height: 4.5rem;
	padding: var(--space-1);
	overflow: hidden;
	background: var(--plate);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
}

.sd-prow-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sd-prow-thumb.sd-tile-noimg {
	display: grid;
	place-items: center;
	padding: 0;
	background: var(--surface-sunken);
	color: var(--ink-muted);
}

/* The row's glyph is 28px (the drawing). */
.sd-prow-thumb .sd-tile-noimg-glyph {
	font-size: 1.75rem;
}

.sd-prow-text {
	min-width: 0;
}

/* The name: 16px on a 22px line, clamped at two lines (the drawing). */
.sd-prow-name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: var(--type-body-size);
	line-height: var(--type-body-sm-line);
	font-weight: 400;
	overflow-wrap: anywhere;
}

/* Large text (design: ProductTile, `stack`): a row narrower than 20em, as a phone's is at 150% text or more,
   puts the thumbnail on top and the text full width below it, with the name unclamped. Beside a 72px thumbnail the
   text column is narrower than one word at 200% ("Chapelur / e"); full width, the name wraps between
   words and only a word longer than the whole row breaks. In em, so it follows the text size; the container is the
   list of rows (`.sd-results-rows`). Narrower than, not at: a 320px phone at the default text size (20em) keeps
   the row side by side. The product-row skeleton stacks under the same query (Skeleton.css). */
@container sd-prow-list (width < 20em) {
	.sd-prow {
		grid-template-columns: minmax(0, 1fr);
	}

	.sd-prow-name {
		display: block;
		-webkit-line-clamp: none;
		overflow: visible;
	}
}

/* Added, on the grid (design: ProductTile): the plate outlined in pine while the stepper sits across its foot. */
.sd-tile-added .sd-tile-media {
	border-color: var(--pine);
	box-shadow: 0 0 0 var(--sd-line-width) var(--pine);
}

/* A row with Add, in the cart, or with an `end` of its own (an unavailable cart line's Remove): a third column at its
   end for the control or the line's total, and in the cart the substitution line across the whole row under the photo
   and stepper. */
.sd-prow-adds,
.sd-prow-ends,
.sd-prow-cart {
	grid-template-columns: 4.5rem minmax(0, 1fr) auto;
}

.sd-prow-end {
	align-self: start;
}

/* Added rows tint to pine-soft (design: ProductTile). */
.sd-prow-added {
	background: var(--pine-soft);
}

.sd-prow-step {
	margin-top: var(--space-2);
}

/* A row with no price: its words and Remove under the name, where the stepper sits, above the name's stretched link as
   the stepper is (AddToCart.css), so a press on Remove is Remove's and not the link's. */
.sd-prow-note {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
	margin-top: var(--space-2);
}

.sd-prow-note p {
	margin: 0;
}

/* A row with an `end` (an unavailable cart line): the name and size beside the photo, its words
   (`.sd-prow-note-wide`) under them, the end beside the name. The photo spans both rows, so the row is no taller than
   the photo with the name, the size and one line of words. */
.sd-prow-ends {
	row-gap: var(--space-2);
}

.sd-prow-ends .sd-prow-thumb {
	grid-row: 1 / span 2;
}

.sd-prow-ends .sd-prow-text {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
}

.sd-prow-ends .sd-prow-note-wide {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	margin-top: 0;
}

.sd-prow-ends .sd-prow-end {
	grid-column: 3;
	grid-row: 1;
}

/* On a phone the words take the row's whole width under the photo, where the end's column no longer narrows them. */
@media (max-width: 47.9375em) {
	.sd-prow-ends .sd-prow-thumb {
		grid-row: 1;
	}

	.sd-prow-ends .sd-prow-text {
		align-self: center;
	}

	.sd-prow-ends .sd-prow-note-wide {
		grid-column: 1 / -1;
	}
}

/* A pine text button at a row's end (an unavailable line's Remove, a substitution line's Change; design: SubLine's
   `sd-btn-text`) is drawn as text: its box is one line of its words, so its line is one line tall and its words end on
   the right edge where the row's price does. Its touch-min target is the ::before, reaching past the line above and
   below into the row's padding, as the stepper's buttons do (QuantityStepper.css), with the hover fill drawn there too;
   the focus ring is the box's own outline (store.css), drawn round the words. */
.sd-prow-end > .sd-text-link,
.sd-prow-sub .sd-text-link,
.sd-subline .sd-text-link {
	position: relative;
	isolation: isolate;
	min-height: 0;
	padding: 0;
	line-height: var(--type-body-sm-line);
}

.sd-prow-end > .sd-text-link::before,
.sd-prow-sub .sd-text-link::before,
.sd-subline .sd-text-link::before {
	content: '';
	position: absolute;
	z-index: -1;
	inset: calc((var(--type-body-sm-line) - var(--touch-min)) / 2) calc(-1 * var(--space-3));
	border-radius: var(--radius-md);
}

.sd-prow-end > .sd-text-link:hover,
.sd-prow-sub .sd-text-link:hover,
.sd-subline .sd-text-link:hover {
	background: transparent;
}

.sd-prow-end > .sd-text-link:hover::before,
.sd-prow-sub .sd-text-link:hover::before,
.sd-subline .sd-text-link:hover::before {
	background: var(--pine-soft);
}

/* The name clamps at three lines in the cart (design: ProductTile `cart`). */
.sd-prow-cart .sd-prow-name {
	-webkit-line-clamp: 3;
}

/* The substitution line sits above the name's stretched link, as Add and the stepper do (AddToCart.css), so a press
   on its control is the control's and not the link's. */
.sd-prow-sub {
	position: relative;
	z-index: 1;
	grid-column: 1 / -1;
	padding-top: var(--space-2);
	border-top: var(--sd-line-width) solid var(--line);
}

/* At large text the row stacks (above): the control or total goes on top beside the photo's place, the text under. */
@container sd-prow-list (width < 20em) {
	.sd-prow-adds,
	.sd-prow-ends,
	.sd-prow-cart {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.sd-prow-adds .sd-prow-text,
	.sd-prow-ends .sd-prow-text,
	.sd-prow-cart .sd-prow-text {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.sd-prow-ends .sd-prow-thumb,
	.sd-prow-ends .sd-prow-end {
		grid-row: 1;
	}

	.sd-prow-ends .sd-prow-end {
		grid-column: 2;
	}

	.sd-prow-ends .sd-prow-note-wide {
		grid-column: 1 / -1;
		grid-row: 3;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The store's search field (design: StoreHome, `sd-search`): a touch-height box, a strong line, the glyph muted and the
   field taking the rest. */
.sd-search-form {
	margin: 0;
}

/* A control beside the field (the pick list's Substitute sheet: Scan a barcode), the field taking the rest. */
.sd-search-beside {
	display: flex;
	align-items: stretch;
	gap: var(--space-2);
}

.sd-search-beside .sd-search-form {
	flex: 1;
	min-width: 0;
}

.sd-search {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-height: var(--touch-min);
	padding: 0 var(--space-3);
	border: var(--sd-line-width) solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--ink-muted);
	cursor: text;
}

/* The drawing draws the field without its own edge: the box is the field. So the focus ring goes round the box. */
.sd-search:focus-within {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

.sd-search input {
	flex: 1;
	min-width: 0;
	min-height: var(--touch-min);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	appearance: none;
	outline: none;
}

.sd-search input::placeholder {
	color: var(--ink-muted);
	opacity: 1;
}

/* A search field's own clear button is not drawn: the field is the drawing's plain box. */
.sd-search input::-webkit-search-cancel-button {
	appearance: none;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A cart line no longer offered, laid out as the other rows: "Not currently available" and "It
   stays in your cart. Checkout leaves it out." on one line where they fit, the second under the first where they do not.
   The row is no taller than an available one with its stepper. */
.sd-cart-gone-status {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 var(--space-2);
}

/* Remove, in the right column where a line's total sits: a pine text button whose words line up with the name's first
   line; its box, target and right edge are the row's rule for every pine text button at its end (ProductTile.css).
   Above the name's stretched link, so a press on it is Remove's and not the link's. */
.sd-cart-gone-remove {
	z-index: 1;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The cart page (design: CartCheckout): a standard page (theme/page.css). The default, the lines and the estimate in one
 * column on a phone; with the room for standard's two columns (`sd-page-cols`, the same as checkout's) the lines on the
 * left and the estimate in the side column. */

/* Stacked, the drawn phone's 20px between the lines and the estimate; side by side, the columns' own gap. */
.sd-cart-layout {
	gap: var(--space-5);
}

.sd-cart-main {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

/* The order-wide default (design: CartCheckout, the bar at the top of the cart): its label, the segmented choice the
   bar's full width, and the caption, 8px apart, on the raised surface. */
.sd-cart-default {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-4);
	border-bottom: var(--sd-line-width) solid var(--line);
	background: var(--surface-raised);
}

/* The default's label in bold and the chosen option in bold (design: CartCheckout, `sd-field-label`, `sd-seg`). */
.sd-cart-default .sd-field-label,
.sd-cart-default .ant-segmented-item-selected {
	font-weight: 700;
}

.sd-cart-default-held {
	margin: 0;
}

/* The rows' container (`sd-prow-list`), as the results list is: ProductTile stacks a row narrower than 20em, which is a
   phone at large text. Without it the name's column shrank to a letter's width there. */
.sd-cart-lines {
	container: sd-prow-list / inline-size;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-cart-summary {
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

/* Show more at the rows' foot (design: CartCheckout), a text button in the list's gutter. */
.sd-cart-more {
	padding: var(--space-1) var(--space-1) var(--space-2);
}

/* A desktop's pickup line (design: CartCheckout): the counter glyph, then "Pickup from <b>Thu Oct 22</b>". */
.sd-cart-pickup {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
}

/* Items it can order with no pickup day for them, in Go to checkout's place. */
.sd-cart-no-day {
	margin: 0;
}

.sd-cart-pickup-icon {
	flex: none;
	font-size: var(--status-icon-size);
}

/* A desktop (design: CartCheckout, "Cart on desktop"; PageWidths): on the left one card, the order-wide default at its
   top and the rows under it, each divided by a hairline, Show more at its foot; on the right standard's side column, as
   checkout's, sticky, the estimate on its own panel, then the pickup line and Go to checkout, 16px apart. The main column
   takes the rest of the page, so the cart and checkout share their columns and the side column stays put. From when the
   columns sit side by side (theme/page.css, the same container query). */
@container sdpage (min-width: 54rem) {
	.sd-cart-layout {
		gap: var(--space-6);
	}

	.sd-cart-main {
		gap: 0;
		overflow: hidden;
		border: var(--sd-line-width) solid var(--line);
		border-radius: var(--radius-lg);
		background: var(--surface-raised);
	}

	.sd-cart-main .sd-cart-lines {
		gap: 0;
	}

	.sd-cart-main .sd-cart-lines > li + li,
	.sd-cart-main .sd-cart-more {
		border-top: var(--sd-line-width) solid var(--line);
	}

	.sd-cart-summary {
		position: sticky;
		top: var(--space-8);
		display: flex;
		flex-direction: column;
		gap: var(--space-4);
		padding: 0;
		border: 0;
		background: none;
	}
}

/* A cart line's substitution line (SubLine; design: SubLine, bundle.css `.sd-subline`): the glyph, the words, Change at
   the end; the hairline above is the tile's `.sd-prow-sub`. A line that follows the default is muted and regular. */
.sd-subline {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	min-width: 0;
	color: var(--ink);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

/* The glyph and Change keep to the first line when the words wrap (a picked substitute's long name, the store's
   guidance): the glyph (1em, the line's own size) centred on it, Change's words on it (its box is one line, ProductTile.css). */
.sd-subline-icon {
	flex: none;
	margin-top: calc((var(--type-body-sm-line) - var(--type-body-sm-size)) / 2);
	color: var(--sub);
}

.sd-subline-none .sd-subline-icon {
	color: var(--ink-muted);
}

.sd-subline-words {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.sd-subline-default {
	color: var(--ink-muted);
}

.sd-subline-default b {
	font-weight: 400;
}

.sd-subline-change {
	flex: none;
}

/* The two sheets' content and buttons: the house's 16px side gutter, as every BottomSheet user gives its own (the
   sheet's body has none); in the dialog, the modal's own padding stands in. */
.sd-subsheet,
.sd-choose {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-bottom-sheet .sd-subsheet,
.sd-bottom-sheet .sd-choose {
	padding-inline: var(--space-4);
}

/* On a phone the buttons are stacked, the primary first, each the sheet's full width (design: CartCheckout). */
.sd-sheet-acts {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-sheet-acts .ant-btn {
	width: 100%;
}

/* The dialog's title: the item's name as a caption over it. */
.sd-sheet-over {
	display: block;
}

.sd-sheet-title:focus {
	outline: none;
}

/* Let {store} decide's ticks and A product I pick's Choose a product sit inside their cards, under the line, in line
   with its words (RadioCards `extra`). */
.sd-subsheet-guidance {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sd-subsheet-guidance .ant-checkbox-wrapper {
	min-height: var(--touch-min);
	align-items: center;
}

.sd-subsheet-pick {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
}

.sd-subsheet-picked {
	margin: 0;
}

.sd-subsheet-choose {
	font-weight: 700;
}

/* Choose a substitute (design: CartCheckout, PickRow): a hairline under each row; the photo, the words, then Choose or
   the check and Chosen. */
.sd-choose-shelf,
.sd-choose-caption {
	margin: 0;
}

.sd-choose-results {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-choose-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2) 0;
	border-bottom: var(--sd-line-width) solid var(--line);
}

.sd-choose-thumb {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--space-12);
	height: var(--space-12);
	overflow: hidden;
	border-radius: var(--radius-md);
}

.sd-choose-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sd-choose-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.sd-choose-price {
	font-family: var(--font-mono);
}

/* Chosen says itself in words with the check, never by colour alone. */
.sd-choose-chosen {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: var(--space-1);
	min-height: var(--touch-min);
	color: var(--pine);
	font-weight: 700;
}

.sd-choose-chosen:focus {
	outline: none;
}

.sd-choose-chosen:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* The items no pickup day takes with the rest, above the rows (design: CartCheckout, `Apart`): the warn
   banner (StatusBanner, its sentence then the items 8px apart, `after`); each item's name and price on the left, Remove
   on the right. */
.sd-cart-apart {
	margin-bottom: var(--space-4);
}

.sd-cart-apart-items {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-cart-apart-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.sd-cart-apart-item > .sd-text-link {
	flex: none;
}

.sd-cart-apart-price {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The store's Pickup and Refunds lines (design: CartCheckout): a glyph beside each, muted, top-aligned. */
.sd-policy-lines {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-policy-lines li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-policy-lines svg {
	flex: none;
	margin-top: var(--space-1);
	color: var(--ink-muted);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Checkout (design: CartCheckout): a standard page (theme/page.css). On a phone one column of cards, Place order in a bar
   at the foot; with the room for standard's two columns (`sd-page-cols`, the same as the cart's) the form cards on the
   left and the side column on the right with the totals, the consent and Place order. Stacked, the drawn phone's 20px
   between them; side by side, the columns' own gap. */
.sd-checkout-layout {
	gap: var(--space-5);
}

@container sdpage (min-width: 54rem) {
	.sd-checkout-layout {
		gap: var(--space-6);
	}
}

.sd-checkout-main,
.sd-checkout-summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

/* A form card (design: CartCheckout `sd-card`): its glyph and title, then its content, 12px apart. */
.sd-checkout-card,
.sd-checkout-consent {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

.sd-checkout-card-title {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-checkout-card-title h2 {
	margin: 0;
}

.sd-checkout-card p,
.sd-checkout-consent p,
.sd-checkout-place p {
	margin: 0;
}

/* Placed without the tick: the consent card's border turns danger (design: CartCheckout, "placed without ticking"). */
.sd-checkout-consent-invalid {
	border-color: var(--danger);
}

/* The Pickup and Refunds lines under the consent, each with its glyph in muted ink, set in from the tick's edge. */
/* The consent's Pickup and Refunds lines (PolicyLines) sit under the tick's words. */
.sd-checkout-policies {
	padding-left: var(--space-6);
}

/* The link to Settings › Orders, under the consent's words and in line with them (design: CartCheckout). */
.sd-checkout-always-move {
	align-self: flex-start;
	margin-left: var(--space-6);
	color: var(--pine);
	font-weight: 700;
}

.sd-checkout-subs-list {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin: 0;
	padding-left: var(--space-5);
}

.sd-checkout-note {
	font-weight: 700;
}

.sd-checkout-name-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

/* Place order, and under it "Nothing is charged today." centred, as drawn. */
.sd-checkout-place {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-checkout-nothing {
	text-align: center;
}

/* On a phone, Place order sits in a bar at the foot of the page as it scrolls (design: CartCheckout's sticky). It carries
   `sd-foot-bar`, so a notice sits above it (global.css). */
.sd-checkout-place-foot {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin-inline: calc(-1 * var(--sd-page-gutter));
	padding: var(--space-3) var(--sd-page-gutter);
	padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0rem));
	border-top: var(--sd-line-width) solid var(--line);
	background: var(--surface-raised);
	box-shadow: var(--shadow-float);
}

/* The bar's height for the notices' place (global.css's --foot-bar-height): its content's measured height
   (--sd-checkout-foot-height, set by Place's useRootHeight; Place order and its line before the first measure) inside
   12px padding. A refusal or an error drawn in the bar makes it taller. */
:root:has(.sd-checkout-place-foot) {
	--foot-bar-height: calc(var(--sd-checkout-foot-height, calc(var(--touch-lg) + var(--space-2) + var(--type-caption-line))) + 2 * var(--space-3));
}

/* The wait while the order is placed (MarkMoments, Placing an order): the loading mark centred over its status. */
.sd-checkout-placing {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	text-align: center;
}

.sd-checkout-held {
	font-weight: 700;
}

/* A desktop's pickup day card (design: CartCheckout, DayCol): "Orders close" over when, on two lines. */
.sd-checkout-close-head {
	display: block;
}

/* A refusal's ways on (design: CheckoutRefusals): a row under what to do, wrapping on a phone. */
.sd-checkout-refusal-acts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-2);
}

.sd-checkout-refusal .ant-alert-description > span:first-child {
	display: block;
}

/* A card's action at the title row's right (design: CartCheckout `CardTitle`): Your items' Edit cart, pine and bold. */
.sd-checkout-card-action {
	margin-left: auto;
}

.sd-checkout-edit-cart {
	color: var(--pine);
	font-size: var(--type-body-sm-size);
	font-weight: 700;
}

/* Your items' strip (design: CartCheckout): 36px photos (the compact control size) on the plate, 8px apart,
   a glyph tile with no photo, then "+N" on surface-sunken. */
.sd-items-strip,
.sd-items-photos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.sd-items-thumb {
	display: grid;
	flex: none;
	place-items: center;
	width: var(--control-compact);
	height: var(--control-compact);
	overflow: hidden;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--plate);
}

.sd-items-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sd-items-thumb.sd-tile-noimg {
	padding: 0;
	background: var(--surface-sunken);
	color: var(--ink-muted);
}

/* The aisle's glyph at the drawn 18px, the title-3 size. */
.sd-items-thumb .sd-tile-noimg-glyph {
	font-size: var(--type-title-3-size);
}

/* "+N" is drawn at 36px, under touch-min: its target reaches touch-min through a ::before past its edges, as the
   compact controls' do (tokens.json, control-compact). */
.sd-items-more {
	position: relative;
	overflow: visible;
	border-color: transparent;
	background: var(--surface-sunken);
	color: var(--ink);
	font-size: var(--type-body-sm-size);
	font-weight: 700;
}

.sd-items-more::before {
	position: absolute;
	inset: calc((var(--control-compact) - var(--touch-min)) / 2);
	content: '';
}

.sd-items-count {
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

/* The recap, with its glyph muted, as the policy lines are. */
.sd-items-recap {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-items-recap-change {
	margin: 0;
}

.sd-items-recap svg {
	flex: none;
	margin-top: var(--space-1);
	color: var(--ink-muted);
}

/* A checkout started under the store's smallest order: the refusal, then Keep shopping under it. */
.sd-checkout-minimum-start {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A counter pairing code (design: CounterDevices, `CodeBig`). */
.sd-pairing-code {
	font-family: var(--font-mono);
	font-weight: 700;
	white-space: nowrap;
}

/* The large code in its sunken box. Its 44px type (2.75rem) and 0.12em tracking are the drawing's own: no type token
   is that large, and the code is read from across a counter. Where the two groups do not fit side by side (a phone at
   200% text: "BJ4 73X" would run 70px past its box) the second goes under the first. */
.sd-pairing-code-large {
	white-space: normal;
	overflow-wrap: anywhere;
	padding: var(--space-4) var(--space-5);
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
	font-size: 2.75rem;
	line-height: 1.1;
	letter-spacing: 0.12em;
	text-align: center;
}

.sd-pairing-code-expired {
	color: var(--ink-muted);
	text-decoration: line-through;
}

/* A phone draws it at 36px (2.25rem), so the seven characters fit its width (drawn: `CodeBig(36)`). */
@media (max-width: 47.9375em) {
	.sd-pairing-code-large {
		font-size: 2.25rem;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The height model is theme/frame.css's, for every frame: the page scrolls as a document (the wheel, the keys and
   find-in-page all move it), the shell is `.sd-frame` and the side column `.sd-frame-side`, in view beside the page
   with its foot on screen. (A fixed-height shell whose column scrolls inside it would leave the keys doing nothing
   until something in the column had focus.) */
.sd-portal-shell {
	display: flex;
	background: var(--surface);
	color: var(--ink);
}

.sd-portal-aside {
	border-inline-end: var(--sd-line-width) solid var(--line);
}

.sd-portal-column {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.sd-portal-header {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2) var(--space-4);
	border-bottom: var(--sd-line-width) solid var(--line);
}

/* The page's title in the bar (design: the owner cards' `OHead`, an h1 at title-1 first in the header; on a phone
   `OBar`, the title in bold at 18px between the menu button and the account button, cut short rather than wrapped).
   The h1 is the page's own, drawn here by PortalTitle; its size is titles.css's. */
.sd-portal-header-title {
	flex: 1 1 auto;
	min-width: 0;
}

.sd-portal-title {
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* A page's tools in the bar (PortalTools), between its title and the account button, in a row. */
.sd-portal-header-tools {
	display: flex;
	flex: none;
	gap: var(--space-1);
	align-items: center;
}

.sd-portal-header-tools:empty {
	display: none;
}

/* The account button is always last on the right, with or without the menu button. */
.sd-portal-header-end {
	margin-inline-start: auto;
	display: flex;
	align-items: center;
}

.sd-portal-main {
	flex: 1 0 auto;
}

.sd-portal-footer {
	padding: var(--space-4);
}

/* The drawer holds the sidebar edge to edge. (The Close button's touch size is global.css's rule for every Ant Design
   drawer.) */
.sd-portal-drawer .ant-drawer-body {
	padding: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The owner's and the team's frame (design: Sidebar, StoreSetupFlow). Tokens only. */

/* The owner's header bar, as drawn (design: AppShell's owner frame and the owner cards' `OHead`, `.sd-header`: 64px high,
   24px at the sides, 16px between its parts; on a phone `OBar`, `.sd-appbar`: 56px, 8px by 16px). Override: the
   staff portal's bar is its own and stays as it is, so the shared PortalFrame rule is left alone
   and the owner's is scoped to its frame. The heights are rem, so the bar grows with the text size, and include the
   padding and the rule under the bar, as the drawing's border-box heights do. */
.sd-owner-frame .sd-portal-header {
	box-sizing: border-box;
	min-height: 3.5rem;
}

@media (min-width: 48em) {
	.sd-owner-frame .sd-portal-header {
		gap: var(--space-4);
		min-height: 4rem;
		padding: 0 var(--space-6);
	}
}

/* A paused store's banner, above every page, in the page's gutter. */
.sd-yourstore-banner {
	padding: var(--space-4) var(--space-4) 0;
}

/* A page in the frame that is not a setup step. Its width and sides are the page's (`sd-page` and its width, design:
   PageWidths; theme/page.css), centred in the space right of the side column. Above and below, below the side column,
   the drawn phone gutter, 16px (design: the owner phones' `.sd-sec`; tokens: phone gutters are space-4). */
.sd-yourstore-page {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding-block: var(--space-4);
}

/* A page's own heading has no browser margin at either level: under Settings it is an h2 (PageHeading), and the h2's
   16px margin put the Sign-up poster's heading below the side list's first row, where every other section's sits
   (drawn: `H2` with margin 0). */
.sd-yourstore-page > :is(h1, h2),
.sd-yourstore-page > p {
	margin: 0;
}

/* With the side column (from 1024px, PORTAL_DRAWER_QUERY), the drawn 32px under the header (design: AppShell and
   StoreSetup `.sd-main`, StorePricing's main), as Settings has (.sd-owner-settings), so Pricing and the setup steps
   start at the same height as Settings in the same frame. */
@media (min-width: 64em) {
	.sd-yourstore-page {
		padding-block: var(--space-8);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/*
 * The counter device (design: CounterDevice, bundle.css `.sd-counter*`). It stands on a counter and is read from across
 * it, so its words, fields and buttons sit in the middle and are larger than the app's. The design system names no
 * tokens for those counter sizes; each is an override here, marked, at the drawing's px in rem so it follows the
 * person's text size.
 */

.sd-counter {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	color: var(--ink);
}

/* Direction B (design: CounterDevice): no bar, one surface, and at the default text size nothing
   scrolls on an iPad mini upright (744 x 1109) or on its side (1133 x 720), installed, or on a POS monitor
   (1280 x 800). The frame has a minimum height only, the window's (theme/frame.css, `.sd-frame`), never a fixed one;
   the heading and the foot take what they need (flex none) and the main fills the rest. At a larger text size the page scrolls as a document rather than cutting anything off. */

/* A counter screen holds the page still (useCounterStill marks the root): no bounce past either end, Safari's included,
   on any counter screen; and while the screen fits the window the page itself does not scroll, so a finger held on a
   key or a code never moves the screen. What scrolls inside a screen (Get the bags' spot tiles and its panels) still
   scrolls, and a screen taller than the window (a larger text size) scrolls as a document. */
html[data-counter],
html[data-counter] body {
	/* eslint-disable-next-line css/use-baseline -- Safari has it from 16; an older one bounces as before */
	overscroll-behavior: none;
}

html[data-counter='still'],
html[data-counter='still'] body {
	overflow: hidden;
}

/* The page heading, centred: the store's plate and name, the device's name small under it (drawn: `CHead`, padding
   24 at the top and sides, 4 between); before pairing, the Sundries lockup alone. */
.sd-counter-head {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: var(--space-1);
	padding: var(--space-6) var(--space-6) 0;
}

/* Override: the store's name at 24/30 in the heading (drawn), the title-1 size, which the header name does not use. The
   plate keeps the header's 48px with its initials at 18 (drawn). */
.sd-counter-head .sd-store-name {
	font-size: var(--type-title-1-size);
	line-height: var(--type-title-1-line);
}

.sd-counter-device {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	white-space: nowrap;
}

/* Override: the pickup-counter glyph at 16 beside the 14px caption (drawn). */
.sd-counter-device svg {
	font-size: var(--type-body-size);
}

/* The panels stacked under 900px at the default text size, side by side from 900 (drawn: `up = w < 900`;
   utils/breakpoints.ts COUNTER_STACKED_QUERY for the screens that lay out their content differently in each). */
.sd-counter-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.sd-counter-main:focus {
	outline: none;
}

/* Side by side, the panels keep the widest drawn frame, 1280, and centre in a wider window, so a side panel (the
   pairing code, the join code) stays beside the main one under the centred heading instead of running to the right
   edge (the counter installed full screen on a Mac at 1728 wide). Override: no token holds the
   counter's widest frame (`--page-wide` is the widest page, 1200, narrower than the drawn 1280 × 800). */
@media (min-width: 56.25em) {
	.sd-counter-main {
		flex-direction: row;
		width: 100%;
		max-width: 80rem;
		margin-inline: auto;
	}
}

/* A centred panel (drawn: `Panel`), plain on the frame's one surface, padded 32 all round. */
.sd-counter-panel {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: var(--space-8);
}

/* One hairline between two panels, edge to edge: the second panel's top border when stacked, its left border side by
   side (drawn: B_CSS). */
.sd-counter-main > .sd-counter-panel + .sd-counter-panel {
	border-top: var(--sd-line-width) solid var(--line);
}

@media (min-width: 56.25em) {
	.sd-counter-main > .sd-counter-panel + .sd-counter-panel {
		border-top: 0;
		border-left: var(--sd-line-width) solid var(--line);
	}
}

.sd-counter-panel-narrow {
	flex: none;
}

/* The panel beside the main one on a POS monitor, 420 wide (drawn: the join code's and the pairing code's,
   `flex: 0 0 420px`). Override: no token holds the width. */
@media (min-width: 56.25em) {
	.sd-counter-panel-side {
		flex: 0 0 26.25rem;
	}
}

/* The frame drawn before direction B, which the too-small screen keeps (design: CounterDevice 3.12, `CFrameOld`): a bar
   with the lockup, then the panel as a card on the frame's surface. */
.sd-counter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	min-height: 4rem;
	padding: var(--space-3) var(--space-6);
	border-bottom: var(--sd-line-width) solid var(--line);
	background: var(--surface-raised);
}

.sd-counter-main-cards {
	gap: var(--space-8);
	padding: var(--space-8);
}

.sd-counter-main-cards > .sd-counter-panel {
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

@media (max-width: 30em) {
	.sd-counter-main-cards {
		gap: var(--space-4);
		padding: var(--space-4);
	}
}

/* One column, 560px at the default text size (drawn). */
.sd-counter-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-5);
	width: 100%;
	max-width: 35rem;
	text-align: center;
}

.sd-counter-col > p,
.sd-counter-col > h1 {
	margin: 0;
}

/* Override: the counter's title at 36/44 (drawn: `Big`), above title-1, the largest title token. */
.sd-counter-title {
	margin: 0;
	font-size: 2.25rem;
	line-height: 2.75rem;
	font-weight: 700;
}

/* Override: the lead at 18/28 (drawn: `Lead`); body-lg's line is 26. */
.sd-counter-lead {
	font-size: var(--type-body-lg-size);
	line-height: 1.75rem;
}

.sd-counter-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	width: 100%;
}

.sd-counter-form .ant-form-item {
	margin: 0;
}

/* Override: the field label at 18 (drawn), centred with the field's error. */
.sd-counter-form .ant-form-item-label > label {
	font-size: var(--type-body-lg-size);
}

.sd-counter-form .ant-form-item-label,
.sd-counter-col .sd-field-error {
	justify-content: center;
	text-align: center;
}

/* Override: the code typed in mono at 48/72, upper case, centred, with a 2px strong line (drawn: `.sd-codeentry`).
   The pairing code's field and the order code's are the first to give way on a shorter screen:
   at the drawn 48 where there is room, then shrinking with the window's height to 32 (its line 1.5 times its size), so
   the screen fits before anything else changes. Each field starts to give at the height the fullest screen it is on
   needs at 48, in that frame, with 4 to spare (`--sd-counter-field-room`). The pairing field's fullest screen is
   pairing, unpaired, in a browser tab with the install line and the ran-out banner; the order code's is the code entry
   with the keypad lead (upright) or the hint (on its side, a POS monitor). Measured in Chrome, with the
   field held at 48, as the frame's natural height with Safari's install line (Chrome's cannot be shown outside a real
   install prompt; it is one line, as Safari's is), the ran-out banner on two lines in the counter's font (one line
   before the font loads, 26 less):
     pairing: 1124 upright (744 wide), 737 on its side (1024 to 1279 wide), 693 on a POS monitor (1280 x 800);
     order code: 1102 upright, 573 on its side, 589 on a POS monitor.
   On its side below 1024 wide the pairing lead and heading wrap once more and the fullest pairing screen needs up to
   789 (at 900), so in a window that narrow and that short it can scroll by up to the field's 24 less; the iPad mini's
   own width is the one measured to fit. Below the room the field's line gives a pixel for each pixel of window lost,
   for 24px.
   Pairing is measured with the next code shown and its timer at 20/28.
   Hand-measured, so CounterStylesheet.test.ts fingerprints the rules and words those screens' heights come from and
   fails when any of them changes: re-measure (docs/specs/store-onboarding.md, Verification) and update both. */
.sd-counter-form .sd-counter-code-input {
	--sd-counter-field-room: 70.5rem;
	border-width: calc(2 * var(--sd-line-width));
	border-color: var(--line-strong);
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: clamp(2rem, calc(3rem - (var(--sd-counter-field-room) - var(--sd-viewport-block)) * 2 / 3), 3rem);
	line-height: 1.5em;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.sd-counter[data-frame='side'] .sd-counter-form .sd-counter-code-input {
	--sd-counter-field-room: 46.3125rem;
}

.sd-counter[data-frame='pos'] .sd-counter-form .sd-counter-code-input {
	--sd-counter-field-room: 43.5625rem;
}

/* The order code (drawn: `Entry`): the code field's look, but the store's prefix is already in the box on
   surface-sunken, and the digits are typed left-aligned, 16px after it, never centred. Ant Design's outlined
   input paints its own background in each state (at rest, hovered, focused, and again with its error status, at a
   higher specificity), so the box is sunken through the variables those read, in every state: Pick up refused kept
   the error's surface otherwise. */
.sd-counter-form .sd-counter-order-input {
	--sd-counter-field-room: 69.125rem;
	--sd-color-bg-container: var(--surface-sunken);
	--sd-input-hover-bg: var(--surface-sunken);
	--sd-input-active-bg: var(--surface-sunken);
	background: var(--surface-sunken);
	text-align: left;
	text-transform: none;
}

.sd-counter-form .sd-counter-order-input input {
	background: transparent;
	text-align: left;
}

.sd-counter-form .sd-counter-order-input .ant-input-prefix {
	margin-inline-end: var(--space-4);
}

/* On an iPad the order code grows with the keys (drawn: `BigEntry`): 64/96 upright, 56/84 on its side, giving way
   below its room as the 48 does, a pixel of line for each pixel of window, for 48px. Its rooms are worked out, not
   measured: the earlier measurement (1102 upright, 573 on its side, with the join panel beside or under the entry)
   less the join panel, plus the drawn keys, field and Pick up. */
.sd-counter[data-frame='upright'] .sd-counter-form .sd-counter-order-input {
	--sd-counter-field-room: 64.125rem;
	font-size: clamp(2rem, calc(4rem - (var(--sd-counter-field-room) - var(--sd-viewport-block)) * 2 / 3), 4rem);
}

.sd-counter[data-frame='side'] .sd-counter-form .sd-counter-order-input {
	--sd-counter-field-room: 43.5rem;
	font-size: clamp(2rem, calc(3.5rem - (var(--sd-counter-field-room) - var(--sd-viewport-block)) * 2 / 3), 3.5rem);
}

.sd-counter[data-frame='pos'] .sd-counter-form .sd-counter-order-input {
	--sd-counter-field-room: 37.0625rem;
}

/* Override: the counter's buttons, 64px tall with 22px words (drawn: `BIGBTN`), larger than touch-lg. Named with Ant
   Design's large block button classes so it outranks the app's own floor for those (global.css, `.ant-btn.ant-btn-block
   .ant-btn-lg`, the control's 52), which would hold them at 52. */
.sd-counter-col .sd-counter-big-button.ant-btn.ant-btn-lg {
	min-height: 4rem;
	font-size: 1.375rem;
}

/* Override: beside the join code, the title at 22/28 (drawn), between title-2 and title-1; the sleep screen's tap line
   at the same size (design: CounterSleep; CounterSleep.css gives it its colour). */
.sd-counter-join-title,
.sd-sleep-tap {
	font-size: 1.375rem;
	line-height: 1.75rem;
}

/* A line at 18/26 (drawn: the pairing lead, the pickup's "Type the digits…", the pickup code's countdown): body-lg. */
.sd-counter-body {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
}

/* The time in a countdown, mono bold (drawn: `NewIn`, `b.sd-mono`), its figures of one width so the line holds still. */
.sd-counter-time {
	font-family: var(--font-mono);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Pairing's own sizes, fitted with the install line (design: CounterIdentity, `PairS`): the code's help and its error
   at 16/24, the body size. */
.sd-counter-pair-form .ant-form-item-explain .sd-caption {
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

/* Pick up refused (drawn: `Refused`): the error at 18/26, and the next step under it at the lead's 18/28 in ink. */
.sd-counter-order-form .ant-form-item-explain .sd-caption {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
}

.sd-counter-order-form .ant-form-item-extra .sd-caption {
	color: var(--ink);
	font-size: var(--type-body-lg-size);
	line-height: 1.75rem;
	text-align: center;
}

/* The banners in a counter column, the ran-out one and the install line (drawn: `RanOut`, `Install`): the column's
   width, their words left-aligned. Their sizes are StatusBanner's own (`size`). */
.sd-counter-col > .sd-banner {
	align-self: stretch;
	text-align: left;
}

/* Chrome and Edge's install line: the words and Install the counter on one line, wrapping when the column is too
   narrow. */
.sd-counter-install-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
}

.sd-counter-install-words {
	flex: 1;
}

/* "Or scan this with your phone" (drawn: `OrSep`). Stacked, between the Pair panel and the scan
   panel: a hairline broken by the words, inset 48 at the sides. Side by side, the scan panel's title over its code, and
   the panels have the plain hairline between them. The words at 20/28 bold, centred. Override: the 28px line. */
.sd-counter-or {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--space-4);
	margin: 0 var(--space-12);
}

.sd-counter-or-line {
	flex: 1;
	height: var(--sd-line-width);
	background: var(--line);
}

.sd-counter-or-words {
	margin: 0;
	font-size: var(--type-title-2-size);
	font-weight: 700;
	line-height: 1.75rem;
	text-align: center;
}

.sd-counter-or .sd-counter-or-words {
	white-space: nowrap;
}

/* Pairing in a browser tab, upright, with the install line: the browser's bar takes 52px, so the panels pad 24 at the
   top and foot rather than 32 and the code is 180 (design: CounterIdentity P1, Safari; Pairing.tsx gives Chrome and
   Edge's line the same). */
@media (max-width: 56.1875em) {
	.sd-counter-panel-snug {
		padding-block: var(--space-6);
	}

	/* Not drawn: with the ran-out banner too, Safari's 1057 left the column 11px over, so its lines sit
	   16 apart rather than 20. */
	.sd-counter-panel-snug .sd-counter-col {
		gap: var(--space-4);
	}
}

/* The code to match on the device's own question, mono at 22 bold (drawn: `confirmPair`). Override: 22px is no
   token; the counter's sizes sit between title-2 and title-1, as the join title's does. */
.sd-counter-confirm-code .sd-pairing-code {
	font-size: 1.375rem;
	line-height: 1.75rem;
}

/* The pairing code's skeleton: the code's square (200, 220 side by side) and a line under it (drawn: `LoadPanel`).
   Override: the square is the code's own size, which no token holds. */
.sd-counter-skel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-5);
}

.sd-counter-skel-scan {
	/* The code's 200px square and its frame on both sides, so the panel does not move when the code arrives. */
	width: calc(12.5rem + 2 * var(--qr-frame-width));
	height: calc(12.5rem + 2 * var(--qr-frame-width));
}

@media (min-width: 56.25em) {
	.sd-counter-skel-scan {
		width: calc(13.75rem + 2 * var(--qr-frame-width));
		height: calc(13.75rem + 2 * var(--qr-frame-width));
	}
}

.sd-counter-skel-line {
	width: 15rem;
	height: var(--type-title-2-line);
}

/* No join code to show: the store icon at 48 in ink-muted, then the line at 22/30 bold (drawn: `IdlePanel`). Override:
   the counter's sizes, which no token holds. */
.sd-counter-idle-icon {
	font-size: 3rem;
	color: var(--ink-muted);
}

.sd-counter-idle-line {
	font-size: 1.375rem;
	line-height: 1.875rem;
	font-weight: 700;
}

/* Powered by, centred at the foot once paired, 12 above and below (drawn: the footer's `padding: 12px 24px`). */
.sd-counter-foot {
	display: flex;
	flex: none;
	justify-content: center;
	padding: var(--space-3) var(--space-6);
}

/* The phone that scanned a counter (design: CounterDevices, `phScan`): the column, its glyph centred above. */
.sd-counter-approve {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-counter-approve > h1,
.sd-counter-approve > p,
.sd-counter-approve .ant-form-item {
	margin: 0;
}

/* Override: the laptop glyph at 48px in pine (drawn). */
.sd-counter-approve-icon {
	align-self: center;
	font-size: 3rem;
	color: var(--pine);
}

/* Approved: "Its code, to match" over the six characters, 4px apart (drawn). Override: the code at 24 (title-1's
   size), mono, wider set, as drawn. */
.sd-counter-approve-code {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-counter-approve-code .sd-pairing-code {
	font-size: var(--type-title-1-size);
	line-height: var(--type-title-1-line);
	letter-spacing: 0.08em;
}

/* A renewing QR code's countdown, under it (the join code's, the pairing code's). */
.sd-counter-code-timer {
	margin: 0;
}

/* A pickup (design: CounterDevice 3 to 7). The order code over each step, mono at 20 bold (drawn); 28 over the pickup
   code (drawn: `CodePanel`). Override: the counter's sizes, which no token holds. */
.sd-counter-order-code {
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: var(--type-title-2-size);
	line-height: var(--type-title-2-line);
}

/* Over the pickup code, the order code at 28 (drawn: `CodePanel`), 24 beside the code on a POS monitor (title-1). */
.sd-counter-order-code-lg {
	font-size: 1.75rem;
	line-height: 2.25rem;
}

.sd-counter-code-words .sd-counter-order-code-lg {
	font-size: var(--type-title-1-size);
	line-height: var(--type-title-1-line);
}

/* Override: the pickup code's heading and pairing's at 30/38 (drawn: `CodePanel`; CounterIdentity, `PairS`), between
   title-1 and the counter's title. */
.sd-counter-col .sd-counter-code-title {
	font-size: 1.875rem;
	line-height: 2.375rem;
}

/* Beside the code on a POS monitor, the heading at 32/40 (drawn): the display token's size. Override: the drawn 40px
   line, which the display token (38) does not hold. */
.sd-counter-code-words .sd-counter-code-title {
	font-size: var(--type-display-size);
	line-height: 2.5rem;
}

/* The pickup code on a POS monitor (drawn: `dCode`, `CodeWide`): the 480px code, then its words beside it in a
   left-aligned column of 440 at most, 32 between them (16 each side), so 480 fits under 800. */
.sd-counter-code-beside {
	display: flex;
	align-items: center;
	gap: var(--space-8);
	max-width: 100%;
}

.sd-counter-code-words {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-5);
	min-width: 0;
	max-width: 27.5rem;
	text-align: left;
}

/* The pickup code (spec, At the counter): 400px on a tablet and 480px on a POS monitor (side by side), about 8 and 10 cm
   across.
   Override: the code's own sizes, which no token holds; never wider than its column, and always square. */
.sd-counter-pickup-code {
	position: relative;
	display: grid;
	place-items: center;
	max-width: 100%;
}

.sd-counter-pickup-qr {
	max-width: 100%;
}

.sd-counter-pickup-qr .sd-qr {
	max-width: 100%;
}

.sd-counter-pickup-qr svg {
	width: min(25rem, 100%);
	height: auto;
	aspect-ratio: 1;
}

/* Beside its words on a POS monitor, the code at 480 (drawn: `dCode`). Its column is sized by the code, so a percentage
   width would resolve to the svg's own size: the width is definite here, and the code's item never shrinks. */
.sd-counter-code-beside .sd-counter-pickup-code {
	flex: none;
}

.sd-counter-code-beside .sd-counter-pickup-qr svg {
	width: 30rem;
}

/* The join code (drawn: `Join`), 260 stacked and 280 side by side, and the pairing code (`ScanPanel`), 200 stacked
   and 220 side by side, 180 in Safari upright with the install line (CounterIdentity P1). Drawn at the larger size and
   shown at these, never wider than the column; in rem so it keeps pace with the text. Override: the codes' own sizes. */
.sd-counter-scan-qr .sd-qr,
.sd-counter-scan-qr svg {
	max-width: 100%;
}

.sd-counter-scan-qr svg {
	height: auto;
	aspect-ratio: 1;
}

.sd-counter-join-qr svg {
	width: 16.25rem;
}

.sd-counter-pair-qr svg {
	width: 12.5rem;
}

.sd-counter-panel-snug .sd-counter-pair-qr svg {
	width: 11.25rem;
}

@media (min-width: 56.25em) {
	.sd-counter-join-qr svg {
		width: 17.5rem;
	}

	.sd-counter-pair-qr svg,
	.sd-counter-panel-snug .sd-counter-pair-qr svg {
		width: 13.75rem;
	}
}

/* Renewing failed: the code dims and blurs under Try again (drawn: `CodePanel(…, 'fail')`). */
.sd-counter-pickup-qr-failed {
	opacity: 0.12;
	filter: blur(0.375rem);
}

.sd-counter-pickup-retry {
	position: absolute;
}

/* After the scan, the line to the shopper at 20, its phone glyph in pine (drawn: `Checking`). */
.sd-counter-checking {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	font-size: var(--type-title-2-size);
	line-height: var(--type-title-2-line);
}

.sd-counter-checking svg {
	color: var(--pine);
}

/* What the customer said no to, over the bags: 18 bold in the short colour (drawn: `BagsPanel(take)`). */
.sd-counter-said-no {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
	font-weight: 700;
	color: var(--short);
}

/* The tab's banner, left-aligned in the centred column (drawn: `TabLine`). Override: 18/26 on the counter. Its full
   width includes its padding, so it ends where the column does (it ran 32 past it, over the panel's padding: harness
   check). */
.sd-counter-tab {
	box-sizing: border-box;
	width: 100%;
	text-align: left;
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
}

/* Take an item out: what is left to pay after the choice, a status line bold at the lead's size (drawn: `TakeBody`,
   "After this, nothing more to pay."). */
.sd-counter-owes {
	margin: 0;
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
	font-weight: 700;
}

/* The shopper won't pay what is over the hold: the question, then Take an item out and Put it on a tab side by side,
   wrapping when the words are large (drawn: `WontPay`). */
.sd-counter-wont-pay {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	width: 100%;
}

/* Complete: what the hand-over charged, bold under the title (drawn: `DonePanel`, 24/32). */
.sd-counter-charged {
	margin: 0;
	font-size: var(--type-title-2-size);
	line-height: var(--type-title-2-line);
	font-weight: 700;
}

/* Get the bags' tiles (drawn: `SpotGrid`, `SpotTile`): the one thing on the step that scrolls, so
   the title, the take-out alert, Hand over and Cancel pickup stay put. The frame keeps its one height model
   (theme/frame.css: at least the window's, never fixed, nothing hidden): the tiles' wrapper takes what the step leaves
   (flex 1 1 0) and the tiles scroll inside it, so they give way first. If the step's column is still taller than the
   screen, only that column scrolls, never the page (design: CounterDevice): on this step the main takes what the
   frame leaves under its heading and foot (a basis of 0, so it never grows the frame past the window) and each panel
   scrolls on its own. The frame itself keeps its height model; only below the main's floor, about two rows of tiles
   (very large text), does the page scroll as a document rather than cut anything off. Two tiles across upright, more
   side by side (below), one for a single spot. */
.sd-counter-main:has(.sd-counter-panel-bags) {
	flex-basis: 0;
	min-height: 17rem;
}

.sd-counter-main:has(.sd-counter-panel-bags) > .sd-counter-panel {
	min-height: 0;
	overflow-y: auto;
}

.sd-counter-panel-bags {
	align-items: stretch;
}

/* The steps' panel beside the tiles keeps its column centred while it fits, by its margins, not by centring the panel:
   a centred column taller than its panel would overflow at the top too, where scrolling never reaches. */
.sd-counter-main:has(.sd-counter-panel-bags) > .sd-counter-panel-side {
	align-items: flex-start;
}

.sd-counter-main:has(.sd-counter-panel-bags) > .sd-counter-panel-side > .sd-counter-col {
	margin-block: auto;
}

.sd-counter-spots-wrap {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--space-2);
	width: 100%;
}

/* Override: the floor, two rows of tiles (about 8.5rem each), under which the page scrolls instead; no token holds it. */
.sd-counter-spots {
	position: relative;
	display: grid;
	flex: 1 1 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-content: start;
	gap: var(--space-3);
	width: 100%;
	min-height: 17rem;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.sd-counter-spots-single {
	grid-template-columns: minmax(0, 1fr);
}

/* More across only where each tile keeps the room its spot and chips need, about 10.5rem ("Shelf C · 2 bags",
   "Freezer · 2 bags" and two chips on a line): side by side the tiles have what the step's column leaves, about the
   window less 34rem. So two across to 1088 (about 230 each at 1024), three from 1088 (about 170) and four from 1280
   (about 170). Four from 900 left about 110 at 1024, and three from 1024 about 150: "Shelf A" and "· 2 bags" wrapped.
   A single spot stays one across at each width, where the rule above it would win by
   order. */
@media (min-width: 68em) {
	.sd-counter-spots {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sd-counter-spots-single {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Four across on a POS monitor only (from 1280 and over 760 high, CounterFrame `useCounterFrame`): an iPad on its side
   is three across (design: CounterDevice). */
.sd-counter[data-frame='pos'] .sd-counter-spots {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sd-counter[data-frame='pos'] .sd-counter-spots-single {
	grid-template-columns: minmax(0, 1fr);
}

/* The last row fades while more is below (drawn): over the foot of the list, above the line that says how many. */
.sd-counter-spots-wrap-more::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: calc(var(--type-body-lg-line) + var(--space-2));
	left: 0;
	height: var(--space-12);
	background: linear-gradient(transparent, var(--surface));
	pointer-events: none;
}

.sd-counter-spots-more {
	margin: 0;
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
	font-weight: 700;
}

/* A spot's tile: surface raised with a hairline, the spot and its count, its bags as chips; a tile holding a take-out
   is short-soft with the short border. */
.sd-counter-spot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-3);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
	text-align: center;
}

.sd-counter-spot-short-soft {
	border-color: var(--short);
	background: var(--short-soft);
}

/* Override: the spot at 22/28 (drawn), above title-2's size and below title-1's. */
.sd-counter-spot-head {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: var(--space-2);
	font-size: 1.375rem;
	line-height: 1.75rem;
}

.sd-counter-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
}

/* Override: a chip at 18/24 bold (drawn: `Chip`), the counter's size, which no token holds. */
.sd-counter-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-1) var(--space-3);
	border: calc(2 * var(--sd-line-width)) solid transparent;
	border-radius: var(--radius-pill);
	background: var(--surface-sunken);
	font-size: var(--type-body-lg-size);
	line-height: 1.5rem;
	font-weight: 700;
}

.sd-counter-chip-short {
	border-color: var(--short);
	background: var(--short-soft);
	color: var(--short);
}

.sd-counter-take-out {
	font-size: var(--type-body-lg-size);
	line-height: 1.5rem;
	font-weight: 700;
	color: var(--short);
}

.sd-counter-waits {
	font-weight: 700;
}

/* Who's handing it over (drawn: `WhoPanel`): 3 across upright, 5 side by side (from 900, the counter's switch, so an
   iPad mini on its side, 1133 x 720, has one row of five and nothing scrolls), each a large button with the photo or
   initials at 96px over the first name at 22 bold. Override: the counter's tile, which no token holds. */
.sd-counter-col-wide {
	max-width: 35rem;
}

@media (min-width: 56.25em) {
	.sd-counter-col-wide {
		max-width: none;
	}
}

/* The team's tiles, three across stacked and five side by side, each row centred: one tile
   in the middle, two side by side in the middle, a full row evenly spaced, and a short last row centred under it. */
.sd-counter-who {
	--sd-who-across: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
	width: 100%;
}

.sd-counter-who > .sd-counter-who-tile {
	flex: 0 0 calc((100% - (var(--sd-who-across) - 1) * var(--space-3)) / var(--sd-who-across));
	min-width: 0;
}

@media (min-width: 56.25em) {
	.sd-counter-who {
		--sd-who-across: 5;
	}
}

.sd-counter-who-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	min-height: 10.5rem;
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--ink);
	font: inherit;
	font-size: 1.375rem;
	line-height: 1.75rem;
	font-weight: 700;
	cursor: pointer;
}

.sd-counter-who-tile:focus-visible,
.sd-counter-key:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* A hand-over photo, round, or the initials on surface-sunken (drawn: `Face`, `Initials`): 96 on a tile, 64 by the
   PIN's title. */
.sd-counter-face {
	display: grid;
	flex: none;
	place-items: center;
	border-radius: 50%;
	object-fit: cover;
}

.sd-counter-face-tile {
	width: 6rem;
	height: 6rem;
	font-size: 2.125rem;
}

.sd-counter-face-pin {
	width: 4rem;
	height: 4rem;
	font-size: 1.5rem;
}

.sd-counter-initials {
	background: var(--surface-sunken);
	color: var(--ink);
	font-weight: 700;
}

.sd-counter-pin-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-4);
}

/* The PIN's four boxes, 64 x 76 with the dots at 36; the next box ringed in focus, all in danger after a wrong PIN
   (drawn: `PinBoxes`). Override: the counter's sizes. */
.sd-counter-pin {
	display: flex;
	justify-content: center;
	gap: var(--space-3);
}

.sd-counter-pin-box {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4.75rem;
	border: calc(2 * var(--sd-line-width)) solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	font-size: 2.25rem;
}

.sd-counter-pin-next {
	border-color: var(--focus);
}

.sd-counter-pin-error .sd-counter-pin-box {
	border-color: var(--danger);
}

.sd-counter-col .sd-counter-pin-said {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
}

/* The keypad, three across, each key 88 x 64 with its digit at 26 (drawn). */
.sd-counter-keypad {
	display: grid;
	grid-template-columns: repeat(3, 5.5rem);
	gap: var(--space-3);
	justify-content: center;
}

.sd-counter-key {
	display: grid;
	place-items: center;
	height: 4rem;
	border: var(--sd-line-width) solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--ink);
	font: inherit;
	font-size: 1.625rem;
	cursor: pointer;
}

.sd-counter-key:disabled {
	cursor: default;
	opacity: 0.5;
}

.sd-counter-pin-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-3);
}

/* The team PIN on a POS monitor (not drawn: one column is taller than 800). A grid of three panels: who and the lead at
   the top left, the buttons at the foot of the left column, and the boxes over the keypad on the right, with the one
   hairline between the columns (the entry's left border). In the page the entry comes second, so Tab reaches the
   digits before the buttons. Override: the 420 column, as the other side panels. */
@media (min-width: 56.25em) {
	.sd-counter-main:has(> .sd-counter-pin-entry) {
		display: grid;
		grid-template-rows: 1fr auto;
		grid-template-columns: 26.25rem minmax(0, 1fr);
	}

	.sd-counter-pin-who {
		grid-row: 1;
		grid-column: 1;
	}

	.sd-counter-pin-entry {
		grid-row: 1 / span 2;
		grid-column: 2;
	}

	.sd-counter-main > .sd-counter-panel.sd-counter-pin-leave {
		grid-row: 2;
		grid-column: 1;
		padding-top: 0;
		border-left: 0;
	}
}

/* The counter's own message, another account's scan and Offline (CounterMessage; drawn: `Msg`): the title at 32/40,
   smaller than the counter's 36 title. Override: the display token's size with the drawn 40 line, which the token (38)
   does not hold. */
.sd-counter-col .sd-counter-message-title {
	font-size: var(--type-display-size);
	line-height: 2.5rem;
}

/* The message's glyph at 56, in danger or ink-muted (drawn: `Msg`). */
.sd-counter-state-icon {
	font-size: 3.5rem;
}

.sd-counter-state-icon-danger {
	color: var(--danger);
}

.sd-counter-state-icon-muted {
	color: var(--ink-muted);
}

/* Collected: a pine circle, 96 across, with the check at 56; the title at 44/52 (drawn: `DonePanel`). Still: no
   animated mark here (the counter repeats it all day). */
.sd-counter-done-check {
	display: grid;
	place-items: center;
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	background: var(--pine);
	color: var(--on-pine);
	font-size: 3.5rem;
}

.sd-counter-col .sd-counter-done-title {
	font-size: 2.75rem;
	line-height: 3.25rem;
}

/* Cancel pickup, last on the bags and the hand-over: a hairline, then a quiet text button and its line (design:
   CounterDevice, CancelPU). */
.sd-counter-cancel-pickup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-1);
	width: 100%;
	padding-top: var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
}

/*
 * The counter on an iPad mini (design: CounterDevice, On an iPad mini): upright (744 x 1109, installed) and
 * on its side (1133 x 720), drawn in points inside the device's outline; the POS monitor (1280 x 800) keeps its own.
 * Which frame the window is is worked out once (CounterFrame `useCounterFrame`, utils/breakpoints.ts) and set on the
 * frame as `data-frame`: `upright`, `side` or `pos`. These rules key on it and never on a media query of their own, so
 * the stylesheet and the screens cannot disagree. `:not([data-frame='pos'])` is both iPad frames. Nothing scrolls in
 * either but the bags' tiles. Every size here is the drawing's, an override where no token holds it.
 */

/* The heading 16 from the top on its side, 24 upright (drawn: `IHead`). */
.sd-counter[data-frame='side'] .sd-counter-head {
	padding-top: var(--space-4);
}

/* The device's name, and on the team's steps the For the team tag beside it, 12 apart in a 28 line (drawn: `IHead`). */
.sd-counter-device-line {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
}

.sd-counter:not([data-frame='pos']) .sd-counter-device-line {
	min-height: 1.75rem;
}

/* Override: the tag at the counter's caption size, 16/24 with its people glyph at 18, 28 high (drawn: `Tag ok`);
   KindTag is the app's small tag. */
.sd-counter-device-line .sd-kind-tag.ant-tag {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 1.75rem;
	margin: 0;
	padding: 0 var(--space-3);
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

.sd-counter-device-line .sd-kind-tag svg {
	font-size: var(--type-title-3-size);
}

/* The foot keeps the bottom 28 clear of the home indicator, 8 over Powered by (drawn: `IFoot`); unpaired, with no foot,
   the same 28 is kept clear. On the team's steps Cancel pickup sits at its left and Powered by at its right. */
.sd-counter:not([data-frame='pos']) .sd-counter-foot {
	align-items: center;
	padding: var(--space-2) var(--space-6) calc(var(--space-6) + var(--space-1));
}

.sd-counter-foot-split {
	justify-content: space-between;
	gap: var(--space-4);
}

.sd-counter-foot-clear {
	flex: none;
	height: calc(var(--space-6) + var(--space-1));
}

.sd-counter-cancel-foot {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

/* Panels padded 24 at the top and foot and 32 at the sides (drawn: `IP_CSS`). On its side their lines sit 16 apart,
   as the short-screen rule this replaces had them (Who's handing it over ran 39px over at 20). The
   drawing's widths are a panel's whole width, its padding inside (the design system sizes every box border-box), so a
   panel drawn 520 beside the tiles is 520, not 520 and its padding (Get the bags' tiles were 153 wide, not 175:
   harness check). */
.sd-counter:not([data-frame='pos']) .sd-counter-panel {
	box-sizing: border-box;
	padding: var(--space-6) var(--space-8);
}

.sd-counter[data-frame='side'] .sd-counter-col {
	gap: var(--space-4);
}

/* Type for an arm's length (drawn: `IP_CSS`): leads at 20/28 (18 on a POS monitor), captions 16/24, the countdowns 20. A
   refusal's next step and the pairing code's help keep their places' sizes: the lead's and the caption's. */
.sd-counter:not([data-frame='pos']) .sd-counter-lead,
.sd-counter:not([data-frame='pos']) .sd-counter-body,
.sd-counter:not([data-frame='pos']) .sd-counter-countdown,
.sd-counter:not([data-frame='pos']) .sd-counter-order-form .ant-form-item-extra .sd-caption {
	font-size: var(--type-title-2-size);
	line-height: 1.75rem;
}

.sd-counter:not([data-frame='pos']) .sd-caption:not(.sd-counter-countdown) {
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

/* What is left to pay after a take-out, 20 bold (drawn: `ITake`). */
.sd-counter:not([data-frame='pos']) .sd-counter-owes {
	font-size: var(--type-title-2-size);
	line-height: 1.75rem;
}

/* On an iPad the keypad takes the room the entry has alone, for the order code and the team PIN alike (drawn:
   `BigKeys`): keys 176 x 96 upright, 16 apart, the digits at 36; 136 x 104 on its side, 12 apart, at 34; the 12 radius;
   Delete's icon at 32. Override: the counter's sizes, which no token holds. */
.sd-counter[data-frame='upright'] .sd-counter-keypad {
	grid-template-columns: repeat(3, 11rem);
	gap: var(--space-4);
}

.sd-counter[data-frame='side'] .sd-counter-keypad {
	grid-template-columns: repeat(3, 8.5rem);
	gap: var(--space-3);
}

.sd-counter:not([data-frame='pos']) .sd-counter-key {
	border-radius: var(--radius-lg);
	font-weight: 700;
}

.sd-counter[data-frame='upright'] .sd-counter-key {
	height: 6rem;
	font-size: 2.25rem;
}

.sd-counter[data-frame='side'] .sd-counter-key {
	height: 6.5rem;
	font-size: 2.125rem;
}

.sd-counter:not([data-frame='pos']) .sd-counter-key svg {
	font-size: 2rem;
}

/* Pick up under the keys, 72 high with its words at 24 (drawn: `PICKUP_BTN`). */
.sd-counter:not([data-frame='pos']) .sd-counter-order-form .sd-counter-big-button.ant-btn.ant-btn-lg {
	min-height: 4.5rem;
	font-size: 1.5rem;
}

/* On its side the order code's column, 480 wide, holds the title (at 32/40), the field, Pick up and the hint, with the
   keypad beside them, 56 apart (drawn: `IEntry`). */
.sd-counter[data-frame='side'] .sd-counter-panel-entry > .sd-counter-col {
	max-width: none;
}

.sd-counter[data-frame='side'] .sd-counter-entry-row {
	justify-content: center;
	gap: calc(var(--space-12) + var(--space-2));
}

.sd-counter[data-frame='side'] .sd-counter-entry-words {
	flex: 0 1 30rem;
}

.sd-counter[data-frame='side'] .sd-counter-panel-entry .sd-counter-title {
	font-size: 2rem;
	line-height: 2.5rem;
}

.sd-counter-entry-row {
	display: flex;
	align-items: center;
	gap: calc(var(--space-8) + var(--space-2));
	width: 100%;
}

.sd-counter-entry-words {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: var(--space-5);
	min-width: 0;
}

/* The join code 176 upright and 240 on its side, in a 380 panel there (drawn: `IJoin`); its skeleton on waking the
   code's size at each frame (a POS monitor's 280). */
.sd-counter:not([data-frame='pos']) .sd-counter-join-qr svg {
	width: 11rem;
}

.sd-counter[data-frame='side'] .sd-counter-join-qr svg {
	width: 15rem;
}

.sd-counter[data-frame='side'] .sd-counter-panel-join {
	flex: 0 0 23.75rem;
}

.sd-counter-panel-join .sd-counter-skel-scan {
	width: calc(17.5rem + 2 * var(--qr-frame-width));
	height: calc(17.5rem + 2 * var(--qr-frame-width));
}

.sd-counter[data-frame='upright'] .sd-counter-panel-join .sd-counter-skel-scan {
	width: calc(11rem + 2 * var(--qr-frame-width));
	height: calc(11rem + 2 * var(--qr-frame-width));
}

.sd-counter[data-frame='side'] .sd-counter-panel-join .sd-counter-skel-scan {
	width: calc(15rem + 2 * var(--qr-frame-width));
	height: calc(15rem + 2 * var(--qr-frame-width));
}

/* Pairing: "Works best standing upright." under Pair this device, with the tablet glyph (drawn: `UPRIGHT`). On its side
   the scan panel is 440, headed "Or scan this with your phone" at 22/28 over a 260 code (drawn: `IScanSide`). */
.sd-counter-upright {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-counter[data-frame='side'] .sd-counter-panel-scan {
	flex: 0 0 27.5rem;
}

.sd-counter[data-frame='side'] .sd-counter-pair-qr svg {
	width: 16.25rem;
}

.sd-counter[data-frame='side'] .sd-counter-panel-scan .sd-counter-or-words {
	font-size: 1.375rem;
	line-height: 1.75rem;
}

/* On its side with iPadOS's keyboard up over the code (drawn: `KB_SIDE`): the Pair panel alone at the top, 760 wide,
   the title at 28/36, and the field and Pair this device in one row, the button the field's height beside it. */
.sd-counter-main:has(> .sd-counter-panel-keyboard) {
	flex-direction: column;
}

.sd-counter-panel-keyboard {
	flex: none;
}

.sd-counter-panel-keyboard > .sd-counter-col {
	max-width: 47.5rem;
}

.sd-counter-panel-keyboard .sd-counter-title {
	font-size: 1.75rem;
	line-height: 2.25rem;
}

.sd-counter-pair-row {
	flex-direction: row;
	align-items: flex-start;
}

.sd-counter-pair-row .ant-form-item {
	flex: 1;
	min-width: 0;
}

.sd-counter-col .sd-counter-pair-row .sd-counter-big-button.ant-btn.ant-btn-lg {
	flex: none;
	width: auto;
	min-height: 4.75rem;
	margin-top: var(--space-8);
	padding-inline: var(--space-8);
}

/* The pickup code on its side: 400 beside its words, the order code over them at 28 (drawn: `ICodeSide`). */
.sd-counter[data-frame='side'] .sd-counter-code-beside .sd-counter-pickup-qr svg {
	width: 25rem;
}

.sd-counter[data-frame='side'] .sd-counter-code-words .sd-counter-order-code-lg {
	font-size: 1.75rem;
	line-height: 2.25rem;
}

/* Get the bags (drawn: `IBags`): upright one column, 680 at most; on its side the steps in a 520 panel and the tiles
   beside them. The tiles sit in the middle of their space while they fit, and give way first, scrolling, when they do
   not, so nothing else on the step moves. */
.sd-counter[data-frame='upright'] .sd-counter-panel-bags > .sd-counter-col {
	max-width: 42.5rem;
}

.sd-counter[data-frame='side'] .sd-counter-panel-bag-steps {
	flex: 0 0 32.5rem;
}

.sd-counter:not([data-frame='pos']) .sd-counter-panel-bags > .sd-counter-col {
	justify-content: safe center;
}

.sd-counter:not([data-frame='pos']) .sd-counter-spots-wrap,
.sd-counter:not([data-frame='pos']) .sd-counter-spots {
	flex: 0 1 auto;
	min-height: 0;
}

/* Take an item out on its side (drawn: `ITake`): the items two across, and the next steps in a 380 panel beside them. */
.sd-counter-take-items {
	width: 100%;
}

.sd-counter[data-frame='side'] .sd-counter-take-items .sd-radio-cards-group.ant-radio-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sd-counter[data-frame='side'] .sd-counter-panel-take-next {
	flex: 0 0 23.75rem;
}

/* The team PIN on its side: the keypad in a 500 panel beside the steps (drawn: `IPinSide2`). */
.sd-counter[data-frame='side'] .sd-counter-panel-keys {
	flex: 0 0 31.25rem;
}

/* Who's handing it over on its side: five across, 960 at most (drawn: `WhoPanel(5, { wide })`). */
.sd-counter[data-frame='side'] .sd-counter-col-wide:has(> .sd-counter-who) {
	max-width: 60rem;
}

/* A true override of Ant Design's Tag, which never wraps (white-space: nowrap, a fixed height). Tags can be
   long ("Paused until staff resume", "Not offered · The store’s supplier off"), and at 200% text they must wrap inside
   their column rather than push the page sideways (StaffCatalogueLargeText: "Tags wrap inside the column"; StaffRoles
   draws `.sd-tag` the same). */
.sd-kind-tag.ant-tag {
	white-space: normal;
	height: auto;
	max-width: 100%;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A QR code (design system: QRCodes). The picture is an inline <svg> with its colours drawn into it: fixed, so the
   code stays pine on paper in dark mode too (a themed code would not scan). */

.sd-qr {
	display: inline-block;
	line-height: 0;
	/* The frame: thick, pine, with the cards' radius, drawn outside the code: `size` is the code
	   alone, the frame is added round it, and the paper's corners are clipped to the frame's inner curve. The pine is
	   the modules' own, the same in both themes. Print draws a border as it does on screen. */
	overflow: hidden;
	border: var(--qr-frame-width) solid var(--brand-pine);
	border-radius: var(--radius-lg);
}

/* In one colour the frame is the mono ink, as everything else is. */
.sd-qr-mono {
	border-color: var(--print-ink);
}

.sd-qr svg {
	display: block;
}

/* The refresh (design system: QRRefresh): a new code replaces the old in about 1.2 s. The goods
   rattle (the rattle mark's move, from brand.css), the old modules shrink and fade from the centre outward, then the new
   ones grow in from the centre with an overshoot while the goods hop once. The corner squares, the alignment pattern,
   the shelf and the paper field stay still. Each module carries the ring of its distance from the centre (drawing.ts
   `ringOf`), and its delay is worked out here from that ring: no inline style, so the enforced CSP admits it. The values
   are the design system's `QR_T`: out from 100 ms, 8 ms a module out, 220 ms each; in from 450 ms, 14 ms a module out,
   320 ms each; the goods' rattle at 0, 60, 90 and 150 ms and their hop 380 ms after. */
.sd-qr-anim rect,
.sd-qr-anim .sd-qr-good {
	transform-box: fill-box;
}

.sd-qrm-out {
	transform-origin: center;
	animation: sd-qr-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
	animation-delay: calc(100ms + var(--sd-qr-ring, 0) * 8ms);
}

.sd-qrm-in {
	transform-origin: center;
	animation: sd-qr-in 320ms cubic-bezier(0.3, 1.4, 0.6, 1) both;
	animation-delay: calc(450ms + var(--sd-qr-ring, 0) * 14ms);
}

.sd-qr-anim .sd-qr-good {
	transform-origin: center bottom;
	animation-name: sd-mk-rattle, sd-qr-hop;
	animation-duration: 300ms, 420ms;
	animation-timing-function: cubic-bezier(0.2, 0, 0, 1), cubic-bezier(0.2, 0, 0, 1);
	animation-fill-mode: both, both;
	animation-delay: 0ms, 380ms;
}

.sd-qr-anim .sd-qr-good-jar {
	animation-delay: 60ms, 440ms;
}

.sd-qr-anim .sd-qr-good-lid {
	animation-delay: 90ms, 470ms;
}

.sd-qr-anim .sd-qr-good-tin {
	animation-delay: 150ms, 530ms;
}

@keyframes sd-qr-out {
	to { transform: scale(0.2); opacity: 0; }
}

@keyframes sd-qr-in {
	from { transform: scale(0); opacity: 0; }
}

/* The hop's lift is in the mark's own 24-unit grid (the goods are drawn scaled into the code), not screen pixels. */
@keyframes sd-qr-hop {
	0%, 100% { transform: none; }
	35% { transform: translateY(-1.6px); }
}

.sd-qr-ring-0 { --sd-qr-ring: 0; }
.sd-qr-ring-1 { --sd-qr-ring: 1; }
.sd-qr-ring-2 { --sd-qr-ring: 2; }
.sd-qr-ring-3 { --sd-qr-ring: 3; }
.sd-qr-ring-4 { --sd-qr-ring: 4; }
.sd-qr-ring-5 { --sd-qr-ring: 5; }
.sd-qr-ring-6 { --sd-qr-ring: 6; }
.sd-qr-ring-7 { --sd-qr-ring: 7; }
.sd-qr-ring-8 { --sd-qr-ring: 8; }
.sd-qr-ring-9 { --sd-qr-ring: 9; }
.sd-qr-ring-10 { --sd-qr-ring: 10; }
.sd-qr-ring-11 { --sd-qr-ring: 11; }
.sd-qr-ring-12 { --sd-qr-ring: 12; }
.sd-qr-ring-13 { --sd-qr-ring: 13; }
.sd-qr-ring-14 { --sd-qr-ring: 14; }
.sd-qr-ring-15 { --sd-qr-ring: 15; }
.sd-qr-ring-16 { --sd-qr-ring: 16; }
.sd-qr-ring-17 { --sd-qr-ring: 17; }
.sd-qr-ring-18 { --sd-qr-ring: 18; }
.sd-qr-ring-19 { --sd-qr-ring: 19; }
.sd-qr-ring-20 { --sd-qr-ring: 20; }
.sd-qr-ring-21 { --sd-qr-ring: 21; }
.sd-qr-ring-22 { --sd-qr-ring: 22; }
.sd-qr-ring-23 { --sd-qr-ring: 23; }
.sd-qr-ring-24 { --sd-qr-ring: 24; }
.sd-qr-ring-25 { --sd-qr-ring: 25; }
.sd-qr-ring-26 { --sd-qr-ring: 26; }

/* Reduced motion: QRCode never starts the refresh then (it reads the setting at the swap); this keeps a code still if
   the setting changes while one plays. Last, so it wins at the same specificity. */
@media (prefers-reduced-motion: reduce) {
	.sd-qrm-out,
	.sd-qrm-in,
	.sd-qr-anim .sd-qr-good {
		animation: none;
	}

	.sd-qrm-out {
		opacity: 0;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/*
 * A key's answer to a touch (design: CounterDevice, Every key answers the touch; bundle.css `.sd-key`). As a finger
 * lands the fill turns pine-soft and the border pine at once (a primary button: pine-hover), and a pine bloom (on a
 * primary button, on-pine) spreads from the touch point (keyPress.ts sets --sd-key-x and --sd-key-y) across the key in
 * 150 ms, from 32% to 16%; it holds while the finger stays, and the fill fades back as it lifts (150 ms). Under reduced
 * motion, the fill alone, with no bloom and no fade.
 *
 * Ant Design's buttons paint their background and border from their own variables in every state (hover, active), at
 * a specificity this would otherwise lose to, and a tapped button keeps :hover on a touch screen: so on a button the
 * pressed look is set through those variables, for each state.
 */
.sd-key {
	position: relative;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
	/* A finger held on a key selects nothing and opens no callout, and the key answers at once (no double-tap zoom). */
	touch-action: manipulation;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	/* eslint-disable-next-line css/use-baseline -- Safari reads the prefixed line above; others this one */
	user-select: none;
	transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

/* The bloom: a 16px dot (no size token holds it), scaled by keyPress.ts to cover the key. */
.sd-key::after {
	content: '';
	position: absolute;
	top: var(--sd-key-y, 50%);
	left: var(--sd-key-x, 50%);
	width: 1rem;
	height: 1rem;
	margin: -0.5rem 0 0 -0.5rem;
	border-radius: 50%;
	background: var(--pine);
	opacity: 0;
	transform: scale(0);
	pointer-events: none;
}

.sd-key.sd-key-down {
	border-color: var(--pine);
	background: var(--pine-soft);
	transition: none;
}

.sd-key.sd-key-down::after {
	animation: sd-key-bloom 150ms cubic-bezier(0.2, 0, 0, 1) forwards;
}

.sd-key.sd-key-down.ant-btn {
	--ant-btn-bg-color: var(--pine-soft);
	--ant-btn-bg-color-hover: var(--pine-soft);
	--ant-btn-bg-color-active: var(--pine-soft);
	--ant-btn-border-color: var(--pine);
	--ant-btn-border-color-hover: var(--pine);
	--ant-btn-border-color-active: var(--pine);
}

/* A primary button: its fill darkens to pine-hover, and the bloom is on-pine. */
.sd-key.sd-key-down.ant-btn-variant-solid {
	--ant-btn-bg-color: var(--pine-hover);
	--ant-btn-bg-color-hover: var(--pine-hover);
	--ant-btn-bg-color-active: var(--pine-hover);
	--ant-btn-border-color: var(--pine-hover);
	--ant-btn-border-color-hover: var(--pine-hover);
	--ant-btn-border-color-active: var(--pine-hover);
}

.sd-key.ant-btn-variant-solid::after {
	background: var(--on-pine);
}

/* A text button has no border to colour: only its fill. */
.sd-key.sd-key-down.ant-btn-variant-text {
	--ant-btn-border-color: transparent;
	--ant-btn-border-color-hover: transparent;
	--ant-btn-border-color-active: transparent;
}

/* The key's content stays over the bloom. */
.sd-key > * {
	position: relative;
}

@keyframes sd-key-bloom {
	0% {
		opacity: 0.32;
		transform: scale(0);
	}

	100% {
		opacity: 0.16;
		transform: scale(var(--sd-key-scale, 22));
	}
}

@media (prefers-reduced-motion: reduce) {
	.sd-key,
	.sd-key.sd-key-down {
		transition: none;
	}

	.sd-key::after {
		display: none;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/*
 * The warning over a pickup in its last minute (docs/specs/counter-sleep.md, A pickup left untouched; design:
 * CounterDevice, Still there?): the
 * scrim over the whole counter, and a raised box in the middle with the title, the seconds left and Keep going, in the
 * counter's own large type (Counter.css's title and lead).
 */
.sd-counter-warning {
	position: fixed;
	inset: 0;
	/* Over the whole counter, its heading and foot included, as the going-to-sleep layer is (CounterSleep.css). */
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-6);
	background: var(--scrim);
	cursor: pointer;
	/* A finger moving on it pans or zooms nothing, so the browser does not cancel the touch and its click comes. */
	touch-action: none;
	animation: sd-counter-warning-in 200ms ease-out both;
}

.sd-counter-warning-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
	/* Override: 480px wide at most (as the pickup code beside its words), in rem so it follows the text size; no token
	   holds a dialog width on the counter. */
	max-width: 30rem;
	padding: var(--space-8);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
	box-shadow: var(--shadow-overlay);
	color: var(--ink);
	text-align: center;
}

.sd-counter-warning-box p {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

/* Override: the drawn sizes (CounterDevice, `StillThere`), the same on every frame: the title at 32/40 (the display
   token's size with the drawn 40 line), the seconds at 20/28 (title-2's size, the lead's 28 line), and Keep going the
   counter's own 64 high with 22 words, across the box (named with Ant Design's large block classes to outrank
   global.css's floor for them, as Counter.css's big button is). */
.sd-counter-warning-title {
	margin: 0;
	font-size: var(--type-display-size);
	line-height: 2.5rem;
	font-weight: 700;
}

.sd-counter-warning-body {
	font-size: var(--type-title-2-size);
	line-height: 1.75rem;
}

.sd-counter-warning-box .sd-counter-warning-button.ant-btn.ant-btn-lg {
	min-height: 4rem;
	font-size: 1.375rem;
}

@keyframes sd-counter-warning-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sd-counter-warning {
		animation: none;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The store's plate at rest (design: CounterSleep, option F, `FP_CSS`; docs/specs/counter-sleep.md, The breathing
   plate). Its measures are the drawing's, in rem (16px = 1rem at the default text size) so the plate keeps pace with
   the name under it; no token holds the plate's sizes (as StoreIdentity.css). */
.sd-resting {
	position: relative;
	display: grid;
	place-items: center;
}

/* The outline, always there: a 2px ink-muted border at 50% (no line-width token is 2px but the focus ring's, which
   this is not), 96px square with its border inside, as the full plate it frames is. */
.sd-resting-outline {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	width: 6rem;
	height: 6rem;
	border: 0.125rem solid var(--ink-muted);
	border-radius: var(--radius-lg);
	opacity: 0.5;
}

/* The initials as ghost text (theme/ghostText.css: a 1.5px ink-muted stroke with no fill), at 36px (drawn; no type
   token is 36px). */
.sd-resting-outline b {
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* With a logo, the outline frames its ghost: 16px by 20px around it, the ghost 48px tall. The ghost's own pixels are
   already the dark theme's ink-muted (stores/services/logo_ghost.py, GHOST_INK), so it takes no filter. A very wide
   logo is held to 176px across (StoreIdentity's hero logo cap; the drawing sets none), fitted inside its box, here and
   in the full layer alike, so the plate never grows past the screen and the two layers keep one size. */
.sd-resting-outline-logo {
	width: auto;
	height: auto;
	padding: var(--space-4) var(--space-5);
}

.sd-resting-outline-logo img,
.sd-resting-full .sd-store-plate-logo img {
	display: block;
	height: 3rem;
	width: auto;
	max-height: none;
	max-width: 11rem;
	object-fit: contain;
}

/* The full plate over the outline, fading in and back out: one 8-second breath (the drawing's `sdFill`). */
.sd-resting-full {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0;
	animation: sd-resting-breathe 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* StoreIdentity's plate at the resting size, the outline's: 96px, its initials at 36px (drawn). */
.sd-resting-full .sd-store-plate {
	width: 6rem;
	height: 6rem;
	border-radius: var(--radius-lg);
}

.sd-resting-full .sd-store-plate-mono {
	font-size: 2.25rem;
}

/* The logo on its plate with the outline's padding, 48px tall (drawn). */
.sd-resting-full .sd-store-plate-logo {
	width: auto;
	height: auto;
	padding: var(--space-4) var(--space-5);
}

@keyframes sd-resting-breathe {
	0%, 12% {
		opacity: 0;
	}

	50%, 62% {
		opacity: 0.9;
	}

	100% {
		opacity: 0;
	}
}

/* Reduced motion: no breath; the full layer stays out, so the outline holds. */
@media (prefers-reduced-motion: reduce) {
	.sd-resting-full {
		animation: none;
		opacity: 0;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/*
 * The counter asleep (design: CounterSleep, option F, `SL_CSS` and `PlateBody`; docs/specs/counter-sleep.md, How it
 * looks). It carries data-theme="dark", so its colours are the dark theme's whatever the counter's (tokens.css names
 * each theme on any element), on the dark surface, never pure black. Its sizes are the drawing's, in rem where no
 * token holds them, as Counter.css's counter overrides are.
 */
.sd-counter-sleep {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	color: var(--ink);
}

/* The whole screen is one button: no button look of its own, the content centred down the middle (drawn). */
.sd-sleep {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-8);
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.sd-sleep-id {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
	text-align: center;
}

/* The store's name at 32/38 bold (display), 8px further below the plate than the gap (drawn). It breathes with the
   plate (design: CounterSleep: "the name filling in to solid is the design"): its hollow
   outline is always there, ghost text at 50% as the plate's outline is (theme/ghostText.css, RestingPlate.css), and the
   solid name in ink fades in over it and back out on the plate's own 8-second breath, `sd-resting-breathe`
   (RestingPlate.css), so the two stay in step. The solid layer sits exactly over the outline (same text, same box), so
   the two wrap alike. No token holds an opacity. */
.sd-sleep-name {
	position: relative;
	margin-top: var(--space-2);
	font-size: var(--type-display-size);
	line-height: var(--type-display-line);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.sd-sleep-name-outline {
	display: block;
	opacity: 0.5;
}

.sd-sleep-name-full {
	position: absolute;
	inset: 0;
	opacity: 0;
	animation: sd-resting-breathe 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* The tap line in ink-muted, at 22/28 (drawn): its size is Counter.css's counter override, shared with the join title.
   It breathes on the plate's timing but never fades away: 50% at rest, full at the top of the breath (drawn: `sdTap`). */
.sd-sleep-tap {
	color: var(--ink-muted);
	animation: sd-sleep-line-breathe 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* The device's name, the closed line and Powered by breathe with the tap line, on its keyframes, length and easing, so
   nothing on the screen holds at a fixed brightness while the rest breathes. */
.sd-sleep-foot,
.sd-sleep-id .sd-counter-device,
.sd-sleep > .sd-sleep-closed {
	animation: sd-sleep-line-breathe 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes sd-sleep-line-breathe {
	0%, 12% {
		opacity: 0.5;
	}

	50%, 62% {
		opacity: 1;
	}

	100% {
		opacity: 0.5;
	}
}

/* The closed line: a caption at 18px (body-lg's size, drawn), drawn 16px closer to the tap line than the gap. */
.sd-sleep-closed {
	margin-top: calc(-1 * var(--space-4));
	font-size: var(--type-body-lg-size);
}

/* Powered by at the foot, 32px from the bottom, clear of the iPad mini's home indicator (drawn: Round 36,
   `.sd-ipad .sd-sleep-foot{bottom:32px}`). Its brightness is the breath's, below. */
.sd-sleep-foot {
	position: absolute;
	right: 0;
	bottom: var(--space-8);
	left: 0;
	display: flex;
	justify-content: center;
}

/* Sundries outline and Sundries glow (design: CounterSleep D `GhostLogoBody`, E `GlowLogoBody`): the Sundries mark
   (176px) over the wordmark (56px high), 24px apart, centred in the screen above a 112px foot band and 24px in from its
   other edges; their outline and glow are brand.css's (Mark and Wordmark `outline`, `animate='glow'`). */
.sd-sleep-logo {
	position: absolute;
	inset: var(--space-6) var(--space-6) 7rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-6);
}

/* The store's name and the tap line at the foot, 24px from the bottom and 8px apart (drawn: `sd-bounce-foot`). The foot
   breathes as one, on the tap line's breath: plain text at this size, never an outline, fading to 50% and back to full
   while the logo above breathes. */
.sd-sleep-logo-foot {
	position: absolute;
	right: 0;
	bottom: var(--space-6);
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	padding: 0 var(--space-6);
	text-align: center;
	animation: sd-sleep-line-breathe 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* The name at 22/28 bold in ink-muted (drawn), the counter's 22/28 override's size (Counter.css), no token holding it. */
.sd-sleep-logo-name {
	color: var(--ink-muted);
	font-size: 1.375rem;
	line-height: 1.75rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

/* The tap line at 18px (drawn), body-lg, in ink-muted. */
.sd-sleep-logo-tap {
	color: var(--ink-muted);
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
}

/* The closed line under the tap line (not drawn in these looks: written as F has it), at the foot's own gap. */
.sd-sleep-logo-foot .sd-sleep-closed {
	margin-top: 0;
}

/* Going to sleep (design: CounterSleep, the going-to-sleep strip): a layer of the dark surface over the waiting screen
   fades in over 600 ms (SLEEP_FADE_MS), then the sleep screen fades in over that again, 600 ms. Waking: the waiting
   screen fades back in over 200 ms (WAKE_FADE_MS). Each duration is also in constants.ts, which the timers count;
   CounterStylesheet.test.ts pins the two together. Under reduced motion none of them is set or plays (useCounterSleep
   cuts straight to sleep; the media block below stills the sleep screen's own fade). Under reduced motion the breaths
   stop too: the name holds as its outline, and the tap line and the lines breathing with it at full (drawn). */
.sd-counter-dimming {
	position: fixed;
	inset: 0;
	/* Over the whole waiting screen, the frame's panels and foot included. */
	z-index: 1;
	background: var(--surface);
	animation: sd-counter-fade-in 600ms ease-in both;
}

.sd-counter-sleep {
	animation: sd-counter-fade-in 600ms ease-out both;
}

.sd-counter-waking {
	animation: sd-counter-fade-in 200ms ease-out both;
}

@keyframes sd-counter-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sd-counter-dimming,
	.sd-counter-sleep,
	.sd-counter-waking {
		animation: none;
	}

	.sd-sleep-name-full {
		animation: none;
		opacity: 0;
	}

	.sd-sleep-tap,
	.sd-sleep-logo-foot,
	.sd-sleep-foot,
	.sd-sleep-id .sd-counter-device,
	.sd-sleep > .sd-sleep-closed {
		animation: none;
		opacity: 1;
	}
}

/* The heading's size is the shared title (theme/titles.css). The section around it spaces it, so it has no margin of
   its own. */
.section-heading-element {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

.sd-settings-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* A section as drawn: its head, then each block 12px apart. The section's gap spaces its children, so they carry no
   margins of their own. */
.sd-setsec {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-setsec-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* The line under a heading, and a section's muted lines (Your details' address line, a passkey's last-one line):
   caption size, ink-muted (design: Settings; the drawing's 15px for the heading's line is not a token). */
.sd-setsec-desc,
.sd-settings-muted {
	margin: 0;
}

/* A field's label in Settings, and Your details' Email term (a <dt>, not a field), are the drawn label type (design:
   Settings, `.sd-field-label`, 14/20 bold in ink, "(optional)" included): one rule, so they cannot drift apart. Scoped to Settings: the shared Field keeps Ant Design's
   16/24 regular label, which every other form in the app (sign-in, sign-up, the waitlist, the store enquiry, staff
   forms) uses. Out-ranks Ant Design's
   `.ant-form-item .ant-form-item-label > label` (font-size, colour). */
.sd-setsec .ant-form-item.sd-field .ant-form-item-label > label,
.sd-details-email dt {
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
	color: var(--ink);
}

/* The label's row is the label's own line (20px at the default size), not Ant Design's 24px line box, so a label row is
   20px plus Ant Design's 8px label gap, 28px: the drawn `.sd-field` gap, --space-2. "(optional)", an Ant Design Typography inside it, takes the label's size and line rather
   than its own. */
.sd-setsec .ant-form-item.sd-field .ant-form-item-label {
	line-height: var(--type-label-line);
}

.sd-setsec .ant-form-item.sd-field .ant-form-item-label > label .ant-typography {
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* Fields and choices no wider than 480px at the default text size (design: Settings, Your details and Appearance). */
.sd-settings-narrow {
	max-width: 30rem;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Settings · Counter PIN (design: CounterDevices): the two masked fields, PIN set with its day, the photo row
   and the crop, 16px apart and no wider than 560px at the default text size. */
.sd-counter-pin-form,
.sd-counter-pin-set,
.sd-counter-photo {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	max-width: 35rem;
}

/* The PIN as drawn: mono, its dots spaced, a box no wider than four digits want (160px at the default text size). */
.sd-counter-pin-input {
	max-width: 10rem;
	font-family: var(--font-mono);
	letter-spacing: 0.4em;
}

.sd-counter-pin-actions,
.sd-counter-pin-tagline,
.sd-counter-photo-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.sd-counter-photo-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4);
}

.sd-counter-photo .sd-title-3 {
	margin: 0;
}

/* The photo, or the initials in its place: a 96px circle at the default text size. */
.sd-counter-photo-face {
	flex: none;
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	object-fit: cover;
}

.sd-counter-photo-initials {
	display: grid;
	place-items: center;
	background: var(--surface-sunken);
	color: var(--ink);
	font-size: var(--type-title-1-size);
	font-weight: 700;
}

/* The crop (PhotoCrop): the photo on the viewer's dark ground, the square marked out over it with the rest dimmed. A
   square of up to 360px at the default text size, centred. */
.sd-crop {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-crop-frame {
	position: relative;
	align-self: center;
	width: 100%;
	max-width: 22.5rem;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--viewer);
	touch-action: none;
	cursor: grab;
}

.sd-crop-frame:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* The square is 80% of the frame: the photo's size and place are in the square's sides (crop.ts), set from script as
   custom properties, never inline. */
.sd-crop-photo {
	position: absolute;
	top: calc(50% + var(--sd-crop-y, 0) * 80%);
	left: calc(50% + var(--sd-crop-x, 0) * 80%);
	width: calc(var(--sd-crop-width, 1) * 80%);
	max-width: none;
	height: calc(var(--sd-crop-height, 1) * 80%);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.sd-crop-square {
	position: absolute;
	inset: 10%;
	border: var(--sd-line-width-focus) solid var(--on-viewer);
	box-shadow: 0 0 0 100vmax var(--scrim);
	pointer-events: none;
}

.sd-crop-zoom-label {
	font-weight: 700;
}

.sd-crop-help {
	margin: 0;
}

.sd-crop-buttons-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--space-2);
}

.sd-crop-buttons {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The dialog's line and its two ways, 12px apart (design: AuthPasskey, Confirm it's you). */
.sd-confirm-its-you {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-confirm-its-you-line {
	margin: 0;
}

/* Owners and staff: the one line in place of the emailed link, caption and ink-muted. */
.sd-confirm-its-you-note {
	margin: 0;
}

/* In the section, after the emailed link: its lines close together. */
.sd-confirm-link {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The rows' card: raised, a hairline edge, the large radius, no list marks (design: Settings, `.sd-setlist`). */
.sd-setlist {
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--surface-raised);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* A row, 64px at the default text size; the actions wrap under the words when they do not fit beside them (a narrow
   screen, 200% text; WCAG 1.4.4 and 1.4.10). */
.sd-setrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	min-height: 4rem;
	padding: var(--space-3) var(--space-4);
}

.sd-setrow + .sd-setrow {
	border-top: var(--sd-line-width) solid var(--line);
}

/* The icon's tile: 40px at the default text size. */
.sd-setrow-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
	color: var(--ink-muted);
}

/* Something drawn in the tile's place instead of an icon (SettingsRow `visual`): the tile's 40px, with no tile. The mark
   there is 32px at the default text size (SettingsStates, Your data · preparing), in rem so it follows the text size;
   Mark's width and height attributes are only the fallback. */
.sd-setrow-visual {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
}

.sd-setrow-visual .sd-mark {
	display: block;
	width: 2rem;
	height: 2rem;
}

/* The words take the room left, with a basis in rem so it grows with the text; a long address breaks rather than
   pushing the page wider. Title and line are --space-1 apart (the drawing's 2px, on the scale). */
.sd-setrow-main {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	flex: 1 1 12.5rem;
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-setrow-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* The actions keep their width beside the words, but may shrink to the row once they have wrapped under them, so a
   long button label wraps (global.css, `.sd-wrap-buttons`) instead of pushing the row wider than the screen. When even
   then they do not fit side by side (Rename and Remove at 200% text on a phone), they stack rather than run under the
   list's clipped edge (`.sd-setlist` hides its overflow). */
.sd-setrow-acts {
	display: flex;
	flex-wrap: wrap;
	flex: 0 1 auto;
	max-width: 100%;
	align-items: center;
	gap: var(--space-1);
	margin-inline-start: auto;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The change dialog's form: its field, the line about the link and the step-up's emailed link, 12px apart (design:
   Settings, "Change your email"). */
.sd-email-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

/* The muted line under the field sits on the form's gap, not a paragraph margin of its own (design: Muted). */
.sd-email-form-note.sd-caption {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The design system's `sd-switch`: the track, then the word, at least the touch height; a button with nothing of a
   button's own look, so the global focus ring (theme/global.css) is its only frame. */
.sd-switch {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: var(--touch-min);
	padding: 0 var(--space-1);
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	border-radius: var(--radius-md);
	cursor: pointer;
}

/* The track, 44 by 26 at the default text size, and its knob, 20 across and 3 in from the edge; in rem so they grow
   with the text. Off: line-strong with a raised knob. On: pine with an on-pine knob, at the far end. */
.sd-switch-track {
	position: relative;
	flex: none;
	width: 2.75rem;
	height: 1.625rem;
	border-radius: var(--radius-pill);
	background: var(--line-strong);
}

.sd-switch-track::after {
	content: '';
	position: absolute;
	inset-block-start: 0.1875rem;
	inset-inline-start: 0.1875rem;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--surface-raised);
}

.sd-switch[aria-checked='true'] .sd-switch-track {
	background: var(--pine);
}

.sd-switch[aria-checked='true'] .sd-switch-track::after {
	inset-inline-start: 1.3125rem;
	background: var(--on-pine);
}

/* The word in bold, wide enough for "Off" so the switch does not shift as it flips. */
.sd-switch-word {
	min-width: 1.75rem;
	font-weight: 700;
	text-align: start;
}

/* Not pressable (a role that may only see it): drawn at full contrast so the state stays readable; the pointer says it cannot be pressed. */
.sd-switch:disabled {
	cursor: not-allowed;
}

/* Saving a change: the pointer says it waits. */
.sd-switch[aria-busy='true'] {
	cursor: progress;
}

/* A whole row that is one switch (design: FilterDrawer, `FRow`): the row's glyph and name at its start, in bold, the
   track at its end, full width and 48px tall at the default text size (the drawing's; in rem so it grows with the
   text, no token holds it), no side padding of its own. */
.sd-switch.sd-switch-row {
	width: 100%;
	justify-content: space-between;
	min-height: 3rem;
	padding: 0;
	text-align: start;
}

.sd-switch-lead {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
	min-width: 0;
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A list with its head: the h3, the rows, and under News and offers the block the law asks for (design: SettingsEmails,
   12px apart). */
.sd-emails-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

/* The block the law asks for: caption lines (.sd-caption) 4px apart, inset to the rows' edge (design: LegalBlock). */
.sd-emails-legal {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding-inline: var(--space-4);
}

.sd-emails-legal a {
	color: inherit;
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Settings · Orders (design: Settings): the question, its two cards, the saved banner and the line
   under them, 8px apart and no wider than 560px at the default text size. */
.sd-orders-choice {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	max-width: 35rem;
}

.sd-orders-either {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The add dialog: Stripe's field, then the consent's one tick, 12px apart. */
.sd-cards-add-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

/* Stripe's card field under its label (design: Settings, "Card details"): the drawn label type. */
.sd-cards-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-cards-field-label {
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
	color: var(--ink);
}

/* The remove dialog's body: the sentence, then (when open orders use the card) the cards to move them to. */
.sd-cards-remove-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-cards-remove-body p {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The side column's width, the Sidebar's and the owner's setup rail's alike (pages/YourStore/Setup/Setup.css), so the
   two cannot drift: 240px at the default text size (design: Sidebar; no token holds it). On :root, since a Sidebar is
   drawn in a drawer and in Settings too, outside any portal shell. */
:root {
	--sd-side-column-width: 15rem;
}

.sd-sidebar {
	box-sizing: border-box;
	width: var(--sd-side-column-width);
	max-width: 100%;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	background: var(--surface-raised);
	color: var(--ink);
}

.sd-sidebar-header {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-4) var(--space-3);
}

.sd-sidebar-nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
}

.sd-sidebar-list {
	margin: 0;
	/* The top and bottom 4px keep the first and last rows' focus ring (offset 2px + 2px) inside the scrolling nav. */
	padding: var(--space-1) var(--space-2);
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* Rows are touch targets, icon then label. */
.sd-sidebar-link {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	/* border-box: min-height counts the padding, so a row is the 44px touch minimum, not 52px. */
	box-sizing: border-box;
	min-height: var(--touch-min);
	padding: var(--space-1) var(--space-3);
	border-radius: var(--radius-md);
	color: var(--ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.sd-sidebar-link:hover {
	background: var(--surface-sunken);
	color: var(--ink);
}

.sd-sidebar-link[aria-current='page'] {
	background: var(--pine-soft);
	font-weight: 700;
}

.sd-sidebar-icon {
	flex: none;
	color: var(--ink-muted);
}

.sd-sidebar-foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-2);
	border-top: var(--sd-line-width) solid var(--line);
}

/* The compact theme choice fills its track in equal thirds (design: Sidebar), not three icons at the start. */
.sd-sidebar-foot .sd-theme-choice-compact .sd-theme-choice-option {
	flex: 1 1 0;
}

.sd-sidebar-powered {
	display: flex;
	justify-content: center;
}

/* A queue's count (design: Sidebar `count`): mono, at the row's end. */
.sd-sidebar-count {
	margin-inline-start: auto;
	font-family: var(--font-mono);
	font-weight: 600;
	color: var(--ink-muted);
}

/* 240px at the default text size, as the portal sidebar (design: Settings, `.sd-setnav`); its rows reach its edges. */
.sd-settings-nav {
	flex: none;
	width: 15rem;
}

.sd-settings-nav .sd-sidebar-list {
	padding: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The fields, the email and Save details, 16px apart (design: Settings, Your details). */
.sd-details-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* The email row: its label in bold above the address and the way to the Email section, which wrap when narrow. */
.sd-details-email {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin: 0;
}

.sd-details-email dd {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	overflow-wrap: anywhere;
}

.sd-details-email-link {
	color: var(--pine);
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Settings is a standard page (design: Settings, PageWidths; theme/page.css), which sets its sides. A phone: the title
   and every section in one column, 32px apart, inside the page gutter (design: Settings). Both layouts are one tree
   (AccountSettings.tsx), so the column is the same .sd-settings-content the desktop draws, here with no side list beside
   it. */
.sd-settings-page {
	display: flex;
	flex-direction: column;
	gap: var(--space-8);
	padding-block: var(--space-5) var(--space-8);
}

/* Desktop: the title, then the side list and one section 48px apart, the section list in the first column (design:
   Settings: "Standard, its section list in the first column, centred in the window"). */
.sd-settings-desk {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	padding-block: var(--space-8);
}

.sd-settings-columns {
	display: flex;
	align-items: flex-start;
	gap: var(--space-12);
}

/* The section takes the rest of the page (PageWidths: inside a page, sections fill its width; text and fields keep
   their own measures). */
.sd-settings-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--space-8);
	min-width: 0;
}

/* The page's h1: its size is title-1 (theme/titles.css); the page's gap spaces it, so no margin of its own.
   Element-qualified: Ant Design spaces `h1.ant-typography` itself. */
h1.ant-typography.sd-settings-title {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* One raised card per store, the whole card the link, its chevron at the end (design: YourStores, U9): the owner's
   store chooser and the signed-in home. One column; the home's is two across on desktop. */
.sd-store-choices {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-store-choice {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: var(--touch-min);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--ink);
}

.sd-store-choice:hover {
	border-color: var(--line-strong);
}

.sd-store-choice-identity {
	flex: 1;
	min-width: 0;
}

.sd-store-choice-chevron {
	display: inline-flex;
	flex: none;
	color: var(--ink-muted);
}

/* The drawn 20px chevron (design: YourStores). There is no icon-size token: in rem, as StateMessage sizes its icon, so
   it follows the text size. */
.sd-store-choice-chevron svg {
	width: 1.25rem;
	height: 1.25rem;
}

@media (min-width: 64em) {
	.sd-store-choices-two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-4);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The signed-in home (design: YourStores; PageWidths): a wide page centred in the window as the footer is
   (theme/page.css), its content left-aligned inside it; the heading over the stores. */
.sd-home {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding-block: var(--space-6);
}

.sd-home h1 {
	margin: 0;
}

/* The drawing's 880px cap on the two columns of stores: no token (design: YourStores), in rem so it follows the text
   size. */
.sd-home .sd-store-choices {
	max-width: 55rem;
}

/* With no stores, the drawing's 560px column for the message: no token (design: YourStores), in rem as above. It is
   the only thing on the page, so it is centred in it, as a message filling an otherwise empty area is (design system:
   centred states). */
.sd-home-empty {
	width: 100%;
	max-width: 35rem;
	margin-inline: auto;
}

/* Without the side gutter (below 64em) the empty home's padding is the message's own (StateMessage), not the page's as
   well. */
@media (max-width: 63.9375em) {
	.sd-home-without-stores {
		--sd-page-gutter: 0rem;

		padding-block: 0;
	}
}

@media (min-width: 64em) {
	.sd-home {
		padding-block: var(--space-8);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The order page's head (design: OrderPlaced): left-aligned, across the top. Coming back later, the code as a caption
   over the h1 and the badge 8px under; just placed, the mark, the h1, the line and its caption, and the badge, 12px apart
   (the badge 4px more). 16px more room above and below it than drawn, at every width: 32px from
   the top of the page, and 40px (phone) or 48px (desktop) to what follows. */
.sd-order-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	padding-block: var(--space-4);
}

.sd-order-head h1,
.sd-order-head p {
	margin: 0;
}

.sd-order-head h1:focus {
	outline: none;
}

.sd-order-head-placed {
	gap: var(--space-3);
}

.sd-order-head-lines {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* "Order HG-1001 · Ready Thu Nov 5 after 3 pm", 18px as drawn, the code in mono at the line's size. */
.sd-order-head-line {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-title-3-line);
}

.sd-order-head-badge {
	padding-top: var(--space-1);
}

.sd-order {
	gap: var(--space-6);
}

/* One column below 64em, in the drawn phone order (OrderPage puts the parts in it): the timeline, Your items, the
   estimate and its buttons, the Pickup and Refunds lines, 24px apart. */
.sd-order-layout {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.sd-order-items {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
}

.sd-order-items h2 {
	margin: 0;
}

/* A line no longer on the order, or every line of a cancelled one: struck, as drawn. */
.sd-order-line-struck .sd-prow-name {
	text-decoration: line-through;
	color: var(--ink-muted);
}

/* Its words under the struck name: a caption in ink, as drawn (OrderStatus' struck item). */
.sd-order-struck-note {
	color: var(--ink);
}

/* A cancelled order's cart line over Shop at the store (design: OrderStatus, U10). */
.sd-order-again {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-order-again p {
	margin: 0;
}

.sd-order-rose {
	color: var(--estimate);
}

.sd-order-was,
.sd-order-money,
.sd-order-head-code {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}

.sd-order-summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* Change order and Cancel order side by side, 8px apart, at the drawn size (design: OrderPlaced), on the phone and in
   the 340px card alike. When they cannot fit (200% text), Cancel wraps under Change, on the same left edge. */
.sd-order-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* A closed order with a card to fix: Update your card and Change order
   as the two halves of one row, then Call under them across the card. Override: the halves' side padding is 8px, not
   the button's own, so both labels fit the drawn 340px column on one line. */
.sd-order-actions-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
}

.sd-order-actions-pair > .ant-btn {
	padding-inline: var(--space-2);
}

.sd-order-actions-pair > .sd-order-call {
	grid-column: 1 / -1;
}

/* After the close, Change order is drawn locked (design: OrderStatus): the lock before it, its words and edge
   muted, and the not-allowed cursor. Override: it is `aria-disabled`, not `disabled`, so it stays in the tab order and
   is described by the lock line; Ant Design's disabled look is not applied to it, so it is named here. */
.ant-btn.sd-order-change-locked,
.ant-btn.sd-order-change-locked:hover,
.ant-btn.sd-order-change-locked:active {
	border-color: var(--line);
	background: transparent;
	color: var(--ink-muted);
	cursor: not-allowed;
}

/* After the close (design: OrderStatus): a sunken card, the lock, the first sentence bold. */
.sd-order-locked {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
}

.sd-order-locked svg {
	flex: none;
	margin-top: var(--space-1);
	color: var(--ink-muted);
}

/* In the desktop's card it is a plain line over the buttons, as drawn: no sunken panel of its own, at the caption size. */
.sd-order-summary .sd-order-locked {
	padding: 0;
	background: transparent;
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
}

.sd-order-timeline {
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

/* The notices (design: OrderStatus): a card each, its glyph, the bold sentence, then what can be done and
   its actions; a rise on estimate-soft, an item that came off on short-soft. */
.sd-order-notices {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-order-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
}

.sd-order-notice-estimate {
	background: var(--estimate-soft);
}

.sd-order-notice-estimate .sd-order-notice-icon {
	color: var(--estimate);
}

/* The store's change after the close (design: StoreOrderEdit's shopper frame): the sub status's fill and glyph, and
   its list of what changed. */
.sd-order-store-change-lines {
	margin: 0;
	padding-left: var(--space-5);
}

.sd-order-store-added {
	color: var(--estimate);
	font-weight: 700;
}

.sd-order-notice-sub {
	background: var(--sub-soft);
}

.sd-order-notice-sub .sd-order-notice-icon {
	color: var(--sub);
}

.sd-order-notice-short {
	background: var(--short-soft);
}

.sd-order-notice-short .sd-order-notice-icon {
	color: var(--short);
}

.sd-order-notice-icon {
	flex: none;
	margin-top: var(--space-1);
}

.sd-order-notice-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
}

.sd-order-notice-body p {
	margin: 0;
}

.sd-order-notice-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.sd-order-rises {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--space-1) var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-order-rises li {
	display: contents;
}

/* Change order: the consent asked again, and a refusal where Save is. */
.sd-order-consent {
	padding-top: var(--space-3);
	border-top: var(--sd-line-width) solid var(--line);
}

/* The later pickup's first sentence takes focus only from script (tabIndex -1: Save changes, which had it, went when
   the question opened), never by Tab, so it draws no ring of its own. */
.sd-order-consent > p[tabindex='-1']:focus {
	outline: none;
}

.sd-order-problem {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
	color: var(--danger);
	font-weight: 700;
}

/* Adding mode's banner, at the top of the store's catalogue pages: its words, the first sentence bold, then Back to your
   order (design: ChangeOrder). */
.sd-order-adding {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	background: var(--pine-soft);
}

.sd-order-adding-words {
	margin: 0;
}

/* From 64em the notices sit two across, each its own height's card (design: OrderStatus); one alone takes the
   width. */
@media (min-width: 64em) {
	.sd-order-notices {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}

	.sd-order-notice:only-child {
		grid-column: 1 / -1;
	}
}

/* From 64em (ONE_COLUMN_QUERY, where OrderPage puts the parts in the desktop's order), two columns under the head: the
   timeline, Your items and the policy lines on the left; on the right the estimate with Change and Cancel in a card,
   standard's side column (design: OrderStatus: "the right column is 360"; theme/page.css), its top level with
   the timeline card's. The page is standard, so from 64em it always has the side column's room. It stays in sight as
   the page scrolls, 32px from the top. A cancelled order has no timeline or estimate and is one column. Its own grid,
   not `sd-page-cols`: its areas put the cards in the drawn places. */
@media (min-width: 64em) {
	.sd-order-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--page-side);
		grid-template-rows: auto auto 1fr;
		grid-template-areas:
			'timeline summary'
			'items summary'
			'policies summary';
		gap: var(--space-8) var(--space-6);
		align-items: start;
	}

	.sd-order {
		gap: var(--space-8);
	}

	/* The To pay card (design: TabPay) sits in the right column, level with the timeline's top, and the
	   estimate under it, level with Your items. */
	.sd-order-layout-pay {
		grid-template-areas:
			'timeline topay'
			'items summary'
			'policies summary';
	}

	.sd-order-topay {
		grid-area: topay;
	}

	.sd-order-topay:empty {
		display: none;
	}

	/* Cancelled (design: ChangeOrder): the struck items on the left, Shop at the store on the right. */
	.sd-order-layout-cancelled {
		grid-template-rows: auto;
		grid-template-areas: 'items summary';
	}

	.sd-order-again {
		grid-area: summary;
	}

	.sd-order-items {
		grid-area: items;
	}

	.sd-order-timeline {
		grid-area: timeline;
	}

	.sd-order-policies {
		grid-area: policies;
	}

	.sd-order-summary {
		grid-area: summary;
		position: sticky;
		top: var(--space-8);
		padding: var(--space-4);
		border: var(--sd-line-width) solid var(--line);
		border-radius: var(--radius-lg);
		background: var(--surface-raised);
	}
}

/* Your orders (design: OrderHistory): a row per order opening it, on a narrow page (theme/page.css). */
.sd-orders-head h1,
.sd-orders-head p {
	margin: 0;
}

.sd-orders-head h1:focus {
	outline: none;
}

.sd-order-rows {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
	list-style: none;
}

/* On a phone the rows run to the page's edge, a line above and below and none at the sides (design: OrderHistory,
   phone), so the day and the money have the window's width to share. */
@media (max-width: 47.9375em) {
	.sd-order-rows {
		margin-inline: calc(-1 * var(--sd-page-gutter));
		border-inline: none;
		border-radius: 0;
	}
}

.sd-order-rows[hidden] {
	display: none;
}

.sd-order-rows li + li {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-order-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: var(--touch-min);
	padding: var(--space-3) var(--space-4);
	color: var(--ink);
}

/* A row's words (design: OrderHistory): the day with the code at the far end of its line, then the status tag with the
   money at the far end of the line under it. Each part names its grid area, so the order of the lines is this one
   template. The day and the tag take the start column; the code and the money stay whole at the end. */
.sd-order-row-main {
	display: grid;
	flex: 1;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		'day code'
		'state money';
	align-items: center;
	gap: var(--space-1) var(--space-3);
	min-width: 0;
}

.sd-order-row-day {
	grid-area: day;
}

.sd-order-row-money {
	display: flex;
	grid-area: money;
	justify-self: end;
}

.sd-order-row-code {
	grid-area: code;
	justify-self: end;
	color: var(--ink-muted);
}

/* The tag at its own width at the start of its line, as drawn, never stretched across the row. */
.sd-order-row-state {
	display: flex;
	grid-area: state;
	justify-self: start;
	max-width: 100%;
}

/* The RunBadge a step smaller in a row than its drawn 32px pill, so the tag and the money share a phone's line: no
   minimum height, the spacing scale's tighter steps around the words, the words at the pill's own size. */
.sd-order-row-state .sd-run {
	gap: var(--space-1);
	min-height: 0;
	padding: var(--space-1) var(--space-2);
}

.sd-order-row-chevron {
	flex: none;
	color: var(--ink-muted);
}

.sd-orders-others svg {
	margin-left: var(--space-2);
}

.sd-orders-others-open {
	transform: rotate(180deg);
}

.sd-orders-others .sd-order-rows {
	margin-top: var(--space-2);
}

.sd-orders-foot {
	margin: 0;
	text-align: center;
}

/* A moved order after a declined card (design: OrderStatus, a moved order): a sunken card, the card glyph and when it is
   tried again, then Update your card under the words, in line with them. */
.sd-order-retry {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
}

.sd-order-retry p {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

.sd-order-retry p svg {
	flex: none;
	margin-top: var(--space-1);
}

.sd-order-retry > a,
.sd-order-retry > button {
	margin-inline-start: calc(var(--space-2) + var(--space-5));
}

/* The order once ready (docs/specs/orders-pickup.md, The order page; design: OrderStatus, ready): each part's decision
   card, its pine-soft Pick up by card, its items and its state line, 12px apart; the parts 24px apart. */
.sd-order-ready {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.sd-order-ready-part {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-order-ready-part h2,
.sd-order-ready-head {
	margin: 0;
}

/* Pick up by: on pine-soft with no edge, as the open-order card (design: OrderStatus). */
.sd-order-pickup-by {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	background: var(--pine-soft);
	color: var(--ink);
}

.sd-order-pickup-by p {
	margin: 0;
}

.sd-order-ready-line {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
}

.sd-order-ready-line svg {
	flex: none;
	margin-top: var(--space-1);
}

/* The named collector, under a hairline (design: OrderStatus). */
.sd-order-collector {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding-top: var(--space-2);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-order-collector-acts {
	display: flex;
	gap: var(--space-4);
}

.sd-collector-acts {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-order-badges {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* How pickup works (design: OrderStatus): a pine-soft paragraph under a ready part's items, set like the
   "Pick up by" card above them. */
.sd-order-how {
	margin: 0;
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	background: var(--pine-soft);
	color: var(--ink);
}

/* The Card row (design: OrderStatus, the card changeable until it’s charged): under a hairline at the foot of the
   estimate, "Card" with its glyph and Change on one line, the card in mono under it and the held amount. */
/* The hold lines above the Card row after the close (design: OrderStatus, After the close): the hold glyph, the line,
   and its amount at the end, above a rule. */
.sd-order-hold-rows {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin: 0;
	padding: var(--space-2) 0 0;
	list-style: none;
	font-size: var(--type-body-sm-size);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-order-hold-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-3);
}

.sd-order-hold-row-name {
	display: inline-flex;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-order-hold-row-amount {
	white-space: nowrap;
}

.sd-order-card-row {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding-top: var(--space-1);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-order-card-row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
}

.sd-order-card-row-name {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-weight: 700;
}

/* Override: the drawing pulls Change to the card's edge (its text button's own padding past the row's end). */
.ant-btn.sd-order-card-row-change {
	margin-inline-end: calc(-1 * var(--space-3));
}

.sd-order-card-row-card {
	white-space: nowrap;
}

/* Card for this order: the banner, the cards, the new card's field and consent and the hold line, 16px apart. */
.sd-card-change {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-card-change-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-card-change-acts {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* The store's phone number in a sentence keeps to one line ("613-555-0142", never "613-" over the rest). */
.sd-order-phone {
	white-space: nowrap;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The supply-run pill (design: RunBadge): harvest with on-harvest text, the only use of harvest and the pill radius.
   At least 32px tall (2rem, no token holds it). The drawing pads it 4px above and below, 10px before the icon and 14px
   after the words; the spacing scale's nearest steps are used (4, 8 and 12). */
.sd-run {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 2rem;
	max-width: 100%;
	padding: var(--space-1) var(--space-3) var(--space-1) var(--space-2);
	border-radius: var(--radius-pill);
	background: var(--harvest);
	color: var(--on-harvest);
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
}

.sd-run > span {
	min-width: 0;
}

/* Closed (design: RunBadge, closed): neutral, not harvest, which is for an order that can still change. No border: the
   sunken fill is the whole pill, as drawn. */
.sd-run-closed {
	background: var(--surface-sunken);
	color: var(--ink);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* What is owed (one payment): each item taken, then the tab, then the total, each row its words then its
   amount at the row's end, as Totals draws a line; the total a size up, as the To pay line was. */
.sd-pay-rows {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin: 0;
}

.sd-pay-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--space-2);
}

.sd-pay-row dt,
.sd-pay-row dd {
	margin: 0;
}

.sd-pay-total {
	padding-block-start: var(--space-1);
	border-block-start: var(--sd-line-width) solid var(--line);
	font-size: var(--type-body-lg-size);
	font-weight: 600;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* At the counter (pages/Pickup, Pay now; design: CustomerPickup): while the bank's own check is open, one
   status line under the amount with the lock glyph before it, in place of the card page's box. */
.sd-pay-bank-wait {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
}

/* Items taken behind an answer still to give (the pay link): listed under what is owed, not counted in it. */
.sd-pay-held {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-pay-held h2,
.sd-pay-held p {
	margin: 0;
}

/* The order page's To pay card (docs/specs/orders-pickup.md, The order page's decision card and To pay): TabPay's
   summary and card form under an h2, in the order page's column. */
.sd-order-pay {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-order-pay h2 {
	margin: 0;
}

/* "or" between the wallet button and the cards (design: CustomerPickup): the word centred on a rule each side,
   in the muted ink. */
.sd-or {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	color: var(--ink-muted);
}

.sd-or::before,
.sd-or::after {
	content: '';
	flex: 1;
	border-block-start: var(--sd-line-width) solid var(--line);
}

/* The order page's To pay card (design: TabPay): estimate-soft, one card for what is owed with its Pay and the
   note, not the raised card of the pay link's summary. */
.sd-order-pay {
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	background: var(--estimate-soft);
}

.sd-order-pay .sd-card-summary {
	padding: 0;
	border: 0;
	background: transparent;
}

/* The card is the order page's side column (360px), too narrow for the pay page's two columns from 64em (CardLink.css:
   the 340px summary beside the form): there the form's column would be a few pixels wide. In the card, the summary
   and the form stay one column at every width, the summary first. */
.sd-order-pay .sd-card-columns {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The order timeline (design: OrderTimeline): a column of steps joined by a line down the dots' middle. */
.sd-timeline {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-timeline-step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding-bottom: var(--space-4);
	color: var(--ink-muted);
}

/* The joining line: from under a dot to the next, half the dot's width in from the start edge. */
.sd-timeline-step:not(:last-child)::before {
	content: '';
	position: absolute;
	inset-block: var(--space-8) 0;
	inset-inline-start: calc(var(--space-4) - var(--sd-line-width) / 2);
	width: var(--sd-line-width);
	background: var(--line-strong);
}

.sd-timeline-dot {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--space-8);
	height: var(--space-8);
	border: var(--sd-line-width) solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: var(--surface-raised);
	color: var(--ink-muted);
}

.sd-timeline-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
	padding-block-start: var(--space-1);
}

.sd-timeline-label {
	font-size: var(--type-body-strong-size);
	line-height: var(--type-body-strong-line);
	font-weight: 700;
}

.sd-timeline-when,
.sd-timeline-detail {
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

.sd-timeline-done .sd-timeline-dot {
	border-color: var(--pine);
	background: var(--pine);
	color: var(--on-pine);
}

.sd-timeline-done {
	color: var(--ink);
}

/* The current step has a ring: a second border outside the dot's own. */
.sd-timeline-now {
	color: var(--ink);
}

.sd-timeline-now .sd-timeline-dot {
	border-color: var(--pine);
	color: var(--pine);
	box-shadow: 0 0 0 var(--space-1) var(--pine-soft);
}

/* A step that went wrong (design: OrderTimeline, `err`: Card declined): the danger dot, filled danger-soft, and glyph,
   with no current step's ring; its title in danger. */
.sd-timeline-danger .sd-timeline-dot {
	border-color: var(--danger);
	background: var(--danger-soft);
	color: var(--danger);
	box-shadow: none;
}

.sd-timeline-danger .sd-timeline-label {
	color: var(--danger);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The customer's phone at the counter (design: CustomerPickup). The frame is the card pages' column (CardLink.css,
   `sd-card-page`); these are its own pieces. */
.sd-pickup p,
.sd-pickup h1 {
	margin: 0;
}

/* An icon before its words, level with the first line: the bank's check on Take it, and the decision's count. */
.sd-pickup-line,
.sd-pickup-decide-count {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}

/* The items (`Items`): the quantity in a narrow column, the item and its caption line, then the state's tag; a hairline
   between rows. */
.sd-pickup-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-pickup-item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding-block: var(--space-3);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-pickup-item-qty {
	flex: none;
	min-width: var(--space-6);
}

.sd-pickup-item-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

/* Both parts together: each part's pickup day over its items (design: CustomerPickup, `PartHead`). */
.sd-pickup-part-day {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--space-2);
	margin-block-start: var(--space-2);
	padding-block-end: var(--space-2);
}

/* Show more starts the line, as the drawing's text button does. */
.sd-pickup-more {
	align-self: flex-start;
}

.sd-pickup-item-out {
	color: var(--ink-muted);
	text-decoration: line-through;
}

/* The item to decide (`Decide`): an estimate-soft card with the estimate border, its count in the estimate colour, and
   the two answers two across, stacking when the text is large. */
.sd-pickup-decide {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--estimate);
	border-radius: var(--radius-lg);
	background: var(--estimate-soft);
}

.sd-pickup-decide-count {
	color: var(--estimate);
}

.sd-pickup-decide-why {
	color: var(--ink);
}

/* An answered swap (`SwapCard`, design: CustomerPickup `Answered`): a plain card, the item with Change at the top
   right, then "You said Keep it" (pine, with its check) or "You said No thanks" and what it means for the bill. */
.sd-pickup-answered {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.sd-pickup-answered-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
}

.sd-pickup-said {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-pickup-said-take {
	color: var(--pine);
}

.sd-pickup-decide-buttons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	gap: var(--space-3);
}

/* Your answers (design: CustomerPickup `ARow`): a hairline between rows, each with the item and its answer, and Answer
   or Change at the end. */
.sd-pickup-answers {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: var(--sd-line-width) solid var(--line);
}

.sd-pickup-answer-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding-block: var(--space-3);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-pickup-answer-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

.sd-pickup-answer-state {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	font-weight: 700;
}

.sd-pickup-answer-take {
	color: var(--pine);
}

.sd-pickup-answer-open {
	color: var(--estimate);
}

/* All set and Collected: centred in the page under their round mark, as the stopped step and the other whole-page
   outcomes are (All set had been drawn left-aligned, unlike every outcome around it). */
.sd-pickup-outcome {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
	margin-block: auto;
	text-align: center;
}

/* Collected's when-the-rest-is-ready banner spans the column, its words read from the start (design: Collected, a first
   part). */
.sd-pickup-outcome > .sd-banner {
	align-self: stretch;
	text-align: start;
}

.sd-pickup-outcome-words {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
}

.sd-pickup-outcome-banner {
	align-self: stretch;
	text-align: start;
}

.sd-pickup-collected-mark {
	display: grid;
	place-items: center;
	width: var(--space-12);
	height: var(--space-12);
	border-radius: 50%;
	background: var(--pine);
	color: var(--on-pine);
	font-size: var(--type-title-1-size);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The shopper's receipt (design: Receipt): one column on a phone; from 64em the items on the left and Total,
   Paid, Download the PDF and the store on the right (380px as drawn, 23.75rem so it follows the text size). */
.sd-receipt {
	gap: var(--space-6);
}

.sd-receipt-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-receipt-head h1 {
	margin: 0;
}

.sd-receipt-head h1:focus {
	outline: none;
}

.sd-receipt-layout {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.sd-receipt-items,
.sd-receipt-money {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	min-width: 0;
}

@media (min-width: 64em) {
	.sd-receipt-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem);
		gap: var(--space-12);
		align-items: start;
	}
}

.sd-receipt-part,
.sd-receipt-block {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-receipt-part h2,
.sd-receipt-block h2 {
	margin: 0;
}

.sd-receipt-waiting {
	margin: 0;
	color: var(--ink-muted);
}

.sd-receipt-rows {
	list-style: none;
	margin: var(--space-2) 0 0;
	padding: 0;
}

/* A hairline between rows. */
.sd-receipt-row {
	display: flex;
	gap: var(--space-3);
	align-items: flex-start;
	padding-block: var(--space-2);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-receipt-rows-plain .sd-receipt-row:first-child {
	border-top: 0;
}

.sd-receipt-row-bold {
	font-weight: 700;
}

.sd-receipt-row-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

/* Amounts in mono, right-aligned. */
.sd-receipt-amount {
	font-family: var(--font-mono);
	font-weight: 600;
	white-space: nowrap;
	text-align: right;
}

.sd-receipt-row-bold .sd-receipt-amount {
	font-weight: 700;
}

/* The + HST tag: a small bordered tag, bold, so it is plain on screen and in print (read as "HST added"). */
.sd-receipt-tag {
	margin-inline-start: var(--space-2);
	padding-inline: var(--space-2);
	border: var(--sd-line-width) solid var(--line-strong);
	border-radius: var(--radius-sm);
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
	white-space: nowrap;
}

.sd-receipt-store {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding-top: var(--space-3);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-receipt-store b {
	color: var(--ink);
}

/* The wait, in the receipt's shape: the order line, two parts of a title and three rows each. */
.sd-receipt-skeleton,
.sd-receipt-skel-part {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-receipt-skel-line {
	height: var(--type-body-line);
	width: 60%;
}

.sd-receipt-skel-title {
	height: var(--type-title-3-line);
	width: 40%;
}

.sd-receipt-skel-row {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
}

.sd-receipt-skel-name {
	height: var(--type-body-line);
	width: 55%;
}

.sd-receipt-skel-amount {
	height: var(--type-body-line);
	width: 15%;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The popover of a menu of choices (ThemeToggle's three, a results list's sorts): 220px at the default text size (the
   ThemeToggle drawing; no token holds it), raised, a line round it and the float shadow. */
.sd-choice-pop {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 13.75rem;
	max-width: calc(100vw - var(--space-8));
	padding: var(--space-1);
	background: var(--surface-raised);
	color: var(--ink);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-float);
}

/* Focus lands on a row, never on the popover itself (a press on its padding). */
.sd-choice-pop:focus {
	outline: none;
}

/* A row as the account menu draws them: its icon, the word, and a check on the choice in effect. */
.sd-choice-pop-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	box-sizing: border-box;
	width: 100%;
	min-height: var(--touch-min);
	padding: var(--space-1) var(--space-3);
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.sd-choice-pop-row:hover {
	background: var(--surface-sunken);
}

.sd-choice-pop-icon {
	flex: none;
	color: var(--ink-muted);
}

.sd-choice-pop-label {
	flex: 1 1 auto;
	min-width: 0;
}

.sd-choice-pop-check {
	flex: none;
	color: var(--pine);
}

/* A list of choices with no pictures (`look="words"`; design: SortAndNoResults, the sort menu): 240px at the default
   text size for its longer words (the drawing's; no token holds it), in rem so it widens with the text, and the chosen
   row bold beside its check. */
.sd-choice-pop-words {
	width: 15rem;
}

.sd-choice-pop-words .sd-choice-pop-row[aria-checked='true'] {
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The store in a phone's bar (design: StoreHomeStates, BarStore): the monogram, then the short name, taking the room
   the bar's controls leave and cutting the name short with an ellipsis rather than pushing them off. */
.sd-bar-store {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
	min-height: var(--touch-min);
	color: var(--ink);
	text-decoration: none;
}

.sd-bar-store:hover {
	color: var(--ink);
}

/* StoreIdentity's monogram plate at the bar's size: 32px with 6px corners and 14px letters, as drawn. In rem so it keeps
   pace with the name beside it; no token holds the plate's sizes, and 6px falls between the radius tokens. */
.sd-store-plate.sd-bar-store-plate {
	width: 2rem;
	height: 2rem;
	border-radius: 0.375rem;
	font-size: var(--type-label-size);
}

/* The name takes what is left beside the plate and gives all of it up first: no width of its own (`width: 0`), so the
   bar's minimum is Back and the plate (AppLayout.css), never the name; it grows into the room there is and ends in an
   ellipsis, down to nothing. */
.sd-bar-store-name {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A Term (design: Terms): the word with a dotted underline and an info icon, in the text's own colour. */
.sd-term {
	position: relative;
	display: inline;
}

.sd-term-btn {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: help;
	text-decoration: underline dotted;
	text-decoration-thickness: 0.1em;
	text-underline-offset: 0.2em;
	text-decoration-color: var(--ink-muted);
}

.sd-term-icon {
	margin-inline-start: var(--space-1);
	color: var(--ink-muted);
	font-size: 0.875em;
}

.sd-term-btn:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--space-1);
	border-radius: var(--radius-sm);
}

.sd-term-tip {
	position: absolute;
	inset-inline-start: 0;
	top: calc(100% + var(--space-2));
	z-index: 20;
	width: max-content;
	max-width: 35ch;
	padding: var(--space-3);
	border-radius: var(--radius-md);
	background: var(--ink);
	color: var(--surface);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
	font-weight: 400;
	text-align: start;
	box-shadow: var(--shadow-overlay);
	white-space: normal;
}

/* The tooltip and the word touch: a bridge over the gap between them, part of the tooltip, so a pointer going from the
   word to the tooltip never leaves the Term and the tooltip stays (WCAG 1.4.13, hoverable). */
.sd-term-tip::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: calc(-1 * var(--space-2));
	height: var(--space-2);
}

/* On a phone the tooltip is a bubble across the foot of the screen, one gutter in from each side, so it never runs
   off the edge. 30rem is the drawing's 480px; a media query cannot read a token. */
@media (max-width: 30rem) {
	.sd-term-tip {
		position: fixed;
		inset-inline: var(--space-4);
		top: auto;
		bottom: var(--space-4);
		width: auto;
		max-width: none;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* A legal document's words (LegalText) in the public frame's main column. The words arrive as plain markup (h2, h3, p,
   lists, a table), so it is styled from here by element, inside .sd-legal-doc only: the public type scale and the
   tokens, as the public pages' own headings and paragraphs are (PublicChrome.css). */
.sd-legal-doc {
	display: flex;
	flex-direction: column;
	gap: var(--sd-padding);
}

.sd-legal-doc h2 {
	margin: var(--sd-padding-lg) 0 0;
	font-size: var(--sd-font-size-heading-3);
	line-height: var(--sd-line-height-heading-3);
	font-weight: 700;
}

.sd-legal-doc h3 {
	margin: var(--sd-padding-sm) 0 0;
	font-size: var(--sd-font-size-heading-4);
	line-height: var(--sd-line-height-heading-4);
	font-weight: 700;
}

.sd-legal-doc p,
.sd-legal-doc ul,
.sd-legal-doc ol {
	margin: 0;
}

.sd-legal-doc ul,
.sd-legal-doc ol {
	padding-inline-start: var(--sd-padding-lg);
	display: flex;
	flex-direction: column;
	gap: var(--sd-padding-xs);
}

/* A list item's own paragraph (the drafts wrap each item's words in a <p>) sits on the marker's line. */
.sd-legal-doc li > p {
	margin: 0;
}

.sd-legal-doc li > ul,
.sd-legal-doc li > ol {
	margin-top: var(--sd-padding-xs);
}

/* The privacy policy's tables: ruled cells, the header row on the sunken surface. Where the window holds 23em (a
   phone at the usual text size), a cell breaks between words, and inside a word only when that word alone is wider
   than the cell (`break-word`): the main column's `anywhere` (PublicChrome.css) also lets a table size its columns
   as if every word could be split, which breaks "Security" across two lines in a 375px column. Below 23em (a phone at
   a large text size) the column's `anywhere` stays, so the table never runs past the screen. */
.sd-legal-doc table {
	width: 100%;
	border-collapse: collapse;
}

.sd-legal-doc th,
.sd-legal-doc td {
	padding: var(--sd-padding-xs) var(--sd-padding-sm);
	border: var(--sd-line-width) solid var(--line);
	text-align: start;
	vertical-align: top;
}

.sd-legal-doc th {
	background: var(--surface-sunken);
	font-weight: 700;
}

@media (min-width: 23em) {
	.sd-legal-doc th,
	.sd-legal-doc td {
		overflow-wrap: break-word;
	}
}

/* A section linked by its id (/legal/terms/#4-fees) shows its focus target clear of the top edge. */
.sd-legal-doc [id] {
	scroll-margin-top: var(--sd-padding-lg);
}

/* The list of every version, under the document, newest first (design: LegalPages, All versions): a rule above the
   section, and each version a row with a rule above it, its name and dates on the left and its tag on the right. The
   tag wraps under the words when the row is narrow (the phone stacks them). */
.sd-legal-versions {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding-top: var(--space-6);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-legal-versions ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-legal-versions li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-4);
	padding: var(--space-3) 0;
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-legal-version {
	display: flex;
	flex: 1 1 16rem;
	flex-direction: column;
	min-width: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* A row of chips (design: BrowseResults and Aisles, `sd-chips`, `DeskChips`): a shelf, a filter or the sort each, 8px
   apart, wrapping onto more lines when they do not fit (flex, gap 8, centred, wrap). The row is drawn from 768px only
   (a phone has the Filters button in its place, design: FilterDrawer), so it never scrolls. */
.sd-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* The filters or shelves, as one group in the row, the sort beside it; the group shrinks so its chips wrap. */
.sd-chip-group {
	display: flex;
	flex: 0 1 auto;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* The chip itself (`sd-chip`, `sd-chip-on`, `sd-chip-check`) is the shared one: theme/chips.css. */

/* The sort ends the row (design: BrowseResults, `marginLeft: auto`): pushed to the far end of the row's last line. */
.sd-chips > .sd-chip {
	margin-inline-start: auto;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* No results' line ("Check the spelling…") and No results under a filter's ("9 results for “bread” without that
   filter.") at body size, where a message's line is a caption elsewhere: the drawing sets both at 16/24 (design:
   SortAndNoResults). */
.sd-no-results .sd-state .sd-state-line {
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

/* A desktop: the message centred in the page, in the page's gutter (theme/page.css), and as wide as the drawn 560px
   column (35rem, so it follows the text size) rather than a state message's usual 420px, so "Check the spelling, or
   browse the aisles to see what Hilltop has." keeps to one line instead of leaving its last word alone. */
@media (min-width: 48em) {
	.sd-store-page > .sd-no-results {
		padding-inline: var(--sd-page-gutter);
	}

	.sd-store-page > .sd-no-results .sd-state {
		max-width: 35rem;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* What the icons mean (design: AtAGlance): a title, a row for each icon (a 32px glyph column, then its words and where
   it comes from) between hairlines, then the caption. The sheet's body has no side padding of its own, so the legend
   brings the phone's 16px gutter (space-4). */
.sd-icon-legend {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: 0 var(--space-4);
}

.sd-icon-legend-title {
	margin: 0;
}

.sd-icon-legend-title:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

.sd-icon-legend-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-icon-legend-row {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr);
	gap: var(--space-3);
	align-items: start;
	padding: var(--space-3) 0;
	border-top: var(--sd-line-width) solid var(--line);
}

/* The glyphs at the drawing's 24px, in rem; the same colours as on the tile. */
.sd-icon-legend-glyph {
	display: inline-flex;
	padding-top: var(--space-1);
	font-size: 1.5rem;
}

.sd-icon-legend-canada {
	color: var(--danger);
}

.sd-icon-legend-high {
	color: var(--short);
}

.sd-icon-legend-caption {
	margin: 0;
}

/* The popover's frame: the drawing's 360px, in rem, with the popover's own padding replaced by the legend's. */
.sd-icon-legend-pop {
	width: 22.5rem;
	max-width: calc(100vw - 2 * var(--space-4));
}

.sd-icon-legend-pop .sd-icon-legend {
	padding: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The sort at the end of an aisle's count line (design: BrowseResults, "· Sort: …"): `sd-text-link` (pine, bold, the
   touch height, a button's own look cleared), overridden because it sits inside a line of words. Its words run straight
   on after the "·", so no side padding, and the pine-soft block under the pointer would cut it out of the line as a
   separate button, so an underline instead. */
.sd-text-link.sd-sort-text {
	gap: var(--space-1);
	padding: 0;
}

.sd-text-link.sd-sort-text:hover {
	background: transparent;
	text-decoration: underline;
}

/* The chevron that ends the sort's button (design: SortAndNoResults): 16px at the default text size, in rem so it
   follows the text size, where 1em would draw it at the label's smaller size. */
.sd-sort-chevron {
	flex: none;
	font-size: 1rem;
}

/* The sort menu's popup: a clear band on its left as wide as a phone's gutter. The popup is placed with its right edge
   on the button's and pushed back inside the screen when it would leave it; the band is part of what is kept inside,
   so the menu itself stays 16px (space-4) from the screen's left edge on a phone (design: SortAndNoResults). The menu's
   own max-width keeps the right edge as far in. */
.sd-sort-pop {
	padding-inline-start: var(--space-4);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A filter's glyph (design: FilterDrawer, `FG`), in its colour. Its sizes are the drawing's, in rem so they follow the
   text size; no icon-size token holds them. */
.sd-filter-glyph {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
}

/* Inside the Filters button: 18px. */
.sd-filter-glyph-button {
	font-size: 1.125rem;
}

/* A row of the filters sheet: 22px, centred in a 24px column so the names line up. */
.sd-filter-glyph-row {
	width: 1.5rem;
	font-size: 1.375rem;
}

.sd-filter-glyph-ink {
	color: var(--ink);
}

.sd-filter-glyph-pine {
	color: var(--pine);
}

.sd-filter-glyph-danger {
	color: var(--danger);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The filters sheet (design: FilterDrawer, `Drawer`): up to 92% of the screen's height, the drawing's cap, where the
   shared sheet's is the whole screen; past it the rows scroll and the foot stays. Both classes, so it outranks the
   shared rule (BottomSheet.css) whatever order the stylesheets load in. */
.sd-bottom-sheet.sd-filter-drawer .ant-drawer-content-wrapper {
	max-height: calc(var(--sd-viewport-block) * 0.92);
}

/* The rows, 16px from the sheet's sides and 8px under the title. */
.sd-filter-drawer-rows {
	padding: var(--space-2) var(--space-4);
}

/* A filter's row: a hairline over it, 4px above and below the switch. */
.sd-filter-drawer-row {
	padding-block: var(--space-1);
	border-top: var(--sd-line-width) solid var(--line);
}

/* Its caution, under the name: in from the row's start by the glyph's 24px column and the 12px gap after it. */
.sd-filter-drawer-caution {
	margin: 0;
	padding: 0 0 var(--space-2) calc(1.5rem + var(--space-3));
}

/* The foot (the shared sheet's footer, with its hairline over it): on surface-raised, 12px over and 16px under and at
   the sides; the line or the hidden status, then Clear all and Show N results, 8px apart. */
.sd-bottom-sheet.sd-filter-drawer .ant-drawer-footer {
	padding: var(--space-3) var(--space-4) var(--space-4);
	background: var(--surface-raised);
}

.sd-filter-drawer-foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-filter-drawer-line {
	margin: 0;
}

.sd-filter-drawer-actions {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

/* Clear all sits on the foot's edge: a text button's own side padding taken to 4px (the drawing's `paddingLeft: 4`). */
.sd-filter-drawer-clear.ant-btn {
	padding-inline-start: var(--space-1);
}

/* Show N results takes the rest of the line. */
.sd-filter-drawer-show {
	flex: 1 1 auto;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The Filters button (design: FilterDrawer, `FiltersBtn`): a chip (FilterChips.css), its parts 8px apart. */
.sd-chip.sd-filters-button {
	gap: var(--space-2);
}

/* The filter glyph before "Filters": 16px, in rem so it follows the text; no icon-size token. */
.sd-filters-button-icon {
	font-size: 1rem;
}

/* What is on, after a pine hairline: the glyphs 6px apart (the drawing's; --space-2 is the nearest step up, and the
   chip's own check-to-word gap moved 6px onto it the same way), then "+1" in the chip's bold label type. */
.sd-filters-button-glyphs {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 1.25rem;
	padding-inline-start: var(--space-2);
	border-inline-start: var(--sd-line-width) solid var(--pine);
}

/* The phone's filters row (design: FilterDrawer, `FilterRow` and `ShelfRow`): on search the Filters button under the
   field; on an aisle the shelf dropdown, then Filters, on one row, 8px apart. It never scrolls: the shelf's name gives
   up its room first (ShelfMenu.css). */
.sd-filters-row {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* A store's products (design: BrowseResults, ProductTile). */

/* Focus is sent here when Try again's load settles, the button having gone: no ring for a region nobody tabs to. */
.sd-results:focus {
	outline: none;
}

/* Grid: two columns on phones, 12px between columns and 20px between rows (ProductTile); four on a tablet and four to
   six on desktop, as wide as the content measure allows. The breakpoints are the shell's, in em. */
.sd-results-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--space-3);
	row-gap: var(--space-5);
	margin: 0;
	padding: 0 var(--sd-page-gutter, var(--space-4)) var(--space-4);
	list-style: none;
}

@media (min-width: 48em) {
	.sd-results-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* From 1024px (design: BrowseResults and Aisles, desktop, Oct 27): five across on an aisle and four on search, 24px
   apart (--space-6). */
@media (min-width: 64em) {
	.sd-results-grid {
		column-gap: var(--space-6);
		row-gap: var(--space-6);
	}

	.sd-results-grid-5 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.sd-results-grid-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Rows run edge to edge with line dividers (each row draws the one under it), a line over the first. */
/* The list is the rows' container (`sd-prow-list`): ProductTile stacks a row narrower than 20em (ProductTile.css). */
.sd-results-rows {
	container: sd-prow-list / inline-size;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--sd-line-width) solid var(--line);
}

/* Show more's page loading after the grid's rows: the grid above already ends with the gutter's 16px, so these start
   straight under it with no second gutter of their own. */
.sd-results-grid + .sd-results-grid {
	padding-top: 0;
}

.sd-results-rows + .sd-results-rows {
	border-top: 0;
}

/* The foot: Show more, or the failure in its place, in the page's gutter. */
.sd-results-foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--space-4) var(--sd-page-gutter, var(--space-4));
}

/* The foot credit, once under the list, in the page's gutter. */
.sd-results-credit {
	margin: 0;
	padding: var(--space-4) var(--sd-page-gutter, var(--space-4));
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The shelf dropdown (design: FilterDrawer, `ShelfBtn`): a chip, its name and the chevron 4px apart, at most 200px wide
   at the default text size (the drawing's, in rem so it follows the text; no token holds it), a long name ending in an
   ellipsis. It may shrink so the Filters button beside it keeps its room. */
.sd-chip.sd-shelf-button {
	flex: 0 1 auto;
	gap: var(--space-1);
	min-width: 0;
	max-width: 12.5rem;
}

.sd-shelf-button-name {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* The menu's popup, placed with its left edge on the button's: a clear band on its right as wide as a phone's gutter,
   so when it is pushed back inside the screen the menu stays 16px (space-4) from the right edge, as the sort's does
   from the left (SortChip.css, `sd-sort-pop`). */
.sd-shelf-pop {
	padding-inline-end: var(--space-4);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* An aisle's head (design: BrowseResults, Aisles): the title, the chips and the count line, 8px over the grid. */
.sd-aisle-head {
	padding-bottom: var(--space-2);
}

.sd-aisle-title,
.sd-aisle-line {
	margin: 0;
}

/* The filter chips' wrapper only names them for the focus move after Turn off; it takes no part in the head's layout,
   so the row sits under the shelves as the drawing has it (design: SortAndNoResults). */
.sd-aisle-filters {
	display: contents;
}

/* An aisle's Duotone glyph (design: DuotoneIcons): the Brand pairing, pine-duo on the primary layer and
   harvest on the secondary, both at full strength in both themes (the duotone-only pine-duo token carries the dark
   theme's difference, so harvest needs no opacity of its own). 24px at the default text size, in rem so it follows
   the text; Font Awesome's fixed width (`fa-fw`, ListIcon) gives it the drawn box 1.25 times its height. */
.sd-aisle-glyph {
	--fa-primary-color: var(--pine-duo);
	--fa-secondary-color: var(--harvest);
	--fa-secondary-opacity: 1;

	flex: none;
	font-size: 1.5rem;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* All aisles (design: Aisles): the title, then the aisles in one raised list (`sd-setlist`, SettingsRows), Other in a
   list of its own under it. */
.sd-all-aisles-head {
	padding-bottom: var(--space-2);
}

.sd-all-aisles-title {
	margin: 0;
}

.sd-all-aisles-nav {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: 0 var(--sd-page-gutter) var(--space-4);
}

/* A row (`sd-setrow` as the screen sets it): the whole row is the aisle's link, the words never wrapping under the
   glyph. */
.sd-aisle-row-item + .sd-aisle-row-item {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-aisle-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	/* The drawing's 56px row (design: Aisles, `minHeight: 56`), in rem so it grows with the text. Its own value, not
	   --touch-aisle: that token is the aisle-mode touch target, and the two need not move together. */
	min-height: 3.5rem;
	padding: var(--space-3) var(--space-4);
	color: var(--ink);
	text-decoration: none;
}

.sd-aisle-row:hover {
	color: var(--ink);
}

/* The list hides its overflow (rounded corners), so the focus ring is drawn inside the row. */
.sd-aisle-row:focus-visible {
	outline-offset: calc(-1 * var(--sd-line-width-focus) * 2);
}

.sd-aisle-row-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-aisle-row-count {
	flex: none;
	font-family: var(--font-mono);
}

.sd-aisle-row-chevron {
	flex: none;
	color: var(--ink-muted);
	/* The drawing's 20px chevron (design: Aisles, `size: 20`), in rem so it follows the text; no icon-size token. */
	font-size: 1.25rem;
}

/* A desktop (design: Aisles, desktop, Oct 27): the aisles as tiles, three across from 768px and four from 1024px (the
   drawing's 1280 frame), in the aisles' order, 16px apart (--space-4); Other apart on its own row after them. Each tile
   is a row as on StoreHome's `sd-cat`: the glyph, the name (Other with its line) and the count, 72px tall at the
   default text size (in rem), with no chevron. The list keeps its markup, so a screen reader hears the same list. */
@media (min-width: 48em) {
	.sd-all-aisles-nav {
		gap: var(--space-8);
	}

	.sd-all-aisles-nav .sd-setlist {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-4);
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.sd-aisle-row-item + .sd-aisle-row-item {
		border-top: 0;
	}

	.sd-aisle-row {
		min-height: 4.5rem;
		padding: var(--space-3);
		border: var(--sd-line-width) solid var(--line);
		border-radius: var(--radius-md);
		background: var(--surface-raised);
	}

	.sd-aisle-row:focus-visible {
		outline-offset: var(--sd-line-width-focus);
	}

	.sd-aisle-row-chevron {
		display: none;
	}
}

@media (min-width: 64em) {
	.sd-all-aisles-nav .sd-setlist {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css (--space-*), which the CSS linter cannot resolve */

/* The glyphs of one storage kind in a row, the product page's 8px between (--space-2). */
.sd-storage-glyph {
	display: inline-flex;
	gap: var(--space-2);
	align-items: center;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Product detail (design: ProductDetail). */

/* The page: a phone has one column, the gallery then everything else, in the section's 16px gutter and 12px between
   parts (`sd-sec`), the page's gutter at the sides (theme/page.css). A desktop (768px and wider, the gallery's own
   query) has two (design: ProductDetail): the
   gallery 440px (27.5rem, so it follows the text size) on the left, sticky, and everything else on the right, 48px apart
   (--space-12, the drawing's gap). */
.sd-detail-layout {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4) var(--sd-page-gutter);
}

.sd-detail-main {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
}

/* No photo: the tile's no-image well (`sd-tile-noimg`, ProductTile.css), with the drawing's overrides only: 160px
   tall (in rem), a line border and the large radius. The glyph is 32px and the words "No photo yet for this product". */
.sd-tile-noimg.sd-detail-noimg {
	box-sizing: border-box;
	height: 10rem;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
}

.sd-detail-noimg-glyph {
	font-size: 2rem;
}

/* The full name, never clamped. */
.sd-detail-name {
	overflow-wrap: anywhere;
}

.sd-detail-meta {
	margin-top: var(--space-1);
}

/* The price, the unit price and the HST line, close together: the drawing's 4px, --space-1. */
.sd-detail-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
}

.sd-detail-mono {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}

.sd-detail-details {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* Details (`sd-dl`): the term muted in its own column, the words beside it in ink, 14px on a 20px line (the label
   style: a caption is ink-muted throughout). The drawn 8px between rows (--space-2). */
.sd-detail-dl {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-2) var(--space-4);
	margin: 0;
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
}

.sd-detail-dl-row {
	display: contents;
}

.sd-detail-dl dt {
	color: var(--ink-muted);
}

.sd-detail-dl dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

/* A phone at 200% text or zoom (the drawn `sd-dl` below 24em): each term above its words, the drawn 4px between them
   (--space-1), and 8px after each row's words. */
@media (max-width: 24em) {
	.sd-detail-dl {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--space-1);
	}

	.sd-detail-dl dd {
		margin-bottom: var(--space-2);
	}
}

/* The database's name, a link in pine as drawn. */
.sd-detail-link {
	color: var(--pine);
}

/* The brand, a bold caption on its own line above the name; the drawn 4px under it (--space-1). */
.sd-detail-brand {
	margin-bottom: var(--space-1);
	font-weight: 700;
}

/* High in and the badges, each a list of small labels and the one line under them: the drawn 4px between (--space-1),
   8px between labels (--space-2). */
.sd-detail-facts {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-detail-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A High in label: short-soft with a short hairline, the triangle in short and the words in bold ink, 14px on a 20px
   line (the label style). Its height is the design system's tag, 24px (in rem, so it follows the text size). */
.sd-detail-highin {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	box-sizing: border-box;
	min-height: 1.5rem;
	padding: 0 var(--space-2);
	color: var(--ink);
	background: var(--short-soft);
	border: var(--sd-line-width) solid var(--short);
	border-radius: var(--radius-sm);
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
}

.sd-detail-highin-icon {
	flex: none;
	color: var(--short);
}

/* A Details value of more than one line (allergens then May contain, the two recycling lines): each on its own line. */
.sd-detail-line {
	display: block;
}

/* Keep it: its glyph or glyphs, then the words, the drawn 8px between (--space-2); the glyphs the drawing's 18px, the
   size the status icon is drawn at (theme/statusIcon.css), which the size is typed once in. */
.sd-detail-keep {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-detail-keep-icon {
	flex: none;
	font-size: var(--status-icon-size);
}

/* The desktop's two columns: after every other @media but the 64em cap below, which ProductDetail.test.tsx cuts the
   sheet at. */
@media (min-width: 48em) {
	.sd-detail-layout {
		display: grid;
		grid-template-columns: 27.5rem minmax(0, 1fr);
		gap: var(--space-12);
		align-items: start;
	}

	.sd-detail-gallery {
		position: sticky;
		top: 0;
	}
}

/* A wide window: the right column stops at the drawn 560px (35rem, so it follows the text size; design: ProductDetail,
   PDDesk's `maxWidth: 560`). From 48em to 64em the column is already narrower than that, and High in and the
   badges wrap (`sd-detail-chips`) and the nutrition table's name column shrinks there, so everything fits under the
   cap too. */
@media (min-width: 64em) {
	.sd-detail-main {
		max-width: 35rem;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The gallery (design: ProductDetail): the plate, then on a phone its dots and the name, or on a desktop the
   thumbnails and the name and place; the photo credit last. The drawn 8px between (--space-2) on a phone, 12px on a
   desktop (--space-3). */
.sd-gallery {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
	margin: 0;
}

/* The photo on its plate, which is a button: 240px tall as drawn on a phone (no token is; in rem, so it follows the text
   size), the plate's colour, a line border, the large radius and 16px inside; the photo contained. */
.sd-gallery-plate {
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 15rem;
	padding: var(--space-4);
	background: var(--plate);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	cursor: zoom-in;
	font: inherit;
}

.sd-gallery-plate img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* The magnifier badge in the plate's corner: 32px (2rem), the raised surface with a line, the icon 16px (1rem). */
.sd-gallery-badge {
	position: absolute;
	inset-block-end: var(--space-2);
	inset-inline-end: var(--space-2);
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-pill);
	background: var(--surface-raised);
	color: var(--ink);
	font-size: 1rem;
}

/* A phone swipes: the plates in a row, each the row's width, snapping one at a time. The row's scrollbar is left out:
   the dots say where the person is. */
.sd-gallery-row {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	/* eslint-disable-next-line css/use-baseline -- hiding the row's scrollbar is a nicety: the dots say where the person is, and a browser without it shows one */
	scrollbar-width: none;
}

.sd-gallery-row::-webkit-scrollbar {
	display: none;
}

.sd-gallery-row .sd-gallery-plate {
	flex: 0 0 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

/* The dots and the current photo's name under them, centred (a caption under a plate is the drawing's one centred place). */
.sd-gallery-dots {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-1);
}

.sd-gallery-dotlist {
	display: flex;
	justify-content: center;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A dot: 8px (--space-2), line-strong; the current one pine. */
.sd-gallery-dot {
	width: var(--space-2);
	height: var(--space-2);
	border-radius: var(--radius-pill);
	background: var(--line-strong);
}

.sd-gallery-dot[aria-current] {
	background: var(--pine);
}

/* A desktop's thumbnails: 64px as drawn (4rem, so it follows the text size), the plate's colour, the medium radius; the
   current one with a 2px pine border (--sd-line-width-focus), the rest a line. The box is fixed, so the border changing
   width moves nothing. */
.sd-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.sd-gallery-thumb {
	box-sizing: border-box;
	width: 4rem;
	height: 4rem;
	padding: var(--space-1);
	background: var(--plate);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
	cursor: pointer;
}

.sd-gallery-thumb[aria-current] {
	border: var(--sd-line-width-focus) solid var(--pine);
}

.sd-gallery-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Desktop (768px and wider, PHONE_QUERY's other side): a taller plate, 400px as drawn (25rem), 12px between the parts. */
@media (min-width: 48em) {
	.sd-gallery {
		gap: var(--space-3);
	}

	.sd-gallery-plate {
		height: 25rem;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The enlarged photo (design: ProductDetail, Enlarge): the full-window dialog (Dialog.css `sd-dialog-full`)
   on the viewer colour, near-black in both themes, with the on-viewer colour for everything drawn on it. */
.sd-viewer .ant-modal .ant-modal-container {
	background: var(--viewer);
	color: var(--on-viewer);
	box-shadow: none;
}

.sd-viewer-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

/* The top: the photo's name in bold and "2 of 3" under it (muted by 80% on the viewer), Close at the far end. */
.sd-viewer-head {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
}

.sd-viewer-title {
	flex: 1;
	min-width: 0;
}

.sd-viewer-name {
	display: block;
	overflow-wrap: anywhere;
}

.sd-viewer-place,
.sd-viewer-hint {
	color: color-mix(in srgb, var(--on-viewer) 80%, transparent);
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
}

/* The icon buttons are the shared 44px ones, in the on-viewer colour; the zoom pair is outlined by a 40% line. */
.sd-viewer-btn {
	color: var(--on-viewer);
}

.sd-viewer-btn:hover:not(:disabled) {
	background: color-mix(in srgb, var(--on-viewer) 16%, transparent);
}

.sd-viewer-outlined {
	border: var(--sd-line-width) solid color-mix(in srgb, var(--on-viewer) 40%, transparent);
}

.sd-viewer-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

/* The photo: the stage holds it still, clips what the zoom pushes out, and takes the pointers itself. `touch-action:
   none` keeps the browser from scrolling or zooming the page under a pinch or a drag; the buttons are the way for
   anyone who cannot do either. The zoom and pan come from the stage's custom properties (usePhotoZoom): the pan is a
   share of the pane, so it needs no length. */
.sd-viewer-stage {
	display: grid;
	/* One track the stage's own size: an auto track grows to the photo, so the pane's 100% height followed the photo
	   and a tall one was clipped even at the smallest zoom. */
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	flex: 1;
	min-height: 0;
	overflow: hidden;
	place-items: center;
	touch-action: none;
	/* The standard `user-select` fails the baseline lint; the prefixed forms cover Chrome, Safari, Edge and Firefox. */
	-moz-user-select: none;
	-webkit-user-select: none;
}

.sd-viewer-pane {
	width: 100%;
	height: 100%;
	transform: translate(calc(var(--sd-pan-x, 0) * 100%), calc(var(--sd-pan-y, 0) * 100%)) scale(var(--sd-zoom, 1));
	transition: transform 0.15s ease-out;
}

/* Under a finger the photo follows it at once; the ease is only for a button or a double-tap. */
.sd-viewer-pane-live {
	transition: none;
}

.sd-viewer-pane img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

/* The foot: the hint at the start, the two zoom buttons at the end. */
.sd-viewer-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	padding: var(--space-4);
}

.sd-viewer-zoom {
	display: flex;
	gap: var(--space-2);
}

/* Reduced motion: the zoom jumps (global.css already ends every transition; this says so for the viewer itself). */
@media (prefers-reduced-motion: reduce) {
	.sd-viewer-pane {
		transition: none;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Nutrition (design: ProductDetail): Sundries' own card, never the Nutrition Facts table's look. */

.sd-nutrition {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* The drawing's `sd-card` with no padding and the corners clipping the heading strip. */
.sd-nutrition-card {
	overflow: hidden;
	background: var(--surface-raised);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
}

/* The strip: what the figures are per on the left, "% daily value" on the right; 14px on a 20px line (the label style). */
.sd-nutrition-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-2) var(--space-4);
	background: var(--surface-sunken);
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
}

.sd-nutrition-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
}

/* The drawn 6px above and below a row's words is --space-2: the scale has no 6px. */
.sd-nutrition-table th,
.sd-nutrition-table td {
	padding-block: var(--space-2);
}

.sd-nutrition-table tr {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-nutrition-table th {
	padding-inline: var(--space-4) var(--space-2);
	text-align: start;
	font-weight: 700;
	color: var(--ink);
}

/* "of which ...": indented 32px, regular weight, muted. */
.sd-nutrition-sub th {
	padding-inline-start: var(--space-8);
	font-weight: 400;
	color: var(--ink-muted);
}

.sd-nutrition-table td {
	padding-inline: var(--space-2);
	text-align: end;
	white-space: nowrap;
}

/* Calories' figure is bold, as drawn. */
.sd-nutrition-strong {
	font-weight: 700;
}

/* The % daily value column: 56px wide (in rem), 16px from the card's edge, muted. */
.sd-nutrition-table td.sd-nutrition-percent {
	width: 3.5rem;
	padding-inline-end: var(--space-4);
	color: var(--ink-muted);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Search's head (design: BrowseResults): the field, the chips, the count line and, while Gluten-free is on, the
   caution under it, 8px over the rows. */
.sd-search-head {
	padding-bottom: var(--space-2);
}

.sd-search-line {
	margin: 0;
}

/* A desktop (design: BrowseResults, desktop, Oct 27): the field 560px wide (35rem, so it follows the text size). */
@media (min-width: 48em) {
	.sd-search-head .sd-search-form {
		max-width: 35rem;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* A Shop by aisle tile (design: StoreHome, `sd-cat`, as the screen sets it: a row, the glyph beside the name, 72px tall
   at the default text size, in rem so it grows with the text). */
.sd-cat {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 4.5rem;
	padding: var(--space-3);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	overflow-wrap: anywhere;
}

/* The drawing gives the tile no hover of its own: it keeps its ink rather than taking a link's hover colour. */
.sd-cat:hover {
	color: var(--ink);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The open-order cards (design: StoreHome, "An open order"): on pine-soft with no edge, the receipt glyph and the
   close in bold, then Add items and View order. */
.sd-open-orders {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-open-order {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
	border-radius: var(--radius-lg);
	background: var(--pine-soft);
	color: var(--ink);
}

.sd-open-order-words {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
}

.sd-open-order-words svg {
	flex: none;
	margin-top: var(--space-1);
}

.sd-open-order-acts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* While it loads (OpenOrderCards' CardSkeleton): the words' line and the two buttons, at the card's sizes. */
.sd-open-order-skel-words {
	height: 1.5rem;
	width: 70%;
}

.sd-open-order-skel-button {
	height: 2.5rem;
	width: 7rem;
	border-radius: var(--radius-md);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The store home (design: StoreHome, StoreHomeStates): one column in the phone's order, the identity, the search and
   Shop by aisle, left-aligned inside the page (a wide page, theme/page.css). At the sides the page's gutter; on a phone
   12px between its parts and the identity close under the bar; from 768px 24px above and below and 20px between; from
   1024px 32px and 24px. */
.sd-store-home {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-1) var(--sd-page-gutter) var(--space-4);
}

/* Shop by aisle: its heading, then the grid 12px under it; on a phone 16px more above it than between the lead's parts,
   from 1024px 8px more (the drawing's spacer and margin). */
.sd-store-home-aisles {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin-top: var(--space-4);
}

/* With nothing above it (the store not known yet: loading after a move between stores), it starts at the column's top. */
.sd-store-home-aisles:first-child {
	margin-top: 0;
}

/* The aisle grid (`sd-aisle-grid`): 2 across on a phone, 3 from 768px, 6 in one row from 1024px. The
   breakpoints are the shell's, in em. */
.sd-aisle-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
}

/* Nothing offered: the message centred under the identity, 24px below it on a phone (the drawing). */
.sd-store-home-nothing {
	margin-top: var(--space-6);
}

/* Only Other: "Everything at <store>" and its count, --space-1 apart, 4px more under the search than its other parts. */
.sd-store-home-everything {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin-top: var(--space-1);
}

.sd-store-home-everything > * {
	margin: 0;
}

/* Only Other on a phone: the count 12px over the tiles (the drawing's grid gap), where the column's foot would make it
   16px; the wider columns' padding, below, replaces it. */
.sd-store-home-other {
	padding-bottom: var(--space-3);
}

/* From 768px: more room above and below, and three aisles across. Only Other's products (an aisle's grid, under the
   column) are in the page's gutter, as ResultList's always are. */
@media (min-width: 48em) {
	.sd-store-home {
		gap: var(--space-5);
		padding-block: var(--space-6);
	}

	/* The drawn tablet sets the heading and the grid in the page's own 20px rhythm. */
	.sd-store-home-aisles {
		gap: var(--space-5);
	}

	.sd-store-home-aisles,
	.sd-store-home-nothing {
		margin-top: 0;
	}

	.sd-aisle-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* From 1024px the search is its drawn 560px (35rem, so it follows the text size; no token holds a field's width) and
   the six aisles share one row. */
@media (min-width: 64em) {
	.sd-store-home {
		gap: var(--space-6);
		padding-block: var(--space-8);
	}

	/* Desktop: Shop by aisle is a section of its own again, its heading 12px over the grid and 8px more above it. */
	.sd-store-home-aisles {
		gap: var(--space-3);
		margin-top: var(--space-2);
	}

	.sd-store-home-aisles:first-child {
		margin-top: 0;
	}

	.sd-store-home-search {
		max-width: 35rem;
	}

	.sd-aisle-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* The open-order card over the next pickup's card; from 1024px side by side (design: StoreHome, "An open order").
   Empty (signed in, no open order, nothing offered) it takes no room. */
.sd-store-home-cards {
	display: grid;
	gap: var(--space-3);
}

.sd-store-home-cards:empty {
	display: none;
}

@media (min-width: 64em) {
	.sd-store-home-cards {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		align-items: start;
	}
}

/* The next pickup's card (design: StoreHome; docs/specs/orders-runs-holds.md, The store home card): a card under the
   identity, the RunBadge over "Ready … after …" and its caption, 12px apart. */
.sd-store-home-pickup {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

.sd-store-home-pickup p {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The store pages' shared layout, as the design system's screens set them out (StoreHome, Aisles, BrowseResults). */

/* A store page's width is the shared layout's (`sd-page sd-page-flush` and its width, theme/page.css): its sections
   draw the page's gutter, so a list's rows can still run to the page's edge on a phone. */

/* A section (`sd-sec`): the page's gutter at the sides (theme/page.css), 16px above and below, its parts 12px apart. */
.sd-sec {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4) var(--sd-page-gutter, var(--space-4));
}

/* A heading with its action at the far end (`sd-between`); the action wraps under it when they do not fit (200% text). */
.sd-between {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-3);
}

/* A text button that is a link (`sd-btn sd-btn-text`): pine, touch height, pine-soft under the pointer. */
.sd-text-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--touch-min);
	padding: 0 var(--space-3);
	border-radius: var(--radius-md);
	color: var(--pine);
	font-weight: 700;
	text-decoration: none;
}

.sd-text-link:hover {
	color: var(--pine);
	background: var(--pine-soft);
}

/* On a button (Show more, an aisle's sort): the button's own border, fill and font cleared, so it reads as the link
   does; the weight stays the link's. */
button.sd-text-link {
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}

button.sd-text-link:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* A list's count line (`sd-count-line`: an aisle's and search's) is a status there from the first draw, so its words are
   announced as they change. While it has none it takes no room, out of the flow as sd-visually-hidden is, so the
   head's gap does not open round an empty line (the box is one line-width, as sd-visually-hidden's). */
.sd-count-line:empty {
	position: absolute;
	width: var(--sd-line-width);
	height: var(--sd-line-width);
	overflow: hidden;
	clip-path: inset(50%);
}

/* The count line and "What the icons mean" (design: AtAGlance): the line's words at the start, the legend's button at
   the end, wrapping under it when the words are long. With no count there is no button, and the row takes no part in
   the head's layout (contents), so the empty status above is still the only thing it holds. */
.sd-count-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: var(--space-4);
}

.sd-count-row:not(:has(.sd-icon-legend-button)) {
	display: contents;
}

.sd-count-row > .sd-count-line {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/*
 * The bag labels (design: BagLabels; docs/specs/orders-pickup.md, Bagging), printed through the browser's own print. A
 * true override of the spacing and type scales: a label is a physical thing, so every measure is a number of
 * `--sd-label-pt` (a point, an inch over 72), which the screen tokens cannot express; on the 4 × 6 printer the type is
 * 1.5 times larger, as drawn. Black on white in both themes, from the fixed print tokens: a label printer prints one
 * colour, and the paper is white in dark mode too.
 */

/* eslint-disable-next-line css/use-baseline -- print only: the 4 × 6 in label; a browser without it prints on its default page */
@page sd-labels-4x6 {
	size: 4in 6in;
	margin: 0;
}

/* eslint-disable-next-line css/use-baseline -- print only: letter with half-inch margins; a browser without it prints on its default page */
@page sd-labels-letter {
	size: letter;
	margin: 0.5in;
}

.sd-labels-print {
	display: none;
}

.sd-label {
	--sd-label-pt: calc(1in / 72);

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: calc(6 * var(--sd-label-pt));
	padding: calc(14 * var(--sd-label-pt));
	overflow: hidden;
	background: var(--print-paper);
	color: var(--print-ink);
	font-family: var(--font-sans);
	font-size: calc(11 * var(--sd-label-pt));
	line-height: 1.3;
	/* eslint-disable-next-line css/use-baseline -- print only: without it a browser may drop the reversed spot's black */
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}

.sd-labels-4x6 .sd-label {
	--sd-label-pt: calc(1.5in / 72);

	width: 4in;
	height: 6in;
	page: sd-labels-4x6;
	break-after: page;
}

/* Letter paper, four to a page: two by two in the 7.5 × 10 in inside the margins, with dashed lines to cut along. */
.sd-labels-letter {
	display: grid;
	grid-template-columns: repeat(2, 3.75in);
	grid-auto-rows: 5in;
	page: sd-labels-letter;
}

.sd-labels-letter .sd-label {
	border: calc(1 * var(--sd-label-pt)) dashed var(--print-ink);
	break-inside: avoid;
}

/* The order code: largest, mono, bold. */
.sd-label-code {
	margin: 0;
	font-family: var(--font-mono);
	font-size: calc(28 * var(--sd-label-pt));
	font-weight: 700;
	line-height: 1.1;
}

.sd-label-who {
	margin: 0;
	font-size: calc(13 * var(--sd-label-pt));
}

.sd-label-bag {
	display: flex;
	flex-wrap: wrap;
	gap: calc(6 * var(--sd-label-pt));
	align-items: stretch;
	font-size: calc(14 * var(--sd-label-pt));
	font-weight: 700;
}

/* "Bag 2 of 3" in an outlined box, and the spot reversed white out of black, to read from across the room. */
.sd-label-number {
	padding: calc(3 * var(--sd-label-pt)) calc(8 * var(--sd-label-pt));
	border: calc(2 * var(--sd-label-pt)) solid var(--print-ink);
}

.sd-label-spot {
	padding: calc(3 * var(--sd-label-pt)) calc(8 * var(--sd-label-pt));
	background: var(--print-ink);
	color: var(--print-paper);
}

.sd-label-items {
	flex: 1;
	margin: 0;
	padding: 0;
	overflow: hidden;
	list-style: none;
}

.sd-label-items li {
	display: flex;
	gap: calc(6 * var(--sd-label-pt));
}

.sd-label-quantity {
	flex: none;
	min-width: calc(22 * var(--sd-label-pt));
	font-family: var(--font-mono);
	font-weight: 700;
}

.sd-label-by {
	margin: 0;
	font-weight: 700;
}

@media print {
	/* Only on a page holding the labels: any other page prints as it always has. */
	body:has(> .sd-labels-print) > :not(.sd-labels-print) {
		/* eslint-disable-next-line css/no-important -- in print the labels must be the only thing on the page, whatever the page's own rules show */
		display: none !important;
	}

	.sd-labels-print {
		display: block;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* A take-out (spec: Take-outs; design: BaggingBags `TakeOut`): on Bagging and the team's order page, until Taken out is
   pressed. The drawn warning: short-soft inside a short border, 12px in, the radius of a card. */
.sd-bagging-take-out {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	padding: var(--space-3);
	border: var(--sd-line-width) solid var(--short);
	border-radius: var(--radius-md);
	background: var(--short-soft);
}

/* The glyph and the title in short, bold, the glyph at the title's first line. */
.sd-bagging-take-out-title {
	display: inline-flex;
	gap: var(--space-2);
	align-items: flex-start;
	color: var(--short);
}

.sd-bagging-take-out-title svg {
	flex: none;
	margin-block-start: var(--space-1);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* PickProgress (design: PickProgress; bundle `.sd-progress`). */
.sd-progress {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-progress-text {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-2);
}

.sd-progress-counts {
	color: var(--ink-muted);
}

.sd-progress-bar {
	height: 0.75rem;
	border-radius: var(--radius-pill);
	background: var(--surface-sunken);
	overflow: hidden;
}

.sd-progress-svg {
	display: block;
	width: 100%;
	height: 100%;
}

.sd-progress-got {
	fill: var(--pine);
}

.sd-progress-sub {
	fill: var(--sub);
}

.sd-progress-short {
	fill: var(--short);
}

/* Caption type from .sd-caption on the element, in ink rather than its muted ink (design: PickProgress). */
.sd-caption.sd-progress-text {
	color: var(--ink);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* Bagging one order part (design: BaggingBags): a phone's column; on a computer a narrow page, the team order page's
   width (design: Bagging; theme/page.css), centred in the space beside the orders to bag. */
.sd-bagging-page {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

/* The order head (design: BaggingBags `OrderHead`): the code, the shopper's name at title-1, the counts, close
   together as drawn. */
.sd-bagging-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.sd-bagging-head h2 {
	margin: 0;
}

/* A part of the order already collected (design: BaggingBags): its circle-check in pine. */
.sd-bagging-collected {
	display: inline-flex;
	align-items: baseline;
	gap: var(--space-1);
}

.sd-bagging-collected svg {
	color: var(--pine);
}

.sd-bagging-head .sd-kind-tag {
	margin-block-start: var(--space-1);
}

/* The fresh and frozen suggestion: a card outlined in pine. */
.sd-bagging-suggest {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--pine);
	border-radius: var(--sd-border-radius-lg);
	background: var(--surface-raised);
}

.sd-bagging-suggest-acts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* The bags, one under another on a phone; three across on a desktop (below). */
.sd-bagging-bags {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-bag-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--sd-border-radius-lg);
	background: var(--surface-raised);
	container: sd-bag / inline-size;
}

.sd-bag-head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
	justify-content: space-between;
}

.sd-bag-head h2 {
	margin: 0;
}

/* The spot's select: as wide as its words, never narrower than the drawn 120px. */
.sd-bag-spot {
	min-width: 7.5rem;
}

.sd-bag-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A line (design: BaggingBags `BItem`): the quantity, the name with its caption, and Move on the name's line, never
   wrapped under it; the approval marker under all three, across the row. */
.sd-bag-line {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: var(--space-2) var(--space-3);
	align-items: start;
	padding: var(--space-3) 0;
}

.sd-bag-line + .sd-bag-line {
	border-top: var(--sd-line-width) solid var(--line);
}

/* The quantity and, under it, the storage glyph, centred in the first column. */
.sd-bag-qty {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	align-items: center;
}

/* A narrow quantity to give the item's name room (0.75em, a value no token holds); a wider value
   such as "12×" grows past it rather than overflowing. */
.sd-bag-quantity {
	width: 0.75em;
	min-width: min-content;
	text-align: center;
}

.sd-bag-storage {
	color: var(--ink-muted);
}

/* The name at most two lines, cut with an ellipsis; the whole name is its title and still in the page for a screen
   reader. */
.sd-bag-name {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow-wrap: anywhere;
}

/* Move or Remove on the name's line, at its end; read after the name and its caption. */
.sd-bag-line > .ant-btn {
	grid-row: 1;
	grid-column: 3;
}

/* The line under the name: a short Fresh or Frozen right under it, beside Move, which spans both rows; a substitute's
   "Swapped for" from the name's column to the row's end, under Move, so it is not squeezed into the name's width. */
.sd-bag-under {
	grid-row: 2;
	grid-column: 2;
	margin-block-start: calc(var(--space-1) - var(--space-2));
}

.sd-bag-line:has(> .sd-bag-under.sd-caption) > .ant-btn {
	grid-row: 1 / span 2;
}

.sd-bag-under.sd-bag-swapped {
	grid-column: 2 / -1;
}

/* A narrow bag (design: BaggingBags: under 280px, a small phone or 200% text): the name runs to
   as many lines as it needs, the line under it takes the row's full width, and Move or Remove drops under them. */
@container sd-bag (width < 17.5rem) {
	.sd-bag-name {
		display: block;
		overflow: visible;
		-webkit-line-clamp: unset;
	}

	.sd-bag-under,
	.sd-bag-under.sd-bag-swapped {
		grid-column: 1 / -1;
		margin-block-start: 0;
	}

	.sd-bag-line > .ant-btn,
	.sd-bag-line:has(> .sd-bag-under.sd-caption) > .ant-btn {
		grid-row: 3;
		grid-column: 1 / -1;
		justify-self: start;
	}
}

/* A line the shopper said No thanks to: in danger red, its Remove (a danger button) beside it (design: BaggingBags). */
.sd-bag-line-declined {
	color: var(--danger);
	font-weight: 700;
}

.sd-bag-line-declined .sd-caption,
.sd-bag-line-declined .sd-bag-storage {
	color: var(--danger);
}

.sd-bag-swapped {
	color: var(--sub);
	font-weight: 700;
}

.sd-bag-empty,
.sd-bagging-shorts {
	margin: 0;
}

/* On a phone the actions stack, each as wide as the page (a column's items stretch); Print's label line sits under it. */
.sd-bagging-acts,
.sd-bag-sheet-acts,
.sd-bagging-print,
.sd-bagging-ready {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* A desktop (design: BaggingBags), from the side column's width (64em, PORTAL_DRAWER_QUERY): the narrow page, its bags
   side by side 16px apart, and one row of actions: Print labels with its line beside it and Mark ready for pickup at the
   row's end, none of them squeezed. */
@media (min-width: 64em) {
	.sd-bagging-page {
		gap: var(--space-4);
	}

	/* As many bags across as fit at 15rem or more, but never more than three: a fourth, and the
	   Add a bag tile, go to the next column, however wide the screen. Three at 1440, as drawn, two at 1280 and one
	   beside the column at 1024, so an item's name and Move keep room on its line. Masonry:
	   newspaper columns, so a short bag leaves no hole under it and the bags read in one order, down the first column
	   and on to the next, Add a bag last. A bag is never split across two columns. */
	.sd-bagging-bags {
		display: block;
		columns: 3 15rem;
		column-gap: var(--space-4);
	}

	/* One or two bags share the width (one full, two at half) rather than leave the third columns empty, so each item's
	   name and Move stay on one line. */
	.sd-bagging-bags-1 {
		columns: 1;
	}

	.sd-bagging-bags-2 {
		columns: 2 15rem;
	}

	.sd-bagging-bags > * {
		break-inside: avoid;
		margin-block-end: var(--space-4);
	}

	.sd-bagging-acts {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--space-3);
		padding-block-start: var(--space-1);
	}

	.sd-bagging-acts > .ant-btn {
		flex: none;
	}

	/* Print labels with its line beside it, centred on the button. The line's measure in ch, so it wraps at about 40
	   characters whatever the text size. A text measure the spacing tokens cannot express. */
	.sd-bagging-print {
		flex-direction: row;
		flex: 0 1 auto;
		align-items: center;
		min-width: 0;
	}

	.sd-bagging-print > .sd-caption {
		max-inline-size: 40ch;
		min-width: 0;
	}

	/* The button keeps its label on one line; where the row is short of room (the narrow page beside the side column)
	   its line beside it wraps instead. */
	.sd-bagging-print > .ant-btn {
		flex: none;
	}

	/* Mark ready at the row's end, with what is still to come out under it, at the same measure as Print's line. */
	.sd-bagging-ready {
		flex: 0 1 auto;
		align-items: flex-end;
		margin-inline-start: auto;
		min-width: 0;
	}

	.sd-bagging-ready > .sd-caption {
		max-inline-size: 40ch;
		text-align: end;
	}
}

/* A desktop's orders to bag at the left of the order (design: BaggingBags): the side column, from the
   header to the foot of the frame, its progress over the rows and a line between it and the order. The frame's main
   is a column here only so the layout fills it: the page scrolls as a document (theme/frame.css) and the column runs
   the frame's full height beside it. */
.sd-portal-main:has(> .sd-bagging-layout) {
	display: flex;
	flex-direction: column;
}

.sd-bagging-layout {
	flex: 1 0 auto;
}

/* From 768px (design: BaggingBags, Tablet 768) the orders to bag and the open order sit side by side; below it the page
   draws the order alone. The order keeps its own page, centred in the space beside the column, 24px above and below. */
@media (min-width: 48em) {
	.sd-bagging-layout {
		display: grid;
		grid-template-columns: var(--side-column) minmax(0, 1fr);
		gap: var(--space-6);
		align-items: start;
	}

	.sd-bagging-layout .sd-bagging-page {
		padding-block: var(--space-6);
	}
}

.sd-bagging-column {
	align-self: stretch;
	border-inline-end: var(--sd-line-width) solid var(--line);
	background: var(--surface-raised);
}

/* What the column holds stays in view as the page scrolls, and scrolls on its own when it is taller than the window
   (theme/frame.css's viewport height). */
.sd-bagging-column-inner {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	max-height: var(--sd-viewport-block);
	overflow-y: auto;
}

.sd-bagging-column:focus {
	outline: none;
}

.sd-bagging-column-progress {
	padding: var(--space-4);
	border-block-end: var(--sd-line-width) solid var(--line);
}

.sd-bagging-column-progress:empty {
	display: none;
}

.sd-bagging-column-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A row (design: BaggingBags `ListRow`): the name at the left and the code at the right, one caption, a tag; the
   drawn 4px edge kept clear on every row, so the marked one's text does not move. */
.sd-bagging-column-row {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-4);
	border-block-end: var(--sd-line-width) solid var(--line);
	border-inline-start: calc(var(--sd-line-width) * 4) solid transparent;
}

/* The whole row opens its order: the name's link stretches over the row, so the name stays the link's accessible name
   and the row holds one control. */
.sd-bagging-column-name::after {
	content: '';
	position: absolute;
	inset: 0;
}

.sd-bagging-column-row:hover .sd-bagging-column-name {
	text-decoration: underline;
}

/* The focus ring goes round the row the link covers, inside it: the column scrolls, and would clip a ring outside. */
.sd-bagging-column-name:focus-visible {
	outline: none;
}

.sd-bagging-column-row:has(.sd-bagging-column-name:focus-visible) {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: calc(var(--sd-line-width-focus) * -1);
}

.sd-bagging-column-top {
	display: flex;
	gap: var(--space-2);
	align-items: baseline;
	justify-content: space-between;
}

.sd-bagging-column-name {
	min-width: 0;
	color: var(--ink);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.sd-bagging-column-top > .sd-mono {
	flex: none;
}

.sd-bagging-column-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
}

/* An order whose suppliers are not all finished (design: BaggingBags `DListRow`, wait): on the page's surface, the
   clock before its line. */
.sd-bagging-column-waiting {
	gap: var(--space-1);
	background: var(--surface);
}

.sd-bagging-column-wait {
	display: inline-flex;
	gap: var(--space-2);
	align-items: baseline;
}

/* The order on screen (design: BaggingBags `ListRow`, selected): pine-soft with the pine edge; while it has a
   take-out, the take-out's short-soft with the short edge. */
.sd-bagging-column-rows > .sd-bagging-column-current {
	border-inline-start-color: var(--pine);
	background: var(--pine-soft);
}

.sd-bagging-column-rows > .sd-bagging-column-current-take-out {
	border-inline-start-color: var(--short);
	background: var(--short-soft);
}

/* Its own tags on that fill: the error tag's danger-soft all but vanishes on short-soft, so they sit on the raised
   surface inside a short outline. A look the tag's tokens cannot give on this one row. */
.sd-bagging-column-rows > .sd-bagging-column-current-take-out .sd-kind-tag.ant-tag {
	border-color: var(--short);
	background: var(--surface-raised);
}

/* A take-out's notice in a list row at 768px, across the row's width (design: BaggingBags `ListRow`, Tablet 768). */
.sd-bagging-column-row .sd-bagging-take-out {
	align-self: stretch;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from Ant Design's theme (cssVar prefix sd) */

/*
 * The row expand button. One line of the cell tall and wide (1lh, with the cell's font inherited), so a row that can
 * open is exactly as tall as one that cannot. Ant Design's small Button is controlHeightSM (36px in this theme), which
 * made rows with details taller than their neighbours.
 */
.sd-data-table-expand {
	display: inline-grid;
	place-items: center;
	inline-size: 1lh;
	block-size: 1lh;
	padding: 0;
	border: 0;
	border-radius: var(--sd-border-radius-sm);
	background: transparent;
	color: var(--sd-color-text-secondary);
	font: inherit;
	vertical-align: top;
	cursor: pointer;
}

.sd-data-table-expand:hover {
	background: var(--sd-color-fill-tertiary);
	color: var(--sd-color-text);
}

/* The direction a column is sorted in, coloured as Ant Design colours its active sort caret. */
.sd-data-table-sorted {
	color: var(--sd-color-primary);
}

/* A loading cell's bar (DataTable `skeleton`): a line of text tall, most of the column wide. In rem so it keeps pace
   with the text it stands in for. */
.sd-data-table-skel {
	height: 0.875rem;
	width: 70%;
}

/* The bar is a block narrower than its cell, so text-align cannot move it: the column's alignment is applied to the
   bar itself (DataTable adds the column's `align` as a class). */
.sd-data-table-skel-end,
.sd-data-table-skel-right {
	margin-inline-start: auto;
}

.sd-data-table-skel-center {
	margin-inline: auto;
}

/* The pager's words ("Newest first · 1–25 of 37 New") at its start, the page buttons at its end. Ant Design puts the
   total text first in the pager's flex row; the auto margin takes the free space after it. */
.ant-table-pagination .ant-pagination-total-text {
	margin-inline-end: auto;
	color: var(--sd-color-text-secondary);
}

/* How tall a table is (DataTable `height`, docs/specs/staff-tables.md): the cap and the fill minimum are the frame's
   tokens (theme/frame.css), never a measured number, so nothing the table draws changes them.

   Every selector below walks the boxes Ant Design draws round the table with child combinators, from the wrapper down:
   wrapper > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table. A
   descendant selector would also reach an Ant Design Table or Spin drawn inside a row's expanded details, and make its
   scroller a second one. DataTable.test.tsx draws a table
   inside an expanded row and fails if any rule reaches it. */

/* A table with a height is one <table> (DataTable.tsx says why): the box Ant Design draws round it,
   `.ant-table-content`, is the scroller, in both axes. Ant Design writes `overflow-y: hidden` on that box inline (its
   own value for a table that scrolls only sideways), so this override needs `!important` to let the rows scroll. */
.sd-data-table-fill > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content,
.sd-data-table-capped > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content {
	overflow: auto;
	/* eslint-disable-next-line css/no-important -- Ant Design writes overflow-y: hidden on this box inline, which only an important declaration outranks */
	overflow-y: auto !important;
}

/* The header stays put over the rows: each header cell is sticky to the scroller's top, on the header's own background
   so no row shows through it. The rows are one stacking layer under it (`z-index: 0` on the body), so no body cell, a
   pinned one with Ant Design's own z-index included, is drawn over a header cell. */
.sd-data-table-fill > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table > .ant-table-tbody,
.sd-data-table-capped > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table > .ant-table-tbody {
	position: relative;
	z-index: 0;
}

.sd-data-table-fill > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table > .ant-table-thead > tr > th,
.sd-data-table-capped > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table > .ant-table-thead > tr > th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--sd-table-header-bg);
}

/* A pinned header cell (a column's `fixed`, as the Auditor's Event and IP) is sticky both ways: Ant Design gives it its
   side, this rule its top. It keeps Ant Design's own order among the pinned cells, above the header cells it passes. */
.sd-data-table-fill > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table > .ant-table-thead > tr > th.ant-table-cell-fix,
.sd-data-table-capped > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table > .ant-table-thead > tr > th.ant-table-cell-fix {
	z-index: calc(var(--z-offset-reverse, 0) + 2);
}

.sd-data-table-fill > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table > .ant-table-thead > tr > th.ant-table-cell-fix-start,
.sd-data-table-capped > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content > table > .ant-table-thead > tr > th.ant-table-cell-fix-start {
	z-index: calc(var(--z-offset, 0) + 2);
}

/* A capped table's rows scroll inside about two-thirds of the window. */
.sd-data-table-capped > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content {
	max-height: var(--sd-table-cap-block);
}

/* A filling table takes what its region leaves (a flex column: the staff list region, the Auditor's records) and is
   one itself, down through every box Ant Design draws to the scroller, which takes what is left and scrolls: the
   wrapper, its Spin (`.ant-spin`, drawn whether or not it is loading; its spinner, `.ant-spin-section`, is placed
   absolutely and takes no part), the Spin's container, the table and its container. One box left out is a block of
   no height, and the scroller inside it is 0px tall (as it is when `.ant-spin` is left out). Every box on
   the way carries `min-height: 0`, so the rows never push it taller. DataTable.test.tsx walks the boxes Ant Design
   really draws and fails for one left out. */
.sd-data-table-fill {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-height: var(--sd-table-fill-min-block);
}

.sd-data-table-fill > .ant-spin,
.sd-data-table-fill > .ant-spin > .ant-spin-container,
.sd-data-table-fill > .ant-spin > .ant-spin-container > .ant-table,
.sd-data-table-fill > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-height: 0;
}

.sd-data-table-fill > .ant-spin > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-content {
	flex: 1 1 0;
	min-height: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A store's table in its card (TableCard): the card's padding round the table, and the pager under it, inside the card.
   `min-width: 0` lets the table's own box scroll sideways inside the card rather than widen it. */
.sd-table-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
	padding: var(--space-4);
}

/* The rows are divided by the line between them only (design: `sd-table`, a line over each row): the card's edge closes
   the last row, so its own line under it is left out. Ant Design draws each cell's line by a rule of two classes; this
   one outranks it. */
.sd-table-card .ant-table-tbody > tr:last-child > td {
	border-bottom: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The pager under a list: its words at the start, Previous and Next at the end. */
.sd-range-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
}

/* Without words at the start, Previous and Next still sit at the end. */
.sd-range-pager-buttons {
	margin-inline-start: auto;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A staff list on a phone (StaffEnquiries, StaffUsers): one card of rows. */
.sd-row-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--surface-raised);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
}

.sd-row-list > li + li {
	border-top: var(--sd-line-width) solid var(--line);
}

/* The empty or failed state inside the card, padded as a row is, so its words never touch the card's edges. */
.sd-row-list-empty {
	padding: var(--space-4);
}

/* A row: its facts stacked, the chevron at the end. A touch target at least 44px. */
.sd-row-list-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: var(--touch-min);
	padding: var(--space-3) var(--space-4);
	color: var(--ink);
	text-decoration: none;
}

.sd-row-list-main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
	overflow-wrap: anywhere;
}

/* The chevron at the row's end keeps its size and its place: the row's facts wrap beside it, never under it. */
.sd-row-list-chevron {
	flex: none;
}

.sd-row-list-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The team's Orders list (design: StoreOrders). */
.sd-orders-page {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* The search and the tabs, one row on a desktop (the search from the side column's width up to the drawn 420px),
   wrapping on a phone. */
.sd-orders-tools {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
}

.sd-orders-search {
	flex: 1 1 var(--side-column);
	max-width: var(--search-max);
}

/* The drawn tabs (StoreOrders `Tabs`): the shared chip (theme/chips.css), as a pill, pine when chosen, each with its
   count; on a phone they wrap to two lines rather than scroll. An override of the chip's corner and its pressed look:
   the drawing makes the chosen tab solid pine, which a filter chip never is. */
.sd-orders-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.sd-chip.sd-orders-tab {
	border-radius: var(--radius-pill);
}

.sd-chip.sd-orders-tab-on,
.sd-chip.sd-orders-tab-on:hover {
	border-color: var(--pine);
	background: var(--pine);
	color: var(--on-pine);
}

.sd-orders-tab-count {
	font-family: var(--font-mono);
}

.sd-orders-lead {
	margin: 0;
}

.sd-orders-lead-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
	justify-content: space-between;
}

.sd-orders-list:focus {
	outline: none;
}

/* A phone row (StoreOrders `PRow`): the name and the code on one line, then the row's lines and its tag. */
/* A phone row's lines stack, each from the left (design: StoreOrders); named with the list row's class so it
   out-ranks the row list's centring, whatever order the styles load in. */
.sd-row-list-row.sd-orders-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-1);
}

.sd-orders-row-top {
	display: flex;
	gap: var(--space-2);
	align-items: baseline;
	justify-content: space-between;
}

.sd-orders-row-second {
	color: var(--ink);
}

.sd-orders-name {
	color: var(--ink);
	font-weight: 700;
}

.sd-orders-code,
.sd-orders-nowrap {
	white-space: nowrap;
}

.sd-orders-cell {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	align-items: flex-start;
}

.sd-orders-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* "Kept on Sun Nov 15 if nothing is done" (StoreOrders, NotCollected): in `short`, bold. */
.sd-orders-kept {
	color: var(--short);
	font-weight: 700;
}

/* To bag's count over the rows and the bagged progress under it (design: BaggingBags, PickProgress). */
.sd-orders-lead-progress {
	display: flex;
	flex: 1 1 var(--side-column);
	flex-direction: column;
	gap: var(--space-2);
}

/* A customer's name keeps to one line at desktop width; the items column wraps instead. */
td.sd-orders-customer {
	white-space: nowrap;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A section's problem line takes the error's colour and layout outside a Field from Field.css's shared rule (grey, the
   opening hours' line is easy to miss). Its icon is in the danger colour too. */
.sd-problem-line .sd-field-error-icon {
	color: var(--danger);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The team's order page (design: StoreOrderEdit) is a narrow page (theme/page.css), centred beside the side
   column. */

/* The order and, with something to do, its actions card (design: PickupExceptions): one column, the actions card under
   the order, until the page has its full narrow width (page-narrow, 50rem: a container query cannot read the token);
   there the order on the left and the 320px card on the right. Beside the side column that is from 1104px; narrower,
   the order would have less than its 448px beside the card, so the card goes under it, as on a phone. The page is never
   widened for it (PageWidths: never a one-off width). */
.sd-store-order-layout,
.sd-store-order-main {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

.sd-store-order-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-store-order-name {
	margin: 0;
}

@container sdpage (min-width: 50rem) {
	.sd-store-order-layout-aside {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--side-column);
		gap: var(--space-8);
		align-items: start;
	}

	.sd-store-order-layout-aside > .sd-store-order-actions {
		position: sticky;
		top: var(--space-8);
		max-width: none;
	}
}

/* The lock line and Call, side by side as the header bar's right and the lock card are drawn; stacked on a phone. */
.sd-store-order-top {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	align-items: flex-start;
}

/* The drawn lock card (StoreOrderEdit `LOCK`): the shared lock line, on the sunken surface at body size. An override:
   elsewhere the lock line is a bare caption. */
.sd-store-order-lock.sd-lock-line {
	flex: 1 1 20rem;
	padding: var(--space-4);
	border-radius: var(--sd-border-radius-lg);
	background: var(--surface-sunken);
	color: var(--ink);
	font-size: var(--sd-font-size);
	line-height: var(--sd-line-height);
}

.sd-store-order-card {
	overflow: hidden;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--sd-border-radius-lg);
	background: var(--surface-raised);
}

.sd-store-order-card-head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
	justify-content: space-between;
	padding: var(--space-3) var(--space-4);
}

.sd-store-order-card-head h2 {
	margin: 0;
}

.sd-store-order-rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Show more at the card's foot (design: StoreOrderEdit), a text button under a rule. */
.sd-store-order-more {
	padding: var(--space-2) var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
}

/* A row (design: `ERow`): the item, the stepper, the price and the trash, on a ground that says its state. */
.sd-store-order-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto auto;
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-3) var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-store-order-row-fixed {
	/* A card no row of which may change draws no trash column: no empty column at the row's end. */
	grid-template-columns: minmax(0, 1fr) auto auto;
}

.sd-store-order-row-off {
	background: var(--surface-sunken);
}

.sd-store-order-row-wait {
	background: var(--estimate-soft);
}

.sd-store-order-row-changed {
	background: var(--sub-soft);
}

.sd-store-order-item {
	min-width: 0;
}

.sd-store-order-name-off {
	color: var(--ink-muted);
	text-decoration: line-through;
}

.sd-store-order-note {
	color: var(--sub);
}

.sd-store-order-answer-wait {
	color: var(--estimate);
}

.sd-store-order-answer-yes {
	color: var(--pine);
}

.sd-store-order-answer-no,
.sd-store-order-answer-lapsed {
	color: var(--ink-muted);
}

.sd-store-order-price,
.sd-store-order-quantity {
	font-family: var(--font-mono);
	font-weight: 600;
	text-align: right;
}

.sd-store-order-price {
	min-width: 4rem;
}

/* The trash's place is kept on a row with none, so the prices line up. */
.sd-store-order-trash {
	min-width: var(--sd-control-height-lg);
}

/* The reason and the note, side by side as drawn (`Why`, `sd-grid2`); one over the other on a phone. */
.sd-store-order-why {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
	align-items: start;
}

.sd-store-order-acts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
}

.sd-store-order-saved {
	margin: 0;
}

/* A phone (design: StoreOrderEdit `PRow`): the name and price on a line, the stepper and trash under them. */
@media (max-width: 47.9375em) {
	.sd-store-order-row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			'item price'
			'control trash';
		gap: var(--space-2);
	}

	.sd-store-order-item {
		grid-area: item;
	}

	.sd-store-order-price {
		grid-area: price;
	}

	.sd-store-order-control {
		grid-area: control;
	}

	.sd-store-order-trash {
		grid-area: trash;
		justify-self: end;
	}

	.sd-store-order-why {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The shopper's standing (design: ShopperBlock, its order page lines): the missed pickups, a block or Pay before we
   shop, and their buttons, 8px apart; and the Block and Lift dialogs' parts, 16px apart, as the Skip dialog's. */
.sd-standing {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-standing p,
.sd-standing-dialog p {
	margin: 0;
}

.sd-standing-dialog {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* Who the shopper said may collect (design: PickupExceptions): the users glyph and the line, bold. */
.sd-store-order-collector {
	display: flex;
	gap: var(--space-2);
	align-items: baseline;
	margin: 0;
	font-weight: 700;
}

/* The order's actions card (design: PickupExceptions, the actions card): Paid at the store and its caption, then Mark
   collected by hand and its lines, Give more time and Keep it, and on a not-collected order the standing actions, one
   under another, 8px apart, in the house card. */
.sd-store-order-actions {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	max-width: var(--side-column);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--sd-border-radius-lg);
	background: var(--surface-raised);
}

.sd-store-order-actions p,
.sd-by-hand p {
	margin: 0;
}

.sd-by-hand {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* The hand-mark sheet's parts, 16px apart, as the Block dialog's; its buttons one a line (the sheet's footer). */
.sd-by-hand-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-by-hand-body p {
	margin: 0;
}

.sd-by-hand-acts {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* One of the store's swaps (design: PickupExceptions, "Hilltop's substitutes"): its own group on sub-soft, on the sunken
   surface once the shopper said No thanks; the over group on
   estimate-soft. Either is outlined in danger while it is left unanswered on press. */
.sd-by-hand-sub,
.sd-by-hand-over-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-3);
	border-radius: var(--sd-border-radius-lg);
	background: var(--sub-soft);
}

.sd-by-hand-over-group {
	background: var(--estimate-soft);
}

.sd-by-hand-declined {
	background: var(--surface-sunken);
}

/* "Over Pat's hold" and its amount on one row. */
.sd-by-hand-over-head {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	font-weight: 700;
}

/* The items over the hold under their label, the groups 8px apart. */
.sd-by-hand-items,
.sd-by-hand-now {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* The tick's two caption lines, one a line. */
.sd-by-hand-help-line {
	display: block;
}

.sd-by-hand-missing {
	outline: calc(var(--sd-line-width) * 2) solid var(--danger);
}

.sd-by-hand-item {
	font-weight: 700;
}

.sd-by-hand-over {
	color: var(--ink);
}

/* The tab on the order (design: StoreTab and PickupExceptions, `TabBox`): what is owed, on estimate-soft, the amount
   in the estimate colour. */
.sd-store-order-tab {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-4);
	border-radius: var(--sd-border-radius-lg);
	background: var(--estimate-soft);
}

.sd-store-order-tab p {
	margin: 0;
}

.sd-store-order-tab-head {
	display: flex;
	gap: var(--space-2);
	align-items: baseline;
	justify-content: space-between;
	font-weight: 700;
}

.sd-store-order-tab-amount {
	color: var(--estimate);
	font-family: var(--font-mono);
	font-size: var(--sd-font-size-xl);
}

/* The tab box's line is read in the ink colour on estimate-soft, as drawn (`TabBox`); an override of the caption's
   muted colour. */
.sd-store-order-tab-line {
	color: var(--ink);
}

/* A tab paid at the store (design: StoreTab 6): the same box on pine-soft. */
.sd-store-order-tab-paid {
	background: var(--pine-soft);
}

/* A tab closed unpaid (design: StoreTab 7): the same box on the sunken surface. */
.sd-store-order-tab-closed {
	background: var(--surface-sunken);
}

/* The To pay card's parts 8px apart, as drawn (PickupExceptions `OwedBox`). */
.sd-store-order-to-pay {
	gap: var(--space-2);
}

/* A line with its glyph (design: StoreTab `Line`): the closed tab's goods and fee. */
.sd-store-order-icon-line {
	display: flex;
	gap: var(--space-2);
	align-items: baseline;
	margin: 0;
}

.sd-store-order-icon-line svg {
	color: var(--ink-muted);
}

/* The name and the tab's head tag (design: StoreTab `Head`), the tag at the row's end. */
.sd-store-order-name-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: flex-start;
	justify-content: space-between;
}

/* The order page's items over the hold as they stand (design: PickupExceptions `OverStatus`): each row's name, then its
   tag under it, divided by a line. */
.sd-store-order-over {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-store-order-over-head {
	margin: 0;
	font-weight: 700;
}

.sd-store-order-over-rows {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-store-order-over-row {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	align-items: flex-start;
	padding-block: var(--space-2);
	border-block-start: var(--sd-line-width) solid var(--line);
}

.sd-mark-paid-body {
	margin: 0;
}

/* Paid at the store's confirm: its words, then what is owed (OwedRows), 16px apart as the hand-mark sheet's parts. */
.sd-mark-paid-sheet {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* A pickup's facts under the title (design: PickupExceptions, "An order"): the phone and pick-up-by line, a tag a bag
   with its spot, and the payment state. */
.sd-store-order-facts {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-store-order-facts p {
	margin: 0;
}

.sd-store-order-bags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-store-order-paid {
	font-weight: 700;
}

/* A part's card head in an order in two parts (design: PickupExceptions): "Part 1 · Wed Oct 28" with its state tag on
   one row, then its line, its charge and the carry, 4px apart. */
/* A part's head (design: PickupExceptions, a card per part) sits at the top of its card, padded as the card's own heads
   are; the Items head under it brings its own padding, so none at its foot. Without it, "Part 1 · Wed Nov 18" sits
   on the card's border. */
.sd-store-order-part-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-3) var(--space-4) 0;
}

.sd-store-order-part-head p {
	margin: 0;
}

.sd-store-order-part-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* "Lowered from $1.20 to $0.80 at pickup." under an over tab's row in To pay. */
.sd-store-order-lowered {
	display: block;
}

/* "Pat won't pay the $1.20 over the hold": a text button flush with the cards' edge (the shared sd-btn-flush sets it). */
.sd-store-order-wont-pay {
	align-self: flex-start;
}

/* Not collected's box (design: NotCollected): on short-soft, its lines 8px apart; "Kept on {date} if nothing is done"
   with the calendar, bold. */
.sd-store-order-not-collected {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4);
	border-radius: var(--sd-border-radius-lg);
	background: var(--short-soft);
	color: var(--ink);
}

.sd-store-order-not-collected p {
	margin: 0;
}

/* An order in two parts: its parts listed inside the one box (design: NotCollected), hairlines between. */
.sd-store-order-nc-parts {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-store-order-nc-parts li {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-2) 0;
	border-bottom: var(--sd-line-width) solid var(--line);
}

.sd-store-order-nc-part {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	justify-content: space-between;
}

.sd-store-order-kept {
	display: flex;
	gap: var(--space-2);
	align-items: baseline;
	font-weight: 700;
}

/* Give more time's date field, under A date. */
.sd-more-time-date {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Set by: the layer's icon and words; a product's own setting bold; overtaken in estimate with the alert. */
.sd-setby {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
	color: var(--ink);
}

.sd-setby-own {
	font-weight: 700;
}

.sd-setby-over {
	color: var(--estimate);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The owner's Pricing (design: StorePricing). Tokens only. */

.sd-pricing {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

/* A card of the page (the drawing's `sd-card`, padding 24): the layers and the breakdown. */
.sd-pricing-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
	padding: var(--space-6);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

/* "See an example" sits at the start of the card's column, as wide as its words, like the lines around it. */
.sd-pricing-card > .sd-pricing-example {
	align-self: flex-start;
}

.sd-pricing-card > h2,
.sd-pricing-card > p,
.sd-pricing-products > h2,
.sd-pricing-section-head > * {
	margin: 0;
}

/* The four layers: one row each, its icon at a fixed width, the words, and its button at the end. */
.sd-pricing-layers {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-pricing-layer {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-pricing-layer-icon {
	flex: none;
	color: var(--ink-muted);
}

.sd-pricing-layer-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

/* A phone, and large text: the button wraps under the words rather than squeezing them (the drawing's narrow row). */
@media (max-width: 47.9375em) {
	.sd-pricing-layer {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.sd-pricing-layer-text {
		flex: 1 1 8.75rem;
	}
}

.sd-pricing-products {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
}

.sd-pricing-section-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* The filters (drawn: Search, then Supplier, Aisle and Set by, their labels above), wrapping on a narrow screen. */
.sd-pricing-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-3);
}

.sd-pricing-filters > .sd-field {
	margin: 0;
}

.sd-pricing-search {
	display: flex;
	flex: 1 1 15rem;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-pricing-filter {
	min-width: 11.25rem;
}

/* A phone's Set by, chosen by See them: said in the select's place, with its close button. */
.sd-pricing-chosen {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	padding-inline-start: var(--space-3);
	border-radius: var(--radius-md);
	background: var(--pine-soft);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

/* The bulk bar (drawn: pine-soft, over the table; on a phone, at the foot of the screen with full-width buttons). */
.sd-pricing-bulk {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
	background: var(--pine-soft);
}

.sd-pricing-bulk-phone {
	position: sticky;
	bottom: 0;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-2);
	padding: var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
	border-radius: 0;
	background: var(--surface-raised);
	box-shadow: var(--shadow-overlay);
}

.sd-pricing-row-selected > td {
	background: var(--pine-soft);
}

.sd-pricing-pick,
.sd-pricing-open {
	width: var(--touch-min);
}

.sd-pricing-product {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* Money is mono, right-aligned in its column; the store's price at the body-large size (drawn: 16 beside 14). */
.sd-pricing-money {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sd-pricing-money-lg {
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
}

.sd-pricing-over-note {
	color: var(--estimate);
}

.sd-pricing-over-note {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
	font-weight: 700;
}

/* Review sits in the note's line as a link (drawn), so Ant Design's link button loses its box. */
.sd-pricing-review.ant-btn {
	height: auto;
	padding: 0;
	font-weight: 700;
	vertical-align: baseline;
}

.sd-pricing-below {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	color: var(--short);
}

/* The phone's row: the checkbox, then name and price on one line, the supplier line, Set by, and the breakdown button. */
.sd-pricing-phone-row {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
}

.sd-pricing-phone-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-2);
}

/* The desktop breakdown beside the table (drawn: a 380px side card). At 80em and below Products draws it as a row of the
   table instead (ROW_BREAKDOWN_QUERY in utils/breakpoints.ts, the one place that width is written), so this grid has
   no narrow form. */
.sd-pricing-with-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 23.75rem;
	align-items: start;
	gap: var(--space-4);
}

.sd-pricing-table {
	min-width: 0;
}

/* The open product's breakdown as a row under it (at 80em and below): the card's content with no frame of its own, the
   row's cell already being the container. Its background follows the open row's. */
.sd-pricing-breakdown-inrow {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
	box-sizing: border-box;
	padding: var(--space-6) var(--space-6) var(--space-8);
	/* The row's cell is as wide as the table, which scrolls sideways once the columns no longer fit (200% text): the
	   breakdown keeps to the part of the table in view, at its left edge, so no figure or button is off to the side. */
	position: sticky;
	left: 0;
	width: 100cqi;
}

/* The table's sideways scroller is the breakdown's measure (100cqi above). */
.sd-pricing-list .ant-table-content {
	container-type: inline-size;
}

/* Ant Design pads every cell by a selector that outranks a single class; the breakdown brings its own padding. */
.sd-pricing-list .ant-table-wrapper tr.ant-table-expanded-row > td:has(.sd-pricing-breakdown-inrow) {
	padding: 0;
}

.sd-pricing-row-open > td {
	background: var(--pine-soft);
}

/* Ant Design draws an expanded row's cells from this variable, by a selector that outranks one of ours. */
.ant-table-expanded-row:has(.sd-pricing-breakdown-inrow) {
	--sd-table-row-expanded-bg: var(--pine-soft);
}

.sd-pricing-breakdown-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-pricing-breakdown-head h3 {
	margin: 0;
}

.sd-pricing-figures dd {
	font-family: var(--font-mono);
	font-weight: 600;
	text-align: right;
}

.sd-pricing-over {
	margin: 0;
}

.sd-pricing-over b {
	color: var(--ink);
}

/* The one-price line (drawn: a sunken box). */
.sd-pricing-one-price {
	margin: 0;
	padding: var(--space-3);
	border-radius: var(--radius-md);
	background: var(--surface);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

.sd-pricing-back.ant-btn {
	align-self: flex-start;
}

/* The dialogs: the field, then the list of prices before and after. */
.sd-pricing-dialog {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-pricing-dialog > p {
	margin: 0;
}

.sd-pricing-markup-input,
.sd-pricing-price-input {
	max-width: 7.5rem;
	font-family: var(--font-mono);
}

.sd-pricing-changes {
	margin: 0;
	padding-left: var(--space-5);
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-line);
}

.sd-pricing-layer-fields {
	display: flex;
	flex-direction: column;
	max-height: 50vh;
	overflow-y: auto;
}

/* One supplier or aisle (StorePricing's layer dialog): a line with a hairline above it, the name in bold over
   its count, then a 120px column holding the 88px mono field and its bold %. */
.sd-pricing-layer-field {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 7.5rem;
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-2) 0;
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-pricing-layer-field-name {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-pricing-layer-field .sd-field {
	margin: 0;
}

.sd-pricing-layer-input {
	width: 5.5rem;
	text-align: right;
}

.sd-pricing-warning {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0;
	font-weight: 700;
	color: var(--estimate);
}

.sd-pricing-break-even {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.sd-pricing-break-even > .sd-banner {
	flex: 1 1 20rem;
}

.sd-pricing-list:focus {
	outline: none;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A list of facts, label then value (`.sd-dl`); one column under 24em (StaffCatalogueLargeText). */
.sd-fact-list {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-1) var(--space-4);
	margin: 0;
	font-size: var(--sd-font-size-sm);
	line-height: var(--type-caption-line);
}

.sd-fact-list-row {
	display: contents;
}

.sd-fact-list dt {
	color: var(--ink-muted);
}

.sd-fact-list dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: break-word;
}

@media (max-width: 24em) {
	.sd-fact-list {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--space-1);
	}

	.sd-fact-list dd {
		margin-bottom: var(--space-2);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/*
 * The pick list (design: PickList, PickListRow, PickListDrawers, PickListScreens, PickListLargeText; the design system
 * bundle's `.sd-pick*`). Built for one hand in a warehouse aisle: Got and Short at `touch-aisle` height, the
 * quantity large in mono. Sizes are the tokens', in rem, so they grow with the person's text size (PickListLargeText:
 * targets scale up with the text, never down).
 */

/* The header: title and caption, the tools, the supplier switch and the progress, pinned at the top (design:
   PickList, "pinned progress"). */
.sd-pick-head {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-2) 0 var(--space-3);
	background: var(--surface);
	border-bottom: var(--sd-line-width) solid var(--line);
}

.sd-pick-head-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-2);
}

.sd-pick-head-title {
	min-width: 0;
}

.sd-pick-head-caption {
	margin: 0;
}

.sd-pick-head-tools {
	display: flex;
	flex: none;
	gap: 0;
}

.sd-pick-iconbtn.ant-btn {
	min-width: var(--touch-min);
	min-height: var(--touch-min);
}

/* The supplier switch (design: PickListScreens, a segmented control): the two buttons share the width. A radio group
   of buttons rather than Segmented, whose radios Ant Design hides from the tab order. */
.sd-pick-suppliers.ant-radio-group {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
}

.sd-pick-suppliers .ant-radio-button-wrapper {
	min-height: var(--touch-min);
	height: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal;
}

.sd-pick-supplier-count {
	color: var(--ink-muted);
}

.sd-pick-mono {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}

/* The status lines under the header (design: PickListScreens, Sync; PickListOffline): the saved line in pine-soft over
   the sync line, quiet and sunken, pine once everything is sent. The words are one status region; Send now beside it
   wraps under the words on a phone, on the same sunken band.
   Its own class names, not the row's `.sd-pick-status`, whose touch-sized min-height would leave an empty band
   between the progress and the first aisle on a phone. */
.sd-pick-syncband {
	display: flex;
	flex-wrap: wrap;
	background: var(--surface-sunken);
	border-bottom: var(--sd-line-width) solid var(--line);
}

/* Nothing to say: the status region stays in the page, so its next words are announced, but takes no room, not even
   the page column's gap (out of the flow, as `sd-visually-hidden` is). */
.sd-pick-syncband-empty {
	position: absolute;
	border: 0;
	background: none;
}

.sd-pick-syncband-said {
	display: flex;
	flex: 1 1 16em;
	flex-direction: column;
	min-width: 0;
}

.sd-pick-saved {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	margin: 0;
	padding: var(--space-2) var(--space-4);
	background: var(--pine-soft);
	color: var(--ink);
}

.sd-pick-saved > svg {
	margin-top: calc(var(--space-1) / 2);
	color: var(--pine);
}

.sd-pick-sync {
	margin: 0;
	padding: var(--space-2) var(--space-4);
	font-weight: 700;
	color: var(--ink);
}

.sd-pick-sync-words {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
}

.sd-pick-sync-acts {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
	padding: var(--space-2) var(--space-4);
}

.sd-pick-sync-sent {
	color: var(--pine);
}

/* Resume (design: RunStart): the sub-soft line with the history icon. */
.sd-pick-resume {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	margin: var(--space-3) 0 0;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-md);
	background: var(--sub-soft);
	color: var(--ink);
}

.sd-pick-resume .sd-status-icon {
	color: var(--sub);
}

/* The banners, the matches line and the list are spaced by the page column's own gap (`.sd-yourstore-page`), so none
   of them adds a margin of its own: one on top of the gap left the first aisle far under the progress on a phone. */
.sd-pick-matches {
	margin: 0;
}

.sd-pick-list:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* The aisle headers (design: PickList, `Sec`): muted, bold, in capitals as drawn. */
.sd-pick-aisle-head {
	margin: 0;
	padding: var(--space-3) var(--space-4) var(--space-2);
	background: var(--surface);
	border-bottom: var(--sd-line-width) solid var(--line);
	color: var(--ink-muted);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* PickListRow (design system bundle `.sd-pick`). */
.sd-pick {
	container-type: inline-size;
	display: grid;
	grid-template-columns: minmax(3rem, auto) minmax(0, 1fr);
	gap: var(--space-3);
	padding: var(--space-4);
	background: var(--surface-raised);
	border-bottom: var(--sd-line-width) solid var(--line);
	min-height: var(--row-aisle);
}

.sd-pick:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: calc(-1 * var(--sd-line-width-focus));
}

.sd-pick-qty {
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: var(--type-qty-aisle-size);
	line-height: var(--type-qty-aisle-line);
	font-variant-numeric: tabular-nums;
}

.sd-pick-text {
	min-width: 0;
}

.sd-pick-name {
	font-size: var(--type-body-lg-size);
	line-height: var(--type-body-lg-line);
	overflow-wrap: anywhere;
	hyphens: auto;
}

.sd-pick-meta {
	color: var(--ink-muted);
}

.sd-pick-orders {
	font: inherit;
	color: var(--pine);
	font-weight: 700;
	background: none;
	border: 0;
	padding: 0;
	min-height: var(--touch-min);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.sd-pick-price s,
.sd-pick-price b {
	font-family: var(--font-mono);
}

.sd-pick-price b {
	color: var(--ink);
}

.sd-pick-choices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1) var(--space-3);
	margin-top: var(--space-1);
	font-weight: 700;
}

.sd-pick-choices > span {
	display: inline-flex;
	align-items: flex-start;
	gap: var(--space-1);
}

.sd-pick-ok {
	color: var(--sub);
}

.sd-pick-no {
	color: var(--ink-muted);
}

.sd-pick-nothold {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1);
	margin-top: var(--space-1);
	font-weight: 700;
	color: var(--danger);
}

.sd-pick-acts {
	grid-column: 1 / -1;
	display: grid;
	/* Got and Short: no Sub on the row; a substitute is chosen in Short's sheet. */
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--space-2);
}

.sd-pick-act {
	font: inherit;
	font-weight: 700;
	min-height: var(--touch-aisle);
	border-radius: var(--radius-md);
	border: var(--sd-line-width-focus) solid var(--line-strong);
	background: var(--surface-raised);
	color: var(--ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	cursor: pointer;
	padding: 0 var(--space-2);
}

.sd-pick-act:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

.sd-pick-act-got {
	border-color: var(--pine);
	background: var(--pine);
	color: var(--on-pine);
}

.sd-pick-act:disabled {
	border-color: var(--line);
	background: var(--surface-sunken);
	color: var(--ink-muted);
	cursor: not-allowed;
}

/* The drawn text button: 4px at its sides (the design's `.sd-pick-pricebtn { padding: 0 4px }`), not Ant Design's own. */
.sd-pick-pricebtn.ant-btn {
	justify-self: start;
	padding-inline: var(--space-1);
}

/* Under a row still to do: Price changed?, and Undo at the right while a press stands on it (a substitute bought for
   some of its orders). */
.sd-pick-todo-foot {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-pick-status {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	min-height: var(--touch-min);
	font-weight: 700;
}

.sd-pick-said {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-pick-count {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-pick-of {
	color: var(--ink);
	font-weight: 400;
}

.sd-pick-undo.ant-btn {
	margin-left: auto;
}

.sd-pick-got {
	background: var(--surface);
}

.sd-pick-got .sd-pick-name,
.sd-pick-got .sd-pick-qty {
	color: var(--ink-muted);
}

.sd-pick-got .sd-pick-said {
	color: var(--pine);
}

.sd-pick-short {
	background: var(--short-soft);
}

.sd-pick-short .sd-pick-said {
	color: var(--short);
}

.sd-pick-sub {
	background: var(--sub-soft);
}

.sd-pick-sub .sd-pick-said {
	color: var(--sub);
}

.sd-pick-shortfall,
.sd-pick-goes {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: var(--space-1);
	font-weight: 700;
}

.sd-pick-shortfall {
	color: var(--short);
}

.sd-pick-goes {
	color: var(--ink);
}

.sd-pick-subname {
	grid-column: 1 / -1;
}

.sd-pick-refused {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-pick-refused .sd-error-line {
	margin: 0;
}

/* 200% text, or a narrow row (design: PickListLargeText, the bundle's container query): the buttons one a line, Got
   on top (with Got and Short alone on the row, as Got across the top left Short half a line), the status and its
   stepper wrapping. */
@container (max-width: 20em) {
	.sd-pick-acts {
		grid-template-columns: minmax(0, 1fr);
	}

	.sd-pick-act {
		min-width: 0;
		padding: 0 var(--space-1);
		gap: var(--space-1);
	}

	.sd-pick-status {
		row-gap: var(--space-2);
	}

	.sd-pick-undo.ant-btn {
		margin-left: 0;
	}
}

/* Caption type comes from .sd-caption on each of these elements (theme/caption.css); these keep their own ink over the
   caption's muted one, as drawn (PickListScreens). */
.sd-caption.sd-pick-sync,
.sd-caption.sd-pick-resume,
.sd-caption.sd-pick-goes,
.sd-caption.sd-pick-choices,
.sd-caption.sd-pick-subname,
.sd-caption.sd-pick-pricebtn.ant-btn {
	color: var(--ink);
}

.sd-caption.sd-pick-nothold {
	color: var(--danger);
}

.sd-caption.sd-pick-shortfall {
	color: var(--short);
}

/* A mark that could not be saved: the words and Reload, side by side, wrapping on a phone. */
.sd-pick-stuck {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css (--space-*), which the CSS linter cannot resolve */

/* A past run (design: PastRun): under each read-only row, a line over its orders, then each order with what it got at
   the row's right, in bold and in the outcome's colour (got in ink, short and substituted in their own). */
.sd-past-shares {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin: 0;
	padding: var(--space-2) 0 0;
	border-top: var(--sd-line-width) solid var(--line);
	list-style: none;
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

.sd-past-share {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--space-3);
}

.sd-past-share-whose {
	flex: none;
	white-space: nowrap;
}

.sd-past-share-who {
	display: block;
}

.sd-past-share-outcome {
	min-width: 0;
	text-align: end;
}

.sd-past-share-short {
	color: var(--short);
}

.sd-past-share-sub {
	color: var(--sub);
}

/* A skipped run (design: PastRun): a card of the quiet tag with its reason, how many orders moved and whether their
   customers were emailed; the card is 560px wide at most (35rem), the tag as wide as its words. */
.sd-past-run-skipped {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	max-width: 35rem;
	padding: var(--space-4);
}

.sd-past-run-skipped > .sd-kind-tag {
	align-self: flex-start;
}

.sd-past-run-skipped p {
	margin: 0;
}

/* A finished run (design: PastRun): its summary and its list in the page's two columns (`sd-page-cols`). The summary
   comes first, so it sits above the list while there is one column; with room for two the list takes the main column
   and the summary the side column at its right, in the same row. */
@container sdpage (min-width: 54rem) {
	.sd-past-run-cols > .sd-past-run-list {
		grid-column: 1;
		grid-row: 1;
	}

	.sd-past-run-cols > .sd-past-run-summary {
		grid-column: 2;
		grid-row: 1;
	}
}

/* The list's rows draw their own padding and lines; the card only frames them. */
.sd-past-run-list {
	overflow: hidden;
}

/* The summary card (design: PastRun, `sd-card`): the badge and the started line, then Bought, On your tab and the
   counts, each its words then its value at the row's end (the shared OwedRow), in ink at the small body size. */
.sd-past-run-summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
}

.sd-past-run-summary-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-past-run-summary-head > p {
	margin: 0;
}

.sd-past-run-figures {
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
}

/* The spinner glyph, in rem so it follows the text size like the text around it: 16px, 32px and 48px at the default
   size. Qualified by Ant Design's `.ant-spin .ant-spin-dot` (which sets the dot's font size, 26px) so these win. */
.ant-spin .ant-spin-dot.sd-app-spin-small {
	font-size: 1rem;
}

.ant-spin .ant-spin-dot.sd-app-spin-default {
	font-size: 2rem;
}

.ant-spin .ant-spin-dot.sd-app-spin-large {
	font-size: 3rem;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The code scan's sheet (ScanSheet.tsx; docs/specs/orders-run-day.md, The barcode scan; docs/specs/store-onboarding.md,
   Counter devices, Scan a code): the camera's picture filling the sheet's width, 4:3 for a barcode and square for a QR
   code (design: AddCounterScan). */

.sd-scan-view {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-md);
	background: var(--viewer);
	aspect-ratio: 4 / 3;
}

/* A QR code's frame is square, the aim band its middle (design: AddCounterScan). */
.sd-scan-view-square {
	aspect-ratio: 1;
}

.sd-scan-view-square .sd-scan-aim {
	inset: 15%;
}

/* Until the camera answers: the frame's place is kept, so the sheet does not jump when the picture arrives. */
.sd-scan-view-off .sd-scan-video {
	visibility: hidden;
}

.sd-scan-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Where to hold the barcode: a band across the middle. */
.sd-scan-aim {
	position: absolute;
	inset: 35% 10%;
	border: var(--sd-line-width) solid var(--on-viewer);
	border-radius: var(--radius-sm);
	pointer-events: none;
}

.sd-scan-caption {
	margin: var(--space-2) 0 0;
}

.sd-scan-outcome {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin-top: var(--space-3);
	font-weight: 700;
}

.sd-scan-outcome-icon {
	color: var(--ink-muted);
}

.sd-scan-acts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-3);
}

.sd-scan-acts .ant-btn {
	flex: 1 1 auto;
	min-height: var(--touch-min);
}

.sd-scan-trouble {
	padding-bottom: var(--space-3);
}

/* While it looks (design: RunDayPicking, Q3): a small spinner and the words, bold. */
.sd-scan-looking {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: var(--space-3) 0 0;
	font-weight: 700;
}

/* A wrong product (design: RunDayPicking, Q2), in danger. */
.sd-scan-outcome-danger,
.sd-scan-outcome-danger .sd-scan-outcome-icon {
	color: var(--danger);
}

/* 1× and 2× in the frame's bottom-right corner (design: RunDayPicking, Q3): a pill on the camera's picture, 44px
   targets, the chosen one filled. */
.sd-scan-zoom {
	position: absolute;
	right: var(--space-2);
	bottom: var(--space-2);
	display: flex;
	gap: var(--space-1);
	padding: var(--space-1);
	border-radius: var(--radius-pill);
	background: var(--viewer);
}

.sd-scan-zoom label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--touch-min);
	min-height: var(--touch-min);
	border-radius: var(--radius-pill);
	font-weight: 700;
	color: var(--on-viewer);
	cursor: pointer;
}

.sd-scan-zoom .sd-scan-zoom-on {
	background: var(--on-viewer);
	color: var(--viewer);
}

.sd-scan-zoom label:has(input:focus-visible) {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The sheets (design: PickListDrawers). Their 16 at the sides is every SheetOrDialog sheet's (SheetOrDialog.css). */
.sd-pick-sheet-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sd-pick-sheet-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: var(--sd-line-width) solid var(--line);
}

.sd-pick-sheet-share .sd-pick-sheet-row {
	border-bottom: 0;
}

.sd-pick-sheet-share {
	border-bottom: var(--sd-line-width) solid var(--line);
	padding-bottom: var(--space-2);
}

.sd-pick-sheet-who {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sd-pick-code {
	font-family: var(--font-mono);
}

.sd-pick-sheet-qty {
	font-family: var(--font-mono);
	font-weight: 700;
}

.sd-pick-sheet-total,
.sd-pick-sheet-stepper {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-pick-sheet-total {
	padding: var(--space-2) 0 var(--space-3);
	font-weight: 700;
}

.sd-pick-sheet-short {
	display: flex;
	gap: var(--space-1);
	align-items: flex-start;
	margin: 0;
	/* Room above, off the last order's rule, and below, off the sheet's button. */
	padding-block: var(--space-2);
	font-weight: 700;
	color: var(--short);
}

/* Drawn even with nothing to say, so the sheet keeps its height and the stepper never moves under the thumb. */
.sd-pick-sheet-short[aria-hidden='true'] {
	visibility: hidden;
}

.sd-pick-sheet-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-pick-sheet-was {
	display: flex;
	gap: var(--space-2);
	margin: 0;
	color: var(--ink-muted);
}

.sd-pick-sheet-typed {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	margin: 0;
	padding: 0;
	border: 0;
}

.sd-pick-sheet-hst {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-pick-sheet-label {
	font-weight: 700;
}

.sd-pick-sheet-type.ant-btn {
	align-self: flex-start;
}

.sd-pick-sheet-do.ant-btn {
	min-height: var(--touch-lg);
	height: auto;
	white-space: normal;
}

.sd-pick-sheet-do.ant-btn[aria-disabled='true'] {
	border-color: var(--line);
	background: var(--surface-sunken);
	color: var(--ink-muted);
}

/* Price changed's preview (design: PickListDrawers): each order at the shelf price, a rise absorbed by the store in
   ink-muted, a lower price in pine, then the sentence of what shoppers pay. */
.sd-pick-preview {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sd-pick-preview-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-1) var(--space-3);
	padding: var(--space-2) 0;
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-pick-preview-row > span:first-child {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.sd-caption.sd-pick-preview-absorbed {
	color: var(--ink-muted);
}

.sd-caption.sd-pick-preview-lower {
	color: var(--pine);
	font-weight: 700;
}

/* How many did you get? (design: RunDayPicking): the rule, then each share,
   "1st order ×3 · Got 1 · Short 2", in the colour of what happens to it (pine got, short short), with the line under it. */
.sd-pick-sheet-rule {
	display: grid;
	color: var(--ink);
}

/* Both of the rule's wordings sit in one cell, the one not said hidden: the rule is as tall as the longer at any count. */
.sd-pick-sheet-rule-text {
	grid-area: 1 / 1;
	margin: 0;
}

.sd-pick-sheet-rule-text[aria-hidden='true'] {
	visibility: hidden;
}

.sd-pick-sheet-nth {
	display: flex;
	align-items: baseline;
	gap: var(--space-2);
	min-width: 0;
	font-weight: 700;
	white-space: nowrap;
}

/* The share's result on its order's line, "3rd order ×3 · Got 1 · Short 2". The
   counts are what the line is for, so on a narrow phone at large text the result wraps, never cut short (only a
   substitute's name is). Its other wordings at the share's quantity sit in the same cell, hidden (ShareResult), like the
   rule's: the cell is as wide and tall as the longest at every count, so the stepper never moves under the thumb. */
.sd-pick-sheet-result-cell {
	display: inline-grid;
	min-width: 0;
	white-space: normal;
}

.sd-pick-sheet-nth .sd-pick-sheet-result {
	grid-area: 1 / 1;
	min-width: 0;
	text-align: start;
	font-variant-numeric: tabular-nums;
}

.sd-pick-sheet-result-room {
	visibility: hidden;
}

/* The hidden wording is drawn from the attribute, not as text, so the line's text (find in page, a copy) is only what
   it says; aria-hidden on the span keeps it from a screen reader. */
.sd-pick-sheet-result-room::after {
	content: attr(data-room);
}

.sd-pick-sheet-dot {
	color: var(--ink-muted);
}

/* The line under a share's result, for an order that may take a substitute: Choose substitute, or what was chosen with
   Change. Such a share always has it, empty and hidden while the order is not short, a press's height, so the sheet
   keeps its height as the count changes; a share that can take no substitute never has it. The substitute's name is
   cut short with an ellipsis rather than wrapping Change onto a line of its own. */
.sd-pick-sheet-sub {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-height: var(--touch-min);
	min-width: 0;
}

.sd-pick-sheet-sub[aria-hidden='true'] {
	visibility: hidden;
}

.sd-pick-sheet-sub-what {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--sd-font-size-sm);
	line-height: var(--sd-line-height-sm);
	font-weight: 700;
}

.sd-pick-sheet-result {
	font-size: var(--sd-font-size-sm);
	line-height: var(--sd-line-height-sm);
	font-weight: 700;
	text-align: end;
}

.sd-pick-sheet-result-ok {
	color: var(--pine);
}

.sd-pick-sheet-result-sub {
	color: var(--sub);
}

.sd-pick-sheet-result-short {
	color: var(--short);
}

/* An order that may take a substitute: Choose substitute, under its result, opens the chooser. */
.sd-pick-sheet-choose.ant-btn,
.sd-pick-sheet-choose.ant-btn:not(:disabled):hover {
	height: auto;
	min-height: var(--touch-min);
	white-space: normal;
	color: var(--sub);
	text-decoration: underline;
}

/* The substitute chooser in How many did you get? (design: RunDayPicking): Back
   to the count, then what the order asked for on the left with their own pick's Choose on the right of the same line. */
.sd-pick-sheet-back.ant-btn {
	align-self: flex-start;
}

.sd-pick-chooser-asked .sd-pick-sheet-result {
	flex: 1 1 0;
	min-width: 0;
	text-align: start;
}

.sd-pick-sheet-saved {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/*
 * Finish (design: FinishRun, PickList's finish sheet, PickListScreens' Finish while marks wait, MarkMoments 2). Sizes are
 * the tokens', so they grow with the person's text size.
 */

/* Finish, pinned under the list as it scrolls (design: PickList's `Sticky`). It carries `sd-foot-bar`, so a notice sits
   above it (global.css). Its bar spans the list's width, as the rows do, and its button is inset as the rows' own
   content is (`.sd-pick`'s padding), so its edges line up with Got and Short. */
.sd-pick-finish {
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin-top: var(--space-4);
	padding: var(--space-3) var(--space-4);
	padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0rem));
	border-top: var(--sd-line-width) solid var(--line);
	background: var(--surface-raised);
}

:root:has(.sd-pick-finish) {
	--foot-bar-height: calc(var(--touch-lg) + 2 * var(--space-3) + var(--type-caption-line) + var(--space-2));
}

/* The line under a Finish that waits (design: PickListScreens, centred under the button). */
.sd-pick-finish-why {
	margin: 0;
	text-align: center;
}

/* A card of rows in the sheet (design: FinishRun's `sd-card`, padding 0, rows divided by a line). */
.sd-pick-finish-card {
	margin: 0;
	padding: 0;
	list-style: none;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
}

.sd-pick-finish-left-row {
	display: grid;
	/* A true override: FinishRun's 40px quantity column. No spacing token is 40px, and a column holding text is sized in
	   rem so it grows with the person's text size (the spacing tokens are px). */
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	gap: var(--space-2);
	align-items: center;
	padding: var(--space-2) var(--space-3);
}

.sd-pick-finish-left-row + .sd-pick-finish-left-row {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-pick-finish-note {
	margin: var(--space-3) 0 0;
}

/* Finish charges nothing (design: FinishRun): the pickup-counter glyph and "Charged at pickup. Nothing is charged
   now." on one line. */
.sd-pick-finish-pickup {
	display: flex;
	align-items: baseline;
	gap: var(--space-2);
	margin: 0;
}

.sd-pick-finish-tab-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-pick-finish-charge {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-1) var(--space-3);
	padding: var(--space-2) var(--space-3);
	border-bottom: var(--sd-line-width) solid var(--line);
}

/* On your tab (design: PickList's finish sheet, the estimate-soft card): the label and the amount on
   one row, several orders a row each under the label, and why under them across the card. */
.sd-pick-finish-tab {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin-top: var(--space-3);
	padding: var(--space-3);
	border-radius: var(--radius-md);
	background: var(--estimate-soft);
}

.sd-pick-finish-tab .sd-pick-finish-charge {
	margin: 0;
	padding-inline: 0;
	border-bottom: 0;
}

.sd-pick-finish-tab .sd-pick-finish-note {
	margin: 0;
}

.sd-pick-finish-owed {
	font-weight: 700;
	color: var(--estimate);
}

.sd-pick-finish-acts {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* Run finished (design: MarkMoments 2 and its Alignment): centred in the page, as StateMessage and the 404 are,
   the mark, heading, words and button on one centre line; the one full-page success screen that is not left-aligned. */
.sd-pick-finished {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
	padding-block: var(--space-6);
	text-align: center;
}

.sd-pick-finished > h1,
.sd-pick-finished > p {
	margin: 0;
}

.sd-pick-finished > .ant-btn-block {
	align-self: stretch;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/*
 * The pick list on desktop (design: RunDayPicking; PickList.tsx `wide`): the rows in a card under the
 * progress, with the sync line at the card's top, and Finish in a column at the right under the run's day, items,
 * orders and who started it. From 768px (breakpoints.ts PHONE_QUERY, useWide), the same width every run-day sheet
 * becomes a dialog at.
 *
 * The page fills the window as a staff list page does (pages/Staff/staff.css, "fills the window"): the frame's main is
 * a column while it holds this page, the page takes what is left of it, and only the card's rows scroll, so the
 * progress and Finish stay in view. Nothing is measured.
 */
@media (min-width: 48em) {
	.sd-portal-main:has(> .sd-pick-wide) {
		display: flex;
		flex-direction: column;
	}

	.sd-pick-wide {
		flex: 1 1 0;
	}

	.sd-pick-wide > * {
		flex: none;
	}

	/* The rows' card beside the 280px column (the drawing's `minmax(0, 1fr) 280px`, 24px apart). 17.5rem is 280px at
	   the default text size, written here because no token is a column's width; in rem, so it grows with the text. The
	   two take what is left of the page, never less than 20rem (some rows at the least), so in a short window the page
	   scrolls rather than the card closing up. */
	.sd-pick-wide > .sd-pick-columns {
		display: grid;
		flex: 1 1 0;
		grid-template-columns: minmax(0, 1fr) 17.5rem;
		grid-template-rows: minmax(0, 1fr);
		gap: var(--space-6);
		align-items: start;
		min-height: 20rem;
	}

	/* The run's card comes first in the page (PickList.tsx) and is placed in the right-hand column from 900px; the
	   rows' card takes the first. */
	.sd-pick-card {
		grid-column: 1;
		grid-row: 1;
		display: flex;
		flex-direction: column;
		max-height: 100%;
		padding: 0;
		overflow: hidden;
	}

	.sd-pick-card > * {
		flex: none;
	}

	/* The progress at the card's top, set off from the rows by a line (the drawing's 12px 16px and border). */
	.sd-pick-card-progress {
		padding: var(--space-3) var(--space-4);
		border-bottom: var(--sd-line-width) solid var(--line);
	}

	/* Only the rows scroll. Set off from the progress line inside the card, where no column gap spaces them. It is the
	   rows' containing block (`position: relative`): the rows' `.sd-visually-hidden` words are absolutely positioned, and
	   a scroll box clips only what it contains, so without it they stood at their places far down the list, outside the
	   card, and made the document that much taller than the window. The page then scrolled the header and the side
	   column away and showed an empty band under the frame. */
	.sd-pick-card > .sd-pick-list {
		position: relative;
		margin-top: var(--space-3);
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		container: pick-rows / inline-size;
	}

	.sd-pick-side {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		flex-direction: column;
		gap: var(--space-3);
		padding: var(--space-4);
	}

	.sd-pick-side-facts {
		display: flex;
		flex-direction: column;
	}

	.sd-pick-side-facts > p {
		margin: 0;
	}

	.sd-pick-finish-side {
		display: flex;
		flex-direction: column;
		gap: var(--space-2);
	}

	/* Below 900px (56.25em; design: RunDayPicking) there is no room for a column beside the rows: the run's card
	   sits above the list with Finish at its right, and the rows' card takes the width. */
	@media (max-width: 56.1875em) {
		.sd-pick-wide > .sd-pick-columns {
			grid-template-columns: minmax(0, 1fr);
			grid-template-rows: auto minmax(0, 1fr);
		}

		.sd-pick-side,
		.sd-pick-card {
			grid-column: 1;
		}

		.sd-pick-side {
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
		}

		.sd-pick-card {
			grid-row: 2;
		}

		/* Finish at the card's right: its button keeps the width the column gave it, 17.5rem (280px at the default text). */
		.sd-pick-side > .sd-pick-finish-side {
			flex: 0 1 17.5rem;
		}
	}

	/* Find an item in the header bar: the drawing's 220px field. 13.75rem is 220px at the default text size. */
	.sd-pick-bar-search {
		width: 13.75rem;
	}
}

/*
 * The desktop row (not RunDayPicking's, which gives the phone's rows on desktop and so stretches Got and Short at
 * aisle height across the whole card): one line per item, the quantity, the name and its details at the left, and the row's buttons or status in a column
 * at the right at the ordinary touch height (a tablet in a desktop layout is still touched). What follows the details
 * (Price changed?, the shortfall, what goes on another day, a substitute's name, a refusal) sits under
 * the name. Only while the rows' box is wide enough for the three columns (a container query on the box, so a narrow
 * desktop window keeps the phone's row); the phone's row is unchanged.
 */
@container pick-rows (min-width: 34em) {
	.sd-pick-list .sd-pick {
		grid-template-columns: minmax(2.5rem, auto) minmax(0, 1fr) minmax(0, 15rem);
		align-items: start;
		column-gap: var(--space-4);
		row-gap: var(--space-1);
		padding: var(--space-3) var(--space-4);
		min-height: 0;
	}

	.sd-pick-list .sd-pick > * {
		grid-column: 2;
	}

	.sd-pick-list .sd-pick > .sd-pick-qty {
		grid-column: 1;
		grid-row: 1;
		font-size: var(--type-title-2-size);
		line-height: var(--type-title-2-line);
	}

	.sd-pick-list .sd-pick > .sd-pick-text {
		grid-row: 1;
	}

	.sd-pick-list .sd-pick-name {
		font-size: var(--type-body-size);
		line-height: var(--type-body-line);
		font-weight: 700;
	}

	/* The right column: Got and Short, or the status with its stepper and Undo. */
	.sd-pick-list .sd-pick > .sd-pick-acts,
	.sd-pick-list .sd-pick > .sd-pick-status {
		grid-column: 3;
		grid-row: 1;
	}

	.sd-pick-list .sd-pick-act {
		min-height: var(--touch-min);
	}

	/* The orders link at the compact control height. The line under the name (Price changed?, Undo) is pulled back by
	   the button's own side padding, so Price changed?'s words start on the name's left edge (the design's
	   `.sd-pick-links { margin-left: -4px }`): the button keeps its padding, as every text button does. */
	.sd-pick-list .sd-pick-orders {
		min-height: var(--control-compact);
	}

	.sd-pick-list .sd-pick > .sd-pick-todo-foot {
		margin-inline-start: calc(-1 * var(--space-1));
	}

	.sd-pick-list .sd-pick-nothold,
	.sd-pick-list .sd-pick-choices {
		margin-top: 0;
	}
}

/* Start over in the More menu, with its glyph (design: RunDayPicking). */
.sd-pick-more-item {
	display: inline-flex;
	gap: var(--space-2);
	align-items: center;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* Start shopping and Open pick list (design: RunStart, RunDashboard): the button, then any line under it, 8px apart. */
.sd-run-start {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	align-items: flex-start;
}

.sd-run-start > .ant-btn-block {
	align-self: stretch;
}

.sd-run-start-why {
	margin: 0;
}

/* A refusal looks as a confirm's does (theme/surfaces.css `.sd-error-line`), and what a choice came to (a status) has
   its icon beside it at the same size. */
.sd-run-start-error {
	margin: 0;
}

.sd-run-start-told {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	margin: 0;
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
}

.sd-run-start-told-line {
	display: block;
}

/* The sheets' content: 16px in from the screen's edges, as the sheet's own bar is (BottomSheet.css), and the dialog's,
   its parts 14px apart in the drawing (the scale's nearest step, 12px). */
.sd-not-held-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-bottom-sheet .sd-not-held-body {
	padding: 0 var(--space-4);
}

.sd-not-held-intro {
	margin: 0;
}

/* Include all and Move all, side by side, sharing the width (design: RunStart `AllBtns`). */
.sd-not-held-all {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.sd-not-held-all > .ant-btn {
	flex: 1 1 8rem;
}

/* One order (design: RunStart `Choose`, an `sd-card`, whose box is `.sd-surface-card`): its name, code and line beside
   the amount, then the choice. */
.sd-not-held-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: var(--space-4);
}

.sd-not-held-card-head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: baseline;
	justify-content: space-between;
}

.sd-not-held-code {
	font-family: var(--font-mono);
}

.sd-not-held-amount {
	font-family: var(--font-mono);
	font-weight: 600;
	white-space: nowrap;
}

/* The choice's two options (design: RunStart `Choose`, `sd-seg`): side by side, Move to next run the wider (the drawn
   1fr 1.4fr), each at least 56px tall with its icon before its label, wrapping its words rather than its box; the chosen
   one in pine-soft with a 2px pine ring inside, and a check in its icon's place. An override: Ant Design's button radios
   are one control height with a single line, and mark the chosen one with a primary border; the drawing marks this
   choice as a chosen card is marked. The ring is the focus ring's width (--sd-line-width-focus), as drawn. */
.sd-not-held-choice.ant-radio-group {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.sd-not-held-choice .ant-radio-button-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: var(--touch-lg);
	padding-block: var(--space-2);
	line-height: var(--type-label-line);
	text-align: center;
}

.sd-not-held-choice .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
	background: var(--pine-soft);
	color: var(--ink);
	box-shadow: inset 0 0 0 var(--sd-line-width-focus) var(--pine);
}

.sd-not-held-option {
	display: inline-flex;
	gap: var(--space-2);
	align-items: center;
	white-space: normal;
}

/* Include isn't offered: "Moves to the next run" in bold with its icon, the reason under it. */
.sd-not-held-moves {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* "Moves to the next run" with Include anyway beside it, for someone who may include over the tab limit; the button
   wraps under the words on a narrow card. */
.sd-not-held-moves-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
	justify-content: space-between;
}

.sd-not-held-moves-label {
	display: inline-flex;
	gap: var(--space-2);
	align-items: center;
	font-weight: 700;
}

/* What each choice means, and what happens (design: RunStart `Line`): the icon muted, the words in label type. */
.sd-not-held-lines {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-not-held-line {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	margin: 0;
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
}

.sd-not-held-line > svg {
	flex: none;
	height: 1lh;
	color: var(--ink-muted);
}

/* The sheet's foot: any refusal, the primary, and why it does nothing yet (design: RunStart, the line under Start
   shopping), 8px apart. */
.sd-not-held-foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-not-held-foot .sd-run-start-why,
.sd-not-held-dialog-foot .sd-run-start-why {
	text-align: center;
}

/* The dialog's foot: Cancel and Open the pick list on the right, why under them. */
.sd-not-held-dialog-foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-not-held-dialog-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	justify-content: flex-end;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The run dashboard (design: RunDashboard): its sections 24px apart, as drawn (`main`'s gap). An override: the frame's
   other pages keep 16px. */
.sd-runs-page {
	gap: var(--space-6);
}

/* Today's date under the title, and Edit run schedule on the right (drawn: `sd-between`). */
.sd-runs-head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	align-items: center;
	justify-content: space-between;
}

.sd-runs-head p {
	margin: 0;
}

.sd-runs-coming {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* The coming-up run's card (drawn: `sd-card`, 24px in, its box `.sd-surface-card`): its words, and beside them on the
   right its action (RunDashboard: the text block `flex: 1 1 280px`, then the buttons), wrapping under them when the
   card is narrower. A phone's block Start shopping takes the card's width under them. */
.sd-runs-card {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-6);
}

.sd-runs-card-text {
	display: flex;
	flex: 1 1 min(17.5rem, 100%);
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
}

/* The status badge is as wide as its words (design: RunDashboard); the column's other lines take its width. */
.sd-runs-card-text > .sd-run {
	align-self: flex-start;
}

.sd-runs-card-action {
	flex: 0 1 auto;
	max-width: 100%;
}

.sd-runs-card-action:has(.ant-btn-block) {
	flex-basis: 100%;
}

.sd-runs-card :is(h2, h3, p) {
	margin: 0;
}

.sd-runs-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* The four stats, a card each in one row 16px apart (drawn: `Stat`), wrapping two by two and then one under another as
   the page narrows; never wider than the page (at 200% text on a phone 12rem is wider than it). */
.sd-runs-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
	gap: var(--space-4);
}

.sd-runs-stat {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-5);
}

/* A stat's figure: mono and bold at the large price size, 24px (the drawing has 28px). */
.sd-runs-stat-value {
	font-family: var(--font-mono);
	font-size: var(--type-price-lg-size);
	font-weight: 700;
	line-height: var(--type-price-lg-line);
}

/* Declined and Not held, in the danger colour (drawn: the Cards column's bold counts and the stat's line). */
.sd-runs-danger {
	color: var(--danger);
}

/* The table's figures (Orders, Est. value), in mono as drawn. Their cells only: Ant Design puts a column's class on its
   heading too, and the headings are in the table's own face. */
td.sd-runs-figure {
	font-family: var(--font-mono);
}

/* A run's day, its close, its status and its figures stay on one line, the status tag included; the supplier's name
   may wrap. Where the columns do not fit (beside the side column at 1024px), the table scrolls sideways inside its own
   box (DataTable) rather than breaking a date or a status one word to a line. */
td.sd-runs-nowrap,
td.sd-runs-nowrap * {
	white-space: nowrap;
}

/* Cards ("0 held · 3 not held") wraps at most once: room for "3 not held" on a line, in rem so it follows the text size.
   A text measure the spacing tokens cannot express. */
td.sd-runs-cards {
	min-width: 6.5rem;
}

/* A supplier's name wraps, at most a word or two to a line: below 9rem the table scrolls sideways in its box instead. */
td.sd-runs-supplier {
	min-width: 9rem;
}

.sd-runs-not-held {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-runs-upcoming,
.sd-runs-past {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-runs-upcoming h2,
.sd-runs-past h2,
.sd-runs-missed h2 {
	margin: 0;
}

/* Missed (docs/specs/orders-run-day.md, Missed and past runs; not drawn): its heading over the missed runs' cards,
   spaced as the coming-up cards and their stats are. */
.sd-runs-missed {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* The coming-up card's wait: the card's own shape, its words' column with a title bar and the timing line under it. */
.sd-runs-skel-title {
	width: 40%;
	height: var(--type-title-2-size);
}

.sd-runs-skel-line {
	width: 70%;
	height: var(--type-caption-size);
}

/* A phone's row: Skip beside the run's facts, or under them once the facts would be narrower than 12rem (at 200% text
   Skip would take half the row and break the supplier's name a letter or two a line). */
.sd-runs-row {
	flex-wrap: wrap;
}

.sd-runs-row > .sd-row-list-main {
	flex-basis: 12rem;
}

/* A phone's row (design: RunDashboard): the supplier with its estimated value at the end of the line, in
   mono; the status pill under them, its own width. */
.sd-runs-row-top {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	justify-content: space-between;
}

.sd-runs-row-value {
	font-family: var(--font-mono);
	font-weight: 600;
}

.sd-runs-row-badge {
	display: flex;
}

/* A run's actions (design: RunDashboard): Open pick list, and beside it More on a run being shopped; on a
   phone Open pick list takes the row and More is a square beside it. */
.sd-runs-card-acts {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
}

.sd-runs-card-acts > .sd-run-start {
	flex: 1 1 auto;
	min-width: 0;
}

/* The phone's More: a square the size of a large button (design: RunDashboard, the 48px square beside Open pick list). */
.sd-runs-more-phone.ant-btn {
	flex: none;
	width: var(--sd-control-height-lg);
	min-width: var(--sd-control-height-lg);
}

/* Start over in the More menu, in the danger colour with its glyph (design: RunDashboard's `history`). */
.sd-runs-more-item {
	display: inline-flex;
	gap: var(--space-2);
	align-items: center;
}

/* A phone (below 768px, breakpoints.ts PHONE_QUERY): the run's figures are a 2 × 2 grid of stats, a finished run's two
   side by side (design: RunDashboard), each with less room inside, as drawn (12px against 20px). */
@media (max-width: 47.9375em) {
	.sd-runs-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-2);
	}

	.sd-runs-stat {
		padding: var(--space-3);
	}
}

/* The Skip dialog: what happens, Why and the Note, 16px apart. */
.sd-skip-run {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-skip-run-body {
	margin: 0;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A field still needed before the store opens: the Needed tag after its label (the design system's .sd-tag-warn), in
   caption type (.sd-caption on the tag) with the short colours over the caption's muted ink. */
.sd-caption.sd-setup-needed {
	display: inline-flex;
	align-items: center;
	margin-inline-start: var(--space-2);
	padding: 0 var(--space-2);
	border-radius: var(--radius-pill);
	background: var(--short-soft);
	color: var(--short);
	font-weight: 700;
}

/* A field staff filled in: its line with the pine check. */
.sd-setup-staff-filled {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}

.sd-setup-staff-filled > svg {
	color: var(--pine);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The short name's box in Branding: the drawing's 240px at most, kept as rem. */
.sd-short-name-narrow.ant-input {
	max-width: 15rem;
}

/* The owner's row (design: StoreSetupFlow, `ShortRow`): the label, the value, the help 2px apart, Edit at the end, a
   rule above it inside its card. */
.sd-short-name-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4);
}

.sd-short-name-row-main {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

.sd-short-name-row-main .sd-setup-label {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Branding (BrandingForm; design: StoreSetup, branding): the fields and the preview side by side once the form has
   room for the drawing's two columns, one under the other below it. The form is the query container (`sdbranding`):
   its width, not the window's, decides, as it sits in pages of different widths (setup, Settings beside its section
   list, the staff store page). Nothing in it is positioned fixed, which containment would move. */
.sd-branding-form {
	container: sdbranding / inline-size;
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

/* minmax(0, 1fr), not 1fr: a bare 1fr track's minimum is its content's, which at 375 wide with 200% text pushes the
   fields column past the staff store page's card. */
.sd-branding-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-5);
	align-items: start;
}

/* Two columns from 640px of form: each at least 300px, the fields' measure. */
@container sdbranding (min-width: 40rem) {
	.sd-branding-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sd-branding-fields {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* The order code: the drawing's short, mono, upper-case box (120px at most, kept as rem). */
.sd-branding-code.ant-input {
	max-width: 7.5rem;
	font-family: var(--font-mono);
	text-transform: uppercase;
}

.sd-branding-free {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* The logo's box: the drawing's dashed border on the raised surface, the logo on its plate beside the file's name. Its
   padding inside its 100% width (without border-box it is 40px wider than its column and runs past the card), and the
   words wrapping under the plate when they do not fit beside it (375 wide, 200% text). */
.sd-branding-drop {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
	width: 100%;
	padding: var(--space-5);
	border: var(--sd-line-width-focus) dashed var(--line-strong);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

.sd-branding-file {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-branding-preview {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.sd-branding-preview-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	padding: var(--space-5);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

.sd-branding-divider {
	width: 100%;
	margin: 0;
	border: 0;
	border-top: var(--sd-line-width) solid var(--line);
}

/* A phone at a large text size (320px at 100%, 640px at 200%): the preview card's and the logo box's insets double with
   the text, and inside the staff store page's card (itself inset) at 375 wide with 200% text they left the preview
   95px for a 144px plate, and Add a logo 91px, four lines tall. */
@media (max-width: 20em) {
	.sd-branding-preview-card,
	.sd-branding-drop {
		padding: var(--space-2);
	}
}

/* Shoppers see: a fieldset (the legend names the pair) with the browser's frame taken off, the two radios in a column. */
.sd-branding-show {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sd-branding-show-options.ant-radio-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* The sleep screen's pickers (LookTiles, for SleepLook and CounterLook; design: OwnerSettings): the legend, its help,
   then the tiles one under another on a phone, each the column's full width, and 3 across from the desktop width. Its
   own grid rule, not RadioCards' `columns`: the tiles are not cards. */
.sd-counter-look {
	container: sdcounterlook / inline-size;
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.sd-counter-look-legend {
	padding: 0;
}

.sd-counter-look-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}

/* Three looks across once the choice has 352px (three tiles of about 110px), two below. The fieldset is its own query
   container, as it sits in the fields column or the full form. */
@container sdcounterlook (min-width: 22rem) {
	.sd-counter-look-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* A phone (below 768px, breakpoints.ts PHONE_QUERY): one tile to a row, at the column's full width. After the container
   rule above, so a phone wide enough for three across still draws one. */
@media (max-width: 47.9375em) {
	.sd-counter-look-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.sd-counter-look-option {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
	cursor: pointer;
}

/* The radio is hidden and still focusable (never display: none, which would take it from the keyboard); its tile shows
   the choice. */
.sd-counter-look-input {
	position: absolute;
	opacity: 0;
}

/* A tile: the dark theme's surface (data-theme='dark' on it, so its tokens are the dark theme's whatever the page's), 132px
   tall (drawn, kept as rem) with the ghost's box over the store's name. A 2px edge (the focus ring's width) that is the
   line colour until chosen, then the focus colour and ringed. No animation: the picker is still. */
.sd-counter-look-tile {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	height: 8.25rem;
	padding: var(--space-2);
	overflow: hidden;
	border: var(--sd-line-width-focus) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
}

.sd-counter-look-input:checked + .sd-counter-look-tile {
	border-color: var(--focus);
	box-shadow: 0 0 0 var(--sd-line-width-focus) var(--focus);
}

.sd-counter-look-input:focus-visible + .sd-counter-look-tile {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* A press on a held person's tile does nothing: drawn, not offered. */
.sd-counter-look-input:disabled + .sd-counter-look-tile {
	cursor: not-allowed;
}

/* The ghost's outlined box as the sleep screen draws it: a 2px ink-muted edge at 50% (as RestingPlate.css's outline),
   the ghost 28px tall (drawn). The ghost's own pixels are already the dark theme's ink-muted. */
.sd-counter-look-box {
	box-sizing: border-box;
	display: grid;
	place-items: center;
	max-width: 100%;
	padding: var(--space-2) var(--space-3);
	border: var(--sd-line-width-focus) solid var(--ink-muted);
	border-radius: var(--radius-md);
	opacity: 0.5;
}

.sd-counter-look-box img {
	display: block;
	height: 1.75rem;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

/* Initials: the box a 44px square round the initials as ghost text at 18px, bold (drawn: the title-3 size). */
.sd-counter-look-box:has(.sd-counter-look-initials) {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
}

.sd-counter-look-initials {
	font-size: var(--type-title-3-size);
	font-weight: 700;
}

/* The store's name, outline only at 50% (ghostText.css; the drawing's breathing name stays as the sleep screen has
   it), one line, cut with an ellipsis when it is long. */
.sd-counter-look-store {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--type-label-size);
	font-weight: 700;
	line-height: var(--type-label-line);
	opacity: 0.5;
}

.sd-counter-look-title {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
}

/* The sleep screen's look's Sundries tiles (SleepLook; design: OwnerSettings, `LK_CSS`): the mark over the
   wordmark, 8px apart, as their outline; for the glow, the full logo over the outline at 55%, still: the tile shows the
   glow part filled in, never moving. */
.sd-sleep-look-logo {
	position: relative;
}

.sd-sleep-look-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
}

.sd-sleep-look-full {
	position: absolute;
	inset: 0;
	opacity: 0.55;
}

/* Override: the outline is drawn lighter and finer at a tile's size than on the asleep counter (drawn: 60% and a 1.2px
   stroke, where the counter's is 50% and 1.5px, brand.css), so the small logo still reads on the tile. */
.sd-counter-look-tile .sd-mark-outline {
	opacity: 0.6;
}

.sd-counter-look-tile .sd-mark-outline path {
	stroke-width: 0.075rem;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The owner's setup (design: StoreSetupFlow; the steps mirror the design system's .sd-steps, Go live its .sd-golive).
   Tokens only. */

/* The steps' and Go live's mark circles: the drawing's 28px (design: StoreSetupFlow; the design system's .sd-steps
   badge). No size token fits, so it is this stylesheet's own, at the default text size. */
.sd-setup-steps,
.sd-setup-golive {
	--sd-setup-mark-size: 1.75rem;
}

/* The side rail, from 1024px: its heading, the steps, and the screen's PoweredBy at its foot. As wide as the Sidebar
   (Sidebar.css, which the owner's frame always loads). */
.sd-setup-rail {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-height: 100%;
	width: var(--sd-side-column-width);
	padding: var(--space-6) var(--space-4) var(--space-4);
}

.sd-setup-rail-name {
	margin: 0;
}

.sd-setup-rail-foot {
	margin-top: auto;
}

/* The steps: a numbered list, each a row as tall as a touch target, its mark a circle (pine with a check when done,
   an estimate ring with "!" when it needs you), its state under its name. */
.sd-setup-steps {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-setup-step {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: var(--touch-lg);
	padding: var(--space-1) var(--space-2);
	border-radius: var(--radius-md);
	color: var(--ink);
}

a.sd-setup-step:hover {
	background: var(--surface-sunken);
}

.sd-setup-step[aria-current='step'] {
	background: var(--pine-soft);
}

.sd-setup-step-mark {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--sd-setup-mark-size);
	height: var(--sd-setup-mark-size);
	border: var(--sd-line-width) solid var(--line-strong);
	border-radius: var(--radius-pill);
	font-weight: 700;
	color: var(--ink-muted);
}

.sd-setup-step-done .sd-setup-step-mark {
	border-color: var(--pine);
	background: var(--pine);
	color: var(--on-pine);
}

.sd-setup-step-need .sd-setup-step-mark {
	border-color: var(--estimate);
	color: var(--estimate);
}

/* Run schedule while there is no supplier to schedule: in its place with its number, not a link, in muted ink. */
.sd-setup-step-off .sd-setup-step,
.sd-setup-step-off .sd-caption.sd-setup-step-state {
	color: var(--ink-muted);
}

/* Its number ring is dashed: it waits, rather than needing anything. */
.sd-setup-step-off .sd-setup-step-mark {
	border-style: dashed;
}

.sd-setup-step-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sd-setup-step-need .sd-caption.sd-setup-step-state {
	color: var(--estimate);
	font-weight: 700;
}

/* A setup page: "Step N of 9", its heading and intro, its cards, its buttons at the foot under a line. A standard page
   (design: StoreSetupFlow, PageWidths; theme/page.css sets its width and sides). Below the side column, the drawn phone
   gutter above and below, 16px (`.sd-sec`), as every owner page has (.sd-yourstore-page). */
.sd-setup-page {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	padding-block: var(--space-4);
}

/* With the side column (from 1024px, PORTAL_DRAWER_QUERY), the drawn 32px under the header (design: AppShell and
   StoreSetup `.sd-main`, StorePricing's main), as Settings has (.sd-owner-settings), so Pricing and the setup steps
   start level with Settings in the same frame. */
@media (min-width: 64em) {
	.sd-setup-page {
		padding-block: var(--space-8);
	}
}

.sd-setup-page-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-setup-page-head > * {
	margin: 0;
}

.sd-setup-page-intro {
	color: var(--ink-muted);
}

/* Back on the left, the step's own button on the right, as drawn (sd-between). */
.sd-setup-page-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-3);
	padding-top: var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
}

/* A step drawn as a Settings section has no Back and no way on (steps/StepFooter.tsx): a step that saves keeps its one
   Save, at the start of the foot; one that doesn't has no foot at all. */
.sd-setup-page-foot:empty {
	display: none;
}

.sd-setup-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-5);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

/* A phone at a large text size (20em is 320px at 100%, 640px at 200%): every inset is in rem and doubles with the text,
   so the card keeps a smaller one, and the previews nested in it have room for their words: at 375 wide with 200%
   text the checkout consent's lines would otherwise be 27px wide, a letter a line. */
@media (max-width: 20em) {
	.sd-setup-card {
		padding: var(--space-3);
	}
}

/* Every heading level: a card's heading is h3 when the step sits under Settings' own h2 (useCardLevel), and an h3 with
   the browser's margins would sit a line below the card's top and its tag. */
.sd-setup-card > :is(h2, h3, h4),
.sd-setup-card > p {
	margin: 0;
}

/* Tell your shoppers (drawn: StoreSetupFlow, after Open my store): the poster's preview beside its words, above them
   when the card is narrow. */
.sd-setup-card.sd-setup-poster {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-4);
}

.sd-setup-poster-words {
	display: flex;
	flex: 1 1 16rem;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-setup-poster-words > h2,
.sd-setup-poster-words > p {
	margin: 0;
}

.sd-setup-link {
	font-weight: 700;
	text-decoration: underline;
}

/* The phone's app bar on a setup page: back to the steps, then the title. */
.sd-setup-appbar {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	min-width: 0;
}

.sd-setup-appbar-name {
	font-weight: 700;
}

/* The terms: the short version's lines, the checkbox with its help and its error under it. */
.sd-setup-terms-summary {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: 0;
	padding-inline-start: var(--space-5);
}

.sd-setup-terms-accept {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-setup-terms-accept > p {
	margin: 0;
}

.sd-setup-terms-help {
	padding-inline-start: var(--space-6);
}

.sd-setup-error {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--danger);
}

/* Go live's checklist: each item's mark a circle (pine with a check when ticked, an estimate ring with a dash when
   not), its title, its line (estimate when not ticked) and the way to its step. */
.sd-setup-golive {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

.sd-setup-golive > li {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-4);
}

.sd-setup-golive > li + li {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-setup-golive-mark {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--sd-setup-mark-size);
	height: var(--sd-setup-mark-size);
	border-radius: var(--radius-pill);
}

.sd-setup-golive-ok .sd-setup-golive-mark {
	background: var(--pine);
	color: var(--on-pine);
}

.sd-setup-golive-no .sd-setup-golive-mark {
	border: var(--sd-line-width) solid var(--estimate);
	color: var(--estimate);
}

.sd-setup-golive-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-1);
	min-width: 0;
}

.sd-setup-golive-line {
	font-size: var(--type-body-sm-size);
	line-height: var(--type-body-sm-line);
	color: var(--ink-muted);
}

.sd-setup-golive-no .sd-setup-golive-line {
	color: var(--estimate);
}

/* Opened: the mark plays once above the heading. */
.sd-setup-opened-mark {
	order: -1;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* A setup step's section (SetupSection): its fields one under another, full width. Framed on the owner's step by
   .sd-setup-card (Setup.css, whose own rule starts its children at the left; both classes here, so this wins); plain
   inside the staff page's card. */
.sd-setup-section,
.sd-setup-card.sd-setup-section {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-4);
}

.sd-setup-section-head > * {
	margin: 0;
}

.sd-setup-section-head > p {
	margin-top: var(--space-1);
}

/* A heading with something at the end of its line (a run card's switch), wrapping under it when there is no room. The
   two are centred on each other (drawn: `sd-between`), so a switch taller than the heading's line (its touch target)
   has the heading on its middle; with a line under the heading, the aside keeps to the heading's line (below). */
.sd-setup-section-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-4);
}

.sd-setup-section-top:has(> .sd-setup-section-head > p) {
	align-items: flex-start;
}

/* The aside (Stripe's Connected, a run's Taking orders) on the heading's line: as tall as that line at least, its
   contents centred in it, so a tag shorter than the line sits on the heading's middle, not at the card's top edge. */
.sd-setup-section-aside {
	display: flex;
	align-items: center;
	min-height: var(--type-title-2-line);
	max-width: 100%;
}

.sd-setup-section-top:has(.sd-title-3) > .sd-setup-section-aside {
	min-height: var(--type-title-3-line);
}

/* A control's label where there is no form item to draw it (a segmented choice, a day and time pair): the form
   label's weight. */
.sd-setup-label {
	font-weight: 700;
}

/* A label, its controls and the line under them, one under another (a segmented choice, a day and time pair). */
.sd-setup-control {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

/* A line of fixed rules with its glyph (StorePolicies `Line`): the icon muted at the first line, the words beside. */
.sd-setup-line {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	margin: 0;
}

.sd-setup-line > svg {
	flex: none;
	margin-top: var(--space-1);
	color: var(--ink-muted);
}

/* A preview of what shoppers see (StoreSetup's "Shoppers see:", StorePolicies' checkout consent): the surface colour,
   inset in its card. */
.sd-setup-preview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	margin: 0;
	padding: var(--space-4);
	border-radius: var(--radius-md);
	background: var(--surface);
}

/* Inside a card at a large text size on a phone, a smaller inset (Setup.css, the card's own rule says why). */
@media (max-width: 20em) {
	.sd-setup-preview {
		padding: var(--space-2);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The opening hours (design: StoreSetupDetails, StaffStoresSetup): one row per day, its name, the Open switch, then
   its hours and any break under them, wrapping onto lines of their own on a narrow screen. Tokens only. */
.sd-hours-week {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.sd-hours-day {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-3);
	min-height: var(--touch-lg);
	padding: var(--space-2) 0;
}

.sd-hours-day + .sd-hours-day {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-hours-day-name {
	min-width: 7rem;
}

/* The hours want room for a time field beside the day's name and switch (10rem, which grows with the text as a time
   field does); where the row has less, they wrap onto a line of their own and take the whole row, so a time never runs
   past the row's divider at 375px and 200% text. Without a basis, the block kept its widest line's width, wider than the
   row, and the day's flex line did not wrap it. */
.sd-hours-lines {
	display: flex;
	flex: 1 1 10rem;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-hours-line {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* Override: a time field is as wide as a time, not the row. It overrides Ant Design's 100%, and takes the time control's
   own width, which the browser sizes to its widest time in the person's locale and text size. */
.sd-hours-time.ant-input {
	width: auto;
}

/* On a phone, while the hours' problem line shows, a closed day's "No pickups on …" goes: the switch's
   own word says it, and the row keeps to one line. */
@media (max-width: 47.9375em) {
	.sd-hours-week-problem .sd-hours-closed {
		display: none;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Store details, setup step 1 (design: StoreSetupDetails): section cards one under another, their fields two to a row
   from 40rem and one column on a phone. Tokens only. */
.sd-details-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

.sd-details-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	align-items: start;
}

@media (min-width: 40rem) {
	.sd-details-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* The town wider than the unit beside it (drawn: 2fr 1fr). */
	.sd-details-grid-town {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

/* The postal code and a day's dates in mono (drawn); the postal code in capitals. */
.sd-details-postal input,
.sd-details-dates input,
.sd-details-date {
	font-family: var(--font-mono);
}

.sd-details-postal input {
	text-transform: uppercase;
}

.sd-details-divider {
	width: 100%;
	margin: 0;
	border: 0;
	border-top: var(--sd-line-width) solid var(--line);
}

/* "Person in charge · only Sundries sees this": the drawing's bold line, not a heading's size. */
.sd-details-person {
	margin: 0;
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
	font-weight: 700;
}

.sd-details-person .sd-caption {
	font-weight: 400;
}

/* The holidays: each name, then its answer (and Custom's times) at the row's end, wrapping under it on a phone. */
.sd-details-holidays {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sd-details-holiday {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-3);
	padding: var(--space-2) 0;
}

.sd-details-holiday + .sd-details-holiday {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-details-holiday-answer,
.sd-details-holiday-times {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-2);
}

/* Other days: each closure a row with its calendar icon, its name and dates, and Remove. */
.sd-details-days {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sd-details-day {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2) 0;
}

.sd-details-day + .sd-details-day {
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-details-day-icon {
	color: var(--ink-muted);
}

.sd-details-day-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.sd-details-add-day {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-4);
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
}

.sd-details-add-day > h3 {
	margin: 0;
}

.sd-details-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* A day's How often and How long, side by side while they fit, one under the other when they don't (not drawn). */
.sd-details-day-choices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

/* A day's How often and How long (not drawn) and Hours: its label, the choice and Custom's times, one under another (drawn). */
.sd-details-day-hours {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-details-label {
	font-weight: 600;
}

/* The short name's row under the store name, a rule above it inside the Name card (design: StoreSetupFlow, `ShortRow`). */
.sd-details-form .sd-short-name-row {
	padding-top: var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Payments, setup step 2 (design: StoreSetupPayments): section cards, How shoppers pay's numbered steps, the HST facts
   and receipt line, and the fee rows. Tokens only. */
/* The section's own paragraphs; the line under its heading keeps the shared section head's spacing. */
.sd-payments-section p:not(.sd-setup-section-head > p) {
	margin: 0;
}

.sd-payments-how,
.sd-payments-fees {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The steps' number circles: the drawing's 32px. No size token fits, so it is this stylesheet's own, at the default
   text size. */
.sd-payments-how {
	--sd-payments-number-size: 2rem;
	gap: var(--space-4);
}

.sd-payments-how-step {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
}

/* The step's number in a pine circle. */
.sd-payments-how-number {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--sd-payments-number-size);
	height: var(--sd-payments-number-size);
	border-radius: var(--radius-pill);
	background: var(--pine-soft);
	color: var(--pine);
	font-weight: 700;
}

.sd-payments-how-body,
.sd-payments-fee-note {
	display: block;
	margin-top: var(--space-1);
}

.sd-payments-mono,
.sd-payments-amount {
	font-family: var(--font-mono);
}

/* A mono value is one long word (a legal name run into its HST number, a business number): it breaks where it must
   rather than run past the card (375 wide, 200% text: the receipt line ran 10px past the screen). */
.sd-payments-mono {
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-payments-checked {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-payments-checked > svg {
	margin-top: var(--space-1);
	color: var(--pine);
}

/* The receipt line's preview, on the page's own surface. */
.sd-payments-preview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3);
	border-radius: var(--radius-md);
	background: var(--surface);
}

/* A fee's name and its amount side by side, the amount wrapping under the name when they do not fit (375 wide, 200%
   text: "Sundries fee $3.97" ran past the card). */
.sd-payments-fee {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-payments-fee > :last-child {
	flex: 0 1 auto;
	max-width: 100%;
	margin-inline-start: auto;
	text-align: end;
}

.sd-payments-example {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* The statement name's input in capitals and mono, as a card statement prints it (drawn: Inp with font-mono, uppercase
   and maxWidth 320). A true override of the shared Field's input look, kept to this one field. */
.sd-payments-statement .ant-input {
	max-width: 20rem;
	font-family: var(--font-mono);
}

/* Spaces kept as typed (a statement prints them), but wrapping inside the card at 200% text rather than past it. */
.sd-payments-statement-line {
	font-weight: 600;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Pickup and refunds (PoliciesForm; design: StorePolicies): the sections one under another. */
.sd-policies-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

/* Hold cards: one field in a row. */
.sd-policies-windows {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	align-items: start;
}

/* Order amounts (StorePolicies): the two amounts side by side from a wide screen, stacked on a phone. */
.sd-policies-amounts {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	align-items: start;
}

@media (min-width: 64rem) {
	.sd-policies-amounts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* A count's box: the drawing's narrow, right-aligned mono field (88px, kept as rem so it follows the text size). */
.sd-policies-number.ant-input,
.sd-policies-number.ant-select {
	width: 5.5rem;
	font-family: var(--font-mono);
	text-align: right;
}

/* An amount's box, with its $ inside: the drawing's 160px at most (StorePolicies), kept as rem. No size token is that
   narrow (the tokens start at the phone and desktop frames), so it lives here. */
.sd-policies-amount.ant-input-affix-wrapper,
.ant-input-affix-wrapper:has(> .sd-policies-amount) {
	max-width: 10rem;
	font-family: var(--font-mono);
}

/* Each run's cutoff, hold and run (the drawing's CutTable): rows on the surface colour, a line between them. */
.sd-policies-runs {
	width: 100%;
	border-collapse: collapse;
	border-radius: var(--radius-md);
	background: var(--surface);
	font-size: var(--type-body-sm-size);
}

.sd-policies-runs th,
.sd-policies-runs td {
	padding: var(--space-2) var(--space-3);
	text-align: left;
	vertical-align: top;
}

.sd-policies-runs tbody tr + tr > * {
	border-top: var(--sd-line-width) solid var(--line);
}

/* The table's box is the query container (`sdpolicyruns`), so its own width decides whether four columns fit: a
   phone's card, Settings beside its section list and a large text size all narrow it. */
.sd-policies-runs-box {
	container: sdpolicyruns / inline-size;
}

/* Where four columns cannot fit (under 512px of table, 32rem, so it follows the text size: a supplier's name and three
   day-and-time cells would wrap a word to a line), each run's cells stack, the run's name first. The first row's cells
   carry no line between them. */
@container sdpolicyruns (max-width: 32rem) {
	.sd-policies-runs,
	.sd-policies-runs tbody,
	.sd-policies-runs tr,
	.sd-policies-runs th,
	.sd-policies-runs td {
		display: block;
	}

	.sd-policies-runs tr {
		padding-block: var(--space-2);
	}

	.sd-policies-runs th,
	.sd-policies-runs td {
		padding-block: 0;
		overflow-wrap: anywhere;
	}

	.sd-policies-runs tbody tr + tr > * {
		border-top: 0;
	}

	.sd-policies-runs tbody tr + tr {
		border-top: var(--sd-line-width) solid var(--line);
	}
}

.sd-policies-lines,
.sd-policies-consent-lines {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* Where bags wait: each spot's field with its Remove beside it. */
.sd-spots {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-spots-row {
	display: flex;
	gap: var(--space-2);
	align-items: center;
}

.sd-spots-row > .ant-input {
	flex: 1;
	min-width: 0;
}

.sd-policies-refunds {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.sd-policies-choice {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* Each choice's radio sits on its label's first line, not centred on the label and its help. The selectors name
   `.ant-radio-wrapper` so they out-rank Ant Design's own, whatever order the styles load in. */
.sd-policies-refunds .ant-radio-wrapper {
	align-items: flex-start;
}

.sd-policies-refunds .ant-radio-wrapper .ant-radio {
	align-self: flex-start;
	margin-block-start: calc((var(--type-body-line) - 1rem) / 2);
}

/* The checkout consent as shoppers see it: a card on the preview's surface, its tick and the lines under it. Never
   wider than the preview: at 375 wide with 200% text the card's longest word and the lines' indent make it 323px in a
   163px preview, and the preview's wrap stretches "Shoppers see:" to match. So the preview
   does not wrap here, and the card may shrink below its longest word. */
.sd-policies-consent {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
}

.sd-policies-consent-card {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	min-width: 0;
	padding: var(--space-4);
	overflow-wrap: anywhere;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
}

.sd-policies-consent-tick {
	display: flex;
	gap: var(--space-3);
	align-items: flex-start;
	margin: 0;
}

/* The ticked box, drawn: the pine square with its check (the consent's checkbox, not a control here). */
.sd-policies-tick {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: var(--radius-sm);
	background: var(--pine);
	color: var(--on-pine);
}

.sd-policies-consent-lines {
	padding-left: calc(1.375rem + var(--space-3));
}

/* At a large text size on a phone the consent card keeps a smaller inset and its lines start at its edge, not under the
   tick's words: the tick's indent alone would be 68px of a 99px card (Setup.css's card rule says the rest). */
@media (max-width: 20em) {
	.sd-policies-consent-card {
		padding: var(--space-2);
	}

	.sd-policies-consent-lines {
		padding-left: 0;
	}
}

/* The label printer switch, a whole row, with its line under it. */
/* A switch with its help under it: the label printer, Early pickup, No split orders. */
.sd-policies-switch {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The run schedule (RunScheduleForm; design: StoreSetup): the supplier cards one under another. */
.sd-run-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

/* A day and a time side by side (the drawing's `sd-row`, gap 8), wrapping on a narrow screen. */
.sd-run-pair {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	width: 100%;
}

/* The selects size to the longest day and time they offer ("Wednesday", "after 12:30 pm"), so a pair fits a column. */
/* The flex basis only inside a pair, a row: "You shop there at" is a time on its own in a column (.sd-setup-control),
   where a basis is a height, and would draw the select three times as tall as the others. */
/* Never wider than the column, which at 375 wide with 200% text is narrower than 9rem. */
.sd-run-day,
.sd-run-time {
	min-width: min(9rem, 100%);
}

.sd-run-pair > .sd-run-day,
.sd-run-pair > .sd-run-time {
	flex: 1 1 9rem;
}

/* A time needs room for its longest choice ("after 12:30 pm") beside the select's arrow, so the pair wraps the time
   under the day before the time is cut short (a phone's card is about 300px). */
.sd-run-pair > .sd-run-time {
	flex-basis: 11rem;
}

/* The switch's word wraps rather than running past the card (375 wide, 200% text). */
.sd-run-switch {
	flex: 0 1 auto;
	min-width: 0;
}

.sd-run-switch .sd-switch {
	max-width: 100%;
}

.sd-run-add {
	align-self: flex-start;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The Suppliers step (design: StoreSetupSuppliers): the rows with their monogram plates, the add and edit dialog and
   the ask dialog. Tokens only. */
.sd-suppliers {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

.sd-suppliers-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-md);
}

.sd-suppliers-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-4);
}

.sd-suppliers-row + .sd-suppliers-row {
	border-top: var(--sd-line-width) solid var(--line);
}

/* The neutral monogram plate (suppliers have no logos yet): the drawing's 44px, as large as a touch target. */
.sd-suppliers-plate {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--touch-lg);
	height: var(--touch-lg);
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
	color: var(--ink-muted);
	font-weight: 700;
}

/* The plate and the words, side by side, take the room left, with a basis in rem, so in a narrow row (a phone, Settings
   beside its side list at 1024px, 200% text) the actions wrap under them (as StoreSetupSuppliers' phone draws it)
   instead of squeezing a supplier's name onto three lines. 20rem is the plate and about 30 characters of words. */
.sd-suppliers-who {
	display: flex;
	flex: 1 1 20rem;
	align-items: flex-start;
	gap: var(--space-3);
	min-width: 0;
}

.sd-suppliers-main {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-suppliers-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.sd-suppliers-number {
	font-family: var(--font-mono);
	color: var(--ink);
}

.sd-suppliers-how-line {
	color: var(--ink);
}

/* Edit and Remove, or Add: side by side at the row's end, wrapping under the words when they do not fit beside them (the
   drawing's sd-setrow-acts; SettingsRows' `.sd-setrow-acts`). */
.sd-suppliers-acts {
	display: flex;
	flex-wrap: wrap;
	flex: 0 1 auto;
	max-width: 100%;
	align-items: center;
	gap: var(--space-1);
	margin-inline-start: auto;
}

.sd-suppliers-dialog {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-suppliers-dialog p {
	margin: 0;
}

.sd-suppliers-mono input {
	font-family: var(--font-mono);
}

.sd-suppliers-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	align-items: start;
}

@media (min-width: 40rem) {
	.sd-suppliers-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sd-suppliers-how {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-suppliers-label {
	font-weight: 700;
}

/* The dialogs' and the staff page's subheadings: the drawing's bold line, not a heading's size. */
.sd-suppliers-subhead {
	margin: 0;
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
	font-weight: 700;
}

/* The branch's new-accounts contact, shown when the store doesn't buy from the supplier yet. */
.sd-suppliers-branch-contact {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-md);
	background: var(--surface-sunken);
}

.sd-suppliers-branch-contact p,
.sd-suppliers-branch-contact ul {
	margin: 0;
}

.sd-suppliers-branch-contact ul {
	padding: 0;
	list-style: none;
}

/* The "preferred" tag sits after the phone or email it marks (design: StoreSetupSuppliers). */
.sd-suppliers-branch-contact li .sd-kind-tag {
	margin-inline: var(--space-2) 0;
}

/* The ask dialog (a rep or a branch). Its two sides, the supplier's fields and the rep's or the branch's,
   and its foot, Anything else and the consent, each a column of fields. */
.sd-suppliers-ask-side,
.sd-suppliers-ask-foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

/* The choice with its problem line under the cards. */
.sd-suppliers-ask-choice {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
}

/* From 64em (utils/breakpoints.ts PORTAL_DRAWER_QUERY; the dialog is then the 820px one, DIALOG_TABLE_PROPS) the form
   uses the width: the choice across the top, the supplier's fields on the left and the rep's or the branch's on the
   right, Anything else and the consent across the foot (not drawn). Each side is one column, its pairs
   no longer side by side: a side is about as wide as the narrow dialog's pair of fields. */
@media (min-width: 64em) {
	.sd-suppliers-ask-wide {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		column-gap: var(--space-6);
	}

	.sd-suppliers-ask-wide > .sd-suppliers-ask-across,
	.sd-suppliers-ask-wide > .sd-suppliers-ask-choice,
	.sd-suppliers-ask-wide > .sd-suppliers-ask-foot {
		grid-column: 1 / -1;
	}

	.sd-suppliers-ask-wide .sd-suppliers-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Override: RadioCards stacks its cards in a column; across the wide dialog's top the two cards sit side by side. */
	.sd-suppliers-ask-wide .sd-radio-cards-group.ant-radio-group {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The grouped permission checklist (design system StaffRoles; StoreTeam): the drawing's
   `.sd-perm-area`, `.sd-perm`, `.sd-perm-name`, `.sd-perm-desc`, `.sd-perm-note` and `.sd-perm-has`, on the shared
   tokens. */
.sd-perm-areas {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	min-width: 0;
}

/* An area: a card whose legend is its heading (18/24 bold), a rule under it. A fieldset's legend sits on its border
   unless it floats; floated full width, it is the card's first row. */
.sd-perm-area {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface-raised);
}

.sd-perm-area > legend {
	float: left;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: var(--space-3) var(--space-4);
	border-bottom: var(--sd-line-width) solid var(--line);
	color: var(--ink);
	font-size: var(--type-title-3-size);
	line-height: var(--type-title-3-line);
	font-weight: 700;
}

.sd-perm-area > legend + * {
	clear: both;
}

/* One permission: the box (or the allowed mark), then the name, its one line and any note in the second column; a row
   of 44px or more, its padding inside the 44px, so a name with no line under it is not held a line taller. */
.sd-perm {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: var(--space-6) minmax(0, 1fr);
	gap: var(--space-1) var(--space-3);
	align-items: start;
	min-height: var(--touch-min);
	padding: var(--space-3) var(--space-4);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-perm-area > legend + .sd-perm {
	border-top: 0;
}

.sd-perm-name {
	font-weight: 700;
	overflow-wrap: break-word;
}

.sd-perm-tag {
	/* With the space before it, the drawn 8px from the name. */
	margin-inline-start: var(--space-1);
}

/* The one line: the caption (14/20 muted, `.sd-caption`), a short measure so it stays within three lines at 200% text. */
.sd-perm-desc,
.sd-perm-note {
	grid-column: 2;
}

.sd-perm-desc {
	max-width: 60ch;
}

/* The note under a held view: the caption's size at full ink, bold, as drawn (`.sd-perm-note`). */
.sd-perm-note.sd-caption {
	display: inline-flex;
	align-items: flex-start;
	gap: var(--space-1);
	color: var(--ink);
	font-weight: 700;
}

.sd-perm-note svg {
	/* One caption line tall, so the link icon sits on the first line when the words wrap. */
	height: 1lh;
	flex: none;
}

/* A view held ticked by a permission that includes it: at reduced opacity, as drawn, and still focusable (it is
   aria-disabled, not disabled). Ant Design draws a not-allowed cursor only for a disabled box; this one is pressable
   and does nothing, so it keeps the default. */
.sd-perm-locked .ant-checkbox-wrapper {
	opacity: 0.6;
}

/* The Overseer's mark in place of a box: the Solid circle-check in pine, level with the name's first line. */
.sd-perm-has {
	display: inline-flex;
	align-items: center;
	height: var(--type-body-line);
	color: var(--pine);
	font-size: var(--type-title-3-size);
}

/* A permission the role does not hold, for staff who may only look (StaffRoles' view-only staff): the Regular minus,
   muted, level with the name's first line, and the name in regular weight. */
.sd-perm-not {
	display: inline-flex;
	align-items: center;
	height: var(--type-body-line);
	color: var(--ink-muted);
	font-size: var(--type-title-3-size);
}

.sd-perm-name.sd-perm-name-not {
	font-weight: 400;
}

/* A group that can never be ticked here (a store's Owners only, StoreTeam): its lock line under the heading, in the
   rows' gutter. */
.sd-perm-area-note {
	padding: var(--space-3) var(--space-4) 0;
}

/* A box that can never be ticked here: its name muted, as drawn (StoreTeam's Owners only). */
.sd-perm-closed .sd-perm-name {
	color: var(--ink-muted);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The store's Team screens (design: StoreTeam). Tokens only. */

/* The page's title row: Team and Add a person, the button under the title where they do not fit side by side. */
.sd-team-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

/* Every heading level the row carries (h3 under Settings' h2) sits at the row's top: a browser's own heading margin
   would push the title down from the card's padding. */
.sd-team-head > :is(h1, h2, h3) {
	margin: 0;
}

/* A person (drawn: `Who`): their initials, then their name with "You" and the address or "Invited · not joined yet". */
.sd-team-who {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-width: 0;
}

/* A member's hand-over photo, for an owner: the initials' 32px circle at the default text size (Avatar's md). */
.sd-team-who-photo {
	flex: none;
	width: var(--space-8);
	height: var(--space-8);
	border-radius: 50%;
	object-fit: cover;
}

.sd-team-who-words {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: anywhere;
}

.sd-team-who-name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

/* A row's buttons, at the end of the row; the last owner's lock line in their place. */
.sd-team-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--space-2);
}

.sd-team-actions .sd-lock-line {
	margin: 0;
}

/* The last owner's line, on their row and their page: "You're Hilltop's only owner." over "Add
   another owner first.", read from the start of the line even in the row's end-aligned cell, the lock on their left and
   centred against both lines. Each sentence is a block, so the break falls between them, not where the cell runs out. */
.sd-lock-line.sd-team-last-owner {
	align-items: center;
	text-align: start;
}

/* In the table it takes the place of Change role and Remove, so it ends where Remove's text ends rather than against
   the table's edge: the text button's inline padding, theme.ts Button paddingInline (20), which
   Ant Design scopes to the button, said here as the matching space token. */
.sd-team-actions .sd-lock-line.sd-team-last-owner {
	padding-inline-end: var(--space-5);
}

.sd-team-line {
	display: block;
}

/* A phone's row of an invited person: what they are, then Send again and Remove, under it. */
.sd-team-invited-row {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-4);
}

.sd-team-invited-row .sd-team-actions {
	justify-content: flex-start;
}

/* The roles (drawn: RolesCard): each role's name, what it can do, and Ready-made or Edit. The card's box is
   `sd-surface-card`, the same as the team table's card above it (TableCard). */
.sd-team-roles {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	padding: var(--space-6);
}

.sd-team-roles-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sd-team-role {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--space-2) var(--space-4);
	padding: var(--space-3) 0;
}

.sd-team-role + .sd-team-role {
	border-top: var(--sd-line-width) solid var(--line);
}

/* The role's name keeps the drawing's column; at a large text size it takes its own line over what it can do. */
.sd-team-role-name {
	flex: 0 1 8rem;
}

.sd-team-role-can {
	flex: 1 1 16rem;
	min-width: 0;
}

/* A person's page and the role editor: one column on a narrow page (theme/page.css), its buttons the column's width on
   a phone. */
.sd-team-record {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.sd-team-record > p {
	margin: 0;
}

.sd-team-fact {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-team-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

.sd-team-buttons-stacked {
	flex-direction: column;
}

/* A dialog's form: the email, then the role choice. */
.sd-team-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* A phone row's role in its caption ("Clerk · Added by Denise Roy · Oct 23"): ink, where the caption around it is muted
   (drawn: StoreTeam phone). */
.sd-team-row-role {
	color: var(--ink);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Settings · Counter devices (design: CounterDevices). Tokens only. */

/* The heading and Add a counter device, the button under it where they do not fit side by side. */
.sd-counter-devices-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.sd-counter-devices-head > h1,
.sd-counter-devices-head > h2,
.sd-counter-devices-page p {
	margin: 0;
}

/* The lead: 640px at the default text size (drawn). */
.sd-counter-devices-intro {
	max-width: 40rem;
}

/* The counter's address, as typed on the device: mono, kept on one line where it fits. On a phone at a large text size
   it does not (445px at 375 wide with 200% text), so there it wraps. */
.sd-counter-address {
	font-family: var(--font-mono);
	white-space: nowrap;
}

@media (max-width: 20em) {
	.sd-counter-address {
		white-space: normal;
		overflow-wrap: anywhere;
	}
}

/* A phone's row: the glyph in its fixed-width column at the top, the lines, then Remove; Remove wraps under them at a
   large text size (drawn: `DevItem`). */
.sd-counter-devices-row {
	flex-wrap: wrap;
	align-items: flex-start;
}

/* Override: the lines' basis, 120px at the default text size, below which Remove wraps under them (drawn: `DevItem`
   at 200%); no token holds a column's basis. */
.sd-counter-devices-row .sd-row-list-main {
	flex: 1 1 7.5rem;
}

/* Add a counter device: the name, or the steps, the code and its time. */
.sd-counter-devices-form,
.sd-counter-devices-code {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* Once named: Scan a code, then Get a code, each with its line under it, 8 between and 16 between the two (design:
   CounterDevices, Scan a code). */
.sd-counter-devices-ways {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	margin-top: var(--space-4);
}

.sd-counter-devices-way {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
}

.sd-counter-devices-code:focus {
	outline: none;
}

/* "For Hilltop", bold and centred, 4px over the code (design: CounterDevices). */
.sd-counter-devices-for {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-counter-devices-for > .sd-caption {
	text-align: center;
	font-weight: 700;
}

.sd-counter-devices-steps {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: 0;
	padding-left: var(--space-5);
}

.sd-counter-devices-timer {
	text-align: center;
}

/* The page's buttons: on a phone each is the column's width (`block`), so they stack; wider, side by side. */
.sd-counter-devices-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/*
 * The printed sign-up poster (design: StorePoster), letter size. A true override of the spacing and type scales: the
 * sheet is artwork with a physical size, so every measure is a number of `--sd-poster-in`, the sheet's inch (the
 * drawing's 816 x 1056 px at 96 an inch; a point is an inch over 72), which the screen tokens cannot express. In print
 * it is a real inch; the thumbnail makes it a share of its own width, so the same sheet draws small. Its colours are the
 * fixed print tokens and the brand pine, never themed: the paper is white in dark mode too.
 */
.sd-poster-sheet {
	--sd-poster-in: 1in;
	--sd-poster-pt: calc(var(--sd-poster-in) / 72);

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex: none;
	align-items: center;
	gap: calc(0.25 * var(--sd-poster-in));
	width: calc(8.5 * var(--sd-poster-in));
	height: calc(11 * var(--sd-poster-in));
	padding: calc(0.667 * var(--sd-poster-in)) calc(0.75 * var(--sd-poster-in));
	overflow: hidden;
	background: var(--print-paper);
	color: var(--print-ink);
	font-family: var(--font-sans);
	text-align: center;
	/* eslint-disable-next-line css/use-baseline -- print only: without it a browser may drop the pine and the paper */
	print-color-adjust: exact;
	-webkit-print-color-adjust: exact;
}

.sd-poster-logo {
	width: calc(3.958 * var(--sd-poster-in));
	max-height: calc(2.5 * var(--sd-poster-in));
	object-fit: contain;
}

.sd-poster-sheet-mono .sd-poster-logo {
	filter: grayscale(1) contrast(1.6);
}

/* A store that shows no logo leads with its name (not drawn). */
.sd-poster-name {
	font-size: calc(36 * var(--sd-poster-pt));
	font-weight: 700;
	line-height: 1.15;
}

.sd-poster-headline {
	color: var(--brand-pine);
	font-size: calc(42 * var(--sd-poster-pt));
	font-weight: 700;
	line-height: 1.1;
}

.sd-poster-how {
	max-width: calc(6.25 * var(--sd-poster-in));
	font-size: calc(18 * var(--sd-poster-pt));
	line-height: 1.35;
}

/* The code's frame. The code is 3.5 in on the sheet (StorePoster.tsx SHEET_CODE_PX), drawn to the sheet's inch. */
.sd-poster-code {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(9 * var(--sd-poster-pt));
	margin-top: calc(6 * var(--sd-poster-pt));
}

/* The frame is the code's own (QRCode.css), at the sheet's scale: 3pt is the token's 4px, 9pt
   the cards' 12px. The sheet's units are not px. */
.sd-poster-code .sd-qr {
	border-width: calc(3 * var(--sd-poster-pt));
	border-radius: calc(9 * var(--sd-poster-pt));
}

.sd-poster-code .sd-qr svg {
	width: calc(3.5 * var(--sd-poster-in));
	height: calc(3.5 * var(--sd-poster-in));
}

.sd-poster-scan {
	color: var(--brand-pine);
	font-size: calc(21 * var(--sd-poster-pt));
	font-weight: 700;
}

.sd-poster-typed {
	font-family: var(--font-mono);
	font-size: calc(15 * var(--sd-poster-pt));
}

.sd-poster-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(3 * var(--sd-poster-pt));
	margin-top: auto;
	font-size: calc(12 * var(--sd-poster-pt));
	line-height: 1.4;
}

.sd-poster-sheet-mono .sd-poster-headline,
.sd-poster-sheet-mono .sd-poster-scan {
	color: var(--print-ink);
}

/*
 * The thumbnail: a preview of the sheet, not a code to scan. It is drawn at 30%, as
 * StorePoster draws it, and narrower where the space is: never wider than what holds it, a 320 px phone included. Its
 * width is fluid and the sheet's inch follows it (a container query unit), so the whole sheet scales with it.
 */
.sd-poster-thumbnail {
	container-type: inline-size;
	flex: 0 1 auto;
	width: min(100%, calc(8.5in * 0.3));
	overflow: hidden;
	box-shadow: var(--shadow-float);
}

.sd-poster-thumbnail .sd-poster-sheet {
	--sd-poster-in: calc(100cqw / 8.5);
}

/* Print and Download PDF. */
.sd-poster-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* The print copy: never on screen; in print, the one thing on the page, on a letter sheet with no margin. */
/* eslint-disable-next-line css/use-baseline -- print only: the sheet's letter size; a browser without it prints on its default page */
@page sd-poster {
	size: letter;
	margin: 0;
}

.sd-poster-print {
	display: none;
}

@media print {
	/* Only on a page holding the copy: any other page prints as it always has. */
	body:has(> .sd-poster-print) > :not(.sd-poster-print) {
		/* eslint-disable-next-line css/no-important -- in print the poster must be the only thing on the page, whatever the page's own rules show */
		display: none !important;
	}

	.sd-poster-print {
		display: block;
	}

	.sd-poster-print .sd-poster-sheet {
		page: sd-poster;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* Settings · Sign-up poster (design: StorePoster): the thumbnail beside its words on desktop, above them on a phone. */
.sd-poster-settings {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--space-6);
}

.sd-poster-settings-side {
	display: flex;
	flex: 1 1 18rem;
	flex-direction: column;
	gap: var(--space-3);
	max-width: 26rem;
}

.sd-poster-settings-side p {
	margin: 0;
}

.sd-poster-settings-code {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding-top: var(--space-3);
	border-top: var(--sd-line-width) solid var(--line);
}

.sd-poster-settings-code p {
	margin: 0;
}

.sd-poster-settings-code-lines {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.sd-poster-settings-print {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* The wait's blocks: the thumbnail's own size (8.5 in at 30%, as the thumbnail is drawn), then the lines and button. */
.sd-poster-skel-thumbnail {
	flex: none;
	width: min(100%, calc(8.5in * 0.3));
	aspect-ratio: 8.5 / 11;
}

.sd-poster-skel-line {
	width: 90%;
	height: var(--space-4);
}

.sd-poster-skel-short {
	width: 70%;
}

.sd-poster-skel-shorter {
	width: 55%;
}

/* Override: the Print button's width while it loads. No size token is a button's width; 10rem is the drawn button's,
   in rem so it follows the text size. */
.sd-poster-skel-button {
	width: 10rem;
	height: var(--sd-control-height-lg);
}

/* On a phone the thumbnail fills the content width (drawn: fluid on the phone). */
@media (max-width: 47.9375em) {
	.sd-poster-page .sd-poster-thumbnail,
	.sd-poster-skel-thumbnail {
		width: 100%;
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The owner's Settings on desktop (design: CounterDevices, StoreTeam `OFrame` with `SetNav`): the h1 "Settings" is in
   the header bar (`OHead`, PortalTitle), so the side list and the section's page start the drawn 32px under it
   (`main` with padding 32). A standard page (design: OwnerSettings, PageWidths: "the 200 section list then the
   sections"), its width and sides theme/page.css's. Tokens only. */
.sd-owner-settings {
	padding-block: var(--space-8);
}

.sd-owner-settings-columns {
	display: flex;
	align-items: flex-start;
	gap: var(--space-8);
}

/* The side list: 200px at the default text size (drawn), its rows reaching its edges. */
.sd-owner-settings-nav {
	flex: none;
	width: 12.5rem;
}

.sd-owner-settings-nav .sd-sidebar-list {
	padding: 0;
}

.sd-owner-settings-content {
	flex: 1 1 auto;
	min-width: 0;
}

/* A section's page keeps its own layout, inside this page rather than a page of its own: Settings' own pages and the
   setup's steps drawn as sections (Setup/stepPlace.ts). Each is a standard page of its own on a phone, where it is
   drawn alone. */
.sd-owner-settings-content > .sd-yourstore-page,
.sd-owner-settings-content > .sd-setup-page {
	max-width: none;
	padding: 0;
}

/* On a phone, Settings' list of its sections (design: CounterDevices `phSettings`): rows to the page's edges, a rule
   under each, the glyph in a fixed-width column, the name in bold, the chevron muted. Override: 56px rows, as drawn,
   above the touch tokens. */
.sd-owner-settings-sections ul {
	margin: 0 calc(-1 * var(--sd-page-gutter));
	padding: 0;
	list-style: none;
}

.sd-owner-settings-sections li {
	border-bottom: var(--sd-line-width) solid var(--line);
}

.sd-owner-settings-sections a {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 3.5rem;
	padding: 0 var(--space-4);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.sd-owner-settings-sections-icon {
	flex: none;
	width: 1.25em;
	text-align: center;
}

.sd-owner-settings-sections-name {
	flex: 1 1 auto;
	min-width: 0;
}

.sd-owner-settings-sections-chevron {
	flex: none;
	color: var(--ink-muted);
}

/* atkinson-hyperlegible-next-latin-400-normal */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(c510f25d4fe696cb1464.woff2) format('woff2'), url(ea73f7abe86ff3cd1a50.woff) format('woff');
}
/* atkinson-hyperlegible-next-latin-700-normal */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(0b5e7bd6f8f8c4523fba.woff2) format('woff2'), url(3e87494964cc05731faa.woff) format('woff');
}
/* atkinson-hyperlegible-mono-latin-600-normal */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(6863ab363e8ad1d7efbe.woff2) format('woff2'), url(4fe4ea40ee3358515959.woff) format('woff');
}
/* atkinson-hyperlegible-mono-latin-700-normal */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(86f83bc077d3a0d57649.woff2) format('woff2'), url(130bc671adc782614e79.woff) format('woff');
}
/* Generated by scripts/generate-palette.mjs from tokens.json. Do not edit. */
:root[data-theme='light'], [data-theme='light'] {
	--surface: #f6f4ef;
	--surface-raised: #ffffff;
	--surface-sunken: #ece9e1;
	--line: #dedad0;
	--line-strong: #857f73;
	--ink: #1c211d;
	--ink-muted: #535953;
	--pine: #1d5a40;
	--pine-duo: #1d5a40;
	--pine-hover: #164832;
	--pine-soft: #e1eee6;
	--on-pine: #ffffff;
	--brand-pine: #1d5a40;
	--print-ink: #000000;
	--print-paper: #ffffff;
	--harvest: #f0b43c;
	--on-harvest: #1c211d;
	--estimate: #7b4a00;
	--estimate-soft: #fbf0d9;
	--short: #a3361a;
	--short-hover: #852b14;
	--short-soft: #fbe7e0;
	--sub: #1f5aa6;
	--sub-hover: #174583;
	--sub-soft: #e3edfa;
	--danger: #b0221a;
	--danger-hover: #8f1a13;
	--on-danger: #ffffff;
	--danger-soft: #fce6e4;
	--focus: #1f5aa6;
	--plate: #ffffff;
	--scrim: rgba(13,15,13,0.48);
	--viewer: #111111;
	--on-viewer: #ffffff;
	--shadow-float: 0 1px 2px rgba(28,33,29,0.08), 0 4px 12px rgba(28,33,29,0.08);
	--shadow-overlay: 0 8px 32px rgba(28,33,29,0.18);
}

:root[data-theme='dark'], [data-theme='dark'] {
	--surface: #131613;
	--surface-raised: #1c201c;
	--surface-sunken: #0d0f0d;
	--line: #2e342e;
	--line-strong: #79817a;
	--ink: #eceee8;
	--ink-muted: #a9b0a8;
	--pine: #79cfa1;
	--pine-duo: #2e8a63;
	--pine-hover: #95dcb5;
	--pine-soft: #173325;
	--on-pine: #0b1a12;
	--brand-pine: #1d5a40;
	--print-ink: #000000;
	--print-paper: #ffffff;
	--harvest: #f0b43c;
	--on-harvest: #1c211d;
	--estimate: #f2c46b;
	--estimate-soft: #33280f;
	--short: #ff9a76;
	--short-hover: #ffb497;
	--short-soft: #3a1d14;
	--sub: #8fbaff;
	--sub-hover: #c2d9ff;
	--sub-soft: #16253d;
	--danger: #ff8c84;
	--danger-hover: #ffaca5;
	--on-danger: #2b0a07;
	--danger-soft: #3b1714;
	--focus: #8fbaff;
	--plate: #f4f2ec;
	--scrim: rgba(0,0,0,0.64);
	--viewer: #111111;
	--on-viewer: #ffffff;
	--shadow-float: 0 1px 2px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
	--shadow-overlay: 0 8px 32px rgba(0,0,0,0.6);
}

:root {
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-12: 3rem;
	--radius-sm: 0.25rem;
	--radius-md: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-pill: 62.4375rem;
	--touch-min: 2.75rem;
	--control-compact: 2.25rem;
	--touch-lg: 3.25rem;
	--touch-aisle: 3.5rem;
	--row-aisle: 4rem;
	--plate-tile: 9rem;
	--qr-frame-width: 0.25rem;
	--page-narrow: 50rem;
	--page-standard: 65rem;
	--page-wide: 75rem;
	--page-side: 22.5rem;
	--side-column: 20rem;
	--search-max: 26.25rem;
	--type-display-size: 2rem;
	--type-display-line: 2.375rem;
	--type-title-1-size: 1.5rem;
	--type-title-1-line: 1.875rem;
	--type-title-2-size: 1.25rem;
	--type-title-2-line: 1.625rem;
	--type-title-3-size: 1.125rem;
	--type-title-3-line: 1.5rem;
	--type-body-lg-size: 1.125rem;
	--type-body-lg-line: 1.625rem;
	--type-body-size: 1rem;
	--type-body-line: 1.5rem;
	--type-body-strong-size: 1rem;
	--type-body-strong-line: 1.5rem;
	--type-label-size: 0.875rem;
	--type-label-line: 1.25rem;
	--type-caption-size: 0.875rem;
	--type-caption-line: 1.25rem;
	--type-body-sm-size: 0.875rem;
	--type-body-sm-line: 1.375rem;
	--type-price-lg-size: 1.5rem;
	--type-price-lg-line: 1.875rem;
	--type-price-size: 1rem;
	--type-price-line: 1.5rem;
	--type-compact-size: 0.9375rem;
	--type-compact-line: 1.25rem;
	--type-qty-aisle-size: 1.75rem;
	--type-qty-aisle-line: 2rem;
	--type-code-size: 0.875rem;
	--type-code-line: 1.25rem;
	--font-sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--opacity-disabled: 0.5;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The type scale's titles (tokens.json, "title-1" to "title-3"), defined once so every screen's headings match:
   - title-1: a page's one h1 (Settings, every staff page, the sign-in and sign-up card, a whole-page message);
   - title-2: each section's h2 (Settings sections, staff sections);
   - title-3: a card's or an in-page message's title.
   The public site keeps its own larger display scale (PublicChrome.css). No other stylesheet sizes a title: a test
   (theme/__tests__/titles.test.ts) reads them all.

   Each class is also written after `.ant-typography`: Ant Design sizes `h1.ant-typography` and `.ant-typography h1`
   (one class and one element), which a lone class does not out-rank. */
.sd-title-1,
.ant-typography.sd-title-1 {
	font-size: var(--type-title-1-size);
	line-height: var(--type-title-1-line);
	font-weight: 700;
}

.sd-title-2,
.ant-typography.sd-title-2 {
	font-size: var(--type-title-2-size);
	line-height: var(--type-title-2-line);
	font-weight: 700;
}

.sd-title-3,
.ant-typography.sd-title-3 {
	font-size: var(--type-title-3-size);
	line-height: var(--type-title-3-line);
	font-weight: 700;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The type scale's caption (tokens.json, "caption", 14/20) in ink-muted, defined once: a field's second line, the line
   under a section title, a row's meta, the legal line, "Powered by". A screen adds this class to the element and keeps
   only its own layout (margin, alignment, flex) in its stylesheet, so a change to the caption reaches every one. */
.sd-caption {
	color: var(--ink-muted);
	font-size: var(--type-caption-size);
	line-height: var(--type-caption-line);
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Ghost text: a word drawn as its outline alone, a 1.5px ink-muted stroke with no fill (design: CounterSleep, option F,
   the resting plate's initials, and the sleep screen's store name, grey like the logo). Defined once
   so the initials and the name keep one stroke. No line-width token is 1.5px (as RestingPlate.css's 2px outline). */
.sd-ghost-text {
	color: transparent;
	-webkit-text-stroke: 0.09375rem var(--ink-muted);
}

/* A browser that cannot stroke text would draw nothing: there the word is plain ink-muted, never invisible. */
@supports not (-webkit-text-stroke: 0.09375rem var(--ink-muted)) {
	.sd-ghost-text {
		color: var(--ink-muted);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* The design system's chip (`sd-chip`), defined once: the shopper's filter, shelf, sort and Filters chips (design:
   BrowseResults, Aisles, FilterDrawer) and the Auditor's filter chips (design: AuditorScope). A screen keeps only its own
   layout in its stylesheet. */

/* A chip: 40px tall at the default text size and 14px either side (the drawing's; no token is either), in rem so it
   grows with the text; the label type, a strong line round it on surface-raised. */
.sd-chip {
	flex: none;
	display: inline-flex;
	align-items: center;
	/* Between the check and the word: --space-2 (the drawing's 6px, on the scale). */
	gap: var(--space-2);
	min-height: 2.5rem;
	padding: 0 0.875rem;
	border: var(--sd-line-width) solid var(--line-strong);
	border-radius: var(--radius-md);
	background: var(--surface-raised);
	color: var(--ink);
	font: inherit;
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.sd-chip:hover {
	border-color: var(--ink-muted);
}

/* Pressed, or saved (`sd-chip-on`): pine-soft, a pine line and pine words. */
.sd-chip-on,
.sd-chip-on:hover {
	background: var(--pine-soft);
	border-color: var(--pine);
	color: var(--pine);
}

.sd-chip:focus-visible {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
}

/* The check is 16px (the drawing, `size: 16`), in rem so it follows the text; no icon-size token. */
.sd-chip-check {
	font-size: 1rem;
}

/* A chip that is not itself a button, holding its own × (the Auditor's filters: AuditorScope's `cursor: default`): no
   pointer (its look is always `sd-chip-on` or `sd-chip-dashed`, each with its own line); its words may wrap inside the column rather than push the page sideways. */
.sd-chip-static,
.sd-chip-static:hover {
	cursor: default;
	white-space: normal;
	max-width: 100%;
}

/* 36px tall (2.25rem; AuditorScope's minHeight 36, not on the scale), 12px before the glyph and 4px after the × (its
   paddingLeft and paddingRight). */
.sd-chip-sm {
	min-height: 2.25rem;
	padding-inline: var(--space-3) var(--space-1);
}

/* The icon slot before the words: 14px (the drawing's `size: 14`), in rem; no icon-size token. */
.sd-chip-icon {
	flex: none;
	font-size: 0.875rem;
}

.sd-chip-text {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Temporary (the Auditor's View): dashed in the estimate colour on estimate-soft, the words in ink. */
.sd-chip-dashed,
.sd-chip-dashed:hover {
	background: var(--estimate-soft);
	border-style: dashed;
	border-color: var(--estimate);
	color: var(--ink);
}

/* The chip's ×: 32px square at the default text size (2rem, the drawing's), inside the chip; the chip's colour. */
.ant-btn.sd-chip-remove {
	flex: none;
	width: 2rem;
	min-width: 2rem;
	height: 2rem;
	padding: 0;
	color: inherit;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* The type scale's code (tokens.json, "code", 14/20) in the mono face, defined once: a time or a figure set as data,
   such as the Received time of a store enquiry. A screen adds this class to the element and keeps only its own layout
   in its stylesheet. Colour is left to the element, so it takes its context's ink. */
.sd-code {
	font-family: var(--font-mono);
	font-size: var(--type-code-size);
	line-height: var(--type-code-line);
	font-variant-numeric: tabular-nums;
}

/* The size of a status icon beside its words: a field's error, a confirm's error, a status banner (the drawing's
   `Icon size: 18` in `.sd-field-error`, `.sd-dialog-error` and Banner()). tokens.json has no icon sizes, so this is
   not a design token; it is defined once here, in rem so it follows the person's text size, and drawn only by
   components/StatusIcon (theme/__tests__/statusIcon.test.ts fails if it is typed anywhere else). */
:root {
	--status-icon-size: 1.125rem;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css and Ant Design's theme variables (--sd-*), which the CSS linter cannot resolve */

/* A card's box (design system: `sd-card`): the hairline, the large radius and the raised surface, defined once. A
   screen adds this class and keeps only its own layout (padding, gap, flex) in its stylesheet. Many older screens
   still type the box themselves (eolhq/sundries issue 247 moves them over). */
.sd-surface-card {
	border: var(--sd-line-width) solid var(--line);
	border-radius: var(--sd-border-radius-lg);
	background: var(--surface-raised);
}

/* A failed action's reason, on its own line (design: `sd-dialog-error`): the alert icon, then the words in bold danger
   at the label size, 14/20. A confirm's error (ConfirmDialog) and Start shopping's refusals both draw it; a screen adds
   only its own margin. */
.sd-error-line {
	display: flex;
	gap: var(--space-2);
	align-items: flex-start;
	font-size: var(--type-label-size);
	line-height: var(--type-label-line);
	font-weight: 700;
	color: var(--danger);
}

/*
 * Every frame's one height model (PublicChrome, AppLayout, PortalFrame for the owner and staff portals, the counter
 * device). theme/__tests__/frameHeights.test.ts holds it.
 *
 * - The document scrolls. Nothing fixes the height of html, body, the SPA's root or a frame, or hides their overflow,
 *   so the wheel, the keys and find-in-page move the page, and the footer follows the content.
 * - A frame is at least the viewport tall (`.sd-frame`), so a short page still puts its footer at the bottom.
 * - A side column (`.sd-frame-side`) stays in view beside the page: sticky, the viewport's height and no more, and it
 *   scrolls on its own when what it holds is taller still. Its child takes that height, so the Sidebar's nav, which
 *   scrolls, gives up its space first and the column's own foot (Back to shopping, Theme, PoweredBy) stays on screen.
 *   (Without it, below about 760px of window the Sidebar grows past the column and PoweredBy sits under the
 *   window's bottom edge, where scrolling the page never brings it.)
 * - Notices sit at the viewport's foot (global.css, `--notice-bottom`), whatever the page has scrolled to.
 *
 * The viewport height is 100dvh where the browser has it, else 100vh, in this one place.
 */
:root {
	--sd-viewport-block: 100vh;
}

@supports (height: 100dvh) {
	:root {
		--sd-viewport-block: 100dvh;
	}
}

/*
 * The tables' two heights (DataTable `height`, docs/specs/staff-tables.md), from the one viewport height above:
 * - The cap: among other sections, a table's rows scroll inside about two-thirds of the window. DataTable.css gives it
 *   to the box round the one table (`.ant-table-content`) as its max-height; the header cells stay sticky above it.
 * - The fill minimum: a filling table (and the Auditor's timeline in its place) keeps its header and about five rows
 *   however short the window, and below that the page scrolls. A small table's row is 0.5rem of padding above and below
 *   a 16px line (the theme's small cell font size, at line height 1.5, so 24px) and a hairline: 41px, about 2.5625rem;
 *   six of them, the header's and five, are 15.375rem. In rem so it keeps pace with the text. It is derived by hand
 *   from the theme's small-table metrics, so theme/__tests__/tableFillMinimum.test.tsx works it out from the theme
 *   and fails when they part: if the small cell padding, the font size or the line height change, change it too.
 */
:root {
	--sd-table-cap-block: calc(var(--sd-viewport-block) * 2 / 3);
	--sd-table-fill-min-block: 15.375rem;
}

.sd-frame {
	min-height: var(--sd-viewport-block);
}

.sd-frame-side {
	box-sizing: border-box;
	flex: none;
	position: sticky;
	top: 0;
	align-self: flex-start;
	height: var(--sd-viewport-block);
	max-height: var(--sd-viewport-block);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

/* The column's content fills it and shrinks to it; anything that cannot shrink further scrolls the column. The id in
   :not() (no element has it) lifts this over the content's own rules, which load later at a class's specificity: the
   Sidebar's `min-height: 100%` would otherwise win, and a `flex: none` or a fixed height on it would bring the foot's
   fall back with no test failing. theme/__tests__/frameHeights.test.ts checks it outranks every rule on a
   side column's content. */
.sd-frame-side > :not(#sd-frame-side-content) {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	max-height: none;
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

/* Page widths (design: PageWidths): every page takes one of three widths, by one rule, never a width of its
   own. A page's root carries `sd-page` and one of `sd-page-narrow` (800), `sd-page-standard` (1040) or `sd-page-wide`
   (1200), the most content it holds. It is centred in the space it has: the window for a shopper page, the space right
   of the side column for Your Store and Staff (the frame puts it there; nothing here knows of the rail). Its gutter is
   16px on a phone and 32px from 1024px (64em, where the side column appears), outside the content: below its max plus
   the gutters the page fills the space, above it the content is capped and centred. A page keeps its own space above
   and below and between its parts; only the sides are set here. docs/conventions/page-widths.md. */
.sd-page {
	--sd-page-gutter: var(--space-4);

	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--sd-page-max) + 2 * var(--sd-page-gutter));
	min-width: 0;
	margin-inline: auto;
	padding-inline: var(--sd-page-gutter);
}

.sd-page-narrow {
	--sd-page-max: var(--page-narrow);
}

.sd-page-standard {
	--sd-page-max: var(--page-standard);
}

.sd-page-wide {
	--sd-page-max: var(--page-wide);
}

@media (min-width: 64em) {
	.sd-page {
		--sd-page-gutter: var(--space-8);
	}
}

/* A page whose sections draw the gutter themselves (`sd-page-flush`: the store pages, whose rows and grids run to the
   page's edge on a phone): the page's box is the same, the padding is its sections', each `var(--sd-page-gutter)`. */
.sd-page.sd-page-flush {
	padding-inline: 0;
}

/* The page is the query container its parts lay out against (`sdpage`), so the two columns below follow the space the
   page has, the rail or not. Only past 30rem: containment makes the page the box a fixed descendant is placed in, and
   on a phone a Term's tooltip is fixed to the window's foot (Term.css). No page has two columns that narrow. */
@media (min-width: 30.0625rem) {
	.sd-page {
		container: sdpage / inline-size;
	}
}

/* Standard's two columns (`sd-page-cols`): one column, the side column last, until the page has 864px of content
   (54rem: the main column's 480, space-6 and page-side's 360); from there the side column stays page-side and the main
   column takes the rest, space-6 between. The cart and checkout share it, so the side column is in the same place on
   both at every width. */
.sd-page-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-6);
	align-items: start;
}

@container sdpage (min-width: 54rem) {
	.sd-page-cols {
		grid-template-columns: minmax(0, 1fr) var(--page-side);
	}
}

/* eslint-disable css/no-invalid-properties -- the custom properties come from the generated tokens.css, which the CSS linter cannot resolve */

body {
	/* No browser default margin: the shell and the public pages draw their own gutters (the staff portal's staff.css
	   already did this; the shopper app had an 8px frame around every page). */
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
}

/* The SPA's root (templates/index.html), full width; it was an inline style there. */
#js-react-main {
	width: 100%;
}

/* The focus ring: buttons, links, menu rows, tabs, switches. Text fields are left out: they keep Ant Design's own
   focus, a `focus` border and a flush 2px `focus` glow (theme.ts, FIELD_FOCUS). A
   field is already a bordered box, so a ring 2px away would float beside it. In Ant Design 6 every text field,
   Select included, focuses an <input> or <textarea>. Leaving out every input also leaves out the hidden inputs of a
   checkbox, a radio and a Segmented option: Ant Design rings the box beside each instead, and the rule below gives
   those rings our offset. */
:focus-visible:not(input):not(textarea) {
	outline: var(--sd-line-width-focus) solid var(--focus);
	outline-offset: var(--sd-line-width-focus);
	box-shadow: none;
}

/* Reduced motion: every animation and transition ends at once. Never 0s: an animation or transition of no duration
   sends its end event (or none at all) before Ant Design's motion is listening, so a dialog's or a notice's leave never
   ends. A cancelled dialog then stays over the page with its mask and its scroll lock, so nothing can be pressed and
   the page does not scroll, and each notice sticks half below the window as it leaves. 0.01ms is too short to see and
   still a run whose end is heard. One iteration as well: an infinite animation (a skeleton's shimmer) at 0.01ms would
   run 100,000 times a second and strobe, a random phase each frame; once, it ends at its start and stays still.
   theme/__tests__/reducedMotion.test.ts holds it. */
/* eslint-disable css/no-important -- reduced motion must beat component-level durations */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Text for screen readers only: an icon-only control's name. The standard clip pattern; the box is one line-width
   (the pattern's 1px), not a size anyone sees. */
.sd-visually-hidden {
	position: absolute;
	width: var(--sd-line-width);
	height: var(--sd-line-width);
	margin: calc(-1 * var(--sd-line-width));
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The design system's 44px icon button (sd-iconbtn): transparent, sunken under the pointer, its icon 20px, both in rem
   so they grow with the text size. The store pages' Back, the store home's ThemeToggle and the staff phone header's
   Show sections (which, on a bespoke button, inherited Ant Design's px size and stayed 17x13px at 200% text). */
.sd-iconbtn {
	flex: none;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: var(--touch-min);
	height: var(--touch-min);
	padding: 0;
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--ink);
	font-size: var(--type-title-2-size);
	cursor: pointer;
}

.sd-iconbtn:hover {
	background: var(--surface-sunken);
}

/* useLargeText's probe: 1rem wide, so a ResizeObserver on it hears the text size change. Never seen or pressed. */
.sd-rem-probe {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 1rem;
	height: 0;
	visibility: hidden;
	pointer-events: none;
}

/* Full-width buttons, and every labelled button inside a `.sd-wrap-buttons` container (each Settings section), on a
   staff page, on a store page or in a phone's foot bar, and on a page of a store's own, wrap their label rather than
   clip it or push the page wider: at a large text size, or on a narrow screen, the label grows past one line (WCAG
   1.4.4 and 1.4.10; at 200% text on a phone "Sign out all other devices" is wider than the screen). Ant Design's button
   is nowrap at a fixed height, so both are undone; each size keeps its usual height as the minimum. An icon-only button
   has no label to wrap and keeps Ant Design's square. */
.ant-btn.ant-btn-block,
.sd-wrap-buttons .ant-btn:not(.ant-btn-icon-only),
.sd-staff-page .ant-btn:not(.ant-btn-icon-only),
.sd-store-page .ant-btn:not(.ant-btn-icon-only),
.sd-card-page .ant-btn:not(.ant-btn-icon-only),
.sd-yourstore-page .ant-btn:not(.ant-btn-icon-only),
.sd-foot-bar .ant-btn:not(.ant-btn-icon-only) {
	white-space: normal;
	height: auto;
	min-height: var(--sd-control-height);
	max-width: 100%;
	padding-block: var(--sd-padding-xxs);
}

.ant-btn.ant-btn-block.ant-btn-lg,
.sd-wrap-buttons .ant-btn.ant-btn-lg:not(.ant-btn-icon-only) {
	min-height: var(--sd-control-height-lg);
}

.ant-btn.ant-btn-block.ant-btn-sm,
.sd-wrap-buttons .ant-btn.ant-btn-sm:not(.ant-btn-icon-only) {
	min-height: var(--sd-control-height-sm);
}

/* A button that waits with a reason (`sd-waiting`; design system README, "Unavailable, with a reason"; bundle
   `.sd-btn[aria-disabled]`): `aria-disabled`, focusable and described by its reason, drawn at the disabled opacity. Ant
   Design draws only `disabled`, which would take the button out of the tab order and hide the reason. Go to checkout
   on the cart (CheckoutWay) and the run's Start (RunStart) wait this way. */
.ant-btn.sd-waiting,
.ant-btn.sd-waiting:hover {
	opacity: var(--opacity-disabled);
	cursor: not-allowed;
}

/* A text button set flush with the words around it, as a caption under a control sits (`sd-btn-flush`): no side
   padding, its lines on the start edge when a large text size wraps them. */
.ant-btn.sd-btn-flush {
	padding-inline: 0;
	justify-content: flex-start;
	text-align: start;
}

/* Inside a `.sd-wrap-buttons` container (each Settings section, every dialog), an icon-only button stays square at any
   text size: as wide as its control height (in rem, remTokens.ts), and never squeezed narrower by a row of actions
   that has run out of room (at 200% text a passkey's Rename would be 44px by 88px). Scoped, not app-wide: in a staff
   table's fixed-width cell a button that may not shrink and grows with the text could overflow the cell. Three or four
   classes, more than Ant Design's two-class size rules, whatever order the styles load in. */
.sd-wrap-buttons .ant-btn.ant-btn-icon-only {
	flex-shrink: 0;
	width: var(--sd-control-height);
}

.sd-wrap-buttons .ant-btn.ant-btn-icon-only.ant-btn-sm {
	width: var(--sd-control-height-sm);
}

.sd-wrap-buttons .ant-btn.ant-btn-icon-only.ant-btn-lg {
	width: var(--sd-control-height-lg);
}

/* Ant Design sizes a drawer's close button from its own font size (26px). A touch target is at least touch-min, so
   every drawer (the account sheet, the staff sections drawer, the Invitations drawer) gets the same size. Doubled
   class, like the overrides below: Ant Design 6 sizes it with `.ant-drawer .ant-drawer-close` (two classes), which a
   single class loses to. */
.ant-drawer .ant-drawer-close {
	box-sizing: border-box;
	width: var(--touch-min);
	height: var(--touch-min);
}

/* Ant Design draws its focus rings in colorPrimaryBorder, which theme.ts pins to `focus`, with a 1px offset. These
   rules restore the 2px offset and the 2px width (and the colour, should a component's own token differ: Button's is
   pine-soft, for its pressed fill; and the width: Pagination's lineWidthFocus is 1px, from the input tokens it
   inherits). Some rings are on the focused element; Ant Design draws others on the box round a hidden input (a
   checkbox, a radio, a Segmented option, a card tab), so those boxes are listed. `:not(#sd-focus-ring)` matches every
   element (no element has that id): it is there for its specificity, one id, which beats every Ant Design focus rule
   (classes and pseudo-classes only, up to six of them in Ant Design 6.6), whatever order the styles load in. */
:focus-visible:not(input):not(textarea):not(#sd-focus-ring),
.ant-checkbox:has(.ant-checkbox-input:focus-visible):not(#sd-focus-ring),
.ant-radio:has(.ant-radio-input:focus-visible):not(#sd-focus-ring),
.ant-radio-button-wrapper:has(:focus-visible):not(#sd-focus-ring),
.ant-segmented .ant-segmented-item-focused:not(#sd-focus-ring),
.ant-tabs-card .ant-tabs-tab-focus:has(.ant-tabs-tab-btn:focus-visible):not(#sd-focus-ring) {
	outline-color: var(--focus);
	outline-width: var(--sd-line-width-focus);
	outline-offset: var(--sd-line-width-focus);
}

/* The current page's item has its own 1px border in the primary colour; with the ring 2px outside it, focus read as two
   edges in two colours. While it has focus the ring alone marks it (its number stays in the primary colour). */
.ant-pagination .ant-pagination-item-active:focus-visible:not(#sd-focus-ring) {
	border-color: transparent;
}

/* Pagination's previous and next: the <li> takes focus and gets the ring above, and Ant Design draws a second ring on
   the button inside it. One ring, ours. */
.ant-pagination .ant-pagination-prev:focus-visible .ant-pagination-item-link:not(#sd-focus-ring),
.ant-pagination .ant-pagination-next:focus-visible .ant-pagination-item-link:not(#sd-focus-ring) {
	outline: none;
}

/* Where notices (Ant Design's message, through NOTICE_CONFIG in notice.tsx) sit (design system README, "Toasts
   (notices)"): at the foot of the page everywhere, in the app and the staff portal, never under the
   header; centred on desktop, inset 12px (--space-3) on a phone; one at a time (NOTICE_CONFIG's maxCount).

   --notice-bottom is the gap under a notice: the drawn 24px (--space-6) above the foot of the window, plus the phone's
   home-indicator inset. A sticky bar at the foot (the cart bar, a pager, a pick-list bar) must never be covered: such a
   bar carries `sd-foot-bar` and sets its height in --foot-bar-height, and while one is on the page the notice sits just
   above it (--space-3 over its top edge) instead. Today that is the Roles page's Save bar on a phone
   (pages/Staff/pages/Roles/PermissionSave.css).

   Ant Design's message has no bottom placement: it always opens its notices with placement 'top' (antd 6
   message/useMessage.js), and its holder carries `ant-message-top`. The rules below move that holder to the foot, as
   Ant Design's own bottom placement for notification draws it (notification/style/placement.js): the holder anchored by
   its bottom, the list from the bottom up, each notice offset from the bottom by the `--notification-y` the list sets,
   and the entrance from below. The id in :not() lifts them over Ant Design's runtime styles, as the focus ring does. */
:root {
	--notice-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0rem));
}

:root:has(.sd-foot-bar) {
	--notice-bottom: calc(var(--foot-bar-height) + var(--space-3) + env(safe-area-inset-bottom, 0rem));
}

.ant-message.ant-message-top:not(#sd-notice-foot) {
	top: auto;
	bottom: calc(var(--notice-bottom) - var(--notification-margin-edge, 0rem));
	flex-direction: column-reverse;
}

.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-notice {
	top: auto;
	bottom: var(--notification-y, 0);
	transform-origin: center top;
}

.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-appear-prepare,
.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-enter-prepare,
.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-appear-start,
.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-enter-start,
.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-leave-active {
	transform: translate3d(-50%, 100%, 0) scale(var(--notification-scale, 1));
}

/* On a phone the notice spans the window, inset 12px each side (design: StaffUsers, PToast): the list's edge is
   --space-3, and the notice fills the list rather than sizing to its words and centring. */
@media (max-width: 47.9375em) {
	.ant-message.ant-message-top:not(#sd-notice-foot) {
		--notification-margin-edge: var(--space-3);
	}

	.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-notice {
		left: 0;
		right: 0;
		width: auto;
		/* Ant Design caps each notice at 100vw less twice its own 24px edge, which would leave it 12px from the left and
		   36px from the right: the list's --space-3 edge is the only inset. */
		max-width: none;
		transform: translate3d(0, 0, 0) scale(var(--notification-scale, 1));
	}

	.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-appear-prepare,
	.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-enter-prepare,
	.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-appear-start,
	.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-enter-start,
	.ant-message.ant-message-top:not(#sd-notice-foot) .ant-message-fade-leave-active {
		transform: translate3d(0, 100%, 0) scale(var(--notification-scale, 1));
	}
}

/* Ant Design draws a Segmented control on one line, so one wider than its column ran past the card and cut off its last
   options (Run schedule's seven days at 375 wide; the site mode's three at 200% text). Every Segmented wraps instead, as
   the design system's phone layout does (`.sd-stack .sd-seg`), and is never wider than its column. */
.ant-segmented {
	max-width: 100%;
}

.ant-segmented .ant-segmented-group {
	flex-wrap: wrap;
}

/* A full-width (`block`) one shares its width out evenly, and Ant Design lets each option shrink below its label, which
   it then cuts off with an ellipsis ("Hilltop deci…" at 200% text on a phone). Each option keeps its label's
   width as its least, so options that no longer fit side by side wrap to a line each and still fill it. */
.ant-segmented.ant-segmented-block .ant-segmented-item {
	flex: 1 1 auto;
	min-width: auto;
	max-width: 100%;
}

/* A label longer than the whole control wraps inside its option rather than run past the track: Ant Design's one
   nowrap line at a fixed line height becomes lines at the body's, padded to at least the control's height. */
.ant-segmented.ant-segmented-block .ant-segmented-item-label {
	white-space: normal;
	overflow-wrap: anywhere;
	line-height: var(--type-body-line);
	padding-block: var(--space-1);
}

