:root {
  --bg-1: #e8efe9;
  --bg-2: #f7f2e8;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-line: rgba(13, 75, 50, 0.08);
  --text: #17342b;
  --muted: #647067;
  --green: #156a47;
  --green-deep: #0b4b32;
  --green-soft: #dceee3;
  --gold: #bf9553;
  --gold-soft: rgba(191, 149, 83, 0.16);
  --danger: #9a4d4d;
  --success: #1f7a56;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-lg: 0 26px 70px rgba(46, 67, 61, 0.14);
  --shadow-md: 0 16px 44px rgba(57, 79, 72, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(98, 167, 132, 0.24), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.68), transparent 24%),
    radial-gradient(circle at 82% 84%, var(--gold-soft), transparent 28%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

.hidden {
  display: none !important;
}

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

button {
  cursor: pointer;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.38), transparent 20%),
    radial-gradient(circle at 72% 14%, rgba(173, 220, 198, 0.24), transparent 24%);
  filter: blur(36px);
}

.shell {
  width: min(1500px, calc(100% - 32px));
  margin: 16px auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--surface-line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-card .brand-logo {
  margin-bottom: 16px;
}

.auth-message {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.sidebar,
.topbar,
.hero,
.surface-card,
.brand-card,
.nav-card,
.contact-card,
.feedback {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--surface-line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sidebar {
  border-radius: var(--radius-xl);
  padding: 18px;
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
}

.brand-card,
.nav-card,
.contact-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.brand-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-logo {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(21, 106, 71, 0.18);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 1.3rem;
}

h2 {
  font-size: 1.85rem;
}

h3 {
  font-size: 1.45rem;
}

h4 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.muted,
.section-text,
.body-text,
.lead,
.contact-card p {
  color: var(--muted);
}

.nav-card {
  display: grid;
  gap: 8px;
}

.nav-link {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.58);
}

.nav-link.active {
  color: white;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  box-shadow: 0 10px 22px rgba(21, 106, 71, 0.24);
}

.contact-card p {
  margin: 0 0 6px;
  line-height: 1.5;
}

.main {
  display: grid;
  gap: 18px;
  align-content: start;
}

.topbar {
  border-radius: var(--radius-xl);
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.current-admin {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 75, 50, 0.08);
  color: var(--green-deep);
}

.panel {
  display: none;
  gap: 18px;
}

.panel.active {
  display: grid;
}

.hero {
  border-radius: var(--radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  background:
    linear-gradient(135deg, rgba(11, 75, 50, 0.96), rgba(21, 106, 71, 0.88)),
    radial-gradient(circle at top right, rgba(191, 149, 83, 0.22), transparent 34%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.lead {
  margin: 18px 0 0;
  max-width: 54ch;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-chip-row,
.badge-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-inline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.hero-chip,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.hero-chip {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-guidance {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-guidance strong {
  display: block;
  margin-bottom: 8px;
}

.hero-guidance p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

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

.summary-card {
  min-height: 102px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.summary-card span {
  color: rgba(255, 255, 255, 0.88);
}

.overview-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

.overview-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

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

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

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

.surface-card {
  border-radius: var(--radius-xl);
  padding: 22px;
}

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

.step-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 75, 50, 0.06);
}

.step-item strong {
  color: var(--green-deep);
}

.step-item span {
  color: var(--muted);
  line-height: 1.5;
}

.helper-text {
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.section-text {
  max-width: 44ch;
  margin: 0;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.form-grid label,
.search-label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.inline-action-row {
  display: flex;
  justify-content: flex-start;
  margin-top: -4px;
}

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

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 75, 50, 0.08);
  background: rgba(255, 255, 255, 0.82);
  padding: 13px 14px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(21, 106, 71, 0.28);
  box-shadow:
    0 0 0 4px rgba(21, 106, 71, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.primary-button,
.secondary-button,
.form-grid button,
.action-row button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
}

.primary-button,
.form-grid button {
  color: white;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  box-shadow: 0 12px 24px rgba(21, 106, 71, 0.22);
}

.secondary-button {
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.list-view,
.report-view,
.empty-state {
  margin-top: 14px;
}

.list-view {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.list-item,
.report-card,
.info-strip {
  border-radius: 18px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 75, 50, 0.06);
}

.list-item + .list-item {
  margin-top: 10px;
}

.list-item strong {
  display: block;
  margin-bottom: 6px;
}

.associate-card {
  display: grid;
  gap: 14px;
}

.associate-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.associate-card-head strong {
  margin-bottom: 4px;
}

.associate-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.associate-meta-grid span {
  display: block;
}

.associate-meta-grid strong,
.associate-note strong {
  display: inline;
  margin: 0;
  color: var(--green-deep);
}

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

.associate-linked-panel {
  padding: 14px;
  border-radius: 16px;
  background: rgba(21, 106, 71, 0.06);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.associate-linked-panel h5 {
  margin: 0 0 10px;
  color: var(--green-deep);
}

.associate-doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 75, 50, 0.08);
}

.doc-chip.disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.associate-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(15, 75, 50, 0.06);
  color: var(--muted);
  line-height: 1.6;
}

.list-item span,
.report-card p,
.empty-state,
.info-strip {
  color: var(--muted);
  line-height: 1.6;
}

.badge {
  color: var(--green-deep);
  background: rgba(21, 106, 71, 0.1);
}

.field-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.field-tag.required {
  color: white;
  background: linear-gradient(180deg, var(--green), var(--green-deep));
}

.field-tag.recommended {
  color: var(--green-deep);
  background: rgba(21, 106, 71, 0.12);
}

.report-card h4 {
  margin-bottom: 10px;
}

.report-card h5 {
  margin: 18px 0 10px;
  color: var(--green-deep);
}

.score-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(31, 122, 86, 0.12);
  font-weight: 650;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.check-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(15, 75, 50, 0.06);
}

.check-row-copy {
  display: grid;
  gap: 5px;
}

.check-row-copy strong {
  font-size: 0.95rem;
}

.check-row-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.check-row-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.check-ok {
  color: var(--success);
  font-weight: 650;
}

.check-fail {
  color: var(--danger);
  font-weight: 650;
}

.feedback {
  display: none;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
}

.feedback.success,
.feedback.error {
  display: block;
}

.feedback.success {
  color: var(--success);
}

.feedback.error {
  color: var(--danger);
}

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

.rdc-group-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 75, 50, 0.06);
}

.rdc-group-card strong {
  font-size: 0.98rem;
}

.rdc-group-card p,
.rdc-next-step {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

  .sidebar {
    position: static;
    max-height: none;
  }

  .hero,
  .overview-grid,
  .content-grid.two,
  .content-grid.three,
  .form-grid.two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .shell {
    width: min(100% - 14px, 1500px);
    margin: 7px auto;
  }

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

  .topbar-actions {
    justify-content: flex-start;
  }

  .section-inline-head,
  .check-row,
  .associate-card-head {
    flex-direction: column;
  }

  .check-row-status {
    justify-items: start;
  }

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

  .associate-meta-grid {
    grid-template-columns: 1fr;
  }
}
