@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #1b2c27;
  --muted: #74817a;
  --forest: #173d35;
  --forest-soft: #e8eee8;
  --sage: #dbe5d8;
  --cream: #f6f7f2;
  --paper: #fffefa;
  --gold: #e7c56e;
  --line: #e4e9e1;
  --danger: #a63b31;
  --shadow: 0 18px 45px rgba(27, 44, 39, .07);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app-shell { min-height: 100vh; max-width: 1440px; margin: 0 auto; padding: 0 34px 110px; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--gold); background: var(--forest); border-radius: 14px; font-size: 24px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.03em; }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.connection-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.status-dot { width: 7px; height: 7px; background: #4b9b69; border-radius: 50%; }
.connection-status.is-offline .status-dot { background: #d08b42; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--forest); font-size: 20px; }

.view { display: none; padding-top: 30px; animation: appear .24s ease-out; }
.view.active { display: block; }
@keyframes appear { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.hero-panel { position: relative; overflow: hidden; min-height: 410px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; padding: 58px 7%; background: var(--forest); border-radius: 28px; color: #fffefa; }
.hero-copy { position: relative; z-index: 1; max-width: 570px; }
.eyebrow { display: inline-block; color: #a8b7a9; font-size: 10px; font-weight: 700; letter-spacing: .19em; }
.hero-copy .eyebrow { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 { margin: 15px 0 17px; font-family: Manrope, sans-serif; font-size: clamp(42px, 5.2vw, 72px); font-weight: 600; letter-spacing: -.065em; line-height: .99; }
.hero-copy h1 em { color: var(--gold); font-style: normal; }
.hero-copy p { max-width: 430px; margin-bottom: 27px; color: #c8d3c8; font-size: 15px; line-height: 1.75; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 13px; background: var(--gold); color: var(--forest); font-size: 12px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 9px 18px rgba(0,0,0,.12); }
.primary-button span { font-size: 17px; }
.hero-art { position: relative; width: min(100%, 370px); height: 320px; margin: auto; display: grid; place-items: center; }
.orbit { position: absolute; width: 255px; height: 255px; border: 1px solid rgba(232, 238, 232, .21); border-radius: 50%; }
.orbit-one { transform: rotate(28deg) scaleX(.8); }
.orbit-two { width: 330px; height: 190px; transform: rotate(-32deg); border-color: rgba(232, 238, 232, .12); }
.hero-insect { display: grid; place-items: center; width: 150px; height: 150px; color: var(--forest); background: var(--gold); border-radius: 47% 53% 45% 55%; font-size: 90px; box-shadow: 0 22px 55px rgba(0,0,0,.23); transform: rotate(-12deg); }
.art-label { position: absolute; color: rgba(235, 239, 230, .7); font-size: 8px; font-weight: 700; letter-spacing: .2em; }
.label-one { top: 25px; right: 12px; transform: rotate(90deg); }
.label-two { left: 7px; bottom: 24px; }
.stats-row { display: flex; gap: 0; width: min(620px, 100%); margin: 22px auto 53px; padding: 17px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.stat { flex: 1; display: flex; align-items: center; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { font-family: Manrope, sans-serif; font-size: 24px; letter-spacing: -.05em; }
.stat span { color: var(--muted); font-size: 10px; }
.section-block { margin: 0 0 52px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 20px; }
.section-heading .eyebrow, .page-heading .eyebrow { color: #829188; }
.section-heading h2 { margin: 5px 0 0; font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.055em; }
.text-button { padding: 8px 0; border: 0; background: none; color: var(--forest); font-size: 11px; font-weight: 700; }
.text-button span { margin-left: 5px; }
.order-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.order-card { display: flex; min-height: 154px; flex-direction: column; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: var(--ink); text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.order-card:hover { border-color: #b7c8b7; transform: translateY(-3px); box-shadow: var(--shadow); }
.order-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 12px; background: var(--forest-soft); font-size: 19px; }
.order-card-title { font-size: 13px; font-weight: 700; }
.order-card-subtitle { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.order-card-count { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 11px; color: #819087; font-size: 9px; }
.order-card-count b { color: var(--forest); font-size: 14px; }
.field-search-card { display: flex; width: 100%; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); text-align: left; }
.search-illustration { display: grid; place-items: center; flex: 0 0 50px; height: 50px; border-radius: 16px; background: #edf1e9; color: var(--forest); font-size: 28px; }
.field-search-card strong, .field-search-card small { display: block; }
.field-search-card strong { margin-bottom: 5px; font-size: 14px; }
.field-search-card small { color: var(--muted); font-size: 11px; }
.field-search-card .arrow { margin-left: auto; color: var(--forest); font-size: 22px; }

.page-heading { max-width: 720px; margin: 22px 0 25px; }
.page-heading h1 { margin: 9px 0 8px; font-family: Manrope, sans-serif; font-size: clamp(32px, 4vw, 49px); letter-spacing: -.065em; line-height: 1.07; }
.page-heading p { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.catalog-toolbar { display: flex; gap: 10px; margin-bottom: 15px; }
.search-field { display: flex; flex: 1; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: #819087; font-size: 21px; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-field input::placeholder { color: #a1aaa2; }
.filter-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--forest); font-size: 16px; }
.filter-button span { font-size: 11px; font-weight: 700; }
.results-meta { display: flex; justify-content: space-between; margin: 17px 0 13px; color: #8a968e; font-size: 10px; }
.results-meta span:first-child { color: var(--ink); font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 4px 0 14px; }
.filter-chip { padding: 6px 9px; border-radius: 100px; background: #e7eee6; color: var(--forest); font-size: 10px; }
.active-filters button { border: 0; background: none; color: var(--muted); font-size: 10px; }
.species-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.species-card { display: flex; overflow: hidden; min-width: 0; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: var(--ink); text-align: left; transition: transform .18s ease, box-shadow .18s ease; }
.species-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.species-image { position: relative; display: block; overflow: hidden; height: 190px; background: #e8eee7; }
.species-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.species-card:hover .species-image img { transform: scale(1.04); }
.species-placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 58px; color: var(--forest); }
.image-license { position: absolute; right: 10px; bottom: 10px; padding: 5px 7px; border-radius: 6px; background: rgba(25, 50, 42, .83); color: white; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.species-card-body { display: flex; min-height: 138px; flex-direction: column; align-items: flex-start; padding: 14px 15px 15px; }
.species-order { margin-bottom: 5px; color: #849087; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.species-card-body strong { font-size: 14px; line-height: 1.35; }
.species-card-body em { margin-top: 4px; color: var(--muted); font-size: 11px; }
.species-card-meta { display: block; margin-top: 11px; color: #66776c; font-size: 10px; }
.species-count { margin-top: auto; padding-top: 10px; color: #8b968e; font-size: 9px; }
.empty-state { max-width: 520px; margin: 50px auto; padding: 35px; border: 1px dashed #cbd6ca; border-radius: 20px; background: rgba(255,255,255,.5); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 15px; border-radius: 17px; background: var(--forest); color: var(--gold); font-size: 28px; }
.empty-state h2 { margin-bottom: 8px; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.empty-state code { display: inline-block; padding: 10px 12px; border-radius: 8px; background: #e8eee7; color: var(--forest); font-size: 11px; }

.filter-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; max-width: 780px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.form-field { display: flex; flex-direction: column; gap: 8px; color: #68766d; font-size: 11px; font-weight: 700; }
.form-field select { width: 100%; min-height: 47px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcf8; color: var(--ink); outline-color: #8fa995; font-size: 12px; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 5px; }
.secondary-button { padding: 12px 4px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.filter-results-note { max-width: 780px; margin-top: 17px; padding: 15px; border-radius: 13px; background: #edf1e9; color: #68766d; font-size: 11px; line-height: 1.6; }
.filter-results-note > strong { color: var(--forest); }
.filter-result-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.filter-result-preview .species-card { background: white; }
.filter-result-preview .species-image { height: 85px; }
.filter-result-preview .species-card-body { min-height: 0; padding: 8px; }
.filter-result-preview .species-card-body strong { font-size: 11px; }
.filter-result-preview .species-card-body em, .filter-result-preview .species-order, .filter-result-preview .species-count, .filter-result-preview .species-card-meta { font-size: 8px; }

.emergency-banner { display: flex; align-items: center; justify-content: space-between; max-width: 780px; margin-bottom: 16px; padding: 20px 24px; border-radius: 18px; background: #5a2926; color: white; }
.emergency-banner div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 13px; }
.emergency-banner div > span { grid-column: 1 / -1; color: #f2c4a8; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.emergency-banner strong { font-family: Manrope, sans-serif; font-size: 35px; line-height: 1.1; }
.emergency-banner small { max-width: 230px; color: #edd9d4; font-size: 10px; line-height: 1.5; }
.emergency-banner a { padding: 10px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: white; font-size: 11px; font-weight: 700; text-decoration: none; }
.medical-disclaimer { max-width: 780px; margin: 15px 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.safety-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1000px; }
.safety-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.safety-card-heading { display: flex; align-items: center; gap: 10px; }
.safety-card-heading > span { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--forest-soft); color: var(--forest); font-weight: 800; }
.safety-card:first-child .safety-card-heading > span { background: #f7e7e2; color: var(--danger); }
.safety-card h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.03em; }
.safety-card ol { margin: 17px 0 0; padding-left: 17px; color: #66756b; font-size: 11px; line-height: 1.7; }
.safety-card li { padding-left: 4px; margin-bottom: 9px; }
.safety-footnote { max-width: 780px; margin-top: 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.source-card { display: flex; gap: 16px; max-width: 780px; margin-bottom: 12px; padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.source-card-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--forest); color: var(--gold); font-size: 16px; font-weight: 800; }
.source-card strong { font-size: 13px; }
.source-card p { margin: 6px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.source-card a, .source-links a { color: var(--forest); font-size: 10px; font-weight: 700; text-decoration: none; }
.source-card-muted .source-card-icon { background: #e7eee6; color: var(--forest); }
.license-explainer { max-width: 780px; margin: 22px 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #f0f3ed; }
.license-explainer h2 { margin-bottom: 16px; font-family: Manrope, sans-serif; font-size: 18px; letter-spacing: -.04em; }
.license-explainer > div { padding: 11px 0; border-bottom: 1px solid #dfe6dc; }
.license-explainer > div:last-of-type { border: 0; }
.license-explainer strong { color: var(--forest); font-size: 11px; }
.license-explainer p { margin: 5px 0 0; color: #66756b; font-size: 11px; line-height: 1.65; }
.license-explainer .license-note { margin-top: 13px; padding-top: 13px; border-top: 1px solid #dfe6dc; font-size: 10px; }
.source-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; max-width: 780px; margin-top: 22px; }
.source-links h2 { margin-bottom: 0; font-family: Manrope, sans-serif; font-size: 16px; }

.bottom-nav { position: fixed; z-index: 10; right: 50%; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; width: min(500px, calc(100vw - 28px)); justify-content: space-around; padding: 9px 8px; border: 1px solid rgba(224, 231, 221, .9); border-radius: 20px; background: rgba(255, 254, 250, .94); box-shadow: 0 12px 40px rgba(23, 61, 53, .13); backdrop-filter: blur(18px); transform: translateX(50%); }
.nav-item { display: flex; min-width: 58px; flex-direction: column; align-items: center; gap: 4px; padding: 5px 7px; border: 0; border-radius: 12px; background: transparent; color: #97a198; }
.nav-item span { font-size: 19px; line-height: 1; }
.nav-item small { font-size: 8px; font-weight: 600; }
.nav-item.active { background: var(--forest-soft); color: var(--forest); }

.species-dialog { position: fixed; width: min(680px, calc(100vw - 26px)); max-height: min(88vh, 900px); padding: 0; overflow: auto; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 25px 90px rgba(0,0,0,.25); }
.species-dialog::backdrop { background: rgba(14, 30, 25, .6); backdrop-filter: blur(4px); }
.dialog-close { position: sticky; z-index: 2; top: 12px; float: right; display: grid; place-items: center; width: 34px; height: 34px; margin: 12px 12px -46px 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--forest); font-size: 24px; }
.detail-photo { margin: 0; }
.detail-photo img { display: block; width: 100%; max-height: 290px; object-fit: cover; background: var(--forest-soft); }
.detail-photo figcaption { padding: 8px 22px; color: var(--muted); background: #f3f5ef; font-size: 9px; line-height: 1.5; }
.detail-photo a { color: var(--forest); font-weight: 700; }
.detail-heading { padding: 26px 26px 17px; }
.detail-heading .eyebrow { color: #829188; }
.detail-heading h2 { margin: 7px 0 3px; font-family: Manrope, sans-serif; font-size: 27px; letter-spacing: -.055em; }
.detail-heading p { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.detail-count { color: #89968d; font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0 26px 20px; }
.detail-field { padding: 13px; border-radius: 12px; background: #f1f4ee; }
.detail-field h3 { margin-bottom: 6px; color: var(--forest); font-size: 10px; }
.detail-field p { margin: 0; color: #627167; font-size: 10px; line-height: 1.65; }
.detail-source-links { padding: 0 26px 14px; }
.detail-source-links a { color: var(--forest); font-size: 10px; font-weight: 700; }
.detail-review-note { margin: 0; padding: 15px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }

@media (min-width: 1100px) {
  .app-shell { padding-left: 56px; padding-right: 56px; }
  .hero-panel { min-height: 455px; }
  .species-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .app-shell { padding: 0 22px 105px; }
  .hero-panel { min-height: 370px; padding: 42px 6%; grid-template-columns: 1fr .75fr; }
  .hero-art { transform: scale(.85); transform-origin: center; }
  .order-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .order-card { padding: 12px; }
  .species-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .species-image { height: 170px; }
}
@media (max-width: 600px) {
  .app-shell { padding: 0 15px 105px; }
  .topbar { height: 68px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
  .hero-panel { display: block; min-height: 0; padding: 35px 25px 27px; border-radius: 22px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-copy p { max-width: 330px; font-size: 13px; }
  .hero-art { position: absolute; right: -74px; bottom: -96px; width: 230px; height: 230px; opacity: .35; transform: scale(.75); }
  .hero-insect { width: 125px; height: 125px; font-size: 70px; }
  .orbit { width: 215px; height: 215px; }
  .orbit-two { width: 275px; height: 160px; }
  .stats-row { margin: 15px auto 39px; padding: 14px 0; }
  .stat strong { font-size: 21px; }
  .section-block { margin-bottom: 37px; }
  .section-heading h2 { font-size: 21px; }
  .order-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .order-card { min-height: 137px; padding: 13px; }
  .order-card-title { font-size: 12px; }
  .order-card-subtitle { font-size: 9px; }
  .field-search-card { gap: 12px; padding: 15px; }
  .field-search-card small { max-width: 220px; line-height: 1.5; }
  .view { padding-top: 21px; }
  .page-heading { margin: 16px 0 21px; }
  .page-heading h1 { font-size: 35px; }
  .page-heading p { font-size: 12px; }
  .catalog-toolbar { gap: 7px; }
  .filter-button { padding: 0 11px; }
  .species-grid { gap: 9px; }
  .species-image { height: 132px; }
  .species-card-body { min-height: 127px; padding: 11px; }
  .species-card-body strong { font-size: 12px; }
  .species-card-body em { font-size: 9px; }
  .species-card-meta { font-size: 9px; }
  .species-count { font-size: 8px; }
  .filter-form { grid-template-columns: 1fr; gap: 12px; padding: 17px; }
  .filter-actions { grid-column: auto; flex-wrap: wrap; }
  .filter-actions .primary-button { width: 100%; }
  .filter-result-preview { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter-result-preview .species-card:last-child:nth-child(odd) { display: none; }
  .safety-sections { grid-template-columns: 1fr; }
  .safety-card { padding: 17px; }
  .emergency-banner { padding: 17px; }
  .emergency-banner div { column-gap: 9px; }
  .emergency-banner small { max-width: 170px; font-size: 9px; }
  .source-card { padding: 15px; }
  .detail-grid { grid-template-columns: 1fr; padding: 0 17px 17px; }
  .detail-heading { padding: 21px 17px 14px; }
  .detail-heading h2 { font-size: 23px; }
  .detail-source-links { padding: 0 17px 14px; }
  .detail-review-note { padding: 13px 17px; }
  .bottom-nav { bottom: max(10px, env(safe-area-inset-bottom)); }
  .nav-item { min-width: 51px; padding: 5px 5px; }
  .nav-item small { font-size: 7px; }
}
.no-results { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 26px; border: 1px dashed #cbd6ca; border-radius: 15px; background: rgba(255,255,255,.55); color: var(--forest); font-size: 12px; }
.no-results span { color: var(--muted); font-size: 10px; }

/* v1.0 core catalog additions */
.catalog-intro { display: flex; flex-direction: column; gap: 5px; max-width: 760px; margin: -4px 0 15px; padding: 14px 16px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: #edf2eb; }
.catalog-intro strong { color: var(--forest); font-size: 11px; }
.catalog-intro span { color: #68766d; font-size: 10px; line-height: 1.55; }
.sort-field { display: flex; min-width: 128px; }
.sort-field select { width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--forest); outline-color: #8fa995; font-size: 10px; }
.sort-field select:focus, .form-field select:focus, .search-field:focus-within { outline: 2px solid #aebfae; outline-offset: 2px; }
.form-field select:disabled { color: #8e9990; background: #f0f2ed; cursor: not-allowed; }
.field-note { color: #89958b; font-size: 9px; font-weight: 400; line-height: 1.5; }
.species-placeholder { grid-template-rows: 1fr auto; padding: 16px 10px 18px; background: radial-gradient(circle at 50% 35%, #f8faf5 0, #e6ede5 65%, #dce7dc 100%); }
.species-placeholder span { align-self: end; }
.species-placeholder small { align-self: start; margin-top: 6px; color: #78877b; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.detail-no-photo { display: flex; min-height: 155px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 25px; background: #eaf0e8; color: var(--forest); text-align: center; }
.detail-no-photo span { font-size: 38px; }
.detail-no-photo strong { font-size: 12px; }
.detail-no-photo small { max-width: 340px; color: #748278; font-size: 10px; line-height: 1.5; }
.detail-role-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 26px 18px; }
.detail-role-tags span { padding: 6px 9px; border-radius: 999px; background: #e7eee6; color: var(--forest); font-size: 9px; font-weight: 700; }
.detail-source-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; margin: 45px 0 12px; padding: 18px 0 0; border-top: 1px solid var(--line); color: #93a096; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.embedded-app, .embedded-app body { background: var(--cream); }
.embedded-app .app-shell { max-width: 1240px; padding-left: 22px; padding-right: 22px; }
.embedded-app .install-button { display: none !important; }
.embedded-app .app-footer { margin-bottom: 90px; }

@media (max-width: 600px) {
  .catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .search-field { grid-column: 1 / -1; }
  .sort-field { min-width: 0; }
  .sort-field select { min-width: 118px; min-height: 44px; font-size: 9px; }
  .filter-button { min-height: 44px; }
  .catalog-intro { padding: 12px 13px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-role-tags { padding-left: 18px; padding-right: 18px; }
  .app-footer { flex-direction: column; }
  .embedded-app .app-shell { padding-left: 12px; padding-right: 12px; }
}
