/* ============================================================
   ExtraPlants.com — Stylesheet
   Editorial design system: forest greens + cream paper.
   Fully responsive: desktop ≥1024, tablet 640-1023, mobile <640.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --green-900: #0e3d1e;
  --green-800: #134f28;
  --green-700: #1a6635;
  --green-600: #2a8546;
  --green-500: #4ea75e;
  --green-400: #76c47d;
  --green-300: #a8dba5;
  --green-100: #e9f4e8;
  --green-50:  #f4faf3;
  --cream:     #fbf8f1;
  --paper:     #ffffff;
  --ink:       #16221b;
  --ink-soft:  #4b5c52;
  --ink-mute:  #8a9690;
  --line:      #e3e7df;
  --line-soft: #eef1ea;
  --gold:      #c89c3b;
  --danger:    #b3341c;
  --warn:      #b88512;
  --shadow-sm: 0 1px 2px rgba(14,61,30,.06), 0 1px 1px rgba(14,61,30,.04);
  --shadow-md: 0 4px 14px rgba(14,61,30,.08), 0 2px 4px rgba(14,61,30,.04);
  --shadow-lg: 0 18px 40px rgba(14,61,30,.14), 0 4px 12px rgba(14,61,30,.06);
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', -apple-system, system-ui, sans-serif;
  --footer-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 8% 10%, rgba(78,167,94,.07), transparent 40%),
    radial-gradient(circle at 92% 90%, rgba(14,61,30,.05), transparent 40%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-sticky-footer { padding-bottom: var(--footer-h); }
img { max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; color: var(--green-900); margin: 0; }
code { background: var(--green-100); color: var(--green-900); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ====== HEADER ====== */
.site-header {
  background:
    radial-gradient(ellipse 1200px 320px at 88% 0%, rgba(78, 167, 94, 0.18), transparent 65%),
    radial-gradient(ellipse 800px 200px at 10% 100%, rgba(78, 167, 94, 0.08), transparent 70%),
    linear-gradient(135deg, #082e15 0%, var(--green-900) 45%, #0a3219 100%);
  color: var(--cream);
  position: sticky; top: 0; z-index: 50;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(168, 219, 165, 0.06);
}
/* Thin gradient accent line along the bottom edge */
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(78, 167, 94, 0.35) 20%,
    rgba(168, 219, 165, 0.55) 50%,
    rgba(78, 167, 94, 0.35) 80%,
    transparent 100%
  );
  pointer-events: none;
}
.site-header .bar {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 13px 28px;
  flex-wrap: wrap;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 13px; min-width: 0;
  color: inherit; text-decoration: none;
  transition: transform .2s ease;
}
.brand:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.brand-logo {
  height: 56px; width: auto; display: block;
  filter:
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.32))
    drop-shadow(0 0 20px rgba(168, 219, 165, 0.32));
  transition: filter .3s ease;
}
.brand:hover .brand-logo {
  filter:
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.45))
    drop-shadow(0 0 26px rgba(168, 219, 165, 0.45));
}
.brand .name {
  font-family: var(--display); font-size: 22px; font-weight: 600;
  color: var(--cream); letter-spacing: -.01em; line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.brand .tag {
  font-size: 10.5px; color: var(--green-300); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.85;
}
.spacer { flex: 1; }

/* ---- Header phone link (plain white text + animated icon) ---- */
.hdr-phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: #ffffff; text-decoration: none;
  font-family: var(--body);
  font-weight: 600; font-size: 14px;
  letter-spacing: .005em;
  transition: color .15s ease, transform .15s ease;
  white-space: nowrap;
  padding: 6px 4px;          /* keeps tap target comfortable without a pill bg */
}
.hdr-phone:hover {
  color: var(--green-300);
  text-decoration: none;
  transform: translateY(-1px);
}
.hdr-phone:hover .phone-icon {
  animation-duration: 1s;     /* rings faster on hover */
}
.hdr-phone .hdr-phone-text {
  font-weight: 500;
  opacity: 0.9;
}
.hdr-phone .hdr-phone-num {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hdr-phone .hdr-phone-icon {
  display: inline-flex;
  align-items: center;
  color: #ffffff;             /* phone SVG uses currentColor — inherits white */
  filter: drop-shadow(0 0 8px rgba(168, 219, 165, 0.55));
}
.hdr-phone .hdr-phone-icon .phone-icon {
  animation: phone-ring 3.5s ease-in-out infinite;
  transform-origin: 50% 75%;  /* pivot near the bottom of the handset */
  display: block;
}

/* Phone ringing keyframes — 4 quick shakes, then a long pause */
@keyframes phone-ring {
  0%, 70%, 100% { transform: rotate(0); }
  5%, 15%, 25%, 35% { transform: rotate(-14deg); }
  10%, 20%, 30%, 40% { transform: rotate(14deg); }
  45% { transform: rotate(0); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hdr-phone .hdr-phone-icon .phone-icon { animation: none; }
}

/* ---- Partner / Admin Login (secondary action) ---- */
.nav-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 9px 16px; border-radius: 999px;
  font-family: var(--body); font-size: 13px; font-weight: 600;
  cursor: pointer; letter-spacing: .015em;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(168, 219, 165, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  text-decoration: none; color: var(--cream);
}
.nav-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ---- User pill (when logged in) ---- */
.user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--green-300);
  padding: 7px 14px;
  background: rgba(78, 167, 94, 0.10);
  border: 1px solid rgba(78, 167, 94, 0.20);
  border-radius: 999px;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 500;
}
.user-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-400); flex-shrink: 0;
  box-shadow: 0 0 6px rgba(78, 167, 94, 0.7);
}

/* ====== HERO ====== */
.hero { max-width: 1400px; margin: 0 auto; padding: 22px 24px 14px; }
.hero-mark {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px; flex-wrap: nowrap;
}
.hero-logo {
  height: 38px; width: auto; display: block; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(14,61,30,.16));
}
.hero-wordmark {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 38px); line-height: 1;
  letter-spacing: -.02em; margin: 0;
  display: inline-flex; align-items: baseline;
}
.hero-wordmark .wm-extra { color: var(--green-900); font-style: italic; font-weight: 600; }
.hero-wordmark .wm-plants { color: var(--green-600); font-weight: 700; }
.hero-wordmark .wm-com {
  color: var(--green-700); font-size: 0.5em; font-weight: 500;
  margin-left: .08em; align-self: end; padding-bottom: .22em;
}
.hero-sub {
  font-family: var(--display); font-weight: 500; font-style: italic;
  color: var(--green-900); font-size: clamp(17px, 2vw, 22px);
  line-height: 1.25; margin: 6px 0 8px; max-width: 800px;
}
.hero-sub em { color: var(--green-600); font-weight: 600; font-style: italic; }
.hero-desc { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 760px; line-height: 1.5; }
.hero .accent-bar { display: none; }

