
:root {
  --paper: #f4eedd;
  --card: #f8f3e3;          
  --ink: #20261e;
  --ink-soft: #3a4035;
  --muted: #5d6453;
  --line: #e2d7b9;
  --green: #24452f;
  --green-2: #3f6b47;
  --green-soft: #e1ead5;
  --red: #9b3a2c;
  --red-soft: #f5e0d8;
  --amber: #a4611a;
  --amber-soft: #f6e3cc;
  --gold: #8a6a1f;
  --gold-line: #c9a14c;
  --gold-soft: #f3e6c3;
  --sage-wash: rgba(184, 204, 172, .42);  
  --sage-ground: #dce2cb;                 
  --cyan: #173a6b;          
  --cyan-2: #2a5a98;
  --bark: #7a5530; --plum: #6d4270; --slate: #3e5a66;
  --radius: 16px;
  --photo-r: 12px;          
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(40, 35, 15, .06), 0 6px 18px rgba(40, 35, 15, .07);
  --frame: inset 0 0 0 4px var(--card), inset 0 0 0 5px rgba(201, 161, 76, .22);
  --flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%23b48f3c' stroke-opacity='.13' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='30'/%3E%3Ccircle cx='60' cy='0' r='30'/%3E%3Ccircle cx='30' cy='52' r='30'/%3E%3Ccircle cx='0' cy='104' r='30'/%3E%3Ccircle cx='60' cy='104' r='30'/%3E%3Ccircle cx='30' cy='-52' r='30'/%3E%3Ccircle cx='30' cy='156' r='30'/%3E%3C/g%3E%3C/svg%3E");
  --flower-band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%23e2c170' stroke-opacity='.16' stroke-width='1'%3E%3Ccircle cx='0' cy='0' r='30'/%3E%3Ccircle cx='60' cy='0' r='30'/%3E%3Ccircle cx='30' cy='52' r='30'/%3E%3Ccircle cx='0' cy='104' r='30'/%3E%3Ccircle cx='60' cy='104' r='30'/%3E%3Ccircle cx='30' cy='-52' r='30'/%3E%3Ccircle cx='30' cy='156' r='30'/%3E%3C/g%3E%3C/svg%3E");
  --vesica: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-16 -11 32 22'%3E%3Cg fill='none' stroke='%23c9a14c' stroke-width='1.6'%3E%3Ccircle cx='-5' r='9.5'/%3E%3Ccircle cx='5' r='9.5'/%3E%3C/g%3E%3Ccircle r='1.8' fill='%23c9a14c'/%3E%3C/svg%3E");
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.62 var(--sans);
  background: radial-gradient(ellipse at 100% 100%, rgba(63, 107, 71, .12), transparent 55%), var(--flower) 0 0 / 60px 104px,
    linear-gradient(var(--sage-wash), var(--sage-wash)), var(--paper);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: .005em; text-wrap: balance; margin: 0; }
