/* Royal Trees Hub: the website's look (tokens and components from the redesign mockup, hub-mockup.html .hub).
   Light only (no dark mode for Greg and the crew). Type sizes are in rem so a bigger text size on the office PC scales them:
   16 px = 1rem, 18 px = 1.125rem. Colours come only from the tokens below. Orange is the accent: the dash before a label,
   the line under the current tab, the focus ring, and the one send or save button on a screen. */

/* ---------- fonts: the website's own files, first party, with system fallbacks ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("https://royaltreesllc.com/wp-content/themes/royal-trees/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("https://royaltreesllc.com/wp-content/themes/royal-trees/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("https://royaltreesllc.com/wp-content/themes/royal-trees/assets/fonts/work-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("https://royaltreesllc.com/wp-content/themes/royal-trees/assets/fonts/work-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --rt-forest: #15301b; --rt-forest-deep: #0f2414; --rt-moss: #244d2e; --rt-sage: #668c66; --rt-mist: #b0cea9;
  --rt-paper: #f7f3e8; --rt-paper-2: #efe8d6; --rt-burlap: #d8c6a0; --rt-bark: #5b4330; --rt-flag: #e0582c;
  --rt-ink: #1a2a1d; --rt-soft: #3f4d41; --rt-muted: #4f5c50; --rt-line: rgba(21, 48, 27, .16); --rt-cream-soft: #d4d6cc;
  --rt-card: #fbf8f0; --rt-white: #ffffff; --rt-edge: #668c66; --rt-flag-deep: #c8481f; --rt-flag-ink: #a93a14;
  --rt-live: #7bc47f; --rt-stale: #e9b04c; --rt-down: #f07a66;
  --rt-ok: #1f4a2b; --rt-ok-bg: #e1ecd7; --rt-warn: #5b4330; --rt-warn-bg: #f3e5c3; --rt-attn: #a93a14; --rt-attn-bg: #fbe4d8;
  --rt-bad: #9f1d12; --rt-bad-bg: #fae3df; --rt-neutral: #3f4d41; --rt-neutral-bg: #ebe6d6;
  --rt-blank: #ffe27a; --rt-blank-line: #7a5c00; --rt-dot: #3d8a47; --rt-scrim: rgba(15, 36, 20, .55);
  --rt-stripe: rgba(216, 198, 160, .18); --rt-shine: rgba(255, 255, 255, .55); --rt-hover: rgba(21, 48, 27, .06);
  --bg: var(--rt-paper); --surface: var(--rt-card); --surface-2: var(--rt-paper-2); --text: var(--rt-ink); --text-2: var(--rt-soft);
  --text-3: var(--rt-muted); --heading: var(--rt-forest); --label: var(--rt-moss); --border: var(--rt-line); --border-strong: var(--rt-edge);
  --focus: var(--rt-flag);
  --rt-cond: "Barlow Condensed", "Bahnschrift", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --rt-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --rt-serif: Georgia, "Times New Roman", serif;
  --sh-lift: 0 18px 40px -22px rgba(21, 48, 27, .45); --sh-sheet: 0 -12px 40px -16px rgba(15, 36, 20, .55);
  --sh-toast: 0 10px 28px -12px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
  --safe-b: max(12px, env(safe-area-inset-bottom, 0px));
  --gutter: 16px;
  --ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%2315301b' d='M0 90V62l70-18 55 10 80-30 60 18 45-8 90 26 70-22 60 6 85-36 70 24 50-6 95 30 60-14 70 10 90-34 65 18 55-4 85 24 70-16 55 8 60-20V90Z'/%3E%3Cpath fill='%23244d2e' opacity='.55' d='M0 90V74l110-16 90 14 120-20 100 18 130-24 110 20 120-10 140 22 120-18 120 14 110-12 170 16V90Z'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 1.125rem/1.5 var(--rt-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--rt-moss); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } body { font-size: 1.1875rem; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ---------- practice strip (dev mode) ---------- */
