:root {
  --duration-hover: 200ms;
  --duration-sm: 100ms;
  --duration-md: 400ms;
  /* prettier-ignore */
  --ease-emphasis: linear(0,0.0025 1.75%,0.0099 3.55%,0.0341 6.4%,0.0738 9.06%,0.1281 11.41%,0.194 13.37%,0.2714 14.97%,0.5443 18.34%,0.6604 20.61%,0.7167 22.4%,0.7653 24.59%,0.8083 27.28%,0.8448 30.42%,0.8833 35.06%,0.9155 40.62%,0.9421 47.24%,0.9633 54.99%,0.9795 64.01%,0.9909 74.43%,0.9977 86.37%,1);
  --ease-pop: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* prettier-ignore */
  --ease-spring: linear(0, 0.006, 0.025, 0.057 4.1%, 0.103 5.8%, 0.203 8.7%, 0.55 17.8%, 0.651, 0.736, 0.806, 0.866, 0.914, 0.952, 0.98 39.5%, 1 43.1%, 1.013 47%, 1.02 51.6% 59%, 1.003 83.3%, 1);
}

@keyframes scroll-shadow-under {
  from {
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  }
  to {
    box-shadow: 0px 3px 4px -2px rgba(0, 0, 0, 0.15);
  }
}

html::view-transition-group(*) {
  position: absolute;
  top: 0;
  left: 0;

  animation-duration: 100ms;
  animation-fill-mode: both;
}

::view-transition-group(disabled),
::view-transition-old(disabled),
::view-transition-new(disabled) {
  animation-duration: 0s !important;
}

:root {
  --color-background-body: white;
  --color-background-body-hover: hsl(0 0 98%);
  --color-background-input: #ebecec;
  --color-background-modal: white;

  --color-primary: #041122;
  --color-error: #ff3200;
  --color-info: #10bbe7;

  --color-border: #d7dbe1;

  --color-text-body: #041122;
  --color-text-dim: #94979c;
  --color-text-meta: var(--color-text-dim);
  --color-text-link: var(--color-text-body);
  --color-text-error: var(--color-error);

  /* Brand and panels */
  --color-brand: #0c3c75;
  --color-brand-tint: #e6edf6;
  --color-body-gray: #4d5662;
  --color-panel: #f3f4f6;
  --color-info-tint: #e2f6fc;

  /* Status: due dates, rush, holds. Pending sign-off from Pacific Galvanizing. */
  --color-green: #1f9d55;
  --color-green-tint: #e3f5ea;
  --color-amber: #f2a900;
  --color-amber-text: #8a5a00;
  --color-amber-tint: #fff4d6;
  --color-red: var(--color-error);
  --color-red-tint: #ffe9e3;
  --color-orange: #ff7a00;
  --color-yellow: #f2c200;
}

:root {
  --font-heading: "Bebas Neue", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --font-mono: monospace;--size-step-10: clamp(4.9067rem, 4.9067rem + 0vi, 4.9067rem);--size-step-9: clamp(4.1582rem, 4.1582rem + 0vi, 4.1582rem);--size-step-8: clamp(3.5239rem, 3.5239rem + 0vi, 3.5239rem);--size-step-7: clamp(2.9864rem, 2.9864rem + 0vi, 2.9864rem);--size-step-6: clamp(2.5308rem, 2.5308rem + 0vi, 2.5308rem);--size-step-5: clamp(2.1448rem, 2.1448rem + 0vi, 2.1448rem);--size-step-4: clamp(1.8176rem, 1.8176rem + 0vi, 1.8176rem);--size-step-3: clamp(1.5403rem, 1.5403rem + 0vi, 1.5403rem);--size-step-2: clamp(1.3054rem, 1.3054rem + 0vi, 1.3054rem);--size-step-1: clamp(1.1063rem, 1.1063rem + 0vi, 1.1063rem);--size-step-0: clamp(0.9375rem, 0.9375rem + 0vi, 0.9375rem);--size-step--1: clamp(0.7945rem, 0.7945rem + 0vi, 0.7945rem);--size-step--2: clamp(0.6733rem, 0.6733rem + 0vi, 0.6733rem);--size-step--3: clamp(0.5706rem, 0.5706rem + 0vi, 0.5706rem);
}

:root {
  --shadow-s: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --up-shadow-s: 0 -1px 2px rgba(0, 0, 0, 0.08), 0 -4px 12px rgba(0, 0, 0, 0.05);
  --shadow-m: 0 2px 4px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-l: 0 4px 6px rgba(0, 0, 0, 0.2), 0 16px 32px rgba(0, 0, 0, 0.2);
  --up-shadow-m: 0 -2px 4px -2px rgba(0, 0, 0, 0.16),
    0 -8px 24px -8px rgba(0, 0, 0, 0.1);
}

:root {
  --radius-input: 0.8rem;
  --radius-button: 0.8rem;
  --radius-checkbox: 0.2rem;
  --radius-popover: 1.2rem;
  --radius-modal: 1.5rem;

  --width-form: 30rem;
  --width-page: 80rem;
  --width-page-narrow: 56rem;

  --padding-block-button: 0.5em;
  --padding-block-input: 1rem;

  --padding-inline-input: 1rem;
  --padding-inline-button: 1rem;

  --size-icon: 1.1em;
  --size-checkbox: 1.3em;

  --height-button: 2.5rem;
}

/* This is for utilities to loop through in utilities. */

:root {--space-3xs: clamp(0.25rem, 0.25rem + 0vi, 0.25rem);--space-2xs: clamp(0.375rem, 0.3435rem + 0.1342vi, 0.4375rem);--space-xs: clamp(0.6875rem, 0.6875rem + 0vi, 0.6875rem);--space-s: clamp(1.0625rem, 1.031rem + 0.1342vi, 1.125rem);--space-m: clamp(1.75rem, 1.6871rem + 0.2685vi, 1.875rem);--space-l: clamp(2.8125rem, 2.7496rem + 0.2685vi, 2.9375rem);--space-xl: clamp(4.5rem, 4.3742rem + 0.5369vi, 4.75rem);--space-2xl: clamp(7.3125rem, 7.1237rem + 0.8054vi, 7.6875rem);--space-3xl: clamp(11.8125rem, 11.4664rem + 1.4765vi, 12.5rem);--space-3xs-2xs: clamp(0.25rem, 0.1556rem + 0.4027vi, 0.4375rem);--space-2xs-xs: clamp(0.375rem, 0.2177rem + 0.6711vi, 0.6875rem);--space-xs-s: clamp(0.6875rem, 0.4673rem + 0.9396vi, 1.125rem);--space-s-m: clamp(1.0625rem, 0.6535rem + 1.745vi, 1.875rem);--space-m-l: clamp(1.75rem, 1.1523rem + 2.5503vi, 2.9375rem);--space-l-xl: clamp(2.8125rem, 1.8372rem + 4.1611vi, 4.75rem);--space-xl-2xl: clamp(4.5rem, 2.8956rem + 6.8456vi, 7.6875rem);--space-2xl-3xl: clamp(7.3125rem, 4.7013rem + 11.1409vi, 12.5rem);--space-xs-m: clamp(0.6875rem, 0.0898rem + 2.5503vi, 1.875rem);--space-s-l: clamp(1.0625rem, 0.1187rem + 4.0268vi, 2.9375rem);--space-s-2xl: clamp(1.0625rem, -2.2722rem + 14.2282vi, 7.6875rem);

  /* Gutters */
  --space-g: var(--space-s-m);
  --space-g-half: calc(var(--space-g) / 2);
  --space-g-quarter: calc(var(--space-g) / 4);

  /* Region */
  --space-r: var(--space-m-l);

  /* Flow */
  --flow-space: 1.5em;

  /* Between a page's sections */
  --space-section: var(--space-m);
}

