/* مداآپیس: stylesheet. RTL, mobile first. */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.f6d31671339d.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1e2b22;
  --muted: #5d6a60;
  --paper: #f6f7f1;
  --surface: #ffffff;
  --line: #dadfd2;
  --honey: #e8a410;
  --honey-deep: #8a5a00;
  --honey-soft: #fbedc2;
  --moss: #35633f;
  --danger: #a12a1f;
  --paper-rgb: 246, 247, 241;
  --shadow-rgb: 30, 43, 34;
  --on-ink: #ffffff;
  --on-honey: #1e2b22;
  --honey-hover: #f2b52e;
  --good-bg: #e3f1e5;
  --bad-bg: #fbe4df;
  --accepted-bg: #e9f5eb;
  --note-bg: #fff6dc;
  --input-border: #b9c2b3;
  --scrim: rgba(15, 23, 19, .45);
  color-scheme: light;
  --radius: 6px;
  --wrap: 960px;
  --prose: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--paper); }

body {
  margin: 0;
  font-family: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: transparent;
}

a { color: var(--moss); text-underline-offset: 3px; }
a:hover { color: var(--honey-deep); }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.5; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
.narrow { max-width: var(--prose); margin-inline: auto; padding-block: 1.5rem; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--ink); color: var(--on-ink); padding: .4rem .8rem; border-radius: var(--radius);
}
.skip:focus { top: .5rem; z-index: 10; }

/* Header and navigation */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.bar { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding-block: .4rem; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem; margin-inline-end: auto;
  font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none;
}
.back {
  display: inline-flex; align-items: center; gap: .15rem; padding: .2rem .55rem .2rem .7rem;
  border: 1px solid var(--line); border-radius: 99px; color: var(--ink); text-decoration: none; font-size: .92rem;
}
.back:hover { background: var(--honey-soft); color: var(--ink); }
.nav, .account { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; cursor: pointer;
  padding: .3rem .8rem; border: 1px solid var(--ink); border-radius: 99px; background: var(--surface); color: var(--ink);
}
.me { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); text-decoration: none; }
.me-name { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Full menu sheet (phones) */
.menu-panel { position: fixed; inset: 0; z-index: 90; background: var(--scrim); }
.menu-panel[hidden] { display: none; }
.menu-sheet {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 22rem);
  background: var(--surface); overflow-y: auto; padding: 1rem 1.2rem 6rem;
  animation: slide-in .28s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes slide-in { from { transform: translateX(-100%); opacity: .6; } to { transform: none; opacity: 1; } }
.menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.menu-close { font: inherit; background: none; border: 0; cursor: pointer; color: var(--ink); padding: .3rem; }
.menu-list { display: flex; flex-direction: column; }
.menu-list a { padding: .75rem .2rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.menu-list a:hover { color: var(--honey-deep); }
.menu-account { display: flex; flex-direction: column; gap: .5rem; padding-top: 1rem; }
.menu-account a:not(.btn) { color: var(--moss); padding: .35rem 0; }

/* Bottom tab bar (phones) */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a, .tabbar button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .45rem 0 .35rem; font: inherit; font-size: .72rem; line-height: 1.4;
  color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.tabbar .is-active { color: var(--ink); font-weight: 700; }
.tabbar .is-active svg { color: var(--honey-deep); }
.tab-count {
  position: absolute; top: .15rem; inset-inline-end: 28%; min-width: 1.2em; padding: 0 .3em; border-radius: 99px;
  background: var(--honey); color: var(--ink); font-style: normal; font-size: .68rem; font-weight: 700;
}
body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }

@media (min-width: 820px) {
  body { padding-bottom: 0; }
  .tabbar, .menu-toggle, .menu-panel { display: none !important; }
  .nav { display: flex; gap: 1rem; overflow-x: auto; white-space: nowrap; margin-inline-start: 1rem; }
  .nav a { color: var(--ink); text-decoration: none; padding-block: .2rem; border-bottom: 2px solid transparent; font-size: .95rem; }
  .nav a:hover { border-bottom-color: var(--honey); color: var(--ink); }
  .brand { margin-inline-end: 0; }
  .account { display: flex; align-items: center; gap: .7rem; margin-inline-start: auto; }
  .back span { display: none; }
  .back { padding: .2rem .4rem; }
}

/* Hexagon: avatars and brand mark */
.hex {
  display: inline-grid; place-items: center; flex: none;
  background: var(--honey-soft); color: var(--honey-deep); font-weight: 700;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  overflow: hidden;
}
.hex img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hex-xs { width: 28px; height: 28px; font-size: .8rem; }
.hex-sm { width: 42px; height: 42px; font-size: 1rem; }
.hex-md { width: 60px; height: 60px; font-size: 1.3rem; }
.hex-lg { width: 120px; height: 120px; font-size: 2.4rem; }
.hex-brand { width: 28px; height: 28px; background: var(--honey); }

/* Buttons and forms */
.btn {
  display: inline-block; font: inherit; line-height: 1.5; cursor: pointer;
  padding: .55rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--surface); color: var(--ink);
  text-decoration: none; text-align: center;
}
.btn:hover { background: var(--honey-soft); color: var(--ink); }
.btn-primary { background: var(--honey); border-color: var(--honey); color: var(--ink); font-weight: 700; }
.btn-primary:hover { background: var(--honey-hover); border-color: var(--honey-hover); }
.btn-ghost { border-color: var(--line); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--surface); }
.btn-small { padding: .25rem .8rem; font-size: .92rem; }

.link-button {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--moss); text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--honey-deep); }
form.inline { display: inline; margin: 0; }

.form { margin-block: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], select, textarea {
  width: 100%; font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--input-border); border-radius: var(--radius); padding: .5rem .7rem;
}
input[type="file"] { max-width: 100%; }
textarea { line-height: 1.8; resize: vertical; }
.hint { color: var(--muted); font-size: .88rem; margin-top: .25rem; }
.hint ul { margin: .25rem 0 0; padding-inline-start: 1.2rem; }
.error { color: var(--danger); margin: .25rem 0 0; font-size: .92rem; }
.note, .aside { color: var(--muted); }

/* Messages */
.messages { list-style: none; margin: 1rem 0 0; padding: 0; }
.msg {
  padding: .6rem .9rem; border-radius: var(--radius); margin-bottom: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--moss);
}
.msg-error, .msg-warning { border-inline-start-color: var(--danger); }

/* Hero */
.hero {
  display: grid; gap: 2rem; align-items: center;
  padding-block: 2.5rem 2rem; border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 1.9rem; max-width: 22ch; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; }

.comb {
  --w: clamp(88px, 24vw, 124px);
  display: flex; padding-bottom: calc(var(--w) * 0.45); justify-content: center;
}
.cell {
  width: var(--w); aspect-ratio: 1 / 0.866; flex: none;
  margin-inline-start: calc(var(--w) * -0.25 + 4px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--honey-soft); color: var(--ink); text-decoration: none;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  font-size: .85rem; line-height: 1.4;
}
.cell:first-child { margin-inline-start: 0; }
.cell:nth-child(even) { transform: translateY(calc(var(--w) * 0.433 + 2px)); }
.cell:hover { background: var(--honey); color: var(--ink); }
.cell-n { font-size: 1.35rem; font-weight: 800; }

@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr auto; }
  .hero h1 { font-size: 2.3rem; }
  .comb { --w: 124px; }
}

/* Content blocks and rows */
.block { padding-block: 1.8rem 0.5rem; }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-bottom: 2px solid var(--ink); margin-bottom: .25rem; padding-bottom: .35rem;
}
.block-head h1, .block-head h2 { margin: 0; }

.row { display: flex; gap: .9rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.row-avatar { flex: none; }
.row-body { min-width: 0; flex: 1; }
.row h3 { margin-bottom: .2rem; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--honey-deep); }
.row-summary { color: var(--muted); margin-bottom: .3rem; max-width: var(--prose); }

.meta { display: flex; flex-wrap: wrap; gap: 0 1rem; color: var(--muted); font-size: .88rem; margin: 0; }
.meta a { color: var(--muted); }

.answers-count {
  flex: none; width: 3.8rem; text-align: center; line-height: 1.3; padding-top: .2rem;
  color: var(--muted); font-size: .85rem;
}
.answers-count strong { display: block; font-size: 1.3rem; color: var(--ink); }
.answers-count.is-solved { color: var(--moss); }
.answers-count.is-solved strong { color: var(--moss); }

.badge {
  display: inline-block; padding: 0 .5rem; border-radius: 99px;
  background: var(--honey-soft); color: var(--honey-deep); font-size: .8rem;
}
.badge-ok { background: var(--good-bg); color: var(--moss); }

.empty { color: var(--muted); padding-block: 1rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: .8rem; }
.filters input[type="search"] { flex: 1 1 14rem; width: auto; }
.filters select { flex: 0 1 12rem; width: auto; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.2rem; }

