:root {
  --background: 210 40% 97%;
  --foreground: 222 47% 12%;
  --primary: 187 78% 29%;
  --primary-foreground: 0 0% 100%;
  --secondary: 24 92% 64%;
  --secondary-foreground: 222 47% 12%;
  --muted: 210 30% 92%;
  --muted-foreground: 217 16% 42%;
  --destructive: 348 76% 48%;
  --destructive-foreground: 0 0% 100%;
  --border: 213 27% 84%;
  --card: 0 0% 100%;
  --shadow-sm: 0 8px 22px hsl(222 47% 12% / 0.08);
  --shadow-md: 0 18px 45px hsl(222 47% 12% / 0.12);
  --shadow-lg: 0 24px 70px hsl(222 47% 12% / 0.18);
  --transition-fast: 160ms ease;
  --transition-smooth: 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.45rem;
}

.dark {
  --background: 222 47% 7%;
  --foreground: 210 40% 96%;
  --primary: 185 84% 44%;
  --primary-foreground: 222 47% 7%;
  --secondary: 24 92% 62%;
  --secondary-foreground: 222 47% 8%;
  --muted: 220 28% 15%;
  --muted-foreground: 214 18% 72%;
  --destructive: 350 85% 63%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 22% 24%;
  --card: 222 42% 10%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, hsl(var(--secondary) / 0.16), transparent 32rem),
    radial-gradient(circle at 88% 8%, hsl(var(--primary) / 0.13), transparent 28rem),
    linear-gradient(135deg, hsl(var(--background)), hsl(var(--muted)));
  color: hsl(var(--foreground));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a, input, textarea { transition: var(--transition-smooth); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid hsl(var(--secondary));
  outline-offset: 3px;
}

label > span:not(.sr-only) { display: block; }

/* Updated app palette: teal primary, coral accent, cool slate surfaces. */
.border-emerald-200 { border-color: hsl(187 56% 74%) !important; }
.bg-emerald-50 { background-color: hsl(188 70% 94%) !important; }
.bg-emerald-200 { background-color: hsl(187 68% 82%) !important; }
.bg-emerald-700 { background-color: hsl(187 78% 29%) !important; }
.hover\:bg-emerald-800:hover { background-color: hsl(187 82% 23%) !important; }
.text-emerald-800, .text-emerald-900, .text-emerald-950 { color: hsl(188 86% 17%) !important; }
.focus\:border-emerald-500:focus { border-color: hsl(187 78% 34%) !important; }
.focus\:ring-emerald-200:focus { --tw-ring-color: hsl(187 68% 82%) !important; }
.border-violet-200 { border-color: hsl(238 55% 82%) !important; }
.bg-violet-50 { background-color: hsl(238 72% 96%) !important; }
.bg-violet-200 { background-color: hsl(238 66% 88%) !important; }
.bg-violet-700 { background-color: hsl(238 48% 48%) !important; }
.hover\:bg-violet-800:hover { background-color: hsl(238 52% 39%) !important; }
.text-violet-800, .text-violet-950 { color: hsl(238 48% 25%) !important; }
.focus\:border-violet-500:focus { border-color: hsl(238 48% 52%) !important; }
.focus\:ring-violet-200:focus { --tw-ring-color: hsl(238 66% 88%) !important; }
.border-sky-200 { border-color: hsl(196 60% 80%) !important; }
.bg-sky-50 { background-color: hsl(196 82% 96%) !important; }
.bg-sky-200 { background-color: hsl(196 76% 86%) !important; }
.bg-sky-700 { background-color: hsl(196 72% 36%) !important; }
.hover\:bg-sky-800:hover { background-color: hsl(196 76% 29%) !important; }
.text-sky-800, .text-sky-950 { color: hsl(197 76% 22%) !important; }
.focus\:border-sky-500:focus { border-color: hsl(196 72% 42%) !important; }
.focus\:ring-sky-200:focus { --tw-ring-color: hsl(196 76% 86%) !important; }
.border-orange-200, .border-amber-200 { border-color: hsl(24 86% 80%) !important; }
.bg-orange-50, .bg-amber-50 { background-color: hsl(24 92% 96%) !important; }
.bg-orange-200, .bg-amber-200 { background-color: hsl(24 90% 86%) !important; }
.bg-orange-600, .bg-amber-600 { background-color: hsl(24 80% 52%) !important; }
.hover\:bg-orange-700:hover, .hover\:bg-amber-700:hover { background-color: hsl(24 84% 44%) !important; }
.text-orange-800, .text-orange-900, .text-orange-950, .text-amber-800, .text-amber-900, .text-amber-950 { color: hsl(24 72% 25%) !important; }
.focus\:border-orange-500:focus, .focus\:border-amber-500:focus { border-color: hsl(24 80% 52%) !important; }
.focus\:ring-orange-200:focus, .focus\:ring-amber-200:focus { --tw-ring-color: hsl(24 90% 86%) !important; }

