/* ============================================================
   MATERIA · Herbal Knowledge System
   Minimalist clinical design system
   ============================================================ */

:root {
  /* Palette --------------------------------------------------- */
  --bg:           #FAFAF7;
  --bg-elev:     #FFFFFF;
  --bg-sunken:   #F2F1EC;
  --ink:         #0C0F0E;
  --ink-2:       #3A3F3D;
  --ink-3:       #6B716E;
  --line:        #E5E4DE;
  --line-2:      #D2D1CB;
  --accent:      #1F3D2B;        /* deep forest */
  --accent-2:    #2D5B3E;
  --accent-soft: #E8EFEA;
  --warn:        #8C4A1F;        /* warm sienna for warnings */
  --warn-soft:   #FBF1E8;
  --danger:      #A2342B;
  --shadow-sm:   0 1px 2px rgba(12, 15, 14, 0.04);
  --shadow-md:   0 4px 14px rgba(12, 15, 14, 0.06);
  --shadow-lg:   0 24px 60px rgba(12, 15, 14, 0.10);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 28px;

  /* Typography ----------------------------------------------- */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0E1110;
    --bg-elev:    #161A19;
    --bg-sunken:  #0A0D0C;
    --ink:        #F2F1EC;
    --ink-2:      #C7C9C3;
    --ink-3:      #8E928D;
    --line:       #232826;
    --line-2:     #2E3431;
    --accent:     #7FB48F;
    --accent-2:   #9CC8AB;
    --accent-soft:#1A241F;
    --warn:       #D9A86A;
    --warn-soft:  #1F1810;
  }
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   Top bar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(14, 17, 16, 0.85); }
}
.topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
}
.brand__name { color: var(--ink); }
.brand__tag {
  margin-left: 6px;
  padding: 2px 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.topnav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.topnav a {
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.topnav a:hover { background: var(--bg-sunken); text-decoration: none; }

.btn-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.btn-chat:hover { transform: translateY(-1px); }
.btn-chat .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6FE38B;
  box-shadow: 0 0 0 3px rgba(111, 227, 139, 0.25);
}

@media (max-width: 720px) {
  .topnav { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 18ch;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 40px;
  line-height: 1.55;
}

.searchbar {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.searchbar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md);
}
.searchbar__icon { color: var(--ink-3); flex: 0 0 auto; }
.searchbar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 17px;
  color: var(--ink);
}
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar__btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}
.searchbar__btn:hover { background: var(--accent-2); }

