/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --bg: #1c1408;
  --bg-soft: #2a1d0d;
  --panel: #362510e6;
  --panel-2: #4a3011;
  --text: #fff7e8;
  --muted: #dbc8ab;
  --accent: #f4b400;
  --accent-dark: #d89a00;
  --danger: #dc5b49;
  --success: #7bc96f;
  --border: #ffdfa71f;
  --dashboard-select-width: 210px;
}

* {
  box-sizing: border-box;
}

html, body {
  color: var(--text);
  background: radial-gradient(circle at 0 0, #f4b40024, #0000 28%), radial-gradient(circle at 100% 0, #7bc96f1a, #0000 22%), linear-gradient(#120c05 0%, #1c1408 100%);
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.button-link-like, a.secondary-button {
  cursor: pointer;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: .56rem .78rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.secondary-button:hover {
  transform: translateY(-1px);
  background: #fff4de1a !important;
  border-color: #ffdfa747 !important;
}

.row-actions a.secondary-button, a.secondary-button {
  justify-content: center;
  align-items: center;
  text-decoration: none;
  display: inline-flex;
}

button, input, select, textarea {
  font: inherit;
}

button, .hero-actions a, .inline-link {
  background: var(--accent);
  color: #1b1200;
  cursor: pointer;
  border: none;
  border-radius: 9px;
  padding: .56rem .78rem;
  font-weight: 700;
}

button:hover, .hero-actions a:hover, .inline-link:hover {
  background: var(--accent-dark);
}

.secondary-button, .secondary-link {
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  background: none !important;
}

.center-page, .landing-page {
  place-items: center;
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 1.75rem;
  display: grid;
}

.page-with-corner-switcher {
  position: relative;
}

.modal-overlay {
  z-index: 1000;
  background: #0f172a99;
  justify-content: center;
  align-items: center;
  padding: 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.admin-page-offset {
  padding-top: 3.4rem;
}

.setup-wrapper {
  justify-items: center;
  gap: .75rem;
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
}

.auth-logo-wrap {
  justify-content: center;
  align-items: center;
  margin-bottom: .35rem;
  display: flex;
}

.auth-logo {
  object-fit: contain;
  filter: drop-shadow(0 12px 28px #00000047);
  width: 120px;
  height: 120px;
}

.center-text {
  text-align: center;
}

.text-link {
  color: #ffd36a;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.auth-toggle {
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  width: min(100%, 360px);
  display: grid;
}

.toggle-button {
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff0d60f;
}

.toggle-button.active {
  background: var(--accent);
  color: #1b1200;
  border-color: #0000;
}

.inline-text-button {
  color: #ffd36a;
  background: none;
  border: none;
  padding: 0;
  font-weight: 700;
}

.inline-text-button:hover {
  background: none;
  text-decoration: underline;
}

.corner-language-switcher {
  z-index: 20;
  align-items: center;
  gap: .45rem;
  display: flex;
  position: absolute;
  top: .9rem;
  right: .9rem;
}

.corner-alert-indicator {
  border-radius: 999px;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  position: relative;
  color: var(--text) !important;
  background: #402b12e0 !important;
  border: 1px solid #ffdc9b2e !important;
}

.corner-alert-count {
  color: #2b1700;
  background: #ffcf5a;
  border-radius: 999px;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  position: absolute;
  top: -4px;
  right: -4px;
}

.flag-button {
  width: 36px;
  height: 36px;
  color: var(--text);
  background: #402b12e0;
  border: 1px solid #ffdc9b2e;
  border-radius: 999px;
  place-items: center;
  padding: 0;
  font-size: 1rem;
  display: grid;
  box-shadow: 0 6px 16px #00000038;
}

.flag-button:hover {
  transform: translateY(-1px);
}

.flag-button.active {
  background: #f4b40029;
  outline: 2px solid #f4b400b8;
}

.language-dropdown {
  background: #362510fa;
  border: 1px solid #ffdfa71f;
  border-radius: 14px;
  gap: .3rem;
  min-width: 144px;
  padding: .4rem;
  display: grid;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  box-shadow: 0 16px 34px #0000004d;
}

.language-dropdown-item {
  width: 100%;
  color: var(--text);
  background: none;
  border: 1px solid #0000;
  border-radius: 10px;
  align-items: center;
  gap: .6rem;
  padding: .6rem .75rem;
  display: flex;
}

.sticky-modal-header {
  z-index: 12;
  background: linear-gradient(#3c2811fe 0%, #2a1d0dfe 100%);
  border-bottom: 1px solid #ffdfa71f;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  position: sticky;
  top: 0;
  box-shadow: 0 8px 20px #0000002e;
}

.modal-card-shell {
  border: 1px solid var(--border);
  background: linear-gradient(#3c2811f5 0%, #2a1d0df5 100%);
  border-radius: 20px;
  flex-direction: column;
  width: 100%;
  max-height: 85vh;
  padding: 0;
  display: flex;
  overflow: hidden;
  box-shadow: 0 16px 48px #00000047;
}

.modal-card-header {
  background: linear-gradient(#3c2811 0%, #2a1d0d 100%);
  border-bottom: 1px solid #ffdfa71f;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  display: flex;
}

.modal-card-body {
  background: linear-gradient(#3c2811f5 0%, #2a1d0df5 100%);
  min-height: 0;
  padding: 1rem;
  overflow-y: auto;
}

.language-dropdown-item:hover {
  background: #ffebc514;
}

.language-dropdown-flag {
  font-size: 1.2rem;
}

.auth-card, .hero-card, .panel-card, .sidebar {
  border: 1px solid var(--border);
  background: linear-gradient(#3c2811f5 0%, #2a1d0df5 100%);
  border-radius: 20px;
  box-shadow: 0 16px 48px #00000047;
}

.auth-card, .panel-card {
  padding: 1rem;
}

.auth-card {
  gap: .45rem;
  width: min(100%, 360px);
  padding: 1rem;
  display: grid;
}

.auth-card h1 {
  margin-bottom: .15rem;
}

.auth-card .muted {
  margin: 0 0 .25rem;
}

.auth-card label, .user-form label {
  gap: .24rem;
  font-size: .88rem;
  display: grid;
}

.auth-card input, .auth-card select, .user-form input, .user-form select, .user-form textarea, .analytics-filter input, .analytics-filter select {
  width: 100%;
  color: var(--text);
  background: linear-gradient(#221709fa 0%, #181006fa 100%);
  border: 1px solid #ffdfa729;
  border-radius: 10px;
  padding: .58rem .78rem;
  box-shadow: inset 0 1px #ffffff08;
}

.auth-card select, .user-form select, .analytics-filter select {
  appearance: none;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  cursor: pointer;
  background-image: linear-gradient(45deg, #0000 50%, #e8c87c 50%), linear-gradient(135deg, #e8c87c 50%, #0000 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 2rem;
}

.analytics-filter input[type="date"] {
  appearance: none;
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  cursor: pointer;
  background: linear-gradient(#221709fa 0%, #181006fa 100%);
}

.analytics-filter input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .9;
  filter: sepia(.75) saturate(2.2) hue-rotate(355deg) brightness(1.28);
}

.auth-card select option, .user-form select option, .analytics-filter select option, .journal-filter-card select option, .auth-card select optgroup, .user-form select optgroup, .analytics-filter select optgroup, .journal-filter-card select optgroup {
  color: #fff7e8;
  background: #1c1207;
}

.journal-filter-card select {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  cursor: pointer;
  padding-right: 2rem;
  appearance: none !important;
  background: linear-gradient(45deg, #0000 50%, #e8c87c 50%) calc(100% - 16px) calc(50% - 2px) / 6px 6px no-repeat, linear-gradient(135deg, #e8c87c 50%, #0000 50%) calc(100% - 10px) calc(50% - 2px) / 6px 6px no-repeat, linear-gradient(#221709fa 0%, #181006fa 100%) !important;
}

.user-form textarea {
  resize: vertical;
  min-height: 110px;
}

.form-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  display: grid;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  display: grid;
}

.settings-grid-wide {
  grid-column: 1 / -1;
}

.user-form select:hover, .analytics-filter select:hover, .user-form select:focus, .analytics-filter select:focus, .auth-card input:focus, .auth-card select:focus, .user-form input:focus, .user-form textarea:focus, .analytics-filter select:focus {
  border-color: #f4b4007a;
  outline: none;
  box-shadow: 0 0 0 3px #f4b4001f;
}

.hero-card {
  width: min(100%, 780px);
  padding: 3rem;
}

.hero-card h1, .panel-card h1, .auth-card h1, .panel-card h2, .panel-card h3, .panel-card > :first-child {
  margin-top: 0;
}

.panel-card > :last-child {
  margin-bottom: 0;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  display: flex;
}

.hero-badge, .logo-box, .badge {
  border-radius: 999px;
  align-items: center;
  gap: .5rem;
  padding: .45rem .8rem;
  font-size: .88rem;
  display: inline-flex;
}

.hero-badge, .logo-box {
  color: #ffe08a;
  background: #f4b40029;
  margin-bottom: 1rem;
}

.badge.active {
  color: #c9f0a8;
  background: #7bc96f2e;
}

.badge.disabled, .badge.used {
  color: #ffc1b8;
  background: #dc5b492e;
}

.muted {
  color: var(--muted);
}

.error-box, .success-box {
  border-radius: 12px;
  padding: .9rem 1rem;
  font-size: .95rem;
}

.error-box {
  color: #ffc3bb;
  background: #dc5b4929;
}

.success-box {
  color: #d1f0b3;
  background: #7bc96f26;
}

.notice-box {
  background: #ffebc50f;
  border: 1px solid #ffdfa724;
  border-radius: 12px;
  gap: .65rem;
  padding: .9rem;
  display: grid;
}

.notice-box p {
  color: var(--muted);
  margin: 0;
}

.button-link {
  background: var(--accent);
  color: #1b1200;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: .56rem .78rem;
  font-weight: 800;
  display: inline-flex;
}

.button-link.secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: none;
}

.dashboard-layout {
  grid-template-columns: 212px minmax(0, 1fr);
  gap: .95rem;
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: .95rem;
  transition: grid-template-columns .28s;
  display: grid;
}

.dashboard-layout.page-with-corner-switcher {
  position: relative;
}

@media (min-width: 961px) {
  .dashboard-layout.page-with-corner-switcher > .corner-language-switcher {
    top: 1.35rem;
    right: 1.35rem;
  }
}

.mobile-topbar, .mobile-bottom-nav, .mobile-menu-backdrop, .sidebar-mobile-close, .sidebar-mobile-subtitle {
  display: none;
}

.mobile-menu-button {
  background: #fff4de0f;
  border: 1px solid #ffdfa729;
  border-radius: 12px;
  place-items: center;
  gap: 4px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
}

.mobile-menu-button span {
  background: #fff7e8;
  border-radius: 999px;
  width: 18px;
  height: 2px;
  display: block;
}

.dashboard-layout.sidebar-collapsed {
  grid-template-columns: 58px minmax(0, 1fr);
}

.sidebar-wrap {
  z-index: 50;
  min-width: 0;
  position: relative;
  overflow: visible;
}

.dashboard-main-wrap {
  z-index: 1;
  min-width: 0;
  padding: .15rem .15rem .15rem 0;
  display: grid;
  position: relative;
}

.dashboard-content {
  gap: .9rem;
  display: grid;
}

.sidebar {
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 212px;
  height: calc(100vh - 1.9rem);
  padding: .85rem .72rem;
  transition: padding .28s;
  display: grid;
  position: fixed;
  top: .95rem;
  left: max(.95rem, 50vw - 800px + .95rem);
  overflow: visible;
}

.dashboard-content, .admin-shell, .admin-section-content, .admin-grid {
  align-content: start;
  align-items: start;
}

.sidebar.collapsed {
  width: 58px;
  padding: .55rem .2rem;
}

.sidebar-brand-block {
  border-bottom: 1px solid #ffdfa714;
  margin-bottom: .9rem;
  padding-bottom: .8rem;
}

.sidebar-head {
  justify-content: space-between;
  align-items: center;
  gap: .45rem;
  display: flex;
}

.sidebar-brand-title {
  color: #fff7e8;
  letter-spacing: .01em;
  font-size: 1.05rem;
  font-weight: 800;
}

.sidebar.collapsed .sidebar-head {
  justify-content: center;
}

.sidebar-logo-large {
  padding: .55rem .9rem;
  font-size: 1.05rem;
}

.sidebar-toggle-inside {
  border-radius: 999px;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
}

.sidebar-nav {
  align-content: start;
  gap: .5rem;
  min-height: 0;
  padding: .15rem 0;
  display: grid;
  overflow: visible;
}

.sidebar-nav a, .sidebar-group-toggle, .sidebar-footer-links a, .sidebar-footer-links button {
  white-space: nowrap;
  color: var(--text);
  text-align: left;
  background: #fff4de0a;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: .38rem;
  width: 100%;
  min-height: 32px;
  padding: .42rem .52rem;
  font-size: .84rem;
  display: flex;
}

.sidebar-nav a:hover, .sidebar-nav a.active, .collapsed-icon-link.active, .sidebar-group-toggle:hover {
  background: #ffdfa714;
}

.sidebar-nav a.active, .collapsed-icon-link.active {
  background: #f2b23d24;
  border-color: #f2b23d6b;
}

.sidebar-nav-rich {
  gap: .4rem;
}

.sidebar-group {
  gap: .35rem;
  display: grid;
}

.sidebar-group-spaced {
  border-top: none;
  margin-top: .4rem;
  padding-top: .55rem;
}

.sidebar.collapsed .sidebar-group-spaced {
  border-top: none;
  margin-top: .2rem;
  padding-top: .25rem;
}

.sidebar-group-toggle {
  border: none;
}

.flyout-group {
  position: relative;
}

.sidebar-flyout-menu {
  z-index: 120;
  box-sizing: border-box;
  background: #362510fa;
  border: 1px solid #ffdfa71f;
  border-radius: 14px;
  gap: .3rem;
  width: 190px;
  min-width: 190px;
  padding: .4rem;
  display: grid;
  position: absolute;
  top: 0;
  left: calc(100% + 10px);
  box-shadow: 0 16px 34px #0000004d;
}

.collapsed-flyout-menu {
  top: 50%;
  transform: translateY(-50%);
}

.sidebar-flyout-menu a {
  box-sizing: border-box;
  background: #fff4de0a;
  border-radius: 10px;
  width: 100%;
  min-height: 34px;
  font-size: .88rem;
  transition: background .15s, transform .15s;
  text-align: left !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin: 0 !important;
  padding: .5rem .7rem !important;
  display: flex !important;
}

.sidebar-flyout-menu a:hover, .admin-node-menu a:hover {
  background: #ffdfa71f;
}

.sidebar-footer-links {
  border-top: none;
  gap: .5rem;
  margin-top: .55rem;
  padding-top: 1rem;
  display: grid;
}

.sidebar.collapsed .sidebar-footer-links {
  border-top: none;
  padding-top: .5rem;
}

.sidebar-footer-links a {
  background: #fff4de0a;
  border-radius: 10px;
  align-items: center;
  min-height: 36px;
  padding: .5rem .62rem;
  font-size: .9rem;
  display: flex;
}

.sidebar-footer-links a:hover, .sidebar-footer-links .secondary-button:hover {
  background: #ffdfa714 !important;
}

.sidebar-footer-links .secondary-button {
  text-align: left;
  border-radius: 10px;
  justify-content: flex-start;
  width: 100%;
  min-height: 36px;
  padding: .5rem .62rem;
  font-size: .9rem;
}

.sidebar.collapsed .sidebar-nav > a, .sidebar.collapsed .sidebar-nav > .sidebar-group > .sidebar-group-toggle, .sidebar.collapsed .sidebar-footer-links > a, .sidebar.collapsed .sidebar-footer-links > .secondary-button, .collapsed-icon-link {
  text-align: center;
  border-radius: 10px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  padding: .5rem .62rem !important;
  display: flex !important;
}

.sidebar.collapsed .sidebar-nav, .sidebar.collapsed .sidebar-footer-links {
  gap: .35rem;
}

.sidebar.collapsed .sidebar-nav > a, .sidebar.collapsed .sidebar-nav > .sidebar-group, .sidebar.collapsed .sidebar-footer-links > a, .sidebar.collapsed .sidebar-footer-links > .secondary-button, .sidebar.collapsed .sidebar-footer-links > .sidebar-collapsed-item {
  width: 100%;
}

.sidebar.collapsed .sidebar-nav > .sidebar-group > .sidebar-group-toggle, .sidebar.collapsed .sidebar-footer-links .secondary-button, .sidebar.collapsed .sidebar-footer-links > a, .sidebar.collapsed .collapsed-icon-link {
  border-radius: 10px;
}

.sidebar-collapsed-item {
  justify-content: center;
  width: 100%;
  display: grid;
  position: relative;
}

.sidebar-collapsed-item.no-tooltip:hover:after, .sidebar-collapsed-item.no-tooltip:hover:before {
  display: none;
}

.sidebar-collapsed-item:hover:after {
  content: attr(data-tooltip);
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  z-index: 999;
  background: #201609fa;
  border: 1px solid #ffdfa724;
  border-radius: 10px;
  padding: .45rem .65rem;
  font-size: .82rem;
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  box-shadow: 0 12px 28px #0000003d;
}

.sidebar-collapsed-item:hover:before {
  content: "";
  z-index: 998;
  border: 6px solid #0000;
  border-right-color: #201609fa;
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  transform: translateY(-50%);
}

.beehive-limit-tooltip {
  display: inline-flex;
  position: relative;
}

.beehive-limit-tooltip.active:hover:after {
  content: attr(data-tooltip);
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  z-index: 999;
  background: #201609fa;
  border: 1px solid #ffdfa724;
  border-radius: 10px;
  padding: .45rem .65rem;
  font-size: .82rem;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 12px 28px #0000003d;
}

.beehive-limit-tooltip.active:hover:before {
  content: "";
  z-index: 998;
  border: 6px solid #0000;
  border-top-color: #201609fa;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
}

.sidebar.collapsed .logo-box, .sidebar.collapsed .sidebar-subnav {
  display: none;
}

.stats-grid, .dashboard-top-grid, .dashboard-latest-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  display: grid;
}

.dashboard-latest-grid-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-header-card {
  gap: .65rem;
  display: grid;
}

.stat-card {
  align-content: start;
  gap: .2rem;
  display: grid;
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.empty-state-card {
  align-content: start;
  gap: .55rem;
  display: grid;
}

.compact-list .table-row {
  padding: .65rem .72rem;
}

.analytics-stack {
  gap: .85rem;
  display: grid;
}

.analytics-controls-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  width: 100%;
  display: grid;
}

.analytics-controls-title {
  justify-self: start;
}

.analytics-controls-stack {
  justify-items: start;
  gap: .7rem;
  width: 100%;
  display: grid;
}

.messages-page-stack {
  gap: 1.35rem;
}

.messages-page-grid {
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.messages-thread-button {
  text-align: left;
  cursor: pointer;
  background: #fff5e009;
  width: 100%;
}

.messages-thread-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px #00000029;
}

.messages-thread-active {
  background: #f4b40014;
  border-color: #f4b40073;
}

.active-filter-button {
  background: var(--accent);
  color: #1b1200;
  border-color: #0000;
}

@media (max-width: 980px) {
  .messages-page-grid {
    grid-template-columns: 1fr;
  }
}

.single-beehive-charts .chart-card {
  width: 100%;
}

.single-beehive-charts .chart-wrap {
  height: 320px;
}

.analytics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  display: grid;
}

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

.apiary-beehives-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  display: grid;
}

.beehive-dashboard-card {
  background: linear-gradient(#4931149e 0%, #2f200eb8 100%);
  border: 1px solid #ffdfa729;
  border-radius: 16px;
  gap: .42rem;
  padding: .72rem .8rem;
  display: grid;
  box-shadow: inset 0 0 0 1px #ffffff05;
}

.beehive-metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem .55rem;
  display: grid;
}

.beehive-metrics-side-grid {
  text-align: left;
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: start;
  gap: .35rem;
}

.metric-side-item {
  white-space: nowrap;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: .3rem;
  display: flex;
}

.metric-side-toggle-item {
  align-items: center;
  gap: .35rem;
}

.metric-side-item strong {
  padding-left: 0;
  font-size: .8rem;
}

.dashboard-apiary-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.dashboard-apiary-select {
  min-width: 240px;
}

.beehive-card-badges {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .3rem;
  display: flex;
}

.beehive-title-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  display: flex;
}

.beehive-title-row .badge {
  padding: .22rem .55rem;
  font-size: .75rem;
}

.beehive-health-strip {
  background: #120e0947;
  border: 1px solid #ffdfa724;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  padding: .55rem .65rem;
  display: flex;
}

.beehive-health-strip strong {
  color: #fff7e8;
  font-size: .98rem;
  display: block;
}

.beehive-health-reasons {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  display: flex;
}

.health-reason-pill {
  color: #f3d39a;
  background: #fff7e814;
  border-radius: 999px;
  padding: .22rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}

.health-good {
  border-color: #67d8a647;
}

.health-watch {
  border-color: #f2b23d57;
}

.health-risk, .health-critical {
  border-color: #ff8f8f5c;
}

.inspection-journal-card {
  margin-top: 1rem;
}

.inspection-journal-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .75rem;
  display: grid;
}

.inspection-journal-form label {
  color: #f4dfbd;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 700;
  display: grid;
}

.inspection-journal-form select, .inspection-journal-form input, .inspection-journal-form textarea {
  color: #fff7e8;
  background: #120e0970;
  border: 1px solid #ffdfa72e;
  border-radius: 12px;
  width: 100%;
  padding: .72rem .8rem;
}

.inspection-action-field, .inspection-date-field, .inspection-notes-field, .inspection-journal-form .primary-button, .inspection-journal-form .success-message, .inspection-journal-form .form-error {
  grid-column: 1 / -1;
}

.inspection-entry-list {
  gap: .65rem;
  margin-top: .85rem;
  display: grid;
}

.inspection-entry {
  background: #120e094d;
  border: 1px solid #ffdfa71f;
  border-radius: 14px;
  gap: .45rem;
  padding: .75rem;
  display: grid;
}

.inspection-entry p {
  color: #fff7e8;
  white-space: pre-wrap;
  margin: 0;
}

.journal-page {
  gap: .85rem;
}

.journal-hero-card, .journal-entry-main, .journal-entry-title-row, .journal-entry-meta {
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
  display: flex;
}

.journal-hero-card {
  align-items: center;
}

.journal-filter-card {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .75rem;
  display: grid;
}

.journal-filter-card label {
  color: #f4dfbd;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 700;
  display: grid;
}

.journal-filter-card input, .journal-filter-card select {
  color: #fff7e8;
  background: #120e0970;
  border: 1px solid #ffdfa72e;
  border-radius: 12px;
  width: 100%;
  padding: .72rem .8rem;
}

.journal-results-meta {
  color: #d7c2a7;
  font-weight: 700;
}

.journal-entry-list, .journal-entry-card {
  gap: .75rem;
  display: grid;
}

.journal-entry-card h2 {
  margin: .45rem 0 .15rem;
}

.journal-entry-notes {
  color: #fff7e8;
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.55;
}

.journal-entry-meta {
  color: #d7c2a7;
  flex-wrap: wrap;
  justify-content: flex-start;
  font-size: .86rem;
}

.visit-plan-panel {
  margin-top: .85rem;
}

.visit-plan-list {
  gap: .55rem;
  display: grid;
}

.visit-plan-item {
  text-align: left;
  width: 100%;
  color: inherit;
  cursor: pointer;
  background: #120e0947;
  border: 1px solid #ffdfa724;
  border-radius: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem;
  display: grid;
}

.visit-plan-item:hover {
  background: #25190c9e;
  border-color: #f2b23d73;
}

.visit-plan-rank {
  color: #f7d28a;
  background: #f2b23d2e;
  border-radius: 999px;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-weight: 900;
  display: grid;
}

.visit-plan-main {
  gap: .18rem;
  min-width: 0;
  display: grid;
}

.visit-plan-main strong {
  color: #fff7e8;
}

.visit-plan-reasons {
  flex-wrap: wrap;
  gap: .3rem;
  display: flex;
}

.visit-plan-meta {
  color: #d7c2a7;
  white-space: nowrap;
  justify-items: end;
  gap: .18rem;
  font-size: .78rem;
  display: grid;
}

.route-map-empty {
  background: #120e0947;
  border: 1px dashed #f2b23d57;
  border-radius: 14px;
  gap: .35rem;
  padding: .9rem;
  display: grid;
}

.route-map-card {
  gap: .85rem;
  display: grid;
}

.route-map-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.route-map-link {
  white-space: nowrap;
}

.route-map-google-frame {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #21160b;
  border: 1px solid #ffdfa724;
  border-radius: 14px;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
}

.route-map-rank {
  color: #1f1409;
  background: #f2b23d;
  border: 1px solid #1f14097a;
  border-radius: 999px;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  font-weight: 900;
  display: inline-grid;
  box-shadow: 0 10px 24px #00000047;
}

.route-map-marker-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  display: grid;
}

.route-map-marker-row {
  width: 100%;
  min-width: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: #120e0947;
  border: 1px solid #ffdfa71f;
  border-radius: 12px;
  align-items: center;
  gap: .65rem;
  padding: .65rem;
  display: flex;
}

.route-map-marker-row:hover, .route-map-marker-row.active {
  background: #25190cb8;
  border-color: #f2b23d73;
}

.route-map-marker-row .route-map-main {
  min-width: 0;
}

.route-map-marker-row .route-map-main strong, .route-map-marker-row .route-map-main .small-text {
  overflow-wrap: anywhere;
}

.beehive-card-footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .3rem .55rem;
  display: grid;
}

.beehive-status-row {
  justify-content: flex-start;
}

.beehive-dashboard-card .panel-header-row {
  gap: .55rem;
}

.beehive-dashboard-card .small-text {
  line-height: 1.25;
}

.text-danger {
  color: #ff9b8f;
}

.dashboard-chart-header-row {
  align-items: flex-start;
  gap: 1rem;
}

.metric-toggle-list {
  justify-items: start;
  gap: .45rem;
  display: grid;
}

.metric-toggle-item {
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  display: flex;
}

.metric-color-dot {
  border-radius: 999px;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.single-big-chart-wrap {
  width: 100%;
  min-height: 420px;
}

.beehive-single-chart-wrap .recharts-responsive-container {
  min-height: 82px !important;
}

.beehive-dashboard-stack {
  grid-template-columns: 1fr;
  gap: .75rem;
  display: grid;
}

.dashboard-apiary-group-card {
  background: linear-gradient(#3f2a12bd 0%, #271a0bd1 100%);
  border: 1px solid #ffdfa724;
  border-radius: 18px;
  gap: .75rem;
  padding: .8rem;
  display: grid;
}

.dashboard-apiary-group-badge {
  text-align: center;
  color: #1f1409;
  background: #f2b23d;
  border-radius: 14px;
  width: 100%;
  padding: .55rem .9rem;
  font-weight: 800;
}

.beehive-chart-layout {
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: start;
  gap: .55rem;
  display: grid;
}

.beehive-chart-shell {
  gap: .4rem;
  display: grid;
}

.beehive-chart-toolbar {
  justify-content: flex-end;
  margin-top: -.1rem;
  display: flex;
}

.horizontal-metric-toggle-list {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem .55rem;
  display: flex;
}

.horizontal-metric-toggle-list .metric-toggle-item {
  font-size: .78rem;
}

.beehive-single-chart-wrap {
  min-height: 82px;
}

.beehive-telemetry-table-card {
  padding: 0;
  overflow: hidden;
}

.beehive-table-empty {
  padding: 1rem;
}

.beehive-table-card-header, .beehive-table-device-line, .beehive-table-footer {
  padding-left: 1rem;
  padding-right: 1rem;
}

.beehive-table-card-header {
  padding-top: 1rem;
}

.beehive-table-device-line {
  margin-top: .35rem;
  margin-bottom: .8rem;
}

.beehive-table-footer {
  padding-bottom: 1rem;
}

.beehive-telemetry-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.beehive-telemetry-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: .86rem;
}

.analytics-telemetry-table {
  min-width: 760px;
}

.beehive-telemetry-table th, .beehive-telemetry-table td {
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #ffdfa71a;
  border-right: 1px solid #ffdfa71a;
  padding: .62rem .72rem;
}

.beehive-telemetry-table th {
  z-index: 1;
  color: #ffe9b7;
  background: #1f1409fa;
  font-size: .78rem;
  font-weight: 800;
  position: sticky;
  top: 0;
}

.beehive-telemetry-table td {
  color: var(--text);
  background: #fff7e809;
}

.beehive-telemetry-table tbody tr:nth-child(odd) td {
  background: #fff7e80f;
}

.beehive-telemetry-table tbody tr:hover td {
  background: #f4b4001a;
}

.beehive-telemetry-table tbody tr.clickable-table-row {
  cursor: pointer;
}

.beehive-telemetry-table tbody tr.clickable-table-row:focus-visible td {
  outline-offset: -2px;
  background: #f4b40024;
  outline: 2px solid #f4b400b8;
}

.telemetry-day-modal-overlay {
  background: #0f172aad;
}

.telemetry-day-modal {
  width: min(100%, 920px);
}

.telemetry-day-modal-header h3 {
  color: var(--text);
  margin: .12rem 0 0;
  font-size: 1.35rem;
}

.telemetry-day-modal-body {
  padding: 0;
}

.telemetry-day-detail-table {
  min-width: 720px;
  font-size: .95rem;
}

.telemetry-day-detail-table th, .telemetry-day-detail-table td {
  padding: .72rem .82rem;
}

.weekday-cell {
  border-radius: 8px;
  place-items: center;
  min-width: 2rem;
  min-height: 1.6rem;
  font-weight: 800;
  display: inline-grid;
}

.weekday-6 {
  color: #ffdba1;
  background: #f59e0b38;
}

.weekday-7 {
  color: #fecaca;
  background: #ef444438;
}

.chart-card {
  gap: .6rem;
  display: grid;
}

.chart-wrap {
  width: 100%;
  height: 260px;
}

.analytics-header-row {
  align-items: end;
}

.analytics-filter {
  gap: .35rem;
  min-width: 220px;
  display: grid;
}

.analytics-actions-row {
  flex-wrap: wrap;
  align-items: end;
  gap: .7rem;
  display: flex;
}

.analytics-kpis {
  margin-top: .9rem;
  margin-bottom: .9rem;
}

.dashboard-top-summary-panel, .dashboard-summary-panel {
  gap: .7rem;
  padding: .75rem .8rem;
  display: grid;
}

.dashboard-summary-top-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  display: grid;
}

.active-apiary-block {
  justify-items: start;
  gap: .4rem;
  display: grid;
}

.active-apiary-inline-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  max-width: 100%;
  display: flex;
}

.active-apiary-inline-row .hero-badge {
  margin-bottom: 0;
}

.active-apiary-name-badge {
  color: #d9f7be;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #7bc96f2e;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.beehives-count-badge {
  color: var(--text);
  background: #fff4de14;
}

.dashboard-summary-filters {
  flex-wrap: nowrap;
  grid-column: 2;
  justify-content: center;
  justify-self: center;
  align-items: flex-start;
  gap: .6rem;
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  display: flex;
  overflow-x: auto;
}

.dashboard-summary-filters .dashboard-apiary-select {
  flex: 0 1 var(--dashboard-select-width);
  width: min(100%, var(--dashboard-select-width));
  min-width: 0;
  max-width: var(--dashboard-select-width);
}

.dashboard-summary-filters .dashboard-apiary-select select {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.dashboard-summary-stats-row {
  align-items: stretch;
}

.summary-stat-card {
  justify-items: start;
  gap: .18rem;
  padding: .72rem .8rem;
  display: grid;
}

.clickable-summary-card {
  cursor: pointer;
  text-align: left;
}

.clickable-alert-row {
  cursor: pointer;
  text-align: left;
  background: none;
  width: 100%;
}

.clickable-alert-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px #00000029;
  background: #fff1d30a !important;
}

.compact-kpis-grid {
  margin: 0;
}

.mini-stat-card {
  padding: .9rem 1rem;
}

.mini-stat-card strong {
  font-size: 1.15rem;
}

.alert-row {
  border-left: 4px solid #94a3b859;
}

.severity-warning {
  border-left-color: #f59e0b;
}

.severity-critical {
  border-left-color: #ef4444;
}

.severity-info {
  border-left-color: #38bdf8;
}

.alert-read {
  opacity: .7;
}

.toast-stack {
  z-index: 2000;
  gap: .6rem;
  display: grid;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
}

.toast-item {
  color: #fff;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  min-width: 220px;
  max-width: 320px;
  padding: .85rem 1rem;
  box-shadow: 0 10px 30px #00000040;
}

.toast-success {
  background: #267d3ef5;
}

.toast-error {
  background: #a82b2bf5;
}

.clickable-badge {
  cursor: pointer;
}

.modal-backdrop {
  z-index: 2500;
  background: #0000008c;
  place-items: center;
  padding: 1rem;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal-card {
  background: linear-gradient(#3c2811fa 0%, #2a1d0dfa 100%);
  border: 1px solid #ffdfa71f;
  border-radius: 18px;
  width: min(100%, 620px);
  max-height: 80vh;
  padding: 1rem;
  overflow: auto;
  box-shadow: 0 16px 48px #00000059;
}

.clickable-alert-row, .clickable-alert-row *, .alerts-modal-context {
  color: var(--text) !important;
}

.alerts-modal-context-badge {
  margin-bottom: 0;
  display: inline-flex;
}

.alert-modal-card {
  width: min(920px, 100%);
  max-height: 84vh;
  overflow-y: auto;
}

.alert-modal-list {
  gap: .85rem;
  display: grid;
}

.alert-modal-item {
  background: #fff1d30a;
  border: 1px solid #ffdfa71a;
  border-radius: 16px;
  padding: 1rem;
  display: block;
}

.alert-card-content {
  flex: 1;
  gap: .8rem;
  min-width: 0;
  display: grid;
}

.alert-card-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  display: flex;
}

.alert-badge-row {
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  display: flex;
}

.alert-card-title {
  font-size: 1rem;
  line-height: 1.35;
}

.alert-card-message {
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.55;
}

.alert-card-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .65rem;
  display: grid;
}

.alert-card-meta-item {
  background: #fff1d30b;
  border: 1px solid #ffdfa714;
  border-radius: 14px;
  min-width: 0;
  padding: .75rem .85rem;
}

.alert-card-meta-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .25rem;
  font-size: .74rem;
}

.alert-card-meta-value {
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: .9rem;
  line-height: 1.45;
}

.alert-card-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  display: flex;
}

.dashboard-summary-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: .8rem;
  display: grid;
}