/* ====== INVENTORY ====== */
.inventory { max-width: 1400px; margin: 0 auto; padding: 24px 24px 60px; }

.controls {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; align-items: end;
}
/* Layout: Search field spans its own row (full width),
   then 3 filter dropdowns in a row, then Reset button on its own row.
   Gives each dropdown comfortable room to show full option labels at every viewport. */
.controls > .field:first-child { grid-column: 1 / -1; }
.controls > button:last-child {
  grid-column: 1 / -1; justify-self: start; max-width: 220px;
}

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 11px; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 15px; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 12px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  min-height: 44px;  /* touch target */
}
.field textarea { min-height: auto; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(78,167,94,.18);
  background: var(--paper);
}
.field input.uppercase-input { text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a6635' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field input[type="file"] { background: var(--paper); padding: 9px 12px; cursor: pointer; }
.field input[type="date"] { font-family: var(--body); }
.field .with-icon { position: relative; }
.field .with-icon input { padding-left: 38px; }
.field .with-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-mute); pointer-events: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--green-700);
  background: var(--green-700); color: var(--cream);
  cursor: pointer; transition: all .15s; white-space: nowrap;
  text-decoration: none; min-height: 44px;
}
.btn:hover { background: var(--green-800); border-color: var(--green-800); text-decoration: none; color: var(--cream); }
.btn.ghost { background: transparent; color: var(--green-800); }
.btn.ghost:hover { background: var(--green-50); color: var(--green-800); }
.btn.subtle { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.btn.subtle:hover { border-color: var(--green-500); color: var(--green-800); background: var(--cream); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #8f2917; border-color: #8f2917; }
.btn.sm { padding: 7px 12px; font-size: 12px; border-radius: 6px; min-height: 34px; }

.summary-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; color: var(--ink-soft); font-size: 13px;
}
.summary-row .stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
  font-variant-numeric: tabular-nums;
}
.summary-row .stat b { color: var(--green-800); font-weight: 700; font-family: var(--display); }

