:root {
  --forest-950: #072b22;
  --forest-900: #0a3b2e;
  --forest-800: #0f513d;
  --forest-700: #176b50;
  --forest-600: #208160;
  --forest-100: #ddf2e8;
  --forest-50: #f1faf6;
  --gold: #e7ab43;
  --gold-soft: #fff2d8;
  --ink: #14231e;
  --muted: #65746d;
  --line: #dce7e1;
  --line-strong: #c7d8cf;
  --cream: #f8f7f1;
  --paper: #ffffff;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --warning: #96620b;
  --warning-soft: #fff7e6;
  --info: #1d5f88;
  --info-soft: #eaf6fc;
  --shadow-sm: 0 8px 26px rgba(7, 43, 34, 0.08);
  --shadow-lg: 0 24px 70px rgba(7, 43, 34, 0.16);
  --radius-sm: 11px;
  --radius: 18px;
  --radius-lg: 28px;
  --sidebar-width: 286px;
  --sidebar-compact: 84px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #f4f7f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(32, 129, 96, 0.22);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(480px, 1.1fr) minmax(460px, 0.9fr);
  background: var(--paper);
}

.login-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 74% 7%, rgba(54, 193, 137, 0.22), transparent 26%),
    linear-gradient(145deg, #0f684d 0%, var(--forest-900) 52%, #06271f 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom right, #000, transparent 74%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.orb-glow {
  width: 280px;
  height: 280px;
  top: -130px;
  right: -70px;
  background: rgba(111, 238, 183, 0.2);
  box-shadow: 0 0 90px rgba(111, 238, 183, 0.24);
  animation: glow 6s ease-in-out infinite alternate;
}

.orb-left {
  width: 190px;
  height: 190px;
  left: -80px;
  top: 40%;
  background: rgba(71, 190, 141, 0.17);
  animation: orbit-left 12s ease-in-out infinite alternate;
}

.orb-bottom {
  width: 230px;
  height: 170px;
  left: 58%;
  bottom: -72px;
  background: rgba(231, 171, 67, 0.18);
  filter: blur(8px);
  animation: orbit-bottom 12s ease-in-out infinite alternate;
}

@keyframes glow {
  to {
    transform: scale(1.13);
    opacity: 0.8;
  }
}

@keyframes orbit-left {
  to {
    transform: translate(170px, 100px) scaleX(1.25);
  }
}

@keyframes orbit-bottom {
  to {
    transform: translate(-170px, -85px) scaleX(1.3);
  }
}

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

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  margin: auto;
  padding: 64px clamp(48px, 7vw, 104px);
}

.hero-mark {
  width: min(450px, 100%);
  height: 108px;
  display: flex;
  align-items: center;
  margin: 0 0 28px;
}

.hero-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.eyebrow,
.login-welcome {
  display: block;
  margin-bottom: 12px;
  color: #c6f0dd;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  max-width: 660px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 6.3rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.hero-content > p {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.hero-points {
  display: grid;
  gap: 12px;
  margin-top: 42px;
}

.hero-points > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  min-height: 58px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
}

.hero-points span {
  color: #ffd583;
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-points p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.4;
}

.login-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px clamp(36px, 6vw, 88px) 112px;
  background:
    radial-gradient(circle at 50% 48%, rgba(221, 242, 232, 0.34), transparent 42%),
    #fff;
}

.login-card {
  width: min(460px, 100%);
}

.mobile-brand {
  display: none;
}

.login-heading {
  margin-bottom: 34px;
  text-align: center;
}

.login-program-logo {
  display: block;
  width: 100%;
  max-width: 430px;
  height: 126px;
  margin: 0 auto 22px;
  object-fit: contain;
  object-position: center;
}

.login-welcome {
  margin-bottom: 8px;
  color: var(--forest-700);
}