.hero-card { position: relative; }
.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -6rem -8rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: hsl(var(--secondary) / 0.28);
  filter: blur(2px);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: -7rem auto auto -7rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.10);
}

.metric-card { background-image: linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted) / 0.55)); }

.farm-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image:
    radial-gradient(circle at 100% 0%, hsl(var(--secondary) / 0.18), transparent 8rem),
    linear-gradient(145deg, hsl(var(--card)), hsl(var(--muted) / 0.28));
}

.farm-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.32rem;
  background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--secondary)));
  opacity: 0.95;
  z-index: -1;
}

.module-1-panel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.farm-icon-badge {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / 0.16);
  background:
    linear-gradient(145deg, hsl(var(--primary) / 0.12), hsl(var(--secondary) / 0.25)),
    hsl(var(--card));
  box-shadow: 0 10px 24px hsl(var(--primary) / 0.12);
  font-size: 1.15rem;
}

.module-1-form-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.55rem;
}

.module-1-form-row > label,
.module-1-form-row > div { min-height: 4.8rem; }
.module-1-form-row input,
.module-1-form-row select { min-height: 2.55rem; }

.module-1-save-button {
  flex: 0 0 auto;
  min-height: 2.55rem;
  margin-top: 1.35rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.module-1-save-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.module-1-save-button:disabled { cursor: not-allowed; opacity: 0.7; transform: none; }

section.space-y-4 > div[class*="rounded-[var(--radius-lg)]"] > p.mb-4,
section.space-y-4 > div[class*="rounded-[var(--radius-lg)]"] > div[class*="mt-6"][class*="bg-[hsl(var(--muted))]"][class*="p-4"] { display: none !important; }

form[class*="min-w-[8.8in]"] { padding-right: 1in; }
label:has(input[placeholder="Chagua namba ya banda"]) input { width: 2in; max-width: 100%; }
textarea[placeholder="Andika sababu ya vifo kama vipo..."] { width: calc(100% - 1.3in); max-width: 100%; }
textarea[placeholder="Andika maoni ya mhudumu kuhusu hali ya banda..."] { width: calc(100% - 2.7in); max-width: 100%; height: 0.5in; }

section.space-y-4:has(.mauzo-workspace) > div:first-child:not(.mauzo-workspace) { display: none !important; }

.mauzo-title-bar {
  border-radius: 1.8rem !important;
  border: 1px solid hsl(var(--primary) / 0.18) !important;
  background: hsl(var(--card)) !important;
  padding: 1rem 1.15rem !important;
  box-shadow: 0 10px 28px hsl(var(--primary) / 0.10), inset 0 0 0 1px hsl(var(--card) / 0.7) !important;
}

.mauzo-title-bar > div { align-items: center !important; }
.mauzo-title-bar .h-12.w-12 {
  width: 4rem !important;
  height: 4rem !important;
  border-radius: 1.25rem !important;
  background: hsl(var(--primary) / 0.10) !important;
  font-size: 2rem !important;
  box-shadow: var(--shadow-sm) !important;
}
.mauzo-title-bar h2 {
  color: hsl(var(--primary)) !important;
  font-size: clamp(1.7rem, 3vw, 2.45rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
}
.mauzo-title-bar p {
  margin-top: 0.55rem !important;
  color: hsl(var(--muted-foreground)) !important;
  font-size: clamp(0.78rem, 1.35vw, 1.05rem) !important;
  font-weight: 900 !important;
  letter-spacing: 0.28em !important;
}
.mauzo-title-bar div[class*="rounded-[var(--radius-md)]"][class*="bg-[hsl(var(--muted)"] {
  border-radius: 1.25rem !important;
  border-color: hsl(var(--border)) !important;
  background: hsl(var(--muted) / 0.48) !important;
  padding: 0.45rem !important;
  box-shadow: var(--shadow-sm) !important;
}
.mauzo-title-bar a,
.mauzo-title-bar div > span[class*="bg-[hsl(var(--primary))]"] {
  border-radius: 0.95rem !important;
  padding: 0.9rem 1.45rem !important;
  font-size: 1rem !important;
}

.mauzo-workspace {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 0%, hsl(var(--secondary) / 0.16), transparent 12rem),
    hsl(var(--card)) !important;
}

.mauzo-workspace::before { display: none !important; }

.mauzo-workspace > .grid.lg\:grid-cols-2 {
  grid-template-columns: 1fr !important;
  align-items: start;
}

.mauzo-workspace > .grid > .space-y-4 { display: contents; }
.mauzo-workspace > .grid > .space-y-4 > * { margin-top: 0 !important; }

.mauzo-stock-panel,
.mauzo-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

.mauzo-stock-panel { display: none !important; }

.mauzo-stock-panel {
  min-height: 100%;
  border-width: 1px !important;
}

.mauzo-stock-panel h3,
.mauzo-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.mauzo-stock-panel h3::before { content: "📦"; }
.mauzo-panel h3::before { content: "🥚"; }

.mauzo-workspace button {
  min-height: 2.75rem;
  border-radius: var(--radius-sm) !important;
  background: hsl(var(--primary)) !important;
  padding: 0.72rem 0.9rem !important;
  color: hsl(var(--primary-foreground)) !important;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: var(--shadow-sm);
}

.mauzo-workspace button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mauzo-workspace button:disabled { cursor: not-allowed; opacity: 0.7; transform: none; }

.sales-form-fixed {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  column-gap: 0.2in;
  row-gap: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border) / 0.75);
  background: hsl(var(--muted) / 0.36);
  padding: 1rem;
}

