/* Vivero Local 127 — estilos */
:root {
  --green-900: #1f3d2b; --green-700: #2f5d43; --green-500: #4d8a63; --green-100: #e5efe6;
  --cream: #f7f3ea; --paper: #fffdf8; --terra: #b85a33; --terra-100: #f6e3d9; --marigold: #e8a03a;
  --ink: #1d241f; --muted: #6b7268; --line: #e4ddd0; --danger: #b3261e; --info: #2d5f8a;
  --radius: 14px; --shadow: 0 1px 2px rgba(31,61,43,.06), 0 6px 24px rgba(31,61,43,.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3, h4, .h2 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--green-900); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2, .h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; } h4 { font-size: 1.05rem; font-family: var(--font); font-weight: 600; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 520px; } .mid { max-width: 900px; }
.center { text-align: center; } .muted { color: var(--muted); } .upper { text-transform: uppercase; }
.inline { display: inline; } .hp { position: absolute; left: -9999px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--terra); margin: 0 0 .5rem; }
.empty { padding: 2rem; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.2rem; border: 0; border-radius: 999px;
  background: var(--green-700); color: #fff; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--green-900); } .btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; } .btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-light { background: var(--green-100); color: var(--green-900); } .btn-light:hover { background: #d4e4d6; }
.btn-ghost { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.7); } .btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-danger { background: var(--danger); } .btn-danger:hover { background: #8c1d17; }
.linklike { background: none; border: 0; padding: 0; color: var(--green-700); font: inherit; cursor: pointer; text-decoration: underline; }
.linklike.danger, .danger { color: var(--danger); }

/* Encabezado */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255,253,248,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-900); font: 700 1.1rem var(--display); }
.brand small { display: block; font: 500 .7rem var(--font); color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem; }
.nav a:hover { color: var(--green-700); } .nav .btn { color: #fff; }
.cart-link { position: relative; }
.cart-n { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 999px; background: var(--terra); color: #fff; font-size: .75rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: .2rem .6rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1rem 16px 1.4rem; background: var(--paper); border-bottom: 1px solid var(--line); gap: .9rem; }
  .nav.open { display: flex; }
}

/* Mensajes */
.flashes { margin-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: 10px; margin-bottom: .6rem; border-left: 4px solid; background: var(--paper); }
.flash-ok { border-color: var(--green-500); background: var(--green-100); }
.flash-error { border-color: var(--danger); background: #fbe9e7; }
.flash-info { border-color: var(--info); background: #e8f0f7; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--green-900); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,40,28,.92) 0%, rgba(20,40,28,.65) 55%, rgba(20,40,28,.2) 100%); }
.hero-in { position: relative; z-index: 1; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem); max-width: 1180px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .eyebrow { color: var(--marigold); }
.hero .lead { font-size: 1.12rem; max-width: 56ch; color: #eef3ec; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; font-size: .92rem; color: #dfe8dc; }
.hero-facts b { color: #fff; margin-right: .3rem; }

.policy { background: var(--terra); color: #fff; }
.policy-in { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; }
.policy p { margin: 0; flex: 1; } .policy svg { flex: none; }
@media (max-width: 640px) { .policy-in { flex-wrap: wrap; } .policy p { flex-basis: calc(100% - 44px); } .policy .btn { margin-left: 44px; } }

/* Secciones */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.subhead { margin: 2rem 0 1rem; font-family: var(--font); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Ofertas */
.offers { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.offer { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.offer-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.offer:hover .offer-img img { transform: scale(1.04); }
.tag { position: absolute; top: .8rem; left: .8rem; background: var(--marigold); color: var(--green-900); font-weight: 700; padding: .25rem .6rem; border-radius: 999px; font-size: .85rem; }
.offer-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.offer-body p { color: var(--muted); font-size: .93rem; flex: 1; margin: 0 0 .8rem; }
.price { margin-bottom: .9rem; } .price s { color: var(--muted); margin-right: .3rem; } .price b { font-size: 1.35rem; color: var(--terra); } .price small { color: var(--muted); }
.tag-inline { display: inline-block; background: var(--marigold); color: var(--green-900); font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .1rem .45rem; border-radius: 4px; letter-spacing: .04em; }

/* Categorías */
.cats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat { display: flex; gap: .9rem; align-items: center; padding: .7rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--green-500); transform: translateY(-2px); }
.cat img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; flex: none; background: var(--green-100); }
.cat strong { display: block; color: var(--green-900); } .cat small { color: var(--muted); font-size: .85rem; line-height: 1.35; display: block; }

/* Galería */
.gallery { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item span { position: absolute; inset: auto 0 0 0; padding: 1.4rem .7rem .55rem; color: #fff; font-size: .85rem; font-weight: 500; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .2s; }
.gallery-item:hover img { transform: scale(1.05); } .gallery-item:hover span, .gallery-item:focus span { opacity: 1; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery-item span { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,18,12,.93); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; } .lightbox img { max-height: 82vh; max-width: 92vw; border-radius: 8px; margin: auto; }
.lightbox figcaption { color: #fff; text-align: center; padding-top: .7rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }

/* Pasos */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.steps li { counter-increment: s; background: var(--cream); border-radius: var(--radius); padding: 1.1rem; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 700; margin-bottom: .6rem; }
.steps b { display: block; color: var(--green-900); } .steps span { font-size: .88rem; color: var(--muted); }

/* Ubicación */
.location { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: center; }
.location address { font-style: normal; font-size: 1.1rem; margin-bottom: 1rem; }
.info { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1.4rem; } .info dt { font-weight: 600; } .info dd { margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--green-100); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 800px) { .location { grid-template-columns: 1fr; } }

/* Pie */
.footer { background: var(--green-900); color: #dfe8dc; padding: 2.5rem 0; font-size: .92rem; }
.footer a { color: #fff; } .footer strong { color: #fff; font-family: var(--display); font-size: 1.1rem; }
.footer-in { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .footer p { margin: .3rem 0; } .footer .muted { color: #a9bba9; }

/* Catálogo */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chips a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); font-size: .9rem; }
.chips a.on { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.chips b { font-weight: 600; opacity: .7; margin-left: .2rem; }
.products { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.product.is-offer { border-color: var(--marigold); }
.product img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--green-100); }
.product-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-body h4 { margin: .2rem 0 .3rem; } .product-body p { font-size: .87rem; color: var(--muted); margin: 0 0 .6rem; flex: 1; }
.product .price { margin-bottom: .6rem; } .product .price b { font-size: 1.15rem; }
.add { display: flex; gap: .5rem; } .add input { width: 4.2rem; }
.cart-float { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 30; box-shadow: var(--shadow); }

/* Formularios */
.card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.4rem; margin-bottom: 1.2rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; } .card-head h3 { margin: 0; }
.card.highlight { border: 2px solid var(--green-500); }
.card.notice { background: #fbf6e9; border-color: #efdcb0; } .card.notice.ok { background: var(--green-100); border-color: #bcd5c0; }
.card.notice ul { padding-left: 1.2rem; }
details.card summary { cursor: pointer; font-weight: 600; }
.form { display: grid; gap: .9rem; }
.form label, label { display: grid; gap: .3rem; font-weight: 500; font-size: .9rem; }
input, select, textarea { width: 100%; padding: .65rem .8rem; border: 1px solid #cfc7b8; border-radius: 10px; font: 400 1rem var(--font); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--green-500); outline: none; box-shadow: 0 0 0 3px rgba(77,138,99,.2); }
.err { color: var(--danger); font-size: .82rem; font-weight: 500; }
.grid2 { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; } .grid3 { display: grid; gap: .9rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.file { border: 2px dashed #cfc7b8; border-radius: 12px; padding: 1rem; text-align: center; background: var(--cream); cursor: pointer; }
.file span { color: var(--muted); font-weight: 400; font-size: .85rem; }
.preview { max-height: 260px; border-radius: 10px; margin: auto; }
.captcha { display: grid; gap: .45rem; }
.captcha-label { font-weight: 500; font-size: .9rem; }
.captcha-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.captcha-img { border-radius: 8px; border: 1px solid var(--line); }
.row-end { display: flex; justify-content: flex-end; }
.row { display: flex; gap: .7rem; align-items: end; flex-wrap: wrap; }

/* Tablas */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); padding: .6rem .5rem; }
.table td { border-bottom: 1px solid var(--line); padding: .7rem .5rem; vertical-align: middle; }
.table tfoot td { border: 0; font-size: 1.05rem; }
.num { text-align: right; white-space: nowrap; }
.qty { width: 4.5rem; text-align: right; }
.prod-cell { display: flex; align-items: center; gap: .7rem; } .prod-cell img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
@media (max-width: 640px) { .card { padding: 1rem; overflow-x: auto; } .table { font-size: .85rem; } }

/* Estado y pedido */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-warn { background: #fdf0d5; color: #8a5a00; } .badge-info { background: #e3edf7; color: var(--info); }
.badge-danger { background: #fbe1de; color: var(--danger); } .badge-ok { background: var(--green-100); color: var(--green-700); }
.badge-done { background: var(--green-700); color: #fff; } .badge-muted { background: #ece8df; color: var(--muted); }
.stepper { list-style: none; padding: 0; margin: 1.2rem 0 1.4rem; display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; counter-reset: st; }
.stepper li { font-size: .78rem; color: var(--muted); display: grid; gap: .35rem; justify-items: center; text-align: center; position: relative; }
.stepper li span { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: #ece8df; font-weight: 700; z-index: 1; }
.stepper li::before { content: ""; position: absolute; top: 1rem; left: -50%; right: 50%; height: 2px; background: #ece8df; }
.stepper li:first-child::before { display: none; }
.stepper li.done span { background: var(--green-700); color: #fff; } .stepper li.done::before, .stepper li.current::before { background: var(--green-700); }
.stepper li.current span { background: var(--marigold); color: var(--green-900); } .stepper li.current, .stepper li.done { color: var(--green-900); font-weight: 600; }
@media (max-width: 560px) { .stepper li { font-size: 0; } .stepper li.current { font-size: .72rem; } }
.bank { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; margin: 0 0 1.4rem; } .bank dt { color: var(--muted); } .bank dd { margin: 0; font-weight: 600; }
code { background: var(--green-100); padding: .15rem .45rem; border-radius: 6px; font-size: 1rem; }
.copy { cursor: copy; } .copy.copied::after { content: " ✓ copiado"; font-family: var(--font); font-size: .8rem; color: var(--green-700); }
.delivery-date { background: var(--green-900); color: #fff; border-radius: 12px; padding: 1rem 1.2rem; display: grid; gap: .2rem; align-content: center; }
.delivery-date small { color: var(--marigold); text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; font-weight: 600; }
.delivery-date strong { font-family: var(--display); font-size: 1.3rem; }
.timeline { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; font-size: .9rem; } .timeline time { color: var(--muted); margin-right: .4rem; }

/* Chatbot */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-fab { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--green-700); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: grid; place-items: center; }
.chat-fab:hover { background: var(--green-900); }
.chat-panel { position: absolute; right: 0; bottom: 74px; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: var(--paper); border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--green-900); color: #fff; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: start; }
.chat-head small { display: block; color: #bcd0bf; font-size: .75rem; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--cream); }
.msg { max-width: 85%; padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; white-space: pre-line; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--green-700); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { display: inline-block; margin-top: .4rem; font-weight: 600; }
.chat-chips { display: flex; gap: .35rem; flex-wrap: wrap; padding: .6rem .8rem 0; background: var(--paper); }
.chat-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .7rem; font-size: .78rem; cursor: pointer; }
.chat-chips button:hover { border-color: var(--green-500); }
.chat-form { display: flex; gap: .4rem; padding: .7rem .8rem; } .chat-form input { padding: .55rem .7rem; }
.chat-form button { border: 0; background: var(--green-700); color: #fff; border-radius: 10px; padding: 0 .9rem; font-weight: 600; cursor: pointer; }
.chat-wa { display: block; text-align: center; background: #1f9d55; color: #fff; text-decoration: none; padding: .65rem; font-weight: 600; font-size: .9rem; }
.chat-wa:hover { background: #178046; }

/* ---------------- Admin ---------------- */
body.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--green-900) 240px, var(--cream) 240px); }
.highlight .form + .form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.side { background: var(--green-900); color: #fff; padding: 1.2rem; display: flex; flex-direction: column; gap: 1.6rem; position: sticky; top: 0; height: 100vh; }
.brand-light, .brand-light small { color: #fff; } .brand-light small { color: #a9bba9; }
.side nav { display: grid; gap: .2rem; flex: 1; align-content: start; }
.side nav a { color: #dfe8dc; text-decoration: none; padding: .6rem .8rem; border-radius: 10px; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.08); } .side nav a.on { background: var(--marigold); color: var(--green-900); }
.side .linklike { color: #a9bba9; }
.admin-main { padding: 1.6rem clamp(1rem, 3vw, 2.4rem); min-width: 0; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; align-items: start; }
.sticky { position: sticky; top: 1rem; }
.voucher { border-radius: 10px; border: 1px solid var(--line); max-height: 520px; margin: auto; }
.mini { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.is-off { opacity: .45; }
.month-nav { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 1.4rem; flex-wrap: wrap; } .month-nav strong { font-family: var(--display); font-size: 1.3rem; color: var(--green-900); }
.offer-slots { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.slot .grid3 { grid-template-columns: 1fr 1fr; } .slot .grid3 label:last-child { grid-column: 1 / -1; }
.slot-del { text-align: center; font-size: .85rem; }
.slot-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: var(--green-100); }
.admin-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.admin-gallery figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; } .admin-gallery figcaption { padding: .5rem .7rem 0; font-size: .85rem; }
.admin-gallery .row { padding: .4rem .7rem .7rem; justify-content: space-between; font-size: .85rem; }
.row-form { grid-template-columns: 1fr 1fr auto; align-items: end; }
.w-sm { max-width: 110px; }
@media (max-width: 900px) {
  body.admin { grid-template-columns: 1fr; background: var(--cream); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side nav { display: flex; flex-wrap: wrap; flex-basis: 100%; }
  .admin-grid, .row-form { grid-template-columns: 1fr; }
}
