/* AquariumPlantDB design system.
 *
 * Source of truth: the design handoff in design/handoff (tokens, type, components).
 * Live examples of every class below: /design/ (only served when DEBUG=True).
 *
 * Layout of this file
 *   1  Fonts            5  Header, menus        9  Cards, plant cards      13 Gauges, fact rows
 *   2  Tokens           6  Footer               10 Forms                   14 Page furniture
 *   3  Base             7  Toasts               11 Tables & lists          15 Mobile bottom bar
 *   4  Layout helpers   8  Buttons, chips,      12 Tabs, pagination,       16 Utilities
 *                          badges                  avatars, empty states
 * Page-specific rules live in css/pages/*.css and only add layout, never new colours.
 */

/* ------------------------------------------------------------------ 1 Fonts */
/* Self-hosted (SIL OFL, see ../fonts/OFL.txt). Only the subsets a page needs are downloaded. */
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;
  src:url("../fonts/figtree-latin-ext-wght-normal.eca8d8b337ff.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;
  src:url("../fonts/figtree-latin-wght-normal.202cfb54d4e6.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-style:italic;font-weight:300 900;font-display:swap;
  src:url("../fonts/figtree-latin-ext-wght-italic.86b3f157cf65.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Figtree";font-style:italic;font-weight:300 900;font-display:swap;
  src:url("../fonts/figtree-latin-wght-italic.61af1a2947a4.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/ibm-plex-mono-latin-ext-400-normal.8450d5944de2.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/ibm-plex-mono-latin-400-normal.79936b18df9f.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;
  src:url("../fonts/ibm-plex-mono-latin-ext-600-normal.f2fe87d55f72.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;
  src:url("../fonts/ibm-plex-mono-latin-600-normal.5a2ce7798732.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ------------------------------------------------------------------ 2 Tokens */
/* Light is the default; data-x="dark" forces dark; data-x="system" follows the device. */
:root,html[data-x=light]{
  --bg:#e8f2f3; --card:#fff; --tile:#f1f7f8; --fg:#13343b; --muted:#4c6a70; --line:#d3e3e5;
  --accent:#0f7c86; --accent-fg:#fff; --soft:#d4ecee; --soft-fg:#0b5c63;
  --warn:#8a5200; --warn-soft:#f6e7cc; --bad:#b3261e; --bad-soft:#f8e0dc; --bad-fg:#fff;
  --p1:#cfe3e5; --p2:#c3dbde; --tick:rgba(19,52,59,.18);
  color-scheme:light;
}
html[data-x=dark]{
  --bg:#0e1311; --card:#151c19; --tile:#1b231f; --fg:#d7e2dc; --muted:#8a9a91; --line:#2a3530;
  --accent:#9be564; --accent-fg:#0e1311; --soft:#1f2e22; --soft-fg:#b8f08c;
  --warn:#e8b45e; --warn-soft:#382a12; --bad:#ff928a; --bad-soft:#3b1a17; --bad-fg:#1a0d0b;
  --p1:#1c2520; --p2:#171f1b; --tick:rgba(215,226,220,.18);
  color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  html[data-x=system]{
    --bg:#0e1311; --card:#151c19; --tile:#1b231f; --fg:#d7e2dc; --muted:#8a9a91; --line:#2a3530;
    --accent:#9be564; --accent-fg:#0e1311; --soft:#1f2e22; --soft-fg:#b8f08c;
    --warn:#e8b45e; --warn-soft:#382a12; --bad:#ff928a; --bad-soft:#3b1a17; --bad-fg:#1a0d0b;
    --p1:#1c2520; --p2:#171f1b; --tick:rgba(215,226,220,.18);
    color-scheme:dark;
  }
}
:root{
  --font:"Figtree",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --r-sm:12px; --r-md:18px; --r-lg:24px; --r-xl:28px; --r-pill:999px;
  --shadow-1:0 1px 3px rgba(0,0,0,.12); --shadow-2:0 12px 32px rgba(0,0,0,.18); --shadow-3:0 24px 60px rgba(0,0,0,.3);
  --page-max:1240px; --gutter:32px; --header-h:68px;
}
@media (max-width:720px){:root{--gutter:16px}}

/* ------------------------------------------------------------------ 3 Base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 16px)}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);
  font:400 16px/1.5 var(--font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
main{flex:1 0 auto;width:100%}
a{color:inherit}
p{margin:0 0 1em}
h1,h2,h3,h4{margin:0;font-weight:800;letter-spacing:-.02em;line-height:1.15}
h1{font-size:34px;letter-spacing:-.025em}
h2{font-size:24px}
h3{font-size:18px}
ul,ol{margin:0;padding:0}
hr{border:0;border-top:1px solid var(--line);margin:24px 0}
img,svg,video{max-width:100%}
img{display:block;height:auto}
i,em{font-style:italic}
small{font-size:13px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled,.btn[aria-disabled=true]{opacity:.45;cursor:not-allowed;filter:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
::selection{background:var(--soft);color:var(--soft-fg)}
table{border-collapse:collapse;width:100%}
details>summary{cursor:pointer}
[hidden]{display:none!important}
.icon{display:block;flex:none}

/* Scientific names: italic genus + species, cultivar in curly quotes, upright (see the |sci filter) */
.sci,i.sci{font-style:italic}
.cv{font-style:normal;font-weight:inherit}
.muted{color:var(--muted)}
.mono{font-family:var(--mono)}
.kicker{font:600 11px/1.2 var(--mono);letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
.kicker--soft{color:inherit}
.lead{font-size:18px;line-height:1.5;color:var(--muted)}
.prose{font-size:16px;line-height:1.6}
.prose p:last-child{margin-bottom:0}
.prose a{color:var(--soft-fg);font-weight:600}
a.link,.link{color:var(--soft-fg);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:16px;top:-64px;z-index:100;padding:12px 18px;border-radius:var(--r-pill);background:var(--fg);color:var(--bg);font-weight:600;text-decoration:none}
.skip:focus{top:12px}

/* ------------------------------------------------------------------ 4 Layout helpers */
.wrap{width:100%;max-width:var(--page-max);margin-inline:auto;padding-inline:var(--gutter)}
main.wrap{padding-top:20px;padding-bottom:56px}
.stack{display:flex;flex-direction:column;gap:var(--gap,16px)}
.cluster{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap,8px)}
.spread{display:flex;align-items:center;justify-content:space-between;gap:var(--gap,12px);flex-wrap:wrap}
.grow{flex:1 1 auto;min-width:0}
/* two columns that stack on small screens: .split > * ; ratio via --cols */
.split{display:grid;grid-template-columns:var(--cols,1fr 1fr);gap:var(--gap,24px);align-items:start}
@media (max-width:860px){.split{grid-template-columns:minmax(0,1fr)}}
.split>*{min-width:0}

/* ------------------------------------------------------------------ 5 Header, menus */
.site-header{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line)}
.site-header__bar{display:flex;align-items:center;gap:16px;min-height:var(--header-h)}
.brand{display:flex;align-items:center;gap:9px;color:var(--fg);text-decoration:none;flex:none}
.brand__word{font-weight:800;font-size:19.84px;letter-spacing:-.02em;white-space:nowrap}
.logo{display:block;flex:none}
.logo__tile{fill:var(--accent)}
.logo__leaf{fill:var(--accent-fg)}
.logo__vein{stroke:var(--accent);stroke-width:1.7;stroke-linecap:round;fill:none}

.searchbar{position:relative;flex:1 1 200px;min-width:180px;max-width:420px;display:flex;align-items:center;gap:8px;
  padding:0 6px 0 16px;min-height:46px;border-radius:var(--r-pill);background:var(--card)}
.searchbar:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.searchbar input{flex:1;min-width:0;height:44px;border:0;background:transparent;font:16px var(--font);color:var(--fg);outline:none}
.searchbar input::placeholder{color:var(--muted);opacity:1}
.searchbar input::-webkit-search-cancel-button{display:none}

.site-nav{margin-left:auto;display:flex;align-items:center;gap:4px}
.navlink{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:var(--r-pill);
  font-weight:600;font-size:15px;color:var(--fg);text-decoration:none;white-space:nowrap}
.navlink:hover{background:var(--card)}
.navlink[aria-current=page]{background:var(--card)}
.count{display:inline-block;padding:1px 8px;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font:600 12px/1.5 var(--mono)}
.count--bad{background:var(--bad);color:var(--bad-fg)}
.count--muted{background:var(--tile);color:var(--muted)}
.iconbtn{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;border-radius:50%;background:var(--card);color:var(--fg);text-decoration:none;padding:0}
.iconbtn:hover{filter:brightness(.97)}
.iconbtn--tile{background:var(--tile)}
.iconbtn--sm{width:36px;height:36px}
.iconbtn--dark{background:var(--fg);color:var(--bg)}

/* theme toggle shows the icon for the mode you would switch to */
.theme-toggle .icon-moon{display:none}
html[data-x=dark] .theme-toggle .icon-sun{display:none}
html[data-x=dark] .theme-toggle .icon-moon{display:block}
@media (prefers-color-scheme:dark){
  html[data-x=system] .theme-toggle .icon-sun{display:none}
  html[data-x=system] .theme-toggle .icon-moon{display:block}
}

.usermenu{position:relative}
.usermenu>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 4px;border-radius:var(--r-pill);
  background:var(--card);font-weight:600;font-size:14px;list-style:none;user-select:none}
.usermenu>summary::-webkit-details-marker{display:none}
.usermenu[open]>summary .icon-chev{transform:rotate(180deg)}
.usermenu__panel{position:absolute;right:0;top:52px;z-index:30;width:230px;padding:8px;border-radius:var(--r-md);
  background:var(--card);box-shadow:var(--shadow-2);display:flex;flex-direction:column;gap:2px}
.menuitem{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:0 12px;
  border:0;border-radius:var(--r-sm);background:transparent;color:var(--fg);font-weight:600;font-size:15px;text-align:left;text-decoration:none}
.menuitem:hover{background:var(--tile)}
.menuitem__l{display:flex;align-items:center;gap:8px}
.menuitem--bad{color:var(--bad)}
.menu-sep{height:1px;margin:4px 8px;background:var(--line);border:0}

.avatar{position:relative;display:inline-grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;
  background:var(--soft);color:var(--soft-fg);font-weight:800;font-size:13px;line-height:1;overflow:hidden}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.avatar--sm{width:30px;height:30px;font-size:12px}
.avatar--md{width:44px;height:44px;font-size:15px}
.avatar--lg{width:56px;height:56px;font-size:18px}
.avatar--xl{width:96px;height:96px;font-size:34px}
.avatar--warn{background:var(--warn-soft);color:var(--warn)}
.avatar-wrap{position:relative;display:inline-flex}
.avatar__badge{position:absolute;top:-4px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bad);color:var(--bad-fg);
  font:600 11px/18px var(--mono);text-align:center;box-shadow:0 0 0 2px var(--card)}
.unitsrow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px 6px 12px;margin:0}
.unitsrow__l{font-weight:600;font-size:15px}
.unitsrow .tabs{flex:none}
.unitsrow .tab{border:0;cursor:pointer;font-family:inherit}

.mobile-only{display:none!important}
.mobile-nav{border-top:1px solid var(--line);background:var(--card);padding:12px var(--gutter) 16px;max-height:calc(100vh - var(--header-h));max-height:calc(100dvh - var(--header-h));overflow-y:auto}
.mobile-nav .searchbar{max-width:none;background:var(--tile);margin-bottom:8px}
.mobile-nav__links{display:flex;flex-direction:column;gap:2px}
@media (max-width:1180px){.usermenu__name{display:none}.usermenu>summary{padding-right:10px}
  .navlink{padding:0 10px}.site-nav{gap:2px}.site-header__bar>.searchbar{min-width:140px}}
@media (max-width:1023px){
  .site-header__bar>.searchbar,.site-nav{display:none}
  .mobile-only{display:grid!important}
  .site-header__bar{gap:8px}
  .site-header__mobile{margin-left:auto;display:flex;gap:8px}
}
@media (min-width:1024px){.site-header__mobile,.mobile-nav{display:none!important}}

/* the home page has its own big search, so the header one steps aside */
body.page-home .site-header__bar>.searchbar,body.page-home .site-header [data-nav-search]{display:none!important}

/* moderation sub-navigation (pill bar under the header on every moderator page) */
.modnav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:4px 0 16px;padding:6px;border-radius:var(--r-pill);
  background:var(--card);width:fit-content;max-width:100%}
.modnav__label{display:flex;align-items:center;gap:6px;padding:0 10px;font:600 11px/1 var(--mono);letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
.modnav a{display:flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border-radius:var(--r-pill);font-size:14px;font-weight:600;
  white-space:nowrap;text-decoration:none;color:var(--fg)}
.modnav a:hover{background:var(--tile)}
.modnav a[aria-current=page]{background:var(--fg);color:var(--bg)}
.modnav a[aria-current=page] .count{background:var(--bg);color:var(--fg)}
@media (max-width:720px){
  .modnav{width:auto;max-width:none;margin:0 calc(var(--gutter) * -1) 16px;padding:6px var(--gutter);border-radius:0;flex-wrap:nowrap;overflow-x:auto;
    position:sticky;top:var(--header-h);z-index:15;scrollbar-width:none}
  main.wrap:has(>.modnav:first-child){padding-top:0}
  .modnav::-webkit-scrollbar{display:none}
  .modnav__label{display:none}
}

/* site banner: an announcement under the header, kept until dismissed (admin panel > Site & emails) */
.sitebanner{background:var(--soft);color:var(--soft-fg);border-bottom:1px solid var(--line)}
.sitebanner--warn{background:var(--warn-soft);color:var(--warn)}
.sitebanner--bad{background:var(--bad-soft);color:var(--bad)}
.sitebanner__in{display:flex;align-items:center;gap:10px;padding-block:10px;font-size:14px;font-weight:600}
.sitebanner__text{flex:1;min-width:0;overflow-wrap:anywhere}
.sitebanner__text a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.sitebanner__x{display:grid;place-items:center;flex:none;width:44px;height:44px;margin-block:-8px;margin-right:-10px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.sitebanner__x:hover{background:rgba(0,0,0,.06)}

/* ------------------------------------------------------------------ 6 Footer */
.site-footer{margin-top:auto;border-top:1px solid var(--line);background:var(--card)}
.site-footer__cols{display:grid;grid-template-columns:minmax(0,4fr) repeat(3,minmax(0,2fr));gap:32px;padding-block:40px 24px}
.site-footer__brand{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.site-footer__brand p{margin:0;max-width:340px;font-size:15px;line-height:1.55;color:var(--muted)}
.langpick{display:flex;align-items:center;gap:8px;margin-top:4px;padding:0 6px 0 12px;min-height:44px;border-radius:var(--r-pill);background:var(--tile);color:var(--muted)}
.langpick select{min-height:44px;padding:0 8px;border:0;background:transparent;color:var(--fg);font:600 14px var(--font);cursor:pointer}
.site-footer__col{display:flex;flex-direction:column;gap:2px}
.site-footer__col h2{font:600 11px/1.2 var(--mono);letter-spacing:.02em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.site-footer__col a{align-self:flex-start;display:flex;align-items:center;min-height:36px;color:var(--fg);font-size:15px;font-weight:600;text-decoration:none}
.site-footer__col a:hover{text-decoration:underline;text-underline-offset:3px}
.site-footer__legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding-block:16px 32px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
@media (max-width:860px){
  .site-footer__cols{grid-template-columns:1fr 1fr;gap:24px}
  .site-footer__brand{grid-column:1 / -1}
}
@media (max-width:480px){.site-footer__cols{grid-template-columns:1fr}}

/* ------------------------------------------------------------------ 7 Toasts (Django messages) */
.toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:80;display:flex;flex-direction:column;gap:8px;
  align-items:center;width:max-content;max-width:calc(100vw - 32px);pointer-events:none}
body.has-bottombar .toasts{bottom:96px}
.toast{pointer-events:auto;display:flex;align-items:center;gap:10px;padding:12px 14px 12px 18px;border-radius:var(--r-pill);
  font-weight:600;font-size:15px;box-shadow:var(--shadow-2);background:var(--fg);color:var(--bg)}
.toast--info{background:var(--soft);color:var(--soft-fg)}
.toast--warning{background:var(--warn-soft);color:var(--warn)}
.toast--error{background:var(--bad);color:var(--bad-fg)}
/* success + info fade away by themselves (pure CSS); warnings and errors stay until dismissed */
.toast--success,.toast--info{animation:toast-out .35s ease 3.6s forwards}
.toast:hover,.toast:focus-within{animation-play-state:paused}
.toast__x{display:grid;place-items:center;width:28px;height:28px;flex:none;margin-left:2px;border:0;border-radius:50%;background:transparent;color:inherit;padding:0;opacity:.8}
.toast__x:hover{opacity:1;background:rgba(127,127,127,.2)}
@keyframes toast-out{to{opacity:0;visibility:hidden;transform:translateY(8px)}}
@media (prefers-reduced-motion:reduce){.toast--success,.toast--info{animation:toast-hide 0s linear 6s forwards}@keyframes toast-hide{to{visibility:hidden}}}

/* ------------------------------------------------------------------ 8 Buttons, chips, badges */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border:0;border-radius:var(--r-pill);
  background:var(--tile);color:var(--fg);font:600 15px/1.1 var(--font);text-decoration:none;white-space:nowrap;cursor:pointer}
.btn:hover{filter:brightness(.97)}
.btn--primary{background:var(--accent);color:var(--accent-fg)}
.btn--dark{background:var(--fg);color:var(--bg)}
.btn--soft{background:var(--soft);color:var(--soft-fg)}
.btn--card{background:var(--card);color:var(--fg)}
.btn--outline{background:var(--card);box-shadow:inset 0 0 0 1px var(--fg)}
.btn--danger{background:transparent;color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad)}
.btn--danger-solid{background:var(--bad);color:var(--bad-fg)}
.btn--warn{background:transparent;color:var(--warn);box-shadow:inset 0 0 0 1px var(--warn)}
.btn--lg{min-height:50px;padding:0 24px;font-size:16px}
.btn--sm{min-height:36px;padding:0 14px;font-size:14px}
.btn--block{display:flex;width:100%}
.btn--add{padding:0 14px 0 10px;font-weight:700;font-size:14px;gap:4px}
.btn--link{min-height:36px;padding:0;background:none;color:var(--soft-fg);font-weight:600}
.btn--quiet{min-height:36px;padding:0 4px;background:none;color:var(--muted);font-size:14px}
.btn-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}

.chip{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 14px;border:0;border-radius:var(--r-pill);
  background:var(--soft);color:var(--soft-fg);font:600 14px/1 var(--font);text-decoration:none;white-space:nowrap;cursor:pointer}
a.chip:hover,button.chip:hover{filter:brightness(.97)}
.chip--sm{min-height:32px;padding:0 12px;font-size:13px;font-weight:700}
.chip--tile{background:var(--tile);color:var(--fg)}
.chip--card{background:var(--card);color:var(--fg)}
.chip--on{background:var(--fg);color:var(--bg)}
.chip--static{cursor:default}
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.namechip{display:inline-block;padding:4px 12px;border-radius:var(--r-pill);background:var(--card);font-size:14px;font-weight:600}
.namechip small{color:var(--muted);font-weight:400;font-size:12px}

.tag{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border:0;border-radius:var(--r-pill);
  background:var(--fg);color:var(--bg);font:600 12px/1 var(--mono);text-decoration:none;text-transform:uppercase}

.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:var(--r-pill);font-size:13px;font-weight:700;line-height:1.2;
  background:var(--tile);color:var(--muted);white-space:nowrap}
