:root {
  --bg: #f8f5ef;
  --panel: rgba(255, 252, 245, 0.84);
  --panel-strong: #fffaf0;
  --ink: #1e2520;
  --muted: #6f766f;
  --line: rgba(47, 74, 62, 0.14);
  --green: #2f4a3e;
  --green-2: #476b59;
  --mint: #dce8d9;
  --gold: #f4d28a;
  --orange: #d77d3f;
  --red: #a64c3f;
  --blue: #496a88;
  --shadow: 0 18px 70px rgba(47, 74, 62, 0.16);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(244, 210, 138, 0.42), transparent 31rem),
    radial-gradient(circle at 85% 6%, rgba(220, 232, 217, 0.82), transparent 32rem),
    linear-gradient(180deg, #fbf8f0 0%, var(--bg) 46%, #f2eee4 100%);
}

a { color: var(--green); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
button, input, select, textarea { font: inherit; }

.shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 780; letter-spacing: -0.03em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--green); color: #fff8ea; box-shadow: 0 12px 28px rgba(47, 74, 62, 0.22); }
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a, .nav span { border: 1px solid var(--line); color: var(--green); background: rgba(255,255,255,0.42); border-radius: 999px; padding: 8px 12px; text-decoration: none; font-size: 13px; font-weight: 680; }
.nav a:hover { background: #fff; }

.hero, .panel, .stat, .table-wrap, .login-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero { border-radius: 34px; padding: 34px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -90px; border-radius: 50%; background: rgba(244, 210, 138, 0.38); pointer-events: none; }
.eyebrow { color: var(--green-2); font-size: 13px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -0.045em; }
h1 { font-size: clamp(38px, 7vw, 76px); line-height: 0.93; margin-top: 10px; max-width: 900px; }
h2 { font-size: 26px; line-height: 1.05; }
h3 { font-size: 18px; }
p { color: var(--muted); line-height: 1.55; }
.lede { font-size: 18px; max-width: 780px; color: #4e574f; margin: 18px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); gap: 20px; align-items: end; position: relative; z-index: 1; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 760; border: 1px solid var(--line); color: var(--green); background: rgba(255,255,255,0.55); white-space: nowrap; }
.badge.good { background: #e5efe2; color: #28523c; }
.badge.warn { background: #fff0cf; color: #775218; }
.badge.danger { background: #f8d8cf; color: #78392f; }
.badge.blue { background: #e5eef6; color: #365672; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button, button.button { appearance: none; border: 0; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 16px; border-radius: 999px; color: #fffaf0; background: var(--green); font-weight: 760; box-shadow: 0 12px 25px rgba(47, 74, 62, 0.18); }
.button.secondary { background: rgba(255,255,255,0.72); color: var(--green); border: 1px solid var(--line); box-shadow: none; }
.button.danger { background: var(--red); }
.button.small { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel { border-radius: var(--radius); padding: 22px; margin-top: 16px; }
.panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 16px; }
.panel-header p { margin: 8px 0 0; }
.stat { border-radius: 22px; padding: 18px; box-shadow: 0 12px 36px rgba(47, 74, 62, 0.09); }
.stat .num { font-size: 36px; line-height: 1; font-weight: 820; letter-spacing: -0.06em; }
.stat .label { margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 680; }

.notice { border-radius: 20px; padding: 14px 16px; border: 1px solid var(--line); color: #47534a; background: rgba(255,255,255,0.56); }
.notice.warn { background: #fff1d0; color: #6f4d16; border-color: rgba(215, 125, 63, 0.24); }
.notice.danger { background: #f8d8cf; color: #74392f; border-color: rgba(166, 76, 63, 0.25); }
.notice.good { background: #e4efdf; color: #254b38; border-color: rgba(47, 74, 62, 0.17); }
.notice p { margin: 5px 0 0; color: inherit; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label, .field-label { color: #354139; font-size: 13px; font-weight: 760; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], input[type="password"], select, textarea {
  width: 100%;
  border: 1px solid rgba(47, 74, 62, 0.16);
  background: rgba(255,255,255,0.76);
  color: var(--ink);
  border-radius: 16px;
  padding: 12px 13px;
  outline: none;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(47, 74, 62, 0.42); box-shadow: 0 0 0 4px rgba(47, 74, 62, 0.08); }
.radio-row, .check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: rgba(255,255,255,0.62); border-radius: 999px; padding: 9px 12px; font-weight: 700; color: #344139; }
.choice input { accent-color: var(--green); }
.help { font-size: 12px; color: var(--muted); line-height: 1.45; }

.table-wrap { border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.48); }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; color: #667066; text-transform: uppercase; letter-spacing: 0.07em; background: rgba(255,255,255,0.58); }
td { font-size: 14px; }
tr:hover td { background: rgba(255,255,255,0.42); }
.name-cell { font-weight: 800; color: #243028; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.progress-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.progress-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.55); border-radius: 18px; padding: 12px; }
.progress-item strong { display: block; }
.progress-item span { color: var(--muted); font-size: 13px; }
.step-dot { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #edf2e9; color: var(--green); font-weight: 900; }
.step-dot.todo { background: #fff1d0; color: #805414; }
.step-dot.no { background: #f8d8cf; color: #7d3b31; }

.login-wrap { min-height: 78vh; display: grid; place-items: center; }
.login-card { width: min(440px, 100%); border-radius: 30px; padding: 28px; }
.footer-note { margin-top: 26px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .hero-grid, .grid.two, .grid.three, .grid.four, .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
  .hero { padding: 24px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 820px; }
}