.sales-form-fixed > label,
.sales-form-fixed > div[class*="rounded-[var(--radius-sm)]"] {
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
  grid-column: auto !important;
}

.sales-form-fixed > label:nth-of-type(3) { grid-column: 1 / -1 !important; }
.sales-form-fixed > label { min-height: 4.25rem; }

.sales-form-fixed > label > span {
  min-height: 1rem;
  color: hsl(var(--foreground));
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.sales-form-fixed input,
.sales-form-fixed select {
  margin-top: 0.35rem !important;
  min-height: 2.75rem;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  border-radius: var(--radius-sm) !important;
  background: hsl(var(--card)) !important;
}

.sales-form-fixed > label:nth-of-type(4),
.sales-form-fixed > label:nth-of-type(4) input {
  width: 1in !important;
  min-width: 1in !important;
  max-width: 1in !important;
}

.sales-form-fixed > label:nth-of-type(5),
.sales-form-fixed > label:nth-of-type(5) input {
  width: 1.3in !important;
  min-width: 1.3in !important;
  max-width: 1.3in !important;
}

.sales-form-fixed > div[class*="rounded-[var(--radius-sm)]"] {
  width: 1.05in !important;
  min-width: 1.05in !important;
  max-width: 1.05in !important;
}

.sales-form-fixed select { overflow: hidden; text-overflow: ellipsis; }

.sales-form-fixed > div[class*="rounded-[var(--radius-sm)]"] {
  min-height: 2.55rem;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  border: 1px solid hsl(var(--secondary) / 0.45);
  box-shadow: inset 0 0 0 1px hsl(var(--card) / 0.6);
  text-align: center;
  white-space: nowrap;
  padding: 0.45rem 0.55rem !important;
  font-size: 0.78rem;
}

.sales-form-fixed > div[class*="rounded-[var(--radius-sm)]"]::before {
  content: "Jumla";
  display: block;
  color: hsl(var(--foreground));
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05;
}

.sales-form-fixed > button {
  align-self: end;
  grid-column: auto !important;
  margin-top: 0;
  min-height: 2.55rem !important;
  padding: 0.55rem 0.7rem !important;
  white-space: nowrap;
}

.sales-form-fixed > p { grid-column: 1 / -1 !important; }

:where(table) {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  background: hsl(var(--card));
}

:where(thead tr) {
  background: linear-gradient(180deg, hsl(var(--primary) / 0.13), hsl(var(--primary) / 0.07));
}

:where(th) {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 2px solid hsl(var(--primary) / 0.28) !important;
  border-right: 1px solid hsl(var(--border)) !important;
  background: hsl(var(--primary) / 0.10);
  color: hsl(var(--primary));
  white-space: nowrap;
}

:where(td) {
  border-bottom: 1px solid hsl(var(--border) / 0.72) !important;
  border-right: 1px solid hsl(var(--border) / 0.55) !important;
  vertical-align: middle;
}

:where(th:last-child, td:last-child) { border-right: 0 !important; }
:where(tbody tr:last-child td) { border-bottom: 0 !important; }
:where(tbody tr:nth-child(even)) { background: hsl(var(--muted) / 0.34); }
:where(tbody tr:hover) { background: hsl(var(--secondary) / 0.16) !important; }
:where(th:first-child, td:first-child) { text-align: center; }

.table-input {
  width: 100%;
  min-width: 7rem;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  outline: none;
}
.table-input:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 4px hsl(var(--primary) / 0.12); }

