:root {
  --ink: #17241e;
  --muted: #607068;
  --paper: #f5f2ea;
  --card: #fffdf8;
  --green: #356b50;
  --green-dark: #244d3a;
  --mint: #dfece3;
  --gold: #c6a866;
  --line: #d7ddd7;
  --shadow: 0 24px 70px rgba(28, 45, 37, .12);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 8%, rgba(198, 168, 102, .18), transparent 30rem), var(--paper); }
button, input, select, textarea { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 5vw, 5rem); border-bottom: 1px solid rgba(53, 107, 80, .12); background: rgba(245, 242, 234, .92); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .65rem; color: #fff; background: var(--green-dark); font-size: .8rem; font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.language-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
select, input, textarea { border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); background: #fff; }
select { padding: .62rem .8rem; }
main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.login-view { display: grid; min-height: calc(100vh - 8rem); grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .75fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: 3rem 0; }
.login-visual { position: relative; min-height: min(66vh, 660px); overflow: hidden; border-radius: 1.7rem; background: var(--green-dark); box-shadow: var(--shadow); }
.login-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(13, 34, 25, .84), rgba(13, 34, 25, .02) 68%); }
.login-copy { position: absolute; z-index: 1; right: clamp(1.4rem, 4vw, 3rem); bottom: clamp(1.4rem, 4vw, 3rem); left: clamp(1.4rem, 4vw, 3rem); color: #fff; }
.eyebrow, .card-kicker { margin: 0 0 .75rem; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.login-copy .eyebrow { color: #d9efdf; }
.login-copy h1, .portal-hero h1 { max-width: 16ch; margin: .25rem 0 1.4rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.7rem); font-weight: 500; letter-spacing: -.055em; line-height: .92; }
.login-copy > p:not(.eyebrow) { max-width: 40rem; margin-bottom: 0; color: #f0f4f0; font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.55; }
.login-card { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid rgba(53, 107, 80, .14); border-radius: 1.5rem; background: var(--card); box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 .5rem; font-size: 1.65rem; }
.login-card p { color: var(--muted); line-height: 1.55; }
.login-card form { display: grid; gap: .85rem; }
.login-card label, #feedback-form label { font-size: .88rem; font-weight: 750; }
.login-card input, #feedback-form input, #feedback-form textarea, #feedback-form select { width: 100%; padding: .85rem 1rem; }
.privacy-note { font-size: .78rem; }
.preview-note { padding: .8rem; border-radius: .75rem; color: #5a4610 !important; background: #fff3cd; font-size: .82rem; }
.status-message { min-height: 1.5rem; margin: .8rem 0 0; color: #8b3a2a !important; }
.primary, .secondary, .text-button, .icon-button { border: 0; cursor: pointer; }
.primary, .secondary { display: inline-flex; min-height: 2.85rem; align-items: center; justify-content: center; padding: .75rem 1.1rem; border-radius: .8rem; font-weight: 750; }
.primary { color: #fff; background: var(--green-dark); box-shadow: 0 10px 25px rgba(36, 77, 58, .2); }
.primary:hover { background: #183f2d; }
.primary:disabled { cursor: not-allowed; opacity: .5; }
.secondary { color: var(--green-dark); background: var(--mint); }
.text-button { padding: .5rem; color: var(--green-dark); background: transparent; font-weight: 700; }
.icon-button { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: var(--mint); font-size: 1.6rem; }
.portal { padding: 3rem 0 6rem; }
.portal-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 2.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.portal-hero h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.portal-hero p { margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); }
.portal-hero .primary { flex: none; }
.supporter-badge { padding: .55rem .75rem; border: 1px solid rgba(198, 168, 102, .45); border-radius: .8rem; background: linear-gradient(135deg, #fffdf8, #ece2c8); }
.supporter-badge strong { display: block; font-size: .78rem; }
.supporter-badge span { display: block; color: var(--muted); font-size: .65rem; }
.supporter-badge.community { border-color: rgba(53, 107, 80, .3); background: linear-gradient(135deg, #f8fff9, #d7eadf); }
.feedback-section { padding: 4rem 0 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { max-width: 19ch; margin: .2rem 0 0; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: 1; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.filters label { font-size: .8rem; font-weight: 750; }
.feedback-list { display: grid; gap: 1rem; }
.load-more { display: flex; margin: 2rem auto 0; }
.feedback-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--card); }
.vote-button { min-width: 4.5rem; padding: .65rem; border: 1px solid var(--line); border-radius: .9rem; color: var(--ink); background: #fff; font-weight: 800; cursor: pointer; }
.vote-button[aria-pressed="true"] { border-color: var(--green); color: var(--green-dark); background: var(--mint); }
.feedback-card h3 { margin: .1rem 0 .45rem; font-size: 1.15rem; }
.feedback-card p { margin: .35rem 0; color: var(--muted); line-height: 1.5; }
.feedback-meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .78rem; }
.status-pill { display: inline-flex; height: max-content; align-items: center; padding: .4rem .65rem; border-radius: 999px; color: var(--green-dark); background: var(--mint); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
dialog { width: min(640px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 1.4rem; background: var(--card); box-shadow: 0 30px 100px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(16, 29, 22, .62); backdrop-filter: blur(5px); }
#feedback-form { display: grid; max-height: calc(100dvh - 2rem); overflow: auto; gap: .75rem; padding: clamp(1.25rem, 4vw, 2.25rem); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.dialog-heading h2 { margin: 0; font-size: 2rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: .6rem; }
footer { padding: 2rem clamp(1rem, 5vw, 5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
:focus-visible { outline: 3px solid #c88b2b; outline-offset: 3px; }
@media (max-width: 760px) {
  .site-header { padding: .8rem 1rem; }
  .brand strong { display: none; }
  .login-view { grid-template-columns: 1fr; padding: 1.5rem 0 3rem; }
  .login-visual { min-height: 500px; }
  .login-copy h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .portal-hero { align-items: flex-start; flex-direction: column; }
  .portal-hero .primary { width: 100%; }
  .supporter-badge span { display: none; }
  .section-heading { align-items: start; flex-direction: column; }
  .feedback-card { grid-template-columns: auto 1fr; }
  .status-pill { grid-column: 2; }
  .filters { width: 100%; }
  .filters select { flex: 1; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
