/* ===========================================================================
   Forging Solutions — forged-fired industrial design system.
   Dark charcoal surfaces, copper actions, steel hairlines. Flat (no gradients
   or shadows); depth comes from layered dark panels + steel borders.
   =========================================================================== */

:root {
  /* Surfaces */
  --bg: #14110E;
  --panel: #1B1713;
  --panel-2: #211C18;
  --border: #332D27;
  --border-strong: #4A433B;

  /* Accents — copper is for ACTIONS/EMPHASIS only, never decoration */
  --copper: #C4632C;
  --copper-bright: #D98A45;

  /* Metal + text */
  --steel: #BFB8AC;
  --text: #ECE6DD;
  --muted: #A69E92;
  --price: #F2ECE3;

  /* Type */
  --font-wordmark: "Cinzel", Georgia, serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --maxw: 68rem;
  --gap: 1rem;
  --radius: 4px;
  --header-h: 4rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--copper-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

/* Visible focus rings everywhere */
:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Wordmark (Cinzel ONLY) --- */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--copper);
  color: #14110E;
  border-color: var(--copper);
}
.btn-primary:hover { background: var(--copper-bright); border-color: var(--copper-bright); color: #14110E; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--steel); color: var(--text); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo-slot { width: 2rem; height: 2rem; flex: none; }
.logo-slot svg { width: 100%; height: 100%; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  color: var(--muted);
}
.main-nav a:hover { color: var(--text); }

.header-phone {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--steel);
  white-space: nowrap;
}
.header-cta { flex: none; }

/* Hamburger toggle — hidden on desktop, shown below the breakpoint */
.nav-toggle { display: none; }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; left: 0; top: -6px; }
.nav-toggle-bars::after { position: absolute; left: 0; top: 6px; }

/* Mobile: collapse nav + actions behind an accessible hamburger */
@media (max-width: 52rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: auto;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  /* Shrink the wordmark so brand + toggle always fit a phone bar */
  .wordmark { font-size: 0.95rem; letter-spacing: 0.06em; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    cursor: pointer;
  }

  /* Closed: only brand + toggle show */
  .main-nav,
  .header-phone,
  .header-cta { display: none; }

  /* Open: stack links, tap-to-call, and the CTA full-width below the bar */
  .site-header.nav-open .main-nav {
    display: block;
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 0; }
  .site-header.nav-open .main-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    color: var(--text);
    border-top: 1px solid var(--border);
  }
  .site-header.nav-open .header-phone {
    display: flex;
    align-items: center;
    order: 4;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.35rem 0.25rem;
    font-size: 1.1rem;
    border-top: 1px solid var(--border);
  }
  .site-header.nav-open .header-cta {
    display: flex;
    order: 5;
    width: 100%;
    margin-top: 0.25rem;
  }

  .site-header.nav-open .nav-toggle-bars { background: transparent; }
  .site-header.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .site-header.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
}

/* --- Sections --- */
section { padding: 3.5rem 0; }
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }

/* --- Hero --- */
.hero { padding-top: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-headline {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--copper);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 0 0 1rem;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 22rem; height: auto; }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  /* Text above the bin SVG on phones (DOM order: copy then art) */
  .hero-art { order: 0; }
  .hero-art svg { max-width: 16rem; }
}

/* --- Rate plate (flyer-style) --- */
.rates { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rate-plate {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 42rem;
  background: var(--panel-2);
}
.rate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.rate-row:first-child { border-top: none; }
.rate-head {
  background: var(--copper);
  color: #14110E;
  border-top: none;
}
.rate-head span {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}
.rate-duration {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
  color: var(--text);
}
.rate-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--price);
  text-align: right;
}
.rate-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
  margin-top: 1rem;
}

/* Phones: tighten the rate plate so the duration/price rows stay readable
   with no side-scroll */
@media (max-width: 30rem) {
  .rate-row { padding: 0.7rem 0.9rem; gap: 0.75rem; }
  .rate-duration { font-size: 1.05rem; }
  .rate-price { font-size: 1.3rem; }
  .rate-head span { font-size: 0.85rem; }
}