.practice { background: var(--rt-warn-bg); color: var(--rt-warn); border-bottom: 1px solid var(--rt-burlap); font-size: 1rem; line-height: 1.35; }
.practice .wrap { display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.practice strong { font: 700 1rem/1 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- app header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.ah { border-bottom: 1px solid var(--border); background: var(--bg); }
.ah .wrap { display: flex; align-items: center; gap: 10px; height: 56px; padding-right: 12px; }
.ah-logo { flex: none; width: 33px; height: 40px; }
.ah-brand { display: flex; flex-direction: column; font: 700 1.375rem/.9 var(--rt-cond); letter-spacing: .04em; text-transform: uppercase; color: var(--heading); white-space: nowrap; }
.ah-sub { display: none; margin-top: 3px; font: italic 400 1rem/1 var(--rt-serif); letter-spacing: 0; text-transform: none; color: var(--rt-moss); }
.ah-screen { display: none; font: 600 1rem/1 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.ah-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ah-who { display: none; font-size: 1rem; color: var(--text-2); }
.upd { display: none; width: 9px; height: 9px; border-radius: 50%; background: var(--rt-flag); animation: pulse 1.2s ease-in-out infinite; }
.is-updating .upd { display: block; }
.is-updating .ah-refresh .ic { display: none; }
@keyframes pulse { 50% { opacity: .25; } }
@media (min-width: 600px) { .ah-sub { display: block; } }
@media (min-width: 720px) {
  .ah .wrap { height: 64px; }
  .ah-logo { width: 38px; height: 46px; }
  .ah-who { display: block; }
}

/* ---------- tabs: one row under the header on a PC, a bar along the bottom on a phone ---------- */
.dtabs { display: none; border-bottom: 1px solid var(--border); background: var(--bg); }
.dtabs .wrap { display: flex; align-items: stretch; gap: 4px; padding-inline: calc(var(--gutter) - 14px); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; margin-bottom: -1px; padding: 0 14px; border: 0;
  border-bottom: 3px solid transparent; background: none; color: var(--text-2); font: 600 1.0625rem/1 var(--rt-cond); letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; transition: color .25s, border-color .25s; }
.tab:hover { color: var(--heading); border-bottom-color: var(--rt-burlap); }
.tab[aria-current="page"] { color: var(--heading); border-bottom-color: var(--rt-flag); }
.tab .ic { width: 16px; height: 16px; transition: transform .25s; }
.tab[aria-expanded="true"] .ic { transform: rotate(180deg); }
.tc { display: inline-block; min-width: 24px; padding: 3px 6px; border-radius: 3px; background: var(--rt-neutral-bg); color: var(--rt-neutral);
  font: 700 1rem/1 var(--rt-cond); letter-spacing: .02em; text-align: center; font-variant-numeric: tabular-nums; }
.tc.attn { background: var(--rt-attn-bg); color: var(--rt-attn); }
.more { position: relative; display: flex; }
.menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 250px; padding: 6px 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--sh-lift); }
.menu button { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 18px; border: 0; background: none; color: var(--text);
  font: 600 1.0625rem/1 var(--rt-cond); letter-spacing: .1em; text-transform: uppercase; text-align: left; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--surface-2); }
.menu button[aria-current="page"] { color: var(--heading); box-shadow: inset 3px 0 0 var(--rt-flag); }
.menu button:focus-visible { outline-offset: -3px; }

.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: var(--safe-b); background: var(--bg); border-top: 1px solid var(--border); }
.bnav button { position: relative; display: flex; align-items: center; justify-content: center; min-height: var(--nav-h); padding: 14px 2px 2px;
  border: 0; background: none; color: var(--text-2); font: 600 1rem/1.05 var(--rt-cond); letter-spacing: .06em; text-transform: uppercase;
  text-align: center; cursor: pointer; }
.bnav button[aria-current="page"] { color: var(--heading); }
.bnav button[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 12px; right: 12px; height: 3px; background: var(--rt-flag); }
.bnav button:focus-visible { outline-offset: -4px; }
.bn-n { position: absolute; top: 3px; right: 6px; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 3px; background: var(--rt-forest);
  color: var(--rt-paper); font: 700 1rem/20px var(--rt-cond); letter-spacing: 0; }
.has-bnav main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }
/* While a field has the keyboard, the bar steps aside so it never sits on the keyboard or on Send. */
.typing .bnav { display: none; }
.typing.has-bnav main { padding-bottom: 32px; }
@media (min-width: 720px) {
  .dtabs { display: block; }
  .bnav { display: none; }
  .has-bnav main { padding-bottom: 48px; }
}

/* ---------- screens and type ---------- */
main { display: block; }
.screen { display: flex; flex-direction: column; gap: 26px; padding-block: 20px 36px; }
@media (min-width: 720px) { .screen { padding-block: 28px 48px; } }
.st { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.st h1 { font: 700 2.125rem/.95 var(--rt-cond); letter-spacing: .005em; text-transform: uppercase; color: var(--heading); }
@media (min-width: 720px) { .st h1 { font-size: 2.75rem; } }
.st > .push { margin-left: auto; }
.st-who { font-size: 1rem; color: var(--text-3); }
.under { display: flex; flex-direction: column; gap: 6px; margin-top: -14px; }
.fresh { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--text-3); }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--rt-dot); box-shadow: 0 0 0 3px rgba(61, 138, 71, .18); }
.dot.old { background: var(--rt-stale); box-shadow: 0 0 0 3px rgba(233, 176, 76, .25); }
.dot.down { background: var(--rt-down); box-shadow: 0 0 0 3px rgba(240, 122, 102, .25); }
.meta { font-size: 1rem; line-height: 1.4; color: var(--text-3); }
.lede { font-size: 1.125rem; color: var(--text-2); margin-top: -12px; }
.sec { display: flex; flex-direction: column; gap: 12px; }
.eb { display: flex; align-items: center; gap: .7em; font: 600 1rem/1.2 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.eb::before { content: ""; flex: none; width: 22px; height: 2px; background: var(--rt-flag); }
.eb .n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.sec-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sec-list { display: flex; flex-direction: column; gap: 12px; }
.pc-only { display: none !important; }
@media screen and (min-width: 720px) { .pc-only { display: inline-flex !important; } }
/* Greg's job cards side by side on a wide screen (the office PC); one column on a phone and on paper. */
@media screen and (min-width: 1000px) {
  .jobs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .jobs-grid > .sub-h, .jobs-grid > .empty { grid-column: 1 / -1; }
}
.sub-h { font: 700 1.25rem/1 var(--rt-cond); letter-spacing: .04em; text-transform: uppercase; color: var(--heading); margin-top: 6px; }
.lab { display: block; font: 600 1rem/1.2 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
[data-jump-target] { scroll-margin-top: 140px; }
.warnline { color: var(--rt-bad); font-weight: 600; }

/* The yard tag (a date label), from the website: forest on burlap. */
.tag { position: relative; display: inline-flex; align-items: center; padding: 8px 14px 8px 28px; border-radius: 3px 16px 16px 3px; background: var(--rt-burlap);
  color: var(--rt-forest); font: 700 1rem/1 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); transform: rotate(-1.5deg); }
.tag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--rt-forest);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 20px; border: 2px solid var(--rt-forest);
  border-radius: 4px; background: transparent; color: var(--rt-forest); font: 700 1.25rem/1.05 var(--rt-cond); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer; touch-action: manipulation; transition: background-color .25s, color .25s, border-color .25s, transform .08s; }
