.qr-hover-wrap {
  position: relative;
  display: inline-block;
}
.qr-hover-code {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.92);
  color: #6d4200;
  font-size: 1.1em;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(74,52,40,0.10);
  pointer-events: none;
  z-index: 2;
}
.qr-hover-wrap:hover .qr-hover-code {
  display: block;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
  color: #342315;
  background:
    url("data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b97900' stroke-opacity='0.11' stroke-width='1.2'%3E%3Cpath d='M24 2 48 16 48 44 24 58 0 44 0 16Z'/%3E%3Cpath d='M72 2 96 16 96 44 72 58 48 44 48 16Z'/%3E%3Cpath d='M48 44 72 58 72 86 48 100 24 86 24 58Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #fffaf0, #fff1c7 48%, #fff9ed);
  background-position:
    0 0,
    0 0;
  background-size:
    96px 84px,
    auto;
  background-attachment: fixed;
}
body.auth-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

body.auth-body > .auth-card {
  margin: auto;
}

body.auth-body::before,
body.auth-body::after {
  content: none;
}

body.auth-body .site-footer {
  width: 100%;
  margin-top: 28px;
  background: transparent;
}

body.auth-body .site-footer__inner {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  width: min(920px, calc(100% - 32px));
  padding: 16px 0;
}

body.auth-body .site-footer__notice {
  display: none;
}
img, svg {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.16;
  text-wrap: balance;
  overflow-wrap: anywhere;
  font-optical-sizing: auto;
}

.site-footer {
  margin-top: clamp(28px, 5vw, 56px);
  border-top: 0;
  background: transparent;
  color: #5f5143;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.4fr) auto;
  gap: 18px;
  align-items: start;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.site-footer__brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-footer__mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff3cf;
  color: #8a5600;
  overflow: hidden;
}

.site-footer__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer strong {
  display: block;
  color: #3b291a;
  font-size: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.site-footer__notice {
  display: grid;
  gap: 6px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(138, 86, 0, 0.14);
  border-radius: 999px;
  background: #fffaf0;
  color: #6d4200;
  font-size: 12px;
  font-weight: 900;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  border-color: rgba(138, 86, 0, 0.32);
  background: #fff3cf;
  outline: none;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(720px, calc(100% - 36px));
  border: 1px solid rgba(74, 52, 40, 0.14);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.98);
  color: #3b291a;
  box-shadow: 0 18px 44px rgba(74, 52, 40, 0.22);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__content {
  display: grid;
  gap: 5px;
}

.cookie-consent__content strong {
  font-size: 16px;
}

.cookie-consent__content p {
  margin: 0;
  color: #5f5143;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-consent__actions .button,
.cookie-consent__actions .submit {
  width: auto;
  min-height: 40px;
  margin-top: 0;
  padding: 9px 13px;
  white-space: nowrap;
}

.legal-page {
  max-width: 900px;
}

.legal-panel {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
}

.legal-panel h1,
.legal-panel h2,
.legal-panel p {
  margin: 0;
}

.legal-panel h1 {
  color: #3b291a;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}

.legal-panel h2 {
  margin-top: 10px;
  color: #4a3428;
  font-size: 18px;
}

.legal-panel p {
  color: #5f5143;
  line-height: 1.75;
}

@media (max-width: 820px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  body.auth-body .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .cookie-consent__actions,
  .cookie-consent__actions .button,
  .cookie-consent__actions .submit {
    width: 100%;
  }
}

button,
input,
textarea,
select {
  font: inherit;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}
.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffce3a, #e49100);
}
.auth-card {
  width: min(420px, 100%);
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 24px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 55px rgba(85, 55, 20, 0.14);
}
.auth-header {
  margin-bottom: 28px;
}
.auth-intro {
  margin-top: 18px;
}
.auth-intro h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #4a3428;
}
.auth-intro p {
  margin: 0;
  color: #776554;
  font-size: 14px;
  line-height: 1.6;
}
.login-form {
  display: grid;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}
.form-group label i {
  color: #d98900;
}
.form-group input {
  padding: 12px 14px;
  font-size: 14px;
  transition: all 180ms ease;
}
.form-group input:focus {
  border-color: #d98900;
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgba(217, 137, 0, 0.1);
  outline: none;
}
.submit-btn {
  margin-top: 8px !important;
  transition: all 180ms ease;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 137, 0, 0.3);
}
.submit-btn:active {
  transform: translateY(0);
}
.error {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff0e8;
  color: #8a2d10;
  font-weight: 700;
  font-size: 14px;
}
.error i {
  flex-shrink: 0;
}
.auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(74, 52, 40, 0.08);
  text-align: center;
}
.auth-footer small {
  color: #776554;
  font-size: 12px;
}
.auth-footer a {
  color: #d98900;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}
.auth-footer a:hover {
  color: #c77800;
}
.password-hint {
  display: block;
  color: #776554;
  font-size: 12px;
  margin-top: -6px;
}
label {
  display: block;
  margin: 14px 0 6px;
  color: #4a3428;
  font-weight: 800;
}
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(74, 52, 40, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: #342315;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6b21a, #d98900);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: all 180ms ease;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 137, 0, 0.3);
}
.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 60px;
}
.topbar,
.brand,
.actions,
.button,
.card-link {
  display: flex;
  align-items: center;
}
.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.brand {
  gap: 12px;
  font-size: 28px;
}
.actions {
  gap: 10px;
  flex-wrap: wrap;
}
.button {
  gap: 8px;
  justify-content: center;
  width: auto;
  min-height: 42px;
  margin-top: 0;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #4a3428;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 52, 40, 0.1);
  border-color: #d98900;
}
.actions form {
  margin: 0;
}
.hero {
  margin-bottom: 22px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 28px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 55px rgba(85, 55, 20, 0.14);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.jar-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.progress-info {
  width: 100%;
  max-width: 320px;
}
.progress-header h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #4a3428;
}
.progress-bar {
  height: 8px;
  background: rgba(217, 137, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f6b21a, #d98900);
  border-radius: 4px;
  transition: width 0.3s ease;
}
.progress-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-label {
  font-size: 14px;
  color: #776554;
  font-weight: 600;
}
.detail-value {
  font-size: 14px;
  color: #4a3428;
  font-weight: 700;
}
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(74, 52, 40, 0.08);
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #d98900;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: #776554;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.quick-actions {
  margin-bottom: 32px;
}
.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.action-form {
  margin: 0;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #4a3428;
  text-decoration: none;
  transition: all 180ms ease;
  cursor: pointer;
}
.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 52, 40, 0.12);
  border-color: #d98900;
}
.action-btn.primary {
  background: linear-gradient(135deg, #f6b21a, #d98900);
  color: #fff;
  border-color: #d98900;
}
.action-btn.primary:hover {
  box-shadow: 0 8px 20px rgba(217, 137, 0, 0.3);
}
.action-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.action-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}
.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(217, 137, 0, 0.1);
  color: #d98900;
  flex-shrink: 0;
}
.action-btn.primary .action-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.action-content {
  flex: 1;
  min-width: 0;
}
.action-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.action-points {
  font-size: 12px;
  color: #776554;
  font-weight: 600;
}
.action-btn.primary .action-points {
  color: rgba(255, 255, 255, 0.9);
}
.earn-section {
  margin-bottom: 32px;
}
.earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.earn-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(74, 52, 40, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 180ms ease;
}
.earn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(74, 52, 40, 0.1);
  border-color: rgba(217, 137, 0, 0.2);
}
.earn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(217, 137, 0, 0.1), rgba(217, 137, 0, 0.05));
  color: #d98900;
  font-size: 24px;
}
.earn-content h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #4a3428;
}
.earn-content p {
  margin: 0;
  font-size: 14px;
  color: #776554;
  line-height: 1.5;
}
.earn-points {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #d98900;
  margin-top: auto;
}
.timeline-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    order: -1;
  }
  .timeline-section {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .stats,
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .action-buttons {
    grid-template-columns: 1fr;
  }
  .earn-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats,
  .grid {
    grid-template-columns: 1fr;
  }
  .quick-stats {
    grid-template-columns: 1fr;
  }
  .hero-content {
    gap: 24px;
  }
  .jar-container {
    gap: 20px;
  }
  .progress-info {
    max-width: 280px;
  }
}
h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.18;
}

h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
}

.hero p,
p {
  max-width: 760px;
  margin: 0;
  color: #776554;
  line-height: 1.65;
}
.stats,
.grid {
  display: grid;
  gap: 14px;
}
.stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}
.stat,
.module {
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 32px rgba(85, 55, 20, 0.1);
}
.stat {
  gap: 12px;
  padding: 18px;
}
.stat i {
  color: #d98900;
  font-size: 24px;
}
.stat small {
  display: block;
  color: #776554;
  font-weight: 700;
}
.stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}
.grid {
  grid-template-columns: repeat(2, 1fr);
}
.module {
  display: grid;
  gap: 12px;
  padding: 20px;
}
.module h2 {
  margin: 0;
  font-size: 22px;
}
.module p {
  margin: 0;
}
.card-link {
  gap: 8px;
  width: fit-content;
  color: #6d4200;
  font-weight: 800;
}
@media (max-width: 860px) {
  .stats,
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats,
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 34px;
  }
}

/* Shared component styles for the rest of the site */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
select {
  min-height: 42px;
  border: 1px solid rgba(74, 52, 40, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font: inherit;
}
form {
  margin: 0;
}
input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(74, 52, 40, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: #342315;
  font: inherit;
}
input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 4px;
  accent-color: #138a45;
}

.field input[type="checkbox"] {
  margin-inline: 6px;
  vertical-align: middle;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 14px;
  padding: 12px 13px;
  background: #fff;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a3428;
  text-decoration: none;
  font-weight: 700;
}
.buttons,
.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f6b21a, #d98900);
  color: #fff;
  border: none;
  cursor: not-allowed;
  font-weight: 700;
}
.hint {
  margin: 0 0 14px;
  color: #776554;
  line-height: 1.6;
}
.lead {
  margin: 0 0 18px;
  color: #776554;
}
.summary {
  margin: 0 0 18px;
  color: #776554;
  line-height: 1.75;
}
.done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 18px;
  padding: 14px 18px;
  background: #e9f7df;
  color: #356a20;
  font-weight: 700;
}
.drop-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #4a3428;
}
.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f6b21a, #d98900);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.code {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff3cf;
  color: #6d4200;
  font-weight: 800;
  font-size: 14px;
}
.badge-card {
  border-radius: 18px;
  padding: 14px;
  background: #fff8e4;
}
.card-meta {
  display: flex;
  gap: 8px;
  color: #776554;
  font-size: 14px;
}
.meta-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.group-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #fff3cf;
  color: #8a5600;
  font-size: 26px;
}
.event {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}
.side {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
}
.list {
  display: grid;
  gap: 12px;
}
.item {
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}
.section-card {
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 24px;
  padding: 18px;
  background: #fff;
}
.section-title {
  margin: 0 0 16px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sections {
  display: grid;
  gap: 20px;
}
.body {
  margin-top: 18px;
  color: #4a3428;
  line-height: 1.75;
}
.field {
  display: grid;
  gap: 7px;
}

.file-control {
  display: grid;
  gap: 8px;
}

.file-control__current {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 12px;
  background: #fffaf0;
}

.file-control__label {
  color: #6d5a47;
  font-size: 13px;
  font-weight: 900;
}

.file-control__current a {
  min-width: 0;
  overflow: hidden;
  color: #8a5600;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-control__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #6d5a47;
  font-size: 13px;
  font-weight: 900;
}

.file-control__picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(138, 86, 0, 0.18);
  border-radius: 999px;
  background: #fff3cf;
  color: #6d4200;
  font-weight: 900;
  cursor: pointer;
}

.file-control__picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.file-control__picker:focus-within,
.file-control__picker:hover {
  border-color: rgba(138, 86, 0, 0.34);
  background: #ffe8a6;
}

.form-panel {
  max-width: 760px;
  margin: 0 auto;
}
.form-panel h1 {
  margin: 0 0 14px;
}
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.form-actions .submit,
.form-actions .button {
  margin-top: 0;
}
.stacked-form {
  margin-top: 16px;
}
.danger-link {
  border-color: rgba(138, 45, 16, 0.22);
  background: #fff0e8;
  color: #8a2d10;
}
.danger-submit {
  background: linear-gradient(135deg, #c94f2d, #8a2d10);
}
#map {
  min-height: 560px;
  border: 1px solid rgba(74, 52, 40, 0.16);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.progress-side {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffce3a, #e49100);
  box-shadow: 0 20px 55px rgba(85, 55, 20, 0.14);
  color: #3d2a16;
  font-size: 24px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #776554;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.intro {
  padding: 30px;
}
.falling-drop {
  position: absolute;
  top: -20px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(246, 178, 26, 0.95);
  filter: blur(0.5px);
  animation: float-drop 2.4s ease-in-out infinite alternate;
}
@keyframes float-drop {
  to { transform: translateY(10px); }
}
.milestone-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(74, 52, 40, 0.15);
}
.milestone-line span {
  position: absolute;
  left: 100%;
  margin-left: 8px;
  font-size: 12px;
  color: #4a3428;
}
.m-100 {
  top: 100px;
}
.m-250 {
  top: 250px;
}
.m-500 {
  top: 500px;
}
.next-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  color: #776554;
  font-size: 14px;
}
.activity-list {
  display: grid;
  gap: 12px;
}
.points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8e4, #fff0bd);
  color: #8a5600;
  font-size: 24px;
  font-weight: 800;
}
.metric {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 9px;
  background: #fff;
  color: #776554;
  font-size: 13px;
  font-weight: 700;
}
.batch-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 24px;
  padding: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: 180ms ease;
}
.batch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(74, 52, 40, 0.12);
}
.jar-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 118px;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px 24px 34px 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0 35%, #f6b21a 36% 100%);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.65), 0 18px 30px rgba(85, 55, 20, 0.14);
  color: #6d4200;
  font-size: 34px;
}
.jar-label {
  color: #776554;
  font-weight: 700;
}
.season {
  margin-bottom: 20px;
}
.hive-card {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 218, 0.92));
  color: inherit;
  text-decoration: none;
  transition: 180ms ease;
  overflow: hidden;
}
.hive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(74, 52, 40, 0.12);
}
.hive-visual {
  position: relative;
  min-height: 170px;
}
.hive-roof {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 20px;
  height: 18px;
  border-radius: 12px 12px 0 0;
  background: #d98900;
}
.hive-status-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff3cf;
  color: #8a5600;
  box-shadow: 0 10px 25px rgba(74, 52, 40, 0.08);
}
.hive-body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 36px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff8e4, #fff0bd);
}
.hive-box {
  height: 12px;
  border-radius: 999px;
  background: #d98900;
}
.hive-box:nth-child(1) {
  width: 100%;
}
.hive-box:nth-child(2) {
  width: 90%;
}
.hive-box:nth-child(3) {
  width: 70%;
}
.hive-entrance {
  height: 20px;
  width: 60px;
  border-radius: 999px;
  background: #4a3428;
  margin: 0 auto;
}
.hive-stand {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 16px;
  border-radius: 10px;
  background: #8a5600;
}
.hive-info {
  display: grid;
  gap: 10px;
}


