:root {
  color-scheme: light;
  --ink:#142620; --muted:#596a62; --edge:#dce6df; --canvas:#eef3ef;
  --paper:#fff; --mint:#a8f5ce; --dark:#101d1a; --green:#14573f;
  --focus:#1f8358; --radius:24px;
  font-family:"Inter","Segoe UI",system-ui,-apple-system,sans-serif;
  font-size:16px;
}
* {box-sizing:border-box}
body {margin:0;min-width:300px;background:var(--canvas);color:var(--ink);line-height:1.55}
a {color:inherit;text-underline-offset:4px}
[hidden] {display:none!important}
h1,h2,h3,p {margin:0}
button,input,textarea,select {font:inherit}
button {cursor:pointer}
button:disabled {cursor:not-allowed;opacity:.66}
button,a,input,select,textarea,summary {outline-offset:4px}
:focus-visible {outline:2px solid var(--focus)}
.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}
.mast,.site-footer {
  max-width:1320px;margin:auto;padding:1.4rem 2.25rem;display:flex;
  justify-content:space-between;align-items:center;gap:1rem
}
.brand {display:inline-flex;align-items:center;gap:.72rem;text-decoration:none;
  color:var(--ink);font-weight:850;letter-spacing:.025em;font-size:1.08rem;}