.badge--pending,.badge--warn{background:var(--warn-soft);color:var(--warn)}
.badge--live,.badge--ok,.badge--accepted,.badge--resolved{background:var(--soft);color:var(--soft-fg)}
.badge--declined,.badge--bad,.badge--reverted,.badge--hidden{background:var(--bad-soft);color:var(--bad)}
.badge--sm{padding:2px 9px;font-size:12px}
.badge--mono{font:600 11px/1.4 var(--mono);padding:2px 9px}

/* ------------------------------------------------------------------ 9 Cards */
.card{padding:20px 22px;border-radius:var(--r-lg);background:var(--card)}
.card--xl{border-radius:var(--r-xl);padding:24px}
.card--flush{padding:0;overflow:hidden}
.card--soft{background:var(--soft);color:var(--soft-fg)}
.card--tile{background:var(--tile)}
.card--warn{background:var(--warn-soft);color:var(--warn)}
.card--bad{background:var(--bad-soft);color:var(--bad)}
.card__title{margin:0 0 8px;font-size:18px;font-weight:800}
.card--soft h2,.card--soft h3{color:var(--fg)}
.card--sel{box-shadow:inset 0 0 0 2px var(--accent)}
.stat{padding:18px 20px;border-radius:var(--r-lg);background:var(--card)}
.stat__n{display:block;font-size:34px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.stat--bad{background:var(--bad-soft);color:var(--bad)}
.stat--warn{background:var(--warn-soft);color:var(--warn)}
.stat--tile{background:var(--tile);padding:10px 12px;border-radius:var(--r-sm)}
.stat--tile .stat__n{font-size:22px}
.stat--tile small{color:var(--muted)}

/* striped placeholder used wherever a photo is missing (the design's "Ph2c") */
.ph{display:block;width:100%;aspect-ratio:var(--ratio,1/1);border-radius:var(--r,14px);flex:none;
  background:repeating-linear-gradient(135deg,var(--p1) 0 12px,var(--p2) 12px 24px)}
.ph--16x10{--ratio:16/10}
.ph--4x3{--ratio:4/3}

/* plant card: used in grids on home, browse, search, related plants */
.pgrid{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:16px}
@media (max-width:1000px){.pgrid{--n:3!important}}
@media (max-width:720px){.pgrid{--n:2!important;gap:12px}}
.pcard{display:flex;flex-direction:column;gap:10px;padding:10px 10px 14px;border-radius:22px;background:var(--card);color:var(--fg);text-decoration:none;min-width:0}
.pcard:hover .pcard__name{text-decoration:underline;text-underline-offset:3px}
.pcard__img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:16px}
.pcard .ph{--r:16px}
.pcard__body{padding:0 6px;width:100%}
.pcard__name{font-size:16px;font-weight:700;line-height:1.25}
.pcard__common{font-size:14px;color:var(--muted);margin-top:2px}
.pcard__meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;margin-top:10px;padding-top:8px;border-top:1px solid var(--line);
  font:11px/1.4 var(--mono);color:var(--muted);text-transform:uppercase}