h2 { font-size: 1.55rem; color: var(--green); display: flex; align-items: center; gap: .55rem; }
h2::before { content: ""; flex: none; width: 1.35em; height: .95em; background: var(--vesica) center / contain no-repeat; }
h3 { font-size: 1.18rem; color: var(--green-2); }
a { color: var(--cyan-2); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-line); outline-offset: 2px; }
svg use { stroke: currentColor; }
.lbl, .eyebrow { font: 600 .74rem var(--serif); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


.band { position: relative; overflow: hidden; color: #eef3fa;
  background: var(--flower-band) 0 0 / 40px 69px, radial-gradient(120% 140% at 85% 0%, #2a5a98 0%, var(--cyan) 55%, #0f2a50 100%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--gold-line) 20%, #f0d58a 50%, var(--gold-line) 80%, transparent) 1;
  box-shadow: 0 3px 14px rgba(10, 20, 40, .25); }
#fronds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: develop 1.6s ease-out both; }
@keyframes develop { from { opacity: .25; filter: blur(2px); } to { opacity: 1; filter: none; } }
.band-in { position: relative; max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.band-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top, 0px)); }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; margin-right: auto; min-width: 0; }
.brand .emblem { width: 42px; height: 42px; color: #e2c170; flex: none; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.brand:hover .emblem { transform: rotate(60deg); }
.brand-text { font: 600 1.35rem var(--serif); letter-spacing: .02em; display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font: 400 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #d9c998; margin-top: .2rem; }
.back, .who { color: #f7efd4; background: rgba(255, 255, 255, .08); border: 1px solid rgba(226, 193, 112, .55); border-radius: 999px;
  padding: .3rem .8rem; font-size: .88rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.back:hover, .who:hover { background: rgba(255, 255, 255, .16); }
.zone { color: #f0d58a; background: transparent; border: 1px solid rgba(226, 193, 112, .55); border-radius: 999px; padding: .3rem .8rem;
  font: 600 .88rem var(--serif); letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
.zone:hover { background: rgba(255, 255, 255, .1); }

.zscale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.zscale div { display: grid; gap: .1rem; padding: .55rem .4rem; text-align: center; border-radius: 10px; background: #f1ead5; color: var(--muted); font-size: .82rem; }
.zscale b { font: 600 1.05rem var(--serif); color: var(--green); }
.zscale div:nth-child(1) { background: #dfe8f0; } .zscale div:nth-child(2) { background: #e6eee4; }
.zscale div:nth-child(3) { background: var(--green); color: #e1ead5; box-shadow: 0 0 0 2px var(--gold-line); } .zscale div:nth-child(3) b { color: #fff; }
.zscale div:nth-child(4) { background: #f6ead0; }
.zfacts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 600px) { .zfacts { grid-template-columns: 1fr; } .zscale div { padding-inline: .2rem; font-size: .76rem; } }
.zfacts > div { background: #f2ecd8; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .85rem; font-size: .93rem; }
.zfacts p { margin: .15rem 0 0; }
.hero { padding-block: 1.8rem 1.4rem; max-width: 46rem; }
.hero .kicker { font: 600 .8rem var(--serif); letter-spacing: .22em; text-transform: uppercase; color: #e2c170; margin: 0 0 .3rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); color: #fff; }
.hero p { margin: .5rem 0 0; font-size: 1.05rem; max-width: 60ch; color: #d9e4f3; }
.hero .ledger { font: italic 1rem var(--serif); color: #f0dca0; }
.hero .ledger:empty { display: none; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.tabs a { display: flex; align-items: center; gap: .45rem; flex: none; white-space: nowrap; padding: .55rem 1rem .65rem; color: #d7e2f1; text-decoration: none;
  font: 600 1rem var(--serif); border-radius: 14px 14px 0 0; border: 1px solid transparent; border-bottom: none; }
.tabs a svg { width: 19px; height: 19px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: #e2c170; }
.tabs a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tabs a.on { background: var(--sage-ground); color: var(--green); border-color: rgba(226, 193, 112, .7); }
.tabs a.on svg { color: var(--gold); }
@media (max-width: 560px) { .brand-text small { display: none; } .brand .emblem { width: 34px; height: 34px; } .brand-text { font-size: 1.1rem; } }

main { max-width: 1180px; margin: 0 auto; padding-block: 1.6rem 5rem; padding-inline: 16px; display: grid; gap: 1.6rem; }
.loading, .note { color: var(--muted); }
.note { font-size: .9rem; margin: 0; }
.err { color: var(--red); font-weight: 600; }
.sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; }
.sechead h2 { flex: 1; }
.sechead h2::after { content: ""; flex: 1; min-width: 40px; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }


.panel, .chart, .now, .empty, .drop { background: var(--card); border: 1px solid rgba(201, 161, 76, .45); border-radius: var(--radius);
  box-shadow: var(--frame), var(--shadow); }


.btn { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; text-decoration: none; color: #fff; border: 1px solid var(--green);
  background: linear-gradient(180deg, #2f5a3c, var(--green)); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .95rem; letter-spacing: .01em; }
.btn svg { width: 18px; height: 18px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { box-shadow: 0 0 0 2px rgba(226, 193, 112, .7); }
.btn.ghost { background: rgba(248, 243, 227, .85); color: var(--green); }
.btn.small { padding: .25rem .8rem; font-size: .88rem; font-weight: 500; }
.btn.warn { border-color: var(--red); color: var(--red); background: transparent; }
.btn[disabled] { opacity: .5; cursor: wait; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .8rem; border-radius: 999px; cursor: pointer;
  background: var(--green-soft); color: var(--green); font-size: .9rem; border: 1px solid rgba(201, 161, 76, .25); }
.chip svg { width: 16px; height: 16px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip b { font-weight: 600; opacity: .7; font-variant-numeric: tabular-nums; }
.chip.on { background: var(--green); color: #fff; border-color: #e2c170; }
input[type=search], input[type=text], input[type=number], input[type=date], select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: .45rem .7rem; }
textarea { min-height: 5.5rem; resize: vertical; }
label { display: grid; gap: .2rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
label.btn { display: inline-flex; color: #fff; }
label.btn.ghost { color: var(--green); }
label.drop { color: var(--ink); font-size: 1rem; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem 1rem; }
.form .wide { grid-column: 1 / -1; }
.bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.bar input[type=search] { flex: 1 1 220px; width: auto; border-radius: 999px; padding-inline: 1rem; }


.k-plant { --k: var(--green-2); } .k-tree { --k: var(--bark); } .k-insect { --k: var(--amber); } .k-mushroom { --k: var(--plum); } .k-other { --k: var(--slate); }
.stamp { display: inline-block; font: 600 .68rem var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--k); border: 1px solid var(--k);
  border-radius: 999px; padding: .02rem .55rem; opacity: .9; white-space: nowrap; }


.drop { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem; cursor: pointer; padding: 1.1rem 1.3rem; transition: background .15s; }
.drop:hover, .drop.over { background: #efe8d2; }
.drop.over { box-shadow: 0 0 0 2px var(--gold-line), var(--shadow); }
.drop > svg { width: 42px; height: 42px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.drop b { display: block; font: 600 1.3rem var(--serif); color: var(--green); line-height: 1.2; }
.drop div span { color: var(--muted); font-size: .93rem; font-weight: 400; }
.drop input { display: none; }
@media (max-width: 560px) { .drop { grid-template-columns: auto 1fr; } .drop .btn { grid-column: 1 / -1; justify-content: center; } }


.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.sheet { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--card); cursor: pointer; overflow: hidden;
  border: 1px solid rgba(201, 161, 76, .35); border-radius: 22px 22px var(--radius) var(--radius); box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.sheet:hover { box-shadow: 0 0 0 2px rgba(201, 161, 76, .55), 0 10px 26px rgba(40, 35, 15, .14); transform: translateY(-3px); }
.mount { position: relative; aspect-ratio: 4 / 3; max-width: 100%; margin: 8px 8px 0; overflow: hidden; background: #e9e3d3; display: grid; place-items: center;
  border-radius: var(--photo-r); border: 1px solid rgba(201, 161, 76, .5); }
.mount img { width: 100%; height: 100%; object-fit: cover; }
.mount > svg { width: 56px; height: 56px; fill: none; stroke: var(--k); stroke-width: 1; opacity: .6; }
.count { position: absolute; right: .5rem; bottom: .5rem; font-size: .76rem; background: rgba(20, 30, 20, .66); color: #fff; padding: .02rem .55rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.label { padding: .7rem .95rem .95rem; display: grid; gap: .15rem; align-content: start; min-width: 0; }
.label .row1 { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font: 600 .72rem var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.label .nm { font: 600 1.2rem var(--serif); color: var(--green); line-height: 1.2; margin-top: .15rem; overflow-wrap: anywhere; }
.sci { font: italic 1rem var(--serif); color: var(--muted); }
.label dl { margin: .45rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .05rem .6rem; padding-top: .4rem; font-size: .86rem;
  border-top: 1px solid transparent; border-image: linear-gradient(90deg, var(--gold-line), transparent) 1; }
.label dt { font: italic .86rem var(--serif); color: var(--gold); }
.label dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.sheet.gone { opacity: .55; }
.sheet.gone .mount img { filter: grayscale(1); }


.gauge { display: grid; gap: .25rem; margin-top: .5rem; }
.g-track { position: relative; height: 9px; border-radius: 5px; background: linear-gradient(90deg, #c48a52 0%, #dcc08e 32%, #9cbc82 62%, #4f86b8 100%); border: 1px solid rgba(201, 161, 76, .4); }
.g-needle { position: absolute; top: -5px; width: 3px; height: 17px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--card); }
.g-scale { display: flex; justify-content: space-between; font: italic .78rem var(--serif); color: var(--muted); }
.g-text { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--green); }
.g-text.due { color: var(--amber); } .g-text.late { color: var(--red); }

.water-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.water-list button { display: flex; align-items: center; gap: .6rem; text-align: left; background: var(--card); border: 1px solid rgba(201, 161, 76, .45); border-radius: 14px; padding: .5rem .7rem; cursor: pointer; }
.water-list button:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.water-list img, .water-list .ph { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; background: var(--green-soft); flex: none; border: 1px solid rgba(201, 161, 76, .5); }
.water-list b { display: block; font: 600 1.05rem var(--serif); color: var(--green); line-height: 1.15; }
.water-list span span { font-size: .82rem; color: var(--amber); }
.water-list button.late span span { color: var(--red); }


.empty { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem 1.5rem; }
.empty > svg { width: 60px; height: 60px; fill: none; stroke: var(--gold); stroke-width: 1; }
.empty h3 { margin-bottom: .3rem; color: var(--green); }
.empty p { margin: 0; color: var(--muted); max-width: 62ch; }
@media (max-width: 520px) { .empty { grid-template-columns: 1fr; } }


.clinic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 880px) { .clinic { grid-template-columns: 1fr; } }
.chart { padding: 1.3rem 1.5rem 1.5rem; display: grid; gap: 1rem; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--gold-line), transparent) 1; }
.chart textarea { background: repeating-linear-gradient(#fff 0 1.6rem, #efe6cc 1.6rem 1.65rem) 0 .35rem / 100% 1.65rem local; line-height: 1.65rem; padding-top: .35rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.thumb { position: relative; width: 88px; height: 88px; overflow: hidden; border-radius: var(--photo-r); border: 1px solid rgba(201, 161, 76, .5); padding: 0; cursor: pointer; background: var(--green-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { box-shadow: 0 0 0 3px var(--gold-line); }
.thumb.on::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.thumb .x { position: absolute; top: 4px; right: 4px; padding: 0 .45rem; background: #fff; }
.thumb progress { position: absolute; left: 6px; right: 6px; bottom: 6px; width: auto; height: 6px; accent-color: var(--green); }
.waiting { display: grid; place-items: center; gap: .8rem; padding: 2.5rem 1rem; text-align: center; color: var(--muted); font-style: italic; font-family: var(--serif); }
.waiting svg { width: 54px; height: 54px; fill: none; stroke: var(--green-2); stroke-width: 1.2; animation: sway 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes sway { 50% { transform: rotate(-8deg); } }

.dx { display: grid; gap: 1rem; }
.dx-top { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.triage { font: 700 .8rem var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--t); background: var(--t-soft);
  border: 1px solid var(--t); border-radius: 999px; padding: .25rem .8rem; white-space: nowrap; margin-top: .2rem; }
.triage.healthy { --t: var(--green-2); --t-soft: var(--green-soft); } .triage.watch { --t: var(--gold); --t-soft: var(--gold-soft); }
.triage.treat { --t: var(--amber); --t-soft: var(--amber-soft); } .triage.urgent { --t: var(--red); --t-soft: var(--red-soft); }
.dx-summary { font: 1.25rem/1.4 var(--serif); margin: .2rem 0 0; color: var(--ink); }
.causes { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; counter-reset: dd; }
.causes li { display: grid; grid-template-columns: 2rem 1fr auto; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); counter-increment: dd; }
.causes li::before { content: counter(dd); font: 600 1.4rem/1 var(--serif); color: var(--gold-line); }
.causes b { display: block; color: var(--green); }
.causes span { font-size: .94rem; color: var(--ink-soft); }
.causes em { font: italic .85rem var(--serif); color: var(--muted); white-space: nowrap; }
.causes em.likely { color: var(--red); font-weight: 600; }
.rx { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.rx > div { min-width: 0; background: #f2ecd8; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; }
.rx h4 { margin: 0 0 .25rem; font: 600 .76rem var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--green-2); }
.rx h4.avoid { color: var(--red); }
.rx ul { margin: 0; padding-left: 1.1rem; font-size: .94rem; }
.rx li + li { margin-top: .2rem; }
.pets { background: var(--red-soft); color: var(--red); padding: .6rem .85rem; font-size: .93rem; margin: 0; border: 1px solid #d9a598; border-radius: 12px; }

.cases { display: grid; gap: .6rem; }
.case { background: var(--card); border: 1px solid rgba(201, 161, 76, .45); border-radius: 14px; box-shadow: var(--shadow); }
.case summary { display: grid; grid-template-columns: 54px 1fr auto; gap: .9rem; align-items: center; padding: .55rem .8rem; cursor: pointer; list-style: none; }
.case summary::-webkit-details-marker { display: none; }
.case summary img, .case summary .ph { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; background: var(--green-soft); border: 1px solid rgba(201, 161, 76, .5); }
.case summary div { min-width: 0; }
.case summary b { font: 600 1.08rem var(--serif); color: var(--green); }
.case summary p { margin: 0; font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case summary .triage { font-size: .64rem; padding: .1rem .55rem; margin: 0; }
.case .inner { padding: .2rem 1rem 1rem; display: grid; gap: .9rem; }


.now { padding: 1.1rem 1.3rem 1.2rem; display: grid; gap: .8rem; }
.now-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11.5rem, 100%), 1fr)); gap: .6rem; }
@media (max-width: 600px) { .now { padding-inline: .9rem; } .now-list { grid-template-columns: 1fr 1fr; gap: .45rem; } .now-list button { padding: .45rem .6rem; } .now-list b { font-size: .98rem; } }
.now-list button { flex: none; display: grid; gap: .05rem; text-align: left; min-width: 0; padding: .6rem .85rem; background: #f2ecd8; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.now-list button:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.now-list img, .now-list .ph { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin-bottom: .35rem; background: #e9e3d3; border: 1px solid rgba(201, 161, 76, .4); }
.now-list b { font: 600 1.05rem var(--serif); color: var(--green); line-height: 1.2; }
.now-list span { font-size: .8rem; color: var(--muted); }
.now-list .nk { font: 600 .66rem var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--k); }
.guide { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.gcard { background: var(--card); border: 1px solid rgba(201, 161, 76, .35); border-radius: 22px 22px var(--radius) var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; align-content: start; }
.gcard.flash { animation: flash 1.4s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 4px var(--gold-line); } to { box-shadow: 0 0 0 4px transparent; } }
.gcard.has-photo { padding-top: 8px; }
.sheet { border-radius: var(--radius); } .gcard { border-radius: var(--radius); }
.gphoto { margin: 0 -.6rem .2rem; position: relative; border-radius: var(--photo-r); overflow: hidden; border: 1px solid rgba(201, 161, 76, .5); }
.gphoto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gphoto figcaption { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: .1rem .55rem; font-size: .68rem; color: #fff; background: rgba(20, 30, 20, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top-left-radius: 8px; border-bottom-right-radius: var(--photo-r); }
.gcard .row1 { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.gcard .row1 .lbl { color: var(--muted); letter-spacing: .08em; font-size: .72rem; text-align: right; }
.gcard .nm { font: 600 1.3rem var(--serif); color: var(--green); line-height: 1.15; }
.gcard p { margin: 0; font-size: .95rem; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.months i { font: normal .66rem var(--serif); text-align: center; padding: .08rem 0; color: #a39a80; background: #f1ead5; }
.months i:first-child { border-radius: 999px 0 0 999px; } .months i:last-child { border-radius: 0 999px 999px 0; }
.months i.on { background: var(--k); color: #fff; }
.months i.cur { box-shadow: inset 0 0 0 2px var(--gold-line); font-weight: 700; }
.tip { font-size: .92rem; padding: .5rem .7rem; background: var(--green-soft); border-radius: 12px; }
.tip.warn { background: var(--red-soft); color: var(--red); }
.tip.bird { background: var(--gold-soft); color: #5d4812; }
.tip .lbl { display: block; font-size: .66rem; color: inherit; opacity: .85; }
.gcard .actions { display: flex; gap: .6rem; align-items: center; justify-content: space-between; margin-top: .2rem; }
.gcard .have { color: var(--green-2); font-weight: 600; font-size: .9rem; }
.gcard .actions a { font-size: .86rem; }


dialog { border: 1px solid rgba(201, 161, 76, .6); border-radius: 18px; padding: 0; width: min(780px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  background: var(--card); color: var(--ink); box-shadow: var(--frame), 0 24px 70px rgba(10, 20, 30, .4); }
dialog::backdrop { background: rgba(12, 30, 58, .55); }
#dlgBody { padding: 1.3rem 1.5rem 1.5rem; display: grid; gap: 1.1rem; }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding-bottom: .6rem;
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--gold-line), transparent) 1; }
.dlg-head h2 { font-size: 1.8rem; }
.dlg-head .sci { font-size: 1.05rem; }
.close { background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: .1rem .4rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--photo-r); border: 1px solid rgba(201, 161, 76, .5); cursor: zoom-in; }
.gallery figcaption { font-size: .74rem; color: var(--muted); display: flex; justify-content: space-between; gap: .3rem; margin-top: .2rem; }
.gallery figcaption button { background: none; border: none; color: var(--red); cursor: pointer; font: inherit; padding: 0; }
.facts { display: grid; gap: .7rem; }
.facts p { margin: 0; }
.facts .lbl { display: block; margin-bottom: .1rem; }
.ai-note { background: linear-gradient(100deg, #f2ecd8, var(--card) 60%); border: 1px solid rgba(201, 161, 76, .45); border-radius: 14px; padding: .85rem 1rem; display: grid; gap: .6rem; }
.ai-note.safety { background: var(--red-soft); border-color: #d9a598; }
.ai-note.safety .lbl { color: var(--red); }
.care { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem; }
.care div { background: #f2ecd8; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; font-size: .92rem; }
.accession { font: 600 .74rem var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0; }
details > summary.btn { list-style: none; width: max-content; }
details > summary.btn::-webkit-details-marker { display: none; }

#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--green); color: #fff;
  border: 1px solid #e2c170; padding: .55rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 50; max-width: calc(100vw - 32px); font-size: .93rem; }
@media (max-width: 560px) { .hero { padding-block: 1.3rem 1rem; } }

@media (max-width: 600px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding-bottom: .8rem; }
  .tabs a { justify-content: center; padding: .45rem .5rem; border-radius: 999px; border: 1px solid rgba(226, 193, 112, .4); font-size: .95rem; white-space: normal; text-align: center; }
}


.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; }
.section-tile { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid rgba(201, 161, 76, .35); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: inherit; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease; }
.section-tile:hover { box-shadow: 0 0 0 2px rgba(201, 161, 76, .55), 0 10px 26px rgba(40, 35, 15, .14); transform: translateY(-3px); }
.st-pic { display: grid; place-items: center; aspect-ratio: 3 / 2; margin: 8px 8px 0; overflow: hidden; border-radius: var(--photo-r); background: #e9e3d3; border: 1px solid rgba(201, 161, 76, .5); }
.st-pic img { width: 100%; height: 100%; object-fit: cover; }
.st-pic svg { width: 56px; height: 56px; fill: none; stroke: var(--k); stroke-width: 1; }
.st-body { display: grid; gap: .1rem; padding: .7rem 1rem .9rem; }
.st-body b { font: 600 1.35rem var(--serif); color: var(--green); }
.st-body span { color: var(--muted); font-size: .9rem; }
.subnav { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.subnav a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .9rem; border-radius: 999px; text-decoration: none;
  background: var(--green-soft); color: var(--green); border: 1px solid rgba(201, 161, 76, .25); font-size: .92rem; }
.subnav a svg { width: 16px; height: 16px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.subnav a:hover { border-color: var(--gold-line); }
.subnav a.on { background: var(--green); color: #fff; border-color: #e2c170; }
.subnav a.all { background: transparent; border-color: transparent; color: var(--cyan-2); padding-left: 0; }


.grp { display: grid; gap: .9rem; scroll-margin-top: 1rem; }
.grp-jump .chip { font-size: .86rem; }


label.check { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .8rem; border-radius: 12px; background: var(--green-soft); border: 1px solid rgba(201, 161, 76, .3);
  font-weight: 400; color: var(--ink-soft); cursor: pointer; }
label.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--green); flex: none; }
label.check b { display: block; color: var(--green); font: 600 1rem var(--serif); }
.guidebook { display: grid; gap: .8rem; padding: 1rem 1.1rem; border-radius: 14px; background: #f2ecd8; border: 1px solid rgba(201, 161, 76, .45); }
.guidebook .care div { background: var(--card); }
.seasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; margin-top: .3rem; }
.seasons div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; font-size: .92rem; }
.seasons b { display: block; font: 600 .95rem var(--serif); color: var(--green); }
.watch { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .4rem; }
.watch li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; font-size: .92rem; }
.watch b { color: var(--green); }
.watch em { display: block; font-style: normal; color: var(--ink-soft); margin-top: .15rem; }
.watch em::before { content: "What to do: "; font-weight: 600; color: var(--green-2); }
.care .lbl { display: block; margin-bottom: .1rem; }
.guidebook .care { grid-template-columns: 1fr; }
.guidebook .care div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; align-items: baseline; }
.guidebook .care .lbl { margin: 0; }
@media (max-width: 520px) { .guidebook .care div { grid-template-columns: 1fr; gap: .1rem; } }
