/* TFK LINKS NIG LTD — stylesheet
   Palette: canvas white ground, marquee green, brass hardware.
   Type: Fraunces (display) / Karla (body) / IBM Plex Mono (specs & figures). */

:root {
  --ground:    #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #F2F6F1;
  --ink:       #111C16;
  --ink-soft:  #35463C;
  --muted:     #5C6C62;
  --line:      #D9E1D6;
  --line-soft: #E6ECE3;
  --green:     #0E6B45;
  --green-ink: #0A5134;
  --green-wash:#E2F0E7;
  --brass:     #9C6F16;
  --brass-wash:#F6EEDC;
  --on-green:  #F4FAF6;
  --danger:    #B3261E;
  --shadow:    0 1px 2px rgba(17, 28, 22, .06), 0 8px 24px -14px rgba(17, 28, 22, .28);
  --radius:    10px;

  /* The site is light for every visitor, whatever their device is set to. */
  color-scheme: light;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body:    "Karla", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.01em;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- header ---------------------------------------------------- */

.masthead {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding-block: 10px;
  flex-wrap: nowrap;
}
.masthead .wrap > * { min-width: 0; }
.mast-wa { flex: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.brand-mark {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 7px;
  background: var(--green);
  color: var(--on-green);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
}

.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.mast-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.mast-link {
  font-size: 15.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 7px;
}
.mast-link:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- the menu button and mobile nav ---------------------------- */

.nav-toggle {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  place-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 20px 14px;
}
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child { border-bottom: 0; color: var(--green); }

/* ---------- buttons --------------------------------------------------- */

.btn {
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 9px 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-wa { background: #1FA855; color: #FFFFFF; }
.btn-wa:hover { background: #17843F; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- hero ------------------------------------------------------ */

.hero { padding-block: 56px 40px; }

.hero-grid {
  display: grid;
  gap: 38px;
  grid-template-columns: 1fr;
  align-items: end;
}

.hero h1 {
  font-size: clamp(39.5px, 6.4vw, 68.6px);
  font-variation-settings: "SOFT" 20, "WONK" 1;
  margin-block: 14px 18px;
  max-width: 14ch;
}

.hero h1 em { font-style: normal; color: var(--green); }

.hero-lede {
  font-size: 19.5px;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 24px;
}

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat { background: var(--surface); padding: 16px 18px; }
.stat-num {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 15px; color: var(--muted); margin-top: 6px; }

.hero-shot {
  margin-top: 34px;
  aspect-ratio: 21 / 9;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .hero-shot { aspect-ratio: 16 / 10; margin-top: 26px; } }

/* ---------- section furniture ----------------------------------------- */

.section { padding-block: 40px; scroll-margin-top: 84px; }
.section-head { max-width: 62ch; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(27px, 3.4vw, 34.3px); margin-block: 10px 10px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17.5px; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- about ----------------------------------------------------- */

.about {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding-block: 44px;
}
.about-copy p { color: var(--ink-soft); font-size: 18.5px; max-width: 62ch; }
.about-copy p:first-of-type { margin-top: 0; }

.pull {
  font-family: var(--f-display);
  font-size: 22.5px;
  line-height: 1.34;
  color: var(--ink);
  border-left: 3px solid var(--brass);
  padding-left: 18px;
  margin: 0;
}
.pull cite { display: block; font-family: var(--f-mono); font-size: 12.5px; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- catalogue layout ------------------------------------------ */

.builder { padding-bottom: 56px; }

.cat-group { margin-bottom: 38px; }
.cat-group-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.cat-group h3 { font-size: 28px; font-weight: 700; }
.cat-group-lede { color: var(--muted); font-size: 16px; margin: 0 0 20px; max-width: 64ch; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card.is-active { border-color: var(--green); }

/* photo slot */
.shot { aspect-ratio: 16 / 10; width: 100%; max-width: 100%; position: relative; background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background:
    repeating-linear-gradient(115deg,
      var(--surface-2) 0 14px,
      color-mix(in srgb, var(--surface-2) 70%, var(--ground)) 14px 28px);
  color: var(--muted);
  text-align: center;
  padding: 12px;
}
.shot-empty svg { opacity: .5; }
.shot-soon {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.shot-hint { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; word-break: break-all; opacity: .7; }

.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title {
  font-family: var(--f-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.015em;
}
.card-blurb { font-size: 15.5px; color: var(--muted); margin: 0; }

.spec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.spec-list li {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-soft);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 3px 7px;
}

.field-row { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

select, input, textarea {
  font-family: var(--f-body);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  width: 100%;
  max-width: 100%;
}
textarea { resize: vertical; min-height: 74px; }

/* iOS gives date inputs an intrinsic width that overflows a narrow column */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  min-height: 44px;
  line-height: 1.2;
}
input, select, textarea { min-width: 0; }
/* comfortable tap targets, and every field the same height */
input, select { min-height: 44px; }
select { appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.dims {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  background: var(--green-wash);
  border-radius: 6px;
  padding: 7px 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.dims b { font-weight: 500; color: var(--ink-soft); }

.qty { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.qty-btn {
  width: 34px; height: 34px; flex: none;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.qty-btn:hover { background: var(--surface-2); }
.qty-val {
  flex: 1;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}
.qty-input {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  height: 38px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 16px;            /* 16px stops phones zooming in on tap */
  font-variant-numeric: tabular-nums;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
}
.qty-input:focus, .cap-input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.qty-limit { margin: 0; font-size: 13.5px; line-height: 1.4; color: #b42318; }
.qty-limit:empty { display: none; }
.card-stock[hidden], .card-rate[hidden], .card-also[hidden] { display: none; }

/* guests box: type a number, or pick from the list under it */
.cap-field { position: relative; }
.cap-wrap { position: relative; display: flex; align-items: center; }
.cap-input {
  width: 100%;
  font-size: 16px;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  padding-right: 74px;
}
.cap-suffix {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
  font-size: 14px; color: var(--muted); pointer-events: none;
}
.cap-wrap::after {
  content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.cap-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 6px; padding: 8px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2);
}
.cap-list[hidden] { display: none; }
.cap-opt {
  min-height: 40px; padding: 6px 4px;
  font-size: 14px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface);
  cursor: pointer;
}
.cap-opt[aria-selected="true"] { border-color: var(--green); background: var(--green-wash); color: var(--green); font-weight: 600; }
.cap-opt:active { background: var(--green-wash); }
.qty-unit { font-size: 14px; color: var(--muted); flex: none; min-width: 42px; }
.card-rate { font-family: var(--f-mono); font-size: 14px; color: var(--brass); font-variant-numeric: tabular-nums; }
.card-stock { font-family: var(--f-mono); font-size: 12.5px; color: var(--green); }
.card-also { font-family: var(--f-mono); font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

/* ---------- request panel --------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 84px;
}

.panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  display: flex; align-items: center; gap: 10px;
}
.panel-head h3 { margin-right: auto; }
.panel-head h3 { font-size: 19px; }
.panel-ref { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }

.panel-body { padding: 15px 17px; display: flex; flex-direction: column; gap: 14px; }

.lines { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line-name { font-size: 15.5px; font-weight: 600; }
.line-meta { font-family: var(--f-mono); font-size: 13px; color: var(--muted); grid-column: 1; padding-right: 10px; }
.line-amt { font-family: var(--f-mono); font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.line-drop { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0; text-decoration: underline; justify-self: end; align-self: start; }
.line-drop:hover { color: var(--ink); }

.empty-note { font-size: 15.5px; color: var(--muted); margin: 0; }

.totals { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.total-row.grand { font-family: var(--f-display); font-size: 21.5px; font-weight: 600; }
.total-row span:last-child { font-family: var(--f-mono); }
.total-row.grand span:last-child { font-family: var(--f-display); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid > * { min-width: 0; }
.form-grid .span-2 { grid-column: 1 / -1; }

.err { color: var(--danger); font-size: 14px; margin: 4px 0 0; }
.is-invalid { border-color: var(--danger); }

.send-stack { display: flex; flex-direction: column; gap: 8px; }
.send-note { font-size: 14px; color: var(--muted); margin: 0; text-align: center; }

.sent {
  background: var(--green-wash);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 14px 15px;
  font-size: 15.5px;
}
.sent strong { display: block; font-family: var(--f-display); font-size: 19px; margin-bottom: 5px; }

/* ---------- the request drawer ---------------------------------------- */

.cart-tab {
  position: fixed;
  right: 0;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px 13px 16px;
  border: 1px solid var(--green);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--green);
  color: var(--on-green);
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 22px -10px rgba(14, 107, 69, .7);
  transition: transform .18s ease, background .18s ease;
}
.cart-tab:hover { background: var(--green-ink); transform: translateX(-3px); }
.cart-tab.is-open { transform: translateX(120%); }

@media (max-width: 859px) {
  .cart-tab {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    border-right: 1px solid var(--green);
    border-radius: 999px;
    padding: 12px 17px;
    box-shadow: 0 8px 26px -8px rgba(14, 107, 69, .55);
  }
  .cart-tab:hover { transform: none; }
}
.cart-icon { flex: none; }
.cart-count {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-tab.is-bumped { animation: cartBump .4s ease; }
@keyframes cartBump {
  0%, 100% { transform: translateX(0) scale(1); }
  40%      { transform: translateX(-5px) scale(1.06); }
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(17, 28, 22, .38);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(430px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 40px -20px rgba(17, 28, 22, .5);
  transform: translateX(101%);
  transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.is-open { transform: translateX(0); }
.drawer .panel-head { flex: none; }
.drawer .panel-body { flex: 1; overflow-y: auto; }

.drawer-close {
  flex: none;
  width: 34px; height: 34px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.drawer-close:hover { background: var(--surface-2); }


/* ---------- venue ----------------------------------------------------- */

.venue {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.venue-copy { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.venue-copy h3 { font-size: 27px; }
.venue-copy p { margin: 0; color: var(--ink-soft); font-size: 17.5px; max-width: 48ch; }
.venue .shot { aspect-ratio: 4 / 3; }

/* ---------- contact / footer ------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-cell { background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 7px; }
.contact-cell .field-label { margin: 0; }
.contact-cell a { font-family: var(--f-mono); font-size: 15.5px; word-break: break-word; text-decoration: none; }
.contact-cell a:hover { text-decoration: underline; }
.contact-cell p { margin: 0; font-size: 15.5px; color: var(--muted); }

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-block: 26px 90px;
  color: var(--muted);
  font-size: 15px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
}

/* ---------- responsive ------------------------------------------------ */

@media (max-width: 859px) {
  .mast-links { display: none; }
  .nav-toggle { display: grid; }
  .masthead .wrap { min-height: 58px; gap: 11px; padding-block: 8px; }
  .brand-sub { display: none; }
  .brand-mark { width: 31px; height: 31px; font-size: 13px; }
  .brand-name { font-size: 17.5px; }
  .mast-wa { padding: 9px 13px; font-size: 14.5px; }
  .chips { top: calc(env(safe-area-inset-top, 0px) + 58px); }
  .cat-group { scroll-margin-top: 120px; }
  .section { scroll-margin-top: 62px; }
}

@media (min-width: 860px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 420px) {
  .mast-wa { padding: 9px 11px; font-size: 14px; }
  .brand-name { font-size: 16.5px; }
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding-block: 72px 48px; }
}

@media (min-width: 860px) {
  .about { grid-template-columns: 1.55fr 1fr; gap: 44px; align-items: start; }
  .venue { grid-template-columns: 1fr 1fr; }
  .venue .shot { aspect-ratio: auto; height: 100%; min-height: 280px; }
  .venue-copy { padding: 34px 32px; }
}

@media (min-width: 1040px) {
  .site-foot { padding-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .cart-tab, .drawer-backdrop, .hero, .about, .venue, .cards, .cat-group, .site-foot, .send-stack { display: none !important; }
  .drawer { position: static; transform: none; width: 100%; height: auto; border: 0; box-shadow: none; }
  .drawer-close { display: none; }
}

/* ======================================================================
   HOW IT WORKS — sets the expectation that TFK sends the price back
   ====================================================================== */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 26px;
}
.step { background: var(--surface); padding: 16px 18px; display: flex; gap: 13px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-green);
  font-family: var(--f-mono);
  font-size: 14px;
  display: grid; place-items: center;
  margin-top: 1px;
}
.step-title { font-weight: 700; font-size: 16px; }
.step-text { font-size: 15.5px; color: var(--muted); margin: 2px 0 0; }

/* ---------- category chips ------------------------------------------- */

.chips {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 58px);
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 10px;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-current { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chip-count { font-family: var(--f-mono); font-size: 12.5px; opacity: .7; margin-left: 5px; }

.cat-group { scroll-margin-top: 118px; }

.staff-link { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line); }
.staff-link:hover { color: var(--ink); }

/* ======================================================================
   PRICING DESK — staff only
   ====================================================================== */

body.pricing-mode > main,
body.pricing-mode > .masthead,
body.pricing-mode > .cart-tab,
body.pricing-mode > .drawer-backdrop,
body.pricing-mode > .drawer { display: none !important; }

.desk { display: none; }
body.pricing-mode .desk { display: block; }

.desk-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
}
.desk-bar .wrap { display: flex; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
.desk-bar h2 { font-size: 20px; margin-right: auto; }
.desk-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brass);
  background: var(--brass-wash);
  border-radius: 5px;
  padding: 4px 8px;
}

.desk-body { padding-block: 26px 70px; display: grid; gap: 24px; grid-template-columns: 1fr; }

.desk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.desk-card h3 { font-size: 19px; margin-bottom: 4px; }
.desk-card > p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.meta-cell .field-label { display: block; margin-bottom: 3px; }
.meta-val { font-size: 17px; font-weight: 600; }
.meta-val.mono { font-family: var(--f-mono); font-size: 15.5px; font-weight: 400; }

/* --- the desk is used on a phone, one-handed, by someone who would rather
       be doing anything else. Big type, big boxes, one thing at a time. --- */

.desk-body { font-size: 17px; }
.desk-card h3 { font-size: 21px; margin: 0; }
.desk-card > p { font-size: 16.5px; line-height: 1.55; }

.btn-big { font-size: 18px; padding: 15px 20px; min-height: 56px; }

.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--on-green);
  font-family: var(--f-mono);
  font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}

.client-name { font-family: var(--f-display); font-size: 25px; font-weight: 600; margin-bottom: 14px; }
.client-note { margin: 14px 0 0; font-size: 16px; color: var(--ink-soft); }

/* --- a money box: the naira sign is part of the box, not typed --- */
.money-box {
  display: flex; align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  max-width: 320px;
}
.money-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-wash); }
.money-sign {
  display: flex; align-items: center;
  padding: 0 12px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--muted);
}
.money-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  padding: 12px 14px;
  min-height: 56px;
}
.money-box input:focus-visible { outline: none; }

/* --- one line of the job --- */
.line-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 16px 14px;
  margin-bottom: 14px;
}
.line-name { font-family: var(--f-display); font-size: 20px; font-weight: 600; }
.line-spec { font-family: var(--f-mono); font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.line-qty { font-size: 16px; color: var(--ink-soft); margin-top: 6px; }
.line-field { margin-top: 14px; }
.line-field .field-label { display: block; margin-bottom: 6px; }
.line-saved { display: block; font-size: 13.5px; color: var(--green); margin-top: 6px; min-height: 18px; }
.line-sum {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  color: var(--green-ink);
}
.line-sum.is-empty { color: var(--muted); font-style: italic; }
.line-toggle {
  margin-top: 10px;
  background: none; border: 0; padding: 6px 0;
  font-family: var(--f-body); font-size: 14.5px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.all-set {
  background: var(--green-wash);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--green-ink) !important;
}
.book-link { display: inline-block; margin-top: 4px; font-size: 15.5px; }

/* --- totals --- */
.desk-totals { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.rate-amount { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.total-row { font-size: 17px; }
.total-row.grand { font-size: 26px; }
.desk-words { font-size: 15.5px; color: var(--muted); font-style: italic; margin: 0; }
.warn-line { margin: 0; font-size: 15.5px; color: var(--danger); }
.warn-line:empty { display: none; }

.vat-switch {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  font-size: 16.5px;
}
.switch-box { width: 24px; height: 24px; margin: 0; flex: 0 0 auto; accent-color: var(--green); }
.vat-words { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.vat-pct {
  width: 58px; min-height: 40px;
  text-align: right;
  font-family: var(--f-mono); font-size: 16px;
  padding: 4px 6px;
}

/* --- send --- */
.sub-step { font-size: 16.5px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.55; }
.pdf-done { margin: 10px 0 0; font-size: 15.5px; color: var(--green-ink); font-family: var(--f-mono); }
.pdf-done:empty { display: none; }
.reassure { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }

/* --- the price book --- */
.book-item { font-family: var(--f-display); font-size: 17px; font-weight: 600; margin: 18px 0 2px; }
.book-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.book-row:last-child { border-bottom: 0; }
.book-label { flex: 1 1 180px; min-width: 0; font-size: 17px; }
.book-unit { display: block; font-size: 13.5px; color: var(--muted); }
.book-input { display: flex; align-items: center; gap: 10px; }
.book-input .money-box { max-width: 210px; }
.book-input .money-box input { font-size: 19px; padding: 9px 12px; min-height: 48px; }
.book-saved { font-size: 13px; color: var(--green); min-width: 38px; }

.desk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.desk-actions .btn { flex: 1 1 190px; }
.desk-actions .btn-block { flex: 1 1 100%; }

.paste-note { font-size: 15px; color: var(--muted); }

@media (max-width: 520px) {
  .desk-bar .wrap { gap: 8px; }
  .desk-bar h2 { font-size: 18px; }
  .money-box { max-width: none; }
  .book-row { align-items: flex-start; }
  .book-input, .book-input .money-box { width: 100%; max-width: none; }
}

@media (min-width: 900px) {
  /* One readable column even on a laptop — nothing hides off to the side. */
  .desk-body { max-width: 720px; margin-inline: auto; }
}

.money-clear {
  flex: 0 0 auto;
  width: 48px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.money-clear:hover { color: var(--ink); background: var(--line-soft); }
.money-clear[hidden] { display: none; }

/* --- step 4 on a phone --- */
.how-to { margin: 14px 0 0; padding-left: 22px; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.how-to li + li { margin-top: 2px; }
.or-rule {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 14px;
  color: var(--muted); font-size: 14.5px;
}
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.send-extras { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; }
.link-btn {
  background: none; border: 0; padding: 8px 0;
  font-family: var(--f-body); font-size: 15.5px;
  color: var(--green-ink);
  text-decoration: underline;
  cursor: pointer;
}

.line-sum .sum-working { display: block; color: var(--ink-soft); font-size: 15px; }
.line-sum .sum-answer { display: block; font-size: 21px; font-weight: 600; color: var(--green-ink); margin-top: 2px; }
.vat-words .vat-pct { margin-left: 6px; }
@media (max-width: 520px) {
  .desk-tag { display: none; }
  .desk-bar .btn { padding: 8px 11px; font-size: 14.5px; }
}
.meta-val { overflow-wrap: anywhere; }
.meta-cell { min-width: 0; }
.desk-card > h3 + p { margin-top: 8px; }
.desk-card > h3 + .book-item { margin-top: 12px; }

/* --- special price for one job --- */
.special-note:empty { display: none; }
.special-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--brass-wash);
  font-size: 15.5px;
  color: var(--ink-soft);
}
.special-note p { margin: 0; }
.special-actions { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 4px; }

/* --- discount --- */
.disc-block { display: flex; flex-direction: column; gap: 0; }
.disc-panel {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 9px 9px;
  padding: 14px;
  margin-top: -6px;
  padding-top: 18px;
}
.disc-panel[hidden] { display: none; }
.disc-block:has(.disc-panel:not([hidden])) .vat-switch { border-radius: 9px 9px 0 0; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg-btn {
  flex: 1 1 0;
  min-height: 48px;
  border: 0;
  background: var(--surface);
  font-family: var(--f-body);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn[aria-pressed="true"] { background: var(--green); color: var(--on-green); }
.disc-field { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 16.5px; }
.disc-field[hidden] { display: none; }
.disc-field .vat-pct { width: 90px; min-height: 52px; font-size: 20px; }
.disc-field .money-box { flex: 1 1 auto; }
.disc-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* ======================================================================
   DESK PAGE (/desk) — inbox
   ====================================================================== */
body.desk-page { background: var(--surface-2); }
body.desk-page .desk-card { background: var(--surface); }
.desk-bar .btn.is-here { background: var(--green); color: var(--on-green); border-color: var(--green); }
.desk-sync {
  margin: 0; padding: 10px 16px;
  background: var(--brass-wash); color: var(--ink-soft);
  font-size: 15px; text-align: center;
}
.desk-sync[hidden] { display: none; }
.loading { color: var(--muted); font-style: italic; margin: 0 !important; }
.err { color: var(--danger); }

.inbox-list h3 { margin-bottom: 8px !important; }
.inbox-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 4px;
  border-top: 1px solid var(--line-soft);
  color: inherit; text-decoration: none;
  min-height: 72px;
}
.inbox-row:active { background: var(--surface-2); }
.inbox-main { flex: 1 1 auto; min-width: 0; }
.inbox-name { font-family: var(--f-display); font-size: 20px; font-weight: 600; }
.inbox-detail { font-size: 16px; color: var(--ink-soft); margin-top: 2px; }
.inbox-when { font-size: 13.5px; color: var(--muted); margin-top: 3px; font-family: var(--f-mono); overflow-wrap: anywhere; }
.inbox-pill {
  flex: 0 0 auto;
  font-size: 14px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
  background: var(--green); color: var(--on-green);
}
.inbox-row.is-sent .inbox-pill { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.inbox-row.is-sent .inbox-name { color: var(--ink-soft); }

.req-foot { display: flex; flex-direction: column; gap: 12px; }
.req-status { margin: 0 !important; font-size: 15.5px; color: var(--ink-soft) !important; }
.link-btn.danger { color: var(--danger); align-self: flex-start; }
.install-card { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-wash); }
/* Installed as an app: no browser bar above, so give the top a little air on notched phones. */
@media (display-mode: standalone) {
  .desk-bar { padding-top: env(safe-area-inset-top, 0px); }
}
.btn.is-busy { opacity: .75; pointer-events: none; }
.alerts-on { padding-block: 14px; }
.alerts-status { margin: 0 !important; color: var(--green-ink) !important; font-weight: 700; font-size: 16.5px !important; }
.alert-note { margin: 10px 0 0 !important; font-size: 15px !important; color: var(--ink-soft) !important; }

/* ======================================================================
   DESK — making and editing invoices
   ====================================================================== */
.new-invoice { margin-bottom: 18px; }
.inbox-pill.is-draft { background: var(--brass-wash); color: var(--brass); }

.inv-number { margin: 4px 0 14px; }
.inv-number .field-label { display: block; margin-bottom: 2px; }
.save-state { margin: 4px 0 0 !important; font-size: 13.5px !important; color: var(--green-ink) !important; min-height: 18px; }
.save-state.is-bad { color: var(--danger) !important; }

.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; margin-bottom: 14px; }
.inv-field { min-width: 0; }
.inv-field.wide { grid-column: 1 / -1; }
.inv-field .field-label { display: block; margin-bottom: 6px; }
.inv-field input, .inv-field textarea { width: 100%; font-size: 18px; padding: 12px 14px; min-height: 52px; }
.inv-field textarea { min-height: 80px; resize: vertical; }
@media (max-width: 420px) { .inv-grid { grid-template-columns: 1fr; } }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper-btn {
  width: 52px; min-height: 52px; border: 0; background: var(--surface-2);
  font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer;
}
.stepper-btn:active { background: var(--green-wash); }
.stepper-val {
  width: 78px; border: 0 !important; border-radius: 0 !important; text-align: center;
  font-family: var(--f-mono); font-size: 21px; min-height: 52px; padding: 0 4px;
  border-left: 1px solid var(--line) !important; border-right: 1px solid var(--line) !important;
}

.line-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.line-top .link-btn { flex: 0 0 auto; padding-top: 2px; font-size: 14.5px; }
.line-howmany { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.line-howmany .line-qty { margin: 0; }
.add-item { margin-top: 4px; }

.extra-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.extra-row > input { width: 100%; font-size: 17px; padding: 11px 13px; min-height: 50px; }
.extra-bottom { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.extra-bottom .money-box { flex: 1 1 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  border: 1px dashed var(--green); background: var(--surface); color: var(--green-ink);
  border-radius: 999px; padding: 10px 14px; min-height: 44px;
  font-family: var(--f-body); font-size: 15.5px; font-weight: 600; cursor: pointer;
}

/* the item picker: a full-screen sheet */
body.picker-open { overflow: hidden; }
.picker {
  position: fixed; inset: 0; z-index: 100;
  background: var(--surface); display: flex; flex-direction: column;
}
.picker-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--line);
}
.picker-head h3 { margin: 0; font-size: 21px; }
.picker-close {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 28px; line-height: 1; cursor: pointer;
}
.picker-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 16px 40px; max-width: 720px; width: 100%; margin: 0 auto; }
.picker-group {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 6px;
}
.picker-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 6px; min-height: 68px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: none; text-align: left; cursor: pointer; font-family: var(--f-body);
}
.picker-item:active { background: var(--surface-2); }
.picker-thumb { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.picker-thumb.is-empty {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-wash); color: var(--green-ink); font: 700 20px var(--f-display);
}
.picker-name { flex: 1 1 auto; font-size: 18px; font-weight: 600; color: var(--ink); }
.picker-go { font-size: 28px; color: var(--muted); }
.picker-q { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.size-list { display: grid; gap: 8px; }
.size-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 12px 14px; min-height: 56px; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-family: var(--f-body); cursor: pointer;
}
.size-btn[aria-pressed="true"] { border-color: var(--green); background: var(--green-wash); box-shadow: 0 0 0 2px var(--green); }
.size-main { font-size: 17.5px; font-weight: 700; color: var(--ink); }
.size-sub { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.picker-add { position: sticky; bottom: 0; background: var(--surface); padding: 18px 0 8px; margin-top: 18px; }
.picker-add .btn:disabled { background: var(--line); color: var(--muted); opacity: 1; }

/* writing his own item */
.picker-search {
  width: 100%; font-size: 18px; padding: 13px 14px; min-height: 54px; margin: 12px 0 4px;
  border: 1px solid var(--green); border-radius: 10px;
}
.picker-own { background: var(--green-wash); border-radius: 10px; border-bottom: 0; margin-top: 8px; }
.picker-thumb.is-own {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--on-green); font-size: 22px;
}
.picker-name .picker-hint { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.line-title { min-width: 0; flex: 1 1 auto; }
.line-name-input {
  width: 100%; font-family: var(--f-display); font-size: 19px; font-weight: 600;
  padding: 8px 10px; min-height: 48px; border: 1px dashed var(--line); border-radius: 8px;
}

/* inbox, tidier (30 Sep) */
.btn.new-invoice { display: flex; width: 100%; margin: 0; }
.list-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.list-head h3 { margin: 0 !important; }
.count-badge {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--green); color: var(--on-green);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.inbox-when { display: block; }
.inbox-ref { display: block; }
.empty-note { color: var(--muted); font-size: 16px; margin: 6px 0 4px; }
.refresh-link { margin-top: 10px; font-size: 15.5px; }

/* "TFK Desk" top left = home + refresh */
.desk-home {
  display: inline-flex; align-items: center; gap: 8px; margin-right: auto;
  color: var(--ink); text-decoration: none; min-height: 44px; padding-right: 6px;
}
.desk-home h2 { margin: 0 !important; }
.desk-home-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-wash); color: var(--green-ink); font-size: 17px; font-weight: 700;
}
.desk-home-icon.is-spinning { animation: tfk-spin .6s ease-out 1; }
@keyframes tfk-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .desk-home-icon.is-spinning { animation: none; } }
.inbox-ref { margin-top: 1px; }

/* needed fields, red when missing (30 Sep) */
.req-star { color: var(--danger); font-weight: 700; }
.req-note { margin: -6px 0 12px !important; font-size: 14px !important; color: var(--muted) !important; }
.field-err { margin: 6px 0 0; font-size: 14.5px; font-weight: 600; color: var(--danger); }
.field-err:empty { display: none; }
.inv-field.is-missing input, .inv-field.is-missing textarea {
  border-color: var(--danger) !important; box-shadow: 0 0 0 3px #FBEAE9; background: #FFF8F7;
}
.inv-field.is-missing .field-label { color: var(--danger); }
.line-card.is-missing, .extra-row.is-missing, #itemsCard.is-missing {
  border-color: var(--danger) !important; box-shadow: 0 0 0 3px #FBEAE9;
}
.line-card.is-missing .money-box { border-color: var(--danger); }
.send-problems {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 10px;
  background: #FBEAE9; color: var(--danger); font-weight: 600; font-size: 15.5px;
}
.send-problems[hidden] { display: none; }

/* customer suggestions */
.inv-field { position: relative; }
.suggest {
  margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
}
.suggest[hidden] { display: none; }
.suggest-head {
  margin: 0; padding: 8px 14px; background: var(--surface-2);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.suggest-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  padding: 12px 14px; min-height: 60px; border: 0; border-top: 1px solid var(--line-soft);
  background: none; text-align: left; font-family: var(--f-body); cursor: pointer;
}
.suggest-item:active { background: var(--green-wash); }
.suggest-name { font-size: 17.5px; font-weight: 700; color: var(--ink); }
.suggest-sub { font-size: 14px; color: var(--muted); }
.inv-grid .contact-btn { grid-column: 1 / -1; margin-top: -4px; }

/* sizes he types himself; square metres (10 Oct) */
.size-boxes { margin-top: 6px; }
.size-row { display: flex; align-items: center; gap: 8px; }
.size-in {
  width: 100px; min-height: 52px; font-family: var(--f-mono); font-size: 20px; text-align: center;
  padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px;
}
.size-in:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-wash); }
.size-x { font-size: 22px; color: var(--muted); }
.size-unit { font-size: 17px; color: var(--ink-soft); }
.size-ft { margin: 6px 0 0; font-family: var(--f-mono); font-size: 13.5px; color: var(--muted); min-height: 18px; }
.qty-label { display: block; margin-top: 14px; }
.line-howmany { margin-top: 6px !important; }
.area-help { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.area-help-label { display: block; font-size: 14.5px; color: var(--ink-soft); }
.area-help .size-in { width: 84px; min-height: 46px; font-size: 18px; }

/* simpler navigation (10 Oct) */
.desk-home h2 { font-size: 20px; }
body.has-sticky .desk-body { padding-bottom: 120px; }
.sticky-send {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px -12px rgba(17, 28, 22, .35);
}
.sticky-total { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.sticky-label { font-size: 13px; color: var(--muted); font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.sticky-amount { font-family: var(--f-display); font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-btn { flex: 0 0 auto; min-height: 54px; padding: 12px 22px; font-size: 18px; }
@media (min-width: 900px) { .sticky-send { padding-left: calc(50% - 360px); padding-right: calc(50% - 360px); } }

.send-hint { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-soft); }
details.more-ways { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
details.more-ways > summary, details.line-more > summary, details.area-help > summary, details.book-group > summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--green-ink); min-height: 40px;
  display: flex; align-items: center; gap: 8px;
}
details > summary::-webkit-details-marker { display: none; }
details.more-ways > summary::before, details.line-more > summary::before,
details.area-help > summary::before, details.book-group > summary::before {
  content: "\203A"; display: inline-block; width: 14px; font-size: 20px; transition: transform .15s ease;
}
details[open].more-ways > summary::before, details[open].line-more > summary::before,
details[open].area-help > summary::before, details[open].book-group > summary::before { transform: rotate(90deg); }
.more-ways-body { display: grid; gap: 10px; margin-top: 8px; }
details.line-more { margin-top: 8px; }
details.line-more > summary { font-size: 14.5px; color: var(--muted); font-weight: 500; }
details.area-help { background: none; padding: 0; margin-top: 6px; }
details.area-help > summary { font-size: 14.5px; font-weight: 500; }
details[open].area-help { background: var(--surface-2); padding: 6px 12px 10px; border-radius: 10px; }

details.book-group { border-bottom: 1px solid var(--line-soft); }
details.book-group > summary { min-height: 56px; justify-content: flex-start; color: var(--ink); }
.book-group-name { flex: 1 1 auto; font-size: 17.5px; }
.book-group-count { font-size: 13.5px; color: var(--muted); font-weight: 500; }
details[open].book-group { padding-bottom: 8px; }
.signout { text-align: center; margin: 4px 0 0; }

/* desk: bank details he types himself */
.bank-row { margin-top: 12px; }
.bank-row .field-label { display: block; margin-bottom: 4px; }
.bank-in { width: 100%; font-size: 18px; min-height: 50px; }
.bank-in.is-missing-in { border-color: #b42318; }
.bank-note { margin: 10px 0 0; font-size: 15px; color: var(--green); }
.bank-note:empty { display: none; }
.bank-note.is-bad { color: #b42318; }
.bank-line { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.bank-line b { color: var(--ink); font-weight: 600; }
.bank-change { font-weight: 700; color: var(--green); white-space: nowrap; }