/* Modern reset: https://piccalil.li/blog/a-more-modern-css-reset/ */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Balance text wrapping on headings */
:where(h1, h2, h3, h4) {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
:where(a:not([class])) {
  -webkit-text-decoration-skip: ink;
          text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
  color: currentColor;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

iframe {
  display: block;
}

/* more hidden */
*[hidden],
*[hidden="true"] {
  display: none !important;
}
/*
  Global styles

  Low-specificity, global styles that apply to the whole
  project: https://cube.fyi/css.html
*/

body {
  color: var(--color-text-body);
  font-family: var(--font-body);
  line-height: var(--line-height);
  font-size: var(--size-step-0);
  background-color: var(--color-background-body);
}

:where(*, *::after, *::before) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 1px;
  border-color: var(--color-border);
  border-style: none;
  outline-color: var(--color-primary);
  -webkit-tap-highlight-color: transparent;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  inline-size: var(--size-checkbox);
  block-size: var(--size-checkbox);
  border-radius: 0.25em;
  background: var(--color-background-input);
  color: white;
  cursor: pointer;

  /* The real input is visually hidden inside this box, so it anchors here and
     the box wears the focus ring on its behalf. */
  position: relative;

  &:has(input:focus-visible) {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }

  /* The check is always in the markup; only its visibility follows the input,
     so the box does not reflow when it is ticked. */
  & > .icon {
    --size-icon: 80%;

    visibility: hidden;
  }

  &:has(input:checked) {
    background: var(--color-primary);

    & > .icon {
      visibility: visible;
    }
  }
}

.combobox {
  position: relative;

  & > input {
    anchor-name: var(--anchor);
    padding-inline-end: calc(
      var(--padding-inline-input) + var(--size-icon) + 0.5ch
    );
  }

  /* Direct child only: the options inside the popover carry .icon too. */
  & > .icon {
    position: absolute;
    right: var(--padding-inline-input);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  & > .popover {
    position-anchor: var(--anchor);
    position-area: block-end span-inline-end;
    position-try-fallbacks: --combobox-above, flip-block;

    /* The UA sheet sets [popover] { inset: 0; margin: auto }, which centres the
       popover in the viewport and ignores the anchor entirely. */
    inset: auto;
    margin: var(--space-3xs) 0 0;

    width: anchor-size(inline);
    max-height: min(18rem, 40dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@position-try --combobox-above {
  position-area: block-start span-inline-end;
  margin: 0 0 var(--space-3xs);
}

/* A pick-one field: read-only, so it is tapped rather than typed in. */
.combobox-select > input {
  cursor: pointer;
  caret-color: transparent;
}

/* The sheet parts only show on touch screens. Elsewhere the panel is just a
   wrapper the list sits in. */
.listbox-sheet-header,
.listbox-matches {
  display: none;
}

.listbox-panel,
.listbox-results {
  display: contents;
}

/* Touch screens: the list opens as a sheet rather than a dropdown. With search
   it fills the screen under its own search bar; a pick-one field opens a bottom
   sheet over a dimmed page. The extra selectors outrank per-field width rules
   such as the category list's. */
@media (pointer: coarse) {
  /* The doubled class outranks per-field width rules such as the category
     list's. */
  .combobox > .popover.popover[popover] {
    position: fixed;
    inset: 0;
    position-area: none;
    margin: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--color-background-body);
  }

  .combobox > .popover > .listbox-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }

  /* The bar stays put; only the results below it scroll. */
  .combobox .listbox-results {
    display: block;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .listbox-sheet-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-s);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-background-body);
  }

  .listbox-search {
    position: relative;
    flex: 1;

    & > .icon {
      position: absolute;
      left: var(--space-s);
      top: 50%;
      transform: translateY(-50%);
      --size-icon: 1.25rem;
      color: var(--color-text-dim);
      pointer-events: none;
    }

    & input[type="search"] {
      height: 3.75rem;
      /* The height sets the size; padding on top of it pushes the text off
         centre in Safari. */
      padding-block: 0;
      padding-inline: calc(var(--space-s) + 1.75rem) 3.25rem;
      line-height: normal;
      border: 0;
      outline: none;
      border-radius: 999px;
      background: var(--color-background-input);
      font-size: 18px;
      -webkit-appearance: none;

      &::-webkit-search-cancel-button { display: none; }
      &::-webkit-search-decoration { -webkit-appearance: none; }
    }

    @media (max-width: 600px) {
      & input[type="search"] { height: 3.5rem; }
    }
  }

  .listbox-search-clear {
    position: absolute;
    right: var(--space-xs);
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-text-dim);
    color: white;
    cursor: pointer;

    & > .icon { --size-icon: 0.9rem; }
    &[hidden] { display: none; }
  }

  /* Quiet: no border or fill until hovered or focused, like a line's actions. */
  .listbox-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3.75rem;
    height: 3.75rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    color: var(--color-text-body);
    cursor: pointer;

    & > .icon { --size-icon: 1.5rem; }
    &:hover, &:focus-visible { background: var(--color-panel); border-color: var(--color-border); }
    &:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
  }

  .listbox-matches {
    display: block;
    padding: var(--space-xs) var(--space-s) 0;
    font-size: 13px;
    color: var(--color-text-dim);

    &[hidden] { display: none; }
  }

  /* Full-width rows, tall enough for gloves, divided by an inset hairline. The
     chosen one is filled, with its check at the right edge. */
  .combobox .listbox {
    padding: 0;

    & [role="option"] {
      position: relative;
      align-items: center;
      min-height: 4rem;
      padding-inline: var(--space-s);
      border-radius: 0;
      font-size: 18px;

      &::after {
        content: "";
        position: absolute;
        left: var(--space-s);
        right: 0;
        bottom: 0;
        height: 1px;
        background: var(--color-background-input);
      }

      & .check-icon { order: 3; margin-inline-start: auto; --size-icon: 1.25rem; }
      & .listbox-meta { order: 2; font-size: 15px; color: var(--color-text-dim); }

      &[aria-selected="true"] { background: var(--color-panel); }
      &.is-active:not([aria-selected="true"]) { background: none; }
    }

    /* Already set apart by its own full-width border. */
    & .listbox-create { margin: 0; }
    & .listbox-create::after { display: none; }
  }

  /* Pick-one fields: a bottom sheet over the dimmed page, always at least half
     the screen however few options it has. */
  .combobox-select > .popover[popover]:popover-open {
    display: flex;
    align-items: flex-end;
    background: rgb(4 17 34 / 0.4);
  }

  .combobox-select > .popover > .listbox-panel {
    width: 100%;
    height: auto;
    min-height: 50dvh;
    max-height: 55dvh;
    padding-block-start: 0;
    border-radius: 20px 20px 0 0;
    background: var(--color-background-body);
    box-shadow: 0 -8px 24px rgb(4 17 34 / 0.15);
  }

  .listbox-sheet-titled {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block-start: var(--space-2xs);
    border-radius: 20px 20px 0 0;
  }

  .listbox-grabber {
    align-self: center;
    width: 2.5rem;
    height: 5px;
    margin-block-end: var(--space-xs);
    border-radius: 999px;
    background: var(--color-border);
  }

  .listbox-sheet-title { font-size: 20px; font-weight: 600; }
  .listbox-sheet-context { font-size: 14px; color: var(--color-text-dim); }

  .combobox-select .listbox [aria-selected="true"] .listbox-label::after {
    content: "Current";
    margin-inline-start: var(--space-xs);
    font-size: 13px;
    color: var(--color-body-gray);
  }
}
.field-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

label:has(input[type="checkbox"]) {
  padding-block: var(--padding-block-input);
  cursor: pointer;
  display: flex;
  gap: var(--space-xs);
}

.icon {
  width: var(--size-icon);
  height: var(--size-icon);
  fill: currentColor;
  display: inline;
  vertical-align: -0.15em;
}

:where(input, select, textarea, .input) {
  border-style: none;
  background: var(--color-background-input);
  border-radius: var(--radius-input);
  padding-block: var(--padding-block-input);
  padding-inline: var(--padding-inline-input);
  width: 100%;

  &::-moz-placeholder {
    color: var(--color-text-dim);
  }

  &::placeholder {
    color: var(--color-text-dim);
  }
}

/* Native selects ignore padding in WebKit; drawn like the other fields instead. */
select {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpolyline points='208 96 128 176 48 96' fill='none' stroke='%23041122' stroke-linecap='round' stroke-linejoin='round' stroke-width='24'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--padding-inline-input) center;
  background-size: 1.1em;
  padding-inline-end: calc(var(--padding-inline-input) * 2 + 1em);
}

/* iPad Safari draws date inputs natively: taller than the other fields, with
   the date centred. Drawn like a text field instead; tapping still opens the
   date picker. */
input[type="date"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  text-align: start;
}

input[type="date"]::-webkit-date-and-time-value {
  margin: 0;
  min-height: 1lh;
  text-align: start;
}

a {
  color: var(--color-text-link);
}

.listbox {
  padding: var(--space-3xs);

  & [role="option"] {
    display: flex;
    gap: 1ch;
    border-radius: var(--radius-button);
    padding-block: var(--padding-block-input);
    padding-inline: var(--padding-inline-input);
    cursor: default;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    overflow-wrap: anywhere;

    & .check-icon {
      visibility: hidden;
    }

    /* The check marks what is committed. */
    &[aria-selected="true"] .check-icon {
      visibility: visible;
    }

    /* The background marks what is highlighted. Hovering promotes an option to
     active via listbox#point, so there is no separate :hover rule - two
     highlighted rows would contradict aria-activedescendant. */
    &.is-active {
      background: var(--color-background-input);
    }
  }

  /* Not a choice among the options, so a hairline sets it apart. It sits above
     them and filtering never hides it. */
  & .listbox-create {
    border-block-end: 1px solid var(--color-border);
    border-end-start-radius: 0;
    border-end-end-radius: 0;
    margin-block-end: var(--space-3xs);
  }
}

.listbox-empty {
  padding-block: var(--padding-block-input);
  padding-inline: var(--padding-inline-input);
  color: var(--color-text-dim);
}

.listbox [role="option"] .listbox-label { flex: 1; }
.listbox [role="option"] .listbox-meta { font-size: 0.85rem; white-space: nowrap; }

.listbox-group {
  padding: 0.75rem var(--padding-inline-input) 0.25rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

.listbox-expand {
  display: flex;
  align-items: center;
  gap: 0.5ch;
  width: 100%;
  padding: 0.7rem var(--padding-inline-input);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-body-gray);
  cursor: pointer;
}

dialog.modal[open] {
  padding: var(--space-m);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: none;

  &::backdrop {
    background: rgba(0, 0, 0, 0.3);
  }
}

.modal-content {
  background: var(--color-background-modal);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0px 1px 1px rgba(0, 0, 0, 0.05),
    0px 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-modal);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: var(--size-step-3);
  font-weight: 700;
}

.modal-header {
  padding-inline: var(--space-g);
  padding-block: var(--space-s);
  border-bottom-style: dotted;
  flex-shrink: 0;
  flex-grow: 0;
}

.modal-body {
  padding: var(--space-g);
  padding-block-start: var(--space-s);
  flex-grow: 1;
  flex-shrink: 1;
  overflow: auto;
}

.modal-footer {
  border-top-style: dotted;
  padding: var(--space-g);
  flex-grow: 1;
  flex-shrink: 1;
}

.modal-form {
  inline-size: 100%;
  max-inline-size: var(--width-form);
}

/* Tablets and phones: near the top, so the on-screen keyboard opens below the
   dialog instead of over it. */
