/* Pieces of the app as it looks today (the web app's "Look 16", web/src/ui/theme.css + kit.css), drawn
   in HTML on the front page: the home screen (what you kept this week, the four tiles, the rows of
   things to do) and a load's map card. Everything is scoped under .fwa, in the app's own face, colours,
   borders and sizes, so it reads as the product beside the site's own type. Pictures, not controls:
   each frame is role="img" with the screen in words. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); }

.fwa {
  --a-bg: #FFFFFF; --a-raised: #F2F4F7; --a-border: #D5D9E0; --a-border-soft: #E6E9EE;
  --a-text: #0B0F14; --a-muted: #4A5565; --a-dim: #5B6676;
  --a-accent: #00736D; --a-accent-soft: #E1F3F0;
  --a-warning: #A34100; --a-warning-soft: #FEF0DC; --a-warning-sub: #7A3300;
  --a-danger: #C8281C; --a-danger-soft: #FDE7E5;
  --a-info: #175CD3;
  --a-lit: #CDEBE6;
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.45; color: var(--a-text); text-align: left;
  -webkit-font-smoothing: antialiased;
}
.fwa svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fwa b { font-weight: 700; }
.fwa small { font-size: inherit; }

/* ---------------------------------------------------------------- the desk frame: rail + page */
.fwa-desk { position: relative; margin-top: var(--s-7); display: grid; grid-template-columns: 216px minmax(0, 1fr); background: var(--a-bg); border: 1px solid var(--u-border, var(--line)); border-radius: 14px; box-shadow: var(--u-shadow); overflow: hidden; }
.fwa-desk::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56px; background: linear-gradient(transparent, var(--a-bg)); pointer-events: none; }
.fwa-rail { display: flex; flex-direction: column; gap: 14px; padding: 18px 12px; border-right: 2px solid var(--a-border); }
.fwa-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; padding: 0 6px; }
.fwa-brand svg { width: 22px; height: 22px; color: var(--a-accent); }
.fwa-company { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 14px; background: var(--a-raised); }
.fwa-company b { font-size: 15px; }
.fwa-company span { font-size: 13px; color: var(--a-muted); }
.fwa-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.fwa-nav li { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 14px; color: var(--a-muted); font-weight: 700; font-size: 16px; }
.fwa-nav li.is-on { color: var(--a-accent); background: var(--a-accent-soft); }
.fwa-nav svg.i { width: 18px; height: 18px; }
.fwa-page { min-width: 0; padding: 26px 28px 0; }