.pcard__credit{margin-top:4px;font:11px/1.4 var(--mono);color:var(--muted)}

/* compact row: thumbnail + names + chevron (cultivars, close matches, more from genus) */
.plist{display:flex;flex-direction:column}
.prow{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line);
  color:var(--fg);text-decoration:none}
.prow:first-child{border-top:0}
.prow:hover .prow__name{text-decoration:underline;text-underline-offset:3px}
.prow__img{width:48px;height:48px;object-fit:cover;border-radius:12px}
.prow .ph{--r:12px;width:48px}
.prow__name{display:block;font-size:15px;font-weight:700}
.prow__sub{display:block;font-size:13px;color:var(--muted)}
.prow--lg{grid-template-columns:60px minmax(0,1fr) 18px}
.prow--lg .prow__img,.prow--lg .ph{width:60px;height:60px;--r:14px}

/* ------------------------------------------------------------------ 10 Forms */
.form{display:flex;flex-direction:column;gap:16px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>label,.field__label,.legend{font-size:14px;font-weight:700}
.field__help{font-size:13px;color:var(--muted);font-weight:400}
.field__error,.errorlist{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;font-size:13px;font-weight:600;color:var(--bad)}
.field__error li,.errorlist li{display:flex;gap:6px;align-items:center}
.field__error li::before,.errorlist li::before{content:"";flex:none;width:14px;height:14px;background:currentColor;
  -webkit-mask:var(--alert-icon) center/contain no-repeat;mask:var(--alert-icon) center/contain no-repeat}
:root{--alert-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3ZM12 9v4M12 17h.01'/%3E%3C/svg%3E")}
.input,
.field :where(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range])),
.field textarea{width:100%;min-height:48px;padding:0 14px;border-radius:14px;border:1px solid var(--line);background:var(--tile);
  font:400 16px/1.4 var(--font);color:var(--fg)}