@media (pointer: coarse) {
  dialog.modal[open] { align-items: flex-start; padding-block-start: var(--space-l); }
  dialog.camera-modal[open] { padding-block-start: 0; }
}
.popover {
  border: 1px solid var(--color-border);
  background: var(--color-background-body);
  border-radius: var(--radius-popover);
  box-shadow: var(--shadow-m);

  /* The UA sheet sets padding: 0.25em and color: CanvasText on [popover]. */
  padding: 0;
  color: var(--color-text-body);
}
.page-title {
  font-size: var(--size-step-5);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}
.section-title {
  font-size: var(--size-step--1);
  font-weight: 900;
  font-family: var(--font-body);
  color: var(--color-text-dim);
  line-height: 1.3;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.box {
  padding: var(--space-g);
}
.center {
  margin-inline: auto;
}
.cluster {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}
.columns {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xs);
  & > * {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
  }
}
.flow {
  & > * + * {
    margin-block-start: var(--flow-space);
  }
}

/* A page's own sections - header, details, tables, panels - are all the same
   distance apart, whatever spacing each uses inside itself. */
.region.flow > * + *,
.settings-main.flow > * + *,
.order-form > .flow > * + * {
  margin-block-start: var(--space-section);
}
.region {
  padding-block: var(--space-l);
}
.repel {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.stack {
  display: flex;
  flex-direction: column;
}

.wrap {
  margin-inline: auto;
  width: 100%;
  max-inline-size: var(--width-page);
  padding-inline: var(--space-g);
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  min-height: 100vh;

  @media (max-width: 800px) { grid-template-columns: 1fr; }
}

.auth-photo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-xl);
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary);
  box-shadow: inset 0 0 0 100vmax rgb(4 17 34 / 0.72);
  color: white;

  @media (max-width: 800px) { display: none; }
}

.auth-logo { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1; }
.auth-company { color: #c7ccd4; }
.auth-tagline { font-size: var(--size-step-2); font-weight: 600; max-inline-size: 28rem; }

.auth-form {
  display: grid;
  place-items: center;
  padding: var(--space-l) var(--space-g);
}

.qr-code {
  display: grid;
  justify-items: center;
  gap: var(--space-xs);

  & svg { width: 12rem; height: 12rem; }
  & code { font-weight: 700; letter-spacing: 1px; }
}

.lock-note {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

.back-link {
  color: var(--color-text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--size-step--1);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 1.45rem;
  /* Letter spacing adds space after the last letter too; the end padding takes
     it back so the label sits centred. */
  --badge-tracking: 0.09em;
  padding-inline: 0.625rem calc(0.625rem - var(--badge-tracking));
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--color-background-input);
  color: var(--color-body-gray);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: var(--badge-tracking);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;

  & .icon { --size-icon: 1.1em; }
}

.badge-rush-1 { background: var(--color-red); color: white; }
.badge-rush-2 { background: var(--color-orange); color: white; }
.badge-rush-3 { background: var(--color-yellow); color: var(--color-primary); }
.badge-outline { background: white; border-color: var(--color-primary); color: var(--color-primary); }
.badge-solid { background: var(--color-primary); color: white; }
.badge-coc { background: var(--color-brand-tint); border-color: var(--color-brand); color: var(--color-brand); }
.badge-readings { background: var(--color-brand); color: white; }
.badge-hold { background: var(--color-amber); color: var(--color-primary); }
.badge-credit-hold { background: var(--color-red); color: white; }
.badge-manual { background: var(--color-amber-tint); border-color: var(--color-amber); color: var(--color-amber-text); }
.badge-green { background: var(--color-green-tint); color: var(--color-green); }
.badge-red { background: white; border-color: var(--color-red); color: var(--color-red); }
.badge-special { background: var(--color-brand-tint); color: var(--color-brand); }

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.badge-discrepancy { background: var(--color-red-tint); border-color: var(--color-red); color: var(--color-red); }
/* The shop floor: an iPad 10.2" in landscape (1080 x 810) all day. Six station
   panels, three across and two deep, each scrolling on its own. The grid never
   scrolls and nothing ever scrolls sideways. */

body.floor { overflow: hidden; background: #fbfbfc; }
body.floor main { height: calc(100vh - 4rem); display: flex; flex-direction: column; }

.floor-header {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  height: 4rem;
  padding-inline: var(--space-s);
  border-bottom: 1px solid var(--color-border);
  background: white;

  & .main-nav-logo { margin: 0; font-size: 1.9rem; }
  & .user-menu-trigger { margin-left: auto; }
}

.segmented {
  display: flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--color-background-input);

  & > a, & > label {
    flex: 1;
    display: grid;
    place-items: center;
    min-width: 6.5rem;
    min-height: 2.5rem;
    padding-inline: 0.8rem;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-body-gray);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }

  & > a[aria-current="page"], & > label:has(input:checked) { background: white; color: var(--color-primary); font-weight: 800; box-shadow: var(--shadow-s); }
  & input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
}

.segmented-fields { border: 0; margin: 0; }
.segmented-large > label { min-height: 3.5rem; font-size: 1.05rem; }

.floor-search {
  position: relative;
  flex: 1;
  max-width: 34rem;

  & > .icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--color-text-dim); }
  & input { padding-block: 0.65rem; padding-inline-start: 2.6rem; }
}

.board-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: 0.6rem var(--space-xs);
  flex-wrap: wrap;
}

.board-counters { display: flex; gap: 0.5rem; }

.board-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: white;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-body-gray);

  & strong { font-size: 1.25rem; font-weight: 900; color: var(--color-primary); }
}

.board-counter-amber { border-color: var(--color-amber); & strong { color: var(--color-amber-text); } }
.board-counter-red { border-color: var(--color-red); & strong { color: var(--color-red); } }

.board-filters { display: flex; gap: 0.35rem; }

.chip {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  background: white;

  &.is-active { background: var(--color-primary); border-color: var(--color-primary); color: white; }
}

.board-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-green);
}

.board-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.board-live-off { display: none; }

/* The stream source carries [connected] while the socket is up. Without it the
   board says it may be stale rather than silently showing old data. */
body:has(turbo-cable-stream-source:not([connected])) .board-live {
  color: var(--color-amber-text);
  & .board-live-on { display: none; }
  & .board-live-off { display: inline; }
}

.board {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0 0.75rem 0.75rem;

  @media (max-width: 1150px) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  @media (max-width: 800px) { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
}

.board-station {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  background: var(--color-panel);
  border: 2px solid transparent;

  &.is-drop-target { border: 2px dashed var(--color-brand); background: var(--color-brand-tint); }
}

.board-station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem 0.4rem;

  & h2 { font-size: 0.8rem; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
}

.board-station-count {
  min-width: 2.2rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.board-station-cards {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.5rem 0.6rem;
  /* A column with more than fits shows a fade at the bottom edge. */
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 1.5rem), transparent);
          mask-image: linear-gradient(to bottom, black calc(100% - 1.5rem), transparent);
}

.board-empty { padding: var(--space-s); text-align: center; color: var(--color-text-dim); font-size: 0.85rem; }

.line-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  padding: 0.55rem 0.3rem 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow-s);
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;

  &.is-held { border-color: var(--color-amber); }
  &.is-selected { outline: 3px solid var(--color-primary); outline-offset: 1px; }
  &.is-dragging { opacity: 0.35; }
}

.line-card-stripe {
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 4px;
  border-radius: 0 2px 2px 0;
}

.line-card-stripe-rush-1 { background: var(--color-red); }
.line-card-stripe-rush-2 { background: var(--color-orange); }
.line-card-stripe-rush-3 { background: var(--color-yellow); }
.line-card-stripe-hold { background: var(--color-amber); }

.line-card-body { min-width: 0; display: grid; gap: 0.3rem; align-content: start; }

.line-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.line-card-title { font-size: 0.95rem; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; min-width: 0; }
.line-card-wo { font-size: 0.75rem; font-weight: 700; color: var(--color-brand); white-space: nowrap; }

.line-card-customer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.25;

  & > span:last-child { min-width: 0; }

  & .initials { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--color-primary); color: white; font-size: 0.55rem; flex-shrink: 0; }
}

.line-card-qty { font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.line-card-meta { font-size: 0.75rem; color: var(--color-text-dim); min-width: 0; line-height: 1.3; & strong { color: var(--color-primary); } }
.line-card .due { min-inline-size: 0; flex-shrink: 0; }
.line-card-complete { justify-content: flex-start; gap: 1rem; font-size: 0.82rem; font-weight: 800; }

.line-card-actions {
  margin-inline-start: -0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.line-card-select {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  color: transparent;
  cursor: pointer;

  &[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: white; }
}

.line-card-hold {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.1rem -0.4rem -0.6rem -0.7rem;
  padding: 0.45rem 0.7rem;
  border-top: 1px solid var(--color-amber);
  border-radius: 0 0 11px 11px;
  background: var(--color-amber-tint);
  color: var(--color-amber-text);
  font-size: 0.75rem;
  font-weight: 900;

  & form { display: contents; }
  & .link-button { color: var(--color-amber-text); font-size: 0.75rem; }
}

.line-card-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
  box-shadow: var(--shadow-l);
  opacity: 0.95;

  &[data-count]::after {
    content: attr(data-count);
    position: absolute;
    top: -0.6rem;
    right: -0.6rem;
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-weight: 900;
    font-size: 0.85rem;
  }
}

.line-menu {
  position-area: block-end span-inline-start;
  inset: auto;
  margin: var(--space-3xs) 0 0;
  width: 18rem;
  max-height: 70vh;
  overflow-y: auto;

  & form { display: block; }
  & .menu-primary { font-weight: 800; }
  & details summary { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-button); cursor: pointer; list-style: none; }
  & details summary::-webkit-details-marker { display: none; }
  & details[open] summary { background: var(--color-background-input); }
  & details button { padding-inline-start: 2.4rem; }
}

.board-bulk {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-s);
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 1rem;
  border-radius: 20px;
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-l);

  & .small { color: #c7ccd4; }
}