/* ====== TABLE ====== */
.table-wrap {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-scroll {
  overflow-x: auto;            /* allow horizontal scroll on narrow viewports — no column gets hidden */
  overflow-y: auto;
  max-height: 780px;           /* ~15 rows + sticky header */
  -webkit-overflow-scrolling: touch;
  border: 3px solid var(--green-700);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(14, 61, 30, 0.08);
}
/* On shorter viewports cap to viewport height to keep things compact */
@media (max-height: 900px) {
  .table-scroll { max-height: 75vh; }
}
@media (max-height: 700px) {
  .table-scroll { max-height: 65vh; }
}
table.inv {
  width: 100%; border-collapse: collapse; font-size: 13px;
  table-layout: auto;
}
table.inv thead th {
  background: #0a0a0a; color: #ffffff;
  font-family: var(--body); font-weight: 700; text-align: left;
  padding: 10px 8px; border-bottom: 1px solid #000;
  white-space: nowrap; font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em;
  cursor: pointer; user-select: none; position: sticky; top: 0;
}
table.inv thead th:hover { background: #1f1f1f; }
table.inv thead th .sort-icon { display: inline-block; margin-left: 4px; color: rgba(255,255,255,.45); font-size: 10px; }
table.inv thead th.sorted-asc .sort-icon::after { content: '▲'; color: var(--green-400); }
table.inv thead th.sorted-desc .sort-icon::after { content: '▼'; color: var(--green-400); }
table.inv tbody tr { border-bottom: 1px solid var(--line-soft); transition: background .12s; }
table.inv tbody tr:hover { background: #fde8e6; }
table.inv tbody td { padding: 10px 8px; vertical-align: top; }
table.inv tbody td .variety {
  font-weight: 700; color: var(--green-900); font-size: 14px;
  letter-spacing: .01em; white-space: normal; word-wrap: break-word;
}
table.inv tbody td .class { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
table.inv tbody td.num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
table.inv tbody td .notes {
  color: var(--ink-soft); font-size: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
table.inv tbody td .pull-date { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; font-size: 12px; }
table.inv tbody td .pull-date.soon { color: var(--warn); }
table.inv tbody td .pull-date.urgent { color: var(--danger); }

/* All columns stay visible — table scrolls horizontally when the viewport is narrow.
   Columns: 1=PullDate 2=Variety 3=Class 4=CellSize 5=Trays 6=Plants 7=Status 8=Photos 9=Notes 10=Ask
*/

/* Compact padding + status badge on small phones */
@media (max-width: 520px) {
  table.inv thead th { padding: 8px 5px; font-size: 10px; letter-spacing: .05em; }
  table.inv tbody td { padding: 8px 5px; font-size: 12px; }
  table.inv tbody td .variety { font-size: 13px; }
  table.inv .status-badge { padding: 3px 8px; font-size: 10px; letter-spacing: .04em; }
}

.group-header td {
  background: #1f1f1f; color: #ffffff;
  font-weight: 700; font-family: var(--display); font-size: 14px;
  padding: 10px 14px; border-top: 1px solid #000;
}
.group-header .group-totals {
  float: right; font-family: var(--body); font-size: 12px;
  font-weight: 600; color: var(--green-300); letter-spacing: .03em;
}

.thumb-row { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; }
.thumb {
  width: 44px; height: 44px; object-fit: cover;
  border-radius: 6px; border: 1.5px solid var(--line);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  flex-shrink: 0;
  background: var(--cream);
  box-shadow: 0 1px 3px rgba(14, 61, 30, 0.08);
}
.thumb:hover {
  transform: scale(1.14);
  border-color: var(--green-500);
  box-shadow: 0 4px 10px rgba(14, 61, 30, 0.18);
  z-index: 2;
  position: relative;
}
.no-photo { font-size: 12px; color: var(--ink-mute); font-style: italic; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--ink-mute); }
.empty-state .icon { font-size: 38px; margin-bottom: 8px; opacity: .6; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; color: var(--ink-soft); }

/* ====== FOOTER CTA ====== */
.footer-cta {
  background: linear-gradient(135deg, var(--green-900) 0%, #0a3219 100%);
  color: var(--cream);
  padding: 60px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.footer-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(118,196,125,.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(118,196,125,.08), transparent 50%);
  pointer-events: none;
}
.footer-cta .inner { position: relative; max-width: 760px; margin: 0 auto; }
.footer-cta .accent { color: var(--green-400); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; }
.footer-cta h2 { color: var(--cream); font-size: clamp(26px, 4vw, 42px); line-height: 1.1; margin-bottom: 10px; }
.footer-cta h2 em { font-style: italic; color: var(--green-300); font-weight: 500; }
.footer-cta p { color: var(--green-100); margin-bottom: 26px; font-size: 16px; }
.footer-cta .big-call {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--green-500); color: var(--green-900);
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--display); font-size: clamp(18px, 3vw, 22px); font-weight: 700;
  transition: transform .2s, background .2s; text-decoration: none;
}
.footer-cta .big-call:hover { transform: translateY(-2px); background: var(--green-400); text-decoration: none; color: var(--green-900); }
.footer-cta .small { margin-top: 28px; color: rgba(255,255,255,.4); font-size: 12px; }

/* ====== AUTH/DASHBOARD ====== */
.auth-page { max-width: 460px; margin: 60px auto; padding: 0 20px; }
.auth-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 36px 32px;
}
.auth-card h2 { font-size: 28px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-soft); margin-bottom: 24px; font-size: 14px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn { width: 100%; padding: 12px; font-size: 15px; margin-top: 8px; }
.auth-card .hint {
  margin-top: 18px; padding: 12px 14px;
  background: var(--green-50); border-radius: var(--radius);
  font-size: 13px; color: var(--ink-soft); line-height: 1.5;
  border-left: 3px solid var(--green-500);
}
.auth-card .hint b { color: var(--green-900); }

.dash { max-width: 1400px; margin: 0 auto; padding: 28px 24px 60px; }
.dash-header {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 6px;
}
.dash-header h1 { font-size: clamp(26px, 4vw, 36px); }
.dash-header .role-pill {
  background: var(--green-100); color: var(--green-800);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap;
}
.dash-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }

.tabs {
  display: flex; gap: 4px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.tab {
  padding: 10px 18px; font-family: var(--body);
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer; transition: all .15s; text-decoration: none;
  white-space: nowrap;
}
.tab:hover { color: var(--green-800); text-decoration: none; }
.tab.active { color: var(--green-900); border-bottom-color: var(--green-700); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 14px; }
.card-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .half { grid-column: span 1; }

.users-table, .listings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.users-table th, .listings-table th {
  text-align: left; padding: 11px 12px;
  background: #0a0a0a; color: #ffffff;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  border-bottom: 1px solid #000; white-space: nowrap;
}
.users-table td, .listings-table td {
  padding: 12px; border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.users-table tr:hover, .listings-table tr:hover { background: var(--green-50); }
.users-table td b, .listings-table td b { letter-spacing: .01em; }
/* Numbers in table get tabular-nums for alignment */
.listings-table td { font-variant-numeric: tabular-nums; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.badge.admin { background: var(--green-900); color: var(--green-100); }
.badge.partner { background: var(--green-100); color: var(--green-800); }

.tab-badge {
  display: inline-block;
  background: var(--green-600); color: white;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  margin-left: 4px; vertical-align: 1px;
}

/* Inquiry cards (admin view) */
.inquiry-list { display: flex; flex-direction: column; gap: 14px; }
.inquiry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.inquiry-card:hover { border-color: var(--green-400); box-shadow: 0 4px 12px rgba(14,61,30,.06); }
.inquiry-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 12px;
}
.inquiry-card .inq-type-row { margin-bottom: 6px; }
.inquiry-card .inq-type-badge {
  display: inline-block; padding: 3px 10px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  border-radius: 999px;
}
.inquiry-card .inq-type-inventory {
  background: var(--green-100); color: var(--green-800); border: 1px solid var(--green-300);
}
.inquiry-card .inq-type-looking {
  background: #fff4d9; color: #815f00; border: 1px solid #e8c97a;
}
.inquiry-card .inq-type-selling {
  background: #dde6f9; color: #2a3d6f; border: 1px solid #aabbe0;
}
.inquiry-card .inq-name { font-size: 16px; margin-bottom: 4px; }
.inquiry-card .inq-name b { color: var(--green-900); }
.inquiry-card .inq-meta { font-size: 13px; color: var(--ink-soft); }
.inquiry-card .inq-meta a { color: var(--green-700); font-weight: 600; }
.inquiry-card .inq-time { font-size: 12px; color: var(--ink-mute); white-space: nowrap; }
.inquiry-card .inq-message {
  background: var(--cream);
  padding: 12px 14px; border-radius: 8px;
  font-size: 14px; line-height: 1.5;
  border-left: 3px solid var(--green-400);
  margin-bottom: 12px; white-space: pre-wrap;
}
.inquiry-card .inq-details {
  background: var(--cream);
  padding: 12px 14px; border-radius: 8px;
  border-left: 3px solid var(--green-400);
  margin-bottom: 12px;
  display: grid; gap: 6px;
}
.inquiry-card .inq-detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.inquiry-card .inq-detail-label {
  font-weight: 700;
  color: var(--green-700);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-top: 2px;
}
.inquiry-card .inq-detail-value { color: var(--ink); }
.inquiry-card .inq-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .inquiry-card .inq-detail-row { grid-template-columns: 1fr; gap: 2px; }
}

/* Status badge (active / sold) */
.status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap;
}
.status-badge.status-active {
  background: var(--green-100); color: var(--green-800);
  border: 1px solid rgba(78,167,94,.35);
}
.status-badge.status-reserved {
  background: #fff4d9; color: #815f00;
  border: 1px solid rgba(160, 120, 0, .35);
}
.status-badge.status-sold {
  background: #fdecea; color: #b3341c;
  border: 1px solid rgba(179,52,28,.35);
}

/* Reserved and Sold rows are visibly grayed out so buyers know not to chase them */
table.inv tbody tr.row-reserved,
table.inv tbody tr.row-sold {
  opacity: 0.55;
  background: #f4f1ec;
}
table.inv tbody tr.row-reserved .variety,
table.inv tbody tr.row-sold .variety { color: var(--ink-soft); }
table.inv tbody tr.row-sold {
  text-decoration: line-through;
  text-decoration-color: rgba(179, 52, 28, 0.4);
  text-decoration-thickness: 1px;
}
table.inv tbody tr.row-sold .status-badge,
table.inv tbody tr.row-reserved .status-badge {
  text-decoration: none;
}

.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions form { display: inline-block; margin: 0; }

/* Existing photos display */
.existing-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.existing-photos .ep {
  position: relative; width: 80px; height: 80px;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.existing-photos .ep img { width: 100%; height: 100%; object-fit: cover; }
.existing-photos .ep label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(179,52,28,.92); color: #fff;
  text-align: center; font-size: 11px; padding: 3px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.existing-photos .ep input { display: none; }
.existing-photos .ep.marked img { opacity: .35; }
.existing-photos .ep.marked label { background: var(--green-700); }

/* Flash messages */
.flash {
  max-width: 1400px; margin: 16px auto 0; padding: 12px 18px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
}
.flash.ok { background: var(--green-100); color: var(--green-900); border-left: 3px solid var(--green-500); }
.flash.err { background: #fdecea; color: #8f2917; border-left: 3px solid var(--danger); }

/* Photo lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  z-index: 150; padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox .close-lb {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,.1); color: white; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 22px; cursor: pointer;
}

.hidden { display: none !important; }
.muted { color: var(--ink-mute); font-size: 12px; }

/* ============================================================
   LANDING — two-column layout (logo+desc on left, table on right)
   ============================================================ */
.landing {
  max-width: 1600px; margin: 0 auto;
  padding: 32px 24px 40px;
}
.landing-grid {
  display: grid;
  grid-template-columns: minmax(420px, 520px) 1fr;
  gap: 40px;
  align-items: start;
}

.landing-left {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 8px;
  box-shadow: none;
  position: -webkit-sticky;
  position: sticky;
  top: 92px;
  text-align: center;
}
.landing-logo {
  display: block; margin: 0 auto 18px;
  height: auto; width: 100%; max-width: 440px;
  filter: drop-shadow(0 10px 28px rgba(14,61,30,.25));
}
.landing-wordmark {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 3vw, 44px); line-height: 1;
  letter-spacing: -.02em; margin: 0 0 16px;
  display: flex; align-items: baseline; justify-content: center;
}
.landing-wordmark .wm-extra { color: var(--green-900); font-style: italic; font-weight: 600; }
.landing-wordmark .wm-plants { color: var(--green-600); font-weight: 700; }
.landing-wordmark .wm-com {
  color: var(--green-700); font-size: 0.5em; font-weight: 500;
  margin-left: .08em; align-self: end; padding-bottom: .22em;
}
.landing-sub {
  font-family: var(--display); font-weight: 600; font-style: italic;
  color: var(--green-900); font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.2; margin: 0 0 10px;
  text-align: center;
  letter-spacing: -.01em;
}
.landing-sub em { color: var(--green-600); font-weight: 700; font-style: italic; }
.landing-tagline {
  margin: 0 0 12px; color: var(--green-800);
  font-size: 14px; line-height: 1.45; text-align: center;
  font-weight: 500;
}
.landing-desc {
  margin: 0 0 24px; color: var(--ink-soft);
  font-size: 14.5px; line-height: 1.6; text-align: center;
}
.landing-desc a { color: var(--green-700); font-weight: 700; }
.landing-call-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--green-700); color: var(--cream);
  padding: 16px 22px; border-radius: 14px;
  text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(14,61,30,.18);
}
.landing-call-btn:hover {
  background: var(--green-800); color: var(--cream);
  text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14,61,30,.28);
}
.landing-call-btn .lc-icon { font-size: 20px; }
.landing-call-btn .lc-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-300); }
.landing-call-btn .lc-num { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: .01em; }