.field textarea,textarea.input{min-height:80px;padding:12px 14px;font-size:15px;line-height:1.5;resize:vertical}
.field select,select.input{width:100%;min-height:44px;padding:0 12px;border-radius:var(--r-sm);border:1px solid var(--line);background:var(--tile);
  font:600 14px var(--font);color:var(--fg)}
.field input::placeholder,.field textarea::placeholder,.input::placeholder{color:var(--muted);opacity:.85}
.field input:focus,.field textarea:focus,.field select:focus,.input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.field.has-error input:not([type=checkbox]):not([type=radio]),.field.has-error textarea,.field.has-error select{border:2px solid var(--bad)}
.field input[type=number]{font-family:var(--mono);font-weight:600}
.field input[type=file]{min-height:0;padding:12px;border:2px dashed var(--line);background:transparent;font-size:14px;color:var(--muted)}
.field input[type=file]::file-selector-button{margin-right:12px;min-height:36px;padding:0 14px;border:0;border-radius:var(--r-pill);
  background:var(--soft);color:var(--soft-fg);font:700 13px var(--font);cursor:pointer}
input[type=checkbox],input[type=radio]{accent-color:var(--accent);margin:0}
input[type=checkbox]{width:20px;height:20px;flex:none}
.check{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:600;cursor:pointer}
.check--top{align-items:flex-start}
.check--top input{margin-top:2px}
.form-error,.alert{display:flex;gap:8px;align-items:center;padding:12px 14px;border-radius:14px;font-size:14px;font-weight:700}
.form-error,.alert--bad{background:var(--bad-soft);color:var(--bad)}
.form-error>ul{margin:0;padding:0;list-style:none}
.alert--warn{background:var(--warn-soft);color:var(--warn)}
.alert--info{background:var(--soft);color:var(--soft-fg)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:720px){.form-grid{grid-template-columns:minmax(0,1fr)}}
.form-grid .span-all{grid-column:1 / -1}
fieldset{border:0;margin:0;padding:0;min-width:0}
fieldset.card>legend,.legend{padding:0}