.action-primary, .action-muted, .action-danger {
  margin-left: 0.35rem;
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  font-weight: 900;
  font-size: 0.78rem;
}
.action-primary { background: hsl(var(--primary)); color: white; }
.action-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.action-muted { background: hsl(var(--card)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
.action-danger { background: hsl(var(--destructive) / 0.10); color: hsl(var(--destructive)); }
.action-danger:hover { background: hsl(var(--destructive)); color: white; }

.skeleton {
  position: relative;
  overflow: hidden;
  background: hsl(var(--muted));
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, hsl(var(--card) / 0.72), transparent);
  animation: shimmer 1.2s infinite;
}

.toast-pop { animation: toastIn 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (min-width: 900px) {
  .sales-form-fixed {
    column-gap: 0.16in;
    grid-template-columns: minmax(8.5rem, 0.9fr) minmax(8.5rem, 1fr) minmax(13rem, 1.45fr) 1in 1.3in 1.05in minmax(4.6rem, 0.55fr);
  }
  .sales-form-fixed > label:nth-of-type(3) { grid-column: auto !important; margin-left: -0.2in; }
  .sales-form-fixed > label:nth-of-type(4) { position: relative; left: -0.3in; }
  .sales-form-fixed > label:nth-of-type(5) { position: relative; left: -0.4in; }
  .sales-form-fixed > div[class*="rounded-[var(--radius-sm)]"] { position: relative; left: -0.4in; }
  .sales-form-fixed > button { position: relative; left: -0.5in; }
}

@media (max-width: 1100px) {
  .mauzo-workspace > .grid.lg\:grid-cols-2 { grid-template-columns: 1fr !important; }
  .mauzo-workspace > .grid > .space-y-4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 800px) {
  .mauzo-workspace > .grid > .space-y-4 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sales-form-fixed { grid-template-columns: 1fr; }
  .sales-form-fixed > label:nth-of-type(3),
  .sales-form-fixed > button,
  .sales-form-fixed > div[class*="rounded-[var(--radius-sm)]"] { grid-column: 1 / -1 !important; }
}

@media (min-width: 1024px) {
  section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid.xl\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }
}

@media (min-width: 1280px) {
  section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid.xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.75rem;
}

section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form > label.block,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form > button,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form > div.grid,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form > label:has(+ p),
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form > p {
  grid-column: 1 / -1;
}

section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-violet-200,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-orange-200 {
  overflow: hidden;
  min-width: 0;
}

section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-violet-200 form,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-orange-200 form {
  grid-template-columns: 1fr !important;
}

section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-violet-200 form > *,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-orange-200 form > * {
  grid-column: 1 / -1 !important;
  min-width: 0;
}

section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-violet-200 form > div.grid.grid-cols-2,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-orange-200 form > div.grid.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-violet-200 form label,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-orange-200 form label,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-violet-200 form input,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-orange-200 form input,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-violet-200 form select,
section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-orange-200 form select {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 520px) {
  section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form > div.grid.grid-cols-2,
  section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form > label.block:has(input[type="number"]):not(:has(input[aria-label="Age in weeks"])) {
    grid-column: auto;
  }
}

@media (max-width: 519px) {
  section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form { grid-template-columns: 1fr; }
  section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] form > * { grid-column: 1 / -1 !important; }
  section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-violet-200 form > div.grid.grid-cols-2,
  section.space-y-4 > div.space-y-6 > div[class*="rounded-[var(--radius-lg)]"] > div.grid > div.border-orange-200 form > div.grid.grid-cols-2 { grid-template-columns: 1fr !important; }
}

@media (max-width: 420px) {
  html { font-size: 13px; }
  .action-primary, .action-muted, .action-danger { padding: 0.42rem 0.62rem; font-size: 0.72rem; }
}