.phone-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.landing-email-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; padding: 8px 12px;
  color: var(--green-800); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: color .15s;
}
.landing-email-link:hover { color: var(--green-600); text-decoration: underline; }
.landing-email-link span { font-family: var(--body); }

.landing-right { min-width: 0; /* allow children to shrink */ }
.landing-right .controls { margin-bottom: 14px; }
.landing-right .table-wrap { margin-bottom: 0; }

/* ============================================================
   CONTACT WIDGET — 3-tab file-folder style card for visitor messages
   ============================================================ */
.contact-widget-section {
  /* Sits inside the landing-right column, directly under the table */
  background: transparent;
  padding: 16px 0 0;
  margin-top: 0;
  /* When scrolled to via #inquiry anchor, leave room for the sticky site header */
  scroll-margin-top: 80px;
}

.cw-widget {
  max-width: 60%;  /* 40% narrower than the table */
  margin: 0 auto;
}
@media (max-width: 900px) {
  .cw-widget { max-width: 100%; }  /* tablet/mobile: full width */
}

/* ---- File-folder tabs (designed to stand out & invite interaction) ---- */
.cw-tabs {
  display: flex;
  gap: 4px;
  padding: 0 6px 0 0;
  position: relative;
  z-index: 2;
}

.cw-tab {
  flex: 1;                                  /* equal-width tabs */
  padding: 10px 22px 12px;                  /* shorter (was 16/18) + wider (was 16) */
  background: linear-gradient(180deg, #e7f0e8 0%, #d8e6d9 100%);
  border: 2px solid #a8c0aa;
  border-bottom: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green-800);
  cursor: pointer;
  position: relative;
  margin-bottom: -2px;                      /* overlap card top border */
  transition: background .15s, color .15s, transform .2s, box-shadow .2s, border-color .15s;
  line-height: 1.25;
  text-align: center;
  letter-spacing: .01em;                    /* slight breathing room for all-caps labels */
  box-shadow: 0 -1px 3px rgba(14, 61, 30, 0.06);
  user-select: none;
  white-space: nowrap;                      /* prevent label wrapping in the shorter tab */
}

.cw-tab:hover:not(.active) {
  background: linear-gradient(180deg, #d4e4d6 0%, #c2d6c4 100%);
  color: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 -4px 10px rgba(14, 61, 30, 0.14);
  border-color: var(--green-500);
}

.cw-tab.active {
  background: var(--paper);
  color: var(--green-900);
  border-color: var(--green-700);
  border-bottom-color: var(--paper);        /* hides border into the card */
  font-weight: 800;
  font-size: 15px;                          /* slightly larger when active */
  z-index: 3;
  box-shadow: 0 -4px 14px rgba(14, 61, 30, 0.18);
}

/* Bright accent strip across the top of the active tab — strong visual signal */
.cw-tab.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 5px;
  background: linear-gradient(90deg, var(--green-500) 0%, var(--green-600) 100%);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* ---- Card body (sits below the tabs) ---- */
.cw-card {
  background: var(--paper);
  border: 2px solid var(--green-700);
  border-radius: 12px;
  padding: 26px 32px 32px;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 28px rgba(14, 61, 30, 0.08);
}

.cw-header {
  text-align: left;
  margin-bottom: 22px;
}
.cw-header h2 {
  font-family: var(--display);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.cw-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---- Form content ---- */
.cw-form { display: none; }
.cw-form.active { display: block; animation: cw-fade-in .25s ease-out; }
@keyframes cw-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cw-form .hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.cw-intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  line-height: 1.5;
}

.cw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.cw-field-full { grid-column: 1 / -1; }
.cw-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 6px;
}
.cw-field label .req { color: var(--green-600); }
.cw-field input,
.cw-field textarea {
  width: 100%;
  background: #f8fbf9;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 8px;
  font-family: var(--body);
  line-height: 1.4;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.cw-field textarea { resize: vertical; min-height: 70px; }
.cw-field input:focus,
.cw-field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(78, 167, 94, 0.15);
}