/* ---------------------------------------------------------------- the answer: bold label, big black number */
.fwa-plate { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 18px; }
.fwa-plate .sentence { font-weight: 700; font-size: 18px; color: var(--a-accent); }
.fwa-plate .big { font-weight: 700; font-size: 58px; line-height: 1.05; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.fwa-plate .sub { font-weight: 700; font-size: 16px; color: var(--a-accent); }

/* ---------------------------------------------------------------- the four tiles */
.fwa-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.fwa-tile { position: relative; min-height: 118px; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; color: #FFFFFF; }
.fwa-tile.check { background: #00736D; }
.fwa-tile.add { background: #175CD3; }
.fwa-tile.scan { background: #0B0F14; }
.fwa-tile.ask { background: #B45309; }
.fwa-tile svg.i { width: 34px; height: 34px; }
.fwa-tile > span { display: flex; flex-direction: column; }
.fwa-tile b { font-size: 22px; line-height: 1.1; }
.fwa-tile small { font-size: 15px; line-height: 1.25; }
.fwa-tile em { position: absolute; right: 12px; top: 12px; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; background: #FFFFFF; color: #B45309; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 15px; }

/* ---------------------------------------------------------------- rows of things to do */
.fwa-alerts { display: grid; gap: 9px; }
.fwa-alert { --t: var(--a-warning); --t-soft: var(--a-warning-soft); --t-sub: var(--a-warning-sub);
  min-height: 64px; border-radius: 18px; border: 3px solid var(--t); background: var(--t-soft); padding: 7px 12px; display: flex; align-items: center; gap: 12px; }
.fwa-alert > svg.i { width: 28px; height: 28px; color: var(--t); }
.fwa-alert > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fwa-alert b { font-size: 17px; line-height: 1.3; }
.fwa-alert small { font-size: 14px; color: var(--t-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fwa-alert i { width: 36px; height: 36px; border-radius: 18px; background: var(--t); color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex: none; }
.fwa-alert i svg.i { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- narrower: the frame shows all of the screen */
/* Below 1280 a section grows to its content (k/system.css), so the frame does too: no clipping, no fade. */
@media (max-width: 1279px) {
  main > .section > .wrap > .fwa-desk.fill { flex: none; min-height: auto; }
  .fwa-desk::after { display: none; }
  .fwa-page { padding-bottom: 22px; }
}
@media (max-width: 1023px) {
  .fwa-desk { grid-template-columns: minmax(0, 1fr); }
  .fwa-rail { display: none; }
  .fwa-page { padding: 20px 16px 0; }
  .fwa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fwa-tile { min-height: 104px; }
}
@media (max-width: 639px) {
  .fwa-desk { border-radius: 22px; }
  .fwa-plate { margin-bottom: 14px; }
  .fwa-plate .big { font-size: 46px; }
  .fwa-plate .sentence { font-size: 17px; }
  .fwa-plate .sub { font-size: 15px; }
  .fwa-tile { min-height: 96px; padding: 12px; border-radius: 18px; }
  .fwa-tile svg.i { width: 28px; height: 28px; }
  .fwa-tile b { font-size: 20px; }
  .fwa-tile small { font-size: 14px; }
  .fwa-alert { min-height: 58px; border-radius: 16px; padding: 6px 10px; gap: 10px; }
  .fwa-alert b { font-size: 16px; }
  .fwa-alert > svg.i { width: 24px; height: 24px; }
  .fwa-alert i { width: 32px; height: 32px; }
}

/* ---------------------------------------------------------------- a load's map card */
.fwa-map { background: var(--a-bg); border: 2px solid var(--a-border); border-radius: 16px; overflow: hidden; box-shadow: var(--u-shadow); }
.fwa-map__art { padding: 6px 6px 0; line-height: 0; }
.fwa-usmap { display: block; width: 100%; height: auto; }
.fwa-usmap__states path { fill: var(--a-raised); stroke: var(--a-bg); stroke-width: 1; stroke-linejoin: round; }
.fwa-usmap__states path.lit { fill: var(--a-lit); }
.fwa-usmap__load polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fwa-usmap__load .halo { stroke: var(--a-bg); stroke-width: 6.5; }
.fwa-usmap__load .driven { stroke: var(--a-text); stroke-width: 2.6; }
.fwa-usmap__load .ahead { stroke: var(--a-text); stroke-width: 2.4; stroke-dasharray: 5 4.5; stroke-linecap: butt; }
.fwa-usmap__load .pin .body { stroke: var(--a-bg); stroke-width: 2; }
.fwa-usmap__load .pin.pickup .body { fill: #175CD3; }
.fwa-usmap__load .pin.delivery .body { fill: #00736D; }
.fwa-usmap__load .pin.mixed .body { fill: var(--a-text); }
.fwa-usmap__load .pin text { fill: #FFFFFF; font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-weight: 700; text-anchor: middle; font-variant-numeric: tabular-nums; }
.fwa-usmap__load .pin .ring { fill: var(--a-bg); stroke: var(--a-text); }
.fwa-map__words { padding: 6px 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.fwa-map__route { font-weight: 700; font-size: 20px; line-height: 1.3; }
.fwa-map__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; color: var(--a-muted); font-size: 15px; }
.fwa-map__meta b { font-variant-numeric: tabular-nums; }
.fwa-map__key { display: inline-flex; gap: 14px; font-size: 14px; }
.fwa-map__key span { display: inline-flex; align-items: center; gap: 6px; }
.fwa-map__key i { width: 12px; height: 12px; border-radius: 50%; background: #175CD3; }
.fwa-map__key i.d { border-radius: 3px; background: #00736D; }
.fwa-map__stops { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--a-border-soft); }
.fwa-map__stops li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 2px solid var(--a-border-soft); }
.fwa-map__stops li:last-child { border-bottom: 0; }
.fwa-map__stops .n { font-style: normal; display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 13px; background: #175CD3; color: #FFFFFF; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; flex: none; }
.fwa-map__stops .n.d { border-radius: 6px; background: #00736D; }
.fwa-map__stops span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fwa-map__stops b { font-size: 16px; }
.fwa-map__stops small { font-size: 14px; color: var(--a-muted); }
.fwa-map__stops em { font-style: normal; font-weight: 700; font-size: 14px; color: var(--a-accent); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.fwa-map__stops em.next { color: var(--a-info); }
.fwa-map__stops em svg.i { width: 16px; height: 16px; }
@media (max-width: 639px) {
  .fwa-map__words { padding: 4px 14px 14px; }
  .fwa-map__route { font-size: 18px; }
  .fwa-map__stops li { padding: 10px 14px; }
}

/* ---------------------------------------------------------------- the receipts window, in the app's look */
/* The kit's window (k/ui/window) and the open receipt (home.css), re-skinned: the app's face, 2px
   borders, bold rows, statuses as coloured words with their mark (as the app's lists show them). The
   kit's script still works down the rows (Reading, then Filed). */
.fwa.app.ui {
  --u-bg: var(--a-bg); --u-ink: var(--a-text); --u-muted: var(--a-muted); --u-soft: var(--a-dim);
  --u-line: var(--a-border-soft); --u-line-2: var(--a-border); --u-fill: var(--a-bg); --u-fill-2: var(--a-accent-soft);
  --u-accent: var(--a-accent); --u-tint: var(--a-accent-soft); --u-accent-text: var(--a-accent);
  --ui-font: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  border: 2px solid var(--a-border); border-radius: 16px;
}
.fwa.app .ui-panel { --ui-font: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.fwa.app > .app__pane + .app__pane { border-left: 2px solid var(--a-border-soft); }
.fwa .ui-dots { display: none; }
.fwa .ui-win__bar { height: 56px; padding: 0 14px 0 18px; border-bottom: 2px solid var(--a-border-soft); }
.fwa .ui-win__crumb { font-size: 16px; line-height: 20px; font-weight: 700; color: var(--a-muted); }
.fwa .ui-win__crumb b { font-weight: 700; }
.fwa .ui-win__search { height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--a-border); font-size: 15px; color: var(--a-dim); }
.fwa .ui-win__body { grid-template-columns: 140px minmax(0, 1fr); }
.fwa .ui-win__side { padding: 10px 8px; gap: 3px; border-right: 2px solid var(--a-border-soft); }
.fwa .ui-win__nav { height: 38px; padding: 0 10px; border-radius: 12px; font-size: 15px; line-height: 18px; font-weight: 700; color: var(--a-muted); }
.fwa .ui-win__nav.is-on { background: var(--a-accent-soft); color: var(--a-accent); font-weight: 700; }
.fwa .ui-win__nav em { font-size: 14px; font-weight: 700; color: inherit; }
.fwa .ui-win__label { font-size: 14px; font-weight: 700; color: var(--a-dim); }
.fwa .ui-win__cols { height: 40px; font-size: 14px; font-weight: 700; color: var(--a-muted); border-bottom: 2px solid var(--a-border-soft); }
.fwa .ui-win__row { height: 58px; font-size: 15px; line-height: 19px; }
.fwa .ui-win__row + .ui-win__row { box-shadow: inset 0 2px 0 var(--a-border-soft); }
.fwa .ui-win__row.is-sel { background: var(--a-raised); }
.fwa .ui-win__who { font-weight: 700; }
.fwa .ui-win__sub { color: var(--a-muted); }
.fwa .ui-win__age { font-size: 15px; color: var(--a-text); }
.fwa .ui-avatar { width: 30px !important; height: 26px !important; border-radius: 8px; background: var(--a-raised) !important; color: var(--a-text) !important; font: 700 12px/1 'Atkinson Hyperlegible', system-ui, sans-serif; box-shadow: none; display: inline-grid; place-items: center; }
.fwa .ui-win__st { height: auto; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; font-size: 15px; font-weight: 700; gap: 5px; }
.fwa .ui-win__st::before { width: 16px; height: 16px; border-radius: 0; opacity: 1; background: currentColor;
  -webkit-mask: var(--st-mark) center / contain no-repeat; mask: var(--st-mark) center / contain no-repeat; }
.fwa .ui-win__st.is-done { color: var(--a-accent); --st-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.fwa .ui-win__st.is-you { color: var(--a-warning); --st-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E"); }
.fwa .ui-win__st.is-work { color: var(--a-info); }
.fwa .ui-win__st.is-work::before { width: 12px; height: 12px; -webkit-mask: none; mask: none; background: none; border: 2px solid color-mix(in oklab, currentColor 30%, transparent); border-top-color: currentColor; border-radius: 50%; }
@container ui-win (max-width: 539px) {
  .fwa .ui-win .ui-win__row { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: 20px 18px; height: 64px; column-gap: 12px; padding: 0 16px; }
  .fwa .ui-win .ui-win__who { line-height: 20px; }
  .fwa .ui-win .ui-win__sub { font-size: 14px; line-height: 18px; }
  .fwa .ui-win .ui-win__body { grid-template-columns: 140px minmax(0, 1fr); }
}
@container ui-win (max-width: 419px) { .fwa .ui-win .ui-win__body { grid-template-columns: minmax(0, 1fr); } }

/* the open receipt */
.fwa .rcpt { padding: 26px 28px; gap: 14px; font-size: 16px; }
.fwa .rcpt__head { padding-bottom: 16px; border-bottom: 2px solid var(--a-border-soft); align-items: center; }
.fwa .rcpt__head b { font-size: 22px; font-weight: 700; }
.fwa .rcpt__head span:not(.ui-win__st) { font-size: 15px; color: var(--a-muted); }
.fwa .rcpt__label { font-size: 15px; font-weight: 700; color: var(--a-muted); }
.fwa .rcpt__read > div { padding: 10px 12px; border: 2px solid var(--a-border-soft); border-radius: 12px; }
.fwa .rcpt__read dt { font-size: 14px; font-weight: 700; color: var(--a-muted); }
.fwa .rcpt__read dd { font-family: inherit; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fwa .rcpt__to { gap: 0; border: 2px solid var(--a-border); border-radius: 16px; overflow: hidden; }
.fwa .rcpt__to li { background: none; border-radius: 0; padding: 13px 16px; grid-template-columns: 64px minmax(0, 1fr) auto; }
.fwa .rcpt__to li + li { border-top: 2px solid var(--a-border-soft); }
.fwa .rcpt__to li > span:nth-child(2) { font-weight: 700; }
.fwa .rcpt__n { font-size: 14px; font-weight: 700; color: var(--a-accent); }
.fwa .rcpt__to b { font-family: inherit; font-size: 15px; font-weight: 700; color: var(--a-accent); font-variant-numeric: tabular-nums; }
.fwa .rcpt__note { font-size: 15px; color: var(--a-muted); }
@media (max-width: 639px) { .fwa .rcpt { padding: 18px 16px; } .fwa .rcpt__to li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