.login-heading h2 {
  margin: 0;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

.login-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.field-label {
  display: block;
  margin: 0 0 9px;
  color: var(--forest-950);
  font-size: 0.82rem;
  font-weight: 800;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.input-wrap .input-icon {
  position: absolute;
  left: 17px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #84938c;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 12px 52px 12px 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap input:focus {
  border-color: var(--forest-600);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(32, 129, 96, 0.1);
}

.input-wrap .password-toggle {
  position: absolute;
  right: 12px;
  color: var(--forest-900);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 0;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-primary {
  color: #fff;
  background: var(--forest-900);
  box-shadow: 0 12px 28px rgba(10, 59, 46, 0.2);
}

.button-primary:hover:not(:disabled) {
  background: var(--forest-800);
  box-shadow: 0 16px 30px rgba(10, 59, 46, 0.24);
}

.button-secondary {
  color: var(--forest-900);
  border: 1px solid var(--line-strong);
  background: #fff;
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--forest-600);
  background: var(--forest-50);
}

.button-danger {
  color: var(--danger);
  border: 1px solid #f2c9c4;
  background: var(--danger-soft);
}

.button-soft {
  color: var(--forest-900);
  background: var(--forest-100);
}

.button-small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.79rem;
}

.button-wide {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.text-button {
  display: block;
  margin: 21px auto 0;
  padding: 6px;
  border: 0;
  color: var(--forest-700);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.form-error {
  margin: -7px 0 16px;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 0.83rem;
  line-height: 1.45;
}

.login-footer {
  position: absolute;
  right: clamp(36px, 6vw, 88px);
  bottom: 25px;
  left: clamp(36px, 6vw, 88px);
  text-align: center;
}

.footer-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 16px;
  background: var(--line);
}

.login-footer p {
  margin: 0;
  color: #84918b;
  font-size: 0.76rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 0.22s ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: var(--sidebar-compact) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0, rgba(72, 171, 128, 0.22), transparent 25%),
    var(--forest-950);
}

.sidebar-head {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 18px 15px 15px 19px;
}

.sidebar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: opacity 0.16s ease;
}

.sidebar-brand-logo {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
}

.brand-copy span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sidebar-toggle {
  position: absolute;
  top: 26px;
  right: 13px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.toggle-brand {
  display: none;
}

.toggle-control {
  width: 17px;
  height: 17px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sidebar-nav {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  padding: 10px 12px 22px;
  scrollbar-width: thin;
}

.nav-label {
  margin: 18px 11px 7px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.nav-item.active {
  color: #fff;
  background: rgba(52, 166, 120, 0.27);
  box-shadow: inset 3px 0 0 #68d3a6;
}

.nav-item.disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.nav-icon {
  width: 21px;
  height: 21px;
  display: grid;
  flex: 0 0 21px;
  place-items: center;
}

.nav-copy {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.28;
  text-overflow: ellipsis;
}

.sidebar-bottom {
  position: relative;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.account-button {
  width: 100%;
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  cursor: pointer;
}

.account-button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--forest-950);
  background: #b8efd5;
  font-weight: 900;
}

.account-copy {
  min-width: 0;
  flex: 1;
}

.account-copy strong,
.account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy strong {
  font-size: 0.82rem;
}

.account-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.69rem;
}

.account-more {
  width: 18px;
  height: 18px;
}

.account-menu {
  position: absolute;
  right: 12px;
  bottom: 80px;
  left: 12px;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: #103d32;
  box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.22);
}

.account-menu button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 0;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}

.account-menu button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.app-shell.sidebar-collapsed .sidebar-brand {
  opacity: 0;
  pointer-events: none;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  inset: 20px 12px auto;
  width: 60px;
  height: 50px;
  background: transparent;
}

.app-shell.sidebar-collapsed .toggle-brand {
  display: block;
  width: 38px;
  height: 38px;
}