.summary-item {
  gap: .2rem;
  display: grid;
}

.compact-empty-card {
  width: 100%;
  max-width: none;
}

.admin-shell {
  gap: .95rem;
  display: grid;
}

.admin-overview-card {
  gap: 1rem;
  display: grid;
}

.admin-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  display: grid;
}

.admin-overview-lists {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  display: grid;
}

.admin-overview-search-card {
  gap: .85rem;
  padding: .2rem 0;
  display: grid;
}

.admin-overview-search-filter {
  max-width: 560px;
}

.admin-header-search-row {
  justify-content: flex-start;
  margin-top: .85rem;
  display: flex;
}

.admin-header-search-filter {
  width: min(100%, 640px);
}

.admin-header-search-results {
  border-top: 1px solid #ffdfa71f;
  gap: 1rem;
  margin-top: .9rem;
  padding-top: .9rem;
  display: grid;
}

.admin-global-search-results {
  gap: 1rem;
  display: grid;
}

.admin-search-group {
  gap: .45rem;
  display: grid;
}

.admin-search-group h3 {
  margin: 0;
}

.admin-search-highlight {
  color: var(--text);
  background: #f4b4004d;
  border-radius: 4px;
  padding: 0 .12rem;
}

.admin-overview-table-list {
  margin-top: .55rem;
}

