/* root.css — The Central Mycelium: Brand DNA, Fonts, Spacing, Shadows, Radius */

/* === Font Faces === */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-regular.cbae9d10c8ad.woff2") format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-medium.a0db3b071d12.woff2") format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-bold.f98431384f18.woff2") format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/playfair-bold.2b1404e15e3c.woff2") format('woff2');
}

/* === CSS Variables === */
:root {
  /* Brand - Legacy (keep for backward compatibility) */
  --m-forest-green: #1a2e1a;
  --m-leaf-green:   #4f8a46;
  --m-earth-green:  #4a5d4a;
  --m-soft-beige:   #f5f2ed;
  --m-card-bg:      #ffffff;
  --m-border:       #e2e0db;

  /* Health Status */
  --m-health-green: #27ae60;
  --m-health-red:   #e74c3c;
  --m-health-blue:  #3498db;

  /* === Modern Pastoralist Design System === */
  /* Primary Colors */
  --m-primary: #3b5334;
  --m-primary-dim: #2f4229;
  --m-primary-container: #526b4a;
  --m-on-primary: #ffffff;
  --m-on-primary-container: #ceeac1;

  /* Secondary Colors (Terracotta) */
  --m-secondary: #95482b;
  --m-secondary-dim: #7a3a22;
  --m-secondary-container: #fc9a76;
  --m-on-secondary: #ffffff;
  --m-on-secondary-container: #753014;

  /* Tertiary Colors (Earth) */
  --m-tertiary: #4c4f34;
  --m-tertiary-dim: #3d3f2a;
  --m-tertiary-container: #64674a;
  --m-on-tertiary: #ffffff;
  --m-on-tertiary-container: #e3e5c1;

  /* Surface Hierarchy (No-Line Rule) */
  --m-surface: #f0f4ef;
  --m-surface-dim: #d2d8d0;
  --m-surface-bright: #f0f4ef;
  --m-surface-container-lowest: #ffffff;
  --m-surface-container-low: #edf2eb;
  --m-surface-container: #e6ebe4;
  --m-surface-container-high: #e1e7de;
  --m-surface-container-highest: #dbe3d9;
  --m-surface-variant: #dbe3d9;

  /* Content Colors */
  --m-on-surface: #191d19;
  --m-on-surface-variant: #414941;
  --m-on-background: #191d19;
  --m-background: #f0f4ef;

  /* Outline */
  --m-outline: #707970;
  --m-outline-variant: #bfc9bf;

  /* Error Colors */
  --m-error: #ba1a1a;
  --m-error-dim: #931414;
  --m-error-container: #ffdad6;
  --m-on-error: #ffffff;
  --m-on-error-container: #93000a;

  /* Inverse Colors */
  --m-inverse-surface: #2d322d;
  --m-inverse-on-surface: #eef3ed;
  --m-inverse-primary: #b2cfa7;

  /* Fixed Colors */
  --m-primary-fixed: #ceebc1;
  --m-primary-fixed-dim: #b2cfa7;
  --m-on-primary-fixed: #0a2007;
  --m-on-primary-fixed-variant: #354d2e;
  --m-secondary-fixed: #ffdbcf;
  --m-secondary-fixed-dim: #ffb59b;
  --m-on-secondary-fixed: #380d00;
  --m-on-secondary-fixed-variant: #773116;
  --m-tertiary-fixed: #e3e5c1;
  --m-tertiary-fixed-dim: #c7c9a7;
  --m-on-tertiary-fixed: #1a1d07;
  --m-on-tertiary-fixed-variant: #46492e;

  /* Glassmorphism */
  --m-glass-bg: rgba(240, 244, 239, 0.8);
  --m-glass-bg-low: rgba(237, 242, 235, 0.9);
  --m-backdrop-blur: blur(12px);

  /* Ambient Shadows (tinted with on-surface #191d19) */
  --m-shadow-ambient: 0 12px 32px rgba(25, 29, 25, 0.06);
  --m-shadow-card: 0 8px 30px rgba(0, 0, 0, 0.02);
  --m-shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.04);
  --m-shadow-float: 0 4px 20px rgba(0, 0, 0, 0.01);
  --m-shadow-button: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --m-space-xs:  0.25rem;
  --m-space-sm:  0.5rem;
  --m-space-md:  1rem;
  --m-space-lg:  1.5rem;
  --m-space-xl:  2rem;
  --m-space-2xl: 2.5rem;
  --m-space-3xl: 3rem;

  /* Radius */
  --m-radius-sm:   0.25rem;
  --m-radius-md:   0.375rem;
  --m-radius-lg:   0.5rem;
  --m-radius-xl:   0.75rem;
  --m-radius-2xl:  1rem;
  --m-radius-3xl:  1.5rem;
  --m-radius-full: 9999px;
  
  /* Legacy Shadows (keep for backward compatibility) */
  --m-shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --m-shadow-md:  0 4px 6px rgba(0,0,0,0.1);
  --m-shadow-lg:  0 10px 15px rgba(0,0,0,0.1);
}

