:root {
  color-scheme: dark;
  --ink: #f7efd8;
  --muted: #c5bda9;
  --bg: #17140e;
  --bg-2: #211c12;
  --panel: #2a2316;
  --panel-soft: #332919;
  --line: rgba(255, 232, 171, .16);
  --honey: #ffc638;
  --honey-light: #ffe280;
  --amber: #e89318;
  --leaf: #8bb056;
  --danger: #f18364;
  --shadow: 0 18px 55px rgba(0, 0, 0, .25);
  --radius: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink: #2b220e;
    --muted: #685d46;
    --bg: #f7f0dd;
    --bg-2: #fbf7ed;
    --panel: #fffdf7;
    --panel-soft: #f6e9c8;
    --line: rgba(83, 62, 17, .15);
    --shadow: 0 16px 42px rgba(81, 58, 10, .12);
  }
}

body.force-light {
  color-scheme: light;
  --ink: #2b220e;
  --muted: #685d46;
  --bg: #f7f0dd;
  --bg-2: #fbf7ed;
  --panel: #fffdf7;
  --panel-soft: #f6e9c8;
  --line: rgba(83, 62, 17, .15);
  --shadow: 0 16px 42px rgba(81, 58, 10, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 194, 41, .08), transparent 25rem),
    radial-gradient(circle at 95% 20%, rgba(139, 176, 86, .06), transparent 22rem),
    var(--bg);
  line-height: 1.55;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; }
h1 { font-size: clamp(2.25rem, 7vw, 4.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: .85rem; }
h3 { font-size: 1.08rem; }
p { color: var(--muted); }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.view { display: none; padding: 35px 0 66px; animation: show .28s ease; }
.view.active { display: block; }
@keyframes show { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 68px;
  padding: 0 max(16px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  letter-spacing: -.06em;
  font-size: 1.1rem;
}
.brand > span:last-child span { color: var(--honey); }
.bee-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 45% 45%;
  background: repeating-linear-gradient(90deg, #19150c 0 4px, var(--honey) 4px 9px);
  transform: rotate(-20deg);
}
.bee-mark:before, .bee-mark:after {
  content: "";
  position: absolute;
  width: 13px;
  height: 10px;
  top: -5px;
  background: rgba(241, 246, 239, .82);
  border: 1px solid rgba(20, 20, 15, .18);
  border-radius: 90% 20% 90% 20%;
}
.bee-mark:before { left: -5px; transform: rotate(-25deg); }
.bee-mark:after { right: -4px; transform: rotate(33deg) scaleX(-1); }
.header-actions { display: flex; gap: 8px; }
.icon-btn, .close-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 13px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--panel);
  font-size: .79rem;
  font-weight: 800;
}
.icon-btn:hover, .close-btn:hover { border-color: var(--honey); color: var(--honey); }