.admin-overview-action-card, .admin-overview-row-button {
  text-align: left;
  width: 100%;
}

.admin-overview-action-card {
  color: var(--text);
  background: #fff4de0a;
  border: 1px solid #ffdfa71f;
  transition: transform .16s, border-color .16s, background .16s;
}

.admin-overview-action-card:hover, .admin-overview-row-button:hover {
  border-color: #ffdfa747;
  transform: translateY(-1px);
  background: #fff4de14 !important;
}

.admin-overview-row-button {
  color: var(--text);
  background: none;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  display: flex;
}

.admin-sections-card {
  min-height: 152px;
}

.admin-header-card {
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  min-height: 152px;
  display: flex;
}

.admin-section-content {
  gap: .95rem;
  display: grid;
}

.admin-list-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1rem;
  display: flex;
}

.admin-list-toolbar-left-stack {
  justify-content: flex-start;
}

.admin-list-toolbar-heading-block {
  justify-items: start;
  gap: .45rem;
  display: grid;
}

.admin-list-toolbar-actions {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem;
  display: flex;
}

.admin-list-toolbar-actions-left {
  justify-content: flex-start;
}

.admin-list-toolbar-actions-center {
  justify-content: center;
}

.admin-owner-filter {
  min-width: 240px;
}

.admin-owner-filter-compact span {
  display: none;
}