.cw-submit {
  width: 100%;
  background: var(--green-700);
  color: var(--cream);
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 12px rgba(14, 61, 30, 0.15);
}
.cw-submit:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 61, 30, 0.22);
}
.cw-submit:active { transform: translateY(0); }

/* ---- Result banner inside the card ---- */
.cw-card .inquiry-result {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  margin-bottom: 18px; font-weight: 600; font-size: 14px;
  animation: ir-slide-in .4s ease-out;
}
.cw-card .inquiry-result.ok {
  background: var(--green-100);
  border: 1px solid var(--green-400);
  color: var(--green-900);
}
.cw-card .inquiry-result.error {
  background: #fdecea;
  border: 1px solid #e9a89e;
  color: #8a2820;
}
.cw-card .inquiry-result .ir-icon { font-size: 20px; flex-shrink: 0; }
@keyframes ir-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Tablet: more compact tabs ---- */
@media (max-width: 760px) {
  .cw-tab { padding: 11px 14px 12px; font-size: 12.5px; }
  .cw-card { padding: 26px 24px 28px; }
}

/* ---- Mobile: stack tabs vertically, single-column form ---- */
@media (max-width: 580px) {
  .contact-widget-section { padding: 36px 14px 56px; }
  .cw-tabs {
    flex-direction: column;
    gap: 2px;
    padding: 0;
  }
  .cw-tab {
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    text-align: left;
    padding: 12px 18px;
    font-size: 13.5px;
  }
  /* On mobile only the active tab "merges" with card */
  .cw-tab:not(.active) {
    border-radius: 8px;
    margin-bottom: 2px;
  }
  .cw-tab.active {
    border-bottom-color: var(--paper);
    margin-bottom: -1px;
  }
  .cw-card {
    padding: 22px 18px 24px;
    border-radius: 0 0 10px 10px;
  }
  .cw-grid { grid-template-columns: 1fr; gap: 12px; }
  .cw-submit { font-size: 14px; padding: 13px 20px; }
}

/* Sticky-footer email link */
.site-footer-sticky .sf-email {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cream); text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 6px 10px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.site-footer-sticky .sf-email:hover {
  color: var(--green-300); text-decoration: none;
  background: rgba(255,255,255,.06);
}
.site-footer-sticky .sf-email-addr { font-family: var(--body); }
@media (max-width: 880px) {
  .site-footer-sticky .sf-email { display: none; }
}

/* ============================================================
   STICKY FOOTER BAR — docked to bottom of viewport like the header
   ============================================================ */