.panel {
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 55px rgba(85, 55, 20, 0.14);
}
.layout {
  display: grid;
  gap: 24px;
}
.layout-cols-2 {
  grid-template-columns: 1fr 360px;
}
.layout-cols-2-wide {
  grid-template-columns: 1.1fr 0.9fr;
}
.layout-cols-2-equal {
  grid-template-columns: 1fr 1fr;
}
.layout-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.layout-cols-1 {
  grid-template-columns: 1fr;
}
.hero {
  display: grid;
  gap: 20px;
  align-items: start;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 28px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 55px rgba(85, 55, 20, 0.14);
}
.hero-2col {
  grid-template-columns: 1fr auto;
}
.grid {
  display: grid;
  gap: 14px;
}
.metrics {
  display: grid;
  gap: 8px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-1 {
  grid-template-columns: 1fr;
}
.card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 24px;
  padding: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: 180ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(74, 52, 40, 0.12);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #6d4200;
  font-weight: 800;
}
.hero p,
p {
  max-width: 780px;
  margin: 0;
  color: #776554;
  line-height: 1.65;
}
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 0;
  margin-top: 0;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff3cf;
  color: #6d4200;
  font-size: 13px;
  font-weight: 800;
}
.meta {
  display: flex;
  gap: 8px;
  color: #776554;
  font-size: 14px;
}
.empty {
  border: 1px dashed rgba(74, 52, 40, 0.25);
  border-radius: 22px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.68);
  color: #776554;
  font-weight: 700;
}
.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}
.timeline-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #fff3cf;
  color: #8a5600;
}
.qr,
.qr-box {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed rgba(74, 52, 40, 0.35);
  border-radius: 24px;
  background: #fff;
  color: #4a3428;
  text-align: center;
}
.qr-box {
  width: 150px;
  height: 150px;
  font-size: 54px;
}
.visual {
  min-height: 140px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff8e4, #fff0bd);
  color: #8a5600;
  font-size: 46px;
}
.price {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  color: #356a20;
  font-weight: 800;
}
.layout-cols-3 .panel,
.layout-cols-2 .panel,
.layout-cols-2-wide .panel,
.layout-cols-2-equal .panel {
  align-self: start;
}
.saved-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  max-height: 520px;
  margin-top: 28px;
  border-top: 1px solid rgba(74, 52, 40, 0.13);
  padding-top: 22px;
  padding-right: 4px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.saved-list h2 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}
.saved-location {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  align-content: start;
}
.saved-location strong,
.saved-location small {
  margin: 0;
}
.saved-location strong {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.35;
}
.saved-location small {
  color: #6b5b4d;
  font-size: 12px;
  line-height: 1.45;
}
.saved-location .compact-actions {
  margin-top: 4px;
  gap: 8px;
}
.saved-location .button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 13px;
}
.task-list,
.bloom-list,
.earn-grid {
  display: grid;
  gap: 10px;
}
.task,
.bloom,
.activity-item,
.reward-row,
.summary-card,
.earn-card {
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 20px;
  padding: 16px;
  background: #fff;
}
.task,
.bloom,
.activity-item,
.reward-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.icon,
.earn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff3cf;
  color: #8a5600;
}
.bloom strong,
.task strong,
.activity-item strong,
.summary-card strong,
.earn-card strong,
.reward-row h3 {
  margin: 0;
  display: block;
}
.bloom p,
.task p,
.activity-item span,
.summary-card small,
.earn-card small,
.reward-row p {
  margin: 0;
  color: #776554;
  line-height: 1.55;
}
.months {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff3cf;
  color: #6d4200;
  font-size: 13px;
  font-weight: 800;
}
.pill {
  padding: 9px 12px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  background: #fff;
  color: #776554;
}
.jar-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px;
  overflow: hidden;
}
.jar-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}
.jar {
  position: relative;
  width: 230px;
  height: 330px;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.9);
  border-radius: 40px;
  background: linear-gradient(180deg, #fff0c9 0%, #fff9eb 100%);
}
.honey-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, #ffd764, #ef9a00);
  transition: height 300ms ease;
}
.progress-bar {
  width: 100%;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(122, 74, 0, 0.28);
  background: #6d4200;
  box-shadow: inset 0 2px 5px rgba(40, 24, 0, 0.28);
  overflow: hidden;
  margin: 18px 0;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, #ffe36d 0%, #f6b21a 42%, #d98900 100%);
  box-shadow: 0 0 16px rgba(246, 178, 26, 0.42);
  width: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.status.unlocked {
  color: #356a20;
}
.status.current {
  color: #d98900;
}
.reward-points,
.activity-item span {
  gap: 8px;
}
.reward-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.activity-item {
  justify-content: space-between;
  gap: 12px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(54, 92, 23, 0.95);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.toast.show {
  opacity: 1;
}

.page-rewards .rewards-hero__content {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.page-rewards .rewards-summary .stat-item {
  background: rgba(255, 255, 255, 0.78);
}

.page-rewards .rewards-jar {
  width: 100%;
}

.page-rewards .rewards-jar-stage {
  isolation: isolate;
  min-height: 450px;
}

.page-rewards .jar {
  box-shadow: inset 0 0 0 2px rgba(74, 52, 40, 0.14), inset 0 0 26px rgba(255, 255, 255, 0.58), 0 24px 46px rgba(85, 55, 20, 0.22);
}

.page-rewards .rewards-meter-jar {
  z-index: 2;
  overflow: hidden;
  border: 8px solid #7a4a00;
  border-top-width: 12px;
  border-radius: 34px 34px 58px 58px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.78) 0 10%, transparent 11% 100%),
    linear-gradient(180deg, #fff9ea, #fff0bd);
}

.page-rewards .rewards-meter-jar::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: -14px;
  z-index: 3;
  height: 28px;
  border: 6px solid #7a4a00;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #ffe39a, #b86c00);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45);
}

.page-rewards .honey-fill {
  overflow: visible;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 245, 140, 0.95) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 48%, rgba(255, 238, 111, 0.75) 0 4px, transparent 5px),
    linear-gradient(180deg, #ffd12e 0%, #f6a300 48%, #bf6800 100%);
  animation: honey-glow 4s ease-in-out infinite;
}

.honey-wave {
  position: absolute;
  left: -28%;
  right: -28%;
  top: -16px;
  height: 34px;
  border-radius: 50%;
  opacity: 0.72;
}

.honey-wave--front {
  background: rgba(255, 243, 118, 0.95);
  animation: honey-wave-front 3.4s ease-in-out infinite;
}

.honey-wave--back {
  top: -10px;
  background: rgba(180, 92, 0, 0.42);
  animation: honey-wave-back 4.6s ease-in-out infinite reverse;
}

.honey-bubble {
  position: absolute;
  bottom: 12%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 247, 177, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  animation: honey-bubble-rise 5.4s linear infinite;
}

.honey-bubble--one {
  left: 28%;
  animation-delay: -0.8s;
}

.honey-bubble--two {
  left: 58%;
  width: 7px;
  height: 7px;
  animation-delay: -2.4s;
}

.honey-bubble--three {
  left: 72%;
  width: 12px;
  height: 12px;
  animation-delay: -3.6s;
}

.jar-glass-shine {
  position: absolute;
  left: 28px;
  top: 48px;
  z-index: 3;
  width: 34px;
  height: 165px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.lid-honey-drip {
  position: absolute;
  top: 12px;
  right: 32px;
  z-index: 4;
  width: 18px;
  height: 260px;
  border-radius: 0 0 999px 999px;
  background:
    linear-gradient(180deg, rgba(255, 231, 99, 0.98), rgba(246, 163, 0, 0.96) 62%, rgba(175, 86, 0, 0.96)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0 12px, transparent 12px 28px);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.24), 0 8px 18px rgba(122, 74, 0, 0.22);
  transform-origin: top;
  animation: lid-honey-flow 3.8s ease-in-out infinite;
}

.lid-honey-drip::before {
  content: "";
  position: absolute;
  top: -11px;
  left: -4px;
  width: 28px;
  height: 22px;
  border-radius: 999px;
  background: #f6a300;
  box-shadow: inset 4px 2px 0 rgba(255, 236, 138, 0.62);
}

.lid-honey-drip::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: -8px;
  width: 24px;
  height: 30px;
  border-radius: 55% 55% 65% 65%;
  background: linear-gradient(180deg, #ffc433, #b85e00);
  animation: lid-drop-pulse 1.9s ease-in-out infinite;
}

.jar-shadow {
  position: absolute;
  bottom: 32px;
  z-index: 0;
  width: 250px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(85, 55, 20, 0.22), transparent 68%);
}

.reward-bee {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #f6b21a 0 8px, #3b291a 8px 12px);
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  box-shadow: 0 8px 20px rgba(85, 55, 20, 0.16);
}

.reward-bee::before,
.reward-bee::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 12px;
  border-radius: 999px 999px 4px 4px;
  background: rgba(255, 255, 255, 0.72);
  animation: bee-wing 260ms ease-in-out infinite alternate;
}

.reward-bee::before {
  left: 4px;
  transform-origin: right bottom;
}

.reward-bee::after {
  right: 4px;
  transform-origin: left bottom;
}

.reward-bee--one {
  left: 76px;
  top: 34px;
  animation: bee-flight-one 8.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.reward-bee--two {
  right: 70px;
  top: 56px;
  transform: scale(0.82);
  animation: bee-flight-two 9.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.reward-bee--three {
  left: 138px;
  top: 18px;
  transform: scale(0.72);
  animation: bee-flight-three 10.5s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.page-rewards .jar-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.page-rewards .jar-label .points,
.page-rewards .jar-label small {
  position: relative;
  z-index: 4;
}

.page-rewards .progress-details {
  border: 1px solid rgba(122, 74, 0, 0.22);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 248, 230, 0.92);
}

.reward-meter-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  min-height: 450px;
  isolation: isolate;
}

.reward-meter-jar {
  position: relative;
  z-index: 2;
  width: 230px;
  height: 330px;
  overflow: hidden;
  border: 8px solid #7a4a00;
  border-top-width: 12px;
  border-radius: 34px 34px 58px 58px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.78) 0 10%, transparent 11%),
    linear-gradient(180deg, #fff9ea, #fff0bd);
  box-shadow:
    inset 0 0 0 2px rgba(74, 52, 40, 0.14),
    inset 0 0 26px rgba(255, 255, 255, 0.58),
    0 24px 46px rgba(85, 55, 20, 0.22);
}

.reward-meter-lid {
  position: absolute;
  top: 50px;
  left: 50%;
  z-index: 5;
  width: 220px;
  height: 38px;
  border: 6px solid #6d4200;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 232, 148, 0.86), rgba(255, 232, 148, 0) 42%),
    repeating-linear-gradient(90deg, #8a5600 0 9px, #b86c00 9px 15px, #6d4200 15px 20px);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.34),
    inset 0 -4px 0 rgba(74, 52, 40, 0.22),
    0 12px 20px rgba(85, 55, 20, 0.18);
  transform: translateX(-50%);
}

.reward-meter-lid::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 240, 180, 0.42);
}

.reward-meter-honey {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  overflow: visible;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 245, 140, 0.95) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 48%, rgba(255, 238, 111, 0.75) 0 4px, transparent 5px),
    linear-gradient(180deg, #ffd12e 0%, #f6a300 48%, #bf6800 100%);
  animation: reward-meter-honey-glow 4s ease-in-out infinite;
  transition: height 300ms ease;
}

.reward-meter-wave {
  position: absolute;
  left: -28%;
  right: -28%;
  top: -16px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 243, 118, 0.95);
  animation: reward-meter-wave 3.4s ease-in-out infinite;
}

.reward-meter-bubble {
  position: absolute;
  bottom: 12%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 247, 177, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  animation: reward-meter-bubble-rise 5.4s linear infinite;
}

.reward-meter-bubble--one {
  left: 28%;
  animation-delay: -0.8s;
}

.reward-meter-bubble--two {
  left: 58%;
  width: 7px;
  height: 7px;
  animation-delay: -2.4s;
}

.reward-meter-bubble--three {
  left: 72%;
  width: 12px;
  height: 12px;
  animation-delay: -3.6s;
}

.reward-meter-lid-drip {
  position: absolute;
  top: 38px;
  right: 34px;
  z-index: 7;
  width: 72px;
  height: 238px;
  pointer-events: none;
}

.reward-meter-drip {
  position: absolute;
  top: 0;
  transform-origin: top;
  will-change: transform, height;
}

.reward-meter-drip--main {
  right: 18px;
  width: 24px;
  height: 214px;
  border-radius: 42% 48% 64% 58% / 12% 14% 88% 84%;
  clip-path: polygon(42% 0, 62% 0, 70% 18%, 76% 58%, 100% 88%, 78% 100%, 48% 96%, 18% 100%, 0 88%, 26% 58%, 31% 18%);
  background:
    radial-gradient(ellipse at 58% 91%, #ffc433 0 15px, transparent 16px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34), transparent 36%),
    linear-gradient(180deg, rgba(255, 231, 99, 0.98), rgba(246, 163, 0, 0.96) 62%, rgba(175, 86, 0, 0.96));
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.24), 0 8px 18px rgba(122, 74, 0, 0.22);
}

.reward-meter-drip--left {
  top: 14px;
  left: 0;
  width: 17px;
  height: 142px;
  border-radius: 42% 48% 64% 58% / 14% 16% 86% 82%;
  clip-path: polygon(44% 0, 61% 0, 69% 20%, 74% 60%, 100% 88%, 76% 100%, 48% 96%, 20% 100%, 0 88%, 27% 60%, 32% 20%);
  background:
    radial-gradient(ellipse at 52% 92%, #ffbd28 0 11px, transparent 12px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 224, 83, 0.96), rgba(230, 137, 0, 0.94) 72%, rgba(175, 86, 0, 0.92));
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.2), 0 8px 14px rgba(122, 74, 0, 0.16);
}

.reward-meter-drip--right {
  right: 0;
  top: 48px;
  width: 14px;
  height: 104px;
  border-radius: 42% 48% 64% 58% / 16% 18% 84% 80%;
  clip-path: polygon(44% 0, 60% 0, 68% 22%, 74% 62%, 100% 88%, 76% 100%, 48% 96%, 20% 100%, 0 88%, 28% 62%, 33% 22%);
  background:
    radial-gradient(ellipse at 52% 92%, #ffc433 0 9px, transparent 10px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(180deg, #ffd24f, #b85e00);
  box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.22), 0 8px 14px rgba(122, 74, 0, 0.14);
}

.reward-meter-label {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.reward-meter-label .points,
.reward-meter-label small {
  position: relative;
  z-index: 2;
}

.reward-meter-shadow {
  position: absolute;
  bottom: 44px;
  z-index: 0;
  width: 250px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(85, 55, 20, 0.22), transparent 68%);
}

.reward-meter-bee {
  position: absolute;
  z-index: 9;
  width: 34px;
  height: 24px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #f6b21a 0 8px, #3b291a 8px 12px);
  box-shadow: 0 8px 20px rgba(85, 55, 20, 0.16);
}

