@charset "UTF-8";
:root {
  --ink: #1f1f1b;
  --ink-muted: #5b5b55;
  --leaf: #2f6b3c;
  --leaf-dark: #1f4b2b;
  --earth: #e7dcc9;
  --sun: #f3c88a;
  --mist: #f7f2ea;
  --card: #fffdfa;
  --border: #d8cfc0;
  --pending: #2f6b3c;
  --done: #2f5d6b;
  --ignored: #8f6a3a;
  --blocked: #7a3d3d;
  --shadow: 0 18px 40px rgba(41, 34, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--mist);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", "Georgia", serif;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 2.4vw + 1.6rem, 3.4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 1.6vw + 1rem, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.atmosphere {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 15% 15%, rgba(243, 200, 138, 0.35), transparent 50%), radial-gradient(circle at 80% 10%, rgba(47, 107, 60, 0.2), transparent 55%), linear-gradient(120deg, rgba(231, 220, 201, 0.6), transparent 55%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.3) 0 2px, transparent 2px 10px);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 12px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(44, 35, 25, 0.08);
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 10;
}

.topbar-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topbar-toggle-btn {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 60, 0.2);
  background: rgba(47, 107, 60, 0.08);
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.topbar-toggle-btn::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--leaf-dark);
  box-shadow: 0 -5px 0 var(--leaf-dark), 0 5px 0 var(--leaf-dark);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(47, 107, 60, 0.25);
  background: rgba(47, 107, 60, 0.08);
}

.user-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--leaf-dark);
  margin-left: 2px;
}

.user-toggle:hover {
  background: rgba(47, 107, 60, 0.14);
}

.user-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 107, 60, 0.18);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.user-menu .dropdown-menu {
  min-width: 220px;
  padding: 12px;
}

.dropdown-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.dropdown-identity {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.dropdown-identity--sub {
  font-size: 0.86em;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: -4px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
}

.dropdown-link:hover {
  background: rgba(47, 107, 60, 0.12);
}

.dropdown:focus-within .dropdown-menu,
.dropdown:hover .dropdown-menu {
  display: block;
}

.topbar-link:hover {
  background: rgba(47, 107, 60, 0.12);
  color: var(--leaf-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero--compact {
  padding: 26px 28px;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
}

.hero--onboarding {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.hero-text {
  display: grid;
  gap: 18px;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 540px;
}

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

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.hero-meta {
  display: grid;
  gap: 16px;
}

.meta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.meta-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}

.meta-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.meta-note {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.filters {
  margin: 30px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.filter.is-active {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}

.filter-count {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
}

.plan {
  display: grid;
  gap: 16px;
}

.plan-list {
  display: grid;
  gap: 16px;
}

.section-header {
  display: grid;
  gap: 6px;
}

.section-subtitle {
  color: var(--ink-muted);
}

.detail-hero {
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-hero-media {
  display: grid;
  gap: 12px;
  align-items: start;
  justify-items: end;
}

.detail-hero-image {
  width: 220px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(47, 107, 60, 0.08);
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-hero-image--empty {
  background: linear-gradient(135deg, rgba(47, 107, 60, 0.12), rgba(159, 122, 73, 0.18));
}

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

.detail-meta-panel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.info-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.info-value {
  font-weight: 600;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(44, 35, 25, 0.08);
}

.panel-text {
  color: var(--ink-muted);
}

.panel-list {
  padding-left: 18px;
  color: var(--ink);
}

.panel-list li {
  margin-bottom: 8px;
}

.panel-actions {
  margin-top: 6px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 107, 60, 0.12);
  color: var(--leaf-dark);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 60, 0.18);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.mini-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.mini-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.mini-note {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.record-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.record-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(44, 35, 25, 0.08);
  animation: rise 0.6s ease forwards;
  opacity: 0;
  transform: translateY(12px);
  animation-delay: calc(var(--i) * 0.08s);
}

.crop-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.crop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(44, 35, 25, 0.08);
  animation: rise 0.6s ease forwards;
  opacity: 0;
  transform: translateY(12px);
  animation-delay: calc(var(--i) * 0.08s);
}

.crop-card .actions {
  margin-top: auto;
}

.crop-hero {
  position: relative;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  display: grid;
  align-items: end;
  aspect-ratio: 18/7;
  min-height: 140px;
  padding: 0;
  margin: -22px -22px 6px;
  width: calc(100% + 44px);
  justify-self: stretch;
  background: linear-gradient(135deg, rgba(47, 107, 60, 0.12), rgba(159, 122, 73, 0.18));
  color: #fff;
}

.crop-hero img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  display: block;
  z-index: 0;
  filter: saturate(0.9);
}

.crop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 21, 18, 0.15), rgba(15, 21, 18, 0.6));
  z-index: 1;
}

.crop-hero-content {
  position: relative;
  z-index: 2;
  padding: 14px;
}

.crop-hero--empty {
  color: var(--ink);
}

.crop-hero--empty::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.75));
}