.site-footer-sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  background: linear-gradient(135deg, var(--green-900) 0%, #0a3219 100%);
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -4px 14px rgba(14,61,30,.18);
  z-index: 40;
  display: flex; align-items: center;
}
.site-footer-sticky .sf-bar {
  max-width: 1600px; margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex; align-items: center; gap: 18px;
}
.site-footer-sticky .sf-tag {
  color: var(--green-300); font-weight: 700;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap;
}
.site-footer-sticky .sf-call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-500); color: var(--green-900);
  font-weight: 700; padding: 9px 18px; border-radius: 999px;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s;
  box-shadow: 0 0 0 2px rgba(255,255,255,.06);
}
.site-footer-sticky .sf-call:hover {
  background: var(--green-400); transform: translateY(-1px);
  text-decoration: none; color: var(--green-900);
}
.site-footer-sticky .sf-call-label { font-size: 13px; }
.site-footer-sticky .sf-call-num { font-family: var(--display); font-size: 16px; font-weight: 700; }
.site-footer-sticky .sf-info {
  margin-left: auto;
  color: rgba(255,255,255,.55); font-size: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* New-inventory notification toast */
.update-toast {
  position: fixed;
  bottom: calc(var(--footer-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--green-700);
  color: var(--cream);
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(14,61,30,.4);
  z-index: 100;
  opacity: 0;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.3,1.2);
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100vw - 32px);
}
.update-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.update-toast .ut-icon { font-size: 18px; }
.update-toast .ut-msg { white-space: nowrap; }
.update-toast .ut-btn {
  background: var(--green-500); color: var(--green-900);
  border: none; padding: 7px 16px; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  font-family: var(--body); transition: background .15s, transform .15s;
}
.update-toast .ut-btn:hover { background: var(--green-400); transform: translateY(-1px); }
@media (max-width: 480px) {
  .update-toast { padding: 8px 12px 8px 14px; font-size: 13px; gap: 8px; }
  .update-toast .ut-icon { font-size: 16px; }
  .update-toast .ut-btn { padding: 6px 12px; font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — tablet (640-1023) and mobile (<640)
   ============================================================ */

/* Below 1200px — stack the 2-col landing to 1 col so table has room.
   Also shrink the logo + brand text + buttons so more table is visible above the fold,
   and hide the Notes column so the Ask pill on the right is never clipped. */
@media (max-width: 1199px) {
  .landing-grid { grid-template-columns: 1fr; gap: 18px; }
  .landing-left {
    position: static;
    -webkit-position: static;
    padding: 0 8px;
  }

  /* Smaller logo + tighter brand block */
  .landing-logo { max-width: 180px; margin-bottom: 6px; }
  .landing-wordmark {
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.05;
    margin: 0 0 4px;
  }
  .landing-sub {
    font-size: clamp(15px, 2.1vw, 19px);
    margin: 0 0 6px;
  }
  .landing-tagline {
    font-size: 12.5px;
    margin: 0 0 8px;
    line-height: 1.4;
  }
  .landing-desc {
    font-size: 13px;
    margin: 0 0 14px;
    line-height: 1.45;
  }
  .landing-call-btn {
    max-width: 320px;
    margin: 0 auto;
    padding: 12px 18px;
    gap: 2px;
  }
  .landing-call-btn .lc-num { font-size: 22px; }
  .landing-call-btn .lc-label { font-size: 10.5px; letter-spacing: .08em; }
  .landing-email-link { font-size: 13px; }

  /* Compact the inventory table so the Ask pill stays inside the container */
  table.inv thead th { padding: 9px 6px; font-size: 11px; }
  table.inv tbody td { padding: 9px 6px; }
  .ask-col { width: 50px; }
  .ask-btn { padding: 5px 10px; font-size: 10.5px; }
}

/* Tablet — narrower than 1024px */
@media (max-width: 1023px) {
  .site-header .bar { padding: 10px 18px; gap: 12px; }
  .brand-logo { height: 48px; }
  .brand .name { font-size: 19px; }
  .hero, .inventory, .dash { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 18px; }
  .hero-logo { height: 34px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 20px; }
  .landing { padding: 20px 18px 24px; }
  .site-footer-sticky .sf-info { display: none; }
}

/* Mobile — narrower than 640px */
@media (max-width: 639px) {
  .site-header .bar { padding: 10px 14px; gap: 10px; }
  .brand-logo { height: 42px; }
  .brand .name { font-size: 17px; line-height: 1.1; }
  .brand .tag { font-size: 10px; }
  .spacer { flex: 0; display: none; }
  .hdr-phone { padding: 4px 2px; gap: 6px; font-size: 13px; }
  .hdr-phone .hdr-phone-num { font-size: 15px; }
  .nav-btn { padding: 7px 12px; font-size: 12px; }
  .user-pill { display: none; }

  .hero { padding: 16px 16px 8px; }
  .hero-mark { gap: 10px; margin-bottom: 8px; }
  .hero-logo { height: 30px; }
  .hero-sub { margin: 4px 0 6px; }
  .inventory { padding: 18px 16px 40px; }
  .dash { padding: 22px 16px 40px; }

  .controls { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
  .controls .field:last-child { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; border-radius: 12px; }
  .card-toolbar { flex-direction: column; align-items: stretch; }
  .card-toolbar h3 { font-size: 17px; }

  .users-table, .listings-table { font-size: 13px; }
  .users-table th, .listings-table th,
  .users-table td, .listings-table td { padding: 9px 8px; }

  .footer-cta { padding: 48px 20px; }
  .footer-cta .big-call { padding: 14px 22px; }

  .auth-card { padding: 28px 22px; }

  .summary-row { gap: 8px; font-size: 12px; }
  .summary-row .stat { padding: 5px 12px; }

  .thumb { width: 36px; height: 36px; }
  .existing-photos .ep { width: 72px; height: 72px; }

  .lightbox { padding: 10px; }

  .landing { padding: 14px 12px 18px; }
  .landing-left { padding: 18px 16px; }
  .landing-logo { max-width: 160px; margin-bottom: 10px; }
  .landing-desc { font-size: 13px; }
  .site-footer-sticky .sf-bar { padding: 0 14px; gap: 10px; }
  .site-footer-sticky .sf-tag { font-size: 10px; letter-spacing: .12em; }
  .site-footer-sticky .sf-call { padding: 7px 14px; gap: 6px; }
  .site-footer-sticky .sf-call-label { display: none; }
  .site-footer-sticky .sf-call-num { font-size: 15px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand .tag { display: none; }
  .hdr-phone .hdr-phone-text { display: none; }  /* hide "Call or Text", keep icon + number */
  .nav-btn { padding: 6px 10px; }
}

/* Print */
@media print {
  .site-header, .footer-cta, .controls, .row-actions, .lightbox { display: none !important; }
  body { background: white; }
  .table-wrap { box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   iOS / iPhone / iPad COMPATIBILITY
   ============================================================ */

/* Universal touch optimizations */
* {
  -webkit-tap-highlight-color: rgba(78, 167, 94, 0.15);
}

/* Remove 300ms tap delay and add fast tap on actionable elements */
button, a, label, input[type="checkbox"], input[type="radio"], select, .tab, .row-actions a, .row-actions button {
  touch-action: manipulation;
}

/* Stop iOS from auto-zooming when a form field is focused.
   Anything < 16px triggers the zoom — so force 16px on every input. */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input:not([type]),
select,
textarea {
  font-size: 16px !important;
  /* Round the appearance ourselves so iOS doesn't override */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Smooth-rendering */
  -webkit-font-smoothing: antialiased;
}

/* Custom dropdown arrow for selects since we removed iOS's default */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%230e3d1e'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 7px;
  padding-right: 32px;
}

/* On dark backgrounds (inquiry section is now light, but the partner form may be on light too) */
.inquiry-form select,
.iform-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%230e3d1e'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
}

/* Date / time inputs — iOS makes them differently sized; standardize */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  min-height: 44px;
  display: block;
  width: 100%;
}

/* Safe-area-inset support for sticky footer.
   iPhone with home indicator: the bottom 34px (portrait) is the indicator area.
   We extend the footer's background into that area, but keep its content above. */
.site-footer-sticky {
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--footer-h) + env(safe-area-inset-bottom));
  /* Backdrop-filter is iOS-friendly; doesn't break older Safari */
}
body.has-sticky-footer {
  padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom));
}

/* The header should also respect the top safe area (notch) when in PWA mode */
.site-header {
  padding-top: env(safe-area-inset-top);
}

/* Minimum 44x44pt touch targets per Apple HIG.
   On touch devices, expand smaller buttons to comfortable tap sizes. */