.reward-meter-bee::before,
.reward-meter-bee::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 12px;
  border-radius: 999px 999px 4px 4px;
  background: rgba(255, 255, 255, 0.72);
  animation: reward-meter-wing 260ms ease-in-out infinite alternate;
}

.reward-meter-bee::before {
  left: 4px;
  transform-origin: right bottom;
}

.reward-meter-bee::after {
  right: 4px;
  transform-origin: left bottom;
}

.reward-meter-bee--one {
  left: 88px;
  top: 52px;
}

.reward-meter-bee--two {
  right: 84px;
  top: 76px;
  transform: scale(0.82);
}

.reward-meter-bee--three {
  left: 158px;
  top: 34px;
  transform: scale(0.72);
}

.reward-meter-scene.is-animated .reward-meter-bee--one {
  animation: reward-meter-bee-one 5.8s linear infinite;
}

.reward-meter-scene.is-animated .reward-meter-bee--two {
  animation: reward-meter-bee-two 6.6s linear infinite;
}

.reward-meter-scene.is-animated .reward-meter-bee--three {
  animation: reward-meter-bee-three 7.2s linear infinite;
}

.reward-meter-scene.is-animated .reward-meter-lid-drip {
  animation: reward-meter-main-drip 3.2s ease-in-out infinite;
}

.reward-meter-scene.is-animated .reward-meter-lid-drip::before {
  animation: reward-meter-side-drip 3.9s ease-in-out infinite;
}

.reward-meter-scene.is-animated .reward-meter-lid-drip::after {
  animation: reward-meter-short-drip 3.5s ease-in-out infinite;
}

.rewards-activity-section,
.rewards-dashboard-grid,
.rewards-admin-grid {
  margin-top: 24px;
}

.rewards-next-card {
  align-content: start;
}

.rewards-next-card--hero {
  max-width: 680px;
  padding: 20px;
}

.reward-card-heading {
  align-items: flex-start;
}

.reward-card-heading .landing-eyebrow {
  flex: 0 0 auto;
  margin: 0;
}

.reward-card-heading h2 {
  justify-content: flex-end;
  max-width: 64%;
  text-align: right;
}

.reward-card-note {
  margin: -6px 0 18px;
  color: #776554;
  font-size: 14px;
  line-height: 1.55;
}

.rewards-next-meter {
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(122, 74, 0, 0.28);
  background: #6d4200;
  box-shadow: inset 0 2px 5px rgba(40, 24, 0, 0.28);
}

.rewards-next-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffe36d 0%, #f6b21a 42%, #d98900 100%);
  box-shadow: 0 0 16px rgba(246, 178, 26, 0.42);
}

.rewards-next-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rewards-next-facts span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.rewards-next-facts strong {
  color: #d98900;
  font-size: 24px;
  line-height: 1;
}

.rewards-next-facts small,
.reward-value {
  color: #776554;
  font-weight: 800;
}

.rewards-activity-card {
  display: grid;
  gap: 14px;
}

.reward-activity-more {
  border-top: 1px solid rgba(74, 52, 40, 0.10);
  padding-top: 12px;
}

.reward-activity-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #6d4200;
  font-weight: 900;
  list-style: none;
}

.reward-activity-more summary::-webkit-details-marker {
  display: none;
}

.reward-activity-more[open] summary {
  margin-bottom: 12px;
}

.reward-activity-more[open] summary i {
  transform: rotate(180deg);
}

.activity-list--expanded {
  padding-top: 2px;
}

.rewards-milestones .reward-row {
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr) auto;
}

.reward-row.current {
  border-color: rgba(217, 137, 0, 0.42);
  background: #fff9e8;
}

.reward-row.unlocked {
  border-color: rgba(53, 106, 32, 0.26);
  background: #f5fbf0;
}

.reward-rule-list,
.reward-admin-list {
  display: grid;
  gap: 10px;
}

.reward-rule-card,
.reward-admin-item {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(74, 52, 40, 0.13);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.reward-rule-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.reward-rule-card span {
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff3cf;
  color: #6d4200;
  font-weight: 900;
}

.reward-rule-card small {
  grid-column: 1 / -1;
  color: #776554;
  font-weight: 700;
}

.reward-admin-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.reward-admin-item small {
  display: block;
  margin-top: 4px;
  color: #776554;
  font-weight: 700;
}

.reward-admin-actions {
  display: flex;
  gap: 8px;
}

.submit.danger {
  background: #b42318;
  color: #fff;
}

@keyframes honey-glow {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.18) brightness(1.04);
  }
}

@keyframes honey-wave-front {
  0%,
  100% {
    transform: translateX(-5%) scaleY(0.78);
  }
  50% {
    transform: translateX(5%) scaleY(1);
  }
}

@keyframes honey-wave-back {
  0%,
  100% {
    transform: translateX(6%) scaleY(0.65);
  }
  50% {
    transform: translateX(-6%) scaleY(0.92);
  }
}

@keyframes honey-bubble-rise {
  0% {
    transform: translateY(70px) scale(0.7);
    opacity: 0;
  }
  18%,
  78% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-170px) scale(1.1);
    opacity: 0;
  }
}

@keyframes lid-honey-flow {
  0%,
  100% {
    transform: scaleY(0.94);
    background-position: 0 0, 0 0;
  }
  50% {
    transform: scaleY(1);
    background-position: 0 0, 0 34px;
  }
}

@keyframes lid-drop-pulse {
  0%,
  100% {
    transform: translateY(-2px) scale(0.88);
  }
  50% {
    transform: translateY(5px) scale(1.05);
  }
}

@keyframes bee-wing {
  to {
    transform: rotate(16deg) translateY(1px);
  }
}

@keyframes bee-flight-one {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }
  33% {
    transform: translate(54px, -10px) rotate(6deg);
  }
  66% {
    transform: translate(92px, 8px) rotate(-2deg);
  }
}

@keyframes bee-flight-two {
  0%,
  100% {
    transform: translate(0, 0) scale(0.82) rotate(5deg);
  }
  38% {
    transform: translate(-62px, -12px) scale(0.82) rotate(-6deg);
  }
  72% {
    transform: translate(-110px, 8px) scale(0.82) rotate(4deg);
  }
}

@keyframes bee-flight-three {
  0%,
  100% {
    transform: translate(0, 0) scale(0.72) rotate(3deg);
  }
  45% {
    transform: translate(-44px, 18px) scale(0.72) rotate(-5deg);
  }
  75% {
    transform: translate(40px, 6px) scale(0.72) rotate(6deg);
  }
}

@keyframes reward-meter-honey-glow {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.18) brightness(1.04);
  }
}

@keyframes reward-meter-wave {
  0%,
  100% {
    transform: translateX(-5%) scaleY(0.78);
  }
  50% {
    transform: translateX(5%) scaleY(1);
  }
}

@keyframes reward-meter-bubble-rise {
  0% {
    transform: translateY(70px) scale(0.7);
    opacity: 0;
  }
  18%,
  78% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-170px) scale(1.1);
    opacity: 0;
  }
}

@keyframes reward-meter-lid-flow {
  0%,
  100% {
    transform: scaleY(0.94);
    background-position: 0 0, 0 0;
  }
  50% {
    transform: scaleY(1);
    background-position: 0 0, 0 34px;
  }
}

@keyframes reward-meter-drip-pulse {
  0%,
  100% {
    transform: translateY(-2px) scale(0.88);
  }
  50% {
    transform: translateY(5px) scale(1.05);
  }
}

@keyframes reward-meter-main-drip {
  0%,
  100% {
    height: 74px;
    opacity: 0.92;
    transform: translateY(0) scaleX(0.92);
  }
  45% {
    height: 238px;
    opacity: 1;
    transform: translateY(0) scaleX(1.04);
  }
  72% {
    height: 190px;
    opacity: 1;
    transform: translateY(8px) scaleX(0.98);
  }
}

@keyframes reward-meter-side-drip {
  0%,
  100% {
    height: 46px;
    opacity: 0.72;
    transform: translateY(0) scaleX(0.88);
  }
  48% {
    height: 156px;
    opacity: 1;
    transform: translateY(4px) scaleX(1);
  }
  78% {
    height: 112px;
    opacity: 0.92;
    transform: translateY(10px) scaleX(0.94);
  }
}

@keyframes reward-meter-short-drip {
  0%,
  100% {
    height: 34px;
    opacity: 0.68;
    transform: translateY(0) scaleX(0.86);
  }
  42% {
    height: 116px;
    opacity: 1;
    transform: translateY(6px) scaleX(1.06);
  }
  74% {
    height: 72px;
    opacity: 0.86;
    transform: translateY(12px) scaleX(0.92);
  }
}

@keyframes reward-meter-wing {
  to {
    transform: rotate(16deg) translateY(1px);
  }
}

@keyframes reward-meter-bee-one {
  0% { transform: translate(0, 0) rotate(-8deg); }
  20% { transform: translate(42px, -18px) rotate(7deg); }
  40% { transform: translate(96px, -4px) rotate(-3deg); }
  60% { transform: translate(70px, 18px) rotate(8deg); }
  80% { transform: translate(22px, 12px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(-8deg); }
}

@keyframes reward-meter-bee-two {
  0% { transform: translate(0, 0) scale(0.82) rotate(8deg); }
  22% { transform: translate(-38px, -22px) scale(0.82) rotate(-6deg); }
  45% { transform: translate(-98px, -8px) scale(0.82) rotate(5deg); }
  68% { transform: translate(-76px, 22px) scale(0.82) rotate(-8deg); }
  86% { transform: translate(-18px, 14px) scale(0.82) rotate(4deg); }
  100% { transform: translate(0, 0) scale(0.82) rotate(8deg); }
}

@keyframes reward-meter-bee-three {
  0% { transform: translate(0, 0) scale(0.72) rotate(5deg); }
  18% { transform: translate(-34px, 12px) scale(0.72) rotate(-6deg); }
  38% { transform: translate(-6px, 34px) scale(0.72) rotate(8deg); }
  62% { transform: translate(50px, 20px) scale(0.72) rotate(-4deg); }
  82% { transform: translate(30px, -8px) scale(0.72) rotate(6deg); }
  100% { transform: translate(0, 0) scale(0.72) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .page-rewards .honey-fill,
  .honey-wave,
  .honey-bubble,
  .lid-honey-drip,
  .lid-honey-drip::after,
  .reward-bee,
  .reward-bee::before,
  .reward-bee::after,
  .reward-meter-honey,
  .reward-meter-wave,
  .reward-meter-bubble {
    animation: none;
  }
}

@media (max-width: 900px) {
  .page-rewards .rewards-hero__content,
  .rewards-dashboard-grid,
  .rewards-admin-grid {
    grid-template-columns: 1fr;
  }

  .rewards-next-facts {
    grid-template-columns: 1fr;
  }

  .reward-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .reward-card-heading h2 {
    justify-content: flex-start;
    max-width: none;
    text-align: left;
  }

  .rewards-milestones .reward-row,
  .reward-rule-card,
  .reward-admin-item {
    grid-template-columns: 1fr;
  }

  .reward-admin-actions {
    justify-content: flex-start;
  }

  .layout-cols-2,
  .layout-cols-2-wide,
  .layout-cols-3,
  .hero-2col,
  .jar-panel {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================
   Hive list page overrides
   ========================= */

.page-hive-list .grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  justify-content: start;
  align-items: stretch;
  gap: 10px;
}

.hive-list-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.hive-list-hero__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hive-list-hero__header h2 {
  margin-bottom: 10px;
}

.hive-list-hero__header p {
  max-width: 780px;
}

.hive-list-hero__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hive-list-hero__actions .button,
.hive-list-hero__actions .submit {
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

.hive-apiary-filter {
  margin-top: 22px;
}

.hive-apiary-filter input[type="search"] {
  min-height: 44px;
  min-width: min(100%, 220px);
  border: 1px solid rgba(74, 52, 40, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: #fffaf0;
  color: #3b291a;
  font: inherit;
}

.apiary-hive-section {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(74, 52, 40, 0.08);
  border-radius: 18px;
  background: rgba(255, 252, 244, 0.72);
}

.apiary-divider {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(122, 76, 0, 0.16);
}

.apiary-divider h2 {
  margin: 6px 0 2px;
  font-size: 18px;
  color: #3b291a;
}

.apiary-divider p {
  margin: 0;
  color: #776554;
}

.apiary-divider strong {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff3cf;
  color: #6d4200;
  font-size: 13px;
}

.hive-list-summary,
.pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hive-list-summary {
  justify-content: space-between;
  margin-top: 18px;
  color: #776554;
  font-weight: 800;
}

.pagination {
  justify-content: center;
  margin-top: 22px;
}

.pagination__status {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff3cf;
  color: #6d4200;
  font-weight: 800;
}

.apiary-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.apiary-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(85, 55, 20, 0.07);
}

.apiary-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff3cf;
  color: #8a5600;
}

.apiary-card__body {
  min-width: 0;
}

.apiary-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.apiary-card h2 {
  margin: 0;
  font-size: 16px;
  color: #3b291a;
  overflow-wrap: anywhere;
}

.apiary-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
  color: #776554;
  font-size: 12px;
}

.apiary-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.apiary-card p {
  margin: 7px 0 0;
  color: #776554;
  font-size: 12px;
}

.apiary-card__actions {
  display: flex;
  gap: 6px;
}

.apiary-card__actions .button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.apiary-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.apiary-map-panel .section-heading {
  margin-bottom: 14px;
}

.apiary-map-panel .section-heading h2 {
  margin: 0 0 6px;
  color: #3b291a;
}

.apiary-map-panel .section-heading p {
  margin: 0;
  color: #776554;
  line-height: 1.55;
}

.apiary-form-map {
  min-height: 520px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 40, 0.12);
  background: #fff8e4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.apiary-location-search {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.apiary-map-panel .compact-actions {
  gap: 8px;
}

.apiary-map-panel .compact-actions .button,
.apiary-location-search .button {
  min-height: 42px;
  white-space: nowrap;
}

.apiary-media-manager {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(74, 52, 40, 0.10);
}

.apiary-media-manager h2 {
  margin: 0 0 12px;
  color: #3b291a;
  font-size: 18px;
}

.apiary-media-manager__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.apiary-media-manager__item {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 12px;
  background: #fffdf7;
}

.apiary-media-manager__preview,
.apiary-public-media__preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff8e4;
}

.apiary-media-manager__preview img,
.apiary-media-manager__preview video,
.apiary-public-media__preview img,
.apiary-public-media__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apiary-public-media__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.apiary-public-media__item {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 0 10px 24px rgba(85, 55, 20, 0.08);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.apiary-public-media__item:hover,
.apiary-public-media__item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(138, 86, 0, 0.32);
  box-shadow: 0 16px 34px rgba(85, 55, 20, 0.14);
  outline: none;
}

.apiary-public-media__preview {
  position: relative;
  aspect-ratio: 16 / 11;
}

.apiary-public-media__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(39, 28, 18, 0.34));
  pointer-events: none;
}