.btn:hover { background: var(--rt-hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--rt-forest); color: var(--rt-paper); }
.btn.primary:hover { background: var(--rt-moss); border-color: var(--rt-moss); }
.btn.cta { background: var(--rt-flag-deep); border-color: var(--rt-flag-deep); color: #fff; }
.btn.cta:hover { background: var(--rt-flag-ink); border-color: var(--rt-flag-ink); }
.btn.small { min-height: 48px; padding: 0 14px; font-size: 1.0625rem; }
.btn.full { width: 100%; }
.btn.link { min-height: 48px; min-width: 48px; padding: 0 8px; border: 0; border-radius: 0; background: none; font-size: 1.0625rem; letter-spacing: .12em;
  color: var(--rt-moss); text-decoration: underline 2px var(--rt-burlap); text-underline-offset: 6px; }
.btn.link:hover { text-decoration-color: var(--rt-flag); }
.btn.link.flush { margin-left: -8px; }
.btn .ic { width: 20px; height: 20px; }
.btn.small .ic { width: 18px; height: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
/* A save that didn't get through: the button says so in words and keeps what was typed. */
.btn.bad { border-color: var(--rt-bad); background: var(--rt-bad-bg); color: var(--rt-bad); }
.btn.danger { border-color: var(--rt-bad); color: var(--rt-bad); }
@media (hover: hover) { .btn:not(.link):not([disabled]):hover { transform: translateY(-1px); } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- pills: outline = kind of job or channel, tint = state ---------- */
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 4px; font: 700 1rem/1.2 var(--rt-cond); letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap; }
.k-install { border: 1.5px solid var(--rt-moss); color: var(--rt-moss); }
.k-delivery { border: 1.5px solid var(--rt-bark); color: var(--rt-bark); }
.k-transplant { background: var(--rt-forest); color: var(--rt-paper); }
.k-other, .k-pickup { border: 1.5px solid var(--rt-soft); color: var(--rt-soft); }
.ch-text { border: 1.5px solid var(--rt-bark); color: var(--rt-bark); }
.ch-fb { border: 1.5px solid var(--rt-moss); color: var(--rt-moss); }
.ch-email { border: 1.5px solid var(--rt-soft); color: var(--rt-soft); }
.pill.ok { background: var(--rt-ok-bg); color: var(--rt-ok); }
.pill.warn { background: var(--rt-warn-bg); color: var(--rt-warn); }
.pill.attn { background: var(--rt-attn-bg); color: var(--rt-attn); }
.pill.bad { background: var(--rt-bad-bg); color: var(--rt-bad); }
.pill.neutral { background: var(--rt-neutral-bg); color: var(--rt-neutral); }
.pill.wrapok { white-space: normal; }
/* "1 late" jumps to the late job: looks 28 px tall, taps like 48 px (56 px on a phone). */
.pill.jump { position: relative; gap: 4px; border: 0; cursor: pointer; }
.pill.jump::after { content: ""; position: absolute; inset: -10px -6px; }
.pill.jump .ic { width: 16px; height: 16px; }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; min-width: 0; }
.card.attn { border-left: 4px solid var(--rt-flag); }
.card.calm { border-left: 4px solid var(--rt-burlap); }
.card.bad { border-left: 4px solid var(--rt-bad); }
.job-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.job-top .btn.link, .job-top .push { margin-left: auto; }
.name { font: 600 1.375rem/1.25 var(--rt-body); color: var(--text); overflow-wrap: anywhere; }
.crew .name { font-size: 1.5rem; }
.addr { color: var(--text-2); overflow-wrap: anywhere; }
.addr .meta { display: block; }
.addr .meta, .row-sub, .p-facts, .lrow .l2, .spec .for, .srow .sz { font-size: 1.125rem; color: var(--text-2); }
.trees { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--border); }
.trees li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--border); overflow-wrap: anywhere; }
.trees li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 8px; height: 8px; border: 2px solid var(--rt-moss); border-radius: 50%; }
.qty { margin-right: 6px; font-weight: 600; color: var(--rt-moss); font-variant-numeric: tabular-nums; }
.note { padding: 10px 12px; border-radius: 4px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note .lab { white-space: normal; }
/* Money to collect: the website's dashed box in bark on the burlap tint, so orange stays for what's late or needs you. */
.collect { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 12px; border: 1.5px dashed var(--rt-bark); border-radius: 4px;
  background: var(--rt-warn-bg); color: var(--rt-warn); }
.collect .lbl { font: 700 1rem/1 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; }
.collect strong { font: 600 1.375rem/1.15 var(--rt-body); font-variant-numeric: tabular-nums; }
.crew .collect { flex-direction: column; align-items: stretch; gap: 8px; }
.collect .c-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.collect .c-asof { font-size: 1rem; }
.collect .c-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.collect .c-row p { flex: 1; min-width: 0; line-height: 1.35; }
.collect .btn { flex: none; border-color: var(--rt-bark); color: var(--rt-bark); }
.collect-chip { margin-left: auto; padding: 6px 8px; border-radius: 4px; background: var(--rt-warn-bg); color: var(--rt-warn); font: 700 1.125rem/1 var(--rt-cond);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums; }
.changed { color: var(--rt-bad); font-weight: 600; }

/* ---------- plain lists (replies waiting, stock) ---------- */
.plain { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.plain > li { border-bottom: 1px dashed var(--border); }
.plain > li:last-child { border-bottom: 0; }
.lrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; cursor: pointer; }
.lrow:hover { background: var(--rt-hover); }
.lrow:focus-visible { outline-offset: -3px; }
.lrow .l1 { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.lrow .l2 { grid-column: 1 / -1; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 14px; }
.srow .sz { display: block; font-size: 1rem; color: var(--text-3); }
.srow .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.srow .num { font-weight: 600; font-variant-numeric: tabular-nums; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- the website's spec box (load list) ---------- */
.spec { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.spec > h3, .spec > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 11px 16px; background: var(--rt-forest);
  color: var(--rt-paper); font: 700 1rem/1 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; }
.spec > summary { min-height: 56px; }
.spec > summary .chev { color: var(--rt-mist); }
.spec .n { color: var(--rt-mist); }
.spec ul { list-style: none; margin: 0; padding: 0 16px; }
.spec li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px dashed var(--border); overflow-wrap: anywhere; }
.spec li:last-child { border-bottom: 0; }
.spec li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 8px; height: 8px; border: 2px solid var(--rt-moss); border-radius: 50%; }
.spec .for { display: block; font-size: 1rem; color: var(--text-3); }
.spec .tot { padding: 11px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-weight: 600; }
.spec li.y { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.spec .spec-l { display: inline-flex; align-items: center; gap: 8px; }
.spec > summary .n { margin-left: auto; letter-spacing: .06em; }
.spec.tight li { padding-block: 7px; }
.spec.tight li::before { top: .95em; }
/* The crew's one screen sits a little closer together, so Map and Call on the first job stay high up. */
.screen.tight { gap: 16px; }
.screen.tight .under { margin-top: -6px; }
.spec li.y .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ---------- folds ---------- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.chev { width: 22px; height: 22px; color: var(--rt-moss); transition: transform .25s; flex: none; }
details[open] > summary .chev { transform: rotate(180deg); }
.fold { padding: 0; gap: 0; }
.fold > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; }
.fold > summary:focus-visible { outline-offset: -3px; }
.s-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fold .s-main strong { font: 700 1.25rem/1.1 var(--rt-cond); letter-spacing: .04em; text-transform: uppercase; color: var(--heading); }
.fold-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; border-top: 1px dashed var(--border); }
.txtrow { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.txtrow + .txtrow { border-top: 1px dashed var(--border); }
.utils { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; border-top: 1px solid var(--border); }
.preview { padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 4px; background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Board: chips, search, rows ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 2px solid var(--border-strong); border-radius: 4px;
  background: var(--surface); color: var(--text-2); font: 600 1.0625rem/1 var(--rt-cond); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background-color .2s, color .2s; text-decoration: none; }
.chip .c { font: 700 1rem/1 var(--rt-cond); letter-spacing: .02em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--rt-forest); border-color: var(--rt-forest); color: var(--rt-paper); }
.chip[aria-pressed="true"] .c { color: var(--rt-mist); }
.chip.attn { border-color: var(--rt-flag); }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 18px; color: var(--text-3); pointer-events: none; }
.search input { padding-left: 46px !important; }
.searchbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rows { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.grp-h { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px 8px; background: var(--surface-2); border-bottom: 1px solid var(--border);
  font: 700 1rem/1 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.rows > .grp-h:not(:first-child) { border-top: 1px solid var(--border); }
.grp-h.late { color: var(--rt-bad); }
.row { border-bottom: 1px dashed var(--border); }
.row:last-child { border-bottom: 0; }
.row > summary { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; }
.row > summary:hover { background: var(--rt-hover); }
.row > summary:focus-visible { outline-offset: -3px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name { font: 600 1.1875rem/1.25 var(--rt-body); overflow-wrap: anywhere; }
.row-sub { font-size: 1rem; color: var(--text-2); overflow-wrap: anywhere; }
.row-body { display: flex; flex-direction: column; gap: 12px; padding: 2px 14px 16px; }
.row.is-saving > summary .row-name::after { content: " · Saving…"; color: var(--text-3); font-weight: 400; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.kv dt { padding-top: 3px; font: 600 1rem/1.2 var(--rt-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.kv dd { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.empty-line { padding: 20px 16px; color: var(--text-2); text-align: center; }
.board-cols { display: flex; flex-direction: column; gap: 26px; }
@media (min-width: 1100px) {
  .board-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 32px; align-items: start; }
}

/* ---------- fields and toggles ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field .flabel { font: 600 1rem/1.2 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.field label .why { font: 400 1rem/1.2 var(--rt-body); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; padding: 12px 14px; border: 2px solid var(--border-strong); border-radius: 4px;
  background: var(--rt-white); color: var(--text); font: 400 1.1875rem/1.4 var(--rt-body); }
.field input[type="file"] { min-height: 0; padding: 8px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rt-forest); outline: 3px solid var(--focus); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field.err input, .field.err textarea { border-color: var(--rt-bad); }
.hint { font-size: 1rem; color: var(--text-3); }
.msg-err { display: flex; align-items: flex-start; gap: 8px; color: var(--rt-bad); font-weight: 600; font-size: 1.0625rem; }
.msg-err .ic { margin-top: 2px; }
.msg-ok { color: var(--rt-ok); font-weight: 600; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 720px) { .three { grid-template-columns: 2fr 1fr 1fr; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; overflow: hidden; border: 2px solid var(--border-strong); border-radius: 4px; background: var(--rt-white); }
.seg button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; padding: 6px 8px; border: 0; border-left: 2px solid var(--border-strong);
  background: none; color: var(--text); font: 700 1.125rem/1.05 var(--rt-cond); letter-spacing: .06em; text-transform: uppercase; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--rt-forest); color: var(--rt-paper); }
.seg button:focus-visible { outline-offset: -5px; }
.seg button .ic { display: none; width: 18px; height: 18px; }
.seg button[aria-pressed="true"] .ic { display: block; }
.seg.days button { flex-direction: column; gap: 3px; min-height: 64px; }
.seg.days .d2 { font: 400 1rem/1 var(--rt-body); letter-spacing: 0; text-transform: none; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggles button { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 2px solid var(--border-strong); border-radius: 4px;
  background: var(--rt-white); color: var(--text); font: 600 1.0625rem/1 var(--rt-cond); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.toggles button[aria-pressed="true"] { background: var(--rt-forest); border-color: var(--rt-forest); color: var(--rt-paper); }
.toggles .ic { display: none; width: 16px; height: 16px; }
.toggles button[aria-pressed="true"] .ic { display: block; }

/* ---------- Wrap-up ---------- */
.prog { display: flex; flex-direction: column; gap: 8px; margin-top: -8px; }
.prog strong { font-weight: 600; }
.bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.bar i { height: 8px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--border); }
.bar i.on { background: var(--rt-moss); border-color: var(--rt-moss); }
.wu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.wu-row .wu-name { font-weight: 600; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.wu-row .meta { flex-basis: 100%; }
.wu-job { gap: 14px; }
.opt > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; border-top: 1px dashed var(--border); }
.opt > summary:focus-visible { outline-offset: 2px; }
.opt .s-main { gap: 3px; }
.opt-body { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
/* Send wrap-up sits at the end of the form and follows Greg down the screen once he has answered a job. */
.sendbar { position: static; z-index: 4; display: flex; flex-direction: column; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); background: var(--bg); }
.sendbar.is-stuck { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); }
.typing .sendbar.is-stuck, .no-bnav .sendbar.is-stuck { bottom: 0; }
@media (min-width: 720px) { .sendbar.is-stuck { bottom: 0; } }
.stockrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.stockrow .full { grid-column: 1 / -1; }
@media (min-width: 720px) { .stockrow { grid-template-columns: 2fr 1fr 1fr 1.4fr; } .stockrow .full { grid-column: 1 / -1; } }
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-left: 4px solid var(--rt-flag); border-radius: 0 4px 4px 0;
  background: var(--rt-warn-bg); color: var(--rt-warn); }
.banner .ic { margin-top: 3px; }
.banner.ok { border-left-color: var(--rt-dot); background: var(--rt-ok-bg); color: var(--rt-ok); }
.banner.bad { border-left-color: var(--rt-bad); background: var(--rt-bad-bg); color: var(--rt-bad); }
.banner .btn { align-self: flex-start; border-color: currentColor; color: inherit; }
.b-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }

/* ---------- Replies ---------- */
.rep-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rep-name { font: 600 1.375rem/1.2 var(--rt-body); overflow-wrap: anywhere; }
.rep-time { margin-left: auto; font-size: 1rem; color: var(--text-3); }
.rep-topic { color: var(--text-2); }
.card.urgent { border: 2px solid var(--rt-bad); }
.convo { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.convo > .btn.link { align-self: flex-start; }
.msg { max-width: 90%; padding: 10px 12px; border-radius: 6px 6px 6px 2px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.us { align-self: flex-end; border-radius: 6px 6px 2px 6px; background: var(--rt-ok-bg); }
.msg .who { margin-bottom: 2px; font-size: 1rem; color: var(--text-3); white-space: normal; }
.rep-note { padding: 10px 12px; border-radius: 4px; background: var(--rt-warn-bg); color: var(--rt-warn); display: flex; flex-direction: column; gap: 4px; }
.rep-note .lbl { margin-right: 6px; font: 700 1rem/1 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; }
.reply-box { padding: 12px 14px; border: 2px solid var(--border-strong); border-radius: 4px; background: var(--rt-white); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
textarea.reply-edit { width: 100%; min-height: 140px; padding: 12px 14px; border: 2px solid var(--border-strong); border-radius: 4px; background: var(--rt-white);
  font: 400 1.1875rem/1.5 var(--rt-body); color: var(--text); resize: vertical; }
textarea.reply-edit:focus { border-color: var(--rt-forest); outline: 3px solid var(--focus); outline-offset: 2px; }
/* Each yellow part of the draft points at its own 56 px field below, which fills the draft as Greg types. */
.blank-chip { position: relative; padding: 1px 6px; border: 0; border-bottom: 2px solid var(--rt-blank-line); border-radius: 2px; background: var(--rt-blank);
  color: var(--rt-bark); font: inherit; cursor: pointer; }
/* The yellow word stays the height of the text, but a tap anywhere 48 px tall around it lands on it (and jumps to its field). */
.blank-chip::after { content: ""; position: absolute; inset: -9px -2px; }
.blank-chip.is-filled { background: var(--rt-ok-bg); border-bottom-color: var(--rt-moss); color: var(--text); font-weight: 600; }
.blank-field label { display: flex; align-items: center; gap: 8px; }
.blank-field input { background: var(--rt-blank); border-color: var(--rt-blank-line); }
.blank-field input::placeholder { color: var(--rt-bark); }
.blank-field input.is-filled { background: var(--rt-ok-bg); border-color: var(--rt-moss); }
.sw { flex: none; width: 18px; height: 14px; border-radius: 2px; background: var(--rt-blank); border-bottom: 2px solid var(--rt-blank-line); }
.blank-hint { font-size: 1rem; color: var(--text-2); }
.send-row { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 2; margin-inline: -16px; padding: 8px 16px; background: var(--surface); }
.typing .send-row { bottom: 0; }
@media (min-width: 720px) { .send-row { bottom: 0; } }
.other > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font: 700 1.125rem/1 var(--rt-cond); letter-spacing: .08em;
  text-transform: uppercase; color: var(--rt-moss); border-top: 1px dashed var(--border); }
.other .stack { padding-top: 4px; }
.working { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 4px; background: var(--rt-ok-bg); color: var(--rt-ok); font-weight: 600; }
.spinner { flex: none; width: 22px; height: 22px; border: 3px solid rgba(36, 77, 46, .25); border-top-color: var(--rt-moss); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-line { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--rt-ok); }
.done-line .ok-ic { width: 32px; height: 32px; }
.shot { display: block; max-width: 100%; max-height: 320px; border: 1px solid var(--border); border-radius: 6px; }

/* ---------- Find a plant ---------- */
.p-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px dashed var(--border); }
.p-row:last-child { border-bottom: 0; }
.p-name { font-weight: 600; overflow-wrap: anywhere; }
.p-bot { font-style: italic; font-size: 1rem; color: var(--text-2); overflow-wrap: anywhere; }
.p-facts { grid-column: 1 / -1; font-size: 1rem; color: var(--text-3); }
.p-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.p-sale { display: block; font-size: 1rem; color: var(--rt-moss); }

/* ---------- Brandon's Today ---------- */
.dgrid { display: flex; flex-direction: column; gap: 26px; }
.dcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dcol .eb:not(:first-child) { margin-top: 14px; }
@media (min-width: 1000px) { .dgrid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: start; } }
.need { gap: 12px; padding: 16px 20px 18px; }
.need-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.need-h h3 { font: 700 1.5rem/1 var(--rt-cond); letter-spacing: .01em; text-transform: uppercase; color: var(--heading); }
.need-list { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--border); }
.need-list li { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.need-list .who { font-weight: 600; overflow-wrap: anywhere; }
.need-list .m { color: var(--text-2); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 116px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .25s, box-shadow .25s; min-width: 0; }
div.tile { background: transparent; border-style: dashed; cursor: default; }
@media (hover: hover) { button.tile:hover { border-color: var(--rt-moss); box-shadow: var(--sh-lift); } }
.tn { font: 700 2.75rem/.95 var(--rt-cond); color: var(--heading); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tn.word { font-size: 1.75rem; line-height: 1.1; }
.tl { font: 600 1rem/1.2 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.tm { font-size: 1rem; color: var(--text-3); overflow-wrap: anywhere; }
.status { padding: 0; gap: 0; }
.status > summary { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px; }
.status > summary:focus-visible { outline-offset: -3px; }
.ok-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; background: var(--rt-ok-bg); color: var(--rt-ok); }
.ok-ic.warn { background: var(--rt-attn-bg); color: var(--rt-attn); }
.status .s-main strong { font: 600 1.25rem/1.25 var(--rt-body); }
.status-list { list-style: none; margin: 0; padding: 0 16px 6px; border-top: 1px dashed var(--border); }
.status-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.status-list li:last-child { border-bottom: 0; }
.status-list .meta { grid-column: 1; }
.status-list .pill { grid-row: 1 / span 2; grid-column: 2; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { padding: 12px 16px; background: var(--rt-forest); color: var(--rt-paper); text-align: left; font: 700 1rem/1 var(--rt-cond); letter-spacing: .12em; text-transform: uppercase; }
.tbl td { padding: 14px 16px; border-top: 1px dashed var(--border); vertical-align: top; }
.tbl tbody tr:nth-child(even) td { background: var(--rt-stripe); }
.tbl .who { font-weight: 600; }
.tbl .msgp { margin-top: 6px; max-width: 46ch; color: var(--text-2); white-space: pre-wrap; }
.tbl td:last-child { width: 1%; }
.tbl .acts { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.tbl .acts .btn { white-space: nowrap; }
.fu-cards { display: flex; flex-direction: column; gap: 12px; }
.fu-table { display: none; }
@media (min-width: 900px) { .fu-cards { display: none; } .fu-table { display: block; } }
.qr { display: block; margin: 4px auto 0; background: #fff; image-rendering: pixelated; }
.linkbox { padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 4px; background: var(--bg); font-size: 1rem; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.person { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px dashed var(--border); }
.person:first-child { border-top: 0; padding-top: 0; }
.person-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.person-h .name { font-size: 1.25rem; }

/* ---------- empty state with the website's ridgeline ---------- */
.empty { align-items: center; gap: 10px; padding: 0 24px 28px; overflow: hidden; text-align: center; }
.empty .ridge { align-self: stretch; height: 56px; margin: 0 -24px 10px; background: var(--ridge) bottom / 100% 56px no-repeat; }
.empty h2 { font: 700 1.75rem/1 var(--rt-cond); letter-spacing: .01em; text-transform: uppercase; color: var(--heading); }
.empty p { max-width: 46ch; color: var(--text-2); }
.empty .voice { font: italic 400 1.1875rem/1.3 var(--rt-serif); color: var(--rt-moss); }

/* ---------- whole-screen states: a link that isn't right, owner sign-in, no signal on the first open ---------- */
.gate { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.gate-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 24px 24px; text-align: center; }
.gate .lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; text-align: left; }
.gate .lockup .ah-logo { width: 48px; height: 58px; }
.gate .lockup .ah-sub { display: block; }
.gate h1 { font: 700 2.125rem/.95 var(--rt-cond); letter-spacing: .005em; text-transform: uppercase; color: var(--heading); text-wrap: balance; }
.gate p { max-width: 34ch; color: var(--text-2); }
/* Brandon's sign-in under the staff words on the no-link screen: smaller, folded, so it never looks like Greg's page. */
.owner-fold { width: 100%; max-width: 360px; margin-top: 22px; border-top: 1px dashed var(--border); text-align: left; }
.owner-fold > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; color: var(--rt-moss);
  font: 600 1.0625rem/1 var(--rt-cond); letter-spacing: .1em; text-transform: uppercase; }
.owner-fold > summary .ic { width: 16px; height: 16px; transition: transform .25s; }
.owner-fold-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 4px; }
.owner-fold-body > .meta { text-align: center; }
.gate form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; text-align: left; }
.gate .ridge { flex: none; height: 70px; background: var(--ridge) bottom / 100% 70px no-repeat; }

/* ---------- toast and sheet ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 110; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 14px; border-left: 4px solid var(--rt-live); border-radius: 4px; background: var(--rt-forest-deep);
  color: var(--rt-paper); font: 400 1.125rem/1.35 var(--rt-body); box-shadow: var(--sh-toast); opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s, visibility .2s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.err { border-left-color: var(--rt-flag); }
.toast .btn { min-height: 48px; border-color: var(--rt-mist); color: var(--rt-paper); }
.no-bnav .toast, .typing .toast { bottom: calc(var(--safe-b) + 16px); }
@media (min-width: 720px) { .toast { bottom: 28px; } }
.sheet-back { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; background: var(--rt-scrim); opacity: 0; transition: opacity .28s; }
.sheet-back.open { opacity: 1; }
.sheet { width: 100%; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(16px + var(--safe-b)); background: var(--surface);
  border-radius: 10px 10px 0 0; box-shadow: var(--sh-sheet); transform: translateY(28px); transition: transform .28s var(--ease); }
.sheet-back.open .sheet { transform: none; }
.sheet:focus { outline: none; }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; background: var(--rt-forest); color: var(--rt-paper); }
.sheet-title { flex: 1; font: 700 1.375rem/1.05 var(--rt-cond); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.sheet-title:focus { outline: none; }
.sheet-x { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 2px solid rgba(247, 243, 232, .55); border-radius: 4px; background: none;
  color: var(--rt-paper); font: 700 1.0625rem/1 var(--rt-cond); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sheet-body { display: flex; flex-direction: column; gap: 16px; padding: 16px 18px; }
@media (min-width: 720px) {
  .sheet-back { align-items: center; justify-content: center; padding: 24px; }
  .sheet { width: 600px; max-height: 88vh; padding-bottom: 6px; border-radius: 6px; }
}
.menu-sheet button { display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0 4px; border: 0; border-bottom: 1px dashed var(--border); background: none;
  color: var(--text); font: 700 1.25rem/1 var(--rt-cond); letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer; }
.menu-sheet button[aria-current="page"] { color: var(--heading); box-shadow: inset 3px 0 0 var(--rt-flag); padding-left: 12px; }

/* ---------- skeleton (first load): the header and tabs stay live ---------- */
.skel { display: flex; flex-direction: column; gap: 16px; padding-block: 20px 36px; }
.sk { display: block; position: relative; overflow: hidden; border-radius: 3px; background: var(--rt-paper-2); height: 14px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--rt-shine), transparent);
  animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.sk.h34 { height: 34px; } .sk.h24 { height: 24px; } .sk.h22 { height: 22px; } .sk.h56 { height: 56px; }
.sk.w46 { width: 46%; } .sk.w58 { width: 58%; } .sk.w60 { width: 60%; } .sk.w70 { width: 70%; } .sk.w80 { width: 80%; } .sk.w90 { width: 90%; }
.sk.w100 { width: 100%; } .sk.wpill { width: 70px; }

/* ---------- phones: 56 px buttons (SPEC 7) ---------- */
/* Every button Greg's guide names is 56 px tall on a phone: the small ones (Set date, Done, Put back, Copy text, Print
   today's jobs, Copy schedule for Abel, + Add a job, Open the Board, Undo), the link-style ones (Change) and Other
   choices. The "1 late" jump gets the same reach. Staying 48 px: secondary text links (.flush: Show earlier, Change the
   wording, + Another plant), the header's Refresh (it has to fit the 56 px header) and the jump chips, which aren't on
   the guide and would push Greg's first job further down. */
@media (max-width: 719px) {
  .btn.small, .btn.link, .toast .btn, .toggles button, .other > summary { min-height: 56px; }
  .btn.link.flush, .ah .btn.small { min-height: 48px; }
  .pill.jump::after { inset: -14px -6px; }
}

/* ---------- print: Greg's "Print today's jobs" (only Today prints, black on white) ---------- */
.print-head { display: none; }
@page { size: letter; margin: .5in; }
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --text-2: #222; --text-3: #333; --border: #777; --heading: #000; --label: #000; }
  body { background: #fff; color: #000; font: 400 12pt/1.35 var(--rt-body); -webkit-print-color-adjust: economy; print-color-adjust: economy; }
  .top, .practice, .bnav, .dtabs, .toast, .sheet-back, .noprint, button, .btn, .pair, .chips, .under, .tag, .collect-chip { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  main { padding: 0 !important; }
  .screen { padding: 0; gap: 8pt; }
  .st { display: none; }
  .print-head { display: flex !important; align-items: center; gap: 10px; margin: 0 0 10pt; padding-bottom: 6pt; border-bottom: 2pt solid #000; }
  .print-head img { height: 36px; width: auto; }
  .print-head h1 { margin: 0; font: 700 20pt/1 var(--rt-cond); text-transform: uppercase; letter-spacing: .04em; }
  .print-head .when { margin-left: auto; font: 600 12pt var(--rt-cond); text-transform: uppercase; letter-spacing: .1em; }
  .card, .card.attn, .card.calm, .card.bad { break-inside: avoid; border: 1pt solid #777; border-left: 3pt solid #000; border-radius: 0; box-shadow: none; padding: 6pt 8pt; margin: 0 0 6pt; gap: 3pt; }
  .name { font-size: 13pt; }
  .spec { break-inside: avoid; border: 0; }
  .spec > h3, .spec > summary { background: none; color: #000; border-bottom: 1pt solid #000; padding: 2pt 0; min-height: 0; }
  .spec ul { padding: 0; }
  .spec li { border-bottom: .5pt dashed #777; padding: 3pt 0 3pt 14pt; }
  .pill { background: none !important; border: 1pt solid #000 !important; color: #000 !important; min-height: 0; }
  .collect { border: 0; border-left: 3pt solid #000; background: none; font-weight: 700; color: #000; }
  .note { background: none; border-left: 1pt solid #000; padding: 2pt 6pt; }
  .eb { color: #000; font: 700 14pt/1 var(--rt-cond); margin: 10pt 0 4pt; }
  .eb::before { background: #000; }
  .preview { display: none; }
}

/* ---------- less motion when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