.board-toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  background: var(--color-red);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-l);
}

.board-orders {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 var(--space-s) var(--space-s);
}

.board-modal {
  /* The reset's margin: 0 undoes the browser's centring of modal dialogs. */
  margin: auto;
  width: min(980px, 96vw);
  max-width: 96vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow-l);

  &::backdrop { background: rgb(4 17 34 / 0.45); }
  &:has(.floor-dialog) { width: min(560px, 96vw); }

  /* Near the top on touch screens, clear of the on-screen keyboard. */
  @media (pointer: coarse) { margin-block-start: var(--space-l); }
}

.floor-order-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-s);
  padding: var(--space-s) var(--space-m);
  border-bottom: 1px dotted var(--color-border);
  background: white;
}

.floor-order-body, .floor-dialog-body { padding: var(--space-s) var(--space-m) var(--space-m); }

.hold-other summary { list-style: none; cursor: pointer; }
.hold-other summary::-webkit-details-marker { display: none; }

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
  border-radius: 16px;
  background: var(--color-background-input);

  & .btn-icon { width: 3.75rem; height: 3.75rem; }
}

.stepper-value {
  background: transparent !important;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.75rem !important;
  padding: 0 !important;
}

/* Office wall display: same board, read-only, larger type. */
body.display { overflow: hidden; }
body.display .board { height: calc(100vh - 5rem); padding-top: 0.75rem; }
body.display .line-card-title { font-size: 1.15rem; }
body.display .line-card-customer { font-size: 0.8rem; }

.display-header {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  height: 5rem;
  padding-inline: var(--space-m);
  border-bottom: 1px solid var(--color-border);
  background: white;

  & h1 { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 400; }
  & p { font-size: 1.1rem; }
  & p:last-child { margin-left: auto; }
}

.line-card-actions .line-menu-button { min-width: 2.25rem; }

.btn-sm { padding-block: 0.3em; padding-inline: 0.7em; font-size: 0.8rem; }
.btn-lg { min-height: 3.75rem; padding-inline: 1.4rem; font-size: 1rem; }
.btn.btn-block { inline-size: 100%; justify-content: center; }
.btn-danger { background: var(--color-error); color: white; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--color-background-input); color: var(--color-text-dim); border-color: transparent; cursor: not-allowed; }
.btn-on-dark { color: white; border-color: white; }
.btn-icon { aspect-ratio: 1 / 1; padding: 0; min-width: 2.75rem; }
.link-button { text-decoration: underline; cursor: pointer; font-weight: 700; }
button {
  background: transparent;
}

.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: manipulation;
  inline-size: -moz-fit-content;
  inline-size: fit-content;
  border-radius: var(--radius-button);
  padding-block: var(--padding-block-button);
  padding-inline: var(--padding-inline-button);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1.5px;
}

.btn-solid {
  background: var(--color-primary);
  color: white;
}

.btn-outline {
  border: 1px solid var(--color-primary);
}

.btn-circle {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.btn-ghost {
  &:hover {
    filter: brightness(80%);
  }
}

.btn-submit {
  padding-block: 1em;
  width: 100%;
  margin-top: var(--space-l);
}

/* A banner that needs attention: credit hold, warnings, discrepancies. */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-info);
  border-radius: 12px;
  background: var(--color-info-tint);

  & > .icon { --size-icon: 1.4em; flex-shrink: 0; margin-top: 0.1em; }
  & .callout-body { flex: 1; }
}

.callout-title {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.callout-red { border-color: var(--color-red); background: var(--color-red-tint); & > .icon, & .callout-title { color: var(--color-red); } }
.callout-amber { border-color: var(--color-amber); background: var(--color-amber-tint); & > .icon, & .callout-title { color: var(--color-amber-text); } }
.card {
  display: flex;
  border: 1px dashed var(--color-border);
}
/* The checker works standing at the material on a tablet: a queue on the left,
   the selected order on the right, big targets throughout. */

.checker {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
}

.checker-queue {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-s);
  overflow-y: auto;
  background: var(--color-panel);
  border-right: 1px solid var(--color-border);
}

.checker-queue-item {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: white;
  text-decoration: none;

  & strong { font-size: 0.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3px; }
  &.is-current { border: 2px solid var(--color-primary); }
}

.wait-pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--color-amber-tint);
  color: var(--color-amber-text);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checker-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.checker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-s);
  padding: var(--space-s) var(--space-m) var(--space-xs);
}

.checker-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--space-m) var(--space-s); }

.checker-footer {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-m);
  border-top: 1px solid var(--color-border);
  background: white;

  & .checker-release { margin-left: auto; }
}

.scan-title { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 400; line-height: 1; }

.check-line {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--space-s);
  padding: 0.6rem var(--space-s);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer;

  &:has(.check-line-box:checked) { border-color: var(--color-green); background: var(--color-green-tint); }
}

.check-line-box { width: 2.25rem; height: 2.25rem; accent-color: var(--color-green); }
.check-line-text { display: grid; gap: 0.2rem; font-size: 1.15rem; }
.check-line-qty { display: grid; justify-items: end; & strong { font-family: var(--font-heading); font-size: 2.6rem; line-height: 1; } }

.weigh-line {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) 11rem;
  gap: var(--space-s);
  padding: var(--space-s);
  border: 1px solid var(--color-border);
  border-radius: 14px;

  &.is-short { border-color: var(--color-red); }

  @media (max-width: 900px) { grid-template-columns: 1fr; }
}

.weigh-line-id { display: grid; gap: 0.5rem; align-content: start; }
.count-field input { font-size: 1.4rem; font-weight: 800; }
.short-note { color: var(--color-red); font-size: 0.8rem; font-weight: 800; }

.weights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.weight-input {
  width: 5.5rem;
  padding: 0.9rem 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
}

.weight-add { width: 3.75rem; height: 3.75rem; }
.pallet-count { width: 5rem; padding-block: 0.6rem; text-align: center; font-weight: 800; }

.weigh-line-net {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  justify-items: end;
  text-align: right;

  & .field { width: 100%; margin-top: 0.5rem; }
  & select { padding-block-start: 1.6rem; padding-block-end: 0.8rem; }
}

.net-weight { font-family: var(--font-heading); font-size: 2.6rem; line-height: 1; }

.scan-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-m);
  padding: var(--space-s) var(--space-m) var(--space-m);

  @media (max-width: 700px) { grid-template-columns: 1fr; & .photo-link { width: 100%; } }
}

.scan-photo { display: grid; gap: 0.4rem; justify-items: start; }
.scan-station { padding: 0.8rem 1rem; border-radius: 14px; background: var(--color-panel); }
.scan-hold { margin: 0; border-radius: 11px; border: 1px solid var(--color-amber); }
.scan-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.floor-scan { gap: 0.4rem; }

.scanner-stage { position: relative; }
.scanner-frame {
  position: absolute;
  inset: 20%;
  border: 3px solid white;
  border-radius: 16px;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.25);
}

body:not(.floor) .scan { max-width: var(--width-page); margin-inline: auto; }

/* Due-date pill, coloured by working days remaining. */
.due {
  display: inline-flex;
  justify-content: center;
  min-inline-size: 5.5rem;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.due-green { background: var(--color-green-tint); color: var(--color-green); }
.due-amber { background: var(--color-amber-tint); color: var(--color-amber-text); }
.due-red { background: var(--color-red-tint); color: var(--color-red); }
.due-overdue { background: var(--color-red); color: white; }
.due-neutral { background: var(--color-background-input); color: var(--color-text-dim); }
.entity-pagination {
}
/* reset */
th {
  text-align: left;
}
table {
  border-collapse: collapse;
}

table.entity-table {
  width: 100%;
  --padding-inline-cell: 0.5em;
  --padding-block-cell: 1em;

  & th {
    font-size: var(--size-step--1);

    color: var(--color-text-dim);
    font-weight: 500;

    border-bottom: 1px solid var(--color-border);
    padding-inline: var(--padding-inline-cell);
    padding-block: var(--padding-block-cell);

    &:first-child {
      padding-inline-start: 0;
    }

    &:last-child {
      padding-inline-end: 0;
    }
  }

  & td {
    border-bottom: 1px solid var(--color-border);
    padding-inline: var(--padding-inline-cell);
    padding-block: var(--padding-block-cell);

    &:first-child {
      padding-inline-start: 0;
    }

    &:last-child {
      padding-inline-end: 0;
    }
  }
}

.error-well {
  color: var(--color-error);
  background: color-mix(in srgb, var(--color-error), transparent 90%);
  padding-inline: var(--padding-inline-input);
  padding-block: var(--padding-block-input);
  border-radius: 2px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  position: relative;

  & input,
  & select,
  & textarea {
    padding-block-start: calc(1rem + 0.6rem);
    padding-block-end: 0.8rem;
  }

  & > label {
    color: var(--color-text-meta);
    z-index: 1;
    font-size: var(--size-step-0);
    position: absolute;
    top: 50%;
    left: var(--padding-inline-input);
    padding: 0;
    color: var(--color-text-dim);
    transform: translateY(-50%);
    transition: all 150ms;

    & .empty {
      display: block;
    }

    & .filled {
      display: none;
    }
  }

  /* Raised while the field is focused, and kept raised while it holds a
     value: field_controller marks the wrapper .is-filled. */
  &:focus-within > label,
  &.is-filled > label {
    font-size: var(--size-step--2);
    transform: none;
    top: 0.4rem;

    & .empty {
      display: none;
    }

    & .filled {
      display: block;
    }
  }
}

.checkbox-field {
  & > label {
    display: inline-flex;
    width: -moz-fit-content;
    width: fit-content;
    cursor: pointer;
    gap: 1ch;
    align-items: center;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    line-height: var(--size-checkbox);
  }
}

.field:has(textarea) {
  & > label {
    top: calc(1lh + (var(--padding-inline-input) / 2));
  }
}

.home-search {
  position: relative;

  & > .icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--color-text-dim); --size-icon: 1.3em; }
  & input { padding-block: 1.25rem; padding-inline-start: 3.2rem; font-size: 1.05rem; }
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-s);

  @media (max-width: 900px) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 9rem;
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;

  & > .icon { --size-icon: 2.2rem; }
  & > .badge { position: absolute; top: var(--space-s); right: var(--space-s); }
  &:hover:not(.home-tile-disabled) { box-shadow: var(--shadow-s); }
}