.apiary-public-media__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #8a5600;
  font-size: 28px;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(39, 28, 18, 0.20);
}

.apiary-public-media__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px;
  color: #3b291a;
  font-size: 14px;
  font-weight: 850;
}

.apiary-media-manager__delete {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #6d4200;
  font-size: 13px;
  font-weight: 800;
}

.apiary-public-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  overflow: hidden;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 22px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  background:
    linear-gradient(135deg, rgba(255, 248, 228, 0.94), rgba(255, 255, 255, 0.88)),
    url("data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b98019' stroke-opacity='0.14' stroke-width='1.2'%3E%3Cpath d='M24 2 48 16 48 44 24 58 0 44 0 16Z'/%3E%3Cpath d='M72 2 96 16 96 44 72 58 48 44 48 16Z'/%3E%3Cpath d='M48 44 72 58 72 86 48 100 24 86 24 58Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 96px 84px;
  box-shadow: 0 18px 45px rgba(85, 55, 20, 0.10);
  margin-bottom: 18px;
}

.apiary-public-hero__content {
  max-width: 860px;
}

.apiary-public-hero h1 {
  margin: 0 0 8px;
  color: #3b291a;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.05;
}

.apiary-public-hero p {
  margin: 0;
  color: #776554;
}

.apiary-public-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #5b4331;
  font-weight: 800;
}

.apiary-public-summary {
  max-width: 720px;
  margin-top: 16px !important;
  color: #5f5143 !important;
  font-size: 16px;
  line-height: 1.65;
}

.apiary-public-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px;
}

.apiary-public-stats span {
  display: grid;
  gap: 4px;
  min-width: 112px;
  padding: 16px;
  border: 1px solid rgba(138, 86, 0, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #6d4200;
  font-weight: 800;
}

.apiary-public-stats strong {
  color: #3b291a;
  font-size: 30px;
  line-height: 1;
}

.apiary-public-stats small {
  color: #776554;
  font-size: 13px;
  font-weight: 800;
}

.apiary-public-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.apiary-public-layout > article:only-child {
  grid-column: 1 / -1;
}

.apiary-public-info,
.apiary-public-map-panel,
.apiary-public-media {
  padding: 18px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 14px 34px rgba(85, 55, 20, 0.08);
}

.apiary-public-map-panel {
  padding: 0;
  overflow: hidden;
}

.apiary-public-info__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.apiary-public-info__head h2,
.apiary-public-description h2,
.apiary-public-media h2 {
  margin: 0 0 12px;
  color: #3b291a;
}

.apiary-public-info__head h2 {
  margin-bottom: 0;
}

.apiary-public-info__head a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #8a5600;
  font-weight: 900;
  text-decoration: none;
}

.apiary-public-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.apiary-public-facts div {
  display: grid;
  gap: 6px;
  padding: 13px;
  border-radius: 14px;
  background: #fff8e4;
}

.apiary-public-facts dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8a5600;
  font-size: 13px;
  font-weight: 900;
}

.apiary-public-facts dd {
  margin: 0;
  color: #3b291a;
  overflow-wrap: anywhere;
}

.apiary-public-description {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(74, 52, 40, 0.10);
}

.apiary-public-description p {
  margin: 0;
  color: #5f5143;
  line-height: 1.7;
}

.apiary-public-map {
  min-height: 100%;
  height: 440px;
  overflow: hidden;
  background: #fff8e4;
}

.apiary-public-media .section-heading {
  margin-bottom: 16px;
}

.is-media-lightbox-open {
  overflow: hidden;
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 16, 11, 0.78);
  backdrop-filter: blur(8px);
}

.media-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  height: min(820px, calc(100vh - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #120d09;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.media-lightbox__bar,
.media-lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff8e4;
}

.media-lightbox__bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff8e4;
  font-weight: 900;
  cursor: pointer;
}

.media-lightbox__close {
  width: 40px;
  padding: 0;
}

.media-lightbox__close:hover,
.media-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.media-lightbox__stage-wrap {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  background: #080604;
  touch-action: pan-y;
}

.media-lightbox__stage {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 12px clamp(58px, 8vw, 92px);
  background: #080604;
}

.media-lightbox__stage img,
.media-lightbox__stage video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.media-lightbox__stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-lightbox__controls span {
  color: #e7d7bb;
  font-weight: 800;
}

.media-lightbox__controls {
  justify-content: center;
  min-height: 50px;
}

.media-lightbox__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff8e4;
  font-size: 28px;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.media-lightbox__nav--prev {
  left: 14px;
}

.media-lightbox__nav--next {
  right: 14px;
}

.apiary-location-search input {
  flex: 1 1 260px;
  min-height: 42px;
  border: 1px solid rgba(74, 52, 40, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  background: #fffaf0;
  color: #3b291a;
}

.page-hive-list .hive-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  background:
    radial-gradient(circle at 18% 14%, rgba(246, 178, 26, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 237, 0.96));
  box-shadow: 0 8px 18px rgba(85, 55, 20, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  overflow: hidden;
}

.page-hive-list .hive-card:hover,
.page-hive-list .hive-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217, 137, 0, 0.34);
  box-shadow: 0 12px 24px rgba(85, 55, 20, 0.13);
  outline: none;
}

.page-hive-list .hive-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(90deg, #f6b21a, #d98900);
  opacity: 0.95;
  transition: background 180ms ease;
}

.page-hive-list .hive-card__main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.page-hive-list .hive-visual {
  position: relative;
  width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.page-hive-list .hive-roof,
.page-hive-list .hive-body,
.page-hive-list .hive-stand,
.page-hive-list .hive-visual::after {
  display: none;
}

.page-hive-list .hive-status-dot {
  position: static;
  width: 40px;
  height: 40px;
  font-size: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.98);
  background: #fff;
  color: #8a5600;
  box-shadow: 0 8px 18px rgba(74, 52, 40, 0.16);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  z-index: 3;
}

.page-hive-list .hive-info {
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 4;
  min-width: 0;
  padding-right: 18px;
}

.page-hive-list .hive-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-hive-list .hive-info .code {
  max-width: 100%;
  padding: 4px 7px;
  font-size: 10px;
  border-radius: 999px;
  background: #fff0bd;
  color: #7a4c00;
  overflow-wrap: anywhere;
}

.page-hive-list .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(79, 166, 80, 0.12);
  color: #356a20;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.page-hive-list .status-badge i {
  flex: 0 0 auto;
  font-size: 11px;
}

.page-hive-list .hive-info h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  color: #3b291a;
  overflow-wrap: anywhere;
}

.page-hive-list .hive-card__details {
  display: grid;
  gap: 5px;
}

.page-hive-list .card-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #776554;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-hive-list .card-meta i {
  color: #d98900;
  width: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.page-hive-list .hive-card__action {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  border-radius: 50%;
  background: rgba(255, 243, 207, 0.9);
  color: #7a4c00;
  box-shadow: inset 0 0 0 1px rgba(74, 52, 40, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.page-hive-list .hive-card:hover .hive-card__action,
.page-hive-list .hive-card:focus-visible .hive-card__action {
  transform: translateX(3px);
  background: #f6b21a;
  color: #4a3428;
}

.page-hive-list .hive-card[data-status="active"]::before {
  background: linear-gradient(180deg, #84c76a, #4fa650);
}

.page-hive-list .hive-card[data-status="active"] .hive-status-dot {
  background: #178234;
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 130, 52, 0.28);
}

.page-hive-list .hive-card[data-status="active"] .status-badge {
  background: #dff7e6;
  color: #12652a;
}

.page-hive-list .hive-card[data-status="needs_attention"]::before {
  background: linear-gradient(180deg, #f6b21a, #d98900);
}

.page-hive-list .hive-card[data-status="needs_attention"] .hive-status-dot {
  background: #d98900;
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 137, 0, 0.30);
}

.page-hive-list .hive-card[data-status="needs_attention"] .status-badge {
  background: #fff0bd;
  color: #6d4200;
}

.page-hive-list .hive-card[data-status="inactive"]::before {
  background: linear-gradient(180deg, #f06b5f, #b42318);
}

.page-hive-list .hive-card[data-status="inactive"] .hive-status-dot {
  background: #b42318;
  color: #fff;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.30);
}

.page-hive-list .hive-card[data-status="inactive"] .status-badge {
  background: #ffe4e0;
  color: #8f1f17;
}

.page-hive-list .hive-card:hover::before,
.page-hive-list .hive-card:focus-visible::before {
  background: linear-gradient(180deg, #8a5600, #4a3428);
}

.page-hive-list .hive-card:hover .hive-status-dot,
.page-hive-list .hive-card:focus-visible .hive-status-dot {
  transform: translateY(-1px) scale(1.04);
}

.page-hive-list .hive-card:hover .hive-stand,
.page-hive-list .hive-card:focus-visible .hive-stand {
  transform: translateX(-50%) scaleX(1.12);
  background: #4a3428;
  box-shadow: 0 6px 14px rgba(74, 52, 40, 0.24);
}

@media (max-width: 700px) {
  .hive-list-hero__header {
    flex-direction: column;
  }

  .hive-list-hero__actions {
    justify-content: flex-start;
    width: 100%;
  }

  .apiary-divider {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hive-list .grid {
    grid-template-columns: 1fr;
  }

  .page-hive-list .hive-card {
    min-height: 0;
    padding: 10px 12px;
  }

  .page-hive-list .hive-card__main {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .page-hive-list .hive-visual {
    width: 34px;
    min-height: 34px;
  }

  .page-hive-list .hive-card__action {
    display: none;
  }

  .page-hive-list .hive-info {
    padding-right: 0;
  }
}

@media (max-width: 420px) {
  .hive-apiary-filter input[type="search"],
  .hive-apiary-filter select,
  .hive-apiary-filter .button,
  .hive-list-hero__actions .button,
  .hive-list-hero__actions .submit {
    width: 100%;
  }
}

/* =========================
   Traceability pages
   ========================= */

.page-batch-list .batch-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.page-batch-list .batch-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 186px;
  padding: 18px 58px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  background:
    radial-gradient(circle at 18% 12%, rgba(246, 178, 26, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 233, 0.96));
  box-shadow: 0 14px 32px rgba(85, 55, 20, 0.10);
  overflow: hidden;
}

.page-batch-list .batch-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #f6b21a, #8a5600);
}

.page-batch-list .batch-card:hover,
.page-batch-list .batch-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(217, 137, 0, 0.32);
  box-shadow: 0 18px 42px rgba(85, 55, 20, 0.16);
  outline: none;
}

.page-batch-list .batch-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
}

.page-batch-list .batch-jar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 110px;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px 22px 30px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0 34%, #f6b21a 35% 100%);
  color: #6d4200;
  font-size: 30px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.62), 0 14px 26px rgba(85, 55, 20, 0.13);
}

.page-batch-list .batch-qr {
  position: absolute;
  right: 6px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fff;
  color: #7a4c00;
  box-shadow: 0 8px 18px rgba(74, 52, 40, 0.12);
}

.page-batch-list .batch-card__content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-batch-list .batch-card__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-batch-list .batch-card h2 {
  margin: 0;
  color: #3b291a;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.page-batch-list .batch-card__meta {
  display: grid;
  gap: 7px;
}

.page-batch-list .batch-card .meta {
  align-items: flex-start;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.page-batch-list .batch-card .meta i {
  width: 15px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #d98900;
}

.page-batch-list .batch-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(79, 166, 80, 0.12);
  color: #356a20;
  font-size: 12px;
  font-weight: 800;
}

.page-batch-list .batch-card__action {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 243, 207, 0.92);
  color: #7a4c00;
  box-shadow: inset 0 0 0 1px rgba(74, 52, 40, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.page-batch-list .batch-card:hover .batch-card__action,
.page-batch-list .batch-card:focus-visible .batch-card__action {
  transform: translateX(3px);
  background: #f6b21a;
  color: #4a3428;
}

.page-batch-public .brand {
  width: fit-content;
  margin-bottom: 22px;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.76);
  color: #4a3428;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(85, 55, 20, 0.08);
}

.page-batch-public .hero {
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}

.page-batch-public .hero h1 {
  max-width: 780px;
  overflow-wrap: anywhere;
}

.page-batch-public .qr {
  position: relative;
  min-height: 260px;
  border-style: solid;
  border-color: rgba(74, 52, 40, 0.12);
  background:
    linear-gradient(135deg, #fff, #fff8e4);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.55);
}

.page-batch-public .qr::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(74, 52, 40, 0.22);
  border-radius: 18px;
}

.page-batch-public .qr > div {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 10px;
  height: 100%;
  padding: 22px;
}

.page-batch-public .qr i {
  color: #6d4200;
  font-size: 68px;
}

.traceability-qr-image,
.hive-qr-image {
  width: min(190px, 100%);
  aspect-ratio: 1;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(74, 52, 40, 0.16);
}

.page-batch-public .qr strong {
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff3cf;
  color: #6d4200;
  font-size: 14px;
}

.page-batch-public .qr a {
  max-width: 220px;
  color: #6d4200;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  overflow-wrap: anywhere;
}

.page-batch-public .grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
}

.page-batch-public .stat {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.page-batch-public .stat strong {
  overflow-wrap: anywhere;
}

.page-batch-public .panel {
  margin-top: 18px;
}

.page-batch-public .panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #3b291a;
  font-size: 22px;
}

.traceability-history-list {
  display: grid;
  gap: 10px;
}

.traceability-history-item {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fffaf0;
}

.traceability-history-item span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff0bd;
  color: #6d4200;
  font-size: 12px;
  font-weight: 850;
}

.traceability-history-item strong,
.traceability-history-item small {
  color: #5f5143;
  font-size: 13px;
}

.traceability-history-item small {
  justify-self: end;
}

@media (max-width: 800px) {
  .page-batch-list .batch-card {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 16px;
  }

  .page-batch-list .batch-card__action {
    display: none;
  }

  .page-batch-public .hero,
  .page-batch-public .grid {
    grid-template-columns: 1fr;
  }

  .traceability-history-item {
    grid-template-columns: 1fr;
  }

  .traceability-history-item small {
    justify-self: start;
  }
}

@media (max-width: 440px) {
  .page-batch-list .batch-grid {
    grid-template-columns: 1fr;
  }

  .page-batch-list .batch-card {
    grid-template-columns: 1fr;
  }

  .page-batch-list .batch-card__visual {
    justify-self: center;
  }
}

/* =========================
   Hive detail page
   ========================= */

.page-hive-detail .topbar {
  align-items: center;
}

.page-hive-detail .topbar .back {
  align-self: center;
}

.hive-detail-hero {
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  align-items: center;
  overflow: hidden;
}

.hive-detail-hero__content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hive-detail-hero__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hive-detail-hero h1 {
  max-width: 820px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.hive-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(79, 166, 80, 0.12);
  color: #356a20;
  font-size: 13px;
  font-weight: 800;
}

.hive-detail-status[data-status="needs_attention"] {
  background: rgba(217, 137, 0, 0.14);
  color: #8a5600;
}

.hive-detail-status[data-status="inactive"] {
  background: rgba(119, 101, 84, 0.14);
  color: #665747;
}

