:root {
  --forest: #103d2b;
  --forest-2: #18563d;
  --leaf: #2f8f59;
  --lime: #b8d96d;
  --cream: #f5f1e8;
  --sand: #e9e0ce;
  --ink: #16231d;
  --muted: #66746d;
  --white: #fff;
  --danger: #b64b42;
  --warning: #b87820;
  --line: #dfe5df;
  --shadow: 0 18px 60px rgba(16, 61, 43, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f8faf7; font-family: "DM Sans", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: white; background: var(--forest); box-shadow: 0 8px 24px rgba(16,61,43,.18); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-copy strong { display: block; font: 800 18px/1.1 Manrope, sans-serif; letter-spacing: -.03em; }
.brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.public-nav { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1240px; margin: auto; padding: 0 28px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.nav-links a { color: #4e5f56; }
.nav-links a:hover { color: var(--forest); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 12px; padding: 0 18px; font-weight: 700; transition: .2s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--forest); box-shadow: 0 8px 24px rgba(16,61,43,.18); }
.btn-primary:hover { background: var(--forest-2); }
.btn-light { color: var(--forest); background: white; border-color: var(--line); }
.btn-ghost { color: var(--forest); background: transparent; border-color: #cfd8d1; }
.btn-accent { color: var(--forest); background: var(--lime); }
.btn-danger { color: var(--danger); background: #fff8f7; border-color: #ecd0cd; }
.btn-sm { min-height: 38px; padding: 0 13px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }

.hero { position: relative; overflow: hidden; max-width: 1240px; min-height: 650px; margin: 8px auto 0; border-radius: 28px; background: var(--cream); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -170px; border-radius: 50%; border: 80px solid rgba(184,217,109,.28); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; opacity: .14; background: repeating-linear-gradient(115deg, transparent 0 32px, var(--forest) 33px 34px); clip-path: polygon(0 80%, 22% 30%, 40% 70%, 58% 5%, 78% 57%, 100% 18%, 100% 100%, 0 100%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 650px; padding: 74px 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--forest-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--leaf); }
h1, h2, h3, h4, p { margin-top: 0; }
.hero h1 { max-width: 690px; margin: 22px 0; color: var(--forest); font: 800 clamp(48px, 6vw, 78px)/.98 Manrope, sans-serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--leaf); font-style: normal; }
.hero-copy > p { max-width: 610px; color: #56665d; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 42px; color: #607067; font-size: 13px; font-weight: 700; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: #dce9c1; font-style: normal; font-size: 12px; }

.hero-visual { position: relative; min-height: 490px; }
.field-card { position: absolute; inset: 36px 0 0 60px; overflow: hidden; border: 8px solid white; border-radius: 180px 180px 24px 24px; background: linear-gradient(155deg, #dbe7b4 0 30%, #7eaa66 30% 48%, #427a50 48% 63%, #1f553e 63%); box-shadow: var(--shadow); }
.field-card::before, .field-card::after { content: ""; position: absolute; left: -20%; width: 140%; height: 90px; border-radius: 50%; border-top: 3px solid rgba(255,255,255,.35); transform: rotate(-7deg); }
.field-card::before { bottom: 110px; box-shadow: 0 -20px 0 rgba(255,255,255,.08), 0 -40px 0 rgba(255,255,255,.08), 0 -60px 0 rgba(255,255,255,.08); }
.field-card::after { bottom: 5px; }
.sun { position: absolute; right: 56px; top: 80px; width: 70px; height: 70px; border-radius: 50%; background: #f7d77b; box-shadow: 0 0 0 18px rgba(247,215,123,.18); }
.farmer-shape { position: absolute; left: 45%; bottom: 47px; width: 54px; height: 170px; border-radius: 28px 28px 12px 12px; background: #e7a943; transform: rotate(2deg); }
.farmer-shape::before { content: ""; position: absolute; left: -8px; top: -45px; width: 70px; height: 70px; border-radius: 50%; background: #6a3e24; box-shadow: 0 -13px 0 5px #e8bf64; }
.farmer-shape::after { content: ""; position: absolute; width: 94px; height: 7px; left: -20px; top: -25px; border-radius: 50%; background: #dfb151; }
.float-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.75); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 14px 35px rgba(16,61,43,.14); backdrop-filter: blur(10px); }
.float-card strong { display: block; font-size: 13px; }
.float-card span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.float-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 11px; color: white; background: var(--leaf); }
.float-one { left: 4px; top: 78px; }
.float-two { right: -12px; bottom: 56px; }

.section { max-width: 1184px; margin: auto; padding: 92px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section h2 { margin: 12px 0 0; color: var(--forest); font: 800 clamp(32px,4vw,48px)/1.08 Manrope,sans-serif; letter-spacing: -.045em; }
.section-head p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.7; }
.journey-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.journey-card { position: relative; min-height: 230px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 28px rgba(22,35,29,.04); }
.journey-card .num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: #eaf2d9; font: 800 14px Manrope; }
.journey-card h3 { margin: 48px 0 10px; font: 800 19px Manrope; }
.journey-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.journey-card:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -25px; top: 38px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--leaf); background: #f8faf7; font-weight: 800; }

.footer { margin-top: 30px; color: #dce9e1; background: var(--forest); }
.footer-inner { max-width: 1184px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 38px 0; }
.footer .brand-copy span { color: #9eb5a8; }
.footer-note { color: #a8bcb0; font-size: 13px; text-align: right; }

/* portal sign in */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px,1.05fr) minmax(460px,.95fr); background: white; }
.login-story { position: relative; overflow: hidden; min-height: 100vh; color: white; background: var(--forest); }
.login-story::before { content: ""; position: absolute; width: 580px; height: 580px; right: -260px; top: -230px; border: 85px solid rgba(184,217,109,.12); border-radius: 50%; }
.login-story::after { content: ""; position: absolute; left: -8%; right: -8%; bottom: -80px; height: 310px; opacity: .28; background: repeating-linear-gradient(112deg, transparent 0 40px, #b8d96d 41px 43px); clip-path: polygon(0 70%, 16% 23%, 34% 58%, 54% 0, 71% 44%, 88% 12%, 100% 50%, 100% 100%, 0 100%); }
.login-story-inner { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; padding: 54px clamp(38px,6vw,88px); }
.login-story .brand-mark { color: var(--forest); background: var(--lime); }
.login-story .brand-copy span { color: #a9c0b3; }
.login-message { margin: auto 0; max-width: 680px; padding: 70px 0; }
.login-message .eyebrow { color: var(--lime); }
.login-message h1 { margin: 24px 0 22px; font: 800 clamp(42px,5vw,68px)/1.03 Manrope,sans-serif; letter-spacing: -.055em; }
.login-message p { max-width: 590px; margin: 0; color: #bed0c6; font-size: 17px; line-height: 1.75; }
.login-trust { display: flex; flex-wrap: wrap; gap: 23px; color: #c8d8cf; font-size: 12px; font-weight: 700; }
.login-trust span { display: inline-flex; align-items: center; gap: 7px; }
.login-trust svg { width: 17px; color: var(--lime); }
.login-panel { min-height: 100vh; display: grid; align-items: center; padding: 50px clamp(30px,6vw,92px); }
.login-panel-inner { width: min(480px,100%); margin: auto; }
.login-back { display: inline-block; margin-bottom: 55px; color: var(--muted); font-size: 12px; font-weight: 700; }
.login-back:hover { color: var(--forest); }
.login-kicker { color: var(--leaf); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-panel h2 { margin: 10px 0 8px; color: var(--forest); font: 800 38px/1.1 Manrope,sans-serif; letter-spacing: -.045em; }
.login-lead { margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.portal-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 16px; }
.portal-option { min-height: 82px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; transition: .18s ease; }
.portal-option span { height: 22px; }
.portal-option svg { width: 21px; height: 21px; }
.portal-option strong { font-size: 11px; }
.portal-option:hover { border-color: #a9bbae; color: var(--forest); }
.portal-option.active { border-color: var(--leaf); color: var(--forest); background: #f2f7e9; box-shadow: 0 0 0 3px rgba(47,143,89,.07); }
.selected-portal { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; padding: 13px 14px; border-radius: 11px; background: #f7f9f7; }
.selected-portal-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 10px; color: var(--forest); background: #e6efcf; }
.selected-portal-icon svg { width: 19px; }
.selected-portal strong, .selected-portal small { display: block; }
.selected-portal strong { font-size: 12px; }
.selected-portal small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.login-form { display: grid; gap: 17px; }
.login-form .field input { min-height: 49px; }
.login-help { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.login-help label { display: inline-flex; align-items: center; gap: 7px; }
.login-help input { accent-color: var(--leaf); }
.login-help a, .login-footer a { color: var(--forest); font-weight: 800; }
.login-submit { min-height: 52px; margin-top: 2px; }
.login-footer { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }

/* application shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0,1fr); background: #f4f7f4; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px 20px; color: white; background: var(--forest); }
.sidebar .brand-copy span { color: #98b6a5; }
.sidebar .brand-mark { color: var(--forest); background: var(--lime); }
.side-nav { display: grid; gap: 6px; margin-top: 44px; }
.side-link { display: flex; align-items: center; gap: 13px; min-height: 48px; border: 0; border-radius: 11px; padding: 0 14px; color: #b8cec1; background: transparent; text-align: left; font-size: 14px; font-weight: 700; }
.side-link:hover, .side-link.active { color: white; background: rgba(255,255,255,.09); }
.side-link.active { box-shadow: inset 3px 0 var(--lime); }
.side-link svg { width: 19px; height: 19px; }
.side-bottom { margin-top: auto; }
.user-mini { display: flex; align-items: center; gap: 11px; padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.1); }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 13px; font-weight: 800; }
.user-mini strong { display: block; font-size: 13px; }
.user-mini span { color: #9fb8aa; font-size: 11px; }
.app-main { min-width: 0; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: blur(14px); }
.topbar-title h1 { margin: 0; font: 800 21px Manrope; letter-spacing: -.03em; }
.topbar-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu { display: none; }
.content { max-width: 1440px; margin: auto; padding: 30px 34px 60px; }
.welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; min-height: 190px; padding: 34px; border-radius: 20px; color: white; background: var(--forest); }
.welcome::after { content: ""; position: absolute; width: 330px; height: 330px; right: -55px; top: -160px; border: 55px solid rgba(184,217,109,.13); border-radius: 50%; }
.welcome > * { position: relative; z-index: 1; }
.welcome h2 { margin: 7px 0 10px; font: 800 30px Manrope; letter-spacing: -.04em; }
.welcome p { max-width: 640px; margin: 0; color: #bcd0c3; line-height: 1.65; }
.welcome-kicker { color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.welcome-graphic { width: 144px; height: 112px; display: grid; place-items: center; border-radius: 60% 40% 48% 52%; color: var(--forest); background: var(--lime); transform: rotate(-4deg); }
.welcome-graphic svg { width: 70px; height: 70px; transform: rotate(4deg); }

.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-top: 20px; }
.stat-card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--forest); background: #edf4df; }
.stat-card strong { display: block; margin-top: 18px; font: 800 28px Manrope; letter-spacing: -.04em; }
.stat-card small { color: var(--muted); }
.up { color: var(--leaf) !important; }

.grid-2 { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 20px; margin-top: 20px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 69px; padding: 0 22px; border-bottom: 1px solid #edf0ed; }
.panel-head h3 { margin: 0; font: 800 16px Manrope; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-body { padding: 22px; }
.activity-list { display: grid; gap: 3px; }
.activity { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid #eef1ee; }
.activity:last-child { border-bottom: 0; }
.activity-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--forest); background: #edf4df; }
.activity strong { display: block; font-size: 13px; }
.activity span { color: var(--muted); font-size: 11px; }
.activity time { color: #8d9a93; font-size: 11px; }
.progress-item { margin-bottom: 21px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.progress { height: 8px; overflow: hidden; border-radius: 10px; background: #edf0ed; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--leaf); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-head h2 { margin: 0; font: 800 27px Manrope; letter-spacing: -.035em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.search { position: relative; flex: 1; max-width: 390px; }
.search svg { position: absolute; left: 13px; top: 12px; width: 18px; color: #829088; }
.search input { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 11px; padding: 0 13px 0 40px; outline: none; background: white; }
.search input:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47,143,89,.08); }
.filter { height: 43px; border: 1px solid var(--line); border-radius: 11px; padding: 0 32px 0 13px; color: var(--ink); background: white; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 18px; color: #7b8981; background: #f9faf9; text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 16px 18px; border-top: 1px solid #edf0ed; font-size: 13px; }
.entity { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.entity-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 10px; color: var(--forest); background: #edf4df; font-size: 12px; font-weight: 800; }
.entity strong { display: block; }
.entity span { color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 20px; padding: 6px 9px; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pending { color: #9a681c; background: #fff5de; }
.badge.verified, .badge.active, .badge.approved { color: #287c4b; background: #e8f5ec; }
.badge.draft { color: #66746d; background: #edf0ed; }
.badge.assigned { color: #326db0; background: #e9f2fc; }
.badge.rejected { color: #a6423a; background: #fdecea; }
.row-actions { display: flex; gap: 7px; }
.icon-btn { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: white; }

.form-card { max-width: 900px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.form-intro { padding: 28px 32px; color: white; background: var(--forest); }
.form-intro .eyebrow { color: var(--lime); }
.form-intro h2 { margin: 14px 0 7px; font: 800 28px Manrope; }
.form-intro p { margin: 0; color: #b9cec0; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); padding: 22px 32px 0; }
.step { position: relative; color: #8b9891; font-size: 11px; font-weight: 800; text-align: center; }
.step::before { content: attr(data-num); position: relative; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; margin: 0 auto 7px; border: 3px solid white; border-radius: 50%; color: #7e8c84; background: #e9eeea; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: #e3e8e4; }
.step.active { color: var(--forest); }
.step.active::before { color: white; background: var(--leaf); }
.form-body { padding: 28px 32px 34px; }
.form-section-title { margin-bottom: 18px; font: 800 16px Manrope; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field { display: block; }
.field.full { grid-column: 1 / -1; }
.field span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d9e0da; border-radius: 10px; padding: 12px 13px; color: var(--ink); outline: none; background: #fcfdfc; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47,143,89,.08); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #edf0ed; }
.upload { min-height: 100px; display: grid; place-items: center; border: 1px dashed #b9c7bd; border-radius: 11px; color: var(--muted); background: #f9fbf9; text-align: center; font-size: 12px; }
.upload svg { display: block; width: 24px; margin: 0 auto 6px; color: var(--leaf); }

.scheme-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.scheme-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; transition: .2s ease; }
.scheme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.scheme-art { position: relative; height: 132px; overflow: hidden; background: linear-gradient(150deg,#e8efcf,#79aa67); }
.scheme-art::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -46px; height: 120px; border-radius: 50%; background: var(--leaf); box-shadow: 0 -27px 0 rgba(255,255,255,.17), 0 -54px 0 rgba(255,255,255,.12); }
.scheme-art.credit { background: linear-gradient(145deg,#f7dfae,#d69a3f); }
.scheme-art.insurance { background: linear-gradient(145deg,#d8eaf0,#6ba7b1); }
.scheme-tag { position: absolute; z-index: 2; left: 15px; top: 14px; border-radius: 20px; padding: 6px 9px; color: white; background: rgba(16,61,43,.82); font-size: 10px; font-weight: 800; }
.scheme-content { padding: 20px; }
.scheme-content h3 { margin: 0 0 8px; font: 800 17px Manrope; }
.scheme-content p { min-height: 60px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.scheme-meta { display: flex; justify-content: space-between; margin: 16px 0; padding-top: 14px; border-top: 1px solid #edf0ed; color: var(--muted); font-size: 11px; }
.eligibility { display: flex; align-items: center; gap: 7px; color: var(--leaf); font-size: 11px; font-weight: 800; }

.profile-status { display: grid; grid-template-columns: 1fr 1.7fr; gap: 20px; }
.id-card { position: relative; overflow: hidden; min-height: 255px; padding: 28px; border-radius: 20px; color: white; background: var(--forest); }
.id-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -95px; bottom: -120px; border: 38px solid rgba(184,217,109,.18); border-radius: 50%; }
.id-card .brand-mark { color: var(--forest); background: var(--lime); }
.id-avatar { width: 68px; height: 68px; display: grid; place-items: center; margin-top: 30px; border: 3px solid rgba(255,255,255,.3); border-radius: 50%; color: var(--forest); background: var(--lime); font: 800 20px Manrope; }
.id-card h3 { margin: 14px 0 4px; font: 800 20px Manrope; }
.id-card p { color: #b8cec1; font-size: 12px; }
.id-number { position: absolute; z-index: 1; right: 24px; bottom: 24px; font: 800 12px Manrope; letter-spacing: .1em; }
.timeline { padding: 8px 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding-bottom: 24px; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; top: 33px; bottom: 0; left: 16px; width: 2px; background: #e2e8e3; }
.timeline-dot { width: 34px; height: 34px; display: grid; place-items: center; z-index: 1; border-radius: 50%; color: white; background: var(--leaf); }
.timeline-item.pending .timeline-dot { color: #9a681c; background: #fff0cd; }
.timeline-item h4 { margin: 3px 0 4px; font-size: 13px; }
.timeline-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(11,31,21,.66); backdrop-filter: blur(4px); }
.modal { width: min(560px,100%); max-height: 90vh; overflow-y: auto; border-radius: 19px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font: 800 19px Manrope; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.modal-close { width: 35px; height: 35px; border: 0; border-radius: 9px; background: #f0f3f0; font-size: 20px; }
.modal-body { padding: 24px; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-list div { padding: 13px; border-radius: 10px; background: #f7f9f7; }
.detail-list span { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.detail-list strong { display: block; margin-top: 5px; font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 24px; border-top: 1px solid var(--line); }
.map-box { position: relative; min-height: 180px; overflow: hidden; margin-top: 18px; border-radius: 13px; background: #e8efe8; }
.map-box::before { content: ""; position: absolute; inset: 0; opacity: .4; background: linear-gradient(28deg,transparent 45%,#8ca991 46% 48%,transparent 49%),linear-gradient(-22deg,transparent 57%,#8ca991 58% 60%,transparent 61%),repeating-linear-gradient(90deg,transparent 0 60px,#cad8cc 61px 62px); }
.map-pin { position: absolute; left: 52%; top: 43%; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; color: white; background: var(--danger); transform: rotate(-45deg); box-shadow: 0 6px 20px rgba(182,75,66,.35); }
.map-pin svg { width: 14px; transform: rotate(45deg); }

.empty { padding: 60px 24px; color: var(--muted); text-align: center; }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 18px; color: var(--forest); background: #edf4df; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { min-width: 300px; display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-radius: 12px; color: white; background: var(--forest); box-shadow: 0 18px 50px rgba(0,0,0,.2); animation: toast-in .25s ease; font-size: 13px; font-weight: 700; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

@media (max-width: 1000px) {
  .public-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { margin: 0 12px; }
  .hero-inner { grid-template-columns: 1fr; padding: 58px 40px; }
  .hero-visual { min-height: 430px; }
  .section { padding: 70px 22px; }
  .journey-grid { grid-template-columns: 1fr 1fr; }
  .journey-card:not(:last-child)::after { display: none; }
  .footer-inner { padding: 36px 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .scheme-grid { grid-template-columns: 1fr 1fr; }
  .profile-status { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: minmax(340px,.8fr) minmax(430px,1.2fr); }
  .login-message h1 { font-size: 42px; }
}

@media (max-width: 760px) {
  .brand-copy span { display: none; }
  .public-nav .btn-primary { display: none; }
  .hero-inner { padding: 46px 24px; }
  .hero h1 { font-size: 46px; }
  .hero-copy > p { font-size: 16px; }
  .hero-visual { min-height: 370px; }
  .field-card { inset: 24px 0 0 12px; }
  .float-one { left: -6px; }
  .float-two { right: -4px; }
  .section-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-note { text-align: left; }
  .journey-grid, .scheme-grid { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 40; left: -280px; width: 264px; transition: .25s ease; }
  .app-shell.nav-open .sidebar { left: 0; box-shadow: 20px 0 60px rgba(0,0,0,.25); }
  .topbar { height: 72px; padding: 0 18px; }
  .mobile-menu { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; }
  .topbar-title p, .top-actions .btn { display: none; }
  .content { padding: 20px 16px 50px; }
  .welcome { padding: 26px; }
  .welcome-graphic { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .toolbar { flex-wrap: wrap; }
  .search { max-width: none; min-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-intro, .form-body { padding-left: 22px; padding-right: 22px; }
  .steps { padding-left: 16px; padding-right: 16px; }
  .detail-list { grid-template-columns: 1fr; }
  .login-page { display: block; min-height: 100vh; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 32px 22px; }
  .login-back { margin-bottom: 44px; }
}

@media (max-width: 450px) {
  .public-nav { padding: 0 14px; }
  .nav-actions .btn { padding: 0 12px; font-size: 12px; }
  .hero { border-radius: 20px; }
  .hero h1 { font-size: 39px; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 12px; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-title h1 { font-size: 17px; }
  .activity { grid-template-columns: 38px 1fr; }
  .activity time { display: none; }
}

/* Market-centred onboarding and assisted service */
.compact { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.registration-wrap { width: min(980px,calc(100% - 32px)); margin: 54px auto 90px; }
.form-intro { max-width: 700px; margin: 0 auto 26px; text-align: center; }
.form-intro h1 { margin: 9px 0 10px; font: 800 clamp(30px,5vw,48px) Manrope; color: var(--forest); }
.form-intro p { color: var(--muted); line-height: 1.65; }
.registration-card { overflow: visible; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 22px 70px rgba(20,58,39,.08); }
.participant-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 18px; border-bottom: 1px solid var(--line); background: #f7f9f7; border-radius: 22px 22px 0 0; }
.participant-tab { display: grid; min-height: 58px; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: white; cursor: pointer; }
.participant-tab input { position: absolute; opacity: 0; }
.participant-tab.selected { color: white; border-color: var(--forest); background: var(--forest); }
.form-section { padding: 28px 32px; border-bottom: 1px solid var(--line); }
.section-label { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.section-label > span { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-weight: 800; }
.section-label h3 { margin: 2px 0 4px; font: 800 17px Manrope; }
.section-label p { margin: 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; color: #33453a; font-size: 12px; font-weight: 700; }
.field input,.field select,.field textarea,.toolbar select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d8e0d9; border-radius: 10px; outline: 0; color: #203a2d; background: white; font: 500 13px 'DM Sans'; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(105,152,67,.13); }
.produce-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 12px; padding: 14px; border-radius: 12px; background: #f7f9f7; }
.remove-row { min-height: 46px; padding: 0 12px; border: 0; border-radius: 9px; color: #a5413a; background: #fbe9e7; cursor: pointer; }
.hidden { display: none !important; }
.market-picker { position: relative; padding: 18px; border: 1px solid #dce5d9; border-radius: 14px; background: #fbfcf9; }
.market-suggestions { position: absolute; z-index: 8; left: 18px; right: 50%; top: 86px; display: grid; overflow: hidden; border-radius: 10px; background: white; box-shadow: 0 18px 45px rgba(10,40,25,.18); }
.market-suggestions:empty { display: none; }
.market-suggestions button { display: grid; gap: 3px; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: white; cursor: pointer; }
.market-suggestions button:hover { background: #f0f6e9; }
.market-suggestions span { color: var(--muted); font-size: 11px; }
.selected-chips { display: flex; flex-wrap: wrap; gap: 9px; min-height: 50px; align-items: center; margin-top: 14px; }
.selected-chips > p { margin: 0; color: var(--muted); font-size: 12px; }
.market-chip { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 9px 10px 9px 12px; border: 1px solid #cfe0c5; border-radius: 11px; background: #edf5e7; }
.market-chip small { grid-column: 1; color: var(--muted); font-size: 10px; }
.market-chip button { grid-column: 2; grid-row: 1 / span 2; border: 0; color: #76554b; background: transparent; font-size: 18px; cursor: pointer; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 22px 32px; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 15px 17px; border: 1px solid #d7e5ce; border-radius: 12px; color: #38513f; background: #f0f7eb; font-size: 12px; }
.notice b { flex: 0 0 auto; }
.notice.warning { border-color: #ead8aa; color: #654d1e; background: #fff9e8; }
.notice.compact { margin: 12px 0 0; padding: 11px 13px; }
.plain-card { padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.plain-card h3 { margin: 0 0 8px; font: 800 18px Manrope; }
.plain-card p { min-height: 46px; color: var(--muted); line-height: 1.6; }
.plain-card a { color: var(--leaf); font-weight: 800; }
.soft-section { background: #f4f7f1; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 20px 0; }
.service-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; color: inherit; background: white; text-decoration: none; transition: .2s ease; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-card > span { color: var(--leaf); font: 800 12px Manrope; }
.service-card h3 { margin: 18px 0 6px; font: 800 17px Manrope; }
.service-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tier { display: inline-flex; padding: 5px 8px; border-radius: 20px; background: #eef3e9; font-size: 10px; font-weight: 800; }
.tier.major { color: #805014; background: #fff0cf; }
.result-count { margin: 0; padding: 13px 18px; color: var(--muted); font-size: 11px; }
.link-btn { border: 0; color: var(--leaf); background: none; font: 800 12px 'DM Sans'; cursor: pointer; }
.wide-modal { width: min(760px,100%); }
.verify-box { margin: 20px 0; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf7; }
.verify-box h4,.subhead { margin: 0 0 14px; font: 800 14px Manrope; }
.success-page { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; background: #f5f8f3; }
.success-page h1 { margin: 18px 0 8px; font: 800 36px Manrope; color: var(--forest); }
.success-page p { max-width: 560px; margin: 0 0 24px; color: var(--muted); line-height: 1.7; }
.success-mark { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 32px; font-weight: 800; }
.form-error { min-height: 18px; margin: 8px 0; color: #a5413a; font-size: 12px; font-weight: 700; }
.register-prompt { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.register-prompt a { color: var(--leaf); font-weight: 800; }
.btn:disabled { opacity: .6; cursor: wait; }
.field small { color: var(--muted); font-weight: 500; }
.bvn-actions { display: flex; gap: 14px; align-items: center; padding: 4px 0; }
.bvn-status { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.bvn-status.success { color: #2d6d3b; }
.bvn-status.error { color: #a5413a; }
.field input[readonly] { color: #476153; background: #f1f5ef; }

@media (max-width: 760px) {
  .participant-tabs,.service-grid { grid-template-columns: 1fr; }
  .form-section { padding: 24px 18px; }
  .produce-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .market-suggestions { right: 18px; top: 86px; }
  .form-actions { padding: 18px; }
  .notice { flex-direction: column; }
  .bvn-actions { align-items: stretch; flex-direction: column; }
}

/* Unified layout system for the current AFAN Connect markup */
body { min-width: 320px; overflow-x: hidden; line-height: 1.5; }
.btn-secondary { color: var(--forest); border-color: #cfd9d1; background: #fff; }
.btn-secondary:hover { border-color: #9db1a3; background: #f7faf6; }
.btn-lime { color: var(--forest); background: var(--lime); box-shadow: 0 10px 24px rgba(77,112,42,.16); }
.btn-ghost-light { color: var(--forest); border-color: #bdcbbf; background: rgba(255,255,255,.68); }
.wide { width: 100%; }

/* Public pages */
.public-nav { width: min(1240px,100%); }
.hero-inner { gap: clamp(34px,5vw,76px); }
.hero-copy { min-width: 0; }
.hero-visual { min-width: 0; }
.field-card { display: flex; flex-direction: column; justify-content: flex-end; }
.field-photo { position: absolute; inset: 0; }
.field-photo span { position: absolute; top: 28px; left: 28px; z-index: 2; padding: 8px 11px; border-radius: 999px; color: #fff; background: rgba(16,61,43,.74); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.field-details { position: relative; z-index: 2; margin: 0 20px 20px; padding: 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(16,61,43,.13); }
.field-details strong { display: block; color: var(--forest); font: 800 15px/1.35 Manrope,sans-serif; }
.field-details p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.float-card { display: grid; grid-template-columns: auto 1fr; }
.float-card b { color: var(--forest); font: 800 20px Manrope,sans-serif; }
.float-card span { margin: 0; }
.hero-visual .float-two { right: -14px; bottom: 154px; }
.journey-card > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: #eaf2d9; font: 800 13px Manrope,sans-serif; }
.journey-card h3 { margin-top: 42px; }
footer { margin-top: 30px; color: #dce9e1; background: var(--forest); }
footer .brand-mark { color: var(--forest); background: var(--lime); }
footer .brand-copy span { color: #9eb5a8; }

/* Sign in */
.login-page { grid-template-columns: minmax(390px,.92fr) minmax(500px,1.08fr); }
.login-story { display: block; }
.login-story > div { position: relative; z-index: 2; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 680px; padding: 64px clamp(42px,6vw,92px); }
.login-story .brand { position: absolute; top: 46px; left: clamp(42px,6vw,92px); }
.login-story .brand-mark { color: var(--forest); background: var(--lime); }
.login-story .brand-copy span { color: #abc1b5; }
.login-story .eyebrow { margin-bottom: 20px; color: var(--lime); }
.login-story h1 { max-width: 570px; margin: 0 0 22px; color: #fff; font: 800 clamp(44px,5vw,68px)/1.04 Manrope,sans-serif; letter-spacing: -.055em; }
.login-story p { max-width: 560px; margin: 0; color: #c0d3c8; font-size: 16px; line-height: 1.75; }
.login-panel { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: stretch; padding: 82px clamp(40px,7vw,104px) 56px; }
.login-back { position: absolute; top: 42px; left: clamp(40px,7vw,104px); margin: 0; }
.login-box { width: min(540px,100%); margin: auto; }
.login-box > .eyebrow { margin-bottom: 13px; }
.login-box h2 { margin: 0 0 10px; color: var(--forest); font: 800 clamp(31px,3.1vw,42px)/1.12 Manrope,sans-serif; letter-spacing: -.045em; }
.login-box > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.role-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0 0 22px; }
.role-option { position: relative; min-height: 84px; display: flex; align-items: center; padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: #fff; cursor: pointer; transition: .18s ease; }
.role-option:hover { border-color: #a8b9ad; }
.role-option.selected { border-color: var(--leaf); color: var(--forest); background: #f0f6e9; box-shadow: 0 0 0 3px rgba(47,143,89,.07); }
.role-option input { position: absolute; opacity: 0; pointer-events: none; }
.role-option span,.role-option b,.role-option small { display: block; }
.role-option b { color: var(--forest); font-size: 13px; }
.role-option small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
#login-form { display: grid; gap: 15px; }
#login-form .form-error { margin: -3px 0; }
#login-form .btn { min-height: 51px; margin-top: 2px; }

/* Registration */
.registration-wrap { padding: 0; }
.registration-wrap > .form-intro { max-width: 760px; margin: 0 auto 28px; padding: 0; color: var(--ink); background: transparent; text-align: center; }
.registration-wrap > .form-intro .eyebrow { color: var(--forest-2); }
.registration-wrap > .form-intro h1 { margin: 12px 0 10px; color: var(--forest); font: 800 clamp(34px,5vw,50px)/1.08 Manrope,sans-serif; letter-spacing: -.045em; }
.registration-wrap > .form-intro p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.65; }
.registration-card { overflow: hidden; }
.participant-tab { position: relative; padding: 0 12px; text-align: center; }
.form-section { padding: 32px; }
.section-label { max-width: 760px; }
.section-label > div { min-width: 0; }
.section-label h3 { line-height: 1.3; }
.section-label p { line-height: 1.55; }
.registration-card .field { align-content: start; }
.registration-card .field > span { min-height: 18px; margin: 0; line-height: 1.4; }
.registration-card .field input,.registration-card .field select,.registration-card .field textarea { display: block; }
.bvn-actions { min-height: 54px; padding: 2px 0 0; }
.bvn-actions .btn { flex: 0 0 auto; }
.produce-row { grid-template-columns: minmax(170px,.8fr) minmax(210px,1fr) minmax(180px,1fr) auto; }
.form-actions { margin: 0; border: 0; background: #fbfcfa; }

/* Portal shell */
.app-shell { grid-template-columns: 268px minmax(0,1fr); }
.sidebar { width: auto; padding: 28px 20px 22px; }
.sidebar > .brand { padding: 0 5px; }
.sidebar nav { display: grid; gap: 6px; margin-top: 40px; }
.sidebar nav a { min-height: 48px; display: flex; align-items: center; gap: 13px; padding: 0 14px; border-radius: 11px; color: #b9cdc1; font-size: 14px; font-weight: 700; }
.sidebar nav a:hover,.sidebar nav a.active { color: #fff; background: rgba(255,255,255,.09); }
.sidebar nav a.active { box-shadow: inset 3px 0 var(--lime); }
.sidebar nav i { width: 22px; display: grid; place-items: center; color: var(--lime); font-size: 17px; font-style: normal; }
.sidebar-note { margin-top: auto; padding: 17px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(255,255,255,.05); }
.sidebar-note b { display: block; margin-bottom: 5px; color: #fff; font-size: 13px; }
.sidebar-note p { margin: 0; color: #a9c0b3; font-size: 11px; line-height: 1.55; }
.logout { min-height: 44px; margin-top: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; color: #d9e7df; background: rgba(255,255,255,.06); font-weight: 700; }
.logout:hover { color: #fff; background: rgba(255,255,255,.11); }
.topbar { position: sticky; top: 0; z-index: 18; }
.account { display: flex; align-items: center; gap: 11px; min-width: 0; }
.account > span { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: 12px; font-weight: 800; }
.account b,.account small { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account b { font-size: 13px; }
.account small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.content { width: 100%; }
.welcome { gap: 30px; }
.welcome .eyebrow { color: var(--lime); }
.welcome-graphic { flex: 0 0 auto; font: 800 30px Manrope,sans-serif; }
.stat-card { min-width: 0; }
.stat-card > span { display: block; min-height: 36px; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card > strong { line-height: 1.15; overflow-wrap: anywhere; }
.stat-card > small { display: block; margin-top: 7px; line-height: 1.45; }
.panel > .activity-list { padding: 8px 22px; }
.activity p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.panel-head > a { color: var(--leaf); font-size: 12px; font-weight: 800; }
td b,td small { display: block; }
td small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.pending { color: #916214; background: #fff4d9; }
.status.verified { color: #287c4b; background: #e6f4ea; }
.status.assigned { color: #326aa8; background: #e8f1fb; }
.toolbar { align-items: center; padding: 16px 18px; border-bottom: 1px solid #edf0ed; }
.toolbar > select { min-width: 160px; }
.notice span { line-height: 1.55; }
.plain-card p { min-height: 50px; }
.detail-list strong { overflow-wrap: anywhere; line-height: 1.45; }
.profile-status > .panel { padding: 24px; }
.profile-status .subhead { margin-top: 24px; }

@media (max-width: 1100px) {
  .login-page { grid-template-columns: minmax(340px,.78fr) minmax(470px,1.22fr); }
  .login-story > div { padding-inline: 42px; }
  .login-story .brand { left: 42px; }
  .login-story h1 { font-size: 46px; }
  .app-shell { grid-template-columns: 238px minmax(0,1fr); }
  .content { padding-inline: 24px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .public-nav { height: 72px; }
  .public-nav .brand-copy strong { font-size: 16px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .hero { min-height: auto; }
  .hero-inner { min-height: auto; }
  .hero-visual { min-height: 350px; }
  .section { padding-block: 60px; }
  .section-head { gap: 16px; }
  .login-page { display: block; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 96px 22px 42px; }
  .login-back { top: 30px; left: 22px; }
  .login-box { max-width: 520px; }
  .role-options { grid-template-columns: 1fr 1fr; }
  .registration-wrap { width: min(100% - 24px,980px); margin-top: 34px; }
  .registration-wrap > .form-intro { padding: 0 8px; }
  .participant-tabs { gap: 7px; padding: 12px; }
  .participant-tab { min-height: 52px; font-size: 12px; }
  .form-section { padding: 25px 18px; }
  .section-label { margin-bottom: 18px; }
  .produce-row { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar { width: min(280px,86vw); left: -310px; }
  .app-shell.nav-open .sidebar::after { content: ""; position: fixed; z-index: -1; inset: 0; background: rgba(7,29,19,.35); }
  .topbar { gap: 12px; }
  .topbar-title { min-width: 0; }
  .topbar-title h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account > div { display: none; }
  .content { padding: 20px 14px 44px; }
  .welcome { min-height: 170px; padding: 24px; }
  .welcome h2 { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .stat-card { padding: 17px; }
  .stat-card > strong { font-size: 23px; }
  .grid-2 { grid-template-columns: 1fr; }
  .panel-head { padding: 12px 16px; }
  .page-head .btn { width: 100%; }
  .profile-status > .panel { padding: 18px; }
}

@media (max-width: 480px) {
  .brand-mark { width: 42px; height: 42px; }
  .nav-actions .btn-secondary { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-inner { padding-inline: 20px; }
  .hero-visual { min-height: 300px; }
  .field-card { border-width: 6px; }
  .field-details { margin: 0 12px 12px; }
  .float-card { padding: 10px 12px; }
  .role-options { grid-template-columns: 1fr; }
  .login-box h2 { font-size: 30px; }
  .participant-tabs { grid-template-columns: 1fr; }
  .participant-tab { min-height: 46px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .welcome h2 { font-size: 23px; }
  .modal-backdrop { padding: 10px; }
  .modal-head,.modal-body,.modal-actions { padding-left: 16px; padding-right: 16px; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
  .toast-region { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; width: 100%; }
}