/* Post and question pages */
.kind { margin-bottom: .2rem; font-size: .92rem; }
.byline { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.cover { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 1.2rem; }
.prose { max-width: var(--prose); }
.prose p { margin-bottom: 1.1rem; }
/* long links (sources lists) wrap instead of widening the page on phones */
.prose p, .prose li { overflow-wrap: anywhere; }
.manage { display: flex; gap: .5rem; margin-top: 1.5rem; }

.comments { margin-top: 2.5rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.comment { display: flex; gap: .75rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.comment > div { min-width: 0; flex: 1; }
.comment .prose p:last-child { margin-bottom: .3rem; }
.comment.is-accepted { background: var(--accepted-bg); margin-inline: -.75rem; padding-inline: .75rem; border-radius: var(--radius); }

/* Profile */
.profile-head { display: flex; gap: 1.2rem; align-items: center; padding-block: 2rem 1rem; }
.profile-head h1 { margin-bottom: .2rem; }
.bio { max-width: var(--prose); margin-top: .6rem; }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); padding-block: 1.5rem; color: var(--muted); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---- Phase 1 additions ---- */
.count {
  display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 99px;
  background: var(--honey); color: var(--ink); font-size: .78rem; font-weight: 700; text-align: center;
}
.bell, .cart-link { color: var(--ink); text-decoration: none; font-size: .92rem; }
.narrow.wide { max-width: 46rem; }
.sub { font-size: 1.05rem; margin-top: 1.6rem; padding-bottom: .2rem; border-bottom: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; }
.tag {
  padding: 0 .7rem; border-radius: 99px; background: var(--honey-soft);
  color: var(--honey-deep); text-decoration: none; font-size: .88rem;
}
.tag:hover { background: var(--honey); color: var(--ink); }

.related { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.related ul { margin: 0; padding-inline-start: 1.2rem; }

.answer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin-top: .4rem; font-size: .92rem; }
.vote {
  font: inherit; font-size: .88rem; cursor: pointer; padding: .1rem .8rem;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink);
}
.vote:hover { border-color: var(--honey); }
.vote.is-voted { background: var(--honey); border-color: var(--honey); font-weight: 700; }
.vote-count { color: var(--muted); }

.notif { padding: .8rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.notif.is-new { border-inline-start: 4px solid var(--honey); padding-inline-start: .8rem; background: var(--note-bg); }

.panel-item { padding-block: 1rem; border-bottom: 1px solid var(--line); }
.panel-actions { display: flex; gap: .5rem; margin: .5rem 0 0; }

.md-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  padding: .35rem; margin-bottom: .35rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.md-btn {
  font: inherit; font-size: .88rem; cursor: pointer; padding: .1rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.md-btn:hover { background: var(--honey-soft); }
.md-status { color: var(--muted); font-size: .85rem; }

.prose h2 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.prose h3 { font-size: 1.08rem; margin: 1.3rem 0 .4rem; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.1rem; }
.prose blockquote { margin: 0 0 1.1rem; padding: .2rem 1rem; border-inline-start: 4px solid var(--honey); color: var(--muted); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.1rem; font-size: .95rem; }
.prose th, .prose td { padding: .45rem .7rem; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; white-space: nowrap; }
.prose pre { overflow-x: auto; padding: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); direction: ltr; text-align: left; }
.prose code { direction: ltr; unicode-bidi: embed; }

/* ---- Phase 2: identity, motion, apiary ---- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { 0% { stroke-dashoffset: 372; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* The loading line at the top of the page (v20.2; there is no opening screen) */
#page-bar { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 100; pointer-events: none; }
#page-bar i { display: block; height: 100%; width: 0; background: var(--honey); box-shadow: 0 0 6px rgba(232, 164, 16, .55); opacity: 0; }
.page-busy #page-bar i { opacity: 1; animation: page-bar 6s cubic-bezier(.08, .7, .2, 1) forwards; }
.page-done #page-bar i { width: 100%; opacity: 0; transition: width .2s ease-out, opacity .35s ease .2s; }
@keyframes page-bar { from { width: 4%; } to { width: 85%; } }

/* Stats strip: hairlines between cells without outer borders */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; background: var(--line); border-block: 1px solid var(--line);
}
.stats div { background: var(--paper); padding: 1rem .5rem; text-align: center; }
.stats strong { display: block; font-size: 1.5rem; line-height: 1.3; }
.stats span { color: var(--muted); font-size: .9rem; }

/* Hero with rotating backdrop */
.hero-bleed { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-backdrop .layer {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-backdrop .layer.is-on { opacity: 1; }
.hero-bleed::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(var(--paper-rgb), .88);
}
@media (min-width: 820px) {
  .hero-bleed::after {
    background: linear-gradient(to left, rgba(var(--paper-rgb), .96) 0%, rgba(var(--paper-rgb), .88) 45%, rgba(var(--paper-rgb), .2) 100%);
  }
}
.hero-bleed .hero { position: relative; z-index: 2; border-bottom: 0; }
.cell { animation: pop .6s cubic-bezier(.2,.8,.3,1.2) both; }
.cell:nth-child(2) { animation-delay: .12s; }
.cell:nth-child(3) { animation-delay: .24s; }
.cell:nth-child(4) { animation-delay: .36s; }

/* Messages and busy buttons */
.msg { animation: rise .45s ease both; }
.btn.is-busy::after {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-inline-start: .5em; vertical-align: -.1em;
  background: currentColor; clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  animation: spin .9s linear infinite;
}

/* Login and signup */
.auth { display: grid; gap: 0; margin-block: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.auth-art { position: relative; min-height: 150px; background: var(--honey-soft); overflow: hidden; }
.auth-art .hero-backdrop { opacity: .95; }
.auth-bees { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.auth-caption {
  position: relative; z-index: 3; margin: 0; padding: 1rem 1.2rem; max-width: 22rem;
  font-weight: 700; font-size: 1.05rem; line-height: 1.8;
  background: linear-gradient(to left, rgba(var(--paper-rgb), .92), rgba(var(--paper-rgb), 0));
}
.auth-card { padding: 1.5rem 1.25rem; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.auth-card h1 { margin-bottom: 1rem; }
.auth-card .field { animation: rise .6s ease both; }
.auth-card .field:nth-of-type(1) { animation-delay: .10s; }
.auth-card .field:nth-of-type(2) { animation-delay: .17s; }
.auth-card .field:nth-of-type(3) { animation-delay: .24s; }
.auth-card .field:nth-of-type(4) { animation-delay: .31s; }
@media (min-width: 820px) {
  .auth { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .auth-art { min-height: 0; display: flex; align-items: flex-end; }
  .auth-card { padding: 2.2rem 2rem; align-self: center; }
}

/* Apiary */
.head-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-block: 1rem; }
.kpis div { background: var(--surface); padding: .9rem .7rem; text-align: center; }
.kpis strong { display: block; font-size: 1.6rem; line-height: 1.3; }
.kpis strong.small { font-size: 1.05rem; padding-block: .35rem; }
.kpis span { color: var(--muted); font-size: .88rem; }
.kpis .g-high strong { color: var(--moss); }
.kpis .g-low strong { color: var(--danger); }

.grade {
  display: inline-block; min-width: 3.6rem; padding: .05rem .7rem; border-radius: 99px;
  font-weight: 700; text-align: center; background: var(--line); color: var(--muted);
}
.grade.g-high { background: var(--good-bg); color: var(--moss); }
.grade.g-mid { background: var(--honey-soft); color: var(--honey-deep); }
.grade.g-low { background: var(--bad-bg); color: var(--danger); }
.hive-row { align-items: center; }
.hive-row.is-inactive { opacity: .6; }
.hex-md .hex-letter { font-size: 1rem; max-width: 100%; overflow: hidden; }
.top { margin: 0; padding-inline-start: 1.4rem; }
.top li { padding-block: .15rem; }

.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 8.5rem 1fr 3rem; align-items: center; gap: .6rem; padding-block: .25rem; }
.bar-track { display: block; height: .6rem; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--honey); border-radius: 99px; }
.bar-val { font-weight: 700; text-align: end; }
@media (max-width: 480px) { .bars li { grid-template-columns: 6.5rem 1fr 2.6rem; font-size: .92rem; } }

.inspection { padding-block: .9rem; border-bottom: 1px solid var(--line); }
.inspection-head { display: flex; align-items: center; gap: .8rem; }
.inspection-head form { margin-inline-start: auto; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; padding: 0; }
.chips li { padding: 0 .7rem; border-radius: 99px; background: var(--honey-soft); font-size: .88rem; }

/* Profile */
.apiary-chip { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; margin: .6rem 0; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; padding: 0; }
.badges li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .05rem .8rem .05rem .7rem;
  border-radius: 99px; background: var(--honey-soft); color: var(--honey-deep); font-size: .88rem; font-weight: 600;
}
.badges li::before {
  content: ""; width: .8em; height: .8em; background: var(--honey);
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

@media (prefers-reduced-motion: reduce) {
  #page-bar { display: none !important; }
  .auth-bees { display: none; }
  .auth-card, .auth-card .field, .cell, .msg { animation: none !important; }
}

/* ---- Phase 3: shop, pedigree, banners, motion ---- */
@keyframes drop-fall { 0%, 20% { transform: translateY(-4px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }

/* Section banners with illustrations */
.banner {
  position: relative; display: flex; align-items: center; min-height: 128px; margin-top: 1.2rem; padding: 1.1rem 1.4rem;
  border-radius: var(--radius); overflow: hidden;
  background: var(--honey-soft) var(--banner) left center / cover no-repeat;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(var(--paper-rgb), .94) 38%, rgba(var(--paper-rgb), 0) 82%);
}
@media (max-width: 600px) { .banner::before { background: linear-gradient(to left, rgba(var(--paper-rgb), .94) 55%, rgba(var(--paper-rgb), .25) 100%); } }
.banner > div { position: relative; }
.banner h1 { margin: 0; font-size: 1.45rem; }
.banner p { margin: .2rem 0 0; color: var(--muted); }
.banner p.banner-title { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.5; color: inherit; }

/* Empty states */
.empty { text-align: center; }
.empty::before {
  content: ""; display: block; width: 140px; height: 105px; margin: 0 auto .4rem;
  background: url("../img/empty-hive.668cf758c907.svg") center / contain no-repeat;
}

/* Hero decoration */
.hero-bees { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.hero-bleed .hero { z-index: 3; padding-bottom: 3.2rem; }
.honey-drip { position: absolute; z-index: 2; bottom: -1px; inset-inline: 0; width: 100%; height: 40px; pointer-events: none; }
.honey-drip .drop { animation: drop-fall 3.6s ease-in infinite; transform-box: fill-box; }
.honey-drip .d2 { animation-delay: 1.3s; }
.honey-drip .d3 { animation-delay: 2.3s; }

/* Reveal on scroll (classes are added by site.js only) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Hover motion */
.row h3 a, .nav a, .tag, .vote, .md-btn { transition: color .2s, background-color .2s, border-color .2s; }
.btn { transition: background-color .2s, transform .15s; }
.btn:active { transform: scale(.97); }
.cell { transition: background-color .2s, transform .25s; }
.cell:hover { transform: scale(1.06); z-index: 2; }
.cell:nth-child(even):hover { transform: translateY(calc(var(--w) * 0.433 + 2px)) scale(1.06); }

/* Tabs and filters */
.tabs { display: flex; gap: 1rem; }
.tabs a { padding-bottom: .15rem; border-bottom: 3px solid transparent; color: var(--ink); text-decoration: none; font-weight: 600; }
.tabs a.is-active { border-bottom-color: var(--honey); }
.filters-wide select { flex: 1 1 9rem; }
.check { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .4rem; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; padding-block: 1rem; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.product-card:hover { box-shadow: 0 8px 20px rgba(var(--shadow-rgb), .12); transform: translateY(-3px); }
.product-thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--honey-soft); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.ribbon { position: absolute; top: .6rem; inset-inline-start: .6rem; padding: 0 .6rem; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: .8rem; }
.product-body { padding: .7rem .8rem .9rem; }
.product-body h3 { font-size: 1rem; margin-bottom: .2rem; }
.product-body h3 a { color: var(--ink); text-decoration: none; }
.price { margin: .3rem 0 0; font-weight: 800; color: var(--honey-deep); }
.price.big { font-size: 1.5rem; }

/* Product page */
.product { display: grid; gap: 1.5rem; padding-block: 1.5rem; }
@media (min-width: 820px) { .product { grid-template-columns: 1fr 1fr; } }
.product-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--honey-soft); }
.product-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumbs { display: flex; gap: .5rem; margin-top: .5rem; overflow-x: auto; }
.product-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.specs { margin: 1rem 0; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1rem; }
.buy input[type="number"] { width: 5rem; }
.pedigree-link { margin-top: 1rem; }

/* Cart and orders */
.cart-row { display: flex; align-items: center; gap: .8rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.cart-thumb { flex: none; width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; background: var(--honey-soft); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.cart-info a { color: var(--ink); text-decoration: none; }
.qty { display: flex; gap: .4rem; align-items: center; }
.qty input[type="number"] { width: 4.5rem; padding: .25rem .5rem; }
.cart-total { font-weight: 800; white-space: nowrap; }
.cart-sum { font-size: 1.15rem; margin-block: 1rem; }
.summary { list-style: none; padding: 0; margin: 0 0 .5rem; }
.summary li { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.summary li strong { margin-inline-start: auto; white-space: nowrap; }
.breed-img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); }

/* Pedigree tree */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-inline-start: 1.1rem; padding-inline-start: 1rem; border-inline-start: 2px solid var(--honey); }
.tree-node { position: relative; padding-block: .35rem; }
.node-card {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .15rem .7rem; padding: .4rem .8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
.node-card:hover { border-color: var(--honey); background: var(--honey-soft); }
.node-card em { font-style: normal; font-size: .78rem; color: var(--honey-deep); font-weight: 700; }
.node-card span { color: var(--muted); font-size: .88rem; }
.node-card .grade { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .hero-bees, .honey-bees { display: none; }
  .honey-drip .drop, .menu-sheet { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cell:hover, .product-card:hover { transform: none; }
}

/* ---- Phase 4: reference, diagnosis helper, calendar ---- */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; padding-block: 1.4rem 0; }
@media (min-width: 820px) { .tools { grid-template-columns: repeat(4, 1fr); } }
.tool {
  display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .2s;
}
.tool svg { color: var(--honey-deep); margin-bottom: .2rem; }
.tool strong { font-size: 1rem; }
.tool span { color: var(--muted); font-size: .86rem; line-height: 1.6; }
.tool:hover { transform: translateY(-3px); border-color: var(--honey); box-shadow: 0 8px 18px rgba(var(--shadow-rgb), .1); }

.badge-warn { background: var(--bad-bg); color: var(--danger); }
.sev { font-weight: 600; }
.sev-high { color: var(--danger); }
.sev-medium { color: var(--honey-deep); }
.sev-low { color: var(--moss); }

.signs { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1rem; padding: .6rem .9rem .8rem; background: var(--surface); }
.signs legend { font-weight: 700; padding-inline: .4rem; }
.sign { display: flex; align-items: flex-start; gap: .6rem; padding: .35rem 0; cursor: pointer; }
.sign input { margin-top: .5rem; }

.months { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0; }
.month-hex {
  display: inline-flex; align-items: center; justify-content: center; width: 4.4rem; height: 3.9rem;
  background: var(--honey-soft); color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 600;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  transition: background-color .2s, transform .2s;
}
.month-hex:hover { background: var(--honey); transform: scale(1.06); }
.month-hex.is-current { background: var(--honey); }

.month-block { border-bottom: 1px solid var(--line); padding-block: .3rem; }
.month-block summary { cursor: pointer; padding-block: .5rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.month-block summary .meta { font-weight: 400; }
.task { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.task-body { flex: 1; min-width: 0; }
.task .prose { margin-top: .2rem; color: var(--muted); }
.task .prose p { margin-bottom: .3rem; }
.task.is-done .task-body strong { text-decoration: line-through; color: var(--muted); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { padding: .5rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }

/* Account verification */
.verify-box { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem 1rem; margin-block: 1rem; background: var(--surface); }
.verify-box h2 { font-size: 1.05rem; }
.ltr-line { font-weight: 700; text-align: end; }

/* ======================================================================
   Dark mode (night), ambient scene, mascot, Jalali date picker, and new pages
   ====================================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9eee3; --muted: #9fae9f; --paper: #0f1713; --paper-rgb: 15, 23, 19;
  --surface: #17211b; --line: #2a3a30;
  --honey: #f0b429; --honey-deep: #f5cf7e; --honey-soft: #3a2f12; --moss: #8fd19e; --danger: #ff9b8a;
  --honey-hover: #ffc94d; --good-bg: #1f3a28; --bad-bg: #4a2420; --accepted-bg: #17301f; --note-bg: #2b2412;
  --input-border: #3c4f43; --on-ink: #0f1713; --scrim: rgba(0, 0, 0, .62); --shadow-rgb: 0, 0, 0;
}
/* text on honey-colored surfaces stays dark in both themes */
.btn-primary, .btn-primary:hover, .count, .tab-count, .cell:hover, .month-hex:hover, .month-hex.is-current,
.tag:hover, .vote.is-voted, .hex-brand { color: var(--on-honey); }
html[data-theme="dark"] .banner { background-blend-mode: multiply; }
html[data-theme="dark"] img[src$=".svg"] { filter: brightness(.78) saturate(.95); }
html[data-theme="dark"] .hero-backdrop, html[data-theme="dark"] .auth-art .hero-backdrop { filter: brightness(.55) saturate(.9); }
html[data-theme="dark"] .empty::before { opacity: .8; }
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea { color-scheme: dark; }
html[data-theme="dark"] .site-header, html[data-theme="dark"] .tabbar { background: rgba(var(--paper-rgb), .94); }

/* ---------- ambient scene: sky, sun, moon, stars, clouds ---------- */
#ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html[data-fx="off"] #fx-canvas, html[data-fx="off"] .cloud, html[data-fx="off"] .star-field { display: none; }

.sky { position: absolute; inset: 0 0 auto 0; height: 72vh; transition: filter 1.2s; }
.sky::before, .sky::after { content: ""; position: absolute; inset: 0; transition: opacity 1.3s ease; }
.sky::before { background: linear-gradient(#d9edf8, #eef6f4 42%, rgb(var(--paper-rgb)) 100%); }
html[data-tod="dawn"] .sky::before { background: linear-gradient(#f7c3a6, #fde6d3 42%, rgb(var(--paper-rgb)) 100%); }
html[data-tod="dusk"] .sky::before { background: linear-gradient(#f0a070, #f8d6bd 42%, rgb(var(--paper-rgb)) 100%); }
.sky::after { background: linear-gradient(#04080f, #0d1a2c 48%, rgb(var(--paper-rgb)) 100%); opacity: 0; }
html[data-tod="night"] .sky::after { opacity: 1; }
html[data-season="autumn"] .sky { filter: sepia(.22) saturate(1.05); }
html[data-season="winter"] .sky { filter: saturate(.65) brightness(1.02); }
html[data-weather="rain"] .sky { filter: grayscale(.55) brightness(.9); }

.body { position: absolute; width: 58px; height: 58px; border-radius: 50%; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  transition: left 1.5s ease, top 1.5s ease, opacity 1s; }
.sun { --x: var(--sun-x, 50%); --y: var(--sun-y, 125%);
  background: radial-gradient(circle at 40% 38%, #fff7cf, #ffd36b 55%, #f2a93b); box-shadow: 0 0 46px 20px rgba(255, 214, 107, .5); }
html[data-tod="dawn"] .sun, html[data-tod="dusk"] .sun { background: radial-gradient(circle at 40% 38%, #ffe3b0, #ff9a55 60%, #e8692f); box-shadow: 0 0 50px 24px rgba(255, 150, 80, .45); }
.moon { --x: var(--moon-x, 50%); --y: var(--moon-y, 125%); width: 46px; height: 46px; background: transparent;
  box-shadow: inset -15px 5px 0 0 #f3efdc; filter: drop-shadow(0 0 12px rgba(243, 239, 220, .6)); }
.star-field { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s; animation: twinkle 4.5s ease-in-out infinite;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, #fff, transparent), radial-gradient(1.2px 1.2px at 17% 42%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 26% 12%, #fff, transparent), radial-gradient(1.2px 1.2px at 35% 33%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 8%, #fff, transparent), radial-gradient(1.2px 1.2px at 52% 28%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 61% 16%, #fff, transparent), radial-gradient(1.2px 1.2px at 69% 44%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 77% 10%, #fff, transparent), radial-gradient(1.2px 1.2px at 85% 30%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 92% 20%, #fff, transparent), radial-gradient(1.2px 1.2px at 12% 58%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 48% 52%, #fff, transparent), radial-gradient(1.2px 1.2px at 88% 55%, #fff, transparent); }
html[data-tod="night"] .star-field { opacity: .9; }
@keyframes twinkle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(.55); } }

.cloud { position: absolute; width: 150px; height: 46px; border-radius: 50px; background: rgba(255, 255, 255, .72);
  animation: drift 150s linear infinite; transition: opacity 1.2s, background-color 1.2s; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 62px; height: 62px; top: -28px; left: 22px; }
.cloud::after { width: 46px; height: 46px; top: -18px; left: 78px; }
.c1 { top: 14%; animation-duration: 160s; }
.c2 { top: 30%; animation-duration: 120s; animation-delay: -60s; transform: scale(.75); }
.c3 { top: 8%; animation-duration: 200s; animation-delay: -110s; transform: scale(.55); opacity: .8; }
@keyframes drift { from { left: -200px; } to { left: 110%; } }
html[data-tod="dawn"] .cloud, html[data-tod="dusk"] .cloud { background: rgba(255, 226, 205, .8); }
html[data-tod="night"] .cloud { background: rgba(120, 140, 175, .22); }
html[data-season="autumn"] .cloud, html[data-season="winter"] .cloud { background: rgba(214, 222, 230, .85); }
html[data-weather="rain"] .cloud { background: rgba(120, 132, 146, .85); }
html[data-tod="night"][data-season="autumn"] .cloud, html[data-tod="night"][data-season="winter"] .cloud { background: rgba(110, 125, 150, .3); }

/* ---------- day and night switch ---------- */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; overflow: hidden; }
.theme-toggle svg { transition: transform .6s cubic-bezier(.3, .8, .3, 1.2), opacity .4s; }
.theme-toggle .ic-sun { display: none; color: var(--honey); }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.theme-toggle:hover svg { transform: rotate(25deg) scale(1.1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .8s, color .8s, border-color .8s !important; }
.theme-veil { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0; animation: veil 1.1s ease both; }
.theme-veil.is-dark { background: radial-gradient(circle at 50% 0%, #1b2d52, #04070d 70%); }
.theme-veil.is-light { background: radial-gradient(circle at 50% 0%, #fff6cc, #ffe39c 70%); }
@keyframes veil { 0% { opacity: 0; } 35% { opacity: .85; } 100% { opacity: 0; } }

/* menu display options */
.menu-display { padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.menu-label { margin: .6rem 0 .3rem; color: var(--muted); font-size: .88rem; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.seg button { flex: 1; font: inherit; padding: .35rem .5rem; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button.is-on { background: var(--honey); color: var(--on-honey); font-weight: 700; }

/* ---------- the bee mascot ---------- */
.mascot { position: fixed; z-index: 55; left: .5rem; bottom: 4.9rem; width: 84px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); }
.mascot[hidden] { display: none; }
.mascot svg { width: 100%; height: 100%; overflow: visible; }
@media (min-width: 820px) { .mascot { left: 1rem; bottom: 1rem; width: 110px; height: 84px; } }
.mascot .acc, .mascot .eyes-closed { display: none; }
.mascot .m-wing { fill: #EEF7FD; fill-opacity: .93; stroke: #93BBD8; stroke-width: 1.4; transform-box: fill-box; transform-origin: 30% 96%; animation: wing .16s linear infinite alternate; }
.mascot .m-wing2 { animation-direction: alternate-reverse; }
.mascot .m-legs path { stroke: #4A3216; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.mascot .m-body-g { transform-box: fill-box; transform-origin: center; animation: bob 3s ease-in-out infinite; }
@keyframes wing { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes shiver { 0% { transform: translate(-1.2px, 0) rotate(-1.2deg); } 100% { transform: translate(1.2px, .6px) rotate(1.2deg); } }
@keyframes windfight { 0% { transform: translateX(0) rotate(-12deg); } 50% { transform: translateX(-16px) rotate(-17deg); } 68% { transform: translateX(9px) rotate(-6deg); } 100% { transform: translateX(0) rotate(-12deg); } }
@keyframes flit { 0% { transform: translate(0, 0); } 25% { transform: translate(10px, -8px); } 50% { transform: translate(22px, 0); } 75% { transform: translate(10px, 6px); } 100% { transform: translate(0, 0); } }
@keyframes windline { to { stroke-dashoffset: -40; } }
@keyframes sweat { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
@keyframes zzz { 0% { transform: translateY(8px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes pulse-fan { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04, .97); } }

/* winter: shivering with a scarf and a hat */
.mascot[data-season="winter"] .acc-scarf, .mascot[data-season="winter"] .acc-hat, .mascot[data-season="winter"] .acc-snow { display: block; }
.mascot[data-season="winter"] .m-body-g { animation: shiver .16s linear infinite alternate; }
.mascot[data-season="winter"] .m-wing { animation-duration: .35s; }
/* autumn: leaning into the wind */
.mascot[data-season="autumn"] .acc-wind, .mascot[data-season="autumn"] .acc-leaf { display: block; }
.mascot[data-season="autumn"] .acc-wind path { stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 14 10; animation: windline .6s linear infinite; }
.mascot[data-season="autumn"] .m-body-g { animation: windfight 3.4s ease-in-out infinite; }
.mascot[data-season="autumn"][data-weather="rain"] .m-wing { animation-duration: .22s; }
/* spring: hovering around a flower with pollen on its legs */
.mascot[data-season="spring"] .acc-flower, .mascot[data-season="spring"] .acc-pollen { display: block; }
.mascot[data-season="spring"] .m-body-g { animation: flit 5s ease-in-out infinite; }
/* summer: sunglasses, a sweat drop, wings fanning to cool the hive */
.mascot[data-season="summer"] .acc-shades, .mascot[data-season="summer"] .acc-sweat { display: block; }
.mascot[data-season="summer"] .acc-sweat { animation: sweat 2.6s ease-in infinite; }
.mascot[data-season="summer"] .m-wing { animation-duration: .08s; }
.mascot[data-season="summer"] .m-body-g { animation: pulse-fan 1.2s ease-in-out infinite; }
/* night: asleep (winter keeps shivering) */
.mascot[data-night="1"] .eyes-open, .mascot[data-night="1"] .acc-shades { display: none; }
.mascot[data-night="1"] .eyes-closed, .mascot[data-night="1"] .acc-zzz { display: block; }
.mascot[data-night="1"] .acc-zzz .z { animation: zzz 3s ease-in-out infinite; }
.mascot[data-night="1"] .acc-zzz .z2 { animation-delay: 1.2s; }
.mascot[data-night="1"]:not([data-season="winter"]) .m-body-g { animation: bob 5.5s ease-in-out infinite; }
.mascot[data-night="1"] .m-wing { animation-duration: 1s; }
.mascot[data-night="1"] .acc-sweat, .mascot[data-night="1"] .acc-flower { display: none; }
.mascot-bubble {
  position: absolute; bottom: calc(100% + .4rem); left: 0; width: 15rem; max-width: 70vw; padding: .6rem .8rem; text-align: start;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; line-height: 1.8;
  box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .2); animation: pop .3s ease both;
}
.mascot-bubble[hidden] { display: none; }

/* ---------- Jalali date picker ---------- */
.jd-input { cursor: pointer; }
.jd-pop { position: absolute; z-index: 130; width: min(19rem, 92vw); padding: .6rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(var(--shadow-rgb), .25); }
.jd-head { display: flex; align-items: center; justify-content: space-between; gap: .2rem; }
.jd-head select { flex: 1; min-width: 0; font: inherit; font-weight: 700; padding: .25rem .3rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.jd-head button, .jd-foot button { min-height: 2.2rem; min-width: 2.2rem; font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: .1rem .55rem; }
.jd-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: .5rem; }
.jd-w { text-align: center; color: var(--muted); font-size: .8rem; padding-block: .2rem; }
.jd-d { font: inherit; cursor: pointer; border: 0; background: none; color: var(--ink); border-radius: 50%; aspect-ratio: 1; padding: 0; }
.jd-d:hover:not(:disabled) { background: var(--honey-soft); }
.jd-d.is-today { box-shadow: inset 0 0 0 1.5px var(--honey); }
.jd-d.is-sel { background: var(--honey); color: var(--on-honey); font-weight: 700; }
.jd-d:disabled { opacity: .3; cursor: not-allowed; }
.jd-foot { display: flex; justify-content: space-between; margin-top: .5rem; }

/* ---------- forms: sections and checkbox groups ---------- */
.form-section { font-size: 1.05rem; margin: 1.6rem 0 .6rem; padding-bottom: .25rem; border-bottom: 2px solid var(--honey); }
.field [id^="id_"] > div > label, .field [id^="id_"] > label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; padding: .2rem 0; }
.field input[type="checkbox"] { width: auto; margin-top: .55rem; }
.chips-facts li { background: var(--surface); border: 1px solid var(--line); }
.chips-warn li { background: var(--bad-bg); color: var(--danger); }
.facts { list-style: none; margin: 1rem 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.facts span { color: var(--muted); }
.facts strong { text-align: end; }

/* ---------- seasonal summary ---------- */
.season { margin-top: 1.6rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); border-inline-start: 6px solid var(--honey); }
.season h2 { margin-bottom: .4rem; }
.season-spring { border-inline-start-color: #e58aa6; }
.season-summer { border-inline-start-color: #f2b52e; }
.season-autumn { border-inline-start-color: #c8601c; }
.season-winter { border-inline-start-color: #6aa3d8; }

/* ---------- plants ---------- */
.plant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; padding-block: 1rem; }
@media (min-width: 700px) { .plant-grid { grid-template-columns: repeat(3, 1fr); } }
.plant-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.plant-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(var(--shadow-rgb), .12); }
.plant-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--honey-soft); overflow: hidden; }
.plant-thumb img { width: 100%; height: 100%; object-fit: cover; }
.plant-glyph { font-size: 2.6rem; font-weight: 800; color: var(--honey-deep); }
.plant-body { padding: .6rem .8rem .8rem; }
.plant-body h3 { margin-bottom: .1rem; font-size: 1rem; }
.plant-body h3 a { color: var(--ink); text-decoration: none; }
.latin { margin: 0 0 .3rem; color: var(--muted); font-size: .85rem; font-style: italic; }
.plant-figure { margin: 1rem 0; }
.plant-figure figcaption { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.bloom { display: grid; grid-template-columns: repeat(6, 1fr); gap: .3rem; margin-block: .6rem; }
@media (min-width: 560px) { .bloom { grid-template-columns: repeat(12, 1fr); } }
.bloom-m { text-align: center; padding: .35rem 0; border-radius: var(--radius); font-size: .8rem; background: var(--line); color: var(--muted); }
.bloom-m.is-on { background: var(--honey); color: var(--on-honey); font-weight: 700; }
.bloom-m.is-now { outline: 2px solid var(--ink); outline-offset: 1px; }
.nv-3 strong { color: var(--moss); }
.nv-0 strong { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .cloud, .star-field, .mascot, .theme-veil { animation: none !important; }
  .mascot { display: none; }
  .sky::before, .sky::after, .body { transition: none; }
}

/* ---------- paths on the home page, comparison tables, report card ---------- */
.paths { padding-block: 1.6rem .4rem; }
.paths h2 { font-size: 1.15rem; margin-bottom: .8rem; }
.paths-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
@media (min-width: 820px) { .paths-grid { grid-template-columns: repeat(3, 1fr); } }
.path { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-height: 8.2rem;
  transition: transform .25s, box-shadow .25s, border-color .2s; }
.path svg { color: var(--honey-deep); margin-bottom: .25rem; }
.path strong { font-size: 1.02rem; }
.path span { color: var(--muted); font-size: .86rem; line-height: 1.7; }
.path:hover { transform: translateY(-3px); border-color: var(--honey); box-shadow: 0 8px 18px rgba(var(--shadow-rgb), .12); }
.paths-more { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .8rem 0 0; font-size: .92rem; }

.pick { display: flex; align-items: center; padding-inline-end: .2rem; }
.pick input { width: 1.2rem; height: 1.2rem; }
.queen-card { padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.queen-card p { margin: .2rem 0; }
.card-bars li { grid-template-columns: 8.5rem 1fr 3rem 3rem; }
.bar-delta { font-size: .85rem; color: var(--muted); text-align: end; }
.bar-delta.up { color: var(--moss); }
.bar-delta.down { color: var(--danger); }
.bar-total { border-top: 2px solid var(--ink); margin-top: .3rem; padding-top: .45rem; font-weight: 700; }
@media (max-width: 480px) { .card-bars li { grid-template-columns: 6.5rem 1fr 2.6rem 2.6rem; } }
.spark { width: 100%; max-width: 32rem; height: auto; display: block; }
.spark-axis { stroke: var(--line); stroke-width: 1; }
.spark-line { fill: none; stroke: var(--honey); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.trend { list-style: none; margin: .6rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.trend li { display: flex; align-items: center; gap: .4rem; }
.table-wrap { overflow-x: auto; margin-block: .8rem; }
.compare { border-collapse: collapse; min-width: 100%; text-align: center; }
.compare th, .compare td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare thead th { background: var(--surface); position: sticky; top: 0; }
.compare tbody th { text-align: start; font-weight: 600; background: var(--paper); }
.compare tr.info td { color: var(--muted); }
.compare td.best { background: var(--good-bg); color: var(--moss); font-weight: 800; }

/* Meda Apis brand logo */
.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}
.brand {
  gap: .55rem;
  white-space: nowrap;
}
html[data-theme="dark"] .brand-logo {
  filter: none !important;
}
@media (max-width: 420px) {
  .brand-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .brand {
    font-size: 1.1rem;
    gap: .35rem;
  }
}

/* ======================================================================
   Additions: install card, notifications, checkout and payment, learn hub,
   captcha, reports, account tools
   ====================================================================== */
[hidden] { display: none !important; }
.btn-large { padding: .7rem 1.6rem; font-size: 1.05rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.danger-link { color: var(--danger) !important; }
.report-link { color: var(--muted); font-size: .88rem; }

/* install as app / turn on notifications */
.install-card {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-block: 1rem; padding: .9rem 1rem; border-radius: 12px;
  background: var(--honey-soft); border: 1px solid var(--honey);
}
.install-card img { border-radius: 14px; flex: none; }
.install-text { flex: 1 1 14rem; display: flex; flex-direction: column; gap: .15rem; }
.install-text span { color: var(--muted); font-size: .92rem; }
.install-actions { display: flex; gap: .5rem; align-items: center; }
[data-install]:not([data-mode="ios"]) .install-ios { display: none; }
[data-install][data-mode="ios"] .install-prompt,
[data-install][data-mode="ios"] [data-install-go] { display: none; }
.menu-install { margin: .8rem 0; padding: .8rem; border-radius: 10px; background: var(--honey-soft); }
.menu-install p { margin: 0 0 .4rem; }
html.is-app [data-install] { display: none !important; }
.push-box .push-state { font-weight: 600; }

/* checkout and payment */
.steps, .order-track { list-style: none; display: flex; gap: .25rem; padding: 0; margin: 0 0 1rem; counter-reset: s; }
.steps li, .order-track li {
  counter-increment: s; flex: 1 1 0; min-width: 0; text-align: center; font-size: .82rem; line-height: 1.6; color: var(--muted);
  padding: .35rem .15rem; border-bottom: 3px solid var(--line);
}
.steps li::before { content: counter(s, persian) ". "; }
.steps li.is-done, .order-track li.is-done { color: var(--moss); border-color: var(--moss); }
.steps li.is-current { color: var(--ink); font-weight: 700; border-color: var(--honey); }
.checkout { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .checkout { grid-template-columns: 1fr 17rem; align-items: start; } .checkout-summary { order: 2; position: sticky; top: 76px; } }
.checkout-summary { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; background: var(--surface); }
.checkout-summary h2 { font-size: 1rem; }
.pay-choice, .checkout-form ul#id_payment_method, .checkout-form #id_payment_method { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checkout-form #id_payment_method > div > label, .checkout-form #id_payment_method label {
  display: flex !important; align-items: center; gap: .6rem; padding: .75rem .9rem; border: 2px solid var(--line);
  border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 600;
}
.checkout-form #id_payment_method label:has(input:checked) { border-color: var(--honey); background: var(--honey-soft); }
.pay-hint { margin-top: .5rem; }
.pay-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 1.4rem;
  padding: 1rem 1.1rem; border-radius: 12px; border: 2px solid var(--line); background: var(--surface);
}
.pay-box > strong { font-size: 1.1rem; }
.pay-box.is-due { border-color: var(--honey); background: var(--honey-soft); }
.pay-box.is-paid { border-color: var(--moss); background: var(--good-bg); }
.pay-box.is-paid > strong { color: var(--moss); }
.pay-box.is-closed { border-color: var(--danger); background: var(--bad-bg); }
.pay-box .error, .pay-box .note { flex-basis: 100%; margin: 0; }
.pay-amount { display: flex; flex-direction: column; margin-inline-end: auto; }
.pay-amount span { font-size: .85rem; color: var(--muted); }
.pay-amount strong { font-size: 1.35rem; }

/* learning hub */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; margin-block: 1rem; }
.learn-card {
  display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border-radius: 12px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .2s, transform .15s;
}
.learn-card:hover { border-color: var(--honey); transform: translateY(-2px); color: var(--ink); }
.learn-card svg { color: var(--honey-deep); }
.learn-card span { color: var(--muted); font-size: .9rem; }

/* picture captcha */
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.captcha img { border-radius: 8px; border: 1px solid var(--line); background: #fff9e2; }
.captcha input { max-width: 9rem; letter-spacing: .25em; text-align: center; }

/* account tools */
.account-tools { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.panel-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.field-check > label { display: flex !important; align-items: center; gap: .55rem; font-weight: 600; cursor: pointer; }
.field-check input[type=checkbox] { width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }
.cart-link, .account a { white-space: nowrap; }

/* ---- apiary on phones: nothing wider than the screen ---- */
.apiary-switch { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.apiary-switch select { max-width: 100%; min-width: 0; }
.hive-row .row-body { min-width: 0; }
.hive-row .meta span, .inspection .meta span { overflow-wrap: anywhere; }
.compare tbody th { position: sticky; inset-inline-start: 0; z-index: 1; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.chips li { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .block-head:has(.head-actions) { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .6rem; } /* wrap in a column made the buttons a line too tall */
  .head-actions { justify-content: flex-start; }
  .head-actions .btn { flex: 1 1 calc(33% - .4rem); text-align: center; padding-inline: .4rem; }
  .apiary-switch select { flex: 1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpis strong { font-size: 1.35rem; }
  .hive-row { gap: .55rem; }
  .hive-row .hex-md { transform: scale(.85); }
  .hive-row > .grade { min-width: 3.2rem; }
  .inspection-head { flex-wrap: wrap; }
}

/* ======================================================================
   Offline apiary: status box, waiting list, pill, offline bar, toasts
   ====================================================================== */
/* v20.6: one quiet line instead of a big box at the top of the apiary page */
.offline-box {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: .35rem 0 .6rem; padding: 0;
  border: 0; background: none; font-size: .82rem; color: var(--muted);
}
.offline-box[hidden] { display: none; }
.offline-box strong { font-weight: 600; color: var(--ink); }
.offline-box.is-ready strong { color: var(--moss); }
.offline-text { flex: 1 1 auto; }
.offline-text span { color: var(--muted); font-size: .8rem; }
.offline-icon { font-size: .95rem; }
.offline-box .link-button { font-size: .8rem; }
.outbox-list:empty { display: none; }
.outbox-item { padding: .6rem .8rem; margin-block: .4rem; border-radius: 10px; border: 1px solid var(--honey); background: var(--honey-soft); }
.outbox-item.is-failed { border-color: var(--danger); background: var(--bad-bg); }
.outbox-item .note { font-size: .82rem; }
.outbox-errors { margin: .3rem 0; padding-inline-start: 1.1rem; color: var(--danger); font-size: .88rem; }
.outbox-actions { margin: .3rem 0 0; display: flex; gap: 1rem; }
.outbox-pill {
  position: fixed; inset-inline-start: 50%; transform: translateX(50%); bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 60; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border-radius: 99px;
  background: var(--ink); color: var(--on-ink); font-size: .85rem; text-decoration: none; box-shadow: 0 4px 16px rgba(var(--shadow-rgb), .25);
}
.outbox-pill:hover { color: var(--on-ink); }
.outbox-pill.has-failed { background: var(--danger); }
@media (min-width: 900px) { .outbox-pill { bottom: 1.2rem; } }
.offline-bar {
  position: sticky; top: 0; z-index: 70; padding: .45rem 1rem; text-align: center; font-size: .88rem;
  background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.toast {
  position: fixed; inset-inline: 1rem; bottom: calc(120px + env(safe-area-inset-bottom)); z-index: 80; margin-inline: auto; max-width: 26rem;
  padding: .7rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(var(--shadow-rgb), .22); animation: rise .35s ease both; transition: opacity .5s, transform .5s;
}
.toast-ok { border-color: var(--moss); }
.toast-warn { border-color: var(--danger); }
.toast.is-out { opacity: 0; transform: translateY(10px); }
.offline-note { border-inline-start: 3px solid var(--moss); padding-inline-start: .6rem; }

/* ======================================================================
   Bee characters (templates/anim/_bee.html) and small animated scenes
   ====================================================================== */
.scene { display: block; width: 100%; height: auto; overflow: visible; }
.ba-wing { fill: #EEF7FD; fill-opacity: .93; stroke: #93BBD8; stroke-width: 1.4; transform-box: fill-box; transform-origin: 30% 96%; animation: ba-flap .13s ease-in-out infinite alternate; }
.ba-wing.w2 { fill: #E1EFFA; }
.ba-vein { pointer-events: none; }
.ba-paw { fill: #F0A21E; stroke: #4A3216; stroke-width: 1.6; }
.ba-blush { fill-opacity: .9; }
.ba-wing.w2 { animation-delay: -.06s; }
.ba-move { transform-box: fill-box; transform-origin: 50% 60%; animation: ba-bob 2.4s ease-in-out infinite; }
.ba-head, .ba-leg { transform-box: fill-box; }
.ba-head { transform-origin: 60% 70%; }
.ba-leg { transform-origin: 50% 0; }
.ba-pupils { transition: transform .25s ease; }
.ba-eyes-happy, .ba-eyes-sleepy, .ba-frown, .ba-mouth-o, .ba-tears,
.ba-arms-cover, .ba-arms-peek, .ba-arms-clap, .ba-arms-watch { opacity: 0; transition: opacity .2s; }
.ba-eyes, .ba-smile, .ba-arms-down { transition: opacity .2s; }
.ba-blush { opacity: .5; }

.is-perched .ba-wing { animation: ba-rest 4s ease-in-out infinite; }
.is-perched .ba-move { animation: none; }

/* waiting for the SMS code: taps a foot, checks the watch, yawns */
.is-waiting .l1 { animation: ba-tap .45s ease-in-out infinite alternate; }
.is-waiting .ba-arms-watch { animation: ba-w-on 8s infinite; }
.is-waiting .ba-arms-down { animation: ba-w-off 8s infinite; }
.is-waiting .ba-pupils { animation: ba-w-look 8s infinite; }
.is-waiting .ba-mouth-o, .is-waiting .ba-eyes-sleepy { animation: ba-yawn-on 8s infinite; }
.is-waiting .ba-smile, .is-waiting .ba-eyes { animation: ba-yawn-off 8s infinite; }

/* typing a password: covers the eyes; "show password": peeks */
.is-hiding .ba-arms-down, .is-hiding .ba-eyes, .is-peeking .ba-arms-down { opacity: 0; }
.is-hiding .ba-arms-cover, .is-peeking .ba-arms-peek { opacity: 1; }
.is-peeking .ba-pupils { transform: translate(-1.4px, 2px); }
.is-peeking .ba-blush { opacity: .9; }

/* wrong password or code */
.is-shaking .ba-head { animation: ba-no .45s ease-in-out 3; }
.is-shaking .ba-smile, .is-sad .ba-smile { opacity: 0; }
.is-shaking .ba-frown, .is-sad .ba-frown { opacity: 1; }
.is-sad .ba-pupils { transform: translate(0, 1.6px); }

/* happy: jumps and claps */
.is-happy .ba-move { animation: ba-jump .7s ease-in-out infinite; }
.is-happy .ba-eyes, .is-happy .ba-arms-down { opacity: 0; }
.is-happy .ba-eyes-happy { opacity: 1; }
.is-happy .ba-arms-clap { opacity: 1; animation: ba-clap .35s steps(1) infinite; }
.is-happy .ba-blush { opacity: .95; }

/* laughing together */
.is-laughing .ba-move { animation: ba-giggle .32s ease-in-out infinite alternate; }
.is-laughing .ba-eyes, .is-laughing .ba-smile { opacity: 0; }
.is-laughing .ba-eyes-happy, .is-laughing .ba-mouth-o, .is-laughing .ba-tears { opacity: 1; }
.is-laughing .ba-arms-down { opacity: 0; }
.is-laughing .ba-arms-clap { opacity: 1; }
.is-curious .ba-head { animation: ba-tilt 1.6s ease-in-out infinite alternate; }

@keyframes ba-flap { from { transform: rotate(-16deg); } to { transform: rotate(12deg); } }
@keyframes ba-rest { 0%, 86%, 100% { transform: rotate(-4deg); } 90%, 96% { transform: rotate(-20deg); } 93% { transform: rotate(6deg); } }
@keyframes ba-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ba-tap { from { transform: rotate(0); } to { transform: rotate(-24deg); } }
@keyframes ba-w-on { 0%, 54%, 76%, 100% { opacity: 0; } 57%, 73% { opacity: 1; } }
@keyframes ba-w-off { 0%, 54%, 76%, 100% { opacity: 1; } 57%, 73% { opacity: 0; } }
@keyframes ba-w-look { 0%, 54%, 76%, 100% { transform: none; } 58%, 72% { transform: translate(1.2px, 2.4px); } }
@keyframes ba-yawn-on { 0%, 80%, 95%, 100% { opacity: 0; } 83%, 92% { opacity: 1; } }
@keyframes ba-yawn-off { 0%, 80%, 95%, 100% { opacity: 1; } 83%, 92% { opacity: 0; } }
@keyframes ba-no { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes ba-jump { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(2px) scale(1.06, .92); } 50% { transform: translateY(-14px) scale(.97, 1.04); } }
@keyframes ba-clap { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ba-giggle { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-3px) rotate(3deg); } }
@keyframes ba-tilt { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }

/* scene: waiting for the code */
.wait-scene { max-width: 260px; margin: 0 auto .4rem; }
.wait-scene .sms-dot { animation: dot 1.2s ease-in-out infinite; }
.wait-scene .sms-dot:nth-child(2) { animation-delay: .2s; }
.wait-scene .sms-dot:nth-child(3) { animation-delay: .4s; }
.wait-scene .phone-glow { animation: pulse 1.6s ease-in-out infinite; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.wait-scene .sms-dot { transform-box: fill-box; }
.countdown { color: var(--muted); font-size: .9rem; }

/* login: the watcher bee sits on the card */
.auth-card { position: relative; }
.watcher { position: absolute; inset-inline-end: .6rem; top: .2rem; width: 92px; height: 74px; pointer-events: none; }
.pw-wrap { position: relative; display: block; }
.pw-toggle {
  position: absolute; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none;
  color: var(--muted); font: inherit; font-size: .85rem; padding: .25rem .45rem; cursor: pointer; border-radius: 6px;
}
.pw-toggle:hover { color: var(--ink); background: var(--honey-soft); }

/* signup: password strength as a honeycomb that fills with honey */
.comb-meter { display: flex; align-items: center; gap: .3rem; margin-top: .4rem; }
.comb-meter svg { width: 26px; height: 28px; }
.comb-meter .cell-hex { fill: var(--surface); stroke: var(--honey-deep); stroke-width: 1.6; }
.comb-meter .cell-honey { fill: var(--honey); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .35s ease; }
.comb-meter .is-full .cell-honey { transform: scaleY(1); }
.comb-meter .comb-text { font-size: .85rem; color: var(--muted); margin-inline-start: .3rem; }

/* captcha: the numbers get shuffled */
.captcha img.is-shuffling { animation: shuffle .45s ease; }
@keyframes shuffle { 0% { transform: none; filter: none; } 40% { transform: rotate(-4deg) scale(.96); filter: blur(2px); } 100% { transform: none; filter: none; } }

/* small bees in the outbox pill and the offline bar */
.pill-bee { width: 26px; height: 20px; flex: none; }
.is-syncing .pill-bee { animation: carry 1.1s ease-in-out infinite; }
@keyframes carry { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -3px); } }

/* scenes shown once (signup friends, welcome, 404, offline, payment) */
.story { display: block; width: 100%; height: auto; }
.auth-art.has-story { display: flex; flex-direction: column; justify-content: center; }
.auth-art .story { position: relative; z-index: 2; width: 100%; height: auto; aspect-ratio: 3 / 2; flex: 0 0 auto; margin-block: auto; }
.auth-art.has-story .auth-caption { max-width: none; }
.story-text { font: 700 22px/1 "Vazirmatn", Tahoma, sans-serif; fill: #1E2B22; }
.story-bubble { fill: #fff; stroke: #1E2B22; stroke-width: 2; }
.story-float { animation: float-up 3.2s ease-in infinite; transform-box: fill-box; }
@keyframes float-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-90px) scale(1.1); opacity: 0; } }
.rain-drop { stroke: #8FC6F0; stroke-width: 2.4; stroke-linecap: round; animation: rain 1s linear infinite; }
@keyframes rain { from { transform: translateY(-40px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(120px); opacity: 0; } }
.lost-q { animation: float-up 2.6s ease-in infinite; transform-box: fill-box; fill: var(--honey, #E8A410); font: 700 26px/1 "Vazirmatn", Tahoma, sans-serif; }
html[data-theme="dark"] .lost-path { stroke: #E8A410; }
.confetti { animation: confetti 3.4s linear infinite; transform-box: fill-box; }
@keyframes confetti { 0% { transform: translateY(-30px) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(260px) rotate(320deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ba *, .ba-move, .story *, .wait-scene * { animation: none !important; }
}
html[data-fx="off"] .story-float, html[data-fx="off"] .confetti, html[data-fx="off"] .rain-drop { animation: none; opacity: 0; }

/* bees stay readable on the dark theme */
html[data-theme="dark"] .ba-legs, html[data-theme="dark"] .ba-arms > g > path { stroke: #D9C08A; }
html[data-theme="dark"] .ba-body, html[data-theme="dark"] .ba-face { filter: drop-shadow(0 0 1.5px rgba(255, 230, 160, .35)); }

/* ---------- resend the SMS code / change the number ---------- */
.resend-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0 .2rem; }
.resend-row .resend-form { margin: 0; }
.resend-row .btn[disabled] { opacity: .6; cursor: default; }
.resend-note { font-size: .85rem; margin-top: .3rem; }

/* ======================================================================
   Phone review of every page: header fits a 320px screen, tab rows scroll
   sideways instead of widening the page, five stats never leave an empty cell
   ====================================================================== */
.block-head { flex-wrap: wrap; row-gap: .5rem; }
.tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; max-width: 100%; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; white-space: nowrap; padding-top: .35rem; }
/* Signed-in phones (search, bell and avatar beside the brand) were 6px too wide at the common 360px width:
   the back button keeps only its arrow there. */
@media (max-width: 389px) {
  .back span { display: none; }
  .back { padding: .35rem .5rem; }
}
@media (max-width: 359px) {
  .wrap { padding-inline: .75rem; }
  .bar { gap: .4rem; }
  .back span, .menu-toggle span { display: none; }
  .back { padding: .35rem .5rem; }
  .menu-toggle { padding: .35rem .6rem; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(6, 1fr); }
  .stats div { grid-column: span 2; padding: .8rem .25rem; }
  .stats div:nth-child(4):nth-last-child(2), .stats div:nth-child(5):last-child { grid-column: span 3; }
  .stats strong { font-size: 1.3rem; }
}
/* Whole cards are tappable on phones (the title link stretches over the card). */
.product-card, .plant-card, .hive-row { position: relative; }
.product-card h3 a::after, .plant-card h3 a::after, .hive-row h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.hive-row .pick, .hive-row .row-avatar, .hive-row .badge { position: relative; z-index: 1; }
.pick { min-width: 2.6rem; min-height: 2.6rem; justify-content: center; cursor: pointer; }
.zone-list a, .calendar-zones a { display: inline-block; padding-block: .3rem; }

/* ======================================================================
   Skeleton pages: grey outline of the next page while it loads
   ====================================================================== */
:root { --sk: #d8ddd0; --sk-shine: #eaede4; }
html[data-theme="dark"] { --sk: #233029; --sk-shine: #2e3d34; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.is-navigating main > :not(.skel-page), html.is-navigating .hero, html.is-navigating .messages { display: none !important; }
.skel-page { padding-block: 1.4rem 2rem; display: flex; flex-direction: column; gap: .7rem; animation: sk-in .2s ease-out both; }
@keyframes sk-in { from { opacity: 0; } to { opacity: 1; } }
.sk {
  display: block; border-radius: 8px;
  background: linear-gradient(90deg, var(--sk) 0%, var(--sk-shine) 45%, var(--sk) 90%) 0 0 / 300% 100%;
  animation: sk-shine 1.3s ease-in-out infinite;
}
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.sk-line { height: .85rem; width: 100%; border-radius: 99px; }
.sk-thin { height: .6rem; }
.sk-title { height: 1.5rem; width: 75%; }
.sk-subtitle { height: 1.15rem; width: 45%; margin-top: .8rem; }
.sk-big { height: 1.6rem; }
.sk-w30 { width: 30%; } .sk-w40 { width: 40%; } .sk-w60 { width: 60%; } .sk-w80 { width: 80%; }
.sk-head { display: flex; flex-direction: column; gap: .5rem; padding-bottom: .7rem; border-bottom: 2px solid var(--sk); margin-bottom: .3rem; }
.sk-input { height: 2.6rem; border-radius: var(--radius); }
.sk-button { height: 2.6rem; width: 9rem; border-radius: var(--radius); margin-top: .4rem; }
.sk-row { display: flex; gap: .8rem; align-items: flex-start; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.sk-hex { width: 2.6rem; height: 2.9rem; flex: none; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); border-radius: 0; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.sk-card { display: flex; flex-direction: column; gap: .45rem; padding-bottom: .4rem; }
.sk-img { aspect-ratio: 4 / 3; width: 100%; border-radius: 10px; }
.sk-img.sk-wide { aspect-ratio: 16 / 9; margin-block: .4rem; }
.sk-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: .4rem; }
@media (min-width: 640px) { .sk-tiles { grid-template-columns: repeat(4, 1fr); } }
.sk-tile { display: flex; flex-direction: column; gap: .5rem; align-items: center; padding: 1rem .6rem; border: 1px solid var(--line); border-radius: 10px; }
.sk-chip { display: inline-block; width: 5.5rem; height: 1.9rem; border-radius: 99px; margin: .2rem; }
.skel-inline { display: flex; flex-direction: column; gap: .5rem; padding-block: .4rem; }
.skel-inline:has(.sk-chip) { flex-direction: row; flex-wrap: wrap; }
/* pictures: a grey box until they arrive */
img.sk-img-wait { background: linear-gradient(90deg, var(--sk) 0%, var(--sk-shine) 45%, var(--sk) 90%) 0 0 / 300% 100%; animation: sk-shine 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .sk, img.sk-img-wait, .skel-page { animation: none; }
}

/* ======================================================================
   Apiary: honeycomb map, weather, plants in bloom, photos, location button
   ====================================================================== */
:root { --hc0: #f3f4ef; --hc1: #fbefc8; --hc2: #f5d57e; --hc3: #e9b23c; --hc4: #c98714; --hc5: #8f5a06; --hc-line: #b88a2c; --hc-t5: #ffffff; --hc-t: #1e2b22; }
html[data-theme="dark"] { --hc0: #1c2620; --hc1: #3b3017; --hc2: #5e4813; --hc3: #8f6914; --hc4: #c7921c; --hc5: #f2c14e; --hc-line: #6d5420; --hc-t5: #0f1713; --hc-t: #e9eee6; }
.comb-map { margin: 1.4rem 0 .6rem; }
.comb-map figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin-bottom: .5rem; }
.comb-map figcaption .note { font-size: .85rem; font-weight: 400; }
.comb-map svg { display: block; width: 100%; max-width: 30rem; height: auto; margin-inline: auto; overflow: visible; }
.hc-cell polygon { stroke: var(--hc-line); stroke-width: 1.5; transition: transform .15s ease, filter .15s; transform-box: fill-box; transform-origin: center; }
.hc-cell:hover polygon, .hc-cell:focus-visible polygon { transform: scale(1.06); filter: drop-shadow(0 2px 3px rgba(var(--shadow-rgb), .25)); }
.hc-cell:focus-visible { outline: none; }
.hc-cell:focus-visible polygon { stroke: var(--ink); stroke-width: 2.5; }
.hc-cell text { text-anchor: middle; fill: var(--hc-t); font-family: inherit; pointer-events: none; }
.hc-num { font-size: 15px; font-weight: 800; }
.hc-grade { font-size: 10.5px; font-weight: 600; opacity: .85; }
.hc-0 polygon { fill: var(--hc0); stroke-dasharray: 4 3; }
.hc-1 polygon, .swatch.hc-1 { fill: var(--hc1); background: var(--hc1); }
.hc-2 polygon, .swatch.hc-2 { fill: var(--hc2); background: var(--hc2); }
.hc-3 polygon, .swatch.hc-3 { fill: var(--hc3); background: var(--hc3); }
.hc-4 polygon, .swatch.hc-4 { fill: var(--hc4); background: var(--hc4); }
.hc-5 polygon, .swatch.hc-5 { fill: var(--hc5); background: var(--hc5); }
.hc-5 text { fill: var(--hc-t5); }
html[data-theme="dark"] .hc-4 text { fill: var(--hc-t5); }
.comb-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; padding: 0; margin: .7rem 0 0; font-size: .82rem; color: var(--muted); }
.comb-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.swatch { display: inline-block; width: .95rem; height: 1.05rem; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.swatch.hc-0 { background: var(--hc0); outline: 1px dashed var(--hc-line); }

.weather-box { margin-bottom: 1rem; min-height: 3rem; }
.weather-days { list-style: none; padding: 0; margin: .4rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.weather-days li { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem .3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center; }
.weather-days li.has-alert { border-color: var(--danger); background: var(--bad-bg); }
.wd-name { font-weight: 700; }
.wd-sky, .wd-wind, .wd-rain { font-size: .8rem; color: var(--muted); }
.wd-temp { font-size: .95rem; }
.wd-temp strong { font-size: 1.15rem; }
.weather-alert { margin: .4rem 0; padding: .6rem .8rem; border-radius: 10px; border-inline-start: 4px solid var(--danger); background: var(--bad-bg); font-size: .92rem; }
.weather-alert.wa-heat { border-color: #c2571a; }
.weather-alert.wa-wind { border-color: #4a7fb0; background: #e6eef6; }
html[data-theme="dark"] .weather-alert.wa-wind { background: #1d2a36; }
.weather-credit { font-size: .78rem; }

.chips.bloom li a { text-decoration: none; color: inherit; font-weight: 600; }
.chips.bloom li { background: var(--good-bg); border-color: transparent; }

.photo-preview, .photo-edit, .photo-strip { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-preview li, .photo-edit li, .photo-strip li { position: relative; }
.photo-preview img, .photo-edit img, .photo-strip img { display: block; width: 5.2rem; height: 5.2rem; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-preview.is-working::after { content: "در حال آماده‌سازی عکس‌ها…"; font-size: .85rem; color: var(--muted); align-self: center; }
.photo-del { position: absolute; top: -.45rem; inset-inline-end: -.45rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--surface); background: var(--danger); color: #fff; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.photo-remove { display: flex; align-items: center; gap: .25rem; font-size: .85rem; margin-top: .2rem; }
.photo-timeline { list-style: none; padding: 0 0 .4rem; margin: .5rem 0 1rem; display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.photo-timeline li { flex: none; scroll-snap-align: start; text-align: center; font-size: .8rem; color: var(--muted); }
.photo-timeline img { display: block; width: 9.5rem; height: 9.5rem; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-bottom: .25rem; }
input[type="file"] { max-width: 100%; font: inherit; font-size: .9rem; }
input[type="file"]::file-selector-button { font: inherit; padding: .45rem .9rem; margin-inline-end: .6rem; border-radius: var(--radius); border: 1px solid var(--honey); background: var(--honey-soft); color: var(--ink); cursor: pointer; }
.geo-btn { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .3rem; }
.photo-pick { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-pick:has(+ .photo-input:focus-visible) { outline: 2px solid var(--honey); outline-offset: 2px; }

/* ======================================================================
   Shop: price breakdown, discount code, reviews and stars
   ====================================================================== */
.price-break { margin: .6rem 0; padding: 0; transition: opacity .2s; }
.price-break.is-updating { opacity: .55; }
.price-break > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.price-break dt { font-weight: 400; }
.price-break dd { margin: 0; font-weight: 600; white-space: nowrap; }
.price-break .is-discount dd, .price-break .is-discount dt { color: var(--moss); }
.price-break .price-total { border-bottom: 0; border-top: 2px solid var(--ink); padding-top: .55rem; margin-top: .2rem; }
.price-break .price-total dt, .price-break .price-total dd { font-weight: 800; font-size: 1.1rem; }
.code-apply { margin-top: .4rem; }
input[data-discount] { text-transform: uppercase; letter-spacing: .04em; }

.stars { color: var(--honey); letter-spacing: .05em; white-space: nowrap; }
.star-empty { color: var(--line); }
.star-half { background: linear-gradient(to left, var(--honey) 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-line a { color: inherit; text-decoration: none; }
.reviews { padding-top: 1rem; }
.rating-summary { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin: .6rem 0 1rem; }
.rating-big { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 7rem; }
.rating-big strong { font-size: 2.3rem; line-height: 1; }
.rating-bars { list-style: none; padding: 0; margin: 0; flex: 1 1 14rem; display: flex; flex-direction: column; gap: .25rem; }
.rating-bars li { display: grid; grid-template-columns: 2.6rem 1fr 2rem; gap: .5rem; align-items: center; font-size: .88rem; }
.review { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.review .stars { margin: .2rem 0; }
.review-reply { background: var(--note-bg); padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; }
.review-form { margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; border: 0; padding: 0; margin: 0 0 .6rem; }
.star-pick legend { display: block; width: 100%; font-weight: 600; margin-bottom: .2rem; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2.1rem; line-height: 1; padding: 0 .12rem; color: var(--line); cursor: pointer; transition: color .12s, transform .12s; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--honey); }
.star-pick label:hover { transform: scale(1.12); }
.star-pick input:focus-visible + label { outline: 2px solid var(--honey-deep); outline-offset: 2px; border-radius: 4px; }
.review-invite { margin: 1rem 0; padding: .8rem 1rem; border-radius: 12px; background: var(--good-bg); }

/* site search */
.search-big { display: flex; gap: .5rem; margin: .6rem 0 1rem; }
.search-big input { flex: 1; min-width: 0; font-size: 1.05rem; padding: .65rem .8rem; }
.search-big .btn { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.search-results { list-style: none; padding: 0; margin: 0 0 .4rem; }
.search-results li { display: flex; flex-direction: column; gap: .1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.search-results a { text-decoration: none; }

/* ---------- apiary location: small map + one-tap save ---------- */
.geo-wrap { margin: .4rem 0 1rem; }
.geo-map { position: relative; height: 270px; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #e6e2d8; touch-action: none; cursor: crosshair; direction: ltr; user-select: none; }
.geo-tiles img { position: absolute; left: 0; top: 0; width: 256px; height: 256px; max-width: none; pointer-events: none; }
html[data-theme="dark"] .geo-tiles img { filter: brightness(.82) contrast(1.05); }
.geo-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 2; }
.geo-pin::before { content: ""; position: absolute; left: -14px; top: -38px; width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--honey); border: 3px solid #4A3216; box-shadow: 0 3px 6px rgba(0, 0, 0, .3); }
.geo-pin::after { content: ""; position: absolute; left: -5px; top: -29px; width: 10px; height: 10px; border-radius: 50%; background: #4A3216; }
.geo-zoom { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.geo-zoom button { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.geo-credit { position: absolute; right: 4px; bottom: 3px; z-index: 3; font-size: 10px; padding: 1px 4px; border-radius: 4px; background: rgba(255, 255, 255, .8); color: #333; text-decoration: none; }
.geo-actions { margin: .5rem 0 .2rem; }
.geo-actions .btn, .locate-box .btn { display: inline-flex; align-items: center; gap: .3rem; }
.geo-manual { margin-top: .4rem; }
.geo-manual summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.locate-box { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: .4rem 0 .8rem; }

/* ---- share buttons (templates/_share.html) */
.share { position: relative; display: inline-block; margin: .25rem 0; }
.share > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; min-height: 40px; }
.share > summary::-webkit-details-marker { display: none; }
.share-menu {
  position: absolute; inset-inline-start: 0; top: calc(100% + 6px); z-index: 30;
  display: grid; gap: 2px; min-width: 13rem; max-width: calc(100vw - 32px); padding: .4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(var(--shadow-rgb), .18);
}
.share-menu a, .share-menu button {
  display: block; width: 100%; padding: .55rem .75rem; min-height: 44px; border: 0; border-radius: var(--radius);
  background: none; color: var(--ink); font: inherit; text-align: start; text-decoration: none; cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover { background: var(--honey-soft); }
.share-link { width: 100%; margin-top: .25rem; padding: .35rem .5rem; font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .75rem 0; }

/* ---- collected data: price index and province figures (insights app) */
.pi-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); margin-block: .8rem; }
.pi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.pi-card.is-thin { opacity: .75; }
.pi-card h3 { margin: 0 0 .3rem; }
.pi-card h3 small, .pv-row h3 small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.pi-median { margin: 0 0 .3rem; }
.pi-median strong { font-size: 1.25rem; color: var(--honey-deep); }
.pi-median span { color: var(--muted); font-size: .9rem; }
.pi-provinces, .pi-mine { list-style: none; margin: .4rem 0 0; padding: 0; }
.pi-provinces li { display: grid; grid-template-columns: 1fr auto 2rem; gap: .5rem; align-items: baseline; padding: .3rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.pi-provinces small { color: var(--muted); text-align: end; }
.pi-mine li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.pi-mine li > span { flex: 1 1 12rem; min-width: 0; }
.pi-mine small { color: var(--muted); }
.pv-list { display: grid; gap: .7rem; margin-block: .8rem; }
.pv-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1rem; }
.pv-row h3 { margin: 0 0 .4rem; }
.pv-row .note { margin: 0 0 .4rem; font-size: .85rem; }
.pv-bar { display: grid; grid-template-columns: 9.5rem 1fr 4.5rem; gap: .5rem; align-items: center; font-size: .9rem; margin-bottom: .3rem; }
.pv-bar strong { text-align: end; white-space: nowrap; }
.pv-track { display: block; height: .6rem; background: rgba(var(--shadow-rgb), .1); border-radius: 99px; overflow: hidden; }
.pv-fill { display: block; height: 100%; border-radius: 99px; }
.pv-mite { background: var(--danger); }
.pv-honey { background: var(--honey); }
@media (max-width: 420px) {
  .pv-bar { grid-template-columns: 1fr 4.5rem; }
  .pv-bar .pv-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- visit statistics (panel/visits) */
.vs-cards { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .vs-cards { grid-template-columns: repeat(4, 1fr); } }
.vs-cards small { color: var(--muted); }
.vs-chart { display: flex; align-items: flex-end; gap: 2px; height: 9rem; padding: .4rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); direction: ltr; }
.vs-day { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; }
.vs-day .vs-views, .vs-day .vs-visitors { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 2px 2px 0 0; min-height: 1px; }
.vs-views { background: var(--honey-soft); }
.vs-visitors { background: var(--honey); }
.vs-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .88rem; }
.vs-key { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; }
.vs-list { list-style: none; padding: 0; margin: .5rem 0; }
.vs-list li { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr 3rem; gap: .6rem; align-items: center; padding: .3rem 0; font-size: .92rem; }
.vs-list strong { text-align: end; }
.vs-pages { padding-inline-start: 1.4rem; margin: .5rem 0; }
.vs-pages li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.vs-pages a { display: block; overflow-wrap: anywhere; text-align: start; }
.vs-pages span { font-size: .85rem; color: var(--muted); }
.vs-cols { display: grid; gap: 1rem; }
@media (min-width: 720px) { .vs-cols { grid-template-columns: 1fr 1fr; } }

/* ---- test copy (deploy/staging.sh) */
.staging-ribbon { position: relative; z-index: 60; padding: .3rem 1rem; text-align: center; font-size: .85rem; font-weight: 700;
  background: repeating-linear-gradient(-45deg, #1e2b22 0 12px, #2c3d31 12px 24px); color: #fbedc2; }
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.kpis-3 strong { font-size: 1.35rem; }

/* ---- climate: county pickers, zone chips (reference/climate.py) */
.climate-chip, .place-chip { display: inline-block; padding: 0 .6rem; border-radius: 99px; font-size: .82rem; font-weight: 600;
  background: var(--good-bg); color: var(--moss); white-space: nowrap; }
.place-chip { background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.climate-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; padding: .7rem 1rem; margin-block: .8rem;
  background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--moss); border-radius: var(--radius); }
.climate-card p { margin: 0; }
.climate-card .hint { flex-basis: 100%; font-size: .88rem; color: var(--muted); }
.climate-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); margin-top: -.3rem; }
.climate-finder { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; }
.climate-finder strong { flex-basis: 100%; font-size: .95rem; }
.climate-finder select { flex: 1 1 10rem; }
.zone-about, .zone-counties { margin-block: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .9rem; }
.zone-about summary, .zone-counties summary { cursor: pointer; font-weight: 600; }
.zone-counties p { margin: .4rem 0; font-size: .92rem; }
select[data-county-for]:disabled { opacity: .6; }

/* ---- economic queens: the same labels everywhere (shop/labels.py) */
.qlabels { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .25rem 0 .35rem; }
.qlabel { display: inline-block; padding: .05rem .6rem; border-radius: 4px; font-size: .8rem; font-weight: 700;
  background: var(--honey); color: var(--on-honey); }
.qlabel-project { background: var(--danger); color: #fff; }
html[data-theme="dark"] .qlabel-project { color: #1d0f0c; }
.qreason { display: inline-block; padding: 0 .5rem; border-radius: 99px; font-size: .78rem;
  background: var(--honey-soft); color: var(--honey-deep); border: 1px solid transparent; }
.qlabel-project ~ .qreason { background: var(--bad-bg); color: var(--danger); }
.qlabels-big { margin: .3rem 0 .6rem; }
.qlabels-big .qlabel { font-size: 1rem; padding: .15rem .8rem; }
.qlabels-big .qreason { font-size: .92rem; padding: .1rem .7rem; }
.qlabels-text { display: block; font-size: .85rem; color: var(--honey-deep); }
.summary .qlabels { flex-basis: 100%; margin: .1rem 0 0; }
.economic-intro { padding: .9rem 1rem; margin-bottom: .6rem; background: var(--note-bg); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--honey); border-radius: var(--radius); }
.economic-intro h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.economic-intro p { margin-bottom: .4rem; }
.economic-note { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.no-defect { font-weight: 700; color: var(--moss); font-size: .92rem; }
.no-defect::before { content: "✓ "; }
.birth-chip { color: var(--honey-deep); font-weight: 600; }
.badge-new { background: var(--good-bg); color: var(--moss); font-weight: 700; }
.field-check .hint { padding-inline-start: 1.8rem; }

/* ---- queen lines (breeding) */
.line-box { margin-block: 1rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.line-box h2.sub { margin-top: 0; }
.line-box h3 { font-size: 1rem; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.line-chip { display: inline-block; padding: 0 .6rem; border-radius: 99px; background: var(--honey-soft); color: var(--honey-deep); font-size: .85rem; }
.line-unknown { background: var(--surface); border: 1px dashed var(--input-border); color: var(--muted); }
.climate-avg { margin-block: .4rem; border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.climate-avg summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }

/* ---- presale and breeding orders */
.deferred-box { margin: .8rem 0; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--honey); border-radius: var(--radius); }
.deferred-kind { font-weight: 700; color: var(--honey-deep); margin-bottom: .4rem; }
.countdown { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem .8rem;
  padding: .55rem .8rem; margin-bottom: .6rem; background: var(--honey-soft); border-radius: var(--radius); }
.countdown span { font-size: .9rem; color: var(--honey-deep); }
.countdown strong { font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.capacity { display: grid; gap: .3rem; margin: .4rem 0 .7rem; }
.cap-bar { display: block; height: .55rem; background: var(--line); border-radius: 99px; overflow: hidden; }
.cap-bar span { display: block; height: 100%; background: var(--honey); border-radius: 99px; }
.cancel-rule { font-size: .88rem; color: var(--muted); margin: .6rem 0 .3rem; }
.cancel-rule strong { color: var(--ink); }
.flow-steps { font-size: .9rem; margin-top: .4rem; }
.flow-steps summary { cursor: pointer; color: var(--moss); }
.flow-steps ol { margin: .4rem 0 0; padding-inline-start: 1.4rem; }
.deferred-rules { padding: .7rem .9rem; margin-bottom: .8rem; background: var(--note-bg); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.deferred-rules p { margin-bottom: .4rem; }
.breeding-rules { padding: .7rem 1rem; background: var(--note-bg); border: 1px solid var(--line); border-inline-start: 4px solid var(--honey); border-radius: var(--radius); }
.breeding-rules ul { margin: 0; padding-inline-start: 1.2rem; }
.ribbon-presale { background: var(--moss); color: var(--on-ink); }
.presale-line { font-size: .82rem; color: var(--honey-deep); font-weight: 600; margin: 0 0 .2rem; }
.price small { font-size: .75rem; color: var(--muted); font-weight: 400; }

/* progress bar of an order (breeding/_job_progress.html) */
.job { margin: .8rem 0 1.2rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.job-head { display: grid; gap: .3rem; margin-bottom: .6rem; }
.job-bar { display: block; height: .5rem; background: var(--line); border-radius: 99px; overflow: hidden; }
.job-bar span { display: block; height: 100%; background: var(--moss); border-radius: 99px; }
.job-steps { list-style: none; margin: 0; padding: 0; }
.job-steps li { position: relative; display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; padding-bottom: .7rem; }
.job-steps li::before { content: ""; position: absolute; inset-inline-start: .64rem; top: 1.25rem; bottom: 0; width: 2px; background: var(--line); }
.job-steps li:last-child::before { display: none; }
.job-steps li.is-done::before { background: var(--moss); }
.job-dot { width: 1.2rem; height: 1.2rem; margin-top: .35rem; border-radius: 50%; border: 2px solid var(--input-border); background: var(--surface); z-index: 1; }
.job-steps .is-done .job-dot { background: var(--moss); border-color: var(--moss); }
.job-steps .is-current .job-dot { background: var(--honey); border-color: var(--honey); box-shadow: 0 0 0 4px var(--honey-soft); }
.job-steps .is-future strong { color: var(--muted); font-weight: 500; }
.job-steps .is-current strong { color: var(--ink); }
.job-steps p { margin: .1rem 0 0; font-size: .9rem; }
.job-steps .note { display: block; font-size: .85rem; }
.job-photo { display: block; max-width: min(100%, 14rem); border-radius: var(--radius); margin-top: .3rem; }

/* certificates and «ملکه‌های من» */
.cert { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--honey); border-radius: var(--radius); margin-bottom: 1rem; }
.cert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cert-head h1 { letter-spacing: .06em; margin: 0; }
.cert-qr svg { display: block; width: 7rem; height: 7rem; border: 1px solid var(--line); border-radius: 4px; }
.queen-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.queen-row h3 { margin: 0; font-size: 1rem; }
.queen-row .meta { margin: .1rem 0 0; }
.track-invite { padding: .7rem 1rem; margin: .7rem 0; background: var(--good-bg); border-radius: var(--radius); color: var(--ink); }
.track-invite .chips { margin-bottom: 0; }

/* staff production calendar */
.kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.agenda-day { padding: .5rem .8rem; margin-bottom: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.agenda-day.is-today { border-inline-start: 4px solid var(--honey); }
.agenda-day h3 { font-size: .95rem; margin: 0 0 .2rem; }
.agenda-day ul { margin: 0; padding-inline-start: 1.1rem; font-size: .92rem; }
.agenda-late a { color: var(--danger); font-weight: 600; }
.agenda-birth a { font-weight: 700; }
.prod-row { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.prod-row h3 { font-size: 1rem; margin: 0 0 .2rem; }
.prod-row .meta { margin: .1rem 0; }

/* ---- message settings and Bale */
.msg-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .93rem; }
.msg-table th, .msg-table td { padding: .45rem .3rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.msg-table th:not(:first-child), .msg-table td:not(:first-child) { text-align: center; width: 3.6rem; }
.msg-table input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0; }
.quiet-row { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.quiet-row label { display: flex; align-items: center; gap: .4rem; }
.quiet-row select { width: auto; }
.bale-code { font-size: 2rem; font-weight: 800; letter-spacing: .3em; text-align: center; padding: .4rem; margin: .4rem 0;
  background: var(--honey-soft); color: var(--ink); border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.bale-invite .verify-box { border-inline-start: 4px solid var(--moss); }

/* ---- support tickets */
.ticket-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.ticket-row h3 { font-size: 1rem; margin: 0; }
.ticket-row .meta { margin: .1rem 0 0; }
.ticket-open { background: var(--honey-soft); color: var(--honey-deep); }
.ticket-answered { background: var(--good-bg); color: var(--moss); }
.ticket-closed { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.thread { display: grid; gap: .6rem; margin: 1rem 0; }
.thread-msg { padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.thread-msg.is-staff { background: var(--good-bg); border-color: transparent; }
.thread-msg p { margin-bottom: .3rem; }

/* ---- hive visit: quick and full checklist (apiary/inspect.html) */
.inspect-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.inspect-top h1 { margin: 0; }
.inspect-tabs { margin: .6rem 0 .3rem; }
.inspect-form .form-section { position: sticky; top: 0; z-index: 2; background: rgba(var(--paper-rgb), .96); padding-top: .4rem; }
.inspect-form .field-radioselect > div[id], .inspect-form .field-checkboxselectmultiple > div[id] { display: flex; flex-wrap: wrap; gap: .4rem; }
.inspect-form .field-radioselect > div[id] > div, .inspect-form .field-checkboxselectmultiple > div[id] > div { display: contents; }
.inspect-form .field-radioselect > div[id] label, .inspect-form .field-checkboxselectmultiple > div[id] label {
  position: relative; display: inline-flex !important; align-items: center; gap: .35rem; min-height: 2.9rem; padding: .35rem .85rem !important;
  border: 1.5px solid var(--input-border); border-radius: 99px; background: var(--surface); cursor: pointer; font-weight: 500 !important;
  -webkit-tap-highlight-color: transparent; user-select: none; }
.inspect-form .field-radioselect > div[id] input, .inspect-form .field-checkboxselectmultiple > div[id] input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0 !important; }
.inspect-form .field-radioselect > div[id] label:has(input:checked), .inspect-form .field-checkboxselectmultiple > div[id] label:has(input:checked) {
  background: var(--honey); border-color: var(--honey); color: var(--on-honey); font-weight: 700 !important; }
.inspect-form .field-radioselect > div[id] label:has(input:focus-visible), .inspect-form .field-checkboxselectmultiple > div[id] label:has(input:focus-visible) {
  outline: 3px solid var(--moss); outline-offset: 2px; }
.inspect-form .field-radioselect > div[id] label:has(input[value=""]) { border-style: dashed; color: var(--muted); }
.inspect-form .field-radioselect > div[id] label:has(input[value=""]:checked) { background: var(--surface); border-color: var(--input-border); color: var(--muted); font-weight: 500 !important; }
.inspect-form .field-check label { min-height: 2.9rem; align-items: center; }
.inspect-form .field-check input[type="checkbox"] { width: 1.6rem; height: 1.6rem; margin-top: 0; }
.stepper { display: flex; align-items: stretch; gap: .35rem; max-width: 15rem; }
.stepper input { text-align: center; font-size: 1.15rem; font-weight: 700; }
.step-btn { flex: 0 0 3rem; min-height: 2.9rem; font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer;
  border: 1.5px solid var(--input-border); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.step-btn:active { background: var(--honey-soft); }
.voice-box { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.voice-box audio { max-width: 100%; height: 2.4rem; }
.voice-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.voice-rec { min-height: 2.9rem; }
.voice-rec.is-rec, .dictate-btn.is-rec { background: var(--danger); border-color: var(--danger); color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .voice-rec.is-rec, .dictate-btn.is-rec { animation: none; } }
.inspect-submit { position: sticky; bottom: calc(var(--tabbar-h, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; gap: .5rem;
  padding: .6rem 0; background: rgba(var(--paper-rgb), .96); border-top: 1px solid var(--line); }
.inspect-submit .btn-primary { flex: 1; }
@media (max-width: 760px) { .inspect-submit { bottom: 4.2rem; } }
/* gloves: everything bigger */
html.glove .inspect-form { font-size: 1.12rem; }
html.glove .inspect-form .field-radioselect > div[id] label, html.glove .inspect-form .field-checkboxselectmultiple > div[id] label { min-height: 3.6rem; padding: .5rem 1.15rem !important; }
html.glove .step-btn { flex-basis: 3.8rem; min-height: 3.6rem; font-size: 1.8rem; }
html.glove .inspect-form input, html.glove .inspect-form select, html.glove .inspect-form textarea { min-height: 3.4rem; font-size: 1.1rem; }
html.glove .inspect-submit .btn { min-height: 3.6rem; font-size: 1.15rem; }
.glove-toggle[aria-pressed="true"] { background: var(--honey); border-color: var(--honey); color: var(--on-honey); }

/* ---- «کار بعدی» and hive status (apiary/advice.py) */
.advice { margin: .8rem 0 1rem; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.advice h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.advice ul { list-style: none; margin: 0; padding: 0; }
.advice li { display: grid; grid-template-columns: auto 1fr; gap: .1rem .55rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.advice li:first-child { border-top: 0; }
.advice li small { grid-column: 2; color: var(--muted); font-size: .85rem; }
.level { display: inline-flex; align-items: center; justify-content: center; min-width: 4.4rem; height: 1.6rem; padding: 0 .5rem; border-radius: 99px;
  font-size: .78rem; font-weight: 700; white-space: nowrap; }
.level-urgent { background: var(--bad-bg); color: var(--danger); }
.level-soon { background: var(--note-bg); color: var(--honey-deep); border: 1px solid var(--honey-soft); }
.level-info { background: var(--good-bg); color: var(--moss); }
.state { display: inline-flex; align-items: center; gap: .3rem; padding: 0 .55rem; border-radius: 99px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.state::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.state-ok { background: var(--good-bg); color: var(--moss); }
.state-attention { background: var(--note-bg); color: var(--honey-deep); }
.state-urgent { background: var(--bad-bg); color: var(--danger); }
.state-none { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.dash-states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .8rem 0; }
@media (min-width: 640px) { .dash-states { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dash-states a { display: grid; gap: .1rem; padding: .6rem .7rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: var(--ink); }
.dash-states strong { font-size: 1.5rem; line-height: 1.2; }
.dash-states .state { justify-self: start; }
.todo-hive { font-weight: 700; white-space: nowrap; }
.hive-next { margin: .15rem 0 0; font-size: .88rem; color: var(--ink); }
.hive-row .state { margin-inline-start: .3rem; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.visit-actions .btn-primary { flex: 1 1 12rem; min-height: 3rem; font-size: 1.05rem; }
.kind-badge { font-size: .75rem; padding: 0 .45rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.inspection audio { display: block; max-width: 100%; height: 2.4rem; margin-top: .3rem; }

/* progress chart: bee frames and brood frames over the visits (one unit, one axis) */
.frames-chart { margin: .5rem 0 1rem; }
.frames-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.fc-grid { stroke: var(--line); stroke-width: 1; }
.fc-grid-label { fill: var(--muted); font-size: 9px; }
.fc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fc-bees { stroke: #b07800; } .fc-brood { stroke: #2f6db0; }
.fc-dot { stroke: var(--surface); stroke-width: 2; }
.fc-dot.fc-bees { fill: #b07800; } .fc-dot.fc-brood { fill: #2f6db0; }
html[data-theme="dark"] .fc-bees { stroke: #bf830f; } html[data-theme="dark"] .fc-brood { stroke: #5f98dc; }
html[data-theme="dark"] .fc-dot.fc-bees { fill: #bf830f; } html[data-theme="dark"] .fc-dot.fc-brood { fill: #5f98dc; }
.fc-hit { fill: transparent; cursor: default; }
.fc-hit:hover + .fc-tip, .fc-hit:focus + .fc-tip { opacity: 1; }
.fc-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.fc-key { display: inline-block; width: .9rem; height: .2rem; border-radius: 2px; vertical-align: middle; margin-inline-end: .3rem; }
.fc-key.fc-bees { background: #b07800; } .fc-key.fc-brood { background: #2f6db0; }
html[data-theme="dark"] .fc-key.fc-bees { background: #bf830f; } html[data-theme="dark"] .fc-key.fc-brood { background: #5f98dc; }
.fc-axis { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.fc-tipbox { min-height: 1.6rem; font-size: .88rem; color: var(--ink); }

/* ---- phase 5: location, diagnosis requests, disease seasons */
.locate-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .35rem 0 0; flex-basis: 100%; }
.locate-status { font-size: .85rem; }
.diag-send { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.photo-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.in-season { color: var(--moss); font-weight: 700; }
.review-line { font-size: .88rem; color: var(--muted); margin: .2rem 0 .6rem; }
.season-box { padding: .8rem 1rem; margin: .4rem 0 1rem; background: var(--good-bg); border-radius: var(--radius); }
.season-box h2 { font-size: 1rem; margin: 0 0 .3rem; }
.season-box .chips li a { text-decoration: none; color: inherit; font-weight: 600; }
.sources { font-size: .85rem; }
.sources li { margin-bottom: .3rem; overflow-wrap: anywhere; }
.price-bands { border: 0; padding: 0; margin: .3rem 0 .4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .35rem; }
.price-bands legend { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.price-bands[hidden] { display: none; }
.pill-option { display: flex; align-items: center; gap: .4rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.pill-option:has(input:checked) { border-color: var(--honey); background: var(--honey-soft); font-weight: 700; }
.field-band .label { display: block; font-weight: 600; margin-bottom: .2rem; }
.pi-band { font-size: .85rem; color: var(--muted); }
.bloom-table-wrap { position: relative; overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.bloom-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: .85rem; }
.bloom-table thead th:first-child { width: 7.6rem; }
.bloom-table thead th { font-size: .68rem; padding-inline: 0; }
.bloom-table th, .bloom-table td { border-bottom: 1px solid var(--line); padding: .3rem .2rem; text-align: center; }
.bloom-table thead th { font-weight: 600; color: var(--muted); }
.bloom-table thead th.is-now { color: var(--ink); }
.bloom-table tbody th { text-align: start; position: sticky; right: 0; background: var(--paper); padding-inline: .4rem; font-weight: 600; overflow-wrap: anywhere; }
.bloom-table tbody th a { color: inherit; text-decoration: none; }
.bloom-table .bloom-val { display: block; font-size: .72rem; font-weight: 400; color: var(--muted); }
.bloom-table td.is-on { background: var(--honey); }
.bloom-table td.is-now { background: var(--honey-soft); }
.bloom-table td.is-on.is-now { background: var(--honey-deep); }
.bloom-table .general { color: var(--muted); }
.route-card { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; }
.route-card h3 { font-size: 1rem; margin: 0 0 .3rem; }
.route-line { font-weight: 600; margin: 0 0 .2rem; }
.route-line a { text-decoration: none; }
.route-plants li a { text-decoration: none; color: inherit; font-weight: 600; }
.danger-text { color: var(--danger); font-weight: 700; }
.cert-badge { padding: .6rem .8rem; border-radius: var(--radius); background: var(--note-bg); border: 1px solid var(--line); font-size: .92rem; }
.cert-badge.is-verified { background: var(--good-bg); border-color: transparent; color: var(--moss); font-weight: 700; }
.honey-row .panel-actions { flex-wrap: wrap; justify-content: flex-end; }
.first-steps { padding: .9rem 1rem; border: 1px solid var(--honey); border-radius: var(--radius); background: var(--note-bg); }
.first-steps h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.steps-check { list-style: none; margin: 0; padding: 0; counter-reset: fs; }
.steps-check li { counter-increment: fs; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.steps-check li::before { content: counter(fs, persian) "."; display: inline-block; min-width: 1.6rem; font-weight: 700; color: var(--honey-deep); }
.steps-check li.is-done::before { content: "✓"; color: var(--moss); }
.steps-check li.is-done a { color: var(--muted); text-decoration: line-through; }
.first-steps-foot { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: .5rem 0 0; font-size: .9rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .7rem; margin-top: .6rem; }
.guide-card { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.guide-card h2 { font-size: 1.02rem; margin: 0 0 .2rem; display: flex; align-items: center; gap: .4rem; }
.guide-card summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; }
.guide-card summary .note { flex-basis: 100%; font-size: .85rem; }
.guide-card ul { margin: .4rem 0 0; padding-inline-start: 1.1rem; }
.guide-card li { margin-bottom: .3rem; font-size: .92rem; }
/* diagnosis helper with many signs */
.diag-tools { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .5rem 0; background: var(--paper); }
.diag-tools input[type="search"] { flex: 1 1 14rem; min-width: 0; }
.signs-group { margin-bottom: .6rem; }
.signs-group > summary { cursor: pointer; font-weight: 700; padding: .45rem .2rem; }
.signs-group .signs { margin: .2rem 0 0; }
.sign-hint { display: block; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.diag-submit { position: sticky; bottom: calc(4.4rem + env(safe-area-inset-bottom)); display: flex; gap: .8rem; align-items: center; padding: .5rem 0; background: var(--paper); }
@media (min-width: 900px) { .diag-submit { bottom: 0; } }
.diag-result .chips li.is-key { font-weight: 700; background: var(--honey-soft); border-color: transparent; }
.diag-level { font-size: .78rem; }
.level-high .diag-level { background: var(--bad-bg); color: var(--danger); }
.level-mid .diag-level { background: var(--honey-soft); color: var(--honey-deep); }
.level-low .diag-level { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.pest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.pest-card { padding: .7rem .9rem; border: 1px solid var(--line); border-inline-start: 4px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pest-card h3 { font-size: 1rem; margin: 0 0 .2rem; }
.pest-card p { margin: .2rem 0; font-size: .92rem; }
.pest-card.risk-high { border-inline-start-color: var(--danger); }
.pest-card.risk-medium { border-inline-start-color: var(--honey); }
.pest-card.risk-low { border-inline-start-color: var(--moss); }
.risk-high .pest-risk { background: var(--bad-bg); color: var(--danger); }
.risk-medium .pest-risk { background: var(--honey-soft); color: var(--honey-deep); }
.risk-low .pest-risk { background: var(--good-bg); color: var(--moss); }

/* BEGIN modern-links (v9.2): every link without underline, no tap rectangle, soft press */
a, button, summary, label, .btn, [role="button"] { -webkit-tap-highlight-color: transparent; }
a, .link-button { color: var(--honey-deep); text-decoration: none !important; transition: color .15s, background-color .15s, border-color .15s, opacity .15s, transform .1s; }
a:hover, .link-button:hover { color: var(--honey); }
a:active, .link-button:active, .btn:active { transform: scale(.97); }
:where(p, li, td, dd, blockquote, .note, .hint, .meta, .prose, .lead, .msg, .empty, .kind) > a:not(.btn), .link-button { font-weight: 600; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.danger-link, .danger-link:hover { color: var(--danger) !important; }
.paths-more { gap: .5rem; }
.paths-more a, .chip-links a { display: inline-flex; align-items: center; min-height: 2.4rem; padding: .35rem .95rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .88rem; }
.paths-more a:hover, .chip-links a:hover { border-color: var(--honey); color: var(--honey-deep); }
.block-head > a, .block-head .head-actions > a:not(.btn) { font-weight: 600; white-space: nowrap; }
.block-head > a::after { content: "←"; display: inline-block; margin-inline-start: .3rem; transition: transform .15s; }
.block-head > a:hover::after { transform: translateX(-3px); }
/* END modern-links */
/* BEGIN calendar-forms (v9.3) */
#calendar, .month-view { scroll-margin-top: 84px; }
.month-hex:focus { outline: none; }
.month-hex:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 2px; }
@media (hover: none) { .month-hex:hover { background: var(--honey-soft); transform: none; } .month-hex.is-current:hover { background: var(--honey); } }
.month-hex.is-selected, .month-hex.is-selected:hover { background: var(--honey-deep); color: #fff; transform: scale(1.06); }
.field { scroll-margin-top: 90px; }
.field.has-error input:not([type=checkbox]):not([type=radio]), .field.has-error select, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
/* END calendar-forms */
/* BEGIN inplace (phase 1) */
.inplace-toasts { position: fixed; inset-inline: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.inplace-toast { margin: 0; max-width: 32rem; width: 100%; box-sizing: border-box; box-shadow: 0 6px 20px rgba(var(--shadow-rgb), .18); transition: opacity .4s, transform .4s; pointer-events: auto; }
.inplace-toast.is-out { opacity: 0; transform: translateY(8px); }
@media (min-width: 760px) { .inplace-toasts { bottom: 24px; } }
/* END inplace */
/* BEGIN ia (phase 1): header on phones, grouped menu, guest home, member home, section hubs */
.m-actions { display: flex; align-items: center; gap: .15rem; margin-inline-start: auto; }
.m-icon { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); border-radius: 22px; }
.m-icon:hover { background: var(--honey-soft); color: var(--ink); }
.m-count { position: absolute; top: 6px; inset-inline-end: 4px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.m-me { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.m-login { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid var(--input-border); border-radius: 20px; color: var(--ink); font-weight: 700; font-size: .92rem; }
@media (max-width: 759px) { .theme-toggle, .menu-toggle { display: none !important; } .brand span { font-size: 1.1rem; } }
@media (min-width: 760px) { .m-actions { display: none; } }

.menu-list { display: flex; flex-direction: column; gap: .2rem; }
.menu-list a { border-bottom: 0; padding: 0; font-size: 1rem; }
.menu-search { display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 .9rem; margin: .8rem 0 .2rem; border: 1px solid var(--line); border-radius: 23px; background: var(--paper); color: var(--muted); }
.menu-search input { border: 0; background: transparent; font: inherit; flex: 1; min-width: 0; outline: none; color: var(--ink); padding: 0; min-height: 0; box-shadow: none; }
.menu-group { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .4rem; }
.menu-group:first-of-type { border-top: 0; }
.menu-group h2 { margin: .2rem 0 .3rem; font-size: .84rem; color: var(--honey-deep); font-weight: 800; display: flex; align-items: center; gap: .35rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .8rem; }
.menu-grid a { min-height: 42px; display: flex; align-items: center; font-weight: 600; font-size: .95rem; }
.menu-grid .menu-strong { color: var(--moss); font-weight: 800; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 0 1.1rem; border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .3rem; }
.menu-foot a { min-height: 40px; display: inline-flex; align-items: center; font-size: .88rem; color: var(--muted); }
.menu-foot a.menu-strong { color: var(--moss); font-weight: 800; }
.menu-staff { display: flex; gap: 1rem; margin: .6rem 0 0; font-size: .9rem; }

.hero-kicker { display: inline-block; margin: 0 0 .6rem; padding: .25rem .7rem; border-radius: 99px; background: var(--surface); color: var(--honey-deep); font-size: .8rem; font-weight: 700; }
.btn-big { min-height: 50px; padding-inline: 1.6rem; font-size: 1.05rem; font-weight: 800; }
.home-benefits { display: grid; gap: .7rem; margin: 1.2rem 0; }
@media (min-width: 760px) { .home-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefit { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem; }
.benefit strong { font-size: .98rem; }
.benefit p { margin: .25rem 0 0; font-size: .86rem; line-height: 1.8; color: var(--muted); }
.benefit-ic, .door-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.is-moss { background: var(--good-bg); color: var(--moss); }
.is-honey { background: var(--honey-soft); color: var(--honey-deep); }
.is-red { background: var(--bad-bg); color: var(--danger); }
.home-doors { display: flex; flex-direction: column; gap: .7rem; }
.home-doors h2 { margin: 0; }
.door { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .85rem; color: var(--ink); }
.door:hover { border-color: var(--honey); color: var(--ink); }
.door-ic { width: 46px; height: 46px; border-radius: 12px; }
.door-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.door-text strong { font-size: 1.02rem; }
.door-text span { font-size: .85rem; color: var(--muted); }
.door-chev { color: var(--muted); flex: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--honey); color: var(--honey-deep); }
.chip-leaf { background: var(--good-bg); border-color: transparent; min-height: 34px; font-size: .86rem; }

.dash { display: flex; flex-direction: column; gap: 1rem; padding-block: 1rem 2rem; }
.dash-hello h1 { margin: .1rem 0 0; font-size: 1.5rem; }
.dash-date { margin: 0; font-size: .85rem; color: var(--muted); }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.dash-card-head h2 { margin: 0; font-size: 1.05rem; }
.dash-card-head h2 a { color: var(--ink); }
.dash-weather { min-height: 4rem; }
.dash-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.dash-action { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .75rem .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: .78rem; font-weight: 700; text-align: center; }
.dash-action.is-main { background: var(--honey); border-color: var(--honey); color: var(--on-honey); font-weight: 800; }
.dash-action:hover { border-color: var(--honey); color: var(--ink); }
.dash-block .block-head { margin-bottom: .4rem; }
.dash-block .block-head h2 { font-size: 1.05rem; margin: 0; }
.dash-row { display: flex; gap: .75rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem; margin-bottom: .5rem; color: var(--ink); }
.dash-row:hover { border-color: var(--honey); color: var(--ink); }
.dash-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .92rem; line-height: 1.7; }
.dash-row-text .note { font-size: .8rem; }
.dash-badge { flex: none; min-width: 42px; height: 42px; padding: 0 .3rem; box-sizing: border-box; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--note-bg); color: var(--honey-deep); }
.lvl-urgent .dash-badge { background: var(--bad-bg); color: var(--danger); }
.dash-dot { flex: none; width: 10px; height: 10px; border-radius: 5px; background: var(--moss); }
.dash-dot.is-honey { background: var(--honey); }
.dash-ok { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--moss); font-weight: 600; }
.dash-tasks { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .2rem .8rem; }
.dash-task { display: flex; align-items: center; gap: .6rem; min-height: 50px; border-bottom: 1px solid var(--line); margin: 0; }
.dash-task:last-child { border-bottom: 0; }
.dash-check { flex: none; width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--input-border); background: var(--surface); color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.dash-task.is-done .dash-check { background: var(--moss); border-color: var(--moss); color: #fff; }
.dash-task.is-done span { text-decoration: line-through; color: var(--muted); }
.dash-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.dash-more a { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 700; font-size: .92rem; }

.hub h1 { margin-bottom: .6rem; }
.hub-search { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .9rem; border: 1px solid var(--input-border); border-radius: 24px; background: var(--surface); color: var(--muted); margin-bottom: .9rem; }
.hub-search input { border: 0; background: transparent; font: inherit; flex: 1; min-width: 0; outline: none; color: var(--ink); padding: 0; min-height: 0; box-shadow: none; }
.hub-feature { display: flex; gap: .9rem; align-items: center; background: var(--ink); color: var(--on-ink); border-radius: 14px; padding: 1rem; margin-bottom: .9rem; }
.hub-feature:hover { color: var(--on-ink); opacity: .95; }
.hub-feature strong { display: block; font-size: 1.02rem; }
.hub-feature span span { font-size: .86rem; opacity: .85; line-height: 1.7; }
.hub-feature-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--honey); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 760px) { .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hub-tile { display: flex; flex-direction: column; gap: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .85rem; color: var(--ink); }
.hub-tile svg { color: var(--honey-deep); }
.hub-tile strong { font-size: .98rem; }
.hub-tile span { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.hub-tile:hover { border-color: var(--honey); color: var(--ink); }
.hub-month { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem; }
.hub-month hr { border: 0; border-top: 1px solid var(--line); margin: .9rem 0; }
.hub-tasks { margin: .3rem 0 0; padding-inline-start: 1.2rem; line-height: 2; }
html[data-theme="dark"] .hub-feature { background: var(--honey-soft); color: var(--ink); }
/* END ia */
/* BEGIN pages (phase 1): info pages, footer, Meda */
.prose-page { max-width: 46rem; line-height: 2; }
.prose-page h2 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose-page ul { padding-inline-start: 1.2rem; }
.plain-list { list-style: none; padding: 0 !important; }
.footer-inner { display: flex; flex-direction: column; gap: .6rem; padding-block: 1.4rem 6rem; }
.footer-id { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.footer-links a, .footer-links span { min-height: 36px; display: inline-flex; align-items: center; font-size: .9rem; }
.footer-copy { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.9; }
@media (min-width: 760px) { .footer-inner { padding-bottom: 1.6rem; } }
.meda-steps { list-style: none; padding: 0 !important; counter-reset: s; display: flex; flex-direction: column; gap: .5rem; }
.meda-steps li { counter-increment: s; position: relative; padding: .7rem 3rem .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; line-height: 1.8; }
.meda-steps li::before { content: counter(s); position: absolute; inset-inline-start: .8rem; top: .7rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; }
.meda-steps li span { display: block; font-size: .8rem; color: var(--muted); }
.meda-steps li.is-current { border-color: var(--honey); background: var(--honey-soft); }
.meda-steps li.is-current::before { background: var(--honey); }
.meda-steps li.is-current span { color: var(--honey-deep); font-weight: 800; }
.meda-call { margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--note-bg); border: 1px solid var(--line); }
.meda-call h2 { margin-top: 0; }
.sources { font-size: .85rem; direction: ltr; text-align: left; }
/* END pages */
/* BEGIN onboarding (phase 1) */
.fs-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.fs-head h2 { margin: 0; }
.fs-count { font-size: .85rem; font-weight: 700; color: var(--honey-deep); white-space: nowrap; }
.fs-bar { height: 8px; border-radius: 4px; background: var(--surface); margin: .6rem 0 .8rem; overflow: hidden; }
.fs-bar span { display: block; height: 100%; background: var(--moss); border-radius: 4px; }
.fs-next { width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.6; padding-block: .6rem; }
.fs-all { margin-top: .6rem; }
.fs-all summary { cursor: pointer; font-size: .9rem; color: var(--muted); min-height: 36px; display: flex; align-items: center; }
.tip-once { display: flex; gap: .6rem; align-items: flex-start; margin: .4rem 0 .6rem; padding: .7rem .8rem; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: .88rem; line-height: 1.8; }
.tip-once p { margin: 0; flex: 1; }
.tip-close { flex: none; font: inherit; font-weight: 700; font-size: .85rem; min-height: 36px; padding: 0 .8rem; border: 0; border-radius: 18px; background: var(--honey); color: var(--ink); cursor: pointer; }
html[data-theme="dark"] .tip-once { background: var(--honey-soft); color: var(--ink); }
/* END onboarding */
/* BEGIN phase2 shop */
.old-price { color: var(--muted); font-weight: 400; font-size: .85em; margin-inline-end: .2rem; }
.badge-partner { background: var(--good-bg); color: var(--moss); }
.badge-partner a { color: inherit; }
.sale-end { color: var(--danger); font-weight: 700; font-size: .92rem; margin: .2rem 0; }
.partner-price { background: var(--good-bg); padding: .5rem .8rem; border-radius: 10px; display: inline-block; }
.bus-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1rem .8rem; margin: 1rem 0; }
.bus-info { display: grid; gap: .3rem; margin: 0; }
.bus-info div { display: flex; gap: .6rem; flex-wrap: wrap; }
.bus-info dt { color: var(--muted); min-width: 8rem; }
.bus-info dd { margin: 0; font-weight: 700; }
.claim-box { margin: 1rem 0; padding: .6rem 1rem; border: 1px solid var(--danger); border-radius: 12px; background: var(--bad-bg); }
.claim-box summary { cursor: pointer; font-weight: 800; color: var(--danger); min-height: 40px; display: flex; align-items: center; }
.wallet-balance { display: flex; justify-content: space-between; align-items: baseline; background: var(--honey-soft); border-radius: 14px; padding: 1rem 1.1rem; }
.wallet-balance strong { font-size: 1.5rem; }
.wallet-gift { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin: 1rem 0; }
.wallet-gift .field { flex: 1; min-width: 12rem; margin: 0; }
.own-code { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; padding: .6rem .8rem; border: 1px dashed var(--honey); border-radius: 10px; margin-bottom: .5rem; background: var(--surface); }
.own-code strong { font-size: 1.1rem; letter-spacing: .05em; }
.own-code span { font-size: .86rem; color: var(--muted); }
.wallet-row { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.wallet-row .is-in { color: var(--moss); }
.wallet-row .is-out { color: var(--danger); }
.ref-link { display: flex; gap: .5rem; align-items: center; }
.ref-link input { flex: 1; min-width: 0; }
.report-reward-note { margin-bottom: 1rem; }
/* lines */
.shop-guide { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .4rem 1rem; margin-bottom: 1rem; }
.shop-guide summary { cursor: pointer; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; }
.shop-guide h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.line-filters { margin-bottom: .6rem; }
.line-grid { display: grid; gap: .8rem; }
@media (min-width: 760px) { .line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .line-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.line-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem; display: flex; flex-direction: column; gap: .4rem; }
.line-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.line-card-head h2 { margin: 0; font-size: 1.1rem; }
.line-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.line-grade { margin: 0; font-size: .92rem; }
.mini-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.mini-bars li { display: grid; grid-template-columns: 6.5rem 1fr 2.2rem; align-items: center; gap: .4rem; font-size: .8rem; }
.mini-bars em { font-style: normal; color: var(--muted); text-align: end; }
.offer-list { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .35rem; }
.offer-list li a { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; padding: .45rem .6rem; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .88rem; }
.offer-list li a strong { margin-inline-start: auto; }
.offer-list.big li { display: flex; flex-direction: column; gap: .2rem; }
.offer-list.big li a { font-size: .95rem; padding: .6rem .8rem; }
.offer-help { font-size: .8rem; padding-inline: .3rem; }
.offer-kind { font-weight: 700; }
.offer-mode { font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; background: var(--good-bg); color: var(--moss); }
.offer-mode.mode-presale { background: var(--honey-soft); color: var(--honey-deep); }
.offer-mode.mode-breeding { background: var(--note-bg); color: var(--honey-deep); }
.line-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .4rem; border-top: 1px solid var(--line); font-size: .88rem; }
.compare-bar { text-align: center; margin-top: 1rem; }
.compare-bar.is-on { position: sticky; bottom: 76px; }
@media (min-width: 760px) { .compare-bar.is-on { bottom: 12px; } }
.line-buy { background: var(--surface); border: 1px solid var(--honey); border-radius: 14px; padding: .3rem 1rem 1rem; margin: 1rem 0; }
.line-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.group-progress { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; margin: .6rem 0; }
.group-progress span { display: block; height: 100%; max-width: 100%; background: var(--moss); }
.partners-page details { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.partners-page summary { cursor: pointer; font-weight: 700; min-height: 40px; display: flex; align-items: center; }
/* END phase2 shop */

/* ---------- places: counties and cities (phase 3) */
.places-search { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 1rem; }
.places-search input { flex: 1 1 14rem; min-width: 0; }
.place-province { border-bottom: 1px solid var(--line); padding: .35rem 0; }
.place-province > summary { cursor: pointer; font-weight: 700; padding: .35rem 0; }
.place-province .meta { font-weight: 400; color: var(--muted); font-size: .85rem; margin-inline-start: .4rem; }
.place-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .8rem; padding: 0; }
.place-chips li { font-size: .9rem; }
.place-chips a { display: inline-block; padding: .2rem .7rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.place-chips a:hover { border-color: var(--moss); }
.place-chips a.has-page { font-weight: 700; border-color: var(--moss); }
.place-page h1 { margin-bottom: .3rem; }
.place-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1rem 0; }
.place-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; min-width: 0; }
.place-card h2 { font-size: 1rem; margin: 0 0 .4rem; }
.place-card .chips li a { text-decoration: none; color: inherit; font-weight: 600; }
.place-card .weather-days { margin: .3rem 0; }
.place-about { margin-top: 1.2rem; }
.review-note { background: var(--note-bg); padding: .6rem .8rem; border-radius: var(--radius); }
.place-cta { margin: 1.2rem 0; padding: .8rem 1rem; border-radius: var(--radius); background: var(--honey-soft); }
.place-cta p { margin: 0; }
details.sources { margin: .6rem 0; font-size: .9rem; }
details.sources ul { margin: .3rem 0; padding-inline-start: 1.2rem; overflow-wrap: anywhere; }
.place-tasks { list-style: none; padding: 0; margin: .4rem 0; }
.place-tasks li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.place-tasks .badge { font-size: .75rem; }

/* ---------- plants: «گل‌ده در ماه» by climate */
.zone-links { display: flex; gap: .35rem; overflow-x: auto; padding: .2rem 0 .5rem; margin: .4rem 0; scrollbar-width: thin; }
.zone-links .chip { flex: 0 0 auto; white-space: nowrap; padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .88rem; }
.zone-links .chip.is-active { background: var(--moss); border-color: var(--moss); color: var(--on-ink); }
.zone-links .chip small { opacity: .8; }
.zone-groups { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: .6rem 0; }
.zone-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; min-width: 0; }
.zone-group h2 { font-size: 1rem; margin: 0 0 .3rem; }
.zone-group h2 a { color: inherit; }
.zone-group .meta { font-weight: 400; color: var(--muted); font-size: .82rem; }
.zone-group .chips li, .place-card .chips li { flex: 0 0 auto; white-space: nowrap; }
.zone-chips li { background: var(--good-bg); }
.zone-chips li a { text-decoration: none; color: inherit; font-weight: 600; }
.chips.bloom { display: flex; }
.zone-bloom-list { list-style: none; padding: 0; margin: .4rem 0 1rem; }
.zone-bloom-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.zone-bloom-list li.is-now { font-weight: 700; }
.source-list { padding-inline-start: 1.2rem; font-size: .9rem; overflow-wrap: anywhere; }

/* ---------- read-only point map (Meda project) */
.geo-readonly { cursor: grab; height: 300px; }
.geo-dots { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.geo-dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; border-radius: 50%; background: var(--honey); color: #2b1d00; border: 2px solid #4A3216; font-size: 11px; font-weight: 700; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); }
.geo-dot.is-good { background: #3f8f4f; color: #fff; border-color: #1f4d29; }
.geo-label { position: absolute; left: 8px; right: 54px; bottom: 22px; z-index: 4; padding: .35rem .6rem; border-radius: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: .85rem; direction: rtl; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }

/* ---------- Meda project (phase 3) */
.meda-jump { display: flex; gap: .4rem; flex-wrap: wrap; margin: .8rem 0 1rem; }
.meda-jump a { padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .88rem; }
.meda-steps li.is-done { opacity: .75; }
.meda-steps li.is-done::before { content: "✓"; background: var(--good-bg); }
.meda-cta { display: flex; gap: .5rem; flex-wrap: wrap; }
.meda-stats { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .8rem 0 .4rem; }
.meda-stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .3rem; text-align: center; display: flex; flex-direction: column; }
.meda-stats strong { font-size: 1.25rem; }
.meda-stats span { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.meda-faq { margin-top: .6rem; }
.meda-faq summary { cursor: pointer; font-weight: 600; }
.meda-map { margin: .6rem 0 .3rem; }
.dot-key { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--honey); border: 2px solid #4A3216; vertical-align: middle; margin-inline-start: .4rem; }
.dot-key.is-good { background: #3f8f4f; border-color: #1f4d29; }
.meda-county-list ul { columns: 2; font-size: .88rem; }
.meda-update { border-top: 1px solid var(--line); padding: .8rem 0; }
.meda-update h3 { margin: .2rem 0 .4rem; }
.meda-update img { max-width: 100%; border-radius: var(--radius); }
.meda-help { margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--good-bg); }
.meda-help h2 { margin-top: 0; }
.meda-money p { margin: .3rem 0; }
.meda-bar { height: 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.meda-bar span { display: block; height: 100%; background: var(--moss); }
.meda-donate { margin-top: .8rem; background: var(--surface); padding: .8rem; border-radius: 12px; }
.amount-pick { border: 0; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.amount-pick legend { font-weight: 600; margin-bottom: .3rem; }
.amount-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: .88rem; cursor: pointer; }
.amount-chip:has(input:checked) { border-color: var(--moss); background: var(--accepted-bg); font-weight: 700; }
.meda-donors { list-style: none; padding: 0 !important; font-size: .9rem; }
.meda-donors li { padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.meda-colony { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: .8rem 0; background: var(--surface); }
.meda-colony h2 { font-size: 1.05rem; margin: 0 0 .2rem; }
.meda-track { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0; font-size: .8rem; }
.meda-track li { padding: .2rem .55rem; border-radius: 99px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.meda-track li.is-current { background: var(--honey); color: var(--on-honey); border-color: var(--honey); font-weight: 700; }

/* ---------- first-year course and tools (phase 4) */
.hub-course { display: flex; flex-direction: column; gap: .2rem; margin: .8rem 0; padding: .9rem 1rem; border-radius: 14px; background: var(--honey-soft); border: 1px solid var(--honey); color: var(--ink); text-decoration: none; }
.hub-course strong { font-size: 1.1rem; }
.hub-course span:last-child { color: var(--muted); font-size: .9rem; }
.hub-course .badge { align-self: flex-start; }
.course-progress { margin: .6rem 0; }
.course-now { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; border-radius: 12px; background: var(--good-bg); color: var(--ink); text-decoration: none; margin: .6rem 0; }
.course-now .badge { align-self: flex-start; }
.course-list { list-style: none; padding: 0; margin: .8rem 0; counter-reset: c; }
.course-list li { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: .45rem 0; }
.course-list li a { display: flex; flex-direction: column; gap: .15rem; padding: .7rem 1rem .7rem 2.6rem; color: var(--ink); text-decoration: none; }
.course-list .course-month { font-size: .78rem; color: var(--honey-deep); font-weight: 700; }
.course-list li.is-now { border-color: var(--honey); }
.course-list li.is-done { background: var(--accepted-bg); }
.course-tick { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--moss); font-weight: 800; font-size: 1.2rem; }
.course-check { background: var(--note-bg); border-radius: 12px; padding: .6rem 1rem; margin: 1rem 0; }
.course-check ul { margin: .3rem 0; }
.course-done { margin: 1rem 0; }
.course-nav { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.course-nav .btn { max-width: 100%; white-space: normal; text-align: start; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; margin: 1rem 0; scroll-margin-top: 4.5rem; }
.tool-card h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
.tool-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.tool-grid label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
.tool-out { display: block; margin: .8rem 0 .4rem; padding: .7rem .9rem; border-radius: 10px; background: var(--honey-soft); line-height: 1.9; }
.tool-out:empty { display: none; }
.tool-out .is-ok { color: var(--moss); }
.tool-out .is-warn { color: var(--honey-deep); }
.tool-out .is-bad { color: var(--danger); }
.tool-steps { margin: 0; padding-inline-start: 1.2rem; }

/* ---------- ads board (phase 4) */
.ad-list { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: .8rem 0; }
.ad-card { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--honey); border-radius: 12px; padding: .7rem .9rem; min-width: 0; }
.ad-card.ad-pollination_need, .ad-card.ad-site_offer { border-inline-start-color: var(--moss); }
.ad-card h3 { margin: .1rem 0 .3rem; font-size: 1rem; }
.ad-card h3 a { color: var(--ink); }
.ad-kind { margin: 0; font-size: .78rem; color: var(--honey-deep); font-weight: 700; }
.ad-kind span { color: var(--muted); font-weight: 400; }
.ad-card .meta { margin: 0; }
.ad-facts { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: .8rem 0; }
.ad-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; }
.ad-facts dt { font-size: .78rem; color: var(--muted); }
.ad-facts dd { margin: 0; font-weight: 600; }
.ad-contact { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1rem 0; padding: .8rem; border-radius: 12px; background: var(--honey-soft); }
.ad-report { margin: .6rem 0; font-size: .88rem; }
.ad-report summary { cursor: pointer; color: var(--muted); }
.ad-mine { margin: .8rem 0; }
.ad-mine .meta { margin: .3rem 0; }

/* ---------- live map (phase 4) */
:root { --map-0: #ece9df; --map-1: #f7e3a6; --map-2: #f0c45a; --map-3: #d99a12; --map-4: #8a5a00; --map-edge: #ffffff; }
html[data-theme="dark"] { --map-0: #26302a; --map-1: #4a3f1c; --map-2: #7a5d17; --map-3: #b07c12; --map-4: #e8a410; --map-edge: #121a15; }
.livemap-wrap { position: relative; margin: .6rem 0; }
.iran-map { width: 100%; height: auto; display: block; }
.iran-map path { stroke: var(--map-edge); stroke-width: 1.4; stroke-linejoin: round; cursor: pointer; transition: fill .25s; outline: none; }
.iran-map path.b0 { fill: var(--map-0); }
.iran-map path.b1 { fill: var(--map-1); }
.iran-map path.b2 { fill: var(--map-2); }
.iran-map path.b3 { fill: var(--map-3); }
.iran-map path.b4 { fill: var(--map-4); }
.iran-map path.is-mine { stroke: var(--moss); stroke-width: 3; }
.iran-map path.is-picked, .iran-map path:focus-visible { stroke: var(--ink); stroke-width: 3.5; }
.livemap-legend { display: flex; align-items: center; gap: .25rem; font-size: .75rem; color: var(--muted); justify-content: flex-start; margin-top: .3rem; }
.livemap-legend i { width: 1.6rem; height: .7rem; border-radius: 3px; display: inline-block; }
.livemap-legend i.b1 { background: var(--map-1); } .livemap-legend i.b2 { background: var(--map-2); }
.livemap-legend i.b3 { background: var(--map-3); } .livemap-legend i.b4 { background: var(--map-4); }
.livemap-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1rem; margin: .6rem 0; }
.livemap-panel h3 { margin: 0 0 .2rem; }
.livemap-facts { list-style: none; padding: 0; margin: .4rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .3rem; }
.livemap-alerts { color: var(--danger); }
.livemap-list { list-style: none; padding: 0; margin: .4rem 0; columns: 2; column-gap: 1rem; }
.livemap-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem .2rem; border-bottom: 1px solid var(--line); break-inside: avoid; cursor: pointer; }
.livemap-list li.is-mine { font-weight: 700; color: var(--moss); }
.map-credit { font-size: .75rem; }
@media (max-width: 420px) { .livemap-list { columns: 1; } }

/* ---------- points and badges (phase 4) */
.points-me { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .8rem 0 .5rem; }
.points-me > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; display: flex; flex-direction: column; }
.points-big { font-size: 1.8rem; color: var(--honey-deep); }
.points-me span { color: var(--muted); font-size: .85rem; }
.badge-grid { list-style: none; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.badge-grid li { display: grid; grid-template-columns: 2rem 1fr; column-gap: .5rem; align-items: center; padding: .6rem .8rem; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); }
.badge-grid li .badge-icon { grid-row: span 2; font-size: 1.4rem; text-align: center; }
.badge-grid li span:last-child { font-size: .82rem; }
.badge-grid li.is-earned { border-style: solid; border-color: var(--honey); background: var(--honey-soft); color: var(--ink); }
.points-history, .points-leaders { list-style: none; padding: 0; margin: .4rem 0; }
.points-history li, .points-leaders li { display: flex; gap: .6rem; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.points-leaders { counter-reset: l; }
.points-leaders li::before { counter-increment: l; content: counter(l, persian); color: var(--muted); min-width: 1.2rem; }
.points-leaders li a { flex: 1; }
.points-table { width: 100%; border-collapse: collapse; }
.points-table th, .points-table td { text-align: start; padding: .4rem .3rem; border-bottom: 1px solid var(--line); }
.profile-level { margin: .3rem 0; font-weight: 600; }
.badges li.is-earned { background: var(--honey-soft); }
.dash-growth { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; }
.dash-tile { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.dash-tile strong { font-size: 1.25rem; }
.dash-tile span { font-size: .85rem; }
.dash-tile .note { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-head > div { min-width: 0; flex: 1; }
.profile-head .manage { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ---------- year in the apiary card (phase 4) */
.year-card { position: relative; overflow: hidden; border-radius: 22px; padding: 1.2rem 1.2rem 1rem; margin: 1rem 0; background: linear-gradient(170deg, #fbedc2, #f2b52e); color: #1e2b22; box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .18); }
.year-card-kicker { margin: 0; color: #8a5a00; font-weight: 700; font-size: .85rem; }
.year-card h2 { margin: .2rem 0 .8rem; color: #35633f; }
.year-grid { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.year-grid li { background: rgba(255, 255, 255, .82); border-radius: 14px; padding: .7rem .5rem; text-align: center; display: flex; flex-direction: column; }
.year-grid strong { font-size: 1.7rem; color: #8a5a00; }
.year-grid span { font-size: .85rem; }
.year-line { margin: .35rem 0; }
.year-card-foot { margin: .8rem 0 0; text-align: left; direction: ltr; color: #8a5a00; font-weight: 700; font-size: .85rem; }
.year-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dash-tile.is-new { border-color: var(--honey); background: var(--honey-soft); }
.dash-badges { background: var(--honey-soft); border: 1px solid var(--honey); border-radius: 12px; padding: .6rem .9rem; }
.dash-badges p { margin: .2rem 0; }

/* Only the Android app versions 1.1 and 1.2 drew their own bottom bar (html.in-app-bar): there the page's tab
   bar goes and the menu button returns to the header. From 1.3 on the app shows the site exactly as it is. */
html.in-app-bar body { padding-bottom: env(safe-area-inset-bottom); }
html.in-app-bar .tabbar { display: none !important; }
html.in-app-bar .menu-toggle { display: inline-flex !important; padding: .3rem .5rem; border-color: var(--line); }
html.in-app-bar .menu-toggle span { display: none; }
html.in-app-bar .back { display: none; } /* the phone's own back gesture does this in the app */
html.in-app-bar .outbox-pill { bottom: calc(12px + env(safe-area-inset-bottom)); }
html.in-app-bar .toast { bottom: calc(56px + env(safe-area-inset-bottom)); }
html.in-app-bar .inplace-toasts { bottom: calc(16px + env(safe-area-inset-bottom)); }
html.in-app-bar .inspect-submit, html.in-app-bar .diag-submit, html.in-app-bar .compare-bar.is-on { bottom: 0; }
@media (min-width: 820px) { html.in-app-bar .menu-toggle { display: none !important; } }

/* Install suggestion for the Android app (Android browsers only) */
.app-promo { position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,0); transition: background .3s; padding: 0 12px calc(4.6rem + env(safe-area-inset-bottom)); }
.app-promo[hidden] { display: none; }
.app-promo.is-on { background: var(--scrim); }
.app-promo-card { position: relative; width: 100%; max-width: 28rem; max-height: 75vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1rem .8rem;
  box-shadow: 0 12px 40px rgba(var(--shadow-rgb), .3); transform: translateY(24px); opacity: 0; transition: transform .3s, opacity .3s; }
.app-promo.is-on .app-promo-card { transform: none; opacity: 1; }
.app-promo-close { position: absolute; top: .5rem; inset-inline-end: .6rem; background: none; border: 0; font: inherit;
  font-size: 1rem; color: var(--muted); cursor: pointer; padding: .3rem; }
.app-promo-head { display: flex; gap: .8rem; align-items: center; padding-inline-end: 1.6rem; }
.app-promo-head img { border-radius: 14px; flex: none; }
.app-promo-title { margin: 0; font-weight: 800; font-size: 1.08rem; }
.app-promo-sub { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.app-promo-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; }
.app-promo-help { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; font-size: .92rem; }
.app-promo-help summary { cursor: pointer; color: var(--honey-deep); font-weight: 700; }
.app-promo-help ol { padding-inline-start: 1.2rem; margin: .5rem 0; line-height: 1.9; }
.app-promo-note { background: var(--honey-soft); border-radius: 10px; padding: .55rem .7rem; line-height: 1.8; margin: .4rem 0; }
@media (min-width: 820px) { .app-promo { padding-bottom: 1.5rem; } }

/* حساب زنبورستان (ledger) */
.books-nav { display: flex; gap: .4rem; overflow-x: auto; margin: .4rem 0 .8rem; padding-bottom: .2rem; }
.books-nav a { white-space: nowrap; padding: .35rem .85rem; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; background: var(--surface); }
.books-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.books-filter { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: .3rem 0; }
.books-filter label { display: inline-flex; gap: .4rem; align-items: center; font-size: .92rem; color: var(--muted); }
.books-filter select { width: auto; }
.books-in { color: var(--moss); }
.books-out { color: var(--danger); }
.books-late { color: var(--danger); font-size: .82rem; }
.books-start ul { margin: .4rem 0; padding-inline-start: 1.2rem; line-height: 1.9; }
.books-owed { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; margin-bottom: 1rem; }
.books-legend { display: flex; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.books-legend .sw { width: .8rem; height: .8rem; border-radius: 3px; display: inline-block; margin-inline-start: .6rem; }
.sw-in, .bar-in i { background: var(--moss); }
.sw-out, .bar-out i { background: var(--honey); }
.books-months { list-style: none; margin: 0 0 1rem; padding: 0; }
.books-months li { display: grid; grid-template-columns: 4.8rem 1fr; align-items: center; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
.books-month { font-size: .9rem; color: var(--muted); }
.books-bars { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.books-months .books-bar { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); }
.books-months .books-bar i { display: block; height: 10px; width: max(4px, calc(var(--w) * .7)); border-radius: 0 4px 4px 0; flex: none; }
.books-cats { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.books-cats ul { list-style: none; margin: 0; padding: 0; }
.books-cats li { display: flex; gap: .5rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.books-cats li span { flex: 1; }
.books-cats li em { font-style: normal; color: var(--muted); font-size: .82rem; min-width: 2.6rem; text-align: end; }
.books-list { list-style: none; margin: 0; padding: 0; }
.books-row a { display: flex; gap: .8rem; align-items: center; padding: .65rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.books-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.books-row-main small { color: var(--muted); font-size: .82rem; }
.books-row-amount { text-align: end; font-weight: 700; white-space: nowrap; display: flex; flex-direction: column; gap: .1rem; }
.books-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.books-table th, .books-table td { padding: .5rem .45rem; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.books-table thead th { color: var(--muted); font-weight: 500; font-size: .84rem; }
.books-table small { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; }
.books-table tr.is-inactive { opacity: .7; }
.books-pays { list-style: none; padding: 0; margin: .4rem 0 1rem; }
.books-pays li { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.books-pays small { color: var(--muted); }
.books-pays form { margin-inline-start: auto; }
.books-payform { padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 1rem; }
.books-delete { margin-top: 1.5rem; }
.books-kind { margin-top: .8rem; }
.books-form .field-radioselect ul, .books-form .field-radioselect > div { display: flex; flex-wrap: wrap; gap: .3rem 1rem; list-style: none; padding: 0; margin: 0; }
.books-form .field[hidden] { display: none; }

.books-card { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.books-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.books-card-head h2 { margin: 0; font-size: 1.05rem; }
.books-card-head h2 a { color: var(--ink); text-decoration: none; }
.books-card-head > a { font-size: .9rem; white-space: nowrap; }
.books-card-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .7rem 0 .2rem; }
.books-card-nums div { display: flex; flex-direction: column; }
.books-card-nums span { color: var(--muted); font-size: .82rem; }
.books-card-nums b { font-size: 1.05rem; overflow-wrap: anywhere; }
.books-card-owed { margin: .3rem 0 0; font-size: .9rem; }
.books-card-empty { color: var(--muted); margin: .5rem 0; font-size: .93rem; }
.books-card-actions { display: flex; gap: .5rem; margin-top: .6rem; }
/* BEGIN hive events (v17): actions under the visit buttons, the hive timeline */
.hive-do { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .2rem; }
.hive-ended { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; }
.timeline { list-style: none; margin: .4rem 0 .6rem; padding: 0; border-inline-start: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 5.4rem 1fr auto; align-items: baseline; gap: .2rem .6rem; padding: .45rem 0; padding-inline-start: .9rem; border-bottom: 1px dashed var(--line); }
.timeline li form { font-size: .85rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -6px; top: .9rem; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--muted); }
.timeline li.tl-good::before { border-color: var(--moss, #3f7a4f); background: var(--good-bg, #e6f2e8); }
.timeline li.tl-bad::before { border-color: var(--danger); background: var(--surface); }
.timeline li.tl-out::before { border-color: var(--honey-deep); }
.timeline li.tl-visit::before { border-color: var(--line); }
.timeline .tl-date { color: var(--muted); font-size: .82rem; }
.timeline .tl-text { min-width: 0; overflow-wrap: anywhere; }
.timeline li.empty { display: block; color: var(--muted); border: 0; }
.timeline li.empty::before { display: none; }
/* END hive events */
/* BEGIN stock (v17): the store tables */
.stock-table { width: 100%; border-collapse: collapse; margin: .3rem 0 .8rem; font-size: .93rem; }
.stock-table th, .stock-table td { padding: .45rem .35rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.stock-table thead th { color: var(--muted); font-weight: 600; font-size: .82rem; }
.stock-table tbody th { font-weight: 600; }
.stock-table tr.is-low td:first-of-type { color: var(--danger); }
.stock-table input { width: 100%; max-width: 7rem; }
.stock-alerts { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .4rem; }
.stock-alerts li { margin: 0; }
.badge { display: inline-block; padding: 0 .4rem; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.badge-warn { background: var(--warn-bg, #fdf0d5); color: var(--warn-ink, #8a5a00); }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: flex-end; }
.inline-form label { display: grid; gap: .15rem; font-size: .85rem; }
.input-short { width: 5rem; }
/* END stock */
/* BEGIN report (v17) */
.report-hive { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; margin: .6rem 0; background: var(--surface); break-inside: avoid; }
.report-hive h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.report-hive h4 { margin: 0 0 .2rem; font-size: .85rem; color: var(--muted); }
.report-hive ul { margin: 0; padding-inline-start: 1.1rem; font-size: .92rem; }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 420px) { .report-cols { grid-template-columns: 1fr; gap: .4rem; } }
@media print {
  .no-print, .site-header, .tabbar, footer, .books-nav { display: none !important; }
  .report-hive { border-color: #999; }
}
/* END report */
/* BEGIN lines (v17) */
.pedigree-sides { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .pedigree-sides { grid-template-columns: 1fr; } }
.pedigree-sides h3 { margin: .2rem 0 .4rem; font-size: .95rem; }
.line-genetic { margin: .6rem 0 0; line-height: 1.9; }
.line-genetic small { color: var(--muted); }
.gen-good, .gen-bad, .gen-mid { padding: 0 .35rem; border-radius: var(--radius); white-space: nowrap; }
.gen-good { background: var(--good-bg); color: var(--moss); }
.gen-bad { background: var(--bad-bg); color: var(--danger); }
.gen-mid { background: var(--paper); color: var(--muted); }
.ped-node { font-size: .93rem; }
.ped-parents { margin: .25rem 0 .1rem; padding-inline-start: .8rem; border-inline-start: 2px solid var(--line); display: grid; gap: .2rem; }
.stock-table caption { text-align: start; font-weight: 700; padding: .3rem 0; }
/* END lines */
/* knowledge links (apiary/knowledge.py) and search */
.refs { margin: .3rem 0 0; font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .15rem .4rem; align-items: baseline; }
.refs a small { font-size: .72rem; background: var(--note-bg); border-radius: 4px; padding: 0 .3rem; margin-inline-end: .1rem; color: var(--muted); }
.advice li .refs { grid-column: 2; }
.hive-ended .refs { flex-basis: 100%; }
.loss-help { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; margin: .8rem 0; background: var(--surface); }
.loss-help h3 { margin: 0 0 .3rem; font-size: 1rem; }
.loss-help ul { list-style: none; margin: 0; padding: 0; }
.loss-help li { padding: .4rem 0; border-top: 1px solid var(--line); }
.loss-help li:first-child { border-top: 0; }
.search-results .private { font-size: .75rem; color: var(--muted); }
/* END knowledge */
/* plant photos */
.photo-credits { display: grid; gap: .1rem; font-size: .78rem; }
.plant-photo-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .9rem; }
.plant-figure figcaption a { color: inherit; text-decoration: underline; }
/* END plant photos */
/* plant confidence */
.confidence { margin: .2rem 0 .6rem; padding: .45rem .7rem; border-radius: 10px; font-size: .88rem; background: var(--note-bg); }
.confidence span { color: var(--muted); }
.confidence-high { border-inline-start: 4px solid var(--moss); }
.confidence-medium { border-inline-start: 4px solid var(--honey); }
.confidence-low { border-inline-start: 4px solid var(--danger); }
/* END plant confidence */
/* apiary page: four buttons, three of them open a short menu (details[data-drop], site.js) */
.apiary-actions { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .4rem 0 .6rem; }
@media (min-width: 600px) { .apiary-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.apiary-actions > .btn, .drop > summary { width: 100%; justify-content: center; min-height: 2.6rem; }
.drop > summary { list-style: none; cursor: pointer; user-select: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after { content: "▾"; margin-inline-start: .4rem; font-size: .8em; transition: transform .2s; }
.drop[open] > summary { border-color: var(--honey); color: var(--honey-deep); }
.drop[open] > summary::after { transform: rotate(180deg); }
.drop-pop { position: absolute; inset-inline: 0; top: calc(100% + .4rem); z-index: 40; display: grid; padding: .3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .28); }
.drop-pop a { display: grid; gap: .1rem; padding: .6rem .75rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.drop-pop a + a { border-top: 1px solid var(--line); }
.drop-pop a small { color: var(--muted); font-weight: 400; font-size: .8rem; line-height: 1.5; }
.drop-pop a:focus-visible, .drop-pop a:active { background: var(--note-bg); }
@media (hover: hover) { .drop-pop a:hover { background: var(--note-bg); } }
/* tabs that join the pages of one of those groups (apiary/templatetags/apiary_nav.py) */
.page-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .8rem; }
.page-tabs a { flex: none; white-space: nowrap; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem;
  color: var(--ink); text-decoration: none; }
.page-tabs a.is-active { background: var(--honey); border-color: var(--honey); color: var(--on-honey); font-weight: 700; }
/* END apiary actions */
/* books and store: the top tabs look like one segmented bar, the page's own sections stay below the heading */
.page-tabs[aria-label="حساب و انبار"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: .2rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 1rem; }
.page-tabs[aria-label="حساب و انبار"] a { border: 0; text-align: center; padding: .4rem .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-start { margin: 1rem 0; color: var(--muted); }
.hub-more { margin: .8rem 0 0; }
.hub-more a { font-weight: 700; }
.start-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin: .5rem 0 1rem; background: var(--surface); }
.start-card h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.badge-expert { background: var(--moss); color: #fff; }
.reviewed { display: flex; align-items: flex-start; gap: .4rem; margin: .2rem 0 .8rem; padding: .45rem .7rem;
  border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; color: var(--muted); }
.reviewed svg { color: var(--moss); flex: none; margin-top: .3rem; }
.menu-note { margin: .2rem 0 .6rem; padding: .45rem .7rem; border-radius: 10px; background: var(--good-bg); color: var(--ink); font-size: .88rem; }

/* v19.7 «میز همکار»: staged reports of a partner's test queens */
.desk-facts li.is-due { background: var(--honey-soft); border-color: var(--honey); font-weight: 700; }
.desk-facts li.is-late { background: var(--bad-bg); color: var(--danger); border-color: transparent; font-weight: 700; }
.desk-queen { padding: .8rem 1rem; margin: .8rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.desk-queen h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.stage-dots { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .25rem; margin: 0 0 .6rem; padding: 0; }
.stage-dots li { display: grid; gap: .1rem; padding-top: .45rem; border-top: 5px solid var(--line); font-size: .78rem; line-height: 1.35; min-width: 0; }
.stage-dots li span { overflow-wrap: anywhere; }
.stage-dots small { color: var(--muted); font-size: .72rem; }
.stage-dots .is-done { border-color: var(--moss); }
.stage-dots .is-due, .stage-dots .is-soon { border-color: var(--honey); }
.stage-dots .is-due span { font-weight: 700; }
.stage-dots .is-late { border-color: var(--danger); }
.stage-dots .is-late small { color: var(--danger); font-weight: 700; }
.stage-dots .is-skip { border-top-style: dashed; color: var(--muted); }
.desk-next { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: 0; }
.desk-next.is-late .note { color: var(--danger); }
.partner-steps .is-due .job-dot, .partner-steps .is-soon .job-dot { background: var(--honey); border-color: var(--honey); box-shadow: 0 0 0 4px var(--honey-soft); }
.partner-steps .is-late .job-dot { background: var(--danger); border-color: var(--danger); }
.partner-steps .is-skip strong, .partner-steps .is-future strong { color: var(--muted); font-weight: 500; }
.partner-steps .note { display: block; }
.badge.state-done { background: var(--good-bg); color: var(--moss); }
.badge.state-late { background: var(--bad-bg); color: var(--danger); }
.badge.state-skip, .badge.state-future { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.report-card { margin: .4rem 0; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.report-card .meta { margin: 0; }
.report-facts { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0 0; }
.report-facts span { padding: .05rem .6rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.report-form .field-radioselect > div.score10 { display: grid; grid-template-columns: repeat(5, minmax(0, 3.4rem)); gap: .35rem; }
.report-form .field-radioselect > div.score10 label { justify-content: center; padding: .35rem .2rem !important; font-size: 1.05rem; }
.desk-help { margin-top: 1.4rem; }
.desk-compare th, .desk-compare td { white-space: normal; padding: .45rem .4rem; }
.desk-compare .badge { display: inline-block; margin-top: .15rem; }
.line-partners { margin: .8rem 0; padding: .6rem .9rem; border-radius: var(--radius); background: var(--good-bg); }
.line-partners p { margin: 0; }
@media (max-width: 480px) { .stage-dots small { display: none; } .stage-dots li { font-size: .7rem; } }
/* BEGIN guests (v19.8): invitations, slogans, shop trust, bottom bar */
.m-join { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .8rem; border-radius: 20px; background: var(--honey); color: var(--on-honey); font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none; }
.m-join:hover { background: var(--honey-hover); color: var(--on-honey); }
.m-actions .m-login + .m-join { margin-inline-start: .25rem; }
@media (max-width: 480px) { .m-actions .m-login { padding: 0 .6rem; font-size: .85rem; } .m-join { padding: 0 .6rem; font-size: .84rem; } body:not([data-user]) .back span { display: none; } }
@media (max-width: 340px) { body:not([data-user]) .m-icon { width: 38px; } }
.guest-nudge { display: flex; gap: .6rem; align-items: flex-start; margin: 1.2rem 0; padding: .8rem 1rem; border-radius: var(--radius); background: var(--note-bg); color: var(--ink); line-height: 1.9; }
.guest-nudge svg { flex: none; margin-top: .3rem; color: var(--honey-deep); }
.guest-nudge p { margin: 0; }
.guest-nudge a { font-weight: 700; white-space: nowrap; }
.guest-card { margin: 1.6rem 0; padding: 1.1rem 1.1rem 1.2rem; border-radius: 10px; background: var(--moss); color: #fff; display: flex; flex-direction: column; gap: .5rem; }
.guest-card p { margin: 0; }
.guest-slogan { font-size: .9rem; font-weight: 700; color: var(--honey-soft); }
.guest-title { font-size: 1.15rem; font-weight: 800; }
.guest-text { line-height: 1.9; color: #e3f1e5; }
.guest-btn { align-self: stretch; text-align: center; justify-content: center; background: var(--honey); border-color: var(--honey); color: var(--on-honey); font-weight: 700; margin-top: .3rem; }
.guest-btn:hover { background: var(--honey-hover); border-color: var(--honey-hover); color: var(--on-honey); }
@media (min-width: 760px) { .guest-card .guest-btn { align-self: flex-start; padding-inline: 1.6rem; } }
.hero-slogan { margin: .2rem 0 .8rem; padding-inline-start: .7rem; border-inline-start: 3px solid var(--honey); font-weight: 800; color: var(--honey-deep); }
.auth-slogan { margin: -.4rem 0 1rem; font-weight: 700; color: var(--honey-deep); }
.footer-slogan { margin: 0 0 .4rem; font-weight: 800; color: var(--honey-deep); }
.menu-join { margin: .8rem 0 .4rem; padding: 1rem; border-radius: 10px; background: var(--note-bg); display: flex; flex-direction: column; gap: .5rem; }
.menu-join p { margin: 0; line-height: 1.8; }
.menu-join .guest-slogan { color: var(--honey-deep); }
.menu-join .btn { align-self: flex-start; }
.shop-trust { list-style: none; margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: .5rem; font-size: .93rem; line-height: 1.8; }
.shop-trust li { display: flex; gap: .5rem; align-items: flex-start; }
.shop-trust svg { flex: none; margin-top: .25rem; color: var(--moss); }
.guest-bar { position: fixed; z-index: 58; inset-inline: .6rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .6rem .9rem; border-radius: 10px; background: #1e2b22; color: #fff; box-shadow: 0 6px 20px rgba(var(--shadow-rgb), .25); }
.guest-bar[hidden] { display: none; }
.guest-bar p { margin: 0; flex: 1; font-size: .88rem; line-height: 1.7; }
.guest-bar .guest-btn { align-self: center; margin: 0; white-space: nowrap; }
.guest-bar-close { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: #fff; cursor: pointer; }
@media (min-width: 820px) { .guest-bar { bottom: 1rem; inset-inline: auto 1rem; max-width: 30rem; } }
html.in-app-bar .guest-bar { bottom: calc(12px + env(safe-area-inset-bottom)); }
@media print { .guest-bar, .guest-card, .guest-nudge { display: none !important; } }
/* END guests */
@media (max-width: 480px) { .m-join-x { display: none; } }
/* BEGIN region plants (v19.9): «گیاهان منطقه من» */
.region-card { margin: 1.4rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.region-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.region-card-head h2 { margin: 0; font-size: 1.1rem; }
.region-card-head h2 a { color: var(--ink); text-decoration: none; }
.region-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }
.region-rows { list-style: none; margin: .6rem 0 0; padding: 0; }
.region-rows li { display: flex; align-items: center; gap: .6rem; border-bottom: 1px solid var(--line); }
.region-rows li:last-child { border-bottom: 0; }
.region-rows li > a { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; padding: .65rem 0; color: var(--ink); text-decoration: none; }
.region-rows small { color: var(--muted); font-size: .82rem; }
.rbar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.rbar i { height: 8px; border-radius: 2px; background: var(--line); }
.rbar-own i.on { background: var(--honey); }
.rbar-county i.on { background: var(--moss); }
.rbar-zone i.on, .rbar-general i.on { background: var(--input-border); }
.region-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.rbar-key { display: inline-block; width: 18px; height: 8px; border-radius: 2px; }
.rbar-key.rbar-own { background: var(--honey); }
.rbar-key.rbar-county { background: var(--moss); }
.rbar-key.rbar-zone { background: var(--input-border); }
.region-found { list-style: none; margin: .6rem 0; padding: 0; }
.region-found li > a { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.region-found li > a small { color: var(--muted); flex: 1; min-width: 0; }
.region-found li > a .btn { margin-inline-start: auto; }
.region-cta { margin: .8rem 0 1.2rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--note-bg); }
.region-cta .note { margin: .4rem 0 0; }
.seg-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.seg-links a { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; }
.seg-links a.is-active { background: var(--moss); border-color: var(--moss); color: #fff; }
.report-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .6rem 0; }
.report-compare > div { padding: .6rem .7rem; border-radius: var(--radius); background: var(--paper); display: flex; flex-direction: column; }
.report-compare > div.is-new { background: var(--note-bg); }
.report-compare small { color: var(--muted); font-size: .78rem; }
.report-photo { max-width: 100%; max-height: 260px; border-radius: 8px; }
.report-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* END region plants */
/* v20: «+ منطقه من» under each plant (three densities), region rows with edit / delete */
.chips.bloom li.is-mine { background: var(--honey-soft); }
.mine-tag { font-size: .74rem; font-weight: 700; color: var(--honey-deep); }
.mine-box { margin: .5rem 0 0; }
.mine-box summary { list-style: none; cursor: pointer; }
.mine-box summary::-webkit-details-marker { display: none; }
.mine-add, .mine-on { display: inline-flex; align-items: center; min-height: 38px; padding: 0 .9rem; border-radius: 99px; font-weight: 700; font-size: .88rem; text-decoration: none; }
.mine-add { border: 1px solid var(--moss); color: var(--moss); background: var(--surface); }
.mine-on { background: var(--good-bg); color: var(--moss); }
.mine-box small { color: var(--muted); }
.mine-density { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .5rem; }
.mine-density span { width: 100%; font-size: .85rem; color: var(--muted); }
.mine-density button { font: inherit; font-size: .88rem; font-weight: 700; min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); cursor: pointer; }
.mine-density button:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.region-rows li { align-items: flex-start; padding: .55rem 0; flex-wrap: wrap; }
.region-row-main { flex: 1 1 200px; min-width: 0; display: grid; gap: .3rem; }
.region-row-main a { color: var(--ink); text-decoration: none; }
.region-row-actions { display: flex; gap: .3rem; align-items: center; }
.region-remove { margin-top: 1rem; }
/* v20: search as you type */
.suggest-wrap { position: relative; display: block; flex: 1 1 12rem; min-width: 0; }
.suggest-wrap > input { width: 100% !important; box-sizing: border-box; }
.suggest-box { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 90; max-height: min(60vh, 420px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(var(--shadow-rgb), .18); padding: .3rem 0; text-align: start; }
.suggest-box[hidden] { display: none; }
.suggest-head { margin: .4rem .9rem .1rem; font-size: .75rem; font-weight: 700; color: var(--honey-deep); }
.suggest-box a { display: flex; flex-direction: column; padding: .5rem .9rem; color: var(--ink); text-decoration: none; min-height: 44px; justify-content: center; }
.suggest-box a small { color: var(--muted); font-size: .78rem; }
.suggest-box a:hover, .suggest-box a.is-active { background: var(--honey-soft); }
.suggest-none { margin: .5rem .9rem; font-size: .85rem; color: var(--muted); }
.bale-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; padding: .8rem 1rem; border-radius: 10px; background: var(--good-bg); line-height: 1.8; }
.bale-strip .btn { margin-inline-start: auto; }
.filters .suggest-wrap { flex: 1 1 100%; }
/* v20: the data bank of provinces and counties */
.bank-section { margin: 1.4rem 0; }
.bank-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bank-table th, .bank-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.bank-table th { font-size: .8rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.bank-table tr.bank-who td { border-bottom: 1px solid var(--line); padding-top: 0; color: var(--muted); }
.bank-change { color: var(--honey-deep); font-weight: 700; }
.bank-provinces { list-style: none; padding: 0; margin: .6rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .4rem; }
.bank-provinces a { display: block; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.bank-helpers { padding-inline-start: 1.4rem; }
.compare-card { margin: 1.2rem 0; padding: 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.compare-card h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.compare-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.compare-rows > div { padding: .6rem .7rem; border-radius: var(--radius); background: var(--paper); }
.compare-rows strong { display: block; font-size: 1.15rem; }
.compare-rows small { color: var(--muted); }
.share-box { margin: 1rem 0; padding: .8rem 1rem; border-radius: 10px; background: var(--good-bg); line-height: 1.9; }
@media print { .bank-report .guest-card, .site-header, .tabbar, .site-footer, .no-print { display: none !important; } .bank-table { font-size: 10pt; } }
/* v20: nectar calendar, migration ideas, spray alerts */
.nectar-cal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; align-items: end; height: 120px; margin: .6rem 0 .2rem; }
.nc-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.nc-bar { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--line); min-height: 3px; }
.nc-strong .nc-bar, .nc-key.nc-strong { background: var(--honey); }
.nc-medium .nc-bar, .nc-key.nc-medium { background: var(--honey-soft); border: 1px solid var(--honey); box-sizing: border-box; }
.nc-weak .nc-bar, .nc-key.nc-weak { background: var(--input-border); }
.nc-col small { font-size: .62rem; color: var(--muted); white-space: nowrap; }
.nc-key { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; }
.migration-ideas { margin: .8rem 0; padding: .8rem 1rem; border-radius: 10px; background: var(--note-bg); }
.migration-ideas ul { margin: .3rem 0; padding-inline-start: 1.2rem; }
.spray-alert { border-inline-start: 0; }
.did-you-mean { font-size: 1.05rem; font-weight: 700; }

/* v20.1 The apiary page in four tabs: کندوها | امروز | گیاهان و گل‌ها | گزارش و حساب */
.apiary-tabs { margin: 1rem 0 0; }
.apiary-tab-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.apiary-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 56px; padding: .35rem .2rem; border-radius: 9px; color: var(--muted); font-size: .86rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none !important; }
.apiary-tab:hover { color: var(--ink); background: var(--paper); }
.apiary-tab[aria-selected="true"] { background: var(--honey-soft); color: var(--ink); box-shadow: inset 0 -3px 0 var(--honey); }
.apiary-tab:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 1px; }
.apiary-tab-icon { font-size: 1.15rem; line-height: 1; }
.apiary-tab-n { display: inline-block; min-width: 1.4em; padding: 0 .3em; border-radius: 99px; background: var(--paper); color: var(--muted); font-size: .76rem; font-weight: 700; }
.apiary-tab-warn { background: var(--danger); color: var(--on-ink); }
.apiary-panel { padding-top: .4rem; }
.apiary-panel[hidden] { display: none; }
.apiary-panel > .sub:first-child, .apiary-panel > section:first-child, .apiary-panel > .kpis:first-child { margin-top: .6rem; }
.apiary-tab-links { font-size: .9rem; margin: .6rem 0 0; }
.todo-group { display: block; color: var(--muted); }
.todo-group a { color: inherit; }
@media (min-width: 560px) { .apiary-tab { flex-direction: row; gap: .4rem; font-size: .95rem; } }
@media (max-width: 360px) { .apiary-tab { font-size: .8rem; } }

/* v20.1 «گیاهان منطقه من» closed until opened; the site's own plants for the area with «دارم» / «ندارم» */
details.region-card { padding: 0; }
details.region-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .6rem; padding: .9rem 1rem; min-height: 56px; }
details.region-card > summary::-webkit-details-marker { display: none; }
.region-card-title { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.region-card-count { color: var(--muted); font-size: .86rem; flex: 1 1 auto; }
.region-card-toggle::after { content: "باز کن ▾"; color: var(--moss); font-weight: 700; font-size: .86rem; white-space: nowrap; }
details.region-card[open] .region-card-toggle::after { content: "ببند ▴"; }
details.region-card[open] > summary { border-bottom: 1px solid var(--line); }
.region-card-body { padding: .2rem 1rem 1rem; }
.region-card-body h3 { font-size: .98rem; margin: 1rem 0 .2rem; }
.region-card-body h3 small { color: var(--muted); font-weight: 400; }
.area-rows .region-row-actions { flex-wrap: wrap; }
.have-box > summary { list-style: none; }
.have-box > summary::-webkit-details-marker { display: none; }
.have-box[open] { flex-basis: 100%; }
.have-box[open] > summary { background: var(--moss); border-color: var(--moss); color: #fff; }
.area-rows li:has(.have-box[open]) .region-row-actions { flex-basis: 100%; }
.hidden-plants { margin: 1rem 0 0; font-size: .9rem; }
.hidden-plants > summary { cursor: pointer; color: var(--muted); }
.hidden-plants .chips { margin-top: .5rem; }
.hidden-plants .chips li { display: inline-flex; align-items: center; gap: .4rem; }
.hidden-plants .link-button { font-size: .85rem; font-weight: 700; }
.month-links { flex-wrap: wrap; }

/* v20.1 The plant archive as a list too («کارتی | فهرستی», kept in a cookie) */
.view-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 1rem 0 0; }
.view-switch { display: inline-flex; padding: .2rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.view-switch a { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: 0 .9rem; border-radius: 99px; color: var(--muted); font-size: .88rem; font-weight: 700; text-decoration: none !important; }
.view-switch a.is-active { background: var(--honey-soft); color: var(--ink); }
.plant-rows { list-style: none; margin: .6rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.plant-row { padding: .6rem .9rem; border-bottom: 1px solid var(--line); }
.plant-row:last-child { border-bottom: 0; }
.plant-row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.plant-row-main > a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.plant-row-when { margin-inline-start: auto; color: var(--muted); font-size: .84rem; }
.plant-row-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin-top: .3rem; color: var(--muted); font-size: .84rem; }
.plant-row-sub .mine-box { margin: 0 auto 0 0; }
.plant-row-sub .mine-box[open] { flex-basis: 100%; margin: 0; }
.plant-row-sub .mine-add, .plant-row-sub .mine-on { min-height: 34px; padding: 0 .75rem; font-size: .84rem; }
.value-dots { display: inline-flex; align-items: center; gap: .3rem; }
.value-dots b { display: inline-flex; gap: 2px; }
.value-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--honey); background: transparent; }
.value-dots i.on { background: var(--honey); }
.plant-row { display: flex; gap: .7rem; align-items: flex-start; }
.plant-row-body { flex: 1; min-width: 0; }
.plant-row-pic { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--honey-soft); display: flex; align-items: center; justify-content: center; text-decoration: none !important; }
.plant-row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plant-row-pic span { font-size: 1.5rem; font-weight: 800; color: var(--honey-deep); }

/* v20.2 A plant page with sections: a short table of contents and «تجربه زنبوردارها» */
.page-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 .4rem; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.page-toc a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 .8rem; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none !important; }
.page-toc a:hover { background: var(--honey-soft); }
[id="about"], [id="identify"], [id="bloom"], [id="honey"], [id="quality"], [id="migration"], #notes { scroll-margin-top: 76px; }
.plant-notes { margin-top: 1.6rem; }
.plant-note { padding: .7rem .9rem; margin: .6rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.plant-note p { margin: .2rem 0; }
.plant-note-form { display: grid; gap: .5rem; margin-top: .8rem; }
.plant-note-form label { font-weight: 700; }
.plant-note-form textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--input-border); border-radius: 8px; background: var(--surface); color: var(--ink); }
.plant-note-form .btn { justify-self: start; }

/* v20.3 «نمونه سوالات زنبورداری» */
.quiz-topics { margin: .8rem 0; }
.quiz-topics .chip small { color: inherit; opacity: .75; margin-inline-start: .35rem; }
.quiz-bar { position: sticky; top: 60px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem 0; background: var(--paper); }
.quiz-score { font-weight: 800; color: var(--honey-deep); }
.quiz-list { list-style: none; counter-reset: q; margin: .6rem 0; padding: 0; }
.quiz-q { counter-increment: q; margin: .8rem 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.quiz-q.is-right { border-color: var(--moss); }
.quiz-q.is-wrong { border-color: var(--danger); }
.quiz-topic { margin: 0; font-size: .78rem; color: var(--muted); }
.quiz-text { margin: .25rem 0 .6rem; line-height: 1.9; }
.quiz-text strong::before { content: counter(q, persian) ". "; color: var(--honey-deep); }
.quiz-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.quiz-opt { width: 100%; text-align: start; font: inherit; font-size: .95rem; line-height: 1.7; min-height: 44px; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
.quiz-opt:hover:not(:disabled) { border-color: var(--honey); }
.quiz-opt:disabled { cursor: default; opacity: 1; }
.quiz-opt.is-right { background: var(--good-bg); border-color: var(--moss); font-weight: 700; }
.quiz-opt.is-right::after { content: " ✓"; color: var(--moss); }
.quiz-opt.is-wrong { background: var(--bad-bg); border-color: var(--danger); }
.quiz-opt.is-wrong::after { content: " ✗"; color: var(--danger); }
.quiz-ans { margin-top: .6rem; font-size: .92rem; }
.quiz-ans summary { cursor: pointer; color: var(--muted); }
.quiz-ans p { margin: .35rem 0; line-height: 1.9; }
.quiz-result { margin: 1rem 0; padding: 1.2rem; text-align: center; border: 2px solid var(--honey); border-radius: 14px; background: var(--honey-soft); }
.quiz-result-num { font-size: 1.4rem; font-weight: 900; margin: 0 0 .3rem; }
.hub-quiz { margin-top: .7rem; }
.quiz-topics .chip.is-active { background: var(--moss); border-color: var(--moss); color: var(--on-ink); }

/* v20.5 Plant guide pages (شهدزا، گرده‌زا، استان‌ها، ماه‌ها) */
.landing-intro p { line-height: 2; }
.month-bars { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .45rem; }
.month-bars li { display: grid; grid-template-columns: 4.6rem 1fr 2.2rem; align-items: center; gap: .1rem .5rem; }
.month-bars-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.month-bars-bar { height: 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.month-bars-bar i { display: block; height: 100%; background: var(--honey); }
.month-bars-n { font-size: .85rem; color: var(--muted); text-align: end; }
.month-bars small { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; padding-inline-start: 4.7rem; }
.landing-faq { margin: .4rem 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.landing-faq summary { cursor: pointer; font-weight: 700; }
.landing-faq p { margin: .5rem 0 0; line-height: 1.9; }
.landing-links details { margin: .5rem 0; }
.landing-links summary { cursor: pointer; font-weight: 700; }
.landing-links .chip.is-active, .plant-guides .chip.is-active { background: var(--moss); border-color: var(--moss); color: var(--on-ink); }
.plant-guides { margin: .8rem 0 0; }

/* v20.5 Public pages about «زنبورستان من» */
.feature-cta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.feature-row { display: grid; gap: .8rem; margin: 1.6rem 0; align-items: center; }
.feature-row h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.feature-row p { line-height: 2; margin: 0; }
.feature-shot { margin: 0; justify-self: center; max-width: 300px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 24px rgba(var(--shadow-rgb), .12); background: var(--surface); }
.feature-shot img { display: block; width: 100%; height: auto; }
@media (min-width: 760px) { .feature-row { grid-template-columns: 1fr 300px; gap: 2rem; } .feature-row:nth-of-type(even) .feature-text { order: 2; } }
.feature-points { line-height: 2; }
.home-benefits-more { grid-column: 1 / -1; margin: .4rem 0 0; font-size: .9rem; text-align: center; }
.partner-line { margin: .8rem 0; padding: .7rem .9rem; border: 1px dashed var(--honey); border-radius: 10px; background: var(--honey-soft); font-size: .92rem; line-height: 1.9; }
.partner-card { margin: 1.2rem 0; padding: .9rem 1rem; border: 1px solid var(--honey); border-radius: 12px; background: var(--honey-soft); }
.partner-card p { margin: .3rem 0 .6rem; line-height: 1.9; font-size: .92rem; }

/* v20.7: sign-up with the mobile number — three short steps */
.join-steps { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .8rem; font-size: .8rem; color: var(--muted); }
.join-steps li { flex: 1; text-align: center; padding: .25rem 0; border-bottom: 3px solid var(--line); }
.join-steps li.is-now { color: var(--ink); font-weight: 700; border-color: var(--honey); }
.join-lead { margin: 0 0 .8rem; }
.join .form input[name="phone"], .join .form input[name="code"] { font-size: 1.35rem; letter-spacing: .08em; text-align: center; }
.bus-fare { border-inline-start: 3px solid var(--honey); padding-inline-start: .6rem; }
.call-me { margin: .8rem 0; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; }
.call-me summary { cursor: pointer; font-weight: 700; }
.call-form label { display: block; margin: .4rem 0; }
.call-form input[name="name"], .call-form input[name="phone"] { width: 100%; }
.call-form .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }

/* v20.8: the quick visit — a voice note, three questions answered with pictures, the rest under «بیشتر» */
.inspect-form .pic-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .3rem; }
.inspect-form .pic-choices.pic-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .inspect-form .pic-choices.pic-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field .pic-choices > .pic-option { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .3rem;
  padding: .5rem .3rem .55rem; border: 2px solid var(--input-border); border-radius: 14px; background: var(--surface); cursor: pointer;
  text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.4; -webkit-tap-highlight-color: transparent; user-select: none; }
.field .pic-choices > .pic-option img { width: 4.6rem; height: 4.6rem; pointer-events: none; }
.field .pic-choices > .pic-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.field .pic-choices > .pic-option:has(input:checked) { border-color: var(--honey); background: var(--honey-soft); box-shadow: inset 0 0 0 2px var(--honey); }
.field .pic-choices > .pic-option:has(input:checked)::after { content: "✓"; position: absolute; top: .3rem; inset-inline-start: .35rem; width: 1.5rem; height: 1.5rem;
  border-radius: 50%; background: var(--honey); color: var(--on-honey); font-size: .95rem; line-height: 1.5rem; }
.field .pic-choices > .pic-option:has(input:focus-visible) { outline: 3px solid var(--moss); outline-offset: 2px; }
.field .pic-choices > .pic-option.pic-skip { grid-column: 1 / -1; flex-direction: row; justify-content: center; min-height: 2.8rem; padding: .3rem .8rem;
  border-style: dashed; border-width: 1.5px; color: var(--muted); font-weight: 500; }
.field .pic-choices > .pic-option.pic-skip:has(input:checked) { background: var(--surface); box-shadow: none; border-color: var(--input-border); }
.field .pic-choices > .pic-option.pic-skip:has(input:checked)::after { content: none; }
.inspect-form.is-quick .field-pictureradio > label { font-size: 1.08rem; font-weight: 800; }
.inspect-form.is-quick .field-filefield .voice-rec, .inspect-form.is-quick .field-clearablefile .voice-rec {
  width: 100%; min-height: 3.6rem; font-size: 1.15rem; font-weight: 800; }
html.glove .field .pic-choices > .pic-option img { width: 5.4rem; height: 5.4rem; }
.form-more { margin: 1rem 0 .4rem; padding: .3rem .8rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-more > summary { cursor: pointer; padding: .5rem 0; font-weight: 700; color: var(--honey-deep); }
.form-more[open] > summary { margin-bottom: .2rem; border-bottom: 1px solid var(--line); }
.form-more .form-section { position: static; }

/* v20.8: «بازدید گروهی: همه خوب بودند» */
.btn-allgood { background: #2e8b4e; border-color: #2e8b4e; color: #fff; }
.btn-allgood:hover { background: #256f3e; border-color: #256f3e; color: #fff; }
.group-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.group-hives { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .45rem; }
.group-hives li { display: flex; align-items: center; gap: .5rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.group-hive { flex: 1; display: flex; align-items: center; gap: .6rem; min-height: 3.2rem; cursor: pointer; font-weight: 700; }
.group-hive input { width: 1.7rem; height: 1.7rem; flex: none; accent-color: #2e8b4e; }
.group-hive img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.group-hives li:has(input:not(:checked)) { opacity: .6; }
.group-problem { font-size: .88rem; white-space: nowrap; }

/* v20.8: a photo for each hive */
.hive-photo { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .5rem 0 .8rem; }
.hive-photo img { width: 240px; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.hive-photo-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hive-photo-pick { position: relative; overflow: hidden; cursor: pointer; }
.hive-photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hive-photo-form.is-auto .hive-photo-send { display: none; }
.hive-photo-form.is-sending { opacity: .6; pointer-events: none; }
.hive-thumb { position: relative; display: inline-block; width: 60px; height: 60px; }
.hive-thumb img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; border: 2px solid var(--honey); }
.hive-thumb b { position: absolute; bottom: -4px; inset-inline-end: -4px; min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: 99px;
  background: var(--honey); color: var(--on-honey); font-size: .85rem; line-height: 1.6rem; text-align: center; }

/* v20.8: «امروز وقت بازدید هست؟» green, yellow or red */
.visit-light-slot:empty { display: none; }
.visit-light { margin: .6rem 0 .9rem; padding: .6rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  border-inline-start-width: 6px; }
.visit-light p { margin: 0; }
.vl-q { font-size: .82rem; color: var(--muted); }
.vl-main { display: flex; align-items: center; gap: .5rem; font-size: 1.08rem; margin: .1rem 0 .2rem !important; }
.vl-why { font-size: .92rem; line-height: 1.8; }
.vl-next { font-size: .85rem; color: var(--muted); margin-top: .25rem !important; display: flex; align-items: center; gap: .35rem; }
.vl-dot { display: inline-block; width: 1.15rem; height: 1.15rem; border-radius: 50%; flex: none; background: #999; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.vl-dot-sm { width: .75rem; height: .75rem; box-shadow: none; }
.vl-green { border-inline-start-color: #2e9d4f; } .vl-green .vl-dot, .vl-dot.vl-green { background: #2e9d4f; }
.vl-yellow { border-inline-start-color: #e0a100; } .vl-yellow .vl-dot, .vl-dot.vl-yellow { background: #e0a100; }
.vl-red { border-inline-start-color: #c8372d; } .vl-red .vl-dot, .vl-dot.vl-red { background: #c8372d; }
.weather-box .visit-light { margin-top: 0; }
.vl-next .vl-dot.vl-green { background: #2e9d4f; } .vl-next .vl-dot.vl-yellow { background: #e0a100; } .vl-next .vl-dot.vl-red { background: #c8372d; }

/* v20.9: «راهنمای معرفی ملکه به کندو» */
.guide-steps { list-style: none; counter-reset: step; margin: 1rem 0; padding: 0; display: grid; gap: .7rem; }
.guide-steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: .7rem; align-items: start;
  padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.guide-icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--honey-soft); font-size: 1.5rem; }
.guide-steps strong::before { content: counter(step, persian) ". "; color: var(--honey-deep); }
.guide-steps p { margin: .25rem 0 0; line-height: 1.95; }
.guide-note { margin: 1rem 0; padding: .7rem .9rem; border-inline-start: 4px solid var(--moss); background: var(--good-bg); border-radius: 10px; }
.guide-note p { margin: .2rem 0; line-height: 1.9; }
.queen-guide-link { margin: .5rem 0; font-size: .95rem; }

/* v20.10: «حالت ساده» — four big doors on the home page and in the bottom bar */
.tabbar-simple a, .tabbar-simple button { font-size: .82rem; font-weight: 700; color: var(--ink); padding: .5rem 0 .4rem; }
.tabbar-simple svg { color: var(--honey-deep); }
.menu-simple { margin: 0 0 .8rem; padding: .6rem .8rem; border: 1px dashed var(--honey); border-radius: 10px; background: var(--honey-soft); }
.menu-simple p { margin: 0 0 .4rem; font-size: .9rem; }
.simple-home { max-width: 40rem; margin: 0 auto; }
.simple-hello { font-size: 1.35rem; margin: .8rem 0 .4rem; }
.simple-welcome { margin: 0 0 .6rem; color: var(--moss); font-weight: 700; }
.simple-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: .8rem 0 1rem; }
.simple-door { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 9rem;
  padding: .8rem .5rem; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink);
  text-align: center; text-decoration: none; box-shadow: 0 4px 12px rgba(var(--shadow-rgb), .06); }
.simple-door:hover, .simple-door:focus-visible { border-color: var(--honey); text-decoration: none; }
.simple-door strong { font-size: 1.15rem; }
.simple-door small { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.door-icon { font-size: 2.6rem; line-height: 1; }
.door-today { border-color: var(--honey); background: var(--honey-soft); }
.simple-today { margin: .4rem 0 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.simple-today h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.simple-today ul { list-style: none; margin: 0; padding: 0; }
.simple-today li { padding: .45rem 0; border-top: 1px solid var(--line); line-height: 1.8; }
.simple-today li:first-child { border-top: 0; }
.simple-today a { color: var(--ink); text-decoration: none; }
.simple-start { text-align: center; margin: 1rem 0; }
.simple-news p { margin: .3rem 0; }
.simple-all { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.4rem 0 .6rem; }

/* v20.10: «زنبورستان نمونه» for guests */
.demo-hives { display: grid; gap: .4rem; margin: .8rem 0 1rem; }
.demo-hive { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.demo-hive small { display: block; color: var(--muted); font-size: .85rem; }
.demo-result { margin: .8rem 0 1.2rem; padding: .8rem 1rem; border: 2px solid var(--honey); border-radius: 14px; background: var(--honey-soft); }
.demo-result h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.demo-tips { list-style: none; margin: .5rem 0; padding: 0; }
.demo-tips li { padding: .4rem 0; border-top: 1px solid rgba(0, 0, 0, .06); line-height: 1.9; }
.demo-tips li:first-child { border-top: 0; }
.demo-tips small { display: block; color: var(--muted); }
.demo-join { margin-top: .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.demo-join p { flex-basis: 100%; margin: 0 0 .2rem; }
.home-demo { grid-column: 1 / -1; text-align: center; margin: .4rem 0 0; }

/* v20.10: «کدام ملکه برای من؟» */
.inspect-form .pic-choices.pic-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pic-emoji { font-size: 2.8rem; line-height: 1.2; }
.wq-result { margin: .8rem 0 1.2rem; padding: .8rem 1rem; border: 2px solid var(--honey); border-radius: 14px; background: var(--honey-soft); }
.wq-result h2 { font-size: 1.1rem; margin: 0 0 .4rem; }
.wq-more { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 .4rem; }
.wq-form .field-pictureradio > label { font-size: 1.05rem; font-weight: 800; }

/* v20.10: a picture beside a diagnosis sign (Wikimedia Commons or the owner's own) */
.sign.has-photo { align-items: center; }
.sign-photo { width: 80px; height: 80px; flex: none; margin-inline-start: auto; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.sign-credit { display: block; font-size: .72rem; color: var(--muted); }

/* v20.11: partner tiers and «سهم تو در اصلاح نژاد» */
.tier-box { margin: .8rem 0 1rem; padding: .7rem .9rem; border: 1px solid var(--honey); border-radius: 12px; background: var(--honey-soft); }
.tier-box p { margin: .2rem 0; line-height: 1.9; }
.tier-box progress { width: 100%; height: .9rem; accent-color: var(--honey-deep); }
.tier-3 { border-color: #b8860b; background: linear-gradient(135deg, var(--honey-soft), #fff3c4); }
.tier-name strong { font-size: 1.05rem; }
.season-facts { list-style: none; padding: 0; margin: .8rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .5rem; }
.season-facts li { display: flex; flex-direction: column; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.season-facts strong { font-size: 1.6rem; color: var(--honey-deep); }
.season-facts span { font-size: .85rem; color: var(--muted); text-align: center; }
.season-thanks { color: var(--moss); font-weight: 700; }

/* v20.12: family members and workers in the same apiary */
.recorder-badge { font-size: .75rem; padding: 0 .5rem; border-radius: 99px; background: var(--good-bg); color: var(--moss); white-space: nowrap; }
.team-strip, .simple-team { margin: .4rem 0 .8rem; padding: .5rem .8rem; border: 1px solid var(--moss); border-radius: 12px; background: var(--good-bg); line-height: 1.9; }
.team-strip a, .simple-team a { font-weight: 700; color: var(--moss); }
.team-line { margin: .2rem 0 .6rem; }
.team-list { list-style: none; padding: 0; margin: .8rem 0; }
.team-member { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.team-member-text { line-height: 1.9; min-width: 0; }
.team-member-text small { display: block; color: var(--muted); }
.team-add { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.team-add .sub { margin-top: 0; }
.team-can { list-style: none; padding: 0; margin: .4rem 0 1rem; line-height: 2; }
.team-allgood { margin: .6rem 0 1rem; }
.team-allgood .btn { width: 100%; justify-content: center; }
.team-todo { list-style: none; margin: 0 0 1rem; padding: .3rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.team-todo li { padding: .5rem 0; border-top: 1px solid var(--line); line-height: 1.8; }
.team-todo li:first-child { border-top: 0; }
.team-todo a { color: var(--ink); text-decoration: none; }
.team-hives { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.team-hive { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; min-height: 4rem; }
.team-hive:hover, .team-hive:focus-visible { border-color: var(--honey); }
.team-hive .hive-thumb, .team-hive .hive-thumb img { width: 52px; height: 52px; }
.team-hive-text { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; min-width: 0; }
.team-hive-text strong { font-size: 1.05rem; }
.team-hive-text small { flex-basis: 100%; color: var(--muted); }
.team-recent { list-style: none; padding: 0; margin: 0 0 1rem; }
.team-recent > li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.team-recent p { margin: 0; line-height: 1.9; }
.team-mine { display: flex; gap: .8rem; align-items: center; }
.team-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: 1.2rem 0 .4rem; }

/* v20.13: «▶️ ببین چطور», a short silent video of how a part of the site is used */
.help-video { margin: .6rem 0 .9rem; border: 1px solid var(--honey); border-radius: 12px; background: var(--honey-soft); }
.help-video summary { cursor: pointer; padding: .55rem .8rem; font-weight: 700; color: var(--honey-deep); list-style: none; }
.help-video summary::-webkit-details-marker { display: none; }
.help-video summary small { font-weight: 400; color: var(--muted); }
.help-video video { display: block; width: auto; max-width: 100%; max-height: 72vh; aspect-ratio: 9 / 16; margin: 0 auto .7rem; border-radius: 10px; background: #000; }
.help-videos { display: grid; gap: .4rem; margin-bottom: 1rem; }

/* v20.14: «مداآپیس چه کارهایی برایت می‌کند؟» (rows kept in the admin) */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.feature-list li > a, .feature-list li > div { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.feature-list li > a:hover, .feature-list li > a:focus-visible { border-color: var(--honey); }
.feature-ic { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; font-size: 1.35rem; border-radius: 12px; background: var(--honey-soft); }
.feature-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.7; }
.feature-text span { color: var(--muted); font-size: .9rem; }
.home-features.is-folded { margin: 1rem 0; border: 1px solid var(--line); border-radius: 14px; padding: .2rem .8rem .6rem; background: var(--surface); }
.home-features.is-folded summary { cursor: pointer; padding: .55rem 0; font-weight: 700; }

/* v20.14: «هواشناسی زنبوردار» */
.weathermap .zone-links button.chip { font: inherit; cursor: pointer; }
.iran-map path.w-green { fill: #5aa86b; } .iran-map path.w-yellow { fill: #e8c14a; } .iran-map path.w-red { fill: #d0573f; } .iran-map path.w-none { fill: var(--map-0); }
.iran-map path.t0 { fill: #3b5ba9; } .iran-map path.t1 { fill: #6f9fd8; } .iran-map path.t2 { fill: #b9d7ef; } .iran-map path.t3 { fill: #f3e2a1; } .iran-map path.t4 { fill: #eea05a; } .iran-map path.t5 { fill: #d0573f; }
.iran-map path.k0 { fill: #e7efe4; } .iran-map path.k1 { fill: #b5d1ad; } .iran-map path.k2 { fill: #7aa86f; } .iran-map path.k3 { fill: #3f6f3a; }
.iran-map path.r0 { fill: #f2efe6; } .iran-map path.r1 { fill: #cfe3f2; } .iran-map path.r2 { fill: #8dbde3; } .iran-map path.r3 { fill: #4f8cc9; } .iran-map path.r4 { fill: #2a5d9c; }
.weather-legend { display: flex; flex-wrap: wrap; gap: .3rem .8rem; justify-content: center; margin: .4rem 0; font-size: .85rem; color: var(--muted); }
.weather-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.weather-legend i { display: inline-block; width: 1rem; height: 1rem; border-radius: 4px; border: 1px solid var(--line); }
.weather-legend i.w-green { background: #5aa86b; } .weather-legend i.w-yellow { background: #e8c14a; } .weather-legend i.w-red { background: #d0573f; }
.weather-legend i.t0 { background: #3b5ba9; } .weather-legend i.t1 { background: #6f9fd8; } .weather-legend i.t2 { background: #b9d7ef; } .weather-legend i.t3 { background: #f3e2a1; } .weather-legend i.t4 { background: #eea05a; } .weather-legend i.t5 { background: #d0573f; }
.weather-legend i.k0 { background: #e7efe4; } .weather-legend i.k1 { background: #b5d1ad; } .weather-legend i.k2 { background: #7aa86f; } .weather-legend i.k3 { background: #3f6f3a; }
.weather-legend i.r0 { background: #f2efe6; } .weather-legend i.r1 { background: #cfe3f2; } .weather-legend i.r2 { background: #8dbde3; } .weather-legend i.r3 { background: #4f8cc9; } .weather-legend i.r4 { background: #2a5d9c; }
.weather-apiary { margin: .4rem 0; border: 1px solid var(--line); border-radius: 14px; padding: .2rem .8rem; background: var(--surface); }
.weather-apiary summary { cursor: pointer; padding: .5rem 0; font-weight: 700; }
.weather-alert-list { list-style: none; padding: 0; margin: 0 0 1rem; line-height: 2; }
#weathermap-panel ul { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
#weathermap-panel li { padding: .35rem 0; border-top: 1px solid var(--line); }
.feature-text span { font-weight: 400; }
.weathermap .zone-links { flex-wrap: wrap; overflow: visible; }

/* the offline line stays one row: the title shortens, the count and the button never move */
.offline-box{flex-wrap:nowrap;min-height:1.9rem}
.offline-text{display:flex;align-items:baseline;gap:.3rem;min-width:0}
.offline-text strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.offline-text span{flex:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.offline-box .link-button{flex:none}

/* v20.15: several models, «مطمئن نیست», and «الان اینجا باران / برف / باد شدید است» */
.wd-unsure { font-size: .72rem; font-weight: 700; color: #8a5a00; background: #fff1cc; border-radius: 999px; padding: .05rem .45rem; }
html[data-theme="dark"] .wd-unsure { color: #f3d27a; background: #3a2f12; }
.weather-days li.is-unsure { border-style: dashed; }
.wx-unsure, .vl-unsure { margin: .35rem 0; font-size: .88rem; color: #6b4a00; }
html[data-theme="dark"] .wx-unsure, html[data-theme="dark"] .vl-unsure { color: #f3d27a; }
.visit-light .vl-unsure { margin-top: .3rem; }
.wx-models { margin: .4rem 0; font-size: .88rem; }
.wx-models summary { cursor: pointer; color: var(--muted); }
.wx-models ul { margin: .3rem 0; padding-inline-start: 1.1rem; line-height: 1.9; }
.wx-near { margin: .45rem 0; padding: .5rem .7rem; border-radius: 10px; background: #e8f1f8; font-size: .9rem; }
html[data-theme="dark"] .wx-near { background: #1d2a36; }
.wx-report-card { margin: .6rem 0 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.wx-report-q { margin: 0 0 .5rem; line-height: 1.8; }
.wx-where { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; font-size: .9rem; }
.wx-where select { flex: 1; min-width: 0; }
.wx-report-buttons { display: grid; grid-template-columns: 1fr; gap: .4rem; }
@media (min-width: 560px) { .wx-report-buttons { grid-template-columns: repeat(3, 1fr); } }
.wx-btn { justify-content: center; font-weight: 700; }
.wx-btn-rain { background: #e3eefb; border-color: #8dbde3; color: #1f4f80; }
.wx-btn-snow { background: #eef3f8; border-color: #b9c9d9; color: #34506b; }
.wx-btn-wind { background: #eef4ea; border-color: #9fbf94; color: #30552a; }
html[data-theme="dark"] .wx-btn-rain, html[data-theme="dark"] .wx-btn-snow, html[data-theme="dark"] .wx-btn-wind { background: var(--surface); color: var(--ink); }
.wx-report-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .5rem 0; }
.wx-report-row .chip { font: inherit; cursor: pointer; }
.wx-report-label { font-weight: 700; font-size: .9rem; }
.wx-report-status { margin: .35rem 0 0; min-height: 1.2em; }
.wx-report-row .wx-report-status { flex-basis: 100%; margin: 0; }
.wx-report.is-sent .wx-report-status { color: var(--moss); }
.wx-now-list { list-style: none; padding: 0; margin: .4rem 0 1rem; }
.wx-now-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .4rem .2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wx-now-list small { color: var(--muted); }
.wx-sources { margin: .3rem 0; padding-inline-start: 1.1rem; line-height: 1.9; font-size: .9rem; }
.wx-status ul { margin: .3rem 0; padding-inline-start: 1.1rem; }
.iran-map path.u0 { fill: #b9d7b0; } .iran-map path.u1 { fill: #f0b54a; }
.weather-legend i.u0 { background: #b9d7b0; } .weather-legend i.u1 { background: #f0b54a; }
.iran-map .wxr { cursor: pointer; }
.iran-map .wxr circle { fill: #fff; stroke: #4f8cc9; stroke-width: 3; }
.iran-map .wxr-snow circle { stroke: #7f95ab; }
.iran-map .wxr-wind circle { stroke: #5f8f54; }
.iran-map .wxr-ic { font-size: 20px; }
.iran-map .wxr-n { font-size: 15px; font-weight: 700; fill: #fff; paint-order: stroke; stroke: #1f4f80; stroke-width: 4px; }
.wx-unsure-line { color: #6b4a00; }
html[data-theme="dark"] .wx-unsure-line { color: #f3d27a; }

/* v20.15.1: after «الان اینجا …» the buttons fold into one line with «پس بگیر» and «هوا عوض شد؟» */
.wx-report-card.is-done { padding: .55rem .9rem; }
.wx-done { margin: 0 0 .3rem; line-height: 1.9; }
.wx-done-actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.wx-done-actions form, .wx-undo-inline { display: inline; margin: 0; }
.wx-again { margin-top: .3rem; }
.wx-again summary { cursor: pointer; color: var(--honey-deep); font-size: .9rem; display: inline-block; padding: .2rem 0; }
.wx-again[open] summary { margin-bottom: .4rem; }
.wx-report-wrap { margin: .5rem 0; }
.wx-report-wrap .wx-report-row { margin: .3rem 0; }
.wx-report-wrap .wx-report-status { margin: 0; }
.wx-report-wrap.is-done .wx-done { font-size: .9rem; }
.wx-done-actions .link-button, .wx-undo-inline .link-button { font-size: .9rem; font-weight: 400; padding: .2rem 0; }

/* v20.92: «نسخه تازه اپ» card in the middle of the screen (inside older apps only) */
.app-update-veil { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; background: rgba(var(--shadow-rgb), .55); }
.app-update-veil[hidden] { display: none; }
.app-update-card { width: 100%; max-width: 360px; background: var(--surface); color: var(--ink); border-radius: 18px;
  padding: 1.3rem 1.2rem 1.1rem; text-align: center; box-shadow: 0 18px 50px rgba(var(--shadow-rgb), .35); }
.app-update-card h2 { font-size: 1.15rem; margin: .2rem 0 .5rem; }
.app-update-card p { margin: .35rem 0; }
.app-update-icon { font-size: 2.2rem; margin: 0; }
.app-update-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .9rem; }
.app-update-actions .btn { width: 100%; justify-content: center; }
html.has-app-update { overflow: hidden; }