/* radio / checkbox groups rendered by Django widgets (wrapped in .choices) */
.choices>div{display:grid;gap:6px}
.choices label{display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:14px;background:var(--tile);
  font-size:15px;font-weight:600;cursor:pointer}
.choices label:has(input:checked){box-shadow:inset 0 0 0 2px var(--accent)}
.choices label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.choices input[type=radio]{width:18px;height:18px;flex:none}
.choices .hint{display:block;font-weight:400;font-size:13px;color:var(--muted)}
.choices .opt{display:flex;flex-direction:column}
.choices--cols>div{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.choices--plain label{padding:0;background:none;box-shadow:none!important}
/* segmented control: a row of pills with one selected */
.seg>div{display:flex;flex-wrap:wrap;gap:2px;padding:4px;border-radius:var(--r-pill);background:var(--tile);width:fit-content;max-width:100%}
.seg label{display:flex;align-items:center;min-height:38px;padding:0 16px;border-radius:var(--r-pill);background:transparent;font-size:14px;font-weight:600;cursor:pointer;box-shadow:none}
.seg input{position:absolute;opacity:0;width:1px;height:1px}
.seg label:has(input:checked){background:var(--fg);color:var(--bg);box-shadow:none}
.seg label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.seg--full>div{width:100%}
.seg--full label{flex:1;justify-content:center}

/* switch: a real checkbox drawn as a switch */
.switch{position:relative;display:block;flex:none;width:50px;height:30px}
.switch input{position:absolute;inset:-8px -6px;width:auto;height:auto;margin:0;opacity:0;cursor:pointer;z-index:1}
.switch__ui{position:absolute;inset:0;border-radius:var(--r-pill);background:var(--tile);box-shadow:inset 0 0 0 2px var(--muted);transition:background .15s,box-shadow .15s}
.switch__ui::after{content:"";position:absolute;top:6px;left:6px;width:18px;height:18px;border-radius:50%;background:var(--muted);transition:transform .15s,width .15s,height .15s,top .15s,left .15s,background .15s}
.switch input:checked+.switch__ui{background:var(--accent);box-shadow:none}
.switch input:checked+.switch__ui::after{top:4px;left:4px;width:22px;height:22px;background:var(--accent-fg);transform:translateX(20px)}
.switch input:focus-visible+.switch__ui{outline:2px solid var(--accent);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.switch__ui,.switch__ui::after{transition:none}}
@media (forced-colors:active){
  .switch__ui{border:2px solid ButtonText;box-shadow:none}
  .switch__ui::after{background:ButtonText}
  .switch input:checked+.switch__ui{background:Highlight}
  .switch input:checked+.switch__ui::after{background:HighlightText}
}

/* ------------------------------------------------------------------ 11 Tables & lists */
.table-card{padding:6px 20px 8px;border-radius:var(--r-xl);background:var(--card);overflow-x:auto}
.table{width:100%;font-size:15px}
.table th{padding:14px 12px 10px;text-align:left;font:600 11px/1.2 var(--mono);letter-spacing:.02em;text-transform:uppercase;color:var(--muted);
  border-bottom:1px solid var(--line);white-space:nowrap}
.table td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.table tr:last-child td{border-bottom:0}
.table th:first-child,.table td:first-child{padding-left:0}
.table th:last-child,.table td:last-child{padding-right:0}
.table .num{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums}
.table a.rowlink{font-weight:700;text-decoration:none}
.table a.rowlink:hover{text-decoration:underline}
.table .sub{display:block;font:11px/1.4 var(--mono);color:var(--muted);text-transform:uppercase;margin-top:2px}
.table--rows th[scope=row]{font:inherit;text-transform:none;letter-spacing:0;color:var(--fg);font-weight:700;border-bottom:1px solid var(--line);padding:14px 12px;white-space:normal}
/* a wide table becomes a stack of cards on phones: put data-label="Column" on each td.
   :where() keeps these rules at zero specificity, so a page can override any of them with one class. */
@media (max-width:720px){
  :where(.table--stack) thead{display:none}
  :where(.table--stack),:where(.table--stack) tbody,:where(.table--stack) tr,:where(.table--stack) td{display:block;width:100%}
  :where(.table--stack) tr{padding:12px 0;border-bottom:1px solid var(--line)}
  :where(.table--stack) tr:last-child{border-bottom:0}
  /* not :where(): this has to tie with `.table td` above (and win by coming later), or every stacked cell keeps its desktop padding and rule */
  .table--stack td{padding:2px 0;border:0}
  :where(.table--stack) td[data-label]::before{content:attr(data-label);display:block;font:600 11px/1.2 var(--mono);text-transform:uppercase;color:var(--muted);margin-top:6px}
  :where(.table--stack) td:empty{display:none}
}
/* before -> after value display used in edits, moderation, history */
.was{color:var(--muted);text-decoration:line-through;font-family:var(--mono);font-size:14px}
.now{display:inline-block;padding:3px 12px;border-radius:var(--r-pill);background:var(--soft);color:var(--soft-fg);font:600 14px/1.4 var(--mono)}
.diff{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.diff .arrow{color:var(--muted);display:inline-flex}

.list{display:flex;flex-direction:column}
.list>*{padding:12px 0;border-top:1px solid var(--line)}
.list>*:first-child{border-top:0}

/* ------------------------------------------------------------------ 12 Tabs, pagination, empty states */
.tabs{display:inline-flex;align-items:center;gap:2px;padding:4px;border-radius:var(--r-pill);background:var(--card);max-width:100%;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--fg);
  font:600 14px/1 var(--font);text-decoration:none;white-space:nowrap;cursor:pointer}
.tab:not([aria-current=page]):not([aria-selected=true]):not([aria-pressed=true]):not(.tab--on):hover{background:var(--tile)}
.tab[aria-current=page],.tab[aria-selected=true],.tab[aria-pressed=true],.tab--on{background:var(--fg);color:var(--bg)}
.tab .count{font-size:11px;padding:1px 7px}
.tab[aria-current=page] .count,.tab[aria-pressed=true] .count,.tab--on .count{background:var(--bg);color:var(--fg)}
.tabs--tile{background:var(--tile)}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}
.pager__pos{font:12px var(--mono);color:var(--muted);text-transform:uppercase}
.empty{display:flex;flex-direction:column;gap:6px;align-items:flex-start;padding:20px;border-radius:var(--r-lg);background:var(--tile)}
.empty__icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:8px;border-radius:var(--r-sm);background:var(--soft);color:var(--soft-fg)}
.empty h3{font-size:18px}
.empty p{margin:0;font-size:14px;color:var(--muted)}
.empty--center{align-items:center;text-align:center;padding:40px 24px}
.empty--dashed{background:transparent;border:2px dashed var(--line)}
.iconbox{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;background:var(--soft);color:var(--soft-fg)}
.iconbox--accent{background:var(--accent);color:var(--accent-fg)}
.iconbox--lg{width:56px;height:56px;border-radius:18px}
.iconbox--sm{width:30px;height:30px;border-radius:10px}
.iconbox--warn{background:var(--warn-soft);color:var(--warn)}
.iconbox--bad{background:var(--bad-soft);color:var(--bad)}

