/* =========================================================================
   PlantWikki — design system
   Botanical encyclopedia (green, serif) + marketplace (terracotta, sans)
   ========================================================================= */
:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #efece3;
  --surface-3: #e7e3d7;
  --ink: #17261d;
  --ink-2: #435349;
  --muted: #6f7c74;
  --line: #e0dbcd;
  --line-2: #d2ccbb;
  --green-950: #0d2418;
  --green-900: #143823;
  --green-800: #1b4a30;
  --green-700: #22603d;
  --green-600: #2d774c;
  --green-200: #cfe3d4;
  --green-100: #e6f0e8;
  --green-50: #f1f7f2;
  --market: #b4532a;
  --market-700: #93401d;
  --market-100: #f9ebe2;
  --market-50: #fcf5f0;
  --gold: #b7862a;
  --gold-100: #f6edd6;
  --danger: #b42318;
  --danger-100: #fde8e6;
  --warn: #9a6700;
  --warn-100: #fff4d6;
  --info-100: #e8f0fb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(23, 38, 29, .06), 0 1px 1px rgba(23, 38, 29, .04);
  --shadow: 0 2px 6px rgba(23, 38, 29, .06), 0 8px 24px rgba(23, 38, 29, .06);
  --shadow-lg: 0 10px 40px rgba(13, 36, 24, .16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  color-scheme: light;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--green-950); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
