:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  color: #020617;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #020617;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  background: transparent;
}

input {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.75rem;
}

.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.ml-auto { margin-left: auto; }
.block { display: block; }
.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }
.min-w-0 { min-width: 0; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-0 { gap: 0; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.overflow-y-auto { overflow-y: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded { border-radius: 4px; }
.rounded-md { border-radius: 6px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; }
.border-x { border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-r { border-right: 1px solid #e2e8f0; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.bg-white { background: #fff; }
.bg-zinc-50,
.bg-stone-50 { background: #fafafa; }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-100 { background: #f1f5f9; }
.bg-slate-200 { background: #e2e8f0; }
.bg-slate-950 { background: #020617; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-emerald-100 { background: #d1fae5; }
.bg-emerald-500 { background: #10b981; }
.bg-emerald-600 { background: #059669; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-4 { padding-bottom: 1rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-tight { letter-spacing: 0; }
.leading-6 { line-height: 1.5rem; }
.leading-7 { line-height: 1.75rem; }
.text-white { color: #fff; }
.text-slate-950 { color: #020617; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-emerald-700 { color: #047857; }
.text-emerald-100 { color: #d1fae5; }
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.transition { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.h-2 { height: 0.5rem; }
.h-9 { height: 2.25rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.w-9 { width: 2.25rem; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.max-w-\[78\%\] { max-width: 78%; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hover\:bg-slate-50:hover,
.hover\:bg-zinc-50:hover { background: #f8fafc; }
.hover\:bg-slate-100:hover { background: #f1f5f9; }
.hover\:bg-slate-800:hover { background: #1e293b; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:items-center { align-items: center; }
  .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md\:grid-cols-\[1fr_420px\] { grid-template-columns: 1fr 420px; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:border-b-0 { border-bottom: 0; }
  .lg\:border-r { border-right: 1px solid #e2e8f0; }
  .lg\:grid-cols-\[280px_1fr_300px\] { grid-template-columns: 280px 1fr 300px; }
  .lg\:grid-cols-\[280px_1fr_320px\] { grid-template-columns: 280px 1fr 320px; }
  .lg\:grid-cols-\[340px_1fr\] { grid-template-columns: 340px 1fr; }
}

.dark body,
.dark {
  color-scheme: dark;
  background: #020617;
  color: #fff;
}

.dark .dark\:bg-slate-950 { background: #020617; }
.dark .dark\:bg-slate-900 { background: #0f172a; }
.dark .dark\:bg-slate-800 { background: #1e293b; }
.dark .dark\:bg-emerald-950 { background: #022c22; }
.dark .dark\:bg-emerald-900 { background: #064e3b; }
.dark .dark\:bg-white { background: #fff; }
.dark .dark\:text-white { color: #fff; }
.dark .dark\:text-slate-950 { color: #020617; }
.dark .dark\:text-slate-300 { color: #cbd5e1; }
.dark .dark\:text-slate-400 { color: #94a3b8; }
.dark .dark\:text-emerald-300 { color: #6ee7b7; }
.dark .dark\:border-slate-800 { border-color: #1e293b; }
.dark .dark\:border-slate-700 { border-color: #334155; }
.dark .dark\:hover\:bg-slate-800:hover { background: #1e293b; }

.ros-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 34rem),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #f7fee7 100%);
}

.ros-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1rem;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.ros-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.5rem 1rem;
}

.ros-brand > span {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #047857, #2563eb);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.ros-brand strong,
.ros-card h3,
.ros-top h1 {
  display: block;
  letter-spacing: 0;
}

.ros-brand small,
.ros-card p,
.ros-top p,
.ros-metrics small,
.ros-field span {
  color: #64748b;
}

.ros-side nav {
  display: grid;
  gap: 0.35rem;
}

.ros-side nav button {
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 7px;
  color: #334155;
  text-align: left;
  font-weight: 650;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.ros-side nav button:hover,
.ros-side nav button.active {
  background: #0f172a;
  color: #fff;
}

.ros-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem;
}

.ros-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ros-top h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.55rem, 2vw, 2.35rem);
  line-height: 1.1;
}

.ros-top p,
.ros-card p,
.ros-kicker {
  margin: 0;
}

.ros-actions,
.ros-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ros-location {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.ros-location strong,
.ros-location small {
  display: block;
}

.ros-location small {
  margin-top: 0.2rem;
  color: #64748b;
}

.ros-location input {
  width: 170px;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.ros-btn {
  min-height: 44px;
  border: 1px solid #0f172a;
  border-radius: 7px;
  padding: 0.7rem 1rem;
  background: #0f172a;
  color: #fff;
  font-weight: 750;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.ros-btn-light {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.84);
  color: #0f172a;
  box-shadow: none;
}

.ros-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 750;
}

.ros-alert {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border-radius: 7px;
  font-weight: 650;
}

.ros-ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ros-bad {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.ros-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.ros-hero > div,
.ros-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ros-hero > div:first-child {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.ros-hero h2 {
  margin: 0.5rem 0 0.75rem;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.ros-hero p {
  max-width: 720px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

.ros-kicker {
  color: #047857;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ros-metrics {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.ros-metrics div {
  display: grid;
  gap: 0.15rem;
  padding: 1rem;
  border-radius: 8px;
  background: #f8fafc;
}

.ros-metrics strong {
  font-size: 2rem;
}

.ros-grid-3,
.ros-grid-2 {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

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

.ros-crop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ros-crop {
  min-height: 210px;
}

.ros-crop h3 {
  margin-top: 0.35rem;
  font-size: 1.22rem;
}

.ros-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.ros-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 750;
}

.ros-card {
  padding: 1rem;
  overflow: hidden;
}

.ros-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.ros-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.ros-tile {
  width: 100%;
  min-height: 138px;
  text-align: left;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ros-tile:hover {
  transform: translateY(-2px);
  border-color: #059669;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

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

.ros-field {
  display: grid;
  gap: 0.35rem;
}

.ros-field span {
  font-size: 0.82rem;
  font-weight: 750;
}

.ros-field input,
.ros-field select,
.ros-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0.75rem;
  background: #fff;
  color: #0f172a;
}

.ros-field textarea {
  min-height: 110px;
  resize: vertical;
}

.ros-span-2 {
  grid-column: 1 / -1;
}

.ros-card pre {
  max-height: 420px;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  border-radius: 8px;
  background: #020617;
  color: #d1fae5;
  font-size: 0.82rem;
  line-height: 1.55;
}

.dark .ros-shell {
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.13), transparent 34rem),
    linear-gradient(135deg, #020617 0%, #111827 52%, #052e16 100%);
}

.dark .ros-side,
.dark .ros-card,
.dark .ros-hero > div,
.dark .ros-location,
.dark .ros-btn-light {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(100, 116, 139, 0.36);
  color: #f8fafc;
}

.dark .ros-brand small,
.dark .ros-card p,
.dark .ros-top p,
.dark .ros-metrics small,
.dark .ros-location small,
.dark .ros-field span,
.dark .ros-hero p {
  color: #cbd5e1;
}

.dark .ros-side nav button {
  color: #cbd5e1;
}

.dark .ros-side nav button:hover,
.dark .ros-side nav button.active {
  background: #f8fafc;
  color: #020617;
}

.dark .ros-field input,
.dark .ros-field select,
.dark .ros-field textarea,
.dark .ros-location input,
.dark .ros-metrics div {
  border-color: #334155;
  background: #0f172a;
  color: #f8fafc;
}

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

  .ros-side {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  }

  .ros-side nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .ros-side nav button {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .ros-hero,
  .ros-grid-2,
  .ros-grid-3,
  .ros-crop-grid {
    grid-template-columns: 1fr;
  }

  .ros-location {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .ros-main {
    padding: 0.9rem;
  }

  .ros-top,
  .ros-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ros-form-grid {
    grid-template-columns: 1fr;
  }
}
