:root {
    --ink: #162923;
    --ink-soft: #52645e;
    --forest: #0b5d50;
    --forest-deep: #073f37;
    --mint: #23a879;
    --mint-soft: #dff4ea;
    --gold: #d49a3a;
    --gold-soft: #fbefd7;
    --cream: #f7f4eb;
    --paper: #fffefb;
    --line: #dfe7e2;
    --danger: #b44343;
    --danger-soft: #fbe8e6;
    --warning: #93621c;
    --warning-soft: #fff2d7;
    --info: #285f82;
    --info-soft: #e5f3fb;
    --shadow-sm: 0 1px 2px rgba(14, 40, 32, .05), 0 8px 24px rgba(14, 40, 32, .06);
    --shadow-lg: 0 28px 70px rgba(7, 63, 55, .15);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --sidebar: 272px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #f5f7f4;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body::selection { background: var(--mint-soft); color: var(--forest-deep); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { touch-action: manipulation; }
img, svg { max-width: 100%; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -50px; left: 16px; z-index: 100; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; }
.brand-name { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.brand-tagline { display: block; margin-top: 4px; color: #71827c; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 750; }

/* Public shell */
.public-shell { min-height: 100vh; background: var(--paper); }
.public-header {
    position: sticky; top: 0; z-index: 40; background: rgba(255, 254, 251, .92);
    border-bottom: 1px solid rgba(223, 231, 226, .9); backdrop-filter: blur(18px);
}
.public-nav { width: min(1180px, calc(100% - 40px)); height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.public-links { display: flex; align-items: center; gap: 6px; }
.public-links a { padding: 9px 12px; color: var(--ink-soft); text-decoration: none; border-radius: 9px; font-weight: 650; font-size: .9rem; }
.public-links a:hover, .public-links a.active { color: var(--forest); background: var(--mint-soft); }
.public-actions { display: flex; align-items: center; gap: 10px; }
.hero { position: relative; overflow: hidden; background: linear-gradient(125deg, #f7f4eb 0%, #fffefb 56%, #e5f3ec 100%); }
.hero::after { content: ""; position: absolute; width: 540px; height: 540px; right: -200px; top: -240px; border-radius: 50%; border: 90px solid rgba(35, 168, 121, .08); }
.hero-inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); min-height: 660px; margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; padding: 80px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-size: .75rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); }
.hero h1, .section-title, .auth-title { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.hero h1 { max-width: 720px; margin: 20px 0; font-size: clamp(2.9rem, 6vw, 5.7rem); line-height: .98; font-weight: 600; }
.hero h1 em { color: var(--forest); font-style: normal; }
.hero-copy { max-width: 640px; margin: 0 0 30px; color: var(--ink-soft); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--ink-soft); font-size: .83rem; font-weight: 650; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row span::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-soft); color: var(--forest); font-size: .72rem; }
.energy-card { position: relative; border-radius: 32px; padding: 32px; color: white; background: linear-gradient(145deg, var(--forest-deep), var(--forest)); box-shadow: var(--shadow-lg); overflow: hidden; }
.energy-card::before { content: ""; position: absolute; inset: auto -80px -130px auto; width: 300px; height: 300px; border: 54px solid rgba(255,255,255,.06); border-radius: 50%; }
.energy-label { color: #afe3cf; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.energy-formula { margin: 22px 0 10px; font-family: Georgia, serif; font-size: 2rem; }
.energy-caption { color: #c7ddd6; font-size: .9rem; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 32px; }
.flow-node { padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.08); }
.flow-node strong { display: block; font-size: 1.3rem; }
.flow-node small { color: #bed6ce; }
.flow-arrow { color: #76d7b1; font-size: 1.5rem; }
.split-meter { height: 9px; display: flex; margin: 28px 0 12px; border-radius: 999px; overflow: hidden; }
.split-meter span:first-child { width: 50%; background: #79d9b3; }
.split-meter span:last-child { width: 50%; background: #e2ad54; }
.split-labels { display: flex; justify-content: space-between; color: #d7e7e1; font-size: .76rem; }
.section { padding: 96px 0; }
.section.tint { background: var(--cream); }
.section.dark { color: white; background: var(--forest-deep); }
.section-inner { width: min(1180px, calc(100% - 40px)); margin: auto; }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-title { margin: 12px 0 14px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; font-weight: 600; }
.section-copy { color: var(--ink-soft); font-size: 1rem; }
.dark .section-copy { color: #bfd3cc; }
.principles-grid, .roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principle { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.principle-number { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; border-radius: 12px; color: var(--forest); background: var(--mint-soft); font-weight: 850; }
.principle h3 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 1.25rem; }
.principle p { margin: 0; color: var(--ink-soft); }
.role-card { display: block; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); text-decoration: none; background: rgba(255,255,255,.06); transition: .2s ease; }
.role-card:hover { transform: translateY(-3px); border-color: rgba(121,217,179,.65); background: rgba(255,255,255,.1); }
.role-card strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.role-card span { color: #bcd1ca; font-size: .88rem; }
.public-footer { padding: 36px 0; color: #bdd0ca; background: #052f29; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }

/* Buttons */
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; text-decoration: none; font-weight: 750; font-size: .88rem; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav-link:focus-visible { outline: 3px solid rgba(35,168,121,.25); outline-offset: 2px; }
.button-primary { color: white; background: var(--forest); box-shadow: 0 8px 20px rgba(11,93,80,.16); }
.button-primary:hover { background: var(--forest-deep); }
.button-secondary { color: var(--forest); border-color: #b9d3ca; background: white; }
.button-secondary:hover { border-color: var(--forest); background: #f6fbf8; }
.button-ghost { color: var(--ink-soft); background: transparent; }
.button-danger { color: white; background: var(--danger); }
.button-sm { min-height: 36px; padding: 7px 12px; font-size: .8rem; border-radius: 9px; }
.button-block { width: 100%; }
.button:disabled { opacity: .6; cursor: wait; transform: none; }

/* Authentication */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: .88fr 1.12fr; background: var(--paper); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 46px clamp(32px, 5vw, 74px); color: white; background: linear-gradient(145deg, #073f37, #0b5d50); overflow: hidden; }
.auth-story::after { content: ""; position: absolute; right: -170px; bottom: -240px; width: 520px; height: 520px; border: 85px solid rgba(255,255,255,.06); border-radius: 50%; }
.auth-story .brand-tagline { color: #bcd9cf; }
.auth-quote { position: relative; z-index: 1; max-width: 500px; margin: 80px 0; }
.auth-quote blockquote { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; }
.auth-quote p { max-width: 450px; color: #c5d9d2; }
.auth-proof { position: relative; z-index: 1; display: flex; gap: 22px; color: #c9ddd6; font-size: .78rem; }
.auth-main { display: grid; place-items: center; padding: 50px 24px; }
.auth-card { width: min(440px, 100%); }
.auth-back { display: inline-flex; margin-bottom: 40px; color: var(--ink-soft); text-decoration: none; font-size: .86rem; font-weight: 650; }
.auth-title { margin: 0 0 9px; font-size: 2.4rem; font-weight: 600; }
.auth-subtitle { margin: 0 0 30px; color: var(--ink-soft); }
.auth-footer { margin-top: 24px; color: var(--ink-soft); text-align: center; font-size: .8rem; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 8px; border: 0; border-radius: 7px; color: var(--forest); background: transparent; cursor: pointer; font-size: .77rem; font-weight: 750; }

/* App shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--sidebar); display: flex; flex-direction: column; padding: 22px 16px; color: white; background: var(--forest-deep); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 22px; }
.sidebar .brand-tagline { color: #a8c7bc; }
.sidebar-close { display: none; width: 38px; height: 38px; border: 0; border-radius: 10px; color: white; background: rgba(255,255,255,.08); cursor: pointer; }
.sidebar-role { margin: 4px 7px 20px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: #c7dbd4; background: rgba(255,255,255,.05); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.nav-group-label { margin: 12px 12px 7px; color: #7ea89a; font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 850; }
.sidebar-nav { min-height: 0; overflow-y: auto; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 3px 0; padding: 10px 12px; border-radius: 11px; color: #c8d9d3; text-decoration: none; font-size: .88rem; font-weight: 650; transition: .16s ease; }
.nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.nav-link.active { color: white; background: rgba(35,168,121,.28); box-shadow: inset 3px 0 #79d9b3; }
.nav-icon { width: 22px; color: #8fc6b3; text-align: center; font-size: .9rem; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.logout-form button { width: 100%; border: 0; cursor: pointer; text-align: left; background: transparent; }
.app-main { min-width: 0; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.topbar-left, .topbar-user, .topbar-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; cursor: pointer; }
.page-heading { min-width: 0; }
.page-heading h1 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.2; }
.page-heading p { margin: 3px 0 0; color: var(--ink-soft); font-size: .76rem; }
.online { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: .72rem; font-weight: 750; }
.online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.identity-divider { width: 1px; height: 30px; background: var(--line); }
.user-copy { text-align: left; line-height: 1.2; }
.user-copy strong { display: block; max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .84rem; }
.user-copy span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .68rem; }
.user-avatar {
    position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: 0 0 auto;
    width: 44px; height: 44px; border: 3px solid white; border-radius: 50%; color: white;
    background: linear-gradient(145deg, #168d70, var(--forest-deep));
    box-shadow: 0 0 0 1px #d3dfda, 0 5px 14px rgba(7, 63, 55, .14);
}
.user-avatar::before { content: ""; position: absolute; z-index: -1; inset: 2px; border: 1px solid rgba(255,255,255,.18); border-radius: inherit; }
.user-avatar-initials { font-size: .7rem; line-height: 1; letter-spacing: .055em; font-weight: 850; }
.user-avatar-status {
    position: absolute; right: -3px; bottom: -2px; display: grid; place-items: center;
    width: 17px; height: 17px; border: 2px solid white; border-radius: 50%;
    color: white; background: var(--mint); box-shadow: 0 1px 4px rgba(7,63,55,.18);
}
.user-avatar-status svg { width: 10px; height: 10px; }
.user-avatar-lg { width: 70px; height: 70px; border-width: 4px; }
.user-avatar-lg .user-avatar-initials { font-size: 1.05rem; }
.user-avatar-lg .user-avatar-status { right: -1px; bottom: 0; width: 21px; height: 21px; }
.user-avatar-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar-role-admin { background: linear-gradient(145deg, #314f65, #183345); }
.avatar-role-provider { background: linear-gradient(145deg, #167f6b, #075044); }
.avatar-role-receiver { background: linear-gradient(145deg, #22a378, #0b6553); }
.avatar-role-elder { background: linear-gradient(145deg, #a97a2d, #725018); }
.avatar-role-reserve_mgr { background: linear-gradient(145deg, #466c5f, #24483d); }
.avatar-role-auditor { background: linear-gradient(145deg, #52657f, #303e55); }
.profile-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.account-control { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 3px 5px 3px 3px; border: 0; border-radius: 999px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; transition: background .15s, box-shadow .15s; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: #f1f6f3; }
.account-trigger:focus-visible { outline: 3px solid rgba(35,168,121,.22); outline-offset: 2px; }
.account-chevron { width: 16px; height: 16px; color: #71827c; transition: transform .16s ease; }
.account-trigger[aria-expanded="true"] .account-chevron { transform: rotate(180deg); }
.account-menu {
    position: absolute; z-index: 80; top: calc(100% + 13px); right: 0; width: min(340px, calc(100vw - 28px));
    border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
    box-shadow: 0 24px 60px rgba(7, 45, 38, .2), 0 3px 10px rgba(7, 45, 38, .08); overflow: hidden;
}

/* Evidence-backed membership and verification */
.registration-hero { padding: 64px 24px 84px; background: linear-gradient(145deg,#f6f5ef 0%,#eef6f1 54%,#f9f7f0 100%); }
.registration-shell { width: min(1420px,100%); margin: 0 auto; display: grid; grid-template-columns: minmax(300px,.72fr) minmax(620px,1.28fr); gap: 56px; align-items: start; }
.registration-intro { position: sticky; top: 112px; padding: 28px 0; }
.registration-intro h1 { margin: 16px 0 22px; max-width: 700px; font-family: var(--display); font-size: clamp(2.5rem,4.2vw,4.8rem); line-height: .98; color: var(--ink); letter-spacing: -.035em; }
.registration-intro > p { color: var(--muted); font-size: 1.06rem; line-height: 1.75; max-width: 620px; }
.registration-trust-list { display: grid; gap: 14px; margin: 34px 0; }
.registration-trust-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px; border: 1px solid rgba(7,63,55,.12); border-radius: 18px; background: rgba(255,255,255,.62); }
.registration-trust-list > div > strong { color: var(--green); font-size: .75rem; letter-spacing: .12em; }
.registration-trust-list span { display: grid; gap: 4px; color: var(--muted); line-height: 1.5; }
.registration-trust-list b { color: var(--ink); font-size: .9rem; }
.invitation-context { padding: 22px; border-radius: 20px; color: #fff; background: var(--green); box-shadow: var(--shadow); }
.invitation-context small,.invitation-context span { display: block; color: rgba(255,255,255,.72); }
.invitation-context strong { display: block; margin: 5px 0 10px; font-family: var(--display); font-size: 1.65rem; }
.invitation-context p { line-height: 1.55; }
.registration-form-card { overflow: hidden; border: 1px solid rgba(7,63,55,.12); border-radius: 28px; background: #fff; box-shadow: 0 28px 80px rgba(10,53,44,.12); }
.registration-form-card > .panel-head { padding: 28px 30px; margin: 0; background: #fbfaf6; border-bottom: 1px solid var(--line); }
.registration-form-card > form { padding: 0 30px 30px; }
.form-section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.form-section-head { display: grid; grid-template-columns: 42px 1fr; gap: 14px; margin-bottom: 24px; }
.form-section-head > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #e7f3ed; color: var(--green); font-size: .76rem; font-weight: 850; }
.form-section-head h3 { margin: 0 0 4px; color: var(--ink); font-size: 1.08rem; }
.form-section-head p { margin: 0; color: var(--muted); }
.field-span-2 { grid-column: 1/-1; }
.locked-role { display: grid; grid-template-columns: 1fr auto; padding: 18px 20px; margin-bottom: 22px; border-radius: 16px; background: #edf6f1; }
.locked-role small { grid-column: 1; color: var(--muted); }
.locked-role strong { grid-column: 1; color: var(--ink); font-size: 1.1rem; }
.locked-role span { grid-column: 2; grid-row: 1/3; align-self: center; color: var(--green); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.upload-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.upload-field { padding: 20px; border: 1px dashed #a7c4b6; border-radius: 18px; background: #f7fbf8; }
.upload-field input[type=file] { padding: 11px; background: #fff; }
.declaration-list { display: grid; gap: 12px; margin-top: 22px; }
.declaration-list .check-row { align-items: start; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; }
.declaration-list b { color: var(--danger); }
.registration-submit { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 26px; }
.registration-submit p { max-width: 500px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.registration-status-page .narrow { max-width: 1040px; }
.status-hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.status-hero h1 { margin: 8px 0; font-family: var(--display); font-size: clamp(2.5rem,5vw,4.6rem); text-transform: capitalize; }
.status-hero p { max-width: 720px; color: var(--muted); }
.review-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-bottom: 22px; }
.review-progress > div { position: relative; display: grid; justify-items: center; gap: 8px; color: #9ba7a2; text-align: center; }
.review-progress > div::after { content:""; position:absolute; z-index:0; top:18px; left:50%; width:100%; height:2px; background:#e2e7e4; }
.review-progress > div:last-child::after { display:none; }
.review-progress span { z-index:1; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#e2e7e4; font-weight:800; }
.review-progress .active { color:var(--green); }
.review-progress .active span,.review-progress .active::after { background:#bfe4d2; }
.decision-note { margin-bottom:22px; border-left:4px solid var(--gold); }
.decision-note.approved { border-left-color:var(--success); }
.decision-note.rejected { border-left-color:var(--danger); }
.document-status-list,.admin-document-list,.invitation-list { display:grid; gap:14px; }
.document-status-list article { display:grid; grid-template-columns:46px 1fr auto auto; gap:15px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }
.document-icon { display:grid; place-items:center; width:46px; height:46px; border-radius:14px; color:var(--green); background:#e8f4ee; font-size:.72rem; font-weight:900; letter-spacing:.08em; }
.document-status-list article > div:nth-child(2) { display:grid; gap:3px; }
.document-status-list article span,.document-status-list article p { color:var(--muted); }
.verification-stats { grid-template-columns:repeat(5,minmax(0,1fr)); }
.responsive-table { overflow-x:auto; }
.responsive-table table { width:100%; border-collapse:collapse; }
.responsive-table th,.responsive-table td { padding:15px 13px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }
.responsive-table th { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.09em; }
.responsive-table td small { display:block; margin-top:4px; color:var(--muted); }
.application-review-head { margin-bottom:24px; }
.application-identity { display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center; margin-top:18px; padding:24px; border-radius:24px; color:#fff; background:linear-gradient(135deg,var(--green),#176d5e); }
.application-identity h2 { margin:4px 0; font-family:var(--display); font-size:2.1rem; }
.application-identity p { color:rgba(255,255,255,.72); }
.application-identity .eyebrow { color:#c9ead9; }
.review-layout { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:24px; align-items:start; }
.review-layout main,.review-layout aside { display:grid; gap:24px; }
.review-layout aside { position:sticky; top:100px; }
.identity-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.identity-facts > div { display:grid; gap:5px; padding:15px; border-radius:14px; background:#f6f7f3; }
.identity-facts span,.statement-block small { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; }
.statement-block { padding:18px 0; border-top:1px solid var(--line); }
.statement-block p { margin:7px 0 0; line-height:1.65; }
.admin-document-list article { display:grid; grid-template-columns:46px minmax(0,1fr) 260px; gap:16px; padding:20px 0; border-top:1px solid var(--line); }
.document-detail > div { display:flex; align-items:center; gap:10px; }
.document-detail h3 { margin:0; }
.document-detail p { margin:6px 0; color:var(--muted); }
.document-detail small { font-family:monospace; color:#68736e; }
.document-review-note { margin-top:10px; padding:10px; border-radius:10px; background:#fff2ee; color:#7d3028; }
.document-actions { display:grid; gap:8px; }
.document-actions form { display:grid; gap:8px; }
.document-actions textarea { min-height:74px; }
.decision-panel h2 { margin:8px 0; font-family:var(--display); font-size:2rem; }
.decision-panel > p { color:var(--muted); line-height:1.55; }
.review-audit { display:grid; gap:0; }
.review-audit > div { display:flex; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid var(--line); }
.review-audit span { color:var(--muted); }
.invitation-secret { border:2px solid var(--gold); margin-bottom:22px; }
.invitation-secret > div { display:flex; gap:10px; }
.invitation-secret input { flex:1; }
.invitation-layout { align-items:start; }
.invitation-list article { display:flex; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid var(--line); }
.invitation-list h3 { margin:7px 0 3px; }
.invitation-list p { margin:0 0 4px; color:var(--muted); }

@media (max-width: 1100px) {
    .registration-shell { grid-template-columns:1fr; max-width:860px; }
    .registration-intro { position:static; }
    .review-layout { grid-template-columns:1fr; }
    .review-layout aside { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
    .verification-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .identity-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .registration-hero { padding:32px 14px 56px; }
    .registration-intro { padding:12px 4px; }
    .registration-intro h1 { font-size:2.75rem; }
    .registration-form-card { border-radius:22px; }
    .registration-form-card > .panel-head,.registration-form-card > form { padding-left:18px; padding-right:18px; }
    .upload-grid,.review-layout aside,.verification-stats { grid-template-columns:1fr; }
    .field-span-2 { grid-column:auto; }
    .registration-submit,.status-hero { align-items:stretch; flex-direction:column; }
    .registration-submit .button { width:100%; }
    .review-progress { grid-template-columns:repeat(2,1fr); row-gap:22px; }
    .review-progress > div:nth-child(2)::after { display:none; }
    .document-status-list article { grid-template-columns:42px 1fr; }
    .document-status-list article > .badge,.document-status-list article > .button { grid-column:2; justify-self:start; }
    .application-identity { grid-template-columns:auto 1fr; }
    .application-identity > .badge { grid-column:1/-1; justify-self:start; }
    .identity-facts { grid-template-columns:1fr; }
    .admin-document-list article { grid-template-columns:42px 1fr; }
    .document-actions { grid-column:1/-1; }
    .invitation-secret > div { flex-direction:column; }
}
.account-menu::before { content: ""; position: absolute; top: -7px; right: 24px; width: 13px; height: 13px; border: 1px solid var(--line); border-right: 0; border-bottom: 0; background: var(--paper); transform: rotate(45deg); }
.account-menu-head { display: flex; align-items: center; gap: 14px; padding: 20px 20px 16px; }
.account-menu .user-avatar-lg { width: 56px; height: 56px; border-width: 3px; }
.account-menu .user-avatar-lg .user-avatar-initials { font-size: .86rem; }
.account-menu-copy { min-width: 0; line-height: 1.25; }
.account-menu-copy strong, .account-menu-copy span, .account-menu-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.account-menu-copy strong { font-size: .92rem; }
.account-menu-copy span { margin-top: 3px; color: var(--ink-soft); font-size: .72rem; }
.account-menu-copy small { margin-top: 5px; color: var(--forest); font-size: .66rem; font-weight: 750; }
.account-menu-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7faf8; }
.account-menu-status .online { font-size: .67rem; }
.account-menu-links { padding: 8px; }
.account-menu-links a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; text-decoration: none; transition: background .14s; }
.account-menu-links a:hover, .account-menu-links a:focus-visible { background: var(--mint-soft); outline: none; }
.account-menu-links a > span:last-child { min-width: 0; }
.account-menu-links strong, .account-menu-links small { display: block; }
.account-menu-links strong { font-size: .78rem; }
.account-menu-links small { margin-top: 2px; color: var(--ink-soft); font-size: .66rem; }
.account-menu-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; color: var(--forest); background: #edf6f1; font-size: .65rem; font-weight: 850; }
.account-menu-logout { padding: 9px; border-top: 1px solid var(--line); background: #fbfcfb; }
.account-menu-logout button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 13px; border: 0; border-radius: 10px; color: var(--danger); background: transparent; cursor: pointer; font-size: .78rem; font-weight: 800; }
.account-menu-logout button:hover, .account-menu-logout button:focus-visible { background: var(--danger-soft); outline: none; }
.notification-trigger { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); background: white; text-decoration: none; }
.notification-trigger:hover { background: var(--mint-soft); }
.notification-trigger svg { width: 20px; height: 20px; }
.notification-trigger > span { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 999px; color: white; background: var(--danger); font-size: .56rem; font-weight: 900; }
.page-content { width: min(1500px, 100%); margin: auto; padding: 30px; }
.sidebar-overlay { display: none; }

/* Content system */
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-intro h2 { margin: 0 0 5px; font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2rem); }
.page-intro p { max-width: 680px; margin: 0; color: var(--ink-soft); }
.stats-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; margin-bottom: 22px !important; }
.stat-card { position: relative; min-width: 0; padding: 21px !important; border: 1px solid var(--line); border-radius: var(--radius) !important; background: var(--paper) !important; box-shadow: var(--shadow-sm) !important; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -24px; bottom: -35px; width: 88px; height: 88px; border: 18px solid var(--mint-soft); border-radius: 50%; opacity: .6; }
.stat-label, .stat-card > div:first-child { position: relative; z-index: 1; color: var(--ink-soft) !important; font-size: .68rem !important; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.stat-value, .stat-card > div:nth-child(2) { position: relative; z-index: 1; margin-top: 9px; color: var(--ink) !important; font-size: clamp(1.55rem, 3vw, 2rem) !important; line-height: 1.1; font-weight: 800 !important; letter-spacing: -.035em; }
.stat-sub { position: relative; z-index: 1; margin-top: 7px; color: var(--ink-soft); font-size: .78rem; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.panel, .content-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.panel-title { margin: 0; font-family: Georgia, serif; font-size: 1.13rem; }
.panel-subtitle { margin: 4px 0 0; color: var(--ink-soft); font-size: .82rem; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-actions { display: flex !important; flex-wrap: wrap; gap: 10px !important; margin-top: 16px !important; }
.quick-actions a { margin: 0 !important; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: .68rem; text-transform: capitalize; letter-spacing: .02em; font-weight: 800; }
.badge.success, .badge.active, .badge.settled, .badge.verified { color: #116443; background: var(--mint-soft); }
.badge.warning, .badge.pending, .badge.hardship { color: var(--warning); background: var(--warning-soft); }
.badge.info, .badge.open { color: var(--info); background: var(--info-soft); }
.badge.danger, .badge.disputed, .badge.rejected { color: var(--danger); background: var(--danger-soft); }
.muted { color: var(--ink-soft); }
.amount { font-variant-numeric: tabular-nums; font-weight: 780; }
.divider { height: 1px; margin: 20px 0; background: var(--line); }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-line:last-child { border-bottom: 0; }
.progress { height: 8px; border-radius: 999px; background: #e8eeea; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest), var(--mint)); }
.metric-pair { display: flex; justify-content: space-between; gap: 14px; font-size: .84rem; }
.metric-pair + .metric-pair { margin-top: 10px; }
.empty-state { padding: 42px 24px; border: 1px dashed #cbd9d2; border-radius: var(--radius); text-align: center; background: #fbfcfa; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 15px; color: var(--forest); background: var(--mint-soft); font-size: 1.25rem; font-weight: 850; }
.empty-state h3 { margin: 0 0 7px; font-family: Georgia, serif; }
.empty-state p { max-width: 460px; margin: 0 auto 18px; color: var(--ink-soft); }
.formula-card { padding: 20px; border-radius: var(--radius); color: white; background: linear-gradient(135deg, var(--forest-deep), var(--forest)); }
.formula { margin: 8px 0; font-family: Georgia, serif; font-size: 1.45rem; }
.formula-card small { color: #c5dbd3; }

/* Tables and mobile records */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th { padding: 12px 14px; color: var(--ink-soft); background: #f6f8f5; text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; }
.data-table td { padding: 14px; border-top: 1px solid var(--line); vertical-align: middle; font-size: .84rem; }
.data-table tbody tr:hover { background: #fbfdfb; }
.data-table a { color: var(--forest); font-weight: 750; }
.record-list { display: grid; gap: 11px; }
.record-card { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 18px; margin-top: 0 !important; padding: 16px !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: #fff !important; }
.record-card-main { min-width: 0; }
.record-card-main strong { display: block; }
.record-card-main p { margin: 4px 0 0; color: var(--ink-soft); font-size: .8rem; }
.record-card-meta { display: flex; align-items: center; gap: 16px; white-space: nowrap; font-size: .82rem; }

/* Forms and feedback */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--ink); font-size: .8rem; font-weight: 750; }
.required { color: var(--danger); }
.optional { color: var(--ink-soft); font-size: .68rem; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #cbd7d1; border-radius: 10px;
    color: var(--ink); background: white; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9eb6ad; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(35,168,121,.11); }
.field-help { margin: 6px 0 0; color: var(--ink-soft); font-size: .72rem; }
.field-error { min-height: 0; margin: 6px 0 0; color: var(--danger); font-size: .72rem; font-weight: 650; }
.field-invalid input, .field-invalid select, .field-invalid textarea, [aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.server-error { color: var(--danger); }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--forest); }
.check-row label { color: var(--ink-soft); font-size: .78rem; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.upload { display: block; padding: 20px; border: 1px dashed #b8cac2; border-radius: 12px; text-align: center; background: #fafcf9; cursor: pointer; }
.upload:hover { border-color: var(--mint); background: #f4fbf7; }
.alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-size: .82rem; }
.alert-success { color: #155c42; border-color: #b8ddcc; background: var(--mint-soft); }
.alert-danger { color: #863737; border-color: #efc5c1; background: var(--danger-soft); }
.alert-warning { color: #795217; border-color: #eed69f; background: var(--warning-soft); }
.alert-info { color: #285f82; border-color: #bdd9e9; background: var(--info-soft); }
.alert-body { flex: 1; }
.alert strong { display: block; margin-bottom: 2px; }
.alert-dismiss { border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 1.05rem; }
.notice { padding: 14px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; color: var(--ink-soft); background: var(--gold-soft); font-size: .8rem; }

/* Account */
.account-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; padding: 24px 26px; border: 1px solid #cfe0d8; border-radius: 20px; background: linear-gradient(118deg, #fffefb 0%, #f2faf6 68%, #e3f4ec 100%); box-shadow: var(--shadow-sm); }
.account-hero-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.account-hero-identity h2 { margin: 5px 0 2px; font-family: Georgia, serif; font-size: 1.55rem; letter-spacing: -.025em; }
.account-hero-identity p { margin: 0; color: var(--ink-soft); font-size: .78rem; }
.account-hero-badges { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.account-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); align-items: start; gap: 20px; }
.account-nav-card { position: sticky; top: 98px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.account-nav-label { padding: 9px 10px 11px; color: var(--ink-soft); font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.account-nav-card a { display: flex; align-items: center; gap: 11px; padding: 11px 10px; border-radius: 11px; color: var(--ink-soft); text-decoration: none; }
.account-nav-card a:hover { color: var(--forest); background: #f3f8f5; }
.account-nav-card a.active { color: var(--forest); background: var(--mint-soft); }
.account-nav-card a > span { display: grid; place-items: center; flex: 0 0 31px; width: 31px; height: 31px; border-radius: 9px; color: var(--forest); background: #edf5f1; font-size: .64rem; font-weight: 850; }
.account-nav-card a.active > span { color: white; background: var(--forest); }
.account-nav-card strong, .account-nav-card small { display: block; }
.account-nav-card strong { font-size: .76rem; }
.account-nav-card small { margin-top: 2px; color: var(--ink-soft); font-size: .64rem; }
.account-form-note { margin-top: 18px; padding: 14px 15px; border-radius: 11px; color: var(--ink-soft); background: #f3f8f5; font-size: .76rem; }
.account-form-note strong { display: block; margin-bottom: 2px; color: var(--forest); }
.security-shield { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #b9d8cb; border-radius: 19px; color: var(--forest); background: white; box-shadow: var(--shadow-sm); }
.security-shield svg { width: 34px; height: 34px; }
.account-layout > div > .panel + .panel { margin-top: 18px; }
.security-session-card { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbf9; }
.security-session-icon { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 50%; color: var(--forest); background: var(--mint-soft); font-weight: 900; }
.security-session-card strong { display: block; font-size: .8rem; }
.security-session-card p { margin: 2px 0 0; color: var(--ink-soft); font-size: .7rem; }

/* Community ideas */
.public-ideas { background: #f4f8f5; }
.public-ideas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.public-ideas-head .section-head { margin-bottom: 32px; }
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.idea-showcase { position: relative; }
.idea-showcase-viewport { overflow: hidden; }
.idea-showcase-track { display: flex; transition: transform .55s cubic-bezier(.22,.8,.22,1); }
.idea-showcase-page { flex: 0 0 100%; min-width: 0; padding: 3px; }
.idea-showcase-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; }
.idea-showcase-controls > button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #b9ccc3; border-radius: 50%; color: var(--forest); background: #fff; cursor: pointer; font-size: 1.1rem; }
.idea-showcase-controls > button:hover { color: #fff; background: var(--forest); }
.idea-showcase-controls > span { min-width: 54px; color: var(--ink-soft); font-size: .72rem; text-align: center; }
.idea-showcase-dots { display: flex; gap: 6px; }
.idea-showcase-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #b9c9c1; cursor: pointer; transition: width .2s, background .2s; }
.idea-showcase-dots button.active { width: 24px; background: var(--forest); }
.public-catalogue { background: linear-gradient(180deg,#f7f6f1,#eef5f1); }
.ideas-catalogue-intro .eyebrow { display: block; margin-bottom: 8px; }
.category-directory { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
.category-directory a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; text-decoration: none; }
.category-directory a:hover,.category-directory a.active { color: var(--forest); border-color: #a7cbb9; background: #eff8f3; }
.category-directory strong { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; color: var(--forest); background: #e5f3ec; }
.category-directory span { overflow: hidden; font-size: .76rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.grouped-ideas { display: grid; gap: 42px; }
.idea-category-group { scroll-margin-top: 110px; }
.idea-category-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.idea-category-heading h2 { margin: 5px 0 0; font-family: Georgia,serif; font-size: 2rem; }
.idea-category-heading > span { color: var(--ink-soft); font-size: .75rem; }
.idea-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.idea-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(7,63,55,.11); }
.idea-card-cover { position: relative; height: 118px; display: flex; align-items: flex-start; justify-content: space-between; padding: 17px; color: white; overflow: hidden; }
.idea-card-cover::after { content: ""; position: absolute; width: 140px; height: 140px; right: -44px; bottom: -72px; border: 28px solid rgba(255,255,255,.1); border-radius: 50%; }
.idea-cover-1 { background: linear-gradient(135deg, #0a6757, #26a77c); }
.idea-cover-2 { background: linear-gradient(135deg, #385f54, #779e78); }
.idea-cover-3 { background: linear-gradient(135deg, #805d26, #d09a42); }
.idea-cover-4 { background: linear-gradient(135deg, #394e6a, #6584a7); }
.idea-card-cover span { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .65rem; font-weight: 800; }
.idea-card-cover strong { font-family: Georgia, serif; font-size: 2rem; opacity: .8; }
.idea-card-body { padding: 19px; }
.idea-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ink-soft); font-size: .68rem; }
.idea-card-meta span + span:not(.badge)::before { content: "·"; margin-right: 8px; color: #a8b5b0; }
.idea-card h3 { margin: 12px 0 7px; font-family: Georgia, serif; font-size: 1.18rem; line-height: 1.2; }
.idea-card p { min-height: 63px; margin: 0 0 17px; color: var(--ink-soft); font-size: .77rem; }
.idea-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e8eeea; }
.idea-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest), var(--mint)); }
.idea-card-funding { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 14px; }
.idea-card-funding strong { font-size: .9rem; }
.idea-card-funding span { color: var(--ink-soft); font-size: .67rem; }
.idea-card-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .63rem; }
.idea-card-stats span:first-child { color: #9a6b1b; font-weight: 800; }
.idea-filter { display: grid; grid-template-columns: minmax(0, 1fr) 230px auto; align-items: end; gap: 14px; margin-bottom: 22px; padding: 16px; }
.idea-guidance { position: sticky; top: 98px; }
.idea-detail-hero, .project-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 22px; padding: 28px; border: 1px solid #cfe0d8; border-radius: 22px; background: linear-gradient(120deg, #fffefb, #eff9f4); box-shadow: var(--shadow-sm); }
.idea-detail-main { max-width: 880px; }
.idea-detail-main h2, .project-hero h2 { margin: 12px 0 8px; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.07; }
.idea-detail-main > p, .project-hero > div > p { margin: 0; color: var(--ink-soft); }
.idea-owner { display: flex; align-items: center; gap: 11px; margin-top: 20px; }
.idea-owner strong, .idea-owner span { display: block; }
.idea-owner strong { font-size: .8rem; }
.idea-owner span { color: var(--ink-soft); font-size: .67rem; }
.idea-detail-actions, .project-hero-actions { display: flex; align-items: stretch; flex-direction: column; gap: 8px; min-width: 190px; }
.idea-detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .7fr); align-items: start; gap: 20px; }
.idea-detail-layout main > .panel + .panel, .idea-detail-layout aside > .panel + .panel, .monitor-layout main > .panel + .panel, .monitor-layout aside > .panel + .panel { margin-top: 20px; }
.idea-proposal article { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.idea-proposal article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--forest); background: var(--mint-soft); font-size: .65rem; font-weight: 900; }
.idea-proposal h3 { margin: 2px 0 7px; font-family: Georgia, serif; font-size: 1.02rem; }
.idea-proposal article p { margin: 0; color: var(--ink-soft); white-space: pre-line; }
.idea-contributions, .offer-list { display: grid; gap: 11px; margin-top: 20px; }
.community-entry { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fcfdfc; }
.community-entry.improvement { border-left: 3px solid var(--mint); background: #f7fcf9; }
.community-entry-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.community-entry-head strong { font-size: .76rem; }
.community-entry-head time, .community-entry-head > span:not(.badge) { color: var(--ink-soft); font-size: .64rem; }
.community-entry p { margin: 7px 0 0; color: var(--ink-soft); white-space: pre-line; font-size: .76rem; }
.empty-state.compact { padding: 28px 16px; }
.offer-card { display: grid; grid-template-columns: minmax(160px,.45fr) 1fr auto; align-items: center; gap: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfb; }
.offer-card h3 { margin: 8px 0 2px; font-size: 1.25rem; }
.offer-card p { margin: 0; color: var(--ink-soft); font-size: .7rem; }
.offer-terms strong { display: block; margin-bottom: 4px; font-size: .7rem; }
.rating-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 18px 0; }
.rating-picker label { text-align: center; cursor: pointer; }
.rating-picker input { position: absolute; opacity: 0; }
.rating-picker span { display: block; padding: 8px 3px; border: 1px solid var(--line); border-radius: 9px; color: #b1aaa0; font-size: 1.05rem; }
.rating-picker input:checked + span, .rating-picker label:hover span { color: #bd7d13; border-color: #e3c17d; background: var(--gold-soft); }
.rating-picker small { color: var(--ink-soft); font-size: .6rem; }
.sponsor-list { display: grid; gap: 8px; margin-top: 16px; }
.sponsor-list > div { display: flex; align-items: center; gap: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.sponsor-list .user-avatar { width: 34px; height: 34px; }
.sponsor-list strong, .sponsor-list small { display: block; }
.sponsor-list strong { font-size: .7rem; }.sponsor-list small { color: var(--ink-soft); font-size: .61rem; }
.share-handles { grid-template-columns: 1fr 1fr; margin: 12px 0; }
.shared-idea-hero { padding: 78px 0; color: white; background: linear-gradient(125deg, var(--forest-deep), #0e7461); }
.shared-idea-hero h1 { max-width: 900px; margin: 18px 0 12px; font-family: Georgia, serif; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; }
.shared-idea-hero p { max-width: 760px; color: #cfe5dd; font-size: 1.05rem; }
.shared-idea-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0; color: #b9d8cd; font-size: .76rem; }
.shared-idea-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); align-items: start; gap: 20px; }

/* Messaging and notifications */
.message-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .55fr); align-items: start; gap: 20px; }
.conversation-list { display: grid; gap: 8px; }
.conversation-list a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.conversation-list a:hover { border-color: #b6d3c7; background: #f6fbf8; }
.conversation-icon, .notification-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--forest); background: var(--mint-soft); font-size: .72rem; font-weight: 900; }
.conversation-list strong, .conversation-list small { display: block; }
.conversation-list strong { font-size: .8rem; }
.conversation-list small { margin-top: 3px; color: var(--ink-soft); font-size: .66rem; }
.chat-shell { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #f8fbf9; }
.chat-head a { color: var(--forest); text-decoration: none; font-size: .68rem; font-weight: 800; }
.chat-head h2 { margin: 5px 0 1px; font-family: Georgia, serif; font-size: 1.18rem; }
.chat-head p { margin: 0; color: var(--ink-soft); font-size: .68rem; }
.chat-head-actions { display: flex; align-items: center; gap: 8px; }
.chat-messages { min-height: 420px; max-height: 64vh; overflow-y: auto; padding: 22px; background: #f6f8f6; }
.chat-message { display: grid; grid-template-columns: 40px minmax(0, 720px); gap: 10px; margin-bottom: 14px; }
.chat-message.mine { grid-template-columns: minmax(0, 720px) 40px; justify-content: end; }
.chat-message.mine .user-avatar { grid-column: 2; }.chat-message.mine .chat-bubble { grid-row: 1; grid-column: 1; background: #e2f4eb; }
.chat-message .user-avatar { width: 38px; height: 38px; }
.chat-bubble { padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; background: white; box-shadow: 0 2px 8px rgba(14,40,32,.04); }
.chat-message.mine .chat-bubble { border-radius: 14px 4px 14px 14px; }
.chat-bubble > div { display: flex; gap: 8px; }.chat-bubble strong { font-size: .7rem; }.chat-bubble span { color: var(--ink-soft); font-size: .6rem; }
.chat-bubble p { margin: 6px 0 0; white-space: pre-line; font-size: .78rem; }
.chat-bubble blockquote { margin: 7px 0; padding: 7px 9px; border-left: 2px solid var(--mint); color: var(--ink-soft); background: #f5f8f6; font-size: .65rem; }
.chat-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 15px; border-top: 1px solid var(--line); }
.chat-composer textarea { min-height: 58px; max-height: 150px; }
.chat-pagination { padding: 0 18px; }
.notification-list { display: grid; }
.notification-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 17px 8px; border-top: 1px solid var(--line); }
.notification-item.unread { margin-inline: -8px; padding-inline: 16px; border-radius: 12px; background: #f1faf5; }
.notification-meta { display: flex; align-items: center; gap: 8px; }.notification-meta time { color: var(--ink-soft); font-size: .64rem; }
.notification-item h3 { margin: 6px 0 2px; font-size: .84rem; }.notification-item p { margin: 0; color: var(--ink-soft); font-size: .74rem; }
.notification-link { margin-top: 8px; padding: 0; border: 0; color: var(--forest); background: transparent; cursor: pointer; font-size: .68rem; font-weight: 800; }

/* Project monitoring */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow-sm); }
.project-card-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: .66rem; }
.project-card h3 { margin: 14px 0 7px; font-family: Georgia, serif; font-size: 1.1rem; }.project-card > p { min-height: 58px; margin: 0 0 16px; color: var(--ink-soft); font-size: .72rem; }
.project-progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--ink-soft); font-size: .68rem; }
.project-card-people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-card-people span, .project-card-people strong { display: block; }.project-card-people span { color: var(--ink-soft); font-size: .6rem; }.project-card-people strong { margin-top: 3px; color: var(--ink); font-size: .68rem; }
.forecast-alert { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; margin-bottom: 20px; padding: 17px; border: 1px solid #b9ddcc; border-radius: 15px; color: #155c42; background: var(--mint-soft); }
.forecast-alert.watch { color: #795217; border-color: #eed69f; background: var(--warning-soft); }.forecast-alert.at_risk { color: #863737; border-color: #efc5c1; background: var(--danger-soft); }
.forecast-alert-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid currentColor; border-radius: 50%; font-weight: 900; }
.forecast-alert strong { display: block; }.forecast-alert p { margin: 3px 0 0; font-size: .74rem; }
.monitor-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: start; gap: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbf9; }.metric-grid span, .metric-grid strong { display: block; }.metric-grid span { color: var(--ink-soft); font-size: .63rem; }.metric-grid strong { margin-top: 5px; font-size: .92rem; }
.target-track { display: grid; gap: 11px; margin-top: 20px; }.target-track > div { display: grid; grid-template-columns: 170px minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: .68rem; }.target-track strong { text-align: right; }
.project-timeline { position: relative; display: grid; gap: 14px; }.project-timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 8px; width: 2px; background: var(--line); }
.project-timeline > article { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 13px; }.timeline-marker { z-index: 1; width: 18px; height: 18px; margin-top: 15px; border: 4px solid white; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 1px var(--line); }.timeline-marker.amber { background: #d49a3a; }.timeline-marker.red { background: var(--danger); }
.timeline-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfb; }.timeline-card p { margin: 8px 0; color: var(--ink-soft); font-size: .73rem; }.timeline-card small { color: var(--ink-soft); font-size: .62rem; }
.stakeholder-card > div { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }.stakeholder-card small, .stakeholder-card strong { display: block; }.stakeholder-card small { color: var(--ink-soft); font-size: .62rem; }.stakeholder-card strong { font-size: .74rem; }

/* Payments */
.payment-tabs { display: inline-flex; gap: 5px; margin-bottom: 14px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #f3f6f3; }
.payment-tab { min-height: 39px; padding: 8px 15px; border: 0; border-radius: 9px; color: var(--ink-soft); background: transparent; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.payment-tab.active { color: white; background: var(--forest); box-shadow: var(--shadow-sm); }
.payment-pane[hidden] { display: none; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.method-choice { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.method-choice:has(input:checked) { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(35,168,121,.1); background: #f8fdfb; }
.method-choice input { position: absolute; opacity: 0; pointer-events: none; }
.method-choice strong, .method-choice small { display: block; }
.method-choice strong { font-size: .84rem; }
.method-choice small { margin-top: 2px; color: var(--ink-soft); font-size: .67rem; }
.method-mark { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 10px; color: var(--forest); background: var(--mint-soft); font-size: .72rem; font-weight: 900; }
.payment-fields { margin-bottom: 18px; }
.payment-amount { margin: 24px 0; font-size: clamp(2rem, 5vw, 3rem); font-weight: 850; letter-spacing: -.05em; }
.payment-amount small { color: var(--ink-soft); font-size: .7rem; letter-spacing: .04em; }
.sandbox-card { max-width: 650px; margin: 20px auto; text-align: center; }
.sandbox-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 20px auto; border-radius: 22px; color: white; background: var(--forest); font-family: Georgia, serif; font-size: 2rem; }
.sandbox-actions { display: flex; justify-content: center; gap: 10px; }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .hero-inner { gap: 34px; }
    .principles-grid, .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .idea-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .idea-detail-layout, .monitor-layout { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); }
}
@media (max-width: 880px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.22); }
    .sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-close, .menu-toggle { display: grid; place-items: center; }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(3, 24, 20, .5); backdrop-filter: blur(2px); }
    .sidebar-open .sidebar-overlay { display: block; }
    .app-main { margin-left: 0; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .hero-inner { min-height: auto; grid-template-columns: 1fr; padding: 64px 0; }
    .energy-card { max-width: 620px; }
    .public-links { display: none; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .idea-detail-layout, .monitor-layout, .message-layout, .shared-idea-grid { grid-template-columns: 1fr; }
    .idea-guidance { position: static; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav-card { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .account-nav-label { grid-column: 1 / -1; }
    .account-nav-card a { align-items: flex-start; }
    .account-nav-card a small { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 14px; }
    .public-nav, .hero-inner, .section-inner, .footer-inner { width: min(100% - 28px, 1180px); }
    .public-nav { height: 68px; }
    .public-actions .button-secondary { display: none; }
    .brand-tagline { display: none; }
    .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
    .hero-actions .button { width: 100%; }
    .section { padding: 68px 0; }
    .principles-grid, .roles-grid, .grid-2, .grid-3, .form-grid, .method-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .topbar { min-height: 68px; padding: 11px 14px; }
    .page-heading p, .online, .user-copy, .identity-divider { display: none; }
    .page-heading h1 { font-size: 1.1rem; }
    .topbar-user, .topbar-identity { gap: 0; }
    .topbar .user-avatar { width: 40px; height: 40px; }
    .account-trigger { padding: 2px; }
    .account-chevron { display: none; }
    .account-menu { position: fixed; top: 66px; right: 10px; }
    .account-menu::before { right: 19px; }
    .account-hero { align-items: flex-start; flex-direction: column; padding: 20px; }
    .account-hero-badges { justify-content: flex-start; }
    .account-layout { gap: 14px; }
    .account-nav-card { grid-template-columns: 1fr 1fr; }
    .account-nav-card a { align-items: center; }
    .account-nav-card a small { display: none; }
    .page-content { padding: 18px 14px 30px; }
    .page-intro { align-items: stretch; flex-direction: column; }
    .page-intro .button { width: 100%; }
    .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .stat-card { padding: 16px !important; }
    .panel, .content-card { padding: 17px; }
    .panel-head { align-items: flex-start; flex-direction: column; }
    .panel-actions, .panel-actions .button { width: 100%; }
    .record-card { align-items: flex-start !important; flex-direction: column; }
    .record-card-meta { width: 100%; justify-content: space-between; white-space: normal; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
    .field-full { grid-column: auto; }
    .payment-tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
    .payment-tab { padding-inline: 7px; }
    .sandbox-actions { align-items: stretch; flex-direction: column; }
    .public-ideas-head, .idea-detail-hero, .project-hero, .chat-head { align-items: stretch; flex-direction: column; }
    .idea-grid, .project-grid { grid-template-columns: 1fr; }
    .idea-showcase-page .idea-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
    .idea-showcase-page .idea-card { flex: 0 0 86%; scroll-snap-align: start; }
    .category-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .idea-category-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .idea-filter { grid-template-columns: 1fr; }
    .idea-detail-actions, .project-hero-actions { min-width: 0; }
    .offer-card { grid-template-columns: 1fr; }
    .share-handles { grid-template-columns: 1fr; }
    .shared-idea-hero { padding: 56px 0; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .target-track > div { grid-template-columns: 1fr 45px; }.target-track .progress { grid-column: 1 / -1; grid-row: 2; }
    .chat-messages { padding: 14px 10px; }
    .chat-message { grid-template-columns: 34px minmax(0, 1fr); }.chat-message.mine { grid-template-columns: minmax(0, 1fr) 34px; }
    .chat-composer { grid-template-columns: 1fr; }.chat-composer .button { width: 100%; }
    .notification-trigger { width: 38px; height: 38px; flex-basis: 38px; margin-right: 8px; }
}
@media (max-width: 390px) {
    .stats-grid { grid-template-columns: 1fr !important; }
    .flow { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