i, em { font-style: italic; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--green-900); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.ic { width: 18px; height: 18px; flex: none; }
.ic-lg { width: 22px; height: 22px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt { margin-top: 16px; } .mt-lg { margin-top: 32px; } .mb { margin-bottom: 16px; } .mb-lg { margin-bottom: 32px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sci { font-family: var(--serif); }
.sci i { font-style: italic; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(246, 244, 238, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--green-950); font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; flex: none; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--green-700), var(--green-950)); display: grid; place-items: center; color: #e8f3ea; }
.brand-mark svg { width: 19px; height: 19px; }
.header-search { flex: 1; max-width: 520px; position: relative; display: none; }
@media (min-width: 900px) { .header-search { display: block; } }
.nav { display: none; gap: 2px; align-items: center; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 550; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); color: var(--green-950); }
@media (min-width: 1060px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (min-width: 1060px) { .header-actions { margin-left: 0; } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--surface-2); color: var(--green-950); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; background: var(--market); border-radius: 50%; border: 2px solid var(--bg); }
.menu-toggle { display: inline-grid; }
@media (min-width: 1060px) { .menu-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 16px 16px; }
.mobile-nav.open { display: block; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a { display: block; padding: 11px 4px; text-decoration: none; color: var(--ink); font-weight: 550; border-bottom: 1px solid var(--line); }
.mobile-nav form { margin-bottom: 8px; }

/* ---------------------------------------------------------------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--green-600); color: var(--green-900); }
.btn-primary { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn-market { background: var(--market); border-color: var(--market); color: #fff; }
.btn-market:hover { background: var(--market-700); border-color: var(--market-700); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: #f1c4bf; }
.btn-danger:hover { background: var(--danger-100); border-color: var(--danger); color: var(--danger); }
.btn-sm { min-height: 34px; padding: 5px 11px; font-size: .86rem; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--green-100); border-color: var(--green-600); color: var(--green-900); }
.btn-link { background: none; border: 0; padding: 0; color: var(--green-700); font: inherit; cursor: pointer; text-decoration: underline; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=tel], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font: inherit; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(45, 119, 76, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); cursor: pointer; margin: 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-700); flex: none; }
.field { margin-bottom: 16px; }
.field-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.field-hint { color: var(--muted); font-size: .83rem; margin: 6px 0 0; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } .span-2 { grid-column: span 2; } .span-3 { grid-column: 1 / -1; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 18px; background: var(--surface); }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; padding: 0 6px; color: var(--green-950); }

/* ---------------------------------------------------------------- search box + autocomplete */
.searchbox { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-sm); }
.searchbox:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(45, 119, 76, .15); }
.searchbox .ic { margin-left: 12px; color: var(--muted); }
.searchbox input { border: 0; box-shadow: none !important; background: transparent; min-height: 44px; padding-left: 10px; }
.searchbox .btn { margin: 4px; }
.searchbox-lg { border-radius: 16px; }
.searchbox-lg input { min-height: 60px; font-size: 1.08rem; }
.searchbox-lg .btn { min-height: 50px; border-radius: 12px; padding: 0 22px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; display: none; text-align: left; }
.suggest.open { display: block; }
.suggest-group { padding: 8px 12px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.suggest a { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 9px 14px; text-decoration: none; color: var(--ink); }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--green-50); }
.suggest .s-name { font-family: var(--serif); font-style: italic; }
.suggest .s-common { color: var(--muted); font-size: .88rem; }
.suggest .s-hint { color: var(--gold); font-size: .78rem; }
.suggest .s-buy { color: var(--market); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.suggest .s-all { border-top: 1px solid var(--line); font-weight: 600; color: var(--green-700); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: #eef6f0; background: radial-gradient(1100px 500px at 85% -10%, rgba(183, 134, 42, .28), transparent 60%), radial-gradient(900px 600px at 0% 120%, rgba(45, 119, 76, .55), transparent 60%), linear-gradient(160deg, var(--green-900), var(--green-950)); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1.2'%3E%3Cpath d='M20 140c10-40 40-70 90-90M40 130c20-10 35-30 45-55M70 120c15-5 30-20 40-40'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 56px 0 64px; max-width: 860px; }
@media (min-width: 768px) { .hero-inner { padding: 88px 0 96px; } }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); margin-bottom: 14px; }
.hero h1 span { display: block; color: #d9c48d; }
.hero p.lead { font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem); color: #cfe0d4; max-width: 640px; margin-bottom: 26px; }
.hero .searchbox { border: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chips a { color: #e3eee6; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 999px; font-size: .88rem; text-decoration: none; }
.hero-chips a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; color: #b9cfc0; font-size: .9rem; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: #fff; line-height: 1.1; }
.pillars { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: -34px; position: relative; z-index: 2; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.pillar .pi { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); flex: none; }
.pillar.market .pi { background: var(--market-100); color: var(--market); }
.pillar h3 { margin-bottom: 2px; font-size: 1.05rem; }
.pillar p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* ---------------------------------------------------------------- sections */
.section { padding: 44px 0; }
.section-sm { padding: 26px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green-700); margin-bottom: 6px; display: inline-flex; gap: 6px; align-items: center; }
.eyebrow.market { color: var(--market); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.plant-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.plant-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); color: inherit; }
.thumb { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dfe9e0, #c8d9cb); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(27, 74, 48, .35); background: radial-gradient(circle at 30% 20%, #eef4ee, #cfdfd2 70%); }
.thumb .ph svg { width: 44px; height: 44px; }
.thumb .credit { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .45); color: #fff; font-size: .62rem; padding: 2px 6px; border-radius: 5px; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .tag-float { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.plant-card .body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.plant-card .name { font-family: var(--serif); font-size: 1.08rem; line-height: 1.25; color: var(--green-950); }
.plant-card .common { color: var(--ink-2); font-size: .9rem; }
.plant-card .meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.plant-card .meta span { display: inline-flex; gap: 4px; align-items: center; }
.plant-card .meta .ic { width: 14px; height: 14px; }
.plant-card .foot { margin-top: auto; padding-top: 10px; }
.buy-pill { display: inline-flex; gap: 6px; align-items: center; background: var(--market-50); color: var(--market-700); border: 1px solid #f0d5c5; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 650; }
.buy-pill.none { background: var(--surface-2); color: var(--muted); border-color: var(--line); font-weight: 550; }
.matched { font-size: .76rem; color: var(--gold); }

.badge { display: inline-flex; gap: 4px; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 650; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.badge-green { background: var(--green-100); color: var(--green-800); border-color: var(--green-200); }
.badge-market { background: var(--market-100); color: var(--market-700); border-color: #f0d5c5; }
.badge-gold { background: var(--gold-100); color: #7a5713; border-color: #ead9ab; }
.badge-warn { background: var(--warn-100); color: var(--warn); border-color: #f2df9f; }
.badge-danger { background: var(--danger-100); color: var(--danger); border-color: #f4c7c2; }
.badge-sample { background: #eef0ff; color: #3d3fa8; border-color: #d4d7fb; }
.badge-solid { background: rgba(13, 36, 24, .78); color: #fff; border-color: transparent; }
.verified { color: var(--green-700); display: inline-flex; gap: 3px; align-items: center; font-weight: 650; font-size: .82rem; }
.verified .ic { width: 15px; height: 15px; }

/* category tiles */
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 130px; padding: 16px; border-radius: var(--radius); text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--green-700), var(--green-950)); box-shadow: var(--shadow-sm); transition: transform .15s; }
.cat-tile:nth-child(3n+2) { background: linear-gradient(160deg, #6a7d3a, #2e3b16); }
.cat-tile:nth-child(3n+3) { background: linear-gradient(160deg, #a2552f, #4f2512); }
.cat-tile:nth-child(4n+4) { background: linear-gradient(160deg, #3d6f78, #15343a); }
.cat-tile:hover { transform: translateY(-2px); color: #fff; }
.cat-tile .ci { position: absolute; right: 14px; top: 14px; opacity: .5; }
.cat-tile .ci svg { width: 34px; height: 34px; }
.cat-tile strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.cat-tile span { font-size: .8rem; opacity: .85; }

/* ---------------------------------------------------------------- listings (marketplace) */
.market-zone { background: linear-gradient(180deg, var(--market-50), #fffaf6); border: 1px solid #f0dccd; border-radius: calc(var(--radius) + 4px); padding: 20px; }
@media (min-width: 768px) { .market-zone { padding: 26px 28px; } }
.market-zone h2 { color: #4a1d0a; }
.listing { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; align-items: start; position: relative; }
@media (min-width: 720px) { .listing { grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; padding: 14px; } }
.listing .lthumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
@media (min-width: 720px) { .listing .lthumb { width: 92px; height: 92px; } }
.listing .lthumb img { width: 100%; height: 100%; object-fit: cover; }
.listing .lthumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(27, 74, 48, .35); }
.listing .ltitle { font-weight: 650; color: var(--ink); text-decoration: none; display: block; line-height: 1.3; }
.listing .ltitle:hover { color: var(--green-800); }
.listing .lsub { color: var(--ink-2); font-size: .88rem; margin-top: 2px; }
.listing .lmeta { display: flex; gap: 6px 12px; flex-wrap: wrap; margin-top: 6px; color: var(--muted); font-size: .8rem; align-items: center; }
.listing .lmeta span { display: inline-flex; gap: 4px; align-items: center; }
.listing .lmeta .ic { width: 14px; height: 14px; }
.listing .lbuy { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 10px; }
@media (min-width: 720px) { .listing .lbuy { grid-column: auto; flex-direction: column; align-items: flex-end; border: 0; padding: 0; gap: 8px; min-width: 150px; } }
.price { font-family: var(--sans); font-weight: 750; font-size: 1.32rem; color: var(--market-700); letter-spacing: -.01em; }
.price small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.avail { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 650; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail-in_stock { color: #1f7a45; } .avail-limited { color: #b07400; } .avail-preorder { color: #2f62b5; } .avail-sold_out { color: #8a8f8b; }
.sponsored-flag { position: absolute; top: -9px; left: 14px; background: var(--gold); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; }
.listing.is-sponsored { border-color: #e7cf98; }
.listing-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.listing-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.listing-card .row-between { margin-top: auto; padding-top: 8px; }

/* nursery */
.nursery-card { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.nursery-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); color: inherit; }
.logo { width: 56px; height: 56px; border-radius: 12px; background: var(--green-100); color: var(--green-800); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo-lg { width: 88px; height: 88px; font-size: 2rem; border-radius: 18px; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.nursery-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.services { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.store-hero { position: relative; min-height: 180px; background: linear-gradient(140deg, var(--green-800), var(--green-950)); background-size: cover; background-position: center; }
.store-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .35)); }
.store-head { display: flex; gap: 18px; align-items: flex-end; margin-top: -44px; position: relative; z-index: 2; flex-wrap: wrap; }
.store-head .info { padding-top: 50px; flex: 1; min-width: 240px; }

/* ---------------------------------------------------------------- search page */
.search-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .search-layout { grid-template-columns: 270px minmax(0, 1fr); } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 16px; align-self: start; }
@media (min-width: 980px) { .filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; } }
.filters details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.filters details:last-of-type { border-bottom: 0; }
.filters summary { cursor: pointer; font-weight: 650; font-size: .93rem; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; }
.filters details[open] summary::after { content: "–"; }
.filters .opts { display: grid; gap: 8px; padding: 8px 0 4px; }
.filters .opts .check { font-size: .9rem; }
.filters .count { color: var(--muted); font-size: .8rem; margin-left: auto; }
.filter-toggle { display: inline-flex; }
@media (min-width: 980px) { .filter-toggle { display: none; } }
.filters-wrap { display: none; }
.filters-wrap.open { display: block; }
@media (min-width: 980px) { .filters-wrap { display: block; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--ink-2); font-weight: 650; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a .n { background: var(--surface-2); color: var(--muted); padding: 1px 8px; border-radius: 999px; font-size: .78rem; }
.tabs a[aria-current="page"] { color: var(--green-900); border-color: var(--green-700); }
.tabs a.tab-market[aria-current="page"] { color: var(--market-700); border-color: var(--market); }
.tabs a.tab-market .n { background: var(--market-100); color: var(--market-700); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--green-50); border: 1px solid var(--green-200); color: var(--green-900); font-size: .84rem; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--green-600); color: var(--green-950); }
.chip .ic { width: 13px; height: 13px; }
.chip-plain { background: var(--surface); border-color: var(--line); color: var(--ink-2); font-weight: 550; }
.understood { background: var(--surface); border: 1px dashed var(--green-200); border-radius: 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); margin-bottom: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar select { width: auto; min-height: 38px; padding: 6px 10px; font-size: .9rem; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.view-toggle a { display: inline-grid; place-items: center; width: 40px; height: 38px; color: var(--muted); }
.view-toggle a[aria-current="true"] { background: var(--green-100); color: var(--green-900); }
.map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); background: #dde7df; overflow: hidden; position: relative; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; }
.empty { text-align: center; padding: 44px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty > .ic { width: 36px; height: 36px; color: var(--muted); margin: 0 auto 10px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination [aria-current="page"] { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.list-view .plant-card { flex-direction: row; }
.list-view .plant-card .thumb { width: 130px; aspect-ratio: auto; flex: none; }
.list-view.grid { grid-template-columns: 1fr; }
.location-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-bottom: 14px; font-size: .9rem; }
.location-bar input { width: 110px; min-height: 36px; padding: 6px 10px; }
.location-bar .btn { min-height: 36px; }

/* ---------------------------------------------------------------- plant page */
.breadcrumbs { font-size: .84rem; color: var(--muted); padding: 14px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-800); text-decoration: underline; }
.plant-hero { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 18px 0 30px; }
@media (min-width: 960px) { .plant-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
.gallery .main { aspect-ratio: 4 / 3; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: linear-gradient(135deg, #dfe9e0, #c8d9cb); position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { width: 68px; height: 68px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex: none; background: var(--surface-2); }
.gallery .thumbs button[aria-pressed="true"] { border-color: var(--green-700); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: .75rem; color: var(--muted); margin-top: 6px; }
.plant-title .sci-h { font-family: var(--serif); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.8rem); line-height: 1.1; margin: 4px 0 4px; color: var(--green-950); font-weight: 600; }
.plant-title .author { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 400; }
.plant-title .common-h { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 10px; }
.aka { font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; }
.aka i { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { background: var(--surface); padding: 12px 14px; }
.fact dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; display: flex; gap: 5px; align-items: center; }
.fact dt .ic { width: 14px; height: 14px; color: var(--green-700); }
.fact dd { margin: 3px 0 0; font-weight: 650; font-size: .95rem; color: var(--ink); }
.buy-summary { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--market-50); border: 1px solid #f0d5c5; border-radius: var(--radius); padding: 14px 16px; }
.buy-summary .big { font-size: 1.05rem; font-weight: 700; color: var(--market-700); }
.subnav { position: sticky; top: 64px; z-index: 30; background: rgba(246, 244, 238, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 12px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--green-900); border-color: var(--green-600); }
.subnav a.market { color: var(--market-700); }
.content-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); padding: 30px 0; }
@media (min-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.prose { font-size: 1.02rem; color: var(--ink); }
.prose p { margin-bottom: 1em; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.care-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.care { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.care h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.care h3 .ic { color: var(--green-700); }
.care p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.kv { width: 100%; border-collapse: collapse; font-size: .92rem; }
.kv th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px 8px 0; vertical-align: top; width: 42%; border-bottom: 1px solid var(--line); }
.kv td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .9rem; border: 1px solid; }
.notice .ic { margin-top: 2px; }
.notice-review { background: var(--gold-100); border-color: #ead9ab; color: #6b4b10; }
.notice-info { background: var(--info-100); border-color: #cbdcf3; color: #24456f; }
.notice-sample { background: #eef0ff; border-color: #d4d7fb; color: #33358e; }
.tox-toxic { color: var(--danger); }
.tox-non_toxic { color: var(--green-700); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.side-card h3 { font-size: 1rem; margin-bottom: 10px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { text-decoration: none; }
.sources li { font-size: .82rem; color: var(--ink-2); margin-bottom: 6px; }
.notify-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* ---------------------------------------------------------------- flash */
.flash { margin: 16px 0 0; }
.flash .notice { box-shadow: var(--shadow-sm); }
.notice-success { background: #e9f6ee; border-color: #bfe3cc; color: #17592f; }
.notice-error { background: var(--danger-100); border-color: #f4c7c2; color: #8d1c13; }
.notice-warning { background: var(--warn-100); border-color: #f2df9f; color: #6e4a00; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--green-950); color: #b7c9bd; margin-top: 60px; padding: 48px 0 28px; font-size: .92rem; }
.site-footer a { color: #dbe8df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: .82rem; }

/* ---------------------------------------------------------------- dashboards (portal + admin + account) */
.dash { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 64px); }
@media (min-width: 1000px) { .dash { grid-template-columns: 250px minmax(0, 1fr); } }
.dash-side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; }
@media (max-width: 999px) { .dash-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; } .dash-side nav { display: flex; overflow-x: auto; gap: 4px; } .dash-side .side-label, .dash-side .side-extra { display: none; } }
.dash-side nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .93rem; white-space: nowrap; }
.dash-side nav a:hover { background: var(--surface-2); color: var(--green-950); }
.dash-side nav a[aria-current="page"] { background: var(--green-100); color: var(--green-900); }
.dash-side nav a .n { margin-left: auto; background: var(--market); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 16px 12px 6px; }
.dash-main { padding: 22px 16px 60px; min-width: 0; }
@media (min-width: 768px) { .dash-main { padding: 28px 32px 60px; } }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0; }
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .v { font-size: 1.7rem; font-weight: 750; font-family: var(--sans); color: var(--green-950); letter-spacing: -.02em; line-height: 1.1; }
.kpi .l { color: var(--muted); font-size: .82rem; font-weight: 600; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 11px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fbfaf6; }
table.data input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--green-700); }
.bulkbar { position: sticky; bottom: 12px; z-index: 20; display: none; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--green-950); color: #fff; padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-lg); margin-top: 14px; }
.bulkbar.show { display: flex; }
.bulkbar select, .bulkbar input { width: auto; min-height: 36px; padding: 6px 10px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border: 0; }
.checklist .done { color: var(--green-700); }
.checklist .todo { width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; display: inline-block; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 10px; }
.bars span { flex: 1; background: var(--green-600); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.bars span:hover { opacity: 1; }
.picker { position: relative; }
.picker-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; max-height: 320px; overflow: auto; display: none; }
.picker-results.open { display: block; }
.picker-results button { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; }
.picker-results button:hover, .picker-results button[aria-selected="true"] { background: var(--green-50); }
.picked { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--green-50); border: 1px solid var(--green-200); border-radius: 12px; }
.auth-wrap { max-width: 440px; margin: 40px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 28px; box-shadow: var(--shadow); }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan-card.featured { border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.plan-card .amt { font-size: 2rem; font-weight: 750; color: var(--green-950); }
.plan-card ul { padding-left: 18px; margin: 0; color: var(--ink-2); font-size: .93rem; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -12px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.diff-pre { font-family: var(--mono); font-size: .78rem; background: var(--surface-2); padding: 10px; border-radius: 8px; white-space: pre-wrap; max-height: 260px; overflow: auto; }

/* catalog (standalone storefront) */
.catalog-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 0; }

@media print {
  .site-header, .site-footer, .subnav, .filters, .btn { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* image fallbacks (missing/blocked remote photos) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(27, 74, 48, .32); background: radial-gradient(circle at 30% 20%, #eef4ee, #cfdfd2 70%); }
.ph svg { width: 44px; height: 44px; }
.gallery .main .ph { position: absolute; inset: 0; }
.gallery .main .ph svg { width: 72px; height: 72px; }
.gallery .thumbs .ph svg { width: 24px; height: 24px; }
.listing .lmeta a { white-space: nowrap; }

/* ---------------------------------------------------------------- layout safety (mobile) */
html, body { overflow-x: clip; }
img, svg, video, iframe, canvas { max-width: 100%; }
.content-grid > *, .search-layout > *, .plant-hero > *, .dash > *, .grid > *, .form-grid > * { min-width: 0; }
.prose, .listing, .listing-card, .side-card, .notice, .store-head, .card { overflow-wrap: anywhere; }
.prose pre, .prose table { max-width: 100%; overflow-x: auto; display: block; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.tabs { max-width: 100%; }
.store-head { flex-wrap: wrap; }
@media (max-width: 719px) {
  .map { height: 300px; }
  .listing .lbuy .btn { white-space: nowrap; }
  .tabs a { padding: 10px 10px; }
  .row-between { flex-wrap: wrap; gap: 8px; }
  table.data td, table.data th { padding: 9px 8px; }
  .listing .lmeta > span { flex-wrap: wrap; max-width: 100%; }
}
@media (max-width: 559px) {
  .grid-4:has(> .plant-card), .grid-3:has(> .plant-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plant-card .body { padding: 10px 11px 12px; }
  .plant-card .body * { font-size: .92em; }
}

/* ---------------------------------------------------------------- collectors' market + my plants */
.market-card .name { font-family: var(--sans); font-weight: 650; font-size: 1rem; }
.market-gallery .main { width: 100%; max-height: 560px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius); display: block; }
.market-gallery .strip { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.market-gallery .strip button { border: 1px solid var(--line); border-radius: 8px; padding: 0; background: none; cursor: pointer; flex: none; overflow: hidden; }
.market-gallery .strip img { width: 72px; height: 72px; object-fit: cover; display: block; }
.photo-picks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); }
.photo-picks .pick { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.photo-picks img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.thread-row { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.thread-row.unread { border-color: var(--market); }
.thread-row .tthumb { width: 56px; height: 56px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.thread-row .tthumb img { width: 100%; height: 100%; object-fit: cover; }
.thread-row .tbody { flex: 1; min-width: 0; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: min(85%, 560px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--green-50); border-color: var(--green-200); border-radius: 14px 14px 4px 14px; }
.log-list { list-style: none; margin: 14px 0 0; padding: 0; }
.log-list li { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
form.inline { display: inline; }

/* ---------------------------------------------------------------- affiliate supply boxes (quiet, on-brand) */
.aff .aff-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.aff .aff-head h3 { margin: 0 0 8px; }
.aff-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; flex: none; }
.aff-list { list-style: none; margin: 0; padding: 0; }
.aff-list li + li { border-top: 1px solid var(--line); }
.aff-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--ink); font-size: .92rem; min-width: 0; }
.aff-list a:hover .aff-txt { color: var(--green-800); text-decoration: underline; }
.aff-list img, .aff-ic { width: 40px; height: 40px; border-radius: 8px; flex: none; object-fit: contain; background: var(--surface-2); }
.aff-ic { display: grid; place-items: center; color: var(--green-700); }
.aff-ic .ic { width: 18px; height: 18px; }
.aff-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.aff-go { flex: none; display: inline-flex; gap: 4px; align-items: center; font-size: .75rem; color: var(--muted); }
.aff-go .ic { width: 12px; height: 12px; }
.aff-disc { margin: 8px 0 0; font-size: .72rem; color: var(--muted); }
.aff-strip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.aff-strip .aff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0 18px; }
.aff-strip .aff-list li + li { border-top: 0; }
@media (max-width: 719px) { .aff-strip .aff-list li + li { border-top: 1px solid var(--line); } }

/* ---------------------------------------------------------------- admin traffic charts */
.tbars { display: flex; align-items: flex-end; gap: 3px; height: 160px; border-bottom: 1px solid var(--line); }
.tbar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.tbar span { display: block; width: 100%; background: var(--green-600); border-radius: 3px 3px 0 0; }
.tbar:hover span { background: var(--green-800); }
.hbar { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin-bottom: 4px; font-size: .9rem; z-index: 0; }
.hbar i { position: absolute; inset: 0 auto 0 0; background: var(--green-50); border-radius: 6px; z-index: -1; }
.hbar .hv { color: var(--muted); }
