body.portal { min-height: 100vh; background: #eef4ea; }
.portal-header { position: static; background: var(--green-dark); }
.portal-header nav { color: white; }
.portal-main { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0 90px; }
.portal-intro { max-width: 790px; margin-bottom: 34px; }
.portal-intro h1 { margin-bottom: 16px; font-size: clamp(38px, 5vw, 68px); letter-spacing: -.05em; }
.portal-intro p { color: #53645a; font-size: 18px; }
.form-card, .admin-card { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.form-section { margin: 0 0 38px; padding: 0 0 30px; border: 0; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { margin-bottom: 20px; border-bottom: 0; }
.form-section legend { width: 100%; margin-bottom: 20px; font: 800 21px/1.2 "Montserrat", sans-serif; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px; }
.field.full { grid-column: 1 / -1; }
.field label, .field-title { display: block; margin-bottom: 7px; font-weight: 800; font-size: 14px; }
.field input, .field select, .field textarea, .admin-tools input, .admin-tools select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #bdc9c0; border-radius: 10px; background: #fbfdf9; color: var(--ink); font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(117,214,60,.3); border-color: var(--green); }
.field small { display: block; margin-top: 5px; color: #6d7b72; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f7fbf4; font-weight: 700; }
.choice input { width: 18px; height: 18px; accent-color: var(--green); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 24px; }
.consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--green); }
.notice { margin-bottom: 24px; padding: 16px 18px; border-radius: 12px; font-weight: 700; }
.notice.success { color: #0a572f; background: #dbf6d1; }
.notice.error { color: #8e231e; background: #ffe2de; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.login-wrap { width: min(500px, calc(100% - 36px)); margin: 70px auto; }
.login-wrap .brand { margin-bottom: 26px; color: var(--green-dark); }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: #eef4ea; }
.admin-sidebar { padding: 28px 20px; color: white; background: var(--green-dark); }
.admin-sidebar .brand { margin-bottom: 48px; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav a { padding: 11px 12px; border-radius: 9px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,.12); }
.admin-content { padding: 42px; overflow: hidden; }
.admin-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.admin-top h1 { margin-bottom: 5px; font-size: 38px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat span { display: block; color: #65746b; font-size: 13px; }
.stat strong { color: var(--green); font: 800 31px/1.2 "Montserrat", sans-serif; }
.admin-tools { display: grid; grid-template-columns: 1fr 190px 160px auto; gap: 10px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 930px; }
th, td { padding: 15px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #5e6e64; background: #f8faf6; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
td { font-size: 14px; }
.badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #edf5e8; color: var(--green); font-size: 11px; font-weight: 800; }
.badge.pending { background: #fff1c9; color: #78540a; }
.badge.approved { background: #dff6d8; color: #0d6134; }
.badge.rejected { background: #ffe0dc; color: #8c2d25; }
.row-actions { display: flex; gap: 6px; }
.small-button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--green-dark); cursor: pointer; font-weight: 800; }
.empty-state { padding: 60px 20px; text-align: center; color: #66756c; }
@media (max-width: 900px) {
  .portal-header .menu-toggle { display: none; }
  .portal-header nav { position: static; display: flex; width: auto; padding: 0; color: white; background: transparent; box-shadow: none; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 18px 20px; }
  .admin-sidebar .brand { margin-bottom: 18px; }
  .admin-sidebar nav { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 28px 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-tools { grid-template-columns: 1fr 1fr; }
  .admin-tools input { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .portal-header nav a:not(.nav-cta) { display: none; }
  .stats { grid-template-columns: 1fr; }
  .admin-tools { grid-template-columns: 1fr; }
  .admin-tools input { grid-column: auto; }
  .admin-top { align-items: flex-start; flex-direction: column; }
}