.crop-card--add {
  background: rgba(255, 255, 255, 0.7);
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.crop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.crop-status {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 107, 60, 0.12);
  color: var(--leaf-dark);
}

.crop-status--pozor {
  background: rgba(143, 106, 58, 0.12);
  color: var(--ignored);
}

.crop-amount {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
}

.crop-variant {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.crop-zone {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.crop-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crop-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.crop-value {
  font-weight: 600;
}

.crop-location {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.crop-add-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.crop-add-text {
  color: var(--ink-muted);
}

.location-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.location-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(44, 35, 25, 0.08);
  animation: rise 0.6s ease forwards;
  opacity: 0;
  transform: translateY(12px);
  animation-delay: calc(var(--i) * 0.08s);
}

.location-card--add {
  background: rgba(255, 255, 255, 0.7);
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.location-address {
  color: var(--ink-muted);
}

.location-info {
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.settings-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-list {
  display: grid;
  gap: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.settings-label {
  font-weight: 600;
}

.settings-value {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.map-section {
  margin-top: 24px;
}

.map-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 16px;
  box-shadow: var(--shadow);
}

.map-toolbar {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.map-canvas {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(244, 246, 246, 0.8);
  min-height: 420px;
  overflow: hidden;
}

.map-canvas--empty {
  display: grid;
  place-items: center;
}

.map-canvas--full {
  grid-column: 1/-1;
}

.map-empty {
  text-align: center;
  max-width: 320px;
  color: var(--ink-muted);
}

.mapy-canvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.mapy-canvas img {
  max-width: none;
}

.map-pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 6px rgba(47, 107, 60, 0.15);
}

.map-pin--pozor .map-pin-dot {
  background: var(--ignored);
  box-shadow: 0 0 0 6px rgba(143, 106, 58, 0.15);
}

.map-pin-label {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.85rem;
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.map-pin-label span {
  color: var(--ink-muted);
}

.map-legend {
  display: grid;
  gap: 12px;
  align-content: start;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.legend-zone,
.legend-center {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--zone-color, #2f6b3c);
  border: 2px solid var(--zone-color, #2f6b3c);
}

.legend-center {
  border-radius: 50%;
  background: rgba(0, 103, 255, 0.2);
  border-color: rgba(0, 103, 255, 0.6);
}

.zone-editor {
  display: grid;
  gap: 12px;
  margin: 8px 0 4px;
}

.zone-editor .map-canvas {
  min-height: 300px;
}

.zone-editor .mapy-canvas {
  min-height: 300px;
}

.zone-editor-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.8);
}

.zone-editor--empty .mapy-canvas {
  display: none;
}

.zone-editor--empty .zone-editor-empty {
  display: flex;
}

.zone-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zone-editor-hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.zone-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.zone-editor-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 107, 60, 0.2);
}

.zones-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

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

.zone-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(44, 35, 25, 0.08);
}

.zone-card--add {
  background: rgba(255, 255, 255, 0.7);
  border-style: dashed;
  flex-direction: column;
  align-items: flex-start;
}

.segmented {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 4px;
  gap: 4px;
}

.segment {
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
}

.segment.is-active {
  background: var(--leaf);
  color: #fff;
}

.legend-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 107, 60, 0.15);
}

.legend-dot--warning {
  background: var(--ignored);
  box-shadow: 0 0 0 4px rgba(143, 106, 58, 0.15);
}

.legend-zone {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--zone-color, #2f6b3c);
  border: 2px solid var(--zone-color, #2f6b3c);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 14, 0.45);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  width: min(520px, 92vw);
  padding: 22px;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease;
  max-height: calc(100vh - 48px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.modal-card--fullscreen {
  width: 96vw;
  height: 92vh;
  max-height: 92vh;
  overflow: auto;
}

.modal-card--fullscreen .zone-editor .map-canvas,
.modal-card--fullscreen .zone-editor .mapy-canvas {
  min-height: clamp(520px, 70vh, 820px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-subtitle {
  color: var(--ink-muted);
  margin-top: 4px;
}

.modal-close {
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink-muted);
}

.modal-body {
  margin-top: 16px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.onboarding-steps {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}

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

.step-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 24px rgba(44, 35, 25, 0.08);
  animation: rise 0.6s ease forwards;
  opacity: 0;
  transform: translateY(12px);
  animation-delay: calc(var(--i) * 0.1s);
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--leaf);
}

.onboarding-cta {
  margin-top: 28px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.cta-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-text {
  color: var(--ink-muted);
}

.teaser-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.teaser-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.teaser-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(44, 35, 25, 0.08);
}

.teaser-foot {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.teaser-note {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.teaser-roadmap {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

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

.roadmap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(44, 35, 25, 0.08);
}

.roadmap-card.is-now {
  border-color: rgba(47, 107, 60, 0.35);
  background: rgba(47, 107, 60, 0.08);
}

.roadmap-stage {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(44, 35, 25, 0.08);
  animation: rise 0.6s ease forwards;
  opacity: 0;
  transform: translateY(12px);
  animation-delay: calc(var(--i) * 0.08s);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.card-reason {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.card-date {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover .crop-card--add,
.card-link:hover .location-card--add,
.card-link:hover .zone-card--add {
  border-color: rgba(47, 107, 60, 0.4);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-form {
  margin: 0;
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.flash-stack--floating {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 100vw - 32px);
  z-index: 1100;
  margin: 0;
}

.flash {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(31, 31, 27, 0.12);
  animation: flash-rise 0.35s ease;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, border-width 0.35s ease;
  overflow: hidden;
  max-height: 200px;
}

.flash--success {
  border-color: rgba(47, 107, 60, 0.45);
  background: color-mix(in srgb, var(--card) 88%, #2f6b3c 12%);
}

.flash--error {
  border-color: rgba(122, 61, 61, 0.45);
  background: color-mix(in srgb, var(--card) 88%, #7a3d3d 12%);
}

.flash--hide {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin: 0;
  padding: 0;
  border-width: 0;
}

@keyframes flash-rise {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 720px) {
  .flash-stack--floating {
    top: 16px;
    width: min(520px, 100vw - 24px);
  }
}
.status {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.status--pending {
  background: rgba(47, 107, 60, 0.12);
  color: var(--pending);
  border-color: rgba(47, 107, 60, 0.25);
}

.status--done {
  background: rgba(47, 93, 107, 0.12);
  color: var(--done);
  border-color: rgba(47, 93, 107, 0.25);
}

.status--ignored {
  background: rgba(143, 106, 58, 0.12);
  color: var(--ignored);
  border-color: rgba(143, 106, 58, 0.25);
}

.status--blocked {
  background: rgba(122, 61, 61, 0.12);
  color: var(--blocked);
  border-color: rgba(122, 61, 61, 0.25);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 107, 60, 0.25);
}

.btn-secondary {
  background: rgba(47, 107, 60, 0.12);
  color: var(--leaf-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--border);
}

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

.form-errors {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(143, 64, 64, 0.2);
  background: rgba(143, 64, 64, 0.06);
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--ink);
}

.form-errors li::before {
  content: "•";
  color: rgba(143, 64, 64, 0.8);
  margin-right: 6px;
}

.field-error {
  margin-top: 4px;
  font-size: 0.85rem;
  color: rgba(143, 64, 64, 0.95);
}

.form-field--hidden {
  display: none;
}

.modal-form .form-field--hidden {
  display: none !important;
}

.modal-form .is-invalid {
  border-color: rgba(143, 64, 64, 0.7);
  box-shadow: 0 0 0 2px rgba(143, 64, 64, 0.12);
}

.modal-form .form-field--checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.modal-form .form-field--checkbox input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}

.modal-form .form-row--photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.modal-form .form-row--photo .form-field--checkbox {
  white-space: nowrap;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero--compact {
    grid-template-columns: 1fr;
  }
  .detail-meta {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-meta-panel {
    grid-template-columns: 1fr;
  }
  .map-card {
    grid-template-columns: 1fr;
  }
  .zones-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .crop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .page {
    padding: 32px 18px 60px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .topbar-main {
    width: 100%;
    justify-content: space-between;
  }
  .topbar-toggle-btn {
    display: inline-flex;
  }
  .topbar-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    display: none;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .topbar-toggle:checked ~ .topbar-nav {
    display: flex;
  }
  .topbar-link {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  .dropdown-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }
  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-head {
    flex-direction: column;
  }
  .detail-hero-media {
    width: 100%;
    justify-items: start;
  }
  .detail-hero-image {
    width: 100%;
    height: 200px;
  }
  .crop-grid {
    grid-template-columns: 1fr;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .zones-grid {
    grid-template-columns: 1fr;
  }
  .teaser-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .teaser-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .step-list {
    grid-template-columns: 1fr;
  }
  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

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