/* ------------------------------------------------------------------ 13 Gauges, fact rows */
.gauge{position:relative;height:10px;border-radius:var(--r-pill);background:repeating-linear-gradient(90deg,var(--tick) 0 1px,var(--tile) 1px 10%)}
.gauge__fill{position:absolute;top:0;bottom:0;left:var(--l,0%);width:var(--w,0%);min-width:6px;border-radius:var(--r-pill);background:var(--accent)}
.gauges{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}
.gauge__head{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:6px;min-height:22px}
.gauge__head span{color:var(--muted)}
.gauge__head strong{font:600 13px var(--mono)}
.gauge-line{display:flex;align-items:center;gap:8px}
.gauge-line .gauge{flex:1}
.gauge-line span{font:600 12px var(--mono);width:36px;text-align:right}
/* ordered level (Low ... High): equal segments, the covered ones filled */
.levels{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
.levels i{display:block;height:10px;border-radius:var(--r-pill);background:var(--tile)}
.levels i.on{background:var(--accent)}

.facts{padding:4px 16px 16px;border-radius:var(--r-lg);background:var(--card)}
.fact{display:flex;align-items:center;gap:10px;min-height:48px;border-bottom:1px solid var(--line)}
.fact:last-child{border-bottom:0}
.fact__k{flex:1;font-size:15px;color:var(--muted)}
.fact__v{font:600 15px/1.3 var(--mono);text-align:right}
.fact .iconbox{width:30px;height:30px;border-radius:10px}
.fact--add{min-height:48px}
.kv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:0;font-size:15px}
.kv dt,.kv dd{margin:0;padding:10px 0;border-bottom:1px solid var(--line)}
.kv dt{color:var(--muted);padding-right:16px}
.kv dd{font-weight:600}
.kv dt:last-of-type,.kv dd:last-of-type{border-bottom:0}
.credit{font:12px/1.5 var(--mono);color:var(--muted);text-transform:uppercase}