.searchsuggest {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
}
.searchsuggest span { margin-right: 6px; }
.suggest-chip {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.suggest-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.hero__stats {
  display: flex;
  gap: 56px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.stat__num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Search dropdown / autocomplete
   ============================================================ */
.search-wrapper { position: relative; max-width: 720px; }
.results-panel {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 10px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-height: 480px;
  overflow-y: auto;
  z-index: 40;
  display: none;
}
.results-panel.is-open { display: block; }
.results-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.results-section:last-child { border-bottom: none; }
.results-section__head {
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.result-item {
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.1s ease;
}
.result-item:hover, .result-item.is-active { background: var(--bg-sunken); }
.result-item__name { font-weight: 500; color: var(--ink); }
.result-item__meta { font-size: 12px; color: var(--ink-3); font-style: italic; }
.result-item__type {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.section__lede {
  color: var(--ink-2);
  font-size: 15px;
  margin: 12px 0 0;
  max-width: 56ch;
}

/* Categories grid ------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-card__num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.cat-card__name {
  font-weight: 600;
  font-size: 15px;
  margin: 8px 0 4px;
}
.cat-card__desc { font-size: 13px; color: var(--ink-3); }

/* Herb cards ------------------------------------------------- */
.herb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.herb-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
.herb-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.herb-card__cat {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.herb-card__name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 4px;
  font-weight: 500;
}
.herb-card__latin {
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.herb-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.chip {
  font-size: 11px;
  background: var(--bg-sunken);
  color: var(--ink-2);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.chip--accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-soft);
}

/* Ailment cloud --------------------------------------------- */
.ailment-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ailment-pill {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ailment-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.ailment-pill .count {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Detail view (modal)
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  background: rgba(12, 15, 14, 0.6);
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
  backdrop-filter: blur(2px);
}
.modal.is-open { display: flex; }
.modal__panel {
  width: 100%;
  max-width: 880px;
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: panelIn 0.25s ease;
}
@keyframes panelIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-sunken);
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-2);
  z-index: 2;
  transition: background 0.15s ease;
}
.modal__close:hover { background: var(--line); color: var(--ink); }
.modal__hero {
  padding: 56px 56px 32px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 600px) { .modal__hero { padding: 40px 24px 24px; } }
.modal__cat {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.modal__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.modal__latin {
  font-style: italic;
  font-size: 17px;
  color: var(--ink-3);
  margin: 0;
}
.modal__body {
  padding: 32px 56px 56px;
}
@media (max-width: 600px) { .modal__body { padding: 24px; } }

.kv-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.kv-row:first-of-type { border-top: none; padding-top: 0; }
.kv-row__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.kv-row__value {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
}
@media (max-width: 600px) {
  .kv-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
}

.use-block {
  background: var(--bg-sunken);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 10px;
  border-left: 3px solid var(--accent);
}
.use-block__title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}
.use-block__body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

.warn-block {
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: var(--ink-2);
  font-size: 14px;
}
.warn-block strong { color: var(--warn); }

.ailment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ailment-list .chip { cursor: pointer; }
.ailment-list .chip:hover { background: var(--accent-soft); color: var(--accent); }

/* Ailment detail panel ------------------------------------- */
.herblist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.herblist__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg-elev);
}
.herblist__item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.herblist__name {
  font-weight: 600;
  font-size: 14px;
}
.herblist__latin {
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ============================================================
   Chat drawer
   ============================================================ */
.chat-drawer {
  position: fixed;
  bottom: 0; right: 0;
  width: 420px;
  height: 640px;
  max-height: calc(100vh - 32px);
  margin: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  z-index: 70;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatIn 0.22s ease;
}
@keyframes chatIn {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.chat-drawer.is-open { display: flex; }
@media (max-width: 480px) {
  .chat-drawer { width: auto; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 18px 18px 0 0; height: 80vh; }
}
.chat-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.chat-head p { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.chat-close {
  background: var(--bg-sunken);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-2);
}
.chat-close:hover { background: var(--line); color: var(--ink); }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg--bot {
  align-self: flex-start;
  background: var(--bg-sunken);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg--bot strong { color: var(--accent); }
.msg .src {
  display: inline-block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
  cursor: pointer;
  border-bottom: 1px dotted var(--ink-3);
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 8px 0;
}
.typing span {
  width: 6px; height: 6px;
  background: var(--ink-3);
  border-radius: 50%;
  animation: pulse 1.4s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.chat-suggest {
  padding: 0 22px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-suggest button {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
}
.chat-suggest button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chat-input {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  gap: 8px;
  align-items: end;
}
.chat-input textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  background: var(--bg-sunken);
  outline: none;
  resize: none;
  max-height: 120px;
  font-size: 14px;
  line-height: 1.45;
}
.chat-input textarea:focus { border-color: var(--accent); }
.chat-send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.chat-send:hover { background: var(--accent-2); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 50;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.18s ease;
}
.chat-fab:hover { transform: scale(1.05) translateY(-2px); }
.chat-fab .dot {
  position: absolute;
  top: 14px; right: 14px;
  width: 9px; height: 9px;
  background: #6FE38B;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ink);
}

/* ============================================================
   Disclaimer footer
   ============================================================ */
.disclaimer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  padding: 56px 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}
.disclaimer__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
.disclaimer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .disclaimer__grid { grid-template-columns: 1fr; } }
.disclaimer__foot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 10px;
}

/* Settings modal */
.field {
  display: block;
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  background: var(--bg-sunken);
  outline: none;
}
.field input:focus { border-color: var(--accent); }
.field small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }

/* Empty / loading states */
.empty {
  text-align: center;
  color: var(--ink-3);
  padding: 40px 20px;
  font-size: 14px;
}

.hidden { display: none !important; }

/* Subtle botanical motif behind hero */
.hero-art {
  position: absolute;
  right: -120px;
  top: -40px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  opacity: 0.5;
  z-index: -1;
}
@media (max-width: 900px) { .hero-art { display: none; } }

/* Scroll polish */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-2); }

/* Focus accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