.hive-detail-pills {
  align-items: flex-start;
}

.hive-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hive-detail-actions .submit,
.hive-detail-actions .button {
  margin-top: 0;
}

.hive-detail-qr {
  display: grid;
  justify-content: end;
}

.page-hive-detail .qr-box {
  position: relative;
  width: 220px;
  height: auto;
  min-height: 0;
  gap: 10px;
  padding: 18px;
  border-style: solid;
  border-color: rgba(74, 52, 40, 0.12);
  background: linear-gradient(135deg, #fff, #fff8e4);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.55);
}

.page-hive-detail .hive-qr-image {
  width: min(160px, 100%);
}

.page-hive-detail .qr-box strong {
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff3cf;
  color: #6d4200;
  font-size: 13px;
}

.page-hive-detail .qr-box a {
  max-width: 180px;
  color: #6d4200;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.qr-print-page {
  max-width: 1180px;
}

.qr-print-intro {
  margin-bottom: 18px;
}

.qr-print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.qr-print-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  break-inside: avoid;
  border: 1px solid rgba(74, 52, 40, 0.16);
  border-radius: 14px;
  padding: 14px 12px;
  background: #fffdf7;
  color: #3b291a;
  text-align: center;
}

.qr-print-card img {
  width: 128px;
  aspect-ratio: 1;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}

.qr-print-card strong {
  color: #6d4200;
  font-size: 15px;
  font-weight: 850;
}

.qr-print-card span {
  max-width: 100%;
  color: #3b291a;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.qr-print-card small {
  max-width: 100%;
  color: #75685e;
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.hive-detail-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-heading h2,
.hive-side-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #3b291a;
  font-size: 22px;
}

.section-heading p {
  margin-top: 4px;
  font-size: 14px;
}

.hive-timeline-panel .timeline {
  gap: 14px;
}

.page-hive-detail .timeline-item {
  position: relative;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(85, 55, 20, 0.06);
}

.page-hive-detail .timeline-item::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 58px;
  bottom: -15px;
  width: 2px;
  background: rgba(217, 137, 0, 0.18);
}

.page-hive-detail .timeline-item:last-child::before {
  display: none;
}

.timeline-body {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.timeline-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-title-row h3 {
  margin: 0;
  color: #3b291a;
  font-size: 17px;
}

.inspection-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inspection-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff8e4;
  color: #6d4200;
  font-size: 12px;
  font-weight: 800;
}

.compact-actions {
  margin-top: 4px;
}

.compact-actions .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.hive-side-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.hive-side-panel h3 {
  margin: 0 0 -6px;
  color: #3b291a;
  font-size: 17px;
}

.quick-info-list {
  display: grid;
  gap: 10px;
}

.quick-info-list > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 10px;
  align-items: center;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.quick-info-list i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff3cf;
  color: #8a5600;
}

.quick-info-list span {
  color: #776554;
  font-size: 12px;
  font-weight: 800;
}

.quick-info-list strong {
  min-width: 0;
  color: #3b291a;
  overflow-wrap: anywhere;
}

.app-directory {
  margin-top: 24px;
}

.url-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.url-group {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.url-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #3b291a;
  font-size: 16px;
}

.url-group h3 i {
  color: #d98900;
}

.url-group a,
.url-group div {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff8e4;
}

.url-group a {
  transition: background 180ms ease, transform 180ms ease;
}

.url-group a:hover,
.url-group a:focus-visible {
  transform: translateY(-1px);
  background: #fff0bd;
  outline: none;
}

.url-group span {
  color: #4a3428;
  font-size: 13px;
  font-weight: 800;
}

.url-group code {
  color: #776554;
  white-space: normal;
  overflow-wrap: anywhere;
}

.managed-model-grid,
.managed-record-list {
  display: grid;
  gap: 14px;
}

.managed-model-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.managed-model-card,
.managed-record {
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(85, 55, 20, 0.08);
}

.managed-model-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}

.managed-model-card .card-link,
.managed-model-card .badge {
  grid-column: 1 / -1;
}

.managed-model-card.is-locked {
  opacity: 0.72;
}

.managed-model-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fff3cf;
  color: #8a5600;
  font-size: 22px;
}

.managed-model-card h2,
.managed-record h2 {
  margin: 0;
  color: #3b291a;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.managed-model-card p {
  margin-top: 4px;
  font-size: 13px;
}

.managed-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.managed-record-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.managed-list-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.managed-list-hero > div {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.managed-list-hero h1 {
  margin: 0;
}

.managed-apiary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.managed-apiary-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(85, 55, 20, 0.10);
}

.managed-apiary-card__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.managed-apiary-card__head h2 {
  margin: 8px 0 0;
  color: #3b291a;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.managed-apiary-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.managed-apiary-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 14px;
  padding: 10px;
  background: #fffaf0;
  color: #5f4a3a;
  font-size: 13px;
  font-weight: 800;
}

.managed-apiary-meta i {
  color: #8a5600;
  flex: 0 0 auto;
}

.managed-apiary-status {
  min-height: 28px;
}

.managed-apiary-note {
  margin: 0;
  color: #776554;
  font-size: 13px;
  line-height: 1.55;
}

.managed-apiary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.managed-apiary-actions .button {
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding-inline: 10px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.managed-apiary-actions .danger-link {
  grid-column: 1 / -1;
}

.managed-lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.managed-lesson-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(85, 55, 20, 0.09);
}

.managed-lesson-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #fff3cf;
}

.managed-lesson-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.managed-lesson-card__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.managed-lesson-card__head h2 {
  margin: 8px 0 0;
  color: #3b291a;
  font-size: 18px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.managed-lesson-card p {
  margin: 0;
  color: #5f5143;
  font-size: 13px;
  line-height: 1.55;
}

.managed-lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.managed-lesson-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fffaf0;
  color: #5f4a3a;
  font-size: 12px;
  font-weight: 750;
}

.managed-lesson-meta i {
  color: #8a5600;
}

.managed-lesson-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.managed-lesson-actions .button {
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding-inline: 10px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.managed-lesson-actions .danger-link {
  grid-column: 1 / -1;
}

.managed-form-panel {
  display: grid;
  gap: 18px;
}

.managed-form-header {
  display: grid;
  gap: 8px;
}

.managed-form-header h2 {
  margin: 0;
}

.managed-form-header p {
  margin: 0;
  max-width: 760px;
  color: #5f5143;
  line-height: 1.6;
}

.profile-dashboard {
  display: grid;
  gap: 18px;
}

.profile-topbar .brand {
  text-decoration: none;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 248, 228, 0.96), rgba(255, 255, 255, 0.90)),
    url("data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b98019' stroke-opacity='0.14' stroke-width='1.2'%3E%3Cpath d='M24 2 48 16 48 44 24 58 0 44 0 16Z'/%3E%3Cpath d='M72 2 96 16 96 44 72 58 48 44 48 16Z'/%3E%3Cpath d='M48 44 72 58 72 86 48 100 24 86 24 58Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 96px 84px;
  box-shadow: 0 18px 45px rgba(85, 55, 20, 0.10);
}

.profile-hero h1 {
  margin: 0 0 10px;
  color: #3b291a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.profile-hero p {
  max-width: 760px;
  margin: 0;
  color: #5f5143;
  line-height: 1.65;
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.profile-score-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(138, 86, 0, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-score-card span,
.profile-kpi span {
  color: #776554;
  font-weight: 900;
}

.profile-score-card strong {
  text-align: center;
  color: #3b291a;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
}

.profile-score-card a {
  color: #8a5600;
  font-weight: 900;
  text-decoration: none;
}

.profile-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.profile-kpi,
.profile-panel {
  border: 1px solid rgba(74, 52, 40, 0.10);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 10px 24px rgba(85, 55, 20, 0.07);
}

.profile-kpi {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 16px;
  border-radius: 16px;
}

.profile-kpi i,
.profile-action-grid i,
.profile-record-list > a > i,
.profile-manager-grid i {
  display: grid;
  place-items: center;
  background: #fff3cf;
  color: #8a5600;
}

.profile-kpi i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
}

.profile-kpi span {
  font-size: 13px;
}

.profile-kpi strong {
  align-self: end;
  color: #3b291a;
  font-size: 32px;
  line-height: 1;
}

.profile-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.profile-panel {
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(85, 55, 20, 0.08);
}

.profile-panel .section-heading {
  margin-bottom: 16px;
}

.profile-action-grid,
.profile-record-list,
.profile-health-chart__legend {
  display: grid;
  gap: 10px;
}

.profile-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-action-grid a,
.profile-manager-grid a,
.profile-record-list a {
  text-decoration: none;
}

.profile-action-grid a,
.profile-manager-grid a,
.profile-record-list a,
.profile-empty {
  border: 1px solid rgba(74, 52, 40, 0.10);
  background: #fffdf7;
}

.profile-action-grid a {
  display: grid;
  gap: 12px;
  min-height: 118px;
  padding: 15px;
  border-radius: 16px;
  color: #3b291a;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.profile-action-grid a:hover,
.profile-action-grid a:focus-visible,
.profile-manager-grid a:hover,
.profile-manager-grid a:focus-visible,
.profile-record-list a:hover,
.profile-record-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(138, 86, 0, 0.30);
  box-shadow: 0 14px 28px rgba(85, 55, 20, 0.12);
  outline: none;
}

.profile-action-grid i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff3cf;
  font-size: 20px;
}

.profile-health-chart {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-health-chart__ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 56%, transparent 57%),
    conic-gradient(
      #178234 0 var(--active-end),
      #d98900 var(--active-end) var(--attention-end),
      #b42318 var(--attention-end) 360deg
    );
  box-shadow: inset 0 0 0 1px rgba(74, 52, 40, 0.08), 0 18px 34px rgba(85, 55, 20, 0.12);
}

.profile-health-chart__ring span {
  color: #3b291a;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.profile-health-chart__ring small {
  color: #776554;
  font-weight: 900;
}

.profile-health-chart__legend span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #5f5143;
  font-size: 13px;
  font-weight: 600;
}

.profile-health-chart__legend i {
  display: inline-block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: #178234;
  box-shadow: inset 0 0 0 1px rgba(74, 52, 40, 0.10);
}

.profile-health-chart__legend span:nth-child(2) i {
  background: #d98900;
}

.profile-health-chart__legend span:nth-child(3) i {
  background: #b42318;
}

.profile-health-chart__legend span:nth-child(4) i {
  background: #8a5600;
}

.profile-record-list a,
.profile-empty {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border-radius: 14px;
}

.profile-record-list > a > i {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.profile-record-list strong {
  display: block;
  color: #3b291a;
}

.profile-record-list small,
.profile-empty {
  color: #776554;
  font-weight: 750;
}

.profile-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.profile-manager-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px;
  border-radius: 14px;
  color: #3b291a;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.profile-manager-grid i {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(85, 55, 20, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(138, 86, 0, 0.30);
  box-shadow: 0 18px 38px rgba(85, 55, 20, 0.14);
  outline: none;
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #fff3cf;
  color: #8a5600;
  font-size: 46px;
}

.product-card__media img,
.product-card__media video,
.product-detail-gallery__main img,
.product-detail-gallery__main video,
.product-detail-gallery__thumb img,
.product-detail-gallery__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-gallery__main img,
.product-detail-gallery__main video {
  object-fit: contain;
}

.product-card__play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: #8a5600;
}

.product-card__body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.product-card h2 {
  margin: 0;
  color: #3b291a;
  font-size: 18px;
  line-height: 1.25;
}

.product-card__seller {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid rgba(138, 86, 0, 0.10);
  border-radius: 14px;
  background: #fffaf0;
  color: #5f5143;
  font-size: 13px;
  font-weight: 800;
}

.product-card__seller img,
.product-seller-card img,
.seller-photo-preview img {
  border-radius: 999px;
  object-fit: cover;
}

.product-card__seller img,
.product-card__seller-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.product-card__seller-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff3cf;
  color: #8a5600;
  font-size: 18px;
}

.product-card__seller > span:not(.product-card__seller-avatar) {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #3b291a;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__seller .bi-patch-check-fill {
  color: #138a45;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.product-detail-gallery,
.product-detail-summary,
.product-seller-panel {
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(85, 55, 20, 0.08);
}

.product-detail-gallery {
  overflow: hidden;
}

.product-detail-gallery__main,
.product-detail-gallery__empty {
  display: grid;
  place-items: center;
  min-height: 420px;
  max-height: min(62vh, 560px);
  background: #fff3cf;
  color: #8a5600;
  font-size: 72px;
}

.product-detail-gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(82px, 18vw, 112px);
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 10px;
  scroll-snap-type: x proximity;
  background: #fffdf7;
  scrollbar-color: #c68a2a #fff3cf;
}

.product-detail-gallery__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff3cf;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-detail-gallery__thumb:hover,
.product-detail-gallery__thumb:focus-visible,
.product-detail-gallery__thumb.is-active {
  border-color: #8a5600;
  box-shadow: 0 8px 18px rgba(85, 55, 20, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.product-detail-gallery__thumb span {
  position: absolute;
  inset: auto 8px 8px auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #8a5600;
}

.product-detail-summary {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(20px, 4vw, 36px);
}

.product-detail-summary h1 {
  margin: 0;
  color: #3b291a;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.product-detail-summary p {
  margin: 0;
  color: #5f5143;
  line-height: 1.65;
}

.product-detail-price {
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff3cf;
  color: #6d4200;
  font-size: 20px;
  font-weight: 900;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.product-seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(138, 86, 0, 0.10);
  border-radius: 16px;
  background: #fffaf0;
}

.product-seller-card img,
.product-seller-card__avatar,
.seller-photo-preview img {
  width: 64px;
  height: 64px;
}

.product-seller-card__avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff3cf;
  color: #8a5600;
  font-size: 28px;
}

.product-seller-card strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3b291a;
}

.product-seller-card p {
  margin: 4px 0 0;
}

.product-seller-card__verified {
  color: #138a45;
}

.seller-photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 14px;
  background: #fff8e4;
  color: #3b291a;
  font-weight: 900;
}

.seller-profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.seller-profile-preview-card {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(85, 55, 20, 0.10);
}

.seller-profile-preview-card__photo,
.seller-list-card__photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #fff3cf;
  color: #8a5600;
}

.seller-profile-preview-card__photo {
  width: 112px;
  height: 112px;
  font-size: 48px;
}

.seller-profile-preview-card__photo img,
.seller-list-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-profile-preview-card h1,
.seller-list-card h2 {
  margin: 0;
  color: #3b291a;
}

.seller-profile-preview-card p,
.seller-list-card p {
  margin: 6px 0 0;
  color: #5f5143;
  line-height: 1.55;
}

.seller-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seller-profile-stats div {
  padding: 14px;
  border-radius: 16px;
  background: #fff8e4;
}

.seller-profile-stats strong {
  display: block;
  color: #3b291a;
  font-size: 28px;
  line-height: 1;
}

.seller-profile-stats span,
.seller-profile-preview-card__meta span {
  color: #6d5a47;
  font-size: 13px;
  font-weight: 800;
}