@media (hover: none) and (pointer: coarse) {
  .btn.sm {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
  }
  /* Header CTAs */
  .login-link, .header-cta, .tab,
  .hdr-phone, .nav-btn,
  .sf-call, .sf-email,
  .landing-email-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Inline phone numbers inside body text still need a comfortable tap area
     without disrupting the line. Padding does the trick. */
  p a[href^="tel:"], p a[href^="mailto:"],
  .landing-desc a[href^="tel:"], .landing-desc a[href^="mailto:"] {
    padding: 4px 2px;
    margin: -4px 0;
    display: inline-block;
  }
  /* Make sure thumbnail clicks don't get tiny */
  .thumb {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Disable text auto-resize that iOS does when rotating */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Smooth momentum scrolling on iOS for any scrollable region */
.table-scroll,
.dash-tabs,
.lightbox {
  -webkit-overflow-scrolling: touch;
}

/* Prevent iOS Safari from "rubber-band" overscrolling the body
   while still letting page content scroll normally */
html, body {
  overscroll-behavior-y: none;
}

/* Lightbox: support pinch-zoom on the image */
.lightbox img {
  touch-action: pinch-zoom;
}

/* Sticky position needs prefix on older iOS Safari */
.site-header {
  position: -webkit-sticky;
  position: sticky;
}
table.inv thead th {
  position: -webkit-sticky;
  position: sticky;
}

/* Make sure the call/email buttons in the inquiry section meet touch targets */
.contact-option {
  min-height: 60px;
}

/* iOS button reset — sometimes <button> inherits unwanted system styles */
button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* Phone & email links on touch — make them visibly tappable areas in body text */
a[href^="tel:"], a[href^="mailto:"] {
  -webkit-touch-callout: default;
}

/* iPad landscape (1024px) lands in our 2-col layout — verify left col logo doesn't crowd */
@media (min-width: 1024px) and (max-width: 1199px) {
  /* iPad landscape gets stacked layout (per our 1199px breakpoint) — already handled */
}

/* iPhone landscape — make sure the hero doesn't take up too much vertical space */
@media (max-height: 500px) and (orientation: landscape) {
  .landing-logo { max-width: 180px; }
  .landing { padding: 16px 18px 24px; }
  .landing-wordmark { font-size: clamp(22px, 3vw, 32px); }
  .landing-sub { font-size: 15px; margin-bottom: 8px; }
  .landing-desc { font-size: 13px; margin-bottom: 14px; }
}

/* Landing logo — static, no animation */
.landing-logo {
  /* Sized via the .landing-left max-width and the img element itself */
}

/* ============================================================
   ADDRESS CONTACT CARD
   The third contact option (after phone + email) — multi-line address
   ============================================================ */
.contact-option--addr .co-value {
  margin-bottom: 4px;
}
.contact-option--addr .co-addr {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  font-family: var(--body);
}

/* ============================================================
   SITE INFO FOOTER
   Small footer at the very bottom with company details
   ============================================================ */
.site-info-footer {
  background: linear-gradient(180deg, #0a3219 0%, var(--green-900) 100%);
  color: var(--cream);
  padding: 40px 24px 32px;
  position: relative;
}
.sif-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.sif-brand .sif-title {
  font-family: var(--display);
  font-size: 20px; font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.sif-brand .sif-addr {
  display: block;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px; line-height: 1.6;
  transition: color .15s;
}
.sif-brand .sif-addr:hover {
  color: var(--green-300);
  text-decoration: none;
}

.sif-contact { display: flex; flex-direction: column; gap: 10px; }
.sif-contact a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s;
}
.sif-contact a:hover {
  color: var(--green-300);
  text-decoration: none;
}

.sif-meta {
  display: flex; flex-direction: column; gap: 8px;
  text-align: right;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.sif-meta .sif-copy {
  font-weight: 600;
  color: rgba(255,255,255,.65);
}

/* Stack vertically on narrow viewports */
@media (max-width: 800px) {
  .sif-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .sif-contact { align-items: center; }
  .sif-meta { text-align: center; }
}

/* ============================================================
   SLIDESHOW WIDGET (landing page, left column)
   ============================================================ */
.slideshow {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.slideshow-stage {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.slide-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
  box-shadow: 0 2px 8px rgba(14, 61, 30, 0.25);
}
.slide-arrow:hover { background: var(--green-800); transform: translateY(-1px); }
.slide-arrow:active { transform: translateY(0); }
.slide-arrow:disabled { opacity: 0.35; cursor: default; transform: none; }

.slideshow-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  min-width: 0;
}
.slideshow-track {
  display: flex;
  gap: 6px;
  transition: transform .35s ease;
  will-change: transform;
}
.slide {
  /* Width is calculated by JS to show 5 at a time. Fallback CSS handles 5-up display. */
  flex: 0 0 calc((100% - 24px) / 5);  /* 5 slides + 4 gaps of 6px = 24px */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  aspect-ratio: 1;
}
.slide:hover {
  transform: scale(1.04);
  border-color: var(--green-500);
  box-shadow: 0 4px 14px rgba(14, 61, 30, 0.18);
  z-index: 2;
}
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.slide .slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(14, 61, 30, 0.85), transparent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 12px 6px 4px;
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Admin slideshow grid ---- */
.slide-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.slide-admin-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.slide-admin-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform .15s ease;
}
.slide-admin-card img:hover { transform: scale(1.02); }
.slide-cap-form {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.slide-cap-form input[type="text"] {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
  font-family: var(--body);
}

/* Mobile: slideshow scales down */
@media (max-width: 720px) {
  .slide-arrow { width: 28px; height: 28px; }
  .slide-arrow svg { width: 16px; height: 16px; }
}

/* ============================================================
   ASK BUTTON — inquiry pre-fill button on each table row
   ============================================================ */
.ask-col { width: 56px; }
.ask-cell { text-align: center; padding: 6px 8px !important; }
.ask-btn {
  display: inline-block;
  background: var(--green-700);
  color: var(--cream);
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 6px rgba(14, 61, 30, 0.18);
}
.ask-btn:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(14, 61, 30, 0.28);
}
.ask-btn:active { transform: translateY(0); }

/* ---- Linked listing badge in admin inquiries ---- */
.inq-linked {
  display: inline-block;
  background: var(--green-100);
  border: 1px solid rgba(78, 167, 94, .3);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--green-900);
  margin-left: 2px;
}
.inq-linked b { color: var(--green-900); font-weight: 700; }

/* ============================================================================
   iOS-STYLE BACKEND
   Scoped to body.admin-page so the public landing page is unaffected.
   Inspired by iOS Settings / iCloud / App Store visual language:
   - Apple system fonts
   - Light gray (#f2f2f7) page background
   - White cards with very subtle shadow, big rounded corners (16-18px)
   - iOS blue (#007AFF) for primary actions and links
   - iOS red (#FF3B30) for destructive
   - Light gray (#f2f2f7) for input backgrounds (filled-style)
   - Generous padding, comfortable touch targets
   ============================================================================ */

body.admin-page {
  background: #f2f2f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  color: #1c1c1e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.01em;
}

/* The dashboard container — give it room to breathe */
body.admin-page .dash {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
body.admin-page .dash h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #1c1c1e;
  margin: 0 0 4px;
  line-height: 1.1;
}
body.admin-page .dash p {
  font-size: 15px;
  color: #636366;
  margin: 0 0 24px;
}
body.admin-page .dash h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: #1c1c1e;
  margin: 0 0 12px;
}

/* ---- Card ---- */
body.admin-page .card {
  background: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.04),
    0 1px 2px rgba(0,0,0,.04),
    0 8px 24px -8px rgba(0,0,0,.06);
}
body.admin-page .card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
body.admin-page .card-toolbar h3 { margin: 0; }