.home-tile-primary { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.home-tile-disabled { color: var(--color-text-dim); }

.home-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-s);

  @media (max-width: 900px) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.home-count {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  text-decoration: none;

  &:hover { box-shadow: var(--shadow-s); }
}

.home-count-number { font-family: var(--font-heading); font-size: 4rem; line-height: 1; }
.home-count-label { font-size: 0.9rem; font-weight: 600; color: var(--color-body-gray); }
.home-count-amber { background: var(--color-amber-tint); border-color: var(--color-amber); & * { color: var(--color-amber-text); } }
.home-count-red { background: var(--color-red-tint); border-color: var(--color-red); & * { color: var(--color-red); } }

.home-recent {
  padding: 0;

  & a {
    display: grid;
    grid-template-columns: 5rem 1fr auto;
    align-items: center;
    gap: var(--space-s);
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--color-border);
  }
}

.home-drafts {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-s);
}

.home-drafts-count { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1; }
.text-amber { color: var(--color-amber-text); font-weight: 700; }

.home-more {
  padding: 0;
  display: grid;
  gap: 0.6rem;

  & a { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 700; }
}

.main-nav {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background-body);

  & .wrap { min-height: 4.5rem; }
}

.main-nav-logo {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  line-height: 1;
  text-decoration: none;
  color: var(--color-primary);
  margin-inline-end: var(--space-m);
}

.main-nav-links {
  display: flex;
  align-self: stretch;
  gap: var(--space-m);

  & a {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-block-end: 3px solid transparent;
    padding-block-start: 3px;
  }

  & a[aria-current="page"] { border-block-end-color: var(--color-primary); }
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
  font-size: 0.9rem;
}

.avatar {
  display: inline-grid;
  place-items: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 50%;
  background: var(--color-brand-tint);
  color: var(--color-brand);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.menu {
  padding: var(--space-3xs);
  min-inline-size: 14rem;

  & a, & button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-button);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
  }

  & a:hover, & button:hover { background: var(--color-background-input); }
}

.user-menu {
  position-area: block-end span-inline-start;
  inset: auto;
  margin: var(--space-3xs) 0 0;
}

.notice {
  color: var(--color-info);
  background: color-mix(in srgb, var(--color-info), white 80%);
  padding-inline: var(--space-g);
  border-radius: 1em;
  margin-block: var(--space-g-quarter);
}

.notice-alert {
  color: var(--color-red);
  background: var(--color-red-tint);
}

.order-form { padding-block-end: 6rem; }

/* Touch screens: room for the on-screen keyboard below the last field, so the
   page doesn't have to grow and shrink - and jump - as it opens and closes. */
@media (pointer: coarse) {
  .order-form { padding-block-end: 50vh; }
}


.customer-panel { display: block; }
/* Account, email and phone: labels over values, side by side. */
.customer-panel-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-l);

  & dt { font-size: 13px; color: var(--color-text-dim); }
  & dd { font-size: 15px; color: var(--color-text-body); }
}

.field.is-locked input { background: #f4f5f5; border: 1px dashed var(--color-border); color: var(--color-text-dim); }
.field.is-locked .lock-note { margin-block-start: 0.2rem; }

.line-grid {
  width: 100%;
  border-collapse: collapse;

  & th {
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-dim);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
  }

  & td {
    padding: 0.5rem 0.4rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
  }

  & input:not([type="checkbox"]):not([type="radio"]) { padding-block: 0.7rem; }
  & .combobox > input { padding-block: 0.7rem; }

  & .line-num { width: 2.2rem; font-weight: 800; }
  & .line-category { width: 15rem; }
  & .line-qty { width: 5.5rem; }
  & .line-lbs { width: 7rem; }
  & .line-rate { width: 9.5rem; white-space: nowrap; }
  & .line-cert { width: 3.2rem; text-align: center; }
  & .line-state { text-align: right; white-space: nowrap; padding-inline-end: var(--space-xs); }
  & .line-photos { width: 1%; padding-inline: 0; }
  & .line-actions { width: 1%; padding-inline: var(--space-3xs) 0; }
  & .line-description { position: relative; }
  & .line-description .badge { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); }
  & tr.is-non-production .line-description input { padding-right: 9rem; }
}

.line-error { display: block; font-size: 0.75rem; font-weight: 700; color: var(--color-error); }

/* The rate opens the same override as the pencil. */
.rate-edit {
  padding: 0;
  background: none;
  font: inherit;
  cursor: pointer;

  &:hover { text-decoration: underline; text-underline-offset: 0.2em; }
}

.rate-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rate-popover {
  position-area: block-end span-inline-start;
  inset: auto;
  margin: var(--space-3xs) 0 0;
  width: 22rem;
  padding: var(--space-s);
  white-space: normal;
}

/* A line's actions: quiet icon buttons that only show an outline on hover or
   focus. Delete sits a little apart from the rest. */
.line-action-group {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);

}

.line-actions .line-action-group > :last-child { margin-inline-start: var(--space-3xs); }

.line-action {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--color-text-body);
  cursor: pointer;

  & > .icon { --size-icon: 1.25rem; }

  &:is(button, a):hover,
  &:is(button, a):focus-visible { background: var(--color-panel); border-color: var(--color-border); }

  &:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
}

.line-action-locked { opacity: 0.45; cursor: default; }

/* The photo count, on the camera's top-right corner. */
.line-action-count {
  position: absolute;
  top: 0.125rem;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 1rem;
  height: 1rem;
  padding-inline: 0.2rem;
  border-radius: 999px;
  background: var(--color-text-body);
  box-shadow: 0 0 0 2px var(--color-background-body);
  color: white;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  &[hidden] { display: none; }
}

.line-state-pill {
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding-inline: var(--space-xs);
  border-radius: 999px;
  background: var(--color-panel);
  color: var(--color-body-gray);
  font-size: 13px;
}

/* The camera takes the whole screen. */
dialog.modal.camera-modal[open] { padding: 0; }

.camera-modal .modal-content {
  width: 100%;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
}

.camera-modal .modal-body {
  display: flex;
  flex-direction: column;
}

.camera-modal .camera-stage {
  flex: 1;
  min-height: 0;
}

.camera-modal .camera-preview {
  height: 100%;
  aspect-ratio: auto;
}

.camera-stage {
  position: relative;
}

.camera-shutter {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 5px rgb(255 255 255 / 0.55), var(--shadow-m);
  cursor: pointer;

  &:active { transform: translateX(-50%) scale(0.94); }
}

.order-footer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s) max(var(--space-g), calc((100vw - var(--width-page)) / 2 + var(--space-g)));
  border-top: 1px solid var(--color-border);
  background: var(--color-background-body);
}

.progress {
  display: flex;
  gap: 4px;
  height: 10px;

  & span { border-radius: 5px; min-width: 0; }
  & .progress-not-started, & .progress-empty { background: var(--color-background-input); }
  & .progress-in-process { background: var(--color-brand); }
  & .progress-complete { background: var(--color-green); }
}

.progress-small { display: inline-flex; width: 6rem; height: 8px; vertical-align: middle; margin-right: 0.4rem; }

.entity-table tr.is-held td { background: var(--color-amber-tint); }

.order-lines td { vertical-align: middle; }

/* The category list carries a rate on every row; give it room. */
.line-category .combobox > .popover { width: max(anchor-size(inline), 26rem); }
.listbox [role="option"] .listbox-meta { flex-shrink: 0; }
.listbox [role="option"] .listbox-label { min-width: 0; }

label:has(input[type="checkbox"]) { white-space: nowrap; }

.line-grid .rate-popover .field input,
.line-grid .rate-popover .field textarea {
  padding-block-start: calc(1rem + 0.6rem);
  padding-block-end: 0.8rem;
}

/* Activity as a vertical timeline: a rail down the left edge with a dot per
   event, centred on its two lines - who and when, then what happened. */
.timeline {
  --timeline-dot: 0.75rem;
  position: relative;
  display: grid;
  gap: var(--space-s);
  padding: 0;

  &::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: calc(var(--timeline-dot) / 2);
    width: 2px;
    transform: translateX(-50%);
    background: var(--color-border);
  }

  & li {
    position: relative;
    padding-inline-start: var(--space-m);
    line-height: 1.33;
  }

  & .timeline-who { font-size: 15px; font-weight: 500; color: var(--color-text-body); }
  & time { margin-inline-start: var(--space-2xs); font-size: 13px; color: var(--color-text-dim); }
  & .timeline-text { font-size: 14px; color: var(--color-body-gray); }
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--timeline-dot);
  height: var(--timeline-dot);
  border-radius: 50%;
  background: var(--color-text-dim);
  box-shadow: 0 0 0 3px var(--color-background-body);
}

.timeline-green .timeline-dot { background: var(--color-green); }
.timeline-amber .timeline-dot { background: var(--color-amber); }
.timeline-red .timeline-dot { background: var(--color-red); }

.order-actions { gap: var(--space-xs); }

button.badge-discrepancy { cursor: pointer; }

.discrepancy-popover {
  position-area: block-end span-inline-end;
  inset: auto;
  margin: var(--space-3xs) 0 0;
  width: 20rem;
  padding: var(--space-s);
  white-space: normal;
}