/* ------------------------------------------------------------------ 14 Page furniture */
.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;margin:8px 0 20px}
.pagehead h1{margin:0}
.pagehead p{margin:4px 0 0;color:var(--muted)}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 6px;font-size:14px;color:var(--muted)}
.crumbs a{color:inherit;text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs .sep{opacity:.6}
.crumbs--mono{font:12px var(--mono);text-transform:uppercase}
.backlink{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;color:var(--fg);text-decoration:none}
.backlink:hover{text-decoration:underline}
.section{margin-top:40px}
.section__head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:16px}
.section__head h2{margin:0}
.section__head p{margin:2px 0 0;font-size:15px;color:var(--muted)}
.band{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;align-items:center;padding:24px 28px;border-radius:var(--r-xl);background:var(--soft);color:var(--soft-fg)}
.band h2,.band h3{font-size:22px;color:var(--fg)}
.band p{margin:2px 0 0;font-size:15px}
@media (max-width:720px){.band{grid-template-columns:1fr;gap:14px;padding:20px}}
/* one message on one card: icon tile, mono kicker, headline, text, then stacked buttons (errors, empty results, expired links) */
.statecard{display:flex;flex-direction:column;align-items:flex-start;gap:14px;max-width:560px;margin:32px auto 0;padding:24px;border-radius:var(--r-xl);background:var(--card)}
.statecard .iconbox{width:56px;height:56px;border-radius:18px}
.statecard h1{font-size:34px;letter-spacing:-.02em;line-height:1.12;overflow-wrap:anywhere;text-wrap:balance}
.statecard p{margin:0;color:var(--muted);font-size:16px}
.statecard .btn-row{width:100%;flex-direction:column;align-items:stretch;gap:8px;margin-top:6px}
.statecard .btn-row .btn{width:100%}
@media (min-width:721px){.statecard{padding:32px}.statecard .btn-row{flex-direction:row;align-items:center}.statecard .btn-row .btn{width:auto}}
.narrow{max-width:560px;margin-inline:auto}
.narrow--md{max-width:720px}
.centered-page{display:flex;flex-direction:column;align-items:flex-start;gap:14px;max-width:560px;margin:40px auto}
.dialog-backdrop{position:fixed;inset:0;z-index:60;background:rgba(10,20,22,.5);display:grid;place-items:center;padding:24px}
.dialog{width:100%;max-width:620px;max-height:calc(100vh - 48px);overflow:auto;padding:24px;border-radius:var(--r-xl);background:var(--card);color:var(--fg);box-shadow:var(--shadow-3)}
.callout{display:flex;gap:14px;align-items:center;padding:16px 18px;border-radius:22px;background:var(--soft);color:var(--soft-fg)}
.callout strong{display:block;font-size:17px;font-weight:800;color:var(--fg)}
.callout--warn{background:var(--warn-soft);color:var(--warn)}
.callout--warn strong{color:var(--warn)}