.nav-scroll {
  position: sticky;
  z-index: 19;
  top: 68px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 9px max(16px, calc((100% - 1180px) / 2));
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}
.nav-scroll a:hover, .nav-scroll a.active { background: var(--panel-soft); color: var(--honey); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  min-height: 480px;
  padding: clamp(28px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(130deg, #312410, #17140d 64%);
  box-shadow: var(--shadow);
}
.honey-panel:before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -110px;
  top: -105px;
  width: 470px;
  height: 560px;
  opacity: .27;
  background-image:
    linear-gradient(30deg, transparent 24%, rgba(255, 201, 62, .55) 25%, rgba(255, 201, 62, .55) 26%, transparent 27%, transparent 74%, rgba(255, 201, 62, .55) 75%, rgba(255, 201, 62, .55) 76%, transparent 77%),
    linear-gradient(150deg, transparent 24%, rgba(255, 201, 62, .55) 25%, rgba(255, 201, 62, .55) 26%, transparent 27%, transparent 74%, rgba(255, 201, 62, .55) 75%, rgba(255, 201, 62, .55) 76%, transparent 77%);
  background-size: 56px 96px;
}
.hero-copy { align-self: center; max-width: 690px; }
.hero h1 { color: #fff5d9; }
.hero h1 em { color: var(--honey); font-style: normal; }
.lead { max-width: 650px; font-size: 1.04rem; color: #dfd2b5; }
.eyebrow {
  margin-bottom: 9px;
  color: var(--honey);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 850;
  transition: .18s ease;
}
.button.primary { color: #292008; background: var(--honey); }
.button.primary:hover { transform: translateY(-2px); background: var(--honey-light); }
.button.secondary { color: #fff4d3; border-color: rgba(255, 227, 143, .4); background: rgba(255,255,255,.06); }
.button.secondary:hover { background: rgba(255,255,255,.12); }

.hive-illustration { position: relative; min-height: 300px; align-self: end; }
.sun { position: absolute; right: 58px; top: 34px; width: 86px; height: 86px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 65px rgba(255, 198, 56, .5); }
.grass { position: absolute; inset: auto 0 12px; height: 58px; border-bottom: 3px solid #7a9a4e; background: repeating-linear-gradient(105deg, transparent 0 11px, #718d48 12px 14px, transparent 15px 25px); opacity: .8; }
.hive-stack { position: absolute; bottom: 41px; left: 50%; width: 178px; transform: translateX(-50%); filter: drop-shadow(10px 14px 0 rgba(0,0,0,.18)); }
.hive-roof { position: absolute; z-index: 1; left: calc(50% - 104px); bottom: 202px; width: 208px; height: 35px; background: #543518; clip-path: polygon(8% 100%, 25% 0, 75% 0, 92% 100%); }
.hive-box { height: 48px; margin-bottom: 5px; border: 3px solid #713f12; border-radius: 3px; background: repeating-linear-gradient(0deg, #d58b22 0 8px, #f5b640 9px 16px); }
.hive-box span { display: block; width: 56px; height: 8px; margin: 17px auto; border-radius: 10px; background: #754610; }
.entrance { width: 92px; height: 19px; margin: -2px auto 0; border-radius: 6px 6px 0 0; background: #1b170d; }
.bee { position: absolute; width: 27px; height: 17px; border-radius: 50%; background: repeating-linear-gradient(90deg, #15120c 0 4px, var(--honey) 4px 8px); transform: rotate(-20deg); }
.bee b, .bee i { position: absolute; display: block; }
.bee b { right: -3px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: #15120c; }
.bee i { width: 13px; height: 9px; top: -7px; background: rgba(246, 250, 245, .75); border-radius: 90% 20% 90% 20%; }
.bee i:first-of-type { left: 2px; transform: rotate(-30deg); }
.bee i:last-of-type { left: 10px; transform: rotate(30deg) scaleX(-1); }
.bee-one { top: 78px; left: 42px; animation: bob 2.6s ease-in-out infinite; }
.bee-two { right: 3px; top: 153px; animation: bob 3s .5s ease-in-out infinite; transform: rotate(22deg); }
.flight-path { position: absolute; width: 148px; height: 85px; top: 95px; left: 85px; border-top: 2px dashed rgba(255, 227, 126, .55); border-radius: 50%; transform: rotate(20deg); }
@keyframes bob { 50% { translate: 5px -10px; } }

.notice {
  margin: 22px 0 56px;
  padding: 16px 19px;
  border-left: 4px solid var(--honey);
  border-radius: 0 14px 14px 0;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--muted);
}
.notice strong { color: var(--ink); }
.section-block { margin-top: 58px; }
.section-heading { display: flex; gap: 24px; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.section-heading > div { max-width: 530px; }
.section-heading > p { max-width: 430px; margin-bottom: 8px; }
.path-grid, .method-grid, .threat-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.path-card, .method-card, .guide-card, .hive-detail, .flow-panel, .threat-card, .diagnosis-result, .emergency-strip {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 7px 22px rgba(0,0,0,.06);
}
.path-card { min-height: 248px; padding: 21px; display: flex; flex-direction: column; }
.step-number, .method-index { color: var(--honey); font-size: .8rem; font-weight: 900; letter-spacing: .1em; }
.path-card p { font-size: .91rem; }
.path-card a { margin-top: auto; color: var(--honey); font-weight: 800; font-size: .87rem; }
.path-card a span { margin-left: 4px; font-size: 1.15rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-card { padding: clamp(20px, 3vw, 30px); }
.dark-card { background: linear-gradient(135deg, #292111, #1c1910); }
.warm-card { background: linear-gradient(135deg, #553613, #2b2112); }
.dark-card p, .warm-card p { color: #e2d6bd; }
.tick-list { list-style: none; padding: 0; margin: 19px 0 0; }
.tick-list li { position: relative; padding: 7px 0 7px 27px; color: #e5dbc7; }
.tick-list li:before { content: ""; position: absolute; left: 1px; top: 12px; width: 13px; height: 8px; border-left: 3px solid var(--honey); border-bottom: 3px solid var(--honey); transform: rotate(-45deg); }
.text-link { color: var(--honey); font-weight: 800; }

.page-heading { max-width: 840px; margin: 15px 0 38px; }
.page-heading > p:last-child { max-width: 790px; font-size: 1.04rem; }
.build-layout { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: start; }
.sticky-panel { position: sticky; top: 133px; padding: 20px 14px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); }
.choice-list { display: grid; gap: 7px; }
.choice-list button {
  min-height: 62px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
}
.choice-list button b, .choice-list button small { display: block; }
.choice-list button small { color: var(--muted); font-size: .72rem; margin-top: 2px; }
.choice-list button:hover, .choice-list button.selected { border-color: rgba(255, 198, 56, .5); color: var(--honey); background: rgba(255, 198, 56, .08); }
.tiny { margin: 14px 5px 0; font-size: .76rem; }
.hive-detail { padding: clamp(22px, 4vw, 38px); }
.hive-detail-top { display: grid; grid-template-columns: 1fr 220px; gap: 25px; align-items: center; }
.hive-detail-top > div > p:last-child { max-width: 570px; }
.stack-diagram { min-height: 285px; padding-top: 16px; display: flex; flex-direction: column; align-items: center; justify-content: end; }
.stack-piece { position: relative; width: 80%; min-height: 31px; margin-top: 3px; display: flex; align-items: center; justify-content: center; padding: 4px 9px; border: 2px solid #9d651c; color: #382300; background: #e9ac38; text-align: center; font-size: .67rem; font-weight: 900; }
.stack-piece:before, .stack-piece:after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 5px; background: rgba(96, 53, 11, .27); }
.stack-piece:before { left: 6px; } .stack-piece:after { right: 6px; }
.piece-0 { width: 100%; min-height: 34px; border-radius: 14px 14px 3px 3px; background: #6d4319; color: #ffe29a; }
.piece-1 { width: 89%; min-height: 25px; background: #f6c45a; }
.piece-2 { width: 91%; }
.piece-3 { width: 86%; min-height: 21px; background: #68411b; color: #ffe8ac; }
.piece-4 { width: 94%; min-height: 50px; }
.piece-5 { width: 98%; min-height: 22px; background: #70451c; color: #ffe8ac; }
.piece-6 { width: 100%; min-height: 17px; background: #4a321d; color: #ffe8ac; }
.hive-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 25px; }
.hive-facts > div { padding: 18px; border-radius: 15px; background: var(--panel-soft); }
.hive-facts h3 { margin-bottom: 8px; }
.hive-facts ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .91rem; }
.hive-facts li + li { margin-top: 7px; }
.build-tip { margin-top: 15px; padding: 13px 15px; border-radius: 12px; background: rgba(139, 176, 86, .12); color: var(--muted); font-size: .9rem; }
.build-tip strong { color: var(--leaf); }

.card-heading { display: flex; justify-content: space-between; gap: 20px; }
.hex-badge { width: 40px; height: 46px; display: grid; place-items: center; color: #342305; background: var(--honey); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); font-size: .76rem; font-weight: 900; }
.site-diagram {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  margin: 22px 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 62% 35%, rgba(255, 207, 77, .35), transparent 18%),
    linear-gradient(#889b75 0 57%, #617b46 57%);
}
.site-tree { position: absolute; bottom: 35px; width: 72px; height: 130px; background: #325836; clip-path: polygon(50% 0, 88% 45%, 72% 45%, 100% 80%, 58% 76%, 54% 100%, 42% 100%, 42% 76%, 0 80%, 28% 45%, 12% 45%); }
.tree-left { left: 5%; } .tree-right { right: 5%; height: 100px; }
.site-hive { position: absolute; left: 48%; bottom: 41px; width: 88px; transform: translateX(-50%); }
.site-hive div { height: 30px; margin-bottom: 3px; border: 2px solid #734917; background: repeating-linear-gradient(0deg,#dfa13b 0 7px,#f5bc50 8px 14px); }
.site-hive span { display: block; height: 12px; margin: 0 auto; width: 45px; background: #291e0c; border-radius: 5px 5px 0 0; }
.site-arrow { position: absolute; left: calc(48% + 38px); bottom: 91px; width: 170px; border-top: 3px dashed #ffe48e; transform: rotate(-9deg); }
.site-arrow:after { content: ""; position: absolute; right: -3px; top: -8px; width: 15px; height: 15px; border-top: 3px solid #ffe48e; border-right: 3px solid #ffe48e; transform: rotate(45deg); }
.site-label { position: absolute; padding: 4px 7px; border-radius: 7px; color: #fff7dc; background: rgba(29, 37, 22, .75); font-size: .7rem; font-weight: 800; }
.flight { right: 7%; bottom: 116px; } .sun-label { left: 34%; top: 18px; } .water-label { right: 9%; bottom: 24px; }
.site-water { position: absolute; right: 20%; bottom: 39px; width: 38px; height: 16px; border-radius: 50%; background: #76b5bd; }
.compact-grid, .record-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.compact-grid > div, .record-grid > div { padding: 13px; border-left: 2px solid var(--honey); background: color-mix(in srgb, var(--panel-soft) 60%, transparent); }
.compact-grid strong, .compact-grid span, .record-grid b, .record-grid span { display: block; }
.compact-grid span, .record-grid span { margin-top: 3px; color: var(--muted); font-size: .83rem; }

.method-grid { grid-template-columns: repeat(5, 1fr); }
.method-card { position: relative; padding: 20px; overflow: hidden; }
.method-card:after { content: ""; position: absolute; width: 95px; height: 110px; right: -25px; bottom: -50px; opacity: .11; background: var(--honey); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.method-index { display: block; }
.method-card .tag { display: inline-block; margin: 10px 0 6px; padding: 3px 8px; border-radius: 99px; color: var(--leaf); background: rgba(139,176,86,.12); font-size: .68rem; font-weight: 800; }
.method-card p { font-size: .87rem; }
.method-card > div { position: relative; z-index: 1; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.method-card strong { color: var(--honey); }
.queen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.queen-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.queen-card.alert { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); }
.queen-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.queen-card li + li { margin-top: 8px; }

.region-picker { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; }
.region-picker button { flex: 0 0 auto; min-height: 46px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--panel); font-size: .85rem; font-weight: 800; }
.region-picker button.selected { border-color: var(--honey); color: #362400; background: var(--honey); }
.season-dashboard { display: grid; grid-template-columns: 1.5fr .8fr; gap: 16px; }
.flow-panel { padding: 28px; }
.panel-heading { display: flex; justify-content: space-between; gap: 15px; }
.season-dot { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--honey) 0 25%, #93ae61 25% 50%, #8d5c2d 50% 75%, #c3d3de 75%); }
.season-timeline { margin-top: 22px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 0 0 18px; }
.timeline-item:not(:last-child):before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.timeline-item > span { z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #372400; background: var(--honey); font-size: .7rem; font-weight: 900; }
.timeline-item h3 { margin: 5px 0 4px; font-size: 1rem; }
.timeline-item p { margin: 0; font-size: .88rem; }
.checklist-card { display: flex; flex-direction: column; justify-content: center; }
.field-note { margin-top: 15px; padding: 13px; border-radius: 12px; background: var(--panel-soft); }
.field-note span { display: block; color: var(--muted); font-size: .85rem; }
.field-note a { display: inline-block; margin-top: 6px; color: var(--honey); font-weight: 800; font-size: .86rem; }

.flowchart { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 0; }
.flow-node { width: min(100%, 360px); padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: .88rem; font-weight: 800; }
.flow-node.start { color: #382400; border-color: var(--honey); background: var(--honey); }
.flow-node.question { border-color: rgba(255,198,56,.45); }
.flow-node.good { color: #e5f0d8; border-color: rgba(139,176,86,.55); background: rgba(139,176,86,.14); }
.flow-node.muted { color: var(--muted); }
.flow-line { width: 2px; height: 28px; background: var(--honey); }
.flow-branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; width: min(100%, 760px); padding-top: 28px; }
.flow-branches:before { content: ""; position: absolute; left: 25%; right: 25%; top: 0; height: 28px; border-top: 2px solid var(--honey); border-left: 2px solid var(--honey); border-right: 2px solid var(--honey); }
.flow-branches > div { position: relative; }
.branch-label { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 9px; font-size: .69rem; font-weight: 900; text-transform: uppercase; }
.branch-label.no { color: #ffd9ce; background: rgba(241,131,100,.18); }
.branch-label.yes { color: #d8eac9; background: rgba(139,176,86,.18); }
.flow-branches.bottom { padding-top: 20px; margin-top: 17px; }
.flow-branches.bottom:before { display: none; }

.health-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.filter-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .86rem; font-weight: 700; }
select { min-height: 44px; max-width: 230px; padding: 0 31px 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: var(--panel); }
.result-count { color: var(--honey); font-size: .82rem; font-weight: 900; }
.threat-grid { grid-template-columns: repeat(3, 1fr); }
.threat-card { padding: 20px; border-top-width: 4px; }
.threat-card.parasite { border-top-color: var(--honey); }
.threat-card.disease { border-top-color: var(--danger); }
.threat-card.stress { border-top-color: var(--leaf); }
.threat-card.predator { border-top-color: #a98be0; }
.threat-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: .08em; font-size: .65rem; font-weight: 900; }
.threat-head span { color: var(--honey); }
.threat-head b { color: var(--muted); text-align: right; }
.threat-card h3 { margin: 11px 0 10px; }
details { border-top: 1px solid var(--line); }
details summary { padding: 10px 0; color: var(--ink); cursor: pointer; font-size: .83rem; font-weight: 800; }
details p { padding: 0 0 12px; margin: 0; font-size: .84rem; }
.mite-plan { padding: 30px; border-radius: 24px; background: linear-gradient(130deg, rgba(255,198,56,.1), rgba(139,176,86,.07)); }
.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 22px; }
.loop-grid article { position: relative; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.loop-grid article > span { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 11px; border-radius: 50%; color: #372400; background: var(--honey); font-size: .75rem; font-weight: 900; }
.loop-grid h3 { margin-bottom: 7px; }
.loop-grid p { margin: 0; font-size: .83rem; }

.diagnose-shell { display: grid; grid-template-columns: minmax(230px, .7fr) 1.3fr; gap: 16px; align-items: start; }
.symptom-list { display: grid; gap: 8px; }
.symptom-button { min-height: 57px; display: flex; align-items: center; gap: 11px; text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--panel); font-weight: 750; font-size: .87rem; }
.symptom-button:hover, .symptom-button.selected { border-color: var(--honey); background: rgba(255,198,56,.09); }
.symptom-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--honey); }
.diagnosis-result { padding: clamp(22px, 4vw, 38px); }
.diagnosis-result ol { padding-left: 22px; color: var(--muted); }
.diagnosis-result li { padding-left: 5px; margin-bottom: 12px; }
.next-action { margin-top: 20px; padding: 15px; border-left: 4px solid var(--leaf); border-radius: 0 13px 13px 0; background: rgba(139,176,86,.1); color: var(--muted); }
.next-action strong { color: var(--leaf); }
.medical-note { margin: 17px 0 0; font-size: .78rem; }
.emergency-strip { display: grid; grid-template-columns: .9fr 1.1fr; gap: 25px; margin-top: 22px; padding: 26px; border-color: rgba(241,131,100,.5); background: color-mix(in srgb, var(--danger) 8%, var(--panel)); }
.emergency-strip h2 { margin: 0; font-size: 1.35rem; }
.emergency-strip p:last-child { margin: 0; font-size: .9rem; }

.notebook-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.checklist { display: grid; gap: 4px; }
.check-row { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; min-height: 47px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: .9rem; }
.check-row input { position: absolute; opacity: 0; }
.fake-check { width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 6px; }
.check-row input:checked + .fake-check { border-color: var(--honey); background: var(--honey); }
.check-row input:checked + .fake-check:after { content: ""; display: block; width: 9px; height: 5px; margin: 4px; border-left: 2px solid #362400; border-bottom: 2px solid #362400; transform: rotate(-45deg); }
.check-row input:checked ~ span:last-child { color: var(--ink); text-decoration: line-through; text-decoration-color: rgba(255,198,56,.6); }
.notebook-card label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: .79rem; font-weight: 800; }
input[type="text"], input[type="search"], textarea, #apiaryName {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 50%, var(--panel));
}
#apiaryName { min-height: 44px; padding: 0 12px; }
textarea { min-height: 190px; padding: 12px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--honey); box-shadow: 0 0 0 3px rgba(255,198,56,.13); }
.note-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.note-footer span { color: var(--muted); font-size: .78rem; }
.record-card { margin-top: 16px; }
.record-grid { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }

.search-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: start center; padding: 82px 16px 16px; background: rgba(14, 12, 8, .7); backdrop-filter: blur(7px); }
.search-dialog { width: min(710px, 100%); max-height: min(720px, calc(100vh - 105px)); overflow: auto; padding: 21px; border: 1px solid var(--line); border-radius: 21px; background: var(--panel); box-shadow: var(--shadow); }
.search-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.search-header h2 { margin: 0; }
#searchInput { min-height: 50px; margin: 18px 0 10px; padding: 0 14px; }
.search-results { display: grid; gap: 7px; }
.search-hint { margin: 12px 2px; font-size: .89rem; }
.search-result { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; text-align: left; color: var(--ink); background: transparent; }
.search-result:hover { border-color: var(--honey); background: rgba(255,198,56,.06); }
.search-result strong, .search-result span { display: block; }
.search-result span { margin-top: 3px; color: var(--muted); font-size: .8rem; }

footer { display: flex; justify-content: space-between; gap: 16px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
footer span:first-child { color: var(--honey); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 960px) {
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
  .build-layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .choice-list { grid-template-columns: repeat(2, 1fr); }
  .season-dashboard, .notebook-grid { grid-template-columns: 1fr; }
  .queen-grid { grid-template-columns: 1fr; }
  .loop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  main { width: min(100% - 22px, 1180px); }
  .view { padding-top: 23px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 29px 23px 18px; border-radius: 22px; }
  .hive-illustration { min-height: 240px; margin-top: 5px; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3.3rem); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; }
  .path-grid, .two-col, .method-grid, .threat-grid, .hive-facts, .compact-grid, .record-grid, .emergency-strip { grid-template-columns: 1fr; }
  .path-card { min-height: 0; }
  .method-card { min-height: 215px; }
  .hive-detail { padding: 20px; }
  .hive-detail-top { grid-template-columns: 1fr; }
  .stack-diagram { min-height: 220px; max-width: 240px; margin: 0 auto; width: 100%; }
  .choice-list { grid-template-columns: 1fr 1fr; }
  .choice-list button { min-height: 70px; }
  .flow-panel, .mite-plan { padding: 20px; }
  .flow-branches { gap: 10px; font-size: .78rem; }
  .flow-node { font-size: .78rem; }
  .loop-grid { grid-template-columns: 1fr; }
  .diagnose-shell { grid-template-columns: 1fr; }
  .symptom-list { grid-template-columns: 1fr; }
  .emergency-strip { gap: 11px; }
  footer { display: block; line-height: 1.7; }
  footer span { display: block; }
}