.order-menu {
  position-area: block-end span-inline-start;
  inset: auto;
  margin: var(--space-3xs) 0 0;
}

/* The work order view: two label/value columns, each as wide as its content. */
.order-details {
  display: flex;
  flex-wrap: wrap;
  -moz-column-gap: var(--space-l);
       column-gap: var(--space-l);

  & dl > div {
    display: grid;
    grid-template-columns: 7.5rem auto;
    align-items: center;
    min-height: 2rem;
  }

  & dt { font-size: 0.85rem; color: var(--color-text-dim); }

  /* Long instructions wrap rather than push the right column off the page. */
  & dd.order-instructions { max-width: 36rem; padding-block: 0.3rem; }
  & dl > div:has(.order-instructions) { align-items: baseline; }
}

/* "3 of 4 / Lines completed" above the lines, in the Home page's count card. */
.order-completion {
  display: flex;
  flex-direction: column;
  width: -moz-fit-content;
  width: fit-content;
  gap: 0.25rem;
  min-width: 14rem;
  padding: var(--space-s) var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: 16px;

  & .order-completion-count { font-family: var(--font-heading); font-size: 4rem; line-height: 1; }
  & .order-completion-total { font-weight: 600; color: var(--color-body-gray); margin-inline-start: 0.25rem; }
  & .order-completion-label { font-size: 0.9rem; font-weight: 600; color: var(--color-body-gray); }
  & .order-completion-hold { color: var(--color-amber-text); }
}

/* Six short segments under the station name, one per shop station. */
.station-cell {
  display: grid;
  gap: var(--space-2xs);
  justify-items: start;
}

.station-track {
  display: flex;
  gap: var(--space-3xs);

  & > span { width: 1.25rem; height: 0.25rem; background: var(--color-border); }
  & > span.is-filled { background: var(--color-brand); }
}

.station-track-hold > span.is-filled { background: var(--color-amber); }
.station-track-complete > span.is-filled { background: var(--color-green); }
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
}

.page-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-s);
}

.page-subtitle {
  font-family: var(--font-heading);
  font-size: var(--size-step-5);
  color: var(--color-text-dim);
}

/* Label-over-value pairs: the header facts on a work order or customer. */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-l);

  & dt { font-size: 0.8rem; color: var(--color-text-dim); }
  & dd { font-weight: 600; margin: 0; }
}

.fact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem var(--space-m);
  margin: 0;

  & dt { color: var(--color-text-dim); font-size: 0.9rem; }
  & dd { margin: 0; font-weight: 600; font-size: 0.9rem; }
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-l);
  align-items: start;

  @media (max-width: 900px) { grid-template-columns: 1fr; }
}

.muted { color: var(--color-text-dim); }
.small { font-size: 0.85rem; }
.rate-special { color: var(--color-brand); font-weight: 700; }
.rate-standard { color: var(--color-body-gray); font-weight: 600; }
.panel-card { border: 1px solid var(--color-border); border-radius: 16px; padding: var(--space-s) var(--space-m); }

.price-input input {
  max-inline-size: 9rem;
  padding-block: 0.6rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.camera-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--radius-input);
  background: var(--color-background-input);
}

.photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-s);
}

.photo-thumb {
  position: relative;
  width: 5.6rem;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-input);
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
  }

  .btn {
    position: absolute;
    top: var(--space-3xs);
    right: var(--space-3xs);
    background: var(--color-background-modal);
    width: 1.6rem;
    padding: 0;

    svg {
      width: 0.8rem;
      height: 0.8rem;
    }
  }
}

.photo-link {
  display: block;
  width: var(--thumb, 72px);
  height: var(--thumb, 72px);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-background-input);
  flex-shrink: 0;

  & img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
}

.photo-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-dim);
  --size-icon: 1.6em;
}

.photo-viewer-dialog {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b0f14;
  color: white;

  &::backdrop { background: #0b0f14; }
}

.photo-viewer {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
}

.photo-viewer-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-xs) var(--space-s);
}

.photo-viewer-counter { color: #c7ccd4; font-weight: 700; }
.photo-viewer-close { background: white; color: var(--color-primary); width: 3rem; }

.photo-viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding-inline: 5rem;
  touch-action: pan-y;
}

.photo-viewer-slide {
  display: grid;
  gap: var(--space-xs);
  justify-items: center;
  max-height: 100%;
  min-height: 0;

  & img { max-height: calc(100vh - 14rem); width: auto; border-radius: 12px; }
  & figcaption { font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px; color: #c7ccd4; }
}

.photo-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: white;
  color: var(--color-primary);
  cursor: pointer;
  --size-icon: 1.5em;

  &.prev { left: var(--space-s); }
  &.next { right: var(--space-s); }
}

.photo-viewer-empty { color: #c7ccd4; }

.photo-viewer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s);
}

.photo-viewer-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;

  & button { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: 0.6; flex-shrink: 0; }
  & button.is-current { opacity: 1; outline: 3px solid white; outline-offset: 2px; }
  & img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
}

.photo-stage-select { width: auto; padding-block: 0.6rem; background: #1d242d; color: white; }

/* Tags and the printed work order. On screen: a toolbar and a preview. On
   paper: only the document. */

.print-sheet, .print-document { background: var(--color-panel); }

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-xs) var(--space-s);
  background: white;
  border-bottom: 1px solid var(--color-border);

  & p { margin-right: auto; }
}

.tag {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.12in;
  margin: 0.25in auto;
  padding: 0.12in 0.15in 0.12in 0.45in;
  background: white;
  color: black;
  overflow: hidden;
  box-shadow: var(--shadow-s);
  -moz-column-break-after: page;
       break-after: page;
}