.admin-owner-filter-centered {
  text-align: center;
  align-items: center;
}

.admin-owner-meta {
  margin-top: .2rem;
}

.one-nce-sim-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.one-nce-settings-actions {
  justify-content: flex-start;
  display: flex;
}

.one-nce-settings-actions button {
  width: auto;
  min-width: 0;
}

.one-nce-sim-toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: .75rem;
  display: flex;
}

.one-nce-sim-filter {
  min-width: 190px;
}

.one-nce-sim-search {
  min-width: 220px;
}

.one-nce-sim-list-summary {
  color: var(--muted);
  font-size: .88rem;
}

.one-nce-sim-pagination {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  margin-top: .25rem;
  display: flex;
}

.one-nce-label-modal {
  width: 100%;
  max-width: 430px;
}

.admin-sim-number-field {
  color: var(--muted);
  gap: .4rem;
  font-weight: 700;
  display: grid;
}

.admin-sim-number-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  display: grid;
}

.admin-pin-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  display: flex;
}

.admin-pin-fieldset {
  border: 0;
  gap: .8rem;
  margin: 0;
  padding: 0;
  display: grid;
}

.admin-pin-fieldset:disabled {
  opacity: .58;
}

@media (max-width: 640px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-compact-form, .admin-form-grid, .admin-compact-form label, .admin-compact-form .admin-sim-number-field, .admin-compact-form input, .admin-compact-form select {
    max-width: 100%;
  }

  .admin-sim-number-row {
    grid-template-columns: 1fr;
  }
}