.seller-profile-preview-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-profile-preview-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fffaf0;
}

.seller-profile-preview-card__meta .is-verified,
.seller-list-card .bi-patch-check-fill {
  color: #138a45;
}

.seller-profile-form-card {
  padding: clamp(18px, 3vw, 28px);
}

.seller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.seller-list-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(85, 55, 20, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.seller-list-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 86, 0, 0.22);
  box-shadow: 0 14px 28px rgba(85, 55, 20, 0.11);
}

.seller-list-card__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.seller-list-card__photo {
  width: 54px;
  height: 54px;
  font-size: 24px;
}

.seller-list-card__identity {
  min-width: 0;
}

.seller-list-card h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-list-card__bio {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.seller-list-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-list-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #fff8e4;
  color: #5f5143;
  font-size: 12px;
  font-weight: 800;
}

.seller-list-card__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.seller-list-card__products a {
  display: grid;
  gap: 4px;
  color: #3b291a;
  text-decoration: none;
}

.seller-list-card__products img,
.seller-list-card__products span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #fff3cf;
  color: #8a5600;
  object-fit: cover;
}

.seller-list-card__products img {
  width: 100%;
  height: 100%;
}

.seller-list-card__products small {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-list-card__empty-products {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff8e4;
  color: #7a6654;
  font-size: 12px;
  font-weight: 800;
}

.seller-list-card__actions {
  display: flex;
  justify-content: flex-end;
}

.seller-list-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a5600;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.seller-list-card__link:hover {
  color: #5f3a00;
  text-decoration: underline;
}

.landing-product-thumb {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff3cf;
  color: #8a5600;
}

.landing-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 620px) {
  .profile-hero {
    padding: 20px;
    border-radius: 16px;
  }

  .profile-hero__actions,
  .profile-hero__actions .button,
  .profile-hero__actions .submit {
    width: 100%;
  }

  .profile-kpi-grid,
  .profile-action-grid,
  .profile-health-chart {
    grid-template-columns: 1fr;
  }

  .profile-health-chart__ring {
    justify-self: center;
  }

  .managed-record {
    align-items: stretch;
    flex-direction: column;
  }

  .managed-list-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .advisory-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .managed-list-hero .submit {
    width: fit-content;
  }

  .managed-apiary-grid {
    grid-template-columns: 1fr;
  }

  .managed-lesson-grid {
    grid-template-columns: 1fr;
  }

  .managed-apiary-meta,
  .managed-apiary-actions,
  .managed-lesson-actions {
    grid-template-columns: 1fr;
  }

  .managed-apiary-actions .danger-link,
  .managed-lesson-actions .danger-link {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .product-detail-hero,
  .product-detail-grid,
  .seller-profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-hero,
  .profile-main-grid {
    grid-template-columns: 1fr;
  }

  .profile-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hive-detail-hero,
  .hive-detail-layout {
    grid-template-columns: 1fr;
  }

  .hive-detail-qr {
    justify-content: start;
  }

  .hive-side-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .hive-detail-hero {
    gap: 20px;
  }

  .hive-detail-actions,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .hive-detail-actions .submit,
  .hive-detail-actions .button,
  .section-heading .button {
    width: 100%;
  }

  .page-hive-detail .timeline-item {
    grid-template-columns: 1fr;
  }

  .page-hive-detail .timeline-item::before {
    display: none;
  }
}

/* =========================
   Public landing page
   ========================= */

.page-landing {
  background:
    url("data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b97900' stroke-opacity='0.11' stroke-width='1.2'%3E%3Cpath d='M24 2 48 16 48 44 24 58 0 44 0 16Z'/%3E%3Cpath d='M72 2 96 16 96 44 72 58 48 44 48 16Z'/%3E%3Cpath d='M48 44 72 58 72 86 48 100 24 86 24 58Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #fffaf0, #fff1c7 48%, #fff9ed);
  background-size: 96px 84px, auto;
  background-attachment: fixed;
}

.landing-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.landing-hero__image,
.landing-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-hero__image {
  object-fit: cover;
}

.landing-hero__shade {
  background:
    url("data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1.2'%3E%3Cpath d='M24 2 48 16 48 44 24 58 0 44 0 16Z'/%3E%3Cpath d='M72 2 96 16 96 44 72 58 48 44 48 16Z'/%3E%3Cpath d='M48 44 72 58 72 86 48 100 24 86 24 58Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(39, 28, 18, 0.82), rgba(39, 28, 18, 0.52) 42%, rgba(39, 28, 18, 0.18)),
    linear-gradient(180deg, rgba(39, 28, 18, 0.38), rgba(39, 28, 18, 0.08) 48%, rgba(255, 250, 240, 0.98) 100%);
  background-size: 96px 84px, auto, auto;
}

.landing-nav,
.landing-hero__content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-nav {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-brand,
.landing-nav__links,
.landing-actions {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.landing-brand__logo {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(39, 28, 18, 0.18);
}

.landing-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-nav__links {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav__links a {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.landing-nav__links .landing-nav__button {
  background: #fff3cf;
  color: #4a3428;
}

.landing-hero__content {
  display: grid;
  gap: 18px;
  max-width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100% - 1160px) / 2));
  padding: 140px 0 110px;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 243, 207, 0.16);
  color: #fff3cf;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: 56px;
  line-height: 1.06;
}

.landing-hero__content > p:not(.landing-eyebrow) {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.landing-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.landing-primary,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
}

.landing-primary {
  background: linear-gradient(135deg, #f6b21a, #d98900);
  color: #3b291a;
}

.landing-secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.landing-band {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0;
}

.landing-snapshot {
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.landing-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.landing-section-head h2 {
  max-width: 760px;
  margin: 0;
  color: #3b291a;
  font-size: 30px;
  line-height: 1.18;
}

.landing-section-head .landing-eyebrow {
  background: linear-gradient(135deg, #f6b21a, #d98900);
  color: #3b291a;
}

.landing-widget-grid,
.landing-card-grid {
  display: grid;
  gap: 14px;
}

.landing-widget-grid {
  grid-template-columns: repeat(4, 1fr);
}

.landing-card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.landing-widget,
.landing-feature-card,
.landing-list a {
  border: 1px solid rgba(74, 52, 40, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(85, 55, 20, 0.10);
}

.landing-widget {
  display: grid;
  gap: 8px;
  border-radius: 20px;
  padding: 18px;
}

.landing-widget i,
.landing-feature-card > i,
.landing-list i {
  color: #d98900;
}

.landing-widget span {
  color: #776554;
  font-weight: 800;
}

.landing-widget strong {
  color: #3b291a;
  font-size: 30px;
  line-height: 1;
}

.landing-feature-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  border-radius: 20px;
  padding: 18px;
}

.landing-feature-card > i {
  font-size: 28px;
}

.landing-feature-card h3 {
  margin: 0;
  color: #3b291a;
  font-size: 20px;
}

.landing-feature-card p {
  font-size: 14px;
}

.landing-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
}

.landing-apiary-map {
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 40, 0.12);
  box-shadow: 0 16px 34px rgba(85, 55, 20, 0.10);
  background: #fff8e4;
}

.landing-map-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  background: rgba(255, 255, 255, 0.88);
}

.landing-map-panel h3 {
  margin: 0;
  color: #3b291a;
  font-size: 17px;
}

.landing-map-panel strong {
  font-size: 18px;
  color: #8a5600;
  line-height: 1;
}

.landing-map-panel span {
  font-weight: 900;
  color: #3b291a;
}

.landing-map-panel p {
  margin: 0;
  color: #776554;
  line-height: 1.55;
}

.landing-region-stats {
  display: grid;
  gap: 8px;
}

.landing-region-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 52, 40, 0.10);
}

.landing-region-stats em {
  color: #3b291a;
  font-style: normal;
  font-weight: 800;
}

.landing-apiary-marker span,
.landing-bloom-marker span {
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 8px 18px rgba(39, 28, 18, 0.28);
}

.landing-apiary-marker span {
  width: 38px;
  height: 38px;
  background: #8a5600;
  font-size: 19px;
}

.landing-bloom-marker span {
  width: 34px;
  height: 34px;
  background: #2f9e44;
}

.bloom-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.bloom-report-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 10px 24px rgba(85, 55, 20, 0.08);
}

.bloom-report-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #e9f8ec;
  color: #2f9e44;
  font-size: 22px;
}

.bloom-report-card h2 {
  margin: 0;
  color: #3b291a;
  font-size: 17px;
}

.bloom-report-card p,
.bloom-report-card span {
  margin: 4px 0 0;
  color: #776554;
  font-size: 13px;
  font-weight: 750;
}

.bloom-report-card__actions {
  display: flex;
  gap: 6px;
}

.bloom-report-card__actions .button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.page-bloom-reports .empty + .submit,
.page-bloom-reports .empty + .button {
  margin-top: 14px;
}

.page-bloom-reports .panel .submit,
.page-bloom-reports .panel .button {
  width: fit-content;
}

.landing-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.landing-list {
  display: grid;
  gap: 10px;
}

.landing-list a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 10px;
  align-items: center;
  border-radius: 16px;
  padding: 12px;
}

.landing-list i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff3cf;
}

.landing-list span {
  color: #3b291a;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.landing-list small {
  color: #776554;
  font-weight: 700;
}

.landing-section-head--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.landing-module {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: 22px;
  align-items: start;
}

.landing-module__intro {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(85, 55, 20, 0.08);
}

.landing-module__intro h2,
.landing-module__intro p {
  margin: 0;
}

.landing-module__intro h2 {
  color: #3b291a;
  font-size: 28px;
  line-height: 1.16;
}

.landing-module__intro p {
  color: #5f5143;
  line-height: 1.65;
}

.landing-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff3cf;
  color: #6d4200;
  font-weight: 900;
}

.landing-inline-link:hover,
.landing-inline-link:focus-visible {
  background: #ffe8a6;
  outline: none;
}

.landing-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-modern-list,
.landing-task-grid,
.landing-product-strip,
.landing-learning-grid,
.landing-trace-grid,
.landing-community-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.landing-modern-list,
.landing-product-strip {
  grid-template-columns: 1fr;
}