.tag-qr svg { width: 1.4in; height: 1.4in; display: block; }
.tag-text { min-width: 0; display: grid; gap: 0.02in; }
.tag-customer { font-size: 9pt; font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.tag-label { font-family: var(--font-heading); font-size: 34pt; line-height: 0.95; }
.tag-material { font-size: 9pt; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.tag-dates { font-size: 8pt; font-weight: 800; line-height: 1.2; }

.wo-print {
  max-width: 7.5in;
  margin: 0.25in auto;
  padding: 0.4in;
  background: white;
  color: black;
  font-size: 10pt;
  display: grid;
  gap: 0.2in;
  box-shadow: var(--shadow-s);
}

.wo-print-header { display: flex; justify-content: space-between; align-items: flex-start; }
.wo-print-company { font-family: var(--font-heading); font-size: 20pt; line-height: 1; text-transform: uppercase; }

.wo-print-facts, .wo-print-items {
  width: 100%;
  border-collapse: collapse;

  & th, & td { padding: 0.05in 0.08in; text-align: left; border: 1px solid black; }
  & th { font-size: 8pt; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; }
}

.wo-print-items th { background: black; color: white; }
.wo-print-items td:first-child, .wo-print-items td:nth-child(2) { width: 0.6in; font-weight: 700; }

.wo-print-customer { display: flex; justify-content: space-between; gap: 0.2in; }
.wo-print-logo { max-width: 1.6in; max-height: 0.8in; -o-object-fit: contain; object-fit: contain; }

.wo-print-photos { -moz-column-break-inside: avoid; break-inside: avoid; border-top: 1px solid black; padding-top: 0.1in; }
.wo-print-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.15in;
  margin-top: 0.08in;

  & img { width: 100%; height: 2.6in; -o-object-fit: cover; object-fit: cover; }
}

@media print {
  .print-toolbar { display: none; }
  .print-sheet, .print-document { background: white; }
  .tag { margin: 0; box-shadow: none; }
  .wo-print { margin: 0; padding: 0; box-shadow: none; max-width: none; }
}

.settings {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;

  @media (max-width: 800px) { grid-template-columns: 1fr; }
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;

  & .page-title { margin-block-end: var(--space-s); }

  & a {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
  }

  & a[aria-current="page"] { background: var(--color-background-input); font-weight: 800; }
}

.settings-title { font-size: var(--size-step-2); font-weight: 800; }

.inline-input {
  padding-block: 0.55rem;
  max-inline-size: 20rem;
}

.gap-3xs { gap: var(--space-3xs); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-3xs > * { --flow-space: var(--space-3xs); }

.region-3xs { padding-block: var(--space-3xs); }

.above-3xs { padding-block-start: var(--space-3xs); }

.below-3xs { padding-block-end: var(--space-3xs); }

.over-3xs { margin-block-start: var(--space-3xs); }

.gutter-start-3xs { padding-inline-start: var(--space-3xs); }

.gutter-end-3xs { padding-inline-end: var(--space-3xs); }

.under-3xs { margin-block-end: var(--space-3xs); }

.box-3xs { padding: var(--space-3xs); }

.gap-2xs { gap: var(--space-2xs); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-2xs > * { --flow-space: var(--space-2xs); }

.region-2xs { padding-block: var(--space-2xs); }

.above-2xs { padding-block-start: var(--space-2xs); }

.below-2xs { padding-block-end: var(--space-2xs); }

.over-2xs { margin-block-start: var(--space-2xs); }

.gutter-start-2xs { padding-inline-start: var(--space-2xs); }

.gutter-end-2xs { padding-inline-end: var(--space-2xs); }

.under-2xs { margin-block-end: var(--space-2xs); }

.box-2xs { padding: var(--space-2xs); }

.gap-xs { gap: var(--space-xs); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-xs > * { --flow-space: var(--space-xs); }

.region-xs { padding-block: var(--space-xs); }

.above-xs { padding-block-start: var(--space-xs); }

.below-xs { padding-block-end: var(--space-xs); }

.over-xs { margin-block-start: var(--space-xs); }

.gutter-start-xs { padding-inline-start: var(--space-xs); }

.gutter-end-xs { padding-inline-end: var(--space-xs); }

.under-xs { margin-block-end: var(--space-xs); }

.box-xs { padding: var(--space-xs); }

.gap-s { gap: var(--space-s); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-s > * { --flow-space: var(--space-s); }

.region-s { padding-block: var(--space-s); }

.above-s { padding-block-start: var(--space-s); }

.below-s { padding-block-end: var(--space-s); }

.over-s { margin-block-start: var(--space-s); }

.gutter-start-s { padding-inline-start: var(--space-s); }

.gutter-end-s { padding-inline-end: var(--space-s); }

.under-s { margin-block-end: var(--space-s); }

.box-s { padding: var(--space-s); }

.gap-m { gap: var(--space-m); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-m > * { --flow-space: var(--space-m); }

.region-m { padding-block: var(--space-m); }

.above-m { padding-block-start: var(--space-m); }

.below-m { padding-block-end: var(--space-m); }

.over-m { margin-block-start: var(--space-m); }

.gutter-start-m { padding-inline-start: var(--space-m); }

.gutter-end-m { padding-inline-end: var(--space-m); }

.under-m { margin-block-end: var(--space-m); }

.box-m { padding: var(--space-m); }

.gap-l { gap: var(--space-l); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-l > * { --flow-space: var(--space-l); }

.region-l { padding-block: var(--space-l); }

.above-l { padding-block-start: var(--space-l); }

.below-l { padding-block-end: var(--space-l); }

.over-l { margin-block-start: var(--space-l); }

.gutter-start-l { padding-inline-start: var(--space-l); }

.gutter-end-l { padding-inline-end: var(--space-l); }

.under-l { margin-block-end: var(--space-l); }

.box-l { padding: var(--space-l); }

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

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-xl > * { --flow-space: var(--space-xl); }

.region-xl { padding-block: var(--space-xl); }

.above-xl { padding-block-start: var(--space-xl); }

.below-xl { padding-block-end: var(--space-xl); }

.over-xl { margin-block-start: var(--space-xl); }

.gutter-start-xl { padding-inline-start: var(--space-xl); }

.gutter-end-xl { padding-inline-end: var(--space-xl); }

.under-xl { margin-block-end: var(--space-xl); }

.box-xl { padding: var(--space-xl); }

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

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-2xl > * { --flow-space: var(--space-2xl); }

.region-2xl { padding-block: var(--space-2xl); }

.above-2xl { padding-block-start: var(--space-2xl); }

.below-2xl { padding-block-end: var(--space-2xl); }

.over-2xl { margin-block-start: var(--space-2xl); }

.gutter-start-2xl { padding-inline-start: var(--space-2xl); }

.gutter-end-2xl { padding-inline-end: var(--space-2xl); }

.under-2xl { margin-block-end: var(--space-2xl); }

.box-2xl { padding: var(--space-2xl); }

.gap-3xl { gap: var(--space-3xl); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-3xl > * { --flow-space: var(--space-3xl); }

.region-3xl { padding-block: var(--space-3xl); }

.above-3xl { padding-block-start: var(--space-3xl); }

.below-3xl { padding-block-end: var(--space-3xl); }

.over-3xl { margin-block-start: var(--space-3xl); }

.gutter-start-3xl { padding-inline-start: var(--space-3xl); }

.gutter-end-3xl { padding-inline-end: var(--space-3xl); }

.under-3xl { margin-block-end: var(--space-3xl); }

.box-3xl { padding: var(--space-3xl); }

.gap-s-l { gap: var(--space-s-l); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-s-l > * { --flow-space: var(--space-s-l); }

.region-s-l { padding-block: var(--space-s-l); }

.above-s-l { padding-block-start: var(--space-s-l); }

.below-s-l { padding-block-end: var(--space-s-l); }

.over-s-l { margin-block-start: var(--space-s-l); }

.gutter-start-s-l { padding-inline-start: var(--space-s-l); }

.gutter-end-s-l { padding-inline-end: var(--space-s-l); }

.under-s-l { margin-block-end: var(--space-s-l); }

.box-s-l { padding: var(--space-s-l); }

.gap-g { gap: var(--space-g); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-g > * { --flow-space: var(--space-g); }

.region-g { padding-block: var(--space-g); }

.above-g { padding-block-start: var(--space-g); }

.below-g { padding-block-end: var(--space-g); }

.over-g { margin-block-start: var(--space-g); }

.gutter-start-g { padding-inline-start: var(--space-g); }

.gutter-end-g { padding-inline-end: var(--space-g); }

.under-g { margin-block-end: var(--space-g); }

.box-g { padding: var(--space-g); }

.gap-g-half { gap: var(--space-g-half); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-g-half > * { --flow-space: var(--space-g-half); }

.region-g-half { padding-block: var(--space-g-half); }

.above-g-half { padding-block-start: var(--space-g-half); }

.below-g-half { padding-block-end: var(--space-g-half); }

.over-g-half { margin-block-start: var(--space-g-half); }

.gutter-start-g-half { padding-inline-start: var(--space-g-half); }

.gutter-end-g-half { padding-inline-end: var(--space-g-half); }

.under-g-half { margin-block-end: var(--space-g-half); }

.box-g-half { padding: var(--space-g-half); }

.gap-g-quarter { gap: var(--space-g-quarter); }

/* Set on the children, not the element: the space is for between its
     children, and must not also shrink the gap above the element itself. */

.flow-space-g-quarter > * { --flow-space: var(--space-g-quarter); }

.region-g-quarter { padding-block: var(--space-g-quarter); }

.above-g-quarter { padding-block-start: var(--space-g-quarter); }

.below-g-quarter { padding-block-end: var(--space-g-quarter); }

.over-g-quarter { margin-block-start: var(--space-g-quarter); }

.gutter-start-g-quarter { padding-inline-start: var(--space-g-quarter); }

.gutter-end-g-quarter { padding-inline-end: var(--space-g-quarter); }

.under-g-quarter { margin-block-end: var(--space-g-quarter); }

.box-g-quarter { padding: var(--space-g-quarter); }

.size-step--3 { font-size: var(--size-step--3); }

.size-step--2 { font-size: var(--size-step--2); }

.size-step--1 { font-size: var(--size-step--1); }

.size-step-0 { font-size: var(--size-step-0); }

.size-step-1 { font-size: var(--size-step-1); }

.size-step-2 { font-size: var(--size-step-2); }

.size-step-3 { font-size: var(--size-step-3); }

.size-step-4 { font-size: var(--size-step-4); }

.size-step-5 { font-size: var(--size-step-5); }

.size-step-6 { font-size: var(--size-step-6); }

.size-step-7 { font-size: var(--size-step-7); }

.size-step-8 { font-size: var(--size-step-8); }

.size-step-9 { font-size: var(--size-step-9); }

.size-step-10 { font-size: var(--size-step-10); }

.tint-0 {
    background: var(--color-0-tint-bg);
    color: var(--color-0);
  }

.full-0 {
    background: var(--color-0);
    color: white;
  }

.text-0 {
    color: var(--color-0);
  }

.bg-0 {
    background: var(--color-0)
  }

.bg-tint-0 {
    background: var(--color-0-tint-bg);
  }

.border-0 {
    border-color: var(--color-0);
  }

.absolute { position: absolute; }
.aspect-credit-card { aspect-ratio: 1.5942857143 }
.aspect-square { aspect-ratio: 1 / 1}
.no-marker { list-style: none; }
.bg-blue { background: var(--color-blue); }
.bg-blur { background: var(--color-bg-alpha); backdrop-filter: blur(8px); }
.bg-button { background: var(--color-bg-button); }
.bg-dark { background: var(--color-dark); }
.bg-error { background: var(--color-bg-error); }
.bg-fixed { background: var(--color-bg-pink); }
.bg-green { background: var(--color-green); }
.bg-gradient { background: linear-gradient(to bottom right, #FF009C, #FF0169, #F98F67); }
.bg-primary { background: var(--color-primary); }
.bg-success {background: var(--color-bg-success); }
.bg-white { background: white; }
.bg-pink { background: var(--color-pink); }
.bg-green-tint-bg { background: var(--color-green-tint-bg); }
.bg-gold-tint-bg { background: var(--color-gold-tint-bg); }
.bg-pink-tint-bg { background: var(--color-pink-tint-bg); }
.bg-red-tint-bg { background: var(--color-red-tint-bg); }
.block { display: block; }
.border-b-solid { border-bottom-style: solid; }
.border-r-solid { border-right-style: solid; }
.border-l-solid { border-left-style: solid; }
.border-b-solid-2 {border-bottom-style: solid; border-color: var(--color-border-2)}
.border-color-2 { border-color: var(--color-border-2); }
.border-solid { border-style: solid; }
.border-t-solid { border-top-style: solid; }
.border-none { border-style: none; }
.no-border { border-style: none; }
.no-gutter { padding-inline: 0; }
.break-word { word-break: break-word; }
.clickable { cursor: pointer; }
.color-fg { color: var(--color-text-body); }
.color-fg-less { color: var(--color-text-meta); }
.color-white { color: white; }
.current-color { color: currentColor; }
.inline-flex {display: inline-flex;}
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.flow-space-0 > * { --flow-space: 0; }
.font-base { font-family: var(--font-body); }
.font-black { font-weight: 900; }
.font-body { font-family: var(--font-body); }
.font-bold { font-weight: bold; }
.font-fun { font-family: var(--font-fun); }
.font-heading { font-family: var(--font-heading); }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 500; }
.font-size\:-1 { font-size: var(--size-step--1); }
.font-size\:-2 { font-size: var(--size-step--2); }
.font-size\:-3 { font-size: var(--size-step--3); }
.font-size\:0 { font-size: var(--size-step-0); }
.font-thin { font-weight: 100; }
.font-mono { font-family: var(--font-mono); }
.gap-0 { gap: 0; }
.gap\:none { -moz-column-gap: 0; column-gap: 0; row-gap: 0; }
.grid-span-2 { grid-column: span 2}
.grow-1 { flex-grow: 1; }
.gutter { padding-inline: var(--space-g); }
.gutter-0 { padding-inline: 0; }
.gutter-end { padding-inline-end: var(--space-g); }
.gutter-half-end { padding-inline-end: var(--space-g-half); }
.gutter-half-start { padding-inline-start: var(--space-g-half); }
.gutter-quarter-end { padding-inline-end: var(--space-g-quarter); }
.gutter-start { padding-inline-start: var(--space-g); }
.h-full { height: 100%; }
.hidden { display: none; }
.hover { background: var(--color-primary-least); }
.hover-underline a:not(:hover) { text-decoration: none; }
.hover-underline:not(:hover) { text-decoration: none; }
.hover-text-red:hover { color: var(--color-red); }
.inline { display: inline; }
.inline-block { display: inline-block; }
.input-required { /* honey, honey, honey */ display: none !important; }
.italic { font-style: italic; }
.items-baseline { align-items: baseline; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-around { justify-content: space-around; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-evenly { justify-content: space-evenly; }
.justify-start { justify-content: flex-start; }
.line-height-normal { line-height: normal; }
.line-height-less { line-height: 1.46 }
.line-height-default { line-height: var(--line-height); }
.line-height-more { line-height: 2 }
.m-top-auto { margin-top: auto; }
.max-h-inherit { max-height: inherit; }
.max-w-fit { max-inline-size: -moz-fit-content; max-inline-size: fit-content; }
.max-w-form { max-width: var(--width-form); }
.max-w-half-page { max-width: calc(var(--width-page) / 2); }
.max-w-measure { max-inline-size: var(--width-measure); }
.max-w-narrow { max-inline-size: calc(var(--width-measure) * 0.8); }
.max-w-none { max-inline-size: none; }
.max-w-page { max-inline-size: var(--width-page); }
.max-w-page-narrow { max-inline-size: var(--width-page-narrow); }
.max-w-page-wide { max-inline-size: var(--width-page-wide); }
.max-w-page-huge { max-inline-size: var(--width-page-huge); }
.max-w-aside { max-inline-size: var(--width-aside); }
.min-w-0 { min-width: 0; }
.no-marker { display: block; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.no-select { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.no-shadow { box-shadow: none; }
.no-tap { -webkit-tap-highlight-color: transparent; }
.no-underline, .no-underline a, .no-underline:hover { text-decoration: none; }
.dotted-underline { text-decoration-style: dotted; text-decoration-thickness: 1px; }
.nowrap { white-space: nowrap; }
.no-wrap { white-space: nowrap; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-visible { overflow: visible; }
.visibility-hidden { visibility: hidden; }
.visually-hidden { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.padding-0 { padding: 0 !important; }
.p-left-0 { padding-left: 0; }
.p-right-0 { padding-right: 0; }
.radius-0 { border-radius: 0px; }
.radius-full { border-radius: 500px; }
.radius-l { border-radius: var(--radius-l); }
.radius-m { border-radius: var(--radius-m); }
.radius-s { border-radius: var(--radius-s); }
.radius\:lg { border-radius: var(--radius-lg); }
.radius\:md { border-radius: var(--radiusd); }
.radius\:sm { border-radius: var(--radius-sm); }
.relative { position: relative; }
.row-reverse { flex-direction: row-reverse; }
.scroll-x { overflow-x: auto; }
.scroll-xy { overflow: auto; }
.scroll-y { overflow-y: auto; }
.shadow-l { box-shadow: var(--shadow-l); }
.shadow-m { box-shadow: var(--shadow-m); }
.shadow-s { box-shadow: var(--shadow-s); }
.shadow-card {box-shadow: var(--shadow-card); }
.sizing-content { box-sizing: content-box; }
.sizing\:border { box-sizing: border-box; }
.sizing\:content { box-sizing: content-box; }
.line-through { text-decoration: line-through; }
.sticky-top { position: sticky; top: 0; z-index: 1; }
.surface-1 { background-color: var(--color-surface-1); }
.surface-1-dark { background-color: var(--color-surface-1-dark); }
.surface-1-shade-2 { background-color: var(--color-surface-1-shade-2); }
.surface-2 { background-color: var(--color-surface-2); }
.surface-2-dark { background-color: var(--color-surface-2-dark); }
.surface-3 { background-color: var(--color-surface-3); }
.surface-4 { background-color: var(--color-surface-4); }
.surface-5 { background-color: var(--color-surface-5); }
.text-balance { text-wrap: balance; }
.text-black { color: black; }
.text-blue { color: var(--color-blue); }
.text-body { color: var(--color-text-body); }
.text-center { text-align: center; }
.text-discretionary { color: var(--color-category-discretionary) }
.text-unexpected { color: var(--color-unexpected); }
.text-discretionary-expense { color: var(--color-category-discretionary) }
.text-error { color: var(--color-text-error); }
.text-expense { color: var(--color-category-fixed) }
.text-extra-income { color: var(--color-category-planned-income) }
.text-fixed-expense { color: var(--color-category-fixed) }
.text-saving { color: hsl(49 100% 45% / 1); }
.text-gold { color: var(--color-gold); }
.text-gray { color: var(--color-surface-gray); }
.text-icon { color: var(--color-bg-icon); }
.text-income { color: var(--color-category-planned-income) }
.text-left { text-align: left; }
.text-less, .text-meta { color: var(--color-text-meta); }
.text-dim { color: var(--color-text-dim); }
.text-meta-2 { color: var(--color-text-meta-2); }
.text-pink { color: var(--color-pink); }
.text-planned-income { color: var(--color-category-planned-income) }
.text-positive, .text-green { color: var(--color-income); }
.text-pretty { text-wrap: pretty; }
.text-wrap { text-wrap: wrap; }
.text-primary { color: var(--color-text-primary); }
.text-red { color: var(--color-red); }
.text-right { text-align: right; }
.text-special-expense { color: var(--color-category-special) }
.text-success { color: var(--color-text-success); }
.text-uncategorized { color: var(--color-category-uncategorized) }
.text-warning { color: var(--color-text-warning); }
.text-white { color: white; }
.text\:center { text-align: center; }
.text\:right { text-align: right; }
.top-left { top: 0; left: 0;}
.truncate { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.underline { text-decoration: underline; }
.underline-hover { text-decoration: none; &:hover { text-decoration: underline;} }
.up-shadow-m { box-shadow: var(--up-shadow-m); }
.up-shadow-s { box-shadow: var(--up-shadow-s); }
.uppercase { text-transform: uppercase; }
.vertical-rule-right { border-inline-end: 3px solid var(--color-border); }
.w-fit { width: -moz-fit-content; width: fit-content; }
.w-form { width: var(--width-form); }
.w-full { width: 100%; }
.w-measure { width: var(--width-measure); }
.weight-300 { font-weight: 300; }
.weight-900 { font-weight: 900; }
.weight\:black { font-weight: 900; }
.weight\:bold { font-weight: bold; }
.weight\:medium { font-weight: 500; }
.weight\:thin { font-weight: 200; }
.white-space-normal { white-space: normal; }
.width\:full { width: 100%; }
.width\:measure { inline-size: var(--width-measure); }
.tabular-nums { font-variant-numeric: tabular-nums; }
.table-fixed { table-layout: fixed; }
.display-contents {display: contents; }
.opacity-0 { opacity: 0; }
.w-page-wide { --width-page: var(--width-page-wide); }
.w-page-narrow { --width-page: var(--width-page-narrow); }
.w-page-huge { --width-page: var(--width-page-huge); }
.w-page-measure { --width-page: var(--width-page-measure); }
.w-page-form { --width-page: var(--width-form); }
.letter-spacing-1 { letter-spacing: 1px; }

@media screen and (max-width: 600px) {
  .s\:block { display: block; }
  .s\:margin-0 { margin: 0; }
  .s\:center { margin-inline: auto; }
  .s\:flex-column { flex-direction: column; }
  .s\:size-step--2 { font-size: var(--size-step--2);}
  .s\:size-step--1 { font-size: var(--size-step--1);}
  .s\:size-step-0 { font-size: var(--size-step-0);}
  .s\:size-step-1 { font-size: var(--size-step-1);}
  .s\:size-step-2 { font-size: var(--size-step-2);}
  .s\:size-step-3 { font-size: var(--size-step-3);}
  .s\:size-step-4 { font-size: var(--size-step-4);}
  .s\:size-step-5 { font-size: var(--size-step-5);}
  .s\:size-step-6 { font-size: var(--size-step-6);}
  .s\:size-step-7 { font-size: var(--size-step-7);}
  .s\:size-step-8 { font-size: var(--size-step-8);}
  .s\:border-none { border: none; }
  .s\:border-t-solid { border-top-style: solid; }
  .s\:text-left { text-align: left; }
  .s\:text-center { text-align: center; }
  .s\:text-right { text-align: right; }
  .s\:flow > * + * { margin-top: var(--flow-space)}
  .s\:justify-center { justify-content: center; }
  .s\:justify-start { justify-content: flex-start; }
  .s\:items-start { align-items: flex-start; }
  .s\:row-reverse { flex-direction: row-reverse; }
  .s\:column-reverse { flex-direction: column-reverse; }
  .s\:gutter { padding-inline: var(--space-g); }
  .s\:no-gutter { padding-inline: 0; }
  .s\:no-radius { border-radius: 0; }
  .s\:block { display: block; }
  .s\:w-full { width: 100%; }
  .s\:gap-0 { gap: 0; }
}

@media screen and (max-width: 800px) {
  .m\:flex-column { flex-direction: column; }
  .m\:column-reverse { flex-direction: column-reverse; }
}

.text-0 { color: var(--color-0); }