.brand-vpn {font-weight:660;color:#43645a}
.brand,.mast-link {white-space:nowrap}
.brand-mark {flex:none}
.brand-mark {display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#10251d}
.brand-mark img {object-fit:contain}
.mast-link {text-decoration:none;font-weight:680;color:#52655b;font-size:.93rem}
.mast-link:hover,.site-footer a:hover {color:#153e2c;text-decoration:underline}
.public-main {
  max-width:1320px;margin:0 auto;padding:0 2.25rem;
  display:grid;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);gap:1rem;
}
.hero {
  min-height:650px;position:relative;isolation:isolate;display:flex;flex-direction:column;
  justify-content:space-between;overflow:hidden;border-radius:var(--radius);color:#f5faf6;
  padding:clamp(2rem,4.5vw,4.1rem) clamp(1.75rem,4vw,3.7rem) 2.3rem;
  background:#12211c;
}
.hero-art {
  position:absolute;inset:0;z-index:-1;background:#14251e;
  background-image:linear-gradient(180deg,#12211c 2%,rgba(18,33,28,.93) 32%,rgba(18,33,28,.15) 65%,rgba(18,33,28,.89) 100%),
    url('/assets/field.jpg'),radial-gradient(ellipse at 73% 54%,#284f3c 0%,#14251e 58%);
  background-size:auto,cover,auto;background-position:center,center 64%,center;
}
.hero-caption {display:flex;align-items:center;gap:.55rem;font-size:.9rem;font-weight:700;color:#b8efcd;}
.hero-caption span {width:7px;height:7px;border-radius:50%;background:#8df0ae;box-shadow:0 0 12px #81eaa4}
.hero h1 {
  font-size:clamp(2.25rem,4.4vw,4.4rem);font-weight:800;letter-spacing:-.065em;
  line-height:1.005;margin:1.08rem 0 1.15rem
}
.hero-description {color:#e0eee5;max-width:22rem;font-size:clamp(1rem,1.6vw,1.12rem)}
.hero-bottom {max-width:22rem;position:relative;color:#e4eee6;font-size:.98rem}
.hero-rule {width:34px;height:2px;background:#9df4be;margin-bottom:1rem}
.form-pane {
  padding:clamp(1.45rem,3.28vw,3.1rem);border-radius:var(--radius);background:var(--paper);
  border:1px solid #e2ebe4;box-shadow:0 16px 35px rgba(35,64,46,.04)
}
.form-heading {margin-bottom:1.9rem}
.form-heading h2 {font-size:clamp(1.8rem,2.65vw,2.6rem);font-weight:800;letter-spacing:-.05em;line-height:1.1}
.form-heading p {color:var(--muted);margin-top:.42rem}
fieldset {min-width:0;margin:0 0 1.25rem;padding:0;border:0}
legend {padding:0;margin:0 0 .77rem;font-weight:750;letter-spacing:-.015em;font-size:1.08rem}
.wide-field {grid-column:1/-1}
.field-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.78rem;margin-bottom:.76rem}
label {display:block;min-width:0;font-weight:635;font-size:.91rem}
input:not([type=checkbox]),textarea,select {
  display:block;width:100%;min-width:0;padding:.67rem .75rem;margin-top:.35rem;line-height:1.25;
  min-height:44px;border:1px solid #dbe6de;border-radius:10px;background:#f7faf8;color:var(--ink);
  font-size:1rem;font-weight:450;transition:background .16s,border .16s
}
input::placeholder,textarea::placeholder {color:#6a786f;opacity:1}
select {
  appearance:none;padding-right:2.1rem;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,#4b6959 50%),linear-gradient(135deg,#4b6959 50%,transparent 50%);
  background-position:calc(100% - 15px) 51%,calc(100% - 10px) 51%;
  background-repeat:no-repeat;background-size:5px 5px
}
textarea {resize:vertical}
input:not([type=checkbox]):focus,select:focus,textarea:focus {outline:0;border-color:#39805b;background-color:#f3fbf6;box-shadow:0 0 0 3px #ccebd8}
.optional {color:var(--muted);font-size:.82rem;font-weight:450;margin-left:.28rem;}
.help {font-size:.85rem;color:var(--muted);margin-top:.44rem}
.consent {display:flex;align-items:flex-start;gap:.63rem;color:#4e6257;font-weight:465;line-height:1.5;margin:.1rem 0 .95rem}
.consent input {accent-color:var(--green);width:1.08rem;height:1.08rem;margin:.12rem 0 0;flex:none}
.trap {position:absolute;width:1px;height:1px;overflow:hidden;left:-9999px}
.button {
  border:1px solid transparent;border-radius:12px;padding:.69rem 1.15rem;
  min-height:43px;font-size:.95rem;font-weight:730;line-height:1.25;white-space:nowrap;
  transition:background .16s,box-shadow .16s;color:inherit
}
.button.primary {background:var(--green);color:#fff;box-shadow:0 5px 13px rgba(20,87,63,.16)}
.button.primary:hover:not(:disabled) {background:#0e4631;box-shadow:0 6px 16px rgba(20,87,63,.23)}
.form-end .button {width:100%;min-height:50px}
.button.secondary {background:#f4f8f5;border-color:#dce7df;color:#325244}
.button.secondary:hover:not(:disabled) {background:#e8f2eb}
.button.compact {font-size:.86rem;min-height:37px;padding:.43rem .65rem;border-radius:9px}
.notice {margin-top:.75rem;border-radius:10px;padding:.68rem .85rem}
.error {background:#ffefee;color:#812a28;border:1px solid #ebcfcc}
.success {background:#f0f8f3;border:1px solid #d9eade;border-radius:18px;padding:1.75rem;color:#214332}
.success-mark {display:grid;place-items:center;width:38px;height:38px;background:#ccebd6;border-radius:10px;font-weight:800;margin-bottom:.7rem}
.success h3 {font-size:1.5rem}
.success p {margin-top:.3rem}
.site-footer {color:#56685d;font-size:.87rem}
.site-footer a {text-decoration:none}
.login-wrap {max-width:520px;margin:5rem auto;padding:0 1.2rem}
.login-card {padding:2rem;background:white;border:1px solid var(--edge);border-radius:22px;box-shadow:0 18px 60px #24432a12}
.login-tag {font-size:.87rem;font-weight:730;color:#4c7663;margin-bottom:.36rem}
.login-card h1,.board-top h1 {font-size:clamp(2.2rem,4.1vw,3.6rem);line-height:1.02;letter-spacing:-.06em;font-weight:800}
.login-card h1 {font-size:2.2rem}
.muted {color:var(--muted);margin:.45rem 0 1.25rem}
.login-card button {width:100%;margin-top:1rem}
.login-card label + label {margin-top:.75rem}
.dashboard {max-width:1320px;margin:0 auto 3rem;padding:1.9rem 2.25rem 0}
.board-top {display:flex;justify-content:space-between;gap:1rem;align-items:end;margin-bottom:1.6rem}
.stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-bottom:1.05rem}
.stats button {
  text-align:left;border:1px solid var(--edge);color:var(--ink);background:white;border-radius:17px;
  padding:.85rem 1.12rem;display:flex;flex-direction:column;gap:.1rem
}
.stats button:hover {background:#f7fbf8;border-color:#a9c8b5}
.stats button span {font-size:.9rem;color:var(--muted);font-weight:680}
.stats button strong {font-size:1.85rem;line-height:1.12;letter-spacing:-.045em}
.records {background:white;border-radius:20px;border:1px solid var(--edge);padding:1rem 1.05rem;min-width:0}
.filters {display:grid;grid-template-columns:minmax(0,1.55fr) repeat(5,minmax(0,1fr));gap:.76rem}
.extra-filters {grid-column:1/-1;color:var(--muted);font-size:.91rem}
.extra-filters summary {cursor:pointer;font-weight:680;padding:.27rem 0}
.extra-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.76rem;margin:.45rem 0}
.list-caption,.pagination {display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap;color:var(--muted);font-size:.9rem}
.list-caption {padding:.95rem 0 .7rem}
.table-scroll {overflow:auto}
table {border-collapse:collapse;width:100%;min-width:720px;text-align:left}
th,td {padding:.68rem .53rem;border-bottom:1px solid #e8efe9;vertical-align:middle}
th {font-size:.85rem;color:#496053;background:#f3f8f4}
td {font-size:.94rem;overflow-wrap:anywhere}
td strong,td small {display:block}
td small {font-size:.82rem;color:#56685e;margin-top:.14rem}
td:last-child {text-align:right}
.pill {display:inline-block;white-space:nowrap;border-radius:20px;padding:.22rem .5rem;background:#eef2ef;color:#3f5549;font-size:.82rem;font-weight:690}
.pill.state-new {background:#e5f0fc;color:#244a7a}
.pill.state-review,.pill.filter-unsure {background:#fff1d6;color:#70521b}
.pill.state-accepted,.pill.filter-yes {background:#dcf4e4;color:#216046}
.pill.state-rejected {background:#f9e6e3;color:#803e37}
.empty {padding:3rem 1rem;text-align:center;background:#f6f9f7;border-radius:15px}
.empty strong {font-size:1.1rem}
.empty p {color:var(--muted);margin-top:.28rem}
.pagination {justify-content:center;margin-top:.8rem}
dialog {
  width:min(580px,calc(100% - 1.7rem));max-height:calc(100dvh - 2rem);border:1px solid var(--edge);
  border-radius:20px;padding:1.2rem;color:var(--ink);box-shadow:0 30px 85px #09170f56
}
dialog::backdrop {background:#14261fc0}
.detail-top {display:flex;justify-content:space-between;align-items:start;gap:.7rem}
.detail-top h2 {font-size:1.5rem;line-height:1.12;word-break:break-word}
#facts {display:grid;grid-template-columns:minmax(101px,.34fr) minmax(0,1fr);gap:.4rem .65rem;font-size:.92rem}
#facts dt {font-weight:700}
#facts dd {margin:0;overflow-wrap:anywhere;color:var(--muted)}
.coverage {background:#f0f7f1;padding:.68rem .8rem;border-radius:9px;margin-bottom:.75rem;color:#365846;font-size:.88rem}
#detail-form {display:grid;gap:.68rem}
@media(max-width:960px) {
  .mast,.site-footer,.public-main,.dashboard {padding-inline:1.25rem}
  .public-main {grid-template-columns:minmax(0,.79fr) minmax(0,1.21fr)}
  .hero {min-height:600px;padding-inline:1.55rem}
  .form-pane {padding:1.35rem}
}
@media(max-width:740px) {
  .mast,.site-footer,.public-main,.dashboard {padding-inline:1rem}
  .mast {padding-block:.9rem}
  .public-main {grid-template-columns:1fr;gap:.75rem}
  .hero {min-height:290px;padding:1.42rem 1.18rem;gap:1.6rem;border-radius:17px}
  .hero h1 {font-size:clamp(2.38rem,8vw,3.5rem);margin:.65rem 0 .55rem}
  .hero-art {background-position:center,center 57%,center}
  .hero-rule {margin-bottom:.5rem}
  .hero-description,.hero-bottom {font-size:.95rem}
  .form-pane {border-radius:18px;padding:1.13rem}
  .form-heading {margin-bottom:1.44rem}
  .stats,.filters {grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard {padding-top:1rem}
}
@media(max-width:425px) {
  .field-grid {grid-template-columns:1fr;gap:.6rem}
  .form-heading h2 {font-size:1.72rem}
  .hero {min-height:283px}
  .hero h1 {font-size:clamp(1.68rem,8.45vw,2.15rem)}
  .login-wrap {margin-top:2.7rem}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