/* ------------------------------------------------------------------ 15 Mobile bottom bar */
.bottombar{display:none}
@media (max-width:720px){
  body.has-bottombar main.wrap{padding-bottom:104px}
  .bottombar{position:fixed;left:0;right:0;bottom:0;z-index:25;display:flex;align-items:center;gap:8px;padding:12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background:var(--bg);border-top:1px solid var(--line)}
  .bottombar .btn--primary{flex:1}
  .bottombar .btn--stat{font:600 11px var(--mono);color:var(--muted);white-space:nowrap}
}

/* ------------------------------------------------------------------ 15b Long option lists under headings (countries by continent) */
.optgroups{display:flex;flex-direction:column;gap:6px;width:100%}
.optgroup{border-radius:var(--r-md);background:var(--tile)}
.optgroup__sum{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;list-style:none;font-weight:700;font-size:15px}
.optgroup__sum::-webkit-details-marker{display:none}
.optgroup__sum .icon{margin-left:auto;transition:transform .15s}
.optgroup[open] .optgroup__sum .icon{transform:rotate(180deg)}
.optgroup__body{padding:2px 12px 12px}
.optgroup__body>div{display:flex;flex-wrap:wrap;gap:6px}

/* ------------------------------------------------------------------ 15c Search suggestions (discover.js) */
.searchbar{position:relative}
.suggest{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;display:flex;flex-direction:column;padding:6px;border-radius:18px;
  background:var(--card);box-shadow:var(--shadow-2);text-align:left}
.suggest__opt{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 12px;border:0;border-radius:12px;background:transparent;color:var(--fg);
  font:inherit;text-align:left;cursor:pointer;text-decoration:none}
.suggest__opt[aria-selected=true],.suggest__opt:hover{background:var(--tile)}
.suggest__name{font-size:15px;font-weight:700}
.suggest__sub{font-size:13px;color:var(--muted)}
.suggest__all{display:flex;align-items:center;gap:8px;padding:10px 12px;margin-top:4px;border:0;border-top:1px solid var(--line);border-radius:0 0 12px 12px;
  background:transparent;color:var(--soft-fg);font:600 14px var(--font);text-align:left;cursor:pointer;text-decoration:none}
.suggest__all[aria-selected=true],.suggest__all:hover{background:var(--tile)}

/* ------------------------------------------------------------------ 16 Utilities */
.right{text-align:right}
.nowrap{white-space:nowrap}
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:40px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
@media (max-width:720px){.hide-mobile{display:none!important}}
@media (min-width:721px){.only-mobile{display:none!important}}
@media print{.site-header,.site-footer,.toasts,.bottombar{display:none!important}body{background:#fff}}