/* --- How it works --- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* --- Why-us / service band --- */
.band { background: var(--panel); border-top: 1px solid var(--border); }
.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem;
}
.band h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.band p { color: var(--muted); margin: 0; }

/* --- Footer --- */
.site-footer {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.footer-inner a { color: var(--steel); }

/* --- Utility for interim/stub pages --- */
.stub { padding: 3.5rem 0; }
.stub .container > p { color: var(--muted); }

/* ===========================================================================
   Forms + booking wizard
   =========================================================================== */
.container-narrow { max-width: 40rem; }
.book-section { padding: 2.5rem 0 4rem; }
.wizard-head { margin-bottom: 1.5rem; }
.wizard-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }

label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  color: var(--steel);
}
label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0;
}
.optional { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  min-height: 3rem;
}
input::placeholder { color: var(--muted); }
input[type="date"] { color-scheme: dark; }
input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem; margin-top: 0.15rem;
  accent-color: var(--copper); flex: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Progress */
.progress { margin-bottom: 1.25rem; }
.progress-meta {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.progress-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; width: 12.5%; background: var(--copper); transition: width 0.2s ease; }

/* Running price summary */
.price-summary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.ps-label {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.9rem; color: var(--muted);
}
.ps-total { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--price); }

/* Steps */
.step h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.step-nav { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.step-nav .btn { flex: 1 1 auto; min-height: 3rem; }
.step-note { color: var(--muted); }
.step-error {
  margin-top: 1rem; padding: 0.6rem 0.8rem;
  color: #F2B8A0; background: rgba(196, 99, 44, 0.12);
  border: 1px solid var(--copper); border-radius: var(--radius);
  font-weight: 500;
}

/* Tier cards */
.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; }
.tier-card {
  display: flex; flex-direction: column; gap: 0.35rem; text-align: left;
  padding: 1rem; min-height: 5.5rem;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer;
}
.tier-card[aria-checked="true"] { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper); }
.tc-label { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.05rem; }
.tc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--price); }

/* Ton selector */
.ton-selector { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ton-option {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  min-width: 5rem; min-height: 4.5rem; padding: 0.75rem 1rem;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer;
}
.ton-option[aria-checked="true"] { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper); }
.to-n { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.to-cost { font-size: 0.85rem; color: var(--muted); }

/* Order summary */
.order-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--panel); margin-bottom: 1.5rem; }
.order-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0; }
.order-summary dt { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.9rem; color: var(--muted); }
.order-summary dd { margin: 0; text-align: right; color: var(--text); }
.order-summary .total-row { color: var(--price); font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: 0.25rem; }

/* Contract text */
.contract-text {
  white-space: pre-wrap;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  max-height: 15rem; overflow-y: auto;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--muted);
  margin-bottom: 1rem;
}

/* Canceled / notice banner */
.notice {
  padding: 0.8rem 1rem; margin-bottom: 1.5rem;
  background: var(--panel); border: 1px solid var(--copper); border-left-width: 3px;
  border-radius: var(--radius); color: var(--text);
}

@media (max-width: 40rem) {
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn { width: 100%; }
}

/* ===========================================================================
   Content pages (rates / service area / faq / confirmation / my-booking)
   =========================================================================== */
.page-head { padding: 2.5rem 0 1rem; border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.lead { font-size: 1.15rem; color: var(--text); max-width: 42rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.info-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.plain-list li { color: var(--muted); }
.plain-list li strong { color: var(--text); }
.plain-list.prohibited li { padding-left: 1.25rem; position: relative; }
.plain-list.prohibited li::before { content: "\00d7"; position: absolute; left: 0; color: var(--copper); font-weight: 700; }

.band-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.band-cta .section-title { margin-bottom: 0.25rem; }

/* FAQ accordion */
.faq-list { display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 1.05rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--copper); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--copper-bright); outline-offset: -2px; }
.faq-body { padding: 0 1.25rem 1.25rem; }
.faq-body p, .faq-body li { color: var(--muted); }
.faq-body p:last-child { margin-bottom: 0; }

