
:root {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #233d32;
  background: #f3f8f2;
  font-synthesis: none;
  --green: #2e7052;
  --green-dark: #23583f;
  --green-light: #eaf3e7;
  --line: #dce8da;
  --muted: #64796c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(145deg, #f8fbf5 0%, #edf5ed 65%, #f6f9f1 100%);
  line-height: 1.65;
}
header {
  background: #edf5e9;
  color: #294d38;
  border-bottom: 1px solid #d6e5d1;
}
.shell { max-width: 1080px; margin: auto; padding: 22px 26px; }
.bar, .between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bar { min-height: 82px; }
.bar strong { font-size: 18px; letter-spacing: .035em; }
.bar > div { color: #5b7361; font-size: 14px; }
a { color: #2c6b4d; text-underline-offset: 4px; }
a:hover { color: #1d5038; }
.bar a { color: #2d6044; text-decoration: none; }
.bar a:hover { text-decoration: underline; }
h1, h2 { color: #294b36; line-height: 1.4; letter-spacing: .01em; }
h1 { font-size: 26px; margin: 0 0 16px; font-weight: 650; }
h2 { font-size: 19px; margin: 0 0 14px; font-weight: 650; }
p { margin: 12px 0; }
.panel {
  background: #fffefa;
  margin: 22px 0;
  padding: 30px;
  border: 1px solid #dfe9da;
  border-radius: 20px;
  box-shadow: 0 7px 28px rgba(49, 82, 50, .045);
}
.narrow {
  max-width: 492px;
  margin: 48px auto;
  padding: 36px;
  border-top: 4px solid #9dbb91;
}
.narrow > p { font-size: 14px; color: #607466; }
label { display: block; margin: 18px 0; font-size: 14px; font-weight: 550; color: #345441; }
input, select, textarea {
  display: block;
  margin-top: 8px;
  padding: 12px 14px;
  width: 100%;
  max-width: 420px;
  border: 1px solid #ccdcca;
  border-radius: 11px;
  background: #fff;
  color: #263d30;
  font: inherit;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #6f9e76;
  box-shadow: 0 0 0 3px #e5f0e2;
}
.narrow input { max-width: none; }
.narrow form > p { font-size: 12px; line-height: 1.65; color: #687b6a; margin-top: -6px; }
button, .btn {
  border: 1px solid #c6d9c2;
  border-radius: 10px;
  background: #f5f9f1;
  padding: 10px 16px;
  cursor: pointer;
  color: #31593e;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
button:hover:not(:disabled), .btn:hover { background: #e8f1e2; border-color: #94b78d; color: #23462f; }
button:focus-visible, a:focus-visible { outline: 3px solid #9cc491; outline-offset: 3px; }
button.primary, .btn { background: var(--green); color: #fff; border-color: var(--green); }
button.primary:hover:not(:disabled), .btn:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.narrow button.primary { width: 100%; margin-top: 8px; padding: 12px 16px; }
.btn { display: inline-block; margin: 4px 3px; }
.link { background: none; border: none; color: #406749; padding: 0; }
button.link:hover { background: transparent; text-decoration: underline; }
.header-form { display: inline; margin-left: 1rem; }
button:disabled { opacity: .46; cursor: not-allowed; }
.error { color: #a23832; background: #fff1ed; border: 1px solid #f0d7cf; padding: 11px 14px; border-radius: 10px; }
.notice { color: #3c6745; background: #eef6e7; border: 1px solid #d5e6ca; padding: 12px 15px; border-radius: 11px; }
.rubric {
  padding: 13px 15px;
  background: #edf3e8;
  color: #3e5b3e;
  border: 1px solid #dbe5d2;
  border-radius: 11px;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 2;
}
/* Keep the frozen viewing surround neutral; do not tint or filter rating images. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.compare figure { margin: 0; text-align: center; background: #777; padding: 8px; border-radius: 8px; }
.compare img { display: block; width: 100%; max-height: 520px; aspect-ratio: 1/1; object-fit: contain; background: #777; }
.compare figcaption { color: #fff; padding: 7px; }
.nav, .scores { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.nav button { min-width: 46px; }
.nav .current, .scores .selected { background: var(--green); border-color: var(--green); color: #fff; }
.scores button { min-width: 48px; min-height: 46px; font-size: 16px; }
#saved { color: #2d6d4a; min-height: 1.5em; }
table { display: block; width: 100%; border-collapse: collapse; font-size: 14px; max-height: 450px; overflow: auto; }
thead, th { background: #f0f5eb; color: #426044; }
td, th { border-bottom: 1px solid #e1eadb; text-align: left; padding: 12px; }
td { vertical-align: top; }
tbody tr:hover { background: #f8faf4; }
td form { margin-bottom: .5rem; }
td input { min-width: 150px; }
code { overflow-wrap: anywhere; }
.bot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) {
  .shell { padding: 16px; }
  .bar { flex-wrap: wrap; min-height: 78px; gap: 10px; }
  .bar strong { font-size: 16px; }
  .bar > div { width: 100%; }
  .panel { padding: 22px; border-radius: 16px; }
  .narrow { margin: 28px auto; padding: 26px; }
  h1 { font-size: 23px; }
  td, th { padding: 10px; }
}
@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr; }
  .between { align-items: flex-start; flex-wrap: wrap; }
  .scores { gap: 7px; }
  .scores button { min-width: 43px; padding: 9px 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.inline-check { display:inline-block; width:auto; margin:0 8px 0 0; }