.landing-task-grid,
.landing-learning-grid,
.landing-trace-grid,
.landing-community-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-modern-item,
.landing-task-card,
.landing-product-card,
.landing-learning-card,
.landing-trace-card,
.landing-community-card {
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(85, 55, 20, 0.09);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.landing-modern-item:hover,
.landing-task-card:hover,
.landing-product-card:hover,
.landing-learning-card:hover,
.landing-trace-card:hover,
.landing-community-card:hover,
.landing-modern-item:focus-visible,
.landing-task-card:focus-visible,
.landing-product-card:focus-visible,
.landing-learning-card:focus-visible,
.landing-trace-card:focus-visible,
.landing-community-card:focus-visible {
  border-color: rgba(217, 137, 0, 0.34);
  box-shadow: 0 18px 38px rgba(85, 55, 20, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.landing-modern-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.landing-modern-item__icon,
.landing-product-thumb,
.landing-learning-card i,
.landing-community-card i {
  display: grid;
  place-items: center;
  background: #fff3cf;
  color: #8a5600;
}

.landing-modern-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 24px;
}

.landing-modern-item strong,
.landing-task-card strong,
.landing-product-card strong,
.landing-learning-card strong,
.landing-trace-card strong,
.landing-community-card strong {
  display: block;
  color: #3b291a;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.landing-modern-item small,
.landing-task-card small,
.landing-product-card small,
.landing-learning-card small,
.landing-trace-card small,
.landing-community-card small {
  display: block;
  margin-top: 5px;
  color: #776554;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.landing-task-card,
.landing-learning-card,
.landing-trace-card,
.landing-community-card {
  display: grid;
  align-content: start;
  min-height: 150px;
  padding: 16px;
}

.landing-task-card span,
.landing-trace-card span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff3cf;
  color: #6d4200;
  font-size: 12px;
  font-weight: 900;
}

.landing-product-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.landing-product-thumb {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 16px;
  font-size: 28px;
}

.landing-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-product-card__body {
  min-width: 0;
}

.landing-learning-card i,
.landing-community-card i {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 15px;
  font-size: 22px;
}

.landing-module--advisory .landing-module__intro,
.landing-module--advisory .landing-modern-item__icon {
  background: #f0f7ff;
  color: #1f5f8b;
}

.landing-module--seasonal .landing-module__intro,
.landing-module--seasonal .landing-task-card span {
  background: #edf8ef;
  color: #2f6f3e;
}

.landing-module--market .landing-module__intro {
  background: #fff7e6;
}

.landing-module--learning .landing-module__intro,
.landing-module--learning .landing-learning-card i {
  background: #f2f0ff;
  color: #5642a6;
}

.landing-module--traceability .landing-module__intro,
.landing-module--traceability .landing-trace-card span {
  background: #eef7f5;
  color: #236b63;
}

.landing-module--community .landing-module__intro,
.landing-module--community .landing-community-card i {
  background: #fff0ea;
  color: #94451d;
}

@media (max-width: 900px) {
  .apiary-form-layout {
    grid-template-columns: 1fr;
  }

  .apiary-form-map {
    min-height: 380px;
  }

  .apiary-location-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .apiary-location-search input,
  .apiary-location-search .button {
    width: auto;
  }

  .apiary-public-hero,
  .apiary-public-layout {
    grid-template-columns: 1fr;
  }

  .apiary-public-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .apiary-public-stats {
    width: 100%;
  }

  .apiary-public-map {
    height: 340px;
  }

  .landing-nav {
    align-items: center;
    flex-direction: row;
  }

  .landing-nav__links {
    justify-content: flex-end;
  }

  .landing-hero h1 {
    font-size: 42px;
  }

  .landing-widget-grid,
  .landing-card-grid,
  .landing-columns,
  .landing-module,
  .landing-map-shell {
    grid-template-columns: 1fr 1fr;
  }

  .landing-map-shell,
  .landing-module {
    grid-template-columns: 1fr;
  }

  .landing-module__intro {
    position: static;
  }

  .landing-task-grid,
  .landing-learning-grid,
  .landing-trace-grid,
  .landing-community-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .apiary-map-panel {
    padding: 14px;
  }

  .apiary-map-panel .section-heading {
    margin-bottom: 10px;
  }

  .apiary-map-panel .section-heading h2 {
    font-size: 18px;
  }

  .apiary-map-panel .section-heading p {
    font-size: 13px;
    line-height: 1.45;
  }

  .apiary-form-map {
    min-height: 300px;
  }

  .apiary-location-search {
    gap: 8px;
    margin-top: 10px;
  }

  .apiary-location-search input {
    flex-basis: auto;
    min-width: 0;
    min-height: 40px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .apiary-location-search .button,
  .apiary-map-panel .compact-actions .button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .apiary-map-panel .compact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
  }

  .apiary-map-panel .compact-actions .button {
    width: 100%;
    min-width: 0;
  }

  .profile-kpi-grid,
  .profile-action-grid,
  .profile-health-chart {
    grid-template-columns: 1fr;
  }

  .apiary-public-hero {
    padding: 20px;
    border-radius: 16px;
  }

  .apiary-public-stats {
    grid-template-columns: 1fr 1fr;
  }

  .apiary-public-info__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .apiary-public-media__grid {
    grid-template-columns: 1fr;
  }

  .media-lightbox {
    padding: 0;
  }

  .media-lightbox__dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .media-lightbox__stage {
    padding: 10px 54px;
  }

  .media-lightbox__nav {
    width: 42px;
    height: 62px;
    font-size: 24px;
  }

  .media-lightbox__nav--prev {
    left: 8px;
  }

  .media-lightbox__nav--next {
    right: 8px;
  }

  .landing-hero {
    min-height: 100vh;
  }

  .landing-hero__shade {
    background:
      url("data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1.2'%3E%3Cpath d='M24 2 48 16 48 44 24 58 0 44 0 16Z'/%3E%3Cpath d='M72 2 96 16 96 44 72 58 48 44 48 16Z'/%3E%3Cpath d='M48 44 72 58 72 86 48 100 24 86 24 58Z'/%3E%3C/g%3E%3C/svg%3E"),
      linear-gradient(90deg, rgba(39, 28, 18, 0.86), rgba(39, 28, 18, 0.58)),
      linear-gradient(180deg, rgba(39, 28, 18, 0.36), rgba(255, 250, 240, 0.98) 100%);
    background-size: 96px 84px, auto, auto;
  }

  .landing-nav,
  .landing-hero__content,
  .landing-band {
    width: min(100% - 28px, 1160px);
  }

  .landing-hero__content {
    margin: 0 auto;
    padding-top: 210px;
  }

  .landing-hero h1 {
    font-size: 34px;
  }

  .landing-widget-grid,
  .landing-card-grid,
  .landing-columns,
  .landing-task-grid,
  .landing-learning-grid,
  .landing-trace-grid,
  .landing-community-grid {
    grid-template-columns: 1fr;
  }

  .landing-section-head--split {
    grid-template-columns: 1fr;
  }

  .landing-module__intro {
    padding: 18px;
  }

  .landing-module__intro h2 {
    font-size: 24px;
  }

  .landing-product-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .landing-product-thumb {
    width: 64px;
    height: 64px;
  }

  .landing-apiary-map {
    min-height: 340px;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .apiary-location-search,
  .apiary-map-panel .compact-actions {
    grid-template-columns: 1fr;
  }

  .apiary-location-search .button,
  .apiary-map-panel .compact-actions .button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .bloom-report-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .bloom-report-card__actions {
    grid-column: 2;
    margin-top: 8px;
  }
}

/* Refined public landing layout */
.landing-shell {
  overflow: hidden;
}

.landing-hero--refined {
  min-height: 82vh;
}

.landing-hero--refined .landing-hero__shade {
  background:
    url("data:image/svg+xml,%3Csvg width='96' height='84' viewBox='0 0 96 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1.2'%3E%3Cpath d='M24 2 48 16 48 44 24 58 0 44 0 16Z'/%3E%3Cpath d='M72 2 96 16 96 44 72 58 48 44 48 16Z'/%3E%3Cpath d='M48 44 72 58 72 86 48 100 24 86 24 58Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(36, 25, 16, 0.84), rgba(36, 25, 16, 0.48) 45%, rgba(36, 25, 16, 0.20)),
    linear-gradient(180deg, rgba(36, 25, 16, 0.24), rgba(255, 250, 240, 0.98) 100%);
  background-size: 96px 84px, auto, auto;
}

.landing-hero__content--refined {
  max-width: min(820px, calc(100% - 40px));
  padding-bottom: 150px;
}

.landing-hero__content--refined h1 {
  font-size: clamp(38px, 6vw, 70px);
  letter-spacing: 0;
}

.landing-overview,
.landing-public-board,
.landing-content-row {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-overview {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: -70px;
  padding: 0 0 34px;
}

.landing-stat-tile {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 96px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(85, 55, 20, 0.12);
}

.landing-stat-tile i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff3cf;
  color: #8a5600;
  font-size: 22px;
}

.landing-stat-tile span {
  color: #5f5143;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.landing-stat-tile strong {
  color: #3b291a;
  font-size: 30px;
  line-height: 1;
}

.landing-overview--links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-entry-card {
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 104px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-entry-card:hover,
.landing-entry-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(138, 86, 0, 0.24);
  box-shadow: 0 22px 48px rgba(85, 55, 20, 0.16);
}

.landing-entry-card small {
  grid-column: 2;
  color: #776554;
  font-weight: 750;
  line-height: 1.35;
}

.landing-entry-card--login i {
  background: #eef7f5;
  color: #236b63;
}

.landing-public-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 320px;
  gap: 18px;
  align-items: stretch;
  padding: 22px 0 34px;
}

.landing-public-board--map {
  align-items: start;
  padding-top: 18px;
  padding-bottom: 44px;
}

.landing-board__main,
.landing-board__side,
.landing-panel {
  min-width: 0;
}

.landing-board__main {
  display: grid;
  gap: 16px;
}

.landing-board__main .landing-section-head {
  margin-bottom: 0;
}

.landing-section-head p:not(.landing-eyebrow) {
  max-width: 700px;
  margin: 0;
  color: #5f5143;
  line-height: 1.65;
}

.landing-apiary-map--large {
  min-height: 560px;
  border-radius: 20px;
}

.landing-map-feature {
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(85, 55, 20, 0.11);
}

.landing-section-head--map {
  display: grid;
  gap: 8px;
}

.landing-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 20px;
  background: #f6efe3;
}

.landing-map-frame .landing-apiary-map {
  border-radius: 0;
  box-shadow: none;
}

.landing-map-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 32px);
  pointer-events: none;
}

.landing-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #3b291a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(85, 55, 20, 0.12);
}

.landing-map-legend i {
  color: #8a5600;
}

.landing-board__side--map {
  position: sticky;
  top: 18px;
}

.landing-board__side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.landing-side-panel,
.landing-panel {
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 16px 36px rgba(85, 55, 20, 0.10);
}

.landing-side-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.landing-side-panel p {
  margin: 0;
  color: #5f5143;
  line-height: 1.55;
}

.landing-side-panel h3 {
  margin: 0;
  color: #3b291a;
  font-size: 18px;
}

.landing-focus-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #f0f7ff;
  color: #1f5f8b;
}

.landing-focus-card i {
  font-size: 24px;
}

.landing-focus-card strong {
  color: #24384a;
  line-height: 1.35;
}

.landing-focus-card small {
  color: #53697a;
  font-weight: 800;
}

.landing-content-row {
  display: grid;
  gap: 18px;
  padding: 18px 0;
}

.landing-module-section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
}

.landing-module-section .landing-section-head {
  margin-bottom: 18px;
}

.landing-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-module-grid--mentorship {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-module-section--advisory .landing-modern-item__icon {
  background: #f0f7ff;
  color: #1f5f8b;
}

.landing-module-section--seasonal .landing-task-card span {
  background: #edf8ef;
  color: #2f6f3e;
}

.landing-module-section--learning .landing-learning-card i {
  background: #f2f0ff;
  color: #5642a6;
}

.landing-module-section--community .landing-community-card i {
  background: #fff0ea;
  color: #94451d;
}

.landing-module-section--mentorship .landing-modern-item__icon {
  background: #eef7f5;
  color: #236b63;
}

.landing-content-row--split,
.landing-content-row--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.landing-panel__head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.landing-panel__head > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff3cf;
  color: #8a5600;
  font-size: 26px;
}

.landing-panel__head h2,
.landing-panel__head p {
  margin: 0;
}

.landing-panel__head h2 {
  color: #3b291a;
  font-size: 26px;
  line-height: 1.18;
}

.landing-panel__head .landing-eyebrow {
  margin-bottom: 7px;
}

.landing-feed,
.landing-task-list,
.landing-learning-list,
.landing-horizontal-cards,
.landing-product-strip--cards {
  display: grid;
  gap: 10px;
}

.landing-feed a,
.landing-task-list a,
.landing-learning-list a {
  display: grid;
  gap: 4px;
  min-height: 70px;
  border: 1px solid rgba(74, 52, 40, 0.08);
  border-radius: 15px;
  padding: 13px;
  background: rgba(255, 250, 240, 0.72);
}

.landing-feed strong,
.landing-task-list strong,
.landing-learning-list strong,
.landing-product-card strong,
.landing-trace-card strong,
.landing-community-card strong {
  color: #3b291a;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.landing-feed small,
.landing-task-list small,
.landing-learning-list small,
.landing-product-card small,
.landing-trace-card small,
.landing-community-card small {
  color: #776554;
  font-weight: 750;
  line-height: 1.45;
}

.landing-task-list a {
  grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
  align-items: center;
}

.landing-task-list span {
  grid-row: span 2;
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 9px;
  background: #edf8ef;
  color: #2f6f3e;
  font-size: 12px;
  font-weight: 900;
}

.landing-learning-list a {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
}

.landing-learning-list i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f2f0ff;
  color: #5642a6;
}

.landing-horizontal-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-panel--advisory .landing-panel__head > span {
  background: #f0f7ff;
  color: #1f5f8b;
}

.landing-panel--seasonal .landing-panel__head > span {
  background: #edf8ef;
  color: #2f6f3e;
}

.landing-panel--market .landing-panel__head > span {
  background: #fff3cf;
  color: #8a5600;
}

.landing-panel--learning .landing-panel__head > span {
  background: #f2f0ff;
  color: #5642a6;
}

.landing-panel--traceability .landing-panel__head > span {
  background: #eef7f5;
  color: #236b63;
}

.landing-panel--community .landing-panel__head > span {
  background: #fff0ea;
  color: #94451d;
}

@media (max-width: 980px) {
  .landing-overview,
  .landing-public-board,
  .landing-content-row--split,
  .landing-content-row--wide {
    grid-template-columns: 1fr 1fr;
  }

  .landing-public-board,
  .landing-content-row--split,
  .landing-content-row--wide {
    grid-template-columns: 1fr;
  }

  .landing-board__side {
    grid-template-columns: 1fr 1fr;
  }

  .landing-horizontal-cards {
    grid-template-columns: 1fr 1fr;
  }

  .landing-module-grid,
  .landing-module-grid--mentorship {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-board__side--map {
    position: static;
  }
}

@media (max-width: 620px) {
  .landing-nav {
    top: 16px;
    width: min(100% - 24px, 1160px);
    gap: 10px;
  }

  .landing-brand {
    min-width: 0;
    font-size: 20px;
  }

  .landing-brand__logo {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .landing-nav__links {
    flex: 0 0 auto;
  }

  .landing-nav__links a {
    min-height: 38px;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .landing-overview,
  .landing-board__side,
  .landing-horizontal-cards,
  .landing-module-grid,
  .landing-module-grid--mentorship {
    grid-template-columns: 1fr;
  }

  .landing-hero--refined {
    min-height: 88vh;
  }

  .landing-hero__content--refined {
    padding-top: 180px;
    padding-bottom: 110px;
  }

  .landing-public-board,
  .landing-content-row,
  .landing-overview {
    width: min(100% - 28px, 1160px);
  }

  .landing-overview {
    margin-top: -48px;
  }

  .landing-stat-tile {
    min-height: 82px;
  }

  .landing-entry-card {
    min-height: 88px;
  }

  .landing-map-feature {
    padding: 14px;
    border-radius: 18px;
  }

  .landing-apiary-map--large {
    min-height: 420px;
    border-radius: 16px;
  }

  .landing-map-frame .landing-apiary-map {
    min-height: 420px;
  }

  .landing-map-legend {
    left: 10px;
    bottom: 10px;
  }

  .landing-map-legend span {
    padding: 7px 9px;
    font-size: 12px;
  }

  .landing-module-section {
    width: min(100% - 28px, 1160px);
    padding: 26px 0;
  }

  .landing-panel {
    padding: 16px;
  }

  .landing-panel__head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .landing-panel__head > span {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .landing-panel__head h2 {
    font-size: 22px;
  }

  .landing-task-list a {
    grid-template-columns: 1fr;
  }

  .landing-task-list span {
    grid-row: auto;
    width: fit-content;
  }
}

/* Shared contrast polish for public cards and muted UI copy. */
:root {
  --gb-surface-readable: rgba(255, 253, 247, 0.96);
  --gb-surface-soft: rgba(255, 249, 232, 0.94);
  --gb-text-strong: #2f2116;
  --gb-text-muted: #564638;
  --gb-border-readable: rgba(74, 52, 40, 0.18);
}

.hero,
.panel,
.card,
.stat,
.metric-card,
.apiary-card,
.hive-card,
.product-card,
.seller-card,
.seller-list-card,
.batch-card,
.lesson-card,
.group-card,
.mentor-card,
.bloom-card,
.landing-stat-tile,
.landing-board__main,
.landing-side-panel,
.landing-focus-card,
.landing-panel,
.landing-feed a,
.landing-task-list a,
.landing-learning-list a,
.landing-product-card,
.landing-trace-card,
.landing-community-card {
  background-color: var(--gb-surface-readable);
  border-color: var(--gb-border-readable);
  color: var(--gb-text-strong);
}

.hero p,
.panel p,
.card p,
.stat span,
.meta,
.muted,
.hint,
.lead,
.summary,
.card-meta,
.small-muted,
.form-help,
.landing-section-head p:not(.landing-eyebrow),
.landing-feed small,
.landing-task-list small,
.landing-learning-list small,
.landing-product-card small,
.landing-trace-card small,
.landing-community-card small,
.product-card p,
.seller-card p,
.seller-list-card p,
.apiary-card p,
.hive-card p,
.batch-card p,
.lesson-card p,
.group-card p,
.mentor-card p,
.bloom-card p {
  color: var(--gb-text-muted);
}

.badge,
.pill,
.status-pill,
.tag,
.chip,
.landing-eyebrow,
.landing-task-list span,
.landing-trace-card span {
  background-color: #fff0bd;
  color: #5f3a00;
}

.landing-nav__links a {
  color: #fff;
  background: rgba(47, 33, 22, 0.28);
  border-color: rgba(255, 255, 255, 0.38);
  text-shadow: 0 1px 2px rgba(47, 33, 22, 0.35);
}

.landing-nav__links .landing-nav__button,
.landing-nav__links a:hover,
.landing-nav__links a:focus-visible {
  color: var(--gb-text-strong);
  background: #fff3cf;
  border-color: rgba(255, 243, 207, 0.92);
  text-shadow: none;
}

.actions .button,
.actions button.button,
.filters .button {
  color: var(--gb-text-strong);
}

.button.secondary,
.button.ghost,
.filters select,
.filters input {
  color: var(--gb-text-strong);
  background-color: var(--gb-surface-soft);
  border-color: var(--gb-border-readable);
}

.topbar .brand,
.topbar .brand span,
.brand,
.brand span {
  color: var(--gb-text-strong);
}

.site-brand {
  min-width: 0;
  gap: 10px;
  color: var(--gb-text-strong);
  text-decoration: none;
}

.site-brand__logo {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(74, 52, 40, 0.12);
  box-shadow: 0 10px 22px rgba(39, 28, 18, 0.12);
}

.site-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-brand__name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.site-brand__section {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--gb-text-muted);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.site-brand__section::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 22px;
  margin: 0 2px 0 4px;
  background: rgba(74, 52, 40, 0.2);
}

.auth-header .site-brand {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.topbar .site-brand + .back {
  margin-right: auto;
}

.group-detail-page {
  display: grid;
  gap: 20px;
}

.group-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(74, 52, 40, 0.14);
  border-radius: 28px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 250, 236, 0.98), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top right, rgba(246, 178, 26, 0.18), transparent 38%);
  box-shadow: 0 22px 58px rgba(85, 55, 20, 0.14);
}

.group-detail-hero__main {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.group-detail-hero__icon,
.group-detail-panel__head > span,
.group-detail-empty i {
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #fff3cf;
  color: #8a5600;
}

.group-detail-hero__icon {
  width: 76px;
  height: 76px;
  font-size: 34px;
}

.group-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-success {
  background: #edf8ef;
  color: #2f6f3e;
}

.group-detail-hero h1 {
  margin: 0;
  color: #2f2116;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.group-detail-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #564638;
  font-size: 17px;
  line-height: 1.65;
}

.group-detail-member-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.group-detail-member-actions form {
  margin: 0;
}

.group-detail-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.group-detail-summary div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.group-detail-summary strong {
  color: #2f2116;
  font-size: 28px;
  line-height: 1;
}

.group-detail-summary span {
  color: #564638;
  font-size: 13px;
  font-weight: 850;
}

.group-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 253, 247, 0.84);
}