.admin-node-edit-shortcut {
  gap: .85rem;
  margin-bottom: 1rem;
  display: grid;
}

.admin-node-edit-shortcut h3 {
  margin: 0 0 .25rem;
}

.admin-node-edit-shortcut-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  display: flex;
}

.admin-node-edit-filters {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: .75rem;
  display: flex;
}

.admin-node-edit-filter {
  min-width: 230px;
}

.admin-node-edit-list {
  margin-top: 0;
}

.admin-grid, .apiaries-layout {
  grid-template-columns: .95fr 1.1fr;
  gap: .85rem;
  display: grid;
}

.table-list {
  gap: .7rem;
  margin-top: .75rem;
  padding-top: .1rem;
  display: grid;
}

.table-row, .panel-header-row {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.panel-header-row {
  margin-bottom: .2rem;
}

.panel-header-stack {
  align-content: start;
  gap: .7rem;
  min-height: 92px;
  margin-bottom: .2rem;
  display: grid;
}

.panel-inline-topbar {
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 36px;
  display: flex;
}

.invite-panel-card {
  min-height: 132px;
}

.invite-panel-card h2 {
  margin: 0;
  line-height: 1.2;
}

.panel-action-row {
  justify-content: flex-start;
  display: flex;
}

.admin-tabs {
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  margin-top: .75rem;
  display: flex;
}

.admin-tab {
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff0d60f;
}

.admin-tab.active {
  background: var(--accent);
  color: #1b1200;
  border-color: #0000;
}

.table-row, .user-list-item {
  background: #fff5e009;
  border: 1px solid #0000;
  border-radius: 12px;
  padding: .78rem;
}

.user-list-item {
  text-align: left;
  color: var(--text);
  width: 100%;
}

.user-list-item.selected {
  background: #f4b4001a;
  border-color: #f4b40073;
}

.user-form {
  gap: .8rem;
  padding-top: .15rem;
  display: grid;
}

.admin-compact-form {
  align-items: start;
  width: min(100%, 760px);
}

.admin-form-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: .8rem 1rem;
  width: min(100%, 720px);
  display: grid;
}

