:root {
      --forest: #14532D;
      --forest-hover: #0F3F22;
      --forest-soft: #E9F5EC;
      --forest-border: #C4DEC9;
      --ecowhite: #F8FAF5;
      --surface: #FFFFFF;
      --charcoal: #263238;
      --muted: #526066;
      --border: #DCE4DD;
      --amber-bg: #FEF3C7;
      --amber-text: #92400E;
      --red-bg: #FEE2E2;
      --red-text: #991B1B;
      --green-bg: #DCFCE7;
      --green-text: #14532D;
    }
    * { box-sizing: border-box; }
    html, body {
      margin: 0;
      padding: 0;
      background-color: var(--ecowhite);
      background-image:
        radial-gradient(at 12% 8%, rgba(20, 83, 45, 0.06) 0px, transparent 48%),
        radial-gradient(at 88% 18%, rgba(22, 101, 52, 0.05) 0px, transparent 52%),
        radial-gradient(rgba(20, 83, 45, 0.065) 1px, transparent 1px);
      background-size: 100% 100%, 100% 100%, 28px 28px;
      background-attachment: fixed;
      color: var(--charcoal);
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
    .app-container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
    .ec-card {
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.25rem;
      box-shadow: 0 4px 14px rgba(38, 50, 56, 0.05);
      transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }
    .ec-card:hover {
      border-color: #A7C9AF;
      box-shadow: 0 8px 22px rgba(20, 83, 45, 0.08);
    }
    .ec-card-interactive {
      cursor: pointer;
    }
    .ec-card-interactive:hover {
      transform: translateY(-2px);
    }
    .ec-card-soft {
      background: linear-gradient(135deg, #F1F6F0 0%, #E7F3E9 100%);
      border: 1px solid var(--forest-border);
      border-radius: 14px;
      padding: 1.25rem;
    }
    .ec-hero-banner {
      position: relative;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid #166534;
      box-shadow: 0 14px 32px rgba(20, 83, 45, 0.16);
      background-color: #14532D;
      background-size: cover;
      background-position: center;
      color: #FFFFFF;
    }
    .ec-hero-overlay {
      background: linear-gradient(108deg, rgba(15, 41, 25, 0.93) 0%, rgba(20, 83, 45, 0.85) 54%, rgba(24, 38, 44, 0.76) 100%);
      padding: 2.35rem 2rem;
    }
    .ec-page-banner {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid #C4DEC9;
      margin-bottom: 1.5rem;
      background-color: #1E2E26;
      background-size: cover;
      background-position: center;
      color: #FFFFFF;
      box-shadow: 0 6px 18px rgba(20, 83, 45, 0.1);
    }
    .ec-page-banner-overlay {
      background: linear-gradient(100deg, rgba(16, 42, 26, 0.92) 0%, rgba(20, 83, 45, 0.82) 60%, rgba(38, 50, 56, 0.72) 100%);
      padding: 1.65rem 1.75rem;
    }
    .ec-img-cover {
      width: 100%;
      height: 168px;
      object-fit: cover;
      display: block;
      border-radius: 10px;
      transition: transform 0.25s ease;
    }
    .ec-card:hover .ec-img-cover {
      transform: scale(1.02);
    }
    .ec-cat-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.45rem 0.85rem;
      border-radius: 999px;
      border: 1px solid #C5D1C8;
      background: #FFFFFF;
      color: var(--charcoal);
      font-size: 0.8rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .ec-cat-pill:hover {
      border-color: var(--forest);
      background: #F1F6F0;
      color: var(--forest);
    }
    .ec-cat-pill.active {
      background: var(--forest);
      color: #FFFFFF;
      border-color: var(--forest);
      box-shadow: 0 2px 8px rgba(20, 83, 45, 0.25);
    }
    .ec-btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      background-color: var(--forest);
      color: #FFFFFF;
      font-weight: 600;
      font-size: 0.9rem;
      padding: 0.625rem 1.15rem;
      border-radius: 9px;
      border: 1px solid var(--forest);
      cursor: pointer;
      text-decoration: none;
      transition: background-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
      box-shadow: 0 2px 6px rgba(20, 83, 45, 0.18);
    }
    .ec-btn-primary:hover { background-color: var(--forest-hover); box-shadow: 0 4px 10px rgba(20, 83, 45, 0.26); }
    .ec-btn-primary:active { transform: translateY(1px); }
    .ec-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
    .ec-btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      background-color: #FFFFFF;
      color: var(--charcoal);
      font-weight: 600;
      font-size: 0.9rem;
      padding: 0.625rem 1.15rem;
      border-radius: 9px;
      border: 1px solid #C5D1C8;
      cursor: pointer;
      text-decoration: none;
      transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }
    .ec-btn-secondary:hover { background-color: #F2F6F2; border-color: var(--forest); color: var(--forest); }
    .ec-btn-danger {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      background-color: #FEE2E2;
      color: #991B1B;
      font-weight: 600;
      font-size: 0.85rem;
      padding: 0.5rem 0.95rem;
      border-radius: 9px;
      border: 1px solid #FECACA;
      cursor: pointer;
    }
    .ec-btn-danger:hover { background-color: #FECACA; }
    .ec-input, .ec-select, .ec-textarea {
      width: 100%;
      padding: 0.62rem 0.85rem;
      border-radius: 9px;
      border: 1px solid #C5D1C8;
      background-color: #FFFFFF;
      color: var(--charcoal);
      font-size: 0.92rem;
      font-family: inherit;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .ec-input:focus, .ec-select:focus, .ec-textarea:focus {
      outline: none;
      border-color: var(--forest);
      box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.15);
    }
    .ec-label {
      display: block;
      font-size: 0.84rem;
      font-weight: 600;
      color: var(--charcoal);
      margin-bottom: 0.35rem;
    }
    .ec-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.24rem 0.68rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 600;
      line-height: 1.2;
      white-space: nowrap;
    }
    .ec-badge-green { background: #DCFCE7; color: #14532D; border: 1px solid #BBF7D0; }
    .ec-badge-amber { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
    .ec-badge-neutral { background: #E8ECE9; color: #263238; border: 1px solid #CFD8D2; }
    .ec-badge-red { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
    .ec-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #FFF; }
    .ec-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.88rem; }
    .ec-table th {
      background: #F3F7F3;
      color: var(--charcoal);
      font-weight: 600;
      padding: 0.78rem 0.9rem;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }
    .ec-table td {
      padding: 0.78rem 0.9rem;
      border-bottom: 1px solid #EDF2EE;
      vertical-align: middle;
    }
    .ec-table tr:last-child td { border-bottom: none; }
    .ec-table tr:hover td { background-color: #FAFDF9; }
    .ec-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(24, 34, 38, 0.62);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 60;
      padding: 1rem;
      overflow-y: auto;
    }
    .ec-modal {
      background: #FFFFFF;
      border: 1px solid var(--border);
      border-radius: 16px;
      max-width: 680px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 1.5rem;
      box-shadow: 0 20px 35px -10px rgba(20, 40, 30, 0.25);
    }
    .ec-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.15rem; }
    .ec-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.15rem; }
    .ec-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
    .ec-nav-link {
      padding: 0.45rem 0.75rem;
      border-radius: 8px;
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--charcoal);
      text-decoration: none;
      cursor: pointer;
      border: none;
      background: transparent;
      display: inline-flex;
      align-items: center;
      gap: 0.38rem;
      transition: all 0.15s ease;
    }
    .ec-nav-link:hover { background: #EBF3EC; color: var(--forest); }
    .ec-nav-link.active { background: var(--forest); color: #FFFFFF; box-shadow: 0 2px 6px rgba(20, 83, 45, 0.2); }
    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }

    /* =========================================================================
       ENHANCED ANIMATIONS, MICRO-INTERACTIONS & VISUAL POLISH
       ========================================================================= */
    @keyframes ecFadeInUp {
      0% { opacity: 0; transform: translateY(14px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    @keyframes ecScaleIn {
      0% { opacity: 0; transform: scale(0.96) translateY(8px); }
      100% { opacity: 1; transform: scale(1) translateY(0); }
    }
    @keyframes ecBackdropFade {
      0% { opacity: 0; }
      100% { opacity: 1; }
    }
    @keyframes ecPulseGlow {
      0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
      50% { transform: scale(1.22); opacity: 0.88; box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
    }
    @keyframes ecFloatGentle {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-4px); }
    }
    @keyframes ecShimmerSweep {
      0% { transform: translateX(-120%) skewX(-18deg); }
      100% { transform: translateX(220%) skewX(-18deg); }
    }
    @keyframes ecToastSlideIn {
      0% { opacity: 0; transform: translateX(28px) scale(0.95); }
      100% { opacity: 1; transform: translateX(0) scale(1); }
    }
    @keyframes ecBannerZoom {
      0% { background-size: 103%; }
      100% { background-size: 100%; }
    }
    @keyframes ecStepperPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(20, 83, 45, 0.28); }
      50% { box-shadow: 0 0 0 6px rgba(20, 83, 45, 0); }
    }

    /* Smooth View & Section Entrances */
    #app-main > .app-container {
      animation: ecFadeInUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .ec-grid-2 > .ec-card:nth-child(1),
    .ec-grid-3 > .ec-card:nth-child(1),
    .ec-grid-4 > .ec-card:nth-child(1) { animation: ecFadeInUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both; }
    .ec-grid-2 > .ec-card:nth-child(2),
    .ec-grid-3 > .ec-card:nth-child(2),
    .ec-grid-4 > .ec-card:nth-child(2) { animation: ecFadeInUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.09s both; }
    .ec-grid-3 > .ec-card:nth-child(3),
    .ec-grid-4 > .ec-card:nth-child(3) { animation: ecFadeInUp 0.46s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both; }
    .ec-grid-4 > .ec-card:nth-child(4) { animation: ecFadeInUp 0.50s cubic-bezier(0.22, 1, 0.36, 1) 0.19s both; }

    /* Enhanced Cards with Depth, Glass Sheen & Hover Lift */
    .ec-card {
      background: rgba(255, 255, 255, 0.97);
      backdrop-filter: blur(8px);
      border: 1px solid var(--border);
      border-radius: 15px;
      padding: 1.25rem;
      box-shadow: 0 4px 16px -2px rgba(20, 45, 30, 0.05), 0 2px 6px -1px rgba(20, 45, 30, 0.03);
      transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
                  box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1),
                  border-color 0.22s ease;
    }
    .ec-card:hover {
      border-color: #86EFAC;
      box-shadow: 0 14px 30px -6px rgba(20, 83, 45, 0.11), 0 4px 12px -2px rgba(20, 83, 45, 0.06);
      transform: translateY(-3px);
    }
    .ec-card-soft {
      transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    }
    .ec-card-soft:hover {
      border-color: #86EFAC;
      box-shadow: 0 8px 20px -4px rgba(20, 83, 45, 0.08);
    }

    /* Hero & Page Banner Polish */
    .ec-hero-banner, .ec-page-banner {
      animation: ecFadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
      transition: box-shadow 0.3s ease, transform 0.3s ease;
    }
    .ec-hero-banner:hover {
      box-shadow: 0 18px 38px rgba(20, 83, 45, 0.22);
    }
    .ec-img-cover {
      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
    }
    .ec-card:hover .ec-img-cover {
      transform: scale(1.045);
      filter: saturate(1.06);
    }

    /* Interactive Buttons with Shimmer & Tactile Feedback */
    .ec-btn-primary, .ec-btn-secondary, .ec-btn-danger {
      position: relative;
      overflow: hidden;
      transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .ec-btn-primary::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 42%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
      transform: translateX(-140%) skewX(-18deg);
      transition: transform 0.55s ease;
      pointer-events: none;
    }
    .ec-btn-primary:hover::after {
      transform: translateX(260%) skewX(-18deg);
    }
    .ec-btn-primary:hover {
      background-color: var(--forest-hover);
      box-shadow: 0 6px 16px rgba(20, 83, 45, 0.28);
      transform: translateY(-1.5px);
    }
    .ec-btn-secondary:hover {
      background-color: #F0FDF4;
      border-color: var(--forest);
      color: var(--forest);
      box-shadow: 0 4px 12px rgba(20, 83, 45, 0.09);
      transform: translateY(-1.5px);
    }
    .ec-cat-pill {
      transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .ec-cat-pill:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 10px rgba(20, 83, 45, 0.1);
    }

    /* Navigation Link Underline Indicator */
    .ec-nav-link {
      position: relative;
      transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .ec-nav-link:hover {
      transform: translateY(-1px);
    }

    /* Animated Status Badge Pulse Dot */
    .ec-badge span:first-child {
      animation: ecPulseGlow 2.4s infinite ease-in-out;
    }

    /* Modal & Toast Animations */
    .ec-modal-backdrop {
      animation: ecBackdropFade 0.22s ease out;
    }
    .ec-modal {
      animation: ecScaleIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    #toast-container > div {
      animation: ecToastSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* Table Row Polish */
    .ec-table tr {
      transition: background-color 0.18s ease;
    }
    .ec-table tr:hover td {
      background-color: #F2F9F4;
    }

    /* Stepper & Progress Bar Polish */
    .ec-step-active {
      animation: ecStepperPulse 2.2s infinite ease-in-out;
    }
    .ec-progress-segment {
      transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .ec-metric-val {
      display: inline-block;
      transition: transform 0.25s ease;
    }
    .ec-card:hover .ec-metric-val {
      transform: scale(1.05);
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    @media (max-width: 860px) {
      .desktop-nav { display: none !important; }
      .mobile-menu-btn { display: inline-flex !important; }
      .ec-hero-overlay { padding: 1.5rem 1.25rem; }
    }
    @media (min-width: 861px) {
      .mobile-menu-btn { display: none !important; }
      .mobile-nav-drawer { display: none !important; }
    }