/* === Tailwind utilities missing from build === */

/* Positioning */
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
/* Layout */
.top-1\/2 { top: 50%; }
.left-4 { left: 1rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.items-baseline { align-items: baseline; }
.border-none { border-style: none; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

.focus\:ring-1:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-primary\/20:focus { --tw-ring-color: rgba(59, 83, 52, 0.2); }

.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-\[1000\] { z-index: 1000; }
.z-\[1050\] { z-index: 1050; }
.z-\[1100\] { z-index: 1100; }

/* Display */
.col-span-full { grid-column: 1 / -1; }
.col-span-2 { grid-column: span 2 / span 2; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Spacing - Margin */
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }

/* Spacing - Padding */
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.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-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-32 { padding-top: 8rem; }
.pb-24 { padding-bottom: 6rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }

/* Spacing - Gap & Space */
.gap-1 { gap: 0.25rem; }
.gap-6 { gap: 1.5rem; }
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.125rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* Sizing */
.w-3 { width: 0.75rem; }
.w-10 { width: 2.5rem; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }
.h-3 { height: 0.75rem; }
.h-10 { height: 2.5rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-full { height: 100%; }
.max-h-24 { max-height: 6rem; }
.max-h-48 { max-height: 12rem; }
.max-h-\[50vh\] { max-height: 50vh; }
.max-h-\[60vh\] { max-height: 60vh; }
.max-h-\[70vh\] { max-height: 70vh; }
.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[90vh\] { max-height: 90vh; }
.max-w-full { max-width: 100%; }
.max-w-xl { max-width: 36rem; }
.min-h-0 { min-height: 0; }
.table-fixed { table-layout: fixed; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-screen-2xl { max-width: 96rem; }
.min-w-\[200px\] { min-width: 200px; }

/* Typography */
.text-3xs { font-size: 0.5625rem; line-height: 0.75rem; }
.text-2xs { font-size: 0.625rem; line-height: 0.875rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-light { font-weight: 300; }
.font-semibold { font-weight: 600; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.break-all { word-break: break-all; }
.whitespace-nowrap { white-space: nowrap; }
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }

/* Colors - Background */
.bg-black { background-color: rgb(0 0 0); }
.bg-opacity-50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-blue-500 { background-color: rgb(59, 130, 246); }
.bg-blue-600 { background-color: rgb(37, 99, 235); }
.bg-blue-100 { background-color: rgb(219, 234, 254); }
.bg-gray-400 { background-color: rgb(156, 163, 175); }
.bg-orange-100 { background-color: rgb(255, 237, 213); }
.bg-orange-500 { background-color: rgb(249, 115, 22); }
.bg-red-50 { background-color: rgb(254, 242, 242); }
.bg-yellow-100 { background-color: rgb(254, 249, 195); }

/* Colors - Text */
.text-blue-600 { color: rgb(37, 99, 235); }
.text-blue-700 { color: rgb(29, 78, 216); }
.text-blue-800 { color: rgb(30, 64, 175); }
.text-gray-400 { color: rgb(156, 163, 175); }
.text-gray-800 { color: rgb(31, 41, 55); }
.text-orange-700 { color: rgb(194, 65, 12); }
.text-red-500 { color: rgb(239, 68, 68); }
.text-yellow-800 { color: rgb(133, 77, 14); }

/* Colors - Borders */
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-red-200 { border-color: rgb(254, 202, 202); }

/* Hover - Background */
.hover\:bg-blue-600:hover { background-color: rgb(37, 99, 235); }
.hover\:bg-blue-700:hover { background-color: rgb(29, 78, 216); }
.hover\:bg-gray-200:hover { background-color: rgb(229, 231, 235); }
.hover\:bg-gray-300:hover { background-color: rgb(209, 213, 219); }
.hover\:bg-gray-50:hover { background-color: rgb(249, 250, 251); }
.hover\:bg-green-50:hover { background-color: rgb(240, 253, 244); }
.hover\:bg-green-700:hover { background-color: rgb(21, 128, 61); }
.hover\:bg-orange-600:hover { background-color: rgb(234, 88, 12); }
.hover\:bg-red-100:hover { background-color: rgb(254, 226, 226); }

/* Hover - Text */
.hover\:text-gray-700:hover { color: rgb(55, 65, 81); }
.hover\:text-green-600:hover { color: rgb(22, 163, 74); }
.hover\:text-red-800:hover { color: rgb(153, 27, 27); }

/* Hover - Border */
.hover\:border-green-500:hover { border-color: rgb(34, 197, 94); }

/* Hover - Other */
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.hover\:ring-2:hover { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.hover\:ring-green-400:hover { --tw-ring-opacity: 1; --tw-ring-color: rgb(74 222 128 / var(--tw-ring-opacity)); }

/* Active */
.active\:bg-blue-800:active { background-color: rgb(30, 64, 175); }
.active\:bg-green-800:active { background-color: rgb(22, 101, 52); }

/* Focus */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-0:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-offset-2:focus { --tw-ring-offset-width: 2px; }
.focus\:ring-green-500:focus { --tw-ring-opacity: 1; --tw-ring-color: rgb(34 197 94 / var(--tw-ring-opacity)); }
.focus\:border-green-500:focus { border-color: rgb(34, 197, 94); }

/* Effects */
.cursor-pointer { cursor: pointer; }
.opacity-25 { opacity: 0.25; }
.opacity-60 { opacity: 0.6; }
.opacity-75 { opacity: 0.75; }
.overflow-x-auto { overflow-x: auto; }
.object-cover { object-fit: cover; }
.rounded-t-xl { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.rotate-90 { transform: rotate(90deg); }
.rotate-0 { transform: rotate(0deg); }
.hidden { display: none; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Animation */
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Modern Pastoralist Design System Utilities
   ============================================ */

/* Surface Background Colors */
.bg-surface { background-color: var(--m-surface); }
.bg-surface-dim { background-color: var(--m-surface-dim); }
.bg-surface-container-lowest { background-color: var(--m-surface-container-lowest); }
.bg-surface-container-low { background-color: var(--m-surface-container-low); }
.bg-surface-container { background-color: var(--m-surface-container); }
.bg-surface-container-high { background-color: var(--m-surface-container-high); }
.bg-surface-container-highest { background-color: var(--m-surface-container-highest); }
.bg-surface-variant { background-color: var(--m-surface-variant); }
.bg-background { background-color: var(--m-background); }

/* Primary Colors */
.bg-primary { background-color: var(--m-primary); }
.bg-primary-dim { background-color: var(--m-primary-dim); }
.bg-primary-container { background-color: var(--m-primary-container); }
.text-primary { color: var(--m-primary); }
.text-on-primary { color: var(--m-on-primary); }
.text-on-primary-container { color: var(--m-on-primary-container); }

/* Secondary Colors (Terracotta) */
.bg-secondary { background-color: var(--m-secondary); }
.bg-secondary-dim { background-color: var(--m-secondary-dim); }
.bg-secondary-container { background-color: var(--m-secondary-container); }
.text-secondary { color: var(--m-secondary); }
.text-on-secondary { color: var(--m-on-secondary); }
.text-on-secondary-container { color: var(--m-on-secondary-container); }

/* Tertiary Colors (Earth) */
.bg-tertiary { background-color: var(--m-tertiary); }
.bg-tertiary-dim { background-color: var(--m-tertiary-dim); }
.bg-tertiary-container { background-color: var(--m-tertiary-container); }
.text-tertiary { color: var(--m-tertiary); }
.text-on-tertiary { color: var(--m-on-tertiary); }
.text-on-tertiary-container { color: var(--m-on-tertiary-container); }

/* Content Colors */
.text-on-surface { color: var(--m-on-surface); }
.text-on-surface-variant { color: var(--m-on-surface-variant); }
.text-on-background { color: var(--m-on-background); }

/* Outline Colors */
.border-outline { border-color: var(--m-outline); }
.border-outline-variant { border-color: var(--m-outline-variant); }
.border-outline-variant-30 { border-color: rgba(191, 201, 191, 0.3); }
.text-outline { color: var(--m-outline); }

/* Fixed Colors */
.bg-primary-fixed { background-color: var(--m-primary-fixed); }
.bg-primary-fixed-dim { background-color: var(--m-primary-fixed-dim); }
.text-on-primary-fixed { color: var(--m-on-primary-fixed); }
.text-on-primary-fixed-variant { color: var(--m-on-primary-fixed-variant); }

.bg-secondary-fixed { background-color: var(--m-secondary-fixed); }
.bg-secondary-fixed-dim { background-color: var(--m-secondary-fixed-dim); }
.text-on-secondary-fixed { color: var(--m-on-secondary-fixed); }
.text-on-secondary-fixed-variant { color: var(--m-on-secondary-fixed-variant); }

.bg-tertiary-fixed { background-color: var(--m-tertiary-fixed); }
.bg-tertiary-fixed-dim { background-color: var(--m-tertiary-fixed-dim); }
.text-on-tertiary-fixed { color: var(--m-on-tertiary-fixed); }
.text-on-tertiary-fixed-variant { color: var(--m-on-tertiary-fixed-variant); }

/* Error Colors */
.bg-error { background-color: var(--m-error); }
.bg-error-container { background-color: var(--m-error-container); }
.text-error { color: var(--m-error); }
.text-on-error { color: var(--m-on-error); }

/* Glassmorphism */
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.bg-glass { background-color: var(--m-glass-bg); }
.bg-glass-low { background-color: var(--m-glass-bg-low); }

/* Extended Border Radius */
.rounded-xl { border-radius: var(--m-radius-xl); }
.rounded-2xl { border-radius: var(--m-radius-2xl); }
.rounded-3xl { border-radius: var(--m-radius-3xl); }
.rounded-full { border-radius: var(--m-radius-full); }

/* Padding Utilities */
.p-2\.5 { padding: 0.625rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }

/* Modern Shadows */
.shadow-card { box-shadow: var(--m-shadow-card); }
.shadow-card-hover { box-shadow: var(--m-shadow-card-hover); }
.shadow-ambient { box-shadow: var(--m-shadow-ambient); }
.shadow-float { box-shadow: var(--m-shadow-float); }

/* Hover States - Modern Pastoralist */
.hover\:bg-surface-container-low:hover { background-color: var(--m-surface-container-low); }
.hover\:bg-surface-container-highest:hover { background-color: var(--m-surface-container-highest); }
.hover\:bg-primary:hover { background-color: var(--m-primary); }
.hover\:bg-primary-container:hover { background-color: var(--m-primary-container); }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:text-primary:hover { color: var(--m-primary); }
.hover\:shadow-card-hover:hover { box-shadow: var(--m-shadow-card-hover); }
.hover\:opacity-100:hover { opacity: 1; }

/* Group Hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:rotate-90 { transform: rotate(90deg); }

/* Focus States */
.focus\:bg-surface-container-lowest:focus { background-color: var(--m-surface-container-lowest); }
.focus\:ring-primary:focus { --tw-ring-color: var(--m-primary); }

/* Active States */
.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-98:active { transform: scale(0.98); }

/* Line Height */
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Navigation Pills */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.3s ease-in-out;
  border: 1px solid transparent;
  text-decoration: none;
}

.nav-pill:hover {
  background-color: var(--m-surface-container-highest);
  border-color: rgba(25, 29, 25, 0.05);
  color: var(--m-on-surface);
}

.nav-pill-active {
  background-color: var(--m-surface-container-lowest);
  box-shadow: var(--m-shadow-sm);
  border-color: rgba(25, 29, 25, 0.05);
  color: var(--m-primary);
  font-weight: 600;
}

/* Ensure SVG icons display properly in nav */
.nav-pill svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  min-width: 1.25rem;
  min-height: 1.25rem;
}

/* Force SVG visibility in buttons */
button svg {
  display: inline-block;
  vertical-align: middle;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-dropdown-toggle .dropdown-arrow {
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 180px;
  background-color: var(--m-surface-container-lowest);
  border-radius: var(--m-radius-lg);
  box-shadow: var(--m-shadow-card);
  padding: 0.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--m-radius-md);
  color: var(--m-on-surface-variant);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: var(--m-surface-container-low);
  color: var(--m-on-surface);
}

.nav-dropdown-item svg {
  color: var(--m-primary);
  flex-shrink: 0;
}

/* Primary nav items get slightly more emphasis */
.nav-primary {
  font-weight: 500;
}

/* === Shared Page Headers (Modern Pastoralist) === */
.entity-header {
  display: flex;
  flex-direction: column;
  gap: var(--m-space-lg);
  margin-bottom: var(--m-space-xl);
}

@media (min-width: 768px) {
  .entity-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.entity-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--m-on-surface);
  line-height: 1.2;
  margin-bottom: var(--m-space-xs);
}

.entity-description {
  font-size: 0.9375rem;
  color: var(--m-on-surface-variant);
  line-height: 1.6;
  max-width: 36rem;
}

/* Navigation icon sizing */
.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-12 {
  height: 3rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-12 {
  width: 3rem;
}

/* Background Utilities */
.bg-surface { background-color: var(--m-surface); }

/* Responsive: sm (≥640px) */
@media (min-width: 640px) {
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
  .sm\:items-center { align-items: center; }
  .sm\:max-w-md { max-width: 28rem; }
  .sm\:rounded-lg { border-radius: 0.5rem; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Responsive: md (≥768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:grid { display: grid !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:justify-start { justify-content: flex-start; }
  .md\:gap-2 { gap: 0.5rem; }
  .md\:gap-3 { gap: 0.75rem; }
  .md\:items-center { align-items: center; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:mb-12 { margin-bottom: 3rem; }
  .md\:mb-16 { margin-bottom: 4rem; }
  .md\:mt-16 { margin-top: 4rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .md\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .md\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .md\:py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .md\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:opacity-0 { opacity: 0; }
}

/* Responsive: lg (≥1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:w-auto { width: auto; }
  .lg\:w-1\/4 { width: 25%; }
  .lg\:w-3\/4 { width: 75%; }
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block !important; }
  .lg\:ml-6 { margin-left: 1.5rem; }
  .lg\:text-right { text-align: right; }
}

/* === Global Notification Toast === */
.notification-toast {
    position: fixed;
    top: var(--m-space-lg, 1rem);
    right: var(--m-space-lg, 1rem);
    background: var(--m-primary);
    color: var(--m-on-primary);
    padding: var(--m-space-md, 0.75rem) var(--m-space-lg, 1rem);
    border-radius: var(--m-radius-xl, 0.75rem);
    box-shadow: var(--m-shadow-ambient, 0 4px 12px rgba(0,0,0,0.1));
    z-index: 100;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Shared Modal Shell */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal-card {
    background-color: var(--m-surface-container-lowest);
    border: 1px solid var(--m-outline-variant);
    border-radius: var(--m-radius-3xl);
    box-shadow: var(--m-shadow-ambient);
}
.modal-header {
    background-color: var(--m-surface-container-high);
}
.modal-footer {
    background-color: var(--m-surface-container-high);
}

/* ============================================
   AUTO-GENERATED MISSING LAYOUT UTILITIES
   Generated by generate_missing_layout_css.py
   ============================================ */
/* Auto-generated layout utilities */
.bottom-0 { bottom: 0; }
.gap-0 { gap: 0.0rem; }
.gap-1\.5 { gap: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-24 { height: 6rem; }
.h-3\.5 { height: 0.875rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-7 { height: 1.75rem; }
.h-9 { height: 2.25rem; }
.h-auto { height: auto; }
.justify-start { justify-content: flex-start; }
.left-0 { left: 0; }
.left-1 { left: 0.25rem; }
.left-2 { left: 0.5rem; }
.left-3 { left: 0.75rem; }
.max-h-32 { max-height: 8rem; }
.max-h-64 { max-height: 16rem; }
.max-w-\[1440px\] { max-width: 1440px; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.min-w-\[160px\] { min-width: 160px; }
.min-w-full { min-width: 100%; }
.ml-1 { margin-left: 0.25rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.p-1\.5 { padding: 0.375rem; }
.p-2\.5 { padding: 0.625rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-8 { padding-left: 2rem; }
.pt-3 { padding-top: 0.75rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.shrink-0 { flex-shrink: 0; }
.top-2 { top: 0.5rem; }
.top-4 { top: 1rem; }
.w-16 { width: 4rem; }
.w-2 { width: 0.5rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-3\.5 { width: 0.875rem; }
.w-48 { width: 12rem; }
.w-7 { width: 1.75rem; }
.w-9 { width: 2.25rem; }
.w-px { width: 1px; }
.z-10 { z-index: 10; }
.z-\[60\] { z-index: 60; }/*! Tailwind CSS v3.4.1 | MIT License | https://tailwindcss.com */

/* Base styles */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

::before,
::after {
  --tw-content: '';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

b, strong {
  font-weight: bolder;
}

code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button, select {
  text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}

:-moz-focusring {
  outline: auto;
}

:-moz-ui-invalid {
  box-shadow: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
  height: auto;
}

[type='search'] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog {
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

button, [role="button"] {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none;
}

/* Utility Classes */

/* Layout */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.table { display: table; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-9 { grid-column: span 9 / span 9; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-11 { grid-column: span 11 / span 11; }
.col-span-12 { grid-column: span 12 / span 12; }
.hidden { display: none; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.w-1\/3 { width: 33.333333%; }
.min-w-0 { min-width: 0; }

/* Spacing */
.m-0 { margin: 0; }
.m-4 { margin: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.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; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: 1rem; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-16 { padding-right: 4rem; }

/* Sizing */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-11 { width: 2.75rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-7xl { max-width: 80rem; }
.max-h-90vh { max-height: 90vh; }
.max-h-48 { max-height: 12rem; }
.max-h-96 { max-height: 24rem; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.left-1\.5 { left: 0.375rem; }
.top-1\.5 { top: 0.375rem; }

/* Overflow */
.overflow-y-auto { overflow-y: auto; }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Typography */
.text-2xs { font-size: 0.625rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-tight { line-height: 1.25; }
.leading-none { line-height: 1; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* Colors - Backgrounds */
.bg-gray-100 { background-color: rgb(243, 244, 246); }
.bg-gray-200 { background-color: rgb(229, 231, 235); }
.bg-gray-50 { background-color: rgb(249, 250, 251); }
.bg-white { background-color: rgb(255, 255, 255); }
.bg-green-50 { background-color: rgb(240, 253, 244); }
.bg-green-100 { background-color: rgb(220, 252, 231); }
.bg-green-600 { background-color: rgb(22, 163, 74); }
.bg-green-800 { background-color: rgb(22, 101, 52); }
.bg-red-100 { background-color: rgb(254, 226, 226); }
.hover\:bg-gray-50:hover { background-color: rgb(249, 250, 251); }
.hover\:bg-green-700:hover { background-color: rgb(21, 128, 61); }

/* Colors - Text */
.text-white { color: rgb(255, 255, 255); }
.text-gray-500 { color: rgb(107, 114, 128); }
.text-gray-600 { color: rgb(75, 85, 99); }
.text-gray-700 { color: rgb(55, 65, 81); }
.text-gray-900 { color: rgb(17, 24, 39); }
.text-green-600 { color: rgb(22, 163, 74); }
.text-green-800 { color: rgb(22, 101, 52); }
.text-red-600 { color: rgb(220, 38, 38); }
.text-red-700 { color: rgb(185, 28, 28); }
.text-red-800 { color: rgb(153, 27, 27); }
.hover\:text-green-200:hover { color: rgb(187, 247, 208); }
.hover\:text-gray-700:hover { color: rgb(55, 65, 81); }
.hover\:text-green-800:hover { color: rgb(22, 101, 52); }
.hover\:text-red-800:hover { color: rgb(153, 27, 27); }

/* Opacity */
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

/* Borders */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-dashed { border-style: dashed; }
.border-gray-300 { border-color: rgb(209, 213, 219); }
.border-green-200 { border-color: rgb(187, 247, 208); }
.border-green-600 { border-color: rgb(22, 163, 74); }
.border-red-400 { border-color: rgb(248, 113, 113); }
.border-transparent { border-color: transparent; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-ambient { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-card { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.bg-glass { background-color: rgba(0, 0, 0, 0.25); }

/* Focus */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-1:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-green-500:focus { --tw-ring-opacity: 1; --tw-ring-color: rgb(34 197 94 / var(--tw-ring-opacity)); }
.focus\:ring-primary:focus { --tw-ring-opacity: 1; --tw-ring-color: var(--m-primary); }
.focus\:border-green-500:focus { border-color: rgb(34, 197, 94); }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Transforms */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.translate-x-1 { --tw-translate-x: 0.25rem; transform: translateX(0.25rem); }
.translate-x-6 { --tw-translate-x: 1.5rem; transform: translateX(1.5rem); }
.top-1\/2 { top: 50%; }
.right-1 { right: 0.25rem; }
.-translate-y-1\/2 { --tw-translate-y: -50%; transform: translateY(-50%); }
.active\:scale-95:active { transform: scale(0.95); }

/* Interactivity */
.cursor-crosshair { cursor: crosshair; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }

/* Aspect Ratio */
.aspect-ratio-4\/3 { aspect-ratio: 4 / 3; }

/* Custom scrollbar for modals */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: rgba(0,0,0,0.15); border-radius: 9999px; }

/* Border utility referencing project palette */
.border-outline-variant-30 { border-color: rgba(191, 201, 191, 0.3); }

/* Focus ring utilities */
.focus\:ring-1:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }

/* Hover backgrounds using CSS variables */
.hover\:bg-surface-container-high:hover { background-color: var(--m-surface-container-high); }

/* Responsive: md (≥768px) */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Responsive: lg (≥1024px) */
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-1\/4 { width: 25%; }
  .lg\:w-3\/4 { width: 75%; }
  .lg\:w-full { width: 100%; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Fonts */
.font-sans { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Peer (sibling) selectors for toggle switches */
.peer:checked ~ .peer-checked\:bg-green-600 { background-color: rgb(22, 163, 74); }
.peer:focus ~ .peer-focus\:outline-none { outline: 2px solid transparent; outline-offset: 2px; }

/* After pseudo-element utilities for toggle knobs */
.after\:content-\[\'\'\]::after { content: ''; }
.after\:absolute::after { position: absolute; }
.after\:top-\[2px\]::after { top: 2px; }
.after\:start-\[2px\]::after { left: 2px; }
.after\:bg-white::after { background-color: rgb(255, 255, 255); }
.after\:border-gray-300::after { border-color: rgb(209, 213, 219); }
.after\:border::after { border-width: 1px; }
.after\:rounded-full::after { border-radius: 9999px; }
.after\:h-5::after { height: 1.25rem; }
.after\:w-5::after { width: 1.25rem; }
.after\:transition-all::after { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Peer-checked after pseudo-elements */
.peer:checked ~ .peer-checked\:after\:translate-x-full::after { --tw-translate-x: 100%; transform: translateX(100%); }
.peer:checked ~ .rtl\:peer-checked\:after\:-translate-x-full[dir="rtl"]::after { --tw-translate-x: -100%; transform: translateX(-100%); }
.peer:checked ~ .peer-checked\:after\:border-white::after { border-color: rgb(255, 255, 255); }


/* ============================================
   AUTO-GENERATED MISSING LAYOUT UTILITIES
   Generated by generate_missing_layout_css.py
   ============================================ */
/* Auto-generated layout utilities */
.min-w-\[180px\] { min-width: 180px; }
.top-full { top: 100%; }
.z-30 { z-index: 30; }

/* ============================================
   AUTO-GENERATED MISSING LAYOUT UTILITIES
   Generated by generate_missing_layout_css.py
   ============================================ */
/* Auto-generated layout utilities */
.h-1 { height: 0.25rem; }
.mt-20 { margin-top: 5rem; }
.pb-4 { padding-bottom: 1rem; }
.w-1 { width: 0.25rem; }
.w-40 { width: 10rem; }
.w-80 { width: 20.0rem; }

/* ============================================
   AUTO-GENERATED MISSING LAYOUT UTILITIES
   Generated by generate_missing_layout_css.py
   ============================================ */
/* Auto-generated layout utilities */
.h-1\.5 { height: 0.375rem; }
.h-\[calc(100vh-300px)\] { height: calc(100vh-300px); }
.max-h-80 { max-height: 20.0rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.pl-2 { padding-left: 0.5rem; }
.pr-12 { padding-right: 3rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.py-0 { padding-top: 0.0rem; padding-bottom: 0.0rem; }
.w-1\.5 { width: 0.375rem; }
.w-72 { width: 18.0rem; }

@media (min-width: 768px) {
  .md\:block { display: block; }
}

/* ============================================
   AUTO-GENERATED MISSING LAYOUT UTILITIES
   Generated by generate_missing_layout_css.py
   ============================================ */
/* Auto-generated layout utilities */
.max-w-none { max-width: none; }
.overflow-auto { overflow: auto; }

/* ============================================
   AUTO-GENERATED MISSING LAYOUT UTILITIES
   Generated by generate_missing_layout_css.py
   ============================================ */
/* Auto-generated layout utilities */
.mb-0 { margin-bottom: 0.0rem; }
.min-w-\[72px\] { min-width: 72px; }
.mt-5 { margin-top: 1.25rem; }
.mx-6 { margin-left: 1.5rem; margin-right: 1.5rem; }
.pb-6 { padding-bottom: 1.5rem; }

/* ============================================
   MOBILE BOTTOM TAB BAR (Field Toolkit)
   ============================================ */
.mobile-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--m-surface-container-lowest);
  border-top: 1px solid rgba(56, 56, 48, 0.08);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  text-decoration: none;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--m-on-surface-variant);
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-tab svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.mobile-tab.active {
  color: var(--m-primary);
}

/* Pad the bottom of the page so content isn't hidden behind the tab bar */
.mobile-tab-bar-spacer {
  display: none;
  height: 60px;
}

@media (max-width: 767px) {
  .mobile-tab-bar-spacer {
    display: block;
  }
}

/* HTMX indicator — hidden by default, shown during requests */
.htmx-indicator {
  display: none;
}
.htmx-request.htmx-indicator {
  display: flex;
}