.app-shell.sidebar-collapsed .toggle-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-shell.sidebar-collapsed .toggle-control {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-toggle:hover .toggle-brand {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-toggle:hover .toggle-control {
  display: block;
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  padding-inline: 8px;
}

.app-shell.sidebar-collapsed .nav-copy,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .account-copy,
.app-shell.sidebar-collapsed .account-more {
  display: none;
}

.app-shell.sidebar-collapsed .account-button {
  justify-content: center;
}

.app-shell.sidebar-collapsed .account-menu {
  right: auto;
  left: 70px;
  bottom: 12px;
  width: 210px;
}

.sidebar-backdrop {
  display: none;
}

.main-shell {
  min-width: 0;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 85px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px clamp(22px, 4vw, 54px);
  border-bottom: 1px solid rgba(199, 216, 207, 0.75);
  background: rgba(244, 247, 245, 0.9);
  backdrop-filter: blur(16px);
}

.topbar-title {
  min-width: 0;
  flex: 1;
}

.topbar-title > span {
  display: block;
  margin-bottom: 3px;
  color: var(--forest-700);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.topbar-title h1 {
  margin: 0;
  overflow: hidden;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-button {
  display: none;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(10, 59, 46, 0.07);
}

.content {
  width: min(1480px, 100%);
  min-height: calc(100vh - 85px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 50px);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.page-head h2 {
  margin: 0;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  letter-spacing: -0.035em;
}

.page-head p {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 24px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 90% 12%, rgba(98, 219, 169, 0.28), transparent 28%),
    linear-gradient(135deg, var(--forest-800), var(--forest-950));
  box-shadow: var(--shadow-lg);
}

.hero-card::after {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-card .eyebrow {
  margin-bottom: 11px;
}

.hero-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-card p {
  max-width: 700px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.hero-card-side {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: end;
}

.hero-card-stat {
  min-width: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-card-stat span,
.hero-card-stat strong {
  display: block;
}

.hero-card-stat span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-card-stat strong {
  margin-top: 8px;
  font-size: 1.25rem;
}

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

.kpi-card,
.panel,
.module-card,
.form-section {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.kpi-card {
  min-height: 124px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
}

.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 8px;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.kpi-icon,
.module-icon {
  width: 45px;
  height: 45px;
  display: grid;
  flex: 0 0 45px;
  place-items: center;
  border-radius: 13px;
  color: var(--forest-800);
  background: var(--forest-100);
}

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

.module-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.module-card.clickable {
  cursor: pointer;
}

.module-card.clickable:hover {
  transform: translateY(-3px);
  border-color: #b7d3c5;
  box-shadow: 0 17px 36px rgba(7, 43, 34, 0.11);
}

.module-card.disabled {
  filter: grayscale(0.3);
  opacity: 0.66;
}

.module-card h3 {
  margin: 18px 0 7px;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.module-card .card-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--forest-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.panel + .panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.panel-body {
  padding: 22px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.search-field {
  position: relative;
  min-width: min(330px, 100%);
  flex: 1;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  min-height: 43px;
  padding: 9px 13px 9px 41px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.filter-select,
.field select,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.filter-select {
  width: auto;
  min-width: 170px;
  min-height: 43px;
  padding: 9px 34px 9px 12px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th {
  padding: 12px 14px;
  color: #57665f;
  background: #f4f8f6;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  color: #34423c;
  vertical-align: top;
}

td input,
td select,
td textarea {
  width: 100%;
  min-width: 90px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

td textarea {
  min-height: 72px;
  margin-top: 7px;
  line-height: 1.4;
  resize: vertical;
}

tbody tr:hover {
  background: #fbfdfc;
}

.record-title {
  display: block;
  color: var(--forest-950);
  font-weight: 850;
}

.record-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--forest-800);
  background: var(--forest-100);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip.pending,
.status-chip.draft,
.status-chip.for-rectification {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-chip.inactive,
.status-chip.denied,
.status-chip.archived {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-chip.info,
.status-chip.under-review,
.status-chip.under-monitoring {
  color: var(--info);
  background: var(--info-soft);
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 32px;
  text-align: center;
}

.empty-state .empty-icon {
  width: 62px;
  height: 62px;
  display: grid;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 18px;
  color: var(--forest-700);
  background: var(--forest-50);
}

.empty-state h3 {
  margin: 0;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
}

.empty-state p {
  max-width: 470px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid #cfe4d9;
  border-radius: 13px;
  color: var(--forest-900);
  background: var(--forest-50);
  font-size: 0.84rem;
  line-height: 1.55;
}

.notice.warning {
  border-color: #edd8ad;
  color: #714908;
  background: var(--warning-soft);
}

.notice.danger {
  border-color: #f2c9c4;
  color: var(--danger);
  background: var(--danger-soft);
}

.notice svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.form-section {
  margin-bottom: 18px;
  padding: 22px;
  border-radius: var(--radius);
}

.form-section h3 {
  margin: 0 0 6px;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
}

.form-section > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

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

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

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field > span {
  display: block;
  margin-bottom: 7px;
  color: var(--forest-950);
  font-size: 0.75rem;
  font-weight: 850;
}

.field input,
.field select {
  min-height: 44px;
  padding: 9px 11px;
}

.field textarea {
  min-height: 112px;
  padding: 11px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest-600);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(32, 129, 96, 0.09);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.switch-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-copy strong,
.switch-copy span {
  display: block;
}

.switch-copy strong {
  color: var(--forest-950);
  font-size: 0.84rem;
}

.switch-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
}

.switch {
  position: relative;
  width: 45px;
  height: 25px;
  flex: 0 0 45px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5d0;
  cursor: pointer;
  transition: background 0.18s ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  content: "";
  transition: transform 0.18s ease;
}

.switch input:checked + span {
  background: var(--forest-600);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.file-grid {
  display: grid;
  gap: 10px;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
}

.file-row .file-icon {
  width: 37px;
  height: 37px;
  display: grid;
  flex: 0 0 37px;
  place-items: center;
  border-radius: 10px;
  color: var(--danger);
  background: var(--danger-soft);
}

.file-info {
  min-width: 0;
  flex: 1;
}

.file-info strong,
.file-info span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info strong {
  color: var(--forest-950);
  font-size: 0.8rem;
}

.file-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.file-actions {
  display: flex;
  gap: 5px;
}

.upload-tile {
  position: relative;
  min-height: 95px;
  display: grid;
  place-items: center;
  padding: 15px;
  border: 1px dashed #a9c8b9;
  border-radius: 12px;
  color: var(--forest-700);
  background: var(--forest-50);
  text-align: center;
}

.upload-tile input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.upload-tile strong,
.upload-tile span {
  display: block;
}

.upload-tile strong {
  font-size: 0.8rem;
}

.upload-tile span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

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

.indicator-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.indicator-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 15px;
}

.indicator-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--forest-900);
  background: var(--forest-100);
  font-weight: 900;
}

.indicator-copy strong {
  display: block;
  color: var(--forest-950);
  font-size: 0.83rem;
  line-height: 1.5;
}

.indicator-copy small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.indicator-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(220px, 1fr);
  gap: 12px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  background: #fafcfb;
}

.radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
}

.radio-pill span {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 0.69rem;
  font-weight: 800;
  cursor: pointer;
}

.radio-pill input:checked + span {
  border-color: var(--forest-700);
  color: var(--forest-900);
  background: var(--forest-100);
  box-shadow: 0 0 0 2px rgba(32, 129, 96, 0.08);
}

.score-card {
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--forest-700), var(--forest-950));
}

.score-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.score-card span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.7);
}

.cpc-result-card {
  position: relative;
  overflow: hidden;
  margin: 24px 0 18px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius);
  color: #effaf3;
  background: linear-gradient(135deg, #12372a, #1f6b4d);
  box-shadow: var(--shadow-sm);
}

.cpc-result-card.mid {
  background: linear-gradient(135deg, #234f58, #34727a);
}

.cpc-result-card.low {
  background: linear-gradient(135deg, #34423b, #52675d);
}

.cpc-result-card::after {
  position: absolute;
  width: 260px;
  height: 260px;
  top: -120px;
  right: -90px;
  border: 44px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.cpc-result-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.cpc-result-level {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cpc-result-level strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.cpc-result-level span,
.cpc-result-message p,
.cpc-result-score small,
.cpc-result-score span {
  color: rgba(255, 255, 255, 0.68);
}

.cpc-result-level span {
  font-weight: 800;
}

.cpc-result-message h3 {
  margin: 18px 0 0;
  font-size: 1.45rem;
}

.cpc-result-message p {
  max-width: 700px;
  margin: 8px 0 0;
  line-height: 1.65;
}

.cpc-result-score {
  min-width: 126px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.cpc-result-score small,
.cpc-result-score strong,
.cpc-result-score span {
  display: block;
}

.cpc-result-score small {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cpc-result-score strong {
  margin-top: 5px;
  font-size: 1.9rem;
}

.cpc-result-table,
.cpc-summary-section {
  margin-bottom: 18px;
}

.cpc-result-table .highlight-stage {
  color: var(--forest-900);
  background: var(--forest-100);
  font-weight: 900;
}

.cpc-summary-head {
  margin-top: 34px;
}

.progress-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 620px;
  margin: 24px auto;
}

.progress-step {
  display: grid;
  justify-items: center;
  text-align: center;
}

.progress-step-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 4px solid #edf1ef;
  border-radius: 50%;
  color: #a5b0ab;
  background: #dce3df;
}

.progress-step.reached .progress-step-icon {
  border-color: #c9eadb;
  color: #fff;
  background: var(--forest-700);
}

.progress-line {
  height: 4px;
  margin-top: -48px;
  background: #dce3df;
}

.progress-line.reached {
  background: var(--forest-700);
}

.progress-step strong {
  margin-top: 10px;
  color: var(--forest-950);
  font-size: 0.74rem;
}

.progress-step p {
  max-width: 230px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

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

.detail-field {
  padding: 13px;
  border-radius: 11px;
  background: #f5f8f6;
}

.detail-field span,
.detail-field strong {
  display: block;
}

.detail-field span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-field strong {
  margin-top: 5px;
  color: var(--forest-950);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 20px;
  background: rgba(4, 26, 20, 0.58);
  backdrop-filter: blur(7px);
}

.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.27);
}

.modal.large {
  width: min(980px, 100%);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 21px;
}

.modal-head {
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 0;
  color: var(--forest-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.modal-body {
  padding: 21px;
}

.modal-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  background: #fafcfb;
}

.toast-root {
  position: fixed;
  z-index: 150;
  right: 22px;
  bottom: 22px;
  width: min(390px, calc(100vw - 44px));
  display: grid;
  gap: 9px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  color: #fff;
  background: var(--forest-950);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  line-height: 1.45;
  animation: toast-in 0.22s ease both;
}

.toast.error {
  background: #8c2119;
}

.animation-layer {
  position: fixed;
  z-index: 180;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  width: 9px;
  height: 16px;
  top: -25px;
  border-radius: 2px;
  transform: rotate(var(--rotation));
  animation: confetti-fall var(--duration) linear forwards;
}

.comfort-orb {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  bottom: -80px;
  border: 2px solid rgba(110, 185, 147, 0.38);
  border-radius: 50%;
  animation: comfort-rise var(--duration) ease-out forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes confetti-fall {
  from {
    transform: translateY(-5vh) rotate(var(--rotation));
  }

  to {
    transform: translateY(110vh) rotate(calc(var(--rotation) + 620deg));
  }
}

@keyframes comfort-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.7);
  }

  35% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translateY(-75vh) scale(1.4);
  }
}

.loading-overlay {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(247, 249, 248, 0.82);
  backdrop-filter: blur(7px);
}

.loader-card {
  min-width: min(330px, 90vw);
  display: grid;
  justify-items: center;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.spinner {
  width: 39px;
  height: 39px;
  margin-bottom: 15px;
  border: 4px solid var(--forest-100);
  border-top-color: var(--forest-700);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-card strong {
  color: var(--forest-950);
}

.loader-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.skeleton {
  min-height: 18px;
  border-radius: 7px;
  background: linear-gradient(90deg, #edf2ef 25%, #f8faf9 37%, #edf2ef 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}

@keyframes shimmer {
  to {
    background-position: -100% 0;
  }
}

.muted {
  color: var(--muted);
}

.danger-text {
  color: var(--danger);
}

.text-right {
  text-align: right;
}

.nowrap {
  white-space: nowrap;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

@media (max-width: 1120px) {
  .login-shell {
    grid-template-columns: 1fr 0.88fr;
  }

  .hero-content {
    padding-inline: 48px;
  }

  .hero-points {
    display: none;
  }

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

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

@media (max-width: 860px) {
  .login-shell {
    display: block;
  }

  .login-hero {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 52px 24px 104px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 28px;
    color: var(--forest-700);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .brand-badge {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--forest-800);
  }

  .app-shell,
  .app-shell.sidebar-collapsed {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    width: min(var(--sidebar-width), calc(100vw - 48px));
    transform: translateX(-102%);
    transition: transform 0.2s ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: none;
    background: rgba(4, 26, 20, 0.45);
    backdrop-filter: blur(3px);
  }

  .sidebar-backdrop.visible {
    display: block;
  }

  .mobile-menu-button {
    display: grid;
  }

  .sidebar-toggle {
    display: none;
  }

  .topbar {
    padding-inline: 18px;
  }

  .content {
    padding: 24px 18px 42px;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card-side {
    justify-items: start;
  }

  .form-grid,
  .form-grid.three,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .indicator-controls {
    grid-template-columns: 1fr;
  }

  .cpc-result-content {
    grid-template-columns: 1fr;
  }

  .cpc-result-score {
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  .login-program-logo {
    height: 100px;
  }

  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head .actions .button {
    flex: 1;
  }

  .kpi-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 105px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-select {
    width: 100%;
  }

  .file-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .file-actions {
    width: 100%;
  }

  .progress-step p {
    display: none;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .modal,
  .modal.large {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }
}