.admin-compact-form label, .admin-compact-form .admin-sim-number-field {
  width: 100%;
  max-width: 360px;
}

.admin-compact-form input, .admin-compact-form select {
  max-width: 360px;
}

.admin-compact-form .admin-form-wide, .admin-compact-form .admin-form-wide textarea, .admin-form-help {
  max-width: 620px;
}

.admin-form-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .65rem;
  display: flex;
}

.admin-form-actions button {
  width: auto;
  min-width: 0;
}

.admin-email-settings-form .email-settings-toggle-card, .admin-email-meta-card {
  width: min(100%, 720px);
}

.admin-email-test-form {
  border-top: 1px solid #ffdfa71f;
  padding-top: 1rem;
}

.email-settings-toggle-card {
  background: linear-gradient(#fff4de0f 0%, #fff4de08 100%);
  border: 1px solid #ffdfa724;
  border-radius: 16px;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .95rem 1rem;
  display: flex;
}

.email-settings-toggle-copy {
  gap: .3rem;
  display: grid;
}

.email-settings-toggle-copy strong {
  font-size: .98rem;
}

.email-settings-toggle-copy p {
  max-width: 42rem;
  margin: 0;
}

.email-settings-switch {
  min-width: 148px;
  color: var(--text);
  background: #fff4de0f;
  border: 1px solid #ffdfa729;
  border-radius: 999px;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .5rem .7rem;
  display: inline-flex;
}

.email-settings-switch:hover {
  background: #fff4de1a;
}

.email-settings-switch.active {
  background: #7bc96f29;
  border-color: #7bc96f57;
}

.email-settings-switch-track {
  background: #ffdfa72e;
  border-radius: 999px;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  position: relative;
}

.email-settings-switch.active .email-settings-switch-track {
  background: #7bc96f73;
}

.email-settings-switch-thumb {
  background: #fff7e8;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  transition: transform .18s;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 4px 10px #00000038;
}

.email-settings-switch.active .email-settings-switch-thumb {
  transform: translateX(20px);
}

.email-settings-inline-check {
  align-items: center;
  gap: .55rem;
  display: inline-flex;
}

.email-settings-inline-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-actions-row, .row-actions {
  flex-wrap: wrap;
  gap: .55rem;
  display: flex;
}

.row-actions {
  justify-content: flex-end;
}

.apiary-row {
  align-items: flex-start;
}

.small-text {
  font-size: .82rem;
}

.user-meta-card {
  background: #fff1d30b;
  border-radius: 14px;
  gap: .45rem;
  margin-top: .15rem;
  padding: .9rem;
  display: grid;
}

.admin-docs-shell {
  gap: 1rem;
  display: grid;
}

.admin-docs-header {
  gap: .75rem;
  display: grid;
}

.admin-docs-header h1 {
  margin: 0;
}

.admin-docs-header p {
  max-width: 760px;
  color: var(--muted);
  margin: .35rem 0 0;
}

.admin-docs-count {
  color: #fff4d7;
  white-space: nowrap;
  background: #fff1d30b;
  border: 1px solid #ffdfa724;
  border-radius: 10px;
  padding: .48rem .68rem;
}

.admin-docs-header-actions, .admin-docs-editor-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.admin-docs-header-actions {
  margin-top: .75rem;
}

.admin-docs-updated {
  color: var(--muted);
  margin-top: .45rem;
  display: inline-block;
}

.admin-docs-search {
  color: #fff4d7;
  background: #fff1d30a;
  border: 1px solid #ffdfa71f;
  border-radius: 12px;
  gap: .42rem;
  padding: .9rem;
  font-weight: 700;
  display: grid;
}

.admin-docs-search input {
  color: #fff7e8;
  width: 100%;
  font: inherit;
  background: #170e07c7;
  border: 1px solid #ffdfa72e;
  border-radius: 10px;
  padding: .72rem .82rem;
}

.admin-docs-search input:focus {
  border-color: #f2b23d9e;
  outline: 2px solid #f2b23d66;
}

.admin-docs-list {
  gap: .7rem;
  display: grid;
}

.admin-docs-topic {
  background: #fff1d30a;
  border: 1px solid #ffdfa71f;
  border-radius: 12px;
  overflow: hidden;
}

.admin-docs-topic.open {
  background: #fff1d30e;
  border-color: #f2b23d5c;
}

.admin-docs-topic-button {
  color: #fff7e8;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  grid-template-columns: 32px 1fr;
  align-items: start;
  gap: .75rem;
  width: 100%;
  padding: .92rem 1rem;
  display: grid;
}

.admin-docs-topic-button strong, .admin-docs-topic-button small {
  display: block;
}

.admin-docs-topic-button small {
  color: var(--muted);
  margin-top: .24rem;
  font-size: .88rem;
  line-height: 1.45;
}

.admin-docs-arrow {
  color: #ffd98a;
  background: #f2b23d24;
  border-radius: 999px;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform .18s;
  display: grid;
}

.admin-docs-topic.open .admin-docs-arrow {
  transform: rotate(180deg);
}

.admin-docs-topic-body {
  gap: .85rem;
  padding: 0 1rem 1rem 3.75rem;
  display: grid;
}

.admin-docs-topic-body h3 {
  color: #ffe8b8;
  margin: 0 0 .4rem;
  font-size: .98rem;
}

.admin-docs-topic-body ul {
  color: #f6e5ca;
  margin: 0;
  padding-left: 1.05rem;
  line-height: 1.55;
}

.admin-docs-topic-body li + li {
  margin-top: .34rem;
}

.admin-docs-tags {
  flex-wrap: wrap;
  gap: .4rem;
  display: flex;
}

.admin-docs-tags span {
  color: var(--muted);
  border: 1px solid #ffdfa71f;
  border-radius: 999px;
  padding: .24rem .48rem;
  font-size: .78rem;
}

.admin-docs-empty {
  color: var(--muted);
}

.admin-docs-status {
  color: #fff4d7;
}

.admin-docs-editor {
  gap: .85rem;
  width: 100%;
  display: grid;
}

.admin-docs-editor label, .admin-docs-section-editor label {
  color: #fff4d7;
  gap: .35rem;
  font-weight: 700;
  display: grid;
}

.admin-docs-editor input, .admin-docs-editor textarea, .admin-docs-section-editor input, .admin-docs-section-editor textarea {
  color: #fff7e8;
  width: 100%;
  font: inherit;
  background: #170e07c7;
  border: 1px solid #ffdfa72e;
  border-radius: 10px;
  padding: .68rem .78rem;
}

.admin-docs-editor textarea, .admin-docs-section-editor textarea {
  resize: vertical;
  min-height: 98px;
  line-height: 1.45;
}

.admin-docs-section-editor {
  background: #fff1d309;
  border: 1px solid #ffdfa71a;
  border-radius: 12px;
  gap: .7rem;
  padding: .85rem;
  display: grid;
}

.admin-docs-editor .danger {
  color: #ffd2ca !important;
  border-color: #dc5b496b !important;
}

.mini-meta {
  color: var(--muted);
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .25rem;
  font-size: .82rem;
  display: flex;
}

@media (max-width: 960px) {
  :root {
    --bg: #1f1409;
    --bg-soft: #24180d;
    --panel: #332111;
    --panel-2: #422b16;
    --border: #6e5030;
    --muted: #d7c2a7;
    --accent: #f2b23d;
    --accent-dark: #d89a00;
  }

  body {
    background: #1f1409;
  }

  .admin-header-card {
    height: auto;
  }

  .mobile-topbar {
    z-index: 900;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    box-shadow: none;
    background: #1f1409;
    border: 0;
    border-radius: 0;
    justify-content: space-between;
    align-items: center;
    gap: .7rem;
    padding: 0;
    display: flex;
    position: sticky;
    top: 0;
  }

  .mobile-topbar-title {
    color: #fff7e8;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: 1.12rem;
    font-weight: 850;
    overflow: hidden;
  }

  .mobile-topbar .corner-language-switcher {
    z-index: 2;
    flex-shrink: 0;
    gap: .35rem;
    max-width: max-content;
    margin-left: auto;
    position: relative;
    top: auto;
    right: auto;
  }

  .mobile-topbar .flag-button, .mobile-topbar .corner-alert-indicator {
    width: 34px;
    min-width: 34px;
    height: 34px;
    box-shadow: none;
  }

  .mobile-topbar .language-dropdown {
    top: calc(100% + .45rem);
  }

  .dashboard-main-wrap > .corner-language-switcher, .mobile-menu-button, .mobile-menu-backdrop {
    display: none;
  }

  .dashboard-main-wrap {
    padding: 0;
  }

  .dashboard-layout {
    width: 100%;
    padding: clamp(1rem, 5vw, 1.5rem);
    padding-bottom: calc(5.9rem + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: none;
    margin: 0;
    display: grid;
  }

  .mobile-bottom-nav {
    z-index: 930;
    padding: .55rem clamp(.75rem, 4vw, 1.25rem) calc(.55rem + env(safe-area-inset-bottom));
    scrollbar-width: none;
    background: #1f1409f5;
    border-top: 1px solid #6e5030;
    gap: .45rem;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-x: auto;
    box-shadow: 0 -12px 30px #00000052;
  }

  .mobile-bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-bottom-nav a {
    color: #d7c2a7;
    text-align: center;
    background: none;
    border: 1px solid #0000;
    border-radius: 14px;
    flex: 1 0 4.35rem;
    align-content: center;
    justify-items: center;
    gap: .18rem;
    min-width: 4.35rem;
    min-height: 3.65rem;
    padding: .36rem .28rem;
    display: grid;
  }

  .mobile-bottom-nav a.active {
    color: #fff7e8;
    background: #332111;
    border-color: #6e5030;
  }

  .mobile-bottom-nav-icon {
    font-size: 1.05rem;
    line-height: 1;
  }

  .mobile-bottom-nav-label {
    text-overflow: ellipsis;
    max-width: 100%;
    color: inherit;
    white-space: nowrap;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.08;
    overflow: hidden;
  }

  .admin-grid, .apiaries-layout, .admin-overview-grid, .admin-overview-lists, .stats-grid, .dashboard-latest-grid, .analytics-grid, .analytics-grid-two, .apiary-beehives-grid, .beehive-metrics-grid, .beehive-card-footer-grid, .beehive-dashboard-stack, .beehive-chart-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-content, .panel-card, .chart-card, .summary-stat-card, .route-map-card {
    min-width: 0;
  }

  .admin-docs-header {
    align-items: start;
    display: grid;
  }

  .admin-docs-header-actions, .admin-docs-editor-actions {
    justify-content: flex-start;
  }

  .admin-docs-count {
    width: fit-content;
  }

  .admin-docs-topic-button {
    grid-template-columns: 28px 1fr;
    padding: .85rem;
  }

  .admin-docs-topic-body {
    padding: 0 .85rem .9rem 3.25rem;
  }

  .panel-card, .auth-card {
    box-shadow: none;
    background: #332111;
    border-color: #6e5030;
    border-radius: 16px;
    padding: .75rem;
  }

  .journal-filter-card {
    grid-template-columns: 1fr 1fr;
  }

  .journal-entry-main, .journal-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-card, .hero-card, .sidebar, .dashboard-apiary-group-card, .beehive-dashboard-card, .summary-stat-card, .chart-card, .route-map-card, .route-map-empty, .user-meta-card {
    box-shadow: none;
    background: #332111;
    border-color: #6e5030;
  }

  .beehive-dashboard-card, .route-map-marker-row {
    background: #24180d;
  }

  .dashboard-apiary-group-badge {
    color: #1f1409;
    background: #f2b23d;
    border-radius: 14px;
  }

  .hero-badge, .badge, .metric-side-item, .analytics-filter input, .analytics-filter select, .auth-card input, .auth-card select, .user-form input, .user-form select, .user-form textarea {
    border-color: #6e5030;
  }

  .analytics-filter input, .analytics-filter select, .auth-card input, .auth-card select, .user-form input, .user-form select, .user-form textarea {
    background: #24180d;
  }

  .sidebar-wrap {
    display: none;
  }

  .sidebar, .sidebar.collapsed {
    border-radius: 0 18px 18px 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: .9rem;
    position: static;
    overflow: hidden;
  }

  .sidebar-brand-block {
    margin-bottom: .65rem;
    padding-bottom: .65rem;
  }

  .sidebar-brand-title {
    display: block !important;
  }

  .sidebar.collapsed .sidebar-head {
    justify-content: space-between;
  }

  .sidebar-toggle-inside {
    display: none;
  }

  .sidebar-mobile-close {
    color: #fff7e8;
    background: #fff4de0f;
    border: 1px solid #ffdfa724;
    border-radius: 12px;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    font-size: 1.45rem;
    line-height: 1;
    display: grid;
  }

  .sidebar-mobile-subtitle {
    color: var(--muted);
    margin-top: .3rem;
    font-size: .82rem;
    display: block;
  }

  .sidebar-nav, .sidebar.collapsed .sidebar-nav {
    gap: .45rem;
    padding-right: .1rem;
    overflow-y: auto;
  }

  .sidebar-nav a, .sidebar.collapsed .sidebar-nav > a, .sidebar.collapsed .collapsed-icon-link, .sidebar-footer-links .secondary-button {
    text-align: left;
    height: auto;
    min-height: 42px;
    font-size: .93rem;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: .62rem .72rem !important;
  }

  .sidebar.collapsed .sidebar-collapsed-item {
    justify-content: stretch;
  }

  .sidebar-collapsed-item:hover:after, .sidebar-collapsed-item:hover:before {
    display: none;
  }

  .sidebar-footer-links {
    margin-top: .55rem;
    padding-top: .65rem;
  }

  .dashboard-layout.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .dashboard-apiary-header, .dashboard-summary-top-row, .panel-header-row, .panel-inline-topbar, .table-row {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-summary-top-row {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .dashboard-summary-filters {
    grid-column: 1;
    justify-self: center;
    width: 100%;
  }

  .active-apiary-inline-row {
    flex-wrap: nowrap;
  }

  .table-row > *, .panel-header-row > *, .panel-inline-topbar > * {
    min-width: 0;
  }

  .form-grid-two, .settings-grid {
    grid-template-columns: 1fr;
  }

  .route-map-header {
    flex-direction: column;
  }

  .route-map-link {
    text-align: center;
    width: 100%;
  }

  .route-map-marker-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-summary-filters {
    justify-content: flex-start;
    justify-self: stretch;
    width: 100%;
    display: flex;
  }

  .analytics-stack {
    gap: .65rem;
  }

  .analytics-page-stack {
    margin-top: -.75rem;
  }

  .alerts-page-stack {
    margin-top: .35rem;
  }

  .analytics-controls-layout {
    grid-template-columns: 1fr;
    gap: .55rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .analytics-controls-stack, .analytics-controls-title {
    justify-self: stretch;
    min-width: 0;
    max-width: 100%;
  }

  .analytics-controls-stack .analytics-actions-row {
    grid-template-columns: 1fr;
    gap: .55rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
  }

  .analytics-controls-stack .analytics-filter, .analytics-controls-stack .analytics-filter > div, .analytics-controls-stack .analytics-filter input, .analytics-controls-stack .analytics-filter select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .analytics-controls-stack .analytics-filter {
    justify-self: stretch;
  }

  .analytics-controls-stack .analytics-filter input, .analytics-controls-stack .analytics-filter select {
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: 100%;
    display: block;
  }

  .analytics-controls-stack .analytics-filter input[type="date"] {
    padding-left: .58rem;
    padding-right: .42rem;
  }

  .analytics-filter, .dashboard-apiary-select {
    width: 100%;
    min-width: 0;
  }

  .dashboard-summary-filters .dashboard-apiary-select {
    width: min(100%, var(--dashboard-select-width));
    max-width: var(--dashboard-select-width);
  }

  .analytics-actions-row, .form-actions-row, .row-actions, .admin-tabs {
    align-items: stretch;
    width: 100%;
  }

  .analytics-actions-row > *, .form-actions-row > *, .row-actions > *, .row-actions a, .row-actions button, .panel-action-row > *, .admin-tabs > *, a.secondary-button, button {
    max-width: 100%;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .row-actions a, .row-actions button, .form-actions-row button, .panel-action-row a, .panel-action-row button {
    width: 100%;
  }

  .admin-list-toolbar, .admin-list-toolbar-actions {
    align-items: stretch;
  }

  .admin-owner-filter {
    min-width: 100%;
  }

  .email-settings-toggle-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .email-settings-switch {
    width: 100%;
  }

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

  .single-beehive-charts .chart-wrap, .chart-wrap {
    height: 220px;
  }

  .route-map-google-frame {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }

  .modal-card, .alert-modal-card {
    border-radius: 16px;
    width: 100%;
    max-height: 86dvh;
  }

  .admin-page-offset {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  html, body {
    font-size: 14px;
  }

  .dashboard-layout {
    padding: clamp(1rem, 5vw, 1.5rem);
    padding-bottom: calc(5.9rem + env(safe-area-inset-bottom));
  }

  .mobile-topbar {
    border-radius: 0;
    min-height: 44px;
  }

  .stats-grid, .dashboard-top-grid, .dashboard-latest-grid {
    grid-template-columns: 1fr;
  }

  .beehive-dashboard-card, .summary-stat-card, .panel-card {
    border-radius: 14px;
  }

  .journal-filter-card {
    grid-template-columns: 1fr;
  }

  .beehive-title-row, .beehive-card-badges, .active-apiary-inline-row, .mini-meta {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .route-map-marker-list {
    grid-template-columns: 1fr;
  }

  .route-map-google-frame {
    min-height: 220px;
  }

  .auth-card {
    width: 100%;
  }
}

/*# sourceMappingURL=src_app_globals_0p2ml0n.css.map*/