.group-detail-members {
  gap: 14px;
}

.group-member-add-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, auto) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 18px;
  padding: 12px;
  background: #fff8e4;
}

.group-member-add-form input,
.group-member-add-form select,
.group-member-role-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(74, 52, 40, 0.18);
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  color: #2f2116;
}

.group-member-list {
  display: grid;
  gap: 10px;
}

.group-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.group-member-row strong,
.group-member-row span {
  display: block;
}

.group-member-row strong {
  color: #2f2116;
  line-height: 1.3;
}

.group-member-row span {
  margin-top: 3px;
  color: #564638;
  font-size: 13px;
  font-weight: 800;
}

.group-member-row form {
  margin: 0;
}

.group-member-role-form {
  display: grid;
  grid-template-columns: minmax(140px, auto) auto;
  gap: 8px;
  align-items: center;
}

.group-request-reject-form {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
}

.group-request-blacklist {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #564638;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.group-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.group-detail-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(74, 52, 40, 0.14);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 18px 42px rgba(85, 55, 20, 0.1);
}

.group-detail-panel__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.group-detail-panel__head > span {
  width: 54px;
  height: 54px;
  font-size: 24px;
}

.group-detail-panel__head h2,
.group-detail-panel__head p {
  margin: 0;
}

.group-detail-panel__head h2 {
  color: #2f2116;
  font-size: 24px;
  line-height: 1.2;
}

.group-detail-panel__head p {
  color: #564638;
  font-size: 14px;
  line-height: 1.45;
}

.group-detail-list {
  display: grid;
  gap: 12px;
}

.group-detail-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 18px;
  padding: 15px;
  background: #fff;
}

.group-detail-card.is-hidden {
  border-style: dashed;
  border-color: rgba(119, 101, 84, 0.36);
  background: #fffaf0;
}

.group-detail-card h3,
.group-detail-card p {
  margin: 0;
}

.group-detail-card h3 {
  color: #2f2116;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.group-detail-card__body {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.group-detail-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.announcement-reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.announcement-reactions form {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin: 0;
}

.announcement-reactions span,
.reaction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(74, 52, 40, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff8e4;
  color: #5f3a00;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.announcement-reactions i {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.reaction-button {
  appearance: none;
  box-sizing: border-box;
  cursor: pointer;
  margin: 0;
}

.announcement-reactions > span {
  box-sizing: border-box;
}

.reaction-button.is-active,
.reaction-button:hover,
.reaction-button:focus-visible {
  background: #edf8ef;
  color: #2f6f3e;
  border-color: rgba(47, 111, 62, 0.28);
}

.announcement-discussion {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(74, 52, 40, 0.12);
  padding-top: 12px;
}

.announcement-discussion h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #2f2116;
  font-size: 16px;
}

.announcement-comment-form,
.announcement-reply-form {
  display: grid;
  gap: 8px;
}

.announcement-comment-form textarea,
.announcement-reply-form textarea {
  width: 100%;
  border: 1px solid rgba(74, 52, 40, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fffdf7;
  color: #2f2116;
  resize: vertical;
}

.announcement-comment-form .button,
.announcement-reply-form .button {
  justify-self: start;
}

.announcement-comment-list,
.announcement-comment__children {
  display: grid;
  gap: 10px;
}

.announcement-comment {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 16px;
  padding: 12px;
  background: #fffdf7;
}

.announcement-comment__children {
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid rgba(217, 137, 0, 0.22);
}

.announcement-comment__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.announcement-comment__meta strong {
  color: #2f2116;
}

.announcement-comment__meta span,
.announcement-empty-comment {
  color: #564638;
  font-size: 13px;
  font-weight: 800;
}

.announcement-comment p {
  margin: 0;
}

.group-detail-card p {
  color: #564638;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.group-detail-event {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  min-width: 0;
}

.group-detail-event .compact-actions {
  grid-column: 1 / -1;
}

.group-detail-event__date {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 16px;
  background: #fff3cf;
  color: #6d4200;
  text-align: center;
}

.group-detail-event__date strong {
  font-size: 23px;
  line-height: 1;
}

.group-detail-event__date span {
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.group-event-details {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  min-width: 0;
}

.group-event-details summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border: 1px solid rgba(74, 52, 40, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff8e4;
  color: #5f3a00;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.group-event-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid rgba(47, 111, 62, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf8ef;
  color: #2f6f3e;
  font-size: 13px;
  font-weight: 900;
}

.group-event-link--calendar {
  background: #fff3cf;
  color: #6d4200;
  border-color: rgba(109, 66, 0, 0.2);
}

.group-event-details summary::-webkit-details-marker {
  display: none;
}

.group-event-details[open] summary i {
  transform: rotate(180deg);
}

.group-event-details p {
  border-radius: 14px;
  padding: 10px 12px;
  background: #fffaf0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.group-detail-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(74, 52, 40, 0.22);
  border-radius: 18px;
  padding: 24px;
  background: #fff8e4;
  color: #564638;
  text-align: center;
}

.group-detail-empty i {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.group-detail-empty strong,
.group-detail-empty p {
  margin: 0;
}

.group-detail-empty strong {
  color: #2f2116;
}

@media (max-width: 900px) {
  .group-detail-hero,
  .group-detail-grid {
    grid-template-columns: 1fr;
  }

  .group-detail-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .group-detail-hero {
    padding: 16px;
    border-radius: 22px;
  }

  .group-detail-hero__main {
    grid-template-columns: 1fr;
  }

  .group-detail-hero__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 26px;
  }

  .group-detail-summary {
    grid-template-columns: 1fr;
  }

  .group-detail-actions .button {
    width: 100%;
  }

  .group-member-add-form,
  .group-member-row {
    grid-template-columns: 1fr;
  }

  .group-member-role-form {
    grid-template-columns: 1fr;
  }

  .group-request-reject-form {
    grid-template-columns: 1fr;
  }

  .group-member-add-form .button,
  .group-member-row .button,
  .group-member-role-form select,
  .group-request-reject-form .button {
    width: 100%;
  }

  .group-detail-member-actions,
  .group-detail-member-actions form,
  .group-detail-member-actions .button {
    width: 100%;
  }

  .group-detail-event {
    grid-template-columns: 1fr;
  }

  .group-detail-event__date {
    width: 58px;
  }

  .announcement-comment__children {
    margin-left: 8px;
    padding-left: 8px;
  }

  .announcement-comment-form .button,
  .announcement-reply-form .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-brand {
    gap: 8px;
  }

  .site-brand__logo {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .site-brand__name {
    font-size: 22px;
  }

  .site-brand__section {
    flex-basis: 100%;
    padding-left: 50px;
    font-size: 13px;
  }

  .site-brand__section::before {
    display: none;
  }
}

/* =========================
   Learning pages
   ========================= */

.learning-page,
.learning-detail-page {
  max-width: 1180px;
}

.learning-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
}

.learning-hero__content {
  display: grid;
  gap: 10px;
}

.learning-hero__content h2,
.learning-hero__content p {
  margin: 0;
}

.learning-hero__status {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  padding: 18px;
  background: #fffaf0;
  color: #4a3428;
  text-align: center;
}

.learning-hero__status span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6d4200;
  font-size: 13px;
  font-weight: 850;
}

.learning-hero__status strong {
  color: #2f6f3e;
  font-size: 38px;
  line-height: 1;
}

.learning-filter-panel {
  margin-bottom: 18px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 253, 247, 0.84);
}

.learning-filters {
  margin-top: 0;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.learning-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 160px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.92);
  color: #3b291a;
  box-shadow: 0 10px 24px rgba(74, 52, 40, 0.10);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.learning-card:hover,
.learning-card:focus-visible {
  border-color: rgba(138, 86, 0, 0.24);
  box-shadow: 0 16px 34px rgba(74, 52, 40, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.learning-card.is-completed {
  border-color: rgba(47, 111, 62, 0.24);
  background: linear-gradient(135deg, #f7fff8, #fffdf7);
}

.learning-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f2f0ff;
  color: #5642a6;
  font-size: 24px;
}

.learning-card__thumb {
  overflow: hidden;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fff3cf;
}

.learning-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learning-card__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.learning-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learning-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff3cf;
  color: #6d4200;
  font-size: 11px;
  font-weight: 850;
}

.learning-card__body strong {
  color: #3b291a;
  font-size: 17px;
  line-height: 1.35;
}

.learning-card__body small {
  color: #6b5b4d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.learning-card__state {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fffaf0;
  color: #8a5600;
}

.learning-card.is-completed .learning-card__state {
  background: #e9f7ea;
  color: #2f6f3e;
}

.learning-side {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
}

.learning-side-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.9);
}

.learning-side-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #3b291a;
  font-size: 18px;
}

.learning-badge-card {
  display: grid;
  gap: 5px;
  border-radius: 14px;
  padding: 12px;
  background: #fffaf0;
}

.learning-badge-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a3428;
}

.learning-badge-card p,
.learning-badge-card small,
.learning-side-card p {
  margin: 0;
  color: #6b5b4d;
  font-size: 13px;
  line-height: 1.5;
}

.learning-detail {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 18px 42px rgba(74, 52, 40, 0.12);
}

.learning-detail__media {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  border-radius: 18px;
  background: #fff3cf;
}

.learning-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learning-detail__header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.learning-detail__header .learning-card__icon {
  width: 64px;
  height: 64px;
  font-size: 28px;
}

.learning-detail__header h2,
.learning-detail__header p {
  margin: 0;
}

.learning-detail__header h2 {
  margin-top: 10px;
  color: #3b291a;
  font-size: clamp(28px, 4vw, 44px);
}

.learning-detail__header p {
  margin-top: 10px;
  color: #5f5143;
  font-size: 16px;
  line-height: 1.6;
}

.learning-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.learning-resource-link,
.learning-video-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff3cf;
  color: #6d4200;
  font-weight: 850;
}

.advisory-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.advisory-hero > div {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.advisory-location-summary {
  display: grid;
  gap: 4px;
  min-width: 150px;
  border: 1px solid rgba(74, 52, 40, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.88);
  text-align: center;
}

.advisory-location-summary span {
  color: #6b5b4d;
  font-size: 12px;
  font-weight: 750;
}

.advisory-location-summary strong {
  color: #3b291a;
  font-size: 32px;
  line-height: 1;
}

.advisory-location-summary small {
  color: #8a5600;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.advisory-sync-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  border: 1px solid rgba(19, 138, 69, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: #f3fbf4;
}

.advisory-sync-callout div,
.apiary-sync-box div {
  display: grid;
  gap: 4px;
}

.advisory-sync-callout strong,
.apiary-sync-box h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #2f6f3e;
  font-size: 15px;
}

.advisory-sync-callout span,
.apiary-sync-box p {
  margin: 0;
  color: #5f5143;
  line-height: 1.45;
}

.page-location-form .layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: start;
  margin-top: 28px;
}

.location-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.location-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.apiary-sync-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(246, 178, 26, 0.32);
  border-radius: 18px;
  padding: 14px;
  background: #fff8e6;
}

.advisory-location-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-height: 360px;
  margin-top: 24px;
  padding-right: 4px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.advisory-location-strip article {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(74, 52, 40, 0.10);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 10px 24px rgba(74, 52, 40, 0.08);
}

.advisory-location-strip strong {
  color: #3b291a;
  line-height: 1.3;
}

.advisory-location-strip small {
  color: #6b5b4d;
  font-size: 12px;
  font-weight: 650;
}

.advisory-dashboard .learning-filter-panel,
.advisory-dashboard .grid,
.advisory-dashboard .empty {
  margin-top: 28px;
}

.learning-detail__body {
  color: #3b291a;
  font-size: 16px;
  line-height: 1.85;
}

.learning-detail__body p {
  margin: 0 0 14px;
}

.learning-detail__footer {
  border-top: 1px solid rgba(74, 52, 40, 0.10);
  padding-top: 18px;
}

.learning-login-note,
.learning-detail__footer .done {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-radius: 16px;
  padding: 13px;
  background: #fffaf0;
  color: #4a3428;
}

.learning-detail__footer .done {
  background: #e9f7ea;
  color: #2f6f3e;
  font-weight: 850;
}

.learning-login-note span {
  flex: 1 1 260px;
  color: #5f5143;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .page-location-form .layout,
  .learning-hero,
  .learning-layout {
    grid-template-columns: 1fr;
  }

  .advisory-hero,
  .advisory-sync-callout,
  .apiary-sync-box {
    align-items: stretch;
    flex-direction: column;
  }

  .location-search {
    grid-template-columns: 1fr;
  }

  .location-search .button,
  .apiary-sync-box .button,
  .advisory-sync-callout .button {
    width: 100%;
  }

  .learning-side {
    position: static;
  }
}

@media (max-width: 560px) {
  .saved-list {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .advisory-location-strip {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .learning-card,
  .learning-detail__header {
    grid-template-columns: 1fr;
  }

  .learning-card__state {
    display: none;
  }

  .learning-login-note .button,
  .learning-detail__footer .submit {
    width: 100%;
  }
}

@media print {
  body.page-qr-print,
  .page-qr-print {
    background: #fff !important;
  }

  .page-qr-print .site-footer,
  .page-qr-print .qr-print-toolbar,
  .page-qr-print .qr-print-intro {
    display: none !important;
  }

  .page-qr-print .page {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .page-qr-print .qr-print-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8mm;
  }

  .page-qr-print .qr-print-card {
    border: 1px solid #cfc6ba;
    border-radius: 4mm;
    padding: 5mm;
    background: #fff;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .page-qr-print .qr-print-card img {
    width: 32mm;
    padding: 0;
  }
}