.ref { font-size: 0.85rem; word-break: break-all; }

/* ===========================================================================
   Admin — utilitarian dark dashboard (plainer than the storefront)
   =========================================================================== */
.admin { padding: 1.5rem 0 4rem; }
.admin h1 { font-size: 1.6rem; margin-bottom: 0.25rem; }
.admin-h { font-size: 1.1rem; margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); }
.admin-auth { max-width: 26rem; }
.admin button {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 0.9rem;
  padding: 0.5rem 0.9rem; min-height: 2.5rem;
  background: var(--copper); color: #14110E; border: 1px solid var(--copper);
  border-radius: var(--radius); cursor: pointer;
}
.admin button[data-prev], .admin #detail-close, .admin #sign-out {
  background: transparent; color: var(--steel); border-color: var(--border-strong);
}
.admin button:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }

.inventory-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.5rem; }
.inventory-list li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 0.85rem; color: var(--muted); }
.inventory-list li strong { color: var(--text); }
.inv-out { color: var(--text); font-weight: 600; }
.inv-edit { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.inv-label {
  margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 0.75rem; color: var(--muted);
}
.admin .inv-units { width: 5rem; min-height: 2.5rem; padding: 0.35rem 0.5rem; }
.admin .inv-save { padding: 0.45rem 0.8rem; min-height: 2.5rem; }
.inv-msg { display: block; margin-top: 0.4rem; color: #F2B8A0; font-size: 0.85rem; }

.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; align-items: start; }
.board-col { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; }
.board-col h3 { font-size: 0.95rem; margin-bottom: 0.6rem; color: var(--steel); }
.board-col .count { color: var(--muted); font-weight: 400; }
.admin .booking-card {
  display: flex; flex-direction: column; gap: 0.15rem; width: 100%; text-align: left;
  margin-bottom: 0.5rem; padding: 0.6rem 0.7rem;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-body); font-weight: 400; text-transform: none; letter-spacing: 0; min-height: auto;
}
.admin .booking-card:hover { border-color: var(--steel); }
.booking-card .bc-name { font-weight: 600; }
.booking-card .bc-size, .booking-card .bc-dates { font-size: 0.85rem; color: var(--muted); }
.booking-card .bc-price { font-family: var(--font-display); font-weight: 700; color: var(--price); }

.detail-panel {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; margin: 0 auto; max-width: 40rem;
  background: var(--panel-2); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 1.25rem; max-height: 82vh; overflow-y: auto; z-index: 60;
}
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.detail-head h3 { font-size: 1.15rem; margin: 0; }
.detail-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0 0 1rem; }
.detail-panel dt { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.85rem; color: var(--muted); }
.detail-panel dd { margin: 0; color: var(--text); word-break: break-word; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pickup-inline { display: inline-flex; gap: 0.25rem; align-items: center; }
.pickup-inline input[type="date"] { width: auto; min-height: 2.5rem; }

/* Admin on a phone: Adam works this one-handed in the field. Columns already
   stack (auto-fit min 15rem); here we grow tap targets to >=44px and make the
   detail-panel actions full-width and easy to hit. */
@media (max-width: 40rem) {
  .admin button { min-height: 2.75rem; }
  .admin .inv-units,
  .admin .inv-save,
  .pickup-inline input[type="date"] { min-height: 2.75rem; }
  .inv-edit { gap: 0.5rem 0.6rem; }
  .admin .inv-units { flex: 1 1 6rem; width: auto; }

  .detail-actions { gap: 0.6rem; }
  .detail-actions > button,
  .detail-actions .pickup-inline { flex: 1 1 100%; width: 100%; }
  .detail-actions .pickup-inline { display: flex; }
  .detail-actions .pickup-inline input[type="date"] { flex: 1 1 auto; width: auto; }
}

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