:root {
  --ink: #1c2b28;
  --muted: #66736f;
  --paper: #f4f5ef;
  --surface: #fffef9;
  --line: #dce1d8;
  --green: #165f4c;
  --green-dark: #0f4639;
  --mint: #dcece4;
  --gold: #bd8f3a;
  --danger: #a74436;
  --shadow: 0 18px 50px rgba(27, 52, 44, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; }
a { color: var(--green); text-decoration: none; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(24px, calc((100vw - 1180px) / 2)); background: rgba(255, 254, 249, 0.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: var(--green); font-weight: 800; letter-spacing: .08em; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 650; }
.inline-form { display: inline; margin: 0; }
.link-button { border: 0; background: none; color: var(--green); font: inherit; padding: 0; cursor: pointer; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.safety-note { padding: 10px 14px; border: 1px solid #dfca9c; background: #fff8e8; color: #735b2d; border-radius: 12px; font-size: 13px; margin-bottom: 24px; }
.hero, .task-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; padding: 42px; border-radius: 28px; color: white; background: radial-gradient(circle at 90% 0%, #3d8974 0, transparent 36%), linear-gradient(140deg, #0f4639, #173a34); box-shadow: var(--shadow); }
.hero h1, .task-hero h1 { max-width: 760px; margin: 5px 0 12px; font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 4vw, 54px); line-height: 1.16; }
.hero p, .task-hero p { margin: 0; max-width: 780px; color: #dcece6; }
.eyebrow { margin: 0 0 4px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.button, button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 12px; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.primary { color: white; background: var(--green); }
.hero .primary { color: var(--green-dark); background: #f3dca9; white-space: nowrap; }
.secondary { color: var(--green); border: 1px solid var(--line); background: white; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
.metrics article { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.metrics span { display: block; font: 700 34px/1 Georgia, serif; color: var(--green); }
.metrics small { color: var(--muted); }
.two-column { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.panel { margin-top: 20px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(27, 52, 44, .04); }
.panel.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.panel h2, .page-heading h1 { margin: 2px 0 14px; font-family: Georgia, "Songti SC", serif; }
.section-heading, .page-heading, .export-panel { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; }
.page-heading { margin: 16px 0 6px; }
.page-heading p { max-width: 580px; color: var(--muted); }
.list { display: grid; gap: 8px; }
.list-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 0; color: var(--ink); border-top: 1px solid var(--line); }
.badge, .status { display: inline-flex; width: fit-content; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge { color: var(--green-dark); background: var(--mint); }
.status { margin-left: 6px; color: #705526; background: #f7e8c8; }
.society-list { display: grid; gap: 12px; }
.society-list article { padding: 14px 0; border-top: 1px solid var(--line); }
.society-list strong, .society-list span, .society-list small { display: block; }
.society-list strong { color: var(--green); }
.society-list small { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.task-card { min-height: 220px; padding: 22px; border-radius: 18px; color: var(--ink); background: #fafaf5; border: 1px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.task-card:hover { transform: translateY(-2px); border-color: #8bb9a9; }
.task-card h2 { margin: 18px 0 8px; }
.task-card p, .task-card small, .muted, .empty { color: var(--muted); }
.back { display: inline-block; margin: 0 0 16px; }
.task-hero { grid-template-columns: 1fr minmax(240px, 34%); align-items: stretch; }
.task-hero aside { padding: 22px; border-radius: 18px; background: rgba(255,255,255,.1); }
.stacked-form p { display: grid; gap: 6px; margin: 0 0 16px; }
.stacked-form label { font-weight: 700; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd3ca; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(22,95,76,.14); border-color: var(--green); }
.helptext { color: var(--muted); font-size: 12px; }
.submission-card { padding: 22px 0; border-top: 1px solid var(--line); }
.feedback-thread { display: grid; gap: 10px; margin-top: 18px; }
.feedback-thread article { padding: 14px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: #f1f6f2; }
.feedback-thread p { margin: 8px 0; }
.compact { margin-top: 18px; padding: 16px; border-radius: 14px; background: #f7f7f1; }
.outcome-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.outcome-list article { padding: 20px; border-radius: 16px; background: #fafaf5; border: 1px solid var(--line); }
.login-card { max-width: 520px; margin: 7vh auto; padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card h1 { margin: 4px 0 8px; font-family: Georgia, "Songti SC", serif; }
.message { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--mint); }
.message.error { background: #f7dfda; color: var(--danger); }

@media (max-width: 760px) {
  .topbar { position: static; flex-direction: column; align-items: flex-start; }
  nav { width: 100%; gap: 14px; overflow-x: auto; }
  .hero, .task-hero, .two-column, .task-grid, .outcome-list { grid-template-columns: 1fr; }
  .hero, .task-hero { padding: 26px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .page-heading, .section-heading, .export-panel { flex-direction: column; }
  .list-item { grid-template-columns: 1fr; }
}