/* ---- iOS-style tabs (segmented control feel) ---- */
body.admin-page .tabs {
  display: inline-flex;
  gap: 2px;
  background: #e5e5ea;
  padding: 3px;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
body.admin-page .tabs::-webkit-scrollbar { display: none; }
body.admin-page .tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #3c3c43;
  text-decoration: none;
  border-radius: 9px;
  border: none;
  background: transparent;
  white-space: nowrap;
  transition: background .15s, color .15s, transform .1s;
}
body.admin-page .tab:hover:not(.active) {
  background: rgba(255,255,255,.55);
  color: #1c1c1e;
}
body.admin-page .tab.active {
  background: #ffffff;
  color: #1c1c1e;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.04), 0 3px 8px rgba(0,0,0,.08);
}
body.admin-page .tab-badge {
  background: #ff3b30;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  min-width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Form fields (iOS filled-style inputs) ---- */
body.admin-page .field { margin-bottom: 16px; }
body.admin-page .field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3c3c43;
  margin-bottom: 6px;
  letter-spacing: -.005em;
  text-transform: none;
}
body.admin-page .field input[type="text"],
body.admin-page .field input[type="number"],
body.admin-page .field input[type="email"],
body.admin-page .field input[type="password"],
body.admin-page .field input[type="date"],
body.admin-page .field input[type="file"],
body.admin-page .field input[type="search"],
body.admin-page .field input:not([type]),
body.admin-page .field select,
body.admin-page .field textarea,
body.admin-page .auth-card input,
body.admin-page input.txt {
  width: 100%;
  background: #f2f2f7;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1c1c1e;
  transition: background .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
body.admin-page .field input:focus,
body.admin-page .field select:focus,
body.admin-page .field textarea:focus,
body.admin-page .auth-card input:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #007AFF;
}
body.admin-page .field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%238e8e93"><path d="M8 11.5L3.5 7h9z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}
body.admin-page .field input[type="file"] {
  padding: 10px 14px;
  font-size: 13px;
}
body.admin-page .field textarea { min-height: 80px; resize: vertical; }
body.admin-page .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.admin-page .form-grid .field.full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  body.admin-page .form-grid { grid-template-columns: 1fr; }
}

/* ---- Buttons (iOS pill style) ---- */
body.admin-page .btn,
body.admin-page button.btn,
body.admin-page input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #007AFF;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
  text-decoration: none;
  letter-spacing: -.005em;
  -webkit-tap-highlight-color: transparent;
}
body.admin-page .btn:hover { background: #0062cc; }
body.admin-page .btn:active { transform: scale(.97); }
body.admin-page .btn.sm { padding: 7px 14px; font-size: 13px; }

/* Secondary / subtle button */
body.admin-page .btn.subtle,
body.admin-page .btn-secondary {
  background: #f2f2f7;
  color: #007AFF;
}
body.admin-page .btn.subtle:hover { background: #e5e5ea; }

/* Destructive */
body.admin-page .btn.danger,
body.admin-page .btn-danger {
  background: #ff3b30;
  color: #fff;
}
body.admin-page .btn.danger:hover { background: #d70015; }

/* Pill / chip user pill */
body.admin-page .user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
body.admin-page .user-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34c759;       /* iOS green */
}

/* ---- Site header above admin pages (iOS-like compact bar) ---- */
body.admin-page .site-header {
  background: linear-gradient(180deg, #0a3618 0%, #0e3d1e 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 14px rgba(0,0,0,.12);
}

/* ---- Tables in admin (iOS-style inset list feel) ---- */
body.admin-page table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
body.admin-page table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 14px;
  border-bottom: .5px solid #d1d1d6;
  background: transparent;
}
body.admin-page table td {
  padding: 14px;
  font-size: 14.5px;
  color: #1c1c1e;
  border-bottom: .5px solid #f2f2f7;
}
body.admin-page table tr:last-child td { border-bottom: none; }
body.admin-page table tbody tr { transition: background .12s; }
body.admin-page table tbody tr:hover { background: #fafafa; }
body.admin-page table .row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---- Inquiry cards (iOS-style mail/note bubbles) ---- */
body.admin-page .inquiry-card {
  background: #f9f9fb;
  border: .5px solid #e5e5ea;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
body.admin-page .inq-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
body.admin-page .inq-type-inventory { background: #e8f7ee; color: #0a7d35; }
body.admin-page .inq-type-looking   { background: #fff5d6; color: #8a6500; }
body.admin-page .inq-type-selling   { background: #e0f0ff; color: #0050b3; }
body.admin-page .inq-name { font-size: 16px; font-weight: 700; margin: 4px 0; }
body.admin-page .inq-meta { font-size: 13.5px; color: #636366; margin-bottom: 10px; }
body.admin-page .inq-meta a { color: #007AFF; text-decoration: none; }
body.admin-page .inq-meta a:hover { text-decoration: underline; }
body.admin-page .inq-message {
  background: #ffffff;
  border-left: 3px solid #007AFF;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: #1c1c1e;
  margin: 8px 0 12px;
  line-height: 1.5;
}
body.admin-page .inq-linked {
  background: #e0f0ff;
  border: none;
  color: #0050b3;
  font-size: 12.5px;
  padding: 3px 10px;
}
body.admin-page .inq-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Admin status header ---- */
body.admin-page .role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f7ee;
  color: #0a7d35;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---- Auth page (login) iOS-styled ---- */
body.admin-page .auth-page {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 24px;
}
body.admin-page .auth-card {
  background: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 32px;
  box-shadow:
    0 0 0 .5px rgba(0,0,0,.04),
    0 1px 2px rgba(0,0,0,.04),
    0 12px 32px -10px rgba(0,0,0,.10);
}
body.admin-page .auth-card h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
body.admin-page .auth-card p { margin-bottom: 18px; color: #636366; font-size: 14.5px; }
body.admin-page .auth-card .field { margin-bottom: 14px; }
body.admin-page .auth-card button[type="submit"] {
  width: 100%;
  background: #007AFF;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background .15s;
}
body.admin-page .auth-card button[type="submit"]:hover { background: #0062cc; }
body.admin-page .auth-card a { color: #007AFF; text-decoration: none; }
body.admin-page .auth-card a:hover { text-decoration: underline; }

/* ---- Flash messages (iOS-style notification banners) ---- */
body.admin-page .flash {
  background: #e8f7ee;
  color: #0a7d35;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14.5px;
  font-weight: 500;
}
body.admin-page .flash.error {
  background: #ffeae8;
  color: #d70015;
}

/* ---- Muted text helper ---- */
body.admin-page .muted { color: #8e8e93; font-size: 13.5px; }

/* ---- Slideshow admin grid keeps the iOS feel ---- */
body.admin-page .slide-admin-card {
  background: #f9f9fb;
  border: .5px solid #e5e5ea;
  border-radius: 14px;
  padding: 12px;
}
body.admin-page .slide-admin-card img {
  border-radius: 10px;
}
body.admin-page .slide-cap-form input[type="text"] {